/*tampilan tama*/
html,
body {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.428;
}
body {
  background: whitesmoke;
  overflow: hidden;
}

/*tampilan frame*/
.toolbar {
  padding: 4px 16px;
  line-height: 28px;
  box-shadow: 0 4px 2px -2px gray;
}
.sidebar {
  padding: 8px 14px 4px;
  line-height: 40px;
  background: #1b6d85;
  font-size: 18px;
}
.main {
  padding: 16px 16px 0px;
}
.statusbar {
  padding: 6px 0;
  color: #73879c;
  border-top: 1px solid #ced4da;
}
.sidebar a,
.sidebar button {
  display: block;
  color: #fff;
  background: none;
  border: none;
  outline: 0;
  padding: 0;
}
.toolbar a,
.toolbar button {
  margin-right: 12px;
  display: inline-block;
  color: #1b6d85;
  background: none;
  border: none;
  outline: 0;
  text-decoration: none;
}
.sidebar a:hover,
.sidebar button:hover,
.toolbar button:hover,
.toolbar a:hover,
.toolbtn:hover {
  color: orange;
  text-decoration: none;
  cursor: pointer;
}
.toolbtn {
  padding: 0;
  color: #1b6d85;
  background: none;
  border: none;
  outline: 0;
  margin: 6px 12px 0 0;
}
.btn-outline-secondary {
  border-color: #ced4da;
}

/*navbar dan megamenu*/
.navbar {
  padding-top: 0;
  padding-bottom: 0;
  background-color: #1b6d85;
  border-radius: 0;
  border: none;
  border-bottom: 4px solid #ddd;
}
.navbar-brand {
  line-height: 46px;
  padding: 0;
  margin-left: 16px;
  margin-right: 12px;
  color: black;
  font-size: 18px;
}
.nav-link {
  line-height: 46px;
  padding: 0; /*padding=tinggi menu*/
  width: 100%;
  text-align: center;
  font-size: 14px;
}
.navbar-brand:hover {
  color: black;
}
.navbar-nav > li > a {
  margin: 0 8px;
  color: #e6e9ed;
} /*lebar & warna menu utama*/
.navbar-nav > li > a:hover {
  color: orange;
}
.navbar-nav > li > a:focus {
  background-color: #ddd;
  color: #000;
}
.largemenu {
  position: static !important;
}
.megamenu {
  width: 100%;
  padding: 14px 36px 18px;
  border-radius: 0;
  border: none;
  margin-top: 4px !important;
  border-bottom: 2px solid maroon;
  background: white;
}
.megamenu ul {
  padding: 0 20px 0 0;
  margin: 0;
}
.megamenu .dropdown-header {
  padding: 3px 12px;
  color: #117a8b;
  font-size: 14px;
  font-weight: bold;
}
.megamenu ul > li {
  list-style: none;
  font-size: 14px;
}
.megamenu ul > li > a {
  text-decoration: none;
  color: #000;
  display: block;
  padding: 3px 12px;
  background: transparent !important;
}
.megamenu ul > li > a:hover {
  text-decoration: none;
  color: #fff !important;
  background: #117a8b !important;
}
.megamenu ul > hr {
  margin: 8px 12px;
}

/*tampilan standar*/
.judul {
  color: #1b6d85;
  text-transform: uppercase;
  margin: 4px 0 0;
  font-size: 16px;
}
.subjudul {
  font-size: 13px;
  color: #73879c;
  margin: 4px 0 0;
}
.garis {
  border-bottom: 1px solid #ced4da;
  margin: 8px 0;
}
.col-form-label {
  padding-bottom: 0;
}
.form-control,
.input-group,
.no-group {
  margin-bottom: 4px;
}
.input-group .form-control {
  margin-bottom: 0; /*override yg diatasnya*/
}
.input-group {
  flex-wrap: nowrap;
}
.input-group .select2-container--bootstrap-5 {
  overflow: auto;
}
.footer {
  border-top: 1px solid #ced4da;
  padding: 6px 0;
  color: #73879c;
}
hr {
  border-bottom: solid 1px #000 !important;
}
textarea {
  height: 67px;
}
label > input {
  margin-bottom: 13px;
}

/*tampilan tabel*/
table {
  cursor: default;
  user-select: none; /*disable text select*/
}
table td,
table th {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
table.table {
  width: 100% !important;
  line-height: 26px; /*tinggi baris*/
  border-top: hidden;
}
.table-striped > tbody > tr:nth-child(odd) {
  background-color: white;
}
th input {
  font-weight: bold;
}
td input:not([type="checkbox"]),
.thfoot {
  background: none;
  border: none;
  outline: none;
  max-height: 20px !important;
  width: 100%;
}
td textarea {
  resize: none;
  background: none;
  border: none;
  outline: none;
  line-height: 14px;
  width: 100%;
  margin-top: 4px;
  height: 48px;
}
td .select2-selection {
  background: none !important;
  border: none !important;
}
td .select2-container {
  max-height: 28px !important;
  margin-top: -2px;
  margin-left: -8px;
  width: calc(100% + 30px) !important;
}
td .select2-selection__placeholder {
  color: transparent !important;
}
td .select2-selection__clear {
  margin-top: 1px;
}
.tblfoot {
  margin-top: -6px;
  border-bottom: 1px solid #ced4da;
}

/*tampilan datatables*/
.dataTable > thead > tr > th[class*="sort"]:before,
.dataTable > thead > tr > th[class*="sort"]:after {
  display: none;
}
.dataTable > thead > tr > th {
  border-top-color: #ced4da;
  border-bottom-color: #ced4da !important;
  /*border-bottom-width: 2px !important;*/
}
.dataTable > tbody > tr > td {
  border-bottom-color: #ced4da !important;
}
.dataTable tbody tr.selected {
  color: #fff;
  background-color: #117a8b;
}
.dataTables_info {
  line-height: 6px;
} /*jarak info dg tabel*/
.dataTables_paginate a {
  line-height: 16px !important;
  background: #ddd !important;
  box-shadow: none !important;
  border-color: #ddd !important;
}

/*tampilan select2*/
:focus, 
.select2-container--bootstrap-5.select2-container--focus .select2-selection, /* <- gak usah*/
.select2-container--bootstrap-5.select2-container--open .select2-selection {
  box-shadow: none !important;
}
.select2-container .select2-results > .select2-results__options {
  max-height: 204px;
}
.select2-container--bootstrap-5
  .select2-dropdown
  .select2-results__options
  .select2-results__option.select2-results__option--selected {
  color: #212529;
  background-color: #fff; /* kembalikan warna semula */
}
.select2-container--bootstrap-5
  .select2-dropdown
  .select2-results__options
  .select2-results__option[aria-selected="true"] {
  color: #fff;
  background-color: #117a8b; /* warna highlite */
}
.select2-container--open {
  z-index: 99999;
}

@media (max-width: 768px) {
  .navbar-nav {
    border-top: 1px solid white;
  }
  .navbar-nav > li:first-child {
    margin-top: 6px;
  }
  .nav-link {
    line-height: 32px;
    text-align: left;
    margin-left: 0 !important;
    padding-left: 16px !important;
  }
  .megamenu {
    padding: 10px 24px;
    margin-top: 0 !important;
    max-height: 300px;
    overflow-y: auto;
  }
  .megamenu ul {
    padding: 0;
    margin-bottom: 30px;
  }
  .megamenu ul:last-child {
    margin-bottom: 10px;
  }

  .sidebar {
    display: none !important;
  }
  .dinamis tr {
    display: table;
    width: 100%;
  }
  .dinamis td {
    display: table-row;
  }
}
