:root {
    --navy: #102942;
    --turquoise: #22b8b0;
    --gold: #d9b36c;
    --bg: #f4f8fb;
    --white: #ffffff;
    --text: #173147;
    --muted: #677889;
    --border: #dbe7ed;
    --danger: #b42318;
    --success: #12715b;
    --shadow: 0 18px 40px rgba(16, 41, 66, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

body.admin-nav-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(16, 41, 66, 0.95), rgba(34, 184, 176, 0.88));
}

.login-card {
    width: min(460px, 100%);
    background: var(--white);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.login-form,
.booking-form {
    display: grid;
    gap: 14px;
}

.login-form input,
.booking-form input,
.booking-form select,
.booking-form textarea,
.filter-form select,
.filter-form input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
}

.login-note {
    margin-top: 20px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(34, 184, 176, 0.08);
}

.full-btn,
.btn {
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid transparent;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--navy), var(--turquoise));
    color: var(--white);
}

.btn-secondary {
    background: rgba(16, 41, 66, 0.08);
    color: var(--navy);
    border-color: rgba(16, 41, 66, 0.05);
}

.btn-light {
    background: var(--white);
    border-color: var(--border);
}

.btn-danger {
    background: #fee4e2;
    color: var(--danger);
    border-color: #fecdca;
}

.admin-layout {
    display: grid;
    min-height: 100vh;
}

.admin-sidebar {
    background: linear-gradient(180deg, #102942 0%, #0d2337 100%);
    color: rgba(255, 255, 255, 0.88);
    padding: 22px 16px;
    transition: transform 0.28s ease, opacity 0.28s ease, box-shadow 0.28s ease;
    display: flex;
    flex-direction: column;
}

.admin-sidebar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.admin-sidebar-close,
.admin-nav-toggle,
.admin-sidebar-overlay {
    border: 0;
    background: transparent;
    padding: 0;
}

.admin-sidebar-close {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.admin-brand {
    display: block;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.admin-menu {
    display: grid;
    gap: 8px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.26) transparent;
    scrollbar-gutter: stable;
}

.admin-menu::-webkit-scrollbar {
    width: 8px;
}

.admin-menu::-webkit-scrollbar-track {
    background: transparent;
}

.admin-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.admin-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.34);
    background-clip: padding-box;
}

.admin-menu a,
.admin-menu-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.admin-menu a.active,
.admin-menu a:hover,
.admin-menu-button:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    transform: translateX(2px);
}

.admin-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-menu-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-menu a.active .admin-menu-icon,
.admin-menu a:hover .admin-menu-icon,
.admin-menu-button:hover .admin-menu-icon {
    background: linear-gradient(135deg, rgba(34, 184, 176, 0.28), rgba(34, 184, 176, 0.14));
    color: var(--white);
    border-color: rgba(34, 184, 176, 0.2);
}

.admin-menu-label {
    min-width: 0;
    font-weight: 700;
    line-height: 1.35;
}

.admin-menu-logout-form {
    margin: 0;
}

.admin-menu-button {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

.admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 21, 34, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 19;
}

.admin-main {
    padding: 24px 16px 40px;
}

.admin-topbar {
    margin-bottom: 22px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.topbar-heading {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.topbar-heading h1 {
    margin: 0;
}

.topbar-heading p {
    margin: 6px 0 0;
    color: var(--muted);
}

.admin-mobile-brand {
    display: none;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 0.86rem;
    color: var(--turquoise);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--navy);
    cursor: pointer;
}

.admin-nav-toggle-bars {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
}

.admin-nav-toggle-bars span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.admin-nav-toggle-label {
    font-weight: 700;
    font-size: 0.95rem;
}

.admin-section {
    margin-bottom: 22px;
}

.stats-grid,
.summary-list,
.filter-form {
    display: grid;
    gap: 14px;
}

.stats-card,
.admin-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 22px;
}

.stats-card span {
    color: var(--muted);
    display: block;
    margin-bottom: 6px;
}

.stats-card strong {
    font-size: 1.8rem;
    color: var(--navy);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.summary-item:last-child {
    border-bottom: 0;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.admin-table th {
    background: rgba(16, 41, 66, 0.03);
    color: var(--navy);
}

.actions-row,
.actions-cell {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.actions-cell form {
    margin: 0;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(34, 184, 176, 0.12);
    color: var(--navy);
    font-size: 0.86rem;
    font-weight: 700;
}

.badge.urgent {
    background: rgba(217, 179, 108, 0.22);
    color: #8a5b00;
}

.badge-success {
    background: rgba(40, 167, 69, 0.14);
    color: #1e7a34;
}

.badge-warning {
    background: rgba(217, 179, 108, 0.22);
    color: #8a5b00;
}

.badge-info {
    background: rgba(34, 184, 176, 0.16);
    color: #0b6d66;
}

.badge-neutral {
    background: rgba(16, 41, 66, 0.08);
    color: #4d6479;
}

.alert {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.alert-danger {
    background: #fef3f2;
    color: var(--danger);
    border: 1px solid #fecdca;
}

.alert-success {
    background: #ecfdf3;
    color: var(--success);
    border: 1px solid #abefc6;
}

.detail-list,
.timeline {
    display: grid;
    gap: 10px;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-item {
    padding: 16px;
    border-radius: 18px;
    background: rgba(16, 41, 66, 0.03);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-brand-sub {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
}

.topbar-actions,
.section-inline-head,
.settings-page-head,
.settings-save-footer,
.settings-section-head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.topbar-actions form {
    margin: 0;
}

.topbar-actions form .btn {
    width: 100%;
}

.stats-grid-7,
.stats-grid-5,
.stats-grid-4,
.stats-grid-3,
.admin-grid-2,
.settings-shell,
.settings-main,
.settings-sidebar,
.settings-grid,
.settings-stat-grid,
.settings-preview-list,
.settings-anchor-list,
.chip-list,
.settings-bottom-grid,
.assignment-list,
.dispatch-mobile-list,
.dispatch-quick-grid,
.dispatch-checklist-list,
.proof-grid {
    display: grid;
    gap: 14px;
}

.compact-list li {
    margin-bottom: 10px;
}

.checkbox-row input {
    width: auto;
}

.filter-form-4,
.filter-form-5,
.filter-form-6,
.dispatch-filter-form {
    display: grid;
    gap: 12px;
}

.admin-list-filter-grid {
    display: grid;
    gap: 12px;
}

.admin-table small {
    line-height: 1.6;
}

.table-inline-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}


.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    font-weight: 700;
}

.page-link.active {
    background: linear-gradient(135deg, var(--navy), var(--turquoise));
    color: var(--white);
    border-color: transparent;
}

.admin-note-box {
    margin-top: 16px;
}

.text-link {
    color: var(--navy);
    font-weight: 700;
}

.assignment-item,
.dispatch-card,
.proof-card,
.dispatch-quick {
    display: block;
    background: rgba(16, 41, 66, 0.03);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px;
}

.assignment-item strong,
.dispatch-card h2,
.proof-card span {
    display: block;
    margin-bottom: 6px;
}

.dispatch-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.dispatch-action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.dispatch-quick-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin: 18px 0;
}

.dispatch-quick {
    text-align: center;
    font-weight: 700;
    color: var(--navy);
}

.dispatch-check-item {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(34, 184, 176, 0.05);
}

.dispatch-check-item input[type="text"] {
    margin-top: 10px;
}

.dispatch-check-label {
    align-items: flex-start;
}

.dispatch-detail-list li,
.proof-card small,
.assignment-item small,
.assignment-item span {
    color: var(--muted);
}

.proof-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.proof-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 10px;
}

.top-gap {
    margin-top: 14px;
}

.settings-shell {
    align-items: start;
}

.settings-card {
    scroll-margin-top: 24px;
}

.settings-field {
    display: grid;
    gap: 8px;
}

.settings-field small,
.settings-preview-item p,
.setting-stat span,
.settings-anchor-list a,
.settings-section-head p {
    color: var(--muted);
}


.media-picker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}


.media-picker-file-name {
    color: var(--muted);
    font-size: 0.95rem;
}

.image-preview-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.image-preview-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(16, 41, 66, 0.03);
    display: grid;
    gap: 10px;
}

.image-preview-card.full-width {
    grid-column: 1 / -1;
}

.image-preview-card strong {
    color: var(--navy);
}

.image-preview-frame {
    min-height: 220px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px dashed rgba(16, 41, 66, 0.16);
    background: #eef5f8;
    display: grid;
    place-items: center;
}

.image-preview-frame img {
    width: 100%;
    height: 100%;
    max-height: 340px;
    object-fit: cover;
    display: block;
}

.image-preview-frame-empty {
    color: var(--muted);
    text-align: center;
    padding: 18px;
}

.is-hidden {
    display: none !important;
}

.settings-grid-2 {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.settings-field.full {
    grid-column: 1 / -1;
}

.settings-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(420px, 100%);
}

.setting-stat {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(16, 41, 66, 0.03);
}

.setting-stat strong {
    display: block;
    margin-top: 6px;
    font-size: 1.5rem;
    color: var(--navy);
}

.settings-preview-item,
.settings-anchor-list a,
.summary-chip {
    border: 1px solid var(--border);
    background: rgba(16, 41, 66, 0.03);
    border-radius: 18px;
}

.settings-preview-item {
    padding: 14px 16px;
}

.settings-preview-item strong,
.settings-preview-item span {
    display: block;
}

.settings-preview-item span {
    font-weight: 700;
    color: var(--navy);
    margin-top: 4px;
}

.settings-preview-item p {
    margin: 8px 0 0;
}

.settings-anchor-list a {
    padding: 12px 14px;
    font-weight: 700;
}

.settings-anchor-list a:hover {
    color: var(--navy);
    border-color: rgba(34, 184, 176, 0.35);
    background: rgba(34, 184, 176, 0.08);
}

.chip-list {
    grid-template-columns: repeat(auto-fit, minmax(120px, max-content));
}

.summary-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    font-weight: 700;
    color: var(--navy);
}

.settings-action-card {
    position: sticky;
    top: 16px;
}

.settings-action-card .btn {
    width: 100%;
}

@media (max-width: 991px) {
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(86vw, 320px);
        z-index: 20;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        box-shadow: 0 24px 60px rgba(9, 21, 34, 0.32);
        padding-bottom: 18px;
    }

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

    .admin-nav-open .admin-sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .admin-sidebar-close,
    .admin-mobile-brand {
        display: inline-flex;
    }

    .admin-nav-toggle-label {
        display: none;
    }

    .admin-sidebar-head {
        position: sticky;
        top: 0;
        padding-bottom: 16px;
        margin-bottom: 16px;
        background: var(--navy);
        z-index: 1;
    }

    .admin-topbar {
        position: sticky;
        top: 0;
        z-index: 10;
        padding: 10px 0 6px;
        background: linear-gradient(to bottom, rgba(244, 248, 251, 0.96), rgba(244, 248, 251, 0.9));
        backdrop-filter: blur(8px);
    }

    .admin-main {
        padding-top: 12px;
    }

    .topbar-actions {
        width: 100%;
    }

    .topbar-actions .btn {
        flex: 1 1 180px;
        text-align: center;
    }

    .admin-menu {
        grid-template-columns: 1fr;
    }

    .dispatch-card,
    .dispatch-card-detail,
    .dispatch-check-item,
    .proof-card {
        border-radius: 18px;
    }
}

@media (min-width: 768px) {
    .stats-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stats-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-grid-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-grid-2,
    .settings-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-form-4 {
        grid-template-columns: 1fr 1.6fr auto auto;
        align-items: center;
    }

    .filter-form-6 {
        grid-template-columns: 1fr 1fr 1fr 1fr 1.2fr auto auto;
        align-items: center;
    }

    .dispatch-filter-form {
        grid-template-columns: 1fr 1fr 1fr auto auto;
        align-items: center;
    }
}

@media (min-width: 992px) {
    body.admin-nav-open {
        overflow: auto;
    }

    .admin-layout {
        grid-template-columns: 280px minmax(0, 1fr);
        transition: grid-template-columns 0.28s ease;
    }

    .admin-sidebar {
        width: 280px;
        height: 100vh;
        min-height: 100vh;
        position: sticky;
        top: 0;
        z-index: 16;
        overflow: hidden;
    }

    .admin-body.admin-sidebar-collapsed .admin-layout {
        grid-template-columns: 0 minmax(0, 1fr);
    }

    .admin-body.admin-sidebar-collapsed .admin-sidebar {
        transform: translateX(calc(-100% - 24px));
        opacity: 0;
        pointer-events: none;
    }

    .admin-main {
        padding: 28px 26px 50px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .filter-form {
        grid-template-columns: 1.1fr 1.1fr 1fr auto auto;
        align-items: center;
    }
}

@media (min-width: 1100px) {
    .settings-shell {
        grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
    }
}

@media (min-width: 1200px) {
    .stats-grid-7 {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .stats-grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .stats-grid-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .filter-form-5 {
        grid-template-columns: 1fr 1fr 1fr 1fr 1.2fr auto auto auto;
        align-items: center;
    }

    .admin-list-filter-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: center;
    }
}

.hero-admin-grid {
    align-items: start;
}

.hero-slide-form-card,
.hero-slide-list-card {
    height: 100%;
}

.hero-admin-list {
    display: grid;
    gap: 14px;
}

.hero-admin-item {
    display: grid;
    gap: 14px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(16, 41, 66, 0.03);
}

.hero-admin-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #dfe9ee;
}

.hero-admin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.summary-chip.is-on {
    background: rgba(18, 183, 106, 0.12);
    color: #067647;
}

.summary-chip.is-off {
    background: rgba(240, 68, 56, 0.08);
    color: #b42318;
}

.hero-admin-eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--muted);
    font-weight: 700;
}

.hero-admin-content h4 {
    margin: 0;
    color: var(--navy);
}

.hero-admin-content p {
    margin: 10px 0 0;
}

.hero-cta-list {
    margin-top: 10px;
}

@media (min-width: 768px) {
    .hero-admin-item {
        grid-template-columns: minmax(180px, 220px) 1fr;
        align-items: start;
    }
}

.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
}

.page-link.is-active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.page-link.is-disabled {
    opacity: 0.55;
}

.severity-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.severity-info {
    background: rgba(33, 150, 243, 0.1);
    color: #135ea8;
}

.severity-warning {
    background: rgba(255, 152, 0, 0.12);
    color: #9c5b00;
}

.severity-security,
.severity-critical {
    background: rgba(220, 38, 38, 0.1);
    color: #b42318;
}

.admin-table-logs td {
    vertical-align: top;
}

.table-log-route {
    max-width: 260px;
    overflow-wrap: anywhere;
}

.log-metadata {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(16, 41, 66, 0.04);
    color: var(--muted);
    font-size: 0.78rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.quick-link-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 68px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(16, 41, 66, 0.03);
    color: var(--navy);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
}

.quick-link-card:hover {
    background: rgba(16, 41, 66, 0.06);
}

.report-period-note {
    display: grid;
    gap: 4px;
    color: var(--muted);
}

.inline-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--navy);
}


.image-picker-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
}

.image-picker-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.image-picker-head h3 {
    margin: 0;
}

.image-picker-head p {
    margin: 8px 0 0;
}

.admin-thumb {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(16, 41, 66, 0.06);
}

.admin-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.admin-thumb-emoji {
    display: grid;
    place-items: center;
    font-size: 1.8rem;
}

.settings-inline-note {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px dashed var(--border);
    background: rgba(255, 255, 255, 0.76);
    color: var(--navy-soft);
    line-height: 1.6;
}

.settings-inline-note a {
    font-weight: 700;
}

.badge-secondary {
    background: rgba(22, 48, 71, 0.12);
    color: #163047;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 8px 0 16px;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}


.selection-list {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.selection-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(16, 41, 66, 0.03);
}

.selection-item input {
    width: auto;
    margin-top: 3px;
}

.selection-item span {
    display: grid;
    gap: 4px;
}

.selection-item small {
    color: var(--muted);
}

.portal-note-box,
.portal-inline-note {
    border-radius: 18px;
    border: 1px solid rgba(34, 184, 176, 0.18);
    background: rgba(34, 184, 176, 0.08);
    color: var(--navy);
}

.portal-note-box {
    padding: 16px 18px;
}

.portal-inline-note {
    padding: 12px 14px;
}


.dashboard-schedule-grid {
    display: grid;
    gap: 16px;
}

.dashboard-schedule-block {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(16, 41, 66, 0.03);
}

.dashboard-schedule-block h3 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.dashboard-summary-inline {
    margin-bottom: 16px;
}

@media (min-width: 900px) {
    .dashboard-schedule-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


.report-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.report-media-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-media-preview {
    min-height: 180px;
    border: 1px dashed rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    padding: 12px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.report-media-preview img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.report-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.report-review-list {
    display: grid;
    gap: 18px;
}

.report-review-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 1));
}

.report-text-block {
    margin-top: 14px;
}

.report-text-block strong {
    display: block;
    margin-bottom: 8px;
}

.report-text-block p {
    margin: 0;
    color: #334155;
    line-height: 1.6;
}

.compact-summary > div {
    min-height: auto;
}

.empty-state {
    border: 1px dashed rgba(15, 23, 42, 0.18);
    border-radius: 18px;
    padding: 24px;
    background: #f8fafc;
}

.empty-state h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.alert-info {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.18);
    color: #1d4ed8;
}

.alert-secondary {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #334155;
}


.report-media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.report-media-thumb {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 10px;
    background: #f8fafc;
}

.report-media-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.report-media-thumb small {
    color: #475569;
    line-height: 1.4;
    word-break: break-word;
}


.map-embed-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    min-height: 280px;
}

.map-embed-card iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
    display: block;
}

.technician-action-panel {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 1rem;
}

.compact-form textarea {
    min-height: 96px;
}

.update-timeline {
    display: grid;
    gap: 0.9rem;
}

.update-timeline-item {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #fff;
    padding: 1rem 1.1rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.update-timeline-item p {
    margin: 0.5rem 0 0;
}

@media (max-width: 768px) {
    .map-embed-card iframe {
        min-height: 240px;
    }
}


.upload-preview-shell {
    display: grid;
    gap: 12px;
}

.upload-preview-head {
    display: grid;
    gap: 4px;
}

.upload-preview-head strong {
    color: var(--navy);
}

.upload-preview-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.upload-preview-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(16, 41, 66, 0.03);
    overflow: hidden;
}

.upload-preview-frame {
    min-height: 180px;
    background: #eef5f8;
    display: grid;
    place-items: center;
    border-bottom: 1px solid rgba(16, 41, 66, 0.08);
}

.upload-preview-frame img {
    width: 100%;
    height: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block;
}

.upload-preview-meta {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
}

.upload-preview-meta strong {
    color: var(--navy);
    word-break: break-word;
}

.upload-preview-meta span,
.upload-preview-note {
    font-size: 0.95rem;
}
