.z-n1 {
    z-index: -1;
}

.z-0 {
    z-index: 0;
}

.z-1 {
    z-index: 1;
}

.z-2 {
    z-index: 2;
}

.z-3 {
    z-index: 3;
}

#view h1 {
    overflow: hidden;
}

#anime {
    z-index: 9;
    position: relative;
    width: 100%;
    height: 100%;
}

#anime article {
    height: 100%;
    padding-top: 33%;
}

#anime div {
    width: 3rem;
    height: 3rem;
    margin-top: auto;
    margin-bottom: auto;
    mix-blend-mode: lighten;
}

.showerror {
    position: absolute;
    padding: 0;
    width: 75%;
    z-index: 9;
}

.text-tachado,
.text-tachado * {
    text-decoration: line-through;
}

.text-grey {
    color: #b7b9cc;
}

.text-hidden,
.text-hidden *,
.text-hidden *::before,
.text-hidden *::after,
.text-hidden *::placeholder {
    color: transparent !important;
}

/* .hide-scrollBar {
            width: 100%;
            height: 100%;
        } */

.hide-scrollBar {
    /* scrollbar-width: thin; */
    scrollbar-width: none;
}

.hide-scrollBar::-webkit-scrollbar,
.hide-scrollBar::-webkit-scrollbar-thumb,
.hide-scrollBar::-webkit-scrollbar-track,
.hide-scrollBar::-webkit-scrollbar-thumb {
    width: 0px;
    height: 0px;
    background-color: transparent;
}

.select2 {
    width: 100% !important;
}

.collapse.show {
    z-index: 1021 !important;
}

h6[data-before]:hover::before {
    content: attr(data-before);
    color: #858796;
}

h6[data-before]:hover {
    color: transparent;
}

h6[data-before]:hover * {
    color: #858796;
}

#dataTable_length label,
#dataTable_filter label {
    width: 100%;
}

.from-label-primary label {
    color: #4e73df !important;
}

.gap-0 {
    gap: 0;
}

.gap-1 {
    gap: calc(1rem * 0.25);
}

.gap-2 {
    gap: calc(1rem * 0.5);
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: calc(1rem * 1.5);
}

.gap-5 {
    gap: calc(1rem * 3);
}

.bg-futbol {
    mask-image: url(../img/bal.svg);
    mask-size: cover;
    mask-position: center;
    mask-repeat: no-repeat;
}

.t-shirt {
    mask-image: url('../img/shirt-solid.svg');
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
}

.text-bold {
    font-weight: bold;
}

[role="dialog"] {
    z-index: 1101;
}

[role="dialog"],
[role="dialog"] * {
    box-shadow: none !important;
}

.draggable {
    width: 60px;
    height: 60px;
    background-color: #007bff;
    color: white;
    text-align: center;
    line-height: 60px;
    cursor: pointer;
    position: fixed;
    top: calc(50% - 30px);
    right: 10px;
    /* transform: translateY(-50%); */
    border-radius: 50%;
    box-shadow: 0px 0px 10px 5px rgb(0 123 255 / 50%);
    font-size: 24px;
    z-index: 3000;
}

.dialog-form {
    display: none;
}

/* .ui-widget-header {
                border: none;
                border-bottom: 1px solid #e3e6f0;
                background: transparent;
            } */

.ui-dialog-titlebar {
    padding: 0.75rem 1.25rem !important;
    background-color: #f8f9fc;
    border: none;
    box-shadow: none;
    border-bottom: 1px solid #e3e6f0;
}

.ui-dialog {
    padding: 0 !important;
    border: 1px solid #e3e6f0 !important;
}

.ui-dialog-titlebar-close {
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    line-height: 1.2;
}

.saldo .badge-counter {
    margin-top: -1.5rem !important;
}

/* Skeleton loaders (global) */
.skeleton {
    position: relative;
    overflow: hidden;
    background: #e9ecef;
    border-radius: 6px;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .65) 50%, rgba(255, 255, 255, 0) 100%);
    animation: skeleton-shimmer 1.2s infinite;
}

.skeleton-line {
    height: 12px;
    margin-bottom: 8px;
}

.skeleton-line.lg {
    height: 24px;
    width: 65%;
    margin-bottom: 0;
}

.skeleton-pill {
    height: 32px;
    border-radius: 8px;
}

.skeleton-toolbar {
    height: 30px;
    width: 150px;
    border-radius: 8px;
}

.skeleton-card {
    min-height: 210px;
}

.skeleton-chart {
    height: 280px;
    border-radius: 10px;
}

@keyframes skeleton-shimmer {
    100% {
        left: 150%;
    }
}


.swal2-container {
    z-index: 2000;
}

#deudaForm {
    position: relative;
}

#loadingPaymet {
    position: absolute;
    background-color: rgb(255 255 255 / 75%);
    height: 100%;
    width: 100%;
    z-index: 10;
    text-align: center;
    overflow: hidden;
    padding-top: 20px;
}

#loadingPaymet i {
    font-size: 150px;
    display: block;
}

/* Carrusel horizontal en móvil, grid en desktop para summary de módulos */
.summary-carousel {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}
.summary-card {
    min-width: 220px;
    max-width: 260px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}
@media (min-width: 992px) {
    .summary-carousel {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
        overflow-x: unset;
        padding-bottom: 0;
    }
    .summary-card {
        min-width: 0;
        max-width: unset;
    }
}
.summary-carousel::-webkit-scrollbar {
    height: 6px;
    background: #f1f1f1;
}
.summary-carousel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
}

#loadingPaymet p {
    font-size: 20px;
}

#loadingPaymet span {
    font-size: 10px;
}

.select2-container {
    z-index: 11000;
}

.topbar .dropdown .dropdown-menu {
    z-index: 2000;
}

input.form-control {
    transition: all 0.3s ease;
}

.nowrap {
    overflow: hidden;
    text-wrap: nowrap;
    text-overflow: ellipsis;
}

@media (max-width: 450px) {
    .pb-xs-3 {
        padding-bottom: 1rem !important;
    }
}

.select2-selection__choice {
    text-transform: uppercase;
}

.select2-results__option {
    text-transform: uppercase;
}


.mesa-tecnica * {
    font-family: coolvetica, sans-serif;
    opacity: 1;
}


.mesa-tecnica {
    /* background-image: url(../images/mesa_1.png); */
    background-size: 142%;
    background-position-x: center;
    background-position-y: top;
}

.mesa-tecnica .tittle {
    font-size: 33px;
    font-weight: 300;
    color: black;
    border-width: 3px !important;
    border-color: black !important;
}

.mesa-tecnica .tittle b {
    font-weight: 500;
}

.mesa-tecnica .detail {
    font-weight: 300;
    color: black;
}

.mesa-tecnica .detail b {
    font-weight: 500;
}

.mesa-tecnica .btn {
    font-size: 22px;
    border-width: 3px;
    text-wrap: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    border-radius: 30px !important;
}

.btn-outline-secondary {
    color: #000000;
    border-color: #000000;
}

.mesa-tecnica .btn-secondary {
    color: #fff;
    background-color: #121213;
    border-color: #000;
}

.mesa-tecnica .btn-secondary:hover {
    color: #000;
    background-color: #f8f9fc;
    border-color: #000;
}

/* .mesa-tecnica .btn-outline-primary,
.mesa-tecnica .btn-outline-secondary,
.mesa-tecnica .btn-outline-success,
.mesa-tecnica .btn-outline-info,
.mesa-tecnica .btn-outline-warning,
.mesa-tecnica .btn-outline-danger,
.mesa-tecnica .btn-outline-dark {
    background-color: #fff;
} */

.mesa-tecnica .btn-outline-secondary {
    color: #000;
    background-color: #fff;
    border-color: #000;
}

.mesa-tecnica .btn-outline-secondary:hover {
    color: #fff;
    background-color: #121213;
    border-color: #000;
}

/* .mesa-tecnica .btn-secondary:not(:disabled):not(.disabled):active, */
.mesa-tecnica .btn-secondary:not(:disabled):not(.disabled).active,
.mesa-tecnica .show>.btn-secondary.dropdown-toggle {
    color: #fff;
    background-color: #292a2e;
    border-color: #000;
}

/* .mesa-tecnica .btn-outline-secondary:not(:disabled):not(.disabled):active, */
.mesa-tecnica .btn-outline-secondary:not(:disabled):not(.disabled).active,
.mesa-tecnica .show>.btn-outline-secondary.dropdown-toggle {
    color: #fff;
    background-color: #292a2e;
    border-color: #000;
}

.mesa-tecnica .btn-left:hover {
    color: #000 !important;
    background-color: #f8f9fc !important;
    border-color: #000 !important;
}

.mesa-tecnica .btn-right:hover {
    color: #fff !important;
    background-color: #121213 !important;
    border-color: #000 !important;
}

.mesa-tecnica .time .progress {
    margin-top: 1rem;
    position: relative;
    overflow: visible;
}

.mesa-tecnica .time .progress:before {
    content: attr(data-before);
    font-size: 22px;
    position: absolute;
    left: 0;
    top: -5px;
    z-index: 2;
    background-color: #f8f9fc;
    width: 130px;
    height: 29px;
    /* color: #4caf50; */
    line-height: normal;
    text-align: center;
}

.mesa-tecnica .time .progress:after {
    content: attr(data-after);
    font-size: 22px;
    position: absolute;
    right: 0;
    top: -5px;
    z-index: 2;
    background-color: #f8f9fc;
    width: 130px;
    height: 29px;
    /* color: #4caf50; */
    line-height: normal;
    text-align: center;
}

.mesa-tecnica .foult .progress {
    height: 0.6rem;
    border: 2px solid black;
}

.mesa-tecnica .dorsal {
    width: 69.8px;
    height: 69.8px;
}

.mesa-tecnica .dorsals {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.w-60 {
    width: 60% !important;
}

.h-0 {
    height: 0 !important;
    overflow: hidden;
    padding: 0;
}

.opacity-0,
.opacity-off {
    opacity: 0;
}

.mesa-tecnica .control {
    transition: 1s all;
}


.mesa-tecnica .bg-dark {
    background-color: black !important;
}

.mesa-tecnica .bg-dark .btn-secondary {
    border-color: white;
}

.mesa-tecnica .bg-dark .btn-outline-secondary:hover {
    border-color: white;
}


.mesa-tecnica .border {
    border-width: 3px !important;
    border-color: black !important;
    border-radius: 35px !important;
}

.mesa-tecnica .team .opacity-0 {
    height: 0;
    overflow: hidden;
}

.mesa-tecnica .contentTimeLine {
    width: 100%;
    overflow-x: auto;
    border: 3px solid black;
    border-radius: 25px;
    padding: 10px 10px;
}

.mesa-tecnica .timeLine {
    display: flex;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    align-content: space-around;
    flex-wrap: nowrap;
    flex-direction: row;
}

.mesa-tecnica .timeLine .btn {
    scroll-snap-align: center;
    flex: none;
}

.onlyActive {
    display: none;
}

.sidebar-toggled .onlyActive {
    display: block;
}


.mesa-tecnica .btn-solid {
    border-radius: 0px !important;
}

.mesa-tecnica .colors {
    border-radius: 30px;
    overflow: hidden;
    border: 2px solid black;
}

.mesa-tecnica .colors-btn {
    border-radius: 20px;
    overflow: hidden;
}

.mesa-tecnica .jugadores .btn {
    font-size: 18px;
    border: 2px solid black;
    border-radius: 10px !important;
    font-weight: 300 !important;
}

.mesa-tecnica .tittle-jugadores {
    border-radius: 15px !important;
    overflow: hidden;
}


.mesa-tecnica .color-h {
    position: absolute;
    left: -2px;
    top: -2px;
    height: calc(100% + 4px);
    width: calc(100% + 4px);
    opacity: 0;
    z-index: 2;
}

.mesa-tecnica i {
    /* font-family: "Font Awesome 6 Pro"; */
    font-family: "Font Awesome 5 Free";
}

/* .team-content {
    overflow: hidden;
    transition: 1s all;
} */

.team-content {
    /* overflow: hidden; */
    transition: 1s all;
    display: flex;
    align-content: space-around;
    flex-wrap: nowrap;
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.teamAllContent {
    /* top: 60px; */
    /* position: absolute; */
    width: 100%;
    transform: translate(0px, 0px);
    transition: 1s all;
    flex: none;
    margin-right: 20px;
    scroll-snap-align: center;
}

.btn-alert {
    border-radius: 25px;
    border: 2px solid black;
}

/* .teamAllContent.team-toRight {
    transform: translateX(120%);
}

.teamAllContent.team-toLeft {
    transform: translateX(-120%);
} */

.tooltip {
    z-index: 2000;
}

.theme-smartport {
    --green-light: rgb(0, 219, 172);
    --green-medium: rgb(16, 194, 135);
    --green-dark: rgb(19, 146, 103);
    --yellow: rgb(255, 251, 40);
    --dark: rgb(45, 45, 45);
    --white: rgb(255, 255, 255);

    --mask-logo: url(../img/logo_invert.svg);
    --mask-size: cover;
}

.theme-msp {
    --green-light: #E8521A;
    --green-medium: #F18E0D;
    --green-dark: #1C1C1A;
    --yellow: rgb(255, 251, 40);
    --dark: rgb(45, 45, 45);
    --white: rgb(255, 255, 255);

    --mask-logo: url(../img/msp_invert.png);
    --mask-size: contain;
}

.theme-cvg {
    --green-light: #348a41;
    --green-medium: #0c4f9d;
    /* --green-medium: #ee302e; */
    --green-dark: #192953;
    --yellow: #FFD700;
    --dark: #202020;
    --white: #FFFFFF;

    --mask-logo: url(../img/cvg_invert.png);
    --mask-size: contain;
}

body {
    background-color: var(--green-light);
    background-image: linear-gradient(180deg, var(--green-light) 10%, var(--green-dark) 100%);
}

.btn-primary {
    background-color: var(--green-light);
    border-color: var(--green-dark);
}


.btn-primary:hover {
    background-color: var(--green-dark);
    border-color: var(--green-light);
}

.shepherd-button,
.btn-secondary {
    background-color: var(--green-dark);
    border-color: var(--green-light);
}

.shepherd-button:hover,
.btn-secondary:hover {
    background-color: var(--green-light);
    border-color: var(--green-dark);
}

.bg-gradient-primary {
    background-color: var(--green-light);
    background-image: linear-gradient(180deg, var(--green-light) 10%, var(--green-dark) 100%);
}

/* .btn-primary:not(:disabled):not(.disabled):active, */
.btn-primary:not(:disabled):not(.disabled).active,
.show>.btn-primary.dropdown-toggle {
    background-color: var(--green-dark);
    border-color: var(--green-light);
}

/* .btn-primary:not(:disabled):not(.disabled):active:focus, */
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show>.btn-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--green-dark), 0.5);
}

.btn-primary:focus,
.btn-primary.focus {
    background-color: var(--green-dark);
    border-color: var(--green-light);
    box-shadow: 0 0 0 0.2rem rgba(var(--green-dark), 0.5);
}

.btn-primary.disabled,
.btn-primary:disabled {
    background-color: var(--green-light);
    border-color: var(--green-dark);
    opacity: 0.9;
    cursor: not-allowed !important;
}

.sidebar .sidebar-brand .sidebar-brand-icon i {
    font-size: 3.8rem !important;
}

.bg-smartport-1 {
    background-color: var(--green-light);
}

.bg-smartport-2 {
    background-color: var(--green-dark);
}

.bg-smartport-3 {
    background-color: var(--green-medium);
}

.draggable {
    background-color: var(--green-dark);
    box-shadow: 0px 0px 10px 5px rgb(var(--green-dark) / 50%);
    transition: background-color 0.25s, box-shadow 0.25s;
}

.draggable:hover {
    background-color: var(--green-light);
    box-shadow: 0px 0px 10px 5px rgb(var(--green-dark) / 50%);
}

.text-primary {
    color: var(--green-dark) !important;
}

.custom-control-input:checked~.custom-control-label::before {
    color: #fff;
    border-color: var(--green-dark) !important;
    background-color: var(--green-dark) !important;
}

.custom-control-input:checked~.custom-control-label.text-danger::before {
    color: #fff;
    border-color: red !important;
    background-color: red !important;
}


/* .msp .img-profile {
    filter: invert(1);
} */

.border-left-primary {
    border-left: 0.25rem solid var(--green-dark) !important;
}

.bg-smartport {
    mask-image: url(../img/logo_invert.svg);
    mask-size: cover;
    mask-position: center;
    mask-repeat: no-repeat;
}

.bg-msp {
    mask-image: url(../img/msp_invert.png);
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
}

.bg-theme {
    mask-image: var(--mask-logo);
    mask-size: var(--mask-size);
    mask-position: center;
    mask-repeat: no-repeat;
}

.dropdown .dropdown-menu {
    z-index: 1020;
}




/* Mesa Técnica V2 - Parte Superior */

#mt-banner {
    background-color: white;
    margin-top: -3vh;
    padding: 3vh 2vw 0vh 2vw;
    color: #202124;
}

#mt-banner .number {
    font-size: 35pt;
    font-weight: 400;
}

#mt-banner .gameInfo {
    font-weight: 100;
    font-size: 11px;
}

/* Mesa Técnica V2 - Parte Central */

#mt-resume {
    background: #ffffff;
    width: 96%;
    margin-left: 2%;
    min-height: 25vh;
    border-radius: 2vw;
    box-shadow: 0 0.15rem 0.75rem 0 rgb(58 59 69 / 30%) !important;
    color: #202124;
}

@media (max-width: 768px) {
    #mt-resume {
        min-height: 20vh;
    }
}


#mt-resume .bg-grey {
    background-color: #d6d6d6;
    border-radius: 2vw;
}

#mt-resume .team {
    text-transform: uppercase;
    font-size: 33pt;
    margin-bottom: -10px;
    font-weight: 400;
}

#mt-resume .letter {
    text-transform: uppercase;
    font-size: 11pt;
    line-height: 10pt;
}

#mt-resume .scoreNumber {
    font-size: 50pt;
    line-height: 45pt;
    font-weight: 600;
}

#mt-resume .penalNumber {
    line-height: 15pt;
    font-size: 20pt;
}

#mt-resume .fa-square {
    font-size: 20pt;
    letter-spacing: 0px;
    overflow: hidden;
    line-height: 20pt;
}

#mt-resume .redCard {
    /* width: 20px;
    height: 30px;
    border-radius: 4px; */
    font-size: 30px;
}

#mt-resume .foul {
    background-color: #dee2e6;
    height: 4px;
    width: 36px;
    margin: 20px 0px 10px 1px;
    border-radius: 2px;
    opacity: 0.45;
}

#mt-resume .foul.active {
    background-color: #e74a3b;
    opacity: 1;
}


/* Mesa Técnica V2 - Parte de Controles */

#mt-controlers {
    width: 96%;
    margin-left: 2%;
    margin-top: 3vh;
    color: #202124;
}

#mt-controlers .btn {
    border-radius: 2vw;
    background-color: white;
    border: 1pt solid #20212485;
    color: #202124;
}

#mt-controlers .btn-xs,
#mt-controlers .btn-md,
#mt-controlers .btn-lg {
    width: calc(80% - 0.25rem);
    margin-right: 0.25rem;
    font-size: 14pt;
    line-height: 20pt;
}

#mt-controlers .btn-md {
    width: calc(40% - 0.25rem);
}

#mt-controlers .btn-xs {
    width: calc(20% - 0.25rem);
    white-space: nowrap;
}

#mt-controlers .btn-xs i,
#mt-controlers .btn-md i,
#mt-controlers .btn-lg i {
    font-size: 20pt;
    line-height: 20pt;
}

#mt-controlers .btn-sm {
    width: 20%;
    font-size: 11pt;
    line-height: 15pt;
}

#mt-controlers .btn-sm i {
    font-size: 20pt;
}

/* Mesa Técnica V2 - Preload */

#mt-preload {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

#mt-preload.close {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

#mt-preload .loader-content {
    text-align: center;
    font-size: 16pt;
    color: #202124;
}

#mt-preload i {
    font-size: 30pt;
    margin-bottom: 10px;
    display: block;
}

/* Mesa Técnica V2 - Foco Menu parte Inferior */

#mt-foco {
    width: 100vw;
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
    background-color: rgba(0, 0, 0, 0.7);
    margin-top: 0;
    position: fixed;
    z-index: 3;
    bottom: 0;
    left: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    /* height: 0vh; */
    opacity: 0;
}

#mt-foco.open {
    opacity: 1;
}


/* Mesa Técnica V2 - Menu Otros parte Inferior */

#mt-menu-otros {
    background-color: #ffffff;
    width: 50vw;
    right: 2%;
    bottom: 0;
    bottom: env(safe-area-inset-bottom, 0);
    position: fixed;
    z-index: 5;
    transition: 0.2s all;
    border-radius: 2vw 2vw 0vw 0vw;
    height: 0;
    opacity: 0;
}

#mt-menu-otros.open {
    height: 48vh;
    opacity: 1;
}


/* Mesa Técnica V2 - Menu Inferior */

#mt-menu {
    position: fixed;
    width: 96%;
    left: 2%;
    bottom: 0;
    bottom: env(safe-area-inset-bottom, 0);
    height: 14vh;
    background-color: #ffffff;
    color: #bebebe;
    border-radius: 2vw 2vw 0vw 0vw;
    transition: 0.2s all;
    overflow: hidden;
    z-index: 6;
}

#mt-menu.open {
    height: 57vh;
}

#mt-menu.open-dc {
    height: calc(100vh - 85px);
    height: calc(100dvh - 85px);
}

#mt-menu .nav-link {
    color: #bebebe;
    z-index: 2;
}

#mt-menu .nav-link.active {
    color: #202124;
    font-weight: bold;
}

.shadow-top {
    box-shadow: 0 -0.15rem 0.75rem 0 rgb(58 59 69 / 30%) !important;
}

#mt-menu .nav-link i {
    font-size: 30px;
    transition: 0.2s all;
}

#mt-menu .nav {
    width: 98%;
}

#mt-menu .nav-item {
    width: 25%;
    font-size: 11pt;
}

#mt-menu .timelineButton {
    top: 0;
}

/* Mesa Técnica V2 - Contenido Menu */

#dc-content,
#mt-content {
    /* background-color: red; */
    width: 100%;
    height: calc(100% - 80px);
    position: absolute;
    top: 0px;
    transition: 0.2s all;
    opacity: 0;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

#mt-menu.open-dc #mt-content {
    display: none;
}

#mt-menu.open-dc #dc-content {
    opacity: 1;
}

#mt-menu.open #dc-content {
    display: none;
}

#mt-menu.open #mt-content {
    opacity: 1;
}


#dc-content .mt-card,
#mt-content .mt-card {
    flex: 0 0 100%;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

#mt-qrScanner .mt-card-head,
#dc-content .mt-card-head,
#mt-content .mt-card-head {
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    height: 50px;
    width: 100%;
    z-index: 1;
    padding: 4px 8px;
    font-weight: 100;
    font-size: 11px;
}

#mt-qrScanner .mt-card-body,
#dc-content .mt-card-body,
#mt-content .mt-card-body {
    min-height: 1px;
    color: #202124;
    /* background-color: red; */
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0px 20px;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    /* overscroll-behavior: contain; */
    /* touch-action: pan-y; */
}

#dc-content table tr,
#dc-content .list-group-item,
#mt-content .mt-card-timeline .list-group-item {
    border: none;
    border-bottom: 1px solid #bebebe;
    font-size: 12px;
}

#dc-content .list-group-item i,
#mt-content .mt-card-timeline .list-group-item i {
    font-size: 20px;
    line-height: 20px;
    width: 25px;
    text-align: center;
}

#dc-content .teams .btn-outline-dark,
#mt-content .teams .btn-outline-dark {
    border: 0;
    border-bottom: 2px solid #bebebe;
    border-radius: 0;
    font-size: 20px;
    color: #bebebe;
}

#dc-content .btn-outline-info,
#mt-content .btn-outline-info {
    font-size: 1.5rem;
    line-height: 1.5rem;
}

#dc-content .btn-outline-dark,
#mt-content .btn-outline-dark {
    color: #202124;
    border-color: #202124;
    font-size: 1.5rem;
    line-height: 1.5rem;
}

#dc-content .team .btn-outline-dark:hover,
#dc-content .team .btn-outline-dark:focus,
/* #dc-content .team .btn-outline-dark:not(:disabled):not(.disabled):active,
#dc-content .team .btn-outline-dark:not(:disabled):not(.disabled).active, */
.show>#dc-content .team .btn-outline-dark.dropdown-toggle,
#mt-content .team .btn-outline-dark:hover,
#mt-content .team .btn-outline-dark:focus,
/* #mt-content .team .btn-outline-dark:not(:disabled):not(.disabled):active,
#mt-content .team .btn-outline-dark:not(:disabled):not(.disabled).active, */
.show>#mt-content .team .btn-outline-dark.dropdown-toggle {
    color: #bebebe;
    background-color: transparent;
    border-color: #bebebe;
    box-shadow: none;
}

#dc-content .btn-outline-dark:hover,
#dc-content .btn-outline-dark:focus,
.show>#dc-content .btn-outline-dark.dropdown-toggle,
#mt-content .btn-outline-dark:hover,
#mt-content .btn-outline-dark:focus,
.show>#mt-content .btn-outline-dark.dropdown-toggle {
    color: #202124;
    background-color: transparent;
    border-color: #202124;
    box-shadow: none;
}


#dc-content .mt-card-body .btn-outline-dark.active,
#mt-content .mt-card-body .btn-outline-dark.active {
    background-color: #202124 !important;
    color: white;
    font-weight: 600;
}

#dc-content .teams .btn-outline-dark.active,
#mt-content .teams .btn-outline-dark.active {
    color: #202124;
    background-color: transparent !important;
    border-color: #202124;
    font-weight: 600;
}

#dc-content .teams .btn-outline-dark:focus:not(.active),
#mt-content .teams .btn-outline-dark:focus:not(.active),
#dc-content .teams .btn-outline-dark:focus-visible:not(.active),
#mt-content .teams .btn-outline-dark:focus-visible:not(.active) {
    color: #bebebe;
    background-color: transparent;
    border-color: #8f98a3;
    box-shadow: 0 0 0 0.14rem rgba(143, 152, 163, 0.35);
}

#dc-content .mt-card-change .mt-card-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
}

#dc-content .mt-card-change .mt-change-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
}

#dc-content .mt-card-change .mt-change-actions {
    flex: 0 0 auto;
    background: #fff;
    border-top: 1px solid #e9ecef;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0));
}

#dc-content .mt-card-change .mt-change-actions .btn {
    min-width: 48%;
}


#mt-menu-otros .mt-card {
    flex: 0 0 100%;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}


#mt-menu-otros .mt-card-head {
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 100%;
    z-index: 1;
    padding: 4px 8px;
    font-weight: 100;
    font-size: 11px;
}

#mt-menu-otros .mt-card-body {
    min-height: 1px;
    color: #202124;
    /* background-color: red; */
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0px 15px;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    /* overscroll-behavior: contain; */
    /* touch-action: pan-y; */
}

#mt-menu-otros .nav-item {
    border: none;
    border-bottom: 1px solid #bebebe;
    font-size: 12px;
}

#mt-menu-otros .nav-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

#mt-menu-otros .nav-link {
    color: #202124;
}

#mt-menu-otros .nav-link.disabled {
    color: #bebebe;
}

#mt-qrScanner {
    /* position: absolute;
    width: 100%;
    height: calc(100vh - 70px);
    top: 70px;
    background-color: #00000075;
    transition: 0.5s opacity;
    z-index: -11111; */
    opacity: 0;
    position: absolute;
    width: 100%;
    left: 0;
    /* bottom: 10vh !important; */
    top: 0;
    height: calc(90vh - 85px);
    background-color: #ffffff;
    color: #bebebe;
    border-radius: 2vw 2vw 0vw 0vw;
    transition: 0.2s all;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
}

#mt-qrScanner.show {
    display: block;
    opacity: 1;
    z-index: 1500;
    pointer-events: auto;
}

#mt-qrScanner .centerbuttom {
    color: #202124;
    font-weight: bold;
    top: 0;
    z-index: 2;
    text-align: center;
    margin: 0 auto;
    left: 0;
    right: 0;
    width: 70px;
}

#mt-qrScanner .centerbuttom i {
    font-size: 30px;
    transition: 0.2s all;
}

#mt-qrScanner #lector-qr {
    max-width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#mt-qrScanner .mt-qr-manual {
    background: #f7f8fa;
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    padding: 8px;
    margin: 8px 0 12px;
    /* margin-bottom: -141px; */
    position: absolute;
    width: calc(100% - 24px);
    z-index: 2;
}

#mt-qrScanner .mt-qr-manual-label {
    color: #4a4f57;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}

#mt-qrScanner .mt-qr-manual-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

#mt-qrScanner .mt-qr-manual-controls .form-control {
    min-height: 34px;
}

#mt-qrScanner .mt-qr-manual-controls .btn {
    min-height: 34px;
    white-space: nowrap;
}

@media (max-width: 576px) {
    #mt-qrScanner .mt-card-body {
        padding: 0 12px;
    }

    #mt-qrScanner .mt-qr-manual-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    #mt-qrScanner .mt-qr-manual-controls .btn {
        width: 100%;
    }
}

#mt-qrScanner .img-qr {
    border: 5px solid transparent;
    border-radius: 20px;
    position: relative;
    background-origin: border-box;
    background: linear-gradient(to right, rgb(251, 234, 16), rgb(5, 152, 63)) border-box;
}

#mt-qrScanner .img-qr::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    border-radius: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

#mt-qrScanner .img-qr-deleg {
    position: relative;
    overflow: hidden;
}

#mt-qrScanner .img-qr-deleg::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 50%;
    top: 0;
    right: 12px;
    background-repeat: no-repeat;
    /* background-position: center;
    background-size: contain; */
    background-position: center left;
    background-size: 200%;
    z-index: 0;
    opacity: 0.15;
}

#debug {
    position: absolute;
    z-index: 2060;
    background-color: black;
    color: currentcolor;
    width: 100%;
    height: 100%;
    overflow: auto;
}

#debug p {
    background-color: #2e2d2d;
    color: #b9b91f;
    padding: 5px;
}

.input-group-pw .input-group-append .input-group-text {
    border-radius: 0rem 10rem 10rem 0rem;
    background-color: transparent;
    border-left: 0px;
    width: 44px;
}

[role="dialog"] {
    z-index: 10000;
}

.swal2-container {
    z-index: 20000;
}

.summaryPenalPosition {
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    height: 42px;
}

.ui-dialog.responsive-dialog {
    width: 90% !important;
    max-width: 600px;
}


/* Ajuste responsive para SweetAlert2 */
.swal-wide {
    width: 720px;
    /* para escritorio */
    max-width: 95vw;
    /* no pasa del viewport */
}

@media (max-width: 768px) {
    .swal-wide {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0;
        /* elimina márgenes que puedan recortar */
    }
}

/* ===== V2 Person Add — Photo & DNI Cards ===== */
.v2-photo-card .card-body {
    padding: 1rem;
}

.v2-crop-zone {
    min-height: 280px;
    max-height: 450px;
    border: 2px dashed #d1d3e2;
    border-radius: .35rem;
    overflow: hidden;
    background: #f8f9fc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-crop-zone img {
    max-width: 100%;
    display: block;
}

.v2-face-preview {
    max-width: 200px;
    border-radius: 50%;
    border: 3px solid #4e73df;
    margin: .5rem auto;
    display: block;
}

.v2-dni-preview {
    max-width: 100%;
    border-radius: .35rem;
    border: 2px solid #1cc88a;
    margin: .5rem auto;
    display: block;
}

.v2-ia-badge {
    font-size: .85rem;
    padding: .25rem .5rem;
    border-radius: .25rem;
}

.v2-ia-badge.valid {
    background: #d4edda;
    color: #155724;
}

.v2-ia-badge.invalid {
    background: #f8d7da;
    color: #721c24;
}

/* ===== V2 Person Add — Cámara en vivo ===== */
.v2-camera-zone {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: .75rem;
    background: linear-gradient(145deg, #eef2ff, #e6ecff);
    overflow: hidden;
    border: 1px solid #cfd8ff;
}

.v2-camera-zone video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.v2-oval-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    z-index: 10;
}

.v2-oval-mask::after {
    content: '';
    width: 100%;
    height: 100%;
    background: url('/img/facecheck.png') no-repeat center;
    background-size: cover;
}

.v2-capture-btn {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    opacity: .9;
    border-radius: 2rem;
    padding: .35rem 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.v2-capture-btn:hover {
    opacity: 1;
}

/* ===== V2 CropperJS Overlays — facecheck y dniCheck ===== */
#cropWrapV2 .cropper-face.cropper-move {
    background-color: transparent;
    opacity: 1;
}

#cropWrapV2 .cropper-face.cropper-move::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/img/facecheck.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 22;
    pointer-events: none;
}

#cropWrapDniV2 .cropper-face.cropper-move {
    background-color: transparent;
    opacity: 1;
}

#cropWrapDniV2 .cropper-face.cropper-move::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/img/dniCheck.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 22;
    pointer-events: none;
    opacity: 0.8;
}

/* Mi cuenta: resumen del plan con prioridad en costo y cupos disponibles. */
.billing-note-cell { width: 1%; white-space: nowrap; text-align: center; }
.billing-note-button { color: var(--admin-dark-text, #334861); }
.billing-note-button:hover,
.billing-note-button:focus { color: var(--admin-dark-text, #243b53); background: var(--admin-dark-surface-hover, #edf1f5); }
.billing-note-button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.billing-note-popover { max-width: min(300px, calc(100vw - 24px)); border-color: var(--admin-dark-border, #d1d9e3); background: var(--admin-dark-surface, #fff); }
.billing-note-popover .popover-header { background: var(--admin-dark-surface-soft, #f4f6f9); color: var(--admin-dark-text, #243b53); border-color: var(--admin-dark-border, #d1d9e3); font-size: .8rem; }
.billing-note-popover .popover-body { color: var(--admin-dark-text, #334861); max-height: 180px; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; }
.billing-note-popover.bs-popover-top > .arrow::after,
.billing-note-popover[x-placement^="top"] > .arrow::after { border-top-color: var(--admin-dark-surface, #fff); }
.billing-note-popover.bs-popover-bottom > .arrow::after,
.billing-note-popover[x-placement^="bottom"] > .arrow::after { border-bottom-color: var(--admin-dark-surface-soft, #f4f6f9); }
.billing-note-popover.bs-popover-left > .arrow::after,
.billing-note-popover[x-placement^="left"] > .arrow::after { border-left-color: var(--admin-dark-surface, #fff); }
.billing-note-popover.bs-popover-right > .arrow::after,
.billing-note-popover[x-placement^="right"] > .arrow::after { border-right-color: var(--admin-dark-surface, #fff); }

.account-plan-card {
    overflow: hidden;
}

.account-plan-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.account-plan-card__eyebrow {
    margin-bottom: .2rem;
    color: #8894aa;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.account-plan-card__status {
    border-radius: 999px;
    background: #e6f7ee;
    color: #168b4c;
    font-size: .72rem;
    font-weight: 700;
    padding: .38rem .65rem;
}

.account-plan-card__status .fa-circle {
    font-size: .46rem;
    vertical-align: 1px;
}

.account-plan-card__hero {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem;
    border-radius: .65rem;
    background: linear-gradient(135deg, #edf9f2 0%, #f5fbfd 100%);
}

.account-plan-card__medallion {
    display: grid;
    width: 2.85rem;
    height: 2.85rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #18a65b;
    box-shadow: 0 .35rem .8rem rgba(24, 166, 91, .22);
    color: #fff;
}

.account-plan-card__identity {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.account-plan-card__identity span,
.account-plan-card__price span,
.account-plan-card__change-copy span {
    color: #7b879b;
    font-size: .74rem;
}

.account-plan-card__identity strong {
    overflow: hidden;
    color: #283c57;
    font-size: 1.2rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-plan-card__price {
    display: flex;
    align-items: flex-end;
    flex: 0 0 auto;
    flex-direction: column;
}

.account-plan-card__price strong {
    color: #168b4c;
    font-size: 1.15rem;
    line-height: 1.15;
}

.account-plan-card__price small {
    font-size: .72rem;
}

.account-plan-card__usage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1rem;
}

.account-plan-card__meter {
    padding: .75rem;
    border: 1px solid #e5e9f0;
    border-radius: .55rem;
    background: #fff;
}

.account-plan-card__meter-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .35rem;
    color: #596b84;
    font-size: .78rem;
}

.account-plan-card__meter-heading i {
    margin-right: .22rem;
    color: #27a5d8;
}

.account-plan-card__meter-heading strong {
    color: #334861;
    font-size: .92rem;
    white-space: nowrap;
}

.account-plan-card__meter-heading strong small {
    color: #7b879b;
    font-size: .72rem;
    font-weight: 400;
}

.account-plan-card__progress {
    height: .38rem;
    margin: .55rem 0 .35rem;
    border-radius: 999px;
    background: #edf1f5;
}

.account-plan-card__progress .progress-bar {
    border-radius: inherit;
}

.account-plan-card__meter > small {
    color: #7b879b;
    font-size: .7rem;
}

.account-plan-card__extras {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .75rem;
    margin-top: .9rem;
    color: #718099;
    font-size: .72rem;
}

.account-plan-card__extras i {
    color: #efa42d;
    font-size: .6rem;
}

.account-plan-card__change {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9edf2;
}

.account-plan-card__change-copy {
    display: flex;
    flex-direction: column;
    margin-bottom: .6rem;
}

.account-plan-card__change-copy strong {
    color: #40546e;
    font-size: .87rem;
}

.account-plan-card__change .form-control {
    margin-bottom: .75rem;
}

.account-plan-card__empty {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .9rem;
    border: 1px dashed #cfd8e4;
    border-radius: .6rem;
    color: #65768d;
}

.account-plan-card__empty > i {
    color: #e4a62f;
    font-size: 1.6rem;
}

.account-plan-card__empty strong {
    display: block;
    margin-bottom: .15rem;
    color: #40546e;
}

.account-plan-card__empty p {
    font-size: .8rem;
}

@media (max-width: 420px) {
    .account-plan-card__hero {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .account-plan-card__price {
        width: 100%;
        align-items: flex-start;
        margin-left: 3.65rem;
    }

    .account-plan-card__usage {
        grid-template-columns: 1fr;
    }
}

/* Formularios comerciales: secciones cortas para planes y contratos globales. */
.commercial-form__back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.commercial-form__card { overflow: hidden; }

.commercial-form__header {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .9rem 1.25rem;
}

.commercial-form__header small { color: #7b879b; }

.commercial-form__header-icon,
.commercial-form__section-icon {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: .55rem;
}

.commercial-form__header-icon {
    width: 2.25rem;
    height: 2.25rem;
    background: #e6f7ee;
    color: #159052;
}

.commercial-form__section {
    margin-bottom: 1.25rem;
    padding: 1.1rem;
    border: 1px solid #e6ebf1;
    border-radius: .7rem;
    background: #fff;
}

.commercial-form__section--identity { background: linear-gradient(135deg, #f8fbff 0%, #fff 100%); }
.commercial-form__section--last { margin-bottom: 0; }
.commercial-form__section .form-group { margin-bottom: .9rem; }

.commercial-form__section label,
.commercial-form__charge-card label {
    margin-bottom: .35rem;
    color: #64748b;
    font-size: .83rem;
    font-weight: 600;
}

.commercial-switch {
    display: flex;
    align-items: center;
    min-height: 2.35rem;
}

.commercial-switch__input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.commercial-switch__label {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0 !important;
    cursor: pointer;
}

.commercial-switch__track {
    display: inline-flex;
    align-items: center;
    width: 2.45rem;
    height: 1.35rem;
    padding: .14rem;
    border-radius: 999px;
    background: #cbd5e1;
    box-shadow: inset 0 0 0 1px rgba(61, 82, 109, .08);
    transition: background .18s ease;
}

.commercial-switch__track span {
    width: 1.07rem;
    height: 1.07rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 .08rem .2rem rgba(33, 51, 72, .25);
    transition: transform .18s ease;
}

.commercial-switch__input:checked + .commercial-switch__label .commercial-switch__track { background: #1aa05c; }
.commercial-switch__input:checked + .commercial-switch__label .commercial-switch__track span { transform: translateX(1.1rem); }
.commercial-switch__input:focus-visible + .commercial-switch__label .commercial-switch__track { outline: 3px solid rgba(38, 132, 200, .28); outline-offset: 2px; }
.commercial-switch__label strong { color: #52667e; font-size: .82rem; }
.commercial-switch__input:checked + .commercial-switch__label strong { color: #168b4c; }

.commercial-form__section-heading {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: 1rem;
}

.commercial-form__section-heading h6 {
    margin: .05rem 0 .14rem;
    color: #3d526d;
    font-weight: 700;
}

.commercial-form__section-heading p {
    margin: 0;
    color: #8591a5;
    font-size: .78rem;
}

.commercial-form__section-icon {
    width: 1.9rem;
    height: 1.9rem;
    background: #edf4fd;
    color: #2684c8;
    font-size: .78rem;
}

.commercial-form__section-icon--money { background: #fff6e4; color: #d99822; }
.commercial-form__section-icon--family { background: #e9f8f1; color: #17955a; }
.commercial-form__section-icon--scope { background: #f0edfe; color: #7160c9; }
.commercial-form__section-icon--operations { background: #eef8fb; color: #1590a4; }

.commercial-form .input-group-text {
    min-width: 2.25rem;
    justify-content: center;
    border-color: #d4dbe6;
    background: #f6f8fb;
    color: #78879b;
}

.commercial-form__charge-card {
    height: 100%;
    padding: .9rem;
    border: 1px solid #e3e9f0;
    border-radius: .6rem;
    background: #fbfcfe;
}

.commercial-form__charge-card > h6 {
    margin: 0 0 .85rem;
    color: #435870;
    font-size: .88rem;
    font-weight: 700;
}

.commercial-form__charge-card > h6 i { color: #1aa05c; }

.commercial-form__charge-card .form-control,
.commercial-form__charge-card .input-group-text { font-size: .86rem; }

.commercial-form__footer {
    display: flex;
    justify-content: flex-end;
    padding: .9rem 1.25rem;
    border-top: 1px solid #e7ecf2;
    background: #f8fafc;
}

@media (max-width: 575.98px) {
    .commercial-form__back span { display: none; }
    .commercial-form__back { width: 2.15rem; height: 2rem; justify-content: center; padding: 0; }
    .commercial-form__section { padding: .9rem; }
    .commercial-form__charge-card { padding: .75rem; }
    .commercial-form__charge-card .row { margin-right: -.3rem; margin-left: -.3rem; }
    .commercial-form__charge-card .form-group { padding-right: .3rem; padding-left: .3rem; }
}

/* Programación de juegos: bloques independientes sin alterar los campos dinámicos. */
.game-form__back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.game-form__section { overflow: hidden; }

.game-form__section-header {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .9rem 1.25rem;
}

.game-form__section-header small { color: #7b879b; }

.game-form__section-icon {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: .55rem;
    background: #edf4fd;
    color: #2789ca;
}

.game-form__section-icon--medal { background: #fff6e5; color: #d99822; }
.game-form__section-icon--finish { background: #eaf8f1; color: #169253; }
.game-form__section-icon--roster { background: #f0edfe; color: #7260c9; }
.game-form__section-icon--results { background: #eef8fb; color: #158da2; }
.game-form__section-icon--judges { background: #fff1f0; color: #cd685d; }

.game-form__section > .card-body { padding: 1.25rem; }
.game-form__section > .card-body.row { margin-right: 0; margin-left: 0; }
.game-form__section--dynamic > .card-body { background: #fbfcfe; }

.game-form__team-card {
    height: 100%;
    margin-bottom: 1rem;
    padding: .9rem;
    border: 1px solid #e2e9f1;
    border-radius: .6rem;
    background: #fff;
}

.game-form__team-card > h6 {
    margin-bottom: .9rem;
    color: #435870;
    font-weight: 700;
}

.game-form__team-card > h6 small { color: #8793a5; font-size: .72rem; font-weight: 400; }

.game-form__judge-row {
    margin-bottom: .8rem;
    padding: .75rem;
    border: 1px solid #e2e9f1;
    border-radius: .55rem;
    background: #fff;
}

.game-form__judge-row hr { display: none; }

.game-form__medal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }

.game-form__medal-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: .45rem;
    min-height: 4rem;
    margin: 0;
    padding: .65rem .6rem;
    border: 1px solid #dfe6ef;
    border-radius: .6rem;
    background: #fff;
    color: #596b84;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 700;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.game-form__medal-option:hover { transform: translateY(-1px); box-shadow: 0 .25rem .55rem rgba(48, 69, 94, .1); }
.game-form__medal-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.game-form__medal-icon { display: grid; width: 2rem; height: 2rem; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #f0f3f7; }
.game-form__medal-option > .fa-check { margin-left: auto; color: transparent; font-size: .68rem; }
.game-form__medal-option.is-selected { border-color: currentColor; box-shadow: 0 .2rem .55rem rgba(48, 69, 94, .12); }
.game-form__medal-option.is-selected > .fa-check { color: currentColor; }
.game-form__medal-option input:focus-visible + .game-form__medal-icon { outline: 3px solid rgba(38, 132, 200, .28); outline-offset: 2px; }
.game-form__medal-option--gold { color: #b47a0c; }
.game-form__medal-option--gold .game-form__medal-icon { background: #fff3cd; color: #c58a13; }
.game-form__medal-option--silver { color: #66798d; }
.game-form__medal-option--silver .game-form__medal-icon { background: #edf1f5; color: #8191a2; }
.game-form__medal-option--bronze { color: #9a633e; }
.game-form__medal-option--bronze .game-form__medal-icon { background: #f8ece5; color: #ad7047; }
.game-form__medal-option--extra { color: #8c5a42; }
.game-form__medal-option--extra .game-form__medal-icon { background: #f8e6dd; color: #a96a4b; }

.game-form__medal-disabled { display: flex; align-items: center; gap: .5rem; min-height: 3.25rem; padding: .7rem .85rem; border: 1px dashed #cfd8e4; border-radius: .55rem; color: #8491a4; font-size: .82rem; }

.game-form__footer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    padding: .9rem 1.25rem;
    border: 1px solid #e2e9f1;
    border-radius: .65rem;
    background: #f8fafc;
    box-shadow: 0 .125rem .25rem rgba(58, 78, 103, .05);
}

@media (max-width: 575.98px) {
    .game-form__back span { display: none; }
    .game-form__back { width: 2.15rem; height: 2rem; justify-content: center; padding: 0; }
    .game-form__section-header { padding: .85rem 1rem; }
    .game-form__section > .card-body { padding: 1rem; }
    .game-form__footer { padding: .8rem 1rem; }
    .game-form__medal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Editor de tipos de persona: agrupa reglas densas sin cambiar su contrato AngularJS. */
.type-person-form__header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.type-person-form__header h6 {
    line-height: 1.25;
}

.type-person-form__header small {
    color: #7d8799;
    display: block;
    font-size: .78rem;
    font-weight: 400;
    margin-top: .28rem;
}

.type-person-form__add {
    align-items: center;
    border: 1px solid rgba(28, 200, 138, .35);
    border-radius: 50%;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    width: 2rem;
}

.type-person-form__add:hover,
.type-person-form__add:focus {
    background: rgba(28, 200, 138, .1);
    text-decoration: none;
}

.type-person-form__toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 3rem;
}

.type-person-form__rule {
    background: #fbfcff;
    border: 1px solid #e1e6ef;
    border-radius: .45rem;
    margin-bottom: 1rem;
    padding: 1.15rem;
}

.type-person-form__rule:last-child {
    margin-bottom: 0;
}

/* Foldable rules, limits and fields; the editor stays mounted while folded. */
.config-item{border:1px solid var(--admin-dark-border,#dfe5ee);border-radius:10px;background:var(--admin-dark-surface,#fff);margin-bottom:10px;min-width:0;overflow:hidden}
.type-person-form .type-person-form__rule.config-item{padding:0;margin-bottom:10px}
.config-item-summary{display:flex;align-items:stretch;min-height:44px}
.config-item-toggle{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;flex:1;min-width:0;border:0;background:none;color:var(--admin-dark-text,#334861);padding:10px 32px 10px 12px;text-align:left;font-size:.85rem}
.config-item-toggle strong{flex:1;min-width:120px;overflow-wrap:anywhere}
.config-item-toggle>.fa{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:.7rem}
.config-item-toggle code{font-size:.72rem;overflow-wrap:anywhere}
.config-item-meta{font-size:.72rem;color:var(--admin-dark-muted,#6e7b90)}
.config-item-remove{display:grid;place-items:center;flex:0 0 36px;border:0;background:none;color:#d94b57;font-size:.8rem}
.config-item-toggle:hover,.config-item-remove:hover{background:var(--admin-dark-surface-hover,#f3f6fb)}
.config-item-toggle:focus-visible,.config-item-remove:focus-visible{outline:2px solid #4e73df;outline-offset:-2px}
.config-collapse{display:grid;grid-template-rows:0fr;visibility:hidden;transition:grid-template-rows 220ms ease,visibility 0s linear 220ms}
.config-collapse.is-open{grid-template-rows:1fr;visibility:visible;transition:grid-template-rows 220ms ease,visibility 0s}
.config-collapse-inner{min-height:0;overflow:hidden}
@media(prefers-reduced-motion:reduce){.config-collapse,.config-collapse.is-open{transition:none}}
.config-item-editor{padding:12px;border-top:1px solid var(--admin-dark-border,#dfe5ee)}
.config-item-editor label,.config-item-editor h6{font-size:.78rem}
.config-item-editor .form-group{margin-bottom:12px}
.config-item-editor .form-control{font-size:.85rem}
.config-item-editor .select2-container{width:100%!important}
html.admin-dark-mode .config-item{background:var(--admin-dark-surface,#202b3b);border-color:var(--admin-dark-border,#3a4861)}
html.admin-dark-mode .config-item-toggle{color:var(--admin-dark-text,#dce6f6)}
@media(max-width:600px){.config-item-toggle{gap:4px 8px}.config-item-editor{padding:10px}}

.type-person-form__rule-heading,
.type-person-form__options-heading {
    align-items: center;
    color: #4e5d78;
    display: flex;
    font-size: .82rem;
    font-weight: 700;
    justify-content: space-between;
    letter-spacing: .03em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.type-person-form__options {
    border-top: 1px solid #e4e8f0;
    margin-top: 1rem;
    padding-top: 1rem;
}

.type-person-form__options-heading {
    color: #1cc88a;
}

.type-person-form__empty {
    background: #fbfcff;
    border: 1px dashed #cbd4e3;
    border-radius: .4rem;
    color: #7d8799;
    font-size: .9rem;
    padding: .9rem 1rem;
    text-align: center;
}

.type-person-form__footer {
    background: #fff;
    border-top: 0;
    padding: 1rem 1.25rem;
}

/* Alta de personas V2: las imágenes guían el flujo sin competir con los datos. */
.person-v2-form .card {
    border: 1px solid #e2e9f1;
    overflow: hidden;
}

.person-v2-form__header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 4rem;
    padding: .85rem 1.15rem;
}

.person-v2-form__header h6 {
    color: #40546c;
}

.person-v2-form__header h6 i {
    color: #2684c8;
    margin-right: .35rem;
}

.person-v2-form__header small {
    color: #8794a7;
    font-size: .76rem;
    text-align: right;
}

.person-v2-form .v2-photo-card {
    background: linear-gradient(145deg, #fbfdff 0%, #f3f8fc 100%);
}

.person-v2-form .v2-photo-card .btn-group {
    display: flex;
    justify-content: center;
}

.person-v2-form .v2-photo-card .btn-group > .btn,
.person-v2-form .v2-photo-card .btn-group > label {
    flex: 1 1 auto;
}

.person-v2-form__sport-heading {
    border-bottom: 1px solid #e3e9f0;
    color: #2684c8;
    font-size: .82rem;
    font-weight: 700;
    margin: 1rem 0 .8rem;
    padding-bottom: .45rem;
    text-transform: uppercase;
}

.person-v2-sports {
    column-count: 3;
    column-gap: 14px;
    column-fill: balance;
}

.person-v2-sport-card {
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    break-inside: avoid;
    margin: 0 0 14px;
}

@media (max-width: 991.98px) {
    .person-v2-sports {
        column-count: 2;
    }
}

@media (max-width: 575.98px) {
    .person-v2-sports {
        column-count: 1;
    }
}

.person-v2-sport-card.is-selected {
    border-color: #36b9cc;
    box-shadow: 0 4px 12px rgba(54, 185, 204, .12);
}

.person-v2-sport-card__toggle,
.person-v2-tourney-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
}

.person-v2-sport-card__toggle {
    padding: 14px;
    background: #f8f9fc;
}

.person-v2-sport-card__toggle strong,
.person-v2-sport-card__toggle small {
    display: block;
}

.person-v2-sport-card__toggle small {
    color: #858796;
    margin-top: 2px;
}

.person-v2-tourney-list {
    padding: 12px 14px;
    border-top: 1px solid #edf0f6;
}

.person-v2-tourney-title {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #4e73df;
    margin: 0 0 8px;
}

.person-v2-tourney-option {
    padding: 7px 0;
    border-top: 1px solid #f0f2f7;
    font-size: .92rem;
}

.person-v2-tourney-option:first-of-type {
    border-top: 0;
}

.person-v2-form__footer {
    background: #f8fafc;
    border-top: 1px solid #e3e9f0;
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.25rem;
}

@media (min-width: 992px) {
    .person-v2-form > .row > .col-lg-4 {
        align-self: flex-start;
        position: sticky;
        top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .person-v2-form__header {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem;
    }

    .person-v2-form__header small {
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .type-person-form__header {
        align-items: flex-start;
    }

    .type-person-form__toggles {
        flex-direction: column;
        gap: 1rem;
    }

    .type-person-form__rule {
        padding: 1rem;
    }
}

/* News: a spacious writing area and grouped publishing details. */
.news-form__section { overflow: hidden; }
.news-form__section .card-header { min-height: 66px; }
.news-form__section .card-header > .fa { font-size: 1.2rem; }
.news-form .custom-file-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-right: 6rem; }
.news-form .tagify { height: auto; min-height: 38px; }
.news-form #fl-title { font-size: 1.15rem; font-weight: 600; }
.news-editor { position: relative; min-height: 620px; }
.news-editor__loading { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; align-content: center; background: #f8f9fc; border: 1px solid #d1d3e2; border-radius: .35rem; color: #5a5c69; }
.news-editor__loading small { flex-basis: 100%; text-align: center; margin-top: .5rem; }
.news-editor:not(.is-ready):not(.has-error) > textarea { visibility: hidden; }
.news-editor.is-ready .news-editor__loading { display: none; }
.news-editor.has-error .news-editor__loading { position: static; padding: 1rem; margin-bottom: .75rem; }
.news-editor.has-error .fa { display: none; }
.news-editor.has-error textarea { min-height: 520px; }
@media (max-width: 575.98px) { .news-editor { min-height: 520px; } }
html.admin-dark-mode .news-editor__loading { background: var(--admin-dark-surface); color: var(--admin-dark-text); border-color: var(--admin-dark-border); }

.news-form .custom-file-label::after { content: "Buscar"; }

/* Shared media forms in Web: banners, gallery and PDF documents. */
.web-media-form__section { overflow: hidden; }
.web-media-form__section .card-header { min-height: 66px; }
.web-media-form__upload { padding: 1.25rem; border: 1px dashed #aab4c3; border-radius: .4rem; background: #f8f9fc; }
.web-media-form__file { display: block; width: 100%; max-width: 100%; font-size: .875rem; }
.web-media-form__files { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.web-media-form__file-card { border: 1px solid #e2e9f1; border-radius: .4rem; overflow: hidden; min-width: 0; }
.web-media-form__preview { height: 170px; display: flex; align-items: center; justify-content: center; background: #f1f4f8; }
.web-media-form__preview img { width: 100%; height: 100%; object-fit: contain; }
.web-media-form__preview > .fa, .web-media-form__empty > .fa { font-size: 2.5rem; }
.web-media-form__current { display: block; max-width: 100%; max-height: 320px; object-fit: contain; border-radius: .35rem; }
.web-media-form__empty { text-align: center; padding: 3rem 1rem; }
.web-media-form__hint { padding: .85rem; background: #f1f4f8; border-radius: .35rem; font-size: .875rem; }
@media (max-width: 575.98px) { .web-media-form__files { grid-template-columns: 1fr; } }

.web-media-form .custom-file-label,
.event-form .custom-file-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-right: 6rem; }
.web-media-form .custom-file-label::after,
.event-form .custom-file-label::after { content: "Buscar"; }

/* Compact sidebar menus grow upward when the viewport has no room below. */
#accordionSidebar .sidebar-flyout .collapse-inner {
    max-height: calc(100vh - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin-bottom: 0;
}

/* User identity images: full preview without cropping logos or banners. */
.user-form .user-media-card { min-width: 0; }
.user-form .user-media-card > p { min-height: 2.5rem; }
.user-form .user-media-preview { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; width: 100%; height: 210px; padding: 16px; border: 1px solid #dce1ea; border-radius: 8px; background: #f4f6fa; color: #687386; overflow: hidden; }
.user-form button.user-media-preview:hover { border-color: var(--green-dark, #4e73df); }
.user-form .user-media-preview img { width: 100%; height: 100%; object-fit: contain; }
.user-form .user-media-zoom { position: absolute; bottom: 8px; right: 8px; background: #fff; color: #334155; border-radius: 4px; padding: 3px 8px; font-size: 12px; }
.user-form .user-media-filename { overflow-wrap: anywhere; }
#userMediaModal .user-media-expanded { display: flex; justify-content: center; background: #f4f6fa; }
#userMediaModal .user-media-expanded img { max-width: 100%; width: auto; height: auto; max-height: 75vh; object-fit: contain; }
html.admin-dark-mode .user-form .user-media-preview,
html.admin-dark-mode #userMediaModal .user-media-expanded { background: var(--admin-dark-input); color: var(--admin-dark-muted); border-color: var(--admin-dark-border); }

.event-logo-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 220px; padding: 16px; background: #f4f6fa; border: 1px solid #dce1ea; border-radius: 8px; color: #687386; }
.event-logo-preview img { width: 100%; height: 165px; object-fit: contain; }
.event-logo-expanded { max-width: 100%; max-height: 75vh; object-fit: contain; }
html.admin-dark-mode .event-logo-preview { background: var(--admin-dark-input); border-color: var(--admin-dark-border); color: var(--admin-dark-muted); }

/* Compact relationship management in My account. */
.account-links-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.account-links-header h6 .badge { margin-left: .5rem; font-weight: 400; }
.account-links-card .table th, .account-links-card .table td { vertical-align: middle; }
.account-links-form { padding-bottom: 1rem; margin-bottom: .75rem; border-bottom: 1px solid var(--admin-dark-border, #e3e6f0); }
.account-links-card summary { cursor: pointer; }
.account-links-editor td { background: var(--admin-dark-input, #f8f9fc); }
.account-links-editor input[type="text"] { min-width: 8rem; }
.account-links-editor select { min-width: 9rem; }

/* Price-ranked plan picker: ten tiers, from slate to black and gold. */
.account-plan-options { display: flex; flex-wrap: wrap; align-items: stretch; gap: .65rem; margin-bottom: 1rem; }
.account-plan-option { flex: 0 1 132px; max-width: 100%; --plan-accent: #52657b; --plan-bg: #edf1f5; --plan-dark: #293545; --plan-light: #c5d0df; display: flex; flex-direction: column; gap: .2rem; min-width: 0; padding: .65rem; border: 2px solid transparent; border-top: 4px solid var(--plan-accent); border-radius: .7rem; background: var(--plan-bg); color: #172033; text-align: left; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.account-plan-option--1 { --plan-accent: #17765b; --plan-bg: #e3f4ea; --plan-dark: #193c34; --plan-light: #87e2b5; }
.account-plan-option--2 { --plan-accent: #147d88; --plan-bg: #e0f3f4; --plan-dark: #193a42; --plan-light: #81dbe4; }
.account-plan-option--3 { --plan-accent: #276bbb; --plan-bg: #e5effc; --plan-dark: #203653; --plan-light: #9cc6ff; }
.account-plan-option--4 { --plan-accent: #535fc4; --plan-bg: #eaecfc; --plan-dark: #2e3155; --plan-light: #b7beff; }
.account-plan-option--5 { --plan-accent: #8150b5; --plan-bg: #f0e7f8; --plan-dark: #3b2b4e; --plan-light: #d7b4f4; }
.account-plan-option--6 { --plan-accent: #b24c72; --plan-bg: #f9e6ed; --plan-dark: #492c3c; --plan-light: #f3b1cc; }
.account-plan-option--7 { --plan-accent: #a36527; --plan-bg: #f7eadb; --plan-dark: #443626; --plan-light: #edc092; }
.account-plan-option--8 { --plan-accent: #947014; --plan-bg: #fbf0ca; --plan-dark: #42391e; --plan-light: #f4d574; }
.account-plan-option--9 { --plan-accent: #d2ad55; --plan-bg: #181b23; --plan-dark: #181b23; --plan-light: #f2d58f; color: #f2d58f; }
.account-plan-option__top { display: flex; align-items: center; justify-content: space-between; gap: .4rem; font-size: .7rem; font-weight: 700; color: var(--plan-accent); }
.account-plan-option__name { font-size: 1rem; overflow-wrap: anywhere; }
.account-plan-option__price { font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
.account-plan-option__period, .account-plan-option__benefits { font-size: .75rem; }
.account-plan-option__benefits { margin-top: .35rem; }
.account-plan-option.is-selected { border-color: var(--plan-accent); box-shadow: 0 0 0 2px var(--plan-bg), 0 0 0 4px var(--plan-accent); }
.account-plan-option:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 4px 12px #0002; }
.account-plan-option:focus-visible { outline: 3px solid var(--plan-accent); outline-offset: 3px; }
.account-plan-option:disabled { cursor: default; }
.account-plan-option.is-current { border-style: dashed; border-color: var(--plan-accent); }


/* Code entry and dependents share a row; partners use the full row. */
.account-links-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; padding-bottom: 2rem; }
.account-links-layout > .row { margin: 0; min-width: 0; }
.account-links-layout > .row > .col-12 { padding: 0; margin-bottom: 0 !important; }
.account-links-layout .card-body { padding: .75rem; }
.account-links-layout .card-header { padding-left: .75rem; padding-right: .75rem; }
.account-links-layout .table { font-size: .85rem; }
@media (max-width: 1199.98px) { .account-links-layout { grid-template-columns: minmax(0, 1fr); } }

.account-links-wide { grid-column: 1 / -1; }
.account-plan-card .account-plan-card__editor { margin-top: 0; padding-top: 0; border-top: 0; }

/* Compact multiple selections, matching the tag inputs. */
.select2-container .select2-selection--multiple{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:4px!important;min-height:calc(1.5em + .75rem + 2px)!important;max-height:none!important;height:auto!important;overflow:visible!important;padding:4px 8px!important;border-radius:.35rem!important}
.select2-container .select2-selection--multiple .select2-selection__rendered{display:contents!important;margin:0!important;padding:0!important}
.select2-container .select2-selection--multiple .select2-selection__choice{display:inline-flex!important;align-items:center!important;float:none!important;gap:4px!important;max-width:100%!important;margin:0!important;padding:2px 6px!important;font-size:.85rem!important;line-height:22px!important;border-radius:4px!important;white-space:normal!important;word-break:normal!important}
.select2-container .select2-selection--multiple .select2-selection__choice__display{padding:0!important;overflow-wrap:anywhere!important;min-width:0!important}
.select2-container .select2-selection--multiple .select2-selection__choice__remove{position:static!important;flex:0 0 auto!important;width:auto!important;height:auto!important;margin:0!important;padding:0 2px!important;border:0!important;background:none!important;font-size:1rem!important;line-height:22px!important;opacity:.8!important}
.select2-container .select2-selection--multiple .select2-search--inline{float:none!important;flex:1 1 24px!important;min-width:24px!important;max-width:100%!important;margin:0!important}
.select2-container .select2-selection--multiple .select2-search__field{display:block!important;width:100%!important;height:26px!important;min-height:0!important;margin:0!important;padding:2px 0!important;border:0!important;background:transparent!important;font-size:.85rem!important;line-height:22px!important;resize:none!important}

.select2-container .select2-selection--multiple .select2-selection__choice__remove{min-width:14px!important}
.select2-container .select2-selection--multiple .select2-selection__choice__remove>span{display:inline!important}

/* Bootstrap's icon replacement indents the native multiplication sign out of view. */
.select2-container .select2-selection--multiple .select2-selection__choice__remove{text-indent:0!important;overflow:visible!important;white-space:normal!important;cursor:pointer}

.game-roster-auto{flex:0 0 38px;padding:0;font-size:.9rem}
.game-roster-colors{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:.8rem}
.game-roster-colors label{margin:0}
.game-roster-colors input{width:42px;height:28px;padding:2px;border:1px solid var(--admin-dark-border,#dfe5ee);border-radius:4px;background:none}
.game-roster-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:5px 14px}
.game-roster-player{display:flex;align-items:center;gap:8px;min-width:0}
.game-roster-player label{flex:1;min-width:0;margin:0;font-size:.82rem;overflow-wrap:anywhere}
.game-roster-player input.form-control{flex:0 0 6rem;width:6rem;min-width:0;font-size:.85rem}
@media(max-width:420px){.game-roster-grid{grid-template-columns:1fr}}

/* Compact tournament game dialogs, with header/footer outside the scrolling body. */
.tourney-game-modal .modal-content>form{display:flex;flex-direction:column;min-height:0;max-height:90vh}
.tourney-game-modal .modal-body{flex:1;min-height:0;max-height:none!important;overflow-y:auto;overscroll-behavior:contain;padding:12px}
.tourney-game-modal .modal-header,.tourney-game-modal .modal-footer{flex:0 0 auto;padding:10px 14px}
.tourney-game-modal .modal-title{font-size:1.05rem;overflow-wrap:anywhere}
.tourney-game-modal .modal-footer .btn{padding:6px 12px;font-size:.85rem}
.tourney-game-modal .card-header{padding:8px 12px}
.tourney-game-modal .card-body{padding:12px}
.tourney-game-modal .form-group{margin-bottom:10px}
.tourney-game-modal .form-group label{font-size:.85rem}
.tourney-game-modal .form-control{font-size:.9rem}
#rulesModal .rules-toolbar{padding:6px 0;margin-bottom:8px}
#rulesModal .rules-summary{margin-top:4px;gap:4px}
#rulesModal .rule-header{padding:8px 10px;gap:6px}
#rulesModal .rule-body{padding:10px}
#rulesModal .rule-pill{padding:4px 6px;margin-right:4px}
#rulesModal .rule-body input[type=number]{max-width:7rem}
.tourney-game-modal .input-group{margin-bottom:8px!important}
@media(max-width:600px){.tourney-game-modal .modal-dialog{margin:.5rem}.tourney-game-modal .modal-title{font-size:.95rem}.tourney-game-modal .modal-body{padding:10px}.tourney-game-modal .modal-footer{gap:5px}.tourney-game-modal .modal-footer .btn{margin:0;font-size:.8rem}}

.tourney-result-settings{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,2fr);gap:12px;margin-bottom:12px;align-items:start}
.tourney-result-settings>.card{margin-bottom:0!important}
.tourney-game-modal .game-form__medal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.tourney-game-modal .game-form__medal-option{min-height:38px;padding:6px 8px;gap:5px}
.tourney-game-modal .game-form__medal-icon{width:24px;height:24px}
.tourney-result-settings .card-body.row{margin:0;padding:12px 0 2px}
.tourney-result-settings .custom-switch{margin-right:0}
@media(max-width:767px){.tourney-result-settings{grid-template-columns:1fr}.tourney-game-modal .game-form__medal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

#programacionGameModal .modal-dialog{max-width:1000px}

@media(max-width:767.98px){
 .tourney-map-view{padding-left:12px;padding-right:12px}
 .tourney-map-view>div:first-child h1{font-size:1.35rem;line-height:1.25;margin-right:0!important;width:100%;overflow-wrap:anywhere}
 .tourney-map-view .bracket-container{display:block!important;overflow:visible!important;padding:0!important}
 .tourney-map-view .bracket-round,.tourney-map-view .bracket-round-expanded{width:100%;min-width:0;max-width:100%;margin:0!important}
 .tourney-map-view .bracket-round>.card{border-radius:12px;overflow:hidden}
 .tourney-map-view .bracket-round>.card>.card-header{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;align-items:center;padding:8px!important;font-size:.95rem}
 .tourney-map-view .bracket-round>.card>.card-header>a{margin:0!important;float:none!important;padding:8px}
 .tourney-map-view .games-container,.tourney-map-view .bracket-round-expanded .games-container{display:block;min-height:0;max-height:none;padding:8px!important;overflow:visible}
 .tourney-map-view .game-item{min-width:0;width:100%;padding:10px 8px 0!important;margin-bottom:8px!important;border-radius:10px}
 .tourney-map-view .game-item h6{white-space:normal;overflow-wrap:anywhere;font-size:.95rem;line-height:1.3;text-align:left!important}
 .tourney-map-view .game-item p{text-align:left!important;line-height:1.4;padding:5px 0;font-size:.85rem}
 .tourney-map-view .game-item .nav-horizontal{display:grid;grid-template-columns:repeat(auto-fit,minmax(32px,1fr));gap:2px;justify-content:stretch;margin-top:0!important}
 .tourney-map-view .game-item .nav-link{display:grid;place-items:center;min-height:40px;padding:8px!important;font-size:1rem}
 #rulesModal .modal-dialog{margin:8px;max-width:none;width:calc(100% - 16px)}
 #rulesModal .modal-content{border-radius:14px;overflow:hidden;max-height:calc(100dvh - 16px)}
 #rulesModal .modal-content>form{max-height:calc(100dvh - 16px)}
 #rulesModal .modal-header{align-items:center;gap:8px;padding:12px}
 #rulesModal .modal-title{font-size:1rem;line-height:1.35;min-width:0}
 #rulesModal .close{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;margin:0;padding:0;border-radius:50%;background:rgba(128,144,160,.15);font-size:1.2rem}
 #rulesModal .rules-toolbar{position:static;padding:0 0 8px}
 #rulesModal .rules-help{font-size:.72rem;line-height:1.4;margin-top:3px}
 #rulesModal .rule-header{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;padding:10px;gap:8px}
 #rulesModal .rule-summary{display:contents}
 #rulesModal .rule-title{grid-column:2;font-size:.95rem;white-space:normal;overflow:visible;line-height:1.3}
 #rulesModal .rule-meta{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:5px;font-size:.75rem}
 #rulesModal .rule-pill{margin:0;padding:5px 8px;line-height:1.15;white-space:nowrap}
 #rulesModal .rule-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:6px}
 #rulesModal .rule-actions .btn{width:34px;height:34px;padding:0;font-size:.8rem}
 #rulesModal .modal-footer{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px;padding:10px}
 #rulesModal .modal-footer .btn{margin:0;padding:9px 10px;font-size:.8rem;white-space:nowrap}
}

@media(min-width:768px){
 .tourney-map-view .bracket-container{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;align-items:stretch;justify-content:initial;overflow:visible!important;padding:0!important}
 .tourney-map-view .bracket-round{display:flex;min-width:0;width:auto;margin:0!important}
 .tourney-map-view .bracket-round>.card{width:100%;margin-bottom:0!important;min-width:0}
 .tourney-map-view .bracket-round-expanded{grid-column:1/-1;width:100%;min-width:0}
 .tourney-map-view .bracket-round:not(.bracket-round-expanded) .games-container{min-height:112px;max-height:112px}
 .tourney-map-view .game-item h6{white-space:normal;overflow-wrap:anywhere;font-size:.9rem;line-height:1.25}
}

/* Keep the last registration/phase card separated from the page footer. */
.tourney-map-view,.container-fluid.person-map{padding-bottom:2rem}

@media(max-width:767.98px){.tourney-map-view .bracket-round{scroll-margin-top:80px}}

.tourney-map-view .tourney-phase-section-heading{grid-column:1/-1;margin:8px 0 0;padding:0 0 8px;border-bottom:1px solid rgba(128,140,160,.28);font-size:1rem;font-weight:600;color:inherit}

/* BCV: digital palette #23305d / #2e6da4 / #7bb8eb; selected by event. */
.theme-bcv {
    --green-light: #2e6da4;
    --green-medium: #23305d;
    --green-dark: #1b2446;
    --yellow: #7bb8eb;
    --dark: #23305d;
    --white: #ffffff;
    --mask-logo: url(../img/logo_bcv.svg);
    --mask-size: contain;
}
.theme-bcv .btn-primary { background-color: #23305d; border-color: #23305d; }
.theme-bcv .btn-primary:hover { background-color: #2e6da4; border-color: #2e6da4; }


/* Event switch: use columns after five selectable events, retaining the same rows. */
.topbar .event-picker__items { display:grid; grid-template-columns:minmax(0,1fr); max-height:min(70vh,450px); overflow-y:auto; overscroll-behavior:contain; }
.topbar .event-picker__items .dropdown-item { min-width:0; }
.topbar .event-picker__items .dropdown-item > div:last-child { min-width:0; flex:1; }
@media(min-width:992px) {
    .topbar .dropdown-menu.event-picker.event-picker--columns { width:760px !important; max-width:calc(100vw - 22rem); }
    .topbar .event-picker--columns .event-picker__items { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .topbar .event-picker--columns .event-picker__items .dropdown-item:nth-child(odd) { border-right:1px solid var(--admin-dark-border,#e3e6f0); }
}
@media(min-width:1400px) {
    .topbar .dropdown-menu.event-picker.event-picker--three { width:1050px !important; }
    .topbar .event-picker--three .event-picker__items { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .topbar .event-picker--three .event-picker__items .dropdown-item { border-right:1px solid var(--admin-dark-border,#e3e6f0); }
}
