#chartdiv {
    width: 100%;
    height: 300px;
}

#chartPresupuesto {
    width: 100%;
    height: 500px;
}

.gantt-fullscreen {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    padding: 2px;
    font-size: 32px;
    background: transparent;
    cursor: pointer;
    opacity: 0.5;
    text-align: center;
    -webkit-transition: background-color 0.5s, opacity 0.5s;
    transition: background-color 0.5s, opacity 0.5s;
}

.gantt-fullscreen:hover {
    background: rgba(150, 150, 150, 0.5);
    opacity: 1;
}

.bk-cards {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
}

.metric-card:hover {
    transform: translateY(-5px);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metric-label {
    font-size: 1rem;
    color: #718096;
    margin-top: 0.5rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-card:nth-child(1) {
    animation-delay: 0.2s;
}

.metric-card:nth-child(2) {
    animation-delay: 0.4s;
}

.metric-card:nth-child(3) {
    animation-delay: 0.6s;
}

.nombre-container:hover .btn-filtrar {
    opacity: 1 !important;
    width: 80px !important;
    pointer-events: all !important;
}

.nombre-container:hover .underline {
    width: 100% !important;
}

.btn-filtrar:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.4);
}

.btn-filtrar.active {
    background: linear-gradient(45deg, #4CAF50, #45a049) !important;
}

/* Estilos base del botón */
#btnVerGanttModal {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(45deg, #0d9eff, #0d9eff);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-family: 'Arial', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-align: center;
    width: 20%;
    border: 2px solid transparent;
}

/* Efecto hover */
#btnVerGanttModal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: #2980b9;
}

/* Efecto al hacer click */
#btnVerGanttModal:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Animación sutil al pasar el mouse */
#btnVerGanttModal:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: shine 1.2s;
}

/* Animación de brillo */
@keyframes shine {
    100% {
        left: 200%;
    }
}

/* Efecto focus para accesibilidad */
#btnVerGanttModal:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

/* Animación de aparición suave */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.col-lg-4.col-md-3 {
    text-align: center;
    padding: 15px;
}

/* Aplicar animación de aparición */
#btnVerGanttModal {
    animation: fadeInUp 0.5s ease-out;
    /* margin-left: 28rem; */
}

.modal-xxl {
    max-width: 98% !important;
    margin: 0 auto;
    width: 100%;
    left: 1%;
    right: 1%;
}

/* Asegurar que el contenido ocupe todo el espacio */
.modal-content {
    min-height: 90vh;
    padding: 0;
}

/* Ajustar cuerpo del modal */
.modal-body.scroll-y {
    padding: 0;
    height: calc(100vh - 150px);
    min-height: 600px;
}

/* Contenedor del Gantt */
#gantt_here {
    width: 100% !important;
    height: 80vh !important;
    min-width: 1200px;
    min-height: 600px;
}

/* Header del modal */
.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #eee;
}

/* Contenedor principal */
#myCover {
    width: 100%;
    height: 100%;
    padding: 20px;
}

/* Botones de exportación */
.btnExportarPDF,
.btnExportarPNG,
.btnExportarMS,
.btnExportarExcel {

    transition: all 0.3s ease;
}

/* Scroll horizontal para contenido extenso */
.modal-body.scroll-y {
    overflow-x: auto;
}

/* Ajustar sección de botones superiores */
.d-flex.flex-wrap.justify-content-end {
    min-width: 1200px;
}

.gantt-fullscreen {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    padding: 2px;
    font-size: 32px;
    background: transparent;
    cursor: pointer;
    opacity: 0.5;
    text-align: center;
    -webkit-transition: background-color 0.5s, opacity 0.5s;
    transition: background-color 0.5s, opacity 0.5s;
}

.gantt-fullscreen:hover {
    background: rgba(150, 150, 150, 0.5);
    opacity: 1;
}

.gantt_task_line.gantt_dependent_task {
    background-color: #65c16f;
    border: 1px solid #3c9445;

}

.gantt_task_line.gantt_dependent_task .gantt_task_progress {
    background-color: #46ad51;
}

.gantt_task_cell.week_end {
    background-color: #EFF5FD;
}

.gantt_selected .gantt_task_cell.week_end {
    background-color: #f0e493;
}

.gantt_marker {
    background-color: rgba(255, 0, 0, 0.8);
}

.gantt_task_line,
.gantt_task_link {
    transition: opacity 200ms;
}

.overlay_visible .gantt_task_line,
.overlay_visible .gantt_task_link {
    opacity: 0.6;
}

.gantt_marker.today {
    background: #ffb121;
}

.gantt_here {
    z-index: 999999999 !important;
}

.gantt-completo {
    height: 90vh !important;
}

.highlighted-column {
    background-color: #fff3a1;
}

.gantt_task_scale .gantt_scale_cell {
    cursor: default;
}

.gantt_task_scale .gantt_scale_cell.highlighted-column {
    color: #454545;
    font-weight: bold;
}

/* CSS */

/* Estilo base del botón */
#btnVerEstructuraModalDashboard {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    background: linear-gradient(45deg, #0d9eff, #0d9eff);
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    width: 20%;
    /* min-width: 100%; */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* margin-left: 28rem; */
}

/* Hover: agranda y sombreado */
#btnVerEstructuraModalDashboard:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Efecto “shine”: un pseudo-elemento que recorre el botón */
#btnVerEstructuraModalDashboard::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-25deg);
    transition: none;
}

#btnVerEstructuraModalDashboard:hover::before {
    animation: shine 1s forwards;
}

@keyframes shine {
    to {
        left: 125%;
    }
}

/* Focus accesible */
#btnVerEstructuraModalDashboard:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(13, 158, 255, 0.4);
}

/* Active: efecto de pulsación */
#btnVerEstructuraModalDashboard:active {
    transform: scale(0.98);
}

/* Icono para indicar “estructura” (opcional) */
#btnVerEstructuraModalDashboard::after {
    content: "\f0e8";
    /* Icono de FontAwesome: estructura tipo diagrama */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 0.5rem;
}

#selectProyecto,
#btnVerGanttModal,
#btnVerEstructuraModalDashboard {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Estilos específicos para este modal */
#modalVerEstructuraDashboard .modal-dialog {
    max-width: 95vw;
    /* Ocupar casi todo el ancho de la pantalla */
    min-height: 80vh;
}

#modalVerEstructuraDashboard .modal-content {
    height: 85vh;
    /* Altura más grande */
}

#modalVerEstructuraDashboard .modal-body {
    padding: 0;
    /* Eliminar padding interno */
    height: calc(100% - 120px);
    /* Ajustar altura automáticamente */
}

/* Contenedor del diagrama */
#seccionVerDashboardEstructura {
    width: 100% !important;
    height: 100% !important;
    min-height: 500px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* Ajustes específicos para el diagrama dentro de este modal */
#modalVerEstructuraDashboard .go-Diagram {
    padding: 20px;
}

/* Botón de cerrar personalizado */
#modalVerEstructuraDashboard .btn-cancelar {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 20px;
}

/* Estilos específicos para el mensaje */
.no-tareas-container {
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.no-tareas-content {
    max-width: 500px;
    position: relative;
}

.animate-pulse {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: #4a5568;
    border-radius: 50%;
    animation: pulse 1.4s infinite ease-in-out;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes pulse {

    0%,
    80%,
    100% {
        transform: scale(0.5);
    }

    40% {
        transform: scale(1);
    }
}

/* Animación de entrada */
.animate__fadeIn {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Opcional: Si necesitas estilos más personalizados */
.titulo-grafica {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #3F4254;
    border-left: 4px solid #009EF7;
    padding-left: 1rem;
}

.select2-container .select2-selection--single {
    height: calc(1.5em + .75rem + 2px);
    /* ajustar a tu form-control */
    padding: .375rem .75rem;
    border-radius: .375rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(1.5em + .75rem + 2px);
}

/* Estilo para hitos de facturación */
.gantt_milestone.facturacion div {
    background-color: #FF6B6B !important;
    border-color: #FF6B6B !important;
}

/**
 * Estilos y animaciones para el botón #btnIrProyectoDashboard
 */

#btnIrProyectoDashboard {
    width: 20%;
    background: linear-gradient(45deg, #0d9eff, #007acc);
    background-size: 200% auto;
    background-position: left center;

    color: white;
    font-weight: bold;
    border: none;

    box-shadow: 0 4px 15px rgba(0, 115, 204, 0.3);

    transition:
        transform 0.2s ease-in-out,
        box-shadow 0.2s ease-in-out,
        background-position 0.4s ease-in-out;

    cursor: pointer;
}

#btnIrProyectoDashboard:hover {
    background-position: right center;

    transform: translateY(-3px);

    box-shadow: 0 8px 20px rgba(0, 115, 204, 0.4);
}

#btnIrProyectoDashboard:active {
    transform: translateY(1px);

    box-shadow: 0 2px 5px rgba(0, 115, 204, 0.3);

    transition-duration: 0.1s;
}

body.dark-mode-multiselect {
    background-color: #121212 !important;
    color: #e5e5e5 !important;
}

body.dark-mode-multiselect .bk-cards,
body.dark-mode-multiselect .metric-card {
    background: #1e1e1e !important;
    color: #e5e5e5 !important;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode-multiselect .titulo-grafica {
    color: #e5e5e5 !important;
    border-left-color: #0d9eff !important;
}

body.dark-mode-multiselect table,
body.dark-mode-multiselect .table-white {
    background-color: #1a1a1a !important;
    color: #f0f0f0 !important;
    border-color: #333 !important;
}

body.dark-mode-multiselect table thead tr {
    background-color: #2a2a2a !important;
}

body.dark-mode-multiselect table tbody tr:hover {
    background-color: #2e2e2e !important;
}

body.dark-mode-multiselect #btnVerGanttModal,
body.dark-mode-multiselect #btnVerEstructuraModalDashboard,
body.dark-mode-multiselect #btnIrProyectoDashboard {
    background: linear-gradient(45deg, #0066cc, #004999) !important;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3) !important;
    color: #fff !important;
}

body.dark-mode-multiselect select,
body.dark-mode-multiselect .select2-selection {
    background-color: #1e1e1e !important;
    color: #e5e5e5 !important;
    border-color: #333 !important;
}

body.dark-mode-multiselect .modal-content {
    background-color: #1a1a1a !important;
    color: #f0f0f0 !important;
}

body.dark-mode-multiselect #graficaProyectosPolarArea,
body.dark-mode-multiselect #graficaColumnasCostoComponentes,
body.dark-mode-multiselect #graficaColumnasCostoActividades,
body.dark-mode-multiselect #graficaColumnasCostoTareas,
body.dark-mode-multiselect #graficaCurvaSDashboard {
    background-color: #1e1e1e !important;
    border-radius: 10px;
    padding: 1rem;
}

body.dark-mode-multiselect .metric-label {
    color: #aaa !important;
}

body.dark-mode-multiselect .amcharts-axis-label,
body.dark-mode-multiselect .amcharts-axis-title,
body.dark-mode-multiselect .amcharts-legend-label,
body.dark-mode-multiselect tspan,
body.dark-mode-multiselect text {
    fill: #e5e5e5 !important;
    color: #e5e5e5 !important;
}

body.dark-mode-multiselect .amcharts-grid,
body.dark-mode-multiselect line {
    stroke: #444 !important;
}