* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    color: #0f172a;
}


/* =========================================================
   LOGIN
========================================================= */

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        linear-gradient(
            135deg,
            #eef3f8,
            #f8fafc
        );
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border-radius: 20px;
    padding: 38px;
    box-shadow:
        0 15px 50px
        rgba(15, 23, 42, .10);
}

.login-logo {
    text-align: center;
    margin-bottom: 22px;
}

.login-logo img {
    width: 100%;
    max-width: 280px;
    height: auto;
}

.login-card h1 {
    margin: 0;
    text-align: center;
    font-size: 27px;
    color: #10375b;
}

.login-subtitle {
    margin:
        7px
        0
        28px;
    text-align: center;
    color: #64748b;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    font-size: 16px;
    outline: none;
}

.form-group input:focus {
    border-color: #10375b;
}

.login-button {
    width: 100%;
    min-height: 49px;
    border: 0;
    border-radius: 11px;
    background: #10375b;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.login-button:hover {
    opacity: .94;
}

.alert-error {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 14px;
}

.login-footer {
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 700;
}

/* =========================================================
   LAYOUT GENERAL
========================================================= */

body {
    background: #f4f7fb;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 24px;

    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-logo {
    width: 150px;
    height: auto;
}

.topbar-title {
    display: flex;
    flex-direction: column;
}

.topbar-title strong {
    color: #123b66;
    font-size: 15px;
}

.topbar-title span {
    color: #64748b;
    font-size: 12px;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 25px;
    cursor: pointer;
}

.topbar-user-menu {
    position: relative;
}

.user-menu-button {
    display: flex;
    align-items: center;
    gap: 12px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.user-menu-name {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-menu-name strong {
    font-size: 14px;
}

.user-menu-name span {
    color: #64748b;
    font-size: 12px;
}

.user-dropdown {
    display: none;

    position: absolute;
    right: 0;
    top: calc(100% + 12px);

    width: 190px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;

    box-shadow:
        0 12px 30px
        rgba(15, 23, 42, .12);

    overflow: hidden;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 12px 15px;

    color: #334155;
    text-decoration: none;
    font-size: 14px;
}

.user-dropdown a:hover {
    background: #f8fafc;
}

.user-dropdown-logout {
    color: #b91c1c !important;
}


/* =========================================================
   SIDEBAR
========================================================= */

.dashboard-layout {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 72px;
    bottom: 0;

    width: 255px;

    display: flex;
    flex-direction: column;

    overflow-y: auto;

    background: #123b66;
    color: #ffffff;

    z-index: 900;
}

.sidebar-logo {
    padding: 24px 20px 18px;
    text-align: center;
}

.sidebar-logo img {
    width: 100%;
    max-width: 180px;
    height: auto;
}

.sidebar-section {
    padding:
        18px
        20px
        8px;

    color: rgba(255,255,255,.55);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;

    min-height: 43px;

    padding: 10px 20px;

    color: rgba(255,255,255,.88);
    text-decoration: none;

    font-size: 14px;

    transition: .15s;
}

.sidebar-link:hover {
    background: rgba(255,255,255,.08);
}

.sidebar-link.active {
    background: rgba(255,255,255,.15);
    color: #ffffff;
    font-weight: 700;
}

.sidebar-disabled {
    opacity: .38;
    cursor: default;
}

.sidebar-disabled:hover {
    background: transparent;
}

.sidebar-credit {
    margin-top: auto;
    padding: 25px 20px;

    text-align: center;

    color: rgba(255,255,255,.45);
    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   CONTENIDO
========================================================= */

.dashboard-content {
    margin-left: 255px;
    padding:
        105px
        30px
        40px;
}

.page-header {
    margin-bottom: 26px;
}

.page-header h1 {
    margin: 0 0 7px;
    color: #123b66;
    font-size: 28px;
}

.page-header p {
    margin: 0;
    color: #64748b;
}

.admin-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;

    padding: 22px;

    box-shadow:
        0 4px 20px
        rgba(15, 23, 42, .04);
}

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0,1fr)
        );

    gap: 18px;

    margin-bottom: 22px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 15px;

    padding: 20px;
}

.stat-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.stat-number {
    margin-top: 8px;

    color: #123b66;

    font-size: 30px;
    font-weight: 800;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .menu-toggle {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform .2s;
    }

    .sidebar.sidebar-open {
        transform: translateX(0);
    }

    .dashboard-content {
        margin-left: 0;
        padding:
            95px
            18px
            30px;
    }

    .stats-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );
    }

    .topbar-title {
        display: none;
    }
}

@media (max-width: 550px) {

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .topbar-logo {
        width: 115px;
    }

    .user-menu-name span {
        display: none;
    }
}

/* =========================================================
   COMPONENTES ADMINISTRATIVOS
========================================================= */

.content-grid {
    display: grid;
    grid-template-columns:
        minmax(300px, 420px)
        minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.card-title {
    margin-bottom: 20px;
}

.card-title h2 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #123b66;
}

.card-title p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 12px;
}

.form-group select {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    background: #ffffff;
    font-size: 15px;
}

.btn-primary {
    min-height: 45px;
    padding: 10px 18px;
    border: 0;
    border-radius: 10px;
    background: #123b66;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary:hover {
    opacity: .93;
}

.alert {
    margin-bottom: 20px;
    padding: 13px 16px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    padding: 11px 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
}

.admin-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #eef2f7;
    font-size: 14px;
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.empty-table {
    text-align: center;
    color: #94a3b8;
    padding: 30px !important;
}

.inline-form {
    margin: 0;
}

.status-select {
    min-height: 36px;
    padding: 6px 9px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
}

@media (max-width: 1100px) {

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   BOTONES DE EDICIÓN
========================================================= */

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 45px;

    padding: 10px 18px;

    border: 1px solid #cbd5e1;
    border-radius: 10px;

    background: #ffffff;

    color: #334155;

    text-decoration: none;

    font-weight: 700;
}

.btn-secondary:hover {
    background: #f8fafc;
}

.btn-table-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 12px;

    border-radius: 8px;

    background: #e8f0f8;

    color: #123b66;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}

.btn-table-edit:hover {
    background: #d9e7f4;
}

/* =========================================================
   ÁREAS Y CURSOS
========================================================= */

.area-selector {
    display: grid;
    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        );
    gap: 12px;
    margin-bottom: 20px;
}

.area-selector-card {
    display: flex;
    flex-direction: column;
    gap: 5px;

    padding: 15px;

    border: 1px solid #dbe3ec;
    border-radius: 13px;

    background: #ffffff;

    color: #334155;
    text-decoration: none;
}

.area-selector-card strong {
    color: #123b66;
}

.area-selector-card span {
    font-size: 12px;
    line-height: 1.35;
}

.area-selector-card small {
    color: #64748b;
}

.area-selector-card.active {
    border-color: #123b66;
    background: #edf4fb;
}

.areas-main-grid {
    display: grid;
    grid-template-columns:
        330px
        minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.course-master-grid {
    display: grid;
    grid-template-columns:
        360px
        minmax(0, 1fr);
    gap: 20px;
}

.course-assignment-list {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.course-assignment-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        95px;
    gap: 12px;
    align-items: center;

    padding: 10px 12px;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    background: #ffffff;
}

.course-assignment-row.selected {
    background: #f2f7fc;
    border-color: #b8cce0;
}

.course-check {
    display: flex;
    gap: 10px;
    align-items: center;
}

.course-check span {
    display: flex;
    flex-direction: column;
}

.course-check small {
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
}

.course-order {
    width: 100%;
    min-height: 38px;

    border: 1px solid #cbd5e1;
    border-radius: 8px;

    text-align: center;
}

.check-option {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 18px;

    font-weight: 700;
    font-size: 14px;
}

.form-group textarea {
    width: 100%;

    padding: 11px 13px;

    border: 1px solid #cbd5e1;
    border-radius: 11px;

    resize: vertical;

    font: inherit;
}

.status-badge {
    display: inline-flex;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-inactive {
    background: #f1f5f9;
    color: #64748b;
}

@media (max-width: 1200px) {

    .area-selector {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

    .areas-main-grid,
    .course-master-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {

    .area-selector {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   ÁREAS Y CURSOS
========================================================= */

.area-selector {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.area-selector-card {
    display: flex;
    flex-direction: column;
    gap: 6px;

    padding: 16px;

    border: 1px solid #dbe3ec;
    border-radius: 13px;

    background: #ffffff;

    color: #334155;
    text-decoration: none;

    transition: .15s;
}

.area-selector-card:hover {
    border-color: #8daac6;
    background: #f8fbfe;
}

.area-selector-card strong {
    color: #123b66;
    font-size: 16px;
}

.area-selector-card span {
    color: #475569;
    font-size: 12px;
    line-height: 1.4;
}

.area-selector-card small {
    color: #64748b;
    font-size: 12px;
}

.area-selector-card.active {
    border-color: #123b66;
    background: #edf4fb;

    box-shadow:
        inset 0 0 0 1px #123b66;
}


/* =========================================================
   ÁREA + MALLA
========================================================= */

.areas-main-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 20px;
    align-items: start;

    margin-bottom: 20px;
}


/* =========================================================
   CURSOS DEL ÁREA
========================================================= */

.course-assignment-list {
    display: grid;
    gap: 9px;

    max-height: 610px;
    overflow-y: auto;

    padding-right: 5px;
    margin-bottom: 20px;
}

.course-assignment-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px;
    gap: 12px;
    align-items: center;

    min-height: 58px;

    padding: 10px 12px;

    border: 1px solid #e2e8f0;
    border-radius: 11px;

    background: #ffffff;
}

.course-assignment-row.selected {
    border-color: #aac1d8;
    background: #f1f6fb;
}

.course-check {
    display: flex;
    align-items: center;
    gap: 10px;

    cursor: pointer;
}

.course-check input[type="checkbox"] {
    width: 17px;
    height: 17px;

    flex: 0 0 auto;
}

.course-check span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.course-check strong {
    color: #172033;
    font-size: 14px;
}

.course-check small {
    color: #64748b;
    font-size: 11px;
}

.course-order {
    width: 100%;
    min-height: 39px;

    padding: 7px;

    border: 1px solid #cbd5e1;
    border-radius: 8px;

    background: #ffffff;

    text-align: center;
    font-size: 14px;
}


/* =========================================================
   CATÁLOGO MAESTRO
========================================================= */

.course-master-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}


/* =========================================================
   CHECKBOX
========================================================= */

.check-option {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 18px;

    color: #334155;

    font-size: 14px;
    font-weight: 700;
}

.check-option input {
    width: 17px;
    height: 17px;
}


/* =========================================================
   TEXTAREA
========================================================= */

.form-group textarea {
    width: 100%;

    padding: 11px 13px;

    border: 1px solid #cbd5e1;
    border-radius: 11px;

    background: #ffffff;

    resize: vertical;

    font-family: inherit;
    font-size: 15px;

    outline: none;
}

.form-group textarea:focus {
    border-color: #123b66;
}


/* =========================================================
   ESTADOS
========================================================= */

.status-badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-inactive {
    background: #f1f5f9;
    color: #64748b;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1250px) {

    .area-selector {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .areas-main-grid,
    .course-master-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 750px) {

    .area-selector {
        grid-template-columns: 1fr;
    }

    .course-assignment-row {
        grid-template-columns:
            minmax(0, 1fr)
            75px;
    }
}

/* =========================================================
   AULAS
========================================================= */

.course-count-ok {
    display: inline-flex;

    padding: 5px 9px;

    border-radius: 999px;

    background: #dcfce7;

    color: #166534;

    font-size: 12px;
    font-weight: 800;
}

.course-count-error {
    display: inline-flex;

    padding: 5px 9px;

    border-radius: 999px;

    background: #fee2e2;

    color: #991b1b;

    font-size: 12px;
    font-weight: 800;
}

.table-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.btn-table-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 12px;

    border-radius: 8px;

    background: #123b66;

    color: #ffffff;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}

.btn-table-view:hover {
    opacity: .92;
}

/* =========================================================
   DETALLE DEL AULA
========================================================= */

.aula-summary-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 220px));
    gap: 15px;
    margin-bottom: 20px;
}

.aula-course-list {
    display: grid;
    gap: 10px;
}

.aula-course-row {
    display: grid;
    grid-template-columns:
        45px
        minmax(170px, 1fr)
        minmax(180px, 1fr)
        minmax(280px, 1.4fr);

    gap: 14px;
    align-items: center;

    padding: 14px;

    border: 1px solid #e2e8f0;
    border-radius: 12px;

    background: #ffffff;
}

.aula-course-order {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #edf4fb;

    color: #123b66;

    font-weight: 800;
}

.aula-course-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.aula-course-info span,
.aula-course-info small {
    color: #64748b;
    font-size: 12px;
}

.current-teacher {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.current-teacher span {
    color: #64748b;
    font-size: 11px;
}

.teacher-pending {
    color: #b45309;
    font-size: 13px;
    font-weight: 700;
}

.aula-course-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.aula-course-actions form:first-child {
    flex: 1;
    display: flex;
    gap: 7px;
}

.aula-course-actions select {
    flex: 1;
    min-width: 170px;

    min-height: 38px;

    padding: 7px 9px;

    border: 1px solid #cbd5e1;
    border-radius: 8px;

    background: #ffffff;
}

.btn-primary-small,
.btn-danger-small {
    min-height: 38px;

    padding: 7px 12px;

    border: 0;
    border-radius: 8px;

    cursor: pointer;

    font-weight: 700;
}

.btn-primary-small {
    background: #123b66;
    color: #ffffff;
}

.btn-danger-small {
    background: #fee2e2;
    color: #991b1b;
}

.aula-bottom-grid {
    display: grid;
    grid-template-columns:
        380px
        minmax(0, 1fr);

    gap: 20px;

    margin-top: 20px;
}

.monitor-assigned-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 12px 0;

    border-bottom: 1px solid #eef2f7;
}

.monitor-assigned-row:last-child {
    border-bottom: 0;
}

.monitor-assigned-row > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.monitor-assigned-row span {
    color: #64748b;
    font-size: 12px;
}

.empty-box {
    padding: 25px;

    border: 1px dashed #cbd5e1;
    border-radius: 11px;

    color: #64748b;

    text-align: center;
}

@media (max-width: 1100px) {

    .aula-course-row {
        grid-template-columns:
            45px
            minmax(0, 1fr);
    }

    .aula-course-teacher,
    .aula-course-actions {
        grid-column: 2;
    }

    .aula-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {

    .aula-summary-grid {
        grid-template-columns: 1fr;
    }

    .aula-course-actions form:first-child {
        flex-direction: column;
    }
}

/* =========================================================
   USUARIOS - DOCENTES / MONITORES / ALUMNOS
========================================================= */

.user-stats-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 220px));
    gap: 15px;
    margin-bottom: 20px;
}

.users-layout {
    display: grid;
    grid-template-columns:
        minmax(300px, 420px)
        minmax(300px, 420px);
    gap: 20px;
    align-items: start;
}

.import-format {
    margin-bottom: 18px;
    padding: 12px;

    border: 1px solid #dbe3ec;
    border-radius: 10px;

    background: #f8fafc;

    color: #475569;

    font-size: 13px;
}

.import-format code {
    display: block;

    margin-top: 6px;

    color: #123b66;
}

.users-table-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
    flex-wrap: wrap;

    margin-bottom: 15px;
}

.search-form {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.search-form input {
    min-width: 260px;
    min-height: 38px;

    padding: 7px 11px;

    border: 1px solid #cbd5e1;
    border-radius: 8px;

    font-size: 14px;
}

.btn-secondary-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 7px 12px;

    border: 1px solid #cbd5e1;
    border-radius: 8px;

    background: #ffffff;

    color: #334155;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}

.btn-warning-small {
    min-height: 34px;

    padding: 6px 10px;

    border: 0;
    border-radius: 8px;

    background: #fff7ed;

    color: #c2410c;

    cursor: pointer;

    font-size: 12px;
    font-weight: 700;
}

.password-pending {
    color: #b45309;
    font-weight: 700;
}

.form-group input[type="file"] {
    padding: 9px;
}

@media (max-width: 950px) {

    .users-layout {
        grid-template-columns: 1fr;
    }

    .user-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   DOCENTES / USUARIOS
========================================================= */

.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 220px));
    gap: 15px;
    margin-bottom: 20px;
}

.users-layout {
    display: grid;
    grid-template-columns:
        minmax(320px, 420px)
        minmax(320px, 420px);
    gap: 20px;
    align-items: start;
}

.import-format {
    margin-bottom: 18px;
    padding: 12px;

    border: 1px solid #dbe3ec;
    border-radius: 10px;

    background: #f8fafc;

    color: #475569;
    font-size: 13px;
}

.import-format code {
    display: block;
    margin-top: 6px;

    color: #123b66;
}

.users-table-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
    flex-wrap: wrap;

    margin-bottom: 15px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.search-form input {
    min-width: 260px;
    min-height: 38px;

    padding: 7px 11px;

    border: 1px solid #cbd5e1;
    border-radius: 8px;

    background: #ffffff;

    font-size: 14px;
}

.btn-secondary-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 7px 12px;

    border: 1px solid #cbd5e1;
    border-radius: 8px;

    background: #ffffff;

    color: #334155;
    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}

.btn-warning-small {
    min-height: 34px;

    padding: 6px 10px;

    border: 0;
    border-radius: 8px;

    background: #fff7ed;

    color: #c2410c;

    cursor: pointer;

    font-size: 12px;
    font-weight: 700;
}

.password-pending {
    color: #b45309;
    font-size: 11px;
    font-weight: 700;
}

.form-group input[type="file"] {
    padding: 9px;
}

@media (max-width: 950px) {

    .users-layout {
        grid-template-columns: 1fr;
    }

    .user-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   HORARIOS
========================================================= */

.horarios-selector-card {
    margin-bottom: 20px;
}

.horarios-selector {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
    flex-wrap: wrap;
}

.horarios-selector > div:first-child {
    min-width: 320px;
}

.horarios-selector label,
.schedule-course-form label {
    display: block;

    margin-bottom: 6px;

    color: #475569;

    font-size: 12px;
    font-weight: 700;
}

.horarios-selector select {
    width: 100%;
    min-height: 43px;

    padding: 8px 11px;

    border: 1px solid #cbd5e1;
    border-radius: 9px;

    background: #ffffff;

    font-size: 14px;
}

.horario-aula-info {
    display: flex;
    flex-direction: column;
    gap: 4px;

    text-align: right;
}

.horario-aula-info strong {
    color: #123b66;
    font-size: 20px;
}

.horario-aula-info span {
    color: #64748b;
    font-size: 13px;
}

.horarios-summary-grid {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 220px)
        );

    gap: 15px;

    margin-bottom: 20px;
}

.schedule-course-list {
    display: grid;
    gap: 10px;
}

.schedule-course-row {
    display: grid;

    grid-template-columns:
        45px
        minmax(180px, 1fr)
        minmax(420px, 1.8fr)
        minmax(170px, .7fr);

    gap: 15px;

    align-items: center;

    padding: 14px;

    border: 1px solid #e2e8f0;
    border-radius: 12px;

    background: #ffffff;
}

.schedule-course-number {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #edf4fb;

    color: #123b66;

    font-weight: 800;
}

.schedule-course-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.schedule-course-info strong {
    color: #172033;
}

.schedule-course-info span,
.schedule-course-info small {
    color: #64748b;
    font-size: 12px;
}

.schedule-course-info .schedule-warning {
    color: #b45309;
    font-weight: 700;
}

.schedule-course-form {
    display: grid;

    grid-template-columns:
        minmax(130px, 1fr)
        minmax(150px, 1fr)
        auto;

    gap: 8px;

    align-items: end;
}

.schedule-course-form select {
    width: 100%;
    min-height: 38px;

    padding: 7px 9px;

    border: 1px solid #cbd5e1;
    border-radius: 8px;

    background: #ffffff;
}

.schedule-status {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.schedule-status small {
    color: #64748b;
    font-size: 11px;
}

.schedule-pending {
    color: #b45309;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 1200px) {

    .schedule-course-row {
        grid-template-columns:
            45px
            minmax(0, 1fr);
    }

    .schedule-course-form,
    .schedule-status {
        grid-column: 2;
    }
}

@media (max-width: 700px) {

    .schedule-course-form {
        grid-template-columns: 1fr;
    }

    .horarios-summary-grid {
        grid-template-columns: 1fr;
    }

    .horarios-selector > div:first-child {
        min-width: 100%;
        width: 100%;
    }
}