.divider:after,
.divider:before {
    content: "";
    flex: 1;
    height: 1px;
    background: #eee;
}

.h-custom {
    height: calc(100% - 73px);
}

@media (max-width: 450px) {
    .h-custom {
        height: 100%;
    }
}
.text-justify {
    text-align: justify;
    margin: 50px;
}

/* Estilos generales */
.page-header {
    background: linear-gradient(45deg, #2193b0, #6dd5ed);
    color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Estilos para tablas */
.table {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.table thead {
    background: #f8f9fa;
}

.table th {
    border-top: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #495057;
}

/* Estilos para formularios */
.form-container {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    padding: 0.75rem;
    transition: border-color 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #2193b0;
    box-shadow: 0 0 0 0.2rem rgba(33, 147, 176, 0.25);
}

/* Estilos para botones */
.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: #2193b0;
    border-color: #2193b0;
}

.btn-primary:hover {
    background: #1a7a8f;
    border-color: #1a7a8f;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger:hover {
    color: white;
    background: #dc3545;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-green);
    margin-bottom: 1rem;
}

.content-overlay {
    background: rgba(0, 0, 0, 0.7);
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.session-timer-sidebar {
    font-size: 0.8em;
    color: #ffffff;
    margin-top: 5px;
    padding: 3px 0;
    text-align: center;
    display: block;
}

/* Panel de filtros fijo */
.sticky-panel {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

/* Estilizar la barra de scroll del panel */
.sticky-panel::-webkit-scrollbar {
    width: 6px;
}

.sticky-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sticky-panel::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.sticky-panel::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999;
}

.ui-menu-item {
    padding: 5px 10px;
    cursor: pointer;
}

.ui-menu-item:hover {
    background-color: #f8f9fa;
}

.ui-menu .ui-menu-item div {
    padding: 5px;
    line-height: 1.5;
}
/* Estilos para card-header - estilo similar a CajaChica */
.card-header {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%) !important;
    color: white !important;
    border-bottom: none !important;
    padding: 1rem 1.25rem;
}

.card-header .card-title,
.card-header h3,
.card-header h4,
.card-header h5 {
    color: white !important;
    margin-bottom: 0;
}

.card-header i {
    color: white !important;
}

.card-header small {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Mantener el color warning para cards especiales */
.card-header.bg-warning {
    background: #ffc107 !important;
    color: #000 !important;
}

.card-header.bg-warning .card-title,
.card-header.bg-warning h5 {
    color: #000 !important;
}

/* Estilos para tablas - encabezado con gradiente */
.table thead {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%) !important;
}

.table thead th {
    background: transparent !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.table-dark {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%) !important;
}

.table-dark th {
    background: transparent !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* jQuery UI Autocomplete - Fix para modales de Bootstrap */
.ui-autocomplete {
    z-index: 1060 !important;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}

.ui-menu-item {
    list-style: none;
}

.ui-menu-item-wrapper {
    padding: 8px 12px;
    cursor: pointer;
}

.ui-menu-item-wrapper:hover,
.ui-state-active {
    background-color: #0d6efd !important;
    color: white !important;
    border: none !important;
}

/* Efecto zoom al pasar el cursor sobre las imágenes */
.zoom-on-hover {
    transition: transform 0.2s ease-in-out;
    cursor: zoom-in;
    transform-origin: center center;
    position: relative;
    z-index: 1;
}

.zoom-on-hover:hover {
    transform: scale(2.5);
    z-index: 1050; /* Por encima de modales/offcanvas de bootstrap si es necesario */
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

/* Barra de rango de fechas (Cargas, Descargas, Mediciones): fechas y botones del mismo alto y ancho.
   Sin esto, el padding global de .form-control (slidingPanel.css) deja las fechas más altas que los botones. */
.rango-fechas .form-control,
.rango-fechas .btn {
    height: 38px;
    padding: .375rem .75rem !important;
    font-size: .875rem;
    line-height: 1.5;
}
.rango-fechas .btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
