:root {
    --bg: #edf4ff;
    --panel: rgba(248, 252, 255, 0.9);
    --panel-strong: #fafdff;
    --line: #c9dbf6;
    --text: #16253d;
    --muted: #667a99;
    --accent: #2563eb;
    --accent-dark: #173f90;
    --warning: #e59f1d;
    --danger: #c24141;
    --success: #2563eb;
    --shadow: 0 24px 60px rgba(32, 63, 126, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: var(--text);
    background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(96, 165, 250, 0.18), transparent 28%),
    linear-gradient(135deg, #eef5ff, #ddeafe 55%, #f7fbff);
}

a {
    color: var(--accent-dark);
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.landing-body,
.auth-shell,
.dashboard-shell,
.print-page-body {
    padding: 24px;
}

.print-page-body {
    background: linear-gradient(180deg, #edf4ff, #f9fbff);
    overflow-x: auto;
}

.print-page-shell {
    max-width: 1200px;
    margin: 0 auto;
}

.print-page-shell-landscape {
    width: fit-content;
    min-width: 297mm;
    max-width: none;
}

.print-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.landing-shell,
.auth-card,
.panel {
    border: 1px solid rgba(220, 199, 172, 0.9);
    background: var(--panel);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.landing-shell {
    max-width: 1080px;
    margin: 28px auto;
    padding: 48px;
    border-radius: 32px;
}

.hero-panel h1,
.dashboard-header h1,
.auth-card h1,
.panel h2 {
    margin: 0 0 12px;
}

.eyebrow {
    margin: 0 0 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
}

.lead,
.muted,
.panel-head p,
.portal-card span:last-child {
    color: var(--muted);
}

.portal-grid,
.dashboard-grid,
.quota-grid,
.request-actions,
.header-actions,
.inline-actions,
.report-summary {
    display: grid;
    gap: 16px;
}

.offline-status {
    position: sticky;
    top: 16px;
    z-index: 30;
    width: min(100%, 1080px);
    margin: 0 auto 16px;
    padding: 14px 18px;
    border: 1px solid rgba(197, 131, 18, 0.45);
    border-radius: 18px;
    background: rgba(255, 245, 223, 0.96);
    color: #6e4c00;
    box-shadow: 0 16px 30px rgba(61, 43, 25, 0.08);
    font-weight: 700;
}

.offline-status.is-hidden {
    display: none;
}

.portal-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 32px;
}

.portal-card,
.stat-box,
.request-card,
.info-banner,
.empty-state {
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.portal-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(48, 34, 20, 0.08);
}

.portal-kicker {
    font-size: 0.85rem;
    color: var(--warning);
    font-weight: 700;
}

.auth-shell {
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(100%, 520px);
    padding: 36px;
    border-radius: 28px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 14px;
}

.stack-form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

input,
button,
textarea {
    font: inherit;
}

input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fffdf9;
}

button,
.ghost-btn,
.danger-btn,
.warning-btn,
.primary-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 16px;
    padding: 14px 20px;
    cursor: pointer;
    font-weight: 700;
}

.primary-btn {
    background: var(--accent);
    color: #fff;
}

.ghost-btn {
    background: #e4efff;
    color: var(--text);
}

.warning-btn {
    background: #f2d69b;
    color: #523200;
}

.danger-btn {
    background: var(--danger);
    color: #fff;
}

.report-link-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    padding: 18px 24px;
    color: #fff;
    font-weight: 800;
    font-size: 1.02rem;
    box-shadow: 0 18px 34px rgba(48, 34, 20, 0.12);
}

.report-link-blue {
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
}

.report-link-green {
    background: linear-gradient(180deg, #22c55e, #15803d);
}

.report-link-red {
    background: linear-gradient(180deg, #df4f4f, #b92e2e);
}

.hub-panel {
    background: linear-gradient(180deg, rgba(251, 254, 255, 0.98), rgba(236, 245, 255, 0.94));
}

.admin-home-panel {
    padding: 30px;
    background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 28%),
    radial-gradient(circle at bottom left, rgba(96, 165, 250, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(251, 254, 255, 0.98), rgba(237, 245, 255, 0.94));
}

.dashboard-header-rich {
    align-items: flex-start;
}

.dashboard-header-copy {
    display: grid;
    gap: 6px;
}

.dashboard-header-actions {
    align-self: center;
}

.admin-home-topbar {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-home-intro {
    margin-bottom: 0;
}

.admin-clock-panel {
    min-width: 280px;
    padding: 18px 20px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(234, 244, 255, 0.92));
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.12);
    display: grid;
    gap: 6px;
}

.clock-kicker {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
}

.clock-value {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1;
    color: var(--accent-dark);
    letter-spacing: 0.04em;
}

.clock-date {
    color: var(--muted);
    font-weight: 700;
}

.admin-hub-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.admin-hub-card {
    display: grid;
    gap: 12px;
    min-height: 180px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.9));
    box-shadow: 0 22px 38px rgba(37, 99, 235, 0.1);
    color: var(--text);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
    overflow: hidden;
}

.admin-hub-card::before {
    content: '';
    position: absolute;
    inset: auto auto 0 0;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
    transform: translate(-18%, 18%);
}

.admin-hub-card:hover,
.admin-hub-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 24px 38px rgba(37, 99, 235, 0.16);
    border-color: rgba(37, 99, 235, 0.38);
}

.hub-card-kicker {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.admin-hub-card strong {
    font-size: 1.45rem;
    position: relative;
    z-index: 1;
}

.admin-hub-card small {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

.admin-hub-logo-card {
    min-height: 380px;
    grid-column: span 2;
    grid-row: span 2;
    display: grid;
    place-items: center;
    gap: 14px;
    padding: 28px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 36px;
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.18), transparent 35%),
        radial-gradient(circle at bottom, rgba(29, 78, 216, 0.16), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.94));
    box-shadow: 0 24px 44px rgba(37, 99, 235, 0.14);
    text-align: center;
}

.admin-hub-logo-ring {
    width: min(100%, 300px);
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 18px;
    background: conic-gradient(from 180deg, #173f90, #2563eb, #38bdf8, #60a5fa, #173f90);
    box-shadow: 0 20px 38px rgba(37, 99, 235, 0.24);
}

.admin-hub-logo-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #fff;
    padding: 14px;
}

.admin-hub-logo-card strong {
    font-size: 2rem;
    color: var(--accent-dark);
}

.admin-hub-logo-card small {
    font-size: 1rem;
    color: var(--muted);
}

.admin-hub-card.report-link-blue,
.admin-hub-card.report-link-green,
.admin-hub-card.report-link-red {
    color: #fff;
}

.admin-hub-card.report-link-blue {
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    border-color: rgba(29, 78, 216, 0.42);
}

.admin-hub-card.report-link-green {
    background: linear-gradient(180deg, #22c55e, #15803d);
    border-color: rgba(21, 128, 61, 0.42);
}

.admin-hub-card.report-link-red {
    background: linear-gradient(180deg, #df4f4f, #b92e2e);
    border-color: rgba(185, 46, 46, 0.42);
}

.admin-hub-card.report-link-blue .hub-card-kicker,
.admin-hub-card.report-link-green .hub-card-kicker,
.admin-hub-card.report-link-red .hub-card-kicker,
.admin-hub-card.report-link-blue small,
.admin-hub-card.report-link-green small,
.admin-hub-card.report-link-red small {
    color: rgba(255, 255, 255, 0.9);
}

.small-btn {
    padding: 10px 14px;
}

.wide-btn {
    width: 100%;
}

.dashboard-shell {
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
}

.header-actions {
    grid-auto-flow: column;
}

.dashboard-grid {
    margin-bottom: 20px;
}

.admin-top-grid {
    grid-template-columns: 1fr;
}

.two-columns {
    grid-template-columns: 1fr 1.1fr;
}

.request-columns {
    grid-template-columns: 1.25fr 0.9fr;
}

.panel {
    border-radius: 30px;
    padding: 24px;
}

.panel-head {
    margin-bottom: 18px;
}

.report-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.report-launch-section {
    margin-bottom: 0;
}

.report-launch-panel {
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(245, 239, 227, 0.9));
}

.report-launch-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 320px));
    gap: 16px;
    justify-content: start;
}

.review-filter-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
}

.report-head h2 {
    margin-bottom: 6px;
}

.sub-head {
    margin-top: 24px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid rgba(201, 219, 246, 0.9);
    vertical-align: middle;
}

.clickable-row {
    cursor: pointer;
    transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.clickable-row:hover,
.clickable-row:focus-visible {
    background: rgba(37, 99, 235, 0.08);
}

.clickable-row:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: -2px;
}

td form {
    margin: 0;
}

.inline-actions {
    grid-auto-flow: column;
    justify-content: start;
    align-items: center;
}

.date-filter-form {
    display: grid;
    grid-auto-flow: column;
    gap: 12px;
    align-items: end;
}

.tight-actions {
    gap: 8px;
}

.request-list {
    display: grid;
    gap: 16px;
}

.request-card {
    padding: 16px;
}

.details-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 20px;
}

.details-media {
    display: grid;
    gap: 16px;
}

.details-media img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--line);
}

.details-grid {
    display: grid;
    gap: 12px;
}

.detail-item {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.74);
}

.detail-item span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.92rem;
}

.detail-item strong {
    display: block;
    font-size: 1rem;
}

.compact-card {
    gap: 10px;
    display: grid;
}

.report-section {
    align-items: start;
}

.report-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 16px;
}

.report-summary span {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.68);
    font-weight: 700;
}

.polished-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.polished-summary span {
    display: grid;
    gap: 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 245, 255, 0.94));
}

.polished-summary strong {
    font-size: 1.15rem;
    color: var(--accent-dark);
}

.polished-summary small {
    color: var(--muted);
    font-size: 0.82rem;
}

.report-table th,
.report-table td {
    font-size: 0.95rem;
}

.print-sheet {
    border: 1px solid rgba(191, 214, 245, 0.9);
    border-radius: 28px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(241, 247, 255, 0.98));
}

.report-landscape-sheet {
    width: 297mm;
    min-height: 210mm;
    margin: 0 auto;
    padding: 18mm 14mm;
    border-radius: 18px;
}

.standalone-print-sheet {
    box-shadow: var(--shadow);
}

.print-sheet-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 2px solid rgba(37, 99, 235, 0.18);
}

.sheet-kicker {
    margin: 0 0 8px;
    color: var(--warning);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.76rem;
    font-weight: 800;
}

.print-sheet-header h3 {
    margin: 0 0 6px;
    font-size: 1.4rem;
}

.print-sheet-header p {
    margin: 0;
    color: var(--muted);
}

.sheet-meta {
    display: grid;
    gap: 8px;
    min-width: 220px;
}

.sheet-meta span {
    padding: 10px 12px;
    border: 1px solid rgba(191, 214, 245, 0.95);
    border-radius: 14px;
    background: rgba(245, 250, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 700;
}

.print-table-wrap {
    overflow: hidden;
    border: 1px solid rgba(191, 214, 245, 0.85);
    border-radius: 22px;
}

.report-table-wrap-landscape {
    overflow-x: auto;
}

.report-table-landscape {
    table-layout: fixed;
}

.report-table-landscape th,
.report-table-landscape td {
    padding: 10px 8px;
    font-size: 0.88rem;
    word-break: break-word;
}

.report-table-landscape th:nth-child(1),
.report-table-landscape td:nth-child(1) {
    width: 5%;
}

.report-table-landscape th:nth-child(2),
.report-table-landscape td:nth-child(2) {
    width: 12%;
}

.report-table-landscape th:nth-child(3),
.report-table-landscape td:nth-child(3) {
    width: 14%;
}

.report-table-landscape th:nth-child(4),
.report-table-landscape td:nth-child(4) {
    width: 10%;
}

.report-table-landscape th:nth-child(5),
.report-table-landscape td:nth-child(5),
.report-table-landscape th:nth-child(6),
.report-table-landscape td:nth-child(6),
.report-table-landscape th:nth-child(7),
.report-table-landscape td:nth-child(7) {
    width: 11%;
}

.report-table-landscape th:nth-child(8),
.report-table-landscape td:nth-child(8) {
    width: 10%;
}

.report-table-landscape th:nth-child(9),
.report-table-landscape td:nth-child(9) {
    width: 11%;
}

.professional-table thead th {
    background: linear-gradient(180deg, #2563eb, #173f90);
    color: #fff;
    border-bottom: none;
    font-size: 0.92rem;
}

.professional-table tbody tr:nth-child(even) {
    background: rgba(239, 246, 255, 0.72);
}

.professional-table tbody tr:hover {
    background: rgba(219, 234, 254, 0.86);
}

.professional-table td:first-child,
.professional-table th:first-child {
    width: 54px;
    text-align: center;
}

.print-sheet-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(123, 105, 86, 0.45);
    color: var(--muted);
    font-weight: 700;
}

.request-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.request-meta {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.coordinate-grid,
.location-actions-inline {
    display: grid;
    gap: 12px;
}

.coordinate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.location-actions-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.location-tools {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.coordinate-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-dark);
    font-weight: 700;
    direction: ltr;
}

.location-btn {
    width: 100%;
}

.request-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.media-thumb-link {
    overflow: hidden;
    border-radius: 20px;
}

.media-thumb {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-pending {
    background: #f5dfaf;
    color: #6e4c00;
}

.status-approved {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-rejected {
    background: #f7d5cf;
    color: #732318;
}

.flash {
    margin-bottom: 16px;
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 700;
}

.flash.success {
    background: #dff3e6;
    color: var(--success);
}

.flash.error {
    background: #f8dfdb;
    color: var(--danger);
}

.quota-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
}

.review-summary-grid {
    margin-bottom: 18px;
}

.stat-box,
.info-banner,
.empty-state {
    padding: 16px;
}

.stat-box strong {
    display: block;
    margin-top: 8px;
    font-size: 1.2rem;
}

.highlight-panel {
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(245, 239, 227, 0.88));
}

.preview-box {
    border-radius: 20px;
    overflow: hidden;
    border: 1px dashed var(--line);
}

.preview-box img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
}

.hidden {
    display: none;
}

@media (max-width: 980px) {
    .two-columns,
    .request-columns,
    .coordinate-grid,
    .quota-grid,
    .request-actions,
    .report-summary,
    .details-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions {
        grid-auto-flow: row;
    }

    .inline-actions,
    .report-head,
    .review-filter-head,
    .date-filter-form,
    .report-launch-actions {
        grid-auto-flow: row;
        display: grid;
        justify-content: stretch;
    }

    .print-sheet-header,
    .print-sheet-footer {
        flex-direction: column;
    }

    .polished-summary {
        grid-template-columns: 1fr 1fr;
    }

    .landing-shell,
    .panel,
    .auth-card {
        padding: 22px;
    }

    .admin-home-topbar {
        flex-direction: column;
    }

    .admin-clock-panel {
        min-width: 0;
    }

    .admin-hub-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-hub-logo-card {
        grid-column: span 2;
        min-height: 320px;
    }

    .print-page-shell-landscape {
        min-width: 297mm;
    }
}

@media (max-width: 640px) {
    .admin-hub-grid {
        grid-template-columns: 1fr;
    }

    .admin-hub-logo-card {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 280px;
    }

    .admin-hub-card {
        min-height: 160px;
    }
}

@media print {
    @page {
        size: A4 landscape;
        margin: 8mm;
    }

    html,
    body {
        background: #fff;
        padding: 0;
        margin: 0;
    }

    .no-print,
    .dashboard-shell > :not(.print-section),
    .dashboard-header,
    .admin-top-grid,
    .request-columns,
    .report-head .print-trigger,
    .ghost-btn,
    .danger-btn,
    .warning-btn,
    .primary-btn {
        display: none !important;
    }

    .print-page-shell,
    .dashboard-shell {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .print-page-shell-landscape {
        width: 100%;
        min-width: 0;
    }

    .dashboard-shell > .print-section {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .panel {
        box-shadow: none;
        background: #fff;
        border: 1px solid #ccc;
    }

    .print-sheet {
        border: none;
        padding: 0;
        border-radius: 0;
        background: #fff;
    }

    .report-landscape-sheet {
        width: 100%;
        min-height: auto;
        padding: 0;
        margin: 0;
    }

    .professional-table thead th {
        background: #f3f3f3;
        color: #000;
        border-bottom: 1px solid #999;
    }

    .report-table-landscape th,
    .report-table-landscape td {
        font-size: 10pt;
        padding: 6px 5px;
    }

    .professional-table tbody tr:nth-child(even),
    .professional-table tbody tr:hover {
        background: transparent;
    }

    .print-section {
        display: grid;
        grid-template-columns: 1fr;
    }

    .standalone-print-sheet,
    .print-sheet {
        box-shadow: none;
    }
}