/* ========================================
   COLEGIOCONTROL - CSS CORPORATIVO
   Sistema de Inventario

   PALETA DE COLORES:
   - Primary (Azul Corporativo): #1e3a5f
   - Secondary (Azul Claro): #3498db
   - Accent (Verde Exito): #27ae60
   - Warning: #f39c12
   - Danger: #e74c3c
   - Background: #f4f6f9
   - Sidebar: #1e3a5f
   ======================================== */

:root {
    --primary-dark: #1e3a5f;
    --primary: #2c5282;
    --primary-light: #3498db;
    --secondary: #64748b;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    --bg-body: #f4f6f9;
    --bg-card: #ffffff;
    --bg-sidebar: #1e3a5f;
    --bg-sidebar-hover: #2c4a6e;
    --bg-sidebar-active: #3498db;
    --text-primary: #1a202c;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-light: #ffffff;
    --text-sidebar: rgba(255, 255, 255, 0.7);
    --text-sidebar-active: #ffffff;
    --border-color: #e2e8f0;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --header-height: 64px;
    --footer-height: 50px;
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 1200px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition);
}

@media (max-width: 991.98px) {
    .main-wrapper {
        margin-left: 0;
    }
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--bg-sidebar) 0%, #152a45 100%);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 0.75rem;
}

.sidebar-logo {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--success) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-logo i {
    font-size: 1.5rem;
    color: white;
}

.sidebar-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    background-color: #ffffff;
    padding: 3px;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.02em;
}

.brand-tagline {
    font-size: 0.7rem;
    color: var(--text-sidebar);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    display: block;
    padding: 0 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-sidebar);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: var(--text-sidebar);
    text-decoration: none;
    gap: 0.75rem;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
    margin: 0.125rem 0;
}

.nav-item:hover {
    background-color: var(--bg-sidebar-hover);
    color: var(--text-light);
    border-left-color: var(--primary-light);
}

.nav-item.active {
    background-color: rgba(52, 152, 219, 0.15);
    color: var(--text-sidebar-active);
    border-left-color: var(--primary-light);
}

.nav-item i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.nav-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Estilos del acordeón del menú */
.nav-accordion {
    margin: 0.25rem 0;
}

.nav-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1.25rem;
    color: var(--text-sidebar);
    background: none;
    border: none;
    border-left: 3px solid transparent;
    text-align: left;
    gap: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-accordion-toggle:hover {
    background-color: var(--bg-sidebar-hover);
    color: var(--text-light);
    border-left-color: var(--primary-light);
}

.nav-accordion.expanded .nav-accordion-toggle {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--text-light);
    border-left-color: var(--primary-light);
}

.nav-accordion-toggle-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.nav-accordion-toggle-content i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.nav-accordion-toggle-content span {
    font-size: 0.9rem;
    font-weight: 600;
}

.accordion-icon {
    font-size: 0.85rem;
    transition: transform var(--transition);
    flex-shrink: 0;
}

.nav-accordion.expanded .accordion-icon {
    transform: rotate(180deg);
}

.nav-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.sidebar-nav.accordion-syncing .nav-accordion-content,
.sidebar-nav.accordion-syncing .accordion-icon,
.sidebar-nav.accordion-syncing .nav-accordion-toggle,
.sidebar-nav.no-transition-init .nav-accordion-content,
.sidebar-nav.no-transition-init .accordion-icon {
    transition: none !important;
}

.nav-accordion.expanded .nav-accordion-content {
    opacity: 1;
}

.nav-accordion-content .nav-item {
    padding-left: 3.5rem;
    font-size: 0.85rem;
    margin: 0;
}

.nav-accordion-content .nav-item i {
    font-size: 1rem;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar i {
    font-size: 1.2rem;
    color: white;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

.user-role {
    font-size: 0.7rem;
    color: var(--text-sidebar);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1030;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.main-header {
    position: sticky;
    top: 0;
    height: var(--header-height);
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 1020;
    box-shadow: var(--shadow-sm);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-toggle-sidebar {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.btn-toggle-sidebar:hover {
    background-color: var(--bg-body);
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .btn-toggle-sidebar {
        display: flex;
    }
}

.header-breadcrumb .breadcrumb {
    font-size: 0.85rem;
}

.header-breadcrumb .breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
}

.header-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary);
}

.header-breadcrumb .breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-date {
    display: none;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .header-date {
        display: flex;
    }
}

.header-date i {
    color: var(--primary);
}

.btn-notification {
    position: relative;
    background: none;
    border: none;
    padding: 0.5rem;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.btn-notification:hover {
    background-color: var(--bg-body);
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background-color: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-user-menu {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-user-menu::after {
    display: none;
}

.user-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.user-avatar-sm i {
    font-size: 1rem;
    color: white;
}

.btn-user-menu:hover .user-avatar-sm {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

.main-content {
    flex: 1;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .main-content {
        padding: 2rem;
    }
}

.main-footer {
    height: var(--footer-height);
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-left strong {
    color: var(--primary);
}

.page-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 576px) {
    .page-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.page-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.page-title-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.page-title-icon i {
    font-size: 1.5rem;
    color: white;
}

.page-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title i {
    color: var(--primary);
}

.card-body {
    padding: 1.25rem;
}

.table-container {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--primary-dark);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
    border: none;
    white-space: nowrap;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.table tbody tr {
    transition: background-color var(--transition-fast);
}

.table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-responsive {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn i {
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #152a45 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #1e8449 100%);
    border: none;
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e8449 0%, #196f3d 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

.btn-action {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    border: none;
    transition: all var(--transition-fast);
}

.btn-action i {
    font-size: 0.9rem;
}

.btn-edit {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-light);
}

.btn-edit:hover {
    background-color: var(--primary-light);
    color: white;
}

.btn-delete {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.btn-delete:hover {
    background-color: var(--danger);
    color: white;
}

.btn-view {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success);
}

.btn-view:hover {
    background-color: var(--success);
    color: white;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.625rem 0.875rem;
    transition: all var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-bottom: none;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
}

.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
    border-radius: 50px;
}

.badge-success {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success);
}

.badge-warning {
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--warning);
}

.badge-danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.badge-info {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--info);
}

#divLoading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 58, 95, 0.9);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#divLoading.show {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    color: white;
    margin-top: 1rem;
    font-weight: 500;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
}

.stat-icon.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.stat-icon.bg-success {
    background: linear-gradient(135deg, var(--success) 0%, #1e8449 100%);
}

.stat-icon.bg-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d68910 100%);
}

.stat-icon.bg-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #c0392b 100%);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-success {
    background-color: var(--success) !important;
}

.bg-warning {
    background-color: var(--warning) !important;
}

.bg-danger {
    background-color: var(--danger) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.table tbody tr {
    animation: fadeIn 0.3s ease forwards;
}

.table tbody tr:nth-child(1) {
    animation-delay: 0.05s;
}

.table tbody tr:nth-child(2) {
    animation-delay: 0.1s;
}

.table tbody tr:nth-child(3) {
    animation-delay: 0.15s;
}

.table tbody tr:nth-child(4) {
    animation-delay: 0.2s;
}

.table tbody tr:nth-child(5) {
    animation-delay: 0.25s;
}

.btn:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25);
}

a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media print {
    .sidebar,
    .main-header,
    .main-footer,
    .btn,
    .action-buttons {
        display: none !important;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .main-content {
        padding: 0;
    }
}

.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 2rem;
}

.timeline-item:not(.timeline-item-first)::before {
    content: '';
    position: absolute;
    left: 1.125rem;
    top: -2rem;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    z-index: 1;
}

.timeline-marker i {
    font-size: 1.1rem;
    color: white;
}

.timeline-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.timeline-content h6 {
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
}

.timeline-item-first .timeline-marker {
    background: linear-gradient(135deg, var(--success) 0%, #1e8449 100%);
}

.table-hover tbody tr {
    transition: background-color 0.2s ease;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.checkbox-articulo {
    cursor: pointer;
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: white;
}

tbody tr:has(.checkbox-articulo:checked) {
    background-color: rgba(40, 167, 69, 0.1) !important;
}

input[type="checkbox"]:indeterminate {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

input[type="checkbox"]:indeterminate::before {
    content: "?";
    display: block;
    color: white;
    text-align: center;
    line-height: 1;
}

.colegio-switcher-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    padding: 2px;
}

.colegio-switcher-logo-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}
