/* ===== AUTO APP - INGEVO THEME ===== */
:root {
    --bg: #f5f5f0;
    --bg-card: #ffffff;
    --text: #4d4d4d;
    --text-light: #7a7a7a;
    --primary: #808c75;
    --primary-dark: #7d9169;
    --primary-light: #b5c4a8;
    --primary-pale: #e8ede4;
    --danger: #c0392b;
    --danger-light: #f5d5d2;
    --warning: #e67e22;
    --border: #e0e0da;
    --border-light: #efefea;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --header-h: 56px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-tap-highlight-color: transparent;
}

/* ===== LOGIN ===== */
.login-screen {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4d4d4d 0%, #3a3a3a 100%);
    padding: 20px;
}

.login-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    width: 100%;
    max-width: 380px;
    box-shadow: var(--shadow-lg);
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo h1 {
    font-size: 24px;
    color: var(--text);
    font-weight: 700;
}

.login-logo .subtitle {
    color: var(--primary-dark);
    font-size: 14px;
    margin-top: 4px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-card);
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-pale);
}

.form-group input[type="number"] {
    font-variant-numeric: tabular-nums;
}

.form-group input[type="date"],
.form-group input[type="time"] {
    min-height: 48px;
    line-height: 1.2;
    display: block;
}
.form-group input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
    min-height: 1.2em;
}

.login-error {
    color: var(--danger);
    font-size: 13px;
    text-align: center;
    margin-bottom: 12px;
    min-height: 20px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
    background: var(--border-light);
    color: var(--text);
}
.btn-secondary:hover { background: var(--border); }

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover { background: #a93226; }

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary-dark);
}
.btn-outline:hover { background: var(--primary-pale); }

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
    min-height: 36px;
}

.btn-full { width: 100%; }

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    font-size: 18px;
}

/* ===== APP LAYOUT ===== */
.app-screen { display: none; }
.app-screen.active { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }

.app-header {
    background: var(--bg-card);
    height: calc(var(--header-h) + env(safe-area-inset-top));
    display: flex;
    align-items: center;
    padding: env(safe-area-inset-top) 16px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 12px;
}

.header-back {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    margin-left: -8px;
    display: none;
}

.header-title {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-user {
    font-size: 13px;
    color: var(--text-light);
    white-space: nowrap;
}

.header-menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    margin-right: -8px;
}

.app-main {
    flex: 1;
    padding: 16px;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

/* ===== SIDE MENU ===== */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
}
.menu-overlay.active { display: block; }

.side-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-card);
    z-index: 201;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.side-menu.active { right: 0; }

.menu-header {
    padding: calc(20px + env(safe-area-inset-top)) 16px 20px;
    border-bottom: 1px solid var(--border);
}

.menu-user-name {
    font-size: 16px;
    font-weight: 700;
}

.menu-user-role {
    font-size: 13px;
    color: var(--primary-dark);
    text-transform: uppercase;
}

.menu-items {
    flex: 1;
    padding: 8px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font);
}
.menu-item:hover { background: var(--primary-pale); }
.menu-item .icon { font-size: 20px; width: 24px; text-align: center; }

.menu-item.admin-only { display: none; }

.menu-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

/* ===== DASHBOARD ===== */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dashboard-header h2 {
    font-size: 20px;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.vehicle-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}
.vehicle-card:hover { border-color: var(--primary-light); transform: translateY(-1px); }
.vehicle-card:active { transform: scale(0.99); }

.vehicle-plate {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.vehicle-info {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-light);
}

.vehicle-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vehicle-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
}

.stat-label {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
}

/* ===== SHEET VIEW ===== */
.sheet-header {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.sheet-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.sheet-meta strong { color: var(--text); }

.meta-left, .meta-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-right {
    align-items: flex-end;
    text-align: right;
}

.btn-generate {
    margin-top: 4px;
    padding: 6px 14px;
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-generate:hover:not(.disabled) {
    background: var(--primary-dark);
}

.btn-generate.disabled {
    background: var(--border);
    color: var(--text-light);
    cursor: not-allowed;
}

.sheet-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 4px;
    box-shadow: var(--shadow);
}

.sheet-tab {
    flex: 1;
    padding: 10px 8px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
    text-align: center;
}
.sheet-tab.active {
    background: var(--primary);
    color: #fff;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== DATA TABLE ===== */
.data-table-wrap {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    background: var(--primary-pale);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    text-align: center;
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    white-space: nowrap;
    text-align: center;
}
.data-table td.td-text {
    white-space: normal;
    word-break: break-word;
    text-align: left;
    min-width: 100px;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr:hover td { background: var(--primary-pale); }

.data-table .num {
    font-variant-numeric: tabular-nums;
}

.data-table .actions {
    text-align: center;
    white-space: nowrap;
}

.data-table .actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    border-radius: 4px;
    transition: background 0.15s;
}
.data-table .actions button:hover { background: var(--border-light); }
.data-table .actions .btn-del:hover { background: var(--danger-light); color: var(--danger); }

/* Fuel table: spread columns across full width */
#fuelTable th:nth-child(1) { width: 25%; }
#fuelTable th:nth-child(2) { width: 25%; }
#fuelTable th:nth-child(3) { width: 20%; }
#fuelTable th:nth-child(4) { width: 20%; }
#fuelTable th:nth-child(5) { width: 10%; }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state .icon { font-size: 40px; margin-bottom: 8px; }

/* ===== TOTALS BAR ===== */
.totals-bar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    margin-top: 12px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
}

.total-item {
    text-align: center;
}

.total-label {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
}

.total-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    font-variant-numeric: tabular-nums;
}

/* ===== SHEET FOOTER (sticky totals) ===== */
.sheet-footer {
    position: sticky;
    bottom: 0;
    background: var(--bg-card);
    border-top: 2px solid var(--primary);
    padding: 12px 16px;
    margin-top: 16px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}

.reservoir-row td {
    background: var(--primary-pale);
    font-style: italic;
}

.totals-row td {
    background: var(--bg-section);
    border-top: 2px solid var(--border);
}

.report-filters {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.filter-row .form-group { margin-bottom: 0; }
.filter-row label { font-size: 11px; }
.filter-row select { padding: 8px 10px; font-size: 13px; }

.reservoir-row input {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px;
    font-size: 13px;
}

.sheet-status select {
    margin-left: 4px;
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    text-align: center;
}

.footer-item .label {
    font-size: 10px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.footer-item .value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
}


/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 300;
    align-items: flex-end;
    justify-content: center;
}
.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px 16px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px;
}

.modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.modal-actions .btn { flex: 1; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.form-group.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.form-group.checkbox-group label {
    margin-bottom: 0;
    text-transform: none;
    font-size: 14px;
}

/* ===== ADMIN PANELS ===== */
.admin-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-card-info h3 {
    font-size: 15px;
    font-weight: 600;
}

.admin-card-info p {
    font-size: 13px;
    color: var(--text-light);
}

.admin-card-actions {
    display: flex;
    gap: 4px;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-admin { background: var(--primary-pale); color: var(--primary-dark); }
.badge-driver { background: var(--border-light); color: var(--text-light); }

/* ===== MONTH PICKER ===== */
.month-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.month-nav button {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.month-nav button:hover { border-color: var(--primary); background: var(--primary-pale); }

.month-display {
    font-size: 18px;
    font-weight: 700;
    min-width: 160px;
    text-align: center;
}

/* ===== MULTI-SELECT (vehicle assignment) ===== */
.checkbox-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
}

.checkbox-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
}

.checkbox-list-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 600px) {
    .vehicle-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-overlay {
        align-items: center;
    }

    .modal {
        border-radius: var(--radius-lg);
        margin: 20px;
    }
}

@media (min-width: 900px) {
    .vehicle-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop: keep label + value inline */
.meta-left > div strong::after { content: ': '; }
.sheet-status strong::after { content: ': '; }

/* ===== MOBILE ONLY ===== */
@media (max-width: 599px) {
    .meta-fuel, .meta-sediu { display: none; }
    .meta-left > div strong::after { content: ''; }
    .sheet-status strong::after { content: ''; }
    .meta-driver, .meta-vehicle {
        display: flex;
        flex-direction: column;
    }
    .meta-driver strong, .meta-vehicle strong {
        font-size: 10px;
        color: var(--primary);
        text-transform: uppercase;
    }
    .sheet-status strong {
        text-transform: uppercase;
    }
    .meta-driver span, .meta-vehicle span {
        font-size: 13px;
        color: var(--text);
    }
    .sheet-status {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }
    .sheet-status strong {
        font-size: 10px;
        color: var(--primary);
    }
    .btn-generate {
        padding: 2px 10px !important;
        font-size: 11px !important;
        margin-top: 0 !important;
    }
    .sheet-meta {
        align-items: flex-end;
    }
    /* Mobile: ascund footer-ul sticky si tab-urile de sus, le mut jos */
    .sheet-footer { display: none !important; }
    .sheet-tabs { display: none !important; }

    .mobile-tab-bar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--bg-card);
        border-top: 1px solid var(--border);
        box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
        padding-bottom: env(safe-area-inset-bottom);
        z-index: 150;
    }
    .mobile-tab-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 8px 4px 6px;
        background: none;
        border: none;
        color: var(--text-light);
        font-family: var(--font);
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
        transition: color 0.15s;
    }
    .mobile-tab-btn.active {
        color: var(--primary-dark);
    }
    .mobile-tab-btn svg {
        width: 22px;
        height: 22px;
    }

    /* Spatiu jos cat bara fixa + safe area, ca sa nu acopere continutul */
    body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }

    .footer-km-init, .footer-km-final { display: none; }
    .totals-bar {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        padding: 8px 10px;
        gap: 4px;
    }
    .total-label { font-size: 9px; }
    .total-value { font-size: 14px; }
    .meta-right {
        justify-content: flex-end;
    }

    /* Mobile cards: hide tables, show cards */
    .data-table-wrap { display: none !important; }
    .cards-wrap { display: flex !important; flex-direction: column; gap: 8px; }

    /* Footer grid: 3 items pe mobil (km init/final deja hidden) */
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    .footer-item .label { font-size: 9px; }
    .footer-item .value { font-size: 14px; }
}

/* Cards (hidden on desktop) */
.cards-wrap { display: none; }

/* ===== MOBILE TAB BAR (hidden on desktop) ===== */
.mobile-tab-bar { display: none; }

/* ===== HELP ===== */
.help-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
}
.help-content h2 {
    font-size: 15px;
    color: var(--primary-dark);
    margin: 20px 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.help-content h2:first-child { margin-top: 0; }
.help-content p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
    margin: 0 0 4px;
}
.help-content ul {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    margin: 4px 0 0;
    padding-left: 20px;
}
.help-content li { margin-bottom: 4px; }

.mobile-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 10px 12px;
    border-left: 3px solid var(--primary);
    box-shadow: var(--shadow);
}
.mobile-card .card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.mobile-card .card-row + .card-row {
    margin-top: 4px;
}
.mobile-card .card-dest {
    font-weight: 600;
    text-align: right;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mobile-card .card-date {
    color: var(--text-light);
    font-size: 13px;
    white-space: nowrap;
}
.mobile-card .card-times {
    color: var(--text-light);
    font-size: 13px;
    white-space: nowrap;
}
.mobile-card .card-km {
    text-align: right;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.mobile-card .card-km strong {
    font-size: 15px;
    color: var(--primary-dark);
}
.mobile-card .card-scop {
    color: var(--text-light);
    font-size: 13px;
    flex: 1;
}
.mobile-card .card-actions {
    display: flex;
    gap: 4px;
}
.mobile-card .card-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 16px;
    border-radius: 4px;
    transition: background 0.15s;
}
.mobile-card .card-actions button:hover { background: var(--border-light); }
.mobile-card .card-actions .btn-del:hover { background: var(--danger-light); color: var(--danger); }

.mobile-card .card-detail {
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.mobile-card .card-detail-label {
    color: var(--text-light);
    font-size: 11px;
    text-transform: uppercase;
}

.mobile-card.reservoir-card {
    background: var(--primary-pale);
    border-left-color: var(--primary-dark);
    font-style: italic;
    padding: 8px 12px;
}
.mobile-card.reservoir-card input {
    width: 70px;
    text-align: center;
}

.cards-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

/* ===== CLOSE CHECKLIST DIALOG ===== */
.checklist-modal {
    max-width: 340px;
    width: 90%;
}
.checklist-modal h3 {
    margin: 0 0 16px;
    font-size: 16px;
    text-align: center;
}
.checklist-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.checklist-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: var(--radius);
    background: var(--bg);
}
.checklist-row .check-icon {
    font-size: 18px;
    font-weight: 700;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.check-ok .check-icon { color: var(--success, #4caf50); }
.check-fail .check-icon { color: var(--danger, #e53935); }
.check-fail { background: #fef2f2; }
.checklist-actions {
    display: flex;
    gap: 8px;
}
.checklist-actions .btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 14px;
}
.btn-warn {
    background: #f59e0b;
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
}
.btn-warn:hover { background: #d97706; }

/* ===== REFRESH BUTTON ===== */
.header-refresh {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}
.header-refresh:hover { opacity: 0.7; }
.header-refresh.spinning svg {
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== UTILITIES ===== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.gap-8 { gap: 8px; }

/* ===== LOADING ===== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2.5px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: #fff;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    z-index: 500;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
}
.toast.active { opacity: 1; }
