﻿: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);
}

* {
    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;
}

.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: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    display: grid;
    place-items: center;
    font-weight: 700;
    overflow: hidden;
}

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

.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;
    }
}

.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;
}

.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-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: 30px 5vw 78px;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 34px;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(120deg, rgba(12, 27, 45, 0.84), rgba(19, 45, 75, 0.72));
    box-shadow: 0 22px 48px rgba(2, 6, 23, 0.33);
    backdrop-filter: blur(14px);
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.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: cover;
}

.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-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-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-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;
}

.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-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-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;
    }
}

@media (max-width: 768px) {
    .landing-hero {
        padding: 18px 4vw 52px;
    }
    .landing-title {
        font-size: 1.4rem;
    }
    .landing-links {
        gap: 10px;
    }
    .landing-actions .btn {
        flex: 1 1 150px;
    }
    .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;
    }
}

/* 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(240px, 1fr);
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.crm-column {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 14px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crm-column-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
}

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

.crm-column-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crm-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
    display: grid;
    gap: 10px;
}

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

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

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

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

.crm-view {
    display: none;
}

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

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

@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: 80%;
    }
}

/* 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);
}

/* Portal (hero gradient + soft cards) */
body[data-ui="portal"] {
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 60%, #eef2ff 100%);
}

body[data-ui="portal"] .app-sidebar {
    background: linear-gradient(180deg, #0f4ab8, #0a2f7a);
    color: #e9f1ff;
    box-shadow: 10px 0 30px rgba(10, 47, 122, 0.25);
}

body[data-ui="portal"] .brand-title {
    color: #fff;
    font-weight: 700;
}

body[data-ui="portal"] .brand-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

body[data-ui="portal"] .brand-icon {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

body[data-ui="portal"] .app-sidebar .nav-link {
    background: transparent;
    border-radius: 14px;
    color: #e9f1ff;
    padding: 12px 14px;
    font-weight: 600;
}

body[data-ui="portal"] .app-sidebar .nav-link.active,
body[data-ui="portal"] .app-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

body[data-ui="portal"] .sidebar-group-toggle {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
}

body[data-ui="portal"] .app-topbar {
    background: #ffffff;
    color: #0f172a;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

body[data-ui="portal"] .search-bar,
body[data-ui="portal"] .tenant-pill,
body[data-ui="portal"] .user-chip {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #0f172a;
}

body[data-ui="portal"] .icon-btn {
    background: #e0e7ff;
    color: #0f4ab8;
    border: 1px solid #c7d2fe;
}

body[data-ui="portal"] .card {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

body[data-ui="portal"] .badge {
    border-radius: 10px;
    font-weight: 600;
}

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

.backup-hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    padding: 24px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 35%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 245, 255, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.backup-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.backup-hero-stats {
    display: grid;
    gap: 12px;
}

.backup-mini-card,
.backup-action-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.backup-mini-card {
    padding: 16px 18px;
}

.backup-mini-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.backup-mini-card strong {
    font-size: 16px;
    color: var(--text);
}

.backup-action-card {
    height: 100%;
    padding: 22px;
}

.backup-action-card h5 {
    margin: 14px 0 10px;
}

.backup-action-card p {
    color: var(--muted);
    min-height: 72px;
}

.backup-action-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 24px;
}

.backup-history-card {
    border-radius: 22px;
    overflow: hidden;
}

.super-main .btn-group > form {
    display: inline-block;
}

@media (max-width: 991px) {
    .backup-hero {
        grid-template-columns: 1fr;
    }
}

/* UI5-inspired shell */
body[data-ui="ui5"] {
    background: #f6f8fb;
}

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

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

body[data-ui="ui5"] .app-sidebar {
    background: #ffffff;
    color: #0f172a;
    border-right: 1px solid #e5e7eb;
    box-shadow: 4px 0 20px rgba(15, 23, 42, 0.06);
}

body[data-ui="ui5"] .brand-icon {
    background: #e8f1fb;
    color: #0a6ed1;
    border: 1px solid #d5e3f5;
}

body[data-ui="ui5"] .brand-title {
    color: #0f172a;
}

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

body[data-ui="ui5"] .app-sidebar .nav-link {
    color: #0f172a;
    background: transparent;
    border-radius: 12px;
    border: 1px solid transparent;
}

body[data-ui="ui5"] .app-sidebar .nav-link.active {
    background: #e8f1fb;
    border-color: #c9dcf6;
    color: #0a6ed1;
    box-shadow: 0 8px 20px rgba(10, 110, 209, 0.14);
}

body[data-ui="ui5"] .app-sidebar .nav-link:hover {
    background: #f3f6fb;
    color: #0a6ed1;
}

body[data-ui="ui5"] .sidebar-group-toggle {
    background: #f5f7fb;
    color: #0f172a;
    border: 1px solid #e5e7eb;
}

body[data-ui="ui5"] .sidebar-group-toggle:hover {
    background: #e8f1fb;
    color: #0a6ed1;
}

body[data-ui="ui5"] .sidebar-group-toggle .bi {
    color: #0a6ed1;
}

body[data-ui="ui5"] .app-topbar {
    background: #ffffff;
    color: #0f172a;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

body[data-ui="ui5"] .tenant-pill {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e5e7eb;
}

body[data-ui="ui5"] .search-bar {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #0f172a;
}

body[data-ui="ui5"] .search-bar i {
    color: #64748b;
}

body[data-ui="ui5"] .search-bar input {
    color: #0f172a;
}

body[data-ui="ui5"] .icon-btn {
    background: #e8f1fb;
    border: 1px solid #d5e3f5;
    color: #0a6ed1;
}

body[data-ui="ui5"] .icon-btn:hover {
    background: #dbeafe;
    border-color: #c9dcf6;
}

body[data-ui="ui5"] .user-chip {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #e5e7eb;
}

body[data-ui="ui5"] .notify-badge {
    background: #0a6ed1;
}

body[data-ui="ui5"] main.container-fluid {
    background: transparent;
}

body[data-ui="ui5"] .card {
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

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