/* ============================================
   Obvera — Supreme Enterprise UI System
   Refined, premium, depth-rich design
   ============================================ */

/* ---------- Foundation ---------- */
:root {
    --ob-primary: #4f46e5;
    --ob-primary-hover: #4338ca;
    --ob-primary-light: #eef2ff;
    --ob-primary-subtle: #e0e7ff;
    --ob-primary-glow: rgba(79, 70, 229, 0.15);
    --ob-dark: #0f172a;
    --ob-sidebar-bg: #0f172a;
    --ob-sidebar-hover: rgba(255, 255, 255, 0.06);
    --ob-sidebar-active: rgba(99, 102, 241, 0.15);
    --ob-body-bg: #f1f5f9;
    --ob-card-bg: #ffffff;
    --ob-border: #e2e8f0;
    --ob-border-light: #f1f5f9;
    --ob-text: #0f172a;
    --ob-text-secondary: #64748b;
    --ob-text-muted: #94a3b8;
    --ob-success: #059669;
    --ob-success-light: #ecfdf5;
    --ob-warning: #d97706;
    --ob-warning-light: #fffbeb;
    --ob-danger: #dc2626;
    --ob-danger-light: #fef2f2;
    --ob-info: #0891b2;
    --ob-info-light: #ecfeff;
    --ob-radius: 0.5rem;
    --ob-radius-lg: 0.75rem;
    --ob-radius-xl: 1rem;
    --ob-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --ob-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --ob-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --ob-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --ob-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --ob-shadow-glow: 0 0 20px rgba(79, 70, 229, 0.12);
    --ob-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --ob-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--ob-body-bg);
    color: var(--ob-text);
    font-size: 0.875rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Override Bootstrap Primary ---------- */
.btn-primary {
    background: linear-gradient(135deg, #6366f1, var(--ob-primary));
    border: none;
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.3), 0 1px 2px rgba(79, 70, 229, 0.2);
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    border: none;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
    transform: translateY(-1px);
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.3);
}
.btn-outline-primary {
    color: var(--ob-primary);
    border-color: var(--ob-primary-subtle);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--ob-primary-light);
    border-color: var(--ob-primary);
    color: var(--ob-primary);
}
.bg-primary { background-color: var(--ob-primary) !important; }
.text-primary { color: var(--ob-primary) !important; }
a { color: var(--ob-primary); transition: color var(--ob-transition); }
a:hover { color: var(--ob-primary-hover); }

/* ---------- Utility ---------- */
.cursor-pointer { cursor: pointer; }
.bg-purple { background-color: #7c3aed !important; color: #fff !important; }
.text-gradient {
    background: linear-gradient(135deg, var(--ob-primary), #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.animate-in {
    animation: fadeSlideIn 0.4s ease-out both;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Buttons ---------- */
.btn {
    font-weight: 500;
    font-size: 0.8125rem;
    border-radius: var(--ob-radius);
    padding: 0.5rem 1.125rem;
    transition: all var(--ob-transition);
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}
.btn-lg {
    font-size: 0.875rem;
    padding: 0.625rem 1.5rem;
    border-radius: var(--ob-radius-lg);
}
.btn-sm {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
}
.btn-outline-secondary {
    border-color: var(--ob-border);
    color: var(--ob-text-secondary);
}
.btn-outline-secondary:hover {
    background: var(--ob-body-bg);
    border-color: var(--ob-text-muted);
    color: var(--ob-text);
}
.btn-ghost {
    background: transparent;
    border: none;
    color: var(--ob-text-secondary);
    padding: 0.375rem 0.75rem;
}
.btn-ghost:hover {
    background: var(--ob-body-bg);
    color: var(--ob-text);
}

/* ---------- Cards ---------- */
.card {
    border: 1px solid var(--ob-border);
    border-radius: var(--ob-radius-xl);
    box-shadow: var(--ob-shadow-xs);
    background: var(--ob-card-bg);
    transition: all var(--ob-transition);
}
.card:hover {
    box-shadow: var(--ob-shadow-sm);
}
.card-header {
    background: var(--ob-card-bg);
    border-bottom: 1px solid var(--ob-border-light);
    padding: 1rem 1.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ob-text);
    letter-spacing: -0.01em;
    border-radius: var(--ob-radius-xl) var(--ob-radius-xl) 0 0 !important;
}

/* ---------- Tables ---------- */
.table {
    font-size: 0.8125rem;
    margin-bottom: 0;
}
.table th {
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ob-text-muted);
    border-bottom: 1px solid var(--ob-border);
    padding: 0.875rem 1.25rem;
    white-space: nowrap;
    background: #fafbfc;
}
.table td {
    padding: 0.875rem 1.25rem;
    vertical-align: middle;
    color: var(--ob-text);
    border-bottom: 1px solid var(--ob-border-light);
}
.table-hover tbody tr {
    transition: background var(--ob-transition);
}
.table-hover tbody tr:hover {
    background-color: #f8faff;
}
.table-light {
    --bs-table-bg: #fafbfc;
}

/* ---------- Badges ---------- */
.badge {
    font-weight: 500;
    font-size: 0.6875rem;
    letter-spacing: 0.02em;
    padding: 0.3em 0.65em;
    border-radius: 0.375rem;
}
.badge.rounded-pill {
    border-radius: 50rem;
    padding: 0.35em 0.8em;
}
/* Soft badge variants */
.badge-soft-primary { background: var(--ob-primary-light); color: var(--ob-primary); }
.badge-soft-success { background: var(--ob-success-light); color: var(--ob-success); }
.badge-soft-warning { background: var(--ob-warning-light); color: var(--ob-warning); }
.badge-soft-danger { background: var(--ob-danger-light); color: var(--ob-danger); }
.badge-soft-info { background: var(--ob-info-light); color: var(--ob-info); }
.badge-soft-secondary { background: #f1f5f9; color: var(--ob-text-secondary); }

/* ---------- Forms ---------- */
.form-label {
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--ob-text);
    margin-bottom: 0.375rem;
}
.form-control, .form-select {
    font-size: 0.8125rem;
    border: 1px solid var(--ob-border);
    border-radius: var(--ob-radius);
    padding: 0.5rem 0.875rem;
    transition: all var(--ob-transition);
    background: var(--ob-card-bg);
}
.form-control:focus, .form-select:focus {
    border-color: var(--ob-primary);
    box-shadow: 0 0 0 3px var(--ob-primary-glow);
}
.form-control::placeholder {
    color: var(--ob-text-muted);
    font-weight: 400;
}
.form-control-lg, .form-select-lg {
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    border-radius: var(--ob-radius-lg);
}

/* ---------- Nav Tabs ---------- */
.nav-tabs {
    border-bottom: 2px solid var(--ob-border-light);
    gap: 0;
}
.nav-tabs .nav-link {
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--ob-text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1.25rem;
    margin-bottom: -2px;
    transition: all var(--ob-transition);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.nav-tabs .nav-link:hover {
    color: var(--ob-text);
    border-bottom-color: var(--ob-border);
    background: transparent;
}
.nav-tabs .nav-link.active {
    color: var(--ob-primary);
    border-bottom-color: var(--ob-primary);
    background: transparent;
    font-weight: 600;
}
.nav-tabs .nav-link .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    background: var(--ob-border-light);
    color: var(--ob-text-muted);
    border-radius: 50rem;
    padding: 0 0.375rem;
}
.nav-tabs .nav-link.active .tab-count {
    background: var(--ob-primary-subtle);
    color: var(--ob-primary);
}

/* ---------- Alerts ---------- */
.alert {
    border-radius: var(--ob-radius-lg);
    border: none;
    font-size: 0.8125rem;
    font-weight: 500;
    box-shadow: var(--ob-shadow-sm);
}
.alert-success {
    background: var(--ob-success-light);
    color: var(--ob-success);
}
.alert-danger {
    background: var(--ob-danger-light);
    color: var(--ob-danger);
}
.alert-warning {
    background: var(--ob-warning-light);
    color: var(--ob-warning);
}

/* ============================================
   Operations Sidebar — Premium Dark
   ============================================ */
.ops-sidebar {
    width: 260px;
    min-height: 100vh;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}
/* Μεταφορική (6/10): το μενού κυλάει μόνο του, ανεξάρτητα από το περιεχόμενο — δεν κόβεται όταν είναι ψηλότερο από την οθόνη */
.ops-sidebar.ops-sidebar-scroll {
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.ops-sidebar.ops-sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); }
.sidebar-header {
    padding: 1.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.sidebar-brand-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--ob-radius);
    background: linear-gradient(135deg, #6366f1, #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}
.sidebar-brand-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.025em;
    line-height: 1.2;
}
.sidebar-brand-sub {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    letter-spacing: 0.02em;
}
.sidebar-section-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
    padding: 1.5rem 1.25rem 0.5rem;
}
.ops-sidebar .nav-link {
    padding: 0.5rem 0.875rem;
    border-radius: var(--ob-radius);
    margin: 1px 0.625rem;
    font-size: 0.8125rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    transition: all var(--ob-transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}
.ops-sidebar .nav-link i {
    font-size: 1.0625rem;
    width: 1.375rem;
    text-align: center;
    transition: all var(--ob-transition);
}
.ops-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
}
.ops-sidebar .nav-link.active {
    background: var(--ob-sidebar-active);
    color: #fff;
    font-weight: 500;
}
.ops-sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    left: -0.625rem;
    top: 0.375rem;
    bottom: 0.375rem;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #818cf8, #6366f1);
}
.ops-sidebar .nav-link.active i { color: #a5b4fc; }

/* Sidebar user profile */
.sidebar-profile {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}
.sidebar-profile-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.sidebar-profile-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
}
.sidebar-profile-email {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.35);
}
.sidebar-signout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    padding: 0.375rem 0;
    margin-top: 0.5rem;
    transition: color var(--ob-transition);
}
.sidebar-signout:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- Top Bar ---------- */
.ob-topbar {
    background: var(--ob-card-bg);
    border-bottom: 1px solid var(--ob-border);
    padding: 0 2rem;
    min-height: 3.5rem;
    box-shadow: var(--ob-shadow-xs);
    position: sticky;
    top: 0;
    z-index: 100;
}
.breadcrumb {
    font-size: 0.8125rem;
    margin: 0;
}
.breadcrumb-item a {
    color: var(--ob-text-muted);
    text-decoration: none;
    transition: color var(--ob-transition);
}
.breadcrumb-item a:hover { color: var(--ob-primary); }
.breadcrumb-item.active {
    color: var(--ob-text);
    font-weight: 500;
}

/* ============================================
   KPI Cards — Premium
   ============================================ */
.kpi-card {
    border: 1px solid var(--ob-border);
    border-radius: var(--ob-radius-xl);
    padding: 1.5rem;
    background: var(--ob-card-bg);
    transition: all var(--ob-transition);
    position: relative;
    overflow: hidden;
}
.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--ob-radius-xl) var(--ob-radius-xl) 0 0;
    opacity: 0;
    transition: opacity var(--ob-transition);
}
.kpi-card:hover {
    box-shadow: var(--ob-shadow-md);
    border-color: transparent;
    transform: translateY(-2px);
}
.kpi-card:hover::before {
    opacity: 1;
}
.kpi-card.kpi-primary::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
.kpi-card.kpi-warning::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.kpi-card.kpi-info::before { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.kpi-card.kpi-success::before { background: linear-gradient(90deg, #10b981, #34d399); }
.kpi-card.kpi-danger::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.kpi-card:hover.kpi-primary { box-shadow: 0 8px 25px rgba(99, 102, 241, 0.12); }
.kpi-card:hover.kpi-warning { box-shadow: 0 8px 25px rgba(245, 158, 11, 0.12); }
.kpi-card:hover.kpi-info { box-shadow: 0 8px 25px rgba(6, 182, 212, 0.12); }
.kpi-card:hover.kpi-success { box-shadow: 0 8px 25px rgba(16, 185, 129, 0.12); }
.kpi-card:hover.kpi-danger { box-shadow: 0 8px 25px rgba(239, 68, 68, 0.12); }
.kpi-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--ob-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.kpi-icon-primary { background: linear-gradient(135deg, #eef2ff, #e0e7ff); color: var(--ob-primary); }
.kpi-icon-warning { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: var(--ob-warning); }
.kpi-icon-info { background: linear-gradient(135deg, #ecfeff, #cffafe); color: var(--ob-info); }
.kpi-icon-success { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: var(--ob-success); }
.kpi-icon-danger { background: linear-gradient(135deg, #fef2f2, #fee2e2); color: var(--ob-danger); }
.kpi-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--ob-text);
}
.kpi-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ob-text-muted);
    margin-top: 0.25rem;
    letter-spacing: 0.01em;
}
.kpi-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 50rem;
    margin-top: 0.5rem;
}
.kpi-trend.up { background: var(--ob-success-light); color: var(--ob-success); }
.kpi-trend.down { background: var(--ob-danger-light); color: var(--ob-danger); }

/* ============================================
   Status Pipeline — Refined
   ============================================ */
.status-pipeline {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    padding: 0;
    margin: 0 0 1.5rem;
    border-radius: var(--ob-radius-lg);
    overflow: hidden;
}
.status-pipeline .pipeline-step {
    flex: 1;
    text-align: center;
    padding: 0.625rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--ob-text-muted);
    background: #f1f5f9;
    position: relative;
    white-space: nowrap;
    transition: all var(--ob-transition-slow);
}
.status-pipeline .pipeline-step.completed {
    background: var(--ob-primary);
    color: #fff;
}
.status-pipeline .pipeline-step.current {
    background: var(--ob-primary-subtle);
    color: var(--ob-primary);
    font-weight: 700;
}

/* ============================================
   Wizard Progress (Step Circles)
   ============================================ */
.wizard-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
}
.wizard-step {
    display: flex;
    align-items: center;
    gap: 0;
}
.wizard-step-circle {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
    transition: all var(--ob-transition);
    background: #e2e8f0;
    color: var(--ob-text-muted);
}
.wizard-step.completed .wizard-step-circle {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
}
.wizard-step.active .wizard-step-circle {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    box-shadow: 0 0 0 4px var(--ob-primary-subtle), 0 2px 6px rgba(99, 102, 241, 0.25);
}
.wizard-step-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--ob-text-muted);
    margin-left: 0.5rem;
    white-space: nowrap;
}
.wizard-step.active .wizard-step-label,
.wizard-step.completed .wizard-step-label {
    color: var(--ob-text);
    font-weight: 600;
}
.wizard-step-line {
    width: 3rem;
    height: 2px;
    background: #e2e8f0;
    margin: 0 0.5rem;
    flex-shrink: 0;
    transition: background var(--ob-transition);
}
.wizard-step.completed + .wizard-step-line,
.wizard-step.completed ~ .wizard-step-line {
    background: var(--ob-primary);
}

/* ============================================
   Recent Cases Table — Enhanced
   ============================================ */
.cases-table-card .card-header {
    padding: 1.125rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cases-table-card .table td:first-child {
    font-weight: 600;
    color: var(--ob-primary);
}
.cases-table-card .table tr {
    cursor: pointer;
}
.case-row-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.case-row-customer {
    display: flex;
    flex-direction: column;
}
.case-row-customer span:first-child {
    font-weight: 500;
    color: var(--ob-text);
}
.case-row-customer span:last-child {
    font-size: 0.6875rem;
    color: var(--ob-text-muted);
}
.officer-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.officer-avatar {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5625rem;
    font-weight: 700;
    color: var(--ob-primary);
    flex-shrink: 0;
}
.officer-avatar.unassigned {
    background: #f1f5f9;
    color: var(--ob-text-muted);
}

/* ============================================
   High Priority Panel
   ============================================ */
.priority-card .card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.priority-card .card-header .priority-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--ob-danger);
    animation: pulse-subtle 2s ease-in-out infinite;
}
.priority-item {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--ob-border-light);
    transition: background var(--ob-transition);
    text-decoration: none;
    color: inherit;
}
.priority-item:last-child { border-bottom: none; }
.priority-item:hover {
    background: #fafbff;
    color: inherit;
}
.priority-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}
.priority-item-number {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--ob-text);
}
.priority-item-status {
    font-size: 0.625rem;
}
.priority-item-customer {
    font-size: 0.75rem;
    color: var(--ob-text-secondary);
}
.priority-item-deadline {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    color: var(--ob-danger);
    margin-top: 0.375rem;
    font-weight: 500;
}

/* ============================================
   Message Thread
   ============================================ */
.message-thread {
    padding: 0.5rem 0;
}
.message-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: var(--ob-radius-lg);
    font-size: 0.8125rem;
    line-height: 1.6;
    box-shadow: var(--ob-shadow-xs);
}
.message-bubble.sent {
    background: linear-gradient(135deg, #6366f1, var(--ob-primary));
    color: #fff;
    border-bottom-right-radius: 0.25rem;
}
.message-bubble.received {
    background: #f8fafc;
    color: var(--ob-text);
    border: 1px solid var(--ob-border-light);
    border-bottom-left-radius: 0.25rem;
}
.message-meta {
    font-size: 0.6875rem;
    margin-top: 0.25rem;
}

/* ============================================
   Portal Navbar — Premium
   ============================================ */
.portal-navbar {
    background: var(--ob-card-bg);
    border-bottom: 1px solid var(--ob-border);
    padding: 0 1.5rem;
    height: 3.75rem;
    box-shadow: var(--ob-shadow-xs);
}
.portal-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.025em;
    color: var(--ob-primary);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}
.portal-brand-icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--ob-radius);
    background: linear-gradient(135deg, #6366f1, #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: #fff;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
}
.portal-navbar .nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ob-text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--ob-radius);
    transition: all var(--ob-transition);
}
.portal-navbar .nav-link:hover {
    color: var(--ob-text);
    background: var(--ob-body-bg);
}
.portal-user-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border-radius: 50rem;
    transition: background var(--ob-transition);
    border: 1px solid transparent;
}
.portal-user-trigger:hover {
    background: var(--ob-body-bg);
    border-color: var(--ob-border);
}
.portal-user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.6875rem;
}

/* ============================================
   Portal Dashboard — Case Cards
   ============================================ */
.portal-greeting {
    margin-bottom: 2rem;
}
.portal-greeting h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--ob-text);
    margin-bottom: 0.25rem;
}
.portal-greeting p {
    color: var(--ob-text-muted);
    font-size: 0.875rem;
    margin: 0;
}
.portal-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.portal-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--ob-card-bg);
    border: 1px solid var(--ob-border);
    border-radius: var(--ob-radius-lg);
    flex: 1;
    min-width: 150px;
    transition: all var(--ob-transition);
}
.portal-stat:hover {
    box-shadow: var(--ob-shadow);
    transform: translateY(-1px);
}
.portal-stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--ob-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}
.portal-stat-value {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1;
    color: var(--ob-text);
}
.portal-stat-label {
    font-size: 0.6875rem;
    color: var(--ob-text-muted);
    font-weight: 500;
}
.case-card {
    border: 1px solid var(--ob-border);
    border-radius: var(--ob-radius-xl);
    background: var(--ob-card-bg);
    transition: all var(--ob-transition);
    overflow: hidden;
    position: relative;
}
.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity var(--ob-transition);
    background: linear-gradient(90deg, #6366f1, #818cf8);
}
.case-card:hover {
    border-color: var(--ob-primary-subtle);
    box-shadow: var(--ob-shadow-md);
    transform: translateY(-3px);
}
.case-card:hover::before {
    opacity: 1;
}
.case-card .card-body { padding: 1.375rem; }
.case-card-number {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--ob-text);
    letter-spacing: -0.01em;
}
.case-card-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--ob-text-muted);
    margin-bottom: 0.375rem;
}
.case-card-meta i { font-size: 0.8125rem; }
.doc-progress {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.6875rem;
    color: var(--ob-text-secondary);
    font-weight: 500;
}
.doc-progress-bar {
    flex: 1;
    height: 5px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}
.doc-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #818cf8);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.case-card-footer {
    padding: 1rem 1.375rem;
    border-top: 1px solid var(--ob-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.case-card-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ob-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: gap var(--ob-transition);
}
.case-card-link:hover {
    gap: 0.625rem;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
}
.empty-state-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ob-primary-light), var(--ob-primary-subtle));
    color: var(--ob-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
}
.empty-state h5 {
    font-weight: 600;
    color: var(--ob-text);
    margin-bottom: 0.5rem;
}
.empty-state p {
    color: var(--ob-text-muted);
    max-width: 24rem;
    margin: 0 auto 1.5rem;
}

/* ============================================
   Timeline
   ============================================ */
.timeline-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--ob-border-light);
    transition: background var(--ob-transition);
}
.timeline-item:hover { background: #fafbfc; }
.timeline-item:last-child { border-bottom: none; }
.timeline-dot {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ============================================
   Auth Pages — Premium
   ============================================ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e0e7ff 50%, #f1f5f9 100%);
    padding: 2rem 1rem;
}
.auth-card {
    border: none;
    border-radius: var(--ob-radius-xl);
    box-shadow: var(--ob-shadow-lg);
    overflow: hidden;
    background: var(--ob-card-bg);
}
.auth-card .card-body {
    padding: 2.5rem;
}
.auth-logo {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--ob-radius-lg);
    background: linear-gradient(135deg, #6366f1, #818cf8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}
.auth-title {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--ob-text);
    margin-bottom: 0.25rem;
}
.auth-subtitle {
    font-size: 0.875rem;
    color: var(--ob-text-muted);
    margin-bottom: 2rem;
}

/* ============================================
   Activity Feed (Operations Dashboard)
   ============================================ */
.activity-feed {
    list-style: none;
    padding: 0;
    margin: 0;
}
.activity-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--ob-border-light);
    transition: background var(--ob-transition);
    align-items: flex-start;
}
.activity-item:hover { background: #fafbfc; }
.activity-item:last-child { border-bottom: none; }
.activity-dot {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}
.activity-content {
    flex: 1;
    min-width: 0;
}
.activity-text {
    font-size: 0.8125rem;
    color: var(--ob-text);
    line-height: 1.4;
}
.activity-text strong {
    font-weight: 600;
}
.activity-time {
    font-size: 0.6875rem;
    color: var(--ob-text-muted);
    margin-top: 0.125rem;
}

/* ============================================
   Quick Filter Pills
   ============================================ */
.filter-pills {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}
.filter-pill {
    padding: 0.3125rem 0.875rem;
    border-radius: 50rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--ob-border);
    background: var(--ob-card-bg);
    color: var(--ob-text-secondary);
    text-decoration: none;
    transition: all var(--ob-transition);
    white-space: nowrap;
}
.filter-pill:hover {
    border-color: var(--ob-primary-subtle);
    color: var(--ob-primary);
    background: var(--ob-primary-light);
}
.filter-pill.active {
    background: var(--ob-primary);
    border-color: var(--ob-primary);
    color: #fff;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--ob-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title-icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--ob-radius);
    background: var(--ob-primary-light);
    color: var(--ob-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991.98px) {
    .ops-sidebar {
        position: fixed;
        z-index: 1040;
        margin-left: -260px;
    }
    .ops-sidebar.show { margin-left: 0; }
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(2px);
        z-index: 1039;
        display: none;
    }
    .sidebar-overlay.show { display: block; }
    .status-pipeline .pipeline-step {
        font-size: 0.5625rem;
        padding: 0.5rem 0.25rem;
    }
    .ob-topbar {
        padding: 0 1rem;
    }
    .portal-stats {
        gap: 0.75rem;
    }
}

@media (min-width: 992px) {
    .ops-sidebar { margin-left: 0 !important; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ---------- Selection ---------- */
::selection {
    background: var(--ob-primary-subtle);
    color: var(--ob-primary-hover);
}

/* ---------- Page transition ---------- */
main {
    animation: fadeSlideIn 0.3s ease-out;
}

/* ============================================
   PORTAL — Premium Customer Experience
   ============================================ */

/* --- Card Header Icon --- */
.card-header-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--ob-radius);
    background: var(--ob-primary-light);
    color: var(--ob-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

/* --- Portal Case Header --- */
.portal-case-header {
    margin-bottom: 1.5rem;
}
.portal-officer-badge {
    padding: 0.5rem 0.875rem;
    background: var(--ob-card-bg);
    border: 1px solid var(--ob-border);
    border-radius: var(--ob-radius-lg);
}

/* --- Enhanced Status Pipeline --- */
.status-pipeline-wrapper {
    background: var(--ob-card-bg);
    border: 1px solid var(--ob-border);
    border-radius: var(--ob-radius-xl);
    padding: 0.75rem;
    box-shadow: var(--ob-shadow-xs);
}
.status-pipeline {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 0;
    margin: 0;
    border-radius: var(--ob-radius-lg);
    overflow: hidden;
}
.status-pipeline .pipeline-step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--ob-text-muted);
    background: #f1f5f9;
    position: relative;
    white-space: nowrap;
    transition: all var(--ob-transition-slow);
    border-right: 2px solid var(--ob-card-bg);
}
.status-pipeline .pipeline-step:last-child { border-right: none; }
.status-pipeline .pipeline-step.completed {
    background: var(--ob-primary);
    color: #fff;
}
.status-pipeline .pipeline-step.current {
    background: var(--ob-primary-subtle);
    color: var(--ob-primary);
    font-weight: 700;
}
.pipeline-step-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    flex-shrink: 0;
}
.pipeline-step.completed .pipeline-step-dot {
    background: rgba(255,255,255,0.25);
}
.pipeline-step-label { line-height: 1; }

/* --- Portal Info Card (Case Detail) --- */
.portal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0;
}
.portal-info-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--ob-border-light);
    border-right: 1px solid var(--ob-border-light);
}
.portal-info-item:last-child { border-right: none; }
.portal-info-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--ob-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}
.portal-info-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ob-text);
    letter-spacing: -0.01em;
}
.portal-description {
    font-size: 0.8125rem;
    color: var(--ob-text-secondary);
    line-height: 1.6;
    background: #fafbfc;
    padding: 0.75rem 1rem;
    border-radius: var(--ob-radius);
    border: 1px solid var(--ob-border-light);
}

/* --- Portal Document List --- */
.portal-doc-list {
    padding: 0;
}
.portal-doc-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--ob-border-light);
    transition: background var(--ob-transition);
}
.portal-doc-item:last-child { border-bottom: none; }
.portal-doc-item:hover { background: #fafbff; }
.portal-doc-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--ob-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}
.portal-doc-icon.doc-done { background: var(--ob-success-light); color: var(--ob-success); }
.portal-doc-icon.doc-rejected { background: var(--ob-danger-light); color: var(--ob-danger); }
.portal-doc-icon.doc-pending { background: #f1f5f9; color: var(--ob-text-muted); }
.portal-doc-info { flex: 1; min-width: 0; }
.portal-doc-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ob-text);
}
.portal-doc-meta {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 0.125rem;
}
.portal-doc-action {
    flex-shrink: 0;
}
.portal-upload-btn {
    cursor: pointer;
    transition: all var(--ob-transition);
}
.portal-upload-section {
    padding: 1rem 1.25rem;
    background: #fafbfc;
    border-top: 1px solid var(--ob-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.portal-upload-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ob-text-secondary);
}

/* --- Portal Messages --- */
.portal-message-thread {
    padding: 0.5rem 0;
}
.portal-message {
    display: flex;
    margin-bottom: 0.75rem;
}
.portal-message-sent {
    justify-content: flex-end;
}
.portal-message-bubble {
    max-width: 80%;
    border-radius: var(--ob-radius-lg);
    box-shadow: var(--ob-shadow-xs);
}
.portal-message-sent .portal-message-bubble {
    background: linear-gradient(135deg, #6366f1, var(--ob-primary));
    color: #fff;
    padding: 0.75rem 1rem;
    border-bottom-right-radius: 0.25rem;
}
.portal-message-received .portal-message-bubble {
    background: #f8fafc;
    color: var(--ob-text);
    border: 1px solid var(--ob-border-light);
    padding: 0.75rem 1rem;
    border-bottom-left-radius: 0.25rem;
}
.portal-message-text {
    font-size: 0.8125rem;
    line-height: 1.6;
}
.portal-message-meta {
    font-size: 0.6875rem;
    margin-top: 0.375rem;
    opacity: 0.7;
}
.portal-compose-wrapper {
    position: relative;
}
.portal-compose-wrapper textarea {
    padding-right: 3.5rem;
}
.portal-compose-send {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    border-radius: 50%;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

/* --- Portal Detail Sidebar --- */
.portal-detail-list {
    padding: 0;
}
.portal-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--ob-border-light);
}
.portal-detail-row:last-child { border-bottom: none; }
.portal-detail-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ob-text-muted);
}

/* --- Portal Timeline --- */
.portal-timeline {
    padding: 0;
}
.portal-timeline-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--ob-border-light);
    transition: background var(--ob-transition);
    align-items: flex-start;
}
.portal-timeline-item:hover { background: #fafbfc; }
.portal-timeline-item:last-child { border-bottom: none; }
.portal-timeline-dot {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}
.portal-timeline-content { flex: 1; min-width: 0; }
.portal-timeline-text {
    font-size: 0.8125rem;
    color: var(--ob-text);
    line-height: 1.4;
}
.portal-timeline-time {
    font-size: 0.6875rem;
    color: var(--ob-text-muted);
    margin-top: 0.125rem;
}

/* ============================================
   WIZARD — Premium Onboarding
   ============================================ */
.wizard-card {
    border: none;
    box-shadow: var(--ob-shadow);
    border-radius: var(--ob-radius-xl);
}
.wizard-container {
    background: var(--ob-card-bg);
    border: 1px solid var(--ob-border);
    border-radius: var(--ob-radius-xl);
    padding: 1.25rem 1.5rem 0.75rem;
    box-shadow: var(--ob-shadow-xs);
}
.wizard-step-line.filled {
    background: var(--ob-primary);
}
.wizard-page-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--ob-radius-lg);
    background: linear-gradient(135deg, var(--ob-primary-light), var(--ob-primary-subtle));
    color: var(--ob-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

/* --- Service Type Selection Cards --- */
.service-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    border: 2px solid var(--ob-border);
    border-radius: var(--ob-radius-xl);
    cursor: pointer;
    transition: all var(--ob-transition);
    background: var(--ob-card-bg);
    position: relative;
    height: 100%;
}
.service-type-card:hover {
    border-color: var(--ob-primary-subtle);
    box-shadow: var(--ob-shadow);
    transform: translateY(-2px);
}
.btn-check:checked + .service-type-card {
    border-color: var(--ob-primary);
    background: var(--ob-primary-light);
    box-shadow: 0 0 0 3px var(--ob-primary-glow), var(--ob-shadow);
}
.service-type-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--ob-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.service-type-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ob-text);
    margin-bottom: 0.25rem;
}
.service-type-desc {
    font-size: 0.6875rem;
    color: var(--ob-text-muted);
    line-height: 1.4;
}
.service-type-check {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--ob-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--ob-transition);
}
.btn-check:checked + .service-type-card .service-type-check {
    opacity: 1;
    transform: scale(1);
}

/* --- Wizard Form Sections --- */
.wizard-form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--ob-border-light);
}
.wizard-form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}
.wizard-form-section-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ob-text-muted);
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* --- Wizard Document List --- */
.wizard-doc-list {
    border: 1px solid var(--ob-border);
    border-radius: var(--ob-radius-lg);
    overflow: hidden;
}
.wizard-doc-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--ob-border-light);
    background: var(--ob-card-bg);
}
.wizard-doc-item:last-child { border-bottom: none; }
.wizard-doc-icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--ob-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}
.wizard-doc-icon.doc-required { background: var(--ob-danger-light); color: var(--ob-danger); }
.wizard-doc-icon.doc-optional { background: #f1f5f9; color: var(--ob-text-muted); }
.wizard-doc-info { flex: 1; }
.wizard-doc-name { font-size: 0.8125rem; font-weight: 500; color: var(--ob-text); }
.wizard-doc-status {
    flex-shrink: 0;
    font-size: 0.875rem;
}

/* --- Wizard Info Box --- */
.wizard-info-box {
    display: flex;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: var(--ob-primary-light);
    border: 1px solid var(--ob-primary-subtle);
    border-radius: var(--ob-radius-lg);
}
.wizard-info-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--ob-primary-subtle);
    color: var(--ob-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* --- Wizard Review Sections --- */
.wizard-review-section {
    border: 1px solid var(--ob-border);
    border-radius: var(--ob-radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
}
.wizard-review-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: #fafbfc;
    border-bottom: 1px solid var(--ob-border-light);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ob-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.wizard-review-body {
    padding: 1rem 1.25rem;
}
.wizard-review-label {
    font-size: 0.6875rem;
    color: var(--ob-text-muted);
    font-weight: 500;
    margin-bottom: 0.125rem;
}
.wizard-review-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ob-text);
}

/* --- Wizard Submit Options --- */
.wizard-submit-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    border-radius: var(--ob-radius-xl);
    cursor: pointer;
    transition: all var(--ob-transition);
    border: 2px solid var(--ob-border);
    background: var(--ob-card-bg);
}
.wizard-submit-option i {
    font-size: 1.5rem;
}
.wizard-submit-title {
    font-size: 0.875rem;
    font-weight: 600;
}
.wizard-submit-desc {
    font-size: 0.6875rem;
    color: var(--ob-text-muted);
}
.wizard-submit-draft:hover {
    border-color: var(--ob-text-muted);
    box-shadow: var(--ob-shadow);
    transform: translateY(-2px);
}
.wizard-submit-draft i { color: var(--ob-text-secondary); }
.wizard-submit-draft .wizard-submit-title { color: var(--ob-text); }
.wizard-submit-primary {
    border-color: var(--ob-primary);
    background: var(--ob-primary-light);
}
.wizard-submit-primary i { color: var(--ob-primary); }
.wizard-submit-primary .wizard-submit-title { color: var(--ob-primary); }
.wizard-submit-primary:hover {
    background: linear-gradient(135deg, #6366f1, var(--ob-primary));
    border-color: var(--ob-primary);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}
.wizard-submit-primary:hover i,
.wizard-submit-primary:hover .wizard-submit-title,
.wizard-submit-primary:hover .wizard-submit-desc {
    color: #fff;
}

/* --- Responsive portal --- */
@media (max-width: 767.98px) {
    .portal-info-grid {
        grid-template-columns: 1fr 1fr;
    }
    .portal-doc-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .portal-upload-section {
        flex-direction: column;
        align-items: stretch;
    }
    .service-type-card {
        padding: 1rem 0.75rem;
    }
}

/* ============================================
   CHARTS — Dashboard Visualizations
   ============================================ */
.chart-card {
    border: 1px solid var(--ob-border);
    border-radius: var(--ob-radius-xl);
    overflow: hidden;
}
.chart-card .card-header {
    background: var(--ob-card-bg);
    border-bottom: 1px solid var(--ob-border-light);
}
.chart-container {
    position: relative;
    width: 100%;
}
.chart-container canvas {
    width: 100% !important;
}

/* Doughnut center label */
.chart-center-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}
.chart-center-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ob-text);
    letter-spacing: -0.03em;
    line-height: 1;
}
.chart-center-text {
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--ob-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.125rem;
}

/* Custom chart legend */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: center;
}
.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--ob-text-secondary);
    white-space: nowrap;
}
.chart-legend-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   TRANSPORT, FLEET, WAREHOUSE & DRIVER STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ── Transport Status Pipeline ── */
.transport-pipeline {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 1rem 0;
}
.transport-pipeline .pipeline-step {
    flex: 1;
    text-align: center;
    position: relative;
}
.transport-pipeline .pipeline-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ob-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--ob-text-muted);
    margin: 0 auto;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}
.transport-pipeline .pipeline-step.completed .pipeline-step-dot {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}
.transport-pipeline .pipeline-step.current .pipeline-step-dot {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(79, 70, 229, 0.1); }
}
.transport-pipeline .pipeline-step-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--ob-text-muted);
    margin-top: 0.375rem;
}
.transport-pipeline .pipeline-step.completed .pipeline-step-label,
.transport-pipeline .pipeline-step.current .pipeline-step-label {
    color: var(--ob-text);
    font-weight: 600;
}
.transport-pipeline .pipeline-line {
    flex: 0 0 auto;
    width: 40px;
    height: 2px;
    background: var(--ob-border);
    position: relative;
    top: -8px;
}
.transport-pipeline .pipeline-line.completed {
    background: linear-gradient(90deg, #10b981, #059669);
}

/* ── Map Markers ── */
.map-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.map-marker-pickup {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}
.map-marker-delivery {
    background: linear-gradient(135deg, #10b981, #059669);
}
.map-marker-intermediate {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}
.map-marker-current .pulse-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.3);
    animation: pulseGps 1.5s infinite;
}
@keyframes pulseGps {
    0%, 100% { box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.3); }
    50% { box-shadow: 0 0 0 12px rgba(79, 70, 229, 0.1); }
}

/* ── Stops Timeline ── */
.stops-timeline {
    position: relative;
    padding-left: 2rem;
}
.stops-timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--ob-border);
}
.stop-item {
    position: relative;
    padding: 0.75rem 0;
}
.stop-item-dot {
    position: absolute;
    left: -1.5rem;
    top: 1rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ob-border);
    border: 2px solid var(--ob-card-bg);
    z-index: 2;
}
.stop-item.completed .stop-item-dot {
    background: #10b981;
}
.stop-item.arrived .stop-item-dot {
    background: #f59e0b;
}
.stop-item.current .stop-item-dot {
    background: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* ── Fleet Cards ── */
.vehicle-card {
    border: 1px solid var(--ob-border);
    border-radius: var(--ob-radius-xl);
    background: var(--ob-card-bg);
    padding: 1.25rem;
    transition: all var(--ob-transition);
}
.vehicle-card:hover {
    box-shadow: var(--ob-shadow-md);
    transform: translateY(-2px);
}
.vehicle-plate {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--ob-text);
}

/* ── Warehouse Zone Grid ── */
.zone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.zone-card {
    border: 1px solid var(--ob-border);
    border-radius: var(--ob-radius-lg);
    padding: 1rem;
    background: var(--ob-card-bg);
    transition: all var(--ob-transition);
}
.zone-card:hover {
    box-shadow: var(--ob-shadow-sm);
}
.zone-card .zone-code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--ob-primary);
}
.zone-occupancy-bar {
    height: 6px;
    background: var(--ob-border);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}
.zone-occupancy-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #10b981, #059669);
    transition: width 0.6s ease;
}
.zone-occupancy-fill.high {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}
.zone-occupancy-fill.critical {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* ── Control Tower / Radar ── */
.exception-feed {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.exception-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--ob-radius-lg);
    border: 1px solid var(--ob-border);
    background: var(--ob-card-bg);
    transition: all var(--ob-transition);
}
.exception-card:hover {
    box-shadow: var(--ob-shadow-sm);
}
.exception-card.severity-high {
    border-left: 4px solid #ef4444;
}
.exception-card.severity-medium {
    border-left: 4px solid #f59e0b;
}
.exception-card.severity-low {
    border-left: 4px solid #06b6d4;
}
.exception-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--ob-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.125rem;
}
.exception-icon.severity-high {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.exception-icon.severity-medium {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}
.exception-icon.severity-low {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

/* ── KPI Variants ── */
.kpi-card.kpi-transport {
    border-top: 3px solid #6366f1;
}
.kpi-card.kpi-fleet {
    border-top: 3px solid #06b6d4;
}
.kpi-card.kpi-warehouse {
    border-top: 3px solid #f59e0b;
}
.kpi-card.kpi-danger {
    border-top: 3px solid #ef4444;
}
.kpi-icon-transport {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}
.kpi-icon-fleet {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}
.kpi-icon-warehouse {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}
.kpi-icon-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ── Driver Mobile Interface ── */
.driver-topbar {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.driver-topbar .brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.driver-topbar .brand i {
    font-size: 1.25rem;
    color: #818cf8;
}
.driver-topbar .actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.driver-topbar .notif-bell {
    position: relative;
    color: rgba(255,255,255,0.8);
    font-size: 1.25rem;
    text-decoration: none;
}
.driver-topbar .notif-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.driver-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #fff;
    border-top: 1px solid var(--ob-border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}
.driver-bottom-nav a,
.driver-bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    text-decoration: none;
    color: var(--ob-text-muted);
    font-size: 0.625rem;
    font-weight: 500;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    min-width: 64px;
}
.driver-bottom-nav a i,
.driver-bottom-nav button i {
    font-size: 1.375rem;
}
.driver-bottom-nav a.active,
.driver-bottom-nav button.active {
    color: var(--ob-primary);
}

.driver-main {
    padding-bottom: 80px;
}

/* ── Driver Dashboard Enhanced ── */
.driver-stats-row {
    display: flex;
    gap: 0.75rem;
}
.driver-stat-card {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 0.75rem;
    background: var(--ob-card-bg);
    border: 1px solid var(--ob-border);
    border-radius: var(--ob-radius-lg);
    flex: 1;
    min-width: 0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.driver-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}
.driver-stat-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--ob-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.driver-stat-icon-primary { background: linear-gradient(135deg, #eef2ff, #e0e7ff); color: var(--ob-primary); }
.driver-stat-icon-success { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: var(--ob-success); }
.driver-stat-icon-info { background: linear-gradient(135deg, #ecfeff, #cffafe); color: var(--ob-info); }
.driver-stat-icon-warning { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: var(--ob-warning); }
.driver-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1;
    color: var(--ob-text);
}
.driver-stat-label {
    font-size: 0.625rem;
    color: var(--ob-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.125rem;
}

/* ── Route card ── */
.driver-route-card {
    border: 1px solid var(--ob-border);
    border-radius: var(--ob-radius-xl);
    background: var(--ob-card-bg);
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.driver-route-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.driver-route-accent {
    height: 4px;
    width: 100%;
}
.accent-secondary { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }
.accent-info { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.accent-primary { background: linear-gradient(90deg, #4f46e5, #818cf8); }
.accent-warning { background: linear-gradient(90deg, #d97706, #fbbf24); }
.accent-success { background: linear-gradient(90deg, #059669, #34d399); }
.driver-route-body {
    padding: 1rem;
}
.driver-route-number {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--ob-primary);
    text-decoration: none;
    letter-spacing: -0.01em;
}
.driver-route-number:hover {
    text-decoration: underline;
    color: var(--ob-primary);
}
.driver-route-customer {
    font-size: 0.8125rem;
    color: var(--ob-text-muted);
    font-weight: 500;
    margin-top: 0.125rem;
}

/* Route path visualisation */
.driver-route-path {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    background: #f8fafc;
    border-radius: var(--ob-radius);
    font-size: 0.8125rem;
    color: #374151;
}
.route-point {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}
.route-origin i { color: var(--ob-primary); font-size: 0.5rem; }
.route-destination i { color: #dc2626; font-size: 0.875rem; }
.route-line {
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--ob-primary), #dc2626);
    flex-shrink: 0;
    border-radius: 1px;
}

/* Next stop highlight */
.driver-next-stop {
    padding: 0.625rem 0.75rem;
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    border-radius: var(--ob-radius);
    border-left: 3px solid var(--ob-primary);
    margin-top: 0.5rem;
}
.next-stop-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ob-primary);
}
.next-stop-address {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 0.25rem;
}
.next-stop-eta {
    font-size: 0.75rem;
    color: var(--ob-text-muted);
    margin-top: 0.25rem;
}

/* Driver action buttons */
.driver-btn-navigate {
    background: linear-gradient(135deg, var(--ob-primary), #818cf8);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.8125rem;
    border: none;
    border-radius: var(--ob-radius);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.driver-btn-navigate:hover {
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transform: translateY(-1px);
    color: #fff;
}
.driver-btn-action {
    background: var(--ob-card-bg);
    color: var(--ob-primary) !important;
    font-weight: 600;
    font-size: 0.8125rem;
    border: 2px solid var(--ob-primary);
    border-radius: var(--ob-radius);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.driver-btn-action:hover {
    background: var(--ob-primary);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
.driver-btn-pod {
    background: linear-gradient(135deg, #059669, #34d399);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.8125rem;
    border: none;
    border-radius: var(--ob-radius);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.driver-btn-pod:hover {
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    transform: translateY(-1px);
    color: #fff;
}

/* Empty state (driver) */
.driver-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--ob-card-bg);
    border: 1px solid var(--ob-border);
    border-radius: var(--ob-radius-xl);
}
.driver-empty-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: var(--ob-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

/* Legacy driver transport card */
.driver-transport-card {
    border: 1px solid var(--ob-border);
    border-radius: var(--ob-radius-xl);
    background: var(--ob-card-bg);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    transition: all var(--ob-transition);
}
.driver-transport-card:hover {
    box-shadow: var(--ob-shadow-sm);
}

/* Status action buttons (driver detail) */
.status-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--ob-radius-lg);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--ob-transition);
    min-height: 48px;
    width: 100%;
}
.status-action-btn.picked-up {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
}
.status-action-btn.in-transit {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
}
.status-action-btn.out-for-delivery {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}
.status-action-btn.delivered {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

/* Signature pad */
.signature-pad-wrapper {
    border: 2px dashed var(--ob-border);
    border-radius: var(--ob-radius-lg);
    padding: 0.5rem;
    background: #fafafa;
}
.signature-pad-wrapper canvas {
    width: 100%;
    border-radius: var(--ob-radius-md);
    cursor: crosshair;
    touch-action: none;
}

/* ── Responsive adjustments ── */
@media (max-width: 768px) {
    .transport-pipeline {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .transport-pipeline .pipeline-line {
        display: none;
    }
    .zone-grid {
        grid-template-columns: 1fr;
    }
    .exception-card {
        flex-direction: column;
    }
}

/* ═══════════════════════════════════════════════════════════════
   LOGISTICS PIPELINE — Cross-Module Linking
   ═══════════════════════════════════════════════════════════════ */

/* ── Logistics Pipeline Card ── */
.logistics-pipeline-card {
    border: 1px solid var(--ob-border);
    border-radius: var(--ob-radius-xl);
    background: var(--ob-card-bg);
    overflow: hidden;
    box-shadow: var(--ob-shadow-xs);
    position: relative;
}
.logistics-pipeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ob-primary), #06b6d4, #f59e0b, #10b981);
    opacity: 0.8;
}
.logistics-pipeline-card .card-header {
    background: var(--ob-card-bg);
    border-bottom: 1px solid var(--ob-border-light);
    padding: 1rem 1.5rem;
    border-radius: 0 !important;
}
.logistics-pipeline-card .card-body {
    padding: 1.5rem;
}

/* ── Pipeline Progress Bar ── */
.logistics-progress {
    height: 6px;
    background: var(--ob-border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.logistics-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.logistics-progress-fill.stage-customs {
    background: linear-gradient(90deg, #6366f1, #818cf8);
}
.logistics-progress-fill.stage-cleared {
    background: linear-gradient(90deg, #6366f1, #06b6d4);
}
.logistics-progress-fill.stage-warehouse {
    background: linear-gradient(90deg, #6366f1, #06b6d4, #f59e0b);
}
.logistics-progress-fill.stage-transport {
    background: linear-gradient(90deg, #6366f1, #06b6d4, #f59e0b, #818cf8);
}
.logistics-progress-fill.stage-delivered {
    background: linear-gradient(90deg, #6366f1, #06b6d4, #f59e0b, #10b981);
}

/* ── Pipeline Stage Icons ── */
.logistics-stages {
    display: flex;
    justify-content: space-between;
    text-align: center;
}
.logistics-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    position: relative;
    flex: 1;
    transition: all var(--ob-transition);
}
.logistics-stage-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: var(--ob-border-light);
    color: var(--ob-text-muted);
    transition: all var(--ob-transition-slow);
    border: 2px solid transparent;
}
.logistics-stage.active .logistics-stage-icon {
    border-color: var(--ob-primary);
    background: var(--ob-primary-light);
    color: var(--ob-primary);
    box-shadow: 0 0 0 4px var(--ob-primary-glow);
}
.logistics-stage.completed .logistics-stage-icon {
    background: var(--ob-primary);
    color: #fff;
    border-color: var(--ob-primary);
}
.logistics-stage.stage-warehouse.active .logistics-stage-icon {
    border-color: var(--ob-warning);
    background: var(--ob-warning-light);
    color: var(--ob-warning);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}
.logistics-stage.stage-transport.active .logistics-stage-icon {
    border-color: var(--ob-info);
    background: var(--ob-info-light);
    color: var(--ob-info);
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}
.logistics-stage.stage-delivered.active .logistics-stage-icon,
.logistics-stage.stage-delivered.completed .logistics-stage-icon {
    border-color: var(--ob-success);
    background: var(--ob-success-light);
    color: var(--ob-success);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}
.logistics-stage-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--ob-text-muted);
    line-height: 1.2;
}
.logistics-stage.active .logistics-stage-label,
.logistics-stage.completed .logistics-stage-label {
    color: var(--ob-text);
    font-weight: 600;
}

/* ── Linked Items Section ── */
.logistics-linked-section {
    border: 1px solid var(--ob-border);
    border-radius: var(--ob-radius-lg);
    overflow: hidden;
    background: var(--ob-card-bg);
}
.logistics-linked-header {
    padding: 0.75rem 1rem;
    background: #fafbfc;
    border-bottom: 1px solid var(--ob-border-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ob-text-secondary);
}
.logistics-linked-header .count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 50rem;
    padding: 0 0.375rem;
}
.logistics-linked-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--ob-border-light);
    transition: background var(--ob-transition);
}
.logistics-linked-item:last-child {
    border-bottom: none;
}
.logistics-linked-item:hover {
    background: #fafbff;
}
.logistics-linked-item .item-title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ob-text);
}
.logistics-linked-item .item-title a {
    text-decoration: none;
    color: var(--ob-primary);
    font-weight: 600;
}
.logistics-linked-item .item-title a:hover {
    color: var(--ob-primary-hover);
}
.logistics-linked-item .item-subtitle {
    font-size: 0.6875rem;
    color: var(--ob-text-muted);
    margin-top: 0.125rem;
}
.logistics-linked-item .item-meta {
    text-align: right;
    flex-shrink: 0;
}
.logistics-linked-item .item-meta .meta-detail {
    font-size: 0.6875rem;
    color: var(--ob-text-muted);
    margin-top: 0.25rem;
}

/* ── Action Cards (Send to Warehouse / Create Transport) ── */
.logistics-action-card {
    border: 1px solid var(--ob-border);
    border-radius: var(--ob-radius-xl);
    overflow: hidden;
    background: var(--ob-card-bg);
    transition: all var(--ob-transition);
    position: relative;
}
.logistics-action-card:hover {
    box-shadow: var(--ob-shadow-sm);
}
.logistics-action-card .action-card-header {
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    border-bottom: 1px solid var(--ob-border-light);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ob-text);
}
.logistics-action-card .action-card-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--ob-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    flex-shrink: 0;
}
.logistics-action-card.action-warehouse .action-card-header {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}
.logistics-action-card.action-warehouse .action-card-icon {
    background: var(--ob-warning-light);
    color: var(--ob-warning);
}
.logistics-action-card.action-warehouse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.logistics-action-card.action-transport .action-card-header {
    background: linear-gradient(135deg, #ecfeff, #cffafe);
}
.logistics-action-card.action-transport .action-card-icon {
    background: var(--ob-info-light);
    color: var(--ob-info);
}
.logistics-action-card.action-transport::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
}
.logistics-action-card .action-card-body {
    padding: 1.25rem;
}
.logistics-action-card .action-card-body .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ob-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.375rem;
}

/* Action card submit buttons */
.btn-warehouse-action {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
}
.btn-warehouse-action:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
    transform: translateY(-1px);
}
.btn-transport-action {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(8, 145, 178, 0.25);
}
.btn-transport-action:hover {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    color: #fff;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
    transform: translateY(-1px);
}

/* ── Linked Case Badge (on transport/warehouse detail) ── */
.linked-case-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background: var(--ob-primary-light);
    border: 1px solid var(--ob-primary-subtle);
    border-radius: 50rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ob-primary);
    text-decoration: none;
    transition: all var(--ob-transition);
}
.linked-case-badge:hover {
    background: var(--ob-primary-subtle);
    border-color: var(--ob-primary);
    color: var(--ob-primary-hover);
    box-shadow: 0 2px 8px var(--ob-primary-glow);
    transform: translateY(-1px);
}
.linked-case-badge .badge {
    font-size: 0.5625rem;
    padding: 0.2em 0.5em;
}

/* ── Customs Case Column (warehouse inventory) ── */
.customs-case-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ob-primary);
    text-decoration: none;
    padding: 0.125rem 0.5rem;
    background: var(--ob-primary-light);
    border-radius: var(--ob-radius);
    transition: all var(--ob-transition);
}
.customs-case-link:hover {
    background: var(--ob-primary-subtle);
    color: var(--ob-primary-hover);
}
.customs-case-link i {
    font-size: 0.875rem;
}

/* ── Responsive ── */
@media (max-width: 767.98px) {
    .logistics-stages {
        gap: 0.25rem;
    }
    .logistics-stage-icon {
        width: 2rem;
        height: 2rem;
        font-size: 0.8125rem;
    }
    .logistics-stage-label {
        font-size: 0.5625rem;
    }
    .logistics-linked-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }
    .logistics-linked-item .item-meta {
        text-align: left;
    }
}


/* ═══════════════════════════════════════════════════════════════════
   EMAIL INBOX & CONSULTING — Supreme Enterprise UI
   ═══════════════════════════════════════════════════════════════════ */

/* ── Category badges ── */
.inbox-category-customs {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.6875rem;
    padding: 0.25em 0.65em;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.inbox-category-transport {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.6875rem;
    padding: 0.25em 0.65em;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.inbox-category-warehousing {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.6875rem;
    padding: 0.25em 0.65em;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.inbox-category-consulting {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.6875rem;
    padding: 0.25em 0.65em;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.inbox-category-other {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.6875rem;
    padding: 0.25em 0.65em;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ── Status badges ── */
.inbox-status-new {
    background: #fef3c7 !important;
    color: #92400e !important;
    font-weight: 700;
    font-size: 0.6875rem;
    padding: 0.25em 0.65em;
    border-radius: 6px;
}
.inbox-status-reviewed {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
    font-weight: 700;
    font-size: 0.6875rem;
    padding: 0.25em 0.65em;
    border-radius: 6px;
}
.inbox-status-processed {
    background: #d1fae5 !important;
    color: #065f46 !important;
    font-weight: 700;
    font-size: 0.6875rem;
    padding: 0.25em 0.65em;
    border-radius: 6px;
}
.inbox-status-ignored {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    font-weight: 700;
    font-size: 0.6875rem;
    padding: 0.25em 0.65em;
    border-radius: 6px;
}

/* ── Email body content ── */
.email-body-content {
    max-height: 600px;
    overflow-y: auto;
    border-radius: 8px;
}
.email-text-content {
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--ob-text);
    padding: 1rem;
    background: var(--ob-body-bg);
    border-radius: 8px;
}
.email-html-content {
    font-size: 0.875rem;
    line-height: 1.6;
    padding: 1rem;
    background: var(--ob-body-bg);
    border-radius: 8px;
}
.email-html-content img {
    max-width: 100%;
    height: auto;
}

/* ── KPI cards ── */
.kpi-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}
.kpi-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ── Purple badge helper ── */
.bg-purple {
    background-color: #7c3aed !important;
}
.text-purple {
    color: #7c3aed !important;
}

/* ── Inbox table — ensure readability ── */
.inbox-table thead tr {
    background: #f8fafc !important;
    border-bottom: 2px solid var(--ob-border);
}
.inbox-table thead th {
    color: #374151 !important;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.75rem 0.75rem;
    white-space: nowrap;
}
.inbox-table tbody td {
    color: #1f2937 !important;
    font-size: 0.875rem;
    padding: 0.75rem 0.75rem;
    vertical-align: middle;
}
.inbox-table tbody tr:hover {
    background: #f8fafc !important;
}

/* Confidence score badges */
.confidence-high {
    background: #059669;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.25em 0.6em;
    border-radius: 6px;
}
.confidence-medium {
    background: #d97706;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.25em 0.6em;
    border-radius: 6px;
}
.confidence-low {
    background: #dc2626;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.25em 0.6em;
    border-radius: 6px;
}

/* Linked-to badges */
.linked-badge-customs {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.6875rem;
    padding: 0.25em 0.65em;
    border-radius: 6px;
}
.linked-badge-transport {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.6875rem;
    padding: 0.25em 0.65em;
    border-radius: 6px;
}
.linked-badge-consulting {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.6875rem;
    padding: 0.25em 0.65em;
    border-radius: 6px;
}

/* Force white text on ALL inbox category badges */
.inbox-category-customs,
.inbox-category-transport,
.inbox-category-warehousing,
.inbox-category-consulting,
.inbox-category-other {
    color: #fff !important;
}
/* Force proper contrast on status badges */
.inbox-status-new,
.inbox-status-reviewed,
.inbox-status-processed,
.inbox-status-ignored {
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════
   CLASSIFICATION KEYWORDS — Admin Settings
   ═══════════════════════════════════════════════════════════════════ */

.classification-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.classification-card .card-header {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.875rem 1.25rem;
}

/* ── Keyword tags ── */
.keyword-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3em 0.65em;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.15s ease;
}
.keyword-tag-builtin {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}
.keyword-tag-custom {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}
.keyword-tag-custom:hover {
    background: #dbeafe;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.15);
}
.keyword-tag-disabled {
    background: #f9fafb;
    color: #9ca3af;
    border-color: #e5e7eb;
    text-decoration: line-through;
    opacity: 0.7;
}
.keyword-weight {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1em 0.4em;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}
.keyword-tag-disabled .keyword-weight {
    background: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
}
.keyword-action-btn {
    background: none;
    border: none;
    padding: 0.1em 0.2em;
    cursor: pointer;
    color: #6b7280;
    font-size: 0.75rem;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.15s ease;
}
.keyword-action-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #374151;
}
.keyword-action-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* ═══════════════════════════════════════════════════════════════════
   PORTAL CONSULTING — Inquiry Type Radio Cards
   ═══════════════════════════════════════════════════════════════════ */

.consulting-type-option {
    padding: 0;
    margin: 0;
}
.consulting-type-option .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.consulting-type-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    background: #fff;
    color: #6b7280;
}
.consulting-type-label:hover {
    border-color: #a78bfa;
    color: #7c3aed;
    background: #f5f3ff;
}
.consulting-type-option .form-check-input:checked + .consulting-type-label {
    border-color: #7c3aed;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

/* ── Μονοπάτι υπόθεσης (14/10/2026, 12_Montelo §6β) ── */
.ob-path { min-height: 90px; }
.ob-path-collapsed .ob-path-legend, .ob-path-collapsed .ob-path-notice { display: none; }
.ob-path-collapsed svg { height: 90px; }
.path-js .path-detail-list > li[data-stage-id] { display: none; }
.path-js .path-detail-list > li[data-stage-id].selected { display: block; border-left: 3px solid #378ADD; }
.ob-path-svg:focus { outline: 2px solid #B5D4F4; outline-offset: 2px; border-radius: 6px; }
