body { padding-top: 48px; }
    body.no-header { padding-top: 0 !important; }

/* Sticky footer: solo en páginas con header (donde se renderiza .powered-by) */
body:not(.no-header) { display: flex; flex-direction: column; min-height: 100vh; }
body:not(.no-header) #mainWrapper { flex: 1 0 auto; }

#mainWrapper { display: flex; width: 100%; }
#mainContent { width: 100%; }
#sidebarMenu { border-right: 1px solid #eee; min-width: 250px; max-width: 250px; }
#sidebarMenu ul li a {
    position: relative;
    padding: 10px;
    display: block;
    text-decoration: none;
    color: inherit;
}

    #sidebarMenu ul li a:hover { background: #eee; }

#sidebarMenu a.active,
#sidebarMenu ul li.active > a,
#sidebarMenu a[aria-expanded="true"] {
    color: #007bff !important;
}

.sidebar-submenu a {
    font-size: 0.9em !important;
    padding: 5px 5px 5px 15px !important;
}

.sidebar-submenu .sidebar-submenu a {
    padding: 5px 5px 5px 25px !important;
}

#sidebarMenu .dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.powered-by {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 11px;
    padding: 16px 24px;
    border-top: 1px solid #e3e3e0;
    flex-shrink: 0;
}

.powered-by__copy {
    font-size: 12px;
    color: #a0a0a0;
    font-family: system-ui, sans-serif;
}

.powered-by__brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.powered-by__text {
    font-size: 9px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: #8a8a8a;
    padding-left: 0.34em;
    font-family: system-ui, sans-serif;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.powered-by__divider {
    display: block;
    width: 1px;
    height: 32px;
    background: #e3e3e0;
    flex-shrink: 0;
}

.powered-by__logo {
    display: block;
    width: auto;
    flex-shrink: 0;
}

.powered-by__logo--pg {
    height: 32px;
    opacity: 0.85;
}

.powered-by__logo--bio {
    height: 38px;
}

@media (max-width: 768px) {
    #mainWrapper { display: block; }
    #sidebarMenu { min-width: 100%; max-width: 100%; }
    .powered-by { flex-direction: column; justify-content: center; text-align: center; }
}

.navbar {
    padding: .25rem 1rem !important;
    background: #1a3a2a !important;
    border-bottom: 1px solid #254035 !important;
    color: #f0f5f0 !important;
}
.navbar .brand-name, 
.navbar .btn-menu { color: #f0f5f0 !important; }

.navbar .nav-link,
.navbar .user-info { color: #8ab89a !important; }

    .navbar .nav-link:hover { color: #f0f5f0 !important; }

.custom-file-label { overflow: hidden; }

.menu-icon { width: 16px; margin-top: -5px; margin-right: 5px; }

.flat-icon-attribution { color: #888; font-size: 10pt; }
.flat-icon-attribution a { color: #333; }

.text-sm { font-size: 0.8rem !important; }
.text-md { font-size: 1rem !important; }
.text-lg { font-size: 1rem; }

.btn-group-xs > .btn, .btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: .75rem;
    line-height: 1.2;
    border-radius: 0.2rem;
}

label[for] { font-weight: 500; margin-bottom: 5px; }
.custom-file-label, .custom-control-label { font-weight: normal !important; }

.form-control-plaintext {
    padding: 0;
}

.semaforo {
    height: 15px;
    width: 15px;
    border-radius: 50px;
    margin: auto;
}
.semaforo-verde { background-color: green; }
.semaforo-amarillo { background-color: yellow; }
.semaforo-naranja { background-color: orange; }
.semaforo-rojo { background-color: red; }

.semaforo-bandera { font-size: 16pt; }
.semaforo-bandera-verde { color: green; }
.semaforo-bandera-amarillo { color: #FFED00; }
.semaforo-bandera-naranja { color: orange; }
.semaforo-bandera-rojo { color: red; }

/* Validacion */
.input-validation-error { border-color: #ff4000; }

.requerido::after { content: '*'; margin-left: 5px; }

.validation-summary-errors {
    color: #852100;
    background-color: #ffd9cc;
    border-color: #ffcab8;
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

    .validation-summary-errors ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

.validation-summary-valid { display: none; }

.field-validation-error { color: #ff4000; font-size: 0.8rem; }
/******/

/** Bootstrap fixes **/
.col-form-label { font-weight: bold; }
.text-success { color: #008542 !important; }
.bg-lightgray { background-color: #f8f9fa !important; }

.dropdown-menu[role=combobox] { z-index: 1060 !important; }
    .dropdown-menu[role=combobox] ul.dropdown-menu li.selected {
        background-color: #ddd;
    }

    .dropdown-menu[role=combobox] ul.dropdown-menu li a.dropdown-item:focus,
    .dropdown-menu[role=combobox] ul.dropdown-menu li a.dropdown-item:hover {
        color: #fff;
        background-color: #495057;
    }

.btn-warning { color: white; }
    .btn-warning:hover { color: white; }

.bootstrap-select > .dropdown-toggle {
    background-color: #fff;
    color: #495057 !important;
    border: 1px solid #ced4da;
}
/******/

/** PowerBI **/
.pbi-report {
    /*min-width: 900px;*/
    width: 100%;
    height: 720px;
    border: 1px solid #c8c8c8;
}

    .pbi-report iframe {
        border: none;
    }

/*@media (max-width: 767px) {
    .pbi-report {
        min-width: inherit !important;
        height: 550px;
    }
}*/
/******/

/** Bootstrap Datepicker **/
.datepicker { z-index: 1100 !important; }
.datepicker-dropdown { z-index: 1060 !important; }
/******/

/** Contador de texto **/
.counter-text { font-weight: 600 }
    .counter-text.exceeded { color: #dc3545; }
/******/

/** #region Boletos Canje **/
.canje-resultado {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 40px 24px;
    text-align: center;
    background: #f8f9fa;
    transition: background 0.2s, border-color 0.2s;
}

.cr-icono { margin-bottom: 16px; }

.cr-circulo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ced4da;
}

    .cr-circulo img { width: 38px; height: 38px; }

.cr-titulo { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.cr-descripcion { font-size: 0.9rem; }

.cr-exito { background: #eaf7ec; border-color: #b7dfbb; }
    .cr-exito .cr-circulo { background: #28a745; }
    .cr-exito .cr-titulo { color: #1a6b2e; }
    .cr-exito .cr-descripcion { color: #1a6b2e; }

.cr-ya-canjeado { background: #fdecea; border-color: #f5b8b3; }
    .cr-ya-canjeado .cr-circulo { background: #dc3545; }
    .cr-ya-canjeado .cr-titulo { color: #8b1a1a; }
    .cr-ya-canjeado .cr-descripcion { color: #8b1a1a; }

.cr-invalido { background: #fff4ee; border-color: #ffc59a; }
    .cr-invalido .cr-circulo { background: #fd7e14; }
    .cr-invalido .cr-titulo { color: #c45e00; }
    .cr-invalido .cr-descripcion { color: #c45e00; }

.cr-vencido { background: #fffde7; border-color: #ffe57f; }
    .cr-vencido .cr-circulo { background: #ffc107; }
    .cr-vencido .cr-titulo { color: #856404; }
    .cr-vencido .cr-descripcion { color: #856404; }
/** #endregion Boletos Canje **/

