/* OKI Vendor Portal. Same family as OpsHub: ink navy, cool paper, teal actions, amber for "needs you". */
:root{--ink:#142640;--paper:#eef1f4;--surface:#fff;--line:#d9dfe6;--muted:#5b6b7f;--text:#1b2a3d;
  --teal:#0b7a68;--teal-dark:#086152;--teal-soft:#e3f2ef;--amber:#b7791f;--amber-soft:#fbf1dc;--red:#b42318;--red-soft:#fde8e6}
*{box-sizing:border-box}
body{margin:0;font:15px/1.5 "Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;background:var(--paper);color:var(--text)}
a{color:var(--teal-dark);text-underline-offset:2px}
:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
h1{font-size:1.6rem;font-weight:650;color:var(--ink);margin:0 0 .3rem;letter-spacing:-.01em}
h2{font-size:1.05rem;font-weight:650;color:var(--ink);margin:1.8rem 0 .7rem}
.sub{color:var(--muted);margin:0 0 1.4rem}
.muted{color:var(--muted)} small{font-size:.83rem}

/* header */
.top{background:var(--ink);color:#fff}
.top-in{max-width:1080px;margin:0 auto;padding:.9rem 1.25rem;display:flex;align-items:center;gap:1.5rem;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:.65rem;color:#fff;text-decoration:none;font-weight:650}
.brand small{display:block;font-weight:400;color:#8fa1b8;font-size:.78rem}
.tabs{display:flex;gap:.25rem;flex-wrap:wrap;margin-left:auto;align-items:center}
.tabs a{color:#c9d3df;text-decoration:none;padding:.4rem .75rem;border-radius:8px}
.tabs a:hover{color:#fff;background:rgba(255,255,255,.07)}
.tabs a.on{background:#fff;color:var(--ink);font-weight:600}
.tabs button{background:none;border:1px solid rgba(255,255,255,.3);color:#fff;border-radius:8px;padding:.35rem .7rem;font:inherit;cursor:pointer;margin-left:.4rem}
main{max-width:1080px;margin:0 auto;padding:2rem 1.25rem 3rem}

/* blocks */
.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:1.2rem 1.3rem;margin-bottom:1rem}
.figures{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.8rem;margin:1.2rem 0 1.4rem}
.figure{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:1rem 1.1rem;text-decoration:none;color:inherit}
.figure span{color:var(--muted);font-size:.88rem}
.figure b{display:block;font-size:1.9rem;font-weight:650;color:var(--ink);line-height:1.15;margin-top:.15rem;font-variant-numeric:tabular-nums}
.figure.need{border-color:#e8cf9b;box-shadow:inset 0 4px 0 var(--amber-soft)}
.figure.need b{color:var(--amber)}
a.figure:hover{border-color:var(--teal)}
.msg{padding:.7rem 1rem;border-radius:10px;margin-bottom:1rem;background:#e2eefb;color:#1d3f6a}
.msg.error{background:var(--red-soft);color:#8a1a12}.msg.success{background:#e3f4e6;color:#1e5b2e}
.errorlist{list-style:none;padding:.6rem .9rem;margin:0 0 1rem;background:var(--red-soft);color:#8a1a12;border-radius:8px}
.field .errorlist{padding:.2rem 0;background:none;margin:.2rem 0 0}

/* tables */
.wrap{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:12px}
table{border-collapse:collapse;width:100%}
th,td{padding:.65rem .8rem;text-align:left;vertical-align:top;border-bottom:1px solid #e6eaef}
th{color:var(--muted);font-weight:600;font-size:.82rem;background:#f7f9fa}
tr:last-child td{border-bottom:0}
td.num,th.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.empty{padding:1.2rem;color:var(--muted)}

/* status chips */
.chip{display:inline-block;font-size:.8rem;font-weight:600;border-radius:6px;padding:.12rem .5rem;background:#eceff3;color:#4a5869;white-space:nowrap}
.chip.paid,.chip.accepted,.chip.withdrawn,.chip.delivered{background:#e3f4e6;color:#1e6b33}
.chip.approved,.chip.payment_scheduled,.chip.under_review,.chip.received{background:#e2eefb;color:#1d4f86}
.chip.returned,.chip.awaiting_response,.chip.new{background:var(--amber-soft);color:#7a4d00}
.chip.rejected,.chip.disputed,.chip.refused{background:var(--red-soft);color:#9b1c13}
.chip.upheld,.chip.deducted{background:#eceff3;color:#4a5869}

/* forms */
label{display:block;font-weight:600;font-size:.9rem;margin-bottom:.3rem}
input,textarea,select{font:inherit;color:inherit;padding:.5rem .65rem;border:1px solid #c9d2dc;border-radius:8px;background:#fff;width:100%;max-width:100%}
input[type=radio],input[type=checkbox]{width:auto}
input:focus,textarea:focus,select:focus{outline:none;border-color:var(--teal);box-shadow:0 0 0 3px rgba(11,122,104,.18)}
form p{margin:0 0 1rem}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 1.2rem}
.grid .wide{grid-column:1/-1}
.field .help{color:var(--muted);font-size:.83rem;margin-top:.25rem}
.btn{display:inline-block;background:var(--teal);color:#fff;border:0;padding:.6rem 1.15rem;border-radius:8px;font:inherit;font-weight:600;cursor:pointer;text-decoration:none}
.btn:hover{background:var(--teal-dark)}
.btn.light{background:#fff;color:var(--teal-dark);border:1px solid #9fcfc5}
.linkbtn{background:none;border:0;padding:0;color:var(--teal-dark);text-decoration:underline;cursor:pointer;font:inherit}
.actions{display:flex;gap:.8rem;align-items:center;flex-wrap:wrap}

/* upload: steps and basis choice */
.step{display:grid;grid-template-columns:2.2rem 1fr;gap:.2rem 1rem;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:1.2rem 1.3rem;margin-bottom:1rem}
.step>.no{width:2rem;height:2rem;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-weight:650}
.step h2{margin:.2rem 0 .8rem}
.choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.8rem;margin-bottom:1rem}
.choice{display:flex;gap:.7rem;align-items:flex-start;border:1.5px solid var(--line);border-radius:10px;padding:.85rem .95rem;cursor:pointer;font-weight:400;margin:0}
.choice b{display:block;color:var(--ink)}
.choice small{color:var(--muted)}
.choice input{margin-top:.25rem;accent-color:var(--teal)}
.choice:has(input:checked){border-color:var(--teal);background:var(--teal-soft)}
.pane[hidden]{display:none}
.note{background:#f7f9fa;border:1px solid var(--line);border-radius:8px;padding:.6rem .8rem;font-size:.9rem}
.note.warn{background:var(--amber-soft);border-color:#e8cf9b;color:#6b4500}
.note.ok{background:var(--teal-soft);border-color:#9fcfc5;color:var(--teal-dark)}
.qty{width:7rem;text-align:right}
tfoot td{font-weight:650;background:#f7f9fa}

/* sign-in */
.auth{display:grid;grid-template-columns:minmax(300px,42%) 1fr;min-height:100vh;background:#fff}
.auth-side{background:var(--ink);color:#c9d3df;padding:3rem 3.2rem;display:flex;flex-direction:column;justify-content:center;
  background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.025) 0 2px,transparent 2px 14px)}
.auth-side .brand{font-size:1.45rem}
.auth-side p{color:#fff;font-size:1.25rem;line-height:1.45;max-width:26ch;margin:2rem 0 1.4rem}
.auth-side ul{list-style:none;padding:0;margin:0;max-width:36ch}
.auth-side li{padding:.6rem 0;border-top:1px solid rgba(255,255,255,.12)}
.auth-main{display:flex;flex-direction:column;justify-content:center;padding:3rem;max-width:500px;width:100%}

@media (max-width:760px){
  .grid{grid-template-columns:1fr}
  .tabs{margin-left:0;width:100%}
  .step{grid-template-columns:1fr}
  .step>.no{display:none}
  main{padding:1.2rem 1rem 2rem}
  .auth{grid-template-columns:1fr}
  .auth-side{padding:2rem 1.25rem}.auth-side p{font-size:1.1rem;margin:1rem 0}.auth-side ul{display:none}
  .auth-main{padding:1.5rem 1.25rem}
}
.choice.off{opacity:.55;cursor:not-allowed}
.tabs a.me{display:flex;align-items:center;gap:.45rem;margin-left:.6rem}
.avatar{width:26px;height:26px;border-radius:50%;background:var(--teal-soft);color:var(--teal-dark);display:inline-grid;place-items:center;font-weight:700;font-size:.8rem}
.facts{display:grid;grid-template-columns:minmax(140px,220px) 1fr;gap:.55rem 1rem;margin:0}
.facts dt{color:var(--muted)}.facts dd{margin:0}
@media (max-width:760px){.facts{grid-template-columns:1fr;gap:.1rem}.facts dd{margin-bottom:.5rem}.tabs a.me{margin-left:0}}
input[type=date]{cursor:pointer}
.add-row{margin-top:.6rem;background:none;border:1px dashed #9fcfc5;color:var(--teal-dark);border-radius:8px;padding:.45rem .9rem;font:inherit;font-weight:600;cursor:pointer}.add-row:hover{background:var(--teal-soft)}
.badge-n{background:var(--amber);color:#fff;border-radius:999px;font-size:.72rem;font-weight:700;padding:.05rem .45rem;margin-left:.25rem}
.tabs a.me .who{max-width:11rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tabs a{padding:.4rem .6rem}
@media (max-width:1180px){.tabs a.me .who{display:none}}
.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;flex-wrap:wrap;margin-bottom:1.2rem}
.page-head h1 .chip{font-size:.8rem;vertical-align:middle;margin-left:.35rem}
.filters{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center;margin-bottom:1rem}
.filters input,.filters select{width:auto;flex:1 1 180px}
.filters .btn{flex:none}
table.list td{vertical-align:middle}
table.list tr:hover td{background:#f6f8fa}
.rowlink{font-weight:600;text-decoration:none}
.cols{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:1rem;align-items:start}
.money>div{display:flex;justify-content:space-between;padding:.55rem 0;border-bottom:1px solid #e6eaef}
.money>div b{font-variant-numeric:tabular-nums;font-weight:500}
.money>div.total{border-bottom:0}
.money>div.total b,.money>div.total span{font-weight:700;color:var(--ink)}
.steps{list-style:none;margin:0;padding:0}
.steps li{position:relative;padding:.35rem 0 .35rem 1.7rem;color:var(--muted)}
.steps li:before{content:"";position:absolute;left:.3rem;top:.62rem;width:.75rem;height:.75rem;border-radius:50%;border:2px solid #c9d2dc;background:#fff}
.steps li:not(:last-child):after{content:"";position:absolute;left:.62rem;top:1.45rem;bottom:-.35rem;width:2px;background:#e1e6ec}
.steps li.done{color:var(--text)}.steps li.done:before{background:var(--teal);border-color:var(--teal)}
.steps li.now{color:var(--ink);font-weight:650}
.steps small{color:var(--muted);font-weight:400;margin-left:.3rem}
.filerow{display:flex;gap:1rem;align-items:center;padding:.4rem 0;border-bottom:1px solid #eef1f4}
.filerow span{width:6rem;color:var(--muted)}
.chip.waiting{background:var(--amber-soft);color:#7a4d00}
@media (max-width:860px){.cols{grid-template-columns:1fr}}
.req{color:var(--red);margin-left:.15rem}

/* OKI logo (official file; sits on white) */
.brandbar{background:#fff;border-bottom:1px solid var(--line)}
.brandbar .top-in{padding-top:.55rem;padding-bottom:.55rem}
.brandbar img{height:22px;width:auto;display:block}
.auth-logo{height:30px;width:auto;align-self:flex-start;margin-bottom:2.2rem}

/* Footer on every page */
.site-foot{border-top:1px solid var(--line);color:var(--muted);font-size:.8rem;background:#fff}
.site-foot .top-in{padding-top:1rem;padding-bottom:1.2rem}
.auth-foot{color:var(--muted);font-size:.8rem;margin-top:2.5rem}
/* cash loading */
.chip.closed{background:#e3f4e6;color:#1e6b33}
.chip.sent,.chip.msp_review,.chip.recon_pending,.chip.closure_pending{background:#e2eefb;color:#1d4f86}
.chip.loading_pending,.chip.reports_pending{background:var(--amber-soft);color:#7a4d00}
.chip.partial,.chip.clarification{background:var(--red-soft);color:#9b1c13}
.chip.closed_exception{background:#eceff3;color:#4a5869}
.tag-x{display:inline-block;font-size:.75rem;padding:.1rem .45rem;border-radius:999px;background:var(--red-soft);color:#9b1c13;margin:0 .2rem .2rem 0}
.late{color:#9b1c13;font-weight:600}
.kv th{text-align:left;width:34%;color:#4a5869;font-weight:600;vertical-align:top}.kv td,.kv th{padding:.35rem .5rem;border-bottom:1px solid #eef1f5}
