
:root,
[data-theme="dark"] {
    color-scheme: dark;
    --bg-primary: #050505;
    --bg-secondary: rgba(24, 24, 27, 0.85);
    --bg-tertiary: #27272a;
    --bg-card: #111827;
    --bg-elevated: #1e293b;
    --bg-input: #0f172a;
    --surface-light: rgba(255, 255, 255, 0.04);
    --hover-surface: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.12);
    --glass-highlight: rgba(255, 255, 255, 0.04);
    --table-header-bg: #18181b;
    --modal-backdrop: rgba(10, 14, 26, 0.82);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);

    --text-primary: #f4f4f5;
    --text-color: #f4f4f5;
    --text-light: #e2e8f0;
    --text-secondary: #a1a1aa;
    --text-muted: #94a3b8;

    --accent-primary: #dc2626;
    --primary-color: #dc2626;
    --color-primary: #3b82f6;
    --accent-primary-glow: rgba(220, 38, 38, 0.4);
    --accent-cyan: #9ca3af;
    --accent-cyan-glow: rgba(156, 163, 175, 0.4);

    --color-success: #10b981;
    --success-color: #10b981;
    --color-warning: #f59e0b;
    --warning-color: #f59e0b;
    --color-danger: #ef4444;
    --danger-color: #ef4444;
    --color-info: #3b82f6;
    --color-purple: #8b5cf6;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
}

[data-theme="light"] {
    color-scheme: light;
    --bg-primary: #f1f5f9;
    --bg-secondary: rgba(255, 255, 255, 0.95);
    --bg-tertiary: #e2e8f0;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;
    --bg-input: #ffffff;
    --surface-light: #f8fafc;
    --hover-surface: rgba(15, 23, 42, 0.045);
    --glass-border: #cbd5e1;
    --border-color: #cbd5e1;
    --glass-highlight: rgba(15, 23, 42, 0.05);
    --table-header-bg: #f8fafc;
    --modal-backdrop: rgba(15, 23, 42, 0.45);
    --card-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);

    --text-primary: #0f172a;
    --text-color: #0f172a;
    --text-light: #1e293b;
    --text-secondary: #334155;
    --text-muted: #64748b;

    --accent-primary: #dc2626;
    --primary-color: #dc2626;
    --color-primary: #2563eb;
    --accent-primary-glow: rgba(220, 38, 38, 0.2);
    --accent-cyan: #0284c7;
    --accent-cyan-glow: rgba(2, 132, 199, 0.22);

    --color-success: #059669;
    --success-color: #059669;
    --color-warning: #d97706;
    --warning-color: #d97706;
    --color-danger: #dc2626;
    --danger-color: #dc2626;
    --color-info: #2563eb;
    --color-purple: #7c3aed;
}

/* Base resets & styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.07) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-right: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-brand {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.brand-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-cyan) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--accent-primary-glow);
    font-weight: 800;
    color: white;
    font-size: 20px;
    font-family: var(--font-heading);
}

.brand-text {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-menu {
    list-style: none;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition-fast);
    cursor: pointer;
    font-size: 14px;
}

.menu-item svg {
    width: 20px;
    height: 20px;
    transition: var(--transition-fast);
}

.menu-item:hover {
    color: var(--text-primary);
    background: var(--glass-highlight);
}

.menu-item.active {
    color: white;
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.35) 0%, rgba(6, 182, 212, 0.05) 100%);
    border-left: 3px solid var(--accent-cyan);
    box-shadow: inset 0 0 10px rgba(79, 70, 229, 0.1);
}

.menu-item.active svg {
    color: var(--accent-cyan);
}

/* Sidebar Footer / User Profile */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sync-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(0,0,0,0.2);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-success);
    box-shadow: 0 0 8px var(--color-success);
    display: inline-block;
}

.status-dot.syncing {
    background-color: var(--color-warning);
    box-shadow: 0 0 8px var(--color-warning);
    animation: pulse 1s infinite alternate;
}

/* Main Content Area */
.main-content {
    margin-left: 260px;
    flex-grow: 1;
    min-height: 100vh;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
}

.header-title-section h2 {
    font-size: 24px;
    color: var(--text-primary);
}

.header-title-section p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #312e81 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    border-color: rgba(255,255,255,0.2);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--text-secondary);
}

.select-filter {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.select-filter:focus {
    border-color: var(--accent-cyan);
}

/* KPI Card Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.kpi-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.kpi-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.kpi-card::before {
    display: none;
}

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

.kpi-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kpi-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
}

.kpi-card.cyan .kpi-icon { color: var(--accent-cyan); background: rgba(6, 182, 212, 0.1); }
.kpi-card.success .kpi-icon { color: var(--color-success); background: rgba(16, 185, 129, 0.1); }
.kpi-card.warning .kpi-icon { color: var(--color-warning); background: rgba(245, 158, 11, 0.1); }
.kpi-card.purple .kpi-icon { color: var(--color-purple); background: rgba(139, 92, 246, 0.1); }

.kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.kpi-trend {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend-up { color: var(--color-success); }
.trend-down { color: var(--color-danger); }
.trend-neutral { color: var(--text-muted); }

/* MTTR Split Card Layout */
.mttr-split-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin: 8px 0;
    gap: 10px;
}

.mttr-split-col {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.mttr-split-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mttr-split-val {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
    font-family: var(--font-heading);
}

.mttr-split-divider {
    width: 1px;
    height: 30px;
    background: var(--glass-border);
    flex-shrink: 0;
}

/* Total ACV Card with Side-by-Side Regional Breakdown */
#kpi-total-acv-card {
    min-width: 0;
}

.acv-card-inner {
    display: flex;
    align-items: stretch;
    gap: 16px;
}

.acv-left-col {
    flex: 1 1 52%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.acv-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    margin: 2px 0;
}

.acv-breakdown-col {
    flex: 1 1 48%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 8px 12px;
}

.acv-breakdown-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.acv-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.acv-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 11.5px;
    line-height: 1.25;
}

.acv-region-name {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acv-region-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-midwest { background: #38bdf8; }
.dot-northeast { background: #818cf8; }
.dot-northwest { background: #34d399; }
.dot-southwest { background: #fbbf24; }
.dot-south { background: #f472b6; }

.acv-region-val {
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
    white-space: nowrap;
}

/* Dashboard Sections Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* Cards / Modules */
.card-module {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 24px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Custom Charts */
.chart-container {
    height: 220px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
}

.chart-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    height: 100%;
    justify-content: flex-end;
    position: relative;
    group: hover;
}

.chart-bar {
    width: 60%;
    max-width: 40px;
    background: linear-gradient(180deg, var(--accent-primary) 0%, rgba(79, 70, 229, 0.2) 100%);
    border-radius: 4px 4px 0 0;
    transition: height 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
}

.chart-bar.cyan {
    background: linear-gradient(180deg, var(--accent-cyan) 0%, rgba(6, 182, 212, 0.2) 100%);
}

.chart-bar:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.chart-label {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.chart-tooltip {
    position: absolute;
    bottom: 105%;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
    transform: translateY(5px);
    z-index: 10;
}

.chart-bar-wrapper:hover .chart-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Progress / Inventory Bars */
.inventory-bar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inventory-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.inventory-bar-name {
    font-weight: 500;
    color: var(--text-primary);
}

.inventory-bar-qty {
    color: var(--text-secondary);
}

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease-in-out;
}

.progress-fill.primary { background: var(--accent-primary); }
.progress-fill.cyan { background: var(--accent-cyan); }
.progress-fill.success { background: var(--color-success); }
.progress-fill.warning { background: var(--color-warning); }
.progress-fill.danger { background: var(--color-danger); }
.progress-fill.purple { background: var(--color-purple); }

/* Tables & Lists */
.table-container {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 450px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

thead {
    border-bottom: 1px solid var(--glass-border);
}

th {
    padding: 12px 16px;
    color: var(--text-secondary);
    font-weight: 600;
    position: sticky;
    top: 0;
    background: var(--table-header-bg);
    border-bottom: 1px solid var(--border-color);
    z-index: 1;
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-primary);
}

tr:hover td {
    background-color: var(--hover-surface);
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.success { background: rgba(16, 185, 129, 0.1); color: var(--color-success); }
.badge.warning { background: rgba(245, 158, 11, 0.1); color: var(--color-warning); }
.badge.danger { background: rgba(239, 68, 68, 0.1); color: var(--color-danger); }
.badge.info { background: rgba(59, 130, 246, 0.1); color: var(--color-info); }
.badge.purple { background: rgba(139, 92, 246, 0.1); color: var(--color-purple); }

/* Activity list */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.activity-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.activity-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.activity-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.activity-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* Page Views */
.page-view {
    display: none;
    flex-direction: column;
    gap: 24px;
}

.page-view.active {
    display: flex;
}

/* Warehouse specific layouts */
.warehouse-stock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.stock-movement-flow {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-left: 20px;
}

.stock-movement-flow::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--glass-border);
}

.flow-node {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flow-node::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-cyan);
    border: 2px solid var(--bg-primary);
}

.flow-node.inbound::before { background: var(--color-success); }
.flow-node.outbound::before { background: var(--color-danger); }
.flow-node.transfer::before { background: var(--color-purple); }

.flow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flow-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.flow-details {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Modal sync overlay */
.sync-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--modal-backdrop);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.sync-modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 480px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.sync-spinner {
    width: 64px;
    height: 64px;
    border: 4px solid rgba(6, 182, 212, 0.1);
    border-top: 4px solid var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Keyframes */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.05); opacity: 1; }
}

/* Tabs inside warehouse view */
.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    gap: 16px;
    margin-bottom: 16px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Low stock alert badge list */
.alert-card {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.alert-card-warning svg {
    color: var(--color-warning);
    flex-shrink: 0;
}

/* Custom mini van list */
.van-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.van-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.van-card:hover {
    border-color: rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
}

.van-name {
    font-weight: 600;
    color: var(--text-primary);
}

.van-stock-val {
    font-size: 13px;
    color: var(--accent-cyan);
    font-weight: 550;
    margin-top: 4px;
}

.van-tech {
    font-size: 11px;
    color: var(--text-muted);
}

#locationValueList {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 8px;
}

#locationValueList::-webkit-scrollbar {
    width: 6px;
}

#locationValueList::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

#locationValueList::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.2);
    border-radius: 3px;
}

#locationValueList::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.4);
}

/* ========================================================= */
/* ORDER TRACKING TAB STYLES                                 */
/* ========================================================= */

.btn-search:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.order-card:hover {
    transform: translateY(-2px);
    border-color: #475569;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.order-title {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge.inventory { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.badge.job { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.order-meta {
    text-align: right;
    color: var(--text-muted);
    font-size: 13px;
}

.order-meta strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 40px;
    margin-top: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 60px;
    right: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
    border-radius: 2px;
}

.timeline-progress {
    position: absolute;
    top: 20px;
    left: 60px;
    height: 3px;
    background: var(--primary-color);
    z-index: 2;
    border-radius: 2px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
}

.step-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-elevated);
    border: 3px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #64748b;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.step.active .step-icon {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(211, 47, 47, 0.1);
    box-shadow: 0 0 0 6px rgba(211, 47, 47, 0.1);
}

.step.completed .step-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step-title {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 4px;
}

.step.active .step-title, .step.completed .step-title {
    color: var(--text-primary);
}

.step-date {
    font-size: 11px;
    color: #64748b;
}


/* FullCalendar Theme-Aware Overrides */
#calendar {
    --fc-page-bg-color: #0b1120;
    --fc-neutral-bg-color: #0f172a;
    --fc-neutral-text-color: #94a3b8;
    --fc-border-color: rgba(148, 163, 184, 0.14);
    --fc-today-bg-color: rgba(56, 189, 248, 0.06);
    --fc-now-indicator-color: #ef4444;
    --fc-event-border-color: #2563eb;
    background: #0b1120 !important;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
[data-theme="light"] #calendar {
    --fc-page-bg-color: #ffffff;
    --fc-neutral-bg-color: #f8fafc;
    --fc-neutral-text-color: #475569;
    --fc-border-color: #e2e8f0;
    --fc-today-bg-color: rgba(37, 99, 235, 0.045);
    --fc-now-indicator-color: #dc2626;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
#calendar .fc-toolbar {
    margin-bottom: 14px !important;
    gap: 10px;
    flex-wrap: wrap;
}
#calendar .fc-toolbar-title {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    letter-spacing: -0.01em;
}
/* Override FullCalendar v6 sticky white surface */
#calendar .fc-scrollgrid,
#calendar .fc-scrollgrid-section > *,
#calendar .fc-scrollgrid-section-sticky > *,
#calendar .fc-timegrid-body,
#calendar .fc-daygrid-body {
    background-color: var(--fc-page-bg-color) !important;
}
#calendar .fc-theme-standard td,
#calendar .fc-theme-standard th,
#calendar .fc-theme-standard .fc-scrollgrid {
    border-color: var(--fc-border-color) !important;
}
/* Subtle dashed half-hour lines instead of bright white #ddd */
#calendar .fc-timegrid-slot {
    height: 2.35em;
}
#calendar .fc-timegrid-slot-minor {
    border-top-style: dashed !important;
    border-top-color: rgba(148, 163, 184, 0.07) !important;
}
[data-theme="light"] #calendar .fc-timegrid-slot-minor {
    border-top-color: #f1f5f9 !important;
}
/* Column Headers */
#calendar .fc-col-header,
#calendar .fc-col-header-cell,
#calendar .fc-timegrid-axis {
    background-color: #111827 !important;
}
[data-theme="light"] #calendar .fc-col-header,
[data-theme="light"] #calendar .fc-col-header-cell,
[data-theme="light"] #calendar .fc-timegrid-axis {
    background-color: #f8fafc !important;
}
#calendar .fc-col-header-cell-cushion {
    color: #cbd5e1 !important;
    font-weight: 600 !important;
    font-size: 12.5px;
    padding: 9px 6px !important;
    text-decoration: none !important;
}
[data-theme="light"] #calendar .fc-col-header-cell-cushion {
    color: #334155 !important;
}
#calendar .fc-daygrid-day-number,
#calendar .fc-timegrid-slot-label-cushion,
#calendar .fc-timegrid-axis-cushion {
    color: #94a3b8 !important;
    font-size: 11.5px;
    font-weight: 500;
    text-decoration: none !important;
}
[data-theme="light"] #calendar .fc-daygrid-day-number,
[data-theme="light"] #calendar .fc-timegrid-slot-label-cushion,
[data-theme="light"] #calendar .fc-timegrid-axis-cushion {
    color: #64748b !important;
}
/* Today Column & Header Highlight (Fixes white header bug in Dark Mode) */
#calendar .fc-day-today:not(.fc-col-header-cell) {
    background-color: var(--fc-today-bg-color) !important;
}
#calendar .fc-col-header-cell.fc-day-today {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.22) 0%, rgba(14, 165, 233, 0.10) 100%) !important;
    box-shadow: inset 0 -2px 0 #38bdf8 !important;
}
#calendar .fc-col-header-cell.fc-day-today .fc-col-header-cell-cushion {
    color: #38bdf8 !important;
    font-weight: 700 !important;
}
[data-theme="light"] #calendar .fc-col-header-cell.fc-day-today {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%) !important;
    box-shadow: inset 0 -2px 0 #2563eb !important;
}
[data-theme="light"] #calendar .fc-col-header-cell.fc-day-today .fc-col-header-cell-cushion {
    color: #1d4ed8 !important;
    font-weight: 700 !important;
}
/* Toolbar Buttons */
#calendar .fc-button-primary {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    box-shadow: none !important;
    font-weight: 600;
    font-size: 12.5px;
    padding: 6px 12px;
    text-transform: capitalize;
    transition: all 0.15s ease;
}
[data-theme="light"] #calendar .fc-button-primary {
    background-color: #f8fafc !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
}
#calendar .fc-button-primary:hover {
    background-color: #334155 !important;
    color: #ffffff !important;
}
[data-theme="light"] #calendar .fc-button-primary:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}
#calendar .fc-button-primary:not(:disabled):active,
#calendar .fc-button-primary:not(:disabled).fc-button-active {
    background-color: var(--accent-primary) !important;
    color: #ffffff !important;
    border-color: var(--accent-primary) !important;
}
#calendar .fc-button-primary:disabled {
    opacity: 0.45 !important;
}
/* Opaque, High-Contrast Event Cards (No gridlines bleeding through text) */
#calendar .fc-timegrid-event,
#calendar .fc-daygrid-event {
    border-radius: 6px !important;
    overflow: hidden;
    padding: 1px 2px;
}
#calendar .fc-event-main {
    padding: 4px 6px !important;
}
#calendar .fc-event-time {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    opacity: 0.92;
    margin-bottom: 2px;
}
#calendar .fc-event-title {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    white-space: pre-line !important;
}
#calendar .fc-ils-job {
    background: linear-gradient(145deg, #1e3a8a 0%, #172554 100%) !important;
    border: 1px solid #2563eb !important;
    border-left: 4px solid #38bdf8 !important;
    box-shadow: 0 3px 10px rgba(2, 6, 23, 0.45) !important;
}
#calendar .fc-ils-job,
#calendar .fc-ils-job .fc-event-main,
#calendar .fc-ils-job .fc-event-title {
    color: #f8fafc !important;
}
#calendar .fc-ils-job .fc-event-time {
    color: #7dd3fc !important;
}
#calendar .fc-ils-activity {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%) !important;
    border: 1px solid #475569 !important;
    border-left: 4px solid #94a3b8 !important;
    box-shadow: 0 2px 8px rgba(2, 6, 23, 0.35) !important;
}
#calendar .fc-ils-activity,
#calendar .fc-ils-activity .fc-event-main,
#calendar .fc-ils-activity .fc-event-title,
#calendar .fc-ils-activity .fc-event-time {
    color: #e2e8f0 !important;
}
[data-theme="light"] #calendar .fc-ils-job {
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%) !important;
    border: 1px solid #93c5fd !important;
    border-left: 4px solid #2563eb !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
}
[data-theme="light"] #calendar .fc-ils-job,
[data-theme="light"] #calendar .fc-ils-job .fc-event-main,
[data-theme="light"] #calendar .fc-ils-job .fc-event-title {
    color: #1e3a8a !important;
}
[data-theme="light"] #calendar .fc-ils-job .fc-event-time {
    color: #1d4ed8 !important;
}
[data-theme="light"] #calendar .fc-ils-activity {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #64748b !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06) !important;
}
[data-theme="light"] #calendar .fc-ils-activity,
[data-theme="light"] #calendar .fc-ils-activity .fc-event-main,
[data-theme="light"] #calendar .fc-ils-activity .fc-event-title,
[data-theme="light"] #calendar .fc-ils-activity .fc-event-time {
    color: #0f172a !important;
}

/* Per-Device Printer Status Pills */
.device-printer-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.device-printer-pill:hover {
    border-color: #38bdf8;
    color: var(--text-primary);
}
.device-printer-pill .dp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #64748b;
    flex-shrink: 0;
}
.device-printer-pill.configured .dp-dot {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}
.device-printer-pill.configured-offline .dp-dot {
    background: #f59e0b;
}

/* =========================================================
   MOBILE RESPONSIVE SYSTEM (< 768px)
   ========================================================= */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}
.mobile-menu-toggle i {
    color: var(--text-primary) !important;
    font-size: 18px;
}
.mobile-menu-toggle:active {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-close-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    padding: 8px;
    cursor: pointer;
}

/* Sidebar Backdrop */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    /* Top Header & Toggle Button */
    .mobile-menu-toggle {
        display: inline-flex;
    }
    .mobile-close-btn {
        display: inline-block;
    }

    /* Off-canvas Mobile Sidebar */
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -290px !important;
        width: 280px !important;
        height: 100vh !important;
        z-index: 999 !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.7);
        border-right: 1px solid var(--border-color);
        background: var(--bg-card) !important;
        overflow-y: auto !important;
    }
    .sidebar.mobile-open {
        left: 0 !important;
    }
    .sidebar-backdrop.active {
        display: block !important;
        opacity: 1 !important;
    }

    /* Main Content Layout */
    .main-content {
        margin-left: 0 !important;
        padding: 14px 12px 36px 12px !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        gap: 16px !important;
    }

    .top-header {
        padding-bottom: 12px;
    }

    /* KPI Grid on Mobile (Tidy 2-column grid) */
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .kpi-card {
        padding: 14px !important;
        border-radius: 12px !important;
        min-width: 0 !important;
    }
    .kpi-title {
        font-size: 0.75rem !important;
    }
    .kpi-value {
        font-size: 1.35rem !important;
        margin-top: 4px !important;
    }
    .kpi-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.85rem !important;
    }
    .kpi-trend {
        font-size: 0.7rem !important;
    }

    /* MTTR Split Card on Mobile */
    #kpi-eng-mttr-card {
        grid-column: span 2 !important; /* Full width across the 2-column mobile KPI grid for clean readability */
    }
    .mttr-split-container {
        padding: 8px 10px !important;
        margin: 6px 0 !important;
        gap: 8px !important;
    }
    .mttr-split-label {
        font-size: 10px !important;
    }
    .mttr-split-val {
        font-size: 1.25rem !important;
        margin-top: 2px !important;
    }
    .mttr-split-divider {
        height: 24px !important;
    }

    /* Total ACV Card on Mobile */
    #kpi-total-acv-card {
        grid-column: span 2 !important; /* Full width across the 2-column mobile KPI grid */
    }
    .acv-card-inner {
        gap: 12px !important;
    }
    .acv-breakdown-col {
        padding: 6px 10px !important;
    }
    .acv-breakdown-row {
        font-size: 10.5px !important;
    }

    /* Swipeable Horizontal Tabs Header */
    .tabs-header {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding-bottom: 6px !important;
        gap: 8px !important;
        border-bottom: 1px solid var(--border-color) !important;
    }
    .tabs-header::-webkit-scrollbar {
        display: none !important;
    }
    .tab-btn {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 10px 14px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }
    .tab-btn.active {
        background: rgba(255, 255, 255, 0.08) !important;
    }

    /* Card Modules on Mobile */
    .card-module {
        padding: 14px !important;
        border-radius: 12px !important;
        gap: 14px !important;
    }

    /* Card Header Mobile Stacking */
    .card-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .card-header > div:last-child {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    .card-header input,
    .card-header select,
    .card-header button {
        width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box !important;
        height: 42px !important;
        font-size: 15px !important;
    }

    /* Table Containers for Smooth Inertia Touch Scroll */
    .table-container,
    div[style*="overflow-x: auto"] {
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
    }

    /* FullCalendar on Mobile */
    .calendar-wrapper {
        padding: 8px 4px !important;
    }
    #calendar {
        padding: 8px 4px !important;
        overflow: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .fc-toolbar {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .fc-toolbar-chunk {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }
    .fc .fc-toolbar-title {
        font-size: 1.05rem !important;
    }
    .fc-button {
        padding: 5px 8px !important;
        font-size: 11px !important;
    }
    .fc-col-header-cell-cushion {
        font-size: 11px !important;
        padding: 4px 2px !important;
    }
    .fc-timegrid-slot-label-cushion {
        font-size: 10px !important;
    }
    .fc-event-main {
        padding: 2px !important;
        font-size: 11px !important;
    }

    /* Modals Mobile Sizing */
    .modal-content,
    div[id$="Modal"] > div {
        width: 95vw !important;
        max-width: 95vw !important;
        padding: 16px !important;
        box-sizing: border-box !important;
    }
}

/* Part Order Form Desktop & Mobile Layout */
.parts-order-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.parts-order-shipping-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
.parts-order-city-state-zip {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 8px;
}
.parts-order-header-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 4.5fr 40px;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.part-order-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 4.5fr 40px;
    gap: 12px;
    align-items: center;
}
.part-order-mobile-label {
    display: none;
}
.part-row-delete-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}
.part-row-delete-btn:hover {
    background: rgba(239, 68, 68, 0.15);
}

@media (max-width: 768px) {
    /* Full-screen Part Request Modal on Mobile */
    #partsOrderModal > div {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        border: none !important;
        padding: 0 !important;
    }
    #partsOrderModal > div > div:first-child {
        padding: 16px !important;
    }
    #partsOrderModal form {
        padding-bottom: 40px;
    }
    
    .parts-order-info-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-bottom: 20px !important;
    }
    .parts-order-shipping-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-bottom: 20px !important;
    }
    .parts-order-city-state-zip {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    .parts-order-city-state-zip > div:first-child {
        grid-column: span 2;
    }
    .parts-order-header-row {
        display: none !important;
    }
    
    /* Structured Card Layout for each Part Row */
    .part-order-row {
        display: grid !important;
        grid-template-columns: 1fr 75px 44px !important;
        grid-template-areas: 
            "partno qty del"
            "desc desc desc" !important;
        gap: 10px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 8px !important;
        padding: 12px !important;
    }
    .part-order-col-partno {
        grid-area: partno;
    }
    .part-order-col-qty {
        grid-area: qty;
    }
    .part-order-col-desc {
        grid-area: desc;
    }
    .part-order-col-del {
        grid-area: del;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }
    .part-order-mobile-label {
        display: block !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        color: var(--text-muted) !important;
        margin-bottom: 4px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
    .part-row-delete-btn {
        height: 38px !important;
        width: 38px !important;
        background: rgba(239, 68, 68, 0.12) !important;
        border: 1px solid rgba(239, 68, 68, 0.3) !important;
        border-radius: 6px !important;
    }
    
    /* Mobile Modal Action Buttons */
    .parts-order-actions {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 10px !important;
        margin-top: 20px !important;
    }
    .parts-order-actions button {
        width: 100% !important;
        margin: 0 !important;
        height: 46px !important;
        font-size: 16px !important;
    }
}

/* ==========================================================================
   Illustrated Parts List (IPL) Component Styling
   ========================================================================== */
.ipl-tree-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.ipl-tree-category-header:hover {
    background: rgba(255, 255, 255, 0.06);
}
.ipl-tree-category-header .category-chevron {
    transition: transform 0.2s ease;
    font-size: 10px;
    color: var(--text-muted);
}
.ipl-tree-category.collapsed .category-chevron {
    transform: rotate(-90deg);
}
.ipl-tree-category.collapsed .ipl-tree-items {
    display: none;
}
.ipl-tree-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 8px;
    margin-top: 4px;
    margin-bottom: 8px;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
}
.ipl-tree-node {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    border: 1px solid transparent;
    gap: 8px;
}
.ipl-tree-node:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}
.ipl-tree-node.active {
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-primary);
    border-color: rgba(56, 189, 248, 0.3);
    font-weight: 600;
}
.ipl-tree-node .node-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}
.ipl-tree-node .node-icon {
    font-size: 11px;
    flex-shrink: 0;
    color: #38bdf8;
    opacity: 0.85;
}
.ipl-tree-node .node-title-text {
    white-space: normal;
    line-height: 1.35;
    word-break: break-word;
}
.ipl-tree-node .node-badge {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
    margin-left: auto;
}
.ipl-tree-node.active .node-badge {
    background: var(--accent-primary);
    color: white;
}

.ipl-callout-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.ipl-part-row {
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ipl-part-row td {
    padding: 12px 14px;
    vertical-align: top;
}
.ipl-part-row:hover {
    background: rgba(255, 255, 255, 0.04);
}
.ipl-part-row.active {
    background: rgba(56, 189, 248, 0.08) !important;
    border-left: 3px solid var(--accent-primary);
}

.ipl-part-note {
    display: inline-block;
    font-size: 12px;
    line-height: 1.5;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 7px 12px;
    max-width: 100%;
    word-break: break-word;
}
.ipl-part-note a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.ipl-part-no-copy {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    color: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.15s ease;
}
.ipl-part-no-copy:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.ipl-staged-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    gap: 12px;
}

.ipl-version-prefix-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 64px;
    padding: 6px 14px;
    font-family: monospace;
    font-size: 14px;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.ipl-version-prefix-chip:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.ipl-split-container {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 20px;
    min-height: 780px;
}

.ipl-sidebar {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-height: 750px;
    max-height: 980px;
}

#iplDiagramViewport {
    height: 560px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    cursor: grab;
    position: relative;
}

@media (max-width: 900px) {
    .ipl-split-container {
        grid-template-columns: 1fr !important;
    }
    .ipl-sidebar {
        max-height: 280px !important;
        min-height: 200px !important;
    }
    #iplDiagramViewport {
        height: 300px !important;
    }
}

/* ==========================================================================
   Service Guides & Technical Manuals Styles
   ========================================================================== */
.sg-split-container {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 18px;
    align-items: start;
}

.sg-sidebar {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-height: 700px;
    max-height: 860px;
}

.sg-content-pane {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-height: 700px;
    max-height: 860px;
}

.sg-cat-chip {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sg-cat-chip:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.sg-cat-chip.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
    font-weight: 700;
}

.sg-quick-chip {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
}

.sg-quick-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.sg-chapter-card {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
    background: var(--bg-card);
}

.sg-chapter-header {
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    user-select: none;
    transition: background 0.15s;
}

.sg-chapter-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sg-section-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 14px 8px 18px;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12.5px;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.35;
}

.sg-section-btn:hover {
    background: rgba(56, 189, 248, 0.08);
    color: #38bdf8;
}

.sg-section-btn.active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    font-weight: 600;
    border-left: 3px solid #10b981;
}

.sg-hazard-box {
    border-radius: 6px;
    padding: 12px 16px;
    margin: 12px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.sg-hazard-box.warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.sg-hazard-box.caution {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fcd34d;
}

.sg-step-box {
    display: flex;
    gap: 14px;
    margin: 12px 0;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    line-height: 1.5;
}

.sg-step-num {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-weight: 700;
    font-size: 11.5px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.sg-figure-frame {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    margin: 18px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.sg-figure-frame img {
    max-width: 100%;
    max-height: 480px;
    object-fit: contain;
    border-radius: 4px;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.sg-figure-caption {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    text-align: center;
}

@media (max-width: 900px) {
    .sg-split-container {
        grid-template-columns: 1fr !important;
    }
    .sg-sidebar {
        max-height: 260px !important;
        min-height: 180px !important;
    }
}

/* ==========================================================================
   Service Guide High-Contrast Navigation & Controls
   ========================================================================== */
#sgChapterJumpSelect,
#sgGuideSelect {
    background-color: var(--bg-input) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

#sgChapterJumpSelect:focus,
#sgGuideSelect:focus {
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 0 2px var(--accent-cyan-glow) !important;
}

#sgChapterJumpSelect option,
#sgGuideSelect option,
.select-filter option,
select option {
    background-color: var(--bg-input);
    color: var(--text-primary);
    padding: 8px 12px;
}

#sgChapterJumpSelect optgroup,
select optgroup {
    background-color: var(--bg-elevated);
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 12px;
    padding: 6px 8px;
}

/* Quick Jump Pill Chips */
.sg-quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
    outline: none;
    user-select: none;
}

.sg-quick-chip:hover {
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(59, 130, 246, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.sg-quick-chip:active,
.sg-quick-chip.active {
    background: rgba(59, 130, 246, 0.38) !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3) !important;
}

/* Refurb Ops Hub - Simpro Notes & Description formatting */
#refurbModalSimproDescription,
#refurbModalSimproNotes {
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.6;
}
#refurbModalSimproDescription *,
#refurbModalSimproNotes * {
    color: inherit !important;
    max-width: 100%;
    word-break: break-word;
}
#refurbModalSimproDescription div,
#refurbModalSimproNotes div {
    margin-bottom: 4px;
}


/* ==========================================================================
   THEME SWITCHER (SYSTEM / LIGHT / DARK) & LIGHT MODE POLISH
   ========================================================================== */
.theme-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.theme-switch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.16s ease;
    white-space: nowrap;
    line-height: 1;
}

.theme-switch-btn i {
    font-size: 11.5px;
}

.theme-switch-btn:hover {
    color: var(--text-primary);
    background: var(--hover-surface);
}

.theme-switch-btn.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .theme-switch-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.theme-switch-btn.active i.fa-sun {
    color: #f59e0b;
}
.theme-switch-btn.active i.fa-moon {
    color: #6366f1;
}
.theme-switch-btn.active i.fa-desktop {
    color: var(--accent-cyan);
}

.theme-switcher-sidebar {
    width: 100%;
    justify-content: space-between;
    border-radius: 8px;
    padding: 3px;
}

.theme-switcher-sidebar .theme-switch-btn {
    flex: 1;
    border-radius: 6px;
    padding: 6px 6px;
    font-size: 11px;
}

.theme-switcher-login {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 10005;
    box-shadow: var(--card-shadow);
}

@media (max-width: 640px) {
    .top-header .theme-switch-btn span {
        display: none;
    }
    .top-header .theme-switch-btn {
        padding: 7px 9px;
    }
}

/* Light Mode Global Polish */
[data-theme="light"] body {
    background-image:
        radial-gradient(circle at 10% 20%, rgba(220, 38, 38, 0.035) 0%, transparent 42%),
        radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.05) 0%, transparent 42%);
}

[data-theme="light"] .sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 2px 0 18px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .brand-text {
    background: linear-gradient(to right, #0f172a, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .menu-item.active {
    color: #0f172a;
    font-weight: 600;
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.11) 0%, rgba(2, 132, 199, 0.04) 100%);
    border-left: 3px solid var(--accent-primary);
    box-shadow: none;
}

[data-theme="light"] .menu-item.active svg,
[data-theme="light"] .menu-item.active i {
    color: var(--accent-primary);
}

[data-theme="light"] .sync-status {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
}

[data-theme="light"] .kpi-card,
[data-theme="light"] .card-module {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.045);
}

[data-theme="light"] .kpi-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
}

[data-theme="light"] .kpi-icon,
[data-theme="light"] .mttr-split-container,
[data-theme="light"] .acv-breakdown-col,
[data-theme="light"] .activity-icon-wrapper,
[data-theme="light"] .van-card,
[data-theme="light"] .ipl-tree-category-header,
[data-theme="light"] .ipl-staged-item,
[data-theme="light"] .sg-chapter-header,
[data-theme="light"] .sg-step-box {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .acv-divider,
[data-theme="light"] .progress-track {
    background: #e2e8f0;
}

[data-theme="light"] .ipl-part-note {
    color: #334155;
    background: #f8fafc;
    border-color: #cbd5e1;
}

[data-theme="light"] .ipl-part-no-copy {
    color: #0f172a;
    background: #f1f5f9;
    border-color: #cbd5e1;
}

[data-theme="light"] .ipl-part-row {
    border-bottom-color: #e2e8f0;
}

[data-theme="light"] .ipl-part-row:hover {
    background: rgba(15, 23, 42, 0.03);
}

[data-theme="light"] .sg-quick-chip {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

[data-theme="light"] .sg-quick-chip:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.4);
    color: #1d4ed8;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .sg-hazard-box.warning {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

[data-theme="light"] .sg-hazard-box.caution {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

[data-theme="light"] .sg-cat-chip.active,
[data-theme="light"] .sg-section-btn.active {
    color: #047857;
    background: rgba(16, 185, 129, 0.14);
}

[data-theme="light"] .badge.inventory {
    background: rgba(2, 132, 199, 0.12);
    color: #0369a1;
}

[data-theme="light"] .badge.job {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

[data-theme="light"] .modal-content {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.78;
}

[data-paper-preview="1"],
[data-paper-preview="1"] * {
    color-scheme: light;
}


/* =========================================================================
   ILS HOME LAUNCHPAD & SERVICE PIPELINE MAP (innlabserv.com Brand Theme)
   ========================================================================= */

.menu-item.active {
    color: white;
    background: linear-gradient(90deg, rgba(194, 32, 38, 0.28) 0%, rgba(194, 32, 38, 0.04) 100%);
    border-left: 3px solid #c22026;
    box-shadow: inset 0 0 12px rgba(194, 32, 38, 0.14);
}

.menu-item.active svg,
.menu-item.active i {
    color: #ef4444;
}

.btn-primary {
    background: linear-gradient(135deg, #c22026 0%, #951c20 100%);
    box-shadow: 0 4px 15px rgba(194, 32, 38, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(194, 32, 38, 0.45);
}

.sidebar-brand {
    cursor: pointer;
    transition: background 0.18s ease;
}

.sidebar-brand:hover {
    background: rgba(194, 32, 38, 0.06);
}

.sidebar-section-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 8px 14px 2px 14px;
    opacity: 0.85;
}

.top-header-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid rgba(194, 32, 38, 0.38);
    background: rgba(194, 32, 38, 0.12);
    color: #f87171;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.top-header-home-btn:hover {
    background: #c22026;
    border-color: #c22026;
    color: #ffffff;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(194, 32, 38, 0.35);
}

[data-theme="light"] .top-header-home-btn {
    background: rgba(194, 32, 38, 0.08);
    border-color: rgba(194, 32, 38, 0.35);
    color: #c22026;
}

[data-theme="light"] .top-header-home-btn:hover {
    background: #c22026;
    color: #ffffff;
}

/* Home Hero Banner (innlabserv.com Charcoal + Crimson + Scientific Nodes Motif) */
.ils-home-hero {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #1b1b1f 0%, #2b2b2b 54%, #3d1215 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 28px 32px;
    box-shadow: 0 14px 34px -8px rgba(0, 0, 0, 0.42);
    color: #ffffff;
    margin-bottom: 22px;
}

[data-theme="light"] .ils-home-hero {
    box-shadow: 0 12px 30px -6px rgba(43, 43, 43, 0.24);
    border-color: rgba(194, 32, 38, 0.28);
}

.ils-home-hero-nodes {
    position: absolute;
    right: -10px;
    top: 0;
    height: 100%;
    width: 52%;
    opacity: 0.18;
    pointer-events: none;
}

.ils-home-hero-top {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.ils-home-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f8fafc;
    margin-bottom: 10px;
}

.ils-home-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c22026;
    box-shadow: 0 0 8px #ef4444;
}

.ils-home-hero-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.18;
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

.ils-home-hero-subtitle {
    font-size: 0.94rem;
    color: #d4d4d8;
    max-width: 680px;
    line-height: 1.5;
    margin: 0;
}

.ils-home-logo-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.ils-home-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

/* Global Search & Quick-Action Bar inside Hero */
.ils-home-search-row {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    max-width: 820px;
}

.ils-home-search-scope {
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(15, 23, 42, 0.65);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.ils-home-search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.ils-home-search-input {
    width: 100%;
    padding: 11px 16px 11px 38px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(15, 23, 42, 0.65);
    color: #ffffff;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ils-home-search-input::placeholder {
    color: #cbd5e1;
    opacity: 0.75;
}

.ils-home-search-input:focus {
    border-color: #c22026;
    box-shadow: 0 0 0 3px rgba(194, 32, 38, 0.28);
}

.ils-home-cta-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: 1px solid #c22026;
    background: #c22026;
    color: #ffffff;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-radius 0.28s ease, background-color 0.2s ease, transform 0.15s ease;
    box-shadow: 0 4px 14px rgba(194, 32, 38, 0.4);
}

.ils-home-cta-btn:hover {
    background: #951c20;
    border-color: #951c20;
    border-radius: 33px;
    transform: translateY(-1px);
}

/* Quick-Action Utility Strip */
.ils-home-quick-strip {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ils-home-quick-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ils-home-quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ils-home-quick-chip:hover {
    background: #c22026;
    border-color: #c22026;
    color: #ffffff;
    border-radius: 999px;
    transform: translateY(-1px);
}

.ils-home-quick-chip.primary-chip {
    background: #c22026;
    border-color: #c22026;
    color: #ffffff;
    font-weight: 700;
}

.ils-home-quick-chip.primary-chip:hover {
    background: #951c20;
}

/* End-to-End Service Pipeline Strip (Concept 4) */
.ils-pipeline-bar {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 22px;
    box-shadow: var(--card-shadow);
}

[data-theme="light"] .ils-pipeline-bar {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px -6px rgba(15, 23, 42, 0.08);
}

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

.ils-pipeline-stages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 900px) {
    .ils-pipeline-stages {
        grid-template-columns: 1fr;
    }
}

.ils-pipeline-stage-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 10px;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-left: 4px solid #c22026;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.ils-pipeline-stage-card.stage-2 {
    border-left-color: #2563eb;
}

.ils-pipeline-stage-card.stage-3 {
    border-left-color: #10b981;
}

.ils-pipeline-stage-card:hover,
.ils-pipeline-stage-card.active-stage {
    transform: translateY(-2px);
    border-color: #c22026;
    box-shadow: 0 8px 18px -6px rgba(194, 32, 38, 0.2);
}

[data-theme="light"] .ils-pipeline-stage-card {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Pillar Section Headers */
.ils-pillar-section {
    margin-bottom: 26px;
}

.ils-pillar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.ils-pillar-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(194, 32, 38, 0.14);
    color: #ef4444;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

[data-theme="light"] .ils-pillar-badge {
    background: rgba(194, 32, 38, 0.1);
    color: #c22026;
}

/* Mainview Launchpad Cards (Inspired by innlabserv.com elevated blurbs) */
.ils-mainview-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px;
}

.ils-mainview-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 20px;
}

@media (max-width: 640px) {
    .ils-mainview-grid-2,
    .ils-mainview-grid-3 {
        grid-template-columns: 1fr;
    }
    .ils-home-hero {
        padding: 20px 18px;
    }
    .ils-home-hero-title {
        font-size: 1.4rem;
    }
}

.ils-hub-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-top: 4px solid #c22026;
    border-radius: 10px;
    padding: 22px 22px 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 18px -6px rgba(0, 0, 0, 0.28);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
}

[data-theme="light"] .ils-hub-card {
    background: #ffffff;
    border-color: #cbd5e1;
    border-top: 4px solid #c22026;
    box-shadow: 0 10px 18px -6px rgba(0, 0, 0, 0.12);
}

.ils-hub-card.accent-charcoal { border-top-color: #3b82f6; }
.ils-hub-card.accent-purple { border-top-color: #8b5cf6; }
.ils-hub-card.accent-emerald { border-top-color: #10b981; }
.ils-hub-card.accent-amber { border-top-color: #f59e0b; }
.ils-hub-card.accent-cyan { border-top-color: #06b6d4; }

.ils-hub-card:hover {
    transform: translateY(-4px);
    border-color: #c22026;
    box-shadow: 0 16px 28px -8px rgba(194, 32, 38, 0.22);
}

.ils-hub-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ils-hub-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(194, 32, 38, 0.12);
    border: 1px solid rgba(194, 32, 38, 0.28);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

[data-theme="light"] .ils-hub-icon-box {
    background: rgba(194, 32, 38, 0.09);
    color: #c22026;
}

.ils-hub-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 3px 0;
}

.ils-hub-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.38;
}

.ils-hub-status-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(194, 32, 38, 0.14);
    color: #f87171;
    white-space: nowrap;
}

[data-theme="light"] .ils-hub-status-badge {
    background: rgba(194, 32, 38, 0.1);
    color: #c22026;
}

/* Micro-Stats Strip inside each Hub Card */
.ils-hub-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 11px 10px;
    border-radius: 8px;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    margin-bottom: 14px;
    text-align: center;
}

[data-theme="light"] .ils-hub-stats-grid {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.ils-hub-stat-val {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.ils-hub-stat-lbl {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 2px;
}

/* 1-Click Sub-Tab Deep Link Pills */
.ils-hub-deeplinks-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 7px;
}

.ils-hub-deeplinks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.ils-deeplink-pill {
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--surface-light);
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

[data-theme="light"] .ils-deeplink-pill {
    background: #f2f2f2;
    border-color: #d4d4d8;
    color: #2b2b2b;
}

.ils-deeplink-pill:hover {
    background: #c22026;
    border-color: #c22026;
    color: #ffffff;
    border-radius: 999px;
    transform: translateY(-1px);
}

/* Primary Launch Button on each Hub Card (innlabserv.com button-fill style) */
.ils-hub-launch-btn {
    width: 100%;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid #c22026;
    background: #c22026;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: border-radius 0.28s ease, background-color 0.2s ease;
}

.ils-hub-launch-btn:hover {
    background: #951c20;
    border-color: #951c20;
    border-radius: 33px;
}


/* =========================================================================
   INNLABSERV.COM HORIZONTAL TOP NAVIGATION BAR & DROPDOWN MENUS
   (Replaces Left Sidebar with Top Header + Sub-Tab Dropdowns)
   ========================================================================= */
.app-container {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh;
}

.sidebar.ils-topnav-header {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 72px;
    z-index: 1050 !important;
    background: #12161f !important;
    border-right: none !important;
    border-bottom: 3px solid #c22026 !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
    padding: 0 !important;
    display: block !important;
    overflow: visible !important;
}

[data-theme="light"] .sidebar.ils-topnav-header {
    background: #ffffff !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}

.ils-topnav-inner {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* Left Brand Logo (Matches innlabserv.com Header) */
.sidebar-brand.ils-topnav-brand {
    padding: 10px 0 !important;
    border-bottom: none !important;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex-shrink: 0;
    background: transparent !important;
}

.ils-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: #c22026;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(194, 32, 38, 0.35);
    flex-shrink: 0;
}

.ils-brand-wordmark {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #ff4d52;
    line-height: 1;
    white-space: nowrap;
}

[data-theme="light"] .ils-brand-wordmark {
    color: #c22026;
}

/* Center Horizontal Menu with Dropdowns */
.sidebar-menu.ils-topnav-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
    flex-wrap: wrap;
    flex-grow: 0 !important;
}

.menu-item.ils-topnav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 13px !important;
    border-radius: 7px !important;
    border-left: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #e2e8f0 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: color 0.18s ease, background-color 0.18s ease;
    white-space: nowrap;
}

[data-theme="light"] .menu-item.ils-topnav-item {
    color: #2b2b2b !important;
}

.menu-item.ils-topnav-item:hover,
.menu-item.ils-topnav-item.active {
    color: #ff5a5f !important;
    background: rgba(194, 32, 38, 0.12) !important;
}

[data-theme="light"] .menu-item.ils-topnav-item:hover,
[data-theme="light"] .menu-item.ils-topnav-item.active {
    color: #c22026 !important;
    background: rgba(194, 32, 38, 0.08) !important;
}

.ils-topnav-chevron {
    font-size: 10px;
    opacity: 0.75;
    transition: transform 0.18s ease;
}

.menu-item.ils-topnav-item:hover .ils-topnav-chevron,
.ils-topnav-account-wrap:hover .ils-topnav-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* Sub-Tab Dropdown Panel */
.ils-topnav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 235px;
    background: #181d29;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 3px solid #c22026;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    padding: 8px;
    margin-top: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 1200;
}

/* Invisible hover bridge so moving cursor into dropdown never closes it */
.ils-topnav-dropdown::before,
.ils-topnav-system-dropdown::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.ils-topnav-dropdown.ils-topnav-dropdown-right {
    left: auto;
    right: 0;
}

[data-theme="light"] .ils-topnav-dropdown {
    background: #ffffff;
    border-color: #cbd5e1;
    border-top: 3px solid #c22026;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.menu-item.ils-topnav-item:hover .ils-topnav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ils-topnav-dropdown-title {
    padding: 6px 10px 5px 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4px;
}

.ils-topnav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 11px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

[data-theme="light"] .ils-topnav-dropdown-item {
    color: #1e293b;
}

.ils-topnav-dropdown-item i {
    width: 16px;
    text-align: center;
    color: #ef4444;
    font-size: 12.5px;
}

[data-theme="light"] .ils-topnav-dropdown-item i {
    color: #c22026;
}

.ils-topnav-dropdown-item:hover {
    background: rgba(194, 32, 38, 0.12);
    color: #ff5a5f;
    padding-left: 14px;
}

[data-theme="light"] .ils-topnav-dropdown-item:hover {
    background: rgba(194, 32, 38, 0.08);
    color: #c22026;
}

/* Right Side Controls (Parts Search + Portal & Account Dropdown) */
.ils-topnav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ils-topnav-search-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--surface-light);
    color: var(--text-primary);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.ils-topnav-search-pill:hover {
    border-color: #c22026;
    color: #ef4444;
}

[data-theme="light"] .ils-topnav-search-pill:hover {
    color: #c22026;
}

.ils-topnav-account-wrap {
    position: relative;
}

.ils-topnav-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--surface-light);
    color: var(--text-primary);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.ils-topnav-account-wrap:hover .ils-topnav-account-btn {
    border-color: #c22026;
}

.sidebar-footer.ils-topnav-system-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 265px;
    background: #181d29;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 3px solid #c22026;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    padding: 14px !important;
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.18s ease;
    z-index: 1250;
}

[data-theme="light"] .sidebar-footer.ils-topnav-system-dropdown {
    background: #ffffff;
    border-color: #cbd5e1;
    border-top: 3px solid #c22026;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.ils-topnav-account-wrap:hover .sidebar-footer.ils-topnav-system-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Full-width Main Content beneath the Top Navbar */
.main-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 24px 36px 24px;
    box-sizing: border-box;
}

.ils-home-top-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 14px;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .ils-home-top-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .ils-topnav-inner {
        padding: 10px 16px;
    }
    .main-content {
        padding: 14px 12px 32px 12px !important;
    }
}


/* =========================================================================
   SINGLE-ROW TOPNAV REFINEMENTS (Compact Spacing & Theme-Aware Colors)
   ========================================================================= */
.sidebar.ils-topnav-header {
    min-height: 58px !important;
}

.ils-topnav-inner {
    min-height: 58px !important;
    padding: 0 24px !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
}

.ils-brand-mark {
    width: 34px !important;
    height: 34px !important;
    border-radius: 5px !important;
}

.ils-brand-wordmark {
    font-size: 1.18rem !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
}

[data-theme="light"] .ils-brand-wordmark {
    color: #c22026 !important;
}

.sidebar-menu.ils-topnav-menu {
    flex-wrap: nowrap !important;
    gap: 3px !important;
    justify-content: flex-end !important;
}

.menu-item.ils-topnav-item {
    padding: 7px 10px !important;
    font-size: 12.6px !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
}

.ils-topnav-chevron {
    font-size: 9px !important;
}

/* Role-Based Live Landing Workspace Mount inside #view-home */
#homeRoleLiveWorkspaceMount > .tab-pane,
#homeRoleLiveWorkspaceMount > .home-docked-workspace-pane {
    display: block !important;
    animation: fadeIn 0.2s ease;
}

#homeRoleLiveWorkspaceMount .card-module {
    margin-top: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

#homeRoleLiveWorkspaceMount .card-module > .card-header {
    padding: 0 0 10px 0 !important;
}

#homeRoleLiveWorkspaceMount .calendar-wrapper {
    padding: 0 !important;
}

/* =========================================================================
   MOBILE RESPONSIVE NAVIGATION & LAYOUT (Phones & Tablets <= 960px)
   ========================================================================= */
.ils-mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

[data-theme="light"] .ils-mobile-nav-toggle {
    border-color: rgba(15, 23, 42, 0.16);
    background: rgba(15, 23, 42, 0.05);
    color: #1e293b;
}

@media (max-width: 960px) {
    .sidebar.ils-topnav-header {
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 56px !important;
        z-index: 1050 !important;
        overflow: visible !important;
    }

    .ils-topnav-inner {
        flex-wrap: wrap !important;
        padding: 0 14px !important;
        min-height: 56px !important;
        gap: 0 !important;
    }

    .sidebar-brand.ils-topnav-brand {
        width: 100% !important;
        min-height: 56px !important;
        padding: 8px 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .ils-brand-wordmark {
        font-size: 1.05rem !important;
    }

    .ils-mobile-nav-toggle {
        display: inline-flex !important;
    }

    #mobileMenuBtn {
        display: none !important;
    }

    .sidebar-menu.ils-topnav-menu {
        display: none !important;
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        padding: 10px 0 16px 0 !important;
        max-height: calc(100vh - 60px) !important;
        overflow-y: auto !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    [data-theme="light"] .sidebar-menu.ils-topnav-menu {
        border-top-color: rgba(15, 23, 42, 0.1);
    }

    .sidebar.ils-topnav-header.mobile-open .sidebar-menu.ils-topnav-menu {
        display: flex !important;
    }

    .sidebar-menu.ils-topnav-menu > .menu-item.ils-topnav-item {
        width: 100% !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        padding: 10px 12px !important;
        font-size: 13.5px !important;
        border-radius: 8px !important;
    }

    .sidebar-menu.ils-topnav-menu .ils-topnav-dropdown {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-top: 8px !important;
        padding: 8px !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
        display: none !important;
        border-radius: 8px !important;
    }

    .sidebar-menu.ils-topnav-menu .ils-topnav-dropdown::before {
        display: none !important;
    }

    .sidebar-menu.ils-topnav-menu > .menu-item.ils-topnav-item.mobile-sub-open > .ils-topnav-dropdown,
    .sidebar-menu.ils-topnav-menu > .menu-item.ils-topnav-item.active > .ils-topnav-dropdown {
        display: flex !important;
        flex-direction: column !important;
    }
}

@media (max-width: 768px) {
    #homeRoleSpotlightGrid {
        grid-template-columns: 1fr !important;
    }

    #homePinnedShortcutsGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}


