* { box-sizing: border-box; }
body.receipt-detail {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 18px 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f2f3f5;
  color: #1a1f25;
}
body.receipt-detail #root { width: 100%; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; }
.bilah {
  width: min(100%, 410px);
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 4px;
}
.bilah a:not(.merek) {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #36414d;
}
.bilah a:hover { background: #e3e6ea; }
.bilah .sela { flex: 1; }
.bilah .merek { color: #0071e3; font-size: 16px; font-weight: 900; letter-spacing: -.08em; text-decoration: none; }
.isi { flex: 1; width: 100%; display: flex; justify-content: center; align-items: flex-start; padding: 14px 0 30px; }
.lembar { width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 0 10px; }
/* Satuan cqw menjaga perbandingan kertas 80 mm terhadap lebar layar, seperti printer POS. */
.kertas {
  container-type: inline-size;
  width: 400px;
  max-width: 100%;
  background: #fff;
  color: #000;
  border: 1px solid #e3e6ea;
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(16, 24, 32, .1);
  font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;
  line-height: 1.26;
}
.kertas p { margin: 0; }
.lapis { padding: 2.8cqw 1.39cqw 2.1cqw; }
.judul { text-align: center; font-size: 6.9cqw; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.peng { text-align: center; font-size: 3.47cqw; margin-top: .7cqw !important; overflow-wrap: anywhere; }
.nomor { text-align: center; font-size: 3.47cqw; font-weight: 700; overflow-wrap: anywhere; }
.nomor.rapat { letter-spacing: .42em; padding-left: .42em; margin-top: .7cqw; }
.nomor.renggang { letter-spacing: .58em; padding-left: .58em; margin: 1.39cqw 0; }
.garis { height: 2px; background: #000; margin: 1.56cqw 0; }
.blok { display: flex; align-items: center; }
.qr { flex: 0 0 40.3cqw; width: 40.3cqw; height: 40.3cqw; display: block; }
.detail { flex: 1; min-width: 0; font-size: 3.8cqw; }
.detail > div { display: flex; gap: .1em; }
.detail .k { flex: 0 0 7.5ch; }
.detail .v { min-width: 0; overflow-wrap: anywhere; }
.detail .pos { font-size: 4.34cqw; font-weight: 700; overflow-wrap: anywhere; }
.blok.masuk { gap: 1.39cqw; }
.blok.masuk .detail { min-height: 40.3cqw; display: flex; flex-direction: column; }
.blok.masuk .detail > div { flex: 1; align-items: flex-start; }
.blok.keluar { gap: 3.1cqw; }
.blok.keluar .detail > div { line-height: 1.55; }
.jumlah { text-align: center; font-size: 6.9cqw; font-weight: 700; margin: 1.39cqw 0 !important; }
.kodebar { display: block; width: 97.2cqw; margin: 0 auto; }
.kodebar.masuk { height: 12cqw; }
.kodebar.keluar { height: 10cqw; }
.catatan { text-align: center; font-size: 3.47cqw; margin-top: 1.39cqw !important; overflow-wrap: anywhere; }
.kaki { display: flex; align-items: center; justify-content: center; gap: 1.2cqw; font-size: 3.3cqw; margin-top: 1.39cqw !important; }
.kaki strong { font-size: 4cqw; color: #0071e3; letter-spacing: -.08em; }
@media (max-width: 460px) {
  body.receipt-detail { width: 100%; max-width: 100vw; padding: 0 10px 18px; }
  .isi, .lembar { min-width: 0; }
}
@media print {
  body.receipt-detail { background: #fff; padding: 0; }
  .bilah { display: none; }
  .isi, .lembar { padding: 0; gap: 0; }
  .kertas { width: 100%; max-width: none; border: 0; box-shadow: none; page-break-after: always; }
}
body.receipt-help {
  margin: 0;
  min-height: 100dvh;
  background: #45a7ff;
  color: #17212b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.receipt-help #root { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; }
.help-nav { width: min(100%, 460px); display: flex; justify-content: space-between; align-items: center; padding: 18px 16px; }
.help-nav a { color: #17212b; font-size: 13px; text-decoration: none; }
.help-nav span { font-size: 14px; color: #006deb; font-weight: 700; }
.help-page { width: 100%; flex: 1; display: grid; place-items: center; padding: 16px; }
.help-card {
  width: min(100%, 390px);
  padding: 26px 24px;
  border: 1px solid rgba(27, 50, 66, .14);
  border-radius: 16px;
  background: rgba(223, 232, 239, .82);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .1);
}
.help-card h1 { margin: 0 0 18px; font-size: 21px; }
.help-card p { margin: 12px 0 0; color: #314f63; font-size: 13px; line-height: 1.5; }
.help-card strong { color: #17212b; }
.help-footer { width: min(100%, 440px); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #314f63; font-size: 11px; }
.help-footer button { border: 0; background: transparent; color: #17212b; cursor: pointer; padding: 6px; font-weight: 700; }
:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17212b;
  background: #45a7ff;
  --receipt-glass-bg: rgba(255, 255, 255, .14);
  --receipt-glass-blur: blur(18px) saturate(128%);
}
* { box-sizing: border-box; }
html, body, #root { min-width: 0; min-height: 100%; margin: 0; }
body.receipt-search #root {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100dvh;
  overflow: hidden;
}
.search-sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(150deg, #56b0ff 0%, #45a7ff 53%, #75c3ff 100%);
}
.search-sky::before, .search-sky::after {
  content: "";
  position: absolute;
  width: min(68vw, 880px);
  aspect-ratio: 1;
  opacity: .78;
  filter: blur(7px);
  background: url("/cloud10.svg") center / contain no-repeat;
}
.search-sky::before { top: -18%; left: -14%; transform: rotate(12deg); }
.search-sky::after { right: -15%; bottom: -26%; transform: rotate(-18deg); }
.search-main {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  min-height: 0;
  margin: auto;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.search-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.search-logo {
  display: block;
  width: auto;
  height: 48px;
  object-fit: contain;
}
.search-main h1 { margin: 0; color: #314f63; font-size: 15px; font-weight: 400; line-height: 1.3; }
.search-card {
  width: 100%;
  padding: 32px 24px;
  display: grid;
  gap: 14px;
  border-radius: 16px;
  background: var(--receipt-glass-bg);
  box-shadow: inset 0 0 10px -4px rgba(255, 255, 255, .16),
    inset 0 0 26px -10px rgba(255, 255, 255, .22),
    0 4px 14px rgba(0, 0, 0, .12);
  backdrop-filter: var(--receipt-glass-blur);
  -webkit-backdrop-filter: var(--receipt-glass-blur);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .search-card { background: rgba(223, 232, 239, .92); }
}
.search-card input, .search-card button { width: 100%; border-radius: 10px; font: inherit; }
.search-card input {
  height: 60px;
  border: 1px solid rgba(27, 50, 66, .15);
  padding: 12px 14px;
  background: rgba(248, 250, 252, .9);
  color: #17212b;
  outline: none;
  text-align: center;
  font-size: 21px;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
}
.search-card input::placeholder { color: #486071; font-size: 15px; letter-spacing: 0; }
.search-card input:focus-visible { border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0, 113, 227, .2); }
.search-card button {
  min-height: 46px;
  padding: 10px;
  border: 0;
  background: #0071e3;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.search-card button:hover { background: #0067d2; }
.search-card button:disabled { opacity: .55; cursor: default; }
.search-message { margin: 0; text-align: center; color: #17212b; font-size: 13px; }
.search-footer {
  position: relative;
  z-index: 1;
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 3px clamp(8px, 4vw, 24px);
  color: #314f63;
  background: rgba(255, 255, 255, .3);
  border-top: 1px solid rgba(255, 255, 255, .3);
  font-size: 10px;
}
.search-footer button {
  min-height: 28px;
  border: 0;
  padding: 4px 6px;
  background: transparent;
  color: #17212b;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.search-footer button:hover { background: rgba(120, 120, 128, .12); border-radius: 6px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.not-found { min-height: 100dvh; display: grid; place-content: center; gap: 12px; text-align: center; }
.not-found a { color: #005dbb; }
@media (max-width: 600px) {
  .search-main { padding: 36px 16px; }
  .search-card { padding: 24px 18px; }
  .search-card input { font-size: 18px; }
  .search-sky::before, .search-sky::after { width: 110vw; }
  .search-sky::before { top: 18%; left: -35%; }
  .search-sky::after { right: -35%; bottom: 12%; }
}
