.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 1160px;
    margin: 20px auto;
    padding: 0 20px;
}

.dashboard-metrics article,
.dashboard-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

.dashboard-metrics article {
    padding: 20px;
}

.dashboard-metrics span,
.dashboard-panel small {
    display: block;
    color: var(--muted);
    font-size: .82rem;
}

.dashboard-metrics strong {
    display: block;
    margin-top: 4px;
    color: #8c6c2f;
    font: 700 2rem Georgia, serif;
}

.dashboard-panel {
    max-width: 1160px;
    margin: 20px auto 70px;
    overflow: hidden;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    padding: 24px;
    border-bottom: 1px solid var(--line);
}

.panel-heading h2,
.panel-heading p {
    margin: 0;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.status {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f0eee8;
    font-size: .76rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-held_pending_review { background: #fff0c7; }
.status-availability_review { background: #fee2e2; }
.status-quote_requested { background: #e0e7ff; }
.status-quote_ready { background: #dbeafe; }
.status-quote_sent { background: #ede9fe; }
.status-quote_accepted_held { background: #dcfce7; }
.status-quote_accepted_availability_review { background: #fee2e2; }
.status-availability_approved { background: #dcfce7; }
.empty-state { padding: 40px 24px; color: var(--muted); }

.table-action {
    color: #6f5220;
    font-weight: 800;
    white-space: nowrap;
}

.admin-event-heading {
    max-width: 1160px;
    margin: 0 auto;
    padding: 48px 20px 24px;
}

.admin-event-heading > a {
    color: #6f5220;
    font-weight: 800;
    text-decoration: none;
}

.admin-event-heading h1 {
    margin: .2em 0;
    font: 700 clamp(2.2rem, 5vw, 4rem)/1 Georgia, serif;
}

.event-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 1160px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.event-panel {
    max-width: 1120px;
    margin: 20px auto;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

.event-admin-grid .event-panel {
    width: 100%;
    margin: 0;
}

.event-panel h2,
.event-panel h3 {
    font-family: Georgia, serif;
}

.event-details {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 10px 16px;
}

.event-details dt { font-weight: 800; }
.event-details dd { margin: 0; }

.event-action-panel {
    display: grid;
    gap: 22px;
}

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

.quote-form .wide,
.quote-form .quote-calculation,
.quote-form button {
    grid-column: 1 / -1;
}

.quote-form button { justify-self: start; }

.quote-summary {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    align-items: center;
    gap: 8px 18px;
    padding: 16px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.quote-summary small { grid-column: 1 / -1; }

.approval-link {
    padding: 16px;
    background: #eef6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
}

.approval-link input {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .82rem;
}

.audit-panel ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.audit-panel li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.audit-panel li span { color: var(--muted); }

@media (max-width: 760px) {
    .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-panel { margin-right: 12px; margin-left: 12px; }
    .event-admin-grid,
    .quote-form { grid-template-columns: 1fr; }
    .event-details { grid-template-columns: 1fr; }
    .event-details dt { margin-top: 8px; }
    .event-panel { margin-right: 12px; margin-left: 12px; }
    .quote-summary { grid-template-columns: 1fr; }
    .quote-summary small { grid-column: auto; }
    .audit-panel li { flex-direction: column; gap: 2px; }
}
