﻿:root {
    --navy: #0b2a4a;
    --navy-2: #123b66;
    --accent: #f59e0b;
    --primary: #1d4ed8;
    --primary-2: #0ea5e9;
    --sidebar-start: #0b2a4a;
    --sidebar-end: #123b66;
    --topbar-start: #0b2a4a;
    --topbar-end: #1c4a82;
    --header-start: #1d4ed8;
    --header-end: #0ea5e9;
    --bg: #eef2f7;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --radius: 16px;
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.distributor-auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #07111f;
    color: #f8fafc;
}

.distributor-auth-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 32px 5vw;
}

.distributor-auth-bg,
.distributor-auth-overlay {
    position: absolute;
    inset: 0;
}

.distributor-auth-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: .96;
}

.distributor-auth-overlay {
    background:
        radial-gradient(circle at 84% 18%, rgba(255, 193, 7, .22), transparent 32%),
        linear-gradient(90deg, rgba(4, 17, 38, .97) 0%, rgba(7, 25, 54, .91) 46%, rgba(16, 35, 63, .62) 100%);
}

.distributor-auth-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 500px);
    gap: 56px;
    align-items: center;
}

.distributor-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    margin-bottom: 46px;
}

.distributor-auth-brand strong {
    display: block;
    font-family: 'Urbanist', sans-serif;
    font-size: 1.55rem;
    line-height: 1;
}

.distributor-auth-brand small {
    display: block;
    color: #b8c4d6;
    font-size: .86rem;
}

.distributor-auth-logo {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #3182ff, #13b8ff);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .28);
    font-size: 1.2rem;
}

.distributor-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 9px 14px;
    border-radius: 999px;
    background: #ffc107;
    color: #3d2b00;
    font-weight: 800;
    font-size: .84rem;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
}

.distributor-auth-copy h1 {
    max-width: 680px;
    margin: 0 0 18px;
    font-family: 'Urbanist', sans-serif;
    font-size: clamp(2.4rem, 4vw, 4.4rem);
    font-weight: 800;
    line-height: 1.02;
    color: #fff7e6;
    text-shadow: 0 5px 22px rgba(0, 0, 0, .42);
}

.distributor-auth-copy p {
    max-width: 620px;
    margin: 0;
    color: #dbeafe;
    font-size: 1.06rem;
    line-height: 1.7;
    font-weight: 600;
}

.distributor-auth-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 650px;
    margin-top: 30px;
}

.distributor-auth-points div {
    min-height: 94px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .16);
}

.distributor-auth-points i {
    display: block;
    margin-bottom: 10px;
    color: #ffd45a;
    font-size: 1.25rem;
}

.distributor-auth-points span {
    color: #edf5ff;
    font-weight: 700;
    font-size: .94rem;
}

.distributor-auth-panel {
    width: 100%;
}

.distributor-auth-card {
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 28px;
    background: rgba(255, 255, 255, .86);
    color: #172033;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .28);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.auth-card-kicker {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #ffc107;
    color: #3d2b00;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.distributor-auth-card h2 {
    margin: 0 0 10px;
    font-family: 'Urbanist', sans-serif;
    font-size: clamp(1.7rem, 2.5vw, 2.25rem);
    font-weight: 800;
    color: #111827;
}

.distributor-auth-card p {
    margin: 0 0 24px;
    color: #536174;
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.distributor-auth-card .form-label {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 8px;
}

.distributor-auth-card .form-control {
    min-height: 50px;
    border-radius: 14px;
    border-color: #cfd9e8;
    background: rgba(255, 255, 255, .92);
    color: #111827;
}

.distributor-auth-card .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 .22rem rgba(37, 99, 235, .15);
}

.auth-main-btn {
    min-height: 52px;
    border-radius: 14px;
    color: #111827 !important;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(245, 158, 11, .24);
}

.auth-card-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #d9e2ee;
    color: #536174;
    font-size: .95rem;
}

.auth-card-footer a {
    color: #0b5ed7;
    font-weight: 800;
    text-decoration: none;
}

.auth-card-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 980px) {
    .dealerops-image-grid {
        grid-template-columns: 1fr;
    }

    .distributor-auth-shell {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .distributor-auth-brand {
        margin-bottom: 26px;
    }

    .distributor-auth-points {
        grid-template-columns: 1fr;
    }
}

* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(180deg, #e8eef7 0%, #f6f8fb 100%);
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text);
}

body[data-theme="ocean"] {
    --primary: #1d4ed8;
    --primary-2: #0ea5e9;
    --sidebar-start: #0b2a4a;
    --sidebar-end: #123b66;
    --topbar-start: #0b2a4a;
    --topbar-end: #1c4a82;
    --header-start: #1d4ed8;
    --header-end: #0ea5e9;
    --accent: #f59e0b;
}

body[data-theme="cobalt"] {
    --primary: #1e40af;
    --primary-2: #2563eb;
    --sidebar-start: #0f172a;
    --sidebar-end: #1e3a8a;
    --topbar-start: #0f172a;
    --topbar-end: #1e3a8a;
    --header-start: #1e40af;
    --header-end: #2563eb;
    --accent: #f59e0b;
}

body[data-theme="sky"] {
    --primary: #0284c7;
    --primary-2: #38bdf8;
    --sidebar-start: #0c4a6e;
    --sidebar-end: #075985;
    --topbar-start: #0c4a6e;
    --topbar-end: #0369a1;
    --header-start: #0284c7;
    --header-end: #38bdf8;
    --accent: #f59e0b;
}

body[data-theme="teal"] {
    --primary: #0f766e;
    --primary-2: #14b8a6;
    --sidebar-start: #0f3d3a;
    --sidebar-end: #115e59;
    --topbar-start: #0f3d3a;
    --topbar-end: #0f766e;
    --header-start: #0f766e;
    --header-end: #14b8a6;
    --accent: #f59e0b;
}

body[data-theme="emerald"] {
    --primary: #059669;
    --primary-2: #10b981;
    --sidebar-start: #064e3b;
    --sidebar-end: #047857;
    --topbar-start: #064e3b;
    --topbar-end: #059669;
    --header-start: #059669;
    --header-end: #10b981;
    --accent: #f59e0b;
}

body[data-theme="forest"] {
    --primary: #166534;
    --primary-2: #22c55e;
    --sidebar-start: #14532d;
    --sidebar-end: #166534;
    --topbar-start: #14532d;
    --topbar-end: #15803d;
    --header-start: #166534;
    --header-end: #22c55e;
    --accent: #f59e0b;
}

body[data-theme="moss"] {
    --primary: #3f6212;
    --primary-2: #84cc16;
    --sidebar-start: #365314;
    --sidebar-end: #4d7c0f;
    --topbar-start: #365314;
    --topbar-end: #4d7c0f;
    --header-start: #3f6212;
    --header-end: #84cc16;
    --accent: #f59e0b;
}

body[data-theme="lime"] {
    --primary: #65a30d;
    --primary-2: #a3e635;
    --sidebar-start: #365314;
    --sidebar-end: #3f6212;
    --topbar-start: #365314;
    --topbar-end: #4d7c0f;
    --header-start: #65a30d;
    --header-end: #a3e635;
    --accent: #f59e0b;
}

body[data-theme="amber"] {
    --primary: #f59e0b;
    --primary-2: #f97316;
    --sidebar-start: #78350f;
    --sidebar-end: #92400e;
    --topbar-start: #78350f;
    --topbar-end: #b45309;
    --header-start: #f59e0b;
    --header-end: #f97316;
    --accent: #f59e0b;
}

body[data-theme="copper"] {
    --primary: #b45309;
    --primary-2: #ea580c;
    --sidebar-start: #7c2d12;
    --sidebar-end: #9a3412;
    --topbar-start: #7c2d12;
    --topbar-end: #c2410c;
    --header-start: #b45309;
    --header-end: #ea580c;
    --accent: #f59e0b;
}

body[data-theme="sunset"] {
    --primary: #f97316;
    --primary-2: #fb7185;
    --sidebar-start: #9a3412;
    --sidebar-end: #be123c;
    --topbar-start: #9a3412;
    --topbar-end: #be123c;
    --header-start: #f97316;
    --header-end: #fb7185;
    --accent: #f59e0b;
}

body[data-theme="rose"] {
    --primary: #e11d48;
    --primary-2: #fb7185;
    --sidebar-start: #881337;
    --sidebar-end: #be123c;
    --topbar-start: #881337;
    --topbar-end: #be123c;
    --header-start: #e11d48;
    --header-end: #fb7185;
    --accent: #f59e0b;
}

body[data-theme="crimson"] {
    --primary: #dc2626;
    --primary-2: #ef4444;
    --sidebar-start: #7f1d1d;
    --sidebar-end: #991b1b;
    --topbar-start: #7f1d1d;
    --topbar-end: #b91c1c;
    --header-start: #dc2626;
    --header-end: #ef4444;
    --accent: #f59e0b;
}

body[data-theme="maroon"] {
    --primary: #7f1d1d;
    --primary-2: #b91c1c;
    --sidebar-start: #450a0a;
    --sidebar-end: #7f1d1d;
    --topbar-start: #450a0a;
    --topbar-end: #7f1d1d;
    --header-start: #7f1d1d;
    --header-end: #b91c1c;
    --accent: #f59e0b;
}

body[data-theme="slate"] {
    --primary: #475569;
    --primary-2: #94a3b8;
    --sidebar-start: #0f172a;
    --sidebar-end: #1e293b;
    --topbar-start: #0f172a;
    --topbar-end: #1e293b;
    --header-start: #475569;
    --header-end: #94a3b8;
    --accent: #f59e0b;
}

body[data-theme="steel"] {
    --primary: #334155;
    --primary-2: #64748b;
    --sidebar-start: #111827;
    --sidebar-end: #1f2937;
    --topbar-start: #111827;
    --topbar-end: #1f2937;
    --header-start: #334155;
    --header-end: #64748b;
    --accent: #f59e0b;
}

body[data-theme="charcoal"] {
    --primary: #111827;
    --primary-2: #374151;
    --sidebar-start: #0f172a;
    --sidebar-end: #111827;
    --topbar-start: #0f172a;
    --topbar-end: #111827;
    --header-start: #111827;
    --header-end: #374151;
    --accent: #f59e0b;
}

body[data-theme="sand"] {
    --primary: #d97706;
    --primary-2: #fbbf24;
    --sidebar-start: #78350f;
    --sidebar-end: #a16207;
    --topbar-start: #78350f;
    --topbar-end: #a16207;
    --header-start: #d97706;
    --header-end: #fbbf24;
    --accent: #f59e0b;
}

body[data-theme="glacier"] {
    --primary: #0ea5e9;
    --primary-2: #22d3ee;
    --sidebar-start: #0f4c5c;
    --sidebar-end: #0e7490;
    --topbar-start: #0f4c5c;
    --topbar-end: #0891b2;
    --header-start: #0ea5e9;
    --header-end: #22d3ee;
    --accent: #f59e0b;
}

body[data-theme="gold"] {
    --primary: #ca8a04;
    --primary-2: #facc15;
    --sidebar-start: #713f12;
    --sidebar-end: #854d0e;
    --topbar-start: #713f12;
    --topbar-end: #a16207;
    --header-start: #ca8a04;
    --header-end: #facc15;
    --accent: #f59e0b;
}

body[data-theme="indigo"] {
    --primary: #4338ca;
    --primary-2: #6366f1;
    --sidebar-start: #1e1b4b;
    --sidebar-end: #3730a3;
    --topbar-start: #1e1b4b;
    --topbar-end: #4338ca;
    --header-start: #4338ca;
    --header-end: #6366f1;
    --accent: #f59e0b;
}

body[data-theme="violet"] {
    --primary: #6d28d9;
    --primary-2: #8b5cf6;
    --sidebar-start: #2e1065;
    --sidebar-end: #5b21b6;
    --topbar-start: #2e1065;
    --topbar-end: #6d28d9;
    --header-start: #6d28d9;
    --header-end: #8b5cf6;
    --accent: #f59e0b;
}

body[data-theme="purple"] {
    --primary: #7e22ce;
    --primary-2: #a855f7;
    --sidebar-start: #3b0764;
    --sidebar-end: #6b21a8;
    --topbar-start: #3b0764;
    --topbar-end: #7e22ce;
    --header-start: #7e22ce;
    --header-end: #a855f7;
    --accent: #f59e0b;
}

body[data-theme="fuchsia"] {
    --primary: #c026d3;
    --primary-2: #e879f9;
    --sidebar-start: #701a75;
    --sidebar-end: #a21caf;
    --topbar-start: #701a75;
    --topbar-end: #c026d3;
    --header-start: #c026d3;
    --header-end: #e879f9;
    --accent: #f59e0b;
}

body[data-theme="pink"] {
    --primary: #db2777;
    --primary-2: #f472b6;
    --sidebar-start: #831843;
    --sidebar-end: #be185d;
    --topbar-start: #831843;
    --topbar-end: #db2777;
    --header-start: #db2777;
    --header-end: #f472b6;
    --accent: #f59e0b;
}

body[data-theme="ruby"] {
    --primary: #be123c;
    --primary-2: #f43f5e;
    --sidebar-start: #4c0519;
    --sidebar-end: #9f1239;
    --topbar-start: #4c0519;
    --topbar-end: #be123c;
    --header-start: #be123c;
    --header-end: #f43f5e;
    --accent: #f59e0b;
}

body[data-theme="coral"] {
    --primary: #e85d3f;
    --primary-2: #fb8f67;
    --sidebar-start: #7c2d12;
    --sidebar-end: #c2410c;
    --topbar-start: #7c2d12;
    --topbar-end: #e85d3f;
    --header-start: #e85d3f;
    --header-end: #fb8f67;
    --accent: #f59e0b;
}

body[data-theme="tangerine"] {
    --primary: #ea580c;
    --primary-2: #fb923c;
    --sidebar-start: #7c2d12;
    --sidebar-end: #c2410c;
    --topbar-start: #7c2d12;
    --topbar-end: #ea580c;
    --header-start: #ea580c;
    --header-end: #fb923c;
    --accent: #f59e0b;
}

body[data-theme="mustard"] {
    --primary: #a16207;
    --primary-2: #eab308;
    --sidebar-start: #422006;
    --sidebar-end: #854d0e;
    --topbar-start: #422006;
    --topbar-end: #a16207;
    --header-start: #a16207;
    --header-end: #eab308;
    --accent: #0ea5e9;
}

body[data-theme="olive"] {
    --primary: #4d7c0f;
    --primary-2: #a3a832;
    --sidebar-start: #1a2e05;
    --sidebar-end: #3f6212;
    --topbar-start: #1a2e05;
    --topbar-end: #4d7c0f;
    --header-start: #4d7c0f;
    --header-end: #a3a832;
    --accent: #f59e0b;
}

body[data-theme="mint"] {
    --primary: #0d9488;
    --primary-2: #5eead4;
    --sidebar-start: #134e4a;
    --sidebar-end: #0f766e;
    --topbar-start: #134e4a;
    --topbar-end: #0d9488;
    --header-start: #0d9488;
    --header-end: #5eead4;
    --accent: #f59e0b;
}

body[data-theme="aqua"] {
    --primary: #0891b2;
    --primary-2: #67e8f9;
    --sidebar-start: #164e63;
    --sidebar-end: #0e7490;
    --topbar-start: #164e63;
    --topbar-end: #0891b2;
    --header-start: #0891b2;
    --header-end: #67e8f9;
    --accent: #f59e0b;
}

body[data-theme="cyan"] {
    --primary: #0e7490;
    --primary-2: #22d3ee;
    --sidebar-start: #083344;
    --sidebar-end: #155e75;
    --topbar-start: #083344;
    --topbar-end: #0e7490;
    --header-start: #0e7490;
    --header-end: #22d3ee;
    --accent: #f59e0b;
}

body[data-theme="denim"] {
    --primary: #1e3a8a;
    --primary-2: #3b82f6;
    --sidebar-start: #172554;
    --sidebar-end: #1e40af;
    --topbar-start: #172554;
    --topbar-end: #1e3a8a;
    --header-start: #1e3a8a;
    --header-end: #3b82f6;
    --accent: #f59e0b;
}

body[data-theme="graphite"] {
    --primary: #27272a;
    --primary-2: #71717a;
    --sidebar-start: #18181b;
    --sidebar-end: #3f3f46;
    --topbar-start: #18181b;
    --topbar-end: #27272a;
    --header-start: #27272a;
    --header-end: #71717a;
    --accent: #f59e0b;
}

body[data-theme="walnut"] {
    --primary: #713f12;
    --primary-2: #a16207;
    --sidebar-start: #431407;
    --sidebar-end: #713f12;
    --topbar-start: #431407;
    --topbar-end: #713f12;
    --header-start: #713f12;
    --header-end: #a16207;
    --accent: #f59e0b;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 250px;
    background: linear-gradient(180deg, var(--sidebar-start), var(--sidebar-end));
    color: #e2e8f0;
    padding: 24px 18px;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

.brand-icon {
    width: 124px;
    height: 58px;
    border-radius: 10px;
    background: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    overflow: hidden;
    padding: 6px;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
}

.brand-subtitle {
    font-size: 12px;
    color: rgba(226, 232, 240, 0.7);
}

.app-sidebar .nav-link {
    color: #e2e8f0;
    padding: 10px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    margin-bottom: 6px;
}

.app-sidebar .nav-link i {
    font-size: 16px;
}

.app-sidebar .nav-link.active,
.app-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.sidebar-group {
    margin-bottom: 10px;
}

.sidebar-group-toggle {
    width: 100%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    padding: 9px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 6px;
    text-align: left;
}

.sidebar-group-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.sidebar-group-toggle .bi {
    transition: transform 0.2s ease;
}

.sidebar-group-toggle.collapsed .bi {
    transform: rotate(-90deg);
}

.sidebar-group .nav-link {
    padding-left: 16px;
}

.lead-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
}

.lead-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    background: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.lead-timer.open .lead-dot {
    background: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.lead-timer.overdue .lead-dot {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.lead-timer.closed .lead-dot {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.ticket-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
}

.ticket-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.ticket-timer.warning .ticket-dot {
    background: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.ticket-timer.overdue .ticket-dot {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.ticket-timer.pending .ticket-dot {
    background: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    padding: 14px 24px;
    background: linear-gradient(90deg, var(--topbar-start), var(--topbar-end));
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 20;
}

.app-topnav {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "left menu"
        "right right";
    align-items: center;
    column-gap: 16px;
    row-gap: 10px;
    padding: 10px 16px;
    background: linear-gradient(90deg, var(--topbar-start), var(--topbar-end));
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 25;
}

.topnav-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    grid-area: left;
}

.topnav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.topnav-brand .brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
}

.topnav-brand .brand-copy {
    display: grid;
    min-width: 0;
}

.topnav-brand .brand-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.topnav-brand .brand-subtitle {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.topnav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
    overflow: visible;
    padding: 4px 0;
    grid-area: menu;
}

.topnav-menu::-webkit-scrollbar {
    height: 0;
}

.topnav-menu {
    scrollbar-width: none;
}

.topnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    background: transparent;
    border: none;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.topnav-item i {
    font-size: 18px;
}

.topnav-item:hover,
.topnav-item.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.topnav-dropdown .dropdown-menu {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    z-index: 1055;
}

.topnav-dropdown .dropdown-toggle::after {
    display: none;
}

.topnav-dropdown .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}

.topnav-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.topnav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    grid-area: right;
    flex-direction: column;
    align-items: flex-end;
    justify-self: end;
}

.topnav-search {
    min-width: 160px;
    max-width: 240px;
    flex: 1;
    width: 240px;
}

.topnav-right-row {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

@media (max-width: 991px) {
    .topnav-search {
        max-width: 180px;
    }
    .topnav-item {
        font-size: 11px;
        padding: 6px 10px;
    }
}

@media (max-width: 768px) {
    .app-topnav {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "left right"
            "menu menu";
        padding: 12px 14px;
    }

    .topnav-left {
        gap: 10px;
    }

    .topnav-brand .brand-title,
    .topnav-brand .brand-subtitle {
        max-width: 120px;
    }

    .topnav-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .topnav-right-row {
        gap: 8px;
    }

    .topnav-search {
        width: 200px;
        max-width: 200px;
    }

    .topnav-menu {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        padding: 8px 0 4px;
    }

    .topnav-item {
        padding: 10px 6px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.12);
        min-height: 70px;
        justify-content: center;
        text-align: center;
    }

    .topnav-item i {
        font-size: 20px;
    }

    .topnav-dropdown .dropdown-menu {
        position: fixed;
        left: 16px !important;
        right: 16px !important;
        top: auto !important;
        bottom: 90px;
        max-height: 50vh;
        overflow-y: auto;
    }

    main {
        padding-bottom: 90px;
    }
}

@media (max-width: 768px) {
    .industry-grid { grid-template-columns: 1fr; }
    .landing-hero { background-position: 63% center; }
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
        position: fixed;
        bottom: 12px;
        left: 12px;
        right: 12px;
        padding: 10px 12px;
        background: rgba(11, 31, 51, 0.92);
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
        z-index: 50;
    }

    .mobile-bottom-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
        font-size: 11px;
        font-weight: 600;
        padding: 8px 4px;
        border-radius: 12px;
    }

    .mobile-bottom-item i {
        font-size: 18px;
    }

    .mobile-bottom-item.active,
    .mobile-bottom-item:hover {
        background: rgba(255, 255, 255, 0.16);
        color: #fff;
    }
}

body[data-ui="icon-top"] .app-shell {
    flex-direction: column;
}

body[data-ui="icon-top"] .app-main {
    min-height: 100vh;
}

.topbar-left {
    flex: 1;
}

.tenant-pill {
    background: rgba(255, 255, 255, 0.16);
    padding: 6px 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.search-bar {
    background: rgba(255, 255, 255, 0.18);
    padding: 6px 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 280px;
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    width: 100%;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.icon-btn {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.32);
}

.notify-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.user-chip .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #0b2a4a;
}

.user-chip .logout-link {
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 10px;
}

main {
    padding: 24px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--header-start), var(--header-end));
    color: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-2);
    border-color: var(--primary-2);
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.theme-swatch {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    font-size: 13px;
}

.theme-swatch input {
    margin: 0;
}

.theme-swatch .swatch {
    width: 36px;
    height: 24px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: inline-block;
}

.theme-swatch input:checked + .swatch {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.ui-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.ui-layout-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    font-size: 13px;
}

.ui-layout-option input {
    margin-top: 4px;
}

.ui-layout-title {
    font-weight: 700;
}

.ui-layout-desc {
    color: #64748b;
    font-size: 12px;
}

.page-header h1 {
    margin: 0 0 6px 0;
    font-size: 26px;
}

.page-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.customer-combobox {
    position: relative;
}

.customer-combobox-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 34px;
    position: relative;
    text-align: left;
}

.customer-combobox-trigger::after {
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    content: '';
    height: 7px;
    position: absolute;
    right: 14px;
    top: calc(50% - 5px);
    transform: rotate(45deg);
    width: 7px;
}

.customer-combobox-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.customer-combobox-menu {
    display: none;
    position: absolute;
    z-index: 1080;
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
    margin-top: 4px;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.customer-combobox-menu.show {
    display: block;
}

.customer-combobox-search {
    margin-bottom: 6px;
}

.customer-combobox-results {
    max-height: 220px;
    overflow-y: auto;
}

.customer-combobox-option,
.customer-combobox-empty {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #1e293b;
    font-size: 14px;
    text-align: left;
}

.customer-combobox-option:hover,
.customer-combobox-option.selected {
    background: #e8f1ff;
    color: #0b5cab;
}

.customer-combobox-empty {
    color: #64748b;
}

.ticket-admin-tools {
    border: 1px solid #dbe5f0;
    border-radius: 10px;
    background: #fff;
    padding: 10px 14px;
}

.ticket-admin-tools summary {
    color: #0b5cab;
    cursor: pointer;
    font-weight: 600;
}

.ticket-create-card {
    max-width: 1080px;
    margin: 0 auto;
}

.ticket-customer-picker {
    position: relative;
}

.ticket-customer-results {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 1200;
    max-height: 260px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.ticket-customer-results.show {
    display: block;
}

.ticket-customer-option,
.ticket-customer-empty {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #0f172a;
    font-size: 14px;
    text-align: left;
}

.ticket-customer-option:hover,
.ticket-customer-option:focus {
    background: #e8f1ff;
    color: #0b5cab;
}

.ticket-customer-empty {
    color: #64748b;
}

.ticket-create-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.ticket-create-heading h2 {
    margin: 0 0 4px;
    color: #0f2742;
    font-size: 20px;
}

.ticket-create-heading p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.ticket-create-card .ticket-advanced-field {
    display: none;
}

.ticket-create-card.show-ticket-advanced .ticket-advanced-field {
    display: block;
}

@media (max-width: 575px) {
    .ticket-create-heading {
        flex-direction: column;
    }
}

@media (min-width: 992px) {
    .dashboard-header > div:first-child {
        min-width: 0;
    }

    .dashboard-quick-actions {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .dashboard-quick-actions .btn {
        padding: 7px 10px;
        font-size: 14px;
        white-space: nowrap;
    }
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    position: relative;
    padding: 18px;
    border-radius: 16px;
    color: #fff;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.stat-card .stat-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-card .stat-value {
    font-size: 22px;
    font-weight: 700;
    margin-top: 8px;
}

.stat-card .stat-sub {
    font-size: 12px;
    opacity: 0.8;
}

.stat-card .stat-icon {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 28px;
    opacity: 0.35;
}

.stat-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card.stat-small {
    padding: 14px;
    min-height: 90px;
}

.stat-card.stat-small .stat-label {
    font-size: 12px;
}

.stat-card.stat-small .stat-value {
    font-size: 18px;
}

.stat-card.stat-small .stat-icon {
    font-size: 22px;
    right: 12px;
    top: 12px;
}

.stat-blue { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.stat-teal { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.stat-orange { background: linear-gradient(135deg, #ea580c, #f97316); }
.stat-green { background: linear-gradient(135deg, #15803d, #22c55e); }
.stat-yellow { background: linear-gradient(135deg, #ca8a04, #f59e0b); }
.stat-red { background: linear-gradient(135deg, #b91c1c, #ef4444); }

.panel {
    background: var(--card);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.panel-header h5 {
    margin: 0;
    font-weight: 600;
}

.panel-subtitle {
    color: var(--muted);
    font-size: 12px;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.chart-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 260px;
}

.chart-card .panel-header {
    margin-bottom: 8px;
}

.chart-canvas {
    position: relative;
    flex: 1;
    min-height: 220px;
}

.chart-canvas-lg {
    min-height: 280px;
}

.chart-card.span-12 { grid-column: span 12; }
.chart-card.span-8 { grid-column: span 8; }
.chart-card.span-6 { grid-column: span 6; }
.chart-card.span-4 { grid-column: span 4; }
.chart-card.span-3 { grid-column: span 3; }

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 200px;
    padding: 10px 0;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bar-fill {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    border-radius: 12px 12px 6px 6px;
    transition: height 0.3s ease;
}

.chart-bar span {
    font-size: 12px;
    color: var(--muted);
}

.list-modern {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-modern li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.list-modern li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.chip {
    background: #e2e8f0;
    color: #0f172a;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.spotlight {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.spotlight-title {
    font-size: 18px;
    font-weight: 700;
}

.spotlight-customer {
    color: var(--muted);
    margin-top: 4px;
}

.spotlight-meta {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.spotlight-due {
    margin-top: 12px;
    color: var(--muted);
}

.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.table {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 0;
}

.table thead {
    background: #f8fafc;
}

.table th {
    font-weight: 600;
    color: #475569;
    border-bottom-width: 1px;
}

.table-modern-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    overflow: auto;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.table-modern-wrap.table-responsive {
    margin-bottom: 0;
}

.table-modern-wrap .table.table-modernized {
    min-width: 640px;
    border-collapse: separate;
    border-spacing: 0;
}

.table.table-modernized th {
    padding: 13px 14px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f8fafc;
}

.table.table-modernized td {
    padding: 12px 14px;
    font-size: 14px;
    color: #0f172a;
    vertical-align: middle;
    border-bottom: 1px solid #edf2f7;
}

.table.table-modernized tbody tr:last-child td {
    border-bottom: none;
}

.table.table-modernized tbody tr:hover td {
    background: #f8fbff;
}

.table-modern-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 12px 0 10px;
    flex-wrap: wrap;
}

.table-modern-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #d9e2ec;
    background: #fff;
    min-width: 260px;
    flex: 1 1 260px;
}

.table-modern-search i {
    color: #64748b;
    font-size: 13px;
}

.table-modern-search input {
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
    color: #0f172a;
    font-size: 14px;
}

.table-modern-search input::placeholder {
    color: #94a3b8;
}

.table-modern-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.table-modern-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    padding: 6px 8px;
}

.table-modern-field span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.table-modern-select {
    border: none;
    box-shadow: none !important;
    min-width: 88px;
    background-color: transparent;
    padding-top: 2px;
    padding-bottom: 2px;
}

.table-modern-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 12px;
}

.table-modern-info {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.table-modern-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.table-page-btn {
    border: 1px solid #d1d9e6;
    background: #fff;
    color: #334155;
    border-radius: 10px;
    min-width: 34px;
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
}

.table-page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.table-page-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-color: transparent;
    color: #fff;
}

.table-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.table-modern-empty td {
    text-align: center;
    color: #64748b;
    padding: 24px 16px !important;
}

.table-native-pagination {
    margin-top: 8px;
}

.table-native-pagination .pagination {
    margin-bottom: 0;
    justify-content: flex-end;
}

.table-native-pagination .page-link {
    border-radius: 10px;
    margin-left: 6px;
    border-color: #d1d9e6;
    color: #334155;
}

.table-native-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-color: transparent;
}

.table.table-modernized.table-sm th,
.table.table-modernized.table-sm td {
    padding-top: 10px;
    padding-bottom: 10px;
}

@media (max-width: 768px) {
    .table-modern-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .table-modern-controls {
        width: 100%;
        justify-content: space-between;
    }

    .table-modern-field {
        flex: 1 1 140px;
        justify-content: space-between;
    }

    .table-modern-wrap .table.table-modernized {
        min-width: 560px;
    }

    .table-modern-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

.ticket-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ticket-table td {
    vertical-align: middle;
}

.ticket-id {
    color: #1d4ed8;
    font-weight: 600;
}

.ticket-subject {
    max-width: 320px;
}

.requester {
    display: flex;
    gap: 10px;
    align-items: center;
}

.requester-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #e0ecff;
    color: #1d4ed8;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.requester-name {
    font-weight: 600;
}

.requester-sub {
    font-size: 11px;
    color: #94a3b8;
}

.badge {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
}

.badge-priority.badge-high {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-priority.badge-medium {
    background: #fef3c7;
    color: #b45309;
}

.badge-priority.badge-low {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-priority.badge-highest {
    background: #fee2e2;
    color: #991b1b;
}

.badge-priority.badge-lowest {
    background: #e2e8f0;
    color: #475569;
}

.badge-status.badge-open {
    background: #dcfce7;
    color: #166534;
}

.badge-status.badge-assigned {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-status.badge-accepted {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-status.badge-in-progress {
    background: #fef9c3;
    color: #854d0e;
}

.badge-status.badge-closed {
    background: #e2e8f0;
    color: #475569;
}

.badge-status.badge-on-hold {
    background: #fde68a;
    color: #b45309;
}

@media (max-width: 768px) {
    .ticket-subject {
        max-width: 180px;
    }
}

.auth-body {
    background: radial-gradient(circle at top, #1d4ed8, #0b2a4a 70%);
    color: #fff;
}

.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: #fff;
    color: #0f172a;
    padding: 30px;
    border-radius: 18px;
    width: 380px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.3);
}

.photo-thumb img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

.signature-pad canvas {
    border: 1px dashed #cbd5f5;
    width: 100%;
}

@media (max-width: 991px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .search-bar {
        min-width: 180px;
    }
    .chart-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .chart-card {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .app-shell {
        flex-direction: column;
    }
    .app-sidebar {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .app-sidebar .nav-link {
        flex: 1 1 auto;
        justify-content: center;
    }
    .app-topbar {
        flex-direction: column;
        gap: 12px;
    }
    .topbar-left,
    .topbar-right {
        width: 100%;
        justify-content: space-between;
    }
    .search-bar {
        width: 100%;
    }
}

/* Landing page */
.landing-body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    color: #edf3ff;
    font-family: 'Space Grotesk', sans-serif;
    background:
        radial-gradient(1100px 500px at 0% -5%, rgba(255, 255, 255, 0.16), transparent 60%),
        radial-gradient(900px 420px at 100% 0%, color-mix(in srgb, var(--landing-accent) 42%, transparent), transparent 66%),
        linear-gradient(170deg, var(--landing-darker) 0%, var(--landing-dark) 45%, var(--landing-mid) 100%);
}

.landing-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(transparent 96%, rgba(255, 255, 255, 0.14) 100%),
        linear-gradient(90deg, transparent 96%, rgba(255, 255, 255, 0.1) 100%);
    background-size: 36px 36px, 36px 36px;
}

.landing-hero {
    position: relative;
    padding: 26px clamp(14px, 2vw, 28px) 78px;
    overflow: hidden;
    background-image:
        linear-gradient(90deg, rgba(4, 22, 48, 0.96) 0%, rgba(6, 29, 60, 0.87) 41%, rgba(7, 31, 61, 0.23) 74%, rgba(4, 17, 38, 0.14) 100%),
        url('../images/dealerops-computer-cctv-dealer-hero.webp');
    background-position: center;
    background-size: cover;
}

.landing-hero-image { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .94; }
.landing-hero::after { content: ''; position: absolute; z-index: 0; inset: 0; background: linear-gradient(90deg, rgba(4,22,48,.97) 0%, rgba(6,29,60,.88) 42%, rgba(7,31,61,.23) 75%, rgba(4,17,38,.12) 100%); }
.landing-hero > *:not(.landing-hero-image) { position: relative; z-index: 1; }

.landing-industry-tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 8px 12px; border: 1px solid rgba(154, 211, 255, .45); border-radius: 999px; background: rgba(27, 106, 194, .2); color: #d7efff; font-size: .84rem; font-weight: 700; }
.landing-industry-tag i { color: #73d9ff; }
.dealer-industries { background: #f7faff; }
.industry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.industry-grid article { padding: 28px; border: 1px solid #e3eaf4; border-radius: 18px; background: #fff; box-shadow: 0 13px 32px rgba(23, 61, 101, .07); }
.industry-grid i { display: inline-grid; place-items: center; width: 45px; height: 45px; margin-bottom: 18px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--landing-primary), #199fcb); font-size: 1.3rem; }
.industry-grid h3 { margin-bottom: 10px; color: #102b50; font-size: 1.15rem; font-weight: 800; }
.industry-grid p { margin: 0; color: #60708a; line-height: 1.65; }

.dealerops-visual-section {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, .13), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.dealerops-image-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.dealerops-image-card {
    overflow: hidden;
    border: 1px solid #dde7f4;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 38, 70, .09);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dealerops-image-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, .42);
    box-shadow: 0 24px 58px rgba(15, 38, 70, .14);
}

.dealerops-image-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #0b1728;
}

.dealerops-image-card div {
    padding: 22px;
}

.dealerops-image-card h3 {
    margin: 0 0 8px;
    color: #10233d;
    font-family: 'Urbanist', sans-serif;
    font-size: 1.16rem;
    font-weight: 800;
}

.dealerops-image-card p {
    margin: 0;
    color: #5b6b80;
    line-height: 1.62;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 32px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(248, 250, 252, 0.88);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.landing-nav .landing-brand,
.landing-nav .landing-title,
.landing-nav .landing-link {
    color: #26313d;
}

.landing-nav .landing-subtitle {
    color: #66717c;
}

.landing-nav .landing-link:hover {
    color: #8c5b00;
    border-bottom-color: #f5b400;
}

.landing-nav .landing-link.is-active {
    color: #8c5b00;
    border-bottom-color: #f5b400;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.landing-brand:hover {
    color: inherit;
    text-decoration: none;
}

.landing-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: 'Urbanist', sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--landing-primary) 70%, #ffffff 30%),
        color-mix(in srgb, var(--landing-accent) 76%, #ffffff 24%));
    box-shadow: 0 12px 22px rgba(2, 6, 23, 0.34);
    overflow: hidden;
    flex-shrink: 0;
}

.landing-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.landing-brand-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.landing-brand-wordmark {
    display: block;
    width: min(230px, 48vw);
    height: auto;
    max-height: 66px;
    object-fit: contain;
    object-position: left center;
}

.footer-brand-wordmark {
    display: block;
    width: min(260px, 100%);
    height: auto;
    max-height: 86px;
    object-fit: contain;
    object-position: left center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .92);
}

.landing-title {
    margin: 0;
    font-family: 'Urbanist', sans-serif;
    font-size: 1.72rem;
    font-weight: 700;
    line-height: 1.08;
}

.landing-subtitle {
    color: rgba(237, 243, 255, 0.72);
    font-size: 0.83rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 360px;
}

.landing-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.landing-link {
    color: rgba(238, 244, 255, 0.86);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 6px 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.landing-link:hover {
    color: #fff;
    border-bottom-color: color-mix(in srgb, var(--landing-accent) 70%, #fff 30%);
}

.landing-link.is-active {
    color: #fff;
    border-bottom-color: color-mix(in srgb, var(--landing-accent) 70%, #fff 30%);
}

.landing-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.landing-actions .nav-btn {
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 7px;
    font-weight: 700;
    line-height: 1.15;
    box-shadow: none;
}

.landing-actions .nav-btn-primary {
    color: #ffffff !important;
    background: #2563eb !important;
    border-color: #2563eb !important;
}

.landing-actions .nav-btn-primary:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

.landing-actions .nav-btn-outline {
    color: #1f2937 !important;
    background: rgba(255, 255, 255, 0.72) !important;
    border-color: #94a3b8 !important;
}

.landing-actions .nav-btn-outline:hover,
.landing-actions .nav-btn-ghost:hover {
    color: #111827 !important;
    background: #e2e8f0 !important;
    border-color: #64748b !important;
}

.landing-actions .nav-btn-warning {
    color: #1f2937 !important;
    background: #fbbf24 !important;
    border-color: #f59e0b !important;
}

.landing-actions .nav-btn-warning:hover {
    background: #f59e0b !important;
    border-color: #d97706 !important;
}

.landing-actions .nav-btn-ghost {
    color: #1f2937 !important;
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}

/* Landing header alignment fix: keep logo, menu, and CTA buttons from colliding on desktop. */
.landing-nav.landing-nav-wide {
    display: grid !important;
    grid-template-columns: minmax(270px, auto) minmax(0, 1fr) max-content !important;
    align-items: center !important;
    column-gap: 26px !important;
    row-gap: 12px !important;
    overflow: hidden !important;
    padding: 14px 18px !important;
}

.landing-nav.landing-nav-wide .landing-brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    min-width: 0 !important;
    max-width: 390px !important;
}

.landing-nav.landing-nav-wide .landing-links {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    column-gap: 22px !important;
    row-gap: 8px !important;
    white-space: nowrap !important;
    min-width: 0 !important;
}

.landing-nav.landing-nav-wide .landing-actions {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    min-width: 0 !important;
}

.landing-nav.landing-nav-wide .landing-actions .btn,
.landing-nav.landing-nav-wide .landing-link {
    white-space: nowrap !important;
}

.landing-nav.landing-nav-wide .landing-title {
    display: block !important;
    font-size: clamp(1.18rem, 1.6vw, 1.45rem) !important;
}

.landing-nav.landing-nav-wide .landing-subtitle {
    display: block !important;
    max-width: 270px !important;
}

.landing-hero:has(.landing-home-grid) .landing-nav .btn-outline-light {
    color: #26313d !important;
    border-color: rgba(38, 49, 61, .38) !important;
    background: rgba(255, 255, 255, .28) !important;
}

.landing-hero:has(.landing-home-grid) .landing-nav .btn-outline-light:hover {
    color: #111827 !important;
    background: rgba(255, 255, 255, .58) !important;
    border-color: rgba(38, 49, 61, .55) !important;
}

@media (max-width: 1500px) {
    .landing-nav.landing-nav-wide {
        grid-template-columns: minmax(0, 1fr) max-content !important;
        row-gap: 14px !important;
    }

    .landing-nav.landing-nav-wide .landing-links {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        justify-self: center !important;
    }

    .landing-nav.landing-nav-wide .landing-actions {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: end !important;
    }

    .landing-nav.landing-nav-wide .landing-links,
    .landing-nav.landing-nav-wide .landing-actions {
        flex-wrap: wrap !important;
    }
}

.landing-nav-wide {
    margin-bottom: 28px;
}

.landing-hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 26px;
    align-items: stretch;
}

.landing-home-grid { grid-template-columns: minmax(0, 1fr) minmax(400px, 510px); gap: 48px; align-items: center; min-height: 510px; }
.landing-home-grid .landing-copy { max-width: 650px; }
@media (max-width: 900px) { .landing-home-grid { grid-template-columns: 1fr; min-height: 0; gap: 28px; } }

.landing-hero:has(.landing-home-grid) .landing-nav { background: rgba(255,255,255,.74); border-color: rgba(139,93,3,.16); box-shadow: 0 14px 35px rgba(109,75,11,.12); }
.landing-hero:has(.landing-home-grid) .landing-brand, .landing-hero:has(.landing-home-grid) .landing-title, .landing-hero:has(.landing-home-grid) .landing-link { color: #26313d; }
.landing-hero:has(.landing-home-grid) .landing-subtitle { color: #66717c; }.landing-hero:has(.landing-home-grid) .landing-link.is-active { color: #8c5b00; border-bottom-color: #f5b400; }
.landing-home-grid .landing-copy h1 { color: #202a32; text-shadow: 0 1px 0 rgba(255,255,255,.5); }.landing-home-grid .landing-copy p { color: #3d4a55; font-weight: 600; }.landing-home-grid .landing-industry-tag { border-color: rgba(140,91,0,.28); background: rgba(255,255,255,.55); color: #765000; }.landing-home-grid .landing-industry-tag i { color: #e3a400; }
.landing-home-grid .landing-metrics > div { color: #26313d; background: rgba(255,255,255,.55); border-color: rgba(126,91,17,.18); }.landing-home-grid .metric-label { color: #5d6670; }
.landing-hero:has(.landing-home-grid) .landing-card .text-muted, .landing-hero:has(.landing-home-grid) .landing-card .form-text { color: #65717b !important; }.landing-hero:has(.landing-home-grid) .landing-card .form-label { color: #1d2c3e; }

.landing-copy h1,
.landing-inner-content h1 {
    margin: 0 0 14px;
    font-family: 'Urbanist', sans-serif;
    font-size: clamp(2.05rem, 3.4vw, 3.38rem);
    font-weight: 800;
    line-height: 1.06;
}

.landing-copy p,
.landing-inner-content p {
    margin: 0;
    max-width: 72ch;
    color: rgba(237, 243, 255, 0.86);
    font-size: 1.06rem;
    line-height: 1.65;
}

.landing-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 24px;
}

.landing-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px;
    margin-top: 26px;
    max-width: 560px;
}

.landing-metrics > div {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.metric-value {
    font-family: 'Urbanist', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
}

.metric-label {
    margin-top: 3px;
    color: rgba(236, 243, 255, 0.78);
    font-size: 0.77rem;
}

.landing-card,
.register-card,
.about-card,
.contact-card,
.service-card,
.feature-card {
    border-radius: 22px;
    background: #ffffff;
    color: #10223a;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 44px rgba(10, 20, 40, 0.14);
}

.landing-card {
    padding: 26px;
}

.landing-hero .landing-card { background: rgba(9, 28, 56, .58); color: #fff; border: 1px solid rgba(255,255,255,.28); box-shadow: 0 22px 48px rgba(2, 10, 26, .32); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.landing-hero .landing-card .text-muted, .landing-hero .landing-card .form-text { color: rgba(234, 243, 255, .78) !important; }
.landing-hero .landing-card .form-label { color: #fff; font-weight: 600; }
.landing-hero .landing-card .form-control { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.32); }
.landing-hero .landing-card .form-control::placeholder { color: rgba(255,255,255,.65); }
.landing-hero .landing-card .form-control:focus { color: #fff; background: rgba(255,255,255,.18); border-color: #8fd8ff; box-shadow: 0 0 0 .2rem rgba(93, 188, 255, .2); }
.landing-hero .landing-card a { color: #9cddff; }

.landing-home-grid .landing-card {
    background: rgba(255, 255, 255, .80) !important;
    color: #16253b !important;
}

.landing-home-grid .landing-card h4,
.landing-home-grid .landing-card .form-label {
    color: #172033 !important;
}

.landing-home-grid .landing-card .text-muted,
.landing-home-grid .landing-card .form-text {
    color: #586679 !important;
}

.landing-home-grid .landing-card .form-control {
    color: #111827 !important;
    background: rgba(255, 255, 255, .96) !important;
    border-color: #cbd7e8 !important;
    box-shadow: none !important;
}

.landing-home-grid .landing-card .form-control::placeholder {
    color: #8a96a8 !important;
    opacity: 1 !important;
}

.landing-home-grid .landing-card .form-control:focus {
    color: #111827 !important;
    background: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 .22rem rgba(37, 99, 235, .16) !important;
}

.landing-home-grid .landing-card a:not(.btn) {
    color: #0b5ed7 !important;
    font-weight: 600;
}

.landing-hero .landing-card a.btn.btn-success,
.landing-home-grid .landing-card a.btn.btn-success {
    color: #ffffff !important;
    background: #15803d !important;
    border-color: #15803d !important;
    font-weight: 800;
}

.landing-hero .landing-card a.btn.btn-success:hover,
.landing-home-grid .landing-card a.btn.btn-success:hover {
    color: #ffffff !important;
    background: #166534 !important;
    border-color: #166534 !important;
}

.landing-card-header h4 {
    margin-bottom: 8px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
}

.landing-card .form-control {
    border-radius: 12px;
    border-color: #d6e0f0;
    min-height: 44px;
}

.landing-card .btn-primary,
.register-card .btn-primary {
    min-height: 44px;
    border-radius: 12px;
    font-weight: 700;
}

.landing-hero-inner {
    padding-bottom: 56px;
}

.landing-inner-content {
    max-width: 760px;
}

.landing-breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(237, 243, 255, 0.72);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.landing-breadcrumb a {
    color: rgba(237, 243, 255, 0.9);
    text-decoration: none;
}

.landing-section {
    position: relative;
    padding: 78px 0;
    background: linear-gradient(180deg, #eef3fb 0%, #f8fbff 100%);
    color: #0f2138;
}

.landing-section.alt {
    background:
        radial-gradient(760px 260px at 15% -8%, rgba(255, 255, 255, 0.22), transparent 65%),
        linear-gradient(130deg, color-mix(in srgb, var(--landing-dark) 86%, #020617 14%), color-mix(in srgb, var(--landing-primary) 72%, #0f172a 28%));
    color: #eff5ff;
}

.blog-hero {
    min-height: auto;
}

.blog-heading {
    max-width: 980px;
}

.blog-topic {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(251, 191, 36, .92);
    color: #332100;
    font-size: .82rem;
    font-weight: 800;
}

.blog-demo-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.blog-section {
    background: #f8fafc;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.blog-card {
    overflow: hidden;
    border: 1px solid #dfe7f2;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.blog-card-image {
    display: block;
    background: #0b1728;
}

.blog-card-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-card-body {
    padding: 20px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.blog-meta span,
.blog-keywords span {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: .75rem;
    font-weight: 800;
}

.blog-card h3 {
    margin: 0 0 10px;
    font-family: 'Urbanist', sans-serif;
    font-size: 1.16rem;
    line-height: 1.25;
}

.blog-card h3 a {
    color: #102033;
    text-decoration: none;
}

.blog-card p {
    margin: 0 0 16px;
    color: #5b6678;
    line-height: 1.6;
}

.blog-card-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #e7edf6;
    padding-top: 14px;
}

.blog-card-actions a,
.blog-article a {
    color: #1d4ed8;
    font-weight: 800;
    text-decoration: none;
}

.blog-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.blog-article,
.blog-side-card {
    border: 1px solid #dfe7f2;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

.blog-article {
    padding: clamp(22px, 3vw, 38px);
}

.blog-featured-image {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
}

.blog-lead {
    color: #263447;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.7;
}

.blog-article h2 {
    margin: 28px 0 12px;
    color: #102033;
    font-family: 'Urbanist', sans-serif;
    font-size: 1.55rem;
}

.blog-article p,
.blog-checklist {
    color: #4b5870;
    line-height: 1.78;
}

.blog-checklist {
    display: grid;
    gap: 10px;
    padding-left: 20px;
}

.blog-cta-panel {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: 28px 0;
    padding: 22px;
    border-radius: 12px;
    background: #0f2a45;
    color: #ffffff;
}

.blog-cta-panel h3 {
    margin: 0 0 6px;
}

.blog-cta-panel p {
    margin: 0;
    color: #dbeafe;
}

.blog-sidebar {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 18px;
}

.blog-side-card {
    padding: 18px;
}

.blog-side-card h3 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.blog-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-related-list {
    display: grid;
    gap: 12px;
}

.blog-related-list a {
    color: #102033;
    font-weight: 800;
    text-decoration: none;
}

.blog-side-demo {
    background: #fff7df;
    border-color: #facc15;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.module-card {
    padding: 22px;
    border: 1px solid #dfe7f2;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

.module-card i {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: #eef4ff;
    color: #2563eb;
    font-size: 1.24rem;
}

.module-card h3 {
    margin: 0 0 10px;
    font-family: 'Urbanist', sans-serif;
    font-size: 1.2rem;
}

.module-card h3 a,
.module-card > a {
    color: #1d4ed8;
    font-weight: 800;
    text-decoration: none;
}

.module-card p {
    color: #536174;
    line-height: 1.65;
}

.section-head {
    margin-bottom: 34px;
}

.section-head h2 {
    font-family: 'Urbanist', sans-serif;
    font-size: clamp(1.7rem, 2.5vw, 2.35rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
}

.section-head p {
    margin: 0;
    color: #4c5d73;
    max-width: 70ch;
}

.landing-section.alt .section-head p {
    color: rgba(239, 245, 255, 0.82);
}

.section-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: color-mix(in srgb, var(--landing-accent) 84%, #fff 16%);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.feature-grid,
.pricing-grid,
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.feature-card,
.service-card {
    padding: 22px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover,
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(10, 20, 40, 0.18);
}

.feature-card i {
    color: var(--landing-primary);
    font-size: 1.4rem;
}

.feature-card h5,
.service-card h5 {
    margin: 12px 0 6px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
}

.feature-card p,
.service-card p {
    margin: 0;
    color: #5a6b84;
}

.service-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--landing-primary);
    background: color-mix(in srgb, var(--landing-primary) 14%, #ffffff 86%);
}

.pricing-card {
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(7, 17, 33, 0.26);
    backdrop-filter: blur(4px);
}

.pricing-card.highlight {
    background: linear-gradient(180deg, #ffffff 0%, #f0f6ff 100%);
    color: #0f2138;
    border-color: transparent;
    box-shadow: 0 20px 48px rgba(6, 20, 43, 0.2);
}

.plan-name {
    color: rgba(239, 245, 255, 0.86);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.pricing-card.highlight .plan-name {
    color: #1e3a63;
}

.plan-price {
    margin-top: 8px;
    font-family: 'Urbanist', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
}

.pricing-card ul {
    margin: 16px 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.pricing-card li {
    position: relative;
    padding-left: 18px;
    color: rgba(239, 245, 255, 0.9);
}

.pricing-card li::before {
    content: "\2022";
    position: absolute;
    left: 4px;
    color: color-mix(in srgb, var(--landing-accent) 72%, #fff 28%);
}

.pricing-card.highlight li {
    color: #364d69;
}

.pricing-note {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(6, 20, 43, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-panel {
    border-radius: 22px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(130deg, var(--landing-dark), color-mix(in srgb, var(--landing-primary) 78%, #0b1220 22%));
    color: #f3f7ff;
    box-shadow: 0 20px 42px rgba(5, 16, 34, 0.23);
}

.cta-panel h3 {
    margin-bottom: 8px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 800;
}

.cta-panel p {
    margin: 0;
    color: rgba(243, 247, 255, 0.82);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 24px;
    align-items: start;
}

.about-copy h2 {
    margin-bottom: 12px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 800;
}

.about-copy p {
    color: #4f6178;
}

.about-points {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.about-point {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #2b3f58;
}

.about-point i {
    color: var(--landing-primary);
    margin-top: 3px;
}

.about-card {
    padding: 24px;
}

.about-card-header h4 {
    margin: 10px 0 6px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
}

.about-metrics {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.about-cta {
    margin-top: 16px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 20px;
}

.contact-card {
    padding: 24px;
}

.contact-list {
    margin-top: 16px;
    display: grid;
    gap: 14px;
}

.contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-item i {
    color: var(--landing-primary);
    font-size: 1.12rem;
}

.contact-item a {
    color: #1d4ed8;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-label {
    color: #73849b;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contact-actions {
    margin-top: 16px;
    display: grid;
    gap: 9px;
}

.contact-panel {
    background: linear-gradient(140deg, var(--landing-dark), color-mix(in srgb, var(--landing-primary) 72%, #0b1220 28%));
    color: #eef4ff;
}

.contact-panel p {
    color: rgba(238, 244, 255, 0.82);
}

.contact-panel-grid {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.contact-highlight {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
}

.register-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 20px;
}

.register-card {
    padding: 24px;
}

.register-card h4 {
    font-family: 'Urbanist', sans-serif;
    font-weight: 800;
}

.register-card .form-control {
    border-radius: 12px;
    border-color: #d5dfed;
    min-height: 44px;
}

.register-lock-alert {
    color: #7a4b00;
    background-color: #fff8e1;
    border-color: #f1c75b;
}

.register-panel {
    border-radius: 22px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #edf3ff;
    background:
        radial-gradient(680px 220px at -5% -20%, rgba(255, 255, 255, 0.2), transparent 75%),
        linear-gradient(140deg, var(--landing-darker), color-mix(in srgb, var(--landing-primary) 68%, #0f172a 32%));
    box-shadow: 0 20px 42px rgba(5, 16, 34, 0.26);
}

.register-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 11px;
    border-radius: 999px;
    color: #12213a;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: color-mix(in srgb, var(--landing-accent) 80%, #ffffff 20%);
}

.register-list {
    margin-top: 16px;
    display: grid;
    gap: 10px;
    color: rgba(238, 244, 255, 0.92);
}

.register-list i {
    color: color-mix(in srgb, var(--landing-accent) 80%, #ffffff 20%);
    margin-right: 8px;
}

.register-success {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 16px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(22, 163, 74, 0.24);
    background: linear-gradient(180deg, #eafff4 0%, #e5fff0 100%);
    color: #113726;
}

.register-details {
    margin-top: 12px;
    display: grid;
    gap: 5px;
}

.register-actions {
    display: grid;
    align-content: center;
    gap: 10px;
}

.landing-footer {
    padding: 56px 5vw 30px;
    background:
        radial-gradient(620px 200px at 12% -15%, rgba(255, 255, 255, 0.16), transparent 70%),
        linear-gradient(180deg, color-mix(in srgb, var(--landing-mid) 88%, #0b1220 12%), var(--landing-darker));
    color: #eff5ff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.footer-card {
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 18, 33, 0.5);
}

.footer-brand {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 7px;
    color: rgba(241, 247, 255, .9);
    text-decoration: none;
    font-size: .82rem;
}

.footer-social-links a:hover {
    color: #fff;
    border-color: rgba(255, 196, 65, .55);
    background: rgba(255, 255, 255, .08);
}

.footer-brand-name {
    font-family: 'Urbanist', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.footer-brand-tagline,
.footer-text {
    color: rgba(239, 245, 255, 0.76);
    font-size: 0.9rem;
}

.footer-title {
    margin-bottom: 12px;
    color: color-mix(in srgb, var(--landing-accent) 80%, #ffffff 20%);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer-list,
.footer-links {
    display: grid;
    gap: 10px;
}

.footer-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: rgba(239, 245, 255, 0.88);
}

.footer-item i {
    color: color-mix(in srgb, var(--landing-accent) 80%, #ffffff 20%);
}

.footer-item a,
.footer-links a {
    color: rgba(239, 245, 255, 0.92);
    text-decoration: none;
}

.footer-item a:hover,
.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    color: rgba(239, 245, 255, 0.66);
    font-size: 0.82rem;
}

@media (max-width: 1099px) {
    .landing-nav {
        align-items: flex-start;
        flex-direction: column;
    }
    .landing-links,
    .landing-actions {
        width: 100%;
    }
    .landing-hero-content,
    .about-grid,
    .contact-grid,
    .register-grid {
        grid-template-columns: 1fr;
    }
    .register-success {
        grid-template-columns: 1fr;
    }
    .blog-grid,
    .blog-article-layout,
    .module-grid {
        grid-template-columns: 1fr;
    }
    .blog-sidebar {
        position: static;
    }
    .blog-cta-panel {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .landing-hero {
        padding: 12px 4vw 52px;
    }
    .landing-title {
        font-size: 1.4rem;
    }
    .landing-links {
        gap: 10px;
    }
    .landing-actions .btn {
        flex: 0 0 auto;
    }
    .landing-subtitle {
        max-width: 240px;
        font-size: 0.78rem;
    }
    .landing-section {
        padding: 58px 0;
    }
    .landing-metrics {
        grid-template-columns: 1fr 1fr;
    }
    .landing-cta .btn {
        width: 100%;
    }
    .landing-card,
    .register-card,
    .register-panel,
    .about-card,
    .contact-card {
        padding: 18px;
    }
    .cta-panel {
        flex-direction: column;
        align-items: flex-start;
    }
    .about-metrics {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .blog-card-body,
    .blog-side-card {
        padding: 16px;
    }
    .blog-featured-image {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 860px) {
    html,
    body,
    .landing-body {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        overflow-x: clip !important;
    }

    .landing-hero {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        overflow-x: clip !important;
    }

    .landing-hero-content,
    .landing-home-grid,
    .landing-copy,
    .landing-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin-left: auto !important;
        margin-right: auto !important;
        transform: none !important;
    }

    .landing-copy h1,
    .landing-copy p {
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
    }

    .landing-nav.landing-nav-wide {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin: 10px auto 22px !important;
        padding: 12px !important;
        border-radius: 16px !important;
        overflow: visible !important;
    }

    .landing-nav.landing-nav-wide .landing-brand {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        gap: 10px !important;
    }

    .landing-nav.landing-nav-wide .landing-logo {
        width: 40px !important;
        height: 40px !important;
        border-radius: 12px !important;
    }

    .landing-nav.landing-nav-wide .landing-title {
        font-size: 1.12rem !important;
        line-height: 1.1 !important;
    }

    .landing-nav.landing-nav-wide .landing-subtitle {
        max-width: none !important;
        font-size: .74rem !important;
    }

    .landing-nav.landing-nav-wide .landing-links,
    .landing-nav.landing-nav-wide .landing-actions {
        width: 100% !important;
        overflow: visible !important;
    }

    .landing-nav.landing-nav-wide .landing-links {
        grid-column: 1 !important;
        grid-row: 2 !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        column-gap: 10px !important;
        row-gap: 4px !important;
        padding: 2px 0 4px !important;
    }

    .landing-nav.landing-nav-wide .landing-actions {
        grid-column: 1 !important;
        grid-row: 3 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding-bottom: 2px !important;
    }

    .landing-nav.landing-nav-wide .landing-link,
    .landing-nav.landing-nav-wide .landing-actions .btn {
        width: 100% !important;
        min-width: 0 !important;
        white-space: nowrap !important;
    }

    .landing-nav.landing-nav-wide .landing-link {
        text-align: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .landing-nav.landing-nav-wide .landing-actions .btn {
        min-height: 34px !important;
        padding: 7px 8px !important;
        font-size: .8rem !important;
    }
}

@media (max-width: 420px) {
    .landing-nav.landing-nav-wide .landing-subtitle {
        max-width: 250px !important;
    }
}

@media (max-width: 600px) {
    .landing-nav.landing-nav-wide,
    .landing-hero-content,
    .landing-home-grid,
    .landing-copy,
    .landing-card {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Super admin */
.super-body {
    background: #f1f5f9;
    font-family: 'Space Grotesk', sans-serif;
}

.super-shell {
    display: flex;
    min-height: 100vh;
}

.super-sidebar {
    width: 240px;
    background: linear-gradient(180deg, #111827, #1f2937);
    color: #e2e8f0;
    padding: 24px 18px;
}

.super-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

.super-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    display: grid;
    place-items: center;
    font-weight: 800;
}

.super-title {
    font-weight: 700;
}

.super-subtitle {
    font-size: 12px;
    color: rgba(226, 232, 240, 0.7);
}

.super-sidebar .nav-link {
    color: #e2e8f0;
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 6px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.super-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.super-main {
    flex: 1;
    padding: 28px;
}

.super-header {
    margin-bottom: 18px;
}

.super-auth-body {
    background: linear-gradient(135deg, #0b2a4a, #1d4ed8);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
}

.super-auth-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    width: 360px;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
}

/* Items module */
.items-shell {
    background: #f8fafc;
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.items-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 2px solid #e2e8f0;
    background: #fff;
}

.items-tabs a {
    text-align: center;
    padding: 12px 0;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.items-tabs a.active {
    color: #1f2937;
    border-bottom-color: var(--primary);
    background: #f8fafc;
}

.items-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 540px;
}

.items-sidebar {
    border-right: 1px solid #e2e8f0;
    background: #fff;
    padding: 16px;
}

.items-sidebar-header .input-group-text {
    background: #f1f5f9;
}

.items-sidebar-list {
    margin-top: 16px;
    display: grid;
    gap: 6px;
    max-height: 520px;
    overflow: auto;
}

.sidebar-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 8px;
}

.sidebar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
    font-size: 13px;
}

.sidebar-item.active {
    background: #e0f2fe;
    color: #0f172a;
    border-left: 3px solid var(--primary);
}

.items-main {
    padding: 18px;
}

.items-detail-card,
.items-transaction-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    margin-bottom: 16px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    font-size: 13px;
    color: #475569;
}

.item-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-weight: 600;
}

.item-form-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.item-form-tabs button {
    background: none;
    border: none;
    padding: 8px 0;
    font-weight: 600;
    color: #94a3b8;
    border-bottom: 2px solid transparent;
}

.item-form-tabs button.active {
    color: #ef4444;
    border-bottom-color: #ef4444;
}

#add-item-modal .modal-content,
#edit-item-modal .modal-content {
    max-height: calc(100vh - 2rem);
}

#add-item-modal .modal-body,
#edit-item-modal .modal-body {
    overflow-y: auto;
    max-height: calc(100vh - 210px);
}

@media (max-width: 991px) {
    .items-body {
        grid-template-columns: 1fr;
    }
    .items-sidebar {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    #add-item-modal .modal-body,
    #edit-item-modal .modal-body {
        max-height: calc(100vh - 180px);
    }
}

/* Invoice create */
.invoice-create {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 20px;
}

.invoice-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.invoice-section {
    padding: 16px 0;
    border-top: 1px solid #e2e8f0;
}

.invoice-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.section-title {
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.invoice-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.invoice-items-summary {
    display: grid;
    gap: 10px;
}

.invoice-item-card {
    border: 1px dashed #93c5fd;
    border-radius: 12px;
    padding: 12px 14px;
    background: #f8fbff;
}

.invoice-item-card .item-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.invoice-item-card .item-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.invoice-item-card .item-metrics strong {
    display: block;
    color: #0f172a;
    font-weight: 600;
}

.invoice-items-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: #eef6ff;
    margin-top: 10px;
    font-weight: 600;
}

.invoice-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ecfdf3;
    border-radius: 14px;
    padding: 14px 16px;
}

.invoice-preview {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.invoice-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.preview-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 12px;
}

.preview-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.preview-table th,
.preview-table td {
    font-size: 12px;
}

.preview-totals {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #cbd5f5;
    display: grid;
    gap: 6px;
    font-size: 13px;
}

.preview-totals .total {
    font-weight: 700;
    color: var(--primary);
}

@media (max-width: 991px) {
    .invoice-create {
        grid-template-columns: 1fr;
    }
    .invoice-preview {
        position: static;
    }
}

@media (max-width: 991px) {
    .super-shell {
        flex-direction: column;
    }
    .super-sidebar {
        width: 100%;
    }
}

/* CRM */
.crm-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.crm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.crm-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.crm-subtitle {
    margin: 6px 0 0 0;
    color: var(--muted);
}

.crm-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.crm-view-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border-radius: 999px;
    padding: 4px;
    box-shadow: var(--shadow);
}

.crm-view-btn {
    border: none;
    background: transparent;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.crm-view-btn.active {
    background: var(--primary);
    color: #fff;
}

.crm-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}

.crm-filters {
    background: var(--card);
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 92px;
    align-self: start;
}

.crm-filter-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 12px;
}

.crm-filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crm-filter-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: var(--text);
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
}

.crm-filter-pill span {
    background: #e2e8f0;
    color: #0f172a;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
}

.crm-filter-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.crm-filter-pill.active span {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.crm-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.crm-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.crm-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 220px;
}

.crm-search input {
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
}

.crm-search-reset {
    color: var(--muted);
    text-decoration: none;
}

.crm-toolbar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.crm-table {
    display: grid;
    gap: 10px;
    background: #fff;
    padding: 10px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.crm-table-head {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr 1.3fr 1fr 1fr auto;
    gap: 12px;
    padding: 12px 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
}

.crm-table-compact .crm-table-head {
    grid-template-columns: 2fr 1fr 1.1fr 1fr 1.3fr 1fr;
}

.crm-row {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr 1.3fr 1fr 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.crm-table-compact .crm-row {
    grid-template-columns: 2fr 1fr 1.1fr 1fr 1.3fr 1fr;
}

.crm-row:hover {
    background: #fff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.crm-cell {
    font-size: 13px;
    color: var(--text);
}

.crm-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crm-avatar {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(29, 78, 216, 0.12);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-weight: 700;
}

.crm-name {
    font-weight: 600;
}

.crm-sub {
    font-size: 12px;
    color: var(--muted);
}

.crm-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
}

.status-new { background: #e0f2fe; color: #0369a1; }
.status-contacted { background: #fef3c7; color: #b45309; }
.status-qualified { background: #dcfce7; color: #166534; }
.status-lost { background: #fee2e2; color: #b91c1c; }

.crm-chip {
    background: #e2e8f0;
    color: #0f172a;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.crm-board {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 300px);
    gap: 16px;
    overflow-x: auto;
    padding: 4px 4px 14px;
    scroll-snap-type: x proximity;
    scrollbar-gutter: stable;
}

.crm-board::-webkit-scrollbar {
    height: 10px;
}

.crm-board::-webkit-scrollbar-track {
    background: #e8eef6;
    border-radius: 999px;
}

.crm-board::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 999px;
}

.crm-column {
    background: #fff;
    border: 1px solid #dbe5f0;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    min-height: 480px;
    max-height: calc(100vh - 260px);
    min-width: 260px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}

.crm-column-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    min-height: 50px;
    padding: 13px 14px;
    border-bottom: 1px solid #e7edf5;
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 1;
}

.crm-count {
    background: #e2e8f0;
    color: #0f172a;
    border-radius: 999px;
    font-size: 11px;
    padding: 2px 8px;
}

.crm-column-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 12px;
}

.crm-column-body::-webkit-scrollbar {
    width: 8px;
}

.crm-column-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.crm-card {
    background: #fff;
    border: 1px solid #dbe5f0;
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 9px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.crm-card:hover {
    border-color: #b9c8da;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.crm-card-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.crm-card-top .crm-avatar {
    flex: 0 0 auto;
}

.crm-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.crm-card-info {
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    overflow: hidden;
}

.crm-card-info span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crm-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.crm-card-actions .btn,
.crm-card-actions form,
.crm-card-actions form .btn {
    width: 100%;
}

.crm-card-actions .btn[data-bs-target="#lead-modal"] {
    grid-column: 1 / -1;
}

.crm-empty {
    min-height: 120px;
    display: grid;
    place-items: center;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    background: #f8fafc;
}

.crm-view {
    display: none;
}

.crm-view.active {
    display: block;
}

.crm-pagination {
    display: flex;
    justify-content: flex-end;
}

.lead-modal-compact {
    max-width: 640px;
}

.lead-modal-compact .modal-content {
    border-radius: 12px;
}

.lead-modal-compact .modal-header,
.lead-modal-compact .modal-footer {
    padding: 10px 14px;
}

.lead-modal-compact .modal-title {
    font-size: 18px;
}

.lead-modal-compact .modal-body {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding: 12px 14px;
}

.lead-modal-compact .form-label {
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 700;
}

.lead-modal-compact .form-control,
.lead-modal-compact .form-select {
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 14px;
}

.lead-modal-compact textarea.form-control {
    min-height: 58px;
}

.lead-modal-compact .btn {
    min-height: 34px;
    padding: 6px 12px;
}

@media (max-width: 1100px) {
    .crm-shell {
        grid-template-columns: 1fr;
    }
    .crm-filters {
        position: static;
    }
    .crm-filter-group {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .crm-header {
        align-items: flex-start;
    }

    .crm-view-switch {
        width: 100%;
        justify-content: space-between;
    }

    .crm-table {
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .crm-table-head {
        display: none;
    }

    .crm-row {
        grid-template-columns: 1fr;
        padding: 14px;
        background: #fff;
    }

    .crm-table-compact .crm-row {
        grid-template-columns: 1fr;
    }

    .crm-cell {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .crm-cell::before {
        content: attr(data-label);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--muted);
    }

    .crm-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .crm-main::before {
        display: none;
        content: '';
    }

    .crm-actions {
        justify-content: flex-start;
    }

    .crm-filters {
        padding: 12px;
    }

    .crm-filter-group {
        flex-direction: column;
    }

    .crm-board {
        grid-auto-columns: minmax(280px, 86vw);
    }
}

/* UI layouts */
body[data-ui="sidebar-compact"] .app-sidebar {
    width: 210px;
    padding: 18px 12px;
}

body[data-ui="sidebar-compact"] .brand-title,
body[data-ui="sidebar-compact"] .brand-subtitle {
    display: none;
}

body[data-ui="sidebar-compact"] .brand-icon {
    width: 36px;
    height: 36px;
}

body[data-ui="sidebar-compact"] .app-sidebar .nav-link {
    font-size: 12px;
    gap: 8px;
    padding: 8px 10px;
}

body[data-ui="sidebar-glass"] .app-sidebar {
    background: linear-gradient(180deg, rgba(11, 42, 74, 0.9), rgba(18, 59, 102, 0.9));
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

body[data-ui="sidebar-glass"] .app-topbar,
body[data-ui="sidebar-glass"] .app-topnav {
    background: linear-gradient(90deg, rgba(11, 42, 74, 0.92), rgba(28, 74, 130, 0.92));
    backdrop-filter: blur(10px);
}

/* UI5 shell: a flat, light application shell with top navigation. */
body[data-ui="ui5"] {
    background: #f5f7fa;
}

body[data-ui="ui5"] .app-shell,
body[data-ui="ui5"] .app-main {
    background: #f5f7fa;
}

body[data-ui="ui5"] .app-topnav {
    background: #fff;
    border-bottom: 1px solid #d9e2ec;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.08);
    color: #183b56;
}

body[data-ui="ui5"] .topnav-brand,
body[data-ui="ui5"] .topnav-item {
    color: #183b56;
}

body[data-ui="ui5"] .topnav-brand .brand-icon {
    background: #0a6ed1;
    color: #fff;
}

body[data-ui="ui5"] .topnav-brand .brand-subtitle {
    color: #64748b;
}

body[data-ui="ui5"] .topnav-item:hover,
body[data-ui="ui5"] .topnav-item.active {
    background: #e7f3ff;
    color: #0a6ed1;
}

body[data-ui="ui5"] .topnav-dropdown .dropdown-menu {
    background: #fff;
    border: 1px solid #d9e2ec;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

body[data-ui="ui5"] .topnav-dropdown .dropdown-item {
    color: #183b56;
}

body[data-ui="ui5"] .topnav-dropdown .dropdown-item:hover {
    background: #e7f3ff;
    color: #0a6ed1;
}

body[data-ui="ui5"] .card,
body[data-ui="ui5"] .page-header {
    border-radius: 8px;
    box-shadow: none;
}

/* Portal: blue-gradient navigation and elevated workspace cards. */
body[data-ui="portal"] .app-shell {
    background: linear-gradient(135deg, #eef6ff, #f8fbff);
}

body[data-ui="portal"] .app-sidebar {
    width: 264px;
    background: linear-gradient(180deg, #0755a6, #0f77c5 52%, #27a6d9);
    box-shadow: 8px 0 24px rgba(7, 85, 166, 0.18);
}

body[data-ui="portal"] .app-sidebar .nav-link,
body[data-ui="portal"] .sidebar-group-toggle {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.09);
}

body[data-ui="portal"] .app-sidebar .nav-link.active,
body[data-ui="portal"] .app-sidebar .nav-link:hover,
body[data-ui="portal"] .sidebar-group-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
}

body[data-ui="portal"] .app-topbar {
    background: linear-gradient(90deg, #0755a6, #178bd0);
}

body[data-ui="portal"] .card {
    border: 1px solid #d8e8f7;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(15, 75, 130, 0.1);
}

body[data-ui="portal"] .page-header {
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(15, 103, 180, 0.16);
}

/* Easy Workspace: large readable navigation and calmer work surfaces. */
body[data-ui="easy-workspace"] {
    --radius: 12px;
    --shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    background: #f4f7fb;
    font-size: 15px;
}

body[data-ui="easy-workspace"] .app-sidebar {
    width: 282px;
    padding: 22px 18px;
    background: #153e75;
    color: #eef6ff;
}

body[data-ui="easy-workspace"] .brand {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

body[data-ui="easy-workspace"] .brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f59e0b;
    color: #102a43;
}

body[data-ui="easy-workspace"] .brand-title {
    font-size: 19px;
}

body[data-ui="easy-workspace"] .brand-subtitle {
    color: rgba(238, 246, 255, 0.78);
}

body[data-ui="easy-workspace"] .sidebar-group-toggle,
body[data-ui="easy-workspace"] .app-sidebar .nav-link {
    min-height: 44px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

body[data-ui="easy-workspace"] .sidebar-group-toggle {
    background: rgba(255, 255, 255, 0.11);
}

body[data-ui="easy-workspace"] .app-sidebar .nav-link {
    margin-bottom: 7px;
    padding: 11px 13px;
}

body[data-ui="easy-workspace"] .app-sidebar .nav-link i {
    width: 22px;
    font-size: 18px;
    text-align: center;
}

body[data-ui="easy-workspace"] .app-sidebar .nav-link.active,
body[data-ui="easy-workspace"] .app-sidebar .nav-link:hover,
body[data-ui="easy-workspace"] .sidebar-group-toggle:hover {
    background: #ffffff;
    color: #153e75;
}

body[data-ui="easy-workspace"] .app-topbar {
    background: #ffffff;
    color: #102a43;
    border-bottom: 1px solid #d9e5f2;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

body[data-ui="easy-workspace"] main.container-fluid {
    padding: 28px !important;
}

body[data-ui="easy-workspace"] .card,
body[data-ui="easy-workspace"] .panel,
body[data-ui="easy-workspace"] .chart-card,
body[data-ui="easy-workspace"] .items-detail-card,
body[data-ui="easy-workspace"] .items-transaction-card {
    border: 1px solid #dbe7f3;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

body[data-ui="easy-workspace"] .page-header,
body[data-ui="easy-workspace"] .dashboard-header {
    border-radius: 14px;
    background: linear-gradient(135deg, #153e75, #2563eb);
    box-shadow: 0 14px 32px rgba(21, 62, 117, 0.16);
}

body[data-ui="easy-workspace"] .btn {
    min-height: 38px;
    border-radius: 9px;
    font-weight: 700;
}

body[data-ui="easy-workspace"] .btn-sm {
    min-height: 34px;
}

body[data-ui="easy-workspace"] .form-control,
body[data-ui="easy-workspace"] .form-select {
    min-height: 42px;
    border-radius: 9px;
    border-color: #cbd8e6;
}

body[data-ui="easy-workspace"] .table > :not(caption) > * > * {
    padding: 0.9rem 0.85rem;
}

body[data-ui="easy-workspace"] .badge {
    border-radius: 999px;
    padding: 0.42em 0.72em;
}

@media (max-width: 768px) {
    body[data-ui="sidebar-compact"] .app-sidebar {
        width: 100%;
    }

    body[data-ui="easy-workspace"] .app-sidebar {
        width: 100%;
    }

    body[data-ui="easy-workspace"] main.container-fluid {
        padding: 18px !important;
    }
}

/* --- Extra UI layouts (10 total) --- */
body[data-ui="ribbon-top"] .app-topbar {
    min-height: 88px;
    background: linear-gradient(90deg, #1d4ed8, #60a5fa);
    border-bottom: 2px solid #dbeafe;
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.18);
    padding: 14px 26px;
}

body[data-ui="split-pane"] .app-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0f172a, #1e293b);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}
body[data-ui="split-pane"] .app-main {
    background: linear-gradient(90deg, #f8fafc, #eef2f7);
}

body[data-ui="dock-compact"] .app-sidebar {
    width: 96px;
    padding: 16px 10px;
    align-items: center;
}
body[data-ui="dock-compact"] .brand-title,
body[data-ui="dock-compact"] .brand-subtitle {
    display: none;
}
body[data-ui="dock-compact"] .app-sidebar .nav-link {
    font-size: 11px;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 10px 8px;
}
body[data-ui="dock-compact"] .app-sidebar .nav-link i {
    font-size: 18px;
}

body[data-ui="card-workspace"] .app-sidebar {
    background: linear-gradient(180deg, #0b2a4a, #0f3d68);
}
body[data-ui="card-workspace"] main.container-fluid {
    max-width: 1200px;
}
body[data-ui="card-workspace"] .card {
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
}
body[data-ui="card-workspace"] .page-header {
    border-radius: 22px;
}

body[data-ui="console-dark"] {
    --bg: #0f172a;
    --card: #111827;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --primary: #38bdf8;
    --primary-2: #0ea5e9;
    color: var(--text);
    font-family: 'Space Grotesk', 'SFMono-Regular', Menlo, Consolas, monospace;
}
body[data-ui="console-dark"] .app-shell {
    background: #0b1220;
}
body[data-ui="console-dark"] .app-sidebar {
    background: linear-gradient(180deg, #0b1220, #111827);
    border-right: 1px solid rgba(56, 189, 248, 0.15);
}
body[data-ui="console-dark"] .app-topbar {
    background: linear-gradient(90deg, #0b1220, #0f172a);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}
body[data-ui="console-dark"] .card {
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.15);
    color: var(--text);
}
body[data-ui="console-dark"] .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

body[data-ui="panel-stack"] main.container-fluid {
    max-width: 1180px;
}
body[data-ui="panel-stack"] .card {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
body[data-ui="panel-stack"] .page-header {
    box-shadow: 0 12px 30px rgba(148, 163, 184, 0.22);
}

.app-shell.helpdesk-shell {
    display: block;
}

.app-shell.helpdesk-shell .app-main {
    margin-left: 0;
    width: 100%;
}

.helpdesk-workspace-main {
    padding: 0;
}

.helpdesk-workspace-main .alert {
    border-radius: 0;
    margin: 0;
}

.helpdesk-app {
    background: #f5f6f8;
    border: 0;
    color: #111827;
    margin: 0;
    min-height: 100vh;
}

.helpdesk-topbar,
.helpdesk-controlbar {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #d8dde5;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 14px 20px;
}

.helpdesk-brand {
    align-items: center;
    display: flex;
    font-size: 22px;
    font-weight: 600;
    gap: 10px;
    white-space: nowrap;
}

.helpdesk-logo {
    align-items: center;
    background: #11a99a;
    color: #fff;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.helpdesk-tabs {
    display: flex;
    flex: 1;
    gap: 26px;
}

.helpdesk-tabs a {
    color: #111827;
    font-size: 16px;
    text-decoration: none;
}

.helpdesk-tabs a.active,
.helpdesk-tabs a:hover {
    color: #008a8a;
}

.helpdesk-user-actions,
.helpdesk-view-switch {
    align-items: center;
    display: flex;
    gap: 8px;
}

.helpdesk-controlbar h2 {
    font-weight: 600;
}

.helpdesk-search {
    align-items: center;
    border: 1px solid #61a9bd;
    border-radius: 5px;
    display: flex;
    flex: 0 1 620px;
    height: 40px;
    overflow: hidden;
}

.helpdesk-search i {
    font-size: 20px;
    padding-left: 12px;
}

.helpdesk-search input {
    border: 0;
    flex: 1;
    height: 100%;
    outline: 0;
    padding: 0 12px;
}

.helpdesk-search button {
    align-self: stretch;
    background: #fff;
    border: 0;
    border-left: 1px solid #d8dde5;
    padding: 0 14px;
}

.helpdesk-view-switch a {
    align-items: center;
    background: #e5e7eb;
    color: #111827;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    text-decoration: none;
    width: 44px;
}

.helpdesk-view-switch a.active {
    background: #d7f7f5;
    border: 1px solid #0ea5a5;
}

.helpdesk-filter-panel {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #d8dde5;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(6, minmax(140px, 1fr)) repeat(5, auto);
    padding: 14px 20px;
}

.helpdesk-overview {
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid #d8dde5;
    display: grid;
    gap: 32px;
    grid-template-columns: 200px 1fr 240px 1fr;
    padding: 34px 30px;
}

.helpdesk-metric-labels {
    display: grid;
    grid-template-rows: 1fr repeat(3, 52px);
}

.helpdesk-metric-labels h3,
.helpdesk-section-title h3,
.helpdesk-team-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.helpdesk-metric-grid {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, 1fr);
}

.helpdesk-metric-grid.two {
    grid-template-columns: repeat(2, 1fr);
}

.helpdesk-metric {
    align-items: center;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 86px;
    text-align: center;
}

.helpdesk-metric.compact {
    min-height: 48px;
}

.helpdesk-metric strong {
    font-size: 26px;
    font-weight: 600;
}

.helpdesk-metric span {
    color: #111827;
    font-size: 16px;
}

.helpdesk-metric .bi-star-fill,
.kanban-stars .bi-star-fill {
    color: #f5c400;
}

.kanban-stars .bi-star {
    color: #cbd5e1;
}

.helpdesk-team-board {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    padding: 16px 20px 28px;
}

.helpdesk-team-card {
    background: #fff;
    border: 1px solid #d8dde5;
    border-left: 3px solid #8b5cf6;
    padding: 18px 20px 12px;
}

.team-email {
    color: #008a8a;
    margin-top: 8px;
}

.team-mainline {
    align-items: center;
    color: #008a8a;
    display: grid;
    gap: 16px;
    grid-template-columns: auto 1fr auto;
    margin: 20px 0 28px;
}

.btn-odoo {
    background: #7b4f6b;
    border-color: #7b4f6b;
    color: #fff;
    font-weight: 700;
}

.btn-odoo:hover {
    background: #6a415d;
    border-color: #6a415d;
    color: #fff;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.team-stats div {
    border-left: 1px solid #d8dde5;
    text-align: center;
}

.team-stats div:first-child {
    border-left: 0;
}

.team-stats strong {
    color: #008a8a;
    display: block;
}

.team-stats span {
    color: #667085;
}

.helpdesk-section-title {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
}

.helpdesk-section-title span {
    color: #667085;
}

.helpdesk-kanban {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(280px, 1fr));
    overflow-x: auto;
    padding: 0 20px 28px;
}

.kanban-column {
    min-width: 280px;
}

.kanban-column-head {
    align-items: start;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr auto;
    margin-bottom: 10px;
}

.kanban-column-head strong {
    display: block;
    font-size: 20px;
}

.kanban-progress {
    background: #d1d5db;
    height: 16px;
    margin-top: 10px;
    width: 100%;
}

.kanban-progress span {
    background: #28a745;
    display: block;
    height: 100%;
}

.kanban-cards {
    background: #f2f3f5;
    border-left: 1px solid #d8dde5;
    border-right: 1px solid #d8dde5;
    height: clamp(280px, calc(100vh - 470px), 560px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.kanban-cards::-webkit-scrollbar {
    width: 8px;
}

.kanban-cards::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #aab7c6;
}

.kanban-ticket {
    background: #fff;
    border-bottom: 1px solid #d8dde5;
    color: #111827;
    display: block;
    padding: 14px 10px;
    text-decoration: none;
}

.kanban-ticket:hover {
    background: #fbfdff;
}

.kanban-ticket-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.kanban-ticket-title span,
.kanban-customer {
    color: #111827;
    font-weight: 400;
}

.kanban-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}

.kanban-tags span {
    background: #ff9ea0;
    border-radius: 999px;
    color: #111827;
    font-size: 13px;
    padding: 2px 12px;
}

.kanban-tags span:nth-child(even) {
    background: #a7d5ff;
}

.kanban-foot {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.kanban-assignee {
    align-items: center;
    border-radius: 4px;
    color: #fff;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.kanban-assignee.is-normal {
    background: #14b8a6;
}

.kanban-assignee.is-ready {
    background: #10b981;
}

.kanban-assignee.is-blocked {
    background: #a855f7;
}

.kanban-empty,
.helpdesk-empty {
    color: #667085;
    padding: 18px;
}

.helpdesk-report-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    padding: 0 20px 24px;
}

.helpdesk-report-card,
.helpdesk-list {
    background: #fff;
    border: 1px solid #d8dde5;
}

.helpdesk-report-card {
    padding: 16px;
}

.helpdesk-report-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.report-row {
    align-items: center;
    border-top: 1px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.helpdesk-list {
    margin: 0 20px 24px;
    padding: 0 16px 16px;
}

@media (max-width: 1200px) {
    .helpdesk-overview {
        grid-template-columns: 180px 1fr;
    }
    .helpdesk-team-board,
    .helpdesk-report-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .helpdesk-topbar,
    .helpdesk-controlbar {
        align-items: stretch;
        flex-direction: column;
    }
    .helpdesk-tabs {
        gap: 14px;
        overflow-x: auto;
        width: 100%;
    }
    .helpdesk-search {
        flex: none;
        width: 100%;
    }
    .helpdesk-filter-panel,
    .helpdesk-overview {
        grid-template-columns: 1fr;
    }
    .helpdesk-metric-labels {
        display: block;
    }
    .helpdesk-metric-grid,
    .helpdesk-metric-grid.two {
        grid-template-columns: 1fr;
    }
    .team-stats {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 12px;
    }
}

/* Shri Computer dealer package header branding */
.landing-nav.landing-nav-wide .landing-logo.landing-logo-wide {
    width: 118px !important;
    height: 68px !important;
    padding: 2px !important;
    border-radius: 8px !important;
    background: rgba(255,255,255,.94) !important;
    border: 1px solid rgba(47,65,105,.12) !important;
    box-shadow: 0 8px 20px rgba(15,23,42,.08) !important;
    flex: 0 0 118px !important;
}
.landing-nav.landing-nav-wide .landing-logo.landing-logo-wide .landing-logo-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 6px !important;
}
.landing-nav.landing-nav-wide .landing-brand {
    max-width: 430px !important;
}
.landing-nav.landing-nav-wide .landing-brand-copy {
    min-width: 0 !important;
}
@media (max-width: 860px) {
    .landing-nav.landing-nav-wide .landing-logo.landing-logo-wide {
        width: 96px !important;
        height: 56px !important;
        flex-basis: 96px !important;
    }
    .landing-nav.landing-nav-wide .landing-brand {
        display: grid !important;
        grid-template-columns: 96px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 10px !important;
    }
}
