/**
 * Universal admin + customer panel UI.
 * Shared typography, tables, toolbars, buttons, modals, spacing.
 * Does not restyle unique module canvases (availability slots, coupon progress, booking sheet).
 */

body.admin-panel-shell,
body.customer-portal-shell {
    /* Theme = Payment Verification brand green. All modules share this. */
    --ui-ink: #17221a;
    --ui-muted: #6b776e;
    --ui-line: rgba(47, 148, 13, .14);
    --ui-surface: #fff;
    --ui-soft: #f3f8ef;
    --ui-green: #2f940d;
    --ui-green-deep: #1f6908;
    --ui-green-mid: #37a20f;
    --ui-green-bright: #57c21d;
    --ui-green-soft: #e8f6db;
    --ui-hero-gradient:
        radial-gradient(120% 90% at 85% 120%, rgba(255, 255, 255, .16), transparent 55%),
        radial-gradient(80% 70% at -10% -20%, rgba(255, 255, 255, .12), transparent 50%),
        linear-gradient(118deg, #2f940d 0%, #37a20f 52%, #57c21d 100%);
    --ui-hero-shadow: 0 12px 28px rgba(47, 148, 13, .22);
    --ui-amber: #b54708;
    --ui-red: #b42318;
    --ui-blue: #175cd3;
    --ui-radius: 12px;
    --ui-radius-sm: 8px;
    --ui-radius-lg: 18px;
    --ui-font: 'Inter', system-ui, -apple-system, sans-serif;
    --ui-heading: 'Outfit', 'Inter', sans-serif;
    --ui-text: .875rem;
    --ui-text-sm: .8125rem;
    --ui-label: .8125rem;
    --ui-meta: .6875rem;
    --ui-title: 1.35rem;
    --ui-btn-h: 2.15rem;
    --ui-btn-px: .85rem;
    --ui-space-1: .25rem;
    --ui-space-2: .5rem;
    --ui-space-3: .75rem;
    --ui-space-4: 1rem;
    --ui-space-5: 1.25rem;
    --ui-space-6: 1.5rem;
    --ui-space-8: 2rem;
    --ui-page-pad-x: clamp(.85rem, 2.5vw, 1.5rem);
    --ui-dock-h: 4.35rem;
    --admin-ink: var(--ui-ink);
    --admin-muted: var(--ui-muted);
    --admin-line: var(--ui-line);
    --admin-surface: var(--ui-surface);
    --admin-green: var(--ui-green);
    --admin-green-dark: var(--ui-green-deep);
    --admin-green-soft: var(--ui-green-soft);
    --console-green: var(--ui-green);
    --console-green-deep: var(--ui-green-deep);
    --console-line: var(--ui-line);
    --ms-green: var(--ui-green);
    --ms-green-mid: var(--ui-green-mid);
    --ms-green-bright: var(--ui-green-bright);
    --ms-green-soft: var(--ui-green-soft);
    --ms-green-line: var(--ui-line);
    --ms-ink: var(--ui-ink);
    --ms-muted: var(--ui-muted);
    color: var(--ui-ink);
    font-family: var(--ui-font);
    font-size: var(--ui-text);
    line-height: 1.5;
}

body.admin-panel-shell .admin-page,
body.admin-panel-shell .dashboard-content,
body.customer-portal-shell .admin-page,
body.customer-portal-shell .dashboard-content {
    max-width: 100%;
    overflow-x: visible;
}

body.admin-panel-shell,
body.admin-panel-shell button,
body.admin-panel-shell input,
body.admin-panel-shell select,
body.admin-panel-shell textarea,
body.admin-panel-shell .btn,
body.admin-panel-shell .form-control,
body.admin-panel-shell .form-select,
body.admin-panel-shell .badge,
body.admin-panel-shell .table,
body.customer-portal-shell,
body.customer-portal-shell button,
body.customer-portal-shell input,
body.customer-portal-shell select,
body.customer-portal-shell textarea,
body.customer-portal-shell .btn,
body.customer-portal-shell .form-control,
body.customer-portal-shell .form-select,
body.customer-portal-shell .badge,
body.customer-portal-shell .table {
    font-family: var(--ui-font) !important;
}

body.admin-panel-shell h1,
body.admin-panel-shell h2,
body.admin-panel-shell h3,
body.admin-panel-shell h4,
body.admin-panel-shell h5,
body.admin-panel-shell h6,
body.admin-panel-shell .admin-page-title,
body.customer-portal-shell h1,
body.customer-portal-shell h2,
body.customer-portal-shell h3,
body.customer-portal-shell h4,
body.customer-portal-shell h5,
body.customer-portal-shell h6,
body.customer-portal-shell .admin-page-title {
    font-family: var(--ui-heading) !important;
    letter-spacing: -.02em;
}

/* Keep Font Awesome icons intact when buttons/tables force Inter with !important */
body.admin-panel-shell .fa,
body.admin-panel-shell .fas,
body.admin-panel-shell .far,
body.admin-panel-shell .fal,
body.admin-panel-shell .fat,
body.admin-panel-shell .fad,
body.admin-panel-shell .fa-solid,
body.admin-panel-shell .fa-regular,
body.admin-panel-shell .fa-light,
body.admin-panel-shell .fa-thin,
body.admin-panel-shell .fa-duotone,
body.customer-portal-shell .fa,
body.customer-portal-shell .fas,
body.customer-portal-shell .far,
body.customer-portal-shell .fal,
body.customer-portal-shell .fat,
body.customer-portal-shell .fad,
body.customer-portal-shell .fa-solid,
body.customer-portal-shell .fa-regular,
body.customer-portal-shell .fa-light,
body.customer-portal-shell .fa-thin,
body.customer-portal-shell .fa-duotone {
    font-family: "Font Awesome 6 Free" !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.admin-panel-shell .fa-solid,
body.admin-panel-shell .fas,
body.customer-portal-shell .fa-solid,
body.customer-portal-shell .fas {
    font-weight: 900 !important;
}

body.admin-panel-shell .fa-regular,
body.admin-panel-shell .far,
body.customer-portal-shell .fa-regular,
body.customer-portal-shell .far {
    font-weight: 400 !important;
}

body.admin-panel-shell .fab,
body.admin-panel-shell .fa-brands,
body.customer-portal-shell .fab,
body.customer-portal-shell .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 1 !important;
}

body.admin-panel-shell .ms-title-caps,
body.customer-portal-shell .ms-title-caps {
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Module heading + add buttons: one row, title left, actions right */
body.admin-panel-shell .admin-page-header {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .55rem .75rem;
    width: 100%;
    min-width: 0;
    overflow: visible !important;
    margin: 0 0 1rem !important;
    padding: 0 0 .8rem !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ui-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    min-height: 2.5rem;
}

body.admin-panel-shell .admin-page-title {
    flex: 1 1 0;
    min-width: 0;
    margin: 0 !important;
    padding: 0;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    line-height: 36px !important;
    color: var(--ui-ink) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.admin-panel-shell .admin-page-actions {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    align-self: center;
    gap: .4rem !important;
    margin: 0 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    overflow: visible !important;
}

body.admin-panel-shell .admin-page-actions>.d-flex,
body.admin-panel-shell .admin-page-actions>form {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: .4rem !important;
    margin: 0 !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
}

body.admin-panel-shell .admin-page-actions .btn,
body.admin-panel-shell .admin-page-actions .btn-sm,
body.admin-panel-shell .admin-page-actions a.btn,
body.admin-panel-shell .admin-page-actions button.btn {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    overflow: visible !important;
    border-width: 1px !important;
    border-style: solid !important;
    font-size: .82rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-overflow: unset !important;
    vertical-align: middle;
    gap: .4rem;
}

body.admin-panel-shell .admin-page-actions .btn-fill-green {
    border-color: var(--ui-green) !important;
}

body.admin-panel-shell .admin-page-actions .btn:not(.rounded-pill) {
    border-radius: 8px !important;
}

body.customer-portal-shell .admin-page-header {
    align-items: center !important;
}

body.customer-portal-shell .admin-page-actions {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: .4rem !important;
    margin: 0 !important;
}

body.customer-portal-shell .admin-page-actions .btn,
body.customer-portal-shell .admin-page-actions .btn-sm,
body.customer-portal-shell .admin-page-actions a.btn,
body.customer-portal-shell .admin-page-actions button.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    font-size: .82rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    gap: .4rem;
}

body.admin-panel-shell .admin-page-actions .btn i,
body.admin-panel-shell .admin-page-actions .btn .fa-solid,
body.admin-panel-shell .admin-page-actions .btn .fa-regular {
    margin: 0 !important;
    width: 14px;
    font-size: .85rem !important;
    line-height: 1 !important;
    text-align: center;
}

body.admin-panel-shell .admin-page-actions .btn.admin-header-icon-btn {
    width: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
}

body.customer-portal-shell .admin-page-title {
    font-size: var(--ui-title) !important;
    font-weight: 800 !important;
    line-height: 1.25;
}

body.admin-panel-shell .text-secondary,
body.admin-panel-shell .text-muted,
body.customer-portal-shell .text-secondary,
body.customer-portal-shell .text-muted {
    color: var(--ui-muted) !important;
}

body.admin-panel-shell .admin-data-table .small,
body.customer-portal-shell .admin-data-table .small,
body.admin-panel-shell .table .small,
body.customer-portal-shell .table .small {
    font-size: var(--ui-text-sm);
}

/* Cards */
body.admin-panel-shell .card-glass,
body.customer-portal-shell .card-glass {
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius);
    background: var(--ui-surface);
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}

body.admin-panel-shell .admin-list-card,
body.customer-portal-shell .admin-list-card {
    padding: 1rem 1.05rem !important;
    margin-bottom: .9rem;
}

body.admin-panel-shell .admin-list-card-head,
body.customer-portal-shell .admin-list-card-head {
    display: flex;
    align-items: center !important;
    justify-content: space-between;
    gap: .65rem;
    margin-bottom: .7rem;
    min-height: 1.85rem;
}

body.admin-panel-shell .admin-list-card-head h6,
body.customer-portal-shell .admin-list-card-head h6 {
    margin: 0;
    font-size: 1rem !important;
    font-weight: 800;
    color: var(--ui-ink);
}

body.admin-panel-shell .admin-mini-chip,
body.customer-portal-shell .admin-mini-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: .15rem .5rem;
    border-radius: 999px;
    background: #edf8e6;
    color: var(--ui-green);
    font-size: var(--ui-text-sm);
    font-weight: 750;
}

/* Filters / search — no extra card; tabs left, search right, one row */
body.admin-panel-shell .tournaments-toolbar,
body.customer-portal-shell .tournaments-toolbar,
body.admin-panel-shell .admin-list-toolbar,
body.customer-portal-shell .admin-list-toolbar,
body.admin-panel-shell .card-glass.tournaments-toolbar,
body.admin-panel-shell .card-glass.admin-list-toolbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center !important;
    column-gap: .75rem;
    row-gap: 0;
    width: 100%;
    margin: 0 0 .75rem !important;
    padding: 0 0 .75rem !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

body.admin-panel-shell .admin-list-card>.tournaments-toolbar,
body.admin-panel-shell .admin-list-card>.admin-list-toolbar,
body.customer-portal-shell .admin-list-card>.tournaments-toolbar {
    border-bottom: 1px solid var(--ui-line) !important;
}

body.admin-panel-shell .tournaments-toolbar-filters,
body.customer-portal-shell .tournaments-toolbar-filters,
body.admin-panel-shell .admin-list-toolbar-filters,
body.customer-portal-shell .admin-list-toolbar-filters {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: .4rem;
    min-width: 0;
    grid-column: 1;
    margin: 0 !important;
}

body.admin-panel-shell .tournaments-toolbar-search,
body.customer-portal-shell .tournaments-toolbar-search,
body.admin-panel-shell .admin-list-toolbar-search,
body.customer-portal-shell .admin-list-toolbar-search,
body.admin-panel-shell .admin-list-toolbar>form {
    display: flex !important;
    flex-direction: row;
    align-items: center !important;
    justify-content: flex-end !important;
    grid-column: 2;
    width: 240px !important;
    max-width: 240px !important;
    margin: 0 !important;
    min-width: 0;
}

body.admin-panel-shell .tournaments-toolbar-search .input-group,
body.customer-portal-shell .tournaments-toolbar-search .input-group,
body.admin-panel-shell .admin-list-toolbar .input-group,
body.customer-portal-shell .admin-list-toolbar .input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100%;
    height: 36px;
    margin: 0 !important;
}

body.admin-panel-shell .tournaments-toolbar-filters .btn,
body.admin-panel-shell .admin-list-toolbar-filters .btn,
body.customer-portal-shell .tournaments-toolbar-filters .btn,
body.customer-portal-shell .admin-list-toolbar-filters .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 .85rem !important;
    margin: 0 !important;
    border-radius: 8px !important;
    font-size: .82rem !important;
    line-height: 1 !important;
}

body.admin-panel-shell .tournaments-toolbar-search .form-control,
body.admin-panel-shell .tournaments-toolbar-search .form-control-sm,
body.customer-portal-shell .tournaments-toolbar-search .form-control,
body.admin-panel-shell .admin-list-toolbar .form-control,
body.admin-panel-shell .admin-list-toolbar .form-control-sm,
body.customer-portal-shell .admin-list-toolbar .form-control {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    padding: 0 .75rem !important;
    border-radius: 8px 0 0 8px !important;
    font-size: .82rem !important;
    line-height: 1 !important;
}

body.admin-panel-shell .tournaments-toolbar-search .btn,
body.customer-portal-shell .tournaments-toolbar-search .btn,
body.admin-panel-shell .admin-list-toolbar .input-group .btn,
body.admin-panel-shell .admin-list-toolbar .input-group-text,
body.customer-portal-shell .admin-list-toolbar .input-group .btn,
body.customer-portal-shell .admin-list-toolbar .input-group-text {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 8px 8px 0 !important;
    line-height: 1 !important;
}

body.admin-panel-shell .form-control,
body.admin-panel-shell .form-select,
body.admin-panel-shell .form-glass,
body.customer-portal-shell .form-control,
body.customer-portal-shell .form-select,
body.customer-portal-shell .form-glass {
    min-height: 2.35rem;
    font-size: var(--ui-text) !important;
    color: var(--ui-ink);
    border-radius: 10px;
}

body.admin-panel-shell .input-group-text,
body.customer-portal-shell .input-group-text {
    background: #f3f6ef;
    border-color: rgba(18, 30, 20, .12);
    color: var(--ui-muted);
    font-size: var(--ui-text);
}

body.admin-panel-shell .input-group-text.bg-dark,
body.admin-panel-shell .input-group-text.text-secondary,
body.customer-portal-shell .input-group-text.bg-dark {
    background: #f3f6ef !important;
    color: var(--ui-muted) !important;
    border-color: rgba(18, 30, 20, .12) !important;
}

body.admin-panel-shell .admin-data-table th.text-start,
body.admin-panel-shell .admin-data-table td.text-start,
body.customer-portal-shell .admin-data-table th.text-start,
body.customer-portal-shell .admin-data-table td.text-start {
    text-align: left;
}

body.admin-panel-shell .form-control-sm,
body.admin-panel-shell .form-select-sm,
body.customer-portal-shell .form-control-sm,
body.customer-portal-shell .form-select-sm {
    min-height: 2.15rem;
    font-size: var(--ui-text-sm) !important;
}

body.admin-panel-shell .form-label,
body.customer-portal-shell .form-label {
    font-size: var(--ui-label) !important;
    font-weight: 650;
    color: var(--ui-muted);
    margin-bottom: .3rem;
}

/* Buttons — shared size, padding, border, color theory */
body.admin-panel-shell .btn,
body.customer-portal-shell .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: var(--ui-btn-h);
    padding: .38rem var(--ui-btn-px);
    border-width: 1px;
    border-style: solid;
    border-radius: var(--ui-radius-sm);
    font-family: var(--ui-font) !important;
    font-size: var(--ui-text-sm);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    box-shadow: none;
}

body.admin-panel-shell .btn-fill-green,
body.admin-panel-shell .btn-neon-green,
body.customer-portal-shell .btn-fill-green,
body.customer-portal-shell .btn-neon-green {
    min-height: var(--ui-btn-h) !important;
    padding: .38rem var(--ui-btn-px) !important;
    border-radius: var(--ui-radius-sm) !important;
    border-color: var(--ui-green) !important;
    background: var(--ui-green) !important;
    color: #fff !important;
    font-size: var(--ui-text-sm) !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
}

body.admin-panel-shell .btn-fill-green:hover,
body.admin-panel-shell .btn-neon-green:hover,
body.customer-portal-shell .btn-fill-green:hover,
body.customer-portal-shell .btn-neon-green:hover {
    background: var(--ui-green-deep) !important;
    border-color: var(--ui-green-deep) !important;
    color: #fff !important;
    transform: none !important;
    box-shadow: none !important;
}

body.admin-panel-shell .btn-outline-secondary,
body.admin-panel-shell .btn-outline-success,
body.admin-panel-shell .btn-outline-warning,
body.admin-panel-shell .btn-outline-danger,
body.admin-panel-shell .btn-outline-primary,
body.customer-portal-shell .btn-outline-secondary,
body.customer-portal-shell .btn-outline-success {
    min-height: var(--ui-btn-h) !important;
    padding: .35rem .8rem !important;
    border-radius: var(--ui-radius-sm) !important;
    font-size: var(--ui-text-sm) !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
}

body.admin-panel-shell .btn-outline-secondary,
body.customer-portal-shell .btn-outline-secondary {
    border-color: var(--ui-line) !important;
    background: #fff !important;
    color: var(--ui-ink) !important;
}

body.admin-panel-shell .btn-outline-secondary:hover,
body.customer-portal-shell .btn-outline-secondary:hover {
    border-color: rgba(31, 111, 9, .28) !important;
    background: var(--ui-green-soft) !important;
    color: var(--ui-green) !important;
}

body.admin-panel-shell .btn-outline-success,
body.customer-portal-shell .btn-outline-success {
    border-color: rgba(31, 111, 9, .28) !important;
    background: #fff !important;
    color: var(--ui-green) !important;
}

body.admin-panel-shell .btn-sm,
body.customer-portal-shell .btn-sm {
    min-height: 1.95rem !important;
    padding: .28rem .65rem !important;
    font-size: var(--ui-text-sm) !important;
    border-radius: var(--ui-radius-sm) !important;
}

/* Tables */
body.admin-panel-shell .admin-table-wrap,
body.admin-panel-shell .table-responsive,
body.customer-portal-shell .admin-table-wrap,
body.customer-portal-shell .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.admin-panel-shell .admin-data-table,
body.admin-panel-shell .table,
body.customer-portal-shell .admin-data-table,
body.customer-portal-shell .table {
    width: 100%;
    margin-bottom: 0;
    color: var(--ui-ink);
}

body.admin-panel-shell .admin-data-table thead th,
body.admin-panel-shell .table thead th,
body.customer-portal-shell .admin-data-table thead th,
body.customer-portal-shell .table thead th {
    font-size: var(--ui-text-sm) !important;
    font-weight: 750 !important;
    letter-spacing: .03em;
    text-transform: none;
    text-align: left;
    color: #374151 !important;
    background: var(--ui-soft) !important;
    padding: .65rem .75rem !important;
    white-space: nowrap;
    vertical-align: middle;
    border-bottom: 1px solid var(--ui-line) !important;
}

body.admin-panel-shell .admin-data-table tbody td,
body.admin-panel-shell .table tbody td,
body.customer-portal-shell .admin-data-table tbody td,
body.customer-portal-shell .table tbody td {
    font-size: var(--ui-text);
    color: var(--ui-ink);
    padding: .65rem .75rem !important;
    vertical-align: middle !important;
    border-color: rgba(18, 30, 20, .07) !important;
}

body.admin-panel-shell .table tbody td.text-secondary,
body.admin-panel-shell .table tbody td .text-secondary,
body.admin-panel-shell .table tbody td.text-muted,
body.admin-panel-shell .table tbody td .text-muted,
body.customer-portal-shell .table tbody td.text-secondary,
body.customer-portal-shell .table tbody td .text-secondary,
body.customer-portal-shell .table tbody td.text-muted,
body.customer-portal-shell .table tbody td .text-muted {
    color: var(--ui-muted) !important;
}

body.admin-panel-shell .table tbody td.text-success,
body.admin-panel-shell .table tbody td .text-success,
body.customer-portal-shell .table tbody td.text-success,
body.customer-portal-shell .table tbody td .text-success {
    color: var(--ui-green) !important;
}

body.admin-panel-shell .table tbody td .text-white,
body.admin-panel-shell .table tbody td.text-white,
body.customer-portal-shell .table tbody td .text-white {
    color: var(--ui-ink) !important;
}

body.admin-panel-shell .admin-data-table th.text-end,
body.admin-panel-shell .admin-data-table td.text-end,
body.customer-portal-shell .admin-data-table th.text-end,
body.customer-portal-shell .admin-data-table td.text-end {
    width: 1%;
    white-space: nowrap;
    text-align: right !important;
    vertical-align: middle !important;
    padding-right: .75rem !important;
}

body.admin-panel-shell .admin-data-table td.text-end .btn:not(.admin-icon-btn-sm),
body.customer-portal-shell .admin-data-table td.text-end .btn:not(.admin-icon-btn-sm) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 0 .85rem !important;
    margin: 0 !important;
    border-radius: 8px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

body.customer-portal-shell .input-group>.btn.copy-btn,
body.customer-portal-shell .input-group>.copy-btn {
    width: auto !important;
    min-width: 4.75rem !important;
    padding: 0 .9rem !important;
    height: auto !important;
    font-size: .82rem !important;
    font-weight: 700 !important;
}

body.admin-panel-shell .admin-row-actions,
body.customer-portal-shell .admin-row-actions {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: .28rem !important;
    width: max-content !important;
    max-width: none !important;
    white-space: nowrap !important;
}

body.admin-panel-shell .admin-row-actions form,
body.customer-portal-shell .admin-row-actions form {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
}

body.admin-panel-shell .admin-icon-btn-sm,
body.customer-portal-shell .admin-icon-btn-sm {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 1.85rem;
    height: 1.85rem;
    min-width: 1.85rem;
    min-height: 1.85rem;
    padding: 0;
    border: 1px solid rgba(18, 30, 20, .12);
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: .78rem;
    line-height: 1;
    text-decoration: none;
}

body.admin-panel-shell .admin-icon-btn-sm:hover,
body.customer-portal-shell .admin-icon-btn-sm:hover {
    background: #f3f6ef;
    border-color: rgba(47, 148, 13, .28);
    color: var(--ui-green);
}

body.admin-panel-shell .admin-icon-btn-sm.is-danger,
body.customer-portal-shell .admin-icon-btn-sm.is-danger {
    color: #b42318;
}

body.admin-panel-shell .admin-icon-btn-sm.is-success,
body.customer-portal-shell .admin-icon-btn-sm.is-success {
    color: var(--ui-green);
}

body.admin-panel-shell .admin-icon-btn-sm.is-warning,
body.customer-portal-shell .admin-icon-btn-sm.is-warning {
    color: #b54708;
}

/* Clickable table rows that open the same details modal as the View icon */
body.admin-panel-shell tr.is-details-row,
body.customer-portal-shell tr.is-details-row,
body.admin-panel-shell tr[data-open-modal],
body.customer-portal-shell tr[data-open-modal] {
    cursor: pointer;
}

body.admin-panel-shell tr.is-details-row:hover>*,
body.customer-portal-shell tr.is-details-row:hover>*,
body.admin-panel-shell tr[data-open-modal]:hover>*,
body.customer-portal-shell tr[data-open-modal]:hover>* {
    background-color: rgba(47, 148, 13, 0.06);
}

body.admin-panel-shell tr.is-details-row:focus-visible,
body.customer-portal-shell tr.is-details-row:focus-visible {
    outline: 2px solid var(--ui-green);
    outline-offset: -2px;
}

body.admin-panel-shell .admin-data-table .badge,
body.customer-portal-shell .admin-data-table .badge,
body.admin-panel-shell .badge-active,
body.admin-panel-shell .badge-inactive {
    font-size: var(--ui-text-sm) !important;
    font-weight: 700;
    padding: .22rem .48rem;
    border-radius: 6px;
}

/* Modals */
body.admin-panel-shell .modal-dialog.modal-dialog-scrollable,
body.customer-portal-shell .modal-dialog.modal-dialog-scrollable {
    max-height: calc(100dvh - 2rem);
}

body.admin-panel-shell .modal-dialog.modal-dialog-scrollable .modal-content,
body.customer-portal-shell .modal-dialog.modal-dialog-scrollable .modal-content {
    max-height: calc(100dvh - 2rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.admin-panel-shell .modal-dialog.modal-dialog-scrollable .modal-content > form,
body.customer-portal-shell .modal-dialog.modal-dialog-scrollable .modal-content > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

body.admin-panel-shell .modal-dialog.modal-dialog-scrollable .modal-body,
body.customer-portal-shell .modal-dialog.modal-dialog-scrollable .modal-body {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    flex: 1 1 auto;
    min-height: 0;
}

body.admin-panel-shell .modal-content,
body.customer-portal-shell .modal-content {
    border: 1px solid var(--ui-line);
    border-radius: 14px;
    color: var(--ui-ink);
}

body.admin-panel-shell .modal-title,
body.customer-portal-shell .modal-title {
    font-family: var(--ui-heading) !important;
    font-size: 1.05rem !important;
    font-weight: 800;
    color: var(--ui-ink);
}

body.admin-panel-shell .modal-header,
body.admin-panel-shell .modal-footer,
body.customer-portal-shell .modal-header,
body.customer-portal-shell .modal-footer {
    padding: .85rem 1.05rem;
}

body.admin-panel-shell .modal-body,
body.customer-portal-shell .modal-body {
    padding: 1rem 1.05rem;
}

body.admin-panel-shell .lm-modal .form-label,
body.admin-panel-shell .modal .form-label {
    font-size: var(--ui-label) !important;
}

body.admin-panel-shell .lm-modal .form-control,
body.admin-panel-shell .lm-modal .form-select,
body.admin-panel-shell .modal .form-control,
body.admin-panel-shell .modal .form-select {
    font-size: var(--ui-text) !important;
    min-height: 2.35rem;
}

/* Loyalty / compact badges — keep readable */
body.admin-panel-shell .admin-loyalty-page .admin-data-table tbody td,
body.admin-panel-shell .admin-loyalty-page .admin-data-table thead th {
    font-size: var(--ui-text-sm) !important;
    padding: .55rem .7rem !important;
}

body.admin-panel-shell .admin-loyalty-page .lm-badge-pts,
body.admin-panel-shell .admin-loyalty-page .lm-badge-code,
body.admin-panel-shell .admin-loyalty-page .lm-badge-time,
body.admin-panel-shell .admin-loyalty-page .badge-active,
body.admin-panel-shell .admin-loyalty-page .badge-inactive {
    font-size: var(--ui-text-sm) !important;
}

body.admin-panel-shell .dash-kpi-label {
    font-size: var(--ui-text-sm) !important;
}

body.admin-panel-shell .admin-sidebar-section {
    font-size: .72rem !important;
    letter-spacing: .06em;
}

body.admin-panel-shell .admin-sidebar-logout {
    padding: .65rem .7rem !important;
    margin-top: auto;
}

body.admin-panel-shell .admin-sidebar-logout .admin-logout-btn {
    min-height: 2.5rem;
}

body.admin-panel-shell .sidebar-link {
    font-size: var(--ui-text-sm);
}

body.admin-panel-shell .pagination,
body.customer-portal-shell .pagination {
    flex-wrap: wrap;
    gap: .2rem;
    margin: .75rem 0 0;
}

body.admin-panel-shell .dropdown-menu,
body.customer-portal-shell .dropdown-menu {
    font-size: var(--ui-text);
    color: var(--ui-ink);
}

body.customer-portal-shell .admin-sidebar-section {
    font-size: .72rem !important;
}

body.customer-portal-shell .cd-stat span,
body.customer-portal-shell .cd-table thead th {
    font-size: var(--ui-text-sm) !important;
}

@media (max-width: 991.98px) {

    body.admin-panel-shell .admin-page-header,
    body.customer-portal-shell .admin-page-header {
        align-items: center !important;
    }

    body.admin-panel-shell .admin-page-actions,
    body.customer-portal-shell .admin-page-actions {
        justify-content: flex-end !important;
    }

    /* Dock type size owned by admin-module-ui.css (6-col mobile labels) */
}

@media (max-width: 767.98px) {
    /* iOS Safari zooms into fields smaller than 16px on focus. */
    body.admin-panel-shell input:not([type=checkbox]):not([type=radio]):not([type=range]),
    body.admin-panel-shell select:not([multiple]),
    body.admin-panel-shell textarea:not([hidden]),
    body.customer-portal-shell input:not([type=checkbox]):not([type=radio]):not([type=range]),
    body.customer-portal-shell select:not([multiple]),
    body.customer-portal-shell textarea:not([hidden]) {
        font-size: 16px !important;
    }

    body.admin-panel-shell .admin-page-title {
        white-space: normal;
        line-height: 1.25 !important;
    }

    body.admin-panel-shell .admin-page-header {
        flex-wrap: wrap;
    }

    body.admin-panel-shell .admin-page-actions,
    body.admin-panel-shell .admin-page-actions>.d-flex {
        width: 100% !important;
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
        margin-left: 0 !important;
    }

    body.admin-panel-shell .tournaments-toolbar-search,
    body.customer-portal-shell .tournaments-toolbar-search,
    body.admin-panel-shell .admin-list-toolbar-search,
    body.customer-portal-shell .admin-list-toolbar-search,
    body.admin-panel-shell .admin-list-toolbar>form {
        width: 100% !important;
        max-width: none !important;
        grid-column: 1 / -1;
        justify-content: flex-start !important;
        min-width: 0;
    }

    body.admin-panel-shell .admin-list-toolbar,
    body.customer-portal-shell .admin-list-toolbar,
    body.admin-panel-shell .tournaments-toolbar,
    body.customer-portal-shell .tournaments-toolbar {
        grid-template-columns: minmax(0, 1fr);
        row-gap: .55rem;
    }

    body.admin-panel-shell .card-glass,
    body.customer-portal-shell .card-glass,
    body.admin-panel-shell .admin-list-card,
    body.customer-portal-shell .admin-list-card {
        padding: .85rem .9rem !important;
    }

    body.admin-panel-shell .admin-row-actions,
    body.customer-portal-shell .admin-row-actions {
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
    }

    body.admin-panel-shell .btn,
    body.customer-portal-shell .btn {
        max-width: 100%;
    }

    body.admin-panel-shell .table-responsive .table,
    body.admin-panel-shell .admin-table-wrap .table,
    body.customer-portal-shell .table-responsive .table,
    body.customer-portal-shell .admin-table-wrap .table {
        width: 100%;
    }

    body.admin-panel-shell .table-responsive .admin-data-table.admin-data-table--keep-scroll,
    body.admin-panel-shell .admin-table-wrap .admin-data-table.admin-data-table--keep-scroll,
    body.customer-portal-shell .table-responsive .admin-data-table.admin-data-table--keep-scroll,
    body.customer-portal-shell .admin-table-wrap .admin-data-table.admin-data-table--keep-scroll {
        min-width: 40rem;
    }

    body.admin-panel-shell .admin-data-table,
    body.admin-panel-shell .admin-data-table--cards,
    body.admin-panel-shell .loyalty-card-table,
    body.customer-portal-shell .admin-data-table,
    body.customer-portal-shell .admin-data-table--cards,
    body.customer-portal-shell .loyalty-card-table {
        min-width: 0 !important;
    }

    body.admin-panel-shell .admin-table-wrap--scroll .table,
    body.customer-portal-shell .admin-table-wrap--scroll .table,
    body.admin-panel-shell .admin-data-table.admin-data-table--wide,
    body.customer-portal-shell .admin-data-table.admin-data-table--wide {
        min-width: 560px;
    }

    body.admin-panel-shell .admin-data-table thead th,
    body.admin-panel-shell .table thead th,
    body.customer-portal-shell .admin-data-table thead th,
    body.customer-portal-shell .table thead th,
    body.admin-panel-shell .admin-data-table tbody td,
    body.admin-panel-shell .table tbody td,
    body.customer-portal-shell .admin-data-table tbody td,
    body.customer-portal-shell .table tbody td {
        padding: .55rem .55rem !important;
    }

    body.admin-panel-shell .card-glass,
    body.customer-portal-shell .card-glass,
    body.admin-panel-shell .row>[class*="col-"],
    body.customer-portal-shell .row>[class*="col-"],
    body.admin-panel-shell form .form-control,
    body.customer-portal-shell form .form-control,
    body.admin-panel-shell form .form-select,
    body.customer-portal-shell form .form-select {
        min-width: 0;
        max-width: 100%;
    }

    body.admin-panel-shell .booking-step-nav,
    body.customer-portal-shell .booking-step-nav {
        flex-wrap: wrap;
        gap: .5rem;
    }

    body.admin-panel-shell .booking-step-nav .booking-btn,
    body.customer-portal-shell .booking-step-nav .booking-btn {
        flex: 1 1 auto;
        min-width: min(100%, 9.5rem);
    }
}

/* Keep icons / prefixes inside the field — never wrap to a new row. */
body.admin-panel-shell .input-group,
body.admin-shell .input-group,
body.customer-portal-shell .input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100%;
}

body.admin-panel-shell .input-group>.form-control,
body.admin-panel-shell .input-group>.form-select,
body.admin-shell .input-group>.form-control,
body.admin-shell .input-group>.form-select,
body.customer-portal-shell .input-group>.form-control,
body.customer-portal-shell .input-group>.form-select {
    position: relative;
    flex: 1 1 auto !important;
    width: 1% !important;
    min-width: 0 !important;
    border-radius: 0 !important;
}

body.admin-panel-shell .input-group>.input-group-text,
body.admin-panel-shell .input-group>.btn,
body.admin-shell .input-group>.input-group-text,
body.admin-shell .input-group>.btn,
body.customer-portal-shell .input-group>.input-group-text,
body.customer-portal-shell .input-group>.btn {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 2.5rem;
    min-height: 0 !important;
    white-space: nowrap;
    border-radius: 0 !important;
}

body.admin-panel-shell .input-group> :not(:first-child):not(.dropdown-menu):not(.valid-feedback):not(.invalid-feedback),
body.admin-shell .input-group> :not(:first-child):not(.dropdown-menu):not(.valid-feedback):not(.invalid-feedback),
body.customer-portal-shell .input-group> :not(:first-child):not(.dropdown-menu):not(.valid-feedback):not(.invalid-feedback) {
    margin-left: -1px;
}

body.admin-panel-shell .input-group> :first-child,
body.admin-shell .input-group> :first-child,
body.customer-portal-shell .input-group> :first-child {
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
}

body.admin-panel-shell .input-group> :last-child:not(.dropdown-menu):not(.valid-feedback):not(.invalid-feedback),
body.admin-shell .input-group> :last-child:not(.dropdown-menu):not(.valid-feedback):not(.invalid-feedback),
body.customer-portal-shell .input-group> :last-child:not(.dropdown-menu):not(.valid-feedback):not(.invalid-feedback) {
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

body.admin-panel-shell .input-group>.form-control:focus,
body.admin-panel-shell .input-group>.form-select:focus,
body.admin-shell .input-group>.form-control:focus,
body.admin-shell .input-group>.form-select:focus,
body.customer-portal-shell .input-group>.form-control:focus,
body.customer-portal-shell .input-group>.form-select:focus {
    z-index: 3;
    transform: none !important;
}

body.admin-panel-shell .tournaments-toolbar-search .input-group>.form-control,
body.admin-panel-shell .admin-list-toolbar .input-group>.form-control,
body.customer-portal-shell .tournaments-toolbar-search .input-group>.form-control,
body.customer-portal-shell .admin-list-toolbar .input-group>.form-control {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

body.admin-panel-shell .tournaments-toolbar-search .input-group> :last-child,
body.admin-panel-shell .admin-list-toolbar .input-group> :last-child,
body.customer-portal-shell .tournaments-toolbar-search .input-group> :last-child,
body.customer-portal-shell .admin-list-toolbar .input-group> :last-child {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

@media (max-width: 991.98px) {

    body.admin-panel-shell .input-group,
    body.admin-shell .input-group,
    body.customer-portal-shell .input-group {
        flex-wrap: nowrap !important;
    }

    body.admin-panel-shell .input-group>.form-control,
    body.admin-panel-shell .input-group>.form-select,
    body.admin-shell .input-group>.form-control,
    body.admin-shell .input-group>.form-select,
    body.customer-portal-shell .input-group>.form-control,
    body.customer-portal-shell .input-group>.form-select {
        min-width: 0 !important;
        max-width: none !important;
    }

    body.admin-panel-shell .input-group>.input-group-text,
    body.admin-shell .input-group>.input-group-text,
    body.customer-portal-shell .input-group>.input-group-text {
        flex-shrink: 0 !important;
        padding-left: .6rem !important;
        padding-right: .6rem !important;
    }
}

/* Only the active tab pane may show — inactive tables stay hidden. */
body.admin-panel-shell .tab-content .tab-pane:not(.active),
body.admin-shell .tab-content .tab-pane:not(.active),
body.customer-portal-shell .tab-content .tab-pane:not(.active) {
    display: none !important;
}

body.admin-panel-shell .tab-content .tab-pane.active,
body.admin-shell .tab-content .tab-pane.active,
body.customer-portal-shell .tab-content .tab-pane.active {
    display: block !important;
}

@media (max-width: 991.98px) {
    html {
        overflow-x: hidden;
    }

    body.admin-panel-shell,
    body.customer-portal-shell,
    body.public-site {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.admin-panel-shell {
        padding-bottom: calc(5.35rem + env(safe-area-inset-bottom, 0px));
    }

    body.admin-panel-shell:has(.offcanvas.show) .admin-mobile-dock,
    body.admin-panel-shell:has(.modal.show) .admin-mobile-dock,
    body.admin-panel-shell.modal-open .admin-mobile-dock {
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(110%);
    }

    body.public-site:has(.offcanvas.show) .public-mobile-dock,
    body.public-site:has(.modal.show) .public-mobile-dock {
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.admin-panel-shell .offcanvas,
    body.customer-portal-shell .offcanvas,
    body.public-site .offcanvas,
    body.admin-panel-shell .modal,
    body.customer-portal-shell .modal {
        z-index: 1085 !important;
    }

    body.admin-panel-shell .offcanvas-backdrop,
    body.customer-portal-shell .offcanvas-backdrop,
    body.public-site .offcanvas-backdrop,
    body.admin-panel-shell .modal-backdrop,
    body.customer-portal-shell .modal-backdrop {
        z-index: 1080 !important;
    }

    body.admin-panel-shell .offcanvas.offcanvas-bottom.show,
    body.customer-portal-shell .offcanvas.offcanvas-bottom.show {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        max-height: 92dvh !important;
        bottom: 0 !important;
    }

    body.admin-panel-shell .offcanvas.offcanvas-bottom .offcanvas-body,
    body.customer-portal-shell .offcanvas.offcanvas-bottom .offcanvas-body {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        flex: 1 1 auto;
        min-height: 0 !important;
    }

    body.admin-panel-shell.modal-open,
    body.customer-portal-shell.modal-open {
        overflow: hidden !important;
        overscroll-behavior: none;
    }

    body.customer-portal-shell.modal-open .customer-bottom-nav,
    body.customer-portal-shell:has(.modal.show) .customer-bottom-nav {
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.admin-panel-shell .modal,
    body.customer-portal-shell .modal {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-right: 0 !important;
    }

    body.admin-panel-shell .modal-dialog,
    body.customer-portal-shell .modal-dialog {
        display: flex !important;
        flex-direction: column;
        align-items: stretch !important;
        justify-content: flex-start;
        width: auto;
        max-width: calc(100vw - 1.25rem) !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: calc(100dvh - 1.5rem - env(safe-area-inset-bottom, 0px));
        margin: .75rem auto;
    }

    /* Keep short confirm dialogs vertically centered on phones */
    body.admin-panel-shell .modal-dialog-centered:not(.modal-dialog-scrollable),
    body.customer-portal-shell .modal-dialog-centered:not(.modal-dialog-scrollable) {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: calc(100dvh - 1.5rem - env(safe-area-inset-bottom, 0px)) !important;
        margin: 0 auto !important;
    }

    /* Scrollable modals need a definite height or the body cannot scroll (iOS/Chrome). */
    body.admin-panel-shell .modal-dialog.modal-dialog-scrollable,
    body.customer-portal-shell .modal-dialog.modal-dialog-scrollable {
        display: flex !important;
        flex-direction: column;
        align-items: stretch !important;
        justify-content: flex-start;
        width: auto;
        max-width: calc(100vw - 1.25rem) !important;
        height: calc(100dvh - 1.5rem - env(safe-area-inset-bottom, 0px)) !important;
        max-height: calc(100dvh - 1.5rem - env(safe-area-inset-bottom, 0px)) !important;
        min-height: 0 !important;
        margin: .75rem auto;
    }

    body.admin-panel-shell .modal-content,
    body.customer-portal-shell .modal-content {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        max-height: calc(100dvh - 1.5rem - env(safe-area-inset-bottom, 0px));
        min-height: 0;
        overflow: hidden;
    }

    body.admin-panel-shell .modal-dialog.modal-dialog-scrollable .modal-content,
    body.customer-portal-shell .modal-dialog.modal-dialog-scrollable .modal-content {
        height: 100% !important;
        max-height: 100% !important;
        flex: 1 1 auto;
        min-height: 0;
    }

    body.admin-panel-shell .modal-header,
    body.admin-panel-shell .modal-footer,
    body.customer-portal-shell .modal-header,
    body.customer-portal-shell .modal-footer {
        flex-shrink: 0;
    }

    body.admin-panel-shell .modal-header,
    body.customer-portal-shell .modal-header {
        align-items: flex-start;
        gap: .75rem;
    }

    body.admin-panel-shell .modal-header .modal-title,
    body.customer-portal-shell .modal-header .modal-title {
        flex: 1 1 auto;
        min-width: 0;
        line-height: 1.3;
        text-align: left;
    }

    body.admin-panel-shell .modal-header .btn-close,
    body.customer-portal-shell .modal-header .btn-close {
        margin-left: auto;
        flex-shrink: 0;
    }

    body.admin-panel-shell .modal-footer,
    body.customer-portal-shell .modal-footer {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: .4rem;
        padding: .6rem .85rem;
    }

    body.admin-panel-shell .modal-footer .btn,
    body.customer-portal-shell .modal-footer .btn {
        flex: 0 0 auto;
        width: auto;
        margin: 0 !important;
        min-width: 4.5rem;
        min-height: 2.2rem !important;
        max-height: 2.3rem !important;
        padding: .32rem .75rem !important;
        white-space: nowrap;
        text-align: center;
        font-size: .8rem !important;
        line-height: 1.2 !important;
        border-radius: 8px !important;
    }

    body.admin-panel-shell .modal-content > form,
    body.customer-portal-shell .modal-content > form {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto;
        min-height: 0;
        max-height: 100%;
        height: 100%;
        overflow: hidden;
    }

    body.admin-panel-shell .modal-body,
    body.customer-portal-shell .modal-body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        flex: 1 1 auto;
        min-height: 0 !important;
        max-height: none;
    }

    body.admin-panel-shell .modal-body .row,
    body.customer-portal-shell .modal-body .row {
        --bs-gutter-x: .75rem;
        width: 100%;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.admin-panel-shell .modal-body .row > [class*="col"],
    body.customer-portal-shell .modal-body .row > [class*="col"] {
        min-width: 0;
        max-width: 100%;
        padding-left: calc(var(--bs-gutter-x) * .5);
        padding-right: calc(var(--bs-gutter-x) * .5);
    }

    body.admin-panel-shell .modal .form-label,
    body.customer-portal-shell .modal .form-label {
        display: block;
        text-align: left;
    }

    body.admin-panel-shell .modal .form-control,
    body.admin-panel-shell .modal .form-select,
    body.admin-panel-shell .modal textarea,
    body.customer-portal-shell .modal .form-control,
    body.customer-portal-shell .modal .form-select,
    body.customer-portal-shell .modal textarea {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    /* Mobile: keep dropdown / suggest lists inside the viewport */
    body.admin-panel-shell .dropdown-menu,
    body.customer-portal-shell .dropdown-menu {
        max-width: calc(100vw - 1.25rem) !important;
        max-height: min(60vh, 22rem) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    body.admin-panel-shell .customer-suggest-wrap,
    body.customer-portal-shell .customer-suggest-wrap {
        position: relative;
        z-index: 6;
        overflow: visible;
    }

    body.admin-panel-shell .customer-suggest-list,
    body.customer-portal-shell .customer-suggest-list {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: min(40vh, 12.5rem) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        z-index: 1090 !important;
    }

    body.admin-panel-shell .customer-suggest-list.is-flip-up,
    body.customer-portal-shell .customer-suggest-list.is-flip-up {
        top: auto !important;
        bottom: calc(100% + .3rem) !important;
    }

    body.admin-panel-shell .form-control:focus,
    body.admin-panel-shell .form-select:focus,
    body.admin-panel-shell .form-control.form-glass:focus,
    body.admin-panel-shell .form-select.form-glass:focus,
    body.admin-panel-shell textarea.form-glass:focus,
    body.customer-portal-shell .form-control:focus,
    body.customer-portal-shell .form-select:focus,
    body.customer-portal-shell .form-control.form-glass:focus,
    body.customer-portal-shell .form-select.form-glass:focus,
    body.customer-portal-shell textarea.form-glass:focus {
        transform: none !important;
    }

    body.admin-panel-shell .modal .input-group,
    body.customer-portal-shell .modal .input-group {
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
    }

    body.admin-panel-shell .modal .input-group > .form-control,
    body.admin-panel-shell .modal .input-group > .form-select,
    body.customer-portal-shell .modal .input-group > .form-control,
    body.customer-portal-shell .modal .input-group > .form-select {
        min-width: 0;
        width: 1%;
        flex: 1 1 auto;
    }

    body.admin-panel-shell .modal .form-check,
    body.customer-portal-shell .modal .form-check {
        display: flex;
        align-items: flex-start;
        gap: .55rem;
        padding-left: 0;
        margin-bottom: .65rem;
    }

    body.admin-panel-shell .modal .form-check .form-check-input,
    body.customer-portal-shell .modal .form-check .form-check-input {
        float: none;
        margin: .2rem 0 0;
        flex-shrink: 0;
    }

    body.admin-panel-shell .modal .form-check .form-check-label,
    body.customer-portal-shell .modal .form-check .form-check-label {
        text-align: left;
    }

    body.admin-panel-shell .admin-page,
    body.customer-portal-shell .admin-page {
        max-width: 100%;
        overflow-x: hidden;
    }

    body.admin-panel-shell .table-responsive,
    body.customer-portal-shell .table-responsive {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.customer-portal-shell {
        padding-bottom: calc(5.35rem + env(safe-area-inset-bottom, 0px));
    }

    body.admin-panel-shell .admin-main,
    body.customer-portal-shell .admin-main,
    body.customer-portal-shell .dashboard-content {
        min-width: 0;
        max-width: 100%;
    }

    body.admin-panel-shell .card-glass,
    body.customer-portal-shell .card-glass,
    body.admin-panel-shell .admin-list-card,
    body.customer-portal-shell .admin-list-card {
        max-width: 100%;
    }

    body.admin-panel-shell .admin-row-actions,
    body.customer-portal-shell .admin-row-actions {
        flex-wrap: nowrap !important;
        max-width: none;
    }

    /* Prevent sticky table chrome from trapping horizontal scroll on phones */
    body.admin-panel-shell .table-responsive thead th,
    body.admin-panel-shell .table-responsive .table-dark thead th,
    body.admin-panel-shell .admin-table-wrap thead th,
    body.admin-panel-shell .admin-data-table th,
    body.admin-panel-shell .admin-data-table td,
    body.customer-portal-shell .table-responsive thead th,
    body.customer-portal-shell .admin-table-wrap thead th,
    body.customer-portal-shell .admin-data-table th,
    body.customer-portal-shell .admin-data-table td {
        position: static !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        box-shadow: none !important;
    }
}

/* Shared type, spacing, and responsive behavior for every admin and customer screen. */
body.admin-panel-shell .admin-page-title,
body.customer-portal-shell .admin-page-title {
    font-size: var(--ui-title) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -.02em;
}

body.admin-panel-shell .card-glass h3,
body.admin-panel-shell .card-glass h4,
body.admin-panel-shell .admin-list-card h3,
body.customer-portal-shell .card-glass h3,
body.customer-portal-shell .card-glass h4,
body.customer-portal-shell h3 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
}

body.admin-panel-shell .form-label,
body.customer-portal-shell .form-label {
    margin-bottom: var(--ui-space-2);
    font-size: var(--ui-label);
    font-weight: 500;
    color: #3d4a38;
}

body.admin-panel-shell .form-control,
body.admin-panel-shell .form-select,
body.customer-portal-shell .form-control,
body.customer-portal-shell .form-select {
    min-height: 2.5rem;
    border-radius: 10px;
    border-color: rgba(18, 30, 20, .14);
    font-size: var(--ui-text);
}

body.admin-panel-shell .btn,
body.customer-portal-shell .btn {
    font-size: var(--ui-text);
    font-weight: 600;
    border-radius: 10px;
}

body.admin-panel-shell .badge,
body.customer-portal-shell .badge,
body.admin-panel-shell .badge-active,
body.admin-panel-shell .badge-inactive,
body.customer-portal-shell .badge-active,
body.customer-portal-shell .badge-inactive {
    font-size: var(--ui-meta);
    font-weight: 700;
    letter-spacing: .02em;
}

body.admin-panel-shell .card-glass,
body.customer-portal-shell .card-glass,
body.admin-panel-shell .admin-list-card,
body.customer-portal-shell .admin-list-card {
    border-radius: var(--ui-radius);
}

body.admin-panel-shell .admin-data-table thead th,
body.customer-portal-shell .admin-data-table thead th {
    font-size: var(--ui-text-sm) !important;
    font-weight: 600 !important;
}

body.admin-panel-shell .admin-data-table tbody td,
body.customer-portal-shell .admin-data-table tbody td {
    font-size: var(--ui-text-sm);
}

body.admin-panel-shell .modal-footer,
body.customer-portal-shell .modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ui-space-2);
}

body.admin-panel-shell .modal-footer .btn,
body.customer-portal-shell .modal-footer .btn {
    min-height: var(--ui-btn-h, 2.15rem);
    flex-grow: 0;
}

@media (max-width: 991.98px) {
    body.admin-panel-shell .admin-page-header,
    body.customer-portal-shell .admin-page-header {
        flex-wrap: wrap !important;
        align-items: flex-start !important;
    }

    body.admin-panel-shell .admin-page-actions,
    body.customer-portal-shell .admin-page-actions,
    body.admin-panel-shell .admin-page-actions>.d-flex,
    body.customer-portal-shell .admin-page-actions>.d-flex {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: var(--ui-space-2) 0 0 !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }

    body.admin-panel-shell .admin-page-actions .btn,
    body.customer-portal-shell .admin-page-actions .btn {
        min-width: 0 !important;
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    body.admin-panel-shell .admin-page-title,
    body.customer-portal-shell .admin-page-title {
        font-size: 1.3125rem !important;
    }

    body.admin-panel-shell .card-glass h3,
    body.admin-panel-shell .admin-list-card h3,
    body.customer-portal-shell h3 {
        font-size: 1rem;
    }

    body.admin-panel-shell .table,
    body.customer-portal-shell .table {
        min-width: 0;
    }

    body.admin-panel-shell .lm-icon-btn {
        width: 2.35rem;
        height: 2.35rem;
        min-width: 2.35rem;
        min-height: 2.35rem;
    }

    /* Keep table action icons compact + single-line on phones */
    body.admin-panel-shell .admin-row-actions .admin-icon-btn-sm,
    body.customer-portal-shell .admin-row-actions .admin-icon-btn-sm {
        width: 2.05rem !important;
        height: 2.05rem !important;
        min-width: 2.05rem !important;
        min-height: 2.05rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    body.admin-panel-shell .admin-page,
    body.customer-portal-shell .dashboard-content {
        padding-left: var(--ui-space-5);
        padding-right: var(--ui-space-5);
    }
}

body.auth-body {
    font-family: 'Inter', system-ui, sans-serif;
    color: #111827;
}

body.auth-body .form-control,
body.auth-body .btn {
    min-height: 2.75rem;
    border-radius: 10px;
    font-size: .875rem;
}

/* ═══════════════════════════════════════════════════════════
   Universal responsive data tables (Admin + Super Admin + Portal)
   Stacked cards on phones; full-width aligned tables on desktop.
   ═══════════════════════════════════════════════════════════ */

body.admin-panel-shell .admin-data-table,
body.customer-portal-shell .admin-data-table {
    width: 100% !important;
    max-width: 100%;
}

body.admin-panel-shell .admin-row-actions,
body.customer-portal-shell .admin-row-actions {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: .28rem !important;
    width: max-content !important;
    max-width: none !important;
    white-space: nowrap !important;
}

body.admin-panel-shell .admin-row-actions form,
body.customer-portal-shell .admin-row-actions form {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
}

body.admin-panel-shell .admin-icon-btn-sm,
body.customer-portal-shell .admin-icon-btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.85rem;
    height: 1.85rem;
    min-width: 1.85rem;
    min-height: 1.85rem;
    padding: 0;
    border: 1px solid rgba(18, 30, 20, .12);
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    line-height: 1;
}

body.admin-panel-shell .admin-icon-btn-sm.is-danger,
body.customer-portal-shell .admin-icon-btn-sm.is-danger {
    color: #b42318;
    border-color: rgba(180, 35, 24, .22);
}

body.admin-panel-shell .admin-icon-btn-sm.is-whatsapp,
body.customer-portal-shell .admin-icon-btn-sm.is-whatsapp {
    color: #128c7e;
    border-color: rgba(18, 140, 126, .28);
}

body.admin-panel-shell .pagination .page-link,
body.customer-portal-shell .pagination .page-link {
    min-width: 2.35rem;
    min-height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    font-size: var(--ui-text-sm);
    font-weight: 650;
    color: var(--ui-ink);
}

body.admin-panel-shell .pagination .page-item.active .page-link,
body.customer-portal-shell .pagination .page-item.active .page-link {
    background: var(--ui-green);
    border-color: var(--ui-green);
    color: #fff;
}

@media (max-width: 991.98px) {
    body.admin-panel-shell .tournaments-toolbar,
    body.customer-portal-shell .tournaments-toolbar,
    body.admin-panel-shell .admin-list-toolbar,
    body.customer-portal-shell .admin-list-toolbar {
        grid-template-columns: 1fr !important;
        row-gap: .65rem !important;
        align-items: stretch !important;
    }

    body.admin-panel-shell .tournaments-toolbar-filters,
    body.admin-panel-shell .admin-list-toolbar-filters,
    body.customer-portal-shell .tournaments-toolbar-filters {
        flex-wrap: wrap !important;
        gap: .4rem !important;
    }

    body.admin-panel-shell .tournaments-toolbar-search,
    body.admin-panel-shell .admin-list-toolbar .input-group,
    body.customer-portal-shell .tournaments-toolbar-search {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.admin-panel-shell .nav-tabs,
    body.admin-panel-shell .nav-pills,
    body.customer-portal-shell .nav-tabs,
    body.customer-portal-shell .nav-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: .25rem;
        padding-bottom: .15rem;
        scrollbar-width: none;
    }

    body.admin-panel-shell .nav-tabs::-webkit-scrollbar,
    body.admin-panel-shell .nav-pills::-webkit-scrollbar,
    body.customer-portal-shell .nav-tabs::-webkit-scrollbar,
    body.customer-portal-shell .nav-pills::-webkit-scrollbar {
        display: none;
    }

    body.admin-panel-shell .nav-tabs .nav-link,
    body.admin-panel-shell .nav-pills .nav-link,
    body.customer-portal-shell .nav-tabs .nav-link,
    body.customer-portal-shell .nav-pills .nav-link {
        white-space: nowrap;
        min-height: 2.35rem;
        padding: .45rem .8rem;
        font-size: .82rem;
    }
}

@media (max-width: 767.98px) {
    body.admin-panel-shell .admin-table-wrap--cards,
    body.admin-panel-shell .admin-table-wrap:has(.admin-data-table:not(.admin-data-table--keep-scroll)),
    body.admin-panel-shell .table-responsive:has(.admin-data-table:not(.admin-data-table--keep-scroll)),
    body.admin-panel-shell .admin-users-table-wrap:has(.admin-data-table),
    body.customer-portal-shell .admin-table-wrap--cards,
    body.customer-portal-shell .admin-table-wrap:has(.admin-data-table:not(.admin-data-table--keep-scroll)),
    body.customer-portal-shell .table-responsive:has(.admin-data-table:not(.admin-data-table--keep-scroll)) {
        overflow: visible !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        -webkit-overflow-scrolling: auto;
    }

    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll),
    body.admin-panel-shell .admin-data-table--cards,
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll),
    body.customer-portal-shell .admin-data-table--cards {
        min-width: 0 !important;
        width: 100% !important;
        border: 0 !important;
        background: transparent !important;
        --bs-table-bg: transparent;
        --bs-table-striped-bg: transparent;
        --bs-table-hover-bg: transparent;
        --bs-table-color: var(--ui-ink);
    }

    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll).table-dark,
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll).table-dark {
        --bs-table-bg: transparent;
        --bs-table-color: var(--ui-ink);
        color: var(--ui-ink) !important;
    }

    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) thead,
    body.admin-panel-shell .admin-data-table--cards thead,
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll) thead,
    body.customer-portal-shell .admin-data-table--cards thead {
        display: none !important;
    }

    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody,
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody {
        display: block;
    }

    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody tr,
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody tr {
        display: block;
        width: 100%;
        margin: 0 0 .75rem;
        padding: .8rem .85rem;
        border: 1px solid #e7eee4 !important;
        border-radius: 14px;
        background: #fff !important;
        box-shadow: 0 6px 18px rgba(22, 40, 24, .05);
        color: var(--ui-ink) !important;
    }

    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody tr:last-child,
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody tr:last-child {
        margin-bottom: 0;
    }

    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody tr:hover > *,
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody tr:hover > * {
        background: transparent !important;
        color: inherit !important;
    }

    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td,
    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody th,
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td,
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody th {
        display: flex !important;
        align-items: flex-start;
        justify-content: space-between;
        gap: .65rem;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: .4rem 0 !important;
        border: none !important;
        background: transparent !important;
        color: var(--ui-ink) !important;
        white-space: normal !important;
        text-align: right !important;
        box-shadow: none !important;
    }

    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td::before,
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td::before {
        content: attr(data-label);
        flex: 0 0 6.5rem;
        max-width: 42%;
        color: #657268;
        font-size: .7rem;
        font-weight: 800;
        letter-spacing: .04em;
        text-transform: uppercase;
        text-align: left;
        line-height: 1.35;
        padding-top: .12rem;
    }

    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td:not([data-label])::before,
    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td[data-label=""]::before,
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td:not([data-label])::before,
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td[data-label=""]::before {
        content: none;
    }

    /* Empty-state colspan rows: centered message, no fake column label */
    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody tr.admin-empty-row,
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody tr.admin-empty-row {
        padding: 1.1rem 1rem;
        text-align: center;
    }

    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td.admin-empty-cell,
    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td[colspan],
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td.admin-empty-cell,
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td[colspan] {
        display: block !important;
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        padding: .35rem 0 !important;
        color: var(--ui-muted, #6b776e) !important;
        font-weight: 600;
    }

    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td.admin-empty-cell::before,
    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td[colspan]::before,
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td.admin-empty-cell::before,
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td[colspan]::before {
        content: none !important;
        display: none !important;
    }

    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td.admin-card-check-cell,
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td.admin-card-check-cell {
        justify-content: flex-end;
        padding-bottom: .2rem !important;
    }

    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td.admin-card-check-cell::before,
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td.admin-card-check-cell::before {
        content: none !important;
    }

    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td > *,
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td > * {
        text-align: right;
        min-width: 0;
        max-width: 100%;
    }

    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td.admin-table-actions-cell,
    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td.users-actions-col,
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td.admin-table-actions-cell {
        flex-wrap: wrap;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: .4rem;
        margin-top: .35rem;
        padding-top: .65rem !important;
        border-top: 1px solid #eef3ec !important;
    }

    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td.admin-table-actions-cell::before,
    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td.users-actions-col::before,
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td.admin-table-actions-cell::before {
        content: none !important;
    }

    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td.admin-table-actions-cell > *,
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll) tbody td.admin-table-actions-cell > * {
        width: auto !important;
        text-align: right !important;
    }

    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) .admin-row-actions,
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll) .admin-row-actions {
        width: max-content !important;
        max-width: none !important;
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
    }

    body.admin-panel-shell .admin-data-table:not(.admin-data-table--keep-scroll) .badge,
    body.customer-portal-shell .admin-data-table:not(.admin-data-table--keep-scroll) .badge {
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }

    body.admin-panel-shell .admin-data-table--keep-scroll,
    body.customer-portal-shell .admin-data-table--keep-scroll {
        min-width: 36rem;
    }

    body.admin-panel-shell .pagination,
    body.customer-portal-shell .pagination {
        justify-content: center;
        gap: .25rem;
    }

    body.admin-panel-shell .pagination .page-link,
    body.customer-portal-shell .pagination .page-link {
        min-width: 2.55rem;
        min-height: 2.55rem;
    }

    body.admin-panel-shell .dropdown-menu,
    body.customer-portal-shell .dropdown-menu {
        max-width: min(100vw - 1.5rem, 22rem);
    }

    body.admin-panel-shell .form-select,
    body.admin-panel-shell .form-control,
    body.customer-portal-shell .form-select,
    body.customer-portal-shell .form-control {
        max-width: 100%;
    }
}

@media (min-width: 992px) {
    body.admin-panel-shell .admin-table-wrap,
    body.admin-panel-shell .table-responsive,
    body.customer-portal-shell .admin-table-wrap,
    body.customer-portal-shell .table-responsive {
        overflow-x: auto;
    }

    body.admin-panel-shell .admin-data-table,
    body.customer-portal-shell .admin-data-table {
        min-width: 0;
        table-layout: auto;
    }

    body.admin-panel-shell .admin-data-table thead th,
    body.customer-portal-shell .admin-data-table thead th {
        white-space: nowrap;
    }
}
/* ═══════════════════════════════════════════════════════════
   Admin UI lock — same pattern on every page (desktop + mobile)
   ═══════════════════════════════════════════════════════════ */

body.admin-panel-shell .admin-module-hero-sub,
body.admin-panel-shell .users-toolbar-copy p,
body.admin-panel-shell .lm-head p,
body.admin-panel-shell .admin-directory-bar p,
body.admin-panel-shell .admin-card-lead,
body.admin-panel-shell .admin-section-lead,
body.admin-panel-shell .coupon-note {
    display: none !important;
}

body.admin-panel-shell .admin-page-title,
body.admin-panel-shell .admin-card-title,
body.admin-panel-shell .admin-list-card-head h2,
body.admin-panel-shell .admin-list-card-head h3,
body.admin-panel-shell .admin-list-card-head h4,
body.admin-panel-shell .admin-list-card-head h5,
body.admin-panel-shell .admin-list-card-head h6,
body.admin-panel-shell .users-toolbar-copy h2,
body.admin-panel-shell .lm-head h2,
body.admin-panel-shell .lm-section-head h3 {
    font-family: var(--ui-heading) !important;
    font-weight: 800 !important;
    color: var(--ui-ink) !important;
    letter-spacing: -.02em;
}

body.admin-panel-shell .admin-page-title {
    font-size: var(--ui-title) !important;
    line-height: 1.25 !important;
}

body.admin-panel-shell .admin-card-title,
body.admin-panel-shell .users-toolbar-copy h2,
body.admin-panel-shell .lm-head h2,
body.admin-panel-shell .lm-section-head h3,
body.admin-panel-shell .admin-list-card-head h2,
body.admin-panel-shell .admin-list-card-head h3,
body.admin-panel-shell .admin-list-card-head h4,
body.admin-panel-shell .admin-list-card-head h5,
body.admin-panel-shell .admin-list-card-head h6 {
    font-size: 1rem !important;
    margin: 0 !important;
}

body.admin-panel-shell .form-label,
body.admin-panel-shell label.form-label {
    font-family: var(--ui-font) !important;
    font-size: var(--ui-label) !important;
    font-weight: 650 !important;
    color: var(--ui-muted) !important;
    margin-bottom: .3rem !important;
}

body.admin-panel-shell .form-control,
body.admin-panel-shell .form-select,
body.admin-panel-shell .form-glass {
    min-height: 2.35rem;
    border: 1px solid var(--ui-line) !important;
    border-radius: var(--ui-radius-sm) !important;
    background: #fff !important;
    color: var(--ui-ink) !important;
    font-family: var(--ui-font) !important;
    font-size: var(--ui-text) !important;
    box-shadow: none !important;
}

body.admin-panel-shell .form-control:focus,
body.admin-panel-shell .form-select:focus,
body.admin-panel-shell .form-glass:focus {
    border-color: rgba(31, 111, 9, .45) !important;
    box-shadow: 0 0 0 .2rem rgba(31, 111, 9, .12) !important;
}

body.admin-panel-shell .form-text,
body.admin-panel-shell .form-text.small,
body.admin-panel-shell .form-text.text-muted {
    margin-top: .25rem !important;
    color: var(--ui-muted) !important;
    font-size: var(--ui-meta) !important;
    line-height: 1.35 !important;
}

body.admin-panel-shell .badge-active,
body.admin-panel-shell .badge.bg-success-subtle,
body.admin-panel-shell .badge.text-success-emphasis {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    padding: .18rem .55rem;
    border-radius: 999px;
    background: var(--ui-green-soft) !important;
    color: var(--ui-green) !important;
    border: 1px solid rgba(31, 111, 9, .18);
    font-size: var(--ui-meta);
    font-weight: 750;
}

body.admin-panel-shell .badge-inactive,
body.admin-panel-shell .badge.bg-secondary-subtle {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    padding: .18rem .55rem;
    border-radius: 999px;
    background: #eef1ee !important;
    color: #667268 !important;
    border: 1px solid rgba(18, 30, 20, .1);
    font-size: var(--ui-meta);
    font-weight: 750;
}

body.admin-panel-shell .nav-pills .nav-link,
body.admin-panel-shell .lm-tab,
body.admin-panel-shell .admin-filter-chip {
    font-family: var(--ui-font) !important;
    font-size: var(--ui-text-sm) !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
}

body.admin-panel-shell .nav-pills .nav-link.active,
body.admin-panel-shell .lm-tab.active {
    background: var(--ui-green) !important;
    color: #fff !important;
    border-color: var(--ui-green) !important;
}

body.admin-panel-shell .admin-data-table,
body.admin-panel-shell .table {
    border-collapse: separate;
    border-spacing: 0;
}

body.admin-panel-shell .admin-data-table thead th,
body.admin-panel-shell .table thead th {
    font-family: var(--ui-font) !important;
    font-size: .78rem !important;
    font-weight: 750 !important;
    color: var(--ui-muted) !important;
    background: var(--ui-soft) !important;
    padding: .55rem .7rem !important;
    border-bottom: 1px solid var(--ui-line) !important;
}

body.admin-panel-shell .admin-data-table tbody td,
body.admin-panel-shell .table tbody td {
    font-family: var(--ui-font) !important;
    font-size: var(--ui-text) !important;
    color: var(--ui-ink) !important;
    padding: .55rem .7rem !important;
    vertical-align: middle !important;
}

body.admin-panel-shell .admin-data-table tbody tr:nth-child(even) td {
    background: #fafcf8;
}

body.admin-panel-shell .admin-page-actions .btn,
body.admin-panel-shell .admin-page-actions .btn-sm,
body.admin-panel-shell .admin-page-actions a.btn,
body.admin-panel-shell .admin-page-actions button.btn {
    height: var(--ui-btn-h) !important;
    min-height: var(--ui-btn-h) !important;
    max-height: var(--ui-btn-h) !important;
    padding: 0 .85rem !important;
    border-radius: var(--ui-radius-sm) !important;
    font-size: .82rem !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

body.admin-panel-shell .admin-page-actions .btn-outline-secondary {
    border-color: var(--ui-line) !important;
    background: #fff !important;
    color: var(--ui-ink) !important;
}

body.admin-panel-shell .admin-page-actions .btn-fill-green {
    border-color: var(--ui-green) !important;
    background: var(--ui-green) !important;
    color: #fff !important;
}

body.admin-panel-shell .card-glass,
body.admin-panel-shell .admin-list-card,
body.admin-panel-shell .admin-table-wrap {
    border: 1px solid var(--ui-line) !important;
    border-radius: var(--ui-radius) !important;
    background: var(--ui-surface) !important;
}

body.admin-panel-shell .admin-directory-bar,
body.admin-panel-shell .users-toolbar {
    border-radius: var(--ui-radius) !important;
}

@media (max-width: 991.98px) {
    body.admin-panel-shell .admin-page-actions .btn,
    body.admin-panel-shell .admin-page-actions .btn-sm,
    body.admin-panel-shell .btn-fill-green,
    body.admin-panel-shell .btn-outline-secondary {
        min-height: 2.25rem !important;
    }

    body.admin-panel-shell .admin-data-table thead th,
    body.admin-panel-shell .admin-data-table tbody td {
        padding: .5rem .6rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   UNIVERSAL RESPONSIVE CONTRACT (all modules inherit)
   Containment, auto-grids, forms, modals, tables — no page hacks.
   Future modules: use .admin-page / .card-glass / .admin-data-table /
   .admin-auto-grid / .table-responsive and these rules apply.
   ═══════════════════════════════════════════════════════════ */

body.admin-panel-shell,
body.customer-portal-shell {
    max-width: 100%;
}

body.admin-panel-shell .admin-layout,
body.admin-panel-shell .admin-main,
body.admin-panel-shell .admin-page,
body.admin-panel-shell .dashboard-content,
body.customer-portal-shell .admin-layout,
body.customer-portal-shell .admin-main,
body.customer-portal-shell .admin-page,
body.customer-portal-shell .dashboard-content {
    min-width: 0;
    max-width: 100%;
}

body.admin-panel-shell .row > [class*="col-"],
body.customer-portal-shell .row > [class*="col-"],
body.admin-panel-shell .card-glass,
body.customer-portal-shell .card-glass,
body.admin-panel-shell .admin-list-card,
body.customer-portal-shell .admin-list-card,
body.admin-panel-shell .admin-table-card,
body.customer-portal-shell .admin-table-card {
    min-width: 0;
    max-width: 100%;
}

/* Reusable responsive grid — drop-in for KPI / tile / chip rows */
body.admin-panel-shell .admin-auto-grid,
body.customer-portal-shell .admin-auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
    gap: var(--ui-space-3);
    width: 100%;
    min-width: 0;
}

body.admin-panel-shell .admin-auto-grid--dense,
body.customer-portal-shell .admin-auto-grid--dense {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
}

body.admin-panel-shell .admin-auto-grid > *,
body.customer-portal-shell .admin-auto-grid > * {
    min-width: 0;
    max-width: 100%;
}

/* Safe wrapping — prefer whole words; only break long tokens */
body.admin-panel-shell .admin-page,
body.customer-portal-shell .admin-page,
body.admin-panel-shell .dashboard-content,
body.customer-portal-shell .dashboard-content {
    overflow-wrap: break-word;
    word-break: normal;
}

body.admin-panel-shell .admin-kpi-value,
body.customer-portal-shell .admin-kpi-value,
body.admin-panel-shell a[href^="mailto"],
body.admin-panel-shell a[href^="tel"] {
    overflow-wrap: anywhere;
}

/* Tables must live in a wrap; keep-scroll is opt-in only */
body.admin-panel-shell .admin-table-wrap,
body.admin-panel-shell .table-responsive,
body.customer-portal-shell .admin-table-wrap,
body.customer-portal-shell .table-responsive {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
}

body.admin-panel-shell .admin-table-wrap--scroll,
body.customer-portal-shell .admin-table-wrap--scroll {
    overflow-x: auto;
}

body.admin-panel-shell table.table:not(.admin-data-table--keep-scroll):not(.admin-data-table--wide),
body.customer-portal-shell table.table:not(.admin-data-table--keep-scroll):not(.admin-data-table--wide) {
    min-width: 0 !important;
    width: 100%;
}

/* Forms: full-width controls, no horizontal blowout */
body.admin-panel-shell .form-control,
body.admin-panel-shell .form-select,
body.admin-panel-shell .form-floating,
body.customer-portal-shell .form-control,
body.customer-portal-shell .form-select,
body.customer-portal-shell .form-floating {
    max-width: 100%;
}

body.admin-panel-shell .row.g-2 > [class*="col-"],
body.admin-panel-shell .row.g-3 > [class*="col-"],
body.customer-portal-shell .row.g-2 > [class*="col-"],
body.customer-portal-shell .row.g-3 > [class*="col-"] {
    min-width: 0;
}

/* Dropdowns stay inside viewport */
body.admin-panel-shell .dropdown-menu,
body.customer-portal-shell .dropdown-menu {
    max-width: min(20rem, calc(100vw - 1.5rem));
}

@media (max-width: 991.98px) {
    body.admin-panel-shell .admin-page-actions,
    body.admin-panel-shell .admin-page-actions > .d-flex,
    body.admin-panel-shell .admin-page-actions > form,
    body.customer-portal-shell .admin-page-actions,
    body.customer-portal-shell .admin-page-actions > .d-flex,
    body.customer-portal-shell .admin-page-actions > form {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex-wrap: wrap !important;
    }

    body.admin-panel-shell .admin-page-actions .btn,
    body.admin-panel-shell .admin-page-actions .btn-sm,
    body.customer-portal-shell .admin-page-actions .btn,
    body.customer-portal-shell .admin-page-actions .btn-sm {
        min-width: 0 !important;
        max-width: 100%;
        height: auto !important;
        max-height: none !important;
        min-height: 2.25rem !important;
        white-space: nowrap;
    }

    body.admin-panel-shell .modal-dialog,
    body.customer-portal-shell .modal-dialog {
        margin: .65rem auto;
        max-width: calc(100% - 1.3rem);
    }

    body.admin-panel-shell .modal-content,
    body.customer-portal-shell .modal-content {
        border-radius: 14px;
    }

    body.admin-panel-shell .modal-footer,
    body.customer-portal-shell .modal-footer {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: .4rem !important;
        padding: .55rem .8rem .65rem !important;
    }

    body.admin-panel-shell .modal-footer .btn,
    body.customer-portal-shell .modal-footer .btn {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 4.5rem !important;
        min-height: 2.15rem !important;
        max-height: 2.25rem !important;
        height: 2.15rem !important;
        padding: .3rem .8rem !important;
        justify-content: center;
        white-space: nowrap;
        font-size: .8rem !important;
        border-radius: 8px !important;
    }

    /* Collapse dense multi-col page grids without per-page CSS */
    body.admin-panel-shell .dash-kpi-grid,
    body.admin-panel-shell .dash-module-grid,
    body.admin-panel-shell .user-profile-kpis,
    body.admin-panel-shell .user-plan-facts,
    body.admin-panel-shell .user-offer-tiles,
    body.admin-panel-shell .pv-kpi-grid,
    body.admin-panel-shell .payment-kpi-grid,
    body.admin-panel-shell .verification-stats,
    body.admin-panel-shell .revenue-kpi-grid,
    body.admin-panel-shell .settings-grid,
    body.admin-panel-shell .price-chart-grid,
    body.admin-panel-shell .price-grid,
    body.admin-panel-shell .slot-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.admin-panel-shell .bulk-weekday-chips {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 575.98px) {
    body.admin-panel-shell .dash-module-grid,
    body.admin-panel-shell .user-plan-facts,
    body.admin-panel-shell .user-offer-tiles,
    body.admin-panel-shell .settings-grid,
    body.admin-panel-shell .price-chart-grid,
    body.admin-panel-shell .bulk-weekday-chips {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.admin-panel-shell .admin-auto-grid,
    body.customer-portal-shell .admin-auto-grid {
        grid-template-columns: 1fr;
    }

    body.admin-panel-shell .admin-auto-grid--dense,
    body.customer-portal-shell .admin-auto-grid--dense,
    body.admin-panel-shell .dash-kpi-grid,
    body.admin-panel-shell .user-profile-kpis,
    body.admin-panel-shell .pv-kpi-grid,
    body.admin-panel-shell .payment-kpi-grid,
    body.admin-panel-shell .verification-stats,
    body.admin-panel-shell .revenue-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.admin-panel-shell .verification-stat {
        min-width: 0;
        padding-left: 3.2rem;
    }

    /* Never force wide tables outside keep-scroll / wide opt-in */
    body.admin-panel-shell .table:not(.admin-data-table--keep-scroll):not(.admin-data-table--wide):not(.admin-data-table--cards),
    body.admin-panel-shell .table-dark:not(.admin-data-table--keep-scroll):not(.admin-data-table--wide):not(.admin-data-table--cards),
    body.customer-portal-shell .table:not(.admin-data-table--keep-scroll):not(.admin-data-table--wide):not(.admin-data-table--cards) {
        min-width: 0 !important;
    }

    body.admin-panel-shell .user-profile-table {
        min-width: 0 !important;
    }
}

@media (max-width: 429.98px) {
    body.admin-panel-shell .admin-page,
    body.customer-portal-shell .admin-page {
        padding-left: .7rem !important;
        padding-right: .7rem !important;
    }

    body.admin-panel-shell .bulk-weekday-chips {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 359.98px) {
    body.admin-panel-shell .dash-kpi-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   THEME LOCK — Payment Verification brand green across Super Admin
   Active nav, buttons, heroes, slots all use #2f940d family.
   ═══════════════════════════════════════════════════════════ */

body.admin-panel-shell .btn-fill-green,
body.admin-panel-shell .btn-success,
body.admin-panel-shell .badge-active {
    background-color: var(--ui-green) !important;
    border-color: var(--ui-green) !important;
    color: #fff !important;
}

/* Match Payment Verification active sidebar item */
body.admin-panel-shell .sidebar-link.active,
body.admin-panel-shell .admin-sidebar-nav .sidebar-link.active,
body.admin-panel-shell .admin-offcanvas .sidebar-link.active {
    background: linear-gradient(135deg, rgba(47, 148, 13, .96) 0%, rgba(31, 111, 9, .98) 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 14px 30px rgba(47, 148, 13, .24) !important;
}

body.admin-panel-shell .sidebar-link.active::before,
body.admin-panel-shell .admin-sidebar-nav .sidebar-link.active::before {
    background: #b2ee92 !important;
    box-shadow: 0 0 0 4px rgba(47, 148, 13, .14) !important;
}

body.admin-panel-shell .btn-fill-green:hover,
body.admin-panel-shell .btn-fill-green:focus,
body.admin-panel-shell .btn-success:hover {
    background-color: var(--ui-green-deep) !important;
    border-color: var(--ui-green-deep) !important;
    color: #fff !important;
}

body.admin-panel-shell .btn-outline-success,
body.admin-panel-shell .text-success,
body.admin-panel-shell a.text-success {
    color: var(--ui-green) !important;
}

body.admin-panel-shell .btn-outline-success {
    border-color: var(--ui-green) !important;
}

body.admin-panel-shell .btn-outline-success:hover {
    background: var(--ui-green) !important;
    color: #fff !important;
}

body.admin-panel-shell .form-check-input:checked,
body.admin-panel-shell .form-switch .form-check-input:checked {
    background-color: var(--ui-green) !important;
    border-color: var(--ui-green) !important;
}

body.admin-panel-shell .nav-pills .nav-link.active,
body.admin-panel-shell .nav-tabs .nav-link.active {
    background-color: var(--ui-green-soft) !important;
    color: var(--ui-green-deep) !important;
    border-color: transparent !important;
}

body.admin-panel-shell .pagination .page-item.active .page-link {
    background: var(--ui-green) !important;
    border-color: var(--ui-green) !important;
}

body.admin-panel-shell .admin-avatar,
body.admin-panel-shell .admin-avatar-sm,
body.admin-panel-shell .admin-mobile-toggle {
    background: var(--ui-green) !important;
}

body.admin-panel-shell .admin-directory-bar,
body.admin-panel-shell .users-toolbar {
    background: var(--ui-green-soft) !important;
}

body.admin-panel-shell .admin-kpi-icon,
body.admin-panel-shell .admin-kpi-note {
    background: var(--ui-green-soft) !important;
    color: var(--ui-green) !important;
}

body.admin-panel-shell .dash-hero,
body.admin-panel-shell .admin-dashboard-hero,
body.admin-panel-shell .admin-module-hero,
body.admin-panel-shell .revenue-module-hero,
body.admin-panel-shell .bookings-theme-hero {
    background: var(--ui-hero-gradient) !important;
    box-shadow: var(--ui-hero-shadow) !important;
    color: #fff !important;
}

/* Desktop page header accent stays on-theme */
@media (min-width: 992px) {
    body.admin-panel-shell .admin-page-header {
        border-bottom-color: rgba(47, 148, 13, .18) !important;
    }

    body.admin-panel-shell .admin-page-title {
        color: var(--ui-green-deep) !important;
    }
}
