﻿.label-junta {
    margin: 0 !important;
}

.label-junta-normal {
    margin: 0 !important;
    font-weight: normal !important;
}

.bg-light-orange {
    background-color: #FFA07A; 
}

.text-dark-orange {
    color: #FF4500;
}

.btn-orange {
    color: #fff;
    background-color: #FF4500;
    border-color: #FF4500;
    box-shadow: none;
}

.btn-purple {
    color: #fff;
    background-color: var(--purple);
    border-color: var(--purple);
    box-shadow: none;
}

.btn-purple:hover {
    color: #fff;
    background-color: #9932CC; /* Un púrpura más claro */
    border-color: #9932CC;
}

.text-brown {
    color: #795548 !important;
}

.bg-orange {
    background-color: var(--orange);
}

.bg-light-dark {
    background-color: #e7e8e9 !important;
}

.bg-light-success {
    background-color: rgba(27, 197, 189, 0.2) !important;
}

.bg-light-warning {
    background-color: rgba(255, 168, 0, 0.2) !important;
}

.bg-light-info {
    background-color: rgba(23, 162, 184, 0.15) !important;
}

.bg-dark-purple {
    background-color: #800080 !important;
}

.bg-purple {
    background-color: var(--purple) !important;
}

.bg-light-purple {
    background-color: #D8BFD8 !important;
}

.border-purple {
    border: 1px solid var(--purple);
}

.text-purple {
    color: var(--purple) !important;
}

.text-light-info {
    color: #859cb8 !important;
}

.border-orange {
    border: 1px solid #FF4500;
}

.text-oliva {
    color: #a84719 !important;
}

.text-orange {
    color: var(--orange) !important;
}

.e-bigger .e-grid .e-grid-status-text {
    position: relative;
    top: -2px;
}

td.e-rowcell .e-grid-status-text.e-verde {
    color: #00cc00;
    position: relative;
}

td.e-rowcell .e-grid-status-text.e-rojo {
    color: #e60000;
    position: relative;
}

td.e-rowcell .e-grid-status-text.e-amarillo {
    color: orange;
    position: relative;
}

.bootstrap5 .e-checkboxfiltertext .e-grid-status-temp .e-grid-status-text.e-verde,
.bootstrap5 .e-checkboxfiltertext .e-grid-status-temp .e-grid-status-text.e-rojo,
.bootstrap5 .e-checkboxfiltertext .e-grid-status-temp .e-grid-status-text.e-amarillo {
    position: relative;
    top: 1.5px;
}

.e-bigger.bootstrap5 .e-checkboxfiltertext .e-grid-status-temp .e-grid-status-text.e-verde,
.e-bigger.bootstrap5 .e-checkboxfiltertext .e-grid-status-temp .e-grid-status-text.e-rojo,
.e-bigger.bootstrap5 .e-checkboxfiltertext .e-grid-status-temp .e-grid-status-text.e-amarillo {
    top: -0.5px;
}

.e-grid-status-temp.e-rojo {
    background-color: #ffd7cc;
}

.e-grid-status-temp.e-verde {
    background-color: #ccffcc;
}

.e-grid-status-temp.e-amarillo {
    background-color: lightyellow;
}

.e-grid-status-text.e-verde {
    color: #00cc00;
}

.e-grid-status-text.e-rojo {
    color: #e60000;
}

.e-grid-status-text.e-amarillo {
    color: orange;
}

/* Color morado */
.custom-purple {
    --bs-primary: #7c37ad;
    --bs-secondary: #c1b5e5;
    --bs-success: #8f5cd2;
    --bs-warning: #b97cff;
    --bs-danger: #5a189a;
}

/* Color turquesa */
.custom-turquoise {
    --bs-primary: #17a2b8;
    --bs-secondary: #b6e3e9;
    --bs-success: #00bcd4;
    --bs-warning: #4db6ac;
    --bs-danger: #ef9a9a;
}

.bg-light-primary {
    background-color: #b2d3e6 !important;
}

.bg-light-danger {
    background-color: #f5a6a6 !important;
}

.bg-light-grey {
    background-color: #f8f9fa !important;
}

.border-grey {
    border: 1px solid #dfe1e4;
}

.border-danger {
    border: 1px solid #dc3545;
}

.font-bold {
    font-weight: bold;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #dc3545;
    animation: spin 1s ease infinite;
}

.bg-claro {
    background-color: #dfe1e4 !important;
}

.text-pink {
    color: var(--pink) !important;
}

.text-light-pink {
    color: #ff9fea !important;
}

.callout.callout-pink {
    border-left-color: #FF1493;
}

.bg-light-pink {
    background-color: #FFB6C1;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.custom-modal-extralarge {
    max-width: 75%; 
}

.custom-modal-extralargeplus {
    max-width: 90%;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #007bff !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #ffffff !important;
}

.select2-container .select2-selection--single {
    height: calc(2.25rem + 2px) !important; /* O el valor que desees */
}

.modal-fullscreen {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0
}

.modal-fullscreen .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0
}

.modal-fullscreen .modal-footer, .modal-fullscreen .modal-header {
    border-radius: 0
}

.modal-fullscreen .modal-body {
    overflow-y: auto
}

@media (max-width:575.98px) {
    .modal-fullscreen-sm-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0
    }

    .modal-fullscreen-sm-down .modal-content {
        height: 100%;
        border: 0;
        border-radius: 0
    }

    .modal-fullscreen-sm-down .modal-footer, .modal-fullscreen-sm-down .modal-header {
        border-radius: 0
    }

    .modal-fullscreen-sm-down .modal-body {
        overflow-y: auto
    }
}

@media (max-width:767.98px) {
    .modal-fullscreen-md-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0
    }

    .modal-fullscreen-md-down .modal-content {
        height: 100%;
        border: 0;
        border-radius: 0
    }

    .modal-fullscreen-md-down .modal-footer, .modal-fullscreen-md-down .modal-header {
        border-radius: 0
    }

    .modal-fullscreen-md-down .modal-body {
        overflow-y: auto
    }
}

@media (max-width:991.98px) {
    .modal-fullscreen-lg-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0
    }

    .modal-fullscreen-lg-down .modal-content {
        height: 100%;
        border: 0;
        border-radius: 0
    }

    .modal-fullscreen-lg-down .modal-footer, .modal-fullscreen-lg-down .modal-header {
        border-radius: 0
    }

    .modal-fullscreen-lg-down .modal-body {
        overflow-y: auto
    }
}

@media (max-width:1199.98px) {
    .modal-fullscreen-xl-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0
    }

    .modal-fullscreen-xl-down .modal-content {
        height: 100%;
        border: 0;
        border-radius: 0
    }

    .modal-fullscreen-xl-down .modal-footer, .modal-fullscreen-xl-down .modal-header {
        border-radius: 0
    }

    .modal-fullscreen-xl-down .modal-body {
        overflow-y: auto
    }
}

@media (max-width:1399.98px) {
    .modal-fullscreen-xxl-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0
    }

    .modal-fullscreen-xxl-down .modal-content {
        height: 100%;
        border: 0;
        border-radius: 0
    }

    .modal-fullscreen-xxl-down .modal-footer, .modal-fullscreen-xxl-down .modal-header {
        border-radius: 0
    }

    .modal-fullscreen-xxl-down .modal-body {
        overflow-y: auto
    }
}

.eli-separador {
    border-top: 2px solid var(--blue);
    height: 1px;
    margin: 0;
}

.row-eli {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 0.2rem; /* Compensa el margen de las columnas */
}

.col-eli-1, .col-eli-2, .col-eli-3, .col-eli-4 {
    box-sizing: border-box; /* Asegura que el padding y el margen se incluyan en el ancho */
    margin: 0.25rem; /* Ajusta el margen */
}

.col-eli-1 {
    flex: 0 0 calc((100% / 24) - 0.5rem); /* Ajusta el ancho */
    max-width: calc((100% / 24) - 0.5rem);
}

.col-eli-2 {
    flex: 0 0 calc((100% / 24 * 2) - 0.5rem); /* Ajusta el ancho */
    max-width: calc((100% / 24 * 2) - 0.5rem);
}

.col-eli-3 {
    flex: 0 0 calc((100% / 24 * 3) - 0.5rem); /* Ajusta el ancho */
    max-width: calc((100% / 24 * 3) - 0.5rem);
}

.col-eli-4 {
    flex: 0 0 calc((100% / 24 * 4) - 0.5rem); /* Ajusta el ancho */
    max-width: calc((100% / 24 * 4) - 0.5rem);
}

.col-eli-5 {
    flex: 0 0 calc((100% / 24 * 5) - 0.5rem); /* Ajusta el ancho */
    max-width: calc((100% / 24 * 5) - 0.5rem);
}

.col-eli-6 {
    flex: 0 0 calc((100% / 24 * 6) - 0.5rem); /* Ajusta el ancho */
    max-width: calc((100% / 24 * 6) - 0.5rem);
}

.col-eli-7 {
    flex: 0 0 calc((100% / 24 * 7) - 0.5rem); /* Ajusta el ancho */
    max-width: calc((100% / 24 * 7) - 0.5rem);
}

.col-eli-8 {
    flex: 0 0 calc((100% / 24 * 8) - 0.5rem); /* Ajusta el ancho */
    max-width: calc((100% / 24 * 8) - 0.5rem);
}

.col-eli-9 {
    flex: 0 0 calc((100% / 24 * 9) - 0.5rem); /* Ajusta el ancho */
    max-width: calc((100% / 24 * 9) - 0.5rem);
}

.col-eli-10 {
    flex: 0 0 calc((100% / 24 * 10) - 0.5rem); /* Ajusta el ancho */
    max-width: calc((100% / 24 * 10) - 0.5rem);
}

.col-eli-11 {
    flex: 0 0 calc((100% / 24 * 11) - 0.5rem); /* Ajusta el ancho */
    max-width: calc((100% / 24 * 11) - 0.5rem);
}

.col-eli-12 {
    flex: 0 0 calc((100% / 24 * 12) - 0.5rem); /* Ajusta el ancho */
    max-width: calc((100% / 24 * 12) - 0.5rem);
}

.col-eli-13 {
    flex: 0 0 calc((100% / 24 * 13) - 0.5rem); /* Ajusta el ancho */
    max-width: calc((100% / 24 * 13) - 0.5rem);
}

.col-eli-14 {
    flex: 0 0 calc((100% / 24 * 14) - 0.5rem); /* Ajusta el ancho */
    max-width: calc((100% / 24 * 14) - 0.5rem);
}

.col-eli-15 {
    flex: 0 0 calc((100% / 24 * 15) - 0.5rem); /* Ajusta el ancho */
    max-width: calc((100% / 24 * 15) - 0.5rem);
}

.col-eli-16 {
    flex: 0 0 calc((100% / 24 * 16) - 0.5rem); /* Ajusta el ancho */
    max-width: calc((100% / 24 * 16) - 0.5rem);
}

.col-eli-17 {
    flex: 0 0 calc((100% / 24 * 17) - 0.5rem); /* Ajusta el ancho */
    max-width: calc((100% / 24 * 17) - 0.5rem);
}

.col-eli-18 {
    flex: 0 0 calc((100% / 24 * 18) - 0.5rem); /* Ajusta el ancho */
    max-width: calc((100% / 24 * 18) - 0.5rem);
}

.col-eli-19 {
    flex: 0 0 calc((100% / 24 * 19) - 0.5rem); /* Ajusta el ancho */
    max-width: calc((100% / 24 * 19) - 0.5rem);
}

.col-eli-20 {
    flex: 0 0 calc((100% / 24 * 20) - 0.5rem); /* Ajusta el ancho */
    max-width: calc((100% / 24 * 20) - 0.5rem);
}

.col-eli-21 {
    flex: 0 0 calc((100% / 24 * 21) - 0.5rem); /* Ajusta el ancho */
    max-width: calc((100% / 24 * 21) - 0.5rem);
}

.col-eli-22 {
    flex: 0 0 calc((100% / 24 * 22) - 0.5rem); /* Ajusta el ancho */
    max-width: calc((100% / 24 * 22) - 0.5rem);
}

.col-eli-23 {
    flex: 0 0 calc((100% / 24 * 23) - 0.5rem); /* Ajusta el ancho */
    max-width: calc((100% / 24 * 23) - 0.5rem);
}

.col-eli-24 {
    flex: 0 0 calc((100% / 24 * 24) - 0.5rem); /* Ajusta el ancho */
    max-width: calc((100% / 24 * 24) - 0.5rem);
}

.eli-sin-cursor {
    cursor: none !important;
}

.nav-subitem {
    margin-left: 1.5rem !important;
}

.eli-oculto {
    display: none;
}

.eli-highlight {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 8px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    line-height: .9rem;
}

.eli-highlight.facturado-total {
    background-color: var(--success);
}

.eli-highlight.facturado-parcial {
    background-color: var(--warning);
}

.eli-highlight.no-facturado {
    background-color: var(--danger);
}

.eli-highlight.no-confirmado {
    background-color: var(--purple);
}

.eli-highlight.cliente-sin-oc {
    background-color: var(--primary);
}

.eli-highlight.oc-asignada {
    background-color: var(--success);
}

.eli-highlight.oc-no-asignada {
    background-color: var(--danger);
}

.clickable-header {
    cursor: pointer;
    padding: 0.5rem 0.75rem; /* Padding reducido */
}

.clickable-header:hover {
    background-color: #f8f9fa;
}

.clickable-stat:hover {
    background-color: #d6d8db; /* Color más destacado */
}

.clickable-stat {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

/* Para centrar los iconos de stats */
.stat-icon-wrapper {
    width: 20px;
    display: inline-block;
    text-align: center;
}

.clickable-stat-box {
    cursor: pointer;
    transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}

.clickable-stat-box:hover {
    transform: scale(1.09); /* Ligero zoom al pasar por encima */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.modal-full {
    max-width: 100%;
    width: 100%;
    margin: 0;
}

.modal-full .modal-content {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
}

/* Asegurar que el modal secundario aparezca encima del primario */
#modalSecundario {
    z-index: 1060; /* Mayor que el modal principal (1050) */
}

#modalSecundario .modal-backdrop {
    z-index: 1055;
}

/* Asegurar que el backdrop del modal secundario sea visible */
.modal-backdrop.show:nth-of-type(2) {
    z-index: 1055;
}

#turno-badge {
    cursor: default;
    padding: 0.5rem 1rem;
}

#turno-badge i {
    font-size: 1.2rem;
    vertical-align: middle;
}

#turno-badge .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
    vertical-align: middle;
}

/* ===== Syncfusion Grid - Estilos globales ===== */

/* Celdas compactas */
.e-grid .e-headercell {
    padding: 2px 6px !important;
    font-size: 0.8rem;
    line-height: 1.2;
    background-color: #f0f2f5 !important;
    font-weight: 600;
}

.e-grid td.e-rowcell,
.e-grid .e-row td.e-rowcell,
.e-grid .e-altrow td.e-rowcell,
.e-grid.e-grid td.e-rowcell {
    font-size: 0.8rem;
}

/* Alternate rows */
.e-grid .e-altrow,
.e-grid .e-altrow td.e-rowcell {
    background-color: #edf0f5 !important;
}

/* Fila seleccionada completa */
.e-grid td.e-rowcell.e-selectionbackground,
.e-grid td.e-active {
    background-color: #cde0f7 !important;
}

/* Hover en filas */
.e-grid .e-row:hover td.e-rowcell,
.e-grid .e-altrow:hover td.e-rowcell {
    background-color: #d0daea !important;
}

/* Pager compacto */
.e-grid .e-pager {
    font-size: 0.8rem;
    padding: 4px 8px;
}

/* ===== Info servidor - Dashboard ===== */
.info-card {
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.info-card .card-header {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 12px;
    color: #fff;
}
.info-header-sistema { background: #4a7cbe; }
.info-header-app { background: #17a2b8; }
.info-header-cpu { background: #d4a017; }
.info-header-ram { background: #28a745; }
.info-header-disco { background: #6c757d; }
.info-header-sql { background: #343a40; }
.info-header-procesos { background: #6f42c1; }
.info-table { font-size: 0.82rem; }
.info-table td, .info-table th { padding: 3px 8px; }
.info-label { font-weight: 600; white-space: nowrap; width: 140px; color: #555; }
.info-progress { height: 20px; border-radius: 3px; background: #e9ecef; }
.info-progress .progress-bar { font-size: 0.75rem; line-height: 20px; }