:root {
    color-scheme: light;
    --bg: #f6f8fb;
    --panel: #ffffff;
    --text: #18202f;
    --muted: #667085;
    --border: #dce3ee;
    --primary: #2166e8;
    --primary-dark: #174db3;
    --primary-deep: #174db3;
    --surface: #ffffff;
    --danger: #b42318;
    --success: #067647;
    --warning: #b54708;
    --app-font-family: "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--app-font-family);
}

a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 1.08rem;
}

.brand img {
    width: auto;
    height: 64px;
    border: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #ffffff;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: var(--text);
    transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.nav-actions a {
    color: var(--muted);
}

.nav-actions a:hover {
    color: var(--primary);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary {
    color: var(--muted);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown summary::after {
    display: inline-block;
    margin-left: 6px;
    content: "▾";
    font-size: .72rem;
    transition: transform .2s ease;
}

.nav-dropdown[open] summary,
.nav-dropdown summary:hover {
    color: var(--primary);
}

.nav-dropdown[open] summary::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 12px);
    left: 50%;
    display: grid;
    min-width: 150px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(24, 32, 47, 0.14);
    transform: translateX(-50%);
}

.nav-dropdown-menu a {
    padding: 10px 12px;
    border-radius: 7px;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: #eef4ff;
}

/* Interactive navbar and hover-open public menu. */
.nav-actions {
    align-items: center;
    gap: 4px;
}

.nav-actions > a,
.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-actions > a:hover,
.nav-actions > a:focus-visible,
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger {
    background: #eef4ff;
    color: var(--primary);
    transform: translateY(-1px);
    outline: none;
}

.nav-actions > a.is-active,
.nav-dropdown-trigger.is-active {
    background: #e7f0ff;
    color: var(--primary);
    box-shadow: inset 0 -2px 0 var(--primary);
}

.nav-dropdown-trigger::after {
    display: inline-block;
    margin-left: 6px;
    content: "\25BE";
    font-size: .72rem;
    transition: transform .2s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown:focus-within .nav-dropdown-trigger::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -6px);
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.nav-dropdown::after {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
    content: "";
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.nav-dropdown-menu a {
    transition: color .18s ease, background .18s ease, padding-left .18s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
    padding-left: 16px;
    background: #eef4ff;
    color: var(--primary);
    outline: none;
}

.nav-dropdown-menu a.is-active {
    padding-left: 16px;
    background: #e7f0ff;
    color: var(--primary);
}

.panel {
    /* width: min(520px, 100%); */
    width: 100%;
    margin: 0 auto;
    padding: 32px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(24, 32, 47, 0.06);
}

.dashboard-panel {
    /* width: min(680px, 100%); */
    width: 100%;
}

.wide-panel {
    /* width: min(1180px, 100%); */
    width: 100%;

}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.public-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 36px;
    padding: 64px 56px;
    border-radius: 20px;
    background: linear-gradient(125deg, #123b91 0%, #2166e8 62%, #3b82f6 100%);
    color: #ffffff;
    box-shadow: 0 24px 60px rgba(33, 102, 232, 0.22);
}

.public-hero::after {
    position: absolute;
    z-index: -1;
    top: -140px;
    right: -80px;
    width: 420px;
    height: 420px;
    border: 70px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.public-hero-copy {
    max-width: 690px;
}

.public-hero h1 {
    margin: 8px 0 14px;
    max-width: 650px;
    font-size: clamp(2.4rem, 5vw, 4.25rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.public-hero .eyebrow,
.public-hero .lead {
    color: rgba(255, 255, 255, 0.84);
}

.public-hero .lead {
    max-width: 570px;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.7;
}

.public-hero-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    flex: 0 0 auto;
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.public-hero-stats div {
    display: grid;
    gap: 5px;
    padding: 22px 25px;
    background: rgba(11, 45, 113, 0.28);
    text-align: center;
}

.public-hero-stats strong {
    font-size: 1.8rem;
}

.public-hero-stats span {
    color: rgba(255, 255, 255, 0.78);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.public-section {
    margin-top: 30px;
    padding: 38px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: 0 12px 35px rgba(24, 32, 47, 0.045);
}

.public-heading h2,
.public-card h3 {
    margin: 4px 0 0;
}

.result-count {
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--primary-dark);
    font-size: .86rem;
    font-weight: 800;
}

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

.public-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    box-shadow: 0 8px 22px rgba(24, 32, 47, 0.04);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.public-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    content: "";
}

.public-card:hover {
    transform: translateY(-3px);
    border-color: #bfd0ef;
    box-shadow: 0 15px 32px rgba(24, 32, 47, 0.09);
}

.card-topline,
.venue-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.public-card h3 {
    margin-top: 16px;
    font-size: 1.25rem;
}

.card-location {
    min-height: 2.5em;
    color: var(--muted);
    line-height: 1.45;
}

.card-facts {
    display: grid;
    gap: 12px;
    margin: 20px 0 0;
}

.card-facts div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.card-facts dt {
    color: var(--muted);
}

.card-facts dd {
    margin: 0;
    text-align: right;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.venue-meta {
    margin-top: 18px;
    color: var(--muted);
    font-size: .9rem;
}

.public-empty {
    padding: 38px 20px;
    border: 1px dashed var(--border);
    border-radius: 10px;
    color: var(--muted);
    text-align: center;
}

.badge-upcoming {
    background: #eef4ff;
    color: var(--primary-dark);
}

.public-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: 36px 38px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, #eef4ff);
}

.public-page-head h1 {
    margin: 5px 0 8px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.public-page-head .lead {
    margin: 0;
    color: var(--muted);
}

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

.public-list-card h2 {
    margin: 12px 0 0;
}

.public-title-link {
    color: inherit;
    text-decoration: none;
}

.public-title-link:hover,
.public-title-link:focus-visible {
    color: var(--primary);
    text-decoration: underline;
}

.public-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
}

.review-summary {
    color: var(--muted);
    font-weight: 800;
}

.public-review-form {
    max-width: 900px;
    margin-inline: auto;
}

.review-details-panel,
.review-save-panel {
    margin-top: 22px;
}

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

.review-target-card {
    display: grid;
    gap: 7px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fbfcfe;
}

.review-target-card > span,
.review-editor-title > span {
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.review-target-card h3,
.review-target-card p {
    margin: 0;
}

.review-target-card p {
    color: var(--muted);
}

.review-editor {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fbfcfe;
}

.review-editor-title {
    display: grid;
    gap: 5px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.review-editor textarea {
    min-height: 170px;
}

.review-privacy-note {
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f4f8ff;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.public-detail-hero .lead a {
    color: var(--primary);
    font-weight: 800;
}

.review-section {
    margin-top: 22px;
}

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

.review-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fbfcfe;
}

.review-card-head,
.review-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.review-card-head > div {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.review-username {
    color: var(--text);
    font-size: 1.02rem;
}

.verified-label {
    padding: 3px 7px;
    border-radius: 999px;
    background: #e9f8f0;
    color: #17633e;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.review-stars {
    color: #d59000;
    font-size: 1.15rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

.review-card p {
    margin: 14px 0;
    line-height: 1.65;
}

.review-card time,
.review-card footer {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.review-card footer a {
    color: var(--primary);
}

.venue-events {
    margin: 8px 0 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.venue-event-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.venue-event-links a {
    display: grid;
    gap: 4px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
}

.venue-event-links a:hover {
    border-color: var(--primary);
    background: #f4f8ff;
}

.venue-event-links span {
    color: var(--muted);
    font-size: 0.86rem;
}

@media (max-width: 760px) {
    .public-card-actions,
    .review-card-head,
    .review-card footer {
        align-items: stretch;
        flex-direction: column;
    }

    .public-card-actions .button-link {
        width: 100%;
    }

    .venue-event-links {
        grid-template-columns: 1fr;
    }

    .review-target-grid {
        grid-template-columns: 1fr;
    }
}

.card-title-row,
.single-line-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.single-line-info {
    justify-content: flex-start;
    margin: 18px 0 0;
    padding: 13px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--muted);
}

.single-line-info strong {
    flex: 0 0 auto;
    color: var(--text);
}

.contact-line {
    flex-wrap: nowrap;
}

.contact-line span + span::before {
    margin-right: 18px;
    color: #c3cad5;
    content: "•";
}

.event-price {
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.public-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin: 18px 0 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--border);
}

.public-info-grid div {
    display: grid;
    gap: 7px;
    padding: 16px;
    background: #fff;
}

.public-info-grid dt {
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.public-info-grid dd {
    font-weight: 800;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.pagination a,
.pagination span {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.pagination .current {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.public-section-link {
    margin: -12px 0 22px;
    text-align: right;
}

.muted {
    color: var(--muted);
}

.full-span {
    grid-column: 1 / -1;
}

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

.filter-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(150px, 220px) minmax(130px, 180px) auto auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 24px;
}

.form-actions {
    display: flex;
    gap: 12px;
}

/* .form-actions > * {
    width: auto;
} */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
}

table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

th {
    background: #f9fbfd;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

tbody tr:hover {
    background: #fbfdff;
}

tr:last-child td {
    border-bottom: 0;
}

.empty-cell {
    padding: 28px 14px;
    color: var(--muted);
    text-align: center;
}

.table-date {
    display: grid;
    gap: 2px;
}

.table-date strong {
    color: var(--text);
    font-size: 0.96rem;
}

.table-date small {
    color: var(--muted);
    font-size: 0.82rem;
}

.mobile-cell-value {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.toolbar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: auto;
    min-height: auto;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #ffffff;
}

.btn-light {
    background: var(--surface);
    color: var(--text);
}

.btn-danger {
    background: rgba(180, 35, 24, 0.12);
    color: var(--danger);
}

.action-row form {
    margin: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef3fb;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 800;
}

.badge-active,
.badge-published {
    background: #dcfae6;
    color: var(--success);
}

.badge-inactive,
.badge-closed {
    background: #eef3fb;
    color: var(--muted);
}

.badge-draft {
    background: #fff4db;
    color: var(--warning);
}

.badge-pending,
.badge-unpaid {
    background: #fff4db;
    color: var(--warning);
}

.badge-confirmed,
.badge-completed,
.badge-paid,
.badge-checked_in {
    background: #dcfae6;
    color: var(--success);
}

.badge-refunded {
    background: #eef3fb;
    color: var(--muted);
}

.badge-cancelled,
.badge-suspended {
    background: #fee4e2;
    color: var(--danger);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.quick-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--text);
}

.quick-card b {
    font-size: 2rem;
    line-height: 1;
    color: var(--primary);
}

.quick-card span {
    color: var(--muted);
    font-weight: 400;
}

.credential-hint {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
    margin: 0 0 20px;
    padding: 14px;
    border: 1px solid rgba(33, 102, 232, 0.2);
    border-radius: 8px;
    background: #f4f8ff;
}

.credential-hint span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.credential-hint strong {
    font-family: Consolas, Monaco, monospace;
}

.profile-section {
    margin: 0 0 24px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.profile-section h2 {
    margin: 0 0 16px;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: end;
}

.checkbox-line input {
    width: auto;
}

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

.details-grid div {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fbfcfe;
}

.booking-filter-grid {
    grid-template-columns: minmax(180px, 1fr) minmax(150px, 220px) minmax(130px, 160px) auto auto;
}

.booking-subhead {
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.booking-subhead h2 {
    margin: 0 0 6px;
}

.settings-section-title {
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.settings-section-title:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.settings-section-title h2 {
    margin: 0;
}

.logo-settings-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 320px);
    gap: 16px;
    align-items: start;
}

.logo-preview-box {
    display: grid;
    gap: 12px;
    min-height: 96px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fbfcfe;
}

.logo-preview-box img {
    max-width: 220px;
    max-height: 76px;
    object-fit: contain;
}

.invoice-branding {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fbfcfe;
}

.invoice-company {
    display: flex;
    gap: 14px;
    align-items: center;
}

.invoice-company img {
    width: 76px;
    height: 76px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    object-fit: contain;
    padding: 4px;
}

.invoice-company h2,
.invoice-company p {
    margin: 0;
}

.invoice-company p {
    color: var(--muted);
}

.invoice-meta-box {
    display: grid;
    gap: 3px;
    align-content: center;
    min-width: 180px;
    text-align: right;
}

.invoice-meta-box span {
    font-weight: 800;
}

.invoice-meta-box small {
    color: var(--muted);
}

.invoice-footer-text {
    margin: 24px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    text-align: center;
    font-weight: 700;
}

.invoice-a4-sheet {
    width: min(794px, 100%);
    min-height: 1123px;
    margin: 0 auto;
    padding: 44px 42px;
    background: #ffffff;
    color: #000000;
    font-family: var(--app-font-family);
    box-shadow: 0 12px 34px rgba(24, 32, 47, 0.08);
}

.invoice-thermal-sheet {
    width: min(302px, 100%);
    margin: 0 auto;
    padding: 18px 14px;
    background: #ffffff;
    color: #000000;
    font-family: var(--app-font-family);
    box-shadow: 0 12px 34px rgba(24, 32, 47, 0.08);
}

.invoice-thermal-sheet .invoice-receipt-head img {
    max-width: 160px;
    max-height: 58px;
    margin-bottom: 8px;
}

.invoice-thermal-sheet .invoice-receipt-head h2 {
    font-size: 1.55rem;
}

.invoice-thermal-sheet .invoice-receipt-head p {
    font-size: 0.82rem;
    line-height: 1.25;
}

.invoice-thermal-sheet .invoice-black-bar {
    margin: 14px 0 10px;
    padding: 9px 10px;
    font-size: 1.45rem;
}

.invoice-thermal-sheet .invoice-receipt-rows {
    gap: 6px;
    padding: 8px 0 12px;
    font-size: 0.88rem;
}

.invoice-thermal-sheet .invoice-receipt-rows div {
    grid-template-columns: 82px 1fr;
    gap: 8px;
}

.invoice-thermal-sheet .invoice-a4-table th,
.invoice-thermal-sheet .invoice-a4-table td {
    padding: 8px 4px;
    font-size: 0.9rem;
    width: auto;
}

.invoice-thermal-sheet .invoice-a4-table th {
    font-size: 0.96rem;
}

.invoice-thermal-sheet .invoice-a4-table td strong {
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.invoice-thermal-sheet .invoice-large-total {
    justify-items: center;
    margin: 16px 0 8px;
}

.invoice-thermal-sheet .invoice-large-total strong {
    font-size: 1.9rem;
}

.invoice-thermal-sheet .invoice-receipt-footer {
    margin-top: 18px;
    font-size: 0.85rem;
}

.invoice-receipt-head {
    text-align: center;
}

.invoice-receipt-head img {
    display: block;
    max-width: 220px;
    max-height: 82px;
    margin: 0 auto 10px;
    object-fit: contain;
}

.invoice-receipt-head h2 {
    margin: 0 0 6px;
    color: #000000;
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.invoice-receipt-head p {
    margin: 2px 0;
    font-size: 1rem;
}

.invoice-black-bar {
    margin: 20px 0 14px;
    padding: 12px 16px;
    background: #000000;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.invoice-receipt-rows {
    display: grid;
    gap: 8px;
    padding: 10px 0 16px;
    border-bottom: 2px solid #000000;
    font-size: 1rem;
}

.invoice-order-rows {
    border-bottom: 0;
}

.invoice-detail-rows {
    border-top: 2px solid #000000;
}

.invoice-receipt-rows div {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 12px;
    align-items: baseline;
}

.invoice-receipt-rows span {
    font-weight: 900;
}

.invoice-receipt-rows strong {
    font-weight: 500;
}

.invoice-a4-table {
    width: 100%;
    min-width: 0;
    margin-top: 0;
    border-collapse: collapse;
}

.invoice-a4-table th,
.invoice-a4-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #000000;
    color: #000000;
    text-align: left;
    vertical-align: top;
}

.invoice-a4-table th {
    background: #ffffff;
    font-size: 1.08rem;
    font-weight: 900;
    text-transform: none;
}

.invoice-a4-table th:first-child,
.invoice-a4-table td:first-child,
.invoice-a4-table th:nth-child(3),
.invoice-a4-table td:nth-child(3) {
    width: 42px;
}

.invoice-a4-table th:nth-child(2),
.invoice-a4-table td:nth-child(2),
.invoice-a4-table th:nth-child(4),
.invoice-a4-table td:nth-child(4) {
    width: calc((100% - 84px) / 2);
}

.invoice-a4-table td strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.invoice-a4-table td small {
    display: block;
    margin-top: 4px;
    color: #000000;
    font-size: 0.88rem;
    font-style: italic;
}

.invoice-ticket-list-mobile {
    display: none;
}

.invoice-total-row td {
    border-bottom: 2px solid #000000;
    font-weight: 900;
}

.invoice-total-row td:first-child {
    text-align: right;
}

.invoice-large-total {
    display: grid;
    gap: 6px;
    justify-items: end;
    margin: 20px 0 10px;
    padding-top: 14px;
    border-top: 2px solid #000000;
    color: #000000;
}

.invoice-large-total span {
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
}

.invoice-large-total strong {
    font-size: 2.5rem;
    line-height: 1;
}

.invoice-receipt-footer {
    margin-top: 28px;
    padding-top: 10px;
    border-top: 2px solid #000000;
    color: #000000;
    text-align: center;
}

.invoice-receipt-footer p {
    margin: 0 0 4px;
    font-size: 1.05rem;
}

.invoice-receipt-footer small {
    color: #000000;
}

.payment-action-panel {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fbfcfe;
}

.payment-action-panel > div:first-child {
    display: grid;
    gap: 6px;
}

.check-in-search {
    display: grid;
    grid-template-columns: minmax(240px, 1.25fr) minmax(220px, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin: 20px 0 26px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fbfcfe;
}

.check-in-search button,
.check-in-action-row button,
.check-in-payment-form button {
    width: auto;
}

.check-in-result {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.check-in-result h2 {
    margin: 0;
    font-family: Consolas, Monaco, monospace;
}

.check-in-notice {
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 700;
}

.check-in-notice.is-ready {
    border-color: #9fd8bd;
    background: #edf9f3;
    color: #17633e;
}

.check-in-notice.is-warning {
    border-color: #e8cf82;
    background: #fff9e8;
    color: #70530a;
}

.check-in-notice.is-blocked {
    border-color: #e6aaa5;
    background: #fff1f0;
    color: #8f1b13;
}

.check-in-payment-form {
    display: grid;
    grid-template-columns: minmax(220px, 320px) auto;
    gap: 14px;
    align-items: end;
}

.check-in-action-row {
    display: flex;
    justify-content: flex-end;
}

.report-filter-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    margin: 20px 0 26px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fbfcfe;
}

.report-panel > .section-header > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.report-panel > .section-header > .action-row {
    align-items: stretch;
    flex: 0 0 auto;
    flex-wrap: nowrap;
}

.report-panel > .section-header .report-download-button,
.report-panel > .section-header .report-print-action {
    box-sizing: border-box;
    min-height: 45px;
    white-space: nowrap;
}

.report-filter-panel .is-hidden {
    display: none;
}

.report-filter-actions {
    display: flex;
    gap: 10px;
    align-items: end;
}

.report-filter-actions > * {
    width: auto;
    height: 44px;
    min-height: 44px;
    padding: 10px 14px;
    flex: 1;
    line-height: 1;
    white-space: nowrap;
}

.report-errors {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #e6aaa5;
    border-radius: 8px;
    background: #fff1f0;
    color: #8f1b13;
    font-weight: 700;
}

.report-errors p {
    margin: 3px 0;
}

.report-mobile-download {
    display: none;
}

.report-a4-sheet {
    /* width: min(794px, 100%); */
    min-height: 1123px;
    margin: 0 auto;
    padding: 38px 40px;
    background: #ffffff;
    color: #000000;
    font-family: var(--app-font-family);
    box-shadow: 0 12px 34px rgba(24, 32, 47, 0.08);
}

.report-a4-sheet.report-a4-landscape {
    width: min(1123px, 100%);
    min-height: 794px;
}

.report-a4-sheet strong {
    font-weight: 500;
}

.report-a4-sheet .invoice-receipt-head h2 {
    font-weight: 700;
}

.report-a4-sheet .invoice-black-bar {
    font-weight: 700;
}

.report-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #000000;
    border-bottom: 1px solid #000000;
}

.report-meta div {
    display: grid;
    gap: 4px;
    padding: 9px 10px;
}

.report-meta div:nth-child(2) {
    text-align: right;
}

.report-meta .report-meta-filters {
    grid-column: 1 / -1;
    padding-top: 7px;
    border-top: 1px solid #000000;
    text-align: left;
}

.report-meta span,
.report-summary span {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.report-meta strong {
    font-size: 0.88rem;
    font-weight: 400;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 14px 0;
}

.report-summary div {
    display: grid;
    gap: 5px;
    padding: 10px 12px;
    border: 1px solid #000000;
}

.report-summary strong {
    font-size: 1.3rem;
    font-weight: 500;
}

.report-summary .sales-summary small {
    display: block;
    margin-top: 4px;
    color: #333333;
    font-size: 0.72rem;
}

.report-table-wrap {
    width: 100%;
    overflow: visible;
}

.report-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    color: #000000;
    font-size: 0.76rem;
}

.report-table th,
.report-table td {
    padding: 8px 7px;
    border: 1px solid #000000;
    color: #000000;
    text-align: left;
    vertical-align: middle;
}

.report-table th {
    background: #000000;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.report-table td:first-child,
.report-table th:first-child {
    text-align: center;
}

.report-table .report-col-index { width: 5%; }
.report-table .report-col-title { width: 20%; }
.report-table .report-col-category { width: 12.5%; }
.report-table .report-col-venue { width: 12.5%; }
.report-table .report-col-datetime { width: 10%; }
.report-table .report-col-length { width: 10%; }
.report-table .report-col-price { width: 10%; }
.report-table .report-col-sold { width: 10%; }
.report-table .report-col-income { width: 10%; }

.report-table th,
.report-table td {
    overflow-wrap: anywhere;
}

.report-table .table-date {
    gap: 3px;
}

.report-table .table-date strong,
.report-table .table-date small {
    color: #000000;
    font-size: inherit;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

.report-table td:nth-child(8) strong {
    white-space: nowrap;
}

.report-table td strong {
    display: block;
    font-weight: 500;
}

.report-table td small {
    display: block;
    margin-top: 3px;
    color: #333333;
}

.report-table tbody tr:nth-child(even) {
    background: #f3f3f3;
}

.report-table tfoot td {
    border-top: 1px solid #000000;
    background: #e8e8e8;
    font-weight: 600;
}

.report-a4-sheet .invoice-receipt-footer {
    border-top-width: 1px;
}

.report-table tfoot td:first-child {
    text-align: right;
}

.venue-report-table .venue-report-col-name { width: 20%; }
.venue-report-table .venue-report-col-type { width: 10%; }
.venue-report-table .venue-report-col-capacity { width: 10%; }
.venue-report-table .venue-report-col-contact { width: 40%; }
.venue-report-table .venue-report-col-events { width: 10%; }
.venue-report-table .venue-report-col-income { width: 10%; }

.venue-report-table .venue-report-address-row td {
    padding-top: 7px;
    padding-bottom: 7px;
    border-top: 0;
    background: #f3f3f3;
    text-align: left;
}

.venue-report-main-row td {
    border-bottom: 0;
}

.venue-report-table .venue-report-main-row td:first-child {
    text-align: left;
}

.venue-report-contact {
    white-space: nowrap;
}

.venue-report-contact small {
    font-size: 0.7rem;
}

.venue-report-main-row:not(:first-child) td {
    border-top-width: 1px;
}

.customer-report-table .customer-report-col-index { width: 4%; }
.customer-report-table .customer-report-col-name { width: 15%; }
.customer-report-table .customer-report-col-phone { width: 12%; }
.customer-report-table .customer-report-col-email { width: 20%; }
.customer-report-table .customer-report-col-bookings { width: 10%; }
.customer-report-table .customer-report-col-refunds { width: 13%; }
.customer-report-table .customer-report-col-average { width: 13%; }
.customer-report-table .customer-report-col-revenue { width: 13%; }

.revenue-report-table .revenue-report-col-index { width: 4%; }
.revenue-report-table .revenue-report-col-transaction-date { width: 10%; }
.revenue-report-table .revenue-report-col-booking { width: 12%; }
.revenue-report-table .revenue-report-col-event { width: 20%; }
.revenue-report-table .revenue-report-col-customer { width: 22%; }
.revenue-report-table .revenue-report-col-price { width: 7%; }
.revenue-report-table .revenue-report-col-tickets { width: 5%; }
.revenue-report-table .revenue-report-col-type { width: 10%; }
.revenue-report-table .revenue-report-col-transaction { width: 10%; }

.revenue-report-table .revenue-report-detail strong,
.revenue-report-table .revenue-report-detail small {
    text-align: left;
}

.revenue-report-table .revenue-report-detail small {
    font-size: 0.68rem;
}

.revenue-report-table td[data-label="Type"] small.badge {
    display: inline-flex;
    min-height: 20px;
    margin: 0;
    padding: 3px 5px;
    color: inherit;
    font-size: 0.62rem;
}

.revenue-report-table .transaction-positive {
    color: #136c35;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.revenue-report-table .transaction-negative {
    color: #a8241a;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

@media (max-width: 760px) {
    .check-in-search,
    .check-in-payment-form {
        grid-template-columns: 1fr;
    }

    .check-in-search button,
    .check-in-action-row button,
    .check-in-payment-form button {
        width: 100%;
    }

    .report-filter-panel,
    .report-summary {
        grid-template-columns: 1fr;
    }

    .report-filter-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .report-print-action,
    .report-a4-sheet {
        display: none;
    }

    .report-desktop-download-action {
        display: none !important;
    }

    .report-mobile-download {
        display: block;
        margin-top: 18px;
        padding: 22px 18px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: #fbfcfe;
        text-align: center;
    }

    .report-mobile-download h2 {
        margin: 5px 0 8px;
        font-size: 1.25rem;
    }

    .report-mobile-download p:not(.eyebrow) {
        max-width: 520px;
        margin: 0 auto 18px;
        color: var(--muted);
        line-height: 1.55;
    }

    .report-mobile-download .report-download-button {
        width: 100%;
        justify-content: center;
    }

    .report-a4-sheet {
        min-height: 0;
        padding: 24px 16px;
    }

    .report-meta {
        grid-template-columns: 1fr;
    }

    .report-meta div:nth-child(2) {
        border-top: 1px solid #000000;
        text-align: left;
    }

    .report-meta .report-meta-filters {
        grid-column: auto;
    }
}

.ticket-code-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ticket-code-grid span {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #f8fafc;
    font-family: Consolas, Monaco, monospace;
    font-weight: 800;
}

.print-ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.print-ticket {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
}

.print-ticket h2 {
    margin: 0 0 18px;
}

.single-ticket {
    max-width: 720px;
    margin: 0 auto;
}

.ticket-meta {
    display: grid;
    gap: 10px;
    margin: 0;
}

.ticket-meta div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.ticket-meta div:last-child {
    border-bottom: 0;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 20px;
    font-size: 2rem;
    line-height: 1.15;
}

.lead {
    margin: -8px 0 24px;
    color: var(--muted);
    font-size: 1.1rem;
}

.form-grid {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-weight: 700;
}

input {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font: inherit;
}

select,
textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus {
    border-color: var(--primary);
    outline: 3px solid rgba(33, 102, 232, 0.16);
}

select:focus,
textarea:focus {
    border-color: var(--primary);
    outline: 3px solid rgba(33, 102, 232, 0.16);
}

button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    border: 0;
    border-radius: 6px;
    background: var(--primary);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

button:hover,
.button-link:hover {
    background: var(--primary-dark);
    color: #ffffff;
}

.button-link.light,
button.light {
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
}

.button-link.light:hover,
button.light:hover {
    background: #eef3fb;
    color: var(--text);
}

.button-link.compact,
button.compact {
    width: auto;
    min-width: 128px;
}

.button-link.small,
button.small {
    width: auto;
    min-height: 34px;
    padding: 8px 10px;
    font-size: 0.9rem;
}

.toolbar.print-hide {
    align-items: center;
    margin-bottom: 18px !important;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
}

.toolbar.print-hide .btn,
.toolbar.print-hide button,
.toolbar.print-hide a {
    width: auto;
    min-width: 0;
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.toolbar.print-hide .ticket-orientation {
    width: auto;
    min-height: 38px;
    padding: 9px 34px 9px 12px;
}

button.danger {
    background: var(--danger);
}

button.danger:hover {
    background: #8f1b13;
}

.switch-link {
    margin: 18px 0 0;
    color: var(--muted);
    text-align: center;
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.flash {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #ffffff;
    font-weight: 700;
}

.flash-danger {
    border-color: rgba(180, 35, 24, 0.28);
    color: var(--danger);
}

.flash-success {
    border-color: rgba(6, 118, 71, 0.28);
    color: var(--success);
}

.flash-warning {
    border-color: rgba(181, 71, 8, 0.28);
    color: var(--warning);
}

.account-list {
    display: grid;
    gap: 12px;
    margin: 0 0 24px;
}

.account-list div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

dt {
    color: var(--muted);
    font-weight: 700;
}

dd {
    margin: 0;
}

@media (max-width: 1020px) {
    .public-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-list-panel .filter-grid,
    .admin-list-panel .booking-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-list-panel .filter-grid > button,
    .admin-list-panel .filter-grid > .button-link {
        width: 100%;
    }

}

@media (max-width: 560px) {
    .topbar,
    .account-list div {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
    }

    .nav-dropdown-menu {
        right: auto;
        left: 0;
        transform: translateY(-6px);
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        transform: translateY(0);
    }

    .panel {
        padding: 24px;
    }

    .section-header,
    .form-actions {
        flex-direction: column;
    }

    .filter-grid,
    .booking-filter-grid,
    .two-col,
    .details-grid,
    .quick-grid,
    .logo-settings-row {
        grid-template-columns: 1fr;
    }

    .invoice-branding,
    .invoice-company {
        flex-direction: column;
        align-items: flex-start;
    }

    .invoice-meta-box {
        text-align: left;
    }

    .form-actions > *,
    .button-link.compact {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .card-facts div {
        flex-direction: column;
        gap: 5px;
    }

    .card-facts dd {
        text-align: left;
    }

    .panel {
        padding: 18px;
    }

    .two-col,
    .details-grid,
    .filter-grid,
    .booking-filter-grid,
    .logo-settings-row {
        grid-template-columns: 1fr;
    }

    .section-header {
        gap: 14px;
    }

    .section-header > .action-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .section-header > .action-row > *,
    .section-header > .action-row .button-link,
    .section-header > .action-row button {
        width: 100%;
    }

    .topbar {
        position: relative;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        margin-bottom: 22px;
    }

    .brand img {
        height: 50px;
    }

    .brand-mark {
        width: 50px;
        height: 50px;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-actions {
        display: none;
        align-items: stretch;
        flex: 0 0 100%;
        flex-direction: column;
        gap: 3px;
        width: 100%;
        padding-top: 12px;
        border-top: 1px solid transparent;
    }

    .nav-actions.is-open {
        display: flex;
        margin-top: 10px;
        border-top-color: var(--border);
    }

    .nav-actions > a,
    .nav-dropdown-trigger {
        justify-content: space-between;
        width: 100%;
        min-height: 44px;
        padding: 10px 12px;
    }

    .nav-dropdown-menu {
        position: static;
        display: none;
        min-width: 0;
        margin: 2px 0 5px 14px;
        border-left: 2px solid #d6e3fa;
        border-radius: 0 8px 8px 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        display: none;
        transform: none;
    }

    .nav-dropdown.is-open .nav-dropdown-menu {
        display: grid;
    }

    .nav-dropdown.is-open .nav-dropdown-trigger::after {
        transform: rotate(180deg);
    }

    .public-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 28px;
        padding: 38px 26px;
        border-radius: 16px;
    }

    .public-hero-stats {
        width: 100%;
    }

    .public-section {
        padding: 24px 18px;
    }

    .public-card-grid {
        grid-template-columns: 1fr;
    }

    .public-page-head,
    .card-title-row,
    .single-line-info {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-line {
        gap: 8px;
    }

    .contact-line span + span::before {
        display: none;
    }

    .public-info-grid {
        grid-template-columns: 1fr;
    }

    .admin-list-panel {
        padding: 16px;
        border-radius: 12px;
    }

    .admin-list-panel .section-header {
        align-items: stretch;
        flex-direction: column;
        margin-bottom: 18px;
    }

    .admin-list-panel .section-header h1 {
        margin-bottom: 0;
        font-size: 1.75rem;
    }

    .admin-list-panel .section-header .button-link.compact {
        width: 100%;
    }

    .admin-list-panel .filter-grid,
    .admin-list-panel .booking-filter-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: #f9fbfd;
    }

    .admin-list-panel .filter-grid label {
        min-width: 0;
    }

    .admin-list-panel .filter-grid input,
    .admin-list-panel .filter-grid select,
    .admin-list-panel .filter-grid button,
    .admin-list-panel .filter-grid .button-link {
        width: 100%;
        max-width: 100%;
    }

    .admin-list-panel .table-wrap {
        overflow: visible;
    }

    .admin-list-table tr {
        margin-bottom: 16px;
        border-radius: 12px;
        box-shadow: 0 8px 22px rgba(24, 32, 47, .07);
    }

    .admin-list-table td {
        grid-template-columns: minmax(82px, 96px) minmax(0, 1fr);
        padding: 12px;
    }

    .admin-list-table td,
    .admin-list-table td > *,
    .admin-list-table td strong,
    .admin-list-table td span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .admin-list-table td[data-label="Actions"] {
        display: block;
    }

    .admin-list-table td[data-label="Actions"]::before {
        display: block;
        margin-bottom: 10px;
    }

    .admin-list-table .action-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .admin-list-table .action-row > a,
    .admin-list-table .action-row > form,
    .admin-list-table .action-row form button {
        width: 100%;
    }

    .admin-list-table .table-date {
        margin-top: 4px;
    }

    .admin-list-table .mobile-cell-value {
        display: grid;
        grid-column: 2;
        gap: 4px;
        width: 100%;
        min-width: 0;
    }

    .admin-list-table .mobile-cell-value .table-date {
        margin-top: 2px;
    }

    .invoice-panel {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .invoice-panel > .section-header {
        padding: 18px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: #fff;
    }

    .invoice-panel .section-header h1 {
        max-width: 100%;
        overflow-wrap: anywhere;
        font-size: 1.4rem;
    }

    .invoice-panel .action-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .invoice-panel .action-row > * {
        justify-content: center;
        width: 100%;
    }

    .invoice-a4-sheet,
    .invoice-thermal-sheet {
        width: 100%;
        min-height: 0;
        padding: 26px 18px;
        border-radius: 12px;
        box-shadow: 0 10px 28px rgba(24, 32, 47, .08);
    }

    .invoice-receipt-head h2 {
        font-size: clamp(1.55rem, 9vw, 2.1rem);
        overflow-wrap: anywhere;
    }

    .invoice-receipt-head p {
        font-size: .88rem;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .invoice-black-bar {
        margin: 16px 0 12px;
        padding: 11px 8px;
        font-size: 1.45rem;
    }

    .invoice-receipt-rows div,
    .invoice-thermal-sheet .invoice-receipt-rows div {
        grid-template-columns: 1fr;
        gap: 3px;
        padding: 5px 0;
    }

    .invoice-receipt-rows strong {
        overflow-wrap: anywhere;
        line-height: 1.4;
    }

    .invoice-a4-table {
        display: none;
    }

    .invoice-ticket-list-mobile {
        display: grid;
        gap: 0;
        border-bottom: 2px solid #000;
    }

    .invoice-ticket-list-mobile div {
        display: grid;
        gap: 4px;
        padding: 11px 4px;
        border-bottom: 1px solid #d4d4d4;
    }

    .invoice-ticket-list-mobile div:last-child {
        border-bottom: 0;
    }

    .invoice-ticket-list-mobile span {
        font-size: .75rem;
        font-weight: 900;
        text-transform: uppercase;
    }

    .invoice-ticket-list-mobile strong {
        overflow-wrap: anywhere;
        font-family: Consolas, Monaco, monospace;
        font-size: .94rem;
    }

    .invoice-large-total {
        justify-items: stretch;
        text-align: right;
    }

    .invoice-large-total strong {
        font-size: clamp(1.8rem, 10vw, 2.35rem);
        overflow-wrap: anywhere;
    }

    .table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    table {
        min-width: 0;
    }

    thead {
        display: none;
    }

    table,
    tbody,
    tr,
    td {
        display: block;
        width: 100%;
    }

    tr {
        margin-bottom: 14px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 10px 24px rgba(24, 32, 47, 0.05);
        overflow: hidden;
    }

    tbody tr:hover {
        background: #ffffff;
    }

    td {
        display: grid;
        grid-template-columns: 112px 1fr;
        gap: 12px;
        align-items: start;
        border-bottom: 1px solid var(--border);
    }

    td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.78rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    td.empty-cell {
        display: block;
        text-align: center;
    }

    td.empty-cell::before {
        content: "";
    }

    .invoice-a4-table {
        display: table;
    }

    .invoice-a4-table thead {
        display: table-header-group;
    }

    .invoice-a4-table tbody {
        display: table-row-group;
    }

    .invoice-a4-table tr {
        display: table-row;
        margin-bottom: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .invoice-a4-table th,
    .invoice-a4-table td {
        display: table-cell;
        width: auto;
    }

    .invoice-a4-table td::before {
        content: "";
    }

    .invoice-panel .invoice-a4-table {
        display: none;
    }

    .action-row {
        justify-content: flex-start;
    }

    .action-row .button-link,
    .action-row button {
        width: auto;
    }
}

@media print {
    @page {
        size: A4;
        margin: 0;
    }

    body {
        background: #ffffff;
    }

    .auth-shell {
        width: 100%;
        padding: 0;
    }

    .topbar,
    .flash-stack,
    .no-print {
        display: none !important;
    }

    .report-a4-sheet {
        display: block !important;
    }

    .panel {
        border: 0;
        box-shadow: none;
    }

    .invoice-panel {
        padding: 0;
    }

    .invoice-ticket-list-mobile {
        display: none !important;
    }

    .invoice-panel .invoice-a4-table {
        display: table !important;
    }

    .invoice-a4-sheet {
        width: 210mm;
        min-height: 0;
        padding: 12mm 14mm;
        box-shadow: none;
    }

    .invoice-a4-sheet .invoice-receipt-head h2 {
        font-size: 1.9rem;
    }

    .invoice-a4-sheet .invoice-black-bar {
        margin: 12px 0 8px;
        padding: 9px 12px;
        font-size: 1.65rem;
    }

    .invoice-a4-sheet .invoice-receipt-rows {
        gap: 5px;
        padding: 7px 0 10px;
        font-size: 0.92rem;
    }

    .invoice-a4-sheet .invoice-a4-table th,
    .invoice-a4-sheet .invoice-a4-table td {
        padding: 7px 6px;
    }

    .invoice-a4-sheet .invoice-large-total {
        margin: 12px 0 6px;
        padding-top: 10px;
    }

    .invoice-a4-sheet .invoice-large-total strong {
        font-size: 2rem;
    }

    .invoice-a4-sheet .invoice-receipt-footer {
        margin-top: 14px;
        padding-top: 8px;
    }

    .invoice-thermal-sheet {
        width: 80mm !important;
        min-height: 0;
        padding: 4mm;
        box-shadow: none;
    }

    .invoice-panel-thermal {
        width: 80mm !important;
        min-width: 80mm !important;
        max-width: 80mm !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body:has(.invoice-panel-thermal),
    body:has(.invoice-panel-thermal) .auth-shell,
    body:has(.invoice-panel-thermal) .invoice-panel {
        width: 80mm !important;
        min-width: 80mm !important;
        max-width: 80mm !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .table-wrap {
        overflow: visible;
    }

    .print-ticket {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .invoice-branding {
        border-color: #cccccc;
    }

    .report-panel.report-landscape {
        width: 297mm;
        max-width: 297mm;
        margin: 0;
        padding: 0;
    }

    .report-panel.report-portrait {
        width: 210mm;
        max-width: 210mm;
        margin: 0;
        padding: 0;
    }

    .report-a4-sheet.report-a4-landscape {
        width: 297mm;
        min-height: 210mm;
        margin: 0;
        padding: 10mm 12mm;
        box-shadow: none;
    }

    .report-a4-sheet.report-a4-portrait {
        width: 210mm;
        min-height: 297mm;
        margin: 0;
        padding: 10mm 9mm;
        box-shadow: none;
    }

    .report-a4-sheet .invoice-receipt-head h2 {
        font-size: 1.75rem;
    }

    .report-a4-sheet .invoice-receipt-head img {
        max-height: 58px;
    }

    .report-a4-sheet .invoice-black-bar {
        margin: 10px 0 7px;
        padding: 8px 10px;
        font-size: 1.45rem;
    }

    .report-table-wrap {
        overflow: visible;
    }

    .report-table {
        display: table;
        width: 100%;
        min-width: 0;
        font-size: 7.5pt;
        table-layout: fixed;
    }

    .report-portrait .report-table {
        font-size: 6.5pt;
    }

    .report-portrait .report-table th,
    .report-portrait .report-table td {
        padding: 5px 3px;
        overflow-wrap: anywhere;
    }

    .report-table thead {
        display: table-header-group;
    }

    .report-table tbody {
        display: table-row-group;
    }

    .report-table tfoot {
        display: table-footer-group;
    }

    .report-table tr {
        display: table-row;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .report-table th,
    .report-table td {
        display: table-cell;
        width: auto;
        padding: 6px 5px;
    }

    .report-table th {
        font-size: 6.5pt;
    }

    .report-portrait .report-table th {
        font-size: 6pt;
    }

    .report-table td::before {
        content: none;
    }

    .report-summary,
    .report-meta,
    .report-a4-sheet .invoice-receipt-head,
    .report-a4-sheet .invoice-black-bar {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .report-summary {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .report-meta {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .report-meta div:nth-child(2) {
        border-top: 0;
        text-align: right;
    }

    .report-meta .report-meta-filters {
        grid-column: 1 / -1 !important;
    }
}
