html,
body {
    height: 100%;
    margin: 0;
    /* font-family: Verdana, Geneva, Tahoma, sans-serif !important; */
    /* font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; */
    font-family: 'Arial Rounded MT Bold', 'Cambria', serif !important;
}
.page-contentClass{
    flex: 1 0 auto;
    /* background-color: #bebebe; */
}

#sticky-footer {
    flex-shrink: none;
}

.border-template{
    border: 2px solid #1d4873;
    border-radius: 5px;
}

.background-template-color{
    background-color: #1d4873;
}

.background-template-color2{
    background-color: #f7f7f7;
}

.background-template-text{
    background-color: #f7f7f7;
}

.text-template-background{
    color: #1d4873;
}

.text-template-color{
    color:  #f7f7f7;
}

.background-template-color {
    background-color: #1d4873 !important;
    color: white !important;
}

.background-template-color2 {
    background-color: #1562a4 !important;
    color: white !important;
}

.background-template-color3 {
    background-color: #f7f7f7  !important;
    color: #1d4873 !important;
}

.mainHeader, .mainFooter{
    background-color: #1d4873; /* Deep blue color */
    background-image: url('../../img/background_header4.png');
    background-repeat: repeat;
    background-position: center center;
    background-blend-mode: soft-light;
    background-size: auto;
}

.subHeader{
    background-color: #1d4873; /* Deep blue color */
    /* background-image: url('../../img/background_header5.png'); */
    background-repeat: repeat;
    background-position: center center;
    /* background-blend-mode: soft-light; */
    background-size: auto;
    /* clip-path: polygon(1% 0%, 99% 0%, 100% 100%, 0% 100%); */
}

.subHeader.active {
    height: 100%;
    margin-bottom: 0 !important;
    /* clip-path: polygon(2% 0%, 98% 0%, 100% 100%, 0% 100%); */
}

#container ul li.nav-item span.nav-link.father.subHeader.active {
    background-color: #1d4873 !important;
    /* clip-path: polygon(1% 0%, 99% 0%, 100% 100%, 0% 100%); */
    /* margin-left: 0 !important; */
    margin-right: .5rem !important;
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
    z-index: 2;
    color: white !important;
    /* height: 100%; */
    /* min-height: 2rem !important; */
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9);
    margin-bottom: 0 !important;
}

#container ul li.nav-item span.nav-link.father.subHeader {
    background-color: #1d4873b8 !important;
    /* max-height: 2rem !important; */
    /* min-height: 2rem !important; */
    /* clip-path: polygon(2% 0%, 98% 0%, 100% 100%, 0% 100%); */
    margin-left: 0 !important;
    margin-right: .5rem !important;
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
    /* height: 100%; */
    z-index: 0;
    position: relative;
    /* color: black !important; */
}

#tab-content ul li.nav-item span.nav-link.son.subHeader.active {
    background-color: #f7f7f7 !important;
    /* clip-path: polygon(1% 0%, 99% 0%, 100% 100%, 0% 100%); */
   
    margin-top: 0 !important;
    color: #000000 !important;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    margin: 5px !important;
    height: 100%;

    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

#tab-content ul li.nav-item span.nav-link.son.subHeader {
    background-color: #f7f7f780 !important;
    /* clip-path: polygon(2% 0%, 98% 0%, 100% 100%, 0% 100%); */
    
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    margin-top: 5px !important;
    /* height: 100%; */
    margin: 5px !important;
}

.underLineOro.active, .underLineLoteria.active{
    position: absolute;
    top: 2.3rem;
    width: 100px;
    height: 5px;
    background: #0000002b;
    translate: -50%;
    border-radius: 50%;
    z-index: 999;
}

.underLineOro, .underLineLoteria{
    z-index: -2;
}

#sub-tab-venta, #sub-tab-administracion {
    background-color: #1d4873 !important;
    border-top-right-radius: 1rem;
}


#container .nav-link{
    background-color: #1d4873  !important;
    color: rgb(255, 255, 255) !important;
    /* font-size: large; */
}

#container .nav-pills{
    color: #1d4873 !important;
}

#container .nav-link.active{
    color: #ffffff !important;
    background-color: #1d4873 !important;
    /* font-weight: 600; */
    /* font-size: larger; */
}

.nav-link:hover{
    cursor: pointer;
}

[id^=tab-content]{
    background-color: #f7f7f7;
    /* height: 80vh; */
}

/* [id^=content-]{
    display: flex !important;
    justify-content: space-evenly;
    flex-wrap: wrap;
    height: 70vh;
    align-items: center;
} */

#card{
    border: none;
    height: max-content;
}

.card-header:first-child { border-radius: 0;}

#plantillasTableBody tr:hover{
    cursor: pointer;
}

#loadPlantillasTableBody tr{
    cursor: pointer;
}

#tiketsColectivoOro button, #tiketsColectivoLoteria button{
    height: 3rem;
    width: 3rem;
}

#tiketsColectivoOro button.sold, #tiketsColectivoLoteria button.sold{
    background-color: rgba(255, 129, 129, 0.459);
}

#tiketsColectivoOro button.forsale, #tiketsColectivoLoteria button.forsale{
    background-color: rgba(122, 255, 122, 0.486);
}

/* NUEVO NUEVO */

#tiketsColectivoOro, #modalDetailsColectivoTikets{
    display: flex;
    flex-wrap: wrap;
    column-gap: .2rem;
    row-gap: .2rem;
}

#modalDetailsColectivoTikets button, #modalDetailsColectivoTikets button{
    height: 3rem;
    width: 3rem;
}

#modalDetailsColectivoTikets button.sold, #modalDetailsColectivoTikets button.sold{
    background-color: rgba(255, 129, 129, 0.459);
}

#modalDetailsColectivoTikets button.forsale, #modalDetailsColectivoTikets button.forsale{
    background-color: rgba(122, 255, 122, 0.486);
}

#modalDetailsColectivoTikets, #tiketsColectivoLoteria{
    display: flex;
    flex-wrap: wrap;
    column-gap: .2rem;
    row-gap: .2rem;
}

/* NUEVO NUEVO */

.container-fluid{
    max-width: 90%;
}

#container{
    background-color: #f7f7f7;
}
#mainContent {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    /* padding-top: 5rem;
    padding-bottom: 7rem; */
    /* background-color: #f7f7f7; */
    background-color: #f7f7f7;
    /* margin: 5px; */

    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    border-bottom: solid 5px #1d4873;
    border-right: solid 5px #1d4873;
    border-left: solid 5px #1d4873;

    z-index: 999;
    position: relative;

    min-height: 50vh;

    margin-bottom: 8rem;
}

@media (min-width: 992px) {
    .modal-xl {
        max-width: 1000px !important;
    }
}

@media (min-width: 576px) {
    .modal-xl {
        max-width: 900px ;
        margin: 1.75rem auto;
    }
}

#mainContent .card {
    width: 300px; /* Fixed width */
    /* margin-bottom: 20px; */
    flex-grow: 0;
    flex-shrink: 0;
}

/* @media (max-width: 1266px) {
    #mainContent, #container {
        max-width: 640px;
        margin: 0 auto;
    }
}

@media (max-width: 680px) {
    #mainContent, #container {
        max-width: 320px;
    }
} */

.mainHeader li{
    list-style: none;
}

#actionsBar{
    border: 2px solid #333;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    bottom: 100%;
    left: 50%;
    /* transform: translateX(-50%); */
    /* margin-bottom: 1rem; */
    margin-bottom: -17px !important;
    white-space: nowrap;
    font-weight: bold;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}
#actionsBar::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #f7f7f7;
}
#actionsBar::before {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 13px solid #333;
}

#actionsBar li:hover, .card-body button:hover{
    scale: 1.1;
}

.btn-link:hover {
    color: #1562a4 !important;
    scale: 1.08;
}

.no-wrap-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

#listColectivosThead tr th{
    text-align: center;
}

#listColectivosTbody tr td{
    text-align: center;
}

/* #listColectivosTbody tr:hover{
    cursor: pointer;
    background-color: #1d4873;
    background-image: url('../../img/background_header4.png');
    background-repeat: repeat;
    background-position: center center;
    background-blend-mode: soft-light;
    background-size: auto;
    color: white;
}

#listColectivosTbody tr:hover .btn-link {
    color: #ffffff !important;
} */

/* #listColectivosTbody tr:hover {
    cursor: pointer;
    color: white;
    position: relative;
    z-index: 1;
}

#listColectivosTbody tr:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1d4873;
    background-repeat: repeat;
    background-position: center center;
    background-blend-mode: soft-light;
    background-size: auto;
    z-index: -1;
}

#listColectivosTbody tr[data-tipo="0"]:hover::after {
    background-image: url('../../img/background_header4.png');
}

#listColectivosTbody tr[data-tipo="1"]:hover::after {
    background-image: url('../../img/background_header4_1.png');
}

#listColectivosTbody tr:hover .btn-link {
    color: #ffffff;
    z-index: 2;
    position: relative;
} */

#listColectivosTbody tr:hover {
    cursor: pointer;
    color: white;
    position: relative;
    z-index: 1;
}

#listColectivosTbody tr:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(29, 72, 115, 0.7); /* Semi-transparent blue */
    background-repeat: repeat; /* Changed from repeat */
    background-position: center center;
    background-size: cover; /* Changed from auto */
    background-blend-mode: soft-light;
    z-index: -1;
}

#listColectivosTbody tr[data-tipo="0"]:hover::after {
    background-image: url('../../img/background_header4.png') !important;
}

#listColectivosTbody tr[data-tipo="1"]:hover::after {
    background-image: url('../../img/background_header4_1.png') !important;
}

/* Button styles on hover */
#listColectivosTbody tr:hover .btn-link {
    color: #ffffff !important;
    z-index: 2;
    position: relative;
}

/* Ensure text is visible over the background */
#listColectivosTbody tr:hover td {
    position: relative;
    z-index: 2;
}

.contenedorTabla{
    overflow: auto;
    scroll-margin-top: 10px;
    max-height: 60vh;
}


.contenedorTabla thead {
    background: #1d4873;
    color: #ffffff;
    z-index: 9999;
    position: sticky;
    top: 0;
    z-index: 1;
}

.loaderInline {
    height : 8px;
    width  : 36px; /* (6 * <margin: 2px>) + (3 * <width: 8px>) */
}

.loader-box {
    display                   : inline-block;
    height                    : 8px;
    width                     : 8px;
    margin                    : 0px 2px;
    background-color          : rgb(0,146,255);
    animation-name            : fadeOutIn;
    animation-duration        : 500ms;
    animation-iteration-count : infinite;
    animation-direction       : alternate;
}

.loader-box:nth-child(1) { animation-delay: 250ms; } /* (1/2) * <animation-duration: 500ms */
.loader-box:nth-child(2) { animation-delay: 500ms; } /* (2/2) * <animation-duration: 500ms */
.loader-box:nth-child(3) { animation-delay: 750ms; } /* (3/2) * <animation-duration: 500ms */

@keyframes fadeOutIn {
    0%   { background-color : rgba(0,146,255,1); }
    100% { background-color : rgba(0,146,255,0); }
}


h3.unpaid{
    color: red;
    font-size: x-large;
}

h3.received{
    color: green;
    font-size: x-large;
}

#listCIsOro, #listCIsLoteria, #listNamesOro, #listNamesLoteria{
    display: block;
    position: absolute;
    left: 7rem;
    margin: .5rem;
    border-radius: .25rem;
    background: #f7f7f7;
    cursor: pointer;
    border: solid 1px #c9c9c9;
    z-index: 999;
}

#listCIsOro option:hover, #listCIsLoteria option:hover, #listNamesOro option:hover, #listNamesLoteria option:hover {
    background: #b0b0b0;
}

#listCIsOro option, #listCIsLoteria option, #listNamesOro option, #listNamesLoteria option {
    margin: .5rem;
    color: black;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: larger;
    color: white;
    font-weight: 800;
    background-color: transparent;
    border: none;
    aspect-ratio: 1;
    height: 2rem;
    width: 2rem;
}

.close-btn:hover {
    scale: 1.1;
    background-color: red;
    transition: 0.5ms;
}

#modalSellColectivoLoteria .modal-body, #modalDetailsColectivo .modal-body {
    overflow: auto;
    max-height: 80vh;
}

/* 
.subSection {
    display: block;
    padding: .375rem .75rem;
    color: #495057;
    border: 1px solid #ced4da;
    border-radius: .25rem;
} */

.subSection {
    position: relative;
    display: block;
    padding: .5rem .75rem .375rem .75rem; /* Más espacio arriba */
    color: #495057;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

.subsubSection {
    padding-right: .5rem;
    padding-left: .5rem;
    gap: 5px;
}

.subSection label{
    margin-bottom: .1rem !important;
}

.subSection .h6 {
    position: absolute;
    top: -0.6rem;
    left: 50%;
    transform: translateX(-50%); /* Centra desde su propio centro */
    background-color: #f7f7f7 !important;
    padding: 0 0.5rem;
    margin: 0;
}

#cobroUser-section:hover, #cobroUserLotaria-section {
    cursor: pointer;
}

.cobroUser {
    display:inline-block; 
    margin:0;
    color: green;
    font-weight: 600;
}