:root {
    --canvas: #f8fafc;
    --canvas-subtle: #f1f5f9;
    --surface: #ffffff;
    --surface-card: #ffffff;
    --surface-elevated: #ffffff;
    --surface-subtle: #f8fafc;
    --surface-hover: #f8fafc;

    /* Ink & Typography */
    --ink: #0f172a;
    --ink-secondary: #334155;
    --muted: #64748b;
    --muted-light: #94a3b8;
    --faint: #cbd5e1;

    /* Dividers & Borders */
    --line: #e2e8f0;
    --line-subtle: #f1f5f9;
    --line-strong: #cbd5e1;

    /* Brand Primary - Electric Cyan & Sapphire */
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --primary-dark: #075985;
    --primary-soft: #e0f2fe;
    --primary-soft-hover: #bae6fd;
    --primary-glow: rgba(2, 132, 199, 0.22);
    --primary-gradient: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    --primary-accent: #38bdf8;

    /* Sidebar Executive Dark Obsidian / Navy */
    --sidebar: 260px;
    --sidebar-bg: #0b1120;
    --sidebar-bg-secondary: #080d1a;
    --sidebar-surface: rgba(255, 255, 255, 0.04);
    --sidebar-surface-hover: rgba(255, 255, 255, 0.08);
    --sidebar-border: rgba(255, 255, 255, 0.07);
    --sidebar-line: rgba(255, 255, 255, 0.06);
    --sidebar-text: #94a3b8;
    --sidebar-text-hover: #f8fafc;
    --sidebar-text-active: #38bdf8;
    --sidebar-active-bg: linear-gradient(90deg, rgba(14, 165, 233, 0.16) 0%, rgba(99, 102, 241, 0.08) 100%);
    --sidebar-active-border: rgba(56, 189, 248, 0.3);
    --sidebar-section: #475569;

    /* Semantic Jewels */
    --success: #10b981;
    --success-soft: #ecfdf5;
    --success-border: #a7f3d0;
    --success-text: #047857;

    --info: #0284c7;
    --info-soft: #f0f9ff;
    --info-border: #bae6fd;
    --info-text: #0369a1;

    --warning: #f59e0b;
    --warning-soft: #fffbeb;
    --warning-border: #fde68a;
    --warning-text: #b45309;

    --danger: #ef4444;
    --danger-soft: #fef2f2;
    --danger-border: #fecaca;
    --danger-text: #b91c1c;

    --purple: #8b5cf6;
    --purple-soft: #f5f3ff;
    --purple-border: #ddd6fe;
    --purple-text: #6d28d9;

    /* Geometry & Radii */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius: 12px;
    --radius-md: 14px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 9999px;

    /* Shadow Elevation */
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 16px 24px -4px rgba(15, 23, 42, 0.08), 0 6px 12px -6px rgba(15, 23, 42, 0.04);
    --shadow-glow: 0 0 20px -3px rgba(2, 132, 199, 0.3);

    /* Fonts */
    --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    --bs-primary: var(--primary);
    --bs-body-font-family: var(--font-sans);
}


*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

strong {
    font-weight: 600;
}

/* Scrollbar Enhancement */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.65);
}

/* Icons */
.bx {
    font-size: 19px;
    vertical-align: middle;
    line-height: 1;
}

.nowrap {
    white-space: nowrap;
}

.text-muted {
    color: var(--muted) !important;
}


.sidebar {
    width: var(--sidebar);
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-secondary) 100%);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Brand Header */
.brand {
    height: 78px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 40px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--sidebar-line);
}

.brand-logo {
    height: 46px;
    width: auto;
    max-width: 215px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
    flex-shrink: 0;
    background: transparent;
    border: none;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand:hover .brand-logo {
    transform: scale(1.03);
}

.login-badge-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(14, 165, 233, 0.35));
}

.brand-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 50%, #4f46e5 100%);
    border-radius: 11px;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
    position: relative;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: -1px;
}

.brand-symbol span {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 6px #38bdf8;
}

.brand-copy {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: #ffffff;
}

.brand-copy > span {
    display: block;
    color: #38bdf8;
    font-weight: 700;
    font-size: 9px;
    letter-spacing: 1.6px;
    margin-top: 3px;
    text-transform: uppercase;
}

/* Workspace Context Switcher Box */
.sidebar-context {
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--sidebar-border);
    background: var(--sidebar-surface);
    border-radius: 10px;
    margin: 14px 14px 10px;
    padding: 9px 12px;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.sidebar-context:hover {
    background: var(--sidebar-surface-hover);
    border-color: rgba(255, 255, 255, 0.12);
}

.context-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    color: #38bdf8;
    flex-shrink: 0;
}

.context-icon .bx {
    font-size: 17px;
}

.sidebar-context > div {
    flex: 1;
    min-width: 0;
}

.sidebar-context strong {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-context div > span {
    font-size: 11px;
    color: #64748b;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-context > .bx {
    font-size: 16px;
    color: #475569;
}

/* Navigation List */
.sidebar-nav {
    padding: 6px 12px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    flex: 1;
}

.nav-section {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--sidebar-section);
    margin: 20px 10px 8px;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 38px;
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--sidebar-text);
    position: relative;
    border: 1px solid transparent;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item > .bx {
    font-size: 18px;
    flex-shrink: 0;
    color: #64748b;
    transition: color 0.18s ease;
}

.nav-item > span:not(.nav-active-dot):not(.visually-hidden) {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item:hover:not(.is-pending) {
    background: var(--sidebar-surface-hover);
    color: var(--sidebar-text-hover);
    transform: translateX(2px);
}

.nav-item:hover:not(.is-pending) > .bx {
    color: #38bdf8;
}

.nav-item.is-active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-text-active);
    font-weight: 600;
    border-color: var(--sidebar-active-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 8px rgba(14, 165, 233, 0.12);
}

.nav-item.is-active > .bx {
    color: #38bdf8;
}

.nav-active-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    margin-right: 2px;
    box-shadow: 0 0 8px #38bdf8;
    flex-shrink: 0;
}

.nav-item.is-pending {
    color: #475569;
    cursor: default;
}

.pending-icon {
    font-size: 12px !important;
    opacity: 0.4;
}

/* Sidebar Footer */
.sidebar-bottom {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 18px;
    border-top: 1px solid var(--sidebar-line);
    background: rgba(0, 0, 0, 0.25);
}

.sidebar-bottom-icon {
    color: #38bdf8;
    font-size: 20px;
    display: grid;
    place-items: center;
}

.sidebar-bottom strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
}

.sidebar-bottom div > span {
    font-size: 11px;
    color: #64748b;
}

.workspace {
    margin-left: var(--sidebar);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--canvas);
}

.topbar {
    min-height: 64px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(213, 212, 212, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 40;
    transition: all 0.2s ease;
}

.topbar-start, .topbar-end {
    display: flex;
    align-items: center;
    gap: 14px;
}

.workspace-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.2px;
}

.workspace-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    text-transform: capitalize;
}

.topbar-divider {
    width: 1px;
    height: 20px;
    background: var(--line);
}

/* Environment Tag */
.environment-tag {
    font-size: 11.5px;
    font-weight: 600;
    color: #0369a1;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 6px;
}

.environment-tag > span {
    width: 6px;
    height: 6px;
    background: #0ea5e9;
    border-radius: 50%;
    box-shadow: 0 0 6px #0ea5e9;
}

/* User Avatar & Profile */
.user-avatar {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 13.5px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-summary {
    line-height: 1.35;
}

.user-summary strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.user-summary > span {
    display: block;
    font-size: 11px;
    color: var(--muted);
}

/* Icon Buttons */
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xs);
}

.icon-button .bx {
    font-size: 18px;
}

.icon-button:hover {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecaca;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Main Content, Headings & Breadcrumbs
   ========================================================================== */

.main-content {
    padding: 28px 32px 40px;
    flex: 1;
    max-width: 1720px;
    width: 100%;
    margin: 0 auto;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 20px;
    font-weight: 500;
}

.breadcrumbs .bx {
    font-size: 14px;
    color: var(--muted-light);
}

.breadcrumbs > span:last-child {
    color: var(--ink);
    font-weight: 600;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.page-heading h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.7px;
    color: var(--ink);
    line-height: 1.25;
}

.page-heading p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 5px;
    max-width: 720px;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.date-chip {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #475569;
    border: 1px solid var(--line);
    padding: 8px 12px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
}

.date-chip .bx {
    font-size: 16px;
    color: var(--primary);
}

/* Flash Messages */
.flash-message {
    background: var(--success-soft);
    border: 1px solid var(--success-border);
    color: var(--success-text);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 22px;
    box-shadow: var(--shadow-xs);
    animation: fadeInDown 0.25s ease-out;
}

.flash-message .bx-check-circle {
    font-size: 20px;
    color: var(--success);
}

.flash-message .icon-button {
    margin-left: auto;
    width: 26px;
    height: 26px;
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--success-text);
}

.flash-message .icon-button:hover {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-text);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.btn {
    font-family: var(--font-sans);
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: var(--shadow-xs) !important;
}

.btn .bx {
    font-size: 17px;
}

.btn-primary, .btn-primary:focus {
    background: var(--primary-gradient) !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%) !important;
    border-color: #0369a1 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35) !important;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-secondary {
    color: #334155 !important;
    border: 1px solid var(--line-strong) !important;
    background: #ffffff !important;
}

.btn-outline-secondary:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: var(--ink) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm) !important;
}

.btn-outline-secondary:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 5px 10px !important;
    font-size: 11.5px !important;
    border-radius: 6px !important;
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9, #6366f1);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: -0.1px;
}

.stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    transition: transform 0.2s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.08);
}

.stat-icon .bx {
    font-size: 20px;
}

/* Stat Icon Jewels */
.icon-teal {
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.icon-blue {
    background: var(--info-soft);
    color: var(--info);
    border: 1px solid var(--info-border);
}

.icon-purple {
    background: var(--purple-soft);
    color: var(--purple);
    border: 1px solid var(--purple-border);
}

.icon-orange {
    background: var(--warning-soft);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--ink);
    line-height: 1.15;
    margin-top: 2px;
}

.stat-detail {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.dashboard-main, .dashboard-side {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 22px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.panel:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line-subtle);
}

.panel-heading h2, .integration-note h2 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--ink);
}

.panel-heading p {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 3px;
}

.panel-heading-icon {
    font-size: 22px;
    color: var(--muted-light);
}

.subtle-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--canvas-subtle);
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    color: #475569;
}

/* Charts */
.operations-chart {
    min-height: 275px;
    padding: 10px 14px;
}

.chart-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px 24px 20px;
    font-size: 12.5px;
    color: var(--muted);
    border-top: 1px solid var(--line-subtle);
}

.chart-summary > span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-summary strong {
    color: var(--ink);
    margin-left: 2px;
    font-weight: 700;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.legend-teal {
    background: var(--primary);
    box-shadow: 0 0 6px var(--primary-glow);
}

.legend-purple {
    background: var(--purple);
    box-shadow: 0 0 6px rgba(139, 92, 246, 0.3);
}

.legend-blue {
    background: #3b82f6;
}

.legend-orange {
    background: var(--warning);
}

.legend-red {
    background: var(--danger);
}

.chart-summary .chart-note {
    margin-left: auto;
    font-size: 11.5px;
    color: var(--muted-light);
}

/* Priority List */
.priority-list {
    padding: 0 20px 8px;
}

.priority-item {
    padding: 16px 0;
    border-top: 1px solid var(--line-subtle);
}

.priority-item:first-child {
    border-top: none;
}

.priority-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.priority-top > strong {
    font-size: 12.5px;
    color: var(--ink);
}

.priority-item > p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 6px;
}

.priority-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 11.5px;
    color: var(--muted-light);
    margin-top: 10px;
}

.priority-meta > span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.priority-meta .bx {
    font-size: 14px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 600;
    padding: 3.5px 10px;
    white-space: nowrap;
    line-height: 1.35;
    letter-spacing: 0.1px;
    border: 1px solid transparent;
}

.status-dot {
    width: 6px;
    height: 6px;
    display: inline-block;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.status-success {
    color: var(--success-text);
    background: var(--success-soft);
    border-color: var(--success-border);
}

.status-success .status-dot {
    box-shadow: 0 0 6px #10b981;
}

.status-info {
    color: var(--info-text);
    background: var(--info-soft);
    border-color: var(--info-border);
}

.status-info .status-dot {
    box-shadow: 0 0 6px #0284c7;
}

.status-danger {
    color: var(--danger-text);
    background: var(--danger-soft);
    border-color: var(--danger-border);
}

.status-danger .status-dot {
    box-shadow: 0 0 6px #ef4444;
}

.status-warning {
    color: var(--warning-text);
    background: var(--warning-soft);
    border-color: var(--warning-border);
}

.status-warning .status-dot {
    box-shadow: 0 0 6px #f59e0b;
}

.status-neutral {
    color: #475569;
    background: #f1f5f9;
    border-color: var(--line);
}

.count-pill {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    background: var(--warning-soft);
    color: var(--warning-text);
    font-size: 11.5px;
    font-weight: 700;
    border: 1px solid var(--warning-border);
}

.fleet-distribution {
    padding: 6px 24px 24px;
}

.distribution-row {
    margin: 0 0 16px;
}

.distribution-row:last-child {
    margin-bottom: 0;
}

.distribution-row > div:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 500;
}

.distribution-row strong {
    margin-left: auto;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.distribution-track {
    height: 6px;
    border-radius: var(--radius-pill);
    overflow: hidden;
    background: #f1f5f9;
    margin-top: 8px;
}

.distribution-track > span {
    display: block;
    height: 100%;
    border-radius: var(--radius-pill);
    transition: width 0.4s ease;
}

.distribution-teal {
    background: linear-gradient(90deg, #0ea5e9, #0284c7);
}

.distribution-blue {
    background: linear-gradient(90deg, #38bdf8, #2563eb);
}

.distribution-orange {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.distribution-red {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

/* Integration Note */
.integration-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid var(--line-subtle);
}

.integration-icon {
    display: grid;
    place-items: center;
    background: #ffffff;
    color: var(--primary);
    border: 1px solid var(--line);
    border-radius: 10px;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    box-shadow: var(--shadow-xs);
}

.integration-note h2 {
    font-size: 13.5px;
    font-weight: 700;
}

.integration-note p {
    font-size: 12px;
    line-height: 1.6;
    margin: 6px 0 10px;
    color: var(--muted);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--ink-secondary);
    font-size: 12.5px;
    text-align: left;
}

.data-table thead {
    background: #f8fafc;
}

.data-table th {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 13px 20px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.data-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    line-height: 1.5;
    transition: background 0.15s ease;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover td {
    background: #f8fafc;
}

.cell-title {
    display: block;
    font-size: 13px;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.15s ease;
}

.cell-title:hover {
    color: var(--primary);
}

.cell-subtitle {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
}

.registration {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.3px;
    color: #1e293b;
    font-weight: 600;
    white-space: nowrap;
    background: #f1f5f9;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 3px 8px;
    display: inline-block;
}

/* Activity Feed */
.activity-list {
    padding: 0 24px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--line-subtle);
    padding: 15px 0;
}

.activity-item:first-child {
    border-top: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid var(--success-border);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.activity-icon .bx {
    font-size: 17px;
}

.activity-item > div {
    flex: 1;
    min-width: 0;
}

.activity-item strong {
    display: block;
    font-size: 12.5px;
    color: var(--ink);
    font-weight: 600;
}

.activity-item div > span {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 3px;
}

/* Footer */
.workspace-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px 32px;
    color: var(--muted-light);
    font-size: 12px;
    font-weight: 500;
}

.footer-dot {
    color: var(--line-strong);
    margin: 0 6px;
}

.summary-strip {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0 0 22px;
    font-size: 12.5px;
    color: var(--muted);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 20px;
    box-shadow: var(--shadow-xs);
}

.summary-strip > span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-strip .bx {
    font-size: 18px;
    color: var(--primary);
}

.summary-strip strong {
    color: var(--ink);
    font-weight: 700;
}

.dot-success {
    background: var(--success);
}

.dot-danger {
    background: var(--danger);
}
.table-tabs {
    display: flex;
    gap: 28px;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.table-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12.5px;
    padding: 16px 0 14px;
    border-bottom: 2px solid transparent;
    font-weight: 600;
    transition: all 0.15s ease;
}

.table-tab:hover {
    color: var(--ink);
}

.table-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.table-tab > span {
    font-size: 11px;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    font-weight: 700;
}

.table-tab.active > span {
    color: #0284c7;
    background: #e0f2fe;
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    background: #ffffff;
    border-bottom: 1px solid var(--line-subtle);
    flex-wrap: wrap;
}

.table-search {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    gap: 8px;
    padding: 8px 12px;
    width: 280px;
    min-width: 180px;
    transition: all 0.18s ease;
}

.table-search:focus-within {
    background: #ffffff;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.table-search .bx {
    font-size: 17px;
    color: var(--muted-light);
}

.table-search input {
    border: 0;
    background: transparent;
    outline: none;
    width: 100%;
    min-width: 0;
    font-size: 12.5px;
    color: var(--ink);
}

.table-search input::placeholder {
    color: var(--muted-light);
}

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

.form-select, .form-control {
    font-family: inherit;
    font-size: 12.5px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-xs) !important;
    min-height: 38px;
    padding: 8px 12px;
    background-color: #ffffff;
    transition: all 0.18s ease;
}

.form-select {
    padding-right: 32px;
    background-position: right 10px center;
}

.form-control:focus, .form-select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16) !important;
    outline: none;
}

.form-control::placeholder {
    color: var(--muted-light);
}

.table-filters .form-select {
    font-size: 12px;
    width: auto;
    max-width: 220px;
    min-height: 36px;
}

.reset-filter {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    padding: 6px 10px;
}

.table-sort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    cursor: pointer;
}

.table-sort:hover {
    color: var(--primary);
}

.table-sort .bx {
    font-size: 14px;
    color: var(--muted-light);
}

/* Business and Vehicle Cells */
.business-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.business-avatar {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.avatar-0 {
    background: var(--success-soft);
    color: var(--success-text);
    border-color: var(--success-border);
}

.avatar-1 {
    background: var(--info-soft);
    color: var(--info-text);
    border-color: var(--info-border);
}

.avatar-2 {
    background: var(--warning-soft);
    color: var(--warning-text);
    border-color: var(--warning-border);
}

.avatar-3 {
    background: var(--purple-soft);
    color: var(--purple-text);
    border-color: var(--purple-border);
}

.type-label {
    font-size: 12px;
    white-space: nowrap;
}

.plan-label {
    font-size: 11.5px;
    font-weight: 600;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 3px 8px;
    background: #f8fafc;
    color: #475569;
    white-space: nowrap;
}

.row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.row-actions .icon-button {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.row-actions .bx {
    font-size: 16px;
}

/* Table Footer & Pagination */
.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line);
    padding: 16px 24px;
    font-size: 12.5px;
    color: var(--muted);
    background: #ffffff;
    flex-wrap: wrap;
}

.table-count strong {
    color: var(--ink);
    font-weight: 700;
}

.table-footer nav > div:first-child {
    display: none !important;
}

.table-footer .pagination {
    margin: 0;
    gap: 4px;
    display: flex;
    list-style: none;
    padding: 0;
}

.table-footer .page-link {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px !important;
    color: var(--ink-secondary);
    font-size: 12px;
    font-weight: 600;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    box-shadow: var(--shadow-xs) !important;
    transition: all 0.15s ease;
}

.table-footer .page-link:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--primary);
}

.table-footer .page-item.active .page-link {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px var(--primary-glow) !important;
}

.table-footer .page-item.disabled .page-link {
    background: #f8fafc !important;
    border-color: var(--line-subtle) !important;
    color: var(--muted-light) !important;
    cursor: not-allowed;
}

.table-footer .small {
    display: none;
}

.page-size-form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    font-size: 12px;
}

.page-size-form select {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    color: var(--ink-secondary);
    background: #ffffff;
}

.table-footer > div:last-child:empty {
    display: none;
}

/* Empty States */
.empty-state {
    padding: 50px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.empty-state > .bx {
    font-size: 38px;
    color: var(--muted-light);
    margin-bottom: 2px;
}

.empty-state > h3, .empty-state > strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.empty-state > p, .empty-state > span {
    font-size: 12.5px;
    color: var(--muted);
    max-width: 380px;
}

.empty-state .btn {
    margin-top: 10px;
}

/* Vehicle Specifics */
.vehicle-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.vehicle-avatar {
    width: 36px;
    height: 36px;
    background: var(--info-soft);
    color: var(--info-text);
    border: 1px solid var(--info-border);
    border-radius: 9px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.vehicle-avatar .bx {
    font-size: 19px;
}

.fuel-level {
    min-width: 65px;
}

.fuel-level > span {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-secondary);
}

.fuel-level > div {
    width: 58px;
    height: 5px;
    border-radius: var(--radius-pill);
    overflow: hidden;
    background: #e2e8f0;
    margin-top: 5px;
}

.fuel-level > div > span {
    display: block;
    height: 100%;
    background: var(--success);
    border-radius: var(--radius-pill);
}

.telemetry-status {
    font-size: 12px;
    color: var(--muted-light);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.telemetry-status.has-telemetry {
    color: var(--success-text);
    font-weight: 600;
}

.below-table-note {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
}

.below-table-note .bx {
    font-size: 16px;
    color: var(--primary);
}

.business-form {
    max-width: 1080px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-grid {
    padding: 0 24px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.field label {
    font-size: 12.5px;
    color: #334155;
    font-weight: 600;
    display: block;
    margin-bottom: 7px;
}

.field label > span {
    color: #ef4444;
}

.field-full {
    grid-column: 1 / -1;
}

.field-hint {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 6px;
}

.step-label {
    font-size: 11px;
    color: var(--muted-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 0 12px;
}

.form-actions > span {
    font-size: 12px;
    color: var(--muted);
}

.form-actions > span .bx {
    font-size: 16px;
    margin-right: 4px;
}

.form-actions > div {
    display: flex;
    gap: 10px;
}

.form-error-summary {
    font-size: 12.5px;
    background: var(--danger-soft);
    border: 1px solid var(--danger-border);
    color: var(--danger-text);
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 22px;
    font-weight: 500;
}

.form-error-summary ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.invalid-feedback {
    font-size: 11.5px;
    color: #dc2626;
    margin-top: 4px;
    display: block;
    font-weight: 500;
}

/* Record Details Grid */
.record-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 24px;
    margin: 0;
    background: #ffffff;
}

.record-details > div {
    min-width: 0;
}

.record-details dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 6px;
}

.record-details dd {
    font-size: 13.5px;
    overflow-wrap: anywhere;
    margin: 0;
    color: var(--ink);
    font-weight: 500;
}

.nested-details {
    padding-left: 12px;
    border-left: 2px solid var(--line);
    margin: 8px 0;
}

.nested-details dt {
    font-size: 10px;
}

.nested-details dd {
    margin-bottom: 8px;
}

.action-form {
    padding: 0 24px 24px;
}

.action-form .form-grid {
    padding: 0 0 20px;
}

.detail-columns {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 22px;
    align-items: start;
}

.details-list {
    padding: 0 24px 12px;
    margin: 0;
}

.details-list > div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    padding: 13px 0;
    border-top: 1px solid var(--line-subtle);
    font-size: 12.5px;
}

.details-list dt {
    font-weight: 600;
    color: var(--muted);
}

.details-list dd {
    margin: 0;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.member-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    border-top: 1px solid var(--line-subtle);
}

.member-row > div {
    flex: 1;
}

.panel-bottom {
    padding: 16px 24px;
    border-top: 1px solid var(--line-subtle);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary);
}

.text-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.text-link .bx {
    font-size: 16px;
}

.admin-data-table {
    min-width: 900px;
}

.admin-data-table td, .admin-data-table th {
    white-space: nowrap;
}

.admin-data-table td {
    font-size: 12.5px;
    padding: 13px 18px;
    vertical-align: middle;
}

.admin-data-table .btn {
    padding: 5px 10px;
    font-size: 11.5px;
}

.admin-data-table tbody tr:hover {
    background: #f8fafc;
}

.table-toolbar > .table-search {
    flex: 1;
    min-width: 220px;
}

.table-toolbar > .btn {
    flex-shrink: 0;
}

.login-body {
    min-height: 100vh;
    margin: 0;
    padding: 36px 20px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.login-shell {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    width: 100%;
    max-width: 1060px;
    min-height: 640px;
    margin: auto;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 8px 20px -6px rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.login-story {
    padding: 38px 44px 30px;
    background: linear-gradient(180deg, rgba(7, 16, 38, 0.82) 0%, rgba(7, 16, 38, 0.44) 45%, rgba(7, 16, 38, 0.92) 100%),
                url('/login-fleet-bg.jpg') center center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.login-story .brand {
    height: auto;
    padding: 0;
    align-self: flex-start;
    border: none;
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-story .brand-logo {
    height: 54px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.login-story .brand-copy {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.login-story .brand-copy > span {
    font-size: 10px;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 2px;
    margin-top: 3px;
    text-transform: uppercase;
}

.login-hero-content {
    margin: auto 0;
    padding: 24px 0 20px;
}

.login-eyebrow {
    font-size: 11.5px;
    letter-spacing: 2.2px;
    color: #38bdf8;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.login-story h1 {
    font-size: 38px;
    line-height: 1.16;
    letter-spacing: -1.4px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px;
}

.headline-accent {
    color: #0ea5e9;
    display: block;
}

.login-story p {
    font-size: 13.5px;
    line-height: 1.65;
    max-width: 420px;
    color: #cbd5e1;
    margin-bottom: 26px;
}

.login-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 480px;
}

.feature-card {
    background: rgba(11, 22, 44, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    transition: all 0.2s ease;
}

.feature-card:hover {
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
}

.feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: grid;
    place-items: center;
    color: #38bdf8;
    font-size: 18px;
}

.feature-title {
    font-size: 11.5px;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.35;
}

.login-copyright {
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 500;
}

/* Form Section */
.login-form-section {
    padding: 30px 44px 24px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    position: relative;
}

.login-secure-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.secure-access-pill {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.secure-access-pill .bx {
    font-size: 15px;
    color: #94a3b8;
}

.login-form-wrap {
    width: 100%;
    max-width: 400px;
    margin: auto;
    padding: 16px 0;
}

.login-form-icon {
    background: #edf6f4;
    color: #5a9e8d;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
}

.login-form-icon .bx {
    font-size: 24px;
}

.login-form-wrap h2 {
    font-size: 28px;
    letter-spacing: -0.7px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

.login-form-wrap > p {
    font-size: 13.5px;
    color: #64748b;
    margin: 0 0 28px;
}

.login-form-wrap .field {
    margin-bottom: 18px;
}

.login-form-wrap .field label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 7px;
    display: block;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-with-icon .field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #94a3b8;
    pointer-events: none;
    z-index: 2;
}

.input-with-icon .form-control {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    padding-left: 44px;
    padding-right: 14px;
    font-size: 13.5px;
    color: #0f172a;
    background: #ffffff;
    transition: all 0.18s ease;
    box-shadow: none !important;
}

.input-with-icon .form-control:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16) !important;
    outline: none;
}

.password-field .form-control {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #94a3b8;
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.password-toggle:hover {
    color: #0f172a;
    background: transparent;
}

.remember-label {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    margin: 6px 0 24px;
    font-weight: 500;
    cursor: pointer;
}

.remember-label input {
    accent-color: #0284c7;
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.login-submit {
    width: 100%;
    height: 48px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    background: linear-gradient(90deg, #0284c7 0%, #0ea5e9 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.login-submit:hover {
    background: linear-gradient(90deg, #0369a1 0%, #0284c7 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45) !important;
}

.login-submit .bx {
    font-size: 18px;
    transition: transform 0.15s ease;
}

.login-submit:hover .bx {
    transform: translateX(3px);
}

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12.5px;
    color: #64748b;
    margin-top: 24px;
    line-height: 1.5;
    text-align: center;
}

.login-security .bx {
    font-size: 16px;
    color: #0284c7;
}

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 12.5px;
    color: #64748b;
    padding-top: 14px;
}

.login-footer .help-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.login-footer .help-item .bx {
    font-size: 15px;
    color: #94a3b8;
}

.footer-sep {
    color: #cbd5e1;
}

.login-footer .support-item {
    color: #64748b;
    font-weight: 500;
}

.login-footer .support-item:hover {
    color: #0284c7;
    text-decoration: underline;
}

.login-mobile-brand {
    display: none;
}

.mobile-menu {
    display: none;
}

.sidebar-overlay {
    display: none;
}

@media (min-width: 1600px) {
    .main-content {
        padding-top: 32px;
    }
    .dashboard-columns {
        grid-template-columns: minmax(0, 1fr) 360px;
    }
    .data-table td {
        padding-top: 16px;
        padding-bottom: 16px;
    }
}

@media (max-width: 1199px) {
    :root {
        --sidebar: 240px;
    }
    .brand {
        padding-left: 18px;
    }
    .main-content {
        padding: 22px;
    }
    .topbar {
        padding: 0 22px;
    }
    .dashboard-columns {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 18px;
    }
    .stats-grid {
        gap: 14px;
    }
    .stat-card {
        padding: 16px 18px;
    }
    .date-chip {
        display: none;
    }
    .data-table td, .data-table th {
        padding-left: 14px;
        padding-right: 14px;
    }
    .chart-summary {
        gap: 14px;
    }
    .chart-summary .chart-note {
        display: none;
    }
    .table-toolbar {
        flex-wrap: wrap;
    }
    .table-filters {
        flex-wrap: wrap;
    }
    .business-cell {
        min-width: 190px;
    }
    .user-summary {
        display: none;
    }
}

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        width: 260px;
    }
    .workspace {
        margin-left: 0;
    }
    .mobile-menu {
        display: flex;
    }
    .sidebar-open .sidebar {
        transform: translateX(0);
    }
    .sidebar-open .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(4px);
        z-index: 99;
    }
    .dashboard-columns {
        grid-template-columns: 1fr;
    }
    .record-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .login-body {
        padding: 24px 16px;
    }
    .login-story {
        display: none;
    }
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 440px;
        min-height: auto;
        border-radius: 18px;
        box-shadow: 0 12px 32px -6px rgba(15, 23, 42, 0.1);
    }
    .login-mobile-brand {
        display: flex;
        height: auto;
        padding: 0;
        margin-bottom: 22px;
        border: none;
    }
    .login-mobile-brand .brand-copy {
        color: var(--ink);
    }
    .login-mobile-brand .brand-logo {
        height: 42px;
        width: auto;
        max-width: 210px;
        object-fit: contain;
        filter: brightness(0.12);
    }
    .login-form-section {
        padding: 32px 28px 24px;
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .topbar {
        min-height: 58px;
        padding: 0 16px;
    }
    .topbar-start, .topbar-end {
        gap: 10px;
    }
    .workspace-name {
        font-size: 12.5px;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .workspace-subtitle, .topbar-start .topbar-divider, .environment-tag, .topbar-end .topbar-divider {
        display: none;
    }
    .main-content {
        padding: 16px;
    }
    .breadcrumbs {
        margin-bottom: 14px;
    }
    .page-heading {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }
    .page-heading h1 {
        font-size: 22px;
    }
    .page-heading p {
        font-size: 12px;
    }
    .page-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 18px;
    }
    .stat-value {
        font-size: 26px;
    }
    .dashboard-side {
        display: grid;
        grid-template-columns: 1fr;
    }
    .integration-note {
        grid-column: 1 / -1;
    }
    .table-tabs {
        gap: 18px;
        padding: 0 16px;
    }
    .table-toolbar {
        padding: 14px 16px;
        gap: 10px;
    }
    .table-search {
        width: 100%;
    }
    .table-filters {
        width: 100%;
    }
    .table-filters .form-select {
        flex: 1;
        min-width: 110px;
        max-width: none;
    }
    .table-footer {
        padding: 14px 16px;
    }
    .form-grid {
        padding: 0 16px 20px;
        gap: 16px;
        grid-template-columns: 1fr;
    }
    .form-actions {
        flex-wrap: wrap;
    }
    .form-actions > div {
        margin-left: auto;
    }
    .detail-columns {
        grid-template-columns: 1fr;
    }
    .details-list > div {
        grid-template-columns: 120px 1fr;
    }
    .login-form-section {
        padding: 24px 20px;
    }
}

@media (max-width: 540px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .record-details {
        grid-template-columns: 1fr;
    }
    .table-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .table-footer > div:last-child {
        margin-left: 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    .workspace-footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        padding: 20px 16px 24px;
    }
}

@media print {
    .sidebar, .topbar, .breadcrumbs, .page-actions, .table-toolbar, .table-footer, .workspace-footer {
        display: none !important;
    }
    .workspace {
        margin-left: 0 !important;
    }
    .main-content {
        padding: 0 !important;
    }
    .panel {
        box-shadow: none !important;
        border: 0 !important;
    }
    .table-responsive {
        overflow: visible !important;
    }
}

.school-panel-body { padding: 20px 24px; }
.school-panel-body > label { display: block; margin: 14px 0 6px; font-weight: 600; }
.school-panel-body .form-grid { padding: 0; }

.school-record-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:20px 24px;margin:0}.school-record-grid dt{font-size:11px;color:#64748b;text-transform:uppercase;letter-spacing:.05em}.school-record-grid dd{margin:5px 0 0;font-size:13px;overflow-wrap:anywhere}.school-two-column{display:grid;grid-template-columns:1fr 1fr;gap:20px}.school-trend-row{display:flex;align-items:center;gap:18px;margin:12px 0}.school-trend-row meter{flex:1;height:20px}.panel .table th{font-size:11px;color:#64748b}.panel .table td{font-size:12px;padding:13px 16px}.school-panel-body .btn{margin-top:14px}.sidebar-nav{min-height:0;overflow-y:auto}.panel .table td a{margin-right:10px}@media(max-width:900px){.school-record-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.school-two-column{grid-template-columns:1fr}}@media(max-width:600px){.school-record-grid{grid-template-columns:1fr}}
