/* One open drawer, two compartments, sharing the same viewing plane. */
.thu-ngan-goc-nhin-xuong .khung-thung-go-hoc-ban-that {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.54fr) 9px minmax(0, 1fr);
  margin: 0 3px;
  padding: 8px 5px 0;
  border: 0;
  border-radius: 0 0 3px 3px;
  background: none;
  box-shadow: none;
}

.thu-ngan-goc-nhin-xuong .khung-thung-go-hoc-ban-that::before {
  content: '';
  position: absolute;
  inset: 0 0 12px;
  z-index: -1;
  background: #bd8a51;
  clip-path: polygon(2% 0, 98% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 4px 0 #e0b77c, inset 5px 0 0 #d7a76b, inset -5px 0 0 #6d4528;
  pointer-events: none;
}

.thu-ngan-goc-nhin-xuong .khe-gam-ban-keo-hoc {
  height: 4px;
  border: 0;
  background: #352216;
  box-shadow: inset 0 2px 0 #1f1710;
}

.thu-ngan-goc-nhin-xuong .than-ngan-keo-2-hoc {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.54fr) 9px minmax(0, 1fr);
  align-items: stretch;
  padding: 0;
  border: 1px solid #422c1d;
  border-top: 4px solid #4b321f;
  border-radius: 0;
  background: #795536;
  box-shadow: inset 0 3px 3px #251b1577;
  overflow: visible;
  transform: perspective(900px) rotateX(14deg);
  transform-origin: center bottom;
}

.thu-ngan-goc-nhin-xuong .vach-go-ngan-doi-hoc-ban {
  width: 9px;
  border: 0;
  background: linear-gradient(90deg, #4b321f 0 1px, #d0a268 1px 4px, #a47647 4px 7px, #543820 7px);
  box-shadow: 2px 0 2px #2a201555;
}

.thu-ngan-goc-nhin-xuong .khung-thung-go-hoc-ban-that > .ray-truot-hoc-ban,
.thu-ngan-goc-nhin-xuong .khung-thung-go-hoc-ban-that > .ke-dong-goc-hoc {
  display: none;
}

.thu-ngan-goc-nhin-xuong .hoc-trai-tien-viet {
  position: relative;
  isolation: isolate;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  padding: 5px 5px 3px;
  border: 0;
  background: #795536;
  box-shadow: inset 2px 3px 3px #2a201544;
  overflow: visible;
}

.thu-ngan-goc-nhin-xuong .hoc-trai-tien-viet::before {
  content: none;
}

.thu-ngan-goc-nhin-xuong .khay-go-chia-ngan-tien {
  position: relative;
  flex: 1;
  justify-content: center;
  gap: 5px;
  margin: 0;
  padding: 4px 3px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.thu-ngan-goc-nhin-xuong .hang-ngan-tien {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.thu-ngan-goc-nhin-xuong .hang-ngan-tien.hang-tien-le {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.thu-ngan-goc-nhin-xuong .hang-tien-le:has(.ngan-keo-oishi) {
  grid-template-columns: repeat(4, minmax(0, 1fr)) 0.7fr;
}

.thu-ngan-goc-nhin-xuong .o-ngan-go-to-tien.ngan-to-tien {
  height: 34px;
  padding: 3px 2px 2px;
  border: 0 !important;
  border-top: 2px solid #422c1d !important;
  border-left: 2px solid #c29460 !important;
  border-radius: 0;
  background: #4e3b28 !important;
  box-shadow: inset 0 3px 3px #1f181466, 1px 1px 0 #bd915b !important;
}

.thu-ngan-goc-nhin-xuong .kep-sat-giu-xap-tien {
  top: -2px;
  left: 50%;
  width: 5px;
  height: 13px;
  border: 1px solid #777968;
  border-radius: 0 0 2px 2px;
  background: #b8baa1;
  box-shadow: 1px 1px 0 #292c2555;
}

.thu-ngan-goc-nhin-xuong .mat-to-tien-anh-that {
  border-color: #c4c29c;
  border-radius: 0;
}

/* Keep the original banknote artwork; enrich only money in this drawer. */
.thu-ngan-goc-nhin-xuong .hoc-trai-tien-viet .to-100k {
  --mau-to-tien: #62db79;
}

.thu-ngan-goc-nhin-xuong .hoc-trai-tien-viet .to-50k {
  --mau-to-tien: #f48db8;
}

.thu-ngan-goc-nhin-xuong .hoc-trai-tien-viet .to-20k {
  --mau-to-tien: #58c9ef;
}

.thu-ngan-goc-nhin-xuong .hoc-trai-tien-viet .to-10k {
  --mau-to-tien: #e4a15f;
}

.thu-ngan-goc-nhin-xuong .hoc-trai-tien-viet .to-5k {
  --mau-to-tien: #91a9ed;
}

.thu-ngan-goc-nhin-xuong .hoc-trai-tien-viet .to-2k {
  --mau-to-tien: #b5d95d;
}

.thu-ngan-goc-nhin-xuong .hoc-trai-tien-viet .to-1k {
  --mau-to-tien: #edc454;
}

.thu-ngan-goc-nhin-xuong .hoc-trai-tien-viet .to-500d {
  --mau-to-tien: #e58c9b;
}

.thu-ngan-goc-nhin-xuong .hoc-trai-tien-viet .anh-to-tien-that-vn {
  filter: saturate(1.12) contrast(1.06) brightness(1.03);
}

.thu-ngan-goc-nhin-xuong .hoc-trai-tien-viet .mat-to-tien-anh-that {
  isolation: isolate;
  border-color: var(--mau-to-tien, #e7d69e);
  background: var(--mau-to-tien, #e7d69e);
}

.thu-ngan-goc-nhin-xuong .hoc-trai-tien-viet .mat-to-tien-anh-that::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--mau-to-tien, transparent);
  opacity: 0.1;
  mix-blend-mode: color;
  pointer-events: none;
}

.thu-ngan-goc-nhin-xuong .hoc-trai-tien-viet .nhan-menh-gia-goc-to-tien {
  z-index: 2;
  border-color: var(--mau-to-tien, #e7d69e);
  border-radius: 1px;
  color: #fff8c2;
  background: #25332a;
  text-shadow: 0 1px 0 #142019;
}

.thu-ngan-goc-nhin-xuong .hoc-trai-tien-viet .lop-day-xap-tien {
  border-color: var(--mau-to-tien, #e7d69e);
}

.thu-ngan-goc-nhin-xuong .o-ngan-go-to-tien.ngan-to-tien:disabled {
  opacity: 0.9;
  filter: none;
}

.thu-ngan-goc-nhin-xuong .ngan-to-tien.goi-y-thoi {
  border-bottom: 2px solid #e5bf63 !important;
}

.thu-ngan-goc-nhin-xuong .ngan-to-tien.dang-chon-to {
  outline: 1px solid #f8e2a6;
  outline-offset: 1px;
}

.thu-ngan-goc-nhin-xuong .ngan-to-tien:focus-visible,
.thu-ngan-goc-nhin-xuong .nut-giao-tien-hoc-trai:focus-visible {
  outline: 2px solid #e9d795;
  outline-offset: 2px;
}

.thu-ngan-goc-nhin-xuong .ngan-keo-oishi {
  min-width: 0;
  height: 34px;
  padding: 1px;
  border: 1px solid #ab8252;
  border-radius: 0;
  background: #57422b;
  box-shadow: inset 0 2px 2px #241b1677;
}

.thu-ngan-goc-nhin-xuong .chan-hoc-trai-hanh-dong {
  flex-wrap: wrap;
  gap: 3px;
  min-height: 25px;
  padding: 3px;
  border: 1px solid #68452b;
  border-radius: 1px;
  background: #5b4029;
  box-shadow: inset 0 1px 0 #bd8c51;
}

.thu-ngan-goc-nhin-xuong .nhan-trang-thai-khay-tien {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 45%;
}

.thu-ngan-goc-nhin-xuong .tom-tat-thoi-hoc-trai {
  color: #f2db9d;
  font-size: 9px;
}

.thu-ngan-goc-nhin-xuong .khay-to-tien-dang-cam {
  flex: 1 0 100%;
  min-height: 20px;
}

.thu-ngan-goc-nhin-xuong .to-tien-mini-dang-cam {
  flex: 0 1 34px;
  min-width: 0;
}

.thu-ngan-goc-nhin-xuong .nut-xoa-tien-thoi {
  flex: 0 0 22px;
}

.thu-ngan-goc-nhin-xuong .so-to-cam-them {
  flex-shrink: 0;
}

.thu-ngan-goc-nhin-xuong .nut-giao-tien-hoc-trai {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 23px;
  padding: 3px;
  border: 1px solid #7e592d;
  border-radius: 2px;
  color: #432d19;
  background: #d4ad65;
  box-shadow: inset 0 1px 0 #f0d59b;
  font-size: 10px;
  animation: none;
}

.thu-ngan-goc-nhin-xuong .nut-giao-tien-hoc-trai.san-sang-thu {
  border-color: #365139;
  color: #f2f2d3;
  background: #526b45;
  box-shadow: inset 0 1px 0 #849a68;
  animation: none;
}

/* Full-width front apron closes both compartments of the same drawer. */
.thu-ngan-goc-nhin-xuong .go-mat-truoc-hoc-ban-that {
  grid-column: 1 / -1;
  position: relative;
  height: 16px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid #4b2f1d;
  border-top: 2px solid #d2a66b;
  border-radius: 0 0 2px 2px;
  background: #8a5a33;
  box-shadow: inset 0 -3px 0 #694126, 0 3px 2px #33231855;
}

.thu-ngan-goc-nhin-xuong .go-mat-truoc-hoc-ban-that .ke-dong-goc-hoc,
.thu-ngan-goc-nhin-xuong .mong-go-hoc-ban {
  display: none;
}

.thu-ngan-goc-nhin-xuong .op-go-noi-mat-truoc {
  height: 11px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.thu-ngan-goc-nhin-xuong .tay-nam-dong-hoc-ban {
  height: 5px;
  border: 1px solid #574020;
  border-radius: 2px;
  background: #b79a58;
  box-shadow: inset 0 1px 0 #e4ce87, 0 2px 0 #4a301f;
}

@media (max-width: 390px) {
  .thu-ngan-goc-nhin-xuong .hoc-trai-tien-viet {
    padding-right: 4px;
    padding-left: 4px;
  }

  .thu-ngan-goc-nhin-xuong .khay-go-chia-ngan-tien {
    margin: 0;
    padding-right: 2px;
    padding-left: 2px;
  }

  .thu-ngan-goc-nhin-xuong .hang-ngan-tien {
    gap: 3px;
  }

  .thu-ngan-goc-nhin-xuong .nhan-trang-thai-khay-tien {
    max-width: 100%;
  }

  .thu-ngan-goc-nhin-xuong .nut-giao-tien-hoc-trai {
    font-size: 9px;
  }
}
