:root {
    --sidebar-width: 270px;
}
body { min-height: 100vh; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-width); flex: 0 0 var(--sidebar-width); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.main-content { min-width: 0; flex: 1; }
.brand-icon { width: 42px; height: 42px; background: linear-gradient(135deg, #0d6efd, #6610f2); color: #fff; }
.nav-link { color: #495057; margin-bottom: .2rem; }
.nav-link:hover { background: #f1f3f5; color: #0d6efd; }
.nav-link.active { background: #e7f1ff; color: #0d6efd; font-weight: 600; }
.card-metric { border: 0; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.metric-icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 1rem; background: #f1f5f9; }
.table td, .table th { vertical-align: middle; }
.pos-search-results { max-height: 380px; overflow-y: auto; }
.auth-card { max-width: 440px; margin: auto; border: 0; box-shadow: 0 1rem 3rem rgba(0,0,0,.1); }
.auth-page { background: radial-gradient(circle at top left, #e7f1ff, transparent 35%), linear-gradient(135deg, #f8f9fa, #eef2ff); }
@media (max-width: 991.98px) {
    .sidebar { display: none; }
    .main-content { width: 100%; }
}
@media print {
    .sidebar, .topbar, .btn, .no-print { display: none !important; }
    .main-content, .container-fluid { width: 100% !important; padding: 0 !important; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; }
}
