
:root {
    color-scheme: light;
    --bg: #f6f8fc;
    --bg-soft: #eef3f9;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-strong: #ffffff;
    --surface-muted: #f9fbff;
    --primary: #2b79d3;
    --primary-strong: #0f4d92;
    --primary-soft: rgba(43, 121, 211, 0.12);
    --accent: #f4c51d;
    --accent-strong: #d9a900;
    --accent-soft: rgba(244, 197, 29, 0.18);
    --success: #2fb879;
    --success-soft: rgba(47, 184, 121, 0.12);
    --danger: #e06464;
    --danger-soft: rgba(224, 100, 100, 0.12);
    --warning: #f1a33b;
    --warning-soft: rgba(241, 163, 59, 0.14);
    --text: #173251;
    --text-soft: #62738d;
    --text-faint: #91a0b5;
    --border: rgba(126, 151, 182, 0.18);
    --shadow-xs: 0 8px 20px rgba(20, 58, 112, 0.05);
    --shadow-sm: 0 16px 38px rgba(18, 52, 102, 0.08);
    --shadow-md: 0 26px 52px rgba(15, 42, 89, 0.1);
    --shadow-neu: 16px 16px 34px rgba(216, 224, 236, 0.52), -12px -12px 24px rgba(255, 255, 255, 0.96);
    --radius-xs: 12px;
    --radius-sm: 20px;
    --radius-md: 26px;
    --radius-lg: 34px;
    --sidebar-width: 312px;
    --sidebar-collapsed-width: 104px;
    --content-width: 1620px;
    --transition: 200ms ease;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(66, 147, 234, 0.18), transparent 22%),
        radial-gradient(circle at 15% 18%, rgba(244, 197, 29, 0.14), transparent 18%),
        radial-gradient(circle at bottom left, rgba(126, 188, 255, 0.14), transparent 20%),
        linear-gradient(180deg, #fbfcff 0%, #f5f8fd 48%, #eef3fa 100%);
}
body::before, body::after {
    content: "";
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    z-index: -1;
    filter: blur(30px);
}
body::before { top: -80px; right: -70px; width: 260px; height: 260px; background: rgba(43, 121, 211, 0.18); }
body::after { bottom: -90px; left: -60px; width: 280px; height: 280px; background: rgba(244, 197, 29, 0.12); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
input::placeholder, textarea::placeholder { color: #95a3b7; }
textarea { resize: vertical; min-height: 120px; }
[hidden] { display: none !important; }
.app-shell { display: flex; min-height: 100vh; position: relative; }
.sidebar-overlay {
    position: fixed; inset: 0; background: rgba(18, 34, 58, 0.28); backdrop-filter: blur(6px);
    opacity: 0; pointer-events: none; transition: opacity var(--transition); z-index: 30;
}
.app-shell.sidebar-open-mobile .sidebar-overlay { opacity: 1; pointer-events: auto; }
.sidebar { width: var(--sidebar-width); padding: 0; flex-shrink: 0; transition: width 240ms ease, padding 240ms ease; }
.sidebar-panel {
    position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px;
    padding: 22px 18px; border-radius: 0; background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,251,255,.88));
    border: 1px solid rgba(255,255,255,.8); box-shadow: var(--shadow-neu); backdrop-filter: blur(16px);
}
.app-shell.sidebar-collapsed .sidebar { width: var(--sidebar-collapsed-width); }
.brand { display: flex; align-items: center; gap: 14px; padding: 8px 6px 14px; border-bottom: 1px solid rgba(195, 208, 226, 0.34); }
.brand-mark {
    width: 62px; height: 62px; flex-shrink: 0; display: grid; place-items: center; border-radius: 0;
    color: #fff; font-size: 24px; background: linear-gradient(145deg, #f4c51d, #2b79d3);
    box-shadow: 0 18px 32px rgba(33, 92, 165, 0.16);
}
.brand-copy { min-width: 0; display: grid; gap: 6px; transition: opacity 160ms ease, transform 160ms ease, max-width 240ms ease; max-width: 180px; overflow: hidden; }
.brand-badge {
    display: inline-flex; width: fit-content; align-items: center; min-height: 24px; padding: 0 10px;
    border-radius: 999px; font-size: .72rem; font-weight: 800; color: var(--primary-strong); background: rgba(43, 121, 211, 0.1);
}
.brand strong { display: block; font-size: 1.1rem; line-height: 1.2; }
.brand span:last-child { display: block; color: var(--text-soft); font-size: .87rem; line-height: 1.6; }
.sidebar-section-label { padding-inline: 8px; color: var(--text-faint); font-size: .78rem; font-weight: 700; letter-spacing: .04em; transition: opacity 160ms ease, transform 160ms ease, max-width 240ms ease; max-width: 100%; }
.sidebar-nav { display: grid; gap: 10px; min-height: 0; overflow: auto; padding-left: 2px; }
.nav-link {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 0; color: var(--text-soft);
    transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.nav-link-icon {
    width: 46px; height: 46px; display: grid; place-items: center; flex-shrink: 0; border-radius: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(244,248,253,.9)); border: 1px solid rgba(193,205,222,.34);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.94); color: #5f7da5; font-size: 1rem;
}
.nav-link-icon svg {
    width: 23px;
    height: 23px;
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.nav-link-label { font-weight: 700; font-size: .98rem; white-space: nowrap; transition: opacity 160ms ease, transform 160ms ease, max-width 240ms ease; max-width: 180px; overflow: hidden; }
.nav-link:hover, .nav-link.active {
    color: var(--text); background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.98));
    box-shadow: var(--shadow-xs); transform: translateY(-1px);
}
.nav-link.active .nav-link-icon {
    color: var(--primary-strong); background: linear-gradient(145deg, rgba(232,242,255,.98), rgba(255,248,213,.95));
    border-color: rgba(114,165,244,.24);
}
.sidebar-footer {
    margin-top: auto; padding: 16px; border-radius: 0; background: linear-gradient(180deg, rgba(247,250,255,.9), rgba(238,244,252,.86));
    border: 1px solid rgba(180,197,220,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
    transition: opacity 160ms ease, transform 160ms ease, max-height 240ms ease, padding 240ms ease, margin 240ms ease, border-width 240ms ease;
    max-height: 180px; overflow: hidden;
}
.sidebar-footer small, .sidebar-footer span { display: block; color: var(--text-faint); }
.sidebar-footer strong { display: block; margin: 6px 0 4px; font-size: 1rem; }
.app-shell.sidebar-collapsed .brand-copy,
.app-shell.sidebar-collapsed .sidebar-section-label,
.app-shell.sidebar-collapsed .nav-link-label { opacity: 0; max-width: 0; transform: translateX(8px); pointer-events: none; }
.app-shell.sidebar-collapsed .brand-copy {
    display: none;
}
.app-shell.sidebar-collapsed .sidebar-footer {
    opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: 0; border-width: 0; transform: translateY(8px); pointer-events: none;
}
.app-shell.sidebar-collapsed .sidebar-panel {
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding-top: 8px;
    padding-inline: 12px;
}
.app-shell.sidebar-collapsed .brand {
    width: 100%;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 8px;
    margin-top: 0;
}
.app-shell.sidebar-collapsed .brand-mark {
    margin-top: 0;
}
.app-shell.sidebar-collapsed .sidebar-nav {
    width: 100%;
    align-content: start;
    justify-items: center;
    gap: 8px;
    padding-top: 0;
}
.app-shell.sidebar-collapsed .nav-link { justify-content: center; padding-inline: 0; }
.app-shell.sidebar-collapsed .nav-link-icon {
    color: var(--primary);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}
.app-shell.sidebar-collapsed .nav-link.active .nav-link-icon,
.app-shell.sidebar-collapsed .nav-link:hover .nav-link-icon {
    color: var(--primary-strong);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}
.main-content { flex: 1; min-width: 0; max-width: calc(var(--content-width) + 64px); padding: 0 28px 32px 0; }
.topbar {
    position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 18px;
    padding: 18px 22px; margin-bottom: 22px; border-radius: 0; background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,251,255,.88));
    border: 1px solid rgba(255,255,255,.84); box-shadow: var(--shadow-sm); backdrop-filter: blur(16px);
}
.topbar-start, .topbar-actions { display: flex; align-items: center; gap: 14px; min-width: 0; }
.page-meta { min-width: 0; }
.page-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .8rem; font-weight: 800; color: var(--primary-strong);
    padding: 8px 12px; border-radius: 999px; background: linear-gradient(180deg, rgba(43, 121, 211, 0.08), rgba(244, 197, 29, 0.14));
}
.topbar h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 1.2rem + 1vw, 2rem); line-height: 1.2; }
.topbar p { margin: 0; max-width: 760px; color: var(--text-soft); line-height: 1.7; }
.sidebar-toggle {
    min-width: 124px; height: 52px; padding: 0 16px; flex-shrink: 0;
    border-color: rgba(43, 121, 211, 0.18);
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(236,244,255,.94));
    color: var(--primary-strong);
    box-shadow: 0 12px 26px rgba(43,121,211,.12);
}
.sidebar-toggle:hover {
    color: #fff;
    background: linear-gradient(145deg, #3184df, #0f4d92);
    border-color: transparent;
    box-shadow: 0 18px 34px rgba(43,121,211,.24);
}
.sidebar-toggle-label { font-weight: 800; font-size: .94rem; }
.app-shell.sidebar-collapsed .sidebar-toggle {
    background: linear-gradient(145deg, rgba(255,245,204,.98), rgba(255,252,237,.96));
    color: var(--accent-strong);
    box-shadow: 0 12px 26px rgba(244,197,29,.18);
}
.topbar-company-mark {
    width: 56px; height: 56px; display: grid; place-items: center; flex-shrink: 0; padding: 8px;
    border-radius: 0; background: rgba(255,255,255,.9); border: 1px solid rgba(188, 203, 224, 0.22); box-shadow: var(--shadow-xs);
}
.topbar-company-mark img { width: 100%; height: 100%; object-fit: contain; }
.topbar-chip, .user-badge {
    display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 16px; border-radius: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,255,.92));
    border: 1px solid rgba(183,198,219,.22); box-shadow: var(--shadow-xs);
}
.topbar-chip { color: var(--text-soft); font-weight: 700; }
.topbar-chip-accent { color: var(--accent-strong); background: linear-gradient(180deg, rgba(255,248,221,.96), rgba(255,252,239,.96)); }
.user-badge { flex-direction: column; align-items: flex-start; gap: 2px; }
.user-badge span { font-weight: 700; }
.user-badge small { color: var(--text-faint); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .sales-cart-panel, .sales-products-panel, .product-panel, .form-section, .summary-box { border-radius: var(--radius-md); }
.card {
    position: relative; padding: 22px; background: var(--surface); border: 1px solid rgba(255,255,255,.88);
    box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); overflow: hidden; animation: surface-in 320ms ease;
}
.card::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    border: 1px solid rgba(255,255,255,.45);
}
.card > * { position: relative; z-index: 1; }
.card h3, .form-section h4, .product-panel h4, .section-title h2 { margin: 0; line-height: 1.35; }
.card h3 { font-size: 1.14rem; }
.card-intro, .product-panel p, .form-section p, .summary-box p, .muted { color: var(--text-soft); line-height: 1.75; }
.card-intro { margin: 8px 0 0; }
.toolbar {
    display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap;
}
.toolbar > h3 { margin: 0; }
.toolbar-search { position: relative; width: min(320px, 100%); }
.toolbar-search i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-faint); }
.toolbar-search input { padding-right: 42px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.section-title h2 { font-size: 1.35rem; }
.summary-box {
    padding: 18px; background: linear-gradient(180deg, rgba(246,250,255,.98), rgba(239,247,255,.98));
    border: 1px solid rgba(159,194,236,.2);
}
.dashboard-hero {
    display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .9fr); gap: 18px; align-items: center;
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(248,251,255,.92));
}
.dashboard-hero::after {
    content: ""; position: absolute; inset: auto auto -38px -24px; width: 180px; height: 180px; border-radius: 40px;
    background: linear-gradient(145deg, rgba(43,121,211,.1), rgba(244,197,29,.16));
}
.dashboard-hero-copy, .dashboard-hero-meta, .dashboard-hero-pill { position: relative; z-index: 1; }
.dashboard-hero-badge {
    display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px;
    background: rgba(43, 121, 211, 0.1); color: var(--primary-strong); font-size: .8rem; font-weight: 800;
}
.dashboard-hero h2 { margin: 14px 0 10px; font-size: clamp(1.5rem, 1.2rem + .8vw, 2rem); line-height: 1.25; }
.dashboard-hero p { margin: 0; color: var(--text-soft); line-height: 1.85; }
.dashboard-hero-meta { display: grid; gap: 12px; }
.dashboard-hero-pill {
    padding: 16px 18px; border-radius: 22px; background: linear-gradient(180deg, rgba(248,250,255,.96), rgba(255,251,235,.96));
    border: 1px solid rgba(194, 207, 224, 0.22); box-shadow: var(--shadow-xs);
}
.dashboard-hero-pill small, .stat-hint { display: block; color: var(--text-faint); }
.dashboard-hero-pill strong { display: block; margin-top: 6px; font-size: 1.16rem; }
.dashboard-kpi-grid { align-items: stretch; }
.stat-card {
    min-height: 172px; display: flex; flex-direction: column; justify-content: space-between;
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,251,255,.95));
}
.stat-card::after {
    content: ""; position: absolute; top: -18px; left: -18px; width: 116px; height: 116px; border-radius: 32px;
    background: linear-gradient(145deg, rgba(43,121,211,.1), rgba(244,197,29,.05));
}
.stat-card-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.stat-label { position: relative; z-index: 1; color: var(--text-faint); font-weight: 700; font-size: .92rem; }
.stat-hint { margin-top: 8px; font-size: .84rem; line-height: 1.7; max-width: 220px; }
.stat-icon {
    position: relative; z-index: 1; width: 54px; height: 54px; display: grid; place-items: center; flex-shrink: 0;
    border-radius: 18px; color: var(--primary-strong); background: linear-gradient(145deg, rgba(232,242,255,.98), rgba(255,248,213,.9));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.88);
}
.stat-value { position: relative; z-index: 1; font-size: clamp(1.8rem, 1.4rem + 1vw, 2.25rem); font-weight: 800; line-height: 1.15; }
.stat-card-purchases .stat-icon,
.stat-card-expenses .stat-icon,
.stat-card-branches .stat-icon,
.stat-card-marketers .stat-icon,
.stat-card-customers .stat-icon,
.stat-card-users .stat-icon { color: #9f7a00; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid > div, .grid > .card, .product-panel .grid > div, .sales-cart-item-fields > div, .sales-quick-customer-grid > div, .sales-cart-meta > div { min-width: 0; }
label { display: block; margin-bottom: 8px; font-size: .95rem; font-weight: 700; color: var(--text); }
.field-help { display: block; margin-top: 8px; color: var(--text-faint); font-size: .82rem; line-height: 1.7; }
input, select, textarea {
    width: 100%; border: 1px solid var(--border); border-radius: 16px; padding: 13px 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,249,254,.96)); color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85); outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition), background var(--transition);
}
input:hover, select:hover, textarea:hover { border-color: rgba(120,147,183,.45); }
input:focus, select:focus, textarea:focus {
    border-color: rgba(63,140,255,.58); background: #fff;
    box-shadow: 0 0 0 4px rgba(63,140,255,.14), 0 12px 24px rgba(63,140,255,.08);
    transform: translateY(-1px);
}
input[readonly], textarea[readonly] {
    background: linear-gradient(180deg, rgba(242,246,252,.98), rgba(236,241,248,.98));
    color: var(--text-soft);
}
input[type="checkbox"] { width: 18px; height: 18px; margin: 0 0 0 8px; accent-color: var(--primary); box-shadow: none; transform: none; }
.checkbox-grid { display: grid; gap: 12px; padding-top: 8px; }
.checkbox-grid label, .product-unit-rows .row label input[type="checkbox"] {
    display: flex; align-items: center; margin-bottom: 0; color: var(--text-soft); font-size: .92rem;
}
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 11px 18px; border-radius: 16px; border: 1px solid transparent; font-weight: 700;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition), color var(--transition), opacity var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.is-loading { opacity: .7; cursor: not-allowed; }
.btn-primary { color: #fff; background: linear-gradient(145deg, #3184df, #0f4d92); box-shadow: 0 14px 28px rgba(43,121,211,.22); }
.btn-primary:hover { box-shadow: 0 18px 34px rgba(43,121,211,.26); }
.btn-light {
    color: var(--text); background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(244,248,253,.96));
    border-color: rgba(173,189,210,.28); box-shadow: var(--shadow-xs);
}
.btn-danger {
    color: var(--danger); background: linear-gradient(180deg, rgba(255,245,246,.96), rgba(255,238,241,.96));
    border-color: rgba(232,162,172,.28);
}
.btn-block { width: 100%; }
.table-wrap {
    overflow: auto; border-radius: 20px; border: 1px solid rgba(179,197,219,.22); background: rgba(255,255,255,.75);
}
table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 100%; }
thead th {
    position: sticky; top: 0; z-index: 1; background: linear-gradient(180deg, rgba(247,250,255,.98), rgba(240,246,255,.96));
    color: var(--text-faint); font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
}
th, td { padding: 14px 16px; border-bottom: 1px solid rgba(226,234,244,.88); text-align: right; white-space: nowrap; }
tbody tr { background: rgba(255,255,255,.75); transition: background var(--transition), transform var(--transition); }
tbody tr:hover { background: rgba(243,248,255,.92); }
tbody tr:last-child td { border-bottom: 0; }
td .btn { min-height: 40px; padding: 8px 14px; }
.badge {
    display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 6px 12px;
    border-radius: 999px; font-size: .78rem; font-weight: 800;
}
.brand-mark img, .login-company-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.permission-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    padding: 10px 12px;
    border: 1px solid rgba(173,189,210,.28);
    border-radius: 16px;
    background: rgba(255,255,255,.72);
    color: var(--text-soft);
}
.login-company-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0 26px;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(10px);
}
.login-company-logo {
    width: 84px;
    height: 84px;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255,255,255,.88);
}
.login-company-card strong,
.login-company-card span {
    display: block;
}
.login-company-card span {
    color: rgba(255,255,255,.78);
    margin-top: 4px;
}
.badge.success { color: var(--success); background: var(--success-soft); }
.badge.warning { color: #b27318; background: var(--warning-soft); }
.badge.danger { color: var(--danger); background: var(--danger-soft); }
.alert {
    display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; margin-bottom: 16px; border-radius: 20px;
    border: 1px solid transparent; box-shadow: var(--shadow-xs); transition: opacity 220ms ease, transform 220ms ease;
}
.alert.is-dismissing { opacity: 0; transform: translateY(-6px); }
.alert::before { font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .95rem; margin-top: 2px; }
.alert-success { color: #1c7a4d; background: rgba(232,250,240,.95); border-color: rgba(99,197,146,.22); }
.alert-success::before { content: "\f058"; }
.alert-info { color: #2b5fb3; background: rgba(239, 246, 255, .95); border-color: rgba(124, 173, 243, .24); }
.alert-info::before { content: "\f05a"; }
.alert-danger { color: #b24657; background: rgba(255,244,246,.95); border-color: rgba(234,164,177,.28); }
.alert-danger::before { content: "\f071"; }
.pagination-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.pagination-summary { color: var(--text-soft); font-size: .92rem; font-weight: 700; }
.pagination-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pagination-link, .pagination-ellipsis {
    min-width: 42px; min-height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px; font-weight: 700;
}
.pagination-link {
    background: rgba(255,255,255,.9); border: 1px solid rgba(176,193,216,.26); box-shadow: var(--shadow-xs);
    color: var(--text-soft); transition: transform var(--transition), background var(--transition), color var(--transition);
}
.pagination-link:hover { transform: translateY(-1px); color: var(--text); }
.pagination-link.active { color: #fff; background: linear-gradient(145deg, #5c9eff, #3f8cff); border-color: transparent; }
.pagination-link.is-disabled { opacity: .5; pointer-events: none; }
.pagination-ellipsis { color: var(--text-faint); }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 20px; }
.text-center { text-align: center; }
.sales-pos-layout { display: grid; grid-template-columns: minmax(320px, 360px) minmax(0, 1fr); gap: 22px; align-items: start; }
.sales-cart-panel, .sales-products-panel {
    background: rgba(255,255,255,.84); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow-sm); backdrop-filter: blur(14px);
}
.sales-cart-panel { position: sticky; top: 108px; padding: 20px; }
.sales-products-panel { padding: 22px; }
.sales-cart-header, .sales-products-topbar, .sales-quick-customer-head, .sales-quick-customer-actions, .sales-cart-item-head, .sales-cart-item-footer, .sales-summary-row {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.sales-cart-header, .sales-products-topbar { margin-bottom: 18px; }
.sales-cart-header h3, .sales-products-topbar h3 { font-size: 1.18rem; }
.sales-cart-header p, .sales-products-topbar p, .sales-cart-item-meta, .sales-cart-item-stock, .sales-products-empty { color: var(--text-soft); }
.sales-cart-clear {
    width: 44px; height: 44px; display: grid; place-items: center; border-radius: 16px;
    border: 1px solid rgba(234,164,177,.26); background: rgba(255,244,246,.92); color: var(--danger);
}
.sales-cart-meta { display: grid; gap: 14px; margin-bottom: 18px; }
.sales-quick-customer {
    margin-top: -2px; padding: 16px; display: grid; gap: 14px; border: 1px solid rgba(167,196,229,.32);
    border-radius: 20px; background: linear-gradient(180deg, rgba(248,251,255,.96), rgba(241,247,255,.96));
}
.sales-quick-customer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sales-cart-items { display: grid; gap: 12px; max-height: 46vh; overflow: auto; padding-left: 4px; margin-bottom: 18px; }
.sales-cart-empty {
    display: grid; place-items: center; gap: 8px; min-height: 180px; padding: 28px 18px; text-align: center;
    border: 1px dashed rgba(170,190,214,.45); border-radius: 22px;
    background: linear-gradient(180deg, rgba(252,254,255,.98), rgba(243,248,255,.98));
}
.sales-cart-empty i { font-size: 2rem; color: #a5b7cf; }
.sales-cart-item {
    padding: 16px; border: 1px solid rgba(177,194,216,.26); border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,255,.98)); box-shadow: var(--shadow-xs);
}
.sales-cart-item.row { display: block; margin-bottom: 0; }
.sales-cart-item-head { margin-bottom: 12px; }
.sales-cart-item-name { display: block; margin-bottom: 4px; font-size: 1rem; }
.sales-cart-item-meta, .sales-cart-item-stock { font-size: .82rem; }
.sales-cart-item-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.sales-cart-summary {
    display: grid; gap: 10px; padding: 18px; margin-bottom: 18px; color: #fff;
    background: linear-gradient(160deg, #4b88f0, #2c65c9); box-shadow: 0 20px 34px rgba(56,109,205,.24);
}
.sales-summary-row span { font-weight: 700; }
.sales-summary-row input {
    max-width: 130px; padding-block: 10px; background: rgba(255,255,255,.96); border-color: rgba(255,255,255,.55);
}
.sales-summary-row-total { padding-top: 10px; border-top: 1px solid rgba(255,255,255,.18); }
.sales-cart-note, .sales-cart-actions { display: grid; gap: 10px; }
.sales-products-search { position: relative; width: min(360px, 100%); }
.sales-products-search i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-faint); }
.sales-products-search input { padding-right: 42px; }
.sales-category-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.sales-category-chip {
    padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(176,193,216,.26); background: rgba(255,255,255,.88);
    color: var(--text-soft); font-weight: 700; box-shadow: var(--shadow-xs);
}
.sales-category-chip.active { color: #fff; background: linear-gradient(145deg, #69a6ff, #3f8cff); border-color: transparent; }
.sales-products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sales-products-empty {
    padding: 24px 18px; border-radius: 22px; border: 1px dashed rgba(170,190,214,.42); text-align: center; background: rgba(248,251,255,.88);
}
.sales-products-actions { display: flex; justify-content: center; margin-top: 18px; }
.sales-product-card {
    display: grid; gap: 12px; padding: 18px 16px; text-align: right; border: 1px solid rgba(177,194,216,.24);
    border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,255,.98));
    box-shadow: var(--shadow-xs); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.sales-product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(120,165,239,.32); }
.sales-product-icon {
    width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; color: var(--primary-strong);
    background: linear-gradient(145deg, rgba(232,242,255,.96), rgba(246,250,255,.98));
}
.sales-product-name { font-size: 1.04rem; line-height: 1.6; }
.sales-product-subtitle { color: var(--text-soft); font-size: .84rem; }
.sales-product-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sales-product-price { font-size: 1.2rem; font-weight: 800; }
.sales-product-add {
    width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; color: var(--primary-strong); background: var(--primary-soft);
}
.sales-product-skeleton {
    display: grid; gap: 12px; padding: 18px 16px; border-radius: 22px; border: 1px solid rgba(177,194,216,.18);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,255,.98)); box-shadow: var(--shadow-xs);
}
.skeleton-block {
    display: block; overflow: hidden; border-radius: 999px;
    background: linear-gradient(90deg, rgba(222,232,244,.7), rgba(244,248,255,.98), rgba(222,232,244,.7));
    background-size: 200% 100%; animation: skeleton-shimmer 1.15s linear infinite;
}
.skeleton-icon { width: 54px; height: 54px; border-radius: 18px; }
.skeleton-title { width: 74%; height: 18px; }
.skeleton-subtitle { width: 48%; height: 13px; }
.skeleton-price { width: 88px; height: 18px; }
.skeleton-action { width: 40px; height: 40px; border-radius: 14px; }
.product-form-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.product-panel {
    padding: 20px; background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,250,255,.96));
    border: 1px solid rgba(179,197,219,.22); box-shadow: var(--shadow-xs);
}
.product-panel p { margin: 8px 0 0; }
.form-section {
    margin-top: 22px; padding: 20px; background: linear-gradient(180deg, rgba(250,252,255,.98), rgba(245,249,255,.98));
    border: 1px solid rgba(179,197,219,.22); box-shadow: var(--shadow-xs);
}
.form-section p { margin: 8px 0 0; }
.invoice-items .row, .dynamic-rows .row, .product-unit-rows .row {
    display: grid; gap: 12px; margin-top: 12px; padding: 16px; border-radius: 20px;
    border: 1px solid rgba(181,199,222,.24); background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,255,.98)); box-shadow: var(--shadow-xs);
}
.invoice-items .row, .dynamic-rows .row { grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto; }
.purchase-items .row { grid-template-columns: 1.8fr .9fr .9fr 1fr 1fr 1fr auto; }
.product-unit-rows .row { grid-template-columns: 1.2fr 1.1fr 1fr 1.2fr 1fr 1fr 1fr 1fr auto; align-items: start; }
.invoice-items .row > :last-child, .dynamic-rows .row > :last-child, .product-unit-rows .row > :last-child { align-self: end; }
.debt-flow { display: grid; gap: 18px; }
.debt-flow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.debt-flow-step {
    display: grid; gap: 8px; padding: 16px 18px; border-radius: 20px;
    border: 1px solid rgba(180,197,219,.24); background: linear-gradient(180deg, rgba(250,252,255,.98), rgba(244,248,255,.98));
    color: var(--text-soft); box-shadow: var(--shadow-xs);
}
.debt-flow-step span {
    width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px;
    background: rgba(63,140,255,.12); color: var(--primary-strong); font-weight: 800;
}
.debt-flow-step strong { font-size: .96rem; }
.debt-flow-step.is-active {
    border-color: rgba(108,161,241,.3); color: var(--text);
    background: linear-gradient(180deg, rgba(240,247,255,.98), rgba(248,251,255,.98));
}
.debt-flow-step.is-complete span { background: rgba(47,184,121,.14); color: var(--success); }
.debt-flow-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.debt-summary-pill {
    padding: 16px 18px; border-radius: 18px; border: 1px solid rgba(176,193,216,.24);
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,250,255,.96)); box-shadow: var(--shadow-xs);
}
.debt-summary-pill small, .debt-review-item small { display: block; margin-bottom: 6px; color: var(--text-faint); }
.debt-summary-pill strong, .debt-review-item strong { font-size: 1rem; line-height: 1.6; }
.debt-step-card {
    padding: 22px; border-radius: 24px; background: linear-gradient(180deg, rgba(252,254,255,.98), rgba(246,250,255,.98));
    border: 1px solid rgba(181,199,222,.24); box-shadow: var(--shadow-xs);
}
.debt-type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; }
.debt-type-card {
    display: grid; justify-items: start; gap: 8px; padding: 18px; text-align: right;
    border-radius: 22px; border: 1px solid rgba(176,193,216,.26); background: rgba(255,255,255,.92);
    box-shadow: var(--shadow-xs); color: var(--text); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.debt-type-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.debt-type-card.is-selected { border-color: rgba(83,148,239,.42); background: linear-gradient(180deg, rgba(241,247,255,.98), rgba(249,252,255,.98)); }
.debt-type-card small { color: var(--text-soft); }
.debt-type-card-icon {
    width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px;
    color: var(--primary-strong); background: rgba(63,140,255,.12);
}
.debt-choice-list {
    display: grid; gap: 10px; max-height: 320px; overflow: auto; padding: 12px;
    border: 1px solid rgba(176,193,216,.24); border-radius: 20px; background: rgba(255,255,255,.82);
}
.debt-choice-item {
    width: 100%; display: grid; justify-items: start; gap: 4px; padding: 14px 16px; text-align: right;
    border-radius: 18px; border: 1px solid rgba(180,197,219,.24); background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,255,.98));
    color: var(--text); box-shadow: var(--shadow-xs); transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.debt-choice-item:hover { transform: translateY(-1px); border-color: rgba(108,161,241,.36); }
.debt-choice-item small { color: var(--text-soft); }
.debt-choice-item.is-selected {
    border-color: rgba(83,148,239,.42); background: linear-gradient(180deg, rgba(239,247,255,.98), rgba(247,251,255,.98));
}
.debt-review-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr); gap: 18px; align-items: start; }
.debt-review-panel {
    padding: 18px; border-radius: 22px; border: 1px solid rgba(180,197,219,.22);
    background: rgba(255,255,255,.76);
}
.debt-review-aside {
    padding: 18px; border-radius: 22px; background: linear-gradient(160deg, #4b88f0, #2c65c9);
    color: #fff; box-shadow: 0 20px 34px rgba(56,109,205,.24);
}
.debt-review-aside h5 { margin: 0 0 16px; font-size: 1rem; }
.debt-review-item + .debt-review-item { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.16); }
.debt-review-item small { color: rgba(255,255,255,.72); }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-wrapper { width: min(1180px, 100%); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, 460px); gap: 24px; align-items: stretch; }
.login-showcase, .login-card {
    position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.8); box-shadow: var(--shadow-md); backdrop-filter: blur(16px);
}
.login-showcase {
    padding: 36px; display: flex; flex-direction: column; justify-content: space-between; min-height: 620px;
    background: radial-gradient(circle at top right, rgba(113,172,255,.25), transparent 28%), linear-gradient(165deg, rgba(255,255,255,.92), rgba(242,247,255,.88));
}
.login-showcase h1 { max-width: 520px; margin: 18px 0 14px; font-size: clamp(2rem, 1.5rem + 1vw, 3rem); line-height: 1.25; }
.login-showcase p { max-width: 540px; margin: 0; color: var(--text-soft); font-size: 1rem; line-height: 1.9; }
.login-feature-list { display: grid; gap: 16px; margin-top: 28px; }
.login-feature {
    display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: 22px;
    background: rgba(255,255,255,.68); border: 1px solid rgba(178,196,219,.22); box-shadow: var(--shadow-xs);
}
.login-feature-icon {
    width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; color: var(--primary-strong); background: rgba(63,140,255,.1);
}
.login-feature strong { display: block; margin-bottom: 4px; }
.login-feature span { color: var(--text-soft); line-height: 1.7; }
.login-card { padding: 34px; align-self: center; background: rgba(255,255,255,.92); }
.login-brand { margin-bottom: 22px; }
.login-brand h2 { margin: 16px 0 8px; font-size: 1.8rem; }
.login-brand p, .login-note { color: var(--text-soft); line-height: 1.7; }
.login-note { margin-top: 14px; font-size: .92rem; }
.login-badge {
    display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; color: var(--primary-strong); font-size: .82rem; font-weight: 800;
    background: rgba(63,140,255,.12);
}
.login-badge.subtle { background: rgba(99,122,154,.1); color: var(--text-soft); }
.app-toast-stack {
    position: fixed; top: 24px; left: 24px; display: grid; gap: 12px; z-index: 110; width: min(360px, calc(100vw - 32px));
}
.app-network-banner {
    position: fixed; right: 24px; bottom: 24px; z-index: 115; width: min(420px, calc(100vw - 32px));
    padding: 14px 18px; border-radius: 18px; color: #fff; background: rgba(23, 50, 81, .94); box-shadow: var(--shadow-md);
}
.app-network-banner.is-offline { background: rgba(224, 100, 100, .96); }
.app-toast {
    display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 20px; border: 1px solid rgba(255,255,255,.72);
    box-shadow: var(--shadow-md); background: rgba(255,255,255,.95); backdrop-filter: blur(14px);
    opacity: 0; transform: translateY(-8px); transition: opacity 220ms ease, transform 220ms ease;
}
.app-toast.is-visible { opacity: 1; transform: translateY(0); }
.app-toast.is-success { border-color: rgba(108,201,154,.28); }
.app-toast.is-danger { border-color: rgba(234,164,177,.3); }
.app-toast.is-info { border-color: rgba(124,173,243,.28); }
.app-toast-icon { width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0; border-radius: 14px; font-size: 1rem; }
.app-toast.is-success .app-toast-icon { color: var(--success); background: var(--success-soft); }
.app-toast.is-danger .app-toast-icon { color: var(--danger); background: var(--danger-soft); }
.app-toast.is-info .app-toast-icon { color: var(--primary-strong); background: var(--primary-soft); }
.app-toast-content { display: grid; gap: 4px; }
.app-toast-title { font-weight: 800; }
.app-toast-message { color: var(--text-soft); line-height: 1.7; }
.app-dialog-backdrop {
    position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(18,34,58,.34); backdrop-filter: blur(8px); z-index: 120;
}
.app-dialog {
    width: min(420px, 100%); padding: 24px; border-radius: 28px; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.84); box-shadow: var(--shadow-md);
}
.app-dialog-title { margin: 0 0 10px; font-size: 1.22rem; }
.app-dialog-message { margin: 0; color: var(--text-soft); line-height: 1.8; }
.app-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.inventory-stock-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
}
.inventory-stock-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 34, 58, 0.42);
    backdrop-filter: blur(8px);
}
.inventory-stock-modal__dialog {
    position: relative;
    width: min(1100px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    padding: 22px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.inventory-stock-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}
.inventory-stock-modal__header h3 {
    margin: 0 0 8px;
    font-size: 1.28rem;
}
.inventory-stock-modal__subtitle {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}
.inventory-stock-modal__close {
    flex-shrink: 0;
}
.inventory-stock-modal__body {
    min-height: 240px;
    overflow: auto;
}
.inventory-stock-modal__state {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 24px;
    text-align: center;
    color: var(--text-soft);
    border: 1px dashed rgba(176, 193, 216, 0.32);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(250,252,255,.98), rgba(244,248,255,.98));
}
.inventory-stock-modal__state[data-tone="danger"] {
    color: var(--danger);
    border-color: rgba(224, 100, 100, 0.28);
    background: linear-gradient(180deg, rgba(255,247,247,.98), rgba(255,242,242,.98));
}
body.inventory-stock-modal-open {
    overflow: hidden;
}
canvas { max-height: 340px; }
@keyframes surface-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes skeleton-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}
@media (max-width: 1320px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sales-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dashboard-hero { grid-template-columns: 1fr; }
}
@media (max-width: 1180px) {
    .main-content { padding-left: 18px; }
    .grid-3, .form-grid, .product-form-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .debt-flow-summary, .debt-review-grid { grid-template-columns: 1fr; }
    .login-wrapper { grid-template-columns: 1fr; }
    .login-showcase { min-height: auto; }
}
@media (max-width: 980px) {
    .app-shell { display: block; }
    .sidebar {
        position: fixed; top: 0; right: 0; bottom: 0; width: min(var(--sidebar-width), calc(100vw - 28px)); padding: 0; z-index: 40;
        transform: translateX(100%); transition: transform 220ms ease;
    }
    .sidebar-panel { top: 0; height: 100%; }
    .app-shell.sidebar-open-mobile .sidebar { transform: translateX(0); }
    .app-shell.sidebar-collapsed .sidebar { width: min(var(--sidebar-width), calc(100vw - 28px)); }
    .app-shell.sidebar-collapsed .brand-copy,
    .app-shell.sidebar-collapsed .sidebar-section-label,
    .app-shell.sidebar-collapsed .nav-link-label {
        opacity: 1; max-width: 180px; transform: none; pointer-events: auto;
    }
    .app-shell.sidebar-collapsed .sidebar-footer {
        opacity: 1; max-height: 180px; padding: 16px; margin-top: auto; border-width: 1px; transform: none; pointer-events: auto;
    }
    .app-shell.sidebar-collapsed .sidebar-panel { align-items: stretch; padding-inline: 18px; }
    .app-shell.sidebar-collapsed .nav-link { justify-content: flex-start; padding-inline: 14px; }
    .main-content { max-width: none; padding: 0 18px 18px; }
    .topbar { top: 0; flex-direction: column; align-items: stretch; }
    .topbar-start, .topbar-actions { width: 100%; justify-content: space-between; flex-wrap: wrap; }
    .sidebar-toggle { min-width: 112px; }
    .sales-pos-layout { grid-template-columns: 1fr; }
    .sales-cart-panel { position: static; }
    .sales-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .grid-2, .grid-3, .grid-4, .form-grid, .product-form-layout { grid-template-columns: 1fr; }
    .debt-flow-steps, .debt-flow-summary, .debt-type-grid { grid-template-columns: 1fr; }
    .invoice-items .row, .dynamic-rows .row, .purchase-items .row, .product-unit-rows .row, .sales-cart-item-fields, .sales-quick-customer-grid, .sales-products-grid { grid-template-columns: 1fr; }
    .toolbar-search, .sales-products-search { width: 100%; }
    .pagination-bar, .app-dialog-actions, .topbar-actions { width: 100%; }
    .pagination-links, .app-dialog-actions { justify-content: stretch; }
    .pagination-link, .app-dialog-actions .btn { flex: 1 1 auto; }
    .inventory-stock-modal__dialog {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        margin: 10px auto;
        padding: 18px;
        border-radius: 24px;
    }
    .inventory-stock-modal__header {
        flex-direction: column;
        align-items: stretch;
    }
    .inventory-stock-modal__close {
        width: 100%;
    }
    .login-page { padding: 14px; }
    .login-card, .login-showcase { padding: 24px 20px; }
    .dashboard-hero-meta { grid-template-columns: 1fr; }
    .sidebar-toggle { min-width: 52px; padding-inline: 0; }
    .sidebar-toggle-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important;
    }
}
