/* ============================================================
   SoftWave — Pages / Dashboard Styles
   File: css/pages.css
   ============================================================ */

/* ── KPI CARDS ──────────────────────────────────────────── */
.kpi {
  background: var(--white); border:1px solid var(--sb); border-radius:18px;
  padding:22px 24px; position:relative; overflow:hidden;
  transition:all .25s; box-shadow:var(--shadow);
}
.kpi:hover { transform:translateY(-3px); box-shadow:var(--shadow-lg); }
.kpi::before { content:''; position:absolute; top:0; left:0; right:0;
  height:3px; border-radius:3px 3px 0 0; }
.k1::before { background:linear-gradient(90deg,var(--c1),#38bdf8); }
.k2::before { background:linear-gradient(90deg,var(--c2),#818cf8); }
.k3::before { background:linear-gradient(90deg,var(--wr),#fbbf24); }
.k4::before { background:linear-gradient(90deg,var(--er),#f87171); }
.kico  { font-size:26px; margin-bottom:12px; display:block; }
.knum  { font-size:36px; font-weight:800; font-family:var(--m);
  letter-spacing:-.02em; line-height:1; margin-bottom:5px; }
.k1 .knum{color:var(--c1)} .k2 .knum{color:var(--c2)}
.k3 .knum{color:var(--wr)} .k4 .knum{color:var(--er)}
.klbl  { font-size:11px; font-weight:600; text-transform:uppercase;
  letter-spacing:.06em; color:var(--t2); }
.ktr   { font-size:11px; margin-top:7px; display:flex;
  align-items:center; gap:3px; color:var(--t3); }
.kbg   { position:absolute; bottom:-10px; right:-10px;
  font-size:64px; opacity:.05; pointer-events:none; }

/* ── ALERT STRIPS ───────────────────────────────────────── */
.as  { display:flex; flex-direction:column; gap:8px; margin-bottom:18px; }
.ac  { border-radius:12px; padding:13px 16px; display:flex;
  align-items:center; gap:12px; border:1px solid; transition:all .2s; cursor:pointer; }
.ac:hover { transform:translateX(3px); }
.ac.cr { background:#fef2f2; border-color:#fecaca; }
.ac.wn { background:#fffbeb; border-color:#fde68a; }
.acico { width:36px; height:36px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  font-size:18px; flex-shrink:0; }
.ac.cr .acico { background:#fee2e2; } .ac.wn .acico { background:#fef3c7; }
.actit { font-size:13px; font-weight:600; color:var(--tx); }
.acsub { font-size:11px; color:var(--t2); margin-top:2px; }
.acbtn { margin-left:auto; padding:7px 14px; border-radius:8px;
  font-size:11px; font-weight:700; cursor:pointer;
  border:none; font-family:var(--f); flex-shrink:0; }
.ac.cr .acbtn { background:#fecaca; color:#b91c1c; }
.ac.wn .acbtn { background:#fde68a; color:#92400e; }

/* ── ACTIVITY FEED ──────────────────────────────────────── */
.aff   { display:flex; flex-direction:column; }
.afi   { display:flex; gap:12px; align-items:flex-start;
  padding:10px 0; border-bottom:1px solid #f1f5f9; }
.afi:last-child { border-bottom:none; }
.afdc  { display:flex; flex-direction:column; align-items:center;
  padding-top:3px; flex-shrink:0; }
.afd   { width:9px; height:9px; border-radius:50%; flex-shrink:0; }
.afl   { width:1px; flex:1; min-height:16px; background:#e2e8f0; margin-top:4px; }
.aft   { font-size:12px; font-weight:500; color:var(--tx); }
.afm   { font-size:10px; color:var(--t3); margin-top:2px; }

/* ── BRANCH CARDS ───────────────────────────────────────── */
.bc { background:var(--white); border:1px solid var(--sb); border-radius:18px;
  padding:20px; transition:all .25s; box-shadow:var(--shadow); }
.bc:hover { transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.bchead { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.bcbadge { width:44px; height:44px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:800; flex-shrink:0; }
.bcn { font-size:15px; font-weight:700; color:var(--tx); }
.bcs { font-size:11px; color:var(--t2); margin-top:2px; }
.bca { margin-left:auto; display:flex; gap:6px; }

.bc-summary-strip { display:flex; align-items:center; background:#f8fafc;
  border-radius:12px; padding:12px 16px; margin-bottom:14px; gap:0; }
.bc-summary-stat  { flex:1; text-align:center; }
.bc-summary-num   { font-family:var(--m); font-size:20px; font-weight:800; line-height:1; }
.bc-summary-lbl   { font-size:10px; color:var(--t3); margin-top:3px; font-weight:600;
  text-transform:uppercase; letter-spacing:.04em; }
.bc-summary-divider { width:1px; height:32px; background:var(--sb); margin:0 4px; }

.bc-printer-list { display:flex; flex-direction:column; gap:6px; }
.bc-printer-row  { display:flex; align-items:center; justify-content:space-between;
  padding:9px 12px; border-radius:10px; background:#fafbfc;
  border:1px solid var(--sb); transition:all .15s; }
.bc-printer-row:hover { background:#fff; border-color:#cbd5e1; box-shadow:0 2px 8px rgba(0,0,0,.06); }
.bc-pr-left  { display:flex; align-items:center; gap:10px; }
.bc-pr-dot   { width:10px; height:10px; border-radius:50%; flex-shrink:0; box-shadow:0 0 0 3px rgba(0,0,0,.06); }
.bc-pr-code  { font-family:var(--m); font-size:13px; font-weight:700; color:var(--tx); }
.bc-pr-model { font-size:10px; color:var(--t3); margin-top:1px; }
.bc-pr-right { display:flex; align-items:center; gap:8px; }
.bc-pr-pct   { font-family:var(--m); font-size:15px; font-weight:800; min-width:40px; text-align:right; }
.bc-pr-badge { font-size:10px; font-weight:700; padding:3px 9px; border-radius:20px; }
.bc-pr-days  { font-size:11px; color:var(--t3); font-family:var(--m); min-width:30px; text-align:right; }

/* Legacy */
.prl { display:flex; flex-direction:column; gap:9px; }
.pr  { display:flex; align-items:center; gap:9px; }
.prid   { font-family:var(--m); font-size:11px; font-weight:600; color:var(--t3); flex-shrink:0; }
.prpct  { font-family:var(--m); font-size:11px; font-weight:700; width:34px; text-align:right; flex-shrink:0; }
.prdays { font-size:10px; color:var(--t3); width:50px; text-align:right; flex-shrink:0; }
.bc-gauge-wrap { flex-shrink:0; }
.bc-printer-code { font-family:var(--m); font-size:12px; font-weight:700; color:var(--tx); }
.bc-alert-pill { font-size:10px; font-weight:700; padding:3px 9px; border-radius:20px; }
.bc-crit { background:#fef2f2; color:#dc2626; border:1px solid #fecaca; }
.bc-warn { background:#fffbeb; color:#d97706; border:1px solid #fde68a; }

/* ── BRANCH SEARCH ──────────────────────────────────────── */
.branch-search-wrap {
  display:flex; align-items:center; gap:8px;
  background:var(--white); border:1.5px solid var(--sb);
  border-radius:10px; padding:0 14px; height:40px;
  box-shadow:var(--shadow); transition:border-color .2s; min-width:220px;
}
.branch-search-wrap:focus-within { border-color:var(--c1); box-shadow:0 0 0 3px rgba(14,165,233,.1); }
.branch-search-icon  { font-size:14px; flex-shrink:0; }
.branch-search-input { border:none; outline:none; font-family:var(--f); font-size:13px; color:var(--tx); background:transparent; width:100%; }
.branch-search-input::placeholder { color:var(--t3); }

/* ── STOCK TUBES ────────────────────────────────────────── */
.stgrid { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin-bottom:20px; }
.stc { background:var(--white); border:1px solid var(--sb); border-radius:16px;
  padding:20px 14px; text-align:center; transition:all .25s; box-shadow:var(--shadow); }
.stc:hover { transform:translateY(-3px); box-shadow:var(--shadow-lg); }
.stcode { font-family:var(--m); font-size:9px; color:var(--t3);
  margin-bottom:12px; letter-spacing:.04em; text-transform:uppercase; }
.tube  { width:52px; height:120px; margin:0 auto 14px; position:relative; }
.tubeb { width:100%; height:100%; border-radius:26px; border:2px solid #d1d5db;
  background:linear-gradient(135deg,#f0f4f8 0%,#e8edf2 40%,#dce3ea 100%);
  overflow:hidden; position:relative;
  box-shadow:inset 0 2px 6px rgba(0,0,0,.12), inset -3px 0 8px rgba(0,0,0,.06); }
.tubef { position:absolute; bottom:0; left:0; right:0; min-height:4px;
  transition:height 1.4s cubic-bezier(.4,0,.2,1); border-radius:0 0 24px 24px; z-index:1; }
.tubef::after { content:''; position:absolute; top:-4px; left:0; right:0; height:8px;
  border-radius:50%; background:inherit; opacity:.5; filter:blur(2px); }
.tubes { position:absolute; top:8px; left:16%; width:22%; height:72%;
  background:linear-gradient(180deg,rgba(255,255,255,.7) 0%,rgba(255,255,255,.1) 70%,transparent 100%);
  border-radius:4px; pointer-events:none; z-index:2; }
.tube-shine2 { position:absolute; top:0; right:8%; width:10%; height:100%;
  background:linear-gradient(180deg,rgba(255,255,255,.25),transparent 60%);
  border-radius:4px; pointer-events:none; z-index:2; }
.tube-cap { position:absolute; top:-1px; left:50%; transform:translateX(-50%);
  width:60%; height:10px; background:linear-gradient(180deg,#c8d0da,#b0bac6);
  border-radius:6px 6px 0 0; border:1px solid #a0aab6; z-index:3; }
.stqty  { font-family:var(--m); font-size:26px; font-weight:800; line-height:1; }
.stunit { font-size:10px; color:var(--t3); margin-top:2px; }
.stmod  { font-size:10px; color:var(--t2); margin-top:4px; line-height:1.4; }
.stlow  { font-size:9px; font-weight:700; padding:3px 8px; border-radius:5px; margin-top:7px;
  display:inline-block; background:#fee2e2; color:var(--er); border:1px solid #fecaca; }

/* ── SERVICE FORM ───────────────────────────────────────── */
.fg  { background:var(--white); border:1px solid var(--sb); border-radius:18px; padding:26px; box-shadow:var(--shadow); }
.fgt { font-size:16px; font-weight:700; margin-bottom:20px; display:flex; align-items:center; gap:9px; color:var(--tx); }
.sbtn { width:100%; padding:14px; border-radius:13px; border:none; cursor:pointer;
  background:linear-gradient(135deg,var(--c3),#059669); color:#fff;
  font-size:14px; font-weight:800; font-family:var(--f); transition:all .25s;
  box-shadow:0 4px 16px rgba(16,185,129,.3);
  display:flex; align-items:center; justify-content:center; gap:7px; }
.sbtn:hover { transform:translateY(-1px); box-shadow:0 8px 24px rgba(16,185,129,.4); }

/* ── PRINTER PAGE TABS ──────────────────────────────────── */
.pr-tabs { display:flex; gap:6px; margin-bottom:18px; background:var(--white);
  border:1px solid var(--sb); border-radius:14px; padding:5px;
  width:fit-content; box-shadow:var(--shadow); }
.pr-tab { padding:9px 22px; border-radius:10px; border:none; background:none;
  font-family:var(--f); font-size:13px; font-weight:600; color:var(--t2);
  cursor:pointer; transition:all .2s; white-space:nowrap; }
.pr-tab:hover { color:var(--c1); background:#f0f9ff; }
.pr-tab-act { background:linear-gradient(135deg,var(--c1),var(--c2)); color:#fff !important;
  box-shadow:0 4px 14px rgba(14,165,233,.35); }
.pr-tab-act:hover { background:linear-gradient(135deg,var(--c1),var(--c2)); }

/* ── PAPER LEVELS PANEL ─────────────────────────────────── */
.paper-branch-block { background:var(--white); border:1px solid var(--sb);
  border-radius:16px; overflow:hidden; margin-bottom:16px; box-shadow:var(--shadow); }
.paper-branch-hdr { display:flex; align-items:center; gap:10px; padding:13px 20px;
  background:linear-gradient(90deg,#f8faff,#f0f4ff); border-bottom:1px solid var(--sb); }
.paper-branch-badge { font-family:var(--m); font-size:11px; font-weight:700;
  padding:3px 10px; border-radius:6px; background:#dbeafe; color:#1d4ed8; }
.paper-branch-name { font-size:13px; font-weight:600; color:var(--tx); }
.paper-branch-ct   { font-size:11px; color:var(--t3); margin-left:auto; }
.paper-printers-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:14px; padding:16px; }
.printer-paper-card { background:#fafbfc; border:1px solid var(--sb); border-radius:12px;
  padding:14px; transition:all .2s; }
.printer-paper-card:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.08); }
.ppc-header { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:14px; }
.ppc-code  { font-family:var(--m); font-size:13px; font-weight:700; color:var(--c1); }
.ppc-model { font-size:10px; color:var(--t2); margin-top:2px; }
.ppc-loc   { font-size:10px; color:var(--t3); }
.ppc-load-btn { font-size:10px; font-weight:600; padding:4px 9px; border-radius:6px;
  border:1px solid #3b82f6; background:#eff6ff; color:#1d4ed8; cursor:pointer;
  white-space:nowrap; transition:all .15s; flex-shrink:0; }
.ppc-load-btn:hover { background:#3b82f6; color:#fff; }
.ppc-trays  { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.paper-tray-wrap  { display:flex; flex-direction:column; align-items:center; gap:7px; }
.paper-tray-shell { width:64px; height:80px; position:relative; border-radius:4px 4px 6px 6px;
  background:#e2e8f0; border:1.5px solid #cbd5e1; overflow:hidden;
  box-shadow:inset 0 -3px 6px rgba(0,0,0,.1), 2px 3px 8px rgba(0,0,0,.1); }
.empty-shell { background:repeating-linear-gradient(0deg,#f1f5f9 0px,#f1f5f9 3px,#e8eef4 3px,#e8eef4 6px); border-style:dashed; }
.paper-tray-inner { position:absolute; bottom:10px; left:5px; right:5px; top:5px;
  display:flex; flex-direction:column-reverse; gap:1px; justify-content:flex-start; }
.paper-sheet  { height:4px; border-radius:1px; transition:all .6s ease; }
.sheet-filled { box-shadow:0 1px 1px rgba(0,0,0,.08); }
.sheet-empty  { background:#e8edf2; opacity:.5; }
.paper-tray-front { position:absolute; bottom:0; left:0; right:0; height:9px; border-radius:0 0 4px 4px; }
.paper-tray-info  { text-align:center; }
.paper-tray-qty   { font-family:var(--m); font-size:16px; font-weight:800; line-height:1; }
.paper-tray-label { font-size:10px; color:var(--t3); margin-top:2px; }
.paper-tray-status { font-size:9px; font-weight:700; padding:2px 7px; border-radius:4px; margin-top:5px; display:inline-block; }
.paper-empty-tray { display:flex; flex-direction:column; align-items:center; }

/* ══════════════════════════════════════════════════════════
   SERVICE DASHBOARD
   ══════════════════════════════════════════════════════════ */
.svc-hero { display:flex; align-items:center; justify-content:space-between;
  background:linear-gradient(135deg,#0ea5e9 0%,#6366f1 100%);
  border-radius:20px; padding:22px 28px; margin-bottom:20px;
  box-shadow:0 8px 32px rgba(14,165,233,.25); gap:16px; }
.svc-hero-left  { display:flex; align-items:center; gap:16px; }
.svc-hero-icon  { width:52px; height:52px; background:rgba(255,255,255,.2);
  border-radius:16px; display:flex; align-items:center; justify-content:center;
  font-size:26px; backdrop-filter:blur(8px); flex-shrink:0; }
.svc-hero-title { font-size:22px; font-weight:800; color:#fff; letter-spacing:-.02em; }
.svc-hero-sub   { font-size:13px; color:rgba(255,255,255,.75); margin-top:3px; }

.svc-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:20px; }
.svc-kpi { background:var(--white); border:1px solid var(--sb); border-radius:18px;
  padding:18px 20px; display:flex; align-items:center; gap:14px;
  box-shadow:var(--shadow); transition:all .2s; position:relative; overflow:hidden; }
.svc-kpi::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; border-radius:18px 18px 0 0; }
.svc-kpi-warn::before { background:linear-gradient(90deg,#f59e0b,#fbbf24); }
.svc-kpi-ok::before   { background:linear-gradient(90deg,#10b981,#34d399); }
.svc-kpi-err::before  { background:linear-gradient(90deg,#ef4444,#f87171); }
.svc-kpi-crit::before { background:linear-gradient(90deg,#f97316,#ef4444); }
.svc-kpi:hover { transform:translateY(-3px); box-shadow:var(--shadow-lg); }
.svc-kpi-icon-wrap { width:48px; height:48px; border-radius:14px;
  display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }
.svc-kpi-body { flex:1; }
.svc-kpi-num  { font-family:var(--m); font-size:32px; font-weight:800; line-height:1; color:var(--tx); }
.svc-kpi-lbl  { font-size:12px; color:var(--t2); margin-top:4px; font-weight:500; }
.svc-kpi-arrow { font-size:18px; color:var(--t3); margin-left:auto; }

.svc-main-tabs { display:flex; gap:6px; margin-bottom:20px; background:var(--white);
  border:1px solid var(--sb); border-radius:16px; padding:5px;
  width:fit-content; max-width:100%; box-shadow:var(--shadow);
  overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.svc-main-tabs::-webkit-scrollbar { display:none; }
.svc-tab { display:flex; align-items:center; gap:7px; padding:10px 24px;
  border-radius:12px; border:none; background:none; font-family:var(--f);
  font-size:13px; font-weight:600; color:var(--t2); cursor:pointer;
  transition:all .2s; white-space:nowrap; flex-shrink:0; }
.svc-tab:hover { color:var(--c1); background:#f0f9ff; }
.svc-tab-icon { font-size:16px; }
.svc-tab-act  { background:linear-gradient(135deg,var(--c1),var(--c2)); color:#fff !important;
  box-shadow:0 4px 16px rgba(14,165,233,.35); }
.svc-tab-act:hover { background:linear-gradient(135deg,var(--c1),var(--c2)); }

.svc-twocol { display:grid; grid-template-columns:1fr 1.5fr; gap:18px; margin-bottom:20px; }
.svc-alerts-panel, .svc-requests-panel { background:var(--white); border:1px solid var(--sb); border-radius:18px; overflow:hidden; box-shadow:var(--shadow); }
.svc-panel-hdr { display:flex; align-items:center; gap:12px; padding:16px 20px;
  border-bottom:1px solid var(--sb); background:linear-gradient(90deg,#fafbfc,#f8faff); }
.svc-panel-hdr-icon  { width:40px; height:40px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.svc-panel-hdr-title { font-size:14px; font-weight:700; color:var(--tx); }
.svc-panel-hdr-sub   { font-size:11px; color:var(--t3); margin-top:2px; }
.svc-new-req-btn { margin-left:auto; padding:7px 16px; border-radius:9px; border:none;
  background:linear-gradient(135deg,var(--c1),var(--c2)); color:#fff; font-family:var(--f);
  font-size:12px; font-weight:700; cursor:pointer; white-space:nowrap;
  box-shadow:0 3px 10px rgba(14,165,233,.3); transition:all .2s; }
.svc-new-req-btn:hover { transform:translateY(-1px); box-shadow:0 6px 16px rgba(14,165,233,.4); }
.svc-alerts-body, .svc-requests-body { padding:10px 16px 16px; max-height:400px; overflow-y:auto; }

.svc-alert-row { display:flex; align-items:center; gap:10px; padding:11px 8px;
  border-bottom:1px solid #f1f5f9; border-radius:8px; transition:background .15s; }
.svc-alert-row:hover { background:#f8fafc; }
.svc-alert-row:last-child { border-bottom:none; }
.svc-alert-dot   { width:10px; height:10px; border-radius:50%; flex-shrink:0; box-shadow:0 0 0 3px rgba(0,0,0,.06); }
.svc-alert-info  { flex:1; min-width:0; }
.svc-alert-code  { font-family:var(--m); font-size:13px; font-weight:700; color:var(--tx); }
.svc-alert-sub   { font-size:10px; color:var(--t3); margin-top:1px; }
.svc-alert-right { text-align:right; }
.svc-alert-days  { font-family:var(--m); font-size:15px; font-weight:800; }
.svc-alert-pct   { font-size:10px; color:var(--t3); }
.svc-quick-req   { font-size:10px; font-weight:700; padding:5px 12px; border-radius:7px;
  background:#f0f9ff; color:#0ea5e9; border:1px solid #bae6fd;
  cursor:pointer; transition:all .15s; white-space:nowrap; }
.svc-quick-req:hover { background:#0ea5e9; color:#fff; box-shadow:0 3px 10px rgba(14,165,233,.3); }

.req2-card  { display:flex; align-items:flex-start; gap:12px; padding:13px 12px;
  border-radius:12px; background:#fafbfc; border:1px solid var(--sb);
  margin-bottom:8px; transition:all .18s; }
.req2-card:hover { transform:translateX(3px); background:var(--white); box-shadow:var(--shadow); }
.req2-left  { flex-shrink:0; }
.req2-icon  { width:40px; height:40px; border-radius:11px; display:flex; align-items:center; justify-content:center; font-size:18px; }
.req2-body  { flex:1; min-width:0; }
.req2-top   { display:flex; align-items:center; justify-content:space-between; margin-bottom:5px; gap:8px; }
.req2-what  { font-size:14px; font-weight:700; color:var(--tx); }
.req2-status { font-size:10px; font-weight:700; padding:3px 9px; border-radius:20px; white-space:nowrap; flex-shrink:0; }
.req2-meta  { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.req2-printer { font-family:var(--m); font-size:11px; font-weight:700; color:var(--c1); }
.req2-branch  { font-size:11px; color:var(--t3); }
.req2-qty     { font-size:11px; color:var(--t2); }
.req2-pri     { font-size:10px; font-weight:600; }
.req2-note  { font-size:11px; color:var(--t2); font-style:italic; margin-top:6px;
  padding:6px 9px; background:var(--white); border-radius:7px; border-left:2px solid #cbd5e1; }
.req2-right { flex-shrink:0; text-align:right; }
.req2-date  { font-size:10px; color:var(--t3); white-space:nowrap; }
.req2-awaiting { font-size:9px; font-weight:700; color:#f59e0b; margin-top:4px;
  letter-spacing:.03em; text-transform:uppercase; }

.svc-empty { padding:24px 16px; text-align:center; color:var(--t3); font-size:13px; }

/* ══════════════════════════════════════════════════════════
   NEW REQUEST FORM
   ══════════════════════════════════════════════════════════ */
.nreq-shell { background:var(--white); border:1px solid var(--sb);
  border-radius:20px; overflow:hidden; box-shadow:var(--shadow-lg); }
.nreq-type-toggle { display:grid; grid-template-columns:1fr 1fr; border-bottom:1px solid var(--sb); }
.nreq-type-tab { display:flex; align-items:center; gap:14px; padding:20px 28px;
  border:none; background:#f8fafc; font-family:var(--f); color:var(--t2);
  cursor:pointer; transition:all .2s; border-bottom:3px solid transparent; text-align:left; }
.nreq-type-tab:first-child { border-right:1px solid var(--sb); }
.nreq-type-tab:hover { background:#f0f9ff; color:var(--c1); }
.nreq-type-act { background:var(--white) !important; color:var(--tx) !important; border-bottom-color:var(--c1) !important; }
.nreq-body  { display:grid; grid-template-columns:1fr 300px; }
.nreq-form  { padding:26px 30px; border-right:1px solid var(--sb); }
.nreq-section-hdr { display:flex; align-items:center; gap:8px; font-size:11px; font-weight:700;
  text-transform:uppercase; letter-spacing:.07em; color:var(--t3); margin:22px 0 12px; }
.nreq-section-hdr:first-child { margin-top:0; }
.nreq-section-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.nreq-section-title { font-size:11px; font-weight:700; text-transform:uppercase;
  letter-spacing:.06em; color:var(--t3); margin:20px 0 10px; }
.nreq-row   { display:flex; gap:14px; }
.nreq-field { display:flex; flex-direction:column; gap:5px; flex:1; margin-bottom:4px; }
.nreq-label { font-size:12px; font-weight:600; color:var(--t2); }
.nreq-priority-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.nreq-pri-opt { cursor:pointer; }
.nreq-pri-opt input { display:none; }
.nreq-pri-card { display:flex; flex-direction:column; align-items:center; gap:6px;
  padding:12px 8px; border-radius:12px; border:2px solid var(--sb);
  background:var(--white); transition:all .18s; text-align:center; }
.nreq-pri-card:hover { border-color:var(--pc); background:var(--pb); }
.nreq-pri-opt input:checked + .nreq-pri-card { border-color:var(--pc); background:var(--pb);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--pc) 15%,transparent); }
.nreq-pri-lbl { font-size:12px; font-weight:700; color:var(--tx); }
.nreq-textarea { width:100%; padding:10px 13px; border:1.5px solid var(--sb);
  border-radius:10px; font-family:var(--f); font-size:13px; color:var(--tx);
  resize:vertical; min-height:80px; background:#fafbfc; transition:all .2s; }
.nreq-textarea:focus { outline:none; border-color:var(--c1); background:#fff; box-shadow:0 0 0 3px rgba(14,165,233,.08); }
.nreq-submit-btn { display:flex; align-items:center; justify-content:center; gap:8px;
  margin-top:24px; width:100%; padding:15px; border-radius:13px; border:none;
  background:linear-gradient(135deg,var(--c1),var(--c2)); color:#fff; font-family:var(--f);
  font-size:15px; font-weight:700; cursor:pointer; transition:all .2s;
  box-shadow:0 4px 18px rgba(14,165,233,.4); }
.nreq-submit-btn:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(14,165,233,.5); }
.nreq-submit-btn:disabled { opacity:.7; cursor:not-allowed; transform:none; }
.nreq-info { padding:26px 22px; background:linear-gradient(180deg,#f8faff,#f0f4ff); }
.nreq-workflow-card { background:var(--white); border:1px solid #dbeafe; border-radius:16px; padding:20px; }
.nreq-wf-title { font-size:13px; font-weight:800; color:var(--tx); margin-bottom:18px;
  padding-bottom:10px; border-bottom:1px solid var(--sb); }
.nreq-wf-step { display:flex; gap:12px; align-items:flex-start; }
.nreq-wf-num  { width:26px; height:26px; border-radius:50%;
  background:linear-gradient(135deg,var(--c1),var(--c2)); color:#fff;
  font-size:12px; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.nreq-wf-text { font-size:12px; color:var(--t2); line-height:1.5; padding-top:3px; }
.nreq-wf-line { width:2px; height:14px; background:linear-gradient(180deg,#bae6fd,transparent); margin:4px 0 4px 12px; }
.nreq-crit-banner { display:flex; gap:12px; align-items:flex-start; margin-top:16px;
  padding:16px; background:#fff1f2; border:1px solid #fecdd3;
  border-radius:13px; border-left:4px solid #ef4444; }
.nreq-info-card  { background:var(--white); border:1px solid var(--sb); border-radius:12px; padding:16px; }
.nreq-info-title { font-size:13px; font-weight:700; color:var(--tx); margin-bottom:12px; }
.nreq-info-step  { display:flex; align-items:flex-start; gap:10px; font-size:12px; color:var(--t2); margin-bottom:10px; line-height:1.5; }
.nreq-step-num   { width:22px; height:22px; border-radius:50%; background:linear-gradient(135deg,var(--c1),var(--c2)); color:#fff; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }

/* Legacy req card compat */
.req-type-tab { flex:1; padding:9px; border:none; border-radius:8px; font-family:var(--f); font-size:13px; font-weight:600; color:var(--t2); background:none; cursor:pointer; transition:all .2s; }
.req-type-act { background:linear-gradient(135deg,var(--c1),var(--c2)); color:#fff !important; box-shadow:0 3px 10px rgba(14,165,233,.3); }

/* ══════════════════════════════════════════════════════════
   END OF DAY LOG — legacy (inside service tab)
   ══════════════════════════════════════════════════════════ */
.log2-topbar { display:flex; align-items:center; justify-content:space-between; gap:20px;
  background:var(--white); border:1px solid var(--sb); border-radius:18px;
  padding:18px 24px; margin-bottom:20px; box-shadow:var(--shadow); }
.log2-topbar-left  { display:flex; align-items:center; gap:14px; }
.log2-topbar-icon  { width:46px; height:46px; background:linear-gradient(135deg,#eff6ff,#dbeafe);
  border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:22px; }
.log2-topbar-title { font-size:16px; font-weight:800; color:var(--tx); }
.log2-topbar-date  { font-size:12px; color:var(--t3); margin-top:2px; }
.log2-topbar-right { display:flex; align-items:center; gap:12px; }
.log2-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:16px; margin-bottom:8px; }
.log2-card { background:var(--white); border:1.5px solid var(--sb); border-radius:18px; overflow:hidden; box-shadow:var(--shadow); transition:all .2s; }
.log2-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-lg); }
.log2-card-done { border-color:#6ee7b7; background:linear-gradient(160deg,#f0fdf4,#fff); }
.log2-header { padding:14px 16px 12px; border-bottom:1px solid var(--sb); background:linear-gradient(135deg,#f8fafc,#f0f4ff); }
.log2-code  { font-family:var(--m); font-size:15px; font-weight:800; color:var(--c1); }
.log2-model { font-size:10px; color:var(--t3); margin-top:2px; }
.log2-stats { display:flex; border-bottom:1px solid var(--sb); }
.log2-stat-item { flex:1; padding:10px 14px; border-right:1px solid var(--sb); }
.log2-stat-item:last-child { border-right:none; }
.log2-stat-label { font-size:9px; text-transform:uppercase; letter-spacing:.05em; color:var(--t3); margin-bottom:3px; font-weight:600; }
.log2-stat-val   { font-family:var(--m); font-size:16px; font-weight:800; }
.log2-input-section { padding:14px 16px 12px; }
.log2-input-label   { font-size:11px; font-weight:600; color:var(--t2); display:block; margin-bottom:5px; }
.log2-big-input { width:100%; padding:11px 14px; border:2px solid var(--sb); border-radius:11px;
  font-family:var(--m); font-size:22px; font-weight:800; color:var(--tx);
  background:#f8fafc; text-align:center; transition:all .2s; }
.log2-big-input:focus { outline:none; border-color:var(--c1); background:#fff; box-shadow:0 0 0 4px rgba(14,165,233,.1); }
.log2-note-input { width:100%; padding:8px 11px; border:1.5px solid var(--sb); border-radius:9px;
  font-family:var(--f); font-size:11px; color:var(--t2); background:#fafbfc; transition:border-color .15s; }
.log2-note-input:focus { outline:none; border-color:var(--c1); }
.log2-submit-btn { display:block; width:calc(100% - 32px); margin:10px 16px 16px;
  padding:11px; border-radius:11px; border:none;
  background:linear-gradient(135deg,var(--c1),var(--c2)); color:#fff; font-family:var(--f);
  font-size:13px; font-weight:700; cursor:pointer; transition:all .2s;
  box-shadow:0 3px 12px rgba(14,165,233,.3); }
.log2-submit-btn:hover { transform:translateY(-1px); box-shadow:0 6px 18px rgba(14,165,233,.4); }
.log2-submit-btn:disabled { opacity:.7; cursor:not-allowed; transform:none; }

/* ══════════════════════════════════════════════════════════
   MANAGER APPROVALS
   ══════════════════════════════════════════════════════════ */
.appr-hero { display:flex; align-items:center; justify-content:space-between;
  background:linear-gradient(135deg,#10b981 0%,#0ea5e9 100%);
  border-radius:20px; padding:22px 28px; margin-bottom:20px;
  box-shadow:0 8px 32px rgba(16,185,129,.22); gap:16px; }
.appr-hero-left  { display:flex; align-items:center; gap:16px; }
.appr-hero-icon  { width:52px; height:52px; background:rgba(255,255,255,.2);
  border-radius:16px; display:flex; align-items:center; justify-content:center;
  font-size:26px; flex-shrink:0; }
.appr-hero-title { font-size:22px; font-weight:800; color:#fff; letter-spacing:-.02em; }
.appr-hero-sub   { font-size:13px; color:rgba(255,255,255,.78); margin-top:3px; }

.appr-kpi-row { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:20px; }
.appr-kpi { background:var(--white); border:1px solid var(--sb); border-radius:18px;
  padding:20px 24px; display:flex; align-items:center; justify-content:space-between;
  box-shadow:var(--shadow); transition:all .2s; overflow:hidden; position:relative; }
.appr-kpi::after { content:''; position:absolute; top:0; left:0; width:4px; height:100%; border-radius:18px 0 0 18px; }
.appr-kpi-pending::after  { background:linear-gradient(180deg,#fbbf24,#f59e0b); }
.appr-kpi-approved::after { background:linear-gradient(180deg,#34d399,#10b981); }
.appr-kpi-rejected::after { background:linear-gradient(180deg,#f87171,#ef4444); }
.appr-kpi:hover { transform:translateY(-3px); box-shadow:var(--shadow-lg); }
.appr-kpi-num  { font-family:var(--m); font-size:38px; font-weight:800; line-height:1; color:var(--tx); }
.appr-kpi-lbl  { font-size:13px; color:var(--t2); margin-top:5px; font-weight:500; }
.appr-kpi-icon-big { font-size:36px; opacity:.18; margin-left:auto; }

.appr-filter-bar { background:var(--white); border:1px solid var(--sb);
  border-radius:14px; padding:12px 16px; margin-bottom:18px; box-shadow:var(--shadow); }
.appr-filter-row { display:flex; gap:8px; flex-wrap:wrap; }
.appr-filter-btn { padding:7px 18px; border-radius:20px; border:1.5px solid var(--sb);
  background:#f8fafc; font-family:var(--f); font-size:12px; font-weight:600;
  color:var(--t2); cursor:pointer; transition:all .15s; }
.appr-filter-btn:hover { border-color:var(--c1); color:var(--c1); background:#f0f9ff; }
.af-act { background:var(--c1) !important; color:#fff !important; border-color:var(--c1) !important; box-shadow:0 3px 10px rgba(14,165,233,.3); }

.appr-card { background:var(--white); border:1px solid var(--sb); border-radius:16px;
  padding:0; margin-bottom:14px; display:flex; overflow:hidden;
  box-shadow:var(--shadow); transition:all .2s; }
.appr-card:hover { box-shadow:var(--shadow-lg); transform:translateY(-1px); }
.appr-card-accent  { width:5px; flex-shrink:0; }
.appr-card-content { flex:1; padding:18px 20px; display:flex; gap:20px; min-width:0; }
.appr-card-left    { flex:1; min-width:0; }
.appr-card-right   { flex-shrink:0; width:230px; display:flex; flex-direction:column;
  gap:8px; align-items:flex-end; border-left:1px solid var(--sb); padding-left:20px; }
.appr-type-row  { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.appr-what      { font-size:17px; font-weight:800; color:var(--tx); margin-bottom:8px; }
.appr-meta      { display:flex; gap:16px; flex-wrap:wrap; margin-bottom:8px; align-items:center; }
.appr-printer   { font-family:var(--m); font-size:12px; font-weight:700; color:var(--c1); background:#eff6ff; padding:3px 8px; border-radius:6px; }
.appr-branch    { font-size:12px; color:var(--t2); font-weight:500; }
.appr-qty       { font-size:12px; color:var(--t3); background:#f1f5f9; padding:2px 7px; border-radius:5px; }
.appr-notes     { font-size:12px; color:var(--t2); font-style:italic; margin-bottom:6px; padding:8px 12px; background:#f8fafc; border-radius:8px; border-left:3px solid #cbd5e1; }
.appr-by        { font-size:11px; color:var(--t3); }
.appr-pri-pill  { font-size:10px; font-weight:700; padding:3px 10px; border-radius:20px; }
.appr-status-pill { font-size:12px; font-weight:700; padding:6px 16px; border-radius:20px; text-align:center; width:100%; display:block; }
.appr-actions   { display:flex; flex-direction:column; gap:7px; width:100%; }
.appr-note-input { width:100%; padding:8px 11px; border:1.5px solid var(--sb);
  border-radius:8px; font-family:var(--f); font-size:11px; color:var(--tx);
  background:#f8fafc; transition:border-color .15s; }
.appr-note-input:focus { outline:none; border-color:var(--c1); background:#fff; }
.appr-approve-btn { width:100%; padding:10px; border-radius:9px; border:none;
  background:linear-gradient(135deg,#10b981,#059669); color:#fff; font-weight:700;
  font-size:13px; cursor:pointer; transition:all .15s; box-shadow:0 3px 10px rgba(16,185,129,.3); }
.appr-approve-btn:hover { transform:translateY(-1px); box-shadow:0 6px 16px rgba(16,185,129,.4); }
.appr-reject-btn { width:100%; padding:10px; border-radius:9px; border:1.5px solid #fecaca;
  background:#fef2f2; color:#ef4444; font-weight:700; font-size:13px; cursor:pointer; transition:all .15s; }
.appr-reject-btn:hover { background:#ef4444; color:#fff; border-color:#ef4444; box-shadow:0 4px 12px rgba(239,68,68,.3); }
.appr-review-note { font-size:11px; color:var(--t2); background:#f8fafc; border-radius:7px; padding:7px 11px; width:100%; border-left:3px solid #94a3b8; }
.appr-reviewer   { font-size:10px; color:var(--t3); margin-top:2px; }

.req-type-badge { font-size:11px; font-weight:700; padding:3px 10px; border-radius:6px; }
.badge-toner { background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; }
.badge-paper { background:#f0fdf4; color:#15803d; border:1px solid #bbf7d0; }

/* Nav badge */
.nav-badge { display:inline-flex; align-items:center; justify-content:center;
  min-width:18px; height:18px; border-radius:9px; background:#ef4444; color:#fff;
  font-size:10px; font-weight:800; font-family:var(--m); padding:0 5px; margin-left:auto; }

/* ══════════════════════════════════════════════════════════
   PRINT ACTIVITY REPORT
   ══════════════════════════════════════════════════════════ */
.pr-kpi-row  { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:22px; }
.pr-kpi-card { background:var(--white); border:1px solid var(--sb); border-radius:16px;
  padding:18px 20px; display:flex; align-items:center; gap:14px;
  box-shadow:var(--shadow); transition:all .2s; }
.pr-kpi-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.pr-kpi-icon { width:46px; height:46px; border-radius:13px; display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }
.pr-kpi-num  { font-family:var(--m); font-size:26px; font-weight:800; line-height:1; color:var(--tx); }
.pr-kpi-lbl  { font-size:11px; color:var(--t2); margin-top:4px; font-weight:500; }

.pr-branch-block { background:var(--white); border:1px solid var(--sb); border-radius:16px; overflow:hidden; margin-bottom:14px; box-shadow:var(--shadow); }
.pr-branch-hdr  { display:flex; align-items:center; gap:14px; padding:14px 20px; background:linear-gradient(90deg,#f8fafc,#f1f5f9); border-bottom:1px solid var(--sb); }
.pr-branch-badge { font-size:11px; font-weight:800; padding:5px 12px; border-radius:8px; flex-shrink:0; }
.pr-branch-title { font-size:14px; font-weight:700; color:var(--tx); flex:1; }
.pr-branch-total-wrap { display:flex; align-items:center; gap:12px; }
.pr-branch-bar-track { width:140px; height:6px; border-radius:3px; background:#e8edf2; overflow:hidden; }
.pr-branch-bar-fill  { height:100%; border-radius:3px; transition:width 1s cubic-bezier(.4,0,.2,1); }
.pr-branch-total     { font-family:var(--m); font-size:16px; font-weight:800; white-space:nowrap; }
.pr-branch-total-lbl { font-size:11px; font-weight:400; color:var(--t3); }

.pr-printer-rows { padding:8px 12px 12px; }
.pr-printer-row  { display:flex; align-items:center; justify-content:space-between;
  padding:10px 10px; border-radius:10px; transition:background .15s; gap:16px; }
.pr-printer-row:hover { background:#f8fafc; }
.pr-printer-left  { flex:1; min-width:0; }
.pr-printer-code  { font-family:var(--m); font-size:13px; font-weight:700; color:var(--tx); }
.pr-printer-meta  { display:flex; flex-wrap:wrap; gap:10px; margin-top:3px; }
.pr-logged-by     { font-size:11px; color:var(--t2); }
.pr-log-date      { font-size:11px; color:var(--t3); }
.pr-log-note      { font-size:11px; color:var(--t2); font-style:italic; }
.pr-printer-right { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.pr-mini-bar-track { width:100px; height:6px; border-radius:3px; background:#f1f5f9; overflow:hidden; }
.pr-mini-bar-fill  { height:100%; border-radius:3px; transition:width .8s ease; }
.pr-print-count    { font-family:var(--m); font-size:16px; font-weight:800; min-width:50px; text-align:right; }

/* ══════════════════════════════════════════════════════════
   STORE PERSON DASHBOARD
   ══════════════════════════════════════════════════════════ */
.st-section-title { font-size:13px; font-weight:700; color:var(--t2); margin-bottom:12px; padding-left:2px; }
.st-stock-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:12px; margin-bottom:6px; }
.st-stock-card { background:var(--white); border:1px solid var(--sb); border-radius:14px;
  padding:16px 14px; text-align:center; box-shadow:var(--shadow); transition:all .2s; }
.st-stock-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.st-stock-model { font-family:var(--m); font-size:12px; font-weight:700; color:var(--tx); margin-bottom:2px; }
.st-stock-brand { font-size:10px; color:var(--t3); margin-bottom:10px; }
.st-stock-num   { font-family:var(--m); font-size:28px; font-weight:800; line-height:1; }
.st-stock-unit  { font-size:10px; color:var(--t3); margin-top:2px; margin-bottom:10px; }
.st-stock-badge { font-size:10px; font-weight:700; padding:3px 10px; border-radius:20px; display:inline-block; }
.st-stock-min   { font-size:10px; color:var(--t3); margin-top:6px; }

.st-action-layout { display:grid; grid-template-columns:300px 1fr; gap:18px; align-items:start; }
.st-action-card   { background:var(--white); border:1px solid var(--sb); border-radius:16px; padding:20px; box-shadow:var(--shadow); }
.st-action-hdr    { display:flex; align-items:center; gap:12px; margin-bottom:18px; padding-bottom:14px; border-bottom:1px solid var(--sb); }
.st-action-icon   { width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
.st-action-title  { font-size:14px; font-weight:700; color:var(--tx); }
.st-action-sub    { font-size:11px; color:var(--t3); margin-top:2px; }
.st-action-btn    { display:block; width:100%; margin-top:16px; padding:12px; border-radius:11px;
  border:none; color:#fff; font-family:var(--f); font-size:13px; font-weight:700;
  cursor:pointer; transition:all .2s; box-shadow:0 4px 14px rgba(0,0,0,.15); }
.st-action-btn:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.2); }

/* ══════════════════════════════════════════════════════════
   EXCEL IMPORT
   ══════════════════════════════════════════════════════════ */
.imp-upload-layout { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.imp-form-card     { background:var(--white); border:1px solid var(--sb); border-radius:16px; padding:22px; box-shadow:var(--shadow); }
.imp-preview-card  { background:var(--white); border:1px solid var(--sb); border-radius:16px; padding:22px; box-shadow:var(--shadow); min-height:300px; }
.imp-form-title    { font-size:15px; font-weight:700; color:var(--tx); margin-bottom:18px; }
.imp-dropzone      { border:2px dashed var(--sb2); border-radius:14px; padding:32px 20px;
  text-align:center; cursor:pointer; transition:all .2s; background:#fafbfc; }
.imp-dropzone:hover { border-color:var(--c1); background:#f0f9ff; }
.imp-drop-icon     { font-size:36px; margin-bottom:10px; }
.imp-drop-title    { font-size:14px; font-weight:700; color:var(--tx); }
.imp-drop-sub      { font-size:12px; color:var(--t3); margin-top:4px; }
.imp-drop-fname    { font-size:12px; color:var(--c1); margin-top:8px; font-weight:600; font-family:var(--m); }
.imp-rules         { background:#f8fafc; border-radius:10px; padding:14px; margin-top:16px; }
.imp-rules-title   { font-size:11px; font-weight:700; color:var(--t2); margin-bottom:8px; text-transform:uppercase; letter-spacing:.05em; }
.imp-rule          { font-size:12px; color:var(--t3); margin-bottom:5px; }

/* ══════════════════════════════════════════════════════════
   END OF DAY LOG — Service Person Only
   Mobile-first, ultra simple
   ══════════════════════════════════════════════════════════ */
.eod-hero { display:flex; align-items:center; justify-content:space-between; gap:16px;
  background:linear-gradient(135deg,#1e40af 0%,#0ea5e9 100%);
  border-radius:20px; padding:22px 28px; margin-bottom:16px;
  box-shadow:0 8px 32px rgba(14,165,233,.28); }
.eod-hero-left  { display:flex; align-items:center; gap:16px; }
.eod-hero-icon  { width:54px; height:54px; border-radius:16px; background:rgba(255,255,255,.2); display:flex; align-items:center; justify-content:center; font-size:28px; flex-shrink:0; }
.eod-hero-title { font-size:21px; font-weight:800; color:#fff; letter-spacing:-.02em; }
.eod-hero-date  { font-size:13px; color:rgba(255,255,255,.75); margin-top:4px; }
.eod-refresh-btn { padding:9px 20px; border-radius:11px; background:rgba(255,255,255,.2); color:#fff; border:1.5px solid rgba(255,255,255,.35); font-family:var(--f); font-size:13px; font-weight:600; cursor:pointer; transition:all .2s; white-space:nowrap; flex-shrink:0; }
.eod-refresh-btn:hover { background:rgba(255,255,255,.32); }

.eod-branch-row { display:flex; align-items:center; gap:12px; background:var(--white); border:1px solid var(--sb); border-radius:14px; padding:13px 18px; margin-bottom:14px; box-shadow:var(--shadow); }
.eod-branch-badge { display:inline-flex; align-items:center; gap:8px; background:linear-gradient(135deg,#eff6ff,#dbeafe); border:1.5px solid #bae6fd; border-radius:12px; padding:11px 22px; font-size:15px; font-weight:700; color:#1d4ed8; }

.eod-summary { display:flex; align-items:center; gap:18px; flex-wrap:wrap; background:var(--white); border:1px solid var(--sb); border-radius:16px; padding:18px 24px; margin-bottom:20px; box-shadow:var(--shadow); }
.eod-sum-item    { text-align:center; flex:1; min-width:100px; }
.eod-sum-num     { font-family:var(--m); font-size:34px; font-weight:800; color:var(--c1); line-height:1; }
.eod-sum-sm      { font-size:20px; }
.eod-sum-lbl     { font-size:11px; color:var(--t3); margin-top:5px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.eod-sum-divider { width:1px; height:44px; background:var(--sb); flex-shrink:0; }
.eod-save-all-btn { padding:14px 30px; border-radius:13px; background:linear-gradient(135deg,var(--c1),var(--c2)); color:#fff; border:none; font-family:var(--f); font-size:15px; font-weight:700; cursor:pointer; box-shadow:0 4px 16px rgba(14,165,233,.35); transition:all .2s; white-space:nowrap; }
.eod-save-all-btn:hover  { transform:translateY(-2px); box-shadow:0 8px 24px rgba(14,165,233,.45); }
.eod-save-all-btn:disabled { opacity:.65; cursor:not-allowed; transform:none; }

.eod-card      { background:var(--white); border:1.5px solid var(--sb); border-radius:20px; margin-bottom:16px; box-shadow:var(--shadow); overflow:hidden; transition:box-shadow .2s; }
.eod-card:hover { box-shadow:var(--shadow-lg); }
.eod-card-done  { border-color:#6ee7b7; background:linear-gradient(180deg,#f0fdf4,#fff 55%); }
.eod-card-hdr   { display:flex; align-items:center; gap:12px; padding:16px 20px; background:linear-gradient(90deg,#f8faff,#eff4ff); border-bottom:1.5px solid var(--sb); }
.eod-card-num   { width:36px; height:36px; border-radius:11px; flex-shrink:0; background:linear-gradient(135deg,var(--c1),var(--c2)); color:#fff; font-size:16px; font-weight:800; display:flex; align-items:center; justify-content:center; }
.eod-card-meta  { flex:1; min-width:0; }
.eod-card-code  { font-family:var(--m); font-size:17px; font-weight:800; color:var(--tx); }
.eod-card-model { font-size:11px; color:var(--t3); margin-top:2px; }
.eod-toner-ring { padding:6px 12px; border-radius:10px; border:2px solid; text-align:center; flex-shrink:0; }
.eod-toner-pct  { font-family:var(--m); font-size:18px; font-weight:800; display:block; line-height:1; }
.eod-toner-word { font-size:9px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; opacity:.7; }
.eod-done-tick  { font-size:22px; flex-shrink:0; }

.eod-paper-grid { display:grid; grid-template-columns:repeat(3,1fr); border-bottom:1.5px solid var(--sb); }
.eod-paper-col  { padding:15px 14px; border-right:1px solid var(--sb); }
.eod-paper-col:last-child { border-right:none; }
.eod-paper-name { font-size:13px; font-weight:800; color:var(--tx); margin-bottom:12px; text-align:center; }
.eod-side-lbl   { display:block; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--t3); margin-bottom:5px; margin-top:10px; text-align:center; }
.eod-side-lbl:first-of-type { margin-top:0; }
.eod-input { width:100%; padding:12px 6px; border:2px solid var(--sb); border-radius:10px;
  font-family:var(--m); font-size:20px; font-weight:700; color:var(--tx);
  background:#f8fafc; text-align:center; transition:all .18s; appearance:textfield; -moz-appearance:textfield; }
.eod-input::-webkit-outer-spin-button,
.eod-input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.eod-input:focus { outline:none; border-color:var(--c1); background:#fff; box-shadow:0 0 0 4px rgba(14,165,233,.12); }

.eod-card-footer  { display:flex; align-items:center; justify-content:space-between; padding:13px 20px; background:#fafbfc; gap:12px; }
.eod-total-row    { display:flex; align-items:center; gap:10px; }
.eod-total-label  { font-size:13px; font-weight:600; color:var(--t2); }
.eod-total-num    { font-family:var(--m); font-size:26px; font-weight:800; color:var(--t3); transition:color .25s; line-height:1; }
.eod-save-btn     { padding:12px 24px; border-radius:12px; border:none; background:linear-gradient(135deg,var(--c1),var(--c2)); color:#fff; font-family:var(--f); font-size:14px; font-weight:700; cursor:pointer; transition:all .2s; box-shadow:0 4px 14px rgba(14,165,233,.3); white-space:nowrap; flex-shrink:0; }
.eod-save-btn:hover    { transform:translateY(-1px); box-shadow:0 6px 20px rgba(14,165,233,.4); }
.eod-save-btn:disabled { cursor:default; transform:none; }

.eod-history     { background:var(--white); border:1px solid var(--sb); border-radius:16px; overflow:hidden; margin-top:24px; box-shadow:var(--shadow); }
.eod-history-hdr { padding:14px 20px; font-size:14px; font-weight:700; color:var(--tx); border-bottom:1px solid var(--sb); background:#fafbfc; }
.eod-empty       { padding:52px 20px; text-align:center; }
.eod-empty-icon  { font-size:52px; margin-bottom:14px; }
.eod-empty-title { font-size:17px; font-weight:700; color:var(--tx); }
.eod-empty-sub   { font-size:13px; color:var(--t3); margin-top:6px; }
.eod-loading     { display:flex; align-items:center; justify-content:center; gap:10px; padding:44px; color:var(--t3); font-size:13px; }

/* ── Mobile ≤ 768px ── */
@media (max-width: 768px) {
  .eod-hero         { padding:16px 18px; border-radius:14px; }
  .eod-hero-title   { font-size:17px; }
  .eod-hero-icon    { width:46px; height:46px; font-size:22px; }
  .eod-summary      { gap:10px; padding:14px 16px; }
  .eod-sum-num      { font-size:26px; }
  .eod-save-all-btn { width:100%; text-align:center; padding:13px; }
  .eod-paper-grid   { grid-template-columns:1fr; }
  .eod-paper-col    { border-right:none; border-bottom:1px solid var(--sb); padding:14px 16px; }
  .eod-paper-col:last-child { border-bottom:none; }
  .eod-paper-name   { text-align:left; }
  .eod-side-lbl     { text-align:left; }
  .eod-input        { font-size:22px; padding:14px 10px; }
  .eod-card-footer  { flex-direction:column; align-items:stretch; gap:10px; }
  .eod-total-row    { justify-content:center; }
  .eod-save-btn     { width:100%; text-align:center; padding:15px; font-size:16px; }
  .appr-card-content { flex-direction:column; }
  .appr-card-right   { width:100%; border-left:none; padding-left:0; border-top:1px solid var(--sb); padding-top:14px; align-items:stretch; }
  .svc-twocol        { grid-template-columns:1fr; }
  .nreq-body         { grid-template-columns:1fr; }
  .nreq-info         { display:none; }
  .pr-kpi-row        { grid-template-columns:repeat(2,1fr); }
  .appr-kpi-row      { grid-template-columns:1fr; }
  .st-action-layout  { grid-template-columns:1fr; }
  .imp-upload-layout { grid-template-columns:1fr; }
  .svc-kpi-row       { grid-template-columns:repeat(2,1fr); }
  .pr-branch-hdr     { flex-wrap:wrap; }
  .pr-branch-bar-track { width:100%; }
}

/* ── Small mobile ≤ 480px ── */
@media (max-width: 480px) {
  .eod-hero-title { font-size:15px; }
  .eod-sum-num    { font-size:22px; }
  .eod-card-code  { font-size:15px; }
  .eod-input      { font-size:20px; }
  .krow           { grid-template-columns:repeat(2,1fr); }
}

/* ══════════════════════════════════════════════════════════
   STORE DISPATCH QUEUE — added styles
   ══════════════════════════════════════════════════════════ */
.dq-section-hdr {
  display:flex; align-items:center; gap:14px;
  padding:16px 20px; background:#fffbeb;
  border:1px solid #fde68a; border-radius:14px; margin-bottom:12px;
}
.dq-section-icon {
  width:42px; height:42px; border-radius:12px; background:#fef3c7;
  display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0;
}
.dq-section-title { font-size:15px; font-weight:700; color:#92400e; }
.dq-section-sub   { font-size:12px; color:#b45309; margin-top:2px; }
.dq-empty { padding:50px 20px; text-align:center; }
.dq-card {
  background:#fff; border:1px solid var(--sb); border-radius:16px;
  margin-bottom:12px; overflow:hidden; box-shadow:var(--shadow);
}
.dq-card-pending  { border-left:4px solid #f59e0b; }
.dq-card-done-wrap { border-left:4px solid #10b981; opacity:.85; }
.dq-card-main { padding:18px 20px; }
.dq-card-top  { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; gap:10px; }
.dq-model     { font-size:16px; font-weight:800; color:var(--tx); }
.dq-pri       { font-size:11px; font-weight:700; padding:3px 10px; border-radius:20px; flex-shrink:0; }
.dq-card-meta { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:8px; }
.dq-meta-item { display:flex; align-items:center; gap:5px; font-size:12px; color:var(--t2); }
.dq-meta-ico  { font-size:13px; }
.dq-branch-code {
  font-family:var(--m); font-size:10px; font-weight:700;
  background:#dbeafe; color:#1d4ed8; padding:2px 7px; border-radius:5px;
}
.dq-notes {
  font-size:12px; color:var(--t2); font-style:italic;
  padding:7px 11px; background:#f8fafc; border-radius:8px;
  border-left:3px solid #cbd5e1; margin-top:6px;
}
.dq-card-action {
  padding:14px 20px; background:#fafbfc; border-top:1px solid var(--sb);
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.dq-note-input {
  flex:1; min-width:160px; padding:10px 14px; border:1.5px solid var(--sb);
  border-radius:10px; font-family:var(--f); font-size:13px; color:var(--tx);
  background:#fff; outline:none; transition:border-color .2s;
}
.dq-note-input:focus { border-color:var(--c1); }
.dq-dispatch-btn {
  padding:11px 22px; border-radius:11px; border:none; cursor:pointer;
  background:linear-gradient(135deg,#6366f1,#0ea5e9); color:#fff;
  font-family:var(--f); font-size:13px; font-weight:700;
  box-shadow:0 4px 14px rgba(99,102,241,.3); transition:all .2s;
  white-space:nowrap; flex-shrink:0;
}
.dq-dispatch-btn:hover { transform:translateY(-1px); box-shadow:0 6px 20px rgba(99,102,241,.4); }
.dq-dispatch-btn:disabled { opacity:.65; cursor:not-allowed; transform:none; }
.dq-card-done {
  padding:14px 20px; background:#f0fdf4; border-top:1px solid #bbf7d0;
  display:flex; align-items:center; gap:12px;
}
@media (max-width: 640px) {
  .dq-card-action { flex-direction:column; align-items:stretch; }
  .dq-note-input  { min-width:0; }
  .dq-dispatch-btn { text-align:center; }
}
/* ══════════════════════════════════════════════════════════
   TONER REPLACEMENT LOG — Service Person Dashboard
   Mobile-first
   ══════════════════════════════════════════════════════════ */
/* ── Toner Log — Branch header ─────────────────────────── */
.tl-branch-badge {
  display:flex; align-items:center; gap:10px;
  background:linear-gradient(135deg,#1e3a5f,#0ea5e9);
  border-radius:16px; padding:14px 20px;
  font-size:15px; font-weight:700; color:#fff;
  margin-bottom:18px; width:100%; box-sizing:border-box;
  box-shadow:0 4px 16px rgba(14,165,233,.25);
}
.tl-branch-sel-wrap {
  background:var(--white); border:1.5px solid var(--sb);
  border-radius:14px; padding:14px 18px; margin-bottom:18px;
  box-shadow:var(--shadow); display:flex; align-items:center; gap:12px;
}

/* ── Printer cards ─────────────────────────────────────── */
.tl-card {
  background:#fff; border:2px solid #e2e8f0;
  border-radius:20px; padding:20px;
  margin-bottom:16px; box-shadow:0 2px 12px rgba(0,0,0,.06);
  transition:box-shadow .2s;
}
.tl-card:hover { box-shadow:0 6px 24px rgba(0,0,0,.1); }

/* Top row: printer info + toner % */
.tl-card-top {
  display:flex; align-items:center;
  justify-content:space-between;
  gap:12px; margin-bottom:14px;
}
.tl-card-left  { flex:1; min-width:0; }
.tl-card-right {
  text-align:center; flex-shrink:0;
  background:#f8fafc; border-radius:14px;
  padding:12px 16px; min-width:80px;
}

.tl-printer-code  {
  font-family:var(--m); font-size:20px;
  font-weight:900; color:#0f172a;
}
.tl-printer-model { font-size:13px; color:#64748b; margin-top:4px; }
.tl-printer-loc   { font-size:12px; color:#94a3b8; margin-top:3px; }

.tl-pct {
  font-family:var(--m); font-size:28px;
  font-weight:900; line-height:1;
}
.tl-toner-model {
  font-size:10px; color:#94a3b8;
  margin-top:4px; font-weight:600;
  text-transform:uppercase; letter-spacing:.04em;
}

/* Toner bar */
.tl-bar {
  height:10px; background:#f1f5f9;
  border-radius:5px; overflow:hidden;
  margin-bottom:16px;
}
.tl-bar-fill {
  height:100%; border-radius:5px;
  transition:width .8s ease;
}

/* Last replaced info */
.tl-last-replaced {
  display:flex; align-items:flex-start; gap:12px;
  background:#f8fafc; border-radius:12px;
  padding:12px 16px; margin-bottom:16px;
  border-left:4px solid #e2e8f0;
}
.tl-last-replaced.tl-never {
  border-left-color:#fed7aa; background:#fffbeb;
}
.tl-last-ico   { font-size:20px; flex-shrink:0; margin-top:1px; }
.tl-last-label {
  font-size:11px; font-weight:700; color:#94a3b8;
  text-transform:uppercase; letter-spacing:.05em;
}
.tl-last-dt    { font-size:14px; font-weight:700; color:#0f172a; margin-top:3px; }
.tl-last-by    { font-size:12px; color:#64748b; margin-top:2px; }

/* Replace button — BIG tap target */
.tl-replace-btn {
  width:100%; padding:18px;
  border-radius:16px; border:none; cursor:pointer;
  background:linear-gradient(135deg,#10b981,#059669);
  color:#fff; font-family:var(--f);
  font-size:17px; font-weight:800;
  box-shadow:0 4px 20px rgba(16,185,129,.35);
  transition:all .2s;
  display:flex; align-items:center; justify-content:center; gap:8px;
  letter-spacing:.01em;
}
.tl-replace-btn:hover   { transform:translateY(-2px); box-shadow:0 8px 28px rgba(16,185,129,.45); }
.tl-replace-btn:active  { transform:translateY(0); box-shadow:none; }
.tl-replace-btn:disabled { opacity:.65; cursor:not-allowed; transform:none; }

/* Empty / loading */
.tl-loading {
  display:flex; align-items:center; justify-content:center;
  gap:10px; padding:44px; color:#94a3b8; font-size:13px;
}
.tl-empty { padding:52px 20px; text-align:center; }
.tl-empty-icon  { font-size:56px; margin-bottom:14px; }
.tl-empty-title { font-size:17px; font-weight:800; color:#0f172a; }
.tl-empty-sub   { font-size:13px; color:#94a3b8; margin-top:8px; }

/* ── MOBILE — full priority ────────────────────────────── */
@media (max-width: 768px) {
  .tl-card          { padding:18px 16px; border-radius:18px; }
  .tl-printer-code  { font-size:22px; }
  .tl-printer-model { font-size:14px; }
  .tl-pct           { font-size:32px; }
  .tl-card-right    { min-width:90px; padding:14px; }
  .tl-bar           { height:12px; margin-bottom:18px; }
  .tl-last-replaced { padding:14px; }
  .tl-last-dt       { font-size:15px; }
  .tl-replace-btn   { font-size:18px; padding:20px; border-radius:18px; }
}

@media (max-width: 480px) {
  .tl-card          { padding:16px 14px; margin-bottom:14px; }
  .tl-printer-code  { font-size:20px; }
  .tl-replace-btn   { font-size:17px; padding:18px; }
}

/* ══════════════════════════════════════════════════════════
   EOD LOG v2 — Mobile-first redesign
   ══════════════════════════════════════════════════════════ */

/* Paper section container */
.eod2-paper-sections {
  padding: 0 16px 4px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Each paper type (A4 / B4 / Letter) */
.eod2-section {
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}
.eod2-section:last-child { border-bottom: none; }

.eod2-section-label {
  font-size: 15px;
  font-weight: 800;
  color: #0c1a2e;
  margin-bottom: 12px;
  letter-spacing: .01em;
}

/* Single/Double side inputs side by side */
.eod2-inputs {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #f8fafc;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid #e8f0fe;
}

.eod2-input-group {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eod2-input-divider {
  width: 1px;
  background: #e8f0fe;
  flex-shrink: 0;
}

.eod2-input-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #94a3b8;
}

.eod2-input {
  width: 100%;
  padding: 12px 8px;
  border: 2px solid #e8f0fe;
  border-radius: 10px;
  font-family: var(--m);
  font-size: 22px;
  font-weight: 800;
  color: #0c1a2e;
  background: #fff;
  text-align: center;
  transition: all .2s;
  -moz-appearance: textfield;
  appearance: textfield;
  box-sizing: border-box;
}
.eod2-input::-webkit-outer-spin-button,
.eod2-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.eod2-input:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14,165,233,.12);
  background: #fff;
}
.eod2-input::placeholder { color: #cbd5e1; }

/* Footer: total + save button */
.eod2-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 16px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  gap: 12px;
}

.eod2-total-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #94a3b8;
  margin-bottom: 2px;
}
.eod2-total-num {
  font-family: var(--m);
  font-size: 28px;
  font-weight: 800;
  color: #94a3b8;
  line-height: 1;
  transition: color .2s;
}

.eod2-save-btn {
  padding: 14px 28px;
  border-radius: 13px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  font-family: var(--f);
  font-size: 16px;
  font-weight: 800;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(14,165,233,.35);
  letter-spacing: .01em;
}
.eod2-save-btn:hover   { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,165,233,.4); }
.eod2-save-btn:active  { transform: translateY(0); }
.eod2-save-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* Mobile tweaks */
@media (max-width: 480px) {
  .eod2-input        { font-size: 20px; padding: 10px 6px; }
  .eod2-save-btn     { padding: 13px 22px; font-size: 15px; }
  .eod2-total-num    { font-size: 24px; }
  .eod2-section-label { font-size: 14px; }
}

/* ══════════════════════════════════════════════════════════
   RENTAL PRINTERS PAGE
   ══════════════════════════════════════════════════════════ */
.rental-kpi-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.rental-kpi {
  background: var(--white);
  border: 1px solid var(--sb);
  border-radius: 16px;
  padding: 18px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid transparent;
}
.rental-kpi-total   { border-top-color: #0ea5e9; }
.rental-kpi-ok      { border-top-color: #10b981; }
.rental-kpi-warn    { border-top-color: #f59e0b; }
.rental-kpi-soon    { border-top-color: #f97316; }
.rental-kpi-expired { border-top-color: #ef4444; }

.rental-kpi-num {
  font-family: var(--m);
  font-size: 32px;
  font-weight: 800;
  color: var(--tx);
  line-height: 1;
  margin-bottom: 6px;
}
.rental-kpi-lbl {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--t3);
}

@media (max-width: 768px) {
  .rental-kpi-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .rental-kpi-row { grid-template-columns: 1fr 1fr; }
  .rental-kpi-num { font-size: 24px; }
}

/* ══════════════════════════════════════════════════════════
   DBA — USER AUDIT LOG
   ══════════════════════════════════════════════════════════ */
.dba-audit-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.dba-audit-kpi {
  background: var(--white);
  border: 1px solid var(--sb);
  border-top: 3px solid #0ea5e9;
  border-radius: 14px;
  padding: 16px 18px;
  text-align: center;
  box-shadow: var(--shadow);
}
.dba-ak-num {
  font-family: var(--m);
  font-size: 28px; font-weight: 800;
  color: var(--tx); line-height: 1;
  margin-bottom: 5px;
}
.dba-ak-lbl {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--t3);
}

/* ══════════════════════════════════════════════════════════
   DBA — SYSTEM HEALTH
   ══════════════════════════════════════════════════════════ */
.dba-health-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.dba-hcard {
  background: var(--white);
  border: 1px solid var(--sb);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid transparent;
}
.dba-hc-blue   { border-top-color: #0ea5e9; }
.dba-hc-green  { border-top-color: #10b981; }
.dba-hc-purple { border-top-color: #6366f1; }
.dba-hc-amber  { border-top-color: #f59e0b; }
.dba-hc-teal   { border-top-color: #14b8a6; }
.dba-hc-red    { border-top-color: #ef4444; }
.dba-hc-icon   { font-size: 28px; margin-bottom: 8px; }
.dba-hc-label  { font-size: 11px; font-weight: 700; text-transform: uppercase;
                  letter-spacing: .06em; color: var(--t3); margin-bottom: 6px; }
.dba-hc-val    { font-size: 16px; font-weight: 800; color: var(--tx); }

@media (max-width: 768px) {
  .dba-audit-kpis   { grid-template-columns: repeat(2, 1fr); }
  .dba-health-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .dba-audit-kpis   { grid-template-columns: 1fr 1fr; }
  .dba-health-grid  { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════════
   DBA — USER MANAGEMENT MOBILE CARDS
   ══════════════════════════════════════════════════════════ */

/* Desktop: show table, hide cards */
.um-table-wrap { display: block; }
.um-cards-wrap { display: none; }

/* Mobile: hide table, show cards */
@media (max-width: 768px) {
  .um-table-wrap { display: none; }
  .um-cards-wrap {
    display: flex; flex-direction: column; gap: 12px;
    padding: 12px 4px;
  }
}

.um-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  transition: box-shadow .2s;
}
.um-card:active { box-shadow: 0 2px 12px rgba(0,0,0,.1); }

.um-card-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 10px;
  margin-bottom: 10px;
}
.um-card-info { flex: 1; min-width: 0; }
.um-card-name {
  font-size: 15px; font-weight: 800;
  color: #0f172a; margin-bottom: 3px;
}
.um-card-user {
  font-size: 11px; color: #64748b;
  font-family: var(--m);
}
.um-card-badges {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 4px;
  flex-shrink: 0;
}

.um-card-meta {
  font-size: 12px; color: #94a3b8;
  margin-bottom: 12px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.um-card-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.um-card-actions .btn {
  flex: 1; min-width: 80px;
  padding: 9px 8px;
  font-size: 12px; font-weight: 700;
  text-align: center; border-radius: 9px;
}

/* ══════════════════════════════════════════════════════════
   EOD LOG v3 — Complete redesign
   ══════════════════════════════════════════════════════════ */

/* Date bar */
.eod3-date-bar {
  background: linear-gradient(135deg, #1e3a5f, #0ea5e9);
  border-radius: 18px; padding: 16px 20px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap;
  gap: 12px; margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(14,165,233,.25);
}
.eod3-date-label {
  font-size: 14px; font-weight: 700; color: #fff;
  letter-spacing: -.01em;
}
.eod3-date-btns { display: flex; gap: 8px; }
.eod3-date-btn {
  padding: 8px 16px; border-radius: 10px;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.15);
  color: #fff; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.eod3-date-btn:hover,
.eod3-date-btn.eod-date-active {
  background: #fff; color: #0ea5e9;
  border-color: #fff;
}

/* Branch selector */
.eod3-branch-sel {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid #e2e8f0; border-radius: 12px;
  font-size: 14px; background: #f8fafc;
  outline: none; margin-bottom: 12px;
}
.eod3-branch-badge {
  background: #eff6ff; color: #1d4ed8;
  padding: 10px 16px; border-radius: 12px;
  font-size: 13px; font-weight: 700;
}

/* Summary strip */
.eod3-summary-strip {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 16px; padding: 14px 20px;
  display: flex; align-items: center;
  justify-content: center; gap: 0;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.eod3-sum-item { text-align: center; flex: 1; }
.eod3-sum-num {
  font-size: 24px; font-weight: 900;
  color: #0ea5e9; line-height: 1;
}
.eod3-sum-lbl {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  color: #94a3b8; margin-top: 3px;
}
.eod3-sum-divider {
  width: 1px; height: 40px;
  background: #e2e8f0; margin: 0 20px;
}

/* Printer grid */
.eod3-printer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 24px;
}

/* Printer card */
.eod3-printer-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 18px; padding: 16px 12px;
  text-align: center; cursor: pointer;
  transition: all .2s; position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.eod3-printer-card:hover {
  border-color: #0ea5e9;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(14,165,233,.2);
}
.eod3-printer-card:active { transform: translateY(0); }

.eod3-done {
  border-color: #10b981 !important;
  background: #f0fdf4 !important;
}

.eod3-card-num {
  position: absolute; top: 10px; left: 12px;
  font-size: 11px; font-weight: 800;
  color: #94a3b8; font-family: var(--m);
}
.eod3-done-badge {
  position: absolute; top: 8px; right: 8px;
  font-size: 10px; font-weight: 700;
  background: #d1fae5; color: #065f46;
  padding: 2px 7px; border-radius: 6px;
}
.eod3-printer-icon { font-size: 32px; margin-bottom: 6px; margin-top: 8px; }
.eod3-printer-code {
  font-family: var(--m); font-size: 13px;
  font-weight: 800; color: #0f172a; margin-bottom: 2px;
}
.eod3-printer-model {
  font-size: 10px; color: #94a3b8; margin-bottom: 10px;
}
.eod3-toner-bar-wrap {
  height: 6px; background: #f1f5f9;
  border-radius: 3px; overflow: hidden; margin-bottom: 4px;
}
.eod3-toner-bar {
  height: 100%; border-radius: 3px;
  transition: width .5s ease;
}
.eod3-toner-pct {
  font-size: 11px; font-weight: 700; margin-bottom: 8px;
}
.eod3-tap-hint {
  font-size: 11px; color: #0ea5e9;
  font-weight: 600; background: #eff6ff;
  padding: 4px 8px; border-radius: 6px;
}
.eod3-logged-total {
  font-size: 13px; color: #065f46;
  font-weight: 800; background: #d1fae5;
  padding: 4px 8px; border-radius: 6px;
}

/* History section */
.eod3-history-section {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 16px; padding: 16px;
  margin-bottom: 24px;
}
.eod3-history-title {
  font-size: 14px; font-weight: 800;
  color: #0f172a; margin-bottom: 14px;
}
.eod3-hist-row {
  display: grid;
  grid-template-columns: 70px 100px 80px 1fr;
  gap: 8px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
}
.eod3-hist-row:last-child { border-bottom: none; }
.eod3-hist-date  { color: #94a3b8; font-size: 11px; }
.eod3-hist-code  { font-family: var(--m); font-weight: 700; color: #0ea5e9; }
.eod3-hist-total { font-family: var(--m); font-weight: 800; color: #0f172a; }
.eod3-hist-papers{ font-size: 10px; color: #64748b; }
.eod3-no-history { color: #94a3b8; font-size: 13px; text-align: center; padding: 16px; }

/* ── PRINTER POPUP ── */
.eod3-pop-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
  align-items: flex-end; justify-content: center;
  padding: 0;
}
@media (min-width: 600px) {
  .eod3-pop-overlay { align-items: center; padding: 20px; }
}

.eod3-pop-box {
  background: #fff;
  border-radius: 24px 24px 0 0;
  width: 100%; max-width: 520px;
  max-height: 92vh; overflow-y: auto;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  padding-bottom: env(safe-area-inset-bottom, 20px);
}
@media (min-width: 600px) {
  .eod3-pop-box {
    border-radius: 24px;
    transform: scale(.95) translateY(20px);
    opacity: 0;
    transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .3s;
  }
  .eod3-pop-box.open {
    transform: scale(1) translateY(0) !important;
    opacity: 1 !important;
  }
}
.eod3-pop-box.open { transform: translateY(0); }

.eod3-pop-hdr {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 20px 20px 14px;
  background: linear-gradient(135deg, #1e3a5f, #0ea5e9);
  border-radius: 24px 24px 0 0;
  position: sticky; top: 0; z-index: 2;
}
.eod3-pop-code  { font-size: 18px; font-weight: 900; color: #fff; }
.eod3-pop-model { font-size: 11px; color: rgba(255,255,255,.75); margin-top: 2px; }
.eod3-pop-pct   { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.eod3-pop-hdr-right { text-align: right; }
.eod3-pop-close {
  background: rgba(255,255,255,.2); border: none;
  color: #fff; width: 30px; height: 30px;
  border-radius: 50%; cursor: pointer;
  font-size: 13px; font-weight: 700;
}

.eod3-pop-section {
  padding: 18px 20px 4px;
  border-bottom: 1px solid #f1f5f9;
}
.eod3-pop-section:last-of-type { border-bottom: none; }
.eod3-pop-section-title {
  font-size: 14px; font-weight: 800; color: #0f172a;
  margin-bottom: 4px;
}
.eod3-pop-section-sub {
  font-size: 11px; color: #94a3b8; margin-bottom: 14px;
}

/* Big total input */
.eod3-total-input {
  width: 100%; padding: 18px;
  border: 2.5px solid #e2e8f0; border-radius: 16px;
  font-size: 36px; font-weight: 900;
  color: #0f172a; text-align: center;
  background: #f8fafc; outline: none;
  font-family: var(--m); box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
  -moz-appearance: textfield;
  appearance: textfield;
}
.eod3-total-input::-webkit-outer-spin-button,
.eod3-total-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.eod3-total-input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14,165,233,.12);
  background: #fff;
}
.eod3-total-preview {
  text-align: center; font-size: 16px; font-weight: 700;
  color: #94a3b8; min-height: 28px; padding: 4px 0 12px;
  transition: color .2s;
}

/* Paper cards */
.eod3-paper-card {
  border: 1.5px solid #e2e8f0; border-radius: 14px;
  margin-bottom: 10px; overflow: hidden;
  transition: border-color .2s;
}
.eod3-paper-open { border-color: #0ea5e9; }
.eod3-paper-card-hdr {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; cursor: pointer;
  background: #f8fafc; transition: background .15s;
}
.eod3-paper-card-hdr:hover { background: #f0f9ff; }
.eod3-paper-icon  { font-size: 20px; }
.eod3-paper-name  { font-size: 14px; font-weight: 700; color: #0f172a; flex: 1; }
.eod3-paper-arrow { font-size: 11px; color: #94a3b8; transition: color .2s; }
.eod3-paper-open .eod3-paper-arrow { color: #0ea5e9; }

.eod3-paper-inputs { padding: 12px 16px 16px; background: #fff; }
.eod3-paper-row {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 10px;
}
.eod3-paper-row:last-child { margin-bottom: 0; }
.eod3-paper-side-lbl { font-size: 13px; font-weight: 600; color: #475569; }
.eod3-paper-inp {
  width: 130px; padding: 10px 14px;
  border: 2px solid #e2e8f0; border-radius: 10px;
  font-size: 20px; font-weight: 800; color: #0f172a;
  text-align: center; background: #f8fafc;
  font-family: var(--m); outline: none;
  transition: border-color .2s; box-sizing: border-box;
  -moz-appearance: textfield;
  appearance: textfield;
}
.eod3-paper-inp::-webkit-outer-spin-button,
.eod3-paper-inp::-webkit-inner-spin-button { -webkit-appearance: none; }
.eod3-paper-inp:focus {
  border-color: #0ea5e9; background: #fff;
  box-shadow: 0 0 0 3px rgba(14,165,233,.1);
}

.eod3-paper-total-preview {
  text-align: center; font-size: 12px; color: #64748b;
  font-weight: 600; min-height: 20px; padding: 4px 0 8px;
}

/* Save button */
.eod3-pop-footer { padding: 16px 20px 20px; }
.eod3-pop-save-btn {
  width: 100%; padding: 18px;
  border-radius: 16px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff; font-size: 18px; font-weight: 800;
  letter-spacing: .01em; transition: all .2s;
  box-shadow: 0 4px 20px rgba(14,165,233,.4);
  font-family: var(--f);
}
.eod3-pop-save-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(14,165,233,.5); }
.eod3-pop-save-btn:disabled { opacity: .7; transform: none; cursor: not-allowed; }

@media (max-width: 480px) {
  .eod3-printer-grid { grid-template-columns: repeat(2, 1fr); }
  .eod3-total-input  { font-size: 30px; padding: 14px; }
  .eod3-pop-save-btn { font-size: 16px; padding: 16px; }
}

/* ── Toner Log — Mobile page header ─────────────────────── */
.tl-page-hdr {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 18px; gap: 12px;
}
.tl-page-title {
  font-size: 20px; font-weight: 900;
  color: #0f172a; letter-spacing: -.01em;
}
.tl-page-sub {
  font-size: 12px; color: #94a3b8;
  margin-top: 3px;
}
.tl-refresh-btn {
  width: 42px; height: 42px; flex-shrink: 0;
  background: #f1f5f9; border: 1.5px solid #e2e8f0;
  border-radius: 12px; font-size: 18px;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.tl-refresh-btn:hover { background: #e2e8f0; }

@media (max-width: 480px) {
  .tl-page-title { font-size: 18px; }
}

/* ── Printers Register Tabs ──────────────────────────────── */
.pr-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.pr-tab {
  padding: 10px 20px; border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #fff; color: #475569;
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; gap: 8px;
}
.pr-tab:hover { border-color: #0ea5e9; color: #0ea5e9; }
.pr-tab.act {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(14,165,233,.3);
}
.pr-tab-count {
  background: rgba(255,255,255,.3);
  padding: 1px 7px; border-radius: 10px;
  font-size: 11px; font-weight: 800;
}
.pr-tab:not(.act) .pr-tab-count {
  background: #f1f5f9; color: #64748b;
}
@media (max-width: 480px) {
  .pr-tab { padding: 9px 14px; font-size: 13px; }
}

/* ══════════════════════════════════════════════════════════
   BRANCH PERFORMANCE REPORT
   ══════════════════════════════════════════════════════════ */
.br-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px; margin-bottom: 24px;
}
.br-card {
  background: #fff; border: 1.5px solid #e2e8f0;
  border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: box-shadow .2s;
}
.br-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.09); }
.br-card-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 10px;
}
.br-code {
  background: #dbeafe; color: #1d4ed8;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 5px;
  font-family: monospace; margin-right: 7px;
}
.br-name  { font-size: 13px; font-weight: 700; color: #0f172a; }
.br-prints { font-size: 22px; font-weight: 900; color: #0ea5e9; white-space: nowrap; }
.br-bar-wrap {
  height: 6px; background: #f1f5f9;
  border-radius: 3px; overflow: hidden; margin-bottom: 10px;
}
.br-bar {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
  transition: width .6s ease;
}
.br-stats {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.br-stat {
  font-size: 11px; color: #64748b; font-weight: 500;
  background: #f8fafc; padding: 2px 8px; border-radius: 5px;
}
.br-cpc-badge {
  font-size: 11px; font-weight: 700;
  background: #f0fdf4; color: #15803d;
  padding: 2px 8px; border-radius: 5px;
}

@media (max-width: 640px) {
  .br-grid { grid-template-columns: 1fr; }
  .br-prints { font-size: 18px; }
}

/* ══════════════════════════════════════════════════════════
   MOBILE STORE TABS — Replace tab bar with bottom pill nav
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Hide the horizontal tab bar completely */
  #page-store .svc-main-tabs,
  #page-import .svc-main-tabs {
    display: none !important;
  }

  /* Show mobile bottom pill nav for store */
  .store-mobile-nav {
    display: flex !important;
  }
}

.store-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 150;
  background: #fff;
  border-top: 1.5px solid #e2e8f0;
  padding: 8px 6px 12px;
  gap: 4px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.10);
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.store-mobile-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: 12px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--f);
  transition: all .2s;
}
.store-mobile-nav-btn .smn-icon { font-size: 20px; line-height: 1; }
.store-mobile-nav-btn .smn-label { font-size: 9px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }
.store-mobile-nav-btn.smn-act { background: #eff6ff; }
.store-mobile-nav-btn.smn-act .smn-label { color: #0ea5e9; }
.store-mobile-nav-badge {
  position: absolute; top: 4px; right: 4px;
  background: #ef4444; color: #fff;
  font-size: 9px; font-weight: 800;
  min-width: 16px; height: 16px;
  border-radius: 8px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
}
/* Push main content up so bottom nav doesn't cover it */
@media (max-width: 768px) {
  #page-store .store-panel { padding-bottom: 80px; }
}
/* ══════════════════════════════════════════════════════════
   EOD PAPER CARDS — Branch daily paper totals (ADD TO BOTTOM)
   ══════════════════════════════════════════════════════════ */
.eod-paper-section-title {
  font-size: 15px; font-weight: 800; color: #0f172a;
  margin: 24px 0 14px; padding-left: 2px;
}
.eod-paper-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 24px;
}
.eod-paper-card {
  background: #fff; border: 2px solid #e2e8f0;
  border-radius: 20px; padding: 22px 16px;
  text-align: center; cursor: pointer;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.eod-paper-card:hover {
  border-color: #0ea5e9;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(14,165,233,.15);
}
.eod-paper-card-done {
  border-color: #10b981 !important;
  background: #f0fdf4 !important;
}
.eod-paper-card-icon  { font-size: 36px; margin-bottom: 8px; }
.eod-paper-card-label { font-size: 14px; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.eod-paper-card-total { font-size: 22px; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.eod-paper-card-sub   { font-size: 11px; color: #64748b; margin-bottom: 8px; }
.eod-paper-card-badge {
  font-size: 10px; font-weight: 700;
  background: #d1fae5; color: #065f46;
  padding: 3px 10px; border-radius: 6px; display: inline-block;
}
.eod-paper-card-hint {
  font-size: 12px; color: #0ea5e9; font-weight: 600;
  background: #eff6ff; padding: 6px 10px;
  border-radius: 8px; display: inline-block;
}
@media (max-width: 600px) {
  .eod-paper-cards-grid { grid-template-columns: 1fr; gap: 10px; }
  .eod-paper-card-icon { font-size: 28px; }
  .eod-paper-card-total { font-size: 18px; }
}

/* ══════════════════════════════════════════════════════════
   EOD PAPER CARDS — Branch daily paper totals (ADD TO BOTTOM)
   ══════════════════════════════════════════════════════════ */
.eod-paper-section-title {
  font-size: 15px; font-weight: 800; color: #0f172a;
  margin: 24px 0 14px; padding-left: 2px;
}
.eod-paper-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 24px;
}
.eod-paper-card {
  background: #fff; border: 2px solid #e2e8f0;
  border-radius: 20px; padding: 22px 16px;
  text-align: center; cursor: pointer;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.eod-paper-card:hover {
  border-color: #0ea5e9;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(14,165,233,.15);
}
.eod-paper-card-done {
  border-color: #10b981 !important;
  background: #f0fdf4 !important;
}
.eod-paper-card-icon  { font-size: 36px; margin-bottom: 8px; }
.eod-paper-card-label { font-size: 14px; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.eod-paper-card-total { font-size: 22px; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.eod-paper-card-sub   { font-size: 11px; color: #64748b; margin-bottom: 8px; }
.eod-paper-card-badge {
  font-size: 10px; font-weight: 700;
  background: #d1fae5; color: #065f46;
  padding: 3px 10px; border-radius: 6px; display: inline-block;
}
.eod-paper-card-hint {
  font-size: 12px; color: #0ea5e9; font-weight: 600;
  background: #eff6ff; padding: 6px 10px;
  border-radius: 8px; display: inline-block;
}
@media (max-width: 600px) {
  .eod-paper-cards-grid { grid-template-columns: 1fr; gap: 10px; }
  .eod-paper-card-icon { font-size: 28px; }
  .eod-paper-card-total { font-size: 18px; }
}

/* ══════════════════════════════════════════════════════════
   EOD HISTORY — Rich table with meter reading
   ══════════════════════════════════════════════════════════ */
.eod3-hist-table { width: 100%; overflow-x: auto; }
.eod3-hist-header {
  display: grid;
  grid-template-columns: 110px 90px 1fr 1fr 1fr;
  gap: 6px; padding: 8px 10px;
  background: #f8fafc; border-radius: 10px 10px 0 0;
  border-bottom: 1.5px solid #e2e8f0;
  margin-bottom: 2px;
}
.eod3-hh {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: #94a3b8;
}
.eod3-hist-row2 {
  display: grid;
  grid-template-columns: 110px 90px 1fr 1fr 1fr;
  gap: 6px; padding: 9px 10px;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
  transition: background .1s;
}
.eod3-hist-row2:hover { background: #f8fafc; }
.eod3-hist-row2:last-child { border-bottom: none; }
.eod3-hd { font-size: 12px; color: #0f172a; }
.eod3-hd-date  { color: #64748b; font-size: 11px; }
.eod3-hd-code  { font-family: var(--m); font-weight: 700; color: #0ea5e9; font-size: 11px; }
.eod3-hd-meter { font-family: var(--m); font-size: 11px; color: #475569; }
.eod3-hd-prev  { font-size: 10px; color: #94a3b8; }

@media (max-width: 480px) {
  .eod3-hist-header,
  .eod3-hist-row2 {
    grid-template-columns: 85px 75px 80px 70px 1fr;
    gap: 4px; padding: 8px 6px;
  }
  .eod3-hh, .eod3-hd { font-size: 10px; }
}

/* ══════════════════════════════════════════════════════════
   EOD PAPER CARDS — Branch daily paper totals (ADD TO BOTTOM)
   ══════════════════════════════════════════════════════════ */
.eod-paper-section-title {
  font-size: 15px; font-weight: 800; color: #0f172a;
  margin: 24px 0 14px; padding-left: 2px;
}
.eod-paper-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 24px;
}
.eod-paper-card {
  background: #fff; border: 2px solid #e2e8f0;
  border-radius: 20px; padding: 22px 16px;
  text-align: center; cursor: pointer;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.eod-paper-card:hover {
  border-color: #0ea5e9;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(14,165,233,.15);
}
.eod-paper-card-done {
  border-color: #10b981 !important;
  background: #f0fdf4 !important;
}
.eod-paper-card-icon  { font-size: 36px; margin-bottom: 8px; }
.eod-paper-card-label { font-size: 14px; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.eod-paper-card-total { font-size: 22px; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.eod-paper-card-sub   { font-size: 11px; color: #64748b; margin-bottom: 8px; }
.eod-paper-card-badge {
  font-size: 10px; font-weight: 700;
  background: #d1fae5; color: #065f46;
  padding: 3px 10px; border-radius: 6px; display: inline-block;
}
.eod-paper-card-hint {
  font-size: 12px; color: #0ea5e9; font-weight: 600;
  background: #eff6ff; padding: 6px 10px;
  border-radius: 8px; display: inline-block;
}
@media (max-width: 600px) {
  .eod-paper-cards-grid { grid-template-columns: 1fr; gap: 10px; }
  .eod-paper-card-icon { font-size: 28px; }
  .eod-paper-card-total { font-size: 18px; }
}

/* ══════════════════════════════════════════════════════════
   EOD HISTORY — Rich table with meter reading
   ══════════════════════════════════════════════════════════ */
.eod3-hist-table { width: 100%; overflow-x: auto; }
.eod3-hist-header {
  display: grid;
  grid-template-columns: 110px 90px 1fr 1fr 1fr;
  gap: 6px; padding: 8px 10px;
  background: #f8fafc; border-radius: 10px 10px 0 0;
  border-bottom: 1.5px solid #e2e8f0;
  margin-bottom: 2px;
}
.eod3-hh {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: #94a3b8;
}
.eod3-hist-row2 {
  display: grid;
  grid-template-columns: 110px 90px 1fr 1fr 1fr;
  gap: 6px; padding: 9px 10px;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
  transition: background .1s;
}
.eod3-hist-row2:hover { background: #f8fafc; }
.eod3-hist-row2:last-child { border-bottom: none; }
.eod3-hd { font-size: 12px; color: #0f172a; }
.eod3-hd-date  { color: #64748b; font-size: 11px; }
.eod3-hd-code  { font-family: var(--m); font-weight: 700; color: #0ea5e9; font-size: 11px; }
.eod3-hd-meter { font-family: var(--m); font-size: 11px; color: #475569; }
.eod3-hd-prev  { font-size: 10px; color: #94a3b8; }

@media (max-width: 480px) {
  .eod3-hist-header,
  .eod3-hist-row2 {
    grid-template-columns: 85px 75px 80px 70px 1fr;
    gap: 4px; padding: 8px 6px;
  }
  .eod3-hh, .eod3-hd { font-size: 10px; }
}

/* Printer card — meter + daily prints display */
.eod3-logged-meter {
  font-size: 10px;
  color: #94a3b8;
  font-family: var(--m);
  margin-top: 4px;
}
.eod3-logged-total {
  font-size: 13px;
  font-weight: 800;
  color: #0ea5e9;
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════
   EOD PAPER CARDS — Branch daily paper totals (ADD TO BOTTOM)
   ══════════════════════════════════════════════════════════ */
.eod-paper-section-title {
  font-size: 15px; font-weight: 800; color: #0f172a;
  margin: 24px 0 14px; padding-left: 2px;
}
.eod-paper-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 24px;
}
.eod-paper-card {
  background: #fff; border: 2px solid #e2e8f0;
  border-radius: 20px; padding: 22px 16px;
  text-align: center; cursor: pointer;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.eod-paper-card:hover {
  border-color: #0ea5e9;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(14,165,233,.15);
}
.eod-paper-card-done {
  border-color: #10b981 !important;
  background: #f0fdf4 !important;
}
.eod-paper-card-icon  { font-size: 36px; margin-bottom: 8px; }
.eod-paper-card-label { font-size: 14px; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.eod-paper-card-total { font-size: 22px; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.eod-paper-card-sub   { font-size: 11px; color: #64748b; margin-bottom: 8px; }
.eod-paper-card-badge {
  font-size: 10px; font-weight: 700;
  background: #d1fae5; color: #065f46;
  padding: 3px 10px; border-radius: 6px; display: inline-block;
}
.eod-paper-card-hint {
  font-size: 12px; color: #0ea5e9; font-weight: 600;
  background: #eff6ff; padding: 6px 10px;
  border-radius: 8px; display: inline-block;
}
@media (max-width: 600px) {
  .eod-paper-cards-grid { grid-template-columns: 1fr; gap: 10px; }
  .eod-paper-card-icon { font-size: 28px; }
  .eod-paper-card-total { font-size: 18px; }
}

/* ══════════════════════════════════════════════════════════
   EOD HISTORY — Rich table with meter reading
   ══════════════════════════════════════════════════════════ */
.eod3-hist-table { width: 100%; overflow-x: auto; }
.eod3-hist-header {
  display: grid;
  grid-template-columns: 110px 90px 1fr 1fr 1fr;
  gap: 6px; padding: 8px 10px;
  background: #f8fafc; border-radius: 10px 10px 0 0;
  border-bottom: 1.5px solid #e2e8f0;
  margin-bottom: 2px;
}
.eod3-hh {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: #94a3b8;
}
.eod3-hist-row2 {
  display: grid;
  grid-template-columns: 110px 90px 1fr 1fr 1fr;
  gap: 6px; padding: 9px 10px;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
  transition: background .1s;
}
.eod3-hist-row2:hover { background: #f8fafc; }
.eod3-hist-row2:last-child { border-bottom: none; }
.eod3-hd { font-size: 12px; color: #0f172a; }
.eod3-hd-date  { color: #64748b; font-size: 11px; }
.eod3-hd-code  { font-family: var(--m); font-weight: 700; color: #0ea5e9; font-size: 11px; }
.eod3-hd-meter { font-family: var(--m); font-size: 11px; color: #475569; }
.eod3-hd-prev  { font-size: 10px; color: #94a3b8; }

@media (max-width: 480px) {
  .eod3-hist-header,
  .eod3-hist-row2 {
    grid-template-columns: 85px 75px 80px 70px 1fr;
    gap: 4px; padding: 8px 6px;
  }
  .eod3-hh, .eod3-hd { font-size: 10px; }
}

/* Printer card — meter + daily prints display */
.eod3-logged-meter {
  font-size: 10px;
  color: #94a3b8;
  font-family: var(--m);
  margin-top: 4px;
}
.eod3-logged-total {
  font-size: 13px;
  font-weight: 800;
  color: #0ea5e9;
  margin-top: 2px;
}

/* ── Print Report — Paper summary row ─────────────────────── */
.pr-paper-row {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px; padding: 8px 16px 10px;
  background: #f8fafc; border-top: 1px solid #f1f5f9;
}
.pr-paper-label {
  font-size: 11px; font-weight: 700; color: #64748b;
}
.pr-paper-chip {
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
}
.pr-paper-a4    { background: #e0f2fe; color: #0369a1; }
.pr-paper-b4    { background: #ede9fe; color: #6d28d9; }
.pr-paper-legal { background: #d1fae5; color: #065f46; }

/* ══════════════════════════════════════════════════════════
   EOD PAPER CARDS — Branch daily paper totals (ADD TO BOTTOM)
   ══════════════════════════════════════════════════════════ */
.eod-paper-section-title {
  font-size: 15px; font-weight: 800; color: #0f172a;
  margin: 24px 0 14px; padding-left: 2px;
}
.eod-paper-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 24px;
}
.eod-paper-card {
  background: #fff; border: 2px solid #e2e8f0;
  border-radius: 20px; padding: 22px 16px;
  text-align: center; cursor: pointer;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.eod-paper-card:hover {
  border-color: #0ea5e9;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(14,165,233,.15);
}
.eod-paper-card-done {
  border-color: #10b981 !important;
  background: #f0fdf4 !important;
}
.eod-paper-card-icon  { font-size: 36px; margin-bottom: 8px; }
.eod-paper-card-label { font-size: 14px; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.eod-paper-card-total { font-size: 22px; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.eod-paper-card-sub   { font-size: 11px; color: #64748b; margin-bottom: 8px; }
.eod-paper-card-badge {
  font-size: 10px; font-weight: 700;
  background: #d1fae5; color: #065f46;
  padding: 3px 10px; border-radius: 6px; display: inline-block;
}
.eod-paper-card-hint {
  font-size: 12px; color: #0ea5e9; font-weight: 600;
  background: #eff6ff; padding: 6px 10px;
  border-radius: 8px; display: inline-block;
}
@media (max-width: 600px) {
  .eod-paper-cards-grid { grid-template-columns: 1fr; gap: 10px; }
  .eod-paper-card-icon { font-size: 28px; }
  .eod-paper-card-total { font-size: 18px; }
}

/* ══════════════════════════════════════════════════════════
   EOD HISTORY — Rich table with meter reading
   ══════════════════════════════════════════════════════════ */
.eod3-hist-table { width: 100%; overflow-x: auto; }
.eod3-hist-header {
  display: grid;
  grid-template-columns: 110px 90px 1fr 1fr 1fr;
  gap: 6px; padding: 8px 10px;
  background: #f8fafc; border-radius: 10px 10px 0 0;
  border-bottom: 1.5px solid #e2e8f0;
  margin-bottom: 2px;
}
.eod3-hh {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: #94a3b8;
}
.eod3-hist-row2 {
  display: grid;
  grid-template-columns: 110px 90px 1fr 1fr 1fr;
  gap: 6px; padding: 9px 10px;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
  transition: background .1s;
}
.eod3-hist-row2:hover { background: #f8fafc; }
.eod3-hist-row2:last-child { border-bottom: none; }
.eod3-hd { font-size: 12px; color: #0f172a; }
.eod3-hd-date  { color: #64748b; font-size: 11px; }
.eod3-hd-code  { font-family: var(--m); font-weight: 700; color: #0ea5e9; font-size: 11px; }
.eod3-hd-meter { font-family: var(--m); font-size: 11px; color: #475569; }
.eod3-hd-prev  { font-size: 10px; color: #94a3b8; }

@media (max-width: 480px) {
  .eod3-hist-header,
  .eod3-hist-row2 {
    grid-template-columns: 85px 75px 80px 70px 1fr;
    gap: 4px; padding: 8px 6px;
  }
  .eod3-hh, .eod3-hd { font-size: 10px; }
}

/* Printer card — meter + daily prints display */
.eod3-logged-meter {
  font-size: 10px;
  color: #94a3b8;
  font-family: var(--m);
  margin-top: 4px;
}
.eod3-logged-total {
  font-size: 13px;
  font-weight: 800;
  color: #0ea5e9;
  margin-top: 2px;
}

/* ── Print Report — Paper summary row ─────────────────────── */
.pr-paper-row {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px; padding: 8px 16px 10px;
  background: #f8fafc; border-top: 1px solid #f1f5f9;
}
.pr-paper-label {
  font-size: 11px; font-weight: 700; color: #64748b;
}
.pr-paper-chip {
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
}
.pr-paper-a4    { background: #e0f2fe; color: #0369a1; }
.pr-paper-b4    { background: #ede9fe; color: #6d28d9; }
.pr-paper-legal { background: #d1fae5; color: #065f46; }

/* ── Waste paper card style ───────────────────────────────── */
.eod-waste-done {
  border-color: #fecaca !important;
  background: #fff5f5 !important;
}
/* ══════════════════════════════════════════════════════════
   EOD PAPER CARDS — Branch daily paper totals (ADD TO BOTTOM)
   ══════════════════════════════════════════════════════════ */
.eod-paper-section-title {
  font-size: 15px; font-weight: 800; color: #0f172a;
  margin: 24px 0 14px; padding-left: 2px;
}
.eod-paper-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 24px;
}
.eod-paper-card {
  background: #fff; border: 2px solid #e2e8f0;
  border-radius: 20px; padding: 22px 16px;
  text-align: center; cursor: pointer;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.eod-paper-card:hover {
  border-color: #0ea5e9;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(14,165,233,.15);
}
.eod-paper-card-done {
  border-color: #10b981 !important;
  background: #f0fdf4 !important;
}
.eod-paper-card-icon  { font-size: 36px; margin-bottom: 8px; }
.eod-paper-card-label { font-size: 14px; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.eod-paper-card-total { font-size: 22px; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.eod-paper-card-sub   { font-size: 11px; color: #64748b; margin-bottom: 8px; }
.eod-paper-card-badge {
  font-size: 10px; font-weight: 700;
  background: #d1fae5; color: #065f46;
  padding: 3px 10px; border-radius: 6px; display: inline-block;
}
.eod-paper-card-hint {
  font-size: 12px; color: #0ea5e9; font-weight: 600;
  background: #eff6ff; padding: 6px 10px;
  border-radius: 8px; display: inline-block;
}
@media (max-width: 600px) {
  .eod-paper-cards-grid { grid-template-columns: 1fr; gap: 10px; }
  .eod-paper-card-icon { font-size: 28px; }
  .eod-paper-card-total { font-size: 18px; }
}

/* ══════════════════════════════════════════════════════════
   EOD HISTORY — Rich table with meter reading
   ══════════════════════════════════════════════════════════ */
.eod3-hist-table { width: 100%; overflow-x: auto; }
.eod3-hist-header {
  display: grid;
  grid-template-columns: 110px 90px 1fr 1fr 1fr;
  gap: 6px; padding: 8px 10px;
  background: #f8fafc; border-radius: 10px 10px 0 0;
  border-bottom: 1.5px solid #e2e8f0;
  margin-bottom: 2px;
}
.eod3-hh {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: #94a3b8;
}
.eod3-hist-row2 {
  display: grid;
  grid-template-columns: 110px 90px 1fr 1fr 1fr;
  gap: 6px; padding: 9px 10px;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
  transition: background .1s;
}
.eod3-hist-row2:hover { background: #f8fafc; }
.eod3-hist-row2:last-child { border-bottom: none; }
.eod3-hd { font-size: 12px; color: #0f172a; }
.eod3-hd-date  { color: #64748b; font-size: 11px; }
.eod3-hd-code  { font-family: var(--m); font-weight: 700; color: #0ea5e9; font-size: 11px; }
.eod3-hd-meter { font-family: var(--m); font-size: 11px; color: #475569; }
.eod3-hd-prev  { font-size: 10px; color: #94a3b8; }

@media (max-width: 480px) {
  .eod3-hist-header,
  .eod3-hist-row2 {
    grid-template-columns: 85px 75px 80px 70px 1fr;
    gap: 4px; padding: 8px 6px;
  }
  .eod3-hh, .eod3-hd { font-size: 10px; }
}

/* Printer card — meter + daily prints display */
.eod3-logged-meter {
  font-size: 10px;
  color: #94a3b8;
  font-family: var(--m);
  margin-top: 4px;
}
.eod3-logged-total {
  font-size: 13px;
  font-weight: 800;
  color: #0ea5e9;
  margin-top: 2px;
}

/* ── Print Report — Paper summary row ─────────────────────── */
.pr-paper-row {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px; padding: 8px 16px 10px;
  background: #f8fafc; border-top: 1px solid #f1f5f9;
}
.pr-paper-label {
  font-size: 11px; font-weight: 700; color: #64748b;
}
.pr-paper-chip {
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
}
.pr-paper-a4    { background: #e0f2fe; color: #0369a1; }
.pr-paper-b4    { background: #ede9fe; color: #6d28d9; }
.pr-paper-legal { background: #d1fae5; color: #065f46; }

/* ── Waste paper card style ───────────────────────────────── */
.eod-waste-done {
  border-color: #fecaca !important;
  background: #fff5f5 !important;
}

/* ══════════════════════════════════════════════════════════
   AUDITING HUB
   ══════════════════════════════════════════════════════════ */
.audit-hub-grid { display:flex; flex-direction:column; gap:14px; max-width:700px; }
.audit-hub-card {
  display:flex; align-items:center; gap:18px;
  background:#fff; border:1.5px solid #e2e8f0;
  border-radius:18px; padding:20px 22px;
  cursor:pointer; transition:box-shadow .2s, transform .2s;
}
.audit-hub-card:hover { box-shadow:0 6px 24px rgba(0,0,0,.08); transform:translateY(-2px); }
.audit-hub-icon {
  width:54px; height:54px; border-radius:16px;
  display:flex; align-items:center; justify-content:center;
  font-size:26px; flex-shrink:0;
}
.audit-hub-body { flex:1; }
.audit-hub-title { font-size:16px; font-weight:800; color:#0f172a; }
.audit-hub-desc  { font-size:12px; color:#64748b; margin-top:4px; line-height:1.5; }
.audit-hub-arrow { font-size:20px; color:#94a3b8; flex-shrink:0; }

/* Audit back bar */
.audit-back-bar {
  display:flex; align-items:center; gap:14px; margin-bottom:16px;
}
.audit-back-btn {
  padding:8px 16px; background:#f1f5f9; border:none;
  border-radius:10px; font-size:13px; font-weight:700;
  color:#475569; cursor:pointer; transition:background .15s;
  white-space:nowrap;
}
.audit-back-btn:hover { background:#e2e8f0; }
.audit-view-title { font-size:18px; font-weight:800; color:#0f172a; }
.audit-view-sub   { font-size:12px; color:#64748b; margin-top:2px; }

/* Audit filter bar */
.audit-filter-bar {
  display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end;
  background:#f8fafc; border-radius:14px; padding:14px 16px; margin-bottom:12px;
}
.audit-filter-group { display:flex; flex-direction:column; gap:4px; }
.audit-filter-lbl   { font-size:10px; font-weight:700; color:#94a3b8; text-transform:uppercase; }
.audit-filter-input {
  padding:8px 12px; border:1.5px solid #e2e8f0; border-radius:10px;
  font-size:13px; background:#fff; outline:none; min-width:140px;
}
.audit-filter-actions { display:flex; gap:8px; align-items:flex-end; }
.audit-btn-search {
  padding:9px 16px; background:linear-gradient(135deg,#0ea5e9,#6366f1);
  color:#fff; border:none; border-radius:10px; font-size:13px; font-weight:700; cursor:pointer;
}
.audit-btn-clear {
  padding:9px 14px; background:#f1f5f9; color:#475569;
  border:none; border-radius:10px; font-size:13px; font-weight:700; cursor:pointer;
}
.audit-btn-export {
  padding:9px 16px; background:linear-gradient(135deg,#10b981,#059669);
  color:#fff; border:none; border-radius:10px; font-size:13px; font-weight:700; cursor:pointer;
}
.audit-search-bar { margin-bottom:14px; }
.audit-search-input {
  width:100%; max-width:400px; padding:10px 16px;
  border:1.5px solid #e2e8f0; border-radius:12px;
  font-size:13px; background:#fff; outline:none;
}

/* ══════════════════════════════════════════════════════════
   PERFORMANCE SUMMARY
   ══════════════════════════════════════════════════════════ */
.perf-branch-block {
  background:#fff; border:1.5px solid #e2e8f0;
  border-radius:18px; padding:20px; margin-bottom:14px;
}
.perf-branch-hdr {
  display:flex; align-items:flex-start;
  justify-content:space-between; gap:12px; margin-bottom:12px;
}
.perf-branch-left  { display:flex; align-items:center; gap:12px; }
.perf-branch-badge {
  padding:4px 12px; border-radius:20px;
  font-size:12px; font-weight:800; flex-shrink:0;
}
.perf-branch-name  { font-size:15px; font-weight:800; color:#0f172a; }
.perf-branch-meta  { font-size:11px; color:#94a3b8; margin-top:3px; }
.perf-branch-right { text-align:right; flex-shrink:0; }
.perf-total-cost   { font-size:18px; font-weight:900; color:#0f172a; }
.perf-cpc          { font-size:13px; font-weight:700; margin-top:2px; }

/* Cost breakdown bar */
.perf-cost-bar-wrap {
  display:flex; height:8px; border-radius:6px;
  overflow:hidden; background:#f1f5f9; margin-bottom:8px;
}
.perf-cost-bar { height:100%; transition:width .4s; }

.perf-legend {
  display:flex; gap:14px; flex-wrap:wrap; margin-bottom:8px;
}
.perf-leg-item {
  display:flex; align-items:center; gap:5px;
  font-size:11px; color:#64748b; font-weight:600;
}
.perf-leg-item span {
  width:10px; height:10px; border-radius:3px; display:inline-block;
}
.perf-printer-wrap { overflow-x:auto; }

@media(max-width:600px){
  .audit-hub-card { flex-direction:column; text-align:center; }
  .perf-branch-hdr { flex-direction:column; }
  .audit-filter-bar { flex-direction:column; }
}
/* ══════════════════════════════════════════════════════════
   EOD PAPER CARDS — Branch daily paper totals (ADD TO BOTTOM)
   ══════════════════════════════════════════════════════════ */
.eod-paper-section-title {
  font-size: 15px; font-weight: 800; color: #0f172a;
  margin: 24px 0 14px; padding-left: 2px;
}
.eod-paper-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 24px;
}
.eod-paper-card {
  background: #fff; border: 2px solid #e2e8f0;
  border-radius: 20px; padding: 22px 16px;
  text-align: center; cursor: pointer;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.eod-paper-card:hover {
  border-color: #0ea5e9;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(14,165,233,.15);
}
.eod-paper-card-done {
  border-color: #10b981 !important;
  background: #f0fdf4 !important;
}
.eod-paper-card-icon  { font-size: 36px; margin-bottom: 8px; }
.eod-paper-card-label { font-size: 14px; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.eod-paper-card-total { font-size: 22px; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.eod-paper-card-sub   { font-size: 11px; color: #64748b; margin-bottom: 8px; }
.eod-paper-card-badge {
  font-size: 10px; font-weight: 700;
  background: #d1fae5; color: #065f46;
  padding: 3px 10px; border-radius: 6px; display: inline-block;
}
.eod-paper-card-hint {
  font-size: 12px; color: #0ea5e9; font-weight: 600;
  background: #eff6ff; padding: 6px 10px;
  border-radius: 8px; display: inline-block;
}
@media (max-width: 600px) {
  .eod-paper-cards-grid { grid-template-columns: 1fr; gap: 10px; }
  .eod-paper-card-icon { font-size: 28px; }
  .eod-paper-card-total { font-size: 18px; }
}

/* ══════════════════════════════════════════════════════════
   EOD HISTORY — Rich table with meter reading
   ══════════════════════════════════════════════════════════ */
.eod3-hist-table { width: 100%; overflow-x: auto; }
.eod3-hist-header {
  display: grid;
  grid-template-columns: 110px 90px 1fr 1fr 1fr;
  gap: 6px; padding: 8px 10px;
  background: #f8fafc; border-radius: 10px 10px 0 0;
  border-bottom: 1.5px solid #e2e8f0;
  margin-bottom: 2px;
}
.eod3-hh {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: #94a3b8;
}
.eod3-hist-row2 {
  display: grid;
  grid-template-columns: 110px 90px 1fr 1fr 1fr;
  gap: 6px; padding: 9px 10px;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
  transition: background .1s;
}
.eod3-hist-row2:hover { background: #f8fafc; }
.eod3-hist-row2:last-child { border-bottom: none; }
.eod3-hd { font-size: 12px; color: #0f172a; }
.eod3-hd-date  { color: #64748b; font-size: 11px; }
.eod3-hd-code  { font-family: var(--m); font-weight: 700; color: #0ea5e9; font-size: 11px; }
.eod3-hd-meter { font-family: var(--m); font-size: 11px; color: #475569; }
.eod3-hd-prev  { font-size: 10px; color: #94a3b8; }

@media (max-width: 480px) {
  .eod3-hist-header,
  .eod3-hist-row2 {
    grid-template-columns: 85px 75px 80px 70px 1fr;
    gap: 4px; padding: 8px 6px;
  }
  .eod3-hh, .eod3-hd { font-size: 10px; }
}

/* Printer card — meter + daily prints display */
.eod3-logged-meter {
  font-size: 10px;
  color: #94a3b8;
  font-family: var(--m);
  margin-top: 4px;
}
.eod3-logged-total {
  font-size: 13px;
  font-weight: 800;
  color: #0ea5e9;
  margin-top: 2px;
}

/* ── Print Report — Paper summary row ─────────────────────── */
.pr-paper-row {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px; padding: 8px 16px 10px;
  background: #f8fafc; border-top: 1px solid #f1f5f9;
}
.pr-paper-label {
  font-size: 11px; font-weight: 700; color: #64748b;
}
.pr-paper-chip {
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
}
.pr-paper-a4    { background: #e0f2fe; color: #0369a1; }
.pr-paper-b4    { background: #ede9fe; color: #6d28d9; }
.pr-paper-legal { background: #d1fae5; color: #065f46; }

/* ── Waste paper card style ───────────────────────────────── */
.eod-waste-done {
  border-color: #fecaca !important;
  background: #fff5f5 !important;
}

/* ══════════════════════════════════════════════════════════
   AUDITING HUB
   ══════════════════════════════════════════════════════════ */
.audit-hub-grid { display:flex; flex-direction:column; gap:14px; max-width:700px; }
.audit-hub-card {
  display:flex; align-items:center; gap:18px;
  background:#fff; border:1.5px solid #e2e8f0;
  border-radius:18px; padding:20px 22px;
  cursor:pointer; transition:box-shadow .2s, transform .2s;
}
.audit-hub-card:hover { box-shadow:0 6px 24px rgba(0,0,0,.08); transform:translateY(-2px); }
.audit-hub-icon {
  width:54px; height:54px; border-radius:16px;
  display:flex; align-items:center; justify-content:center;
  font-size:26px; flex-shrink:0;
}
.audit-hub-body { flex:1; }
.audit-hub-title { font-size:16px; font-weight:800; color:#0f172a; }
.audit-hub-desc  { font-size:12px; color:#64748b; margin-top:4px; line-height:1.5; }
.audit-hub-arrow { font-size:20px; color:#94a3b8; flex-shrink:0; }

/* Audit back bar */
.audit-back-bar {
  display:flex; align-items:center; gap:14px; margin-bottom:16px;
}
.audit-back-btn {
  padding:8px 16px; background:#f1f5f9; border:none;
  border-radius:10px; font-size:13px; font-weight:700;
  color:#475569; cursor:pointer; transition:background .15s;
  white-space:nowrap;
}
.audit-back-btn:hover { background:#e2e8f0; }
.audit-view-title { font-size:18px; font-weight:800; color:#0f172a; }
.audit-view-sub   { font-size:12px; color:#64748b; margin-top:2px; }

/* Audit filter bar */
.audit-filter-bar {
  display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end;
  background:#f8fafc; border-radius:14px; padding:14px 16px; margin-bottom:12px;
}
.audit-filter-group { display:flex; flex-direction:column; gap:4px; }
.audit-filter-lbl   { font-size:10px; font-weight:700; color:#94a3b8; text-transform:uppercase; }
.audit-filter-input {
  padding:8px 12px; border:1.5px solid #e2e8f0; border-radius:10px;
  font-size:13px; background:#fff; outline:none; min-width:140px;
}
.audit-filter-actions { display:flex; gap:8px; align-items:flex-end; }
.audit-btn-search {
  padding:9px 16px; background:linear-gradient(135deg,#0ea5e9,#6366f1);
  color:#fff; border:none; border-radius:10px; font-size:13px; font-weight:700; cursor:pointer;
}
.audit-btn-clear {
  padding:9px 14px; background:#f1f5f9; color:#475569;
  border:none; border-radius:10px; font-size:13px; font-weight:700; cursor:pointer;
}
.audit-btn-export {
  padding:9px 16px; background:linear-gradient(135deg,#10b981,#059669);
  color:#fff; border:none; border-radius:10px; font-size:13px; font-weight:700; cursor:pointer;
}
.audit-search-bar { margin-bottom:14px; }
.audit-search-input {
  width:100%; max-width:400px; padding:10px 16px;
  border:1.5px solid #e2e8f0; border-radius:12px;
  font-size:13px; background:#fff; outline:none;
}

/* ══════════════════════════════════════════════════════════
   PERFORMANCE SUMMARY
   ══════════════════════════════════════════════════════════ */
.perf-branch-block {
  background:#fff; border:1.5px solid #e2e8f0;
  border-radius:18px; padding:20px; margin-bottom:14px;
}
.perf-branch-hdr {
  display:flex; align-items:flex-start;
  justify-content:space-between; gap:12px; margin-bottom:12px;
}
.perf-branch-left  { display:flex; align-items:center; gap:12px; }
.perf-branch-badge {
  padding:4px 12px; border-radius:20px;
  font-size:12px; font-weight:800; flex-shrink:0;
}
.perf-branch-name  { font-size:15px; font-weight:800; color:#0f172a; }
.perf-branch-meta  { font-size:11px; color:#94a3b8; margin-top:3px; }
.perf-branch-right { text-align:right; flex-shrink:0; }
.perf-total-cost   { font-size:18px; font-weight:900; color:#0f172a; }
.perf-cpc          { font-size:13px; font-weight:700; margin-top:2px; }

/* Cost breakdown bar */
.perf-cost-bar-wrap {
  display:flex; height:8px; border-radius:6px;
  overflow:hidden; background:#f1f5f9; margin-bottom:8px;
}
.perf-cost-bar { height:100%; transition:width .4s; }

.perf-legend {
  display:flex; gap:14px; flex-wrap:wrap; margin-bottom:8px;
}
.perf-leg-item {
  display:flex; align-items:center; gap:5px;
  font-size:11px; color:#64748b; font-weight:600;
}
.perf-leg-item span {
  width:10px; height:10px; border-radius:3px; display:inline-block;
}
.perf-printer-wrap { overflow-x:auto; }

@media(max-width:600px){
  .audit-hub-card { flex-direction:column; text-align:center; }
  .perf-branch-hdr { flex-direction:column; }
  .audit-filter-bar { flex-direction:column; }
}

/* ══════════════════════════════════════════════════════════
   DASHBOARD — Yesterday's Branch Prints
   ══════════════════════════════════════════════════════════ */
.dbp-header {
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:8px; padding:4px 16px 12px;
  border-bottom:1.5px solid #f1f5f9; margin-bottom:4px;
}
.dbp-title  { font-size:13px; font-weight:800; color:#0f172a; }
.dbp-meta   { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.dbp-date   { font-size:11px; color:#64748b; }
.dbp-grand  { font-size:12px; color:#0f172a; }
.dbp-missing{ font-size:11px; color:#ef4444; font-weight:700; }
.dbp-ok     { font-size:11px; color:#10b981; font-weight:700; }

.dbp-row {
  display:flex; align-items:center; gap:10px;
  padding:7px 16px; border-bottom:1px solid #f8fafc;
}
.dbp-row:last-child { border-bottom:none; }
.dbp-branch-code {
  font-size:10px; font-weight:800; color:#1d4ed8;
  background:#dbeafe; padding:2px 7px; border-radius:5px;
  min-width:36px; text-align:center; flex-shrink:0;
}
.dbp-branch-bar-wrap { flex:1; min-width:0; }
.dbp-branch-name { font-size:12px; font-weight:600; margin-bottom:3px; }
.dbp-bar-track {
  height:4px; background:#f1f5f9; border-radius:3px; overflow:hidden;
}
.dbp-bar-fill { height:100%; border-radius:3px; transition:width .4s; }
.dbp-count {
  font-size:13px; font-weight:800; min-width:60px; text-align:right;
  font-family:var(--m, monospace);
}
.dbp-badge {
  font-size:10px; font-weight:700; padding:2px 6px;
  border-radius:5px; flex-shrink:0;
}
.dbp-badge-ok   { background:#f0fdf4; color:#15803d; }
.dbp-badge-miss { background:#fef2f2; color:#dc2626; }

/* ══════════════════════════════════════════════════════════
   PRINT REPORT — Paper breakdown per branch
   ══════════════════════════════════════════════════════════ */
.pr-paper-breakdown {
  padding:10px 16px 12px;
  background:#f8fafc;
  border-top:1px solid #e2e8f0;
  border-bottom:1px solid #e2e8f0;
}
.pr-paper-breakdown-title {
  font-size:11px; font-weight:700; color:#64748b;
  text-transform:uppercase; letter-spacing:.5px; margin-bottom:8px;
}
.pr-paper-breakdown-grid {
  display:flex; gap:10px; flex-wrap:wrap;
}
.pr-pb-item {
  flex:1; min-width:100px; max-width:160px;
  border-radius:12px; padding:10px 12px;
  border:1.5px solid;
}
.pr-pb-a4    { background:#eff6ff; border-color:#bfdbfe; }
.pr-pb-b4    { background:#f5f3ff; border-color:#ddd6fe; }
.pr-pb-legal { background:#f0fdf4; border-color:#bbf7d0; }

.pr-pb-type {
  font-size:11px; font-weight:800; margin-bottom:6px;
  text-transform:uppercase; letter-spacing:.5px;
}
.pr-pb-a4    .pr-pb-type { color:#1d4ed8; }
.pr-pb-b4    .pr-pb-type { color:#6d28d9; }
.pr-pb-legal .pr-pb-type { color:#15803d; }

.pr-pb-row {
  display:flex; justify-content:space-between; align-items:center;
  font-size:11px; color:#64748b; padding:1px 0;
}
.pr-pb-row strong { font-weight:700; color:#0f172a; }
.pr-pb-total {
  border-top:1px solid #e2e8f0; margin-top:4px; padding-top:4px;
  font-weight:700;
}
.pr-pb-total span  { color:#0f172a; font-weight:700; }
.pr-pb-total strong{ color:#0ea5e9; }
.pr-pb-waste span  { color:#ef4444 !important; }
.pr-pb-waste strong{ color:#ef4444 !important; }