@font-face {
  font-family: "FontSpectral"; /* Name for your font family */
  src: url("./../PlusJakartaSans-Regular.ttf");
}

@font-face {
  font-family: "OpenSans";
  src: url("./../../public/IBM_Plex_Mono/IBMPlexMono-Light.ttf");
}
@font-face {
  font-family: "ArialBlack";
  src: url("./../../public/ariblk.ttf");
}

body {
  overflow-x: scroll;

  /* width: 100vw; */
  background-color: #eceeeddc;
  font-family: "FontSpectral", Arial, sans-serif;
  /* background-color: rgb(11, 61, 40); */

  /* color: white; */
}

.filter-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ccc;
  display: none;
  z-index: 999999;
  padding: 10px;
  max-height: 250px;
  overflow-y: auto;
}
.filter-dropdown label {
  display: block;
  margin: 5px 0;
}
.filter-input {
  margin-bottom: 10px;
  width: 100%;
  padding: 5px;
  box-sizing: border-box;
}
.no-matches {
  color: red;
  font-size: 14px;
}

.selected {
  background-color: #d8f947 !important;
  font-weight: bolder;
}

html {
  height: -webkit-fill-available;
}

main {
  /* width: 100vw; */
  /* height: 100vh; */
  /* min-width: 800px; */
  /* background-color: #eceeeddc; */
  /* background-color: rgb(2, 100, 59); */

  /* height: -webkit-fill-available; */
  /* overflow-x: hidden; */
  /* overflow-y: hidden; */
}

.body {
  width: 97%;
  height: 100%;
  margin: 0 auto;
  padding: 0 auto;
}

.clickable-row {
  cursor: pointer;
  /* Additional styles for clickable rows */
}

.clickable-row:hover {
  background-color: #ebf8f3;
}

.sideClass {
  animation: transitionIn 0.75s;
  /* min-width: 950px; */
  /* max-width: 1000px; */
  max-width: calc(100vw - 200px);
  top: 20px;
  /* left: 50px; */
  padding-left: 15px;
  /* margin-top: 1%; */
  position: relative;
}

@keyframes transitionIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-toggle {
  outline: 0;
}

.font-weight-bold {
  font-weight: bold;
}

.btn-toggle {
  padding: 0.25rem 0.5rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.65);
  background-color: transparent;
}
.btn-toggle:hover,
.btn-toggle:focus {
  color: rgba(0, 0, 0, 0.85);
  background-color: #d2f4ea;
}

.btn-toggle::before {
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform 0.35s ease;
  transform-origin: 0.5em 50%;
}

.btn-toggle[aria-expanded="true"] {
  color: rgba(0, 0, 0, 0.85);
}
.btn-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg);
}

.btn-toggle-nav a {
  padding: 0.1875rem 0.5rem;
  margin-top: 0.125rem;
  margin-left: 1.25rem;
}
.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
  background-color: #d2f4ea;
}

.scrollarea {
  overflow-y: auto;
}

#sidebar {
  width: 200px;
  /* top: 20px; */
  z-index: 6666;
  position: fixed;
  left: 0px;
  min-height: 100vh;
}

td {
  vertical-align: middle;
  /* text-align: center; */
}

th {
  vertical-align: middle;
  /* text-align: center; */
}

.card {
  background-color: #f8fcfa !important;
}

.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}

a.btn {
  background-color: #b9cfc7 !important;
  color: #1d2a25 !important;
  border-radius: 3px;

  /* background: #147d4f; */
  /* color: white; */
  /* border-radius: 4px; */
  outline: none;
  border: none;

  /* margin: auto 200px; */
}
a.btn:hover {
  color: white !important;
  outline: none;
}
a.btn:disabled {
  background-color: #37423d !important;
  color: white !important;
  border-radius: 3px;
  outline: none;
  padding: 8px 16px;
}

input.form-control:disabled {
  background-color: #29442d !important;
  color: white !important;
}

#sidebar {
  background-color: #2b3f38;
}

a.nav-link.active {
  background-color: #b9cfc7 !important;
  color: #1d2a25 !important;
  border-radius: 3px;
  outline: none;
  border: none;
}
a.nav-link.active:hover {
  background-color: #147d4f !important;
  color: white !important;
  border-radius: 3px;
  outline: none;
  border: none;
}

ul.nav li:hover {
  background-color: #147d4f !important;
  color: white;
  border-radius: 5px;
  outline: none;
  border: none;
}

li.nav-item a.nav-link {
  color: #464b49;
  outline: none;
  border: none;
}

li.nav-item a:hover {
  background-color: #147d4f !important;
  color: white;
  border-radius: 3px;
  outline: none;
  border: none;
}

.b-example-divider {
  background-color: #464b49;
  border: solid rgba(0, 0, 0, 0.15);
  border-width: 1px 0;
  box-shadow:
    inset 0 0.5em 1.5em rgba(0, 0, 0, 0.1),
    inset 0 0.125em 0.5em rgba(0, 0, 0, 0.15);
}

.b-example-vr {
  flex-shrink: 0;
  width: 1.5rem;
  height: 100vh;
  position: fixed;
}

.bi {
  vertical-align: -0.125em;
  fill: currentColor;
}

.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.modalnew {
  animation: transitionIn 0.4s;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: hidden;
  padding: 20px;
  box-sizing: border-box;
}

.modalnew[style*="display: block"],
.modalnew[style*="display:block"] {
  display: flex !important;
}

.modalnewLayer {
  animation: transitionIn 0.4s;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 8889;
  display: none;

  align-items: center;
  justify-content: center;
  overflow-y: hidden;
  padding: 20px;
  box-sizing: border-box;
}

.modalnewLayer[style*="display: block"],
.modalnewLayer[style*="display:block"] {
  display: flex !important;
}

.modal-content {
  background-color: #ffffff !important;
  position: relative;
  top: unset;
  left: unset;
  transform: unset;
  -webkit-transform: unset;

  width: 95%;
  max-width: 1200px;
  max-height: calc(100vh - 40px);

  padding: 20px;                   /* ← hapus padding di sini */
  border-radius: 20px !important;
  z-index: 4;
  overflow: hidden;             /* ← biarkan child yang scroll */
  margin: auto;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;       /* ← header, body, footer stack vertikal */
}

.modal-header {
  font-weight: 500;
  font-size: 26px;
  padding: 18px 24px 12px;     /* ← pindahkan padding ke sini */
  flex-shrink: 0;              /* ← header tidak mengecil */
}

.modal-header .modal-close {
  animation: transitionIn 0.4s;
  float: right;
  background: #3f3f3f;
  border: 0;
  outline: 0;
  padding: 5px 4px;
  border-radius: 50%;
}

.modal-body {
  animation: transitionIn 0.4s;
  color: #7b7b7b;
  padding: 15px 24px;          /* ← pindahkan padding ke sini */
  overflow-y: auto;            /* ← SCROLL ADA DI SINI */
  flex: 1;                     /* ← body mengisi sisa ruang */
}

.modal-footer {
  padding: 12px 24px 18px;     /* ← pindahkan padding ke sini */
  flex-shrink: 0;              /* ← footer tidak mengecil */
}

.modal-footer .modal-close {
  animation: transitionIn 0.4s;
  padding: 8px 16px;
  border: none;
  outline: none;
  color: white;
}

.tdInput {
  width: 100%;
  white-space: normal;
}

.inner {
  display: none;
  /* margin-left: 0.05%;
  margin-right: 0.05%; */
}

@media print {
  .no-print {
    display: none !important;
  }

  #receiptCash {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 7.5cm;
    color: black;
    font-family: "Arial" !important;
    font-weight: bolder;
    /* font-size: small; */
  }
  #receiptCashWR {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: black;
    align-items: center;
    text-align: center;
    width: 21cm;
    font-weight: bolder;
    /* font-family: "FontSpectral" !important; */
    /* font-size: small; */
  }
  #recover_receipt {
    display: flex;
    color: black;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 7.5cm;
    font-family: "Arial" !important;
    font-weight: bolder;
    /* font-size: small; */
    /* font-family: "FontSpectral" !important; */
  }
  #recover_receiptWR {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: black;
    text-align: center;
    width: 21cm;
    font-weight: bolder;
    /* font-family: "FontSpectral" !important; */
    /* font-size: small; */
  }

  #receiptCash.no-print {
    display: none;
  }
  #recover_receipt.no-print {
    display: none;
  }

  #receiptCash tbody {
    color: black;
    font-size: smaller;
    font-weight: bolder;
  }
  #recover_receipt tbody {
    color: black;
    font-size: smaller;
    font-weight: bolder;
  }

  table {
    font-weight: bolder;
    color: black;
    max-width: 100%;
    border-collapse: collapse;
  }

  .tdnameprd {
    white-space: nowrap;
    overflow-x: hidden;
    text-overflow: ellipsis;
    max-width: 0;
  }

  .inner {
    display: block;
    margin-bottom: 2cm;
  }

  .no-print {
    display: none;
  }

  body {
    font-size: x-small;
  }
  td {
    word-wrap: break-word;
    max-width: 100%;
    white-space: normal;
  }

  th {
    word-wrap: break-word;
    white-space: normal;
  }
}

.receipt body {
  font-size: xxx-small;
  margin-bottom: 5%;
}

th .inner {
  white-space: nowrap;
}

/* @media print {
  #receiptCash {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: small;
  }

  .table-responsive-sm {
    margin: 0 auto;
  }
} */

.smaller-spinner .spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
}

.gradientGreenSelfMade {
  font-weight: 900;
  font-size: 1.3rem;
  color: black;
  margin: auto 0;
  font-weight: bolder;
  /* background: -webkit-linear-gradient(#0f0f0f, #949794);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; */
}

button:disabled.btn {
  cursor: not-allowed !important;
}

.switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 15px;
  width: 15px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #0d853b;
}

input:focus + .slider {
  box-shadow: 0 0 1px #0d853b;
}

input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

#reportrange.disabled {
  pointer-events: none;
  opacity: 0.5; /* Optional: Make it look disabled */
}
