/* IT930-205 supplier portal click dummy v1.
   Jennie design basis (FUMA-761 / FF B2B Hub FUMA-774): light-only tokens exactly as in the IT930-205 design brief.
   Fonts: no external request (privacy, offline); Roboto is used if installed locally, else the system stack.
   Mock data only, no backend, no network. */
:root{
  color-scheme:light;
  --bg:#ffffff; --page:#eef0f3; --soft:#f5f5f5; --tile:#f4f5f7; --line:#e0e0e0;
  --ink:#000000; --text:#212121; --muted:#6b6b6b;
  --red:#cc2a2b; --red-dark:#a91f20; --red-soft:#fdecec; --on-red:#ffffff;
  --green:#2e7d32; --green-soft:#e8f5e9; --amber:#9a5b00; --amber-soft:#fff4e0;
  --toast:#323232; --scrim:rgba(0,0,0,.42);
  --shadow:0 2px 14px rgba(0,0,0,.10);
  --f:"Roboto","Segoe UI",system-ui,Arial,sans-serif;
  --mono:ui-monospace,"Cascadia Mono",Consolas,monospace;
}
*{box-sizing:border-box}
html{scroll-padding-top:120px;scroll-padding-bottom:90px}
body{margin:0;background:var(--page);color:var(--text);font-family:var(--f);font-size:14px;line-height:1.45;overflow-wrap:break-word}
h1,h2,h3{color:var(--ink);margin:0;font-weight:500;text-wrap:balance}
h1{font-size:20px;line-height:1.25} h2{font-size:17px} h3{font-size:15px}
p{margin:0}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:var(--red)}
.num{font-variant-numeric:tabular-nums}
:focus-visible{outline:2px solid var(--red);outline-offset:2px}
.appbar :focus-visible{outline-color:var(--on-red)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[hidden]{display:none!important}

/* Dummy-only control bar (not part of the product UI) */
.demo{background:var(--amber-soft);color:var(--ink);border-bottom:2px dashed var(--amber);padding:8px 16px;display:grid;gap:6px}
.demo .ban{font-weight:500;font-size:13px}
.demo-row{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center}
.demo-row label{font-size:12px;color:var(--muted)}
.demo select{min-height:44px;border:1px solid var(--line);border-radius:6px;background:var(--bg);padding:0 8px;max-width:100%}
.demo .grp{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}

/* App bar */
.appbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:6px;min-height:56px;padding:0 4px 0 12px;background:var(--red);color:var(--on-red)}
.logo-tile{width:44px;height:44px;flex:none;background:#fff;border-radius:8px;display:grid;place-items:center;border:0;padding:0}
.logo-tile svg{width:36px;height:30px;display:block}
.apptitle{flex:1;min-width:0;display:grid;line-height:1.2}
.apptitle b{font-weight:500;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.apptitle span{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ib{background:none;border:0;color:inherit;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;flex:none;padding:0}
.ib svg{width:22px;height:22px}
.ib:hover{background:rgba(255,255,255,.14)}
.langbtn{font-weight:500;font-size:13px;letter-spacing:.02em}
.langsw{position:relative;flex:none}
.langmenu{position:absolute;right:0;top:calc(100% + 4px);min-width:170px;background:var(--bg);color:var(--ink);border-radius:10px;box-shadow:0 6px 24px rgba(0,0,0,.22);padding:4px;z-index:40;display:flex;flex-direction:column}
.langitem{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border:0;border-radius:8px;background:none;text-align:left}
.langitem[aria-checked="true"]{font-weight:500;color:var(--red)}
.langitem:hover{background:var(--tile)}
.adminstrip{background:var(--text);color:#fff;font-size:12px;padding:6px 16px}
.zhstrip{background:var(--soft);color:var(--text);font-size:12px;padding:6px 16px;border-bottom:1px solid var(--line)}
.countdown{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px 6px;padding:6px 12px;background:var(--amber-soft);color:var(--ink);font-size:13px;font-weight:500;text-align:center}

/* Layout: single column below 1000 px, two columns (nav + work area) from 1000 px */
.layout{display:grid;grid-template-columns:minmax(0,1fr);max-width:1240px;margin:0 auto}
#nav{position:sticky;top:56px;z-index:20;background:var(--bg);border-bottom:1px solid var(--line);display:flex;overflow-x:auto;scrollbar-width:none;gap:2px;padding:0 8px;min-width:0}
#nav::-webkit-scrollbar{display:none}
#nav a{display:flex;align-items:center;gap:6px;min-height:48px;padding:0 12px;white-space:nowrap;color:var(--text);text-decoration:none;border-bottom:3px solid transparent;font-weight:500;flex:none}
#nav a[aria-current="page"]{color:var(--red);border-bottom-color:var(--red)}
.cnt{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--red);color:var(--on-red);font-size:11px;font-weight:500}
main{min-width:0;padding:16px;display:grid;gap:14px;align-content:start}
@media (min-width:600px){main{padding:20px 24px}}
@media (min-width:1000px){
  .layout{grid-template-columns:236px minmax(0,1fr);gap:24px;padding:20px 16px}
  #nav{flex-direction:column;border:1px solid var(--line);border-radius:12px;padding:8px;top:76px;align-self:start;overflow:visible;box-shadow:var(--shadow)}
  #nav a{border-bottom:0;border-left:3px solid transparent;border-radius:6px;white-space:normal}
  #nav a[aria-current="page"]{background:var(--red-soft);border-left-color:var(--red)}
  #nav a .cnt{margin-left:auto}
  main{padding:0}
}
.layout.solo{grid-template-columns:minmax(0,1fr)}

/* Building blocks */
.phead{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:flex-end;justify-content:space-between}
.phead > div{display:grid;gap:2px;min-width:0}
.sub{color:var(--muted)}
.note{font-size:12px;color:var(--muted)}
.card{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:14px;display:grid;gap:10px;min-width:0}
a.card{color:inherit;text-decoration:none}
a.card:hover{border-color:var(--muted)}
.list{display:grid;gap:10px;min-width:0}
@media (min-width:1000px){.list.two{grid-template-columns:repeat(2,minmax(0,1fr))}}
.row{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;justify-content:space-between;min-width:0}
.row > *{min-width:0}
.title{font-weight:500;color:var(--ink)}
.pills{display:flex;flex-wrap:wrap;gap:6px}
.pill{display:inline-flex;align-items:center;gap:4px;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:500;background:var(--tile);color:var(--text);white-space:nowrap}
/* long status pills (e.g. "price ends on …") wrap instead of pushing a 320 px page sideways (CI fonts are wider) */
.pill{max-width:100%;min-width:0}
@media (max-width:480px){.pill{white-space:normal;overflow-wrap:anywhere}}
.pill.ok{background:var(--green-soft);color:var(--green)}
.pill.mid{background:var(--amber-soft);color:var(--amber)}
.pill.no{background:var(--red-soft);color:var(--red-dark)}
.pill.type{background:var(--soft);color:var(--ink);border:1px solid var(--line)}
.grid2{display:grid;gap:14px;min-width:0}
@media (min-width:1000px){.grid2{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}

.fields{display:grid;gap:12px;min-width:0}
@media (min-width:1000px){.fields.two{grid-template-columns:repeat(2,minmax(0,1fr))}}
.full{grid-column:1/-1}
.field{display:grid;gap:4px;min-width:0}
.field > label,.field > .lbl{font-size:12px;color:var(--muted)}
.field input,.field select,.field textarea{font-size:15px;color:var(--ink);background:var(--bg);border:0;border-bottom:1px solid var(--muted);border-radius:0;padding:8px 2px;min-height:44px;width:100%;min-width:0}
.field select{padding-right:0}
.field textarea{min-height:72px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-bottom:2px solid var(--red)}
.field input:disabled,.field select:disabled,.field textarea:disabled{color:var(--muted);background:var(--soft);cursor:not-allowed}
.field.bad input,.field.bad select{border-bottom:2px solid var(--red)}
.ferr{color:var(--red-dark);font-size:12px;min-height:0}
.ferr:empty{display:none}
.check{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}
.check input{accent-color:var(--red);width:22px;height:22px;margin:0;flex:none}
.inline{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.inline > .field{flex:1 1 140px}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 18px;border-radius:6px;border:1px solid transparent;font-weight:500;font-size:15px;text-decoration:none;text-align:center;max-width:100%}
.btn-primary{background:var(--red);color:var(--on-red)}
.btn-primary:hover{background:var(--red-dark)}
.btn-primary:disabled{background:var(--line);color:var(--muted);cursor:not-allowed}
.btn-secondary{background:var(--bg);border-color:var(--line);color:var(--ink)}
.btn-secondary:disabled{color:var(--muted);cursor:not-allowed}
.btn-small{min-height:44px;font-size:14px;padding:0 14px}
.btn-link{background:none;border:0;color:var(--red);font-weight:500;min-height:44px;padding:0 4px;text-align:left}
.btns{display:flex;flex-wrap:wrap;gap:8px}

.seg{display:flex;flex-wrap:wrap;gap:6px}
.seg button,.chip{min-height:44px;min-width:44px;padding:0 14px;border:1px solid var(--line);background:var(--bg);border-radius:22px;color:var(--text)}
.seg button[aria-pressed="true"],.chip[aria-pressed="true"]{background:var(--red);border-color:var(--red);color:var(--on-red)}
.seg button:disabled{color:var(--muted);background:var(--soft);cursor:not-allowed;text-decoration:line-through}
.tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px}
.tabs::-webkit-scrollbar{display:none}
.tab{flex:none;min-height:44px;padding:0 14px;border-radius:22px;border:1px solid var(--line);background:var(--bg);white-space:nowrap}
.tab[aria-selected="true"]{background:var(--red);border-color:var(--red);color:var(--on-red)}

.actbar{position:sticky;bottom:0;z-index:10;background:var(--bg);border-top:1px solid var(--line);padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end;margin:0 -16px -16px}
@media (min-width:600px){.actbar{margin:0 -24px -20px;padding-inline:24px}}
@media (min-width:1000px){.actbar{margin:0;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}}
.actbar .reason{flex:1 1 160px;font-size:12px;color:var(--muted)}
.actbar .btn{flex:0 1 auto}
@media (max-width:599px){.actbar .btn{flex:1 1 100%}}

.alert{border-radius:8px;padding:10px 12px;display:grid;gap:6px;background:var(--soft);border-left:4px solid var(--muted);color:var(--ink)}
.alert.mid{background:var(--amber-soft);border-left-color:var(--amber)}
.alert.no{background:var(--red-soft);border-left-color:var(--red)}
.alert.ok{background:var(--green-soft);border-left-color:var(--green)}
.empty{text-align:center;padding:28px 16px;display:grid;gap:10px;justify-items:center;background:var(--bg);border:1px dashed var(--line);border-radius:12px}
.empty .ico{font-size:30px;line-height:1}
.empty p{max-width:46ch;color:var(--muted)}
.skel{display:grid;gap:10px}
.skel i{display:block;height:64px;border-radius:12px;background:linear-gradient(90deg,var(--tile) 25%,#e9ebee 50%,var(--tile) 75%);background-size:200% 100%;animation:sk 1.2s linear infinite}
@keyframes sk{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.skel i{animation:none}}

.todo{display:flex;gap:12px;align-items:center}
.todo .n{font-size:26px;font-weight:500;min-width:44px;text-align:center;color:var(--ink)}
.todo .n.mid{color:var(--amber)} .todo .n.no{color:var(--red)}
.todo > div{flex:1;min-width:0;display:grid;gap:2px}
.kv{display:grid;grid-template-columns:minmax(0,max-content) minmax(0,1fr);gap:4px 14px;margin:0}
.kv dt{color:var(--muted)} .kv dd{margin:0;min-width:0}
.ol{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}
.ol .meta{font-size:12px;color:var(--muted)}
.ol a{display:inline-flex;align-items:center;min-height:44px;font-weight:500}
.big{font-size:20px;font-weight:500;color:var(--ink)}
.big{white-space:nowrap}
@media (max-width:480px){.ol[data-price]{grid-template-columns:minmax(0,1fr)}.ol[data-price] .pills{justify-content:flex-start}}
.linkbox{font-family:var(--mono);font-size:13px;background:var(--tile);padding:10px;border-radius:8px;overflow-wrap:anywhere;color:var(--ink)}
.prev{display:grid;gap:4px;font-size:13px}
.prev s{color:var(--muted)}
.steps{display:flex;flex-wrap:wrap;gap:4px;align-items:center;font-size:12px}
.steps span{padding:2px 8px;border-radius:999px;background:var(--tile);color:var(--muted)}
.steps span.on{background:var(--red);color:var(--on-red)}
.steps span.done{background:var(--green-soft);color:var(--green)}
.sugg{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.lock{font-size:12px;color:var(--amber)}

#toast{position:fixed;left:50%;bottom:calc(90px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--toast);color:#fff;padding:12px 16px;border-radius:4px;font-size:13px;max-width:calc(100% - 32px);z-index:70;box-shadow:var(--shadow)}
.sheetwrap{position:fixed;inset:0;background:var(--scrim);z-index:60;display:flex;align-items:flex-end;justify-content:center}
@media (min-width:600px){.sheetwrap{align-items:center;padding:16px}}
.sheet{background:var(--bg);width:100%;max-width:560px;max-height:90vh;display:flex;flex-direction:column;border-radius:16px 16px 0 0;box-shadow:0 -4px 24px rgba(0,0,0,.18)}
@supports (height:100dvh){.sheet{max-height:calc(100dvh - 32px)}}
@media (min-width:600px){.sheet{border-radius:16px}}
.sheet > header{display:flex;align-items:center;gap:8px;padding:6px 6px 6px 16px;border-bottom:1px solid var(--line)}
.sheet > header h2{flex:1;min-width:0}
.sheet form{display:flex;flex-direction:column;min-height:0;flex:1}
.sbody{overflow-y:auto;padding:16px;display:grid;gap:12px}
.sheet .actbar{margin:0;position:static;border-radius:0 0 16px 16px;box-shadow:none;border-width:1px 0 0}
.login{max-width:480px;width:100%;margin:24px auto;text-align:center;justify-items:center;padding:28px 20px}
.login .ico{font-size:40px;line-height:1}
@media print{.demo,#nav,.actbar,#toast{display:none!important}}

.logoutbtn{width:auto;display:flex;align-items:center;gap:6px;padding:0 12px;border-radius:22px;font-weight:500}
.logoutbtn .lbl-txt{font-size:14px}
@media (max-width:480px){.logoutbtn .lbl-txt{display:none}}

@media print{.demo,#appbar,#strips,#nav,.noprint,.seg,#toast{display:none!important}.layout{display:block}main{padding:0}.card{break-inside:avoid;box-shadow:none;border:1px solid #ccc}}

.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}
.kpi{gap:4px}
