/* estolo para la modal de creacion de cursos */
.divModalAgregarCurso {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.divModalAgregarCurso .modal-content-curso {
    background: #fff;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    width: 400px;
    text-align: center;
}

.input-curso-nuevo {
    width: 90%;
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 15px;
}

.btnGuardarCurso,
.btnCancelarCurso {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}

.btnGuardarCurso {
    background-color: #007bff;
    color: #fff;
}

.btnCancelarCurso {
    background-color: #ccc;
    color: #000;
}

.btnNuevoCurso {
    position: absolute;
    bottom: 0px;
    right: 50px;
    padding: 8px 12px;
    border-radius: 25px;
    height: 50px;
    width: 50px;
}

/* tabla para listas y secciones */

.th-contenedor {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.th-left {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.th-left select,
.th-left input {
    width: 100%;
    padding: 6px 8px;
    font-size: 14px;
}

.th-right {
    flex: 2;
}

.th-right textarea {
    width: 100%;
    height: 100%;
    min-height: 80px;
    padding: 8px;
    font-size: 14px;
    resize: vertical;
}



/* VISTA DE CAMBIO DE SECCION */

.miPanel_contenedor {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Panel izquierdo */
.miPanel_izquierda {
    width: 250px;
    background: #fff;
    border-right: 1px solid #ccc;
    padding: 10px;
    overflow-y: auto;
    overflow-x: auto;
}


/* TREEVIEW BASE */
.miPanel_treeview,
.miPanel_treeview ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.miPanel_folder {
    margin-bottom: 6px;
}

/* Carpetas */
.miPanel_toggle {
    cursor: pointer;
    margin-right: 5px;
    user-select: none;
    font-size: 16px;
}

/* Items */
.miPanel_item {
    cursor: pointer;
    padding: 4px 6px;
    display: inline-block;
    border-radius: 4px;
    user-select: none;
}

.miPanel_item:hover {
    background: #e6e6e6;
}

.miPanel_item.miPanel_activo {
    background: #cfe3ff;
    font-weight: bold;
}

/* Submenús colapsables */
.miPanel_submenu {
    padding-left: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}

/* Estado expandido */
.miPanel_submenu.miPanel_abierto {
    max-height: 500px;
    /* Valor grande para permitir crecer */
}

/* Panel derecho */
.miPanel_derecha {
    flex: 1;
    overflow: hidden;

}

#miPanel_iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Forzar que los nombres largos NO se partan */
.miPanel_toggle,
.miPanel_item {
    display: block;
    /* O inline-block si prefieres */
    white-space: nowrap;
    /* No permitir múltiples líneas */
    overflow: hidden;
    /* Ocultar texto que exceda */
    text-overflow: ellipsis;
    /* Mostrar ... */
    max-width: 100%;
    /* Importante para recortar bien */
}



/* ############# RENDER DE CAMBIO DE SECCION ############### */


.renderCambiodeSeccion_container {
    width: 100%;
    height: 100%;
    padding: 20px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background-color: #ffffff !important;
}

/* Titulos */
.renderCambiodeSeccion_title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
}

.renderCambiodeSeccion_subtitle {
    font-size: 13px;
    color: #666;
    /* margin-bottom: 20px; */
}

/* Contenedor tabla */
.renderCambiodeSeccion_tableWrapper {
    flex: 1;
    /* Ocupa todo el espacio disponible */
    overflow: auto;
    /* Scroll si hay demasiados datos */
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Tabla */
.renderCambiodeSeccion_table {
    width: 100%;
    border-collapse: collapse;
    /* min-width: 1100px; */
    /* Para evitar que se haga muy pequeña */
}

.renderCambiodeSeccion_table thead {
    background: #f2f2f2;
    position: sticky;
    top: 0;
    z-index: 2;
}

.renderCambiodeSeccion_table th,
.renderCambiodeSeccion_table td {
    padding: 4px 5px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    text-align: left;
}

.renderCambiodeSeccion_table tr:hover {
    background: #cfdefd;
}

.renderCambiodeSeccion_bottom {
    margin-top: 15px;
    padding: 15px;
    border: 1px dashed #bbb;
    border-radius: 8px;
    height: 200px;
    display: flex;
    flex-direction: row;
}

/* marzo de 2026 */

.trfila-activa {
    background-color: #6aacf3;
}

.btn-Eliminarcurso {
    width: 90px;
    padding: 5px 8px;
    display: inline-flex;
    background-color: #dd1c1c;
    border: none;
    border-radius: 5px;
    color: white;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    margin: 0 !important;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-Eliminarcurso:hover {
    background-color: #b71616;
}

.btn-Eliminarcurso:active {
    transform: scale(0.96);
}


.opciones-cursosAsig {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 30px;
    background-color: #ece9e9;
    padding: 5px;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 10px;
}

.opciones-cursosAsig select,
.opciones-cursosAsig button {
    cursor: pointer;
    height: 30px;
    width: 200px;
    margin: 10px;
    border-radius: 5px;
    /* background-color: #8d898994; */
    color: black;
    font-weight: bold;
    border: solid 1px;
}

.select-eliminacionC option,
.select-asignacionC option {
    background: white;
}


.select-eliminacionC:hover {
    background-color: #ff8080;
}

.select-asignacionC:hover {
    background-color: #8fff80;
}

.opciones-cursosAsig button:hover {
    background-color: #80b7ff;
}

.select-eliminacionC {
    background-color: #e27070;
}

.select-asignacionC {
    background-color: #70e27a;
}

.opciones-cursosAsig button {
    background-color: #70a5e2;
}

.btnAceptarAsig,
.btnCancelarAsig {
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btnAceptarAsig {
    background-color: #7888be;
}

.btnAceptarAsig:hover {
    background-color: #6575ad;
    transform: translateY(-1px);
}

.btnCancelarAsig {
    background-color: #868686;
}

.btnCancelarAsig:hover {
    background-color: #6f6f6f;
    transform: translateY(-1px);
}

.btnAceptarAsig:active,
.btnCancelarAsig:active {
    transform: translateY(1px);
}

.divModalAgregarCurso .modal-content-cursos {
    background: #fff;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    width: 60%;
    text-align: center;
}


/* modal para confirmacion */
/* PENDIENTE, HACERLO FRAGMENTO */
.mod-confirmar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);

    display: none;
    justify-content: center;
    align-items: center;

    z-index: 1000;
}

.mod-contenido {
    background: white;
    width: 380px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    font-family: sans-serif;
}

.mod-header {
    background: #1c2531;
    color: white;
    padding: 12px 16px;
    font-size: 18px;
}

.mod-descripcion {
    padding: 20px;
    font-size: 15px;
}

.mod-botonesconfirm {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #eee;
}

.mod-btn-cancelar {
    background: #ccc;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
}

.mod-btn-aceptar {
    background: #c0392b;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
}

#modDescripcion {
    white-space: pre-line;
}

.miPanel_izquierda select {
    /* border-radius: 5px;
    border: solid 1px black; */
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    background-color: #ffffff;
    color: #2c3e50;
    outline: none;
    cursor: pointer;
    transition: all 0.25s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='20' viewBox='0 0 20 20' width'20' xmlns='http://www.w3.org/2000/svg'><pathd='M5.5 714.5 5 4.5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}

.miPanel_izquierda select:hover {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.miPanel_izquierda option {
    padding: 10px;
}