:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --accent: #06b6d4;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --error: #ef4444;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;

    /* Dimension Colors (User Defined) */
    --color-liderazgo: #009FE3;
    /* Blue */
    --color-gestion-pedagogica: #E6007E;
    /* Pink/Magenta */
    --color-convivencia: #FFCB05;
    /* Yellow */
    --color-recursos: #5FBA4D;
    /* Green */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
}

body {
    font-family: var(--font-main);
    background-color: var(--background);
    color: var(--text-main);
    height: 125vh;
    /* Compensate 0.8 zoom */
    width: 125vw;
    /* Compensate 0.8 zoom */
    margin: 0;
    overflow: hidden;
    zoom: 0.8;
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    background-attachment: fixed;
}

#app {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #fff;
}

/* Utilities */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login View */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    padding: 2rem;
}

.login-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.login-logo i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Admin Key Button */
.admin-key-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    backdrop-filter: blur(8px);
}

.admin-key-btn:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: var(--primary);
    color: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

/* User role badge in sidebar */
.user-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-role-badge.role-uatp {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.user-role-badge.role-gestion {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.2s;
}

/* Fix dropdown visibility */
select.input-field option {
    background-color: #fff;
    color: var(--primary-dark);
    /* Blue as requested */
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.file-drop-zone {
    margin-top: 2rem;
    border: 2px dashed var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

.file-drop-title {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Dashboard Layout */
.dashboard {
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-rows: minmax(0, 1fr);
    /* Constrain row height to enable proper scrolling */
    height: 100%;
    /* Fill parent */
    overflow: hidden;
}

.sidebar {
    background: rgba(15, 23, 42, 0.9);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.sidebar-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.brand {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-item.active {
    background: var(--primary);
    color: #fff;
}

.main-content {
    overflow-y: auto;
    padding: 2rem;
    min-height: 0;
    /* Allow shrinking within grid to enable proper scrolling */
    background: linear-gradient(to bottom right, #0f172a, #1e293b);
    display: flex;
    flex-direction: column;
}

/* Ensure content takes available space, pushing footer to bottom */
.main-content>.fade-in:first-child {
    flex: 1 0 auto;
}

/* Strategic View */
.strategic-header {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
}

.school-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.identity-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.dimension-card {
    background: var(--surface-light);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.dimension-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.dimension-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.badge {
    background: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Annual Planning View */
.planning-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.filter-btn {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.planning-table-container {
    background: var(--surface);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
}

td {
    color: var(--text-main);
    font-size: 0.95rem;
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.action-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    margin-right: 0.5rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--surface);
    width: 800px !important;
    max-width: 95% !important;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    padding: 2rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Modal Size Variants */
.modal-content-sm {
    width: 500px !important;
}

.modal-content-lg {
    width: 1000px !important;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.detail-row {
    margin-bottom: 1.5rem;
}

.detail-label {
    display: block;
    color: var(--accent);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.detail-value {
    color: #fff;
    line-height: 1.6;
}

/* Loading Spinner */
.loader {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 3px solid var(--primary);
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Button Variants */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--surface-light);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--error), #dc2626);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Gantt Chart Styles */
.gantt-wrapper {
    overflow-x: auto;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.gantt-header {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

.gantt-col-action {
    width: 350px;
    /* Fixed width for Action Name + Details */
    flex-shrink: 0;
    padding: 1rem;
    border-right: 1px solid var(--glass-border);
    font-weight: 600;
    background: var(--surface);
    position: sticky;
    /* Sticky left column */
    left: 0;
    z-index: 20;
}

.gantt-months {
    display: flex;
    flex-grow: 1;
}

.gantt-month {
    flex: 1;
    /* Distribute available space equally among 12 months */
    min-width: 60px;
    /* Minimum width per month */
    padding: 0.75rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.gantt-body {
    display: flex;
    flex-direction: column;
}

.gantt-row {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    /* Increase height to fit contents dynamically, but min-height helpful */
    min-height: 80px;
}

.gantt-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.gantt-timeline {
    flex-grow: 1;
    position: relative;
    display: flex;
    /* To allow positioning bars relative to this container */
}

/* Vertical Grid Lines for Timeline */
.gantt-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    pointer-events: none;
    z-index: 1;
}

.gantt-grid-line {
    flex: 1;
    border-right: 1px solid rgba(255, 255, 255, 0.02);
}

.gantt-bar {
    position: absolute;
    top: 20px;
    /* Offset from top of row */
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 5;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    padding: 0 8px;
    overflow: hidden;
}

.gantt-bar:hover {
    filter: brightness(1.2);
    transform: scaleY(1.1);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.gantt-bar-label {
    font-size: 0.75rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.gantt-tooltip {
    display: none;
    /* Hide by default, show on hover via JS or CSS if nested */
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    padding: 0.75rem;
    border-radius: 8px;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    width: 250px;
    top: 100%;
    left: 0;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--text-main);
}

.gantt-bar:hover .gantt-tooltip {
    display: block;
}

.action-name {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: #fff;
}

.action-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.action-details {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.action-objective {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.action-key-results {
    font-size: 0.75rem;
    color: var(--secondary);
    padding-left: 0.5rem;
    border-left: 2px solid var(--glass-border);
}

.action-key-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.action-key-results li {
    margin-bottom: 2px;
}

/* ============================================ */
/* Unified Tab Buttons                          */
/* ============================================ */
.tab-btn {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: var(--text-muted);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Tab Container */
.tabs-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* ============================================ */
/* Additional Button Variants                   */
/* ============================================ */
.btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Unified Select Styles */
select.input-field,
.styled-select {
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 2rem 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    appearance: none;
    font-family: var(--font-main);
    font-size: 0.9rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

select.input-field:focus,
.styled-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ============================================ */
/* Auto-Resize Textareas                        */
/* ============================================ */
textarea.auto-resize {
    resize: none;
    overflow-y: hidden;
    min-height: 60px;
    line-height: 1.5;
    transition: border-color 0.2s ease;
}

textarea.auto-resize:focus {
    overflow-y: auto;
}

/* Form Group Label Styling */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Improved textarea default styling */
textarea.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.95rem;
    line-height: 1.5;
}

textarea.input-field::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

textarea.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ============================================ */
/* Site Footer                                  */
/* ============================================ */
.site-footer {
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: auto;
}

.site-footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.site-footer .footer-credits {
    color: var(--text-main);
    font-weight: 500;
}

.site-footer .footer-credits .highlight {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.site-footer .footer-updated {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Footer inside main-content for dashboard */
.main-content .site-footer {
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid var(--glass-border);
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    width: 100%;
    box-sizing: border-box;
    display: block;
    clear: both;
}

/* Ensure footer content displays nicely */
.main-content .site-footer .footer-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    max-width: 100%;
}

.main-content .site-footer .footer-credits {
    white-space: nowrap;
    color: var(--text-main);
    font-weight: 500;
}

.main-content .site-footer .footer-credits .highlight {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.main-content .site-footer .footer-updated {
    font-size: 0.75rem;
    opacity: 0.7;
    white-space: nowrap;
}

/* ============================================ */
/* Fixed Footer (outside grid)                  */
/* ============================================ */
.site-footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid var(--glass-border);
    padding: 0.75rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    z-index: 100;
    backdrop-filter: blur(10px);
}

.site-footer-fixed .footer-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.site-footer-fixed .footer-credits {
    color: var(--text-main);
    font-weight: 500;
}

.site-footer-fixed .footer-credits .highlight {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.site-footer-fixed .footer-updated {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* =============================================
   READ-ONLY MODE - Oculta controles de edición
   para usuarios Equipo de Gestión
   ============================================= */

/* Ocultar botones de edición principales */
.read-only-mode [onclick*="enableSchoolEdit"],
.read-only-mode [onclick*="saveSchoolInfo"],
.read-only-mode [onclick*="addStaffRow"],
.read-only-mode [onclick*="openActionModal"],
.read-only-mode [onclick*="addAction"],
.read-only-mode [onclick*="addUatpActionCard"],
.read-only-mode [onclick*="deleteAction"],
.read-only-mode [onclick*="editAction"],
.read-only-mode [onclick*="saveAction"],
.read-only-mode [onclick*="deleteRecord"],
.read-only-mode [onclick*="editRecord"],
.read-only-mode [onclick*="openImportModal"],
.read-only-mode [onclick*="importCSV"],
.read-only-mode [onclick*="saveCoordinators"],
.read-only-mode [onclick*="addCoordinatorRow"],
.read-only-mode [onclick*="addScore"],
.read-only-mode [onclick*="openAddModal"],
.read-only-mode [onclick*="saveVisit"],
.read-only-mode [onclick*="deleteVisit"],
.read-only-mode .btn-delete-staff,
.read-only-mode button[onclick*="Importar"],
.read-only-mode button[onclick*="Agregar"],
.read-only-mode button[onclick*="Guardar"],
.read-only-mode button[onclick*="Eliminar"],
.read-only-mode button[type="submit"] {
    display: none !important;
}

/* Íconos de edición en contexto de botones - ya manejados por selectores anteriores */

/* Ocultar inputs de formulario de guardado */
.read-only-mode #btn-save-school,
.read-only-mode .school-input:not(input):not(select) {
    display: none !important;
}

/* Mensaje de solo lectura (opcional - se puede agregar en sidebar) */
.read-only-mode .edit-controls {
    display: none !important;
}

/* Hacer inputs visualmente de solo lectura */
.read-only-mode input.input-field:not([type="search"]),
.read-only-mode select.input-field,
.read-only-mode textarea.input-field {
    pointer-events: none;
    opacity: 0.8;
}