/*
 * UNIFIED VISUAL SYSTEM - site.combined.css
 * Archivo combinado y optimizado que reemplaza: _Style_2025.css + Common.css + CustomReport.css
 * 
 * ESTRUCTURA:
 * 1. CSS Custom Properties (Variables de color, tipografía, etc.)
 * 2. Base Styling (html, body, tipografía base)
 * 3. Componentes principales (botones, formularios, cards)
 * 4. Navegación y breadcrumbs
 * 5. Alertas y notificaciones
 * 6. Utilidades de layout y espaciado
 * 7. Estados de carga y animaciones
 * 8. Responsive design y media queries
 * 9. Print styles
 * 10. Utility classes adicionales
 * 
 * FONTS: Se cargan mediante HTML link tags para mejor rendimiento
 * COLORES: Sistema unificado usando CSS custom properties
 * RESPONSIVO: Mobile-first approach con breakpoints optimizados
 */

/* Fonts are loaded via HTML link tags for better performance */

:root {
    --arg-color-primary: #242C4F;
    --arg-color-primary-rgb: 36, 44, 79;
    --arg-color-secondary: #FFFFFF;
    --arg-color-secondary-rgb: 255, 255, 255;
    --arg-yellow: #e7ba61;
    --bs-blue: #0d6efd;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #d63384;
    --bs-red: #dc3545;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffc107;
    --bs-green: #198754;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-primary: #37BBED;
    --bs-secondary: #50535C;
    --bs-success: #D7DF23;
    --bs-info: #50B8B1;
    --bs-warning: #FFD100;
    --bs-danger: #EE3D8F;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    --bs-font-sans-serif: var(--arg-font-primary);
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    --bs-primary-rgb: 55,187,237;
    /* Main font family hierarchy */
    --arg-font-primary: "Nunito", "Encode Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --arg-font-heading: "Lora", "Montserrat", serif;
    --arg-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Base styling for better visual consistency */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: auto;
}
.accordion {
    --bs-accordion-active-bg: #e9ecef;
    --bs-accordion-btn-padding-y: 0.5rem;
    --bs-accordion-body-padding-y: 0.5rem;
}

body {
    font-family: var(--arg-font-primary);
    font-size: 1rem;
    line-height: 1.6;
    background: var(--arg-color-secondary);
    color: var(--arg-color-primary);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: auto;
}

.form-control {
    height: auto;
}

.font-very-small {
    font-size: .700em;
}

.card {
    --bs-card-color: var(--arg-color-primary);
}
/*a {
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}*/

    a.card {
        text-decoration-line: none !important;
    }

a:hover {
    text-decoration: underline;
}

/* Headings with consistent typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--arg-font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--arg-color-primary);
}



.dark-mode h1, 
.dark-mode h2, 
.dark-mode h3, 
.dark-mode h4, 
.dark-mode h5, 
.dark-mode h6 {
    color: var(--arg-color-primary);
}
.navbar-nav {
    --bs-nav-link-color: var(--arg-color-primary);
    --bs-nav-link-hover-color: #607d8b;
}


.dark-mode {
    --arg-color-primary: #FFFFFF;
    --arg-color-primary-rgb: 255, 255, 255;
    --arg-color-secondary: #242C4F;
    --arg-color-secondary-rgb: 36, 44, 79;
  
}

    .dark-mode .navbar-nav {
        --bs-nav-link-color: var(--arg-color-primary);
        --bs-nav-link-hover-color: #d6e4eb;
    }

/* --- _Style_2025.css --- */


.navbar ul li .dropdown-menu {
    background: var(--arg-color-secondary) !important;
}

    .navbar ul li .dropdown-menu li a {
        color: var(--arg-color-primary) !important;
    }

.bg-primary {
    background-color: var(--arg-color-primary) !important;
}
.bg-secondary {
    background-color: var(--arg-color-secondary) !important;
}

.text-primary {
    color: var(--arg-color-primary) !important;
}

.text-secondary {
    color: var(--arg-color-secondary) !important
}


.home-link {
    border-left: 4px solid #e7ba61;
    padding-left: 5px;
}

.border-primary {
    --bs-border-opacity: 1;
    border-color: rgba(var(--arg-color-primary-rgb), var(--bs-border-opacity)) !important;
}

.border-secondary {
    --bs-border-opacity: 1;
    border-color: rgba(var(--arg-color-secondary-rgb), var(--bs-border-opacity)) !important;
}

.field-validation-error {
    color: var(--bs-red);
    font-size: .875em;
    font-weight: bold;
    margin-top: .25rem;
    width: 100%;
}
.border-bottom-amarillo {
    border-bottom: 3px solid var(--arg-yellow);
}
.lora-200 {
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
}
.form-control.input-validation-error {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-position: right calc(0.375em + 0.1875rem) center;
    background-repeat: no-repeat;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    border-color: var(--bs-red);
    padding-right: calc(1.5em + 0.75rem);
}
.form-control.input-validation-error:focus {
    border-color: var(--bs-red);
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}
.flex-even { flex: 1; }
.flex-basis-2 {
    flex-basis: 45%;
    flex-grow: 1;
}
.cursor-pointer { cursor: pointer; }
/* Improved button styling for better visual consistency */
.btn {
    font-family: var(--arg-font-primary);
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.btn:hover {
    /*transform: translateY(-1px);*/
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
   /* transform: translateY(0);*/
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--arg-color-primary);
    border-color: var(--arg-color-primary);
    color: var(--arg-color-secondary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: rgba(var(--arg-color-primary-rgb), 0.9);
    border-color: rgba(var(--arg-color-primary-rgb), 0.9);
    color: var(--arg-color-secondary);
}

.btn-secondary {
    background-color: var(--arg-color-secondary);
    border-color: var(--arg-color-primary);
    color: var(--arg-color-primary);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: rgba(var(--arg-color-secondary-rgb), 0.9);
    border-color: var(--arg-color-primary);
    color: var(--arg-color-primary);
}

.btn-outline-primary {
    border-color: var(--arg-color-primary);
    color: var(--arg-color-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--arg-color-primary);
    border-color: var(--arg-color-primary);
    color: var(--arg-color-secondary);
}

/* Enhanced form styling */
.form-control {
    font-family: var(--arg-font-primary);
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
}

.form-control:focus {
    border-color: var(--arg-color-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--arg-color-primary-rgb), 0.25);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--arg-color-primary);
    margin-bottom: 0.5rem;
}

.dark-mode .form-label {
    color: var(--arg-color-primary);
}

/* Enhanced card styling */
.card {
    border-radius: 8px;
    border: 1px solid rgba(var(--arg-color-primary-rgb), 0.125);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /*transform: translateY(-2px);*/
}

.card-header {
    background-color: rgba(var(--arg-color-primary-rgb), 0.05);
    border-bottom: 1px solid rgba(var(--arg-color-primary-rgb), 0.125);
    font-weight: 600;
    color: var(--arg-color-primary);
}

.dark-mode .card {
    background-color: rgba(var(--arg-color-secondary-rgb), 0.95);
    border-color: rgba(var(--arg-color-primary-rgb), 0.2);
}

.dark-mode .card-header {
    background-color: rgba(var(--arg-color-primary-rgb), 0.1);
}

button:focus:not(:focus-visible) {
    outline: 0;
}
.fa-rotate-45 {
    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* Enhanced spacing and layout utilities */
.section-spacing {
    padding: 2rem 0;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Improved responsive utilities */
@media (max-width: 768px) {
    .section-spacing {
        padding: 1.5rem 0;
    }
    
    .content-wrapper {
        padding: 0 0.75rem;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Enhanced accessibility and focus styles */
.btn:focus-visible,
.form-control:focus-visible,
a:focus-visible {
    outline: 2px solid var(--arg-color-primary);
    outline-offset: 2px;
}

/* Better table styling */
.table {
    font-family: var(--arg-font-primary);
}

.table th {
    font-weight: 600;
    background-color: rgba(var(--arg-color-primary-rgb), 0.05);
    color: var(--arg-color-primary);
    border-bottom: 2px solid rgba(var(--arg-color-primary-rgb), 0.2);
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(var(--arg-color-primary-rgb), 0.02);
}

.dark-mode .table th {
    background-color: rgba(var(--arg-color-primary-rgb), 0.1);
}

.dark-mode .table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(var(--arg-color-primary-rgb), 0.05);
}

/* Enhanced Navigation Styling */
.navbar {
    border-bottom: 2px solid rgba(var(--arg-color-primary-rgb), 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: var(--arg-font-heading);
    font-weight: 700;
    color: var(--arg-color-primary) !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: rgba(var(--arg-color-primary-rgb), 0.8) !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    font-family: var(--arg-font-primary);
    font-weight: 500;
    color: var(--arg-color-primary) !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.75rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: rgba(var(--arg-color-primary-rgb), 0.8);
}

.navbar-nav .nav-link.active {
    color: var(--arg-color-primary);
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background-color: var(--arg-yellow);
    border-radius: 1px;
}

/* Dropdown menu improvements */
.dropdown-menu {
    border: 1px solid rgba(var(--arg-color-primary-rgb), 0.15);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 0.5rem 0;
}

.dropdown-item {
    font-family: var(--arg-font-primary);
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
    color: var(--arg-color-primary);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(var(--arg-color-primary-rgb), 0.05);
    color: var(--arg-color-primary);
}

.dropdown-item.active {
    background-color: var(--arg-color-primary);
    color: var(--arg-color-secondary);
}

/* Breadcrumb styling */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
}

.breadcrumb-item {
    font-family: var(--arg-font-primary);
    font-size: 0.875rem;
}

    .breadcrumb-item a {
        color: rgba(var(--arg-color-primary-rgb), 0.5) !important;
        text-decoration: none;
    }

    .breadcrumb-item a:hover {
        color: rgba(var(--arg-color-primary-rgb), 0.8) !important;
        text-decoration: underline;
    }

.breadcrumb-item.active {
    color: rgba(var(--arg-color-primary-rgb), 0.7) !important;
}

/* Alert improvements */
.alert {
    border-radius: 8px;
    border: none;
    font-family: var(--arg-font-primary);
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.alert-primary {
    background-color: rgba(var(--arg-color-primary-rgb), 0.1);
    color: var(--arg-color-primary);
    border-left: 4px solid var(--arg-color-primary);
}

.alert-success {
    background-color: rgba(var(--bs-green), 0.1);
    color: var(--bs-green);
    border-left: 4px solid var(--bs-green);
}

.alert-warning {
    background-color: rgba(var(--arg-yellow), 0.1);
    color: #8a6f12;
    border-left: 4px solid var(--arg-yellow);
}

.alert-danger {
    background-color: rgba(var(--bs-red), 0.1);
    color: var(--bs-red);
    border-left: 4px solid var(--bs-red);
}

.alert-info {
    background-color: rgba(var(--bs-info), 0.1);
    color: var(--bs-info);
    border-left: 4px solid var(--bs-info);
}

/* Loading and animation improvements */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.scale-in {
    animation: scaleIn 0.2s ease-out;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Improved loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--arg-color-primary);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Enhanced focus styles for accessibility */
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
a:focus-visible {
    outline: 2px solid var(--arg-color-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(var(--arg-color-primary-rgb), 0.25);
}

/* Print styles */
@media print {
    .btn,
    .navbar,
    .breadcrumb,
    .alert {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}

/* Additional utility classes for improved consistency */
.text-muted {
    color: rgba(var(--arg-color-primary-rgb), 0.6) !important;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

/*.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }*/

.justify-content-start { justify-content: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }

.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

/* Enhanced responsive utilities */
@media (max-width: 576px) {
    .d-sm-none { display: none !important; }
    .d-sm-block { display: block !important; }
    .text-sm-center { text-align: center !important; }
    .text-sm-left { text-align: left !important; }
}

@media (max-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .text-md-center { text-align: center !important; }
    .text-md-left { text-align: left !important; }
}

@media (max-width: 992px) {
    .d-lg-none { display: none !important; }
    .d-lg-block { display: block !important; }
    .text-lg-center { text-align: center !important; }
    .text-lg-left { text-align: left !important; }
}

/* --- Common.css --- */
.btn-change-layout {
    background: var(--bs-blue, #00f) !important;
    border: 0;
    border-radius: 50%;
    bottom: 10px;
    box-shadow: 0 0 10px -5px #000;
    color: var(--bs-white, #fff);
    height: 35px !important;
    opacity: .35;
    overflow: hidden;
    position: fixed;
    width: 35px !important;
    z-index: 999999;
}
.btn-change-layout:hover { opacity: .65; }
.layout-danubis, .layout-sm, .layout-lg { left: 10px; }
.layout-sm, .layout-lg { left: 60px; }
.layout-danubis:before {
    content: "\f074";
    font-family: "Font Awesome 5 Pro";
    font-size: 14pt;
}
.layout-sm:before {
    content: "\f034";
    font-family: "Font Awesome 5 Pro";
    font-size: 14pt;
}
.layout-lg:before {
    content: "\f035";
    font-family: "Font Awesome 5 Pro";
    font-size: 14pt;
}
.to-left .dataTables_filter { text-align: left !important; }
.custom-select-sm { font-size: 75% !important; }
.select-with-font-awesome {
    font-family: 'Font Awesome 5 Pro', "Roboto", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

.z-index-top {
    z-index: 99999 !important;
    position: absolute !important;
}

/* --- CustomReport.css --- */
.good { color: #9ccf31 !important; }
.bad { color: #dd4b39 !important; }
.equal { color: #d8c945 !important; }
.panel, .panel-heading {
    border-radius: 0 !important;
    -webkit-box-shadow: none;
}
/*.body-wrapper {
    margin: 0;
    width: 100%;
}*/
/*@media (min-width: 1200px) {
    .body-wrapper {
        width: 95%;
    }
}

@media (max-width: 992px) {
    .body-wrapper {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .body-wrapper {
        width: 100%;
    }
}
.body-wrapper {
    margin-left: auto;
    margin-right: auto;
    margin-top: 5px;
}*/
.custom-title {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}
.panel-info, .panel-default { border-color: transparent; }
.alert-inner {
    background-color: var(--bs-info, #d9edf7);
    border-color: #bce8f1;
    color: #31708f;
    margin-bottom: 0;
}
.alert-outer {
    background-color: #f7f7f9;
    border: 1px solid #e1e1e8;
    border-radius: 2px;
    margin-bottom: 10px !important;
    margin-top: 10px !important;
    padding: 5px 14px;
}
.box-download { margin-bottom: 10px; }
.group-row-cell, .group-row-cell-next { background-color: #f4f4f4; }
.group-row-text {
    font-size: 110%;
    font-weight: bold;
    margin: 5px 50px;
}
.evol-equal {
    background-color: var(--bs-info, #d9edf7);
    border-color: #bce8f1;
    color: #31708f;
}
.evol-increase {
    background-color: #dff0d8;
    border-color: #d6e9c6;
    color: #3c763d;
}
.evol-decrease {
    background-color: #f2dede;
    border-color: #ebccd1;
    color: #a94442;
}
.legend {
    font-size: 80%;
    padding: 5px;
}
.legend-group { float: right; }
.select2-container--bootstrap .select2-selection { border-radius: 0 !important; }
.custom-report-info {
    background-color: #e6e6e6;
    color: #31708f;
    padding-bottom: 10px;
    padding-top: 10px;
}
.custom-report-info-report-name {
    font-size: 16px;
    font-weight: bold;
}
.custom-report-info-utility-name { font-size: 18px; }


.border-status-ACT_EMPTY {
    border-left: 10px solid #7f7f7f;
}

.status-legend.border-status-ACT_EMPTY:hover,
.status-legend-active.border-status-ACT_EMPTY {
    background-color: #7f7f7f;
    color: #fff;
}

.border-status-ACT_DATA_ENTRY {
    border-left: 10px solid #e41d32;
}

.status-legend.border-status-ACT_DATA_ENTRY:hover,
.status-legend-active.border-status-ACT_DATA_ENTRY {
    background-color: #e41d32;
    color: #fff;
}

.border-status-ACT_UTILITY_VALIDATION {
    border-left: 10px solid #fbba0c;
}

.status-legend.border-status-ACT_UTILITY_VALIDATION:hover,
.status-legend.border-status-ACT_UTILITY_VALIDATION:hover,
.status-legend-active.border-status-ACT_UTILITY_VALIDATION {
    background-color: #fbba0c;
    color: #fff;
}

.border-status-ACT_UTILITY_APPROVAL {
    border-left: 10px solid #feed00;
}

.status-legend.border-status-ACT_UTILITY_APPROVAL:hover,
.status-legend-active.border-status-ACT_UTILITY_APPROVAL {
    background-color: #feed00;
    color: #fff;
}



.border-status-ACT_REGULATOR_APPROVAL {
    border-left: 10px solid #3a9e30;
}

.status-legend.border-status-ACT_REGULATOR_APPROVAL:hover,
.status-legend-active.border-status-ACT_REGULATOR_APPROVAL {
    background-color: #3a9e30;
    color: #fff;
}

.border-status-ACT_DEVELOPER_APPROVAL {
    border-left: 10px solid #0072b9;
}

.status-legend.border-status-ACT_DEVELOPER_APPROVAL:hover,
.status-legend-active.border-status-ACT_DEVELOPER_APPROVAL {
    background-color: #0072b9;
    color: #fff;
}

.border-status-ACT_REGULATOR_CUDING,
.border-status-ACT_REGULATOR_EDITING {
    border-left: 10px solid #e2b231;
}

.status-legend.border-status-ACT_REGULATOR_CUDING:hover,
.status-legend.border-status-ACT_REGULATOR_EDITING:hover,
.status-legend-active.border-status-ACT_REGULATOR_CUDING,
.status-legend-active.border-status-ACT_REGULATOR_EDITING {
    background-color: #e2b231;
    color: #fff;
}



.status-ACT_EMPTY {
    background: #7f7f7f;
}

.status-ACT_DATA_ENTRY {
    background: #e41d32;
}

.status-ACT_UTILITY_VALIDATION {
    background: #fbba0c;
}

.status-ACT_UTILITY_APPROVAL {
    background: #feed00;
}

.status-ACT_REGULATOR_VALIDATION {
    background: #abbc5e;
}

.status-ACT_REGULATOR_APPROVAL {
    background: #3a9e30;
}

.status-ACT_DEVELOPER_APPROVAL {
    background: #0072b9;
}

.status-ACT_REGULATOR_CUDING,
.status-ACT_REGULATOR_EDITING {
    background: #e2b231;
}

.border-status-ACT_IN_DATABASE {
    border-left: 10px solid #37bbed;
}

.status-legend.border-status-ACT_IN_DATABASE:hover,
.status-legend-active.border-status-ACT_IN_DATABASE {
    background-color: #37bbed;
    color: #fff;
}

.status-ACT_IN_DATABASE {
    background: #37bbed;
}


.border-status-ACT_ALWAYS_ACTIVE_ANS {
    border-left: 10px solid #ee3d8f;
}

.status-legend.border-status-ACT_ALWAYS_ACTIVE_ANS:hover,
.status-legend-active.border-status-ACT_ALWAYS_ACTIVE_ANS {
    background-color: #ee3d8f;
    color: #fff;
}

.status-ACT_ALWAYS_ACTIVE_ANS {
    background: #ee3d8f;
}

/*ACT_REGULATOR_VALIDATION*/

.border-status-ACT_REGULATOR_VALIDATION {
    border-left: 10px solid #b5ce2c;
}

.status-legend.border-status-ACT_REGULATOR_VALIDATION:hover,
.status-legend-active.border-status-ACT_REGULATOR_VALIDATION {
    background-color: #b5ce2c;
    color: #fff;
}

.status-ACT_REGULATOR_VALIDATION {
    background: #b5ce2c;
}

.ACT_REGULATOR_VALIDATION.tooltip-arrow::before {
    border-top-color: #b5ce2c;
}

/*ACT_DEVELOPER_VALIDATION*/
.border-status-ACT_DEVELOPER_VALIDATION {
    border-left: 10px solid #929f57;
}

.status-legend.border-status-ACT_DEVELOPER_VALIDATION:hover,
.status-legend-active.border-status-ACT_DEVELOPER_VALIDATION {
    background-color: #929f57;
    color: #fff;
}

.status-ACT_DEVELOPER_VALIDATION {
    background: #929f57;
}

.ACT_DEVELOPER_VALIDATION.tooltip-arrow::before {
    border-top-color: #929f57;
}


.status-DEADLINE {
    background: #db2525;
}

.ACT_EMPTY.tooltip-arrow::before {
    border-top-color: #7f7f7f;
}

.ACT_DATA_ENTRY.tooltip-arrow::before {
    border-top-color: #e41d32;
}

.ACT_UTILITY_VALIDATION.tooltip-arrow::before {
    border-top-color: #fbba0c;
}

.ACT_UTILITY_APPROVAL.tooltip-arrow::before {
    border-top-color: #feed00;
}



.ACT_REGULATOR_APPROVAL.tooltip-arrow::before {
    border-top-color: #3a9e30;
}

.ACT_DEVELOPER_APPROVAL.tooltip-arrow::before {
    border-top-color: #0072b9;
}

.ACT_REGULATOR_CUDING.tooltip-arrow::before,
.ACT_REGULATOR_EDITING.tooltip-arrow::before {
    border-top-color: #e2b231;
}

.ACT_IN_DATABASE.tooltip-arrow::before {
    border-top-color: #37bbed;
}

.DEADLINE.tooltip-arrow::before {
    border-top-color: #db2525;
}

/* Styles for truncating and expanding 'instrucciones' */
.instrucciones-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    min-width: 0;
}

.instrucciones-texto {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
    max-height: 2.2em; /* Ajusta según el tamaño de fuente */
    position: relative;
}

.instrucciones-fade-btn {
    display: flex;
    align-items: center;
    position: relative;
   /* margin-left: -3.5em;*/
    z-index: 2;
    /*background: linear-gradient(to right, rgba(255,255,255,0), #fff 80%);*/
    padding-left: 1em;
}

.instrucciones-fade {
    display: inline-block;
    width: 2em;
    height: 1.2em;
    background: linear-gradient(to right, rgba(255,255,255,0), #fff 90%);
    pointer-events: none;
    margin-right: -1.2em;
}

#btnLeerMas {
   /* background: none;
    border: none;
    color: var(--arg-color-primary, #242C4F);*/
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    padding: 0 0.2em;
    margin-left: 0.2em;
    white-space: nowrap;
}

#btnLeerMas:focus {
   /* outline: 2px solid var(--arg-color-primary, #242C4F);*/
}

.instrucciones-texto.expanded {
    -webkit-line-clamp: unset;
    max-height: 100vh;
    overflow: visible;
}

.instrucciones-fade-btn.expanded {
    display: inline;
    background: none;
}
/*.notransition {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}*/

#btnLeerMas:hover {
    border-width: 1px;
}

.instrucciones-fade-btn.expanded .instrucciones-fade {
    display: none;
}

.w-5 {
    width: 5% !important;
}

.w-10 {
    width: 10% !important;
}

.w-15 {
    width: 15% !important;
}
.w-20 {
    width: 20% !important;
}
.w-30 {
    width: 30% !important;
}
.w-70 {
    width: 70% !important;
}


body, .container, .filter-panel, .divTable, #tableList.table {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
}

.page-title {
    /* font-size: 2.1rem;
    font-weight: 700;
    color: #1976d2;
    margin-bottom: 0.2em;
    letter-spacing: -1px;*/
    font-size: 1.7rem;
    font-family: var(--arg-font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--arg-color-primary);
}

.page-lead {
    font-size: 1.15rem;
    color: #607d8b;
    margin-bottom: 1.5em;
    font-weight: 400;
}

.divTable {
    opacity: 0;
}

.min-width {
    width: 150px;
}
/* Zebra striping for table rows */
#tableList tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

#tableList tbody tr:nth-child(even) {
    background-color: #ffffff;
}
/* Rounded corners and shadow for the table */
#tableList {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}
    /* Sticky table header */
    #tableList thead th {
        position: sticky;
        top: 0;
        background: #dee2e6;
        z-index: 2;
    }
        /* Slightly larger and bolder header text */
        #tableList thead th label {
            font-size: 1.08rem;
            font-weight: 600;
        }
    /* Add a subtle hover effect for rows */
    #tableList tbody tr:hover {
        background-color: #e0f7fa;
        transition: background 0.2s;
    }
    /* Espaciado mayor en la tabla */
    #tableList th, #tableList td {
        padding-top: 0.85em;
        padding-bottom: 0.85em;
        padding-left: 1.1em;
        padding-right: 1.1em;
        vertical-align: middle;
    }

    #tableList th {
        font-size: 1.05rem;
    }

    #tableList td {
        font-size: 1.01rem;
    }
    /* --- Improved Action Buttons --- */
    #tableList.table .btn {
        border-radius: 50%;
        width: 30px;
        height: 30px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        box-shadow: 0 1px 4px rgba(0,0,0,0.07);
        transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
        margin: 0 2px;
    }

        #tableList.table .btn:hover {
            box-shadow: 0 2px 8px rgba(0,0,0,0.13);
            transform: scale(1.08);
            opacity: 0.92;
        }

    #tableList.table .btn-warning {
        color: #fff;
        background: #fbc02d;
        border: none;
    }

        #tableList.table .btn-warning:hover {
            background: #f9a825;
        }

    #tableList.table .btn-success {
        color: #fff;
        background: #43a047;
        border: none;
    }

        #tableList.table .btn-success:hover {
            background: #388e3c;
        }

    #tableList.table .btn-danger {
        color: #fff;
        background: #e53935;
        border: none;
    }

        #tableList.table .btn-danger:hover {
            background: #b71c1c;
        }

    #tableList.table .btn-secondary {
        color: #fff;
        background: #546e7a;
        border: none;
    }

        #tableList.table .btn-secondary:hover {
            background: #37474f;
        }

    #tableList.table .btn-inverse {
        color: #fff;
        background: #90a4ae;
        border: none;
    }

        #tableList.table .btn-inverse:hover {
            background: #78909c;
        }
    /* Icon size for action buttons */
    #tableList.table .btn i {
        font-size: 0.9rem;
    }
/* --- New Styles for Filter Panel --- */
.filter-panel {
    background: #f5f7fa;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    padding: 0.5rem 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-toggle {
    cursor: pointer;
    font-weight: 600;
    color: #1976d2;
    background: none;
    border: none;
    outline: none;
    font-size: 1.1rem;
    /*margin-bottom: 0.5rem;*/
    display: flex;
    align-items: center;
}

    .filter-toggle i {
        margin-right: 0.5rem;
        transition: transform 0.2s;
    }

    .filter-toggle.collapsed i {
        transform: rotate(-90deg);
    }

.filter-badges {
   /* margin-bottom: 0.5rem;*/
}

.filter-badge {
    display: inline-block;
    background: #1976d2;
    color: #fff;
    border-radius: 12px;
    padding: 0.25em 0.8em;
    font-size: 0.95em;
    margin-right: 0.5em;
    margin-bottom: 0.2em;
    font-weight: 500;
}

/* Modernized Bootstrap/DataTables Pagination */

.pagination > li > a, .pagination > li > span {
    background: var(--arg-color-secondary);
    color: var(--arg-color-primary);
    padding: 6px 14px;
    font-weight: 600;
    font-size: 0.8em;
}

.pagination > li.active > a, .pagination > li.active > span {
    background: var(--arg-color-primary);
    color: var(--arg-color-secondary);
    font-weight: 600;
    font-size: 0.8em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

    .pagination > li.active > a:hover, .pagination > li.active > span:hover {
        background: var(--arg-color-primary);
        color: var(--arg-color-secondary);
        outline: 2px solid var(--arg-color-primary);
   /*     box-shadow: 0 4px 4px rgba(0,0,0,0.07);
        transition: background 0.2s, color 0.2s, box-shadow 0.2s;*/
    }

.pagination > li > a:hover, .pagination > li > a:focus, .pagination > li > span:hover, .pagination > li > span:focus {
    background: var(--arg-color-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(25,118,210,0.13);
    text-decoration: none;
}

.pagination > .disabled > span, .pagination > .disabled > span:hover, .pagination > .disabled > span:focus, .pagination > .disabled > a, .pagination > .disabled > a:hover, .pagination > .disabled > a:focus {
    background-color: #f1f1f1;
    border-color: #f4f4f4;
    color: #b7b7b7;
    cursor: not-allowed;
}
