body {
    min-height: 100vh;
    color: #14221c;
    background:
        radial-gradient(circle at top left, rgba(103, 178, 111, 0.16), transparent 30%),
        radial-gradient(circle at top right, rgba(214, 171, 93, 0.14), transparent 25%),
        linear-gradient(180deg, #f4f1e8 0%, #eef5ee 46%, #f8faf7 100%);
}

.guest-gradient {
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.2), transparent 35%),
        linear-gradient(135deg, #f4fbf5 0%, #eef4ff 100%);
}

.app-shell {
    max-width: 1320px;
}

.card,
.glass-card {
    border-radius: 1.25rem;
}

.glass-card {
    border: 1px solid rgba(34, 65, 52, 0.08);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 40px rgba(28, 48, 39, 0.08);
}

.app-navbar {
    background:
        linear-gradient(120deg, rgba(26, 84, 59, 0.96), rgba(43, 116, 83, 0.95)),
        linear-gradient(180deg, #1e583f, #1e583f);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand {
    letter-spacing: 0.03em;
}

.navbar .nav-link {
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    margin-bottom: 0.2rem;
}

.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
    color: #568266;
}

.metric-card {
    border: 0;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 32px rgba(31, 55, 43, 0.08);
}

.metric-value {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1;
}

.metric-note {
    color: #66786f;
    font-size: 0.9rem;
}

.quick-filter {
    border: 0;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 10px 26px rgba(31, 55, 43, 0.07);
}

.surface-card {
    border: 0;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 30px rgba(31, 55, 43, 0.08);
}

.surface-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(17, 43, 31, 0.06);
}

.mobile-stack {
    display: none;
}

.record-card {
    border: 1px solid rgba(26, 48, 37, 0.08);
    border-radius: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 20px rgba(26, 48, 37, 0.05);
}

.record-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    color: #617268;
    font-size: 0.92rem;
}

.record-title {
    font-weight: 700;
    color: #183327;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.36rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    background: #eef4ef;
    color: #295841;
}

.status-pill.warning {
    background: #fff3dc;
    color: #8d5b00;
}

.status-pill.danger {
    background: #ffe7e1;
    color: #8c2e1d;
}

.status-pill.success {
    background: #e3f7e7;
    color: #1e7a37;
}

.chart-box {
    min-height: 290px;
    position: relative;
}

.chart-box canvas {
    max-height: 300px;
}

.table thead th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #66786f;
    border-bottom-color: rgba(23, 46, 35, 0.08);
}

.table > :not(caption) > * > * {
    background: transparent;
}

.soft-divider {
    border-top: 1px solid rgba(23, 46, 35, 0.08);
}

.sticky-actions {
    position: sticky;
    bottom: 0.75rem;
    z-index: 20;
}

.sticky-actions .card {
    border: 0;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 36px rgba(28, 48, 39, 0.12);
}

.mobile-nav-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.mobile-nav-group a {
    text-decoration: none;
    border-radius: 1rem;
    padding: 0.85rem 0.9rem;
    background: rgba(255, 255, 255, 0.9);
    color: #173126;
    box-shadow: 0 8px 18px rgba(31, 55, 43, 0.07);
}

.empty-state {
    padding: 2rem;
    border: 1px dashed rgba(32, 59, 46, 0.14);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.6);
    color: #66786f;
}

.form-shell {
    display: grid;
    gap: 1rem;
}

.form-section-card {
    border: 0;
    border-radius: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 30px rgba(31, 55, 43, 0.08);
}

.participant-stack {
    display: grid;
    gap: 0.85rem;
}

.participant-card,
.receipt-item-card {
    display: grid;
    gap: 0.85rem;
}

.mobile-action-bar {
    position: sticky;
    bottom: 0.75rem;
    z-index: 15;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1.2rem;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(23, 46, 35, 0.08);
}

.detail-row span {
    color: #66786f;
    font-size: 0.88rem;
}

.detail-row-full {
    grid-column: 1 / -1;
}

@media (max-width: 991.98px) {
    .page-header {
        align-items: start;
        flex-direction: column;
    }

    .desktop-table {
        display: none;
    }

    .mobile-stack {
        display: grid;
        gap: 0.9rem;
    }

    .sticky-actions {
        bottom: 0;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 0.97rem;
    }

    main.container {
        padding-top: 1rem !important;
        padding-bottom: 1.25rem !important;
    }

    .metric-value {
        font-size: 1.7rem;
    }

    .card,
    .glass-card,
    .metric-card,
    .surface-card {
        border-radius: 1rem;
    }

    .form-section-card {
        padding: 1rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .mobile-action-bar {
        bottom: 0;
    }
}
