/*#region GENERAL */
html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  /* [1] */
  margin: 0;
  padding: 0;
}

.readonly {
  background-color: #e4e4e4;
  box-shadow: #FFFFFF;
  padding: 2px;
}

.hide {
  display: none;
}

/* #endregion */

/*#region FONTS*/

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  /* [2] */
}

/* #endregion */

/*#region TOP SRC*/
.topSrc {
  width: 100%;
  /* position: fixed; */
  top: 0;
  display: inline-block;
  padding: 1.5%;
  /* height: 80px; */
  /* background: #FFFFFF; */
  color: #000000;
  margin-bottom: 20px;
  background-color: rgb(244, 248, 250);
  overflow: hidden;
  font-size: 25px;
}

#header {
  background: #bcceeb;
  min-height: 50px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 10px;
}

#header #mn {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
}

#header #user {
  display: inline-block;
  text-align: right;
  padding-right: 10px;
}

#menuToggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  margin-right: 10px;
  cursor: pointer;
}

#cari2 .left {
  width: 30%;
  display: inline-block;
}

#cari2 .right {
  width: 70%;
  display: inline-block;
}

#cari2 .form-control {
  display: inline-block;
}

@media screen and (min-width: 100px) and (max-width: 549px) {
  #header {
    height: max-content;
    flex-direction: column;
    align-items: stretch;
  }

  #header #mn,
  #header #user {
    width: 100%;
  }
}

ul#menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

ul#menu li {
  display: inline-block;
  margin-left: 8px;
  margin-right: 8px;
  padding: 10px;
  white-space: normal;
  text-align: left;
  vertical-align: middle;
}

ul#menu li:hover {
  background-color: #e8e8e8;
}

ul#menu li a {
  text-decoration: none;
  color: unset;
}

@media screen and (max-width: 768px) {
  #menuToggle {
    display: inline-block;
  }

  ul#menu {
    display: none;
    width: 100%;
    margin-top: 5px;
  }

  ul#menu.open {
    display: block;
  }

  ul#menu li {
    display: block;
    margin: 0;
    padding: 8px 10px;
  }
}

@media screen and (min-width: 769px) {
  ul#menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* Vertically align items */
  }
}

/* select.form-control{
    width: 150px;
  } */
/*#endregion  */

/*#region PAGE WRAPPER*/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

.loader {
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: url('images/loader.gif') 50% 50% no-repeat rgba(249, 249, 249, 0.4);
}

#pagewrap {
  margin: 0 auto;
  /* margin-top: 70px; */
  margin-right: 5%;
  margin-left: 5%;
  max-width: 98%;
}

.wrapper {
  overflow: hidden;
}

/****************************************************************************************
COLUMN
*****************************************************************************************/
.col {
  float: left;
  /* //margin-left: 0%; */
  margin-left: 3.0%;
  margin-bottom: 3px;
}

.fullwidth .col {
  float: none;
  margin-left: 0;
}

/* grid4 col */
.grid4 .col {
  width: 22.5%;
}

/* grid3 col */
.grid3 .col {
  width: 30.5%;
}

/* grid2 col */
.grid2 .col {
  width: 46.5%;
}

/* clear col */
.grid4 .col:nth-of-type(4n+1),
.grid3 .col:nth-of-type(3n+1),
.grid2 .col:nth-of-type(2n+1) {
  margin-left: 0;
  clear: left;
}

/* .col{border: 1px solid} */
/************************************************************************************
MEDIA QUERIES
*************************************************************************************/
/* reset cols to 3-column */
@media screen and (max-width: 1200px) {

  /* grid4 */
  .grid4 .col {
    width: 30.5%;
  }

  .grid4 .col:nth-of-type(4n+1) {
    margin-left: 3.0%;
    /* //margin-left: 0%; */
    clear: none;
  }

  .grid4 .col:nth-of-type(3n+1) {
    margin-left: 0;
    clear: left;
  }
}

/* reset cols to 2-column */
@media screen and (max-width: 800px) {

  /* grid4 */
  .grid4 .col {
    width: 46.5%;
  }

  .grid4 .col:nth-of-type(3n+1) {
    margin-left: 3.0%;
    /* //margin-left: 0%; */
    clear: none;
  }

  .grid4 .col:nth-of-type(2n+1) {
    margin-left: 0;
    clear: left;
  }

  /* grid3 */
  .grid3 .col {
    width: 46.5%;
  }

  .grid3 .col:nth-of-type(3n+1) {
    margin-left: 3.0%;
    /* //margin-left: 0%; */
    clear: none;
  }

  .grid3 .col:nth-of-type(2n+1) {
    margin-left: 0;
    clear: left;
  }
}

/* reset cols to fullwidth */
@media screen and (max-width: 549px) {

  /* grid4 */
  .col {
    margin-top: 20px;
    width: 98% !important;
    margin-left: 20px !important;
    clear: none !important;
  }
}

/* #endregion */

/* #region LOGIN */

#divLogin {
  margin-top: 20px;
  text-align: center;
  align-items: center;
  width: 100%;
  display: inline-block;
}

#divLogin input {
  width: 40%;
  display: inline-block;
}

#divLogin button {
  margin-top: 10px;
  width: 40%;
}

/* #endregion */

/* #region TOAST */

#toast {
  visibility: hidden;
  max-width: 600px;
  height: 45px;
  /*margin-left: -125px;*/
  margin: auto;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  white-space: normal;
  /* Allow text wrapping */
  vertical-align: middle;
  /* Align items to middle */

  position: fixed;
  z-index: 1;
  left: 0;
  right: 0;
  /* position: absolute; */
  top: 0;
  bottom: 0;
  /* bottom: 0px; */
  font-size: 13px;
  white-space: nowrap;
}

#toast #img {
  width: 50px;
  height: 50px;

  float: left;

  padding-top: 16px;
  padding-bottom: 16px;

  box-sizing: border-box;


  background-color: #111;
  color: #fff;
}

#toast #desc {


  color: #fff;

  padding: 10px;

  overflow: hidden;
  white-space: nowrap;
}

#toast.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, expand 0.5s 0.5s, stay 2s 1s, shrink 0.5s 2s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, expand 0.5s 0.5s, stay 2s 1s, shrink 0.5s 3s, fadeout 0.5s 3.5s;
}

@-webkit-keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }

  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }

  to {
    bottom: 30px;
    opacity: 1;
  }
}

@-webkit-keyframes expand {
  from {
    min-width: 50px
  }

  to {
    min-width: 350px
  }
}

@keyframes expand {
  from {
    min-width: 50px
  }

  to {
    min-width: 350px
  }
}

@-webkit-keyframes stay {
  from {
    min-width: 350px
  }

  to {
    min-width: 350px
  }
}

@keyframes stay {
  from {
    min-width: 350px
  }

  to {
    min-width: 350px
  }
}

@-webkit-keyframes shrink {
  from {
    min-width: 350px;
  }

  to {
    min-width: 50px;
  }
}

@keyframes shrink {
  from {
    min-width: 350px;
  }

  to {
    min-width: 50px;
  }
}

@-webkit-keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }

  to {
    bottom: 0px;
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }

  to {
    bottom: 0px;
    opacity: 0;
  }
}

/* #endregion */

/*#region DATATABLES UTILS */
.dt-nowrap {
  white-space: nowrap;
}

.dt-fit {
  width: 1%;
  white-space: nowrap;
}

/* Center headers for specific menus */
#tb_kendaraan thead th,
#tb_kendaraanB thead th,
#tb_kendaraanSX thead th,
#tb_kendaraanBSX thead th,
#tb_perbaikan thead th,
#tb_notaSalon thead th,
#tb_mutasiStokSalon thead th,
#tb_jualMotor thead th,
.dataTables_scrollHead thead th {
  text-align: center !important;
}

/* DataTables Alignment Fixes */
.dataTables_wrapper {
  width: 100%;
  clear: both;
}

.dataTables_wrapper .dataTables_filter {
  float: right;
  text-align: right;
}

.dataTables_wrapper .dataTables_length {
  float: left;
}

table.dataTable {
  width: 100% !important;
  max-width: 100% !important;
}

.dataTables_wrapper::after {
  content: "";
  clear: both;
  display: block;
}

/* Hide total entries count - only show "Showing X to Y" */
.dataTables_info {
  font-size: 14px;
}