        /* ===== ALL YOUR EXISTING STYLES REMAIN THE SAME ===== */
        :root {
            --sidebar: #0f2744;
            --sidebar-hover: #1a3558;
            --primary: #1d4ed8;
            --primary-light: #3b82f6;
            --bg: #f0f4f8;
            --card: #ffffff;
            --text: #1e293b;
            --muted: #64748b;
            --border: #e2e8f0;
            --success: #10b981;
            --danger: #ef4444;
            --warning: #f59e0b;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', sans-serif;
        }
        body {
            background: var(--bg);
            display: flex;
            min-height: 100vh;
            color: var(--text);
        }
        .login-page {
            display: flex;
            position: fixed;
            inset: 0;
            background: linear-gradient(135deg, #0a1a2e 0%, #0f2744 40%, #1a3558 70%, #2d4a7a 100%);
            z-index: 99999;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        .login-page.hidden {
            display: none;
        }
        .login-box {
            background: rgba(255, 255, 255, 0.97);
            backdrop-filter: blur(10px);
            padding: 50px 45px 45px;
            border-radius: 24px;
            width: 440px;
            max-width: 100%;
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
            animation: slideUp 0.6s ease;
        }
        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(40px) scale(0.96)
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1)
            }
        }
        .login-box .logo {
            text-align: center;
            margin-bottom: 32px;
        }
        .login-box .logo h1 {
            font-size: 28px;
            font-weight: 800;
            color: #0f2744;
        }
        .login-box .logo h1 span {
            color: #3b82f6;
        }
        .login-box .logo p {
            color: #64748b;
            font-size: 14px;
        }
        .login-box .field {
            margin-bottom: 20px;
        }
        .login-box .field label {
            display: block;
            font-size: 12px;
            font-weight: 600;
            color: #475569;
            margin-bottom: 5px;
        }
        .login-box .field .input-wrap {
            display: flex;
            align-items: center;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            transition: border 0.2s;
            background: #f8fafc;
        }
        .login-box .field .input-wrap:focus-within {
            border-color: #3b82f6;
            box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
            background: #fff;
        }
        .login-box .field .input-wrap i {
            position: absolute;
            margin-left: 14px;
            color: #94a3b8;
            font-size: 16px;
        }
        .login-box .field .input-wrap input {
            width: 100%;
            padding: 12px 14px 12px 44px;
            border: none;
            border-radius: 12px;
            font-size: 14px;
            outline: none;
            background: transparent;
        }
        .login-box .btn-login {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #0f2744, #1a3558);
            color: #fff;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        .login-box .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(15, 39, 68, 0.3);
        }
        .login-box .error {
            color: #ef4444;
            font-size: 13px;
            text-align: center;
            margin-top: 12px;
            padding: 10px;
            background: #fee2e2;
            border-radius: 8px;
            display: none;
        }
        .login-box .error.show {
            display: block;
        }

        .app-container {
            display: none;
        }
        .app-container.show {
            display: flex;
            width: 100%;
        }

        .sidebar {
            width: 260px;
            background: var(--sidebar);
            color: #cbd5e1;
            position: fixed;
            top: 0;
            left: 0;
            height: 100vh;
            overflow-y: auto;
            z-index: 1000;
            transition: transform 0.3s ease;
        }
        .brand {
            padding: 24px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, .08);
        }
        .brand h2 {
            color: #fff;
            font-size: 22px;
            font-weight: 700;
        }
        .brand h2 span {
            color: #60a5fa;
        }
        .brand small {
            color: #94a3b8;
            font-size: 11px;
        }
        .profile {
            padding: 20px;
            text-align: center;
            border-bottom: 1px solid rgba(255, 255, 255, .08);
            cursor: pointer;
        }
        .avatar-lg {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            font-weight: 700;
            margin: 0 auto 10px;
            overflow: hidden;
            position: relative;
        }
        .avatar-lg img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .avatar-lg .avatar-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.6);
            color: #fff;
            font-size: 10px;
            padding: 4px;
            text-align: center;
            opacity: 0;
            transition: opacity 0.3s;
            cursor: pointer;
        }
        .avatar-lg:hover .avatar-overlay {
            opacity: 1;
        }
        .profile h4 {
            color: #fff;
            font-size: 14px;
        }
        .profile p {
            color: #94a3b8;
            font-size: 12px;
        }
        .menu-label {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #64748b;
            padding: 16px 20px 6px;
            font-weight: 600;
        }
        .nav-item {
            padding: 11px 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 13px;
            color: #94a3b8;
            border-left: 3px solid transparent;
            transition: .2s;
            text-decoration: none;
        }
        .nav-item:hover {
            background: var(--sidebar-hover);
            color: #fff;
        }
        .nav-item.active {
            background: var(--sidebar-hover);
            color: #fff;
            border-left-color: #60a5fa;
        }
        .nav-item .badge {
            margin-left: auto;
            background: #3b82f6;
            color: #fff;
            font-size: 10px;
            padding: 2px 8px;
            border-radius: 10px;
        }
        .nav-item.logout {
            margin-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, .08);
            padding-top: 16px;
            color: #ef4444;
        }
        .nav-item.logout:hover {
            color: #f87171;
        }

        .main {
            margin-left: 260px;
            flex: 1;
            min-height: 100vh;
            transition: margin-left 0.3s ease;
        }
        .topbar {
            background: #fff;
            padding: 14px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 100;
            flex-wrap: wrap;
        }
        .search-box {
            background: #f1f5f9;
            border: none;
            border-radius: 8px;
            padding: 8px 14px 8px 36px;
            width: 220px;
            font-size: 13px;
            outline: none;
        }
        .search-wrap {
            position: relative;
        }
        .search-wrap i {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: #94a3b8;
        }
        .topbar-right {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        .icon-btn {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            background: #f1f5f9;
            border: none;
            cursor: pointer;
            color: var(--text);
        }
        .user-chip {
            display: flex;
            align-items: center;
            gap: 8px;
            background: #f1f5f9;
            padding: 4px 10px;
            border-radius: 8px;
            font-size: 12px;
            cursor: pointer;
        }
        .user-chip .av {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: #3b82f6;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 12px;
        }
        .user-chip .av img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }

        .content {
            padding: 16px 20px;
        }
        .page-header {
            margin-bottom: 20px;
        }
        .page-header h1 {
            font-size: 20px;
            font-weight: 700;
        }
        .page-header p {
            color: var(--muted);
            font-size: 13px;
            margin-top: 2px;
        }
        .page {
            display: none;
        }
        .page.active {
            display: block;
            animation: fadeIn .3s ease;
        }
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(8px)
            }
            to {
                opacity: 1;
                transform: none
            }
        }

        .kpi-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 12px;
            margin-bottom: 20px;
        }
        .kpi {
            border-radius: 12px;
            padding: 16px;
            color: #fff;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
            cursor: pointer;
            transition: transform .2s;
        }
        .kpi:hover {
            transform: translateY(-2px);
        }
        .kpi .icon {
            font-size: 22px;
            opacity: .9;
            margin-bottom: 6px;
        }
        .kpi .num {
            font-size: 26px;
            font-weight: 700;
            line-height: 1;
        }
        .kpi .lbl {
            font-size: 11px;
            opacity: .85;
            margin-top: 4px;
        }
        .kpi .trend {
            font-size: 10px;
            opacity: .7;
            margin-top: 2px;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .kpi.blue {
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        }
        .kpi.red {
            background: linear-gradient(135deg, #f87171, #dc2626);
        }
        .kpi.purple {
            background: linear-gradient(135deg, #a78bfa, #7c3aed);
        }
        .kpi.green {
            background: linear-gradient(135deg, #34d399, #059669);
        }
        .kpi.teal {
            background: linear-gradient(135deg, #2dd4bf, #0d9488);
        }
        .kpi.orange {
            background: linear-gradient(135deg, #fb923c, #ea580c);
        }
        .kpi.indigo {
            background: linear-gradient(135deg, #818cf8, #4f46e5);
        }
        .kpi.amber {
            background: linear-gradient(135deg, #fbbf24, #d97706);
        }
        .kpi.rose {
            background: linear-gradient(135deg, #fb7185, #db2777);
        }
        .kpi.cyan {
            background: linear-gradient(135deg, #22d3ee, #0891b2);
        }
        .kpi.slate {
            background: linear-gradient(135deg, #94a3b8, #475569);
        }

        .dashboard-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-bottom: 16px;
        }
        .dashboard-grid .panel {
            margin-bottom: 0;
        }

        .grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }
        .grid-3 {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
        }

        .panel {
            background: var(--card);
            border-radius: 12px;
            padding: 16px 20px;
            margin-bottom: 16px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
        }
        .panel h3 {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .panel h3 .count {
            margin-left: auto;
            background: #eff6ff;
            color: #2563eb;
            font-size: 10px;
            padding: 2px 10px;
            border-radius: 20px;
        }
        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            margin-bottom: 10px;
        }
        .panel-actions {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .field {
            margin-bottom: 10px;
        }
        .field label {
            display: block;
            font-size: 11px;
            font-weight: 600;
            color: #475569;
            margin-bottom: 3px;
        }
        .field label .req {
            color: #ef4444;
        }
        .field input,
        .field select,
        .field textarea {
            width: 100%;
            padding: 8px 10px;
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 13px;
            outline: none;
            background: #fff;
        }
        .field input:focus,
        .field select:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, .1);
        }
        .field input[readonly] {
            background: #f8fafc;
        }

        .btn {
            padding: 8px 16px;
            border: none;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all .2s;
        }
        .btn-primary {
            background: #3b82f6;
            color: #fff;
        }
        .btn-primary:hover {
            background: #2563eb;
        }
        .btn-success {
            background: #10b981;
            color: #fff;
        }
        .btn-success:hover {
            background: #059669;
        }
        .btn-danger {
            background: #ef4444;
            color: #fff;
        }
        .btn-danger:hover {
            background: #dc2626;
        }
        .btn-warning {
            background: #f59e0b;
            color: #fff;
        }
        .btn-warning:hover {
            background: #d97706;
        }
        .btn-info {
            background: #06b6d4;
            color: #fff;
        }
        .btn-info:hover {
            background: #0891b2;
        }
        .btn-sm {
            padding: 4px 10px;
            font-size: 10px;
        }
        .btn-group {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin-top: 8px;
        }
        .btn-outline {
            background: transparent;
            border: 1px solid var(--border);
            color: #475569;
        }

        .table-wrap {
            overflow-x: auto;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 12px;
        }
        table th {
            background: #f8fafc;
            color: #475569;
            font-weight: 600;
            padding: 10px 10px;
            text-align: left;
            border-bottom: 2px solid var(--border);
            white-space: nowrap;
        }
        table td {
            padding: 10px;
            border-bottom: 1px solid #f1f5f9;
            vertical-align: middle;
        }
        table tr:hover td {
            background: #f8fafc;
        }

        .badge {
            padding: 2px 8px;
            border-radius: 20px;
            font-size: 10px;
            font-weight: 600;
            display: inline-block;
        }
        .badge.delivered {
            background: #dcfce7;
            color: #166534;
        }
        .badge.in-transit {
            background: #dbeafe;
            color: #1e40af;
        }
        .badge.pending {
            background: #fef9c3;
            color: #854d0e;
        }
        .badge.loaded {
            background: #dbeafe;
            color: #1e40af;
        }
        .badge.at-port {
            background: #fef3c7;
            color: #92400e;
        }
        .badge.dispatched {
            background: #ede9fe;
            color: #5b21b6;
        }
        .badge.available {
            background: #dcfce7;
            color: #166534;
        }
        .badge.returning {
            background: #fef3c7;
            color: #92400e;
        }
        .badge.maintenance {
            background: #fef9c3;
            color: #854d0e;
        }
        .badge.paid {
            background: #dcfce7;
            color: #166534;
        }
        .badge.unpaid {
            background: #fee2e2;
            color: #991b1b;
        }

        .status-indicator {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            margin-right: 6px;
        }
        .status-indicator.loaded {
            background: #3b82f6;
        }
        .status-indicator.in-transit {
            background: #f59e0b;
        }
        .status-indicator.delivered {
            background: #10b981;
        }
        .status-indicator.pending {
            background: #ef4444;
        }
        .status-indicator.at-port {
            background: #d97706;
        }
        .status-indicator.dispatched {
            background: #7c3aed;
        }

        .status-bars {
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding: 4px 0;
        }
        .bar-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .bar-item .lbl {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            font-weight: 500;
            color: #475569;
        }
        .bar-item .lbl span:last-child {
            font-weight: 600;
            color: #0f2744;
        }
        .bar-track {
            width: 100%;
            height: 8px;
            background: #e2e8f0;
            border-radius: 10px;
            overflow: hidden;
            position: relative;
        }
        .bar-fill {
            height: 100%;
            border-radius: 10px;
            transition: width 1s ease-in-out;
            position: relative;
        }
        .bar-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            animation: shimmer 2s infinite;
        }
        @keyframes shimmer {
            0% {
                transform: translateX(-100%);
            }
            100% {
                transform: translateX(100%);
            }
        }

        .fuel-price-card {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 16px 20px;
            background: linear-gradient(135deg, #eff6ff, #dbeafe);
            border-radius: 12px;
            border: 1px solid #bfdbfe;
        }
        /* Dispatch Container Search */
.dispatch-search-result {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}
.dispatch-search-result:hover {
    background: #f8fafc;
}
.dispatch-search-result .result-number {
    font-weight: 600;
    color: #0f2744;
    font-size: 13px;
}
.dispatch-search-result .result-details {
    font-size: 11px;
    color: #64748b;
}
.dispatch-search-result .result-status {
    font-size: 10px;
}
.dispatch-search-result .result-status .badge-sm {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
}
.dispatch-search-result .result-status .badge-sm.loaded { background: #dbeafe; color: #1e40af; }
.dispatch-search-result .result-status .badge-sm.pending { background: #fef9c3; color: #854d0e; }
.dispatch-search-result .result-status .badge-sm.in-transit { background: #dbeafe; color: #1e40af; }
.dispatch-search-result .result-status .badge-sm.at-port { background: #fef3c7; color: #92400e; }
.dispatch-search-result .result-status .badge-sm.returned { background: #ede9fe; color: #5b21b6; }
.dispatch-search-result .result-status .badge-sm.dispatch { background: #dbeafe; color: #1e40af; }
        .fuel-price-card .fuel-icon {
            width: 56px;
            height: 56px;
            border-radius: 12px;
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 24px;
            flex-shrink: 0;
        }
        .fuel-price-card .fuel-info {
            flex: 1;
        }
        .fuel-price-card .fuel-info .price {
            font-size: 28px;
            font-weight: 700;
            color: #1d4ed8;
            line-height: 1.2;
        }
        .fuel-price-card .fuel-info .price small {
            font-size: 14px;
            font-weight: 400;
            color: #64748b;
        }
        .fuel-price-card .fuel-info .label {
            font-size: 13px;
            color: #475569;
            margin-top: 2px;
        }
        .fuel-price-card .fuel-info .trend {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 11px;
            font-weight: 600;
            color: #10b981;
            background: #dcfce7;
            padding: 2px 10px;
            border-radius: 20px;
            margin-top: 4px;
        }

        .status-legend {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px solid #e2e8f0;
        }
        .status-legend .legend-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 11px;
            color: #64748b;
        }
        .status-legend .legend-item .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            display: inline-block;
        }
        .status-legend .legend-item .dot.available {
            background: #10b981;
        }
        .status-legend .legend-item .dot.transit {
            background: #3b82f6;
        }
        .status-legend .legend-item .dot.maintenance {
            background: #ef4444;
        }

        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 99999;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .toast {
            padding: 12px 20px;
            border-radius: 8px;
            color: #fff;
            font-size: 13px;
            font-weight: 500;
            animation: slideInRight .3s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            min-width: 250px;
            max-width: 400px;
        }
        .toast.success {
            background: #10b981;
        }
        .toast.error {
            background: #ef4444;
        }
        .toast.info {
            background: #3b82f6;
        }
        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(100px)
            }
            to {
                opacity: 1;
                transform: translateX(0)
            }
        }
        .toast .close-toast {
            margin-left: 12px;
            cursor: pointer;
            opacity: 0.7;
            float: right;
        }
        .toast .close-toast:hover {
            opacity: 1;
        }

        .msg {
            padding: 8px 12px;
            border-radius: 6px;
            margin-bottom: 10px;
            display: none;
            font-size: 12px;
        }
        .msg.show.success {
            display: block;
            background: #dcfce7;
            color: #166534;
        }
        .msg.show.error {
            display: block;
            background: #fee2e2;
            color: #991b1b;
        }
        .msg.show.info {
            display: block;
            background: #dbeafe;
            color: #1e40af;
        }

        .spinner-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(15, 39, 68, .5);
            z-index: 9999;
            align-items: center;
            justify-content: center;
        }
        .spinner-overlay.show {
            display: flex;
        }
        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid #fff3;
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin .8s linear infinite;
        }
        @keyframes spin {
            to {
                transform: rotate(360deg)
            }
        }
        .menu-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 22px;
            cursor: pointer;
            color: var(--text);
        }

        .filter-bar {
            background: #fff;
            border-radius: 12px;
            padding: 16px 20px;
            margin-bottom: 16px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 12px;
        }
        .filter-bar .filter-group {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .filter-bar .filter-group label {
            font-size: 11px;
            font-weight: 600;
            color: #475569;
        }
        .filter-bar .filter-group select {
            padding: 6px 10px;
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 12px;
            outline: none;
            background: #fff;
            min-width: 120px;
        }
        .filter-bar .filter-actions {
            display: flex;
            gap: 8px;
            margin-left: auto;
            flex-wrap: wrap;
            align-items: center;
        }
        .filter-count {
            font-size: 12px;
            color: #64748b;
            padding: 4px 12px;
            background: #f1f5f9;
            border-radius: 20px;
        }

        .modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, .5);
            z-index: 99998;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        .modal-overlay.show {
            display: flex;
        }
        .modal-overlay .modal-content {
            background: #fff;
            border-radius: 16px;
            max-width: 600px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            padding: 30px;
            position: relative;
        }
        .modal-overlay .close-modal {
            position: sticky;
            top: 0;
            float: right;
            background: #f1f5f9;
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            font-size: 18px;
            cursor: pointer;
            z-index: 10;
        }
        .modal-overlay .close-modal:hover {
            background: #e2e8f0;
        }

        .profile-avatar-upload {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 20px;
        }
        .profile-avatar-upload .preview {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 48px;
            font-weight: 700;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            border: 3px solid #e2e8f0;
            transition: all 0.3s ease;
        }
        .profile-avatar-upload .preview:hover {
            border-color: #3b82f6;
            transform: scale(1.02);
        }
        .profile-avatar-upload .preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .profile-avatar-upload .preview .overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.6);
            color: #fff;
            font-size: 12px;
            padding: 8px;
            text-align: center;
            opacity: 0;
            transition: opacity 0.3s;
        }
        .profile-avatar-upload .preview:hover .overlay {
            opacity: 1;
        }
        .profile-avatar-upload input[type="file"] {
            display: none;
        }
        .profile-avatar-upload .upload-actions {
            display: flex;
            gap: 8px;
            margin-top: 10px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .save-success {
            animation: savePulse 0.6s ease;
        }
        @keyframes savePulse {
            0% {
                transform: scale(1);
            }
            30% {
                transform: scale(1.05);
                background: #10b981;
                color: #fff;
            }
            60% {
                transform: scale(0.95);
            }
            100% {
                transform: scale(1);
            }
        }
        .save-spinner {
            display: inline-block;
            animation: spin 0.8s linear infinite;
        }
        .save-check {
            display: inline-block;
            animation: checkPop 0.5s ease;
        }
        @keyframes checkPop {
            0% {
                transform: scale(0);
                opacity: 0;
            }
            50% {
                transform: scale(1.3);
                opacity: 1;
            }
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        /* ===== DOCUMENT CHECKLIST TICKER - INTERACTIVE ===== */
        .doc-checklist-ticker {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px 16px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 10px 14px;
            margin-top: 6px;
            font-size: 12px;
        }
        .doc-checklist-ticker .ticker-label {
            font-weight: 600;
            color: #0f2744;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .doc-checklist-ticker .ticker-item {
            display: flex;
            align-items: center;
            gap: 4px;
            background: #fff;
            padding: 4px 12px 4px 6px;
            border-radius: 20px;
            border: 2px solid #e2e8f0;
            font-size: 11px;
            font-weight: 500;
            color: #475569;
            cursor: pointer;
            transition: all 0.2s ease;
            user-select: none;
        }
        .doc-checklist-ticker .ticker-item:hover {
            transform: scale(1.05);
            border-color: #94a3b8;
        }
        .doc-checklist-ticker .ticker-item.checked {
            border-color: #10b981;
            background: #ecfdf5;
            color: #065f46;
        }
        .doc-checklist-ticker .ticker-item .tick-icon {
            font-size: 12px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #e2e8f0;
            color: #94a3b8;
            transition: all 0.2s ease;
        }
        .doc-checklist-ticker .ticker-item.checked .tick-icon {
            background: #10b981;
            color: #fff;
        }
        .doc-checklist-ticker .ticker-status {
            margin-left: auto;
            font-weight: 600;
            font-size: 12px;
        }
        .doc-checklist-ticker .ticker-status .status-complete {
            color: #10b981;
        }
        .doc-checklist-ticker .ticker-status .status-incomplete {
            color: #f59e0b;
        }
        .doc-checklist-ticker .ticker-status .status-empty {
            color: #94a3b8;
        }

        /* ===== CHECKLIST IN DETAIL VIEW ===== */
        .detail-checklist {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 12px 20px;
            padding: 12px 16px;
            background: #f8fafc;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            margin-top: 10px;
        }
        .detail-checklist .check-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            font-weight: 500;
            color: #475569;
        }
        .detail-checklist .check-item.checked {
            color: #065f46;
        }
        .detail-checklist .check-item .check-icon {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #e2e8f0;
            color: #94a3b8;
            font-size: 12px;
        }
        .detail-checklist .check-item.checked .check-icon {
            background: #10b981;
            color: #fff;
        }
        .detail-checklist .check-label {
            font-weight: 600;
            color: #0f2744;
            margin-right: 8px;
        }
        .badge.arrived {
    background: #dbeafe;
    color: #1e40af;
}
.badge.discharged {
    background: #fef3c7;
    color: #92400e;
}
.badge.cleared {
    background: #ede9fe;
    color: #5b21b6;
}
.badge.received {
    background: #dbeafe;
    color: #1e40af;
}

        @media only screen and (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
                width: 285px;
            }
            .sidebar.open {
                transform: translateX(0);
            }
            .main {
                margin-left: 0;
            }
            .menu-toggle {
                display: flex !important;
            }
            .kpi-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .dashboard-grid {
                grid-template-columns: 1fr;
            }
            .grid-2,
            .grid-3 {
                grid-template-columns: 1fr;
            }
            .topbar .search-box {
                width: 100%;
            }
            .topbar .search-wrap {
                flex: 1;
                min-width: 120px;
            }
            .modal-overlay {
                align-items: flex-end;
            }
            .modal-overlay .modal-content {
                border-radius: 14px 14px 0 0;
                max-height: 85vh;
            }
            .profile-avatar-upload .preview {
                width: 80px;
                height: 80px;
                font-size: 30px;
            }
        }
        @media only screen and (max-width: 400px) {
            .kpi-grid {
                grid-template-columns: 1fr 1fr;
                gap: 6px;
            }
            .kpi .num {
                font-size: 15px;
            }
            .kpi {
                padding: 10px 8px;
            }
        }
        @media print {
    /* Hide non-printable elements */
    .sidebar,
    .topbar,
    .menu-toggle,
    .btn,
    .btn-group,
    .filter-bar,
    .no-print,
    .panel-actions,
    .search-wrap,
    .topbar-right,
    .icon-btn,
    .user-chip {
        display: none !important;
    }
    
    /* Main content takes full width */
    .main {
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    .content {
        padding: 10px !important;
        max-width: 100% !important;
    }
    
    /* Page layout */
    .page {
        display: block !important;
        page-break-after: always;
    }
    .page:not(.active) {
        display: none !important;
    }
    
    /* Panel styles for print */
    .panel {
        box-shadow: none !important;
        border: 1px solid #d1d5db !important;
        break-inside: avoid !important;
        margin-bottom: 12px !important;
        padding: 12px 15px !important;
        border-radius: 0 !important;
        background: #ffffff !important;
    }
    
    .panel h3 {
        color: #0f2744 !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        border-bottom: 2px solid #2563eb !important;
        padding-bottom: 6px !important;
        margin-bottom: 10px !important;
    }
    
    .panel h3 .count {
        background: #eff6ff !important;
        color: #2563eb !important;
        font-size: 9px !important;
        padding: 1px 8px !important;
        border-radius: 12px !important;
    }
    
    /* Page header */
    .page-header {
        margin-bottom: 10px !important;
        padding: 0 !important;
    }
    .page-header h1 {
        color: #0f2744 !important;
        font-size: 18px !important;
        font-weight: 800 !important;
        margin: 0 !important;
    }
    .page-header p {
        color: #475569 !important;
        font-size: 11px !important;
        margin-top: 2px !important;
    }
    
    /* ===== PROFESSIONAL TABLE STYLES ===== */
    .table-wrap {
        overflow: visible !important;
        width: 100% !important;
    }
    
    table {
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 8px !important;
        table-layout: auto !important;
    }
    
    /* BRIGHT BLUE TABLE HEADERS */
    table th {
        background: linear-gradient(135deg, #1d4ed8, #3b82f6) !important;
        color: #ffffff !important;
        border-bottom: 2px solid #1a3a7a !important;
        padding: 6px 8px !important;
        font-weight: 700 !important;
        font-size: 8px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
        text-align: left !important;
        white-space: nowrap !important;
    }
    
    table th * {
        color: #ffffff !important;
    }
    
    /* Table cells */
    table td {
        padding: 5px 8px !important;
        font-size: 7.5px !important;
        border-bottom: 1px solid #e5e7eb !important;
        vertical-align: middle !important;
        word-wrap: break-word !important;
        max-width: 150px !important;
    }
    
    /* Alternating row colors */
    table tr:nth-child(even) td {
        background: #f8fafc !important;
    }
    table tr:nth-child(odd) td {
        background: #ffffff !important;
    }
    
    /* Status badges in print */
    .badge {
        font-size: 6.5px !important;
        padding: 1px 6px !important;
        border-radius: 10px !important;
        display: inline-block !important;
        font-weight: 600 !important;
    }
    .badge.delivered { background: #dcfce7 !important; color: #166534 !important; }
    .badge.in-transit { background: #dbeafe !important; color: #1e40af !important; }
    .badge.pending { background: #fef9c3 !important; color: #854d0e !important; }
    .badge.loaded { background: #dbeafe !important; color: #1e40af !important; }
    .badge.dispatched { background: #ede9fe !important; color: #5b21b6 !important; }
    .badge.received { background: #dbeafe !important; color: #1e40af !important; }
    .badge.arrived { background: #dbeafe !important; color: #1e40af !important; }
    .badge.discharged { background: #fef3c7 !important; color: #92400e !important; }
    .badge.cleared { background: #ede9fe !important; color: #5b21b6 !important; }
    .badge.paid { background: #dcfce7 !important; color: #166534 !important; }
    .badge.unpaid { background: #fee2e2 !important; color: #991b1b !important; }
    .badge.partial { background: #fef3c7 !important; color: #92400e !important; }
    
    /* Status indicators */
    .status-indicator {
        width: 5px !important;
        height: 5px !important;
        margin-right: 4px !important;
        display: inline-block !important;
        border-radius: 50% !important;
    }
    
    /* ===== KPI CARDS ===== */
    .kpi-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
        page-break-inside: avoid !important;
    }
    
    .kpi {
        box-shadow: none !important;
        border: 1px solid #d1d5db !important;
        border-radius: 6px !important;
        padding: 10px 12px !important;
        break-inside: avoid !important;
        color: #ffffff !important;
    }
    .kpi .num {
        font-size: 18px !important;
        font-weight: 700 !important;
    }
    .kpi .lbl {
        font-size: 9px !important;
        opacity: 0.9 !important;
    }
    .kpi .icon {
        font-size: 16px !important;
        opacity: 0.8 !important;
        margin-bottom: 4px !important;
    }
    
    /* Keep KPI colors */
    .kpi.blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important; }
    .kpi.red { background: linear-gradient(135deg, #f87171, #dc2626) !important; }
    .kpi.purple { background: linear-gradient(135deg, #a78bfa, #7c3aed) !important; }
    .kpi.green { background: linear-gradient(135deg, #34d399, #059669) !important; }
    .kpi.teal { background: linear-gradient(135deg, #2dd4bf, #0d9488) !important; }
    .kpi.orange { background: linear-gradient(135deg, #fb923c, #ea580c) !important; }
    .kpi.amber { background: linear-gradient(135deg, #fbbf24, #d97706) !important; }
    .kpi.rose { background: linear-gradient(135deg, #fb7185, #db2777) !important; }
    
    /* ===== DASHBOARD GRID ===== */
    .dashboard-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        page-break-inside: avoid !important;
    }
    
    /* ===== FUEL PRICE CARD ===== */
    .fuel-price-card {
        border: 1px solid #bfdbfe !important;
        background: #eff6ff !important;
        padding: 12px 16px !important;
        border-radius: 6px !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .fuel-price-card .price {
        color: #1d4ed8 !important;
        font-size: 22px !important;
    }
    .fuel-price-card .fuel-icon {
        width: 40px !important;
        height: 40px !important;
        background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #fff !important;
        font-size: 18px !important;
    }
    
    /* ===== STATUS BARS ===== */
    .status-bars {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 4px 0 !important;
    }
    .bar-item .lbl {
        font-size: 10px !important;
        color: #1e293b !important;
    }
    .bar-track {
        height: 6px !important;
        background: #e2e8f0 !important;
        border-radius: 6px !important;
        overflow: hidden !important;
    }
    .bar-fill {
        border-radius: 6px !important;
    }
    
    /* ===== STATUS LEGEND ===== */
    .status-legend {
        display: flex !important;
        gap: 12px !important;
        flex-wrap: wrap !important;
        margin-top: 6px !important;
        padding-top: 6px !important;
        border-top: 1px solid #e2e8f0 !important;
    }
    .status-legend .legend-item {
        font-size: 9px !important;
        color: #475569 !important;
    }
    .status-legend .legend-item .dot {
        width: 8px !important;
        height: 8px !important;
        border-radius: 50% !important;
        display: inline-block !important;
        margin-right: 4px !important;
    }
    .status-legend .legend-item .dot.available { background: #10b981 !important; }
    .status-legend .legend-item .dot.transit { background: #3b82f6 !important; }
    .status-legend .legend-item .dot.maintenance { background: #ef4444 !important; }
    
    /* ===== PAGE BREAK CONTROL ===== */
    .panel, .kpi-grid, .dashboard-grid {
        page-break-inside: avoid !important;
    }
    
    /* Force landscape for wide tables */
    .table-wrap {
        page-break-inside: auto !important;
    }
    table {
        page-break-inside: auto !important;
    }
    tr {
        page-break-inside: avoid !important;
        page-break-after: auto !important;
    }
    thead {
        display: table-header-group !important;
    }
    tfoot {
        display: table-footer-group !important;
    }
    
    /* ===== BODY STYLES ===== */
    body {
        background: #ffffff !important;
        font-family: 'Inter', 'Segoe UI', sans-serif !important;
        color: #1e293b !important;
        font-size: 10px !important;
        padding: 8px !important;
        margin: 0 !important;
    }
    
    /* Hide scrollbars in print */
    ::-webkit-scrollbar {
        display: none !important;
    }
    
    /* Ensure all pages show */
    .page {
        display: block !important;
    }
    
    /* ===== FUEL MANAGEMENT PRINT ===== */
    .fuel-tab,
    .fuel-panel {
        display: block !important;
    }
    .fuel-panel {
        page-break-inside: avoid !important;
    }
    #fuelPanelReturn {
        display: block !important;
    }
    #fuelContainerResultsDispatch,
    #fuelContainerResultsReturn,
    .dispatch-search-result {
        display: none !important;
    }
    #selectedFuelContainerDispatch,
    #selectedFuelContainerReturn {
        display: block !important;
        border: 1px solid #d1d5db !important;
        background: #f9fafb !important;
    }
    .fuel-preview {
        display: block !important;
        border: 1px solid #d1d5db !important;
        background: #f9fafb !important;
    }
}
        /* ===================================================
   MOBILE RESPONSIVE IMPROVEMENTS
   Add this at the END of your CSS
=================================================== */

@media (max-width: 768px) {

    body{
        overflow-x:hidden;
    }

    /* Main Layout */
    .main{
        margin-left:0 !important;
        width:100%;
    }

    .content{
        padding:12px;
    }

    /* Topbar */
    .topbar{
        padding:12px;
        gap:10px;
    }

    .topbar-right{
        width:100%;
        justify-content:space-between;
    }

    .search-wrap{
        width:100%;
    }

    .search-box{
        width:100% !important;
    }

    /* Cards */
    .panel{
        padding:15px;
        border-radius:12px;
    }

    /* Forms */
    .grid-2,
    .grid-3{
        display:grid;
        grid-template-columns:1fr !important;
        gap:12px;
    }

    .field{
        width:100%;
    }

    .field input,
    .field select,
    .field textarea{
        font-size:16px;
        min-height:48px;
    }

    textarea{
        min-height:90px;
    }

    /* Buttons */
    .btn{
        width:100%;
        justify-content:center;
        margin-bottom:8px;
        min-height:46px;
    }

    .btn-group{
        flex-direction:column;
    }

    .panel-actions{
        width:100%;
        display:flex;
        flex-direction:column;
    }

    .panel-actions .btn{
        width:100%;
    }

    /* Filter Bar */
    .filter-bar{
        flex-direction:column;
        align-items:stretch;
    }

    .filter-group{
        width:100%;
        flex-direction:column;
        align-items:flex-start;
    }

    .filter-group select{
        width:100%;
    }

    .filter-actions{
        width:100%;
        margin-left:0;
        flex-direction:column;
    }

    /* Tables */
    .table-wrap{
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
    }

    table{
        min-width:900px;
    }

    /* KPI */
    .kpi-grid{
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }

    .kpi{
        padding:14px;
    }

    .kpi .num{
        font-size:20px;
    }

    .kpi .lbl{
        font-size:11px;
    }

    /* Dashboard */
    .dashboard-grid{
        grid-template-columns:1fr;
    }

    /* Status */
    .status-legend{
        flex-direction:column;
        gap:8px;
    }

    /* Fuel Card */
    .fuel-price-card{
        flex-direction:column;
        text-align:center;
    }

    /* Modal */
    .modal-overlay{
        padding:10px;
    }

    .modal-content{
        width:100%;
        max-width:100%;
        border-radius:15px;
        padding:18px;
    }

    /* Login */
    .login-box{
        width:100%;
        padding:30px 20px;
    }

    /* Header */
    .page-header h1{
        font-size:22px;
    }

    .page-header p{
        font-size:13px;
    }

}

/* Small Phones */

@media (max-width:480px){

    .kpi-grid{
        grid-template-columns:1fr;
    }

    .topbar{
        flex-direction:column;
        align-items:stretch;
    }

    .user-chip{
        width:100%;
        justify-content:center;
    }

    .menu-toggle{
        font-size:24px;
    }

    .panel{
        padding:12px;
    }

    .page-header{
        text-align:center;
    }

    .page-header div{
        width:100%;
    }

    .toast{
        width:95%;
        min-width:auto;
    }

    .fuel-price-card .price{
        font-size:24px;
    }

}

/* Sidebar Overlay */

@media (max-width:768px){

    .sidebar{
        position:fixed;
        left:0;
        top:0;
        height:100%;
        z-index:9999;
        transform:translateX(-100%);
        transition:.3s;
        box-shadow:0 0 25px rgba(0,0,0,.3);
    }

    .sidebar.open{
        transform:translateX(0);
    }

    .sidebar::-webkit-scrollbar{
        width:5px;
    }

    .sidebar::-webkit-scrollbar-thumb{
        background:#3b82f6;
        border-radius:20px;
    }

}

/* ===== UPLOAD ZONE STYLES ===== */
.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
    position: relative;
}
.upload-zone:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}
.upload-zone.dragover {
    border-color: #3b82f6;
    background: #dbeafe;
    transform: scale(1.01);
}
.upload-zone .upload-icon {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 12px;
    transition: color 0.3s;
}
.upload-zone:hover .upload-icon {
    color: #3b82f6;
}
.upload-zone h3 {
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 4px;
}
.upload-zone p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 0;
}
.upload-zone .allowed-types {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 8px;
}
.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-preview-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.upload-preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.upload-preview-item .file-icon {
    font-size: 24px;
    color: #3b82f6;
    width: 36px;
    text-align: center;
}
.upload-preview-item .file-info {
    flex: 1;
    min-width: 0;
}
.upload-preview-item .file-info .file-name {
    font-size: 13px;
    font-weight: 500;
    color: #0f2744;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.upload-preview-item .file-info .file-size {
    font-size: 11px;
    color: #64748b;
}
.upload-preview-item .file-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.upload-preview-item .file-status.pending {
    background: #fef9c3;
    color: #854d0e;
}
.upload-preview-item .file-status.uploading {
    background: #dbeafe;
    color: #1e40af;
}
.upload-preview-item .file-status.success {
    background: #dcfce7;
    color: #166534;
}
.upload-preview-item .file-status.error {
    background: #fee2e2;
    color: #991b1b;
}
.upload-preview-item .remove-file {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: color 0.2s;
}
.upload-preview-item .remove-file:hover {
    color: #ef4444;
}

.upload-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    justify-content: flex-end;
}
.upload-progress {
    margin-top: 16px;
    background: #e2e8f0;
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
    display: none;
}
.upload-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 20px;
    width: 0%;
    transition: width 0.3s ease;
}
.upload-progress .progress-text {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    text-align: right;
}

.upload-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 24px;
}
.upload-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}
.upload-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0f2744;
    margin-bottom: 4px;
}
.upload-header p {
    font-size: 13px;
    color: #64748b;
}
.upload-header .container-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

.upload-result {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    display: none;
}
.upload-result.success {
    display: block;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.upload-result.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ============================================================
   LAPTOP + SMALL-SCREEN RESPONSIVENESS (additive layer)
   Fills the gap between desktop and the existing 768px rules so
   laptops (1024-1366px), tablets and phones all stay usable.
   Nothing above is altered; these rules only narrow layouts.
   ============================================================ */
img { max-width: 100%; height: auto; }
table { max-width: 100%; }

@media (max-width: 1400px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
    /* Gain full width for content on small laptops/tablets landscape */
    .sidebar { transform: translateX(-100%); width: 285px; }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; }
    .menu-toggle { display: flex !important; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .modal-content { max-width: calc(100vw - 32px); }
}

@media (max-width: 640px) {
    .content { padding: 10px; }
    .panel { padding: 14px; }
    .page-header h1 { font-size: 18px; }
    .filter-bar { padding: 12px; gap: 8px; }
    .filter-bar .filter-group { width: 100%; }
    .filter-bar .filter-group label { min-width: 90px; }
    .btn-group { display: flex; flex-wrap: wrap; gap: 8px; }
    .btn-group .btn { flex: 1 1 auto; }
    .modal-content { margin: 0 8px; max-height: 92vh; }
    table { font-size: 11px; }
    table th, table td { padding: 7px 8px; }
}
