/* Best Comfort — role portal design system. 2026-06-03 (Elven).
   Mirrors the Flutter app (bottom-bar shell -> here: top header + left sidebar).
   Brand: terracotta + cream, Playfair Display (headings) + Inter (body). */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root{
  --tc:#CF6D1F; --tc-d:#B25A14; --tc-l:#F4B27A; --brown:#2A1B10; --brown-2:#5A3A22;
  --cream:#FFF7DA; --bg:#F7F2EC; --card:#FFFFFF; --line:#ECE0D2; --line-2:#E3D4C2;
  --ink:#2A1B10; --muted:#8B7A66; --muted-2:#A8967F;
  --ok:#2E7D32; --warn:#C77700; --info:#1565C0; --bad:#C0392B;
  --sidebar-w:248px; --radius:14px; --shadow:0 10px 30px -16px rgba(80,40,15,.35);
}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Inter',system-ui,sans-serif;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;line-height:1.45}
.serif{font-family:'Playfair Display',Georgia,serif}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

/* ---------- shell ---------- */
.app{display:flex;min-height:100vh}
.sidebar{width:var(--sidebar-w);background:linear-gradient(180deg,#2A1B10,#3A2615);color:#F3E6D4;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:30}
.sidebar .brand{display:flex;align-items:center;gap:11px;padding:20px 20px 16px}
.sidebar .brand .mk{width:40px;height:40px;border-radius:11px;background:linear-gradient(135deg,var(--tc),#E89B5C);display:grid;place-items:center;font-family:'Playfair Display',serif;font-weight:800;color:#fff;box-shadow:0 8px 18px -6px rgba(0,0,0,.5)}
.sidebar .brand b{font-family:'Playfair Display',serif;font-size:18px;display:block;line-height:1}
.sidebar .brand span{font-size:9.5px;letter-spacing:.18em;text-transform:uppercase;color:#E3C7A4}
.sidebar .role{margin:4px 20px 14px;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--tc-l);font-weight:700}
.nav{flex:1;padding:6px 12px;overflow:auto}
.nav a{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:11px;color:#E8D8C5;font-size:14.5px;font-weight:500;margin-bottom:3px;transition:.15s}
.nav a .ic{width:20px;text-align:center;opacity:.9}
.nav a:hover{background:rgba(255,255,255,.07)}
.nav a.active{background:var(--tc);color:#fff;box-shadow:0 8px 20px -10px rgba(207,109,31,.8)}
.sidebar .foot{padding:14px 16px;border-top:1px solid rgba(255,255,255,.08);font-size:12px;color:#C9B49B}

.main{flex:1;margin-left:var(--sidebar-w);display:flex;flex-direction:column;min-width:0}
.topbar{height:64px;background:var(--card);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:16px;padding:0 26px;position:sticky;top:0;z-index:20}
.topbar .pgttl{font-family:'Playfair Display',serif;font-size:21px;font-weight:700}
.topbar .sp{flex:1}
.topbar .bell{position:relative;width:40px;height:40px;border-radius:11px;background:var(--bg);display:grid;place-items:center;cursor:pointer;border:1px solid var(--line)}
.topbar .bell .dot{position:absolute;top:8px;right:9px;width:8px;height:8px;border-radius:50%;background:var(--bad);border:2px solid var(--card)}
.topbar .me{display:flex;align-items:center;gap:10px;cursor:pointer}
.topbar .me .av{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,var(--tc-l),var(--tc));display:grid;place-items:center;color:#fff;font-weight:700}
.topbar .me .nm{font-size:13.5px;font-weight:600;line-height:1.2}
.topbar .me .rl{font-size:11px;color:var(--muted)}
.content{padding:26px;flex:1}
.content.narrow{max-width:880px;margin:0 auto;width:100%}

/* ---------- generic ---------- */
.row{display:flex;gap:16px;flex-wrap:wrap}
.between{display:flex;align-items:center;justify-content:space-between;gap:12px}
.muted{color:var(--muted)}
.h-sec{font-family:'Playfair Display',serif;font-size:18px;font-weight:700;margin:22px 0 12px}
.crumbs{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);margin-bottom:16px;flex-wrap:wrap}
.crumbs a{color:var(--tc-d);font-weight:600}
.crumbs .sep{opacity:.5}

.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.card.pad{padding:18px}

/* KPI tiles */
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}
.kpi{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:18px;display:flex;align-items:center;justify-content:space-between;box-shadow:var(--shadow)}
.kpi .v{font-size:30px;font-weight:800;font-family:'Playfair Display',serif;line-height:1}
.kpi .l{font-size:12.5px;color:var(--muted);margin-top:4px}
.kpi .ic{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;font-size:20px;background:#FBEFE2;color:var(--tc-d)}

/* buttons */
.btn{display:inline-flex;align-items:center;gap:8px;justify-content:center;height:44px;padding:0 20px;border:none;border-radius:11px;font:inherit;font-size:14.5px;font-weight:600;cursor:pointer;transition:.15s;background:#EFE5D8;color:var(--brown)}
.btn:hover{filter:brightness(.97)}
.btn-primary{background:var(--tc);color:#fff;box-shadow:0 12px 26px -12px rgba(207,109,31,.7)}
.btn-primary:hover{background:var(--tc-d)}
.btn-ghost{background:transparent;border:1px solid var(--line-2)}
.btn-sm{height:36px;padding:0 14px;font-size:13px}
.btn-block{width:100%}

/* badges / chips */
.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600}
.b-pending{background:#FFF3E0;color:var(--warn)} .b-prod{background:#E8F0FE;color:var(--info)}
.b-ship{background:#EDE7F6;color:#5E35B1} .b-done{background:#E8F5E9;color:var(--ok)}
.b-cancel{background:#FDECEA;color:var(--bad)} .b-defect{background:#FDECEA;color:var(--bad)}
.chip{display:inline-flex;align-items:center;gap:6px;padding:7px 13px;border:1px solid var(--line-2);border-radius:999px;font-size:13px;cursor:pointer;background:#fff;user-select:none}
.chip.on{background:var(--tc);color:#fff;border-color:var(--tc)}

/* forms */
.field{margin-bottom:15px}
.field label{display:block;font-size:13px;font-weight:600;margin-bottom:6px}
.input,select,textarea{width:100%;height:46px;border:1px solid var(--line-2);border-radius:11px;padding:0 14px;font:inherit;font-size:14.5px;background:#fff;color:var(--ink)}
textarea{height:auto;padding:12px 14px;min-height:88px;resize:vertical}
.input:focus,select:focus,textarea:focus{outline:none;border-color:var(--tc);box-shadow:0 0 0 3px rgba(207,109,31,.14)}

/* search */
.searchbar{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line-2);border-radius:11px;padding:0 14px;height:46px;max-width:420px}
.searchbar input{border:none;outline:none;flex:1;font:inherit;font-size:14.5px;background:none}

/* selection list (company/category/model/product) */
.pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.pick .it{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px;cursor:pointer;transition:.15s;display:flex;align-items:center;gap:13px;box-shadow:var(--shadow)}
.pick .it:hover{border-color:var(--tc);transform:translateY(-2px)}
.pick .it .ico{width:46px;height:46px;border-radius:11px;background:#FBEFE2;display:grid;place-items:center;font-size:20px;flex:none}
.pick .it .t{font-weight:600;font-size:15px}
.pick .it .s{font-size:12.5px;color:var(--muted)}
.pick .it .arr{margin-left:auto;color:var(--tc);font-size:18px}

/* product grid */
.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px}
.product{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);cursor:pointer;transition:.15s}
.product:hover{transform:translateY(-3px)}
.product .ph{aspect-ratio:4/3;background:#EFE3D5 center/cover;display:grid;place-items:center;color:#C7A98A;font-size:30px}
.product .bd{padding:13px 14px}
.product .nm{font-weight:600;font-size:14.5px;margin-bottom:3px}
.product .mo{font-size:12px;color:var(--muted);margin-bottom:7px}
.product .pr{font-weight:800;color:var(--tc-d);font-family:'Playfair Display',serif;font-size:16px}

/* colour swatches */
.swatches{display:flex;gap:10px;flex-wrap:wrap}
.sw{width:34px;height:34px;border-radius:9px;border:2px solid #fff;box-shadow:0 0 0 1px var(--line-2);cursor:pointer}
.sw.on{box-shadow:0 0 0 2px var(--tc)}

/* tables / lists */
.list{display:flex;flex-direction:column;gap:10px}
.li{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:15px 17px;display:flex;align-items:center;gap:14px;box-shadow:var(--shadow)}
.li .thumb{width:52px;height:52px;border-radius:11px;background:#EFE3D5 center/cover;flex:none}
.li .gw{flex:1;min-width:0}
.li .po{font-weight:700;font-size:15px}
.li .meta{font-size:12.5px;color:var(--muted);margin-top:2px}
.li .arr{color:var(--tc);font-size:18px}

/* steps / wizard */
.steps{display:flex;align-items:center;gap:6px;margin-bottom:20px;flex-wrap:wrap}
.steps .st{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted)}
.steps .st .n{width:24px;height:24px;border-radius:50%;background:#EADBC9;display:grid;place-items:center;font-weight:700;font-size:12px;color:var(--muted-2)}
.steps .st.on .n{background:var(--tc);color:#fff}
.steps .st.on{color:var(--ink);font-weight:600}
.steps .ln{width:26px;height:2px;background:var(--line-2)}

/* timeline */
.timeline{position:relative;padding-left:26px}
.timeline:before{content:"";position:absolute;left:9px;top:6px;bottom:6px;width:2px;background:var(--line-2)}
.tl{position:relative;padding:0 0 18px}
.tl .dt{position:absolute;left:-21px;top:2px;width:16px;height:16px;border-radius:50%;background:#fff;border:3px solid var(--line-2)}
.tl.done .dt{border-color:var(--ok)} .tl.now .dt{border-color:var(--tc);box-shadow:0 0 0 4px rgba(207,109,31,.18)}
.tl .ti{font-weight:600;font-size:14px}
.tl .tm{font-size:12px;color:var(--muted)}

/* checklist */
.check{display:flex;align-items:center;gap:12px;padding:13px 15px;background:var(--card);border:1px solid var(--line);border-radius:12px;margin-bottom:9px}
.check .box{width:24px;height:24px;border-radius:7px;border:2px solid var(--line-2);display:grid;place-items:center;flex:none;cursor:pointer}
.check.on .box{background:var(--ok);border-color:var(--ok);color:#fff}
.check .tx{flex:1;font-size:14px;font-weight:500}

/* photo upload */
.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px}
.photo{aspect-ratio:1;border-radius:11px;background:#EFE3D5 center/cover;border:1px solid var(--line-2)}
.photo.add{display:grid;place-items:center;border:2px dashed var(--line-2);background:#fff;color:var(--tc);font-size:24px;cursor:pointer}

/* empty */
.empty{text-align:center;padding:48px 20px;color:var(--muted)}
.empty .ic{font-size:42px;margin-bottom:10px}

/* responsive */
@media(max-width:860px){
  .sidebar{transform:translateX(-100%);transition:.2s}
  .sidebar.open{transform:none}
  .main{margin-left:0}
  .content{padding:18px}
}
.hamb{display:none;width:40px;height:40px;border-radius:10px;background:var(--bg);border:1px solid var(--line);place-items:center;cursor:pointer}
@media(max-width:860px){.hamb{display:grid}}
