@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root { --ink:#1c2826; --muted:#73807c; --line:#e5ebe7; --paper:#f7f9f6; --white:#fff; --green:#286b50; --green-dark:#174936; --mint:#e4f1e9; --orange:#bd6b2b; --red:#b9534e; --yellow:#f5ead4; }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--paper); font:14px 'DM Sans', sans-serif; }
button, input, select { font:inherit; }
button { cursor:pointer; }
.app-shell { display:flex; min-height:100vh; }
.sidebar { width:252px; background:#173e31; color:#dce9e2; padding:25px 16px 18px; display:flex; flex-direction:column; flex-shrink:0; }
.brand { display:flex; align-items:center; gap:10px; padding:0 9px 29px; color:#f7fcf8; }
.brand strong { display:block; font:700 21px 'Space Grotesk'; letter-spacing:-.8px; }.brand small { display:block; color:#92b2a1; font-size:8px; letter-spacing:1.2px; margin-top:2px; }
.brand-mark { width:34px; height:34px; display:grid; place-items:center; background:#d8e994; color:#28513e; border-radius:10px; font:700 20px 'Space Grotesk'; transform:rotate(-7deg); }
.store-pill { display:flex; align-items:center; gap:10px; padding:12px 11px; background:#214b3c; border:1px solid #34614f; border-radius:9px; margin-bottom:27px; font-size:12px; }.store-pill b,.store-pill small{display:block}.store-pill small{color:#91b3a2;font-size:10px;margin-top:2px}.status-dot{width:7px;height:7px;border-radius:50%;background:#b6da62;box-shadow:0 0 0 4px #37644d}
.nav-label { color:#739587; text-transform:uppercase; font-size:10px; letter-spacing:1.2px; padding:0 12px; margin:0 0 8px; }.nav-label:not(:first-child){margin-top:27px}.nav-item { width:100%; border:0; color:#a5c0b2; background:transparent; text-align:left; padding:11px 12px; border-radius:7px; margin:2px 0; display:flex; gap:13px; align-items:center; }.nav-item span{width:17px;height:17px;display:grid;place-items:center;color:currentColor}.nav-item svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.nav-item.active,.nav-item:hover{background:#e8f1e7;color:#214d3b;font-weight:600}.nav-item.active span{color:var(--green)}
.sidebar-footer { margin-top:auto; border-top:1px solid #2b5747; padding:17px 7px 0; display:flex; gap:9px; align-items:center; font-size:12px; }.sidebar-footer b,.sidebar-footer small{display:block}.sidebar-footer small{color:#8fae9f;font-size:10px;margin-top:2px}.avatar{background:#d8e994;color:#2c5a43;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-size:10px;font-weight:700}.more{margin-left:auto;color:#8eac9d}
.main-content { flex:1; min-width:0; }.topbar { height:75px; display:flex; align-items:center; justify-content:space-between; padding:0 43px; border-bottom:1px solid var(--line); background:rgba(255,255,255,.72); }.breadcrumb{display:flex;gap:11px;align-items:center;font-size:13px}.breadcrumb span{color:#9aa6a1}.breadcrumb b{color:#bdc7c2;font-weight:400}.top-actions{display:flex;gap:22px;align-items:center;color:#8d9894}.icon-btn{position:relative;border:0;background:none;color:#5e7169;font-size:22px}.icon-btn i{position:absolute;width:5px;height:5px;background:#cf6a50;border-radius:50%;top:3px;right:3px}.top-date{font-size:12px}.mobile-menu{display:none;border:0;background:none;font-size:20px}
.page{max-width:1440px;margin:auto;padding:39px 43px 60px}.page-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:28px}.eyebrow{color:var(--green);font-size:11px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;margin:0 0 8px}.page h1{font:600 30px 'Space Grotesk';letter-spacing:-1.1px;margin:0}.page-subtitle{color:var(--muted);margin:8px 0 0}.primary-btn,.outline-btn{border:0;border-radius:7px;padding:11px 15px;font-weight:600;font-size:12px;display:inline-flex;align-items:center;gap:7px}.primary-btn svg,.outline-btn svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.primary-btn{background:var(--green);color:white;box-shadow:0 5px 14px #286b5024}.primary-btn:hover{background:var(--green-dark)}.outline-btn{background:white;border:1px solid var(--line);color:var(--green)}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.metric{background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px 19px;min-height:133px}.metric-top{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.metric-icon{width:29px;height:29px;border-radius:7px;display:grid;place-items:center;background:var(--mint);color:var(--green);font-size:16px}.metric-value{font:600 25px 'Space Grotesk';margin:15px 0 7px;letter-spacing:-.6px}.metric-foot{font-size:11px;color:var(--muted)}.positive{color:var(--green)}.warning{color:var(--orange)}.negative{color:var(--red)}
.dashboard-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:15px;margin-top:15px}.card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px}.card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px}.card h3{font:600 15px 'Space Grotesk';margin:0}.muted{color:var(--muted);font-size:12px}.chart{height:220px;position:relative;padding:8px 0 0 30px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 43px,#edf1ed 44px)}.chart svg{width:100%;height:190px;overflow:visible}.chart-labels{display:flex;justify-content:space-between;color:#9daaa5;font-size:10px;margin:0 8px 0 30px}.legend{display:flex;gap:15px;font-size:11px;color:var(--muted)}.legend span:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:5px}.legend span:last-child:before{background:#d8e994}.activity-item{display:flex;gap:11px;padding:12px 0;border-bottom:1px solid #eef2ef}.activity-item:last-child{border:0}.activity-dot{width:27px;height:27px;border-radius:7px;background:var(--mint);color:var(--green);display:grid;place-items:center;font-size:12px}.activity-item b{display:block;font-size:12px}.activity-item small{color:var(--muted);font-size:10px}.activity-amount{margin-left:auto;font-weight:600;font-size:12px}.stock-card{margin-top:15px}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:600px}.data-table th{text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:#95a29d;background:#f7f9f7;padding:11px 12px}.data-table td{border-bottom:1px solid #edf1ee;padding:14px 12px;font-size:12px}.data-table tr:last-child td{border:0}.data-table td:first-child{font-weight:600}.badge{padding:5px 8px;border-radius:20px;background:var(--mint);color:var(--green);font-size:10px;font-weight:600;white-space:nowrap}.badge.warn{background:var(--yellow);color:var(--orange)}.badge.danger{background:#f9e8e6;color:var(--red)}
.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:18px}.search{border:1px solid var(--line);background:#fff;border-radius:7px;padding:11px 12px;width:260px;outline:none}.search:focus,.field input:focus,.field select:focus{border-color:#83aa95;box-shadow:0 0 0 3px #dcece2}.select{border:1px solid var(--line);background:#fff;border-radius:7px;padding:10px 12px;color:#52625b}.toolbar .spacer{margin-left:auto}.two-col{display:grid;grid-template-columns:1.2fr .8fr;gap:15px}.sales-layout{display:grid;grid-template-columns:1.3fr .7fr;gap:15px}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.product-tile{border:1px solid var(--line);background:#fff;border-radius:8px;padding:13px;text-align:left;transition:.15s}.product-tile:hover{border-color:#75a187;transform:translateY(-1px)}.product-tile .product-cat{font-size:10px;color:var(--muted);display:block;margin-bottom:8px}.product-tile strong{font-size:12px;display:block;min-height:31px}.product-tile small{font-size:10px;color:var(--muted);display:block;margin-top:6px}.product-price{font-weight:700;color:var(--green);margin-top:11px;font-size:12px}.cart{position:sticky;top:18px}.cart-line{display:flex;justify-content:space-between;gap:8px;padding:12px 0;border-bottom:1px solid #edf1ee}.cart-line b,.cart-line small{display:block}.cart-line b{font-size:12px}.cart-line small{color:var(--muted);font-size:10px;margin-top:3px}.qty{display:flex;align-items:center;gap:7px}.qty button{border:1px solid var(--line);background:white;border-radius:4px;width:20px;height:20px}.cart-total{display:flex;justify-content:space-between;font-weight:600;font-size:16px;padding:17px 0 13px}.empty{padding:45px 15px;text-align:center;color:var(--muted);font-size:12px}.empty strong{display:block;color:var(--ink);font-size:14px;margin-bottom:5px}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}.field label{font-size:11px;color:var(--muted);font-weight:600}.field input,.field select{border:1px solid var(--line);border-radius:6px;padding:10px;outline:none;background:#fff}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.summary-box{background:#f2f7f2;border-radius:8px;padding:13px;margin-top:14px}.summary-row{display:flex;justify-content:space-between;font-size:12px;padding:5px 0}.summary-row.total{border-top:1px solid #dbe8dd;margin-top:6px;padding-top:11px;font-weight:700;font-size:15px}.customer-list{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.customer-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:17px}.customer-card strong{display:block;margin:10px 0 3px}.customer-card small{color:var(--muted)}
.toast{position:fixed;right:25px;bottom:25px;background:#173e31;color:white;border-radius:7px;padding:13px 17px;font-size:12px;box-shadow:0 8px 25px #173e3140;transform:translateY(100px);opacity:0;transition:.25s;z-index:5}.toast.show{transform:translateY(0);opacity:1}
.modal-backdrop{position:fixed;inset:0;background:#102d2255;display:grid;place-items:center;padding:20px;z-index:3}.modal{width:min(430px,100%);box-shadow:0 20px 60px #102d2240}.modal-backdrop[hidden]{display:none}
.drawer-backdrop{position:fixed;inset:0;background:#102d2248;z-index:6}.drawer-backdrop[hidden]{display:none}.drawer{position:fixed;z-index:7;right:0;top:0;bottom:0;width:min(480px,100%);background:#fff;box-shadow:-12px 0 35px #102d2226;padding:28px 30px;overflow:auto;transform:translateX(100%);transition:transform .25s ease}.drawer.open{transform:translateX(0)}.drawer-head{display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:22px}.drawer-head h2{font:600 21px 'Space Grotesk';margin:0}.drawer-head p{color:var(--muted);font-size:12px;margin:7px 0 0}.drawer-close{border:1px solid var(--line);background:#fff;border-radius:7px;width:32px;height:32px;color:var(--muted);display:grid;place-items:center}.drawer-close svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round}.drawer-section{border:1px solid var(--line);border-radius:9px;padding:15px;margin:18px 0}.drawer-section h4{font:600 12px 'Space Grotesk';margin:0 0 13px}.drawer-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:25px}.detail-row{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid #edf1ee;padding:11px 0;font-size:12px}.detail-row:last-child{border:0}.detail-row span{color:var(--muted)}
.icon-btn svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:1000px){.grid-4{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.sales-layout,.two-col{grid-template-columns:1fr}.product-grid{grid-template-columns:repeat(2,1fr)}.cart{position:static}.topbar,.page{padding-left:25px;padding-right:25px}}
@media(max-width:700px){.sidebar{position:fixed;z-index:4;left:-270px;top:0;bottom:0;transition:.2s;box-shadow:5px 0 20px #0002}.sidebar.open{left:0}.mobile-menu{display:block}.topbar{padding:0 17px}.top-date{display:none}.page{padding:28px 17px}.page-head{display:block}.page-head .primary-btn{margin-top:18px}.grid-4{grid-template-columns:1fr 1fr;gap:9px}.metric{padding:14px;min-height:115px}.metric-value{font-size:20px}.toolbar{flex-wrap:wrap}.search{width:100%}.toolbar .spacer{display:none}.customer-list{grid-template-columns:1fr}.page h1{font-size:25px}}
