/* Admin maintenance page — standalone stylesheet, same brand colors as
   report.css (#111827 dark, #16a34a green) for visual consistency, kept
   separate per-page per this app's CSS convention. */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f3f4f6;
    color: #111827;
}

.admin-shell {
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

.admin-header h1 {
    margin: 0 0 4px;
    font-size: 1.6rem;
}

.admin-subtext {
    margin: 0 0 20px;
    color: #6b7280;
    font-size: 0.85rem;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 14px;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-field label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
}

.filter-field select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 0.9rem;
    color: #111827;
    background: #fff;
    min-width: 160px;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}

.filter-apply-btn {
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.filter-clear-link {
    color: #6b7280;
    font-size: 0.85rem;
    text-decoration: none;
}

.filter-clear-link:hover {
    text-decoration: underline;
}

.filter-secondary-btn {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.85rem;
    color: #111827;
    cursor: pointer;
}

.filter-secondary-btn:hover {
    background: #f3f4f6;
}

.filter-danger-btn {
    background: #fff;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.85rem;
    color: #dc2626;
    cursor: pointer;
}

.filter-danger-btn:hover:not(:disabled) {
    background: #fef2f2;
}

.filter-danger-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.bulk-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 12px;
    padding: 10px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.bulk-select-all {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.bulk-count {
    color: #6b7280;
}

.table-scroll {
    max-height: 640px;
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 900px;
}

.admin-table th,
.admin-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    white-space: nowrap;
}

.admin-table thead th {
    position: sticky;
    top: 0;
    background: #fff;
    color: #6b7280;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #e5e7eb;
    z-index: 1;
}

.col-check {
    width: 32px;
}

.col-actions {
    width: 140px;
}

.admin-table tbody tr:hover {
    background: #f9fafb;
}

.row-saved-flash {
    background: #f0fdf4 !important;
    transition: background 0.8s ease;
}

.row-input {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 5px 7px;
    font-size: 0.82rem;
    color: #111827;
    background: #fff;
    width: 100%;
}

.plate-input {
    width: 100px;
}

.uppercase-input {
    text-transform: uppercase;
}

.vehicle-select {
    width: 110px;
}

.entry-input,
.exit-input {
    width: 170px;
}

.fee-input {
    width: 85px;
}

.row-save-btn,
.row-delete-btn {
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.78rem;
    cursor: pointer;
    margin-right: 4px;
}

.row-save-btn {
    background: #16a34a;
    color: #fff;
}

.row-delete-btn {
    background: #fff;
    border: 1px solid #fca5a5;
    color: #dc2626;
}

.row-delete-btn:hover {
    background: #fef2f2;
}

.empty-note {
    color: #9ca3af;
    font-size: 0.9rem;
}

.table-note {
    margin: 10px 0 0;
    font-size: 0.8rem;
    color: #9ca3af;
}

@media (max-width: 640px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-field select {
        min-width: 0;
        width: 100%;
    }

    .filter-actions {
        margin-left: 0;
        justify-content: space-between;
    }
}
