/* =========================================================================================
                                    MIS CLASES GLOBALES 
========================================================================================= */
.header-title-flex { display: flex; align-items: center; gap: 15px; }
.header-flex-wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.table-head-row { background: #f8f9fa; border-bottom: 2px solid #eee; }
.pagination-text { font-size: 13px; color: var(--text-muted); }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mt-30 { margin-top: 30px; }
.m-0 { margin: 0; }
.ml-5 { margin-left: 5px; }
.text-bold { font-weight: 600; }
.text-center { text-align: center; }
.text-14 { font-size: 14px; display: block; }
.text-danger-bold { color: #e53935; font-weight: 700; }
.text-primary-bold { font-weight: 700; color: var(--primary); }
.text-muted-light { color: #ccc; }
.link-unstyled { text-decoration: none; color: inherit; }
.clickable-header { cursor: pointer; }
.clickable-row { cursor: pointer; }
.form-actions-wrapper { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; margin-top: 20px; border-top: 1px solid #eee; padding-top: 20px; width: 100%; }
.student-info-flex { display: flex; align-items: center; gap: 10px; }
.avatar-primary { width: 35px; height: 35px; background: #f0f7ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #0061f2; }
.avatar-danger { width: 35px; height: 35px; background: #fff5f5; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #e53935; }
/*.btn-wsp-custom { background: #25d366; padding: 5px 10px; font-size: 11px; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; color: #fff;}*/
.btn-success-custom { background: #2e7d32; text-decoration: none; }
.btn-success-sm { padding: 8px 15px; font-size: 12px; background: #2e7d32; }


.icon-reset { font-size: 18px; margin-right: 5px; }
.empty-icon-lg { font-size: 1.5rem; vertical-align: middle; margin-right: 8px; color: #999; }
.badge-motivo { background: #f0f4ff; color: #0056b3; padding: 3px 8px; border-radius: 5px; font-weight: bold; font-size: 11px; text-transform: uppercase; }
.badge-motivo-light { background: #e8f0fe; color: #1967d2; border: none; }
.user-profile-btn { cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.icon-profile { font-size: 24px; color: var(--primary); } 
/*.empty-state-cell-sm { text-align: center; padding: 20px; }*/
.pill-light-gray { background: #f5f5f5; }

/* =========================================================================================
       LOS CSS CON CONFLICTOS QUE TENIA Y LAS SOLUCIONE - LAS DEJARE AQUI POR MIENTRAS 
========================================================================================= *

/* ESPACIO ETIQUETA P EN FALTAS Y PERMISOS */
.page-desc { margin-bottom: 25px; color: var(--text-muted); font-size: 14px; margin-top: 5px; }

/*  */
.search-wrapper { display: flex; justify-content: flex-end; margin-bottom: 15px; }

/*  SEARCH BOX FLEX GLOBAL */
.search-box-flex { display: flex; gap: 5px; width: 100%; max-width: 400px; }
.search-input-clean { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid #ddd; outline: none; font-size: 13px; }

/* ESTILOS Y SEARCH BOX DE REPORTE INDIVIDUAL*/
.search-container { background: #fff; padding: 25px; border-radius: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); margin-bottom: 20px; } 
.search-box { display: flex; gap: 10px; max-width: 600px; margin-top: 10px; flex-wrap: wrap; }
.search-input-lg { flex: 1; padding: 12px; border: 1px solid #ddd; border-radius: 8px; outline: none; min-width: 250px; }
.results-list { list-style: none; padding: 0; margin-top: 10px; border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.results-list li a { display: block; padding: 12px; text-decoration: none; color: #333; background: #fff; border-bottom: 1px solid #eee; transition: 0.2s; }
.results-list li a:hover { background: #f0f7ff; color: var(--primary); }
.info-card { background: var(--primary); color: white; padding: 20px; border-radius: 15px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }

.empty-search-item { padding: 15px; color: #999; text-align: center; }
.student-subtext-inline { color: #888; font-size: 0.85em; margin-left: 10px; }

/*  */
.student-subtext { display: block; color: #888; font-size: 11px; }

/*  */
.text-muted-xs { color: var(--text-muted); font-size: 12px; }

/*  */
.text-muted-xs-italic { font-size: 10px; color: #bbb; font-style: italic; padding-bottom: 20px;}

/*  */
.btn-print-custom { background: var(--clr-print); }

/* */
 .search-btn-primary { padding: 10px 15px; background: var(--primary); transition: 0.3s; }

/* */
.header-actions-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }

/* =========================================================================================
                                    MIS CLASES ÚNICAS 
========================================================================================= */

/* --- ALUMNOS.PHP --- */
.btn-register-main { flex: 1; min-width: 280px; max-width: 320px; justify-content: center; }
.import-box-wrapper { display: flex; align-items: center; gap: 10px; background: #f8f9fa; padding: 12px; border-radius: 12px; border: 1px dashed #ccc; flex-wrap: wrap; flex: 1; min-width: 280px; justify-content: center; }
.import-label-flex { display: flex; flex-direction: column; gap: 2px; min-width: 120px; }
.import-label-text { font-size: 13px; font-weight: 700; color: #444; cursor: pointer; white-space: nowrap; }
.import-download-link { font-size: 11px; color: var(--primary); text-decoration: none; font-weight: 700; white-space: nowrap; }
.import-file-input { font-size: 11px; flex: 1; min-width: 130px; }
.btn-upload-csv { background: #555; padding: 8px 15px; font-size: 13px; white-space: nowrap; height: 35px; }
.icon-sort { font-size: 14px; opacity: 0.5; }
.th-contacto { width: 40px; }
.icon-xs { font-size: 10px; }
.ciclo-flex-container { display: flex; gap: 10px; margin-top: 4px; }
.text-gray { color: gray; }
.text-gray-sm { color: gray; font-size: 0.85em; }
.wsp-link-icon { color: #25d366; font-size: 20px; }
.wsp-disabled-icon { color: #ccc; font-size: 20px; }
.qr-link-icon { color: var(--primary); font-size: 20px; }
.actions-flex { display: flex; gap: 10px; }
.action-edit-icon { color: #3949ab; }
.action-delete-icon { color: #e53935; }

/* --- DASHBOARD.PHP --- */
.progress-bar-container { background: #eee; height: 10px; border-radius: 10px; overflow: hidden; margin-top: 5px; }
.progress-fill { height: 100%; transition: width 1s ease-in-out; }
.dashboard-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 20px; align-items: start; }
.dashboard-footer-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; align-items: stretch; }
.dashboard-footer-grid .content-box { min-height: auto !important; height: fit-content !important; padding: 15px 20px; }
.status-container { display: block; margin-top: 10px; }
.status-item { display: flex; align-items: center; gap: 10px; padding: 12px; background: #ffffff; border-radius: 8px; border: 1px solid #f0f0f0; margin-bottom: 10px; width: 100%; }
.status-item i { font-size: 20px; color: var(--primary); }
.status-info p { margin: 0; font-size: 11px; color: #888; }
.status-info span { font-weight: 600; font-size: 13px; color: #333; }
.ranking-item { display: flex; align-items: center; gap: 8px; padding: 8px; background: #fcfcfc; border-radius: 8px; border: 1px solid #f0f0f0; transition: all 0.3s ease; margin-bottom: 8px; }
.ranking-item:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.06); border-color: var(--primary) !important; background-color: #fff !important; }
.ranking-number { background: #fff0f0; color: #e53935; padding: 5px 10px; border-radius: 5px; font-weight: bold; font-size: 16px; min-width: 30px; text-align: center; transition: 0.3s; }
.ranking-item:hover .ranking-number { background-color: #e53935 !important; color: #fff !important; }
.r-name { font-weight: 600; color: #444 !important; font-size: 12px; } 
.r-dni { color: #e57373 !important; font-size: 11px; margin-left: 4px; font-family: monospace; }
.r-label { color: #888 !important; font-size: 10px; display: block; }
.ranking-item:hover .r-name { color: #444 !important; }
.ranking-item:hover .r-dni { color: #e57373 !important; }
.ranking-item:hover .r-label { color: #888 !important; }
.riesgo-container { display: flex; flex-direction: column; gap: 8px; }
.alerta-riesgo { padding: 10px; border-left: 4px solid #ff5252; background: #fff5f5; border-radius: 4px; display: flex; justify-content: space-between; align-items: center; transition: transform 0.2s ease; cursor: pointer; user-select: none; }
.alerta-riesgo:hover { transform: translateX(5px); background: #ffebeb; box-shadow: 2px 2px 8px rgba(255, 82, 82, 0.1); }
.alerta-riesgo:active { transform: scale(0.97) translateX(5px); background: #ffdada; }
.riesgo-info strong { color: #333; display: block; font-size: 13px; line-height: 1.2; }
.riesgo-info span { color: #666; font-size: 11px; }
.riesgo-icon { color: #ff5252; font-size: 18px; flex-shrink: 0; }
.notif-bajas-box { background: #fff8e1; border: 1px solid #ffe082; position: relative; }
.notif-bajas-title { font-size: 14px; margin-bottom: 12px; color: #f57f17; display: flex; align-items: center; gap: 6px; }
.notif-bajas-desc { font-size: 11px; color: #666; margin-bottom: 12px; padding-right: 25px; }
.notif-bajas-list { display: flex; flex-direction: column; gap: 8px; }
.notif-bajas-item { display: flex; flex-direction: column; background: #fff; padding: 8px 10px; border-radius: 6px; border-left: 3px solid #ffca28; }
.notif-bajas-name { font-weight: 600; font-size: 12px; color: #333; }
.notif-bajas-carrera { font-size: 10px; color: #888; }
.notif-close-btn { position: absolute; top: 12px; right: 15px; background: none; border: none; font-size: 18px; color: #f57f17; cursor: pointer; transition: 0.2s; }
.notif-close-btn:hover { color: #e65100; transform: scale(1.1); }
.glass-danger-custom { background: rgba(235, 87, 87, 0.1); border: 1px solid rgba(235, 87, 87, 0.2); }
.glass-danger-icon { color: #eb5757; }
.glass-warning-dyn { background: rgba(211, 47, 47, 0.1); border: 1px solid rgba(211, 47, 47, 0.2); }
.glass-warning-icon { color: #d32f2f; }
.glass-success-dyn { background: rgba(155, 81, 224, 0.1); border: 1px solid rgba(155, 81, 224, 0.2); }
.glass-success-icon { color: #9b51e0; }
.dash-section-title { margin-bottom: 20px; }
.dash-section-title-sm { margin-bottom: 15px; font-size: 15px; color: #333; }
.dash-section-title-danger { color: #d32f2f; font-size: 14px; margin-bottom: 15px; }
.td-flex-column { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.icon-entrada { color: #1976d2; font-size: 10px; }
.icon-salida { font-size: 10px; }
.text-success-bold { color: #27ae60; font-weight: 600; }
.status-small-bold { font-size: 9px; text-transform: uppercase; font-weight: bold; }
.action-link-container { text-align: center; margin-top: 15px; }
.btn-rounded-light { font-size: 11px; color: #666; text-decoration: none; background: #f0f0f0; padding: 5px 15px; border-radius: 20px; transition: 0.3s; display: inline-block; }
.btn-rounded-light:hover { background: #e0e0e0; }
.dashed-divider { margin: 25px 0; border-top: 1px dashed #eee; }
.solid-divider { border: 0; border-top: 1px solid #eee; margin: 25px 0; }
.solid-divider-dark { border: 0; border-top: 1px solid #d8c5c5; margin: 25px 0; }
.icon-danger { color: #e53935; }
.grid-2-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.empty-state-text { grid-column: span 2; text-align: center; font-size: 12px; color: #999; }
.empty-state-text-pad { font-size: 12px; color: #999; text-align: center; padding: 20px; }
.text-danger-uppercase { text-transform: uppercase; font-size: 10px; color: #d32f2f; }
.min-h-auto { min-height: auto; }
.flex-between-bold { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: #333; }
.flex-wrap-gap8-mt6 { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.badge-ciclo { font-size: 12px; background: #f0f2f5; padding: 2px 8px; border-radius: 4px; color: #555; border: 1px solid #e0e0e0; }
.text-dark-bold { color: #333; }
.content-box-light { background: #f8f9fa; }
.status-vacaciones { color: #e6000c; font-weight: 800; font-size: 11px; display: flex; align-items: center; gap: 4px; }
.icon-vacaciones { font-size: 14px; color: #e6000c; }
.status-online { color: #27ae60; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.icon-online { font-size: 14px; color: #27ae60; }

/* --- EDIT_ALUMNO.PHP --- */
.input-disabled-custom { background: #f5f5f5; color: #888; }
.grid-col-span-2 { grid-column: span 2; }
.btn-justify-center { justify-content: center; }   

/* --- LECTOR.PHP --- */
#reader { width: 100%; max-width: 500px; margin: 0 auto; border-radius: 20px; overflow: hidden; background: #000; border: none !important; }
.scanner-container { text-align: center; padding: 20px; }
.btn-controls { margin-top: 20px; display: flex; justify-content: center; gap: 15px; }
#status-text { font-weight: 600; transition: 0.3s; color: var(--primary); } 
.scanner-result-box { margin-top: 20px; padding: 15px; border-radius: 10px; background: #f8f9fa; border: 1px solid #ddd; }
.alert-info-box { margin: 15px 0; padding: 12px 15px; background: #e3f2fd; border-left: 4px solid #1976d2; border-radius: 8px; text-align: left; }
.alert-info-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; color: #0d47a1; margin: 0; }
.checkbox-large { transform: scale(1.3); cursor: pointer; }
.alert-info-desc { margin: 5px 0 0 28px; font-size: 11px; color: #555; line-height: 1.4; }
.text-danger-custom { color: #d32f2f; }
.mb-15 { margin-bottom: 15px; }
.btn-scan-start { background: #2e7d32; display: flex !important; }
.btn-scan-stop { background: #e53935; display: none; }

/* --- PERFIL.PHP --- */
input, select { max-width: 100%; box-sizing: border-box; }   
@media (max-width: 671px) { div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; } .hide-mobile { display: none !important; } }
fieldset[disabled] { opacity: 0.7; filter: grayscale(0.5); cursor: not-allowed; }
fieldset[disabled] button { pointer-events: none; }
.switch-container { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.switch { position: relative; display: inline-block; width: 46px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: 0.3s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: 0.3s; border-radius: 50%; }
input:checked + .slider { background-color: #27ae60; }
input:checked + .slider:before { transform: translateX(22px); }
.status-text { font-weight: bold; font-size: 14px; color: #c62828; }
input:checked ~ .status-text { color: #27ae60; }
.perfil-tab-container { display: flex; justify-content: center; width: 100%; padding: 10px; }
.perfil-card-content { max-width: 950px; width: 100%; }
.perfil-header { margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.perfil-title { margin-bottom: 5px; }
.perfil-subtitle { color: var(--text-muted); font-size: 14px; }
.perfil-form-grid { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 30px; }
.perfil-col { flex: 1; min-width: 200px; }
.perfil-section-title { margin-bottom: 20px; color: var(--primary-color); font-size: 16px; }
.perfil-input-wrapper { margin-bottom: 15px; }
.perfil-input-disabled { background: #f9f9f9; cursor: not-allowed; border: 1px dashed #ccc; }
.perfil-grid-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-bottom: 15px; }
.perfil-divider { width: 1px; background: #eee; align-self: stretch; }
.perfil-desc-text { font-size: 13px; color: var(--text-muted); margin-bottom: 15px; }
.perfil-footer { border-top: 1px solid #eee; padding-top: 20px; display: flex; justify-content: flex-end; gap: 15px; }
.perfil-btn-save { flex: 1; min-width: 280px; max-width: 320px; justify-content: center; }
.sys-tab-container { display: flex; justify-content: center; width: 100%; padding: 10px; }
.sys-card-content { max-width: 950px; width: 100%; }
.sys-header { margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.sys-title { margin-bottom: 5px; }
.sys-subtitle { color: var(--text-muted); font-size: 14px; }
.sys-fieldset { border: none; padding: 0; margin: 0; }
.sys-form-grid { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 30px; }
.sys-col { flex: 1; min-width: 200px; }
.sys-section-title { margin-bottom: 20px; color: var(--primary-color); font-size: 16px; }
.sys-input-wrapper { margin-bottom: 15px; }
.sys-select { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid #ddd; }
.sys-logo-wrapper { display: flex; align-items: center; gap: 15px; margin-top: 5px; }
.sys-logo-preview { width: 60px; height: 60px; background: #f0f0f0; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sys-logo-icon { font-size: 24px; color: #ccc; }
.sys-logo-img { width: 100%; height: 100%; object-fit: cover; }
.sys-file-input { font-size: 13px; }
.sys-divider { width: 1px; background: #eee; align-self: stretch; }
.sys-footer { border-top: 1px solid #eee; padding-top: 20px; display: flex; justify-content: flex-end; }
.sys-btn-save { flex: 1; min-width: 280px; max-width: 320px; justify-content: center; }
.backup-tab-container { display: flex; justify-content: center; width: 100%; }
.backup-card-content { max-width: 600px; width: 100%; }
.backup-fieldset { border: none; padding: 0; margin: 0; }
.backup-title { margin-bottom: 5px; }
.backup-subtitle { color: var(--text-muted); font-size: 14px; }
.backup-warning-title { color: #c62828; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.backup-warning-icon { font-size: 20px; }
.backup-warning-text { font-size: 13.5px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.4; }
.backup-btn-group { display: flex; gap: 10px; width: 100%; }
.backup-wrapper { flex: 1; }
.backup-btn-primary { background: var(--primary); width: 100%; border-radius: 12px; height: 45px; border: none; color: white; cursor: pointer; }
.backup-btn-danger { background: #c62828; width: 100%; border-radius: 12px; height: 45px; border: none; color: white; cursor: pointer; }
.backup-btn-warning { background: #f39c12; width: 100%; border-radius: 12px; height: 45px; border: none; color: white; cursor: pointer; }
.info-title-blue { color: #1976d2; }

/* --- JUSTIFICACIONES Y PERMISOS --- */
.sugerencias-box { position: absolute; background: white; border: 1px solid #ddd; z-index: 1000; width: 100%; max-height: 200px; overflow-y: auto; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: none; }
.sugerencia-item { padding: 10px 15px; cursor: pointer; font-size: 14px; }
.sugerencia-item:hover { background: #f0f4ff; color: var(--primary); }
.input-box-relative { position: relative; margin-bottom: 15px; }
.input-box-flex-1 { flex: 1; margin-bottom: 15px; }
.input-box-flex-0 { flex: 0; margin-bottom: 15px; }
.input-box-mb { margin-bottom: 15px; }
.form-control-custom { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid #ccc; }
.textarea-custom { font-family: inherit; }
.btn-action-main { flex: 1; min-width: 280px; max-width: 320px; justify-content: center; }
.btn-view-history { font-size: 12px; padding: 10px 15px; text-decoration: none; }
.btn-ver-evidencia { border: none; background: none; cursor: pointer; color: var(--primary); font-size: 20px; display: flex; align-items: center; gap: 5px; }
.modal-overlay { position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.modal-content { background: white; padding: 20px; border-radius: 15px; max-width: 90%; width: 700px; position: relative; box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
.modal-close { position: absolute; top: 10px; right: 15px; font-size: 28px; font-weight: bold; color: #333; cursor: pointer; }
.modal-title { margin-top: 0; margin-bottom: 15px; color: var(--primary); }
.modal-divider { border: 0; border-top: 1px solid #eee; margin-bottom: 15px; }
.modal-body { text-align: center; min-height: 200px; display: flex; align-items: center; justify-content: center; }
.approval-btn { width: 35px; height: 35px; border-radius: 8px; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: transform 0.2s, opacity 0.2s; color: white; padding: 5px 10px; }
.approval-btn:hover { transform: scale(1.1); }
.approval-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-approve { background: #10b981; }
.btn-reject { background: #ef4444; }
.check-status { font-size: 20px; } 
.actions-cell-flex { display: flex; gap: 8px; justify-content: center; }

/* --- HORARIOS.PHP --- */
.time-input-custom { padding: 8px; border-radius: 8px; border: 1px solid #ddd; outline: none; font-family: 'Inter', sans-serif; }
.pill-morning { background: #e3f2fd; color: #1565c0; }
.pill-afternoon { background: #fff3e0; color: #e65100; }

/* --- IMPRIMIR MASIVO --- */
.filter-form { display: flex; flex-wrap: wrap; gap: 15px; align-items: flex-end; margin-bottom: 25px; background: #fff; padding: 20px; border-radius: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.02); }
.filter-group { display: flex; flex-direction: column; gap: 5px; }
.filter-group label { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.filter-group select { padding: 8px 12px; border-radius: 8px; border: 1px solid #ddd; outline: none; min-width: 220px; }
.btn-filter { background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: 600; height: 40px; display: flex; align-items: center; gap: 5px; transition: all 0.3s; }
.btn-filter-reset { background: #eceff1; color: #455a64; text-decoration: none; }
.btn-filter-reset-flex { background: #eceff1; color: #455a64; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.masivo-header-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.masivo-title-flex { display: flex; align-items: center; gap: 10px; }
.masivo-count-badge { background: #f0f2f5; color: #455a64; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; border: 1px solid #e0e0e0; }
.masivo-action-btns { display: flex; gap: 10px; }
.alumno-check { width: 18px; height: 18px; cursor: pointer; }
#area-impresion { display: none; }

/* --- USUARIOS Y ROLES --- */
.users-header-actions { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 15px; margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.users-grid { display: flex; gap: 30px; flex-wrap: wrap; }
.users-col-table { flex: 3; min-width: 400px; }
.users-col-info { flex: 1; min-width: 300px; background: #fafafa; border-radius: 12px; padding: 20px; border: 1px solid #f0f0f0; }
.section-title-icon { margin-bottom: 20px; color: var(--primary-color); font-size: 16px; }

 /* --- Tabla de Usuarios --- */
.table-users { width: 100%; border-collapse: collapse; font-size: 14px; }
.th-users { padding: 12px; border-bottom: 2px solid #eee; text-align: left; }
.td-users { padding: 12px; border-bottom: 1px solid #eee; }
.td-id { color: var(--text-muted); font-family: monospace; }
.status-active-text { display: flex; align-items: center; gap: 5px; color: #27ae60; font-size: 13px; font-weight: 600; }
.status-pending-text { display: flex; align-items: center; gap: 5px; color: #f39c12; font-size: 13px; font-weight: 600; }

/* --- Botones de Acción en Tabla --- */
.action-btns-flex { display: flex; gap: 15px; }
.btn-icon-only { background: none; border: none; cursor: pointer; font-size: 19px; padding: 0; }
.btn-icon-edit { color: #3f51b5; }
.btn-icon-delete { color: #d32f2f; }
.btn-icon-lock { color: #e0e0e0; cursor: not-allowed; }

/* --- Tarjetas de Nivel de Acceso --- */
.access-card { background: white; padding: 12px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); margin-bottom: 15px;}
.border-admin { border-left: 4px solid #1a237e; }
.border-asistente { border-left: 4px solid #455a64; }
.border-consulta { border-left: 4px solid #ffa000; }
.access-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.access-desc { font-size: 12px; color: var(--text-muted); } 

/* --- Modales de Usuario --- */
.modal-overlay-user { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); align-items: center; justify-content: center; }
.modal-box-user { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.modal-box-sm { width: 400px; }
.modal-box-md { width: 450px; }
.modal-header-user { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-title-user { margin: 0; color: var(--primary-color); }
.modal-date-info { background: #f9f9f9; padding: 10px; border-radius: 6px; border: 1px dashed #ccc; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
.date-label { font-size: 12px; color: #666; font-weight: 600; }
.date-value { font-size: 13px; font-weight: bold; color: #333; }

/* --- Formularios en Modales --- */
.form-group-user { margin-bottom: 15px; }
.form-label-user { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.form-input-user { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-family: inherit; }
.form-row-2 { display: flex; gap: 15px; margin-bottom: 15px; }
.form-row-2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.form-col { flex: 1; }
.modal-footer-user { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }
.btn-cancel-user { padding: 10px 20px; background: #eee; border: none; border-radius: 6px; cursor: pointer; font-family: inherit; font-size: 13px; }
.btn-save-user { padding: 10px 20px; background: var(--primary); color: white; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; font-family: inherit; font-size: 13px; }
.btn-save-admin { background: #1a237e; }

/* --- Celdas de Perfil y Rol --- */
.user-info-flex { display: flex; align-items: center; gap: 10px; }
.avatar-initials { width: 32px; height: 32px; background: #e8eaf6; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #1a237e; flex-shrink: 0; font-weight: bold; font-size: 12px; }
.user-name-text { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #333; }
.role-badge { padding: 4px 10px; border-radius: 6px; font-size: 10px; font-weight: 700; display: inline-block; }

/* --- REPORTES --- */
.filter-note { color: var(--text-muted); font-size: 11px; flex: 1 1 100%; margin-top: 5px; opacity: 0.8; }  
.btn-excel-custom { background: var(--clr-excel); text-decoration: none; }
.btn-consolidado-custom { background: #1a237e; text-decoration: none; }
.text-muted-gray { color: #777; }

















/* CUANTO INTEGREMOS AL GLOBAL ELIMINAR O ARREGLAR ESTOS 3 PASOS QUE FALTAN

El .stats-grid duplicado (Línea 144 aprox):
Borra el que dice grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));. (Tranquilo, conservaremos el que tienes más abajo en la línea 214 que tiene el gap de 20px y está junto al glassmorphism).
El .badge-motivo (Línea 183 aprox):
Bórralo, ya que lo incluiremos en el nuevo bloque unificado.
El .btn-whatsapp (Línea 427 aprox):
Bórralo. En los archivos PHP lo cambiamos por .btn-wsp-custom para estandarizarlo. (Le agregaré tu efecto :hover { background: #128c7e; } al nuevo código para que no pierdas esa animación).
El bloque de .filter-form y .btn-filter (Línea 437 aprox):
Borra todo ese bloque. Es exactamente el mismo que generamos para el nuevo UI Kit, así que si lo dejas, estará repetido.




*/