/* ====== RESET & BASE ====== */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --dark: #364153;
    --gray: #6A7282;
    --blue: #0A85ED;
    --blue-brand: #006FFF;
    --blue-light: #8DC1FF;
    --bg: #F5F5F5;
    --bg-soft: #F8FAFF;
    --card: #ffffff;
    --text: #364153;
    --text-secondary: #4D4D4E;
    --text-light: #6A7282;
    --border: #E5E7EB;
    --border-card: #ECECEE;
    --shadow: 0 1px 3px rgba(54,65,83,0.06), 0 1px 2px rgba(54,65,83,0.04);
    --shadow-md: 0 4px 12px rgba(54,65,83,0.08);
    --radius: 12px;
    --radius-sm: 8px;
}
body {
    font-family: 'Noto Sans Hebrew', sans-serif;
    background: var(--card);
    color: var(--text);
    min-height: 100vh;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
}

/* ====== HEADER ====== */
.header {
    background: var(--card);
    border-bottom: 0.8px solid var(--border);
    padding: 10px 14px 10.8px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 17px;
    object-fit: cover;
    border: 1px solid var(--blue-light);
    flex-shrink: 0;
}
.user-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.user-name {
    font-size: 13.1px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
    white-space: nowrap;
}
.user-dept {
    font-size: 10.5px;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.2;
    white-space: nowrap;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo {
    height: 26px;
    width: auto;
    flex-shrink: 0;
}
.notification-btn {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    border: 0.8px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
}
.notification-btn:hover {
    background: var(--border);
}
.notification-btn img {
    width: 14.6px;
    height: 14.6px;
}
.notification-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #EF4444;
    color: white;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--card);
}
.notification-badge:empty { display: none; }

/* ====== NOTIFICATION DROPDOWN ====== */
.notification-wrapper {
    position: relative;
}
.notification-dropdown {
    display: none;
    position: absolute;
    top: 42px;
    left: 0;
    width: 280px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border: 1px solid var(--border);
    z-index: 200;
    overflow: hidden;
}
.notification-dropdown.active {
    display: block;
}
.notif-header {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    background: #F9FAFB;
}
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #F3F4F6;
}
.notif-item:last-child {
    border-bottom: none;
}
.notif-item:hover {
    background: #F0F7FF;
}
.notif-item.unread {
    background: #FAFCFF;
}
.notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(10,133,237,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.notif-icon svg {
    width: 16px;
    height: 16px;
    color: var(--blue);
}
.notif-content {
    flex: 1;
    min-width: 0;
}
.notif-text {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 3px;
}
.notif-text strong {
    color: var(--blue);
}
.notif-time {
    font-size: 11px;
    color: var(--text-light);
}
.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
    margin-top: 6px;
}

/* ====== STATS + SEARCH SECTION ====== */
.search-section {
    border-bottom: 0.8px solid #D3D3D3;
    padding: 14px 20px;
    display: flex;
    justify-content: center;
}

/* ====== SEARCH ====== */
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
}
.search-input {
    width: 100%;
    height: 38px;
    padding: 0 16px 0 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Noto Sans Hebrew', sans-serif;
    font-size: 14.1px;
    font-weight: 400;
    outline: none;
    transition: all 0.2s;
    direction: rtl;
    background: var(--card);
    color: var(--text);
    overflow: hidden;
}
.search-input::placeholder {
    color: #A0A7B4;
}
.search-input:focus {
    border-color: var(--blue-brand);
    box-shadow: 0 0 0 3px rgba(0,111,255,0.1);
}
.search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    opacity: 0.45;
}

/* ====== VEHICLE LIST ====== */
.vehicle-list {
    padding: 15px 20px 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.vehicle-card {
    background: rgba(245,245,250,0.5);
    border-radius: var(--radius);
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.vehicle-card:active {
    transform: scale(0.99);
}
.vehicle-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.vehicle-info .status-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--blue-brand);
}
.vehicle-info .client-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.vehicle-info .client-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
}
.vehicle-info .client-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.vehicle-info .vehicle-details {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
}
.vehicle-info .vehicle-details .sep {
    font-size: 6px;
    color: var(--text-light);
}
.action-btn-mini {
    background: rgba(65,130,235,0.14);
    color: #2C55FB;
    border: none;
    border-radius: 16px;
    padding: 6px 14px;
    height: 30px;
    min-width: 82px;
    font-family: 'Noto Sans Hebrew', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}
.action-btn-mini:hover {
    background: rgba(65,130,235,0.25);
}
.action-btn-mini .btn-icon {
    width: 20px;
    height: 18px;
}

/* ====== MODAL ====== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(54,65,83,0.4);
    z-index: 1000;
    backdrop-filter: blur(6px);
    animation: fadeIn 0.2s;
}
.modal-overlay.active { display: flex; align-items: flex-end; justify-content: center; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.modal {
    background: var(--card);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
    padding: 0;
}
.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--card);
    z-index: 10;
    border-radius: 20px 20px 0 0;
}
.modal-header h2 {
    font-size: 1.05em;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-header h2 .modal-title-icon {
    width: 20px;
    height: 20px;
}
.modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    font-size: 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.2s;
}
.modal-close:hover {
    background: var(--border);
}
.modal-body { padding: 20px; }

.modal-vehicle-info {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}
.modal-vehicle-info .row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 0.88em;
}
.modal-vehicle-info .row .label { color: var(--text-light); }
.modal-vehicle-info .row .value { font-weight: 600; color: var(--text); }

/* ====== UPLOAD AREA ====== */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
    background: var(--bg-soft);
}
.upload-area:hover, .upload-area.dragover {
    border-color: var(--blue-brand);
    background: #F0F6FF;
}
.upload-area .icon { margin-bottom: 10px; }
.upload-area .icon img {
    width: 40px;
    height: 40px;
    opacity: 0.6;
}
.upload-area .text {
    color: var(--text-light);
    font-size: 0.88em;
    line-height: 1.6;
}
.upload-area .text strong {
    color: var(--blue-brand);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 20px;
}
.preview-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg);
}
.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}
.preview-item .remove {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(54,65,83,0.7);
    color: white;
    border: none;
    font-size: 0.7em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview-item .remove:hover {
    background: rgba(54,65,83,0.9);
}

.submit-btn {
    width: 100%;
    padding: 13px;
    background: var(--blue-brand);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: 'Noto Sans Hebrew', sans-serif;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.submit-btn .btn-send-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}
.submit-btn:hover { background: #0059CC; }
.submit-btn:disabled {
    background: var(--border);
    color: #A0A7B4;
    cursor: not-allowed;
}
.submit-btn.loading {
    background: var(--blue-light);
}

/* ====== SUCCESS SCREEN ====== */
.success-screen {
    display: none;
    text-align: center;
    padding: 40px 20px;
}
.success-screen.active { display: block; }
.success-screen .checkmark {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ECFDF5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.success-screen .checkmark svg {
    width: 32px;
    height: 32px;
    color: #059669;
}
.success-screen h3 {
    font-size: 1.15em;
    margin-bottom: 8px;
    color: var(--text);
}
.success-screen p {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 0.88em;
}

/* ====== LOADING ====== */
.loading-screen {
    display: none;
    text-align: center;
    padding: 60px 20px;
}
.loading-screen.active { display: block; }
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-screen p {
    color: var(--text-light);
    font-size: 0.88em;
}

/* ====== EMPTY STATE ====== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.empty-state .empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 1px solid var(--border);
}
.empty-state .empty-icon svg {
    width: 28px;
    height: 28px;
    color: var(--text-light);
}
.empty-state h3 {
    font-size: 1em;
    margin-bottom: 4px;
    color: var(--text);
}
.empty-state p { font-size: 0.85em; }

/* ====== DESKTOP ====== */
@media (min-width: 768px) {
    body {
        background: #EAECF0;
    }
    .app-container {
        max-width: 1080px;
        margin: 0 auto;
        background: transparent;
        min-height: 100vh;
    }

    /* --- Header: full-width bar --- */
    .header {
        padding: 14px 32px;
        background: var(--card);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 1px 4px rgba(54,65,83,0.06);
        border-radius: 0 0 var(--radius) var(--radius);
    }
    .header-content {
        max-width: 100%;
    }
    .user-avatar {
        width: 40px;
        height: 40px;
    }
    .user-name {
        font-size: 14.5px;
    }
    .logo {
        height: 30px;
    }
    .notification-btn {
        width: 38px;
        height: 38px;
        border-radius: 19px;
    }

    /* --- Search section --- */
    .search-section {
        padding: 20px 0;
        border-bottom: none;
    }

    /* --- Search on desktop --- */
    .search-wrapper {
        max-width: 100%;
    }
    .search-input {
        height: 46px;
        font-size: 14.5px;
        border-radius: var(--radius);
        background: var(--card);
        border: 1px solid var(--border);
        box-shadow: 0 1px 3px rgba(54,65,83,0.04);
    }

    /* --- Vehicle List: table-style --- */
    .vehicle-list {
        padding: 0;
        gap: 0;
        background: var(--card);
        border-radius: var(--radius);
        box-shadow: 0 1px 4px rgba(54,65,83,0.06);
        border: 1px solid var(--border);
        overflow: hidden;
    }
    .vehicle-card {
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--border);
        background: var(--card);
        padding: 18px 28px;
        transition: background 0.15s;
    }
    .vehicle-card:last-child {
        border-bottom: none;
    }
    .vehicle-card:hover {
        background: var(--bg-soft);
    }
    .vehicle-info .status-label {
        font-size: 12px;
    }
    .vehicle-info .client-name {
        font-size: 15px;
    }
    .vehicle-info .client-avatar {
        width: 36px;
        height: 36px;
    }
    .vehicle-info .vehicle-details {
        font-size: 13.5px;
        gap: 8px;
    }
    .vehicle-info .vehicle-details .sep {
        font-size: 8px;
    }
    .action-btn-mini {
        height: 36px;
        min-width: 100px;
        font-size: 13.5px;
        border-radius: var(--radius-sm);
    }
    .action-btn-mini .btn-icon {
        width: 22px;
        height: 20px;
    }

    /* Empty + Loading inside container */
    .empty-state {
        background: var(--card);
        border-radius: var(--radius);
        border: 1px solid var(--border);
    }
    .loading-screen {
        background: var(--card);
        border-radius: var(--radius);
        border: 1px solid var(--border);
    }
}

/* ====== LARGE DESKTOP ====== */
@media (min-width: 1100px) {
    .app-container {
        max-width: 1200px;
    }
    .vehicle-card {
        padding: 18px 28px;
    }
}

/* ====== MOBILE ====== */
@media (max-width: 480px) {
}

/* ====== SUBMITTED VEHICLE CARD ====== */
.vehicle-card.submitted {
    background: #F3F4F6;
    border-color: #E5E7EB;
}
.vehicle-card.submitted:hover {
    background: #EBEDF0;
}
.submitted-status {
    color: #16A34A !important;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500 !important;
}
.submitted-status svg {
    color: #16A34A;
    flex-shrink: 0;
}
.action-btn-mini.done {
    background: var(--card);
    border-color: var(--border);
    color: var(--text-light);
}

/* ====== STATUS LABELS ====== */
.status-pickup {
    color: #D97706 !important;
}
.status-delivery {
    color: #7C3AED !important;
}

/* ====== FORM FIELDS ====== */
.form-section {
    margin-bottom: 18px;
}
.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.form-input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    font-family: 'Noto Sans Hebrew', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--card);
    transition: border-color 0.2s;
    direction: rtl;
}
.form-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(10,133,237,0.15);
}
.form-input::placeholder {
    color: #9CA3AF;
}

/* Radio group — "איפה נקלט הרכב" (באיסוף/במוסך/גרר) */
.radio-group {
    display: flex;
    gap: 8px;
}
.radio-btn {
    flex: 1;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-family: 'Noto Sans Hebrew', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s ease;
}
.radio-btn:active {
    transform: scale(0.97);
}
.radio-btn.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    box-shadow: 0 2px 8px rgba(10,133,237,0.25);
}

/* Compact upload area for form fields */
.upload-area.compact {
    padding: 16px;
    gap: 10px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.upload-area.compact .upload-area-icon {
    width: 22px;
    height: 22px;
    opacity: 0.6;
    flex-shrink: 0;
}
.upload-area.compact span {
    font-size: 13px;
    color: var(--blue-brand);
    font-weight: 500;
}

/* Single photo preview (dashboard) */
.preview-single {
    margin-top: 8px;
}
.preview-single .preview-item.single {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    background: var(--bg);
}
.preview-single .preview-item.single img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}
.preview-single .preview-item .remove {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(54,65,83,0.7);
    color: white;
    border: none;
    font-size: 0.75em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====== LIGHTBOX ====== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
}
.lightbox-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 3001;
}
.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

/* ====== TOAST ====== */
.toast {
    position: fixed;
    bottom: 104px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--dark);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 0.85em;
    font-weight: 500;
    z-index: 2000;
    opacity: 0;                 /* fully hidden until a message is shown */
    visibility: hidden;         /* (the empty box used to peek above the screen bottom) */
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(54,65,83,0.1);
}
.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ====== USER SELECT SCREEN ====== */
.user-select-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #F8FAFF 0%, #EBF3FF 100%);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.user-select-screen.hidden {
    display: none;
}
.user-select-card {
    background: var(--card);
    border-radius: 20px;
    padding: 40px 28px 32px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(54,65,83,0.1);
    border: 1px solid var(--border);
}
.user-select-logo {
    height: 32px;
    margin-bottom: 20px;
}
.user-select-card h2 {
    font-size: 1.25em;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.user-select-subtitle {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 28px;
}
.user-select-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.user-select-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-soft);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-align: right;
}
.user-select-item:hover {
    border-color: var(--blue-brand);
    background: #F0F6FF;
    box-shadow: 0 2px 8px rgba(0,111,255,0.1);
}
.user-select-item:active {
    transform: scale(0.98);
}
.user-select-avatar {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    object-fit: cover;
    border: 2px solid var(--blue-light);
    flex-shrink: 0;
}
.user-select-info {
    flex: 1;
}
.user-select-name {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text);
    display: block;
    line-height: 1.3;
}
.user-select-role {
    font-size: 11.5px;
    color: var(--text-light);
    display: block;
}
.user-select-arrow {
    color: var(--text-light);
    flex-shrink: 0;
}

/* ====== HEADER ACTIONS ====== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.switch-user-btn {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    border: 0.8px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
    color: var(--text-light);
}
.switch-user-btn:hover {
    background: var(--border);
    color: var(--blue-brand);
}

/* ====== DRIVER INFO BAR IN MODAL ====== */
.driver-info-bar {
    background: #F0F7FF;
    border-radius: var(--radius-sm);
    padding: 10px 14px !important;
    margin-bottom: 16px;
    border: 1px solid rgba(0,111,255,0.12);
}
.driver-info-bar .form-label {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 2px;
}
.driver-name-display {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-brand);
}

/* ====== DESKTOP ADJUSTMENTS ====== */
@media (min-width: 768px) {
    .switch-user-btn {
        width: 38px;
        height: 38px;
        border-radius: 19px;
    }
}

/* ============================================================
   VIEWS (intake / delivery) — toggled by the bottom dock
   ============================================================ */
.view { display: none; }
.view.active { display: block; }

/* leave room for the fixed bottom dock */
body { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
.vehicle-list { padding-bottom: 24px; }

/* Delivery view header */
.view-head {
    max-width: 800px;
    margin: 0 auto;
    padding: 18px 20px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.view-title { font-size: 15px; font-weight: 700; color: var(--text); }
.view-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-brand);
    background: rgba(0,111,255,0.08);
    padding: 3px 11px;
    border-radius: 999px;
}

/* Delivery card — read-only (no action button) */
.vehicle-card.readonly { cursor: default; }
.vehicle-card.readonly:active { transform: none; }
.delivery-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}
.delivery-time {
    font-size: 10.5px;
    font-weight: 600;
    color: #D97706;
    background: #FFF7ED;
    border: 1px solid #FFEDD5;
    padding: 4px 9px;
    border-radius: 999px;
    white-space: nowrap;
}
.delivery-phone {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--blue-brand);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    direction: ltr;
}
.delivery-phone svg { width: 13px; height: 13px; }

/* ============================================================
   BOTTOM TOGGLE DOCK — Liquid Glass (NIV-style), 2 tabs
   ============================================================ */
.dock-nav {
    position: fixed;
    left: 0; right: 0;
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    z-index: 600;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
}
.dock-bar {
    pointer-events: auto;
    position: relative;
    width: 100%;
    max-width: 440px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(26px) saturate(1.6);
    -webkit-backdrop-filter: blur(26px) saturate(1.6);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 24px;
    padding: 7px;
    box-shadow:
        0 18px 44px rgba(15,24,52,0.18),
        0 6px 16px rgba(15,24,52,0.08),
        inset 0 1px 0 rgba(255,255,255,0.65);
}
.dock-track {
    position: relative;
    display: flex;
    gap: 4px;
    align-items: stretch;
}
.dock-indicator {
    position: absolute;
    top: 0;
    height: 100%;
    left: 0; width: 0;            /* positioned by JS (offsetLeft/offsetWidth) */
    background: linear-gradient(135deg, #2D9BF3 0%, #0059CC 100%);
    border-radius: 18px;
    box-shadow:
        0 8px 22px rgba(10,133,237,0.34),
        inset 0 1px 0 rgba(255,255,255,0.35);
    transition:
        left .42s cubic-bezier(.22,.61,.36,1),
        width .42s cubic-bezier(.22,.61,.36,1);
    z-index: 0;
    pointer-events: none;
    will-change: left, width;
}
.dock-btn {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 9px 6px 8px;
    border-radius: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--blue-brand);
    font-family: 'Noto Sans Hebrew', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform .15s ease;
}
.dock-btn svg {
    width: 23px;
    height: 23px;
    flex-shrink: 0;
    transition: transform .2s ease;
}
.dock-btn span { line-height: 1; }
.dock-btn.active { color: #fff; }
.dock-btn.active svg { transform: translateY(-1px) scale(1.05); }
.dock-btn:active { transform: scale(.96); }

/* ============================================================
   NOTIFICATIONS — NIV look: read=white, unread=gray, blue circle
   ============================================================ */
.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.notif-clear {
    background: none;
    border: none;
    color: var(--blue-brand);
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.notif-clear:hover { text-decoration: underline; }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-empty {
    padding: 26px 16px;
    text-align: center;
    color: #9CA3AF;
    font-size: 12.5px;
}
.notif-item { background: #fff; align-items: center; }
.notif-item.unread { background: #F3F4F6; }
.notif-circle {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(10,133,237,0.15);
}
.notif-item:not(.unread) .notif-circle {
    background: transparent;
    border: 2px solid #D1D5DB;
    box-shadow: none;
}
.notif-time { margin-top: 2px; }
