/* Web Label ABO — tema: aluminium anodized (grafit, abu aluminium, biru-teal anodize, kuning gudang) */
@font-face { font-family: "Barlow"; src: url("../vendor/fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../vendor/fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../vendor/fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../vendor/fonts/barlow-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../vendor/fonts/barlow-semi-condensed-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../vendor/fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../vendor/fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --graphite: #1E2A31;
  --steel: #5B6B74;
  --alu-50: #F1F3F4;
  --alu-100: #E6EAEC;
  --alu-200: #D3D9DD;
  --panel: #FFFFFF;
  --anodize: #0B6E8A;
  --anodize-deep: #08566C;
  --anodize-soft: #E2F0F4;
  --amber: #B8730A;
  --amber-soft: #FBF0DD;
  --ok: #2E7A4C;
  --ok-soft: #E3F1E8;
  --danger: #B3362B;

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-cond: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;

  --bs-body-font-family: var(--font);
  --bs-body-font-size: 0.975rem;
  --bs-body-color: var(--graphite);
  --bs-body-bg: var(--alu-50);
  --bs-border-color: var(--alu-200);
  --bs-primary: var(--anodize);
  --bs-primary-rgb: 11, 110, 138;
  --bs-link-color: var(--anodize);
  --bs-link-color-rgb: 11, 110, 138;
  --bs-link-hover-color: var(--anodize-deep);
  --bs-focus-ring-color: rgba(11, 110, 138, .3);
}

html { scroll-padding-top: 76px; }                       /* anchor / fokus tidak tertutup navbar sticky */
body { font-feature-settings: "tnum" 1; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
body > main { flex: 1 0 auto; }
h1, h2, h3, .h5 { font-family: var(--font-cond); letter-spacing: .005em; }
:focus-visible { outline: 2px solid var(--anodize); outline-offset: 2px; }

.btn { font-weight: 600; border-radius: 6px; }
.btn-primary { --bs-btn-bg: var(--anodize); --bs-btn-border-color: var(--anodize); --bs-btn-hover-bg: var(--anodize-deep);
  --bs-btn-hover-border-color: var(--anodize-deep); --bs-btn-active-bg: var(--anodize-deep); --bs-btn-active-border-color: var(--anodize-deep);
  --bs-btn-disabled-bg: var(--anodize); --bs-btn-disabled-border-color: var(--anodize); }
.btn-outline-secondary { --bs-btn-color: var(--graphite); --bs-btn-border-color: var(--alu-200); --bs-btn-hover-bg: var(--alu-100);
  --bs-btn-hover-color: var(--graphite); --bs-btn-hover-border-color: var(--steel); --bs-btn-active-bg: var(--graphite);
  --bs-btn-active-border-color: var(--graphite); --bs-btn-active-color: #fff; }
.form-control, .form-select { border-radius: 6px; background-color: #fff; }
.form-control:disabled, .form-select:disabled, .form-control[readonly] { background-color: var(--alu-100); }
.ts-wrapper .ts-control, .ts-wrapper.single.input-active .ts-control { background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--anodize); box-shadow: 0 0 0 .2rem rgba(11, 110, 138, .18); }

/* ---------- navigasi ---------- */
.app-nav { background: var(--graphite); padding: .4rem 0; position: sticky; top: 0; z-index: 1030; transition: box-shadow .2s ease; }
.app-nav.scrolled { box-shadow: 0 6px 18px -8px rgba(15, 26, 32, .55); }
@media (max-width: 991.98px) {
  .app-nav .navbar-collapse { max-height: calc(100vh - 64px); overflow-y: auto; overscroll-behavior: contain; }
}
.app-nav .navbar-brand { color: #fff; font-family: var(--font-cond); font-size: 1.2rem; display: flex; align-items: center; gap: .55rem; }
.app-nav .navbar-brand b { font-weight: 700; color: #8FD3E6; }
.brand-tag { width: 22px; height: 15px; border-radius: 3px; background: var(--anodize); position: relative; display: inline-block; }
.brand-tag::before, .brand-tag::after { content: ""; position: absolute; left: 4px; height: 2px; border-radius: 1px; background: #fff; }
.brand-tag::before { top: 4px; width: 14px; }
.brand-tag::after { top: 9px; width: 8px; opacity: .7; }
.app-nav .navbar-toggler { color: #fff; border-color: rgba(255,255,255,.25); font-size: 1.4rem; }
.app-nav .nav-link { color: #C4CED3; font-family: var(--font-cond); font-weight: 600; font-size: 1.02rem; display: flex; align-items: center; gap: .4rem;
  padding: .55rem .85rem !important; border-radius: 6px; }
.app-nav .nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.app-nav .nav-link.active { color: #fff; background: rgba(143, 211, 230, .14); box-shadow: inset 0 -2px 0 #8FD3E6; }
.nav-account { color: #fff; display: flex; align-items: center; gap: .5rem; border: 1px solid rgba(255,255,255,.18); padding: .25rem .6rem .25rem .3rem; }
.nav-account:hover, .nav-account:focus { color: #fff; border-color: rgba(255,255,255,.4); }
.nav-account-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; }
.avatar-initial { background: var(--anodize); color: #fff; font-weight: 700; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.6rem; }
@media (max-width: 991.98px) { .app-nav .navbar-collapse { padding: .6rem 0; } .nav-account { margin-top: .5rem; } }

.nav-help { color: #C4CED3; display: flex; align-items: center; gap: .35rem; margin-right: .5rem; border: 0; font-family: var(--font-cond);
  font-weight: 600; padding: .4rem .7rem; border-radius: 6px; }
.nav-help:hover, .nav-help:focus { color: #fff; background: rgba(255,255,255,.08); }
@media (max-width: 991.98px) { .nav-help { margin: .4rem 0; padding-left: .85rem; } }

/* ---------- panduan (Driver.js) ---------- */
.driver-popover.wla-tour { font-family: var(--font); color: var(--graphite); border-radius: 12px; padding: 18px 18px 14px;
  max-width: 360px; box-shadow: 0 18px 40px -12px rgba(30, 42, 49, .45); }
.driver-popover.wla-tour .driver-popover-title { font-family: var(--font-cond); font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.driver-popover.wla-tour .driver-popover-description { font-size: .93rem; line-height: 1.5; color: #3C4A52; }
.driver-popover.wla-tour .driver-popover-description code { font-size: .85rem; color: var(--anodize-deep); }
.driver-popover.wla-tour .driver-popover-description .exp { font-size: .78rem; padding: .05rem .45rem; margin: .1rem 0; }
.driver-popover.wla-tour .driver-popover-progress-text { color: var(--steel); font-size: .82rem; }
.driver-popover.wla-tour .driver-popover-footer button { font-family: var(--font); font-weight: 600; font-size: .88rem; text-shadow: none;
  border-radius: 6px; padding: .35rem .8rem; border: 1px solid var(--alu-200); background: #fff; color: var(--graphite); }
.driver-popover.wla-tour .driver-popover-footer .driver-popover-next-btn { background: var(--anodize); border-color: var(--anodize); color: #fff; }
.driver-popover.wla-tour .driver-popover-footer .driver-popover-next-btn:hover { background: var(--anodize-deep); }
.driver-popover.wla-tour .driver-popover-close-btn { color: var(--steel); }
.tour-rule { display: flex; gap: .5rem; margin-top: .6rem; padding: .5rem .6rem; border-radius: 8px; background: var(--amber-soft);
  color: #6B4500; font-size: .88rem; }
.tour-rule i { margin-top: .1rem; }

/* ---------- struktur halaman ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.page-head h1 { font-size: 1.85rem; font-weight: 700; margin: 0; }
.page-sub { color: var(--steel); margin: .15rem 0 0; max-width: 70ch; }
.panel { background: var(--panel); border: 1px solid var(--alu-200); border-radius: 10px; padding: 1.15rem 1.25rem; }
.panel h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 .75rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .6rem; }
.panel-head h2 { margin: 0; }
.panel-note { color: var(--steel); font-size: .9rem; margin: -.35rem 0 .75rem; }

/* ---------- KPI ---------- */
.kpi-strip { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; overflow: hidden; }
.kpi { padding: 1.1rem 1.35rem 1rem; display: flex; flex-direction: column; gap: .1rem; border-left: 1px solid var(--alu-200); }
.kpi:first-child { border-left: 0; }
.kpi-label { font-family: var(--font-cond); font-weight: 600; color: var(--steel); font-size: 1rem; }
.kpi-value { font-family: var(--font-cond); font-weight: 700; font-size: 2.6rem; line-height: 1.05; }
.kpi-foot { color: var(--steel); font-size: .88rem; }
.kpi-ok .kpi-value { color: var(--ok); }
.kpi-wait .kpi-value { color: var(--amber); }
.kpi-bar { grid-column: 1 / -1; height: 6px; background: var(--amber); display: flex; }
.kpi-bar-ok { display: block; height: 100%; width: 0; background: var(--ok); transition: width .6s ease; }
@media (max-width: 575.98px) {
  .kpi-strip { grid-template-columns: 1fr; }
  .kpi { border-left: 0; border-top: 1px solid var(--alu-200); flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
  .kpi:first-child { border-top: 0; }
  .kpi-label { flex: 1 0 100%; }
  .kpi-value { font-size: 2rem; }
}

.chart-box { position: relative; height: 300px; width: 100%; min-width: 0; }
@media (max-width: 575.98px) { .chart-box { height: 240px; } .bc-chart { height: 200px; } }

/* ---------- tabel ---------- */
.table-tools { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.table-tools .form-select { width: auto; }
.search-box { position: relative; }
.search-box i { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); color: var(--steel); font-size: .85rem; }
.search-box input { padding-left: 1.85rem; min-width: 230px; }
@media (max-width: 575.98px) {
  .table-tools { width: 100%; }
  .table-tools > * { flex: 1 1 140px; }
  .search-box { flex-basis: 100%; }
  .search-box input { min-width: 0; width: 100%; }
}
.stable .table { margin: 0; font-size: .92rem; }
.stable .table-wrap { overflow-x: auto; border: 1px solid var(--alu-200); border-radius: 8px; }
.stable thead th { font-family: var(--font-cond); font-weight: 600; color: var(--steel); background: var(--alu-50); white-space: nowrap;
  border-bottom: 1px solid var(--alu-200); position: sticky; top: 0; }
.stable th.sortable { cursor: pointer; user-select: none; }
.stable th.sortable:hover { color: var(--graphite); }
.stable th .sort-ind { opacity: .35; margin-left: .25rem; font-size: .75rem; }
.stable th[aria-sort="ascending"] .sort-ind, .stable th[aria-sort="descending"] .sort-ind { opacity: 1; color: var(--anodize); }
.stable td { vertical-align: middle; border-color: var(--alu-100); white-space: nowrap; }
.stable td.wrap { white-space: normal; min-width: 260px; }
.stable .result-actions { flex-wrap: nowrap; }
.stable tbody tr:hover td { background: #F7F9FA; }
.stable .nowrap { white-space: nowrap; }
.stable .num { text-align: right; font-variant-numeric: tabular-nums; }
.stable-foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding-top: .65rem; color: var(--steel);
  font-size: .88rem; flex-wrap: wrap; }
.stable-empty { text-align: center; color: var(--steel); padding: 2rem 1rem !important; }
.st-badge { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; font-size: .8rem; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; }
.st-ok { background: var(--ok-soft); color: var(--ok); }
.st-wait { background: var(--amber-soft); color: var(--amber); }
.st-off { background: var(--alu-100); color: var(--steel); }
.st-err { background: #F8E2DF; color: var(--danger); }
.skeleton { height: 1rem; border-radius: 4px; background: linear-gradient(90deg, var(--alu-100), var(--alu-50), var(--alu-100)); background-size: 200% 100%;
  animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- tab halaman ---------- */
.label-tabs { border-bottom: 1px solid var(--alu-200); margin-bottom: 1rem; gap: .25rem; }
.label-tabs .nav-link { font-family: var(--font-cond); font-weight: 600; font-size: 1.02rem; color: var(--steel); border: 0;
  border-bottom: 3px solid transparent; border-radius: 0; padding: .55rem .9rem; background: none; }
.label-tabs .nav-link:hover { color: var(--graphite); border-bottom-color: var(--alu-200); }
.label-tabs .nav-link.active { color: var(--anodize-deep); border-bottom-color: var(--anodize); background: none; }
.tab-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .75rem; flex-wrap: wrap; }
.app-nav .dropdown-menu { border-radius: 8px; border-color: var(--alu-200); box-shadow: 0 12px 28px -12px rgba(30,42,49,.35); }
.app-nav .dropdown-item.active, .app-nav .dropdown-item:active { background: var(--anodize); }

/* ---------- TO BC (unggah) ---------- */
.dropzone { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; padding: 1.75rem 1rem;
  border: 2px dashed var(--alu-200); border-radius: 12px; background: var(--alu-50); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--anodize); background: var(--anodize-soft); }
.dropzone:focus-within { outline: 2px solid var(--anodize); outline-offset: 2px; }
.dropzone > i { font-size: 2rem; color: var(--anodize); }
.dz-title { font-family: var(--font-cond); font-weight: 600; font-size: 1.1rem; }
.dz-rule { color: var(--steel); font-size: .88rem; max-width: 52ch; }
.file-list { display: flex; flex-direction: column; gap: .4rem; margin-top: .75rem; }
.file-item, .pending-item { display: flex; align-items: center; gap: .65rem; padding: .5rem .65rem; border: 1px solid var(--alu-200);
  border-radius: 8px; background: #fff; }
.file-item > i, .pending-item > i { font-size: 1.25rem; color: #1E7145; }
.pending-item > i { color: var(--amber); font-size: 1rem; }
.file-item.bad { border-color: #E3B4AE; background: #FDF4F3; }
.file-item.bad > i { color: var(--danger); }
.file-main { flex: 1; min-width: 0; }
.file-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { color: var(--steel); font-size: .82rem; }
.file-del { color: var(--steel); }
.pending-list { display: flex; flex-direction: column; gap: .4rem; max-height: 420px; overflow-y: auto; }
.pending-count { font-family: var(--font-cond); font-weight: 600; color: var(--steel); }

/* ---------- TO BC: proses ---------- */
.run-status { margin-top: .9rem; }
.run-card { border: 1px solid var(--alu-200); border-left: 4px solid var(--steel); border-radius: 10px; padding: .85rem 1rem; background: #fff; }
.run-card.running { border-left-color: var(--anodize); }
.run-card.ok { border-left-color: var(--ok); }
.run-card.warn { border-left-color: var(--amber); }
.run-card.fail { border-left-color: var(--danger); }
.run-top { display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; flex-wrap: wrap; }
.run-last { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--steel); font-weight: 600; margin-bottom: .2rem; }
.run-title { font-family: var(--font-cond); font-weight: 700; font-size: 1.1rem; }
.run-meta { color: var(--steel); font-size: .9rem; }
.run-progress { height: 8px; margin-top: .6rem; border-radius: 999px; background: var(--alu-100); }
.run-progress .progress-bar { background: var(--anodize); transition: width .6s ease; }
.run-steps { font-size: .88rem; margin: 0; }
.run-steps tr.now td { background: var(--anodize-soft); }
.run-files { max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: .4rem; }
.run-file { border: 1px solid var(--alu-200); border-radius: 8px; padding: .45rem .6rem; }
.run-file.dobel, .run-file.error { border-color: #E3B4AE; background: #FDF4F3; }
.run-file.dobel_ok { border-color: #EED9A6; background: #FFFBF0; }
.dup-findings { margin: .3rem 0 0; padding-left: 1.1rem; font-size: .85rem; color: #6B4500; }
.dup-item { border: 1px solid #EED9A6; background: #FFFBF0; border-radius: 8px; padding: .5rem .65rem; margin-bottom: .45rem; }
.run-log { font-size: .78rem; background: #0F1A20; color: #D7E2E8; border-radius: 8px; padding: .9rem; white-space: pre-wrap; max-height: 70vh; }
.run-hist-title { font-family: var(--font-cond); font-weight: 700; color: var(--steel); }

/* ---------- TO outstanding BC ---------- */
.section-head { margin-top: 2.25rem; }
.h1-sub { font-size: 1.5rem; font-weight: 700; margin: 0; }
.bc-panel { padding: 1.35rem 1.5rem 1.25rem; }
.bc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.bc-head h2 { margin: 0 0 .2rem; font-size: 1.3rem; }
.bc-meta { margin: 0; color: var(--steel); font-size: .88rem; }
.bc-meta i { margin-right: .35rem; }
.bc-meta b { color: var(--graphite); font-weight: 600; }
.btn-outline-primary { --bs-btn-color: var(--anodize); --bs-btn-border-color: var(--anodize); --bs-btn-hover-bg: var(--anodize);
  --bs-btn-hover-border-color: var(--anodize); --bs-btn-active-bg: var(--anodize-deep); --bs-btn-disabled-color: var(--anodize);
  --bs-btn-disabled-border-color: var(--anodize); }
.bc-sync-btn { border-radius: 999px; padding: .35rem .9rem; }
.bc-head-side { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.mini-cal { display: flex; align-items: stretch; border: 1px solid var(--alu-200); border-radius: 10px; overflow: hidden; background: #fff; }
.mc-leaf { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 54px; background: var(--anodize-soft); }
.mc-mon { width: 100%; text-align: center; background: var(--anodize); color: #fff; font-family: var(--font-cond); font-weight: 700;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: .1rem 0; }
.mc-num { font-family: var(--font-cond); font-weight: 700; font-size: 1.45rem; line-height: 1.15; color: var(--anodize-deep); padding: .1rem 0 .15rem; }
.mc-info { display: flex; flex-direction: column; justify-content: center; padding: .3rem .75rem; min-width: 190px; }
.mc-day { font-size: .8rem; color: var(--steel); white-space: nowrap; }
.mc-time { font-family: var(--font-cond); font-weight: 700; font-size: 1.35rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mc-time small { font-size: .72rem; color: var(--steel); font-weight: 600; }
@media (max-width: 575.98px) { .bc-head-side { width: 100%; justify-content: space-between; } .mc-info { min-width: 0; } }
.bc-overview { display: grid; grid-template-columns: minmax(180px, 230px) minmax(0, 1fr); gap: 1.5rem; align-items: stretch;
  padding: 1rem 0 1.25rem; border-top: 1px solid var(--alu-100); border-bottom: 1px solid var(--alu-100); }
.bc-big { font-family: var(--font-cond); font-weight: 700; font-size: 3.2rem; line-height: 1; letter-spacing: -.01em; }
.bc-big-label { color: var(--steel); margin-bottom: 1rem; }
.bc-facts { display: grid; grid-template-columns: 1fr auto; row-gap: .35rem; margin: 0; font-size: .92rem; }
.bc-facts dt { color: var(--steel); font-weight: 400; }
.bc-facts dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.bc-chart-title { font-family: var(--font-cond); font-weight: 600; margin-bottom: .35rem; }
.bc-chart-title span { font-family: var(--font); font-weight: 400; font-size: .85rem; }
.bc-overview > * { min-width: 0; }                     /* grid item boleh menyusut: canvas diagram tidak melebar */
.bc-chart { position: relative; height: 220px; width: 100%; min-width: 0; }
.bc-tools { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin: 1rem 0 .6rem; }
.bc-filter-note { color: var(--steel); font-size: .9rem; }
.bc-filter-note button { border: 0; background: none; color: var(--anodize); padding: 0 .2rem; font-size: .9rem; text-decoration: underline; }
@media (max-width: 767.98px) {
  .bc-overview { grid-template-columns: 1fr; gap: 1rem; }
  .bc-big { font-size: 2.6rem; }
}
/* waktu pemrosesan: isi warna lembut + teks berwarna */
.exp { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .85rem; border-radius: 999px;
  padding: .18rem .65rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.exp::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.exp-merah { background: #FDECEA; color: #B42318; }
.exp-kuning { background: #FEF3D7; color: #8A5A00; }
.exp-hijau { background: #E5F3EA; color: #1E6B42; }
.exp-belum { background: var(--alu-100); color: var(--steel); }
.jenis { font-weight: 600; font-size: .78rem; letter-spacing: .02em; padding: .12rem .5rem; border-radius: 4px; background: var(--alu-100); color: var(--steel); }
.jenis-ACC { background: var(--anodize-soft); color: var(--anodize-deep); }

/* ---------- halaman label ---------- */
.mono-input { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92rem; }
.queue { border: 1px dashed var(--alu-200); border-radius: 8px; padding: .65rem .75rem; background: var(--alu-50); }
.queue-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-cond); font-weight: 600; color: var(--steel); margin-bottom: .45rem; }
.queue-list { display: flex; flex-wrap: wrap; gap: .35rem; max-height: 140px; overflow-y: auto; }
.queue-empty { color: var(--steel); font-size: .9rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--panel); border: 1px solid var(--alu-200); border-radius: 5px;
  padding: .12rem .45rem; font-family: ui-monospace, Consolas, monospace; font-size: .82rem; }
.chip.bad { border-color: #E3B4AE; background: #FBEDEB; color: var(--danger); }
.chip button { border: 0; background: none; padding: 0; line-height: 1; color: var(--steel); }
.chip button:hover { color: var(--danger); }

.result-area { display: flex; flex-direction: column; gap: .6rem; }
.empty-state { text-align: center; color: var(--steel); padding: 2.5rem 1rem; border: 1px dashed var(--alu-200); border-radius: 8px; }
.empty-state i { font-size: 2rem; color: var(--alu-200); }
.empty-state p { margin: .4rem 0 0; }
.result-item { border: 1px solid var(--alu-200); border-left: 4px solid var(--ok); border-radius: 8px; padding: .7rem .85rem; display: flex;
  justify-content: space-between; gap: .75rem; align-items: center; flex-wrap: wrap; }
.result-item.fail { border-left-color: var(--danger); }
.result-item.info { border-left-color: var(--amber); }
.result-title { font-family: var(--font-cond); font-weight: 700; font-size: 1.05rem; }
.result-meta { color: var(--steel); font-size: .88rem; }
.result-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.result-summary { font-weight: 600; }
.progress-note { display: flex; gap: .6rem; align-items: center; color: var(--steel); padding: 1.2rem; border: 1px dashed var(--alu-200); border-radius: 8px; }
.confirm-group { margin-bottom: .9rem; }
.confirm-group h3 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; display: flex; align-items: center; gap: .4rem; }
.confirm-group ul { margin: 0; padding-left: 1.1rem; font-size: .92rem; }
.confirm-group .muted { color: var(--steel); }

/* Tom Select menyesuaikan tema */
.ts-wrapper.multi .ts-control > div { background: var(--anodize-soft); color: var(--anodize-deep); border-radius: 4px; font-size: .85rem; }
.ts-dropdown .option .opt-meta { color: var(--steel); font-size: .82rem; }
.ts-dropdown .active { background: var(--anodize-soft); color: var(--graphite); }
.focus .ts-control { border-color: var(--anodize) !important; box-shadow: 0 0 0 .2rem rgba(11, 110, 138, .18) !important; }

/* ---------- pengaturan kertas ---------- */
.field-group { border-top: 1px solid var(--alu-100); padding: .75rem 0 .85rem; }
.field-group legend { font-family: var(--font-cond); font-weight: 600; font-size: 1rem; color: var(--steel); float: none; margin-bottom: .35rem; }
.field-group .form-label { font-size: .88rem; margin-bottom: .2rem; }
.preview-box { background: var(--alu-50); border: 1px solid var(--alu-200); border-radius: 8px; padding: .75rem; }
.preview-box svg { display: block; width: 100%; height: auto; max-height: 62vh; }
.advanced { border-top: 1px solid var(--alu-100); padding-top: .6rem; margin-bottom: .4rem; }
.advanced > summary { font-family: var(--font-cond); font-weight: 600; color: var(--steel); cursor: pointer; padding: .2rem 0 .5rem; }
.advanced > summary:hover { color: var(--graphite); }
.tips { color: var(--steel); font-size: .9rem; padding-left: 1.1rem; }
.tips li + li { margin-top: .3rem; }
.paper-pick { display: flex; align-items: center; gap: .5rem; }
.paper-pick .form-select { flex: 1; }

/* ---------- admin & profil ---------- */
.admin-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.admin-list li { background: var(--alu-50); border: 1px solid var(--alu-200); border-radius: 6px; padding: .3rem .65rem; display: flex; gap: .4rem; align-items: center; }
.admin-list i { color: var(--anodize); }
.profile-card { max-width: 640px; }
.profile-id { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.1rem; }
.profile-name { font-family: var(--font-cond); font-weight: 700; font-size: 1.4rem; }
.profile-meta { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin-bottom: 1.25rem; }
.profile-meta dt { color: var(--steel); font-weight: 500; }
.profile-meta dd { margin: 0; }
.error-panel { max-width: 520px; margin: 3rem auto; text-align: center; padding: 2.5rem; }
.error-code { font-family: var(--font-cond); font-weight: 700; font-size: 4rem; color: var(--alu-200); line-height: 1; }
.error-msg { font-size: 1.1rem; margin: .75rem 0 1.5rem; }

/* ---------- footer ---------- */
.app-footer { border-top: 1px solid var(--alu-200); padding: .9rem 0; color: var(--steel); font-size: .85rem; }
.app-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; }
.app-footer-by { display: inline-flex; align-items: center; gap: .45rem; }
.app-footer-logo { height: 24px; width: auto; display: inline-block; }
.app-footer-ver { font-variant-numeric: tabular-nums; }
.login-page .app-footer { border-top-color: rgba(255,255,255,.08); color: #9DAAB1; }
@media (max-width: 575.98px) { .app-footer-inner { justify-content: center; text-align: center; } }

/* ---------- login: stiker label sebagai elemen utama ---------- */
.login-page { background: var(--graphite); min-height: 100vh; }
.login-wrap { display: flex; align-items: center; padding: 2rem 1rem; }
.login-wrap > .alert { position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 10; min-width: min(480px, 92vw); }
.login-grid { width: min(980px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.05fr; background: var(--panel);
  border-radius: 14px; overflow: hidden; }
.login-panel { padding: 2.75rem 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.login-brand { font-family: var(--font-cond); font-size: 1.25rem; display: flex; align-items: center; gap: .55rem; margin-bottom: 2rem; }
.login-brand b { color: var(--anodize); }
.login-panel h1 { font-size: 2.1rem; font-weight: 700; line-height: 1.1; margin-bottom: .75rem; max-width: 16ch; }
.lead-text { color: var(--steel); max-width: 42ch; margin-bottom: 1.75rem; }
.btn-google { background: #fff; color: var(--graphite); border: 1px solid var(--alu-200); padding: .7rem 1rem; display: flex; align-items: center;
  justify-content: center; gap: .65rem; font-size: 1.02rem; }
.btn-google:hover { background: var(--alu-50); border-color: var(--steel); color: var(--graphite); }
.login-note { color: var(--steel); font-size: .88rem; margin: 1rem 0 0; display: flex; gap: .45rem; align-items: center; }
.login-visual { background: var(--alu-100); background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 1px, transparent 1px 7px);
  display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; }
.sticker-sheet { background: #fff; border-radius: 4px; padding: 14px; display: grid; gap: 10px; box-shadow: 0 18px 40px -18px rgba(30, 42, 49, .45);
  transform: rotate(-4deg); }
.sticker { width: 290px; border: 1.5px dashed #C3CBD0; border-radius: 6px; padding: 10px 14px 12px; font-family: Arial, Helvetica, sans-serif; }
.sticker.ghost { height: 34px; opacity: .55; }
.sticker-title { text-align: center; font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; padding-bottom: 4px; margin-bottom: 6px;
  border-bottom: 1px solid #E3E7EA; }
.sticker dl { display: grid; grid-template-columns: 74px 1fr; margin: 0; font-size: .86rem; font-weight: 700; row-gap: 3px; align-items: center; }
.sticker dt { font-weight: 700; display: flex; justify-content: space-between; padding-right: 8px; }
.sticker dt::after { content: ":"; }
.sticker dd { margin: 0; text-align: center; white-space: nowrap; }
@media (max-width: 767.98px) {
  .login-grid { grid-template-columns: 1fr; }
  .login-visual { order: -1; padding: 1.75rem 1rem; }
  .sticker-sheet { transform: rotate(-2deg) scale(.9); }
  .login-panel { padding: 2rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- layar kecil: diletakkan paling akhir agar menimpa aturan di atas ---------- */
@media (max-width: 575.98px) {
  .page-head h1 { font-size: 1.55rem; }
  .panel, .bc-panel { padding: 1rem .9rem; }
  .kpi-value { font-size: 2rem; }
  .bc-head-side { width: 100%; }
  .mini-cal { flex: 1; }
  .modal-dialog { margin: .5rem; }
  .result-item { flex-direction: column; align-items: stretch; }
  .result-actions { flex-wrap: wrap; }
  .login-panel h1 { font-size: 1.7rem; }
}
