:root { --wf-ink:#202822; --wf-muted:#707a72; --wf-paper:#f4f5f1; --wf-card:#fff; --wf-line:#e3e8e1; --wf-green:#285d42; --wf-soft:#e9f2eb; --wf-warn:#a35c12; --wf-red:#a23d36; }
* { box-sizing:border-box; }
body.workflow-body { margin:0; min-height:100vh; background:var(--wf-paper); color:var(--wf-ink); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.wf-topbar { height:72px; position:sticky; top:0; z-index:10; display:flex; align-items:center; gap:28px; padding:0 28px; background:rgba(255,255,255,.94); border-bottom:1px solid var(--wf-line); backdrop-filter:blur(12px); }
.wf-brand { display:flex; align-items:center; gap:10px; color:inherit; text-decoration:none; min-width:180px; }
.wf-brand img { width:40px; height:40px; object-fit:contain; }
.wf-brand span { display:grid; line-height:1.1; }
.wf-brand b { font-size:15px; letter-spacing:.06em; }
.wf-brand small { margin-top:4px; font-size:9px; letter-spacing:.12em; color:var(--wf-muted); }
.wf-shortcuts { display:flex; align-items:center; gap:20px; flex:1; }
.wf-shortcuts a { color:#566159; text-decoration:none; font-size:12px; font-weight:650; }
.wf-shortcuts a:hover { color:var(--wf-green); }
.wf-local-pill { display:flex; align-items:center; gap:7px; padding:8px 11px; border-radius:999px; color:#38614a; background:#edf5ef; font-size:10px; font-weight:750; white-space:nowrap; }
.wf-local-pill i { width:7px; height:7px; border-radius:50%; background:#51a56c; }
.wf-shell { display:grid; grid-template-columns:232px minmax(0,1fr); min-height:calc(100vh - 72px); }
.wf-sidebar { position:sticky; top:72px; align-self:start; height:calc(100vh - 72px); display:flex; flex-direction:column; padding:26px 16px 18px; background:#fff; border-right:1px solid var(--wf-line); }
.wf-kicker { margin:0 0 12px; color:#829087; font-size:10px; font-weight:800; letter-spacing:.12em; }
#workflow-nav { display:grid; gap:5px; }
.wf-nav-button { width:100%; padding:11px 12px; border:0; border-radius:9px; color:#59645c; background:transparent; text-align:left; font:inherit; font-size:13px; font-weight:650; cursor:pointer; }
.wf-nav-button:hover { background:#f5f7f4; }
.wf-nav-button.active { color:var(--wf-green); background:var(--wf-soft); }
.wf-sidebar-note { display:grid; gap:7px; margin-top:auto; padding:14px 12px; border:1px solid #e6ede6; border-radius:11px; background:#f7faf7; }
.wf-sidebar-note b { font-size:11px; }
.wf-sidebar-note span { color:var(--wf-muted); font-size:10px; line-height:1.55; }
.wf-main { width:min(1440px,100%); margin:0 auto; padding:34px clamp(18px,4vw,58px) 72px; }
.wf-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:24px; }
.wf-heading h1 { margin:0; font-size:clamp(28px,3vw,38px); letter-spacing:-.04em; }
.wf-heading p:not(.wf-kicker) { max-width:720px; margin:9px 0 0; color:var(--wf-muted); font-size:13px; line-height:1.55; }
.wf-heading .wf-kicker { margin-bottom:7px; }
.wf-button { min-height:38px; padding:9px 13px; border:1px solid var(--wf-green); border-radius:8px; background:var(--wf-green); color:#fff; font:inherit; font-size:12px; font-weight:750; cursor:pointer; }
.wf-button:hover { filter:brightness(.95); }
.wf-button-muted { border-color:var(--wf-line); background:#fff; color:#536057; }
.wf-button-small { min-height:31px; padding:6px 9px; font-size:11px; }
.wf-button-danger { border-color:#eed0cd; background:#fff8f7; color:var(--wf-red); }
.wf-button:disabled { opacity:.5; cursor:not-allowed; }
.wf-callout { margin:0 0 16px; padding:13px 15px; border:1px solid #dfeadf; border-radius:10px; background:#f7fbf7; color:#53665a; font-size:12px; line-height:1.55; }
.wf-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:16px; }
.wf-card { min-width:0; padding:18px; border:1px solid var(--wf-line); border-radius:13px; background:var(--wf-card); box-shadow:0 4px 18px rgba(30,48,35,.025); }
.wf-card.span-12 { grid-column:span 12; }
.wf-card.span-8 { grid-column:span 8; }
.wf-card.span-7 { grid-column:span 7; }
.wf-card.span-6 { grid-column:span 6; }
.wf-card.span-5 { grid-column:span 5; }
.wf-card.span-4 { grid-column:span 4; }
.wf-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:15px; }
.wf-card h2 { margin:0; font-size:16px; letter-spacing:-.02em; }
.wf-card h3 { margin:0 0 9px; font-size:13px; }
.wf-card-head p,.wf-subcopy { margin:6px 0 0; color:var(--wf-muted); font-size:11px; line-height:1.55; }
.wf-metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.wf-metric { padding:15px; border:1px solid var(--wf-line); border-radius:11px; background:#fff; }
.wf-metric span { display:block; color:#849087; font-size:9px; font-weight:800; letter-spacing:.1em; }
.wf-metric b { display:block; margin:7px 0 4px; font-size:24px; letter-spacing:-.04em; }
.wf-metric small { color:var(--wf-muted); font-size:10px; }
.wf-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:end; }
.wf-form .field { display:grid; gap:6px; color:#59645c; font-size:11px; font-weight:700; }
.wf-form .field.full { grid-column:1/-1; }
.wf-form input,.wf-form select,.wf-form textarea,.wf-filter input,.wf-filter select { width:100%; min-width:0; padding:9px 10px; border:1px solid #dce2dc; border-radius:7px; outline:none; background:#fff; color:var(--wf-ink); font:inherit; font-size:12px; }
.wf-form textarea { min-height:72px; resize:vertical; }
.wf-form input:focus,.wf-form select:focus,.wf-form textarea:focus,.wf-filter input:focus,.wf-filter select:focus { border-color:#78a487; box-shadow:0 0 0 3px #e8f2ea; }
.wf-form .wf-button { justify-self:start; }
.wf-inline { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.wf-filter { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.wf-filter input,.wf-filter select { width:auto; min-width:125px; }
.wf-table-wrap { width:100%; overflow:auto; }
.wf-table { width:100%; min-width:620px; border-collapse:collapse; font-size:11px; }
.wf-table th { padding:9px 8px; border-bottom:1px solid var(--wf-line); color:#859087; text-align:left; font-size:9px; letter-spacing:.08em; text-transform:uppercase; white-space:nowrap; }
.wf-table td { padding:11px 8px; border-bottom:1px solid #eef1ee; vertical-align:middle; }
.wf-table tr:last-child td { border-bottom:0; }
.wf-table td b { font-size:11px; }
.wf-muted { color:var(--wf-muted); }
.wf-status { display:inline-flex; padding:5px 8px; border-radius:999px; background:#f0f2ef; color:#5d685f; font-size:9px; font-weight:800; white-space:nowrap; }
.wf-status.pending,.wf-status.low,.wf-status.expiring { background:#fff5e9; color:#99600f; }
.wf-status.approved,.wf-status.in_range,.wf-status.received,.wf-status.completed { background:#eaf5ed; color:#35704a; }
.wf-status.rejected,.wf-status.out_of_range,.wf-status.expired { background:#fff0ed; color:#a13f35; }
.wf-empty { padding:20px 12px; color:var(--wf-muted); text-align:center; font-size:11px; }
.wf-list { display:grid; gap:9px; }
.wf-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 0; border-bottom:1px solid #eef1ee; }
.wf-row:last-child { border-bottom:0; }
.wf-row-main { min-width:0; display:grid; gap:4px; }
.wf-row-main b { font-size:12px; }
.wf-row-main small { color:var(--wf-muted); font-size:10px; line-height:1.45; }
.wf-row-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:6px; }
.wf-check { display:flex; align-items:center; gap:7px; color:#566159; font-size:11px; }
.wf-help { margin:9px 0 0; color:#828d84; font-size:10px; line-height:1.55; }
.wf-quote { display:grid; gap:8px; margin-top:14px; padding:14px; border:1px solid #dfeadf; border-radius:10px; background:#f8fbf8; }
.wf-quote b { font-size:14px; }
.wf-quote small { color:var(--wf-muted); font-size:10px; line-height:1.5; }
.wf-toast { position:fixed; z-index:20; left:50%; bottom:22px; transform:translate(-50%,14px); padding:10px 14px; border-radius:8px; background:#202822; color:#fff; font-size:12px; opacity:0; pointer-events:none; transition:opacity .18s,transform .18s; }
.wf-toast.show { transform:translate(-50%,0); opacity:1; }
.wf-checklist { display:grid; gap:8px; }
.wf-break { height:1px; margin:8px 0; background:var(--wf-line); border:0; }
@media (max-width:1100px) { .wf-shell { grid-template-columns:190px minmax(0,1fr); } .wf-shortcuts { gap:12px; } .wf-shortcuts a { font-size:11px; } .wf-card.span-8,.wf-card.span-7 { grid-column:span 12; } }
@media (max-width:760px) { .wf-topbar { height:auto; min-height:64px; padding:10px 14px; flex-wrap:wrap; gap:10px; } .wf-brand { min-width:auto; flex:1; } .wf-shortcuts { order:3; width:100%; overflow:auto; gap:16px; padding:1px 0 4px; } .wf-local-pill { font-size:9px; } .wf-shell { display:block; min-height:calc(100vh - 104px); } .wf-sidebar { position:static; height:auto; padding:12px 12px 10px; border-right:0; border-bottom:1px solid var(--wf-line); } .wf-sidebar>.wf-kicker,.wf-sidebar-note { display:none; } #workflow-nav { display:flex; overflow:auto; gap:6px; scrollbar-width:thin; } .wf-nav-button { width:auto; flex:0 0 auto; padding:9px 11px; white-space:nowrap; font-size:11px; } .wf-main { padding:23px 14px 52px; } .wf-heading { align-items:center; gap:10px; } .wf-heading .wf-button { padding:7px 9px; font-size:10px; white-space:nowrap; } .wf-heading p:not(.wf-kicker) { font-size:12px; } .wf-metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; } .wf-card.span-6,.wf-card.span-5,.wf-card.span-4 { grid-column:span 12; } .wf-form { grid-template-columns:1fr; } .wf-form .field.full { grid-column:auto; } .wf-card { padding:14px; } .wf-row { align-items:flex-start; flex-direction:column; } .wf-row-actions { justify-content:flex-start; } }
