@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
:root{--navy:#192238;--blue:#2f73ed;--text:#1d2433;--muted:#8b94a7;--line:#edf0f5;--bg:#f6f8fb}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;color:var(--text);background:var(--bg);font-size:14px}
button,input{font:inherit}button{cursor:pointer}
.sidebar{position:fixed;inset:0 auto 0 0;width:220px;background:#fff;border-right:1px solid #edf0f5;padding:20px 14px 18px;display:flex;flex-direction:column;z-index:10}
.brand{height:48px;display:flex;align-items:center;gap:10px;padding:0 10px;font-size:18px;font-weight:700;margin-bottom:18px}.brand-mark{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#397ff3,#225dc7);color:#fff;display:grid;place-items:center;font-size:12px;letter-spacing:.5px}
.nav{display:flex;flex-direction:column;gap:5px}.nav-item{height:44px;width:100%;border:0;border-radius:8px;background:transparent;color:#697386;display:flex;align-items:center;gap:12px;padding:0 12px;text-align:left;font-weight:500;position:relative}.nav-item svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.nav-item.active{background:#edf4ff;color:#2f73ed}.nav-item:hover{background:#f4f6fa}.nav-badge{margin-left:auto;width:22px;height:22px;border-radius:6px;background:#edf1f7;color:#667085;font-size:11px;display:grid;place-items:center}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:12px}
.main{margin-left:220px;min-height:100vh}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 32px;position:sticky;top:0;z-index:8}
.search{width:420px;height:42px;border:1px solid #e4e7ec;border-radius:9px;display:flex;align-items:center;padding:0 12px;background:#fafbfc}.search svg{width:18px;height:18px;fill:none;stroke:#9aa2b1;stroke-width:2}.search input{border:0;outline:0;background:transparent;flex:1;padding:0 10px;color:var(--text)}.search input::placeholder{color:#abb2bf}.search kbd{font-size:11px;color:#98a0af;border:1px solid #e3e7ed;border-radius:5px;padding:3px 6px;background:#fff}
.top-actions{display:flex;align-items:center;gap:14px}.icon-btn{width:40px;height:40px;border:0;background:transparent;position:relative}.icon-btn svg{width:21px;height:21px;fill:none;stroke:#697386;stroke-width:1.7;stroke-linecap:round}.icon-btn i{position:absolute;width:7px;height:7px;background:#ef5a67;border:2px solid #fff;border-radius:50%;right:8px;top:7px}.profile{border:0;border-left:1px solid var(--line);background:transparent;height:44px;padding-left:16px;display:flex;align-items:center;gap:10px}.avatar{width:36px;height:36px;border-radius:50%;background:#deeaff;color:#3972ce;display:grid;place-items:center;font-weight:700;font-size:12px}.profile-text{display:flex;flex-direction:column;text-align:left;line-height:1.35}.profile-text strong{font-size:13px}.profile-text span{font-size:11px;color:#98a0af}.profile>svg{width:15px;height:15px;fill:none;stroke:#8b94a7;stroke-width:2}
.content{padding:26px 32px 40px}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:22px}.eyebrow{font-size:10px;font-weight:700;color:#98a0af;letter-spacing:1.2px;margin:0 0 5px}.page-heading h1{margin:0;font-size:26px;letter-spacing:-.7px}.heading-actions{display:flex;gap:10px}.date-btn,.primary-btn{height:40px;border-radius:8px;border:1px solid #e2e6ec;background:#fff;padding:0 13px;display:flex;align-items:center;gap:8px;font-weight:600;color:#596174}.date-btn svg{width:17px;height:17px;fill:none;stroke:#7d8799;stroke-width:1.7}.primary-btn{border:0;background:#2f73ed;color:#fff;padding:0 16px}.primary-btn span{font-size:20px;font-weight:400}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:16px}.stat-card{height:132px;background:#fff;border:1px solid #edf0f5;border-radius:10px;padding:16px 18px}.stat-top{display:flex;justify-content:space-between;align-items:center;color:#747d8f;font-size:13px}.stat-icon{width:34px;height:34px;border-radius:8px;display:grid;place-items:center}.stat-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.stat-icon.green{background:#eaf8f1;color:#20a66a}.stat-icon.blue{background:#edf4ff;color:#3b79df}.stat-icon.purple{background:#f3efff;color:#845bd6}.stat-icon.orange{background:#fff3e6;color:#df8b34}.stat-value{display:block;font-size:22px;margin-top:-2px;letter-spacing:-.5px}.stat-value small{font-size:13px;margin-left:2px}.stat-card p{margin:10px 0 0;color:#98a0af;font-size:11px}.stat-card p b{margin-right:4px}.up{color:#27a76d}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.85fr);gap:16px;margin-bottom:16px}.panel{background:#fff;border:1px solid #edf0f5;border-radius:10px}.panel-heading{height:72px;padding:16px 18px;display:flex;justify-content:space-between;align-items:flex-start}.panel-heading h2{font-size:15px;margin:0 0 5px}.panel-heading p{margin:0;color:#98a0af;font-size:11px}.chart-filter{display:flex;border:1px solid #e8ebf1;border-radius:7px;padding:3px}.chart-filter button{border:0;background:#fff;color:#939baa;font-size:11px;height:28px;padding:0 9px;border-radius:5px}.chart-filter button.active{background:#edf4ff;color:#3976d9}.chart-wrap{height:286px;padding:6px 18px 16px 12px;display:flex}.y-labels{width:42px;height:240px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;padding-right:10px;color:#a1a8b4;font-size:10px}.chart{height:240px;flex:1;position:relative}.grid-line{position:absolute;left:0;right:0;border-top:1px dashed #edf0f5}.grid-line:nth-child(1){top:0}.grid-line:nth-child(2){top:60px}.grid-line:nth-child(3){top:120px}.grid-line:nth-child(4){top:180px}.grid-line:nth-child(5){top:239px}.line-chart{position:absolute;inset:0;width:100%;height:240px}.line-chart .area{fill:url(#area)}.line-chart .line{fill:none;stroke:#3977df;stroke-width:3;stroke-linecap:round}.line-chart circle{fill:#fff;stroke:#3977df;stroke-width:3}.tooltip-chart{position:absolute;left:60%;top:17px;background:#1e2942;color:#fff;border-radius:7px;padding:8px 10px;display:flex;flex-direction:column;font-size:10px;box-shadow:0 7px 18px #1d243326}.tooltip-chart strong{font-size:11px;margin-bottom:3px}.tooltip-chart span{color:#b9c1d1}.tooltip-chart:after{content:"";position:absolute;border:5px solid transparent;border-top-color:#1e2942;bottom:-10px;left:50%}.x-labels{position:absolute;top:252px;left:0;right:0;display:flex;justify-content:space-between;color:#9da4b1;font-size:10px}
.category-list{padding:0 18px}.category-row{height:64px;border-top:1px solid #f0f2f5;display:flex;align-items:center;justify-content:space-between}.cat-info{display:flex;align-items:center;gap:10px}.cat-info>div{display:flex;flex-direction:column}.cat-info strong{font-size:12px}.cat-info small{color:#9da5b3;font-size:10px;margin-top:3px}.cat-icon{width:38px;height:38px;border-radius:9px;display:grid;place-items:center;font-size:18px}.fashion{background:#edf4ff}.tech{background:#f2efff}.home{background:#fff3df}.beauty{background:#fdeef5}.sport{background:#eaf8f1}.cat-value{width:92px;text-align:right}.cat-value strong{font-size:12px}.progress{height:5px;background:#edf0f4;border-radius:5px;margin-top:7px;overflow:hidden}.progress i{display:block;height:100%;background:#3977df;border-radius:5px}
.orders-panel{overflow:hidden}.link-btn{border:0;background:transparent;color:#3977df;font-size:12px;font-weight:600}.link-btn span{font-size:16px;margin-left:4px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse}th{text-align:left;height:42px;background:#fafbfc;border-top:1px solid #edf0f5;border-bottom:1px solid #edf0f5;color:#929baa;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.3px}th:first-child,td:first-child{padding-left:18px}th:last-child,td:last-child{padding-right:12px}td{height:64px;border-bottom:1px solid #f0f2f5;font-size:11px;color:#697386}td strong{color:#30384a}.customer{display:flex;align-items:center;gap:9px}.customer>div{display:flex;flex-direction:column}.customer small{color:#a0a7b3;margin-top:3px}.mini-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:10px;font-weight:700}.coral{background:#fdeae7;color:#c96a57}.blue-bg{background:#e7effe;color:#5276bd}.purple-bg{background:#efeaff;color:#8061b8}.green-bg{background:#def5ea;color:#4e946f}.orange-bg{background:#fff0df;color:#b47a3d}.status{height:24px;border-radius:12px;padding:5px 9px;font-size:10px;font-weight:600}.status.success{background:#e9f7ef;color:#28935d}.status.shipping{background:#eaf1ff;color:#4474cb}.status.pending{background:#fff2d9;color:#ba7b25}.status.cancelled{background:#fdebec;color:#bd6268}.dots{border:0;background:transparent;color:#98a0af;letter-spacing:1px}
.modal-backdrop{position:fixed;inset:0;background:#10182866;display:none;align-items:center;justify-content:center;z-index:30}.modal-backdrop.open{display:flex}.modal{width:440px;background:#fff;border-radius:12px;padding:20px;box-shadow:0 20px 50px #10182833}.modal-heading{display:flex;justify-content:space-between;align-items:flex-start}.modal-heading h2{margin:0}.modal-close{border:0;background:#f3f5f8;border-radius:50%;width:32px;height:32px;font-size:20px;color:#7d8799}.modal form{display:flex;flex-direction:column;gap:14px;margin-top:18px}.modal label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600}.modal input{height:42px;border:1px solid #e1e5ec;border-radius:8px;padding:0 11px;outline:0}.modal input:focus{border-color:#78a3ef}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.cancel-btn{height:40px;border:1px solid #e1e5ec;background:#fff;border-radius:8px;padding:0 16px}.toast{position:fixed;right:24px;bottom:24px;background:#1f2937;color:#fff;padding:12px 16px;border-radius:8px;opacity:0;transform:translateY(10px);pointer-events:none;transition:.25s;z-index:40}.toast.show{opacity:1;transform:translateY(0)}
@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.category-panel{display:none}}
@media(max-width:760px){.sidebar{width:68px;padding:20px 8px}.brand{padding:0}.brand span,.nav-item span,.nav-badge,.sidebar-bottom span{display:none}.brand-mark{margin:auto}.nav-item{justify-content:center;padding:0}.main{margin-left:68px}.topbar{padding:0 16px}.search{width:min(300px,55vw)}.profile-text,.profile>svg{display:none}.content{padding:20px 16px}.heading-actions .date-btn{display:none}.stats-grid{grid-template-columns:1fr 1fr}.stat-card{padding:14px}.stat-value{font-size:17px}.dashboard-grid{display:block}.chart-panel{overflow:hidden}.table-wrap{min-width:900px}.orders-panel{overflow-x:auto}}
.management-panel,.report-panel,.settings-panel{overflow:hidden}.management-panel .panel-heading,.report-panel .panel-heading,.settings-panel .panel-heading{height:auto;min-height:72px}.row-actions{display:flex;justify-content:flex-end;gap:5px}.icon-action{width:28px;height:28px;border:1px solid #e6e9ef;border-radius:6px;background:#fff;color:#778195}.icon-action:hover{border-color:#b7c9ef;color:#3977df}.status-select{border:0;border-radius:12px;padding:6px 8px;font-size:10px;font-weight:600;outline:0}.status-select.success{background:#e9f7ef;color:#28935d}.status-select.shipping{background:#eaf1ff;color:#4474cb}.status-select.pending{background:#fff2d9;color:#ba7b25}.status-select.cancelled{background:#fdebec;color:#bd6268}.empty-row{text-align:center;height:120px;color:#98a0af}.product-cell{display:flex;align-items:center;gap:9px}.product-thumb{width:34px;height:34px;border-radius:8px;background:#edf4ff;color:#3977df;display:grid;place-items:center;font-size:10px;font-weight:700}.stock{height:24px;border-radius:12px;padding:5px 9px;background:#e9f7ef;color:#28935d;font-size:10px;font-weight:600}.stock.low{background:#fff0d9;color:#b67a24}.inventory-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:16px}.mini-stat{height:112px}.mini-stat .stat-value{font-size:18px;margin-top:12px}.stock-controls{display:flex;gap:6px}.stock-controls button{width:30px;height:30px;border:1px solid #e3e7ed;border-radius:7px;background:#fff;font-size:16px;color:#667085}.stock-controls button:hover{background:#edf4ff;color:#3977df}.report-stats{margin-bottom:16px}.secondary-btn{height:36px;border:1px solid #e2e6ec;border-radius:8px;background:#fff;padding:0 12px;color:#667085;font-weight:600}.status-bars{padding:8px 18px 22px}.status-bar-row{display:grid;grid-template-columns:110px 1fr 30px;align-items:center;gap:12px;height:44px;font-size:12px}.bar-track{height:9px;border-radius:9px;background:#edf0f4;overflow:hidden}.bar-track i{display:block;height:100%;border-radius:9px}.bar-track i.success{background:#20a66a}.bar-track i.shipping{background:#3977df}.bar-track i.pending{background:#e3a33a}.bar-track i.cancelled{background:#dc6670}.settings-form{padding:8px 18px 20px}.settings-form label{display:flex;flex-direction:column;gap:7px;margin-bottom:14px;font-size:12px;font-weight:600}.settings-form input{height:42px;border:1px solid #e1e5ec;border-radius:8px;padding:0 11px;outline:0}.settings-form input:focus{border-color:#78a3ef}.settings-form>.primary-btn{margin-top:4px}
@media(max-width:1100px){.inventory-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.inventory-grid{grid-template-columns:1fr 1fr}.status-bar-row{grid-template-columns:90px 1fr 24px}.management-panel{overflow-x:auto}}
