﻿:root {
            --primary: #3b82f6;
            --primary-hover: #2563eb;
            --primary-soft: rgba(59, 130, 246, 0.14);
            --bg-dark: #0b1220;
            --panel-bg: rgba(15, 23, 42, 0.82);
            --panel-border: rgba(148, 163, 184, 0.18);
            --card-bg: rgba(15, 23, 42, 0.72);
            --panel-elevated: rgba(15, 23, 42, 0.9);
            --text-main: #f8fafc;
            --text-muted: #cbd5e1;
            --text-soft: #94a3b8;
            --accent-gold: #fbbf24;
            --success: #22c55e;
            --danger: #ef4444;
            --warning: #f59e0b;
            --radius-lg: 18px;
            --radius-md: 12px;
            --shadow-glow: 0 16px 30px -18px rgba(15, 23, 42, 0.9);
            --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Plus Jakarta Sans', sans-serif;
        }

        body {
            height: 100vh;
            width: 100vw;
            overflow: hidden;
            background: radial-gradient(circle at top, #142033 0%, #0b1220 40%, #070d17 100%);
            color: var(--text-main);
            display: flex;
        }

        #appToastContainer {
            position: fixed;
            right: 20px;
            bottom: 20px;
            z-index: 200000;
            display: flex;
            flex-direction: column;
            gap: 10px;
            pointer-events: none;
        }

        .app-toast {
            min-width: min(320px, calc(100vw - 32px));
            max-width: 420px;
            background: rgba(15, 23, 42, 0.95);
            border: 1px solid rgba(148, 163, 184, 0.35);
            border-left: 4px solid var(--primary);
            color: var(--text-main);
            border-radius: 12px;
            padding: 12px 14px;
            box-shadow: 0 16px 35px rgba(15, 23, 42, 0.45);
            font-size: 12px;
            line-height: 1.5;
            opacity: 0;
            transform: translateY(12px);
            animation: toast-in 0.2s ease forwards;
            pointer-events: auto;
        }

        .app-toast.error {
            border-left-color: var(--danger);
        }

        .app-toast.success {
            border-left-color: var(--success);
        }

        .app-toast.warning {
            border-left-color: var(--warning);
        }

        .app-confirm-modal {
            position: fixed;
            inset: 0;
            background: rgba(2, 6, 23, 0.58);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 200001;
            padding: 20px;
        }

        .app-confirm-modal.visible {
            display: flex;
        }

        .app-confirm-card {
            width: min(420px, 100%);
            background: rgba(15, 23, 42, 0.98);
            border: 1px solid rgba(148, 163, 184, 0.35);
            border-radius: 18px;
            box-shadow: 0 24px 40px rgba(15, 23, 42, 0.5);
            padding: 20px 18px 16px;
        }

        .app-confirm-card h3 {
            font-size: 18px;
            margin-bottom: 12px;
            color: var(--text-main);
        }

        .app-confirm-card p {
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.55;
            margin-bottom: 18px;
        }

        .app-confirm-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }

        .app-confirm-btn {
            border: none;
            border-radius: 10px;
            padding: 10px 14px;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
        }

        .app-confirm-btn.primary {
            background: var(--primary);
            color: white;
        }

        .app-confirm-btn.secondary {
            background: rgba(148, 163, 184, 0.16);
            color: var(--text-main);
        }

        @keyframes toast-in {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* --- STYLIZACJA STRONY LOGOWANIA --- */
        #loginOverlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
            z-index: 99999;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        #loginOverlay.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .login-card {
            background: rgba(15, 23, 42, 0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            padding: 40px;
            border-radius: 24px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
            width: 100%;
            max-width: 400px;
            text-align: center;
            animation: fadeIn 0.4s ease-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .login-icon {
            width: 64px;
            height: 64px;
            background: linear-gradient(135deg, #2563eb, #3b82f6);
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px auto;
            color: white;
            font-size: 28px;
            box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
        }

        .login-card h2 {
            font-size: 22px;
            font-weight: 700;
            color: #ffffff;
            margin-bottom: 6px;
        }

        .login-card p {
            font-size: 13px;
            color: var(--text-muted);
            margin-bottom: 28px;
        }

        .login-form-group {
            display: flex;
            flex-direction: column;
            gap: 12px;
            text-align: left;
        }

        .login-form-group label {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #cbd5e1;
        }

        .login-input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .login-input-wrapper i.lock-icon {
            position: absolute;
            left: 14px;
            color: #94a3b8;
            font-size: 15px;
        }

        .login-input-wrapper input {
            width: 100%;
            padding: 12px 42px 12px 42px;
            background: rgba(30, 41, 59, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: var(--radius-md);
            color: #ffffff;
            font-size: 14px;
            outline: none;
            transition: var(--transition);
        }

        .login-input-wrapper input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
            background: rgba(30, 41, 59, 1);
        }

        .toggle-password {
            position: absolute;
            right: 14px;
            color: #94a3b8;
            cursor: pointer;
            font-size: 14px;
            transition: var(--transition);
        }

        .toggle-password:hover {
            color: #ffffff;
        }

        .login-btn {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            color: white;
            border: none;
            padding: 14px;
            border-radius: var(--radius-md);
            font-weight: 700;
            font-size: 14px;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
            margin-top: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
        }

        .login-btn:hover {
            background: var(--primary-hover);
            transform: translateY(-2px);
            box-shadow: 0 12px 25px rgba(37, 99, 235, 0.45);
        }

        .error-msg {
            color: #ef4444;
            font-size: 12px;
            font-weight: 600;
            display: none;
            margin-top: 4px;
            align-items: center;
            gap: 6px;
        }

        .error-msg.show {
            display: flex;
        }

        /* Layout split for live report & settings mode */
        #mainContainer {
            flex: 1;
            height: 100%;
            position: relative;
            transition: var(--transition);
            min-width: 0;
        }

        #map {
            width: 100%;
            height: 100%;
            z-index: 1;
            background: #e5e3df;
        }

        /* Lewy gĂłrny kontener na profil spedytora i nagĹ‚Ăłwek */
        .top-left-wrapper {
            position: absolute;
            top: 18px;
            left: 18px;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        /* Okienko Spedytora / UĹĽytkownika w lewym gĂłrnym rogu */
        .user-profile-widget {
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(15, 23, 42, 0.78);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--panel-border);
            padding: 8px 14px;
            border-radius: 14px;
            box-shadow: var(--shadow-glow);
            width: fit-content;
            transition: var(--transition);
        }

        .user-profile-widget:hover {
            border-color: rgba(37, 99, 235, 0.5);
        }

        .user-avatar-badge {
            width: 28px;
            height: 28px;
            background: rgba(37, 99, 235, 0.2);
            border: 1px solid rgba(37, 99, 235, 0.4);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #60a5fa;
            font-size: 12px;
        }

        .user-info-editable {
            display: flex;
            flex-direction: column;
        }

        .user-info-editable label {
            font-size: 9px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--text-muted);
            font-weight: 700;
        }

        .username-input {
            background: transparent;
            border: none;
            color: #ffffff;
            font-size: 13px;
            font-weight: 700;
            outline: none;
            padding: 1px 4px;
            border-radius: 4px;
            cursor: pointer;
            transition: var(--transition);
            width: 150px;
        }

        .username-input:hover, .username-input:focus {
            background: rgba(255, 255, 255, 0.1);
            cursor: text;
        }

        /* Header Bar */
        .app-header {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(15, 23, 42, 0.8);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--panel-border);
            padding: 10px 18px;
            border-radius: 18px;
            box-shadow: var(--shadow-glow);
        }

        .app-logo-jit {
            height: 48px;
            width: 48px;
            object-fit: contain;
            background: #ffffff;
            border-radius: 10px;
            padding: 4px;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
        }

        .app-title h1 {
            font-size: 16px;
            font-weight: 700;
            letter-spacing: -0.3px;
            color: #ffffff;
        }

        .app-title p {
            font-size: 11px;
            color: var(--text-muted);
            font-weight: 600;
        }

        /* Control Buttons */
        .header-actions {
            position: absolute;
            top: 18px;
            right: 18px;
            z-index: 1000;
            display: flex;
            gap: 10px;
            align-items: flex-start;
            flex-wrap: wrap;
            justify-content: flex-end;
            max-width: min(54vw, 630px);
        }

        .action-btn {
            background: rgba(37, 99, 235, 0.96);
            color: white;
            border: 1px solid rgba(96, 165, 250, 0.35);
            padding: 10px 14px;
            border-radius: 14px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 8px 18px -10px rgba(37, 99, 235, 0.9);
            transition: var(--transition);
        }

        .action-btn:hover {
            background: var(--primary-hover);
            transform: translateY(-1px);
            box-shadow: 0 12px 18px -12px rgba(37, 99, 235, 0.9);
        }

        .action-btn.active {
            background: var(--primary-hover);
        }

        .action-btn.btn-icon-only {
            padding: 12px 15px;
        }

        .action-btn.btn-report {
            background: rgba(34, 197, 94, 0.16);
            color: #dcfce7;
            border-color: rgba(34, 197, 94, 0.38);
            box-shadow: none;
        }

        .action-btn.btn-report:hover, .action-btn.btn-report.active {
            background: rgba(34, 197, 94, 0.24);
            box-shadow: none;
        }

        .sidebar-report-btn {
            width: 100%;
            justify-content: center;
            margin-top: 10px;
        }

        /* Wyszukiwarka KoordynatĂłw */
        .search-container {
            position: relative;
        }

        .route-planner-container {
            position: relative;
        }

        .search-box-popup {
            position: absolute;
            top: 52px;
            right: 0;
            width: 320px;
            background: var(--panel-bg);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--panel-border);
            padding: 16px;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-glow);
            display: none;
            flex-direction: column;
            gap: 10px;
            animation: fadeIn 0.2s ease-out;
        }

        .search-box-popup.active {
            display: flex;
        }

        .route-planner-popup {
            position: absolute;
            top: 52px;
            right: 0;
            width: 320px;
            background: var(--panel-bg);
            backdrop-filter: blur(16px);
            border: 1px solid var(--panel-border);
            padding: 16px;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-glow);
            display: none;
            flex-direction: column;
            gap: 10px;
            color: #f8fafc;
            animation: fadeIn 0.2s ease-out;
        }

        .route-planner-popup.active { display: flex; }
        .route-planner-popup input {
            width: 100%;
            padding: 10px 12px;
            background: rgba(15, 23, 42, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: var(--radius-md);
            color: white;
            font-size: 13px;
        }
        .planned-points-list {
            display: flex;
            flex-direction: column;
            gap: 4px;
            color: #cbd5e1;
            font-size: 11px;
            max-height: 120px;
            overflow-y: auto;
        }
        .planned-point-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 4px 6px;
            background: rgba(30, 41, 59, 0.6);
            border-radius: 5px;
        }
        .planned-point-row button {
            border: 0;
            background: transparent;
            color: #fca5a5;
            cursor: pointer;
            padding: 2px 4px;
        }
        .route-plan-main-btn { background: #0891b2; }
        .btn-route-clear {
            border: 0;
            background: transparent;
            color: #fca5a5;
            cursor: pointer;
            font-size: 11px;
        }

        .share-duration-control {
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin: 12px 0 8px;
        }

        .share-duration-control label {
            color: #cbd5e1;
            font-size: 11px;
            font-weight: 700;
        }

        .share-duration-control select {
            width: 100%;
            padding: 10px;
            background: #1e293b;
            color: #f8fafc;
            border: 1px solid rgba(255, 255, 255, 0.16);
            border-radius: var(--radius-md);
        }

        .share-route-control {
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin: 8px 0;
        }

        .share-route-control label {
            color: #cbd5e1;
            font-size: 11px;
            font-weight: 700;
        }

        .share-route-control select {
            width: 100%;
            padding: 10px;
            background: #1e293b;
            color: #f8fafc;
            border: 1px solid rgba(255, 255, 255, 0.16);
            border-radius: var(--radius-md);
        }

        .search-box-popup label {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #cbd5e1;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .search-input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .search-input-wrapper i {
            position: absolute;
            left: 12px;
            color: #94a3b8;
            font-size: 14px;
        }

        .search-input-wrapper input {
            width: 100%;
            padding: 10px 12px 10px 36px;
            background: rgba(15, 23, 42, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: var(--radius-md);
            color: white;
            font-size: 13px;
            outline: none;
            transition: var(--transition);
        }

        .search-input-wrapper input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
        }

        .btn-search-go {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            color: white;
            border: none;
            padding: 10px;
            border-radius: var(--radius-md);
            font-weight: 600;
            font-size: 13px;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .btn-search-go:hover {
            background: var(--primary-hover);
        }

        /* Sidebar Settings Layout */
        .sidebar {
            width: 0;
            opacity: 0;
            height: 100%;
            background: rgba(11, 18, 32, 0.9);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-left: 1px solid var(--panel-border);
            padding: 0;
            transition: var(--transition);
            z-index: 1500;
            overflow: hidden;
            box-shadow: -18px 0 30px -25px rgba(15, 23, 42, 0.9);
            display: flex;
            flex-direction: column;
        }

        .sidebar.show {
            width: 420px;
            max-width: 92vw;
            flex-shrink: 0;
            opacity: 1;
            padding: 22px 18px;
            overflow-y: auto;
        }

        @media (max-width: 768px) {
            .sidebar.show {
                width: calc(100vw - 8px);
                max-width: none;
                padding: 18px 12px 24px;
            }
        }

        .sidebar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--panel-border);
            margin-bottom: 16px;
        }

        .sidebar-header h2 {
            font-size: 18px;
            font-weight: 700;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .close-btn {
            background: rgba(255, 255, 255, 0.12);
            border: none;
            color: #ffffff;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            flex-shrink: 0;
        }

        .close-btn:hover {
            background: rgba(255, 255, 255, 0.25);
            color: #fff;
        }

        /* Sidebar Tabs Nav */
        .sidebar-tabs {
            display: flex;
            gap: 8px;
            background: rgba(15, 23, 42, 0.6);
            padding: 4px;
            border-radius: var(--radius-md);
            border: 1px solid rgba(255, 255, 255, 0.1);
            margin-bottom: 16px;
        }

        .tab-btn {
            flex: 1;
            padding: 8px 12px;
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 13px;
            font-weight: 600;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: var(--transition);
        }

        .tab-btn:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.05);
        }

        .tab-btn.active {
            background: var(--primary);
            color: #fff;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        }

        .tab-content {
            display: none;
            flex-direction: column;
            gap: 16px;
        }

        .tab-content.active {
            display: flex;
        }

        /* Form Groups */
        .form-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .form-group label {
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #e2e8f0;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .input-wrapper i {
            position: absolute;
            left: 12px;
            color: #94a3b8;
            font-size: 14px;
        }

        .form-group input, 
        .form-group select {
            width: 100%;
            padding: 10px 12px 10px 36px;
            background: rgba(15, 23, 42, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: var(--radius-md);
            color: white;
            font-size: 14px;
            font-weight: 500;
            outline: none;
            transition: var(--transition);
        }

        .form-group input:focus, 
        .form-group select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
            background: rgba(15, 23, 42, 0.95);
        }

        .angle-container {
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.15);
            padding: 12px;
            border-radius: var(--radius-md);
        }

        .angle-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            font-size: 13px;
            color: #f1f5f9;
            font-weight: 600;
        }

        .angle-value {
            font-weight: 700;
            color: var(--accent-gold);
            background: rgba(245, 158, 11, 0.2);
            padding: 2px 8px;
            border-radius: 6px;
        }

        input[type="range"] {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 6px;
            background: #334155;
            border-radius: 3px;
            outline: none;
        }

        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--primary);
            cursor: pointer;
            box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
            transition: var(--transition);
        }

        .btn-submit {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            color: white;
            border: none;
            padding: 12px;
            border-radius: var(--radius-md);
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
            margin-top: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        /* Style dla panelu dodawania wielu strzaĹ‚ek */
        .multi-arrows-section {
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.15);
            padding: 14px;
            border-radius: var(--radius-md);
            margin-top: 10px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .multi-arrows-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 8px;
        }

        .multi-arrows-header h4 {
            font-size: 13px;
            color: #f1f5f9;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .arrows-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-height: 200px;
            overflow-y: auto;
        }

        .arrow-item {
            background: rgba(30, 41, 59, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 10px;
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .arrow-item-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .arrow-item-title {
            font-size: 12px;
            font-weight: 700;
            color: var(--accent-gold);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .vehicle-edit-label {
            color: #cbd5e1;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
        }

        .vehicle-edit-input {
            width: 100%;
            padding: 7px 9px;
            color: #fff;
            background: rgba(15, 23, 42, .85);
            border: 1px solid rgba(255, 255, 255, .15);
            border-radius: 6px;
            font-size: 12px;
            outline: none;
        }

        .vehicle-edit-input:focus {
            border-color: var(--primary);
        }

        .btn-set-main {
            padding: 8px;
            color: #fff;
            background: var(--primary);
            border: 0;
            border-radius: 6px;
            cursor: pointer;
            font-size: 11px;
            font-weight: 700;
        }

        .btn-set-main:hover {
            background: var(--primary-hover);
        }

        .btn-delete-arrow {
            background: rgba(239, 68, 68, 0.2);
            color: #fca5a5;
            border: 1px solid rgba(239, 68, 68, 0.4);
            padding: 4px 8px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 11px;
            transition: var(--transition);
        }

        .btn-delete-arrow:hover {
            background: #ef4444;
            color: white;
        }

        .btn-add-vehicle {
            background: linear-gradient(135deg, #f59e0b, #d97706);
            color: white;
            border: none;
            padding: 10px;
            border-radius: var(--radius-md);
            font-weight: 600;
            font-size: 13px;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
        }

        .btn-add-vehicle:hover {
            background: #b45309;
        }

        .btn-clear-arrows {
            background: rgba(239, 68, 68, 0.15);
            color: #ef4444;
            border: 1px solid rgba(239, 68, 68, 0.3);
            padding: 8px;
            border-radius: var(--radius-md);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .btn-clear-arrows:hover {
            background: #ef4444;
            color: white;
        }

        /* Route Management Control Buttons */
        .route-controls-box {
            display: flex;
            flex-direction: column;
            gap: 14px;
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.15);
            padding: 16px 14px 18px;
            border-radius: var(--radius-md);
        }

        .route-btn {
            padding: 11px 16px;
            border-radius: var(--radius-md);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: var(--transition);
            color: white;
        }

        .btn-draw-route {
            background: #2563eb;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        }

        .btn-draw-route:hover, .btn-draw-route.active {
            background: #1d4ed8;
        }

        .btn-toggle-markers {
            background: #475569;
            box-shadow: 0 4px 12px rgba(71, 85, 105, 0.3);
        }

        .btn-toggle-markers:hover,
        .btn-toggle-markers.active {
            background: #334155;
        }

        .btn-undo-step {
            background: #d97706;
            box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
        }

        .btn-undo-step:hover {
            background: #b45309;
        }

        .btn-reset-route {
            background: #ef4444;
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
        }

        .btn-reset-route:hover {
            background: #dc2626;
        }

        .autoplay-box, .shared-links-box {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding-top: 16px;
            border-top: 1px solid rgba(255, 255, 255, 0.12);
        }

        .route-planner-panel, .route-share-panel {
            display: flex;
            flex-direction: column;
            gap: 9px;
            padding: 12px;
            background: rgba(15, 23, 42, 0.55);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: var(--radius-md);
        }

        .route-planner-panel > strong, .route-share-panel > strong {
            color: #f8fafc;
            font-size: 13px;
        }

        .btn-advanced-toggle {
            background: #0f766e;
            box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
        }

        .btn-advanced-toggle:hover,
        .btn-advanced-toggle.active {
            background: #0f5f58;
        }

        .route-advanced {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .route-advanced.is-hidden {
            display: none !important;
        }

        .route-planner-panel > input {
            width: 100%;
            padding: 10px 12px;
            background: rgba(15, 23, 42, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: var(--radius-md);
            color: #fff;
            font-size: 13px;
        }

        .route-planner-panel .share-duration-control,
        .route-share-panel .share-duration-control,
        .route-share-panel .share-route-control {
            margin: 0;
        }

        .autoplay-box h4, .shared-links-box h4 {
            color: #f8fafc;
            font-size: 13px;
        }

        .autoplay-box label {
            color: #cbd5e1;
            font-size: 11px;
            font-weight: 700;
        }

        .autoplay-box select {
            width: 100%;
            padding: 10px;
            background: #1e293b;
            color: #f8fafc;
            border: 1px solid rgba(255, 255, 255, 0.16);
            border-radius: 8px;
        }

        .autoplay-status, .shared-links-empty {
            color: #94a3b8;
            font-size: 11px;
        }

        .autoplay-actions {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 6px;
        }

        .autoplay-actions .route-btn {
            padding: 9px 6px;
            font-size: 11px;
        }

        .btn-autoplay-start { background: #059669; }
        .btn-autoplay-pause { background: #d97706; }
        .btn-autoplay-stop { background: #dc2626; }
        .route-btn:disabled { opacity: 0.45; cursor: not-allowed; }

        .auto-sync-btn { background: #475569; }
        .auto-sync-btn.active, .report-mode-btn.active { background: #059669; }

        .report-mode-btn {
            width: 100%;
            margin-bottom: 14px;
            padding: 10px 14px;
            border: 0;
            border-radius: var(--radius-md);
            background: #475569;
            color: #fff;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
        }

        .shared-link-item {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 7px;
            align-items: stretch;
            width: 100%;
        }

        .shared-link-actions {
            display: flex;
            gap: 7px;
            min-width: max-content;
            align-items: center;
        }

        .shared-link-actions > button {
            flex: 0 0 42px;
            width: 42px;
            height: 42px;
        }

        .shared-link-item.active .shared-link-select {
            border-color: #38bdf8;
            background: rgba(14, 116, 144, 0.35);
        }

        .shared-link-select, .shared-link-copy {
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(30, 41, 59, 0.8);
            color: #f8fafc;
            cursor: pointer;
        }

        .shared-link-select {
            min-width: 0;
            display: grid;
            grid-template-columns: 18px minmax(0, 1fr);
            align-items: center;
            gap: 6px;
            padding: 8px;
            text-align: left;
            border-radius: 8px;
        }

        .shared-link-select span { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 11px; font-weight: 700; }
        .shared-link-select small { grid-column: 2; min-width: 0; color: #94a3b8; font-size: 10px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
        .shared-link-copy { width: auto; border-radius: 8px; cursor: pointer; }
        .shared-link-revoke {
            width: 34px;
            border: 1px solid rgba(239, 68, 68, 0.35);
            border-radius: 8px;
            background: rgba(127, 29, 29, 0.55);
            color: #fecaca;
            cursor: pointer;
        }
        .shared-link-open {
            width: 34px;
            border: 1px solid rgba(56, 189, 248, 0.35);
            border-radius: 8px;
            background: rgba(14, 116, 144, 0.55);
            color: #bae6fd;
            cursor: pointer;
        }
        .shared-link-route-toggle {
            width: 34px;
            border: 1px solid rgba(167, 139, 250, 0.35);
            border-radius: 8px;
            background: rgba(91, 33, 182, 0.55);
            color: #ddd6fe;
            cursor: pointer;
        }
        .shared-link-remove {
            width: 34px;
            border: 1px solid rgba(239, 68, 68, 0.35);
            border-radius: 8px;
            background: rgba(127, 29, 29, 0.55);
            color: #fecaca;
            cursor: pointer;
        }
        .shared-link-item.revoked { opacity: 0.65; }
        .shared-link-select:disabled { cursor: not-allowed; }

        .csv-import-label {
            display: block;
            padding: 9px 12px;
            border-radius: var(--radius-md);
            background: #334155;
            color: #f8fafc;
            cursor: pointer;
            font-size: 12px;
            font-weight: 700;
            text-align: center;
        }

        #plannedCsvInput { display: none; }
        .csv-replace-option {
            display: flex;
            align-items: center;
            gap: 7px;
            color: #cbd5e1;
            font-size: 11px;
        }

        @media (max-width: 768px) {
            .sidebar.show {
                padding: 18px 14px 24px;
            }

            .route-controls-box {
                padding: 14px 12px 16px;
            }

            .shared-link-item {
                grid-template-columns: 1fr;
                gap: 7px;
            }

            .shared-link-actions {
                display: flex;
                gap: 5px;
                justify-content: start;
                flex-wrap: wrap;
            }

            .shared-link-select {
                grid-template-columns: 16px minmax(0, 1fr);
            }

            .shared-link-select small {
                grid-column: 2;
                white-space: normal;
            }

            .shared-link-actions .shared-link-copy, .shared-link-actions .shared-link-open, .shared-link-actions .shared-link-route-toggle,
            .shared-link-actions .shared-link-revoke, .shared-link-actions .shared-link-remove {
                flex: 0 0 40px;
                width: 40px;
                min-width: 40px;
                height: 40px;
            }
        }

        /* Bottom Floating Info Card */
        .bottom-container {
            position: absolute;
            bottom: 18px;
            left: 50%;
            transform: translateX(-50%);
            width: min(94%, 1260px);
            display: flex;
            flex-direction: column;
            gap: 10px;
            z-index: 1000;
        }

        .info-panel {
            background: rgba(15, 23, 42, 0.8);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--panel-border);
            border-radius: 18px;
            padding: 14px 16px;
            box-shadow: var(--shadow-glow);
            transition: var(--transition);
        }

        .info-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 12px;
            align-items: center;
        }

        @media (max-width: 1024px) {
            .info-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 600px) {
            .info-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .info-card {
            display: flex;
            align-items: center;
            gap: 10px;
            min-height: 72px;
            padding: 6px 4px;
        }

        .info-icon {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            background: rgba(37, 99, 235, 0.2);
            border: 1px solid rgba(37, 99, 235, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #60a5fa;
            font-size: 15px;
            flex-shrink: 0;
        }

        .info-details {
            width: 100%;
            overflow: hidden;
        }

        .info-details label {
            font-size: 10px;
            color: #cbd5e1;
            text-transform: uppercase;
            font-weight: 700;
            letter-spacing: 0.4px;
            display: block;
            margin-bottom: 2px;
        }

        .info-details span {
            font-size: 13px;
            font-weight: 700;
            color: #ffffff;
            display: block;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* --- STYLIZACJA TARCZY PRÄDKOĹšCIOMIERZA --- */
        .speedometer-wrapper {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .speedometer-dial {
            position: relative;
            width: 42px;
            height: 42px;
            background: radial-gradient(circle, #1e293b 0%, #0f172a 100%);
            border: 2px solid #3b82f6;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
            flex-shrink: 0;
        }

        .speedometer-needle {
            position: absolute;
            width: 2px;
            height: 16px;
            background: #ef4444;
            top: 5px;
            left: calc(50% - 1px);
            transform-origin: bottom center;
            transform: rotate(-120deg);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 2px;
            box-shadow: 0 0 4px #ef4444;
        }

        .speedometer-center {
            width: 6px;
            height: 6px;
            background: #ffffff;
            border-radius: 50%;
            z-index: 2;
        }

        /* --- STYLIZACJA WSKAĹąNIKA PALIWA (BAR) --- */
        .fuel-bar-wrapper {
            width: 100%;
            margin-top: 4px;
        }

        .fuel-bar-bg {
            width: 100%;
            height: 8px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.15);
        }

        .fuel-bar-fill {
            height: 100%;
            width: 76%;
            background: var(--success);
            border-radius: 4px;
            transition: width 0.4s ease, background-color 0.4s ease;
        }

        .fuel-bar-fill.fuel-high {
            background: var(--success); /* > 50% */
            box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
        }

        .fuel-bar-fill.fuel-medium {
            background: var(--accent-gold); /* 30-50% */
            box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
        }

        .fuel-bar-fill.fuel-low {
            background: var(--warning); /* 15-30% */
            box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
        }

        .fuel-bar-fill.fuel-critical {
            background: var(--danger); /* < 15% */
            box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
            animation: pulseFuel 1s infinite alternate;
        }

        @keyframes pulseFuel {
            from { opacity: 0.6; }
            to { opacity: 1; }
        }

        .badge {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .badge-free {
            background: rgba(16, 185, 129, 0.25);
            color: #34d399;
            border: 1px solid rgba(16, 185, 129, 0.5);
        }

        .badge-busy {
            background: rgba(239, 68, 68, 0.25);
            color: #fca5a5;
            border: 1px solid rgba(239, 68, 68, 0.5);
        }

        /* Leaflet Popup Custom Style */
        .leaflet-popup-content-wrapper {
            background: rgba(15, 23, 42, 0.95) !important;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px !important;
            color: #ffffff !important;
            box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
        }
        .leaflet-popup-tip {
            background: rgba(15, 23, 42, 0.95) !important;
        }

        /* RIGHT PANEL - LIVE REPORT SIDEBAR */
        #reportSidebar {
            width: 0;
            opacity: 0;
            height: 100%;
            background: #0f172a;
            border-left: 1px solid var(--panel-border);
            display: flex;
            flex-direction: column;
            transition: var(--transition);
            overflow: hidden;
            box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
            z-index: 1500;
        }

        #reportSidebar.open {
            width: 720px;
            max-width: 95vw;
            flex-shrink: 0;
            opacity: 1;
        }

        @media (max-width: 768px) {
            #reportSidebar.open {
                width: 100vw;
            }
        }

        .report-side-header {
            padding: 16px 20px;
            border-bottom: 1px solid var(--panel-border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(30, 41, 59, 0.7);
        }

        .report-side-header h3 {
            font-size: 16px;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .report-side-body {
            padding: 20px;
            overflow-y: auto;
            flex: 1;
        }

        .report-side-footer {
            padding: 16px 20px;
            border-top: 1px solid var(--panel-border);
            display: flex;
            gap: 10px;
            background: rgba(30, 41, 59, 0.7);
        }

        /* PDF printable area styling */
        #pdfReportContent {
            background: #ffffff;
            color: #1e293b;
            padding: 24px;
            border-radius: 12px;
            font-size: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        }

        .report-header-pdf {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            border-bottom: 2px solid #2563eb;
            padding-bottom: 12px;
            margin-bottom: 16px;
        }

        .report-brand-block {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            flex: 1 1 auto;
            min-width: 0;
        }

        .report-logo-jit {
            display: block;
            height: 42px;
            width: auto;
            aspect-ratio: 1 / 1;
            flex: 0 0 42px;
            object-fit: contain;
            margin-top: 2px;
        }

        .report-header-pdf p {
            color: #64748b;
            font-size: 11px;
            margin-top: 3px;
        }

        .report-number-line {
            color: #64748b;
            font-size: 10px;
            margin-top: 6px;
        }

        .report-inline-input {
            display: inline-block;
            width: 125px;
            padding: 3px 5px;
            margin-left: 3px;
            font-size: 10px;
        }

        .report-header-pdf h2 {
            color: #1e293b;
            font-size: 20px;
            margin-bottom: 2px;
        }

        .report-date-picker-box {
            display: flex;
            align-items: center;
            gap: 6px;
            background: #f1f5f9;
            padding: 6px 10px;
            border-radius: 6px;
            border: 1px solid #cbd5e1;
            margin-top: 4px;
        }

        .report-date-picker-box label {
            font-size: 11px;
            font-weight: 700;
            color: #475569;
        }

        .report-date-input {
            border: 1px solid #cbd5e1;
            background: #ffffff;
            border-radius: 4px;
            padding: 3px 6px;
            font-size: 11px;
            font-family: inherit;
            color: #0f172a;
            font-weight: 600;
            outline: none;
        }

        .report-meta-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            background: #f8fafc;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 16px;
            border: 1px solid #e2e8f0;
        }

        @media (max-width: 600px) {
            .report-meta-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .report-summary-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .driver-hours-metrics {
                grid-template-columns: repeat(2, 1fr);
            }

            .driver-hours-heading {
                align-items: flex-start;
                flex-direction: column;
            }

            .report-route-fields {
                grid-template-columns: 1fr;
            }

            .report-header-pdf {
                align-items: flex-start;
                flex-direction: column;
                gap: 10px;
            }

            .report-header-pdf > div:last-child {
                text-align: left !important;
            }

            .report-side-footer {
                flex-wrap: wrap;
            }

            .report-side-footer .btn-modal {
                min-width: calc(50% - 5px);
            }
        }

        .report-meta-item {
            font-size: 12px;
            color: #475569;
        }

        .report-meta-item strong {
            color: #1e293b;
            display: block;
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .report-meta-input {
            margin-top: 4px;
            padding: 4px 6px;
            font-size: 11px;
        }

        .report-summary-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 8px;
            margin: 0 0 14px;
        }

        .report-summary-grid > div {
            padding: 9px 8px;
            background: #eff6ff;
            border: 1px solid #dbeafe;
            border-radius: 6px;
        }

        .report-summary-grid strong {
            display: block;
            color: #64748b;
            font-size: 9px;
            text-transform: uppercase;
        }

        .report-summary-grid span {
            display: block;
            color: #1e3a8a;
            font-size: 13px;
            font-weight: 800;
            margin-top: 3px;
        }

        .driver-hours-panel {
            margin: 0 0 14px;
            padding: 12px;
            border: 1px solid #dbeafe;
            border-left: 4px solid #2563eb;
            border-radius: 6px;
            background: #f8fafc;
        }

        .driver-hours-heading {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }

        .driver-hours-heading strong {
            display: block;
            color: #1e293b;
            font-size: 12px;
        }

        .driver-hours-heading strong i {
            color: #2563eb;
            margin-right: 5px;
        }

        .driver-hours-heading small {
            display: block;
            color: #64748b;
            font-size: 9px;
            margin-top: 3px;
        }

        .driver-hours-badge {
            padding: 4px 8px;
            border-radius: 999px;
            font-size: 9px;
            font-weight: 800;
            white-space: nowrap;
        }

        .driver-hours-badge.success { background: #dcfce7; color: #166534; }
        .driver-hours-badge.warning { background: #fef3c7; color: #92400e; }
        .driver-hours-badge.danger { background: #fee2e2; color: #991b1b; }
        .driver-hours-badge.neutral { background: #e2e8f0; color: #475569; }

        .driver-hours-metrics {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 7px;
        }

        .driver-hours-metrics > div {
            padding: 7px;
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 5px;
        }

        .driver-hours-metrics strong {
            display: block;
            color: #64748b;
            font-size: 9px;
        }

        .driver-hours-metrics span {
            display: block;
            color: #1e293b;
            font-size: 12px;
            font-weight: 800;
            margin-top: 2px;
        }

        .driver-hours-message {
            margin-top: 9px;
            color: #475569;
            font-size: 10px;
            line-height: 1.4;
        }

        .report-route-fields {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 14px;
        }

        .report-mode-panel {
            display: grid;
            gap: 7px;
            margin-bottom: 14px;
            padding: 10px;
            border: 1px solid #dbeafe;
            border-radius: 8px;
            background: #eff6ff;
        }

        .report-mode-panel strong {
            color: #1e3a8a;
            font-size: 12px;
        }

        .report-mode-panel p {
            color: #475569;
            font-size: 10px;
            line-height: 1.4;
        }

        .report-mode-action {
            min-height: 32px;
            padding: 7px 9px;
            border: 0;
            border-radius: 6px;
            background: #2563eb;
            color: #fff;
            font-size: 10px;
            font-weight: 700;
            cursor: pointer;
        }

        .report-mode-action:hover { background: #1d4ed8; }
        .report-mode-secondary { background: #0f766e; }
        .report-mode-secondary:hover { background: #115e59; }

        .route-stop-advanced {
            margin-top: 8px;
            color: #64748b;
            font-size: 10px;
        }

        .route-stop-advanced summary {
            cursor: pointer;
            font-weight: 700;
        }

        .route-stop-advanced .route-break-inputs {
            margin-top: 8px;
        }

        .report-route-generate {
            align-self: end;
            min-height: 34px;
            padding: 8px 10px;
            border: 0;
            border-radius: 6px;
            background: #2563eb;
            color: #fff;
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
        }

        .report-route-generate:hover {
            background: #1d4ed8;
        }

        .report-route-status {
            min-height: 16px;
            margin: -6px 0 12px;
            color: #64748b;
            font-size: 10px;
        }

        .report-route-legend {
            display: flex;
            flex-wrap: wrap;
            gap: 8px 14px;
            margin: -4px 0 12px;
            color: #64748b;
            font-size: 10px;
        }

        .report-route-legend span {
            align-items: center;
            display: inline-flex;
            gap: 5px;
        }

        .report-table tbody tr:hover {
            background: #dbeafe;
            box-shadow: inset 3px 0 0 #2563eb;
        }

        .report-legend-dot {
            border-radius: 50%;
            display: inline-block;
            height: 8px;
            width: 8px;
        }

        .report-legend-stop { background: #dc2626; }
        .report-legend-rest { background: #7c3aed; }
        .report-legend-load { background: #d97706; }

        .report-route-fields label,
        .report-notes-label {
            display: block;
            color: #475569;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
        }

        .report-route-fields .editable-input,
        .report-notes-label .editable-input {
            margin-top: 4px;
        }

        .report-notes-label {
            margin-top: 16px;
        }

        .report-footer-pdf {
            display: flex;
            justify-content: space-between;
            border-top: 1px solid #e2e8f0;
            margin-top: 18px;
            padding-top: 9px;
            color: #94a3b8;
            font-size: 9px;
        }

        .report-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
            table-layout: fixed;
        }

        .report-table th:last-child,
        .report-table td:last-child {
            width: 35px !important;
        }

        .report-table th {
            background: #2563eb;
            color: white;
            text-align: left;
            padding: 10px 8px;
            font-size: 11px;
            line-height: 1.3;
            font-weight: 700;
        }

        .report-table td {
            padding: 8px 6px;
            border-bottom: 1px solid #e2e8f0;
            font-size: 11px;
            line-height: 1.4;
            vertical-align: middle;
        }

        .editable-input {
            width: 100%;
            border: 1px solid #cbd5e1;
            background: #f8fafc;
            padding: 6px 8px;
            border-radius: 6px;
            font-size: 11px;
            font-family: 'Plus Jakarta Sans', sans-serif;
            color: #0f172a;
            font-weight: 500;
            line-height: 1.3;
            box-sizing: border-box;
            display: block;
            transition: all 0.2s ease;
        }

        .editable-input:hover {
            border-color: #94a3b8;
            background: #ffffff;
        }

        .editable-input:focus {
            border-color: #2563eb;
            background: #ffffff;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
            outline: none;
        }

        .datetime-cell {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .pdf-text-render {
            display: block;
            padding: 4px 6px;
            font-size: 11px;
            font-family: 'Plus Jakarta Sans', sans-serif;
            color: #0f172a;
            font-weight: 500;
            line-height: 1.4;
            min-height: 24px;
            word-break: break-word;
        }

        .report-table tr:nth-child(even) {
            background: #f8fafc;
        }

        .report-table tr.is-highlighted td {
            background: #dbeafe;
            border-bottom-color: #93c5fd;
        }

        .report-marker-icon {
            align-items: center;
            background: #2563eb;
            border: 3px solid #ffffff;
            border-radius: 50% 50% 50% 0;
            box-shadow: 0 3px 8px rgba(15, 23, 42, 0.35);
            color: #ffffff;
            display: flex;
            font-size: 12px;
            justify-content: center;
            transform: rotate(-45deg);
            transition: transform 0.15s ease, box-shadow 0.15s ease;
        }

        .report-marker-icon i {
            transform: rotate(45deg);
        }

        .report-marker-stop {
            background: #dc2626;
        }

        .report-marker-rest {
            background: #7c3aed;
        }

        .report-marker-load {
            background: #d97706;
        }

        .report-marker-other {
            background: #2563eb;
        }

        .report-marker-icon.is-highlighted {
            box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.25), 0 4px 12px rgba(15, 23, 42, 0.45);
            transform: rotate(-45deg) scale(1.2);
        }

        .btn-delete-row {
            background: #ef4444;
            color: white;
            border: none;
            width: 28px;
            height: 28px;
            border-radius: 6px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            transition: var(--transition);
        }

        .btn-delete-row:hover {
            background: #dc2626;
            transform: scale(1.05);
        }

        .report-actions-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 14px;
            gap: 10px;
        }

        .btn-add-row {
            background: #f1f5f9;
            color: #334155;
            border: 1px dashed #94a3b8;
            padding: 8px 14px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: var(--transition);
        }

        .btn-add-row:hover {
            background: #e2e8f0;
            color: #0f172a;
            border-color: #2563eb;
        }

        .btn-clear-all {
            background: #fef2f2;
            color: #dc2626;
            border: 1px solid #fca5a5;
            padding: 8px 14px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: var(--transition);
        }

        .btn-clear-all:hover {
            background: #ef4444;
            color: #ffffff;
            border-color: #ef4444;
        }

        .btn-modal {
            flex: 1;
            padding: 10px 14px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-size: 12px;
            transition: var(--transition);
        }

        .btn-secondary {
            background: #334155;
            color: white;
        }

        .btn-secondary:hover {
            background: #475569;
        }

        .btn-clear-footer {
            background: #dc2626;
            color: white;
        }

        .btn-clear-footer:hover {
            background: #b91c1c;
        }

        .btn-download {
            background: #10b981;
            color: white;
        }

        .btn-download:hover {
            background: #059669;
        }

        .btn-excel {
            background: #0284c7;
            color: white;
        }

        .btn-excel:hover {
            background: #0369a1;
        }

        .btn-draft {
            background: #64748b;
            color: white;
        }

        .btn-draft:hover {
            background: #475569;
        }

        .live-map-hint {
            background: rgba(16, 185, 129, 0.15);
            border: 1px solid rgba(16, 185, 129, 0.4);
            color: #34d399;
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-find-stops,
        .btn-find-stops:disabled {
            appearance: none;
            background: #7c3aed;
            color: #ffffff;
            box-shadow: 0 4px 12px rgba(124, 58, 237, 0.32);
            opacity: 0.62;
        }

        .btn-find-stops:not(:disabled) {
            opacity: 1;
        }

        .btn-find-stops:not(:disabled):hover,
        .btn-find-stops:not(:disabled):focus-visible {
            background: #6d28d9;
        }

        .route-stops-panel {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 14px;
            border: 1px solid rgba(167, 139, 250, 0.28);
            border-radius: 8px;
            background: rgba(30, 41, 59, 0.54);
        }

        .route-stops-panel > strong {
            color: #f8fafc;
            font-size: 13px;
        }

        .route-break-inputs {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 7px;
        }

        .route-break-inputs label {
            display: flex;
            flex-direction: column;
            gap: 4px;
            color: #cbd5e1;
            font-size: 9px;
            font-weight: 700;
            line-height: 1.25;
        }

        .route-break-inputs input {
            width: 100%;
            min-width: 0;
            padding: 7px;
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 5px;
            background: #1e293b;
            color: #f8fafc;
            font-size: 11px;
        }

        .route-stops-filters {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .route-stop-types {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
        }

        .route-stop-types label {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 6px 8px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-radius: 5px;
            color: #dbeafe;
            font-size: 11px;
            font-weight: 700;
        }

        .route-stop-types input { accent-color: #a78bfa; }

        .route-stop-radius {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: center;
            gap: 8px;
            color: #cbd5e1;
            font-size: 11px;
            font-weight: 700;
        }

        .route-stop-radius select {
            min-width: 94px;
            padding: 6px 8px;
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 5px;
            background: #1e293b;
            color: #f8fafc;
            font-size: 11px;
        }

        .btn-find-stops {
            width: 100%;
            min-height: 38px;
            border: 0;
            border-radius: 7px;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
        }

        .btn-find-stops:disabled { cursor: not-allowed; }

        .route-stop-map-clear {
            width: 100%;
            min-height: 32px;
            border: 1px solid rgba(248, 113, 113, 0.36);
            border-radius: 6px;
            background: rgba(127, 29, 29, 0.28);
            color: #fecaca;
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
        }

        .route-stop-map-clear:hover,
        .route-stop-map-clear:focus-visible {
            background: rgba(185, 28, 28, 0.55);
            color: #ffffff;
        }

        .route-stops-status {
            padding: 7px 9px;
            border-left: 3px solid #a78bfa;
            border-radius: 4px;
            background: rgba(124, 58, 237, 0.12);
            color: #ddd6fe;
            font-size: 11px;
            line-height: 1.4;
        }

        .route-stops-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
            max-height: 280px;
            overflow-y: auto;
            padding-right: 2px;
        }

        .planned-break-heading {
            display: grid;
            grid-template-columns: 18px minmax(0, 1fr) auto;
            align-items: center;
            gap: 6px;
            margin-top: 6px;
            padding: 7px 8px;
            border-left: 3px solid #f59e0b;
            border-radius: 5px;
            background: rgba(245, 158, 11, 0.13);
            color: #fef3c7;
            font-size: 11px;
            font-weight: 800;
        }

        .planned-break-heading.rest {
            border-left-color: #a78bfa;
            background: rgba(124, 58, 237, 0.16);
            color: #ddd6fe;
        }

        .planned-break-heading small { color: inherit; font-size: 9px; font-weight: 700; }

        .route-stop-item {
            display: grid;
            grid-template-columns: 32px minmax(0, 1fr) 30px;
            align-items: center;
            gap: 8px;
            min-height: 58px;
            padding: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 7px;
            background: rgba(15, 23, 42, 0.62);
            transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
        }

        .route-stop-item:hover,
        .route-stop-item.is-highlighted {
            border-color: #a78bfa;
            background: rgba(91, 33, 182, 0.28);
            transform: translateX(2px);
        }

        .route-stop-type-icon {
            display: grid;
            width: 32px;
            height: 32px;
            place-items: center;
            border-radius: 50%;
            background: rgba(251, 191, 36, 0.16);
            color: #fbbf24;
        }

        .route-stop-item.fuel .route-stop-type-icon {
            background: rgba(56, 189, 248, 0.16);
            color: #38bdf8;
        }

        .route-stop-item.truck .route-stop-type-icon {
            background: rgba(167, 139, 250, 0.2);
            color: #c4b5fd;
        }

        .route-stop-details { min-width: 0; }
        .route-stop-details strong { display: block; overflow: hidden; color: #f8fafc; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
        .route-stop-details > div { display: flex; gap: 6px; margin-top: 4px; color: #94a3b8; font-size: 10px; }
        .route-stop-kind { color: #c4b5fd; }
        .route-stop-distance { white-space: nowrap; }

        .route-stop-add {
            display: grid;
            width: 30px;
            height: 30px;
            place-items: center;
            border: 0;
            border-radius: 6px;
            background: #7c3aed;
            color: #fff;
            cursor: pointer;
        }

        .route-stop-add:hover,
        .route-stop-add:focus-visible { background: #6d28d9; }

        .route-stop-marker {
            display: grid;
            width: 30px;
            height: 30px;
            place-items: center;
            border: 2px solid #fff;
            border-radius: 50%;
            background: #d97706;
            color: #fff;
            box-shadow: 0 2px 7px rgba(15, 23, 42, 0.55);
            transition: transform 150ms ease, box-shadow 150ms ease;
        }

        .route-stop-marker.fuel { background: #0284c7; }
        .route-stop-marker.is-highlighted { transform: scale(1.35); box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.45), 0 3px 10px rgba(15, 23, 42, 0.6); }

        .planned-break-marker {
            display: grid;
            width: 34px;
            height: 34px;
            place-items: center;
            border: 3px solid #fff;
            border-radius: 50%;
            background: #f59e0b;
            color: #fff;
            box-shadow: 0 2px 9px rgba(15, 23, 42, 0.6);
        }

        .planned-break-marker.rest { background: #7c3aed; }

        @media (max-width: 430px) {
            .route-break-inputs { grid-template-columns: 1fr 1fr; }
            .route-break-inputs label:last-child { grid-column: span 2; }
        }
