:root{--bs-primary:#4f46e5;--bs-primary-rgb:79,70,229;--sb-w:260px;--bg:#f4f6fb;--ink:#1e293b}
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--ink);font-size:.92rem}
.btn-primary{--bs-btn-bg:#4f46e5;--bs-btn-border-color:#4f46e5;--bs-btn-hover-bg:#4338ca;--bs-btn-hover-border-color:#4338ca;--bs-btn-active-bg:#3730a3}
.btn-outline-primary{--bs-btn-color:#4f46e5;--bs-btn-border-color:#4f46e5;--bs-btn-hover-bg:#4f46e5;--bs-btn-hover-border-color:#4f46e5}
a{color:#4f46e5}
.app-sidebar{--bs-offcanvas-width:var(--sb-w);width:var(--sb-w);background:#fff;border-right:1px solid #e8ecf4}
@media(min-width:992px){.app-sidebar.offcanvas-lg{position:fixed!important;top:0;bottom:0;left:0;width:var(--sb-w)!important;height:100vh!important;background:#fff!important;border-right:1px solid #e8ecf4!important;overflow-y:auto;z-index:1030;display:block;flex-grow:0}.app-main{margin-left:var(--sb-w)}}
.app-sidebar .brand{display:flex;align-items:center;gap:.75rem;padding:1.25rem 1.25rem 1rem}
.brand-logo{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#6366f1,#06b6d4);color:#fff;display:grid;place-items:center;font-size:1.25rem;box-shadow:0 6px 16px rgba(79,70,229,.3)}
.nav-section{font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;color:#94a3b8;font-weight:600;padding:1rem .75rem .35rem}
.app-sidebar .nav-link{color:#475569;display:flex;align-items:center;gap:.7rem;padding:.6rem .85rem;border-radius:10px;font-weight:500;margin-bottom:2px}
.app-sidebar .nav-link i{font-size:1.05rem;color:#94a3b8}
.app-sidebar .nav-link:hover{background:#f1f5f9;color:#1e293b}
.app-sidebar .nav-link.active{background:linear-gradient(90deg,rgba(99,102,241,.14),rgba(99,102,241,.04));color:#4f46e5}
.app-sidebar .nav-link.active i{color:#4f46e5}
.topbar{display:flex;align-items:center;gap:.75rem;padding:.8rem 1.5rem;background:rgba(255,255,255,.85);backdrop-filter:blur(8px);border-bottom:1px solid #e8ecf4;position:sticky;top:0;z-index:1020}
.page-title{font-size:1.15rem;font-weight:700}
.user-chip{display:flex;align-items:center;gap:.6rem;color:var(--ink);padding:.25rem .6rem;border-radius:12px}
.user-chip:hover{background:#f1f5f9}.user-chip::after{display:none}
.avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#6366f1,#06b6d4);color:#fff;display:grid;place-items:center;font-weight:700}
.content{padding:1.5rem;min-height:calc(100vh - 120px)}
.app-footer{padding:1rem 1.5rem;color:#94a3b8;font-size:.78rem;text-align:center}
.card{border-radius:16px}
.card-header{background:transparent;border-bottom:1px solid #eef1f7;font-weight:600;padding:1rem 1.25rem}
.stat-card .stat-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;font-size:1.4rem;flex:none}
.stat-value{font-size:1.3rem;font-weight:700;line-height:1.2;word-break:break-word}
.table{--bs-table-bg:transparent}
.table thead th{font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;color:#64748b;background:#f8fafc;border-bottom:1px solid #e8ecf4;white-space:nowrap}
.table-orders{font-size:.82rem}.table-orders td{vertical-align:middle}
.form-control,.form-select{border-radius:10px;border-color:#dfe5ef}
.form-control:focus,.form-select:focus{border-color:#818cf8;box-shadow:0 0 0 .2rem rgba(99,102,241,.15)}
.filter-bar{background:#fff;border-radius:16px;padding:1rem 1.25rem;box-shadow:0 1px 3px rgba(15,23,42,.06)}
.badge{font-weight:600}
.login-wrap{min-height:100vh;display:grid;place-items:center;background:radial-gradient(900px 500px at 10% 10%,#e0e7ff,transparent),radial-gradient(800px 500px at 90% 90%,#cffafe,transparent),#f8fafc;padding:1rem}
.login-card{width:100%;max-width:410px;border:0;border-radius:22px;box-shadow:0 20px 50px rgba(79,70,229,.15)}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.8rem}
.min-w-0{min-width:0}
.chart-box{position:relative;height:280px}
