:root{font-family:Inter,system-ui,Arial,sans-serif;color:#151821;background:#f7f8fa}*{box-sizing:border-box}body{margin:0}header{background:white;border-bottom:1px solid #e7eaf0;padding:20px max(24px,calc((100vw - 1050px)/2));display:flex;align-items:center;justify-content:space-between}header strong{font-size:23px;letter-spacing:1px}header span{font-size:14px;color:#ff4057;letter-spacing:0}main{max-width:1050px;margin:36px auto;padding:0 20px}.panel{background:white;border:1px solid #e7eaf0;border-radius:14px;padding:24px;margin:18px 0;max-width:700px}h1{font-size:28px}h2{margin-top:0}p{color:#667085}label{display:block;font-weight:600;margin:16px 0}input{display:block;width:100%;padding:13px;border:1px solid #d5d9e2;border-radius:12px;margin-top:7px;font:inherit}button{border:0;background:#ff4057;color:white;font:inherit;font-weight:700;border-radius:12px;padding:13px 18px;cursor:pointer}button:disabled{opacity:.55;cursor:wait}#logout{background:#151821}.supplier{display:flex;justify-content:space-between;align-items:center;gap:12px;background:white;border:1px solid #e7eaf0;border-radius:14px;padding:16px;margin:10px 0}.pill{color:#e83249;background:#fff0f2;padding:5px 9px;border-radius:20px;font-size:12px}.product{padding:14px 0;border-bottom:1px solid #e7eaf0}#message{font-weight:600;white-space:pre-wrap}
select{display:block;width:100%;padding:13px;border:1px solid #d5d9e2;border-radius:12px;margin-top:7px;font:inherit;background:white}
button.secondary{background:#fff0f2;color:#e83249;border:1px solid #ff4057;margin-left:10px}
.product{display:flex;align-items:center;justify-content:space-between;gap:12px}
[hidden]{display:none!important}

.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:10px;margin:18px 0}.metric{border:1px solid #e7eaf0;border-radius:12px;padding:14px;background:#fff}.metric strong{display:block;font-size:26px;color:#e83249}.metric span{font-size:12px;color:#667085}.product{flex-wrap:wrap}.product strong{flex:1 1 200px}

/* Supplier workspace design: navy/white/blue, distinct from buyer coral.
   Source: TEMLY developer handoff 06, 11 and local UI reference. */
:root{--navy:#14243d;--navy-2:#203a5c;--blue:#2563eb;--blue-soft:#eff6ff;--ink:#17243b;--muted:#64748b;--line:#e2e8f0;--surface:#fff;--page:#f5f7fb;color:var(--ink);background:var(--page)}
body{min-height:100vh;line-height:1.5}
header{background:var(--navy);color:#fff;border-bottom:0;min-height:76px;padding-top:14px;padding-bottom:14px}
header strong{font-size:22px;font-weight:800;letter-spacing:-.035em}
header span{font-size:12px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#b9d4ff;margin-left:8px}
header #logout{background:transparent;border:1px solid #8297b6;color:#fff}
main{max-width:1200px;margin:34px auto;padding:0 24px}
.panel{max-width:none;border-color:var(--line);border-radius:16px;box-shadow:0 8px 26px rgba(20,36,61,.035);padding:28px}
#auth.panel{max-width:480px;margin:64px auto;padding:34px}
#auth h1{margin-top:0}
h1{font-size:30px;letter-spacing:-.035em}h2{font-size:23px;letter-spacing:-.025em}h3{font-size:17px;margin-top:30px}
p{color:var(--muted)}
label{font-size:13px;color:#334155;font-weight:650}
input,select{border-color:#cbd5e1;background:#fff;color:var(--ink);min-height:48px}
input:focus,select:focus{outline:3px solid #bfdbfe;border-color:var(--blue)}
button{background:var(--blue);border-radius:10px;min-height:44px;padding:10px 16px;font-weight:700;transition:background .15s,transform .15s}
button:hover:not(:disabled){background:#1d4ed8}
button:active:not(:disabled){transform:translateY(1px)}
button:focus-visible,summary:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
button.secondary{background:#fff;color:#1d4ed8;border:1px solid #bfdbfe;margin:0}
button.secondary:hover{background:var(--blue-soft)}
.supplier{background:#fff;border-color:var(--line);border-radius:12px}
.product{border-color:var(--line);padding:16px 0;gap:14px}
.product strong{font-size:14px;font-weight:650}
.metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0 30px}
.metric{border-color:var(--line);border-radius:12px;padding:18px;min-height:106px;display:flex;flex-direction:column;justify-content:center;gap:6px}
.metric strong{font-size:29px;line-height:1.1;letter-spacing:-.03em;color:var(--navy)}
.metric span{font-size:12px;font-weight:600;color:var(--muted)}
details{border:1px solid var(--line);border-radius:12px;background:#fff;margin:20px 0;padding:15px 18px}
summary{cursor:pointer;font-weight:650;color:#1e40af}
details[open] summary{margin-bottom:16px}
#message{color:#1e40af;font-size:14px}
#productsPanel{margin-top:24px}
#editor,#inventoryEditor{background:#f8fbff;border:1px solid #cfe0ff;box-shadow:none}
@media(min-width:900px){#productsPanel{padding:34px}#productsPanel form{max-width:650px}}
@media(max-width:700px){header{min-height:64px;padding:12px 18px}header strong{font-size:20px}main{margin:20px auto;padding:0 14px}.panel{padding:18px}#auth.panel{margin:24px auto;padding:22px}h1{font-size:25px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric{padding:14px;min-height:90px}.metric strong{font-size:25px}.supplier{flex-wrap:wrap}.supplier button{width:100%}.product button{flex:1 1 auto}button.secondary{margin-left:0}}
@media(prefers-reduced-motion:reduce){button{transition:none}}

.pagination{display:flex;align-items:center;justify-content:flex-end;gap:14px;padding:18px 0;color:#64748b;font-size:13px}.pagination button{min-width:90px}.product span{font-size:13px;color:#64748b}@media(max-width:700px){.pagination{justify-content:space-between;gap:8px}.pagination button{min-width:72px}}

.field-help{font-size:12px;margin:-9px 0 12px;color:#64748b;line-height:1.5}#supplierOrders .product{background:#fff;border:1px solid #e2e8f0;border-radius:12px;margin:10px 0;padding:16px}#supplierOrders .product strong{flex-basis:100%}#supplierOrders .product span{flex:1 1 180px}

.order-filters{display:flex;flex-wrap:wrap;gap:14px;margin:14px 0 22px}.order-filters label{flex:1 1 190px;max-width:290px}.order-filters select{width:100%;margin-top:6px}@media(max-width:700px){.order-filters label{max-width:none}}

/* TEMLY supplier workspace navigation and visual hierarchy */
.workspace-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:8px 0 16px}.workspace-intro h1{margin:4px 0;font-size:32px;letter-spacing:-.045em}.workspace-intro p{margin:0;font-size:14px}.eyebrow{color:#0878ef;font-size:11px;letter-spacing:.14em;font-weight:800}.workspace-shortcut{padding:12px 18px;background:#0878ef;color:white;border-radius:10px;text-decoration:none;font-size:13px;font-weight:700;white-space:nowrap}.workspace-shortcut:hover{background:#0866ca}.workspace-nav{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 24px}.workspace-nav a{border:1px solid #dfe8f2;background:#fff;color:#315575;text-decoration:none;border-radius:9px;padding:11px 16px;font-size:13px;font-weight:700}.workspace-nav a:hover,.workspace-nav a:focus-visible{background:#eaf5ff;border-color:#9bcaf4}#productsPanel h3{color:#193552;font-size:17px;letter-spacing:-.02em}#outletLink{display:inline-block;padding:12px 16px;background:#eef7ff;border:1px solid #c9e3fb;border-radius:10px;color:#0969bc;font-size:13px;font-weight:700;text-decoration:none}#outletLink:hover{background:#dcefff}#supplierOrders .product{box-shadow:0 3px 14px rgba(12,41,73,.035)}@media(max-width:700px){.workspace-intro{align-items:flex-start;flex-direction:column;gap:12px}.workspace-intro h1{font-size:27px}.workspace-nav{flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px}.workspace-nav a{flex:0 0 auto}}
