
.procesos-detail-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
    overflow: auto;
    padding: 10px;
}


.seccion-titulo {
    font-size: 18px;
    font-weight: bold;
    color: #0d3c61;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}


.procesos-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.procesos-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border-left: 4px solid;
}

    .procesos-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .procesos-card.total {
        border-left-color: #1565c0;
        background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
        box-shadow: 0 4px 20px rgba(21, 101, 192, 0.4);
        border: none;
        transform: scale(1.02);
    }

        .procesos-card.total:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 30px rgba(21, 101, 192, 0.5);
        }

    .procesos-card.pendiente {
        border-left-color: #f39c12;
        background: linear-gradient(135deg, rgba(243, 156, 18, 0.1) 0%, rgba(230, 126, 34, 0.1) 100%);
    }

    .procesos-card.vencido {
        border-left-color: #d35400;
        background: linear-gradient(135deg, rgba(211, 84, 0, 0.1) 0%, rgba(192, 57, 43, 0.1) 100%);
    }

.procesos-card-number {
    font-size: 42px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 8px;
}

    .procesos-card-number.total {
        color: white;
    }

    .procesos-card-number.pendiente {
        color: #f39c12;
    }

    .procesos-card-number.vencido {
        color: #d35400;
    }

.procesos-card-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.procesos-card.total .procesos-card-label {
    color: white;
}

.procesos-card.pendiente .procesos-card-label,
.procesos-card.vencido .procesos-card-label {
    color: #0d3c61;
}

.procesos-card-value {
    font-size: 12px;
    font-weight: 500;
}

.procesos-card.total .procesos-card-value {
    color: rgba(255, 255, 255, 0.95);
}

.procesos-card.pendiente .procesos-card-value,
.procesos-card.vencido .procesos-card-value {
    color: #2d3748;
}


.procesos-charts-row-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 420px;
}


.procesos-charts-row-dual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    min-height: 400px;
}

.procesos-chart-card {
    background: rgba(240, 248, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.procesos-chart-title {
    font-size: 15px;
    font-weight: bold;
    color: #0d3c61;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1565c0;
    text-align: center;
    flex-shrink: 0;
}

.procesos-chart-container {
    flex: 1;
    min-height: 0;
}


.procesos-terminados-section {
    margin-top: 20px;
}

.procesos-detail-container .maximize-btn {
    background: rgba(21, 101, 192, 0.8);
    border: none;
    color: white;
    width: 80px;
    padding: 4px 8px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    gap: 5px;
    white-space: nowrap;
}

    .procesos-detail-container .maximize-btn:hover {
        background: rgba(21, 101, 192, 1);
        transform: scale(1.1);
    }


.modal-interno {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease;
}

.modal-interno-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 85%;
    max-width: 1100px;
    max-height: 85vh;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    animation: slideDown 0.3s ease;
}

.modal-interno-header {
    padding: 18px 25px;
    border-bottom: 2px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
    color: white;
    border-radius: 10px 10px 0 0;
    flex-shrink: 0;
}

.modal-interno-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}

.modal-interno-close {
    color: white;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .modal-interno-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }

.modal-interno-body {
    flex: 1;
    padding: 25px;
    overflow: auto;
}

.tabla-resumen-responsables {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

    .tabla-resumen-responsables thead {
        background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
        color: white;
    }

    .tabla-resumen-responsables th {
        padding: 14px 16px;
        text-align: left;
        font-size: 13px;
        font-weight: 600;
    }

        .tabla-resumen-responsables th.text-center {
            text-align: center;
        }

    .tabla-resumen-responsables tbody tr {
        transition: all 0.2s ease;
        border-bottom: 1px solid #e0e0e0;
    }

        .tabla-resumen-responsables tbody tr:hover {
            background-color: #f5f9fc;
        }

    .tabla-resumen-responsables td {
        padding: 14px 16px;
        font-size: 13px;
        color: #2d3748;
    }

        .tabla-resumen-responsables td.text-center {
            text-align: center;
        }

.nombre-responsable {
    font-weight: 600;
    color: #0d3c61;
}

.numero-procesos {
    font-weight: 600;
    font-size: 14px;
}

.numero-total {
    color: #1565c0;
}

.numero-pendiente {
    color: #f39c12;
}

.numero-vencido {
    color: #d35400;
}

.valor-monetario {
    font-weight: 600;
    color: #1565c0;
    font-size: 12px;
}

.width50 {
    width: 50%;
}

/* fila completa */
.row-full {
    width: 100%;
}

/* fila de dos columnas */
.row-half {
    display: flex;
    gap: 20px;
    width: 100%;
}

/* cada columna 50% */
.col-half {
    flex: 1;
}

@@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ------------------------------------------------------------
   Contenedores de graficas dentro de los modales
   (reemplaza style="width:100%; height:400px;")
   ------------------------------------------------------------ */

.chart-canvas-modal {
    width: 100%;
    height: 400px;
}
