/* ==========================================================================
   Reports / Search Cards
   ========================================================================== */

.app-report-heading {
    width: min(calc(100% - 1.5rem), 1600px);
    margin: 0 auto 0.75rem;
}

.cardholder-form-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cardholder-form-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.app-dynamic-input-list {
    display: grid;
    gap: 0.75rem;
}

.app-dynamic-input-row {
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
}

.app-dynamic-input-row > .form-control {
    min-width: 0;
}

.app-dynamic-input-row > .btn {
    min-width: 3rem;
}

.app-dynamic-input-add {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.cardholder-form-page .cardholder-datetime-field {
    min-width: 0;
}

.role-manager-page .role-authorities-section {
    padding-top: 1rem;
    border-top: 1px solid var(--arcs-border);
}

.role-manager-page .role-manager-top-card {
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--arcs-border);
    border-radius: 0.5rem;
    background: var(--arcs-surface);
    box-shadow: var(--arcs-shadow-sm);
}

.role-manager-page .role-manager-top-card > .row {
    row-gap: 1rem;
}

.role-manager-page .role-manager-top-card label {
    color: var(--arcs-heading);
}

.role-manager-page .role-manager-top-card .form-group:last-child {
    margin-bottom: 0;
}

.role-manager-page .role-create-panel {
    border: 1px solid var(--arcs-border);
    border-radius: 0.5rem;
    background: color-mix(in srgb, var(--arcs-surface) 92%, var(--arcs-surface-muted) 8%);
}

.role-manager-page .header {
    margin-bottom: 1.25rem;
    color: var(--arcs-heading) !important;
    font-family: var(--arcs-font-display);
    font-size: clamp(1.85rem, 1.35rem + 1.2vw, 2.45rem);
    font-weight: 800;
    line-height: 1.15;
}

.role-manager-page .role-authorities-section > h5 {
    margin-bottom: 1rem !important;
    color: var(--arcs-heading);
    font-family: var(--arcs-font-display);
    font-size: 1.25rem;
    font-weight: 800;
}

.role-manager-page .role-authority-group + .role-authority-group {
    margin-top: 1rem;
}

.role-manager-page .role-authority-group {
    padding: 1rem 1.1rem 1.15rem;
    border: 1px solid var(--arcs-border);
    border-radius: 0.5rem;
    background: var(--arcs-surface);
    box-shadow: var(--arcs-shadow-sm);
}

.role-manager-page .role-authority-group-title {
    margin: 0 0 0.9rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid color-mix(in srgb, var(--arcs-border) 72%, transparent);
    color: var(--arcs-accent);
    font-family: var(--arcs-font-display);
    font-size: 1.08rem;
    font-weight: 800;
}

.role-manager-page .role-authority-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem 1rem;
}

.role-manager-page .role-authority-item {
    min-width: 0;
}

.role-manager-page .role-authority-item .form-check {
    min-width: 0;
    margin-bottom: 0;
}

.role-manager-page .role-authority-item .form-check-label {
    max-width: 100%;
    overflow-wrap: anywhere;
}

@media (max-width: 1199.98px) {
    .role-manager-page .role-authority-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .role-manager-page .role-authority-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .role-manager-page .role-authority-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.cardholder-list-page .app-inline-form,
.cardholder-list-page .cardholder-list-page-size-form {
    align-items: flex-end;
}

.cardholder-list-page .cardholder-list-results .app-table-shell {
    width: 100%;
    margin: 0 0 1rem;
}

.cardholder-list-page .app-inline-form .form-group,
.cardholder-list-page .cardholder-list-page-size-form .form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cardholder-list-page .app-inline-form label,
.cardholder-list-page .cardholder-list-page-size-form label {
    display: block;
    margin-bottom: 0.45rem;
}

.cardholder-list-page .app-inline-form .form-control,
.cardholder-list-page .app-inline-form .form-select {
    min-width: 14rem;
}

.cardholder-list-page .cardholder-list-page-size-form .cardholder-page-size-select {
    width: auto;
    min-width: 6rem;
}

.cardholder-list-page .cardholder-search-summary {
    margin: 0 0 1rem;
    color: var(--arcs-text-muted);
}

.cardholder-list-page .cardholder-search-group {
    margin-bottom: 1.25rem;
}

.cardholder-list-page .cardholder-search-group:last-of-type {
    margin-bottom: 0;
}

.cardholder-list-page .cardholder-search-group-title {
    margin: 0 0 0.85rem;
    color: var(--arcs-heading);
    font-size: 1.05rem;
    font-weight: 700;
}

.cardholder-list-page .cardholder-search-print-action {
    justify-self: end;
}

.list-pagination-footer,
.cardholder-list-page .cardholder-search-footer,
.app-search-results-footer {
    width: min(calc(100% - 1.5rem), 1600px);
    margin: 0 auto 1rem;
    border: 1px solid var(--arcs-border);
    border-radius: 1rem;
    overflow: hidden;
}

.app-report-results > .list-pagination-footer,
.app-report-results > .app-search-results-footer,
.cardholder-list-page .cardholder-search-footer,
.app-table-shell + .list-pagination-footer,
.app-table-shell + .app-search-results-footer {
    width: 100%;
    max-width: none;
    margin: 0 0 1rem;
}

.list-pagination-layout,
.cardholder-list-page .cardholder-search-footer-inner,
.app-search-results-footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.list-pagination-main,
.cardholder-list-page .cardholder-search-footer-pagination,
.app-search-results-footer-pagination {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-pagination-footer .pagination,
.cardholder-list-page .cardholder-search-footer .pagination,
.app-search-results-footer .pagination {
    margin-bottom: 0;
}

.list-pagination-controls {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.list-pagination-summary {
    white-space: nowrap;
}

.list-pagination-size {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.list-pagination-size-label {
    margin: 0;
    color: var(--arcs-text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.list-pagination-size .form-select {
    width: auto;
    min-width: 5rem;
}

.cardholder-list-page .cardholder-search-footer .cardholder-list-page-size-form {
    grid-column: 3;
    justify-self: end;
}

.cardholder-form-page .app-field-label {
    display: block;
    margin-bottom: 0.45rem;
}

.cardholder-form-page .cardholder-datetime-field .input-group {
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.cardholder-form-page .cardholder-datetime-field .input-group > .form-control,
.cardholder-form-page .cardholder-datetime-field .input-group > .input-group-text {
    min-height: 3rem;
}

.cardholder-form-page .cardholder-datetime-field .input-group > .form-control {
    flex: 1 1 0%;
    width: auto;
    min-width: 0;
}

.cardholder-form-page .cardholder-switch-field {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.cardholder-form-page .cardholder-switch-field .custom-switch.custom-switch-xl {
    padding-bottom: 0;
}

.cardholder-form-page .cardholder-switch-field .custom-control-label {
    min-height: 2rem;
}

.cardholder-form-page .device-form-card small {
    display: block;
    margin-top: 0.35rem;
}

.cardholder-form-page .app-input-addon-calendar-tight {
    padding: 0;
}

.cardholder-form-page .cardholder-datetime-field .form-control.border-end-0:focus {
    box-shadow: none;
}

.cardholder-form-page .cardholder-datetime-field .input-group:focus-within .form-control,
.cardholder-form-page .cardholder-datetime-field .input-group:focus-within .input-group-text {
    border-color: #86b7fe;
}

.cardholder-form-page .cardholder-access-info-content {
    clear: both;
}

.cardholder-form-page .cardholder-card-info-remove {
    white-space: nowrap;
}

@media print {
    .cardholder-form-page .form-control,
    .cardholder-form-page .btn {
        border: none;
        box-shadow: none;
        background-color: transparent;
        color: black;
        font-size: 14px;
        display: inline;
    }

    .cardholder-form-page .print-only {
        display: inline;
    }
}

.app-small-form-grid .registration-status-toggle {
    width: 100%;
}

.app-report-title {
    color: var(--arcs-accent);
}

.app-filter-card {
    width: min(calc(100% - 1.5rem), 1600px);
    margin: 0 auto 1rem;
    border: 1px solid var(--arcs-border);
    border-radius: 1rem;
    background: var(--arcs-surface);
}

.app-filter-card .card-body {
    padding: 1rem 1.25rem;
}

.app-filter-field {
    margin-bottom: 0;
}

.app-filter-field label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--arcs-text-muted);
    font-weight: 600;
    line-height: 1.2;
}

.app-filter-field .form-control,
.app-filter-field .form-select {
    min-height: 2.4rem;
}

.app-filter-inline-group {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem;
}

.app-filter-field-grow {
    flex: 1 1 220px;
}

.app-filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0.5rem;
    min-height: 100%;
}

.app-filter-actions .btn {
    min-width: 120px;
}

.app-filter-actions-inline {
    min-height: 0;
}

.app-report-toolbar-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
}

.app-report-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.85rem 1rem;
}

.app-report-toolbar-row > .app-report-toolbar-form {
    flex: 1 1 auto;
    min-width: min(100%, 32rem);
}

.app-report-toolbar-row > .app-report-toolbar-actions {
    margin-left: auto;
}

.app-report-toolbar-form-spaced {
    margin-top: 0.35rem;
}

.app-report-toolbar-row-spaced {
    margin-top: 0.35rem;
}

.app-report-toolbar-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    min-width: 0;
}

.app-report-toolbar-form .form-group {
    margin-bottom: 0;
}

.app-report-toolbar-field {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.app-toolbar-field-gap-after {
    margin-inline-end: 0.375rem;
}

.app-report-toolbar-field-wide {
    flex-basis: 18rem;
    min-width: min(100%, 18rem);
}

.app-report-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
}

.app-report-toolbar-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-width: 0;
}

.app-report-toolbar-form label {
    color: var(--arcs-text-muted);
    font-weight: 600;
}

.app-report-toolbar-field .app-field-label {
    display: block;
    margin-bottom: 0.45rem;
}

.app-report-toolbar-form .app-form-icon-control {
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.app-form-icon-control > .app-clearable-control {
    position: relative;
    display: flex;
    align-items: stretch;
    flex: 1 1 0%;
    min-width: 0;
    margin-left: -1px;
}

.app-clearable-control > .form-control {
    width: 100%;
    min-width: 0;
    padding-right: 2.6rem;
}

.app-form-icon-control > .app-clearable-control > .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.app-clear-input-btn {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--arcs-text-muted);
    transform: translateY(-50%);
    transition: color 160ms ease, background-color 160ms ease;
    z-index: 4;
}

.app-clear-input-btn:hover,
.app-clear-input-btn:focus-visible {
    color: var(--arcs-text);
    background: color-mix(in srgb, var(--arcs-text) 10%, transparent);
    outline: 0;
}

.app-clear-input-btn[hidden] {
    display: none !important;
}

.app-clear-input-btn .app-fa {
    width: 0.85rem;
    font-size: 0.85rem;
    line-height: 1;
}

.app-report-toolbar-form .app-form-icon-control > .form-control,
.app-report-toolbar-form .app-form-icon-control > .form-select,
.app-report-toolbar-form .app-form-icon-control > .custom-select,
.app-report-toolbar-form .app-form-icon-control > .app-clearable-control > .form-control,
.app-report-toolbar-form .app-form-icon-control > .app-clearable-control > .form-select,
.app-report-toolbar-form .app-form-icon-control > .app-clearable-control > .custom-select {
    flex: 1 1 0%;
    width: auto;
    min-width: 0;
}

.app-report-toolbar-form .app-form-icon-addon {
    color: var(--app-form-icon-addon-text, var(--arcs-text-muted));
    background: var(--app-form-icon-addon-bg, var(--arcs-surface));
}

.app-report-toolbar-form .app-form-icon-addon .app-icon-input,
.app-report-toolbar-form .app-form-icon-addon .app-fa {
    width: 1rem;
    text-align: center;
}

.app-report-toolbar-form .form-control,
.app-report-toolbar-form .form-select,
.app-report-toolbar-form .custom-select {
    width: auto;
    max-width: 100%;
    min-width: min(100%, 14rem);
}

.app-report-toolbar-form-lg .app-report-toolbar-field {
    flex-basis: min(100%, 19rem);
}

.app-report-toolbar-form-4up {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    gap: 0.75rem;
}

.app-report-toolbar-form-3up {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 0.75rem;
}

.app-report-toolbar-form-4up .app-report-toolbar-field,
.app-report-toolbar-form-4up .app-report-toolbar-action,
.app-report-toolbar-form-3up .app-report-toolbar-field,
.app-report-toolbar-form-3up .app-report-toolbar-action {
    min-width: 0;
}

.app-report-toolbar-form-4up .app-report-toolbar-field,
.app-report-toolbar-form-3up .app-report-toolbar-field {
    flex: initial;
}

.app-report-toolbar-form-4up .app-form-icon-control,
.app-report-toolbar-form-4up .form-control,
.app-report-toolbar-form-4up .form-select,
.app-report-toolbar-form-4up .custom-select,
.app-report-toolbar-form-3up .app-form-icon-control,
.app-report-toolbar-form-3up .form-control,
.app-report-toolbar-form-3up .form-select,
.app-report-toolbar-form-3up .custom-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.app-report-toolbar-form-compact .app-report-toolbar-field {
    flex-basis: min(100%, 13.5rem);
}

.app-report-toolbar-form-compact .form-control,
.app-report-toolbar-form-compact .form-select,
.app-report-toolbar-form-compact .custom-select {
    min-width: min(100%, 11rem);
}

.app-report-toolbar-form-lg .app-form-icon-control > .form-control,
.app-report-toolbar-form-lg .app-form-icon-control > .form-select,
.app-report-toolbar-form-lg .app-form-icon-control > .custom-select,
.app-report-toolbar-form-lg .app-form-icon-control > .app-clearable-control > .form-control,
.app-report-toolbar-form-lg .app-form-icon-control > .app-clearable-control > .form-select,
.app-report-toolbar-form-lg .app-form-icon-control > .app-clearable-control > .custom-select,
.app-report-toolbar-form-lg .app-report-toolbar-field > .form-control,
.app-report-toolbar-form-lg .app-report-toolbar-field > .form-select,
.app-report-toolbar-form-lg .app-report-toolbar-field > .custom-select {
    min-height: 3rem;
}

.app-report-icon-only-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    min-height: 3rem;
    padding: 0.55rem;
}

.app-report-toolbar-form .btn {
    white-space: nowrap;
}

.app-report-toolbar-action .app-small-form-label,
.app-report-toolbar-field .app-small-form-label {
    margin-bottom: 0.55rem;
}

.app-report-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding-inline: 1rem;
    white-space: nowrap;
}

@media (max-width: 1399.98px) {
    .app-report-toolbar-form-4up {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .app-report-toolbar-form-3up {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .app-report-toolbar-form-4up {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-report-toolbar-form-3up {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .app-report-toolbar-form-4up {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-report-toolbar-form-3up {
        grid-template-columns: minmax(0, 1fr);
    }
}

.app-report-results .app-table-shell {
    width: 100%;
    max-width: none;
    margin: 0 0 1rem;
}

.app-report-table-group {
    margin-bottom: 1.25rem;
}

.app-report-table-group:last-of-type {
    margin-bottom: 0;
}

.app-report-group-title {
    margin: 0 0 0.85rem;
    color: var(--arcs-heading);
    font-size: 1.05rem;
    font-weight: 700;
}

.department-summary-table th,
.department-summary-table td {
    width: 33.33%;
}

.revenue-yearly-summary-table th,
.revenue-yearly-summary-table td {
    width: 100px;
}

/* ==========================================================================
   Event Pages
   ========================================================================== */

.event-page {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.event-hero,
.event-toolbar-card,
.event-table-card,
.event-count-card {
    border-radius: 1rem;
}

.event-hero {
    margin-bottom: 0.7rem;
    border: 1px solid var(--arcs-border);
    background: linear-gradient(135deg, var(--arcs-surface) 0%, color-mix(in srgb, var(--arcs-surface) 92%, var(--arcs-accent) 8%) 100%);
}

.event-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
    min-height: 100%;
}

.event-table-eyebrow {
    color: var(--arcs-text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-hero-title,
.event-table-title {
    margin: 0;
    color: var(--arcs-heading);
    font-weight: 700;
}

.event-hero-title {
    font-size: clamp(1rem, 0.45vw + 0.85rem, 1.25rem);
    line-height: 1.1;
}

.event-table-subtitle,
.event-table-footer-note {
    color: var(--arcs-text-muted);
}

.event-hero-count .event-count-card {
    width: 100%;
    max-width: 270px;
}

.event-toolbar-card {
    margin-bottom: 0;
    border: 1px solid var(--arcs-border);
    background: var(--arcs-surface);
}

.event-hero-toolbar {
    max-width: 100%;
    margin-top: 0.15rem;
}

.event-hero-toolbar .card-body {
    padding: 0.85rem 0.95rem !important;
}

.event-toolbar-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem;
    margin: 0;
}

.event-toolbar-field {
    flex: 1 1 220px;
    min-width: 0;
}

.event-toolbar-label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--arcs-text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.event-toolbar-button {
    min-width: 96px;
}

.event-toolbar-control,
.event-toolbar-action {
    min-height: 2.35rem;
    font-size: 0.9rem;
}

.event-toolbar-control {
    padding: 0.4rem 0.75rem;
    line-height: 1.3;
}

.event-toolbar-action {
    padding: 0.4rem 0.9rem;
    line-height: 1.2;
}

.event-search-form .event-toolbar-field {
    flex-basis: 250px;
}

.event-lot-form {
    justify-content: flex-end;
}

.event-lot-form .event-toolbar-field {
    flex-basis: 200px;
}

.event-hero-toolbar .event-toolbar-form {
    gap: 0.45rem;
}

.event-hero-toolbar .event-toolbar-label {
    margin-bottom: 0.2rem;
    font-size: 0.76rem;
}

.event-hero-toolbar .event-toolbar-field {
    flex: 0 1 auto;
}

.event-hero-toolbar .event-search-form .event-toolbar-field {
    flex: 1 1 220px;
    max-width: 260px;
}

.event-hero-toolbar .event-lot-form .event-toolbar-field {
    flex: 1 1 150px;
    max-width: 200px;
}

.event-hero-toolbar .event-toolbar-control {
    min-height: 2.2rem;
    padding: 0.32rem 0.65rem;
    font-size: 0.84rem;
    line-height: 1.2;
}

.site-events-page .event-hero-toolbar input.event-toolbar-control,
.site-events-page .event-hero-toolbar select.event-toolbar-control {
    font-size: 0.98rem;
}

.site-events-page .event-hero-toolbar .event-toolbar-label {
    font-size: 0.98rem;
}

.site-events-page #eventRowCount {
    min-width: 5.5rem;
}

.site-events-page #siteEventsColumnToggle {
    min-height: 2.2rem;
    padding: 0.32rem 0.9rem;
    font-size: 0.84rem;
    line-height: 1.2;
}

[data-bs-theme="dark"] .site-events-page #lotName {
    color-scheme: dark;
    color: var(--arcs-text);
    border-color: var(--arcs-border);
    background-color: var(--arcs-surface);
}

[data-bs-theme="dark"] .site-events-page #lotName option {
    color: var(--arcs-text);
    background-color: var(--arcs-surface);
}

.event-hero-toolbar .event-toolbar-action {
    min-width: 78px;
    min-height: 2.2rem;
    padding: 0.32rem 0.75rem;
    font-size: 0.84rem;
}

.event-count-card {
    width: 75%;
    max-width: 300px;
    margin-left: auto;
    overflow: hidden;
    color: var(--arcs-heading);
    background: linear-gradient(135deg, var(--arcs-surface) 0%, color-mix(in srgb, var(--arcs-surface) 88%, #eef3f8 12%) 100%);
}

[data-bs-theme="dark"] .event-count-card {
    color: #ffffff;
    background: linear-gradient(135deg, #1a2128 0%, #202931 100%);
}

.event-count-card .card-body {
    padding: 0.75rem;
}

.event-count-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.event-count-title {
    margin: 0;
    color: var(--arcs-heading);
    font-size: 0.95rem;
    font-weight: 700;
}

.event-count-refresh {
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 999px;
    border-color: var(--arcs-border);
    background: color-mix(in srgb, var(--arcs-surface-muted) 90%, #f5f7fa 10%);
    color: var(--arcs-heading);
    font-size: 0.82rem;
    line-height: 1;
}

.event-count-refresh:hover {
    border-color: color-mix(in srgb, var(--arcs-border) 70%, var(--arcs-accent) 30%);
    background: color-mix(in srgb, var(--arcs-surface-muted) 82%, #edf2f7 18%);
    color: var(--arcs-heading);
}

.event-count-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
}

.event-count-item {
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--arcs-border);
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--arcs-surface-muted) 84%, #ffffff 16%);
}

.event-count-item-label {
    display: block;
    color: var(--arcs-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.event-count-item-value {
    display: block;
    margin-top: 0.15rem;
    color: var(--arcs-heading);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.1;
}

[data-bs-theme="dark"] .event-count-title {
    color: #ffffff;
}

[data-bs-theme="dark"] .event-count-refresh {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

[data-bs-theme="dark"] .event-count-refresh:hover {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

[data-bs-theme="dark"] .event-count-item {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .event-count-item-label {
    color: rgba(255, 255, 255, 0.8);
}

[data-bs-theme="dark"] .event-count-item-value {
    color: #ffffff;
}

.event-results-shell {
    min-height: 12rem;
}

.event-table-card {
    overflow: hidden;
    border: 1px solid var(--arcs-border);
    background: var(--arcs-surface);
}

.event-table-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--arcs-border);
}

.event-site-table {
    margin-bottom: 0;
}

.event-site-table thead th {
    border-top: none;
    padding: 0.85rem 0.65rem;
    color: #ffffff;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.event-site-table tbody td {
    padding: 0.95rem 0.65rem;
    background: var(--arcs-surface);
    color: var(--arcs-text);
    vertical-align: middle;
}

.event-site-table .event-method-cell {
    text-align: center;
}

.event-site-table .event-method-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
    cursor: help;
}

.event-site-table tbody tr:hover td {
    background: var(--arcs-table-row-hover);
}

.event-status-active,
.app-table-shell .event-site-table tbody tr.event-status-active td,
.event-site-table tbody tr.event-status-active td,
.app-table-shell .event-site-table tbody tr.event-status-active:hover td,
.event-site-table tbody tr.event-status-active:hover td {
    color: #FFFFFF;
    background: #34495E;
}

.event-status-complete,
.app-table-shell .event-site-table tbody tr.event-status-complete td,
.event-site-table tbody tr.event-status-complete td,
.app-table-shell .event-site-table tbody tr.event-status-complete:hover td,
.event-site-table tbody tr.event-status-complete:hover td {
    color: #FFFFFF;
    background: #16A085;
}

[data-bs-theme="dark"] .event-status-active,
[data-bs-theme="dark"] .app-table-shell .event-site-table tbody tr.event-status-active td,
[data-bs-theme="dark"] .event-site-table tbody tr.event-status-active td {
    color: #f9eed1;
    background: #3b2f15;
}

[data-bs-theme="dark"] .event-status-complete,
[data-bs-theme="dark"] .app-table-shell .event-site-table tbody tr.event-status-complete td,
[data-bs-theme="dark"] .event-site-table tbody tr.event-status-complete td {
    color: #def8eb;
    background: #17382b;
}

.event-empty-state {
    padding: 2.75rem 1rem !important;
    color: var(--arcs-text-muted);
    font-size: 1rem;
    font-weight: 600;
}

.list-pagination-footer,
.event-table-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--arcs-border);
    background: var(--arcs-surface-alt);
}

.site-events-pagination-layout {
    min-width: 0;
}

.site-events-pagination-main {
    min-width: 0;
}

.site-events-pagination-summary {
    align-self: center;
    white-space: nowrap;
}

.site-events-pagination-size {
    justify-self: end;
}

.site-events-page .site-events-pagination-size .list-pagination-size-label {
    font-size: 0.76rem;
}

.site-events-page .site-events-pagination-size #eventRowCount {
    width: auto;
    min-width: 4.25rem;
    max-width: 4.25rem;
    padding-left: 0.65rem;
    padding-right: 1.9rem;
    text-align-last: left;
}

.event-table-footer .pagination {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .list-pagination-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .list-pagination-main,
    .list-pagination-controls {
        grid-column: auto;
        justify-self: stretch;
    }

    .list-pagination-controls {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .list-pagination-summary {
        white-space: normal;
    }
}

.site-events-page #myModal {
    display: none;
    position: fixed;
    z-index: 1080;
    padding-top: 100px;
    inset: 0;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.site-events-page #myModal .modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.site-events-page #myModal #caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    padding: 10px 0 0;
    color: #ccc;
    text-align: center;
}

.site-events-page #myModal .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    opacity: 1;
}

.site-events-page #myModal .close:hover,
.site-events-page #myModal .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* ==========================================================================
   Chart / Voucher / Search / Gate / Login / Error Pages
   ========================================================================== */

.chart-page .chart-heading,
.chart-page .chart-filter-card {
    width: min(calc(100% - 1.5rem), 980px);
}

.chart-page main.app-page-shell > .app-page-hero {
    width: min(calc(100% - 1.5rem), 1600px);
    margin: 0 auto 1rem;
}

.chart-page .chart-heading {
    margin-inline: auto;
}

.chart-page .chart-shell {
    width: min(calc(100% - 1.5rem), 980px);
    margin: 0 auto;
}

.chart-page .chart-canvas-shell {
    position: relative;
    width: 100%;
    height: clamp(16rem, 34vw, 20rem);
}

.voucher-page .voucher-hero,
.voucher-page .voucher-results,
.event-voucher-page .event-voucher-hero,
.event-voucher-page .event-voucher-results,
.closing-ticket-page .closing-ticket-hero,
.closing-ticket-page .closing-ticket-results,
.transaction-search-page .transaction-search-hero,
.transaction-search-page .transaction-search-results {
    padding-left: 0;
    padding-right: 0;
}

.voucher-title,
.event-voucher-title,
.closing-ticket-title,
.transaction-search-title {
    text-align: center;
}

.voucher-toolbar,
.event-voucher-primary-actions {
    justify-content: center;
    margin-bottom: 0.75rem;
}

.voucher-toolbar-inside {
    margin-left: 1in;
    margin-bottom: 0;
}

.voucher-search-form,
.closing-ticket-form,
.transaction-search-form {
    align-items: flex-end;
    justify-content: flex-start;
}

.voucher-search-form .form-group,
.closing-ticket-form .form-group,
.transaction-search-form .form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: min(100%, 15.5rem);
}

.voucher-search-form .form-group label,
.closing-ticket-form .form-group label,
.transaction-search-form .form-group label {
    width: 100%;
}

.voucher-search-form .form-group .form-control,
.voucher-search-form .form-group .form-select,
.closing-ticket-form .form-group .form-control,
.closing-ticket-form .form-group .form-select,
.transaction-search-form .form-group .form-control,
.transaction-search-form .form-group .form-select {
    width: 100%;
}

/* ==========================================================================
   Small Form Pages
   ========================================================================== */

.app-small-form-page {
    --app-small-form-shell-max-width: 1060px;
    --app-small-form-shell-inner-max-width: 980px;
    --app-small-form-bg-radial: transparent;
    --app-small-form-bg-start: var(--arcs-body-bg);
    --app-small-form-bg-end: var(--arcs-body-bg);
    --app-small-form-bg-falloff: 30%;
    --app-small-form-link: var(--arcs-accent);
    --app-small-form-link-hover: var(--arcs-heading);
    --app-small-form-card-bg: var(--arcs-surface);
    --app-small-form-card-border: var(--arcs-border);
    --app-small-form-card-shadow: var(--arcs-shadow);
    --app-small-form-header-bg: linear-gradient(180deg, var(--arcs-surface) 0%, color-mix(in srgb, var(--arcs-surface) 94%, var(--arcs-surface-muted) 6%) 100%);
    --app-small-form-header-border: var(--arcs-border);
    --app-small-form-title-color: var(--arcs-heading);
    --app-small-form-subtitle-color: var(--arcs-text-muted);
    --app-small-form-label-color: var(--arcs-text-muted);
    --app-small-form-addon-bg: var(--arcs-surface-muted);
    --app-small-form-addon-text: var(--arcs-text-muted);
    --app-small-form-control-bg: var(--arcs-surface);
    --app-small-form-control-border: var(--arcs-border);
    --app-small-form-alert-bg: color-mix(in srgb, var(--bs-danger, #dc3545) 14%, var(--arcs-surface) 86%);
    --app-small-form-alert-text: var(--bs-danger, #dc3545);
    --app-small-form-readonly-bg: var(--arcs-surface-muted);
    --app-small-form-primary-bg: var(--arcs-accent);
    --app-small-form-primary-hover-bg: color-mix(in srgb, var(--arcs-accent) 86%, #ffffff 14%);
    --app-small-form-primary-text: #ffffff;
    --app-small-form-primary-border: var(--arcs-accent);
    --app-small-form-primary-shadow: none;
    --app-small-form-secondary-bg: transparent;
    --app-small-form-secondary-hover-bg: color-mix(in srgb, var(--arcs-surface) 88%, var(--arcs-accent) 12%);
    --app-small-form-secondary-text: var(--arcs-text);
    --app-small-form-secondary-border: var(--arcs-border-strong);
    background:
        radial-gradient(circle at top, var(--app-small-form-bg-radial), transparent var(--app-small-form-bg-falloff)),
        linear-gradient(180deg, var(--app-small-form-bg-start) 0%, var(--app-small-form-bg-end) 100%);
}

[data-bs-theme="light"] .app-small-form-page {
    --app-small-form-card-bg: #f4f6f8;
}

.app-small-form-shell {
    width: min(calc(100% - 1.5rem), var(--app-small-form-shell-max-width));
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
}

.app-small-form-shell-inner {
    width: min(100%, var(--app-small-form-shell-inner-max-width));
    margin: 0 auto;
}

.app-small-form-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    color: var(--app-small-form-link);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-small-form-back-link:hover {
    color: var(--app-small-form-link-hover);
    text-decoration: none;
}

.app-small-form-card {
    overflow: hidden;
    border: 1px solid var(--app-small-form-card-border);
    border-radius: 1.5rem;
    background: var(--app-small-form-card-bg);
    color: var(--arcs-text);
    box-shadow: var(--app-small-form-card-shadow);
}

.app-small-form-header {
    padding: 1.65rem 1.6rem 1.4rem;
    background: var(--app-small-form-header-bg);
    border-bottom: 1px solid var(--app-small-form-header-border);
}

[data-bs-theme="light"] .app-small-form-header {
    background: #e8ebed;
}

.app-small-form-title {
    margin: 0 0 0.45rem;
    color: var(--app-small-form-title-color);
    font-family: var(--arcs-font-display);
    font-size: clamp(1.8rem, 1vw + 1.45rem, 2.25rem);
    font-weight: 700;
    line-height: 1.1;
}

.app-small-form-subtitle {
    max-width: 42rem;
    margin: 0;
    color: var(--app-small-form-subtitle-color);
    font-size: 0.96rem;
}

.app-small-form-body {
    padding: 1.55rem 1.6rem 1.85rem;
}

.app-small-form-alert {
    margin-bottom: 1.15rem;
    border: 0;
    border-radius: 1rem;
    background: var(--app-small-form-alert-bg);
    color: var(--app-small-form-alert-text);
}

.app-small-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem 1.05rem;
}

.app-small-form-field {
    min-width: 0;
    margin-bottom: 0;
}

.app-small-form-field .form-group {
    margin-bottom: 0;
}

.app-small-form-field-full {
    grid-column: 1 / -1;
}

.app-small-form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--app-small-form-label-color);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.app-small-form-grid .input-group-text {
    min-width: 2.9rem;
    justify-content: center;
    border-color: var(--app-small-form-control-border);
    color: var(--app-small-form-addon-text);
    background: var(--app-small-form-addon-bg);
}

.app-small-form-grid .app-form-icon-control {
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.app-small-form-grid .app-form-icon-control > .form-control,
.app-small-form-grid .app-form-icon-control > .form-select,
.app-small-form-grid .app-form-icon-control > .custom-select,
.app-small-form-grid .app-form-icon-control > .app-clearable-control > .form-control,
.app-small-form-grid .app-form-icon-control > .app-clearable-control > .form-select,
.app-small-form-grid .app-form-icon-control > .app-clearable-control > .custom-select {
    flex: 1 1 0%;
    width: auto;
    min-width: 0;
}

.app-small-form-grid .app-form-icon-addon {
    color: var(--app-form-icon-addon-text, var(--app-small-form-addon-text));
    background: var(--app-form-icon-addon-bg, var(--app-small-form-control-bg));
}

.app-small-form-grid .app-form-icon-addon .app-icon-input,
.app-small-form-grid .app-form-icon-addon .app-fa {
    width: 1rem;
    text-align: center;
}

.app-small-form-grid .form-control,
.app-small-form-grid .form-select,
.app-small-form-grid .custom-select {
    min-height: 3rem;
    border-color: var(--app-small-form-control-border);
    background-color: var(--app-small-form-control-bg);
}

.app-small-form-grid .form-control[readonly] {
    background-color: var(--app-small-form-readonly-bg);
    color: var(--arcs-text-muted);
}

.app-small-form-page .custom-select:focus,
.app-small-form-page .form-control:focus,
.app-small-form-page .form-select:focus {
    background-color: var(--app-small-form-control-bg);
}

.app-small-form-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.6rem;
}

.app-small-form-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 3.2rem;
    padding-inline: 1rem;
    font-weight: 600;
}

.app-small-form-action-btn.btn-dark {
    border-color: var(--app-small-form-primary-border);
    background: var(--app-small-form-primary-bg);
    color: var(--app-small-form-primary-text);
    box-shadow: var(--app-small-form-primary-shadow);
}

.app-small-form-action-btn.btn-dark:hover,
.app-small-form-action-btn.btn-dark:focus,
.app-small-form-action-btn.btn-dark:active {
    border-color: var(--app-small-form-primary-border);
    background: var(--app-small-form-primary-hover-bg);
    color: var(--app-small-form-primary-text);
}

.app-small-form-action-btn.btn-outline-dark {
    border-color: var(--app-small-form-secondary-border);
    background: var(--app-small-form-secondary-bg);
    color: var(--app-small-form-secondary-text);
}

.app-small-form-action-btn.btn-outline-dark:hover,
.app-small-form-action-btn.btn-outline-dark:focus,
.app-small-form-action-btn.btn-outline-dark:active {
    border-color: var(--app-small-form-secondary-border);
    background: var(--app-small-form-secondary-hover-bg);
    color: var(--app-small-form-secondary-text);
}

.app-small-form-action-btn:disabled {
    opacity: 0.65;
    box-shadow: none;
    cursor: not-allowed;
}

.fee-table-form-section {
    margin-top: 1.65rem;
    border: 1px solid var(--app-small-form-card-border);
    border-radius: 1rem;
    background: color-mix(in srgb, var(--app-small-form-card-bg) 90%, var(--app-small-form-addon-bg) 10%);
    overflow: hidden;
}

.fee-table-form-section[hidden] {
    display: none !important;
}

.fee-table-form-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--app-small-form-header-border);
    background: color-mix(in srgb, var(--app-small-form-card-bg) 86%, var(--app-small-form-addon-bg) 14%);
}

.fee-table-form-section-title {
    margin: 0;
    color: var(--app-small-form-title-color);
    font-size: 1rem;
    font-weight: 700;
}

.fee-table-form-section-subtitle {
    margin: 0.35rem 0 0;
    color: var(--app-small-form-subtitle-color);
    font-size: 0.92rem;
}

.fee-table-form-row-btn {
    width: auto;
    min-width: 9rem;
    padding-inline: 1.25rem;
    flex: 0 0 auto;
}

.fee-table-form-table-shell {
    padding: 0;
}

.fee-table-form-table {
    margin-bottom: 0;
    color: var(--arcs-text);
}

.fee-table-form-table thead th {
    border-bottom-color: var(--app-small-form-control-border);
    color: var(--app-small-form-label-color);
    background: color-mix(in srgb, var(--app-small-form-addon-bg) 82%, transparent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.fee-table-form-table td {
    padding: 0.85rem 0.9rem;
    vertical-align: middle;
    border-color: var(--app-small-form-control-border);
}

.fee-table-form-index-cell {
    width: 4rem;
    font-weight: 700;
    color: var(--app-small-form-title-color);
}

.fee-table-form-table .form-select,
.fee-table-form-table .form-control {
    border-color: var(--app-small-form-control-border);
    background-color: var(--app-small-form-control-bg);
}

.fee-table-form-table .input-group {
    flex-wrap: nowrap;
    min-width: 10rem;
}

.fee-table-form-table .input-group-text {
    min-width: 2.9rem;
    justify-content: center;
    border-color: var(--app-small-form-control-border);
    color: var(--app-small-form-addon-text);
    background: var(--app-small-form-addon-bg);
}

.fee-table-form-table .app-form-icon-addon .app-icon-input,
.fee-table-form-table .app-form-icon-addon .app-fa {
    width: 1rem;
    text-align: center;
}

.fee-table-form-action-cell {
    width: 8.5rem;
    white-space: nowrap;
}

.fee-table-form-remove-btn {
    width: 100%;
    min-width: 7rem;
}

@media (max-width: 767.98px) {
    .app-small-form-shell {
        width: calc(100% - 1rem);
        padding-top: 1rem;
        padding-bottom: 1.75rem;
    }

    .app-small-form-grid,
    .app-small-form-actions {
        grid-template-columns: 1fr;
    }

    .fee-table-form-section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .fee-table-form-row-btn {
        width: 100%;
    }

    .fee-table-form-table {
        min-width: 42rem;
    }

    .app-small-form-header,
    .app-small-form-body {
        padding-inline: 1.15rem;
    }
}

/* ==========================================================================
   Add Ticket Page
   ========================================================================== */

body.add-ticket-page {
    --app-small-form-bg-radial: rgba(176, 21, 37, 0.08);
    --app-small-form-bg-start: color-mix(in srgb, var(--arcs-body-bg) 92%, #ffffff 8%);
    --app-small-form-bg-end: color-mix(in srgb, var(--arcs-body-bg) 96%, #eef2f8 4%);
    --app-small-form-bg-falloff: 32%;
    --app-small-form-card-bg: rgba(255, 255, 255, 0.94);
    --app-small-form-card-border: color-mix(in srgb, var(--arcs-border) 82%, #eff3f8 18%);
    --app-small-form-card-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.08);
    --app-small-form-header-bg: linear-gradient(180deg, rgba(250, 251, 253, 0.98) 0%, rgba(244, 246, 249, 0.96) 100%);
    --app-small-form-header-border: color-mix(in srgb, var(--arcs-border) 78%, #eef2f8 22%);
    --app-small-form-title-color: var(--arcs-heading);
    --app-small-form-subtitle-color: #7a8594;
    --app-small-form-label-color: #6e7786;
    --app-small-form-addon-bg: color-mix(in srgb, var(--arcs-surface-muted) 76%, #eef2f8 24%);
    --app-small-form-addon-text: #7f8998;
    --app-small-form-control-bg: var(--arcs-surface);
    --app-small-form-alert-bg: #ffe0df;
    --app-small-form-alert-text: #8f1f28;
    --app-small-form-primary-bg: linear-gradient(135deg, #161d33 0%, #242d49 100%);
    --app-small-form-primary-hover-bg: linear-gradient(135deg, #1e2741 0%, #2f3958 100%);
    --app-small-form-primary-text: #ffffff;
    --app-small-form-primary-border: #1b2238;
    --app-small-form-primary-shadow: 0 0.95rem 2rem rgba(22, 29, 51, 0.2);
    --app-small-form-secondary-bg: rgba(255, 255, 255, 0.82);
    --app-small-form-secondary-hover-bg: rgba(250, 251, 253, 0.98);
    --app-small-form-secondary-text: #222c40;
    --app-small-form-secondary-border: color-mix(in srgb, var(--arcs-border-strong) 72%, #d9e0ea 28%);
}

[data-bs-theme="dark"] body.add-ticket-page {
    --app-small-form-bg-radial: rgba(244, 169, 178, 0.14);
    --app-small-form-bg-start: #0c1116;
    --app-small-form-bg-end: #131a21;
    --app-small-form-card-bg: rgba(20, 27, 32, 0.94);
    --app-small-form-card-border: rgba(65, 81, 93, 0.9);
    --app-small-form-card-shadow: 0 1.7rem 3.3rem rgba(0, 0, 0, 0.38);
    --app-small-form-header-bg: linear-gradient(180deg, rgba(26, 34, 41, 0.98) 0%, rgba(18, 24, 30, 0.95) 100%);
    --app-small-form-header-border: rgba(65, 81, 93, 0.92);
    --app-small-form-subtitle-color: #b0bcc6;
    --app-small-form-label-color: #c5d0da;
    --app-small-form-addon-bg: color-mix(in srgb, var(--arcs-surface-muted) 84%, #1f2a33 16%);
    --app-small-form-addon-text: #c3ccd8;
    --app-small-form-control-bg: var(--arcs-surface);
    --app-small-form-alert-bg: #3d2326;
    --app-small-form-alert-text: #ffb4bf;
    --app-small-form-primary-bg: linear-gradient(135deg, #d6dde6 0%, #edf2f7 100%);
    --app-small-form-primary-hover-bg: linear-gradient(135deg, #edf2f7 0%, #ffffff 100%);
    --app-small-form-primary-text: #111723;
    --app-small-form-primary-border: rgba(214, 221, 230, 0.64);
    --app-small-form-primary-shadow: 0 0.95rem 2rem rgba(0, 0, 0, 0.34);
    --app-small-form-secondary-bg: rgba(255, 255, 255, 0.03);
    --app-small-form-secondary-hover-bg: rgba(255, 255, 255, 0.07);
    --app-small-form-secondary-text: var(--arcs-text);
    --app-small-form-secondary-border: var(--arcs-border-strong);
}

.add-ticket-help {
    margin-top: 0.45rem;
    color: var(--arcs-text-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.app-small-form-page .app-small-form-field small,
.app-small-form-page .app-small-form-field p,
.app-small-form-page .app-small-form-field .text-danger {
    display: block;
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
    line-height: 1.35;
}

.app-small-form-page .app-small-form-field small,
.app-small-form-page .app-small-form-field p {
    color: var(--arcs-text-muted);
}

.app-small-form-page .app-small-form-field .text-danger,
.app-small-form-page .app-small-form-field .registration-error,
.app-small-form-page .app-small-form-field .invalid-feedback {
    color: var(--bs-danger, #dc3545);
    font-weight: 600;
}

.legacy-form-upgraded-page .app-small-form-grid .input-group > .input-group-text,
.legacy-form-upgraded-page .app-small-form-grid .input-group > .btn {
    min-height: 3rem;
}

.legacy-form-upgraded-page .app-small-form-grid .app-small-form-field,
.legacy-form-upgraded-page .app-small-form-grid .app-form-icon-control,
.legacy-form-upgraded-page .app-small-form-grid .form-control,
.legacy-form-upgraded-page .app-small-form-grid .form-select,
.legacy-form-upgraded-page .app-small-form-actions .app-small-form-action-btn {
    width: 100%;
    max-width: 100%;
}

.legacy-form-upgraded-page .app-small-form-grid .form-select {
    padding-right: 2.85rem;
    background-position: right 0.95rem center;
}

.add-ticket-datetimepicker {
    width: max-content;
    max-width: calc(100vw - 1rem);
    min-width: 0;
    right: auto;
}

.add-ticket-datetimepicker[style*="display: block"] {
    display: inline-block !important;
    width: auto !important;
}

.lot-time-datetimepicker {
    right: auto;
    background: #ffffff !important;
    border-color: #d0d7de !important;
    border-radius: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.lot-time-datetimepicker[style*="display: block"] {
    display: inline-block !important;
}

.lot-time-datetimepicker .xdsoft_timepicker {
    float: none;
}

.lot-time-datetimepicker .xdsoft_timepicker .xdsoft_prev,
.lot-time-datetimepicker .xdsoft_timepicker .xdsoft_next {
    margin-top: 0;
    margin-bottom: 0;
}

.lot-time-datetimepicker .xdsoft_time_box,
.lot-time-datetimepicker .xdsoft_time_box > div,
.lot-time-datetimepicker .xdsoft_time_box > div > div,
.lot-time-datetimepicker .xdsoft_scrollbar > .xdsoft_scroller {
    border-radius: 0 !important;
}

.lot-time-datetimepicker .xdsoft_time_box,
.lot-time-datetimepicker .xdsoft_time_box > div {
    background: #ffffff !important;
}

body.device-form-page {
    --app-small-form-title-color: #b01525;
}

[data-bs-theme="dark"] body.device-form-page {
    --app-small-form-title-color: #950606;
}

body.device-form-page .app-section-title {
    color: #b01525;
}

body.cardholder-form-page {
    --registration-switch-label: #2f3462;
    --registration-error: #c53a5a;
    --registration-toggle-border: #cad7e6;
    --registration-toggle-surface: #ffffff;
    --registration-toggle-enable: #2d9b57;
    --registration-toggle-enable-strong: #257f47;
    --registration-toggle-disable: #d94141;
    --registration-toggle-disable-strong: #b93333;
    --registration-toggle-active-text: #ffffff;
}

[data-bs-theme="dark"] body.cardholder-form-page {
    --registration-switch-label: #edf2f7;
    --registration-error: #ff99a5;
    --registration-toggle-border: rgba(125, 144, 160, 0.8);
    --registration-toggle-surface: rgba(255, 255, 255, 0.03);
    --registration-toggle-enable: #63cf8c;
    --registration-toggle-enable-strong: #4fb377;
    --registration-toggle-disable: #ff7b7b;
    --registration-toggle-disable-strong: #e76464;
    --registration-toggle-active-text: #09121d;
}

.lot-location-page .app-form-icon-addon .app-lot-capacity-icon {
    padding: 0;
    border: 0;
    font-size: 1rem;
    line-height: 1;
    color: inherit;
}

/* ==========================================================================
   Registration Page
   ========================================================================== */

body.registration-page {
    --app-small-form-bg-radial: rgba(107, 95, 246, 0.08);
    --app-small-form-bg-start: #f8f9ff;
    --app-small-form-bg-end: #eff2fb;
    --app-small-form-link: #6456ec;
    --app-small-form-link-hover: #4f43d7;
    --app-small-form-card-bg: rgba(255, 255, 255, 0.92);
    --app-small-form-card-border: rgba(106, 101, 216, 0.12);
    --app-small-form-card-shadow: 0 1.4rem 3rem rgba(64, 72, 107, 0.12);
    --app-small-form-header-bg: linear-gradient(180deg, rgba(245, 246, 255, 0.98) 0%, rgba(239, 241, 250, 0.92) 100%);
    --app-small-form-header-border: rgba(203, 210, 234, 0.85);
    --app-small-form-title-color: #27295a;
    --app-small-form-subtitle-color: #717792;
    --app-small-form-label-color: #636a85;
    --app-small-form-addon-bg: color-mix(in srgb, var(--arcs-surface) 90%, #eef2fb 10%);
    --app-small-form-addon-text: #7d86a2;
    --app-small-form-alert-bg: #ffe0df;
    --app-small-form-alert-text: #8f1f28;
    --app-small-form-readonly-bg: color-mix(in srgb, var(--arcs-surface-muted) 72%, #dce6ff 28%);
    --app-small-form-primary-bg: linear-gradient(135deg, #8a1520 0%, #b01525 100%);
    --app-small-form-primary-hover-bg: linear-gradient(135deg, #9e1825 0%, #c82434 100%);
    --app-small-form-primary-text: #ffffff;
    --app-small-form-primary-border: #7f111c;
    --app-small-form-primary-shadow: 0 0.85rem 1.75rem rgba(176, 21, 37, 0.24);
    --app-small-form-secondary-bg: rgba(255, 255, 255, 0.72);
    --app-small-form-secondary-hover-bg: rgba(255, 255, 255, 0.96);
    --app-small-form-secondary-text: #27314a;
    --app-small-form-secondary-border: rgba(106, 101, 216, 0.22);
    --registration-switch-label: #2f3462;
    --registration-error: #c53a5a;
    --registration-toggle-border: #cad7e6;
    --registration-toggle-surface: #ffffff;
    --registration-toggle-enable: #2d9b57;
    --registration-toggle-enable-strong: #257f47;
    --registration-toggle-disable: #d94141;
    --registration-toggle-disable-strong: #b93333;
    --registration-toggle-active-text: #ffffff;
}

[data-bs-theme="dark"] body.registration-page {
    --app-small-form-bg-radial: rgba(244, 169, 178, 0.16);
    --app-small-form-bg-start: #0b1015;
    --app-small-form-bg-end: #141c23;
    --app-small-form-link: #f4a9b2;
    --app-small-form-link-hover: #ffd4da;
    --app-small-form-card-bg: rgba(20, 27, 32, 0.92);
    --app-small-form-card-border: rgba(244, 169, 178, 0.18);
    --app-small-form-card-shadow: 0 1.6rem 3.4rem rgba(0, 0, 0, 0.38);
    --app-small-form-header-bg: linear-gradient(180deg, rgba(27, 36, 44, 0.98) 0%, rgba(18, 25, 31, 0.92) 100%);
    --app-small-form-header-border: rgba(65, 81, 93, 0.9);
    --app-small-form-title-color: #f3f6fa;
    --app-small-form-subtitle-color: #b0bcc6;
    --app-small-form-label-color: #c6d0d9;
    --app-small-form-addon-bg: color-mix(in srgb, var(--arcs-surface-muted) 86%, #1f2a33 14%);
    --app-small-form-addon-text: #c0cada;
    --app-small-form-alert-bg: #3d2326;
    --app-small-form-alert-text: #ffb4bf;
    --app-small-form-readonly-bg: color-mix(in srgb, var(--arcs-surface-muted) 84%, var(--arcs-accent) 16%);
    --app-small-form-primary-bg: linear-gradient(135deg, #f4a9b2 0%, #de8792 100%);
    --app-small-form-primary-hover-bg: linear-gradient(135deg, #ffd4da 0%, #f1b0b9 100%);
    --app-small-form-primary-text: #190a0d;
    --app-small-form-primary-border: rgba(244, 169, 178, 0.42);
    --app-small-form-primary-shadow: 0 0.85rem 1.75rem rgba(0, 0, 0, 0.32);
    --app-small-form-secondary-bg: rgba(255, 255, 255, 0.03);
    --app-small-form-secondary-hover-bg: rgba(244, 169, 178, 0.08);
    --app-small-form-secondary-text: var(--arcs-text);
    --app-small-form-secondary-border: var(--arcs-border-strong);
    --registration-switch-label: #edf2f7;
    --registration-error: #ff99a5;
    --registration-toggle-border: rgba(125, 144, 160, 0.8);
    --registration-toggle-surface: rgba(255, 255, 255, 0.03);
    --registration-toggle-enable: #63cf8c;
    --registration-toggle-enable-strong: #4fb377;
    --registration-toggle-disable: #ff7b7b;
    --registration-toggle-disable-strong: #e76464;
    --registration-toggle-active-text: #09121d;
}

.registration-switch-card {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--arcs-border);
    border-radius: 0.75rem;
    background: var(--arcs-surface);
}

.registration-switch-card .form-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.registration-switch-card .form-check-input {
    float: none;
    margin: 0;
    order: 2;
}

.registration-switch-card .form-check-label {
    color: var(--registration-switch-label);
    font-weight: 600;
}

.registration-status-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.registration-status-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.registration-status-toggle {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(7rem, 1fr));
    overflow: hidden;
    border: 1px solid var(--registration-toggle-border);
    border-radius: 0.55rem;
    background: var(--registration-toggle-surface);
}

.registration-status-option {
    min-width: 0;
    min-height: 3rem;
    padding: 0.7rem 1.1rem;
    border: 0;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.registration-status-option + .registration-status-option {
    border-left: 1px solid var(--registration-toggle-border);
}

.registration-status-option[data-enabled="true"] {
    color: var(--registration-toggle-enable);
}

.registration-status-option[data-enabled="false"] {
    color: var(--registration-toggle-disable);
}

.registration-status-option[data-enabled="true"].is-active {
    background: linear-gradient(180deg, var(--registration-toggle-enable) 0%, var(--registration-toggle-enable-strong) 100%);
    color: var(--registration-toggle-active-text);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.registration-status-option[data-enabled="false"].is-active {
    background: linear-gradient(180deg, var(--registration-toggle-disable) 0%, var(--registration-toggle-disable-strong) 100%);
    color: var(--registration-toggle-active-text);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.registration-status-toggle.is-invalid {
    border-color: var(--registration-error);
    box-shadow: 0 0 0 0.18rem color-mix(in srgb, var(--registration-error) 24%, transparent);
}

.registration-status-option:focus-visible {
    outline: 0;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.44);
}

.registration-error {
    margin: 0.45rem 0 0;
    color: var(--registration-error);
    font-size: 0.82rem;
    font-weight: 600;
}

.receipt-page .receipt-hero,
.receipt-page .receipt-results {
    padding-left: 0;
    padding-right: 0;
}

.receipt-search-form .receipt-search-field {
    flex: 0 0 12.5rem;
    width: min(100%, 12.5rem);
}

.receipt-search-form .receipt-search-field-wide {
    flex: 0 0 15rem;
    width: min(100%, 15rem);
}

.receipt-search-form .input-group {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

.receipt-search-form .input-group .form-control {
    width: 1%;
}

.receipt-search-form .input-group-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.receipt-search-form .receipt-search-actions {
    display: flex;
    align-items: flex-end;
}

.receipt-search-form {
    display: flex;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 0;
}

.receipt-search-form > .app-toolbar-field-gap-after {
    margin-inline-end: 0.875rem;
}

.receipt-search-form .receipt-search-actions {
    flex: 0 0 auto;
}

.receipt-search-form .receipt-search-actions .btn {
    min-width: 3rem;
}

@media (max-width: 1199.98px) {
    .receipt-search-form {
        flex-wrap: wrap;
    }
}

.receipt-results .app-table-shell {
    width: 100%;
    margin: 0 0 1rem;
}

.receipt-results .app-table-shell .table {
    min-width: 1600px;
}

.device-form-card .card-body,
.site-location-form-card .card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.device-form-card .row,
.site-location-form-card .row {
    row-gap: 0.75rem;
}

.device-form-card .form-group,
.site-location-form-card .form-group {
    margin-bottom: 0;
}

.device-form-card .form-control,
.device-form-card .form-select,
.site-location-form-card .form-control,
.site-location-form-card .form-select {
    width: 100%;
}

.device-form-card fieldset:last-child {
    margin-bottom: 0;
}

.device-form-actions,
.site-location-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.device-form-actions .btn {
    margin: 0 !important;
}

.device-form-switch-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-top: 0.75rem;
}

.device-form-switch-stack .custom-control {
    margin-bottom: 0;
}

.device-launch-stack {
    display: grid;
    gap: 1rem;
}

.device-launch-panel + .device-launch-panel {
    padding-top: 1rem;
    border-top: 1px solid var(--arcs-border);
}

.device-launch-title {
    margin: 0 0 0.75rem;
    color: var(--arcs-heading);
    font-family: var(--arcs-font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

.device-launch-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
}

.device-launch-field {
    flex: 1 1 20rem;
    min-width: min(100%, 20rem);
}

.device-launch-field label {
    width: 100%;
    margin-bottom: 0.35rem;
    color: var(--arcs-text-muted);
    font-weight: 600;
}

.device-launch-button {
    min-width: 12rem;
}

.device-list-page main.app-page-shell > .app-page-hero,
.site-location-list-page main.app-page-shell > .app-page-hero {
    width: min(calc(100% - 1.5rem), 1600px);
    margin: 0 auto 1rem;
}

.device-list-hero-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.device-list-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
    gap: 1rem;
    margin-top: auto;
}

.device-list-hero-actions .btn {
    margin: 0 !important;
}

.device-list-actions,
.site-location-list-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.device-list-actions .btn,
.site-location-list-actions .btn {
    margin: 0 !important;
}

.device-list-results .app-filter-card {
    width: 100%;
    margin: 0 0 1rem;
}

.device-list-results .app-table-shell,
.site-location-results .app-table-shell {
    width: 100%;
    margin: 0 0 1rem;
}

.main-device-list-page .app-table-shell .table {
    min-width: 1380px;
}

.sub-device-list-page .app-table-shell .table {
    min-width: 1500px;
}

.voucher-results .app-table-shell,
.event-voucher-results .app-table-shell,
.closing-ticket-results .app-table-shell,
.transaction-search-results .app-table-shell {
    width: 100%;
    margin: 0 0 1rem;
}

.voucher-results .app-table-shell .table {
    min-width: 1250px;
}

.event-voucher-results .app-table-shell .table {
    min-width: 1100px;
}

.closing-ticket-results .app-table-shell .table {
    min-width: 1180px;
}

.transaction-search-results .app-table-shell .table {
    min-width: 1100px;
}

.voucher-result-title,
.event-voucher-result-title,
.closing-ticket-result-title,
.transaction-search-result-title {
    margin-bottom: 0.75rem;
    color: var(--arcs-accent);
    font-family: var(--arcs-font-display);
    font-weight: 700;
}

.closing-ticket-actions {
    margin-bottom: 0.75rem;
}

.event-voucher-search-shell > .app-inline-search-shell {
    width: 100%;
}

.event-voucher-search-form {
    margin-bottom: 0;
}

.event-voucher-search-form .form-group {
    display: flex;
    flex: 0 1 14rem;
    flex-direction: column;
    align-items: flex-start;
    width: min(100%, 14rem);
}

.event-voucher-search-form label {
    width: 100%;
    margin-bottom: 0.35rem;
}

.event-voucher-search-form .form-control,
.event-voucher-search-form .form-select {
    width: 100%;
}

.event-voucher-search-form .event-voucher-primary-actions {
    justify-content: flex-start;
    margin-bottom: 0;
}

.event-voucher-actions-cell {
    min-width: 150px;
}

.event-voucher-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
}

.main-device-filter {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 0.75rem;
}

.main-device-filter-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 13rem;
    margin-bottom: 0;
}

.main-device-filter-group label {
    width: 100%;
    margin-bottom: 0.35rem;
}

.main-device-filter-group .form-control,
.main-device-filter-group .form-select {
    width: 100%;
}

.main-device-filter-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 0.75rem;
    margin-bottom: 0;
}

.main-device-filter-actions .btn,
.main-device-filter-actions .dropdown {
    margin: 0 !important;
}

.gate-controls-page {
    padding: 1rem 0 1.5rem;
}

.gate-controls-header {
    margin-bottom: 1rem;
    position: relative;
    justify-content: flex-end;
}

.gate-controls-header-copy {
    flex: 1 1 100%;
}

.gate-controls-title {
    margin: 0;
    color: var(--arcs-accent-dark);
    font-size: clamp(1.7rem, 2vw, 2.2rem);
    font-weight: 700;
}

.gate-controls-subtitle {
    margin: 0.2rem 0 0;
    color: var(--arcs-text-muted);
    font-size: 0.95rem;
}

.gate-control-toast-region {
    position: absolute;
    top: -0.85rem;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
    pointer-events: none;
}

.gate-control-toast {
    width: 100%;
    border: 1px solid var(--arcs-border);
    border-radius: 0.85rem;
    background: var(--arcs-surface);
    color: var(--arcs-text);
    box-shadow: var(--arcs-shadow);
    pointer-events: auto;
}

.gate-control-toast-header {
    border-bottom: 1px solid var(--arcs-border);
    background: var(--arcs-surface-muted);
    color: var(--arcs-heading);
}

.gate-control-toast.toast-success {
    border-color: color-mix(in srgb, var(--arcs-success) 45%, var(--arcs-border));
}

.gate-control-toast.toast-success .gate-control-toast-header {
    background: color-mix(in srgb, var(--arcs-success) 14%, var(--arcs-surface-muted));
}

.gate-control-toast.toast-danger {
    border-color: color-mix(in srgb, var(--arcs-danger) 45%, var(--arcs-border));
}

.gate-control-toast.toast-danger .gate-control-toast-header {
    background: color-mix(in srgb, var(--arcs-danger) 14%, var(--arcs-surface-muted));
}

.gate-control-toast .toast-body {
    font-size: 0.9rem;
    line-height: 1.35;
}

@media (min-width: 1200px) {
    .gate-control-toast-region {
        width: 25%;
        max-width: 25%;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .gate-control-toast-region {
        width: 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .gate-control-toast-region {
        width: 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    .gate-control-toast-region {
        width: min(100%, 22rem);
        max-width: calc(100% - 0.5rem);
    }
}

.gate-control-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--arcs-border);
    border-radius: 0.8rem;
    box-shadow: var(--arcs-shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.gate-control-card:hover {
    box-shadow: 0 0.55rem 1.2rem rgba(15, 23, 42, 0.1);
}

.gate-control-card.gate-control-selected {
    border-color: #0d6efd;
    background: color-mix(in srgb, var(--arcs-surface) 88%, #cfe2ff 12%);
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.14), 0 0.55rem 1.2rem rgba(15, 23, 42, 0.1);
}

.gate-control-card .card-header {
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid var(--arcs-border);
    background: linear-gradient(135deg, var(--arcs-surface-muted), color-mix(in srgb, var(--arcs-surface-muted) 86%, #eef3f8 14%));
}

.gate-control-name {
    margin: 0;
    color: var(--arcs-heading);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.25;
}

.gate-control-status {
    padding: 0.28rem 0.45rem;
    border: 1px solid #bfd7ff;
    background: #e7f1ff;
    color: #0b5ed7;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

[data-bs-theme="dark"] .gate-control-status {
    border-color: #244f89;
    background: #13253a;
    color: #8bb9ff;
}

.gate-control-card .card-body {
    padding: 0.75rem 0.85rem 0.85rem;
}

.gate-control-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.gate-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 4.8rem;
    padding: 0.4rem 0.35rem;
    border-radius: 0.7rem;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    gap: 0.28rem;
}

.gate-action-btn img {
    width: auto;
    height: 1.65rem;
    object-fit: contain;
}

.gate-action-btn:disabled,
.gate-action-btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.gate-action-btn span {
    line-height: 1.25;
    white-space: normal;
}

body.login-page {
    min-height: 100vh;
    color: #f8fafc;
    background:
        radial-gradient(circle at top, rgba(168, 30, 34, 0.3), transparent 30%),
        radial-gradient(circle at 82% 18%, rgba(168, 30, 34, 0.18), transparent 22%),
        linear-gradient(180deg, #140608 0%, #2b0c10 48%, #471115 100%);
}

.login-page .app-auth-page {
    min-height: 100vh;
    padding: 1.5rem 1rem;
}

.login-page .app-auth-container {
    width: min(100%, 72rem);
    min-height: calc(100vh - 3rem);
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.login-page .app-auth-showcase {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2.25rem;
    background: rgba(18, 7, 10, 0.78);
    box-shadow: 0 2.5rem 6.25rem rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.login-page .app-auth-showcase-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 32%),
        radial-gradient(circle at bottom right, rgba(168, 30, 34, 0.2), transparent 28%);
}

.login-page .app-auth-showcase-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 1.5rem;
}

.login-page .app-auth-showcase {
    align-self: center;
}

.login-page .app-auth-showcase-top,
.login-page .app-auth-copy-stack,
.login-page .app-auth-form-heading,
.login-page .app-auth-form-fields {
    display: grid;
}

.login-page .app-auth-showcase-top {
    gap: 0.75rem;
}

.login-page .app-auth-copy-stack {
    gap: 0.75rem;
}

.login-page .app-auth-brand-image {
    width: auto;
    max-width: 9rem;
    height: 3rem;
    object-fit: contain;
}

.login-page .app-auth-eyebrow {
    margin: 0;
    color: rgba(252, 211, 77, 0.82);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.login-page .app-auth-display {
    max-width: 36rem;
    margin: 0;
    color: #ffffff;
    font-family: var(--arcs-font-display);
    font-size: clamp(1.215rem, 2.15vw, 2.265rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.login-page .app-auth-summary {
    max-width: 42rem;
    margin: 0;
    color: #cbd5e1;
    font-size: 1.205rem;
    line-height: 1.68;
}

.login-page .app-auth-highlight-grid,
.login-page .app-auth-pillar-grid {
    display: grid;
    row-gap: 0.75rem;
    column-gap: 0.3rem;
    justify-content: start;
}

.login-page .app-auth-highlight-card,
.login-page .app-auth-pillar-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    min-width: 0;
}

.login-page .app-auth-highlight-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
}

.login-page .app-auth-highlight-card p {
    margin: 0;
    color: #e2e8f0;
    font-size: 1.055rem;
    line-height: 1.55;
}

.login-page .app-auth-pillar-card {
    background: rgba(255, 255, 255, 0.04);
    padding: 1.25rem;
}

.login-page .app-auth-pillar-eyebrow {
    margin: 0;
    color: #94a3b8;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.login-page .app-auth-pillar-title {
    margin: 0.5rem 0 0;
    color: #ffffff;
    font-size: 1.225rem;
    font-weight: 600;
}

.login-page .app-auth-pillar-copy {
    margin: 0.6rem 0 0;
    color: #cbd5e1;
    font-size: 1.055rem;
    line-height: 1.55;
}

.login-page .app-auth-form-shell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-page .app-auth-form-panel {
    width: min(100%, 32rem);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    background: rgba(16, 7, 10, 0.76);
    box-shadow: 0 1.9rem 5rem rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.login-page .app-auth-form-heading {
    gap: 0.5rem;
}

.login-page .app-auth-form-eyebrow {
    color: rgba(252, 211, 77, 0.82);
    font-size: 0.955rem;
}

.login-page .app-auth-form-title {
    margin: 0;
    color: #ffffff;
    font-family: var(--arcs-font-display);
    font-size: clamp(1.875rem, 1.325rem + 1.4vw, 2.425rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.login-page .app-auth-form-summary {
    margin: 0;
    color: #cbd5e1;
    font-size: 1.125rem;
    line-height: 1.55;
}

.login-page .app-auth-form-fields {
    gap: 1.25rem;
    margin-top: 2rem;
}

.login-page .app-auth-field {
    display: grid;
    gap: 0.5rem;
}

.login-page .app-auth-field-label {
    color: #f1f5f9;
    font-size: 1.155rem;
    font-weight: 500;
}

.login-page .app-auth-input.form-control {
    width: 100%;
    min-height: 3.5rem;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    font-size: 1.205rem;
}

.login-page .app-auth-input.form-control::placeholder {
    color: #94a3b8;
}

.login-page .app-auth-input.form-control:focus {
    border-color: rgba(251, 191, 36, 0.6);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 0.25rem rgba(251, 191, 36, 0.18);
}

.login-page .app-auth-input.form-control:-webkit-autofill,
.login-page .app-auth-input.form-control:-webkit-autofill:hover,
.login-page .app-auth-input.form-control:-webkit-autofill:focus,
.login-page .app-auth-input.form-control:-webkit-autofill:active {
    -webkit-text-fill-color: #f8fafc;
    caret-color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.1);
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.05) inset;
    box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.05) inset;
    transition: background-color 9999s ease-in-out 0s;
}

.login-page .app-auth-input.form-control:-moz-autofill {
    color: #f8fafc;
    box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.05) inset;
}

.login-page .app-auth-alert {
    padding: 0.95rem 1rem;
    border: 1px solid transparent;
    border-radius: 1rem;
}

.login-page .app-auth-alert-title {
    font-size: 1.155rem;
    font-weight: 600;
}

.login-page .app-auth-alert-message {
    margin: 0.15rem 0 0;
    font-size: 1.125rem;
    line-height: 1.5;
}

.login-page .app-auth-alert-error {
    border-color: rgba(244, 63, 94, 0.3);
    background: rgba(244, 63, 94, 0.1);
    color: #ffe4ea;
}

.login-page .app-auth-alert-info {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(56, 189, 248, 0.1);
    color: #dff6ff;
}

.login-page .app-auth-submit.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 3.5rem;
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, #f4ab18 0%, #ffc948 100%);
    color: #1f160a;
    font-size: 1.205rem;
    font-weight: 700;
    box-shadow: 0 1rem 2rem rgba(244, 171, 24, 0.22);
}

.login-page .app-auth-submit.btn:hover,
.login-page .app-auth-submit.btn:focus,
.login-page .app-auth-submit.btn:active {
    background: linear-gradient(135deg, #ffb82e 0%, #ffd76d 100%);
    color: #1f160a;
}

.login-page .app-auth-submit.btn:focus-visible {
    outline: 3px solid rgba(255, 214, 109, 0.85);
    outline-offset: 2px;
}

.login-page .app-auth-submit.btn:disabled {
    opacity: 0.72;
    box-shadow: none;
}

@media (min-width: 576px) {
    .login-page .app-auth-page {
        padding-inline: 1.5rem;
    }

    .login-page .app-auth-showcase-content,
    .login-page .app-auth-form-panel {
        padding: 2rem;
    }

    .login-page .app-auth-highlight-grid,
    .login-page .app-auth-pillar-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .login-page .app-auth-page {
        padding-inline: 2rem;
    }

    .login-page .app-auth-container {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    }

    .login-page .app-auth-showcase-content {
        padding: 2.5rem;
    }
}

@media (min-width: 1200px) {
    .login-page .app-auth-highlight-grid,
    .login-page .app-auth-pillar-grid {
        width: fit-content;
        max-width: 100%;
    }

    .login-page .app-auth-highlight-grid {
        grid-template-columns: repeat(3, minmax(11.8rem, 12.2rem));
    }

    .login-page .app-auth-pillar-grid {
        grid-template-columns: repeat(3, minmax(11.8rem, 12.2rem));
    }
}

@media (max-width: 576px) {
    .login-page .app-auth-display {
        font-size: clamp(0.915rem, 6.1vw, 1.715rem);
    }
}

body.page-error {
    background: color-mix(in srgb, var(--arcs-accent) 18%, var(--arcs-body-bg) 82%);
}

body.page-error .page-error-shell {
    width: min(calc(100% - 1.5rem), 720px);
    margin: 120px auto;
}

body.page-error .page-error-card {
    padding: 1.75rem;
    border: 1px solid var(--arcs-border);
    border-radius: 1rem;
    background: var(--arcs-surface);
    box-shadow: var(--arcs-shadow);
}

body.page-error .page-error-card > * + * {
    margin-top: 0.9rem;
}

body.page-error .page-error-title {
    margin: 0;
    color: var(--arcs-heading);
    font-family: var(--arcs-font-display);
    font-weight: 700;
}

body.page-error .page-error-message {
    color: var(--arcs-text-muted);
}

