body {
    font-size: 14px;
}

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

.sidebar {
    width: 250px;
    min-width: 250px;
    transition: all 0.3s ease;
}
.sidebar .nav-link {
    margin-bottom: 4px;
}

.submenu-wrap {
    margin: 4px 0 10px 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.12);
}

.submenu-link {
    font-size: 13px;
    color: #d7def1;
}

.submenu-chevron {
    transition: transform 0.2s ease;
}

.nav-link-toggle[aria-expanded="true"] .submenu-chevron {
    transform: rotate(180deg);
}

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

.sidebar .nav-link-toggle {
    background: transparent;
    color: #fff;
}

.sidebar .text-uppercase {
    letter-spacing: 0.05em;
    color: #fff !important;
}
.sidebar.collapsed {
    width: 78px;
    min-width: 78px;
}

.sidebar.collapsed .menu-link span,
.sidebar.collapsed .sidebar-header small,
.sidebar.collapsed .sidebar-header h4 {
    display: none;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dbe4ff;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
}

.menu-link:hover,
.menu-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.kpi-card {
    border-radius: 16px;
}

.kpi-label {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 6px;
}

.kpi-value {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

.kpi-icon {
    font-size: 28px;
}

.alert-item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.alert-item:last-child {
    border-bottom: none;
}

.status-badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-workshop {
    background: #fef3c7;
    color: #92400e;
}

.status-expired {
    background: #fee2e2;
    color: #991b1b;
}

.status-warning {
    background: #fff7ed;
    color: #9a3412;
}

.status-ok {
    background: #dbeafe;
    color: #1d4ed8;
}
.card {
    border-radius: 10px;
}

.nav-tabs .nav-link.active {
    font-weight: 600;
}

.badge {
    font-size: 13px;
}

.setup-card,
.report-card,
.registry-card {
    border-radius: 16px;
}

.setup-card .icon-wrap,
.report-card .icon-wrap,
.registry-card .icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: #2550d8;
    font-size: 20px;
}



.dashboard-hero {
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.45), transparent 32%),
        linear-gradient(135deg, #081226 0%, #0f1f46 48%, #1d4ed8 100%);
    color: #fff;
    border-radius: 24px;
    overflow: hidden;
}

.dashboard-chip {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.dashboard-hero-copy {
    color: rgba(255,255,255,0.8);
    max-width: 640px;
    font-size: 15px;
}

.dashboard-action-card {
    display: block;
    height: 100%;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 12px 30px rgba(8, 18, 38, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(8, 18, 38, 0.18);
}

.dashboard-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e0ebff;
    color: #1d4ed8;
    font-size: 22px;
    margin-bottom: 14px;
}

.dashboard-action-icon-alert {
    background: #fee2e2;
    color: #dc2626;
}

.dashboard-stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 18px;
}

.dashboard-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    font-size: 24px;
}

.dashboard-chart-card,
.dashboard-alert-card,
.dashboard-table-card {
    border-radius: 18px;
}

.dashboard-chart-card .card-body,
.dashboard-alert-card .card-body {
    min-height: 320px;
}

.dashboard-table-card .card-body {
    padding-top: 0;
}

.dashboard-alert-card .alert-item {
    padding: 14px 0;
}

.dashboard-alert-card .alert-item:first-child {
    padding-top: 0;
}

.dashboard-alert-card .alert-item:last-child {
    padding-bottom: 0;
}

.dashboard-table-card .table thead th {
    white-space: nowrap;
}

.fuel-hero {
    background:
        radial-gradient(circle at top left, rgba(250, 204, 21, 0.28), transparent 24%),
        linear-gradient(135deg, #0f172a 0%, #14532d 55%, #16a34a 100%);
    color: #fff;
    border-radius: 24px;
}

.fuel-chip {
    background: rgba(255,255,255,0.16);
    color: #fff;
}

.fuel-hero-copy {
    color: rgba(255,255,255,0.82);
    font-size: 15px;
    max-width: 640px;
}

.fuel-summary-card {
    height: 100%;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.92);
    color: #0f172a;
    box-shadow: 0 14px 28px rgba(8, 18, 38, 0.12);
}

.fuel-summary-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 8px;
}

.fuel-summary-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
}

.fuel-summary-value.small-value {
    font-size: 18px;
}

.section-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        bottom: 0;
        z-index: 1100;
    }

    .sidebar.mobile-open {
        left: 0;
    }
    .dashboard-chart-card .card-body,
    .dashboard-alert-card .card-body {
        min-height: auto;
    }
}

/* Driver Profile Pictures */
.driver-pic {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.driver-pic-list {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid #f3f4f6;
}

.driver-pic-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 24px;
    font-weight: 300;
}

.driver-pic-small {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #f1f5f9;
}

#driverPhotoPreview {
    max-width: 120px;
    max-height: 120px;
    border-radius: 8px;
}

@media (max-width: 767.98px) {
    .driver-pic,
    .driver-pic-placeholder {
        width: 60px;
        height: 60px;
    }

    .driver-pic-small {
        width: 48px;
        height: 48px;
    }
}

.maintenance-page {
    background: #f6f8fb;
}


    background: #f8fafc;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    padding: 14px 16px;
}

#maintenanceJobModal .modal-content,
#maintenanceActionModal .modal-content,
#rfqManagerModal .modal-content {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
}

#maintenanceTimelineCanvas {
    width: min(460px, 100vw);
}

#maintenanceTimelineCanvas .offcanvas-header {
    border-bottom: 1px solid #e5e7eb;
}

.rfq-workspace {
    display: grid;
    gap: 16px;
}

.rfq-policy-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.rfq-policy-item {
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    background: #fff;
}

.rfq-policy-item.is-ready {
    border-left-color: #16a34a;
    background: #f8fffb;
}

.rfq-policy-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rfq-policy-value {
    color: #0f172a;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    margin-top: 4px;
}

.rfq-decision-summary {
    padding: 10px 12px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
}

.rfq-decision-summary.is-selected {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.rfq-panel {
    height: 100%;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.rfq-scope-panel {
    padding: 16px;
    border: 1px solid #dbe3ee;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    background: #f8fbff;
}

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

.rfq-step {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rfq-comparison-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.rfq-comparison-table td {
    vertical-align: middle;
}

.rfq-scope-table thead th {
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.quote-line-items-panel {
    padding: 12px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #f8fafc;
}

.quote-line-items-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.quote-line-items-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.quote-line-items-table thead th {
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.quote-line-items-table td {
    vertical-align: middle;
}

.rfq-selected-row {
    --bs-table-bg: #f0fdf4;
}

.rfq-notes-cell {
    max-width: 220px;
    white-space: normal;
}

.quote-vetting-panel {
    padding: 16px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #f8fafc;
}

.quote-vetting-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.quote-vetting-eyebrow {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.quote-vetting-stat {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    background: #fff;
}

.quote-vetting-stat.is-ready {
    border-left-color: #16a34a;
}

.quote-vetting-stat span,
.quote-vetting-stat small {
    display: block;
    color: #64748b;
    font-size: 12px;
}

.quote-vetting-stat span {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quote-vetting-stat strong {
    display: block;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.2;
    margin: 4px 0;
}

.quote-vetting-table thead th {
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}


.workshop-quote-pipeline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 210px;
}

.workshop-quote-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.workshop-quote-chip.is-pending {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.workshop-quote-chip.is-submitted {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.workshop-quote-chip.is-selected {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.workshop-quote-chip.is-rejected {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #475569;
}

.workshop-quote-activity {
    display: grid;
    gap: 8px;
    min-width: 280px;
    max-height: 260px;
    overflow: auto;
}

.workshop-quote-activity-item {
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.quote-detail-summary {
    padding: 12px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #f8fafc;
}

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

.quote-detail-grid span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.quote-detail-grid strong {
    display: block;
    color: #0f172a;
    margin-top: 4px;
}

.quote-detail-table thead th {
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

@media (max-width: 991.98px) {
    .rfq-policy-strip {
        grid-template-columns: 1fr;
    }

    .quote-vetting-grid {
        grid-template-columns: 1fr;
    }

    .quote-line-items-header {
        flex-direction: column;
    }

    .quote-line-items-actions {
        justify-content: flex-start;
    }
}


