/* ==========================================================================
   Suria 8.2.1: Admin dashboard (admin.html). Styling only.
   Loaded after the page's own <style>. It re-points the page's colour variables to the Suria 8.2 palette and restyles
   existing classes. No markup, id, script, permission check or state rule (display:none rows, [hidden], :disabled)
   is changed. Status colours that the page's scripts write inline (pill tones, the success note) are re-mapped to
   readable dark-on-tint versions of the same meaning: red = blocker / discrepancy, amber = warning, green = good.
   ========================================================================== */
:root{--s821-build:"s821-3b35859f7e"}
@font-face{font-family:'Libre Baskerville';font-style:normal;font-weight:400 600;font-display:swap;src:url('./fonts/libre-baskerville-latin-400-normal.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url('./fonts/inter-latin-wght-normal.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('./fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2')}
:root{--bg:#FBFAF7;--panel:#FFFFFF;--panel2:#FFFFFF;--gold:#B8975A;--gold2:#7F6430;--ivory:#1B1C20;--muted:#4C4E54;--line:#E1DACC;--danger:#A3261B;
  --s-char:#17181B;--s-on:#F3EEE4;--s-on-dim:rgba(243,238,228,.74);--s-line2:#CDC4B2;--s-cream:#F4F0E8;--s-paper:#FBFAF7;
  --s-bad:#A3261B;--s-bad-bg:#FBEAE7;--s-bad-line:#D9837A;--s-warn:#7A5410;--s-warn-bg:#FBF1DC;--s-warn-line:#D6AE5C;--s-good:#2F6B4F;--s-good-bg:#E8F2EC;--s-good-line:#86B49C;
  --s-serif:'Libre Baskerville',Georgia,'Times New Roman',serif;--s-sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;--s-mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
body{background:var(--s-paper);color:var(--ivory);font-family:var(--s-sans)}

/* dark navigation header (kept), light logo */
.top{background:rgba(23,24,27,.97);border-bottom:1px solid rgba(184,151,90,.34)}
.top .navlink,.top .logout{color:var(--s-on-dim);font-family:var(--s-sans);font-weight:500}
.top .navlink:hover,.top .logout:hover,.top .navlink:focus-visible,.top .logout:focus-visible{color:var(--s-on)}

/* page heading */
.eyebrow{color:var(--gold2);font-family:var(--s-mono);font-weight:500;font-size:11px;letter-spacing:.16em}
.title,.sectionhead h2,.card .num{font-family:var(--s-serif);color:var(--ivory)}
.sub{color:var(--muted)}
#adminStatus{color:var(--muted)}

/* cards and sections */
.card,.section{background:var(--panel);border:1px solid var(--line);border-radius:18px;box-shadow:0 1px 2px rgba(23,24,27,.04)}
.card .label{color:var(--muted);font-family:var(--s-mono);font-weight:500;font-size:11px;letter-spacing:.08em}
.card .num{font-variant-numeric:tabular-nums}
.sectionhead span{color:var(--muted)}

/* tables */
.tablewrap{border:1px solid var(--line);border-radius:14px;background:var(--panel)}
th,td{border-bottom:1px solid var(--line)}
th{color:var(--gold2);background:var(--s-cream);font-family:var(--s-mono);font-weight:500;letter-spacing:.06em}
td{color:#2A2C31}
td small{color:var(--muted)}
tbody tr:hover>td{background:rgba(244,240,232,.45)}
.inventorytable.lottable a,td a{color:var(--gold2);font-weight:600;text-underline-offset:3px}
.empty{color:var(--muted)}
@media(min-width:601px){.inventorytable.lottable td:nth-child(1){background:var(--panel)}}

/* order detail and inventory adjust boxes */
.orderdetail,.adjustbox{background:var(--s-paper);border:1px solid var(--line);border-radius:14px}
.odlabel{color:var(--gold2);font-family:var(--s-mono);font-weight:500}
.odvalue{color:var(--ivory)}
.oditems{border-top-color:var(--line)}
.adjustgrid label{color:var(--muted)}

/* inputs */
.invinput,.invselect{background:#fff;color:var(--ivory);border:1px solid var(--s-line2);border-radius:10px}
.invinput:focus,.invselect:focus,details.invnote input:focus,details.invnote select:focus{outline:2px solid var(--gold);outline-offset:1px;border-color:var(--gold)}
.invnote{color:var(--muted)}
details.invnote summary{color:var(--gold2);font-weight:600;cursor:pointer}

/* buttons: neutral secondary, charcoal primary, gold-ink payment confirmation, red destructive */
.detailbtn,.editbtn,.shipbtn,.cancelbtn{background:#fff;color:var(--ivory);border:1px solid var(--s-line2);border-radius:999px;font-family:var(--s-sans);font-weight:600}
.detailbtn:hover,.editbtn:hover,.shipbtn:hover,.cancelbtn:hover{border-color:var(--gold);background:var(--s-cream)}
.savebtn{background:var(--s-char);color:#fff;border:1px solid var(--s-char);border-radius:999px}
.savebtn:hover{background:#2B2D33}
.payconfirm{background:#7F6430;color:#fff;border:1px solid #6A5226;border-radius:999px}
.payconfirm:hover:not(:disabled){background:#6A5226}
.editbtn:disabled,.savebtn:disabled,.cancelbtn:disabled,.shipbtn:disabled{opacity:.55;cursor:not-allowed}
button[onclick^="cancelTestOrder"],button[onclick^="releasePaypalReview"]{color:var(--s-bad);border-color:var(--s-bad-line);background:#fff}
button[onclick^="cancelTestOrder"]:hover,button[onclick^="releasePaypalReview"]:hover{background:var(--s-bad-bg);border-color:var(--s-bad)}
button[data-lot-resolve]{color:var(--s-warn);border-color:var(--s-warn-line);background:var(--s-warn-bg)}

/* notices and errors */
.notice{border-left:3px solid var(--gold);background:#FBF6EA;color:var(--ivory);border-radius:0 10px 10px 0}
.error{color:var(--s-bad)}

/* status pills (neutral) and the tones the scripts set inline */
.pill{border:1px solid var(--s-line2);background:var(--s-cream);color:var(--ivory);font-weight:600}
td .pill{border-radius:10px;line-height:1.35}   /* wrapped warnings read as a labelled box, not a bubble */
.pill[style*="#ffb3a7"]{color:var(--s-bad)!important;background:var(--s-bad-bg)!important;border-color:var(--s-bad-line)!important}
.pill[style*="#f1dc9b"]{color:var(--s-warn)!important;background:var(--s-warn-bg)!important;border-color:var(--s-warn-line)!important}
.pill[style*="#bfe3c1"]{color:var(--s-good)!important;background:var(--s-good-bg)!important;border-color:var(--s-good-line)!important}
[style*="#8fc493"]{color:var(--s-good)!important}
tr[style*="rgba(95,154,99"]>td{background:rgba(47,107,79,.06)}
@media(min-width:601px){.inventorytable.lottable tr[style*="rgba(95,154,99"]>td:nth-child(1){background:#F2F7F4}}

/* payment reconciliation (PayPal capture review) stays prominent */
.reviewsection{border:1px solid var(--s-warn-line);border-left:4px solid #C08A2B;background:#FFFDF7}
.reviewbadge{background:var(--s-warn-bg);color:var(--s-warn);border-color:var(--s-warn-line)}
.reviewbadge.stale{background:var(--s-bad-bg);color:var(--s-bad);border-color:var(--s-bad-line)}

/* phones: stacked inventory and lot cards */
@media(max-width:600px){
  .inventorytable tr:not(.adjustrow){background:#fff;border-color:var(--line)}
  .inventorytable td{border-bottom-color:var(--line);color:var(--ivory)}
  .inventorytable td::before{color:var(--gold2);font-family:var(--s-mono);font-weight:500}
}
