/**
 * Ajustes de marca sobre SB Admin 2 (https://startbootstrap.com/theme/sb-admin-2).
 */
:root {
    --rt-cherry: #b91830;
    --rt-cherry-deep: #7d0f22;
}

.bg-gradient-primary {
    background-image: linear-gradient(180deg, #000000 0%, var(--rt-cherry-deep) 100%) !important;
}

.rt-sidebar-brand {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.rt-sidebar-brand-logo {
    max-width: 85%;
    height: auto;
    max-height: 2.75rem;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.sidebar .nav-item .nav-link.active,
.sidebar .nav-item.active .nav-link {
    font-weight: 700;
}

.topbar .nav-item .nav-link {
    color: #5a5c69;
}

/* Formulario de eventos: menú de pasos centrado */
.rt-form-steps-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rt-form-steps-nav {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    background: transparent;
    border: none;
}

.rt-form-steps-list {
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: #fff;
    border: 1px solid #e3e6f0;
    border-radius: 3rem;
    box-shadow: 0 0.15rem 0.75rem rgba(0, 0, 0, 0.06);
}

.rt-form-step-item {
    margin: 0;
}

.rt-form-step-sep {
    width: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, #dee2e6 20%, #dee2e6 80%, transparent);
    flex-shrink: 0;
}

.rt-form-step-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.55rem 1.1rem;
    min-width: 5.75rem;
    border-radius: 2.5rem;
    font-weight: 700;
    color: #3a3b45;
    text-decoration: none !important;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.rt-form-step-link:hover {
    color: var(--rt-cherry);
    background-color: #fff5f6;
    box-shadow: 0 0 0 1px rgba(185, 24, 48, 0.2);
}

.rt-form-step-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: #111;
}

.rt-form-step-link:hover .rt-form-step-n {
    background: var(--rt-cherry);
}

.rt-form-step-t {
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

@media (min-width: 576px) {
    .rt-form-step-t {
        font-size: 0.875rem;
    }
}

.rt-form-steps-hint {
    max-width: 36rem;
    margin-top: 0.85rem;
    line-height: 1.5;
}

@media (max-width: 420px) {
    .rt-form-step-sep {
        display: none;
    }

    .rt-form-steps-list {
        gap: 0.4rem;
    }

    .rt-form-step-link {
        min-width: 5rem;
        padding: 0.5rem 0.75rem;
    }
}

.rt-form-anchor {
    scroll-margin-top: 5.5rem;
}

/* Círculos con número centrado (pasos 1–3 del formulario evento) */
.rt-form-step-badge.rt-step-badge-num,
span.rt-form-step-badge.rt-step-badge-num {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.125rem;
    height: 2.125rem;
    min-width: 2.125rem;
    min-height: 2.125rem;
    padding: 0 !important;
    margin: 0;
    line-height: 1 !important;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0;
    border-radius: 50% !important;
    flex-shrink: 0;
    box-sizing: border-box;
    vertical-align: middle;
}

.rt-callout {
    border-left: 4px solid var(--rt-cherry) !important;
}

.rt-callout-box {
    background-color: #f8f9fc;
    border: 1px solid #e3e6f0;
    border-left: 4px solid var(--rt-cherry) !important;
    border-radius: 0.35rem;
    padding: 0.75rem 1rem;
}

.rt-form-subsection h6 {
    letter-spacing: 0.03em;
}

/* Saltos del menú «1. Evento / 2. Entradas» sin tirones bruscos */
html {
    scroll-behavior: smooth;
}

/* —— Formulario evento: negro + cereza —— */
.rt-event-form-theme .text-primary,
.rt-event-form-theme .btn-link.text-primary {
    color: var(--rt-cherry) !important;
}

.rt-cherry-text {
    color: var(--rt-cherry) !important;
}

.rt-step-badge-num {
    background: #111 !important;
    color: #fff !important;
    border: none !important;
}

.rt-form-subtitle {
    color: #111 !important;
    letter-spacing: 0.04em;
}

.rt-btn-cherry {
    background-color: var(--rt-cherry) !important;
    border-color: var(--rt-cherry) !important;
    color: #fff !important;
}

.rt-btn-cherry:hover {
    background-color: var(--rt-cherry-deep) !important;
    border-color: var(--rt-cherry-deep) !important;
    color: #fff !important;
}

.rt-btn-cherry-outline {
    color: #111 !important;
    border-color: var(--rt-cherry) !important;
    background: #fff !important;
}

.rt-btn-cherry-outline:hover {
    background: var(--rt-cherry) !important;
    border-color: var(--rt-cherry) !important;
    color: #fff !important;
}

.rt-ticket-chevron {
    transition: transform 0.2s ease;
}

.rt-ticket-chevron.rt-chevron-open {
    transform: rotate(180deg);
}

.rt-step-panel-chevron {
    transition: transform 0.2s ease;
}

.rt-step-panel-chevron.rt-chevron-open {
    transform: rotate(180deg);
}

.rt-step-section-toggle:hover {
    background-color: #f1f3f5 !important;
}

.rt-step-section-toggle:focus {
    box-shadow: none;
    outline: 2px solid var(--rt-cherry);
    outline-offset: 2px;
}

.rt-featured-vue .rt-featured-preview {
    max-height: 320px;
}

.rt-featured-vue .rt-featured-preview__img {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: contain;
}

.rt-featured-vue .rt-featured-placeholder {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.rt-vue-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.rt-vue-modal {
    max-width: 420px;
    width: 100%;
}

.rt-event-form-theme .note-editor.note-frame {
    border-color: #dee2e6;
}

.rt-event-form-theme .ts-wrapper .ts-control {
    border-radius: 0.35rem;
}

/* —— Hub de eventos (listado / cabeceras create-edit) —— */
.rt-events-hub .rt-pride-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.12) 0%, rgba(0, 40, 104, 0.1) 55%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid #e3e6f0;
    color: #3a3b45;
    font-weight: 600;
}

.rt-pride-ribbon__flag {
    display: inline-block;
    width: 1.25rem;
    height: 0.85rem;
    border-radius: 2px;
    background: linear-gradient(180deg, #ef4444 0%, #ef4444 33%, #fff 33%, #fff 66%, #0038a8 66%, #0038a8 100%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.rt-stat-card .card-body {
    min-height: 4.5rem;
}

.rt-stat-card.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.rt-stat-card.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.rt-stat-card.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.rt-stat-card.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.rt-empty-events__icon {
    width: 4.5rem;
    height: 4.5rem;
}

.rt-events-table-card .table thead th {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5a5c69;
}

.rt-sport-profile-block .rt-race-quick-tags .btn {
    font-size: 0.75rem;
}

/* Flex gap (BS4 no trae utilities gap) */
.rt-flex-gap-1 {
    gap: 0.25rem;
}

.rt-flex-gap-2 {
    gap: 0.5rem;
}

.rt-flex-gap-3 {
    gap: 1rem;
}

/* Ocultar bloques Alpine antes de que el JS se inicialice */
[x-cloak] { display: none !important; }

/* ——————————————————————————————————————
   Tabla de eventos estilo WordPress
   —————————————————————————————————————— */
.rt-events-wp-table td {
    vertical-align: top;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.rt-ev-title {
    font-size: 0.95rem;
    line-height: 1.3;
}

.rt-badge-xs {
    font-size: 0.67rem !important;
    padding: 0.2em 0.5em !important;
    font-weight: 600;
}

/* Acciones inline (hover reveal) */
.rt-ev-actions {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.1rem;
    margin-top: 0.3rem;
}

.rt-ev-row:hover .rt-ev-actions,
.rt-ev-row:focus-within .rt-ev-actions {
    display: flex;
}

.rt-ev-action {
    font-size: 0.78rem;
    color: #0073aa;
    text-decoration: none;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
}

.rt-ev-action:hover {
    color: var(--rt-cherry);
    text-decoration: underline;
}

.rt-ev-action--danger {
    color: #dc3545 !important;
}

.rt-ev-action--danger:hover {
    color: #a71d2a !important;
}

.rt-ev-sep {
    color: #ccc;
    font-size: 0.78rem;
    pointer-events: none;
}

.btn-reset {
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Barra de capacidad */
.rt-capacity-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    width: 60px;
    margin: 0 auto;
}

.rt-capacity-bar__fill {
    height: 100%;
    background: #1cc88a;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.rt-capacity-bar__fill--warn {
    background: #f6c23e;
}

.rt-capacity-bar__fill--danger {
    background: var(--rt-cherry);
}

/* ——————————————————————————————————————
   Barra sticky de guardado
   —————————————————————————————————————— */
.rt-sticky-save {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: linear-gradient(90deg, #111 0%, #1a1a2e 100%);
    padding: 0.6rem 1.25rem;
    border-top: 3px solid var(--rt-cherry);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
    animation: rt-slide-up 0.2s ease;
}

@keyframes rt-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.rt-sticky-save .rt-sticky-save__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 40%;
}

/* Paso 3 del form siempre visible — ajuste visual */
#rt-step-enviar {
    border-top: 3px solid var(--rt-cherry) !important;
    border-radius: 0.5rem;
}

/* ——————————————————————————————————————
   Steps pill nav (compact, inside form card)
   —————————————————————————————————————— */
.rt-steps-bar {
    flex-wrap: wrap;
}

.rt-step-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #3a3b45;
    text-decoration: none !important;
    background: #f4f6fc;
    border: 1px solid #e3e6f0;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.rt-step-pill:hover {
    background: #fff5f6;
    border-color: var(--rt-cherry);
    color: var(--rt-cherry);
}

.rt-step-pill-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    background: #111;
    color: #fff;
    flex-shrink: 0;
}

.rt-step-pill:hover .rt-step-pill-n {
    background: var(--rt-cherry);
}

.rt-step-pill-sep {
    color: #c4c8d4;
    font-size: 1rem;
    line-height: 1;
    pointer-events: none;
    flex-shrink: 0;
}

/* ——————————————————————————————————————
   Venue / Seat Map Builder
   —————————————————————————————————————— */
.rt-map-canvas-wrap {
    position: relative;
    width: 100%;
    padding-top: 61.11%; /* 550/900 */
    background: #f0f2f5;
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
    user-select: none;
    touch-action: none;
}

.rt-map-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.rt-map-zone {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.18);
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    overflow: visible;
    transition: box-shadow 0.1s ease, border-color 0.1s ease;
}

.rt-map-zone:active {
    cursor: grabbing;
}

.rt-map-zone.rt-map-selected {
    border-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 0 5px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.25);
}

.rt-map-zone__label {
    font-size: clamp(0.55rem, 1.2cqi, 0.875rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    text-align: center;
    line-height: 1.2;
    pointer-events: none;
    padding: 0 0.25rem;
}

.rt-map-zone__cap {
    font-size: clamp(0.5rem, 1cqi, 0.75rem);
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.rt-map-resize-handle {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid rgba(0, 0, 0, 0.25);
    border-radius: 3px 0 4px 0;
    cursor: se-resize;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rt-map-resize-handle::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid rgba(0, 0, 0, 0.4);
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.4);
}

.rt-map-marker {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: grab;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.1s ease;
}

.rt-map-marker:active {
    cursor: grabbing;
}

.rt-map-marker.rt-map-selected {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 0 5px rgba(0, 0, 0, 0.6);
}

.rt-map-marker__label {
    font-size: clamp(0.5rem, 1cqi, 0.7rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.04em;
    text-align: center;
    pointer-events: none;
    padding: 0 0.2rem;
}

.rt-map-panel {
    min-width: 0;
}

.rt-map-color-swatch {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.1s ease, transform 0.1s ease;
}

.rt-map-color-swatch:hover,
.rt-map-color-swatch.rt-swatch-active {
    border-color: #111;
    transform: scale(1.2);
}

.rt-map-total-cap {
    font-size: 0.8125rem;
}

@media (max-width: 767px) {
    .rt-map-canvas-wrap {
        padding-top: 66.67%; /* slightly taller on mobile */
    }

    .rt-map-panel .btn {
        font-size: 0.72rem;
        padding: 0.25rem 0.5rem;
    }
}

/* —— Paginación: Laravel (nav > ul) y Bootstrap Table (div.pagination > ul) ——
   Importante: BT usa un div con clase .pagination como wrapper; los círculos solo en ul.pagination. */

#content-wrapper .bootstrap-table .fixed-table-pagination {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 1rem;
    padding: 0.85rem 1rem 1rem;
    margin: 0;
    border-top: 1px solid rgba(17, 17, 17, 0.06);
    background: linear-gradient(180deg, #f8f8f9 0%, #ffffff 100%);
    text-align: center;
}

#content-wrapper .bootstrap-table .fixed-table-pagination::after {
    display: none;
}

#content-wrapper .bootstrap-table .fixed-table-pagination > .pagination-detail,
#content-wrapper .bootstrap-table .fixed-table-pagination > div.pagination {
    float: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

#content-wrapper .bootstrap-table .fixed-table-pagination > .pagination-detail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    width: 100%;
}

#content-wrapper .bootstrap-table .fixed-table-pagination .pagination-info {
    margin-right: 0 !important;
    line-height: 1.4 !important;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(17, 17, 17, 0.55);
}

#content-wrapper .bootstrap-table .fixed-table-pagination .page-list {
    display: inline-flex !important;
    align-items: center;
}

#content-wrapper .bootstrap-table .fixed-table-pagination .page-list .btn-group .dropdown-toggle {
    border-radius: 999px !important;
    font-weight: 700;
    font-size: 0.8125rem;
    padding: 0.35rem 0.9rem !important;
    color: #111 !important;
    background: #fff !important;
    border: 1px solid rgba(17, 17, 17, 0.14) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

#content-wrapper .bootstrap-table .fixed-table-pagination .page-list .btn-group .dropdown-toggle:hover,
#content-wrapper .bootstrap-table .fixed-table-pagination .page-list .btn-group .dropdown-toggle:focus {
    color: #fff !important;
    background: #111 !important;
    border-color: #111 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

#content-wrapper .bootstrap-table .fixed-table-pagination .page-list .dropdown-menu {
    border-radius: 12px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 0.35rem;
    min-width: 5rem;
}

#content-wrapper .bootstrap-table .fixed-table-pagination .page-list .dropdown-menu .dropdown-item {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.35rem 0.75rem;
}

#content-wrapper .bootstrap-table .fixed-table-pagination .page-list .dropdown-menu .dropdown-item:hover,
#content-wrapper .bootstrap-table .fixed-table-pagination .page-list .dropdown-menu .dropdown-item.active {
    color: #fff !important;
    background: var(--rt-cherry) !important;
}

#content-wrapper .bootstrap-table .fixed-table-pagination > div.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#content-wrapper ul.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0;
    padding: 0.15rem 0;
    list-style: none;
}

#content-wrapper ul.pagination .page-item {
    margin: 0;
}

#content-wrapper ul.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.45rem;
    height: 2.45rem;
    padding: 0 0.35rem;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.8125rem;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #111;
    background-color: #fff;
    border: 1px solid rgba(17, 17, 17, 0.14);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.12s ease;
}

/* Anterior / Siguiente / … : píldora (no círculo); solo los números van redondos */
#content-wrapper ul.pagination .page-item.page-pre .page-link,
#content-wrapper ul.pagination .page-item.page-next .page-link,
#content-wrapper ul.pagination .page-item.page-first-separator .page-link,
#content-wrapper ul.pagination .page-item.page-last-separator .page-link,
#content-wrapper ul.pagination .page-item.page-intermediate .page-link,
#content-wrapper ul.pagination a.page-link[rel='prev'],
#content-wrapper ul.pagination a.page-link[rel='next'] {
    border-radius: 12px;
    min-width: unset;
    padding: 0 1rem;
    white-space: nowrap;
}

#content-wrapper ul.pagination .page-item.page-first-separator .page-link,
#content-wrapper ul.pagination .page-item.page-last-separator .page-link {
    min-width: 2.45rem;
    padding: 0 0.5rem;
}

#content-wrapper ul.pagination .page-link:hover {
    color: #fff;
    background-color: #111;
    border-color: #111;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

#content-wrapper ul.pagination .page-item.active .page-link {
    color: #fff;
    background-color: var(--rt-cherry);
    border-color: var(--rt-cherry);
    box-shadow: 0 3px 10px rgba(185, 24, 48, 0.35);
    transform: none;
}

#content-wrapper ul.pagination .page-item.disabled .page-link {
    color: rgba(17, 17, 17, 0.38);
    background-color: rgba(255, 255, 255, 0.85);
    border-color: rgba(17, 17, 17, 0.08);
    box-shadow: none;
    pointer-events: none;
    transform: none;
}

#content-wrapper ul.pagination .page-item:not(.disabled):not(.active) .page-link:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(185, 24, 48, 0.25);
}

/* SweetAlert2 — diálogos CRUD (ver detalle, etc.) */
.swal2-container.swal2-backdrop-show {
    z-index: 20000 !important;
}

.rt-swal-crud-popup.swal2-popup {
    border-radius: 16px !important;
    padding: 1.25rem 1.25rem 1rem !important;
}

.rt-swal-crud-html.swal2-html-container {
    max-height: min(72vh, 680px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin: 0.75rem 0 0 !important;
    text-align: left !important;
    line-height: 1.45;
}

.rt-swal-crud-close.swal2-close {
    font-size: 1.75rem !important;
    font-weight: 400 !important;
    color: #6c757d !important;
}

/* Detalle de pago (SweetAlert): tarjetas y tipografía para usuario final */
.rt-pay-detail {
    font-size: 0.9375rem;
    color: #1c1c1e;
}

.rt-pay-detail .rt-pd-card {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 1rem 1.1rem;
}

.rt-pay-detail .rt-pd-card-tx {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.rt-pay-detail .rt-pd-card-att {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.rt-pay-detail .rt-pd-card-title {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8e8e93;
    margin-bottom: 0.65rem;
}

.rt-pay-detail .rt-pd-section-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8e8e93;
}

.rt-pay-detail .rt-pd-strong {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
}

.rt-pay-detail .rt-pd-line {
    margin-bottom: 0.35rem;
    line-height: 1.45;
}

.rt-pay-detail .rt-pd-muted {
    color: #8e8e93;
    font-weight: 600;
    margin-right: 0.25rem;
}

.rt-pay-detail .rt-pd-amount {
    color: var(--rt-cherry, #b91830);
    font-size: 1.1rem;
}

.rt-pay-detail .rt-pd-badge-success {
    background: rgba(56, 193, 114, 0.15) !important;
    color: #1e7e4a !important;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

.rt-pay-detail .rt-pd-badge-warn {
    background: rgba(246, 153, 63, 0.2) !important;
    color: #9a5a0f !important;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

.rt-pay-detail .rt-pd-badge-muted {
    background: rgba(108, 117, 125, 0.15) !important;
    color: #495057 !important;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

.rt-pay-detail .rt-pd-gateway-pill {
    display: inline-block;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #1c1c1e;
    color: #fff;
}

.rt-pay-detail .rt-pd-dl dt {
    font-size: 0.72rem;
    font-weight: 700;
    color: #8e8e93;
    margin-top: 0.5rem;
    margin-bottom: 0.15rem;
}

.rt-pay-detail .rt-pd-dl dt:first-child {
    margin-top: 0;
}

.rt-pay-detail .rt-pd-dl dd {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.rt-pay-detail .rt-pd-dl-compact dt {
    margin-top: 0.35rem;
}

.rt-pay-detail .rt-pd-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    word-break: break-all;
}

.rt-pay-detail .rt-pd-qr-wrap {
    background: #fafafa;
    border-radius: 12px;
    border: 1px dashed rgba(0, 0, 0, 0.1);
    max-width: 200px;
}

.rt-pay-detail .rt-pd-att-info {
    min-width: 0;
}

.rt-pay-detail .rt-pd-att-qr-col {
    min-width: 0;
}

@media (min-width: 768px) {
    .rt-pay-detail .rt-pd-att-qr-col {
        border-left: 1px solid rgba(0, 0, 0, 0.06);
        padding-left: 0.75rem;
    }
}

.rt-pay-detail .rt-pd-qr-hint {
    font-size: 0.72rem;
    line-height: 1.35;
    color: #8e8e93;
    max-width: 220px;
}

.rt-pay-detail .rt-pd-reg .rt-pd-dl dt {
    font-size: 0.68rem;
}

.rt-pay-detail .rt-pd-reg .rt-pd-dl dd {
    font-size: 0.82rem;
}

/* Asistentes / check-in por evento */
.rt-ev-attendees .rt-ev-att-breadcrumb a {
    color: #8e8e93;
}

.rt-ev-attendees .rt-ev-att-breadcrumb a:hover {
    color: var(--rt-cherry, #b91830);
    text-decoration: none;
}

.rt-ev-att-hero {
    border-radius: var(--rt-card-radius, 16px);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.rt-ev-att-hero-kicker {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: #8e8e93;
}

.rt-ev-att-scan {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.rt-ev-att-stat {
    border-radius: 14px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.rt-ev-att-stat--ok .card-body {
    border-left: 4px solid #38c172;
}

.rt-ev-att-stat--pend .card-body {
    border-left: 4px solid #f6993f;
}

.rt-ev-att-stat--rate .card-body {
    border-left: 4px solid #3490dc;
}

.rt-ev-att-table-wrap .bootstrap-table .fixed-table-toolbar {
    padding: 0.75rem 1rem 0;
}

.rt-ev-att-row-flash {
    animation: rt-ev-att-flash 1.8s ease-out;
}

@keyframes rt-ev-att-flash {
    0% {
        background-color: rgba(185, 24, 48, 0.18);
    }
    100% {
        background-color: transparent;
    }
}

/* Detalle asistente (SweetAlert2) */
.swal2-popup.rt-ev-att-detail-popup {
    width: min(46rem, calc(100vw - 1.25rem)) !important;
    max-width: calc(100vw - 1.25rem) !important;
    box-sizing: border-box;
}

.rt-ev-att-detail-popup {
    border-radius: 16px !important;
    padding: 0.5rem 0.5rem 0.25rem !important;
}

.swal2-popup.rt-ev-att-detail-popup .swal2-html-container.rt-ev-detail-html {
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.rt-ev-detail-swal {
    max-width: 100%;
    overflow-x: hidden;
    min-width: 0;
}

.rt-ev-detail-swal > .row {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.rt-ev-reg-dd {
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.rt-ev-reg-code {
    word-break: break-all;
    white-space: normal;
}

.rt-ev-reg-json {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 0.75rem;
    max-width: 100%;
}

.rt-ev-detail-swal .rt-ev-detail-reg {
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.rt-ev-detail-swal code {
    word-break: break-all;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

@media (min-width: 768px) {
    .rt-ev-detail-qr-col {
        border-left: 1px solid #e3e6f0;
    }
}

.rt-ev-detail-qr-mount img {
    display: block;
    max-width: 100%;
    height: auto;
}

.rt-ev-qr-reader video {
    width: 100% !important;
    border-radius: 12px;
}

/* Tablas dashboard: acciones en columna estrecha (no usar gap: rompe btn-group) */
.table td .rt-dash-table-actions.btn-group {
    flex-wrap: wrap;
    justify-content: center;
}

/* Pestañas resumen asistentes / pedidos */
.rt-ev-att-nav .nav-link {
    color: #5a5c69;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 0.35rem 0.35rem 0 0;
}

.rt-ev-att-nav .nav-link:hover {
    color: var(--rt-cherry);
}

.rt-ev-att-nav .nav-link.active {
    color: var(--rt-cherry);
    background-color: #fff;
    border-color: #e3e6f0 #e3e6f0 #fff;
    font-weight: 700;
}

.rt-ev-att-tab-content {
    border-color: #e3e6f0 !important;
}

.swal2-popup.rt-ev-overview-swal {
    max-width: calc(100vw - 1.25rem) !important;
}

.rt-ev-overview-swal-html {
    max-height: min(70vh, 640px);
    overflow-x: hidden;
    overflow-y: auto;
}

.rt-ev-att-col-info {
    min-width: 17rem;
    max-width: 28rem;
}

.rt-ev-att-person .btn-link {
    vertical-align: baseline;
}

.rt-ev-registro-extras {
    max-width: 18rem;
}

/* Recinto: PlaceAutocompleteElement (Google Maps) */
.rt-venue-pac-host gmp-place-autocomplete {
    width: 100%;
    display: block;
}

/* SweetAlert2: mensajes flash globales del dashboard */
.swal2-popup.rt-dashboard-flash-swal {
    border-radius: 16px !important;
    padding: 1.5rem 1.35rem 1.35rem !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
}
.swal2-popup.rt-dashboard-flash-swal .swal2-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1c1c1e;
    line-height: 1.45;
}

/* Listados dashboard: botón principal y secundario misma silueta (usuarios, organizadores, …) */
.rt-dash-toolbar-actions {
    column-gap: 1.25rem !important;
    row-gap: 0.75rem !important;
}

.rt-dash-toolbar-filter {
    gap: 0.5rem 0.65rem;
}

.rt-dash-toolbar-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.375rem;
    padding: 0.375rem 0.9rem;
    font-weight: 700;
    border-radius: 10px;
    line-height: 1.2;
}

.rt-dash-toolbar-actions .btn i {
    font-size: 1rem;
    line-height: 1;
}

.rt-dash-toolbar-actions .btn.btn-outline-secondary {
    border-width: 1px;
    background-color: #fff;
}

/* .rt-ios-input fuerza padding simétrico y pisa el padding-right de .custom-select; el texto queda bajo la flecha */
select.rt-ios-input.custom-select,
select.rt-ios-input.form-control {
    padding: 0.75rem 2.5rem 0.75rem 1rem !important;
    line-height: 1.45;
}

