:root {
    --admin-bg: #f5f6f8;
    --admin-surface: #ffffff;
    --admin-surface-soft: #fafafa;
    --admin-sidebar: #11161c;
    --admin-sidebar-2: #171d24;
    --admin-text: #141820;
    --admin-muted: #747b86;
    --admin-border: #e3e6ea;
    --admin-border-strong: #d5d9de;
    --admin-blue: #1877f2;
    --admin-blue-soft: #eaf3ff;
    --admin-green: #22a35a;
    --admin-green-soft: #e9f7ef;
    --admin-red: #f04444;
    --admin-red-soft: #fff0f0;
    --admin-purple: #7557e8;
    --admin-shadow: 0 10px 28px rgba(17, 24, 39, 0.045);
    --admin-radius: 14px;
    --sidebar-width: 238px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.admin-v2 {
    margin: 0;
    background: var(--admin-bg);
    color: var(--admin-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.admin-shell {
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--admin-sidebar) 0%, #0e1319 100%);
    color: #f5f7f9;
    display: flex;
    flex-direction: column;
    z-index: 1030;
    border-right: 1px solid rgba(255,255,255,.04);
}

.admin-brand {
    min-height: 98px;
    padding: 22px 18px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    color: #fff !important;
}

.admin-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.admin-brand strong {
    display: block;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.admin-nav {
    padding: 6px 12px 18px;
}

.admin-nav a {
    min-height: 46px;
    padding: 0 14px;
    margin: 4px 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 13px;
    color: #f0f2f4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background .18s ease, color .18s ease;
}

.admin-nav a i {
    width: 19px;
    text-align: center;
    color: #e7eaee;
}

.admin-nav a:hover,
.admin-nav a.active {
    color: #fff;
    background: rgba(255,255,255,.095);
}

.admin-nav-divider {
    height: 1px;
    margin: 16px 14px;
    background: rgba(255,255,255,.14);
}

.admin-sidebar-footer {
    margin-top: auto;
    padding: 0 12px 22px;
}

.admin-main {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.admin-topbar {
    display: none;
}

.admin-content {
    padding: 28px 30px 44px;
}

.admin-content > .content-header,
.admin-content > .content {
    padding-left: 0;
    padding-right: 0;
}

.admin-content > .content-header {
    padding-top: 0;
}

.admin-content .container-fluid {
    max-width: none;
}

.dashboard-page {
    max-width: 1560px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 31px;
    font-weight: 750;
    letter-spacing: -0.7px;
}

.dashboard-header p {
    margin: 5px 0 0;
    color: var(--admin-muted);
    font-size: 14px;
}

.dashboard-date {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
    color: #303641;
    font-size: 13px;
    white-space: nowrap;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.stat-card,
.dashboard-panel {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    box-shadow: var(--admin-shadow);
}

.stat-card {
    min-height: 134px;
    padding: 20px 20px 18px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    text-decoration: none !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.stat-card:hover {
    transform: translateY(-1px);
    border-color: var(--admin-border-strong);
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.07);
}

.stat-card__label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #414854;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.stat-card__number {
    margin-top: 18px;
    font-size: 32px;
    line-height: 1;
    font-weight: 760;
    letter-spacing: -1px;
}

.stat-card__caption {
    margin-top: 6px;
    color: var(--admin-muted);
    font-size: 12px;
}

.stat-card__icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.stat-card--prof .stat-card__icon { color: var(--admin-green); background: var(--admin-green-soft); }
.stat-card--aluno .stat-card__icon { color: var(--admin-blue); background: var(--admin-blue-soft); }
.stat-card--turma .stat-card__icon { color: var(--admin-purple); background: #f1edff; }
.stat-card--adv .stat-card__icon { color: var(--admin-red); background: var(--admin-red-soft); }

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
    gap: 18px;
    align-items: stretch;
}

.dashboard-panel {
    min-width: 0;
    overflow: hidden;
}

.dashboard-panel__head {
    min-height: 66px;
    padding: 17px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--admin-border);
}

.dashboard-panel__head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 720;
}

.dashboard-panel__body {
    padding: 18px 20px 20px;
}

.dashboard-panel__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dashboard-select,
.dashboard-outline-btn {
    height: 38px;
    border: 1px solid var(--admin-border-strong);
    background: #fff;
    color: #252b34;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
}

.dashboard-select {
    min-width: 150px;
    padding: 0 34px 0 12px;
}

.dashboard-outline-btn {
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.dashboard-outline-btn:hover {
    background: #f7f8fa;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.mini-stat {
    min-height: 112px;
    padding: 15px;
    border: 1px solid var(--admin-border);
    border-radius: 11px;
    background: #fff;
}

.mini-stat__label {
    min-height: 34px;
    color: #4f5661;
    font-size: 12px;
    line-height: 1.35;
}

.mini-stat__number {
    margin-top: 5px;
    font-size: 30px;
    line-height: 1;
    font-weight: 760;
}

.mini-stat__caption {
    margin-top: 7px;
    color: var(--admin-muted);
    font-size: 11px;
}

.dashboard-subtitle {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 750;
    color: #2a3039;
}

.compact-table-wrap {
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    overflow: hidden;
}

.compact-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.compact-table th,
.compact-table td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--admin-border);
    vertical-align: middle;
    font-size: 11px;
    line-height: 1.25;
}

.compact-table th {
    color: #4b525d;
    font-size: 10px;
    font-weight: 750;
    background: #fbfbfc;
}

.compact-table tr:last-child td {
    border-bottom: 0;
}

.compact-table td {
    color: #2b313a;
}

.compact-table .truncate {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-normal {
    color: #4f5660;
    background: #eff1f3;
}

.badge-celular {
    color: #1765c8;
    background: #e5f0ff;
}

.badge-reservado {
    color: #24834a;
    background: #e3f5e9;
}

.badge-livre {
    color: #555c66;
    background: #f0f2f4;
}

.panel-footer-link {
    margin-top: 13px;
    color: #1769d2;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lab-date {
    color: #3d444f;
    font-size: 12px;
    font-weight: 650;
}

.lab-date-row {
    min-height: 34px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lab-calendar-picker {
    position: relative;
    width: 30px;
    height: 30px;
    margin: 0;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    color: #3f4650;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: background .18s ease, border-color .18s ease;
}

.lab-calendar-picker:hover {
    background: #f7f8fa;
    border-color: var(--admin-border-strong);
}

.lab-calendar-picker i {
    pointer-events: none;
    font-size: 13px;
}

.lab-calendar-picker input[type="date"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
}

.lab-next-summary {
    min-height: 58px;
    margin-bottom: 11px;
    padding: 10px 12px;
    border: 1px solid #dce5f2;
    border-radius: 10px;
    background: #f8fbff;
    display: grid;
    grid-template-columns: 34px 130px minmax(0, 1fr) 82px;
    align-items: center;
    gap: 10px;
}

.lab-next-summary__icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--admin-blue);
    background: var(--admin-blue-soft);
    font-size: 13px;
}

.lab-next-summary__content span,
.lab-next-summary__detail span {
    display: block;
    color: #68707b;
    font-size: 10px;
}

.lab-next-summary__content strong,
.lab-next-summary__detail strong {
    display: block;
    margin-top: 2px;
    color: #252b34;
    font-size: 11px;
    font-weight: 720;
}

.lab-next-summary__status {
    justify-self: end;
}

.lab-day-finished {
    min-height: 42px;
    margin-bottom: 11px;
    padding: 0 12px;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #68707b;
    background: #fafbfc;
    font-size: 11px;
    font-weight: 600;
}

.lab-row--next {
    position: relative;
    background: #fbfdff;
    box-shadow: inset 3px 0 0 var(--admin-blue);
}

.lab-list {
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    overflow: hidden;
}

.lab-row {
    min-height: 58px;
    padding: 8px 11px;
    display: grid;
    grid-template-columns: 104px minmax(130px, 1fr) minmax(150px, 1.1fr) 86px;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--admin-border);
}

.lab-row:last-child {
    border-bottom: 0;
}

.lab-time {
    color: #2e3540;
    font-size: 11px;
    font-weight: 650;
    white-space: nowrap;
}

.lab-main strong {
    display: block;
    color: #252b34;
    font-size: 11px;
    font-weight: 720;
}

.lab-main span,
.lab-professor {
    display: block;
    margin-top: 3px;
    color: #68707b;
    font-size: 10px;
}

.lab-status {
    justify-self: end;
}

.dashboard-empty {
    padding: 36px 20px;
    text-align: center;
    color: var(--admin-muted);
    font-size: 13px;
}

/* Compatibilidade temporária com as telas antigas durante a migração. */
.admin-content .card {
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    box-shadow: var(--admin-shadow);
}

.admin-content .content-header h1 {
    font-weight: 700;
}

.sidebar-toggle {
    border: 0;
    background: transparent;
    color: #2e343d;
    width: 40px;
    height: 40px;
}

.sidebar-backdrop {
    display: none;
}

@media (max-width: 1180px) {
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    :root {
        --sidebar-width: 242px;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform .22s ease;
        box-shadow: 18px 0 38px rgba(0,0,0,.16);
    }

    body.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-topbar {
        min-height: 62px;
        padding: 0 14px;
        display: flex;
        align-items: center;
        gap: 10px;
        background: #fff;
        border-bottom: 1px solid var(--admin-border);
        position: sticky;
        top: 0;
        z-index: 1015;
    }

    .admin-topbar img {
        width: 30px;
        height: 30px;
        object-fit: contain;
    }

    .admin-topbar strong {
        font-size: 14px;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1020;
        background: rgba(0,0,0,.32);
    }

    body.sidebar-open .sidebar-backdrop {
        display: block;
    }

    .admin-content {
        padding: 22px 15px 34px;
    }

    .dashboard-header {
        align-items: center;
    }

    .dashboard-date {
        display: none;
    }
}

@media (max-width: 620px) {
    .stat-grid,
    .mini-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-header h1 {
        font-size: 27px;
    }

    .dashboard-panel__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-panel__actions {
        width: 100%;
        justify-content: stretch;
    }

    .dashboard-select,
    .dashboard-outline-btn {
        flex: 1 1 0;
        min-width: 0;
    }

    .compact-table-wrap {
        overflow-x: auto;
    }

    .compact-table {
        min-width: 720px;
    }

    .lab-list {
        overflow-x: auto;
    }

    .lab-row {
        min-width: 650px;
    }
}

/* =========================================================
   ADVERTÊNCIAS - LISTAGEM V2
   ========================================================= */
.warnings-page {
    max-width: 1560px;
    margin: 0 auto;
}

.warnings-header {
    min-height: 82px;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.warnings-header h1 {
    margin: 0;
    font-size: 31px;
    font-weight: 750;
    letter-spacing: -0.7px;
}

.warnings-header p {
    margin: 5px 0 0;
    color: var(--admin-muted);
    font-size: 14px;
}

.warnings-tabs {
    min-width: 510px;
    min-height: 64px;
    padding: 0 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 13px;
    box-shadow: var(--admin-shadow);
}

.warnings-tabs a {
    position: relative;
    min-height: 62px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #68707b;
    text-decoration: none !important;
    font-size: 14px;
    transition: color .18s ease, background .18s ease;
}

.warnings-tabs a + a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 17px;
    bottom: 17px;
    width: 1px;
    background: var(--admin-border);
}

.warnings-tabs a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -1px;
    height: 2px;
    border-radius: 4px 4px 0 0;
    background: transparent;
}

.warnings-tabs a:hover,
.warnings-tabs a.active {
    color: var(--admin-text);
}

.warnings-tabs a.active::after {
    background: var(--admin-blue);
}

.warnings-tabs strong {
    font-size: 17px;
    font-weight: 760;
    color: inherit;
}

.warnings-tabs a.active strong {
    color: var(--admin-blue);
}

.warnings-filter-card,
.warnings-table-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    box-shadow: var(--admin-shadow);
}

.warnings-filter-card {
    padding: 18px 20px;
    margin-bottom: 18px;
}

.warnings-filters {
    display: grid;
    grid-template-columns: minmax(280px, 1.5fr) minmax(220px, .9fr) auto auto;
    gap: 16px;
    align-items: center;
}

.warnings-search,
.warnings-select-wrap {
    position: relative;
    min-width: 0;
    margin: 0;
}

.warnings-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #69717c;
    font-size: 13px;
    pointer-events: none;
}

.warnings-search input,
.warnings-select-wrap select {
    width: 100%;
    height: 46px;
    margin: 0;
    border: 1px solid var(--admin-border-strong);
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: #2b313a;
    font-size: 13px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.warnings-search input {
    padding: 0 16px 0 42px;
}

.warnings-select-wrap select {
    padding: 0 42px 0 14px;
    appearance: none;
}

.warnings-select-wrap > i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #69717c;
    font-size: 11px;
    pointer-events: none;
}

.warnings-search input:focus,
.warnings-select-wrap select:focus {
    border-color: #9fbbe1;
    box-shadow: 0 0 0 3px rgba(24,119,242,.08);
}

.warnings-filter-btn,
.warnings-clear-btn {
    height: 46px;
    border: 1px solid var(--admin-border-strong);
    border-radius: 9px;
    background: #fff;
    color: #272d36;
    font-size: 13px;
    font-weight: 650;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none !important;
}

.warnings-filter-btn {
    padding: 0 18px;
}

.warnings-clear-btn {
    width: 46px;
    color: #717984;
}

.warnings-filter-btn:hover,
.warnings-clear-btn:hover {
    background: #f7f8fa;
}

.warnings-table-card {
    overflow: hidden;
}

.warnings-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.warnings-table {
    width: 100%;
    min-width: 1040px;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.warnings-table th,
.warnings-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--admin-border);
    vertical-align: middle;
    color: #2b313a;
    font-size: 12px;
}

.warnings-table th {
    height: 58px;
    color: #3f4650;
    background: #fff;
    font-weight: 750;
    white-space: nowrap;
}

.warnings-table tbody tr:last-child td {
    border-bottom: 0;
}

.warnings-table tbody tr {
    transition: background .15s ease;
}

.warnings-table tbody tr:not(.warnings-row--alert):hover {
    background: #fafbfc;
}

.warnings-table th:nth-child(1),
.warnings-table td:nth-child(1) { width: 25%; }
.warnings-table th:nth-child(2),
.warnings-table td:nth-child(2) { width: 9%; }
.warnings-table th:nth-child(3),
.warnings-table td:nth-child(3) { width: 11%; }
.warnings-table th:nth-child(4),
.warnings-table td:nth-child(4) { width: 20%; }
.warnings-table th:nth-child(5),
.warnings-table td:nth-child(5) { width: 12%; text-align: center; }
.warnings-table th:nth-child(6),
.warnings-table td:nth-child(6) { width: 15%; }
.warnings-table th:nth-child(7),
.warnings-table td:nth-child(7) { width: 8%; text-align: center; }

.warnings-student-name,
.warnings-professor-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.warnings-student-name {
    font-weight: 560;
}

.warnings-professor-name {
    color: #454c56;
}

.warnings-prof-count-head span {
    width: 17px;
    height: 17px;
    margin-left: 5px;
    border: 1px solid #cdd2d8;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #777f89;
    font-size: 10px;
    cursor: help;
}

.warnings-prof-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    font-weight: 760;
    font-size: 13px;
    color: #222831;
}

.warnings-prof-count.is-alert {
    color: #e32929;
}

.warnings-row--alert {
    background: #fff1f1;
}

.warnings-row--alert td {
    border-bottom-color: #f5cfcf;
}

.warnings-row--alert:hover {
    background: #ffecec;
}

.warnings-date {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.warnings-view-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--admin-border-strong);
    border-radius: 9px;
    display: inline-grid;
    place-items: center;
    background: #fff;
    color: #303741 !important;
    text-decoration: none !important;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.warnings-view-btn:hover {
    border-color: #bfc5cc;
    background: #f7f8fa;
    transform: translateY(-1px);
}

.warnings-empty {
    padding: 58px 20px !important;
    text-align: center;
    color: var(--admin-muted) !important;
}

.warnings-empty i,
.warnings-empty strong,
.warnings-empty span {
    display: block;
}

.warnings-empty i {
    margin-bottom: 10px;
    font-size: 25px;
}

.warnings-empty strong {
    color: #454c56;
    font-size: 14px;
}

.warnings-empty span {
    margin-top: 5px;
    font-size: 12px;
}

.warnings-table-footer {
    min-height: 64px;
    padding: 12px 16px;
    border-top: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #747b86;
    font-size: 11px;
}

.warnings-pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

.warnings-pagination a,
.warnings-pagination span {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--admin-border);
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #505762;
    background: #fff;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none !important;
}

.warnings-pagination a:hover {
    background: #f5f6f8;
}

.warnings-pagination span.active {
    border-color: #161b22;
    background: #161b22;
    color: #fff;
}

.warnings-pagination span.disabled {
    color: #c0c5cb;
    background: #fafafa;
}

.warnings-pagination span.ellipsis {
    min-width: 20px;
    padding: 0;
    border-color: transparent;
    background: transparent;
}

@media (max-width: 1040px) {
    .warnings-header {
        flex-direction: column;
    }

    .warnings-tabs {
        width: 100%;
        min-width: 0;
    }

    .warnings-filters {
        grid-template-columns: 1fr 1fr auto auto;
    }
}

@media (max-width: 700px) {
    .warnings-header h1 {
        font-size: 27px;
    }

    .warnings-tabs {
        padding: 0 8px;
    }

    .warnings-tabs a {
        padding: 0 8px;
        gap: 7px;
        font-size: 12px;
    }

    .warnings-tabs strong {
        font-size: 14px;
    }

    .warnings-filter-card {
        padding: 14px;
    }

    .warnings-filters {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .warnings-filter-btn,
    .warnings-clear-btn {
        width: 100%;
    }

    .warnings-table-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .warnings-pagination {
        max-width: 100%;
        flex-wrap: wrap;
    }
}

/* =========================================================
   ADVERTÊNCIAS V2.1 - RESUMO POR ALUNO
   ========================================================= */
.warnings-summary-table th:nth-child(1),
.warnings-summary-table td:nth-child(1) {
    width: 31%;
}

.warnings-summary-table th:nth-child(2),
.warnings-summary-table td:nth-child(2) {
    width: 15%;
}

.warnings-summary-table th:nth-child(3),
.warnings-summary-table td:nth-child(3),
.warnings-summary-table th:nth-child(4),
.warnings-summary-table td:nth-child(4) {
    width: 10%;
}

.warnings-summary-table th:nth-child(5),
.warnings-summary-table td:nth-child(5) {
    width: 12%;
}

.warnings-summary-table th:nth-child(6),
.warnings-summary-table td:nth-child(6) {
    width: 8%;
}

.warnings-summary-table th:nth-child(7),
.warnings-summary-table td:nth-child(7) {
    width: 14%;
}

.warnings-number,
.warnings-total {
    font-variant-numeric: tabular-nums;
}

.warnings-total {
    font-size: 14px;
    color: #161b22;
}

.warnings-summary-actions {
    text-align: right;
}

.warnings-generate-btn {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #e64a52;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #e7353f;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .18s ease, transform .18s ease, border-color .18s ease;
}

.warnings-generate-btn:hover {
    background: #d92b35;
    border-color: #d92b35;
    transform: translateY(-1px);
}

.warnings-no-action {
    color: #a3a8af;
}

@media (max-width: 900px) {
    .warnings-summary-table {
        min-width: 850px;
    }
}

/* =========================================================
   ATAS V2
   ========================================================= */
.minutes-page {
    max-width: 1560px;
    margin: 0 auto;
}

.minutes-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.minutes-page-header h1 {
    margin: 0;
    font-size: 31px;
    line-height: 1.1;
    font-weight: 760;
    letter-spacing: -.7px;
}

.minutes-page-header p {
    margin: 6px 0 0;
    color: var(--admin-muted);
    font-size: 14px;
}

.minutes-breadcrumb {
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #8a9099;
    font-size: 11px;
    font-weight: 650;
}

.minutes-breadcrumb i {
    font-size: 8px;
}

.minutes-primary-btn,
.minutes-secondary-btn,
.minutes-filter-btn,
.minutes-clear-btn {
    min-height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 720;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.minutes-primary-btn {
    padding: 0 16px;
    border: 1px solid #171b21;
    background: #171b21;
    color: #fff !important;
}

.minutes-primary-btn:hover {
    background: #0c0f13;
    border-color: #0c0f13;
    transform: translateY(-1px);
}

.minutes-primary-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

.minutes-secondary-btn {
    padding: 0 15px;
    border: 1px solid var(--admin-border-strong);
    background: #fff;
    color: #333a45 !important;
}

.minutes-secondary-btn:hover {
    background: #f7f8fa;
}

.minutes-alert {
    margin-bottom: 16px;
    padding: 13px 15px;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
}

.minutes-alert div {
    display: grid;
    gap: 2px;
}

.minutes-alert--success {
    border: 1px solid #cfe9d9;
    background: #eef9f2;
    color: #237345;
}

.minutes-alert--error {
    border: 1px solid #f0c8ca;
    background: #fff1f1;
    color: #a43238;
}

.minutes-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.minutes-summary-card {
    min-height: 78px;
    padding: 15px 18px;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--admin-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-decoration: none !important;
    transition: border-color .18s ease, transform .18s ease;
}

.minutes-summary-card:hover {
    border-color: var(--admin-border-strong);
    transform: translateY(-1px);
}

.minutes-summary-card.active {
    border-color: #171b21;
    box-shadow: inset 0 -2px 0 #171b21, var(--admin-shadow);
}

.minutes-summary-card span {
    color: #636a75;
    font-size: 12px;
    font-weight: 650;
}

.minutes-summary-card strong {
    color: #171b21;
    font-size: 22px;
    font-weight: 780;
    font-variant-numeric: tabular-nums;
}

.minutes-filter-card,
.minutes-table-card,
.minutes-form-card,
.minutes-selection-card,
.minutes-student-summary {
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    background: #fff;
    box-shadow: var(--admin-shadow);
}

.minutes-filter-card {
    margin-bottom: 16px;
    padding: 14px 16px;
}

.minutes-filters {
    display: grid;
    grid-template-columns: minmax(240px, 1.45fr) minmax(200px, .85fr) auto auto;
    gap: 10px;
    align-items: center;
}

.minutes-search-field {
    height: 42px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid var(--admin-border-strong);
    border-radius: 9px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #77808b;
}

.minutes-search-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1f252d;
    font-size: 12px;
}

.minutes-select {
    width: 100%;
    height: 42px;
    padding: 0 34px 0 12px;
    border: 1px solid var(--admin-border-strong);
    border-radius: 9px;
    background: #fff;
    color: #2f3640;
    font-size: 12px;
}

.minutes-filter-btn {
    padding: 0 15px;
    border: 1px solid var(--admin-border-strong);
    background: #fff;
    color: #222832;
}

.minutes-filter-btn:hover {
    background: #f7f8fa;
}

.minutes-clear-btn {
    width: 42px;
    padding: 0;
    border: 1px solid var(--admin-border-strong);
    background: #fff;
    color: #707783 !important;
}

.minutes-clear-btn:hover {
    color: #d3373f !important;
    border-color: #e7b5b8;
    background: #fff5f5;
}

.minutes-table-card {
    overflow: hidden;
}

.minutes-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.minutes-table {
    width: 100%;
    min-width: 900px;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.minutes-table th,
.minutes-table td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--admin-border);
    vertical-align: middle;
    font-size: 12px;
}

.minutes-table th {
    background: #fbfbfc;
    color: #3f4650;
    font-size: 11px;
    font-weight: 760;
}

.minutes-table tbody tr:last-child td {
    border-bottom: 0;
}

.minutes-table tbody tr:hover {
    background: #fcfcfd;
}

.minutes-table th:nth-child(1),
.minutes-table td:nth-child(1) { width: 26%; }
.minutes-table th:nth-child(2),
.minutes-table td:nth-child(2) { width: 13%; }
.minutes-table th:nth-child(3),
.minutes-table td:nth-child(3) { width: 12%; }
.minutes-table th:nth-child(4),
.minutes-table td:nth-child(4) { width: 22%; }
.minutes-table th:nth-child(5),
.minutes-table td:nth-child(5) { width: 16%; }
.minutes-table th:nth-child(6),
.minutes-table td:nth-child(6) { width: 11%; }

.minutes-student-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #20262e;
    font-weight: 650;
}

.minutes-origin {
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 720;
    white-space: nowrap;
}

.minutes-origin--warnings {
    background: #fff0f0;
    color: #c63a41;
}

.minutes-origin--manual,
.minutes-origin--normal {
    background: #f0f1f3;
    color: #4c535d;
}

.minutes-origin--cell {
    background: #e9f3ff;
    color: #1769c6;
}

.minutes-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.minutes-delete-form {
    margin: 0;
}

.minutes-action-btn {
    width: 35px;
    height: 35px;
    padding: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    text-decoration: none !important;
    font-size: 12px;
    cursor: pointer;
}

.minutes-action-btn--view {
    border: 1px solid #bfe3cd;
    color: #23834d !important;
    background: #f3fbf6;
}

.minutes-action-btn--edit {
    border: 1px solid #bfd6f3;
    color: #2b6fb8 !important;
    background: #f5f9ff;
}

.minutes-action-btn--delete {
    border: 1px solid #efc5c8;
    color: #d53c45;
    background: #fff5f5;
}

.minutes-action-btn:hover {
    filter: brightness(.98);
    transform: translateY(-1px);
}

.minutes-empty {
    padding: 46px 20px !important;
    text-align: center;
    color: #858b94;
}

.minutes-empty i,
.minutes-empty strong,
.minutes-empty span {
    display: block;
}

.minutes-empty i {
    margin-bottom: 9px;
    font-size: 24px;
}

.minutes-empty strong {
    color: #4e555f;
    font-size: 13px;
}

.minutes-empty span {
    margin-top: 4px;
    font-size: 11px;
}

.minutes-table-footer {
    min-height: 62px;
    padding: 13px 16px;
    border-top: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #7b828c;
    font-size: 11px;
}

.minutes-pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

.minutes-pagination a,
.minutes-pagination span {
    min-width: 31px;
    height: 31px;
    padding: 0 8px;
    border: 1px solid var(--admin-border);
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3e454f;
    background: #fff;
    text-decoration: none !important;
    font-size: 11px;
}

.minutes-pagination .active {
    border-color: #171b21;
    background: #171b21;
    color: #fff;
}

.minutes-pagination .disabled,
.minutes-pagination .ellipsis {
    color: #b1b5bc;
}

.minutes-pagination .ellipsis {
    border-color: transparent;
    background: transparent;
}

.minutes-form-page {
    max-width: 1180px;
}

.minutes-form-card {
    padding: 0;
    overflow: hidden;
}

.minutes-form-section {
    padding: 24px 26px;
}

.minutes-form-section-head {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.minutes-section-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #f0f1f3;
    color: #343b45;
}

.minutes-form-section-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 740;
}

.minutes-form-section-head p {
    margin: 4px 0 0;
    color: var(--admin-muted);
    font-size: 11px;
}

.minutes-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.minutes-field {
    min-width: 0;
    margin: 0;
    display: grid;
    gap: 7px;
}

.minutes-field--full {
    grid-column: 1 / -1;
}

.minutes-field > span {
    color: #2f3540;
    font-size: 12px;
    font-weight: 700;
}

.minutes-field input,
.minutes-field select,
.minutes-field textarea {
    width: 100%;
    border: 1px solid var(--admin-border-strong);
    border-radius: 9px;
    background: #fff;
    color: #20262e;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.minutes-field input,
.minutes-field select {
    height: 44px;
    padding: 0 12px;
}

.minutes-field textarea {
    min-height: 230px;
    padding: 13px 14px;
    resize: vertical;
    line-height: 1.6;
}

.minutes-field input:focus,
.minutes-field select:focus,
.minutes-field textarea:focus {
    border-color: #9198a2;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, .05);
}

.minutes-form-divider {
    height: 1px;
    background: var(--admin-border);
}

.minutes-form-actions {
    padding: 16px 26px;
    border-top: 1px solid var(--admin-border);
    background: #fbfbfc;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.minutes-record-summary {
    padding: 20px 26px;
    display: grid;
    grid-template-columns: 1.6fr 1fr .8fr;
    gap: 14px;
}

.minutes-record-summary > div {
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    background: #fbfbfc;
}

.minutes-record-summary span,
.minutes-record-summary strong {
    display: block;
}

.minutes-record-summary span {
    margin-bottom: 4px;
    color: #7b828b;
    font-size: 10px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.minutes-record-summary strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #222831;
    font-size: 13px;
    font-weight: 700;
}

.minutes-generate-page {
    max-width: 1320px;
}

.minutes-student-summary {
    min-height: 106px;
    margin-bottom: 16px;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.minutes-student-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f0f1f3;
    color: #262c35;
    font-size: 17px;
    font-weight: 780;
}

.minutes-student-info span {
    display: block;
    color: #8a9098;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.minutes-student-info h2 {
    margin: 3px 0 2px;
    font-size: 17px;
    font-weight: 760;
}

.minutes-student-info p {
    margin: 0;
    color: #737a84;
    font-size: 11px;
}

.minutes-student-metrics {
    display: flex;
    align-items: stretch;
}

.minutes-student-metrics > div {
    min-width: 98px;
    padding: 7px 17px;
    border-left: 1px solid var(--admin-border);
    text-align: center;
}

.minutes-student-metrics strong,
.minutes-student-metrics span {
    display: block;
}

.minutes-student-metrics strong {
    font-size: 22px;
    line-height: 1;
    font-weight: 780;
}

.minutes-student-metrics span {
    margin-top: 5px;
    color: #7c838d;
    font-size: 10px;
}

.minutes-student-metrics .is-danger strong {
    color: var(--admin-red);
}

.minutes-generate-form {
    display: grid;
    gap: 16px;
}

.minutes-selection-card {
    overflow: hidden;
}

.minutes-selection-head {
    padding: 17px 20px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.minutes-selection-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 740;
}

.minutes-selection-head p {
    margin: 4px 0 0;
    color: #7a818b;
    font-size: 11px;
}

.minutes-check-all {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #424954;
    font-size: 11px;
    font-weight: 650;
    cursor: pointer;
}

.minutes-check-all input,
.minutes-warning-row > input {
    accent-color: #171b21;
}

.minutes-selected-count {
    padding: 10px 20px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: #737a84;
    font-size: 10px;
}

.minutes-selected-count strong {
    color: #1d232b;
    font-size: 14px;
}

.minutes-warning-list {
    max-height: 480px;
    overflow-y: auto;
}

.minutes-warning-row {
    min-height: 62px;
    margin: 0;
    padding: 11px 20px;
    border-bottom: 1px solid var(--admin-border);
    display: grid;
    grid-template-columns: auto minmax(210px, .75fr) minmax(250px, 1fr);
    align-items: center;
    gap: 13px;
    cursor: pointer;
    transition: background .15s ease;
}

.minutes-warning-row:last-child {
    border-bottom: 0;
}

.minutes-warning-row:hover {
    background: #fbfbfc;
}

.minutes-warning-row > input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.minutes-warning-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.minutes-warning-main > strong {
    color: #333a44;
    font-size: 12px;
    font-weight: 700;
}

.minutes-warning-professor {
    min-width: 0;
}

.minutes-warning-professor small,
.minutes-warning-professor strong {
    display: block;
}

.minutes-warning-professor small {
    color: #949aa2;
    font-size: 9px;
}

.minutes-warning-professor strong {
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #3b424c;
    font-size: 11px;
    font-weight: 650;
}

.minutes-empty--selection {
    border: 0;
}

@media (max-width: 1100px) {
    .minutes-summary-grid {
        grid-template-columns: 1fr;
    }

    .minutes-filters {
        grid-template-columns: 1fr 1fr auto auto;
    }
}

@media (max-width: 820px) {
    .minutes-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .minutes-page-header .minutes-primary-btn,
    .minutes-page-header .minutes-secondary-btn {
        align-self: flex-start;
    }

    .minutes-filters,
    .minutes-form-grid,
    .minutes-record-summary {
        grid-template-columns: 1fr;
    }

    .minutes-form-section,
    .minutes-record-summary {
        padding-left: 18px;
        padding-right: 18px;
    }

    .minutes-form-actions {
        padding-left: 18px;
        padding-right: 18px;
    }

    .minutes-student-summary {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .minutes-student-metrics {
        grid-column: 1 / -1;
        border-top: 1px solid var(--admin-border);
        padding-top: 12px;
    }

    .minutes-student-metrics > div:first-child {
        border-left: 0;
    }

    .minutes-warning-row {
        grid-template-columns: auto 1fr;
    }

    .minutes-warning-professor {
        grid-column: 2;
    }
}

@media (max-width: 560px) {
    .minutes-page-header h1 {
        font-size: 27px;
    }

    .minutes-filter-card {
        padding: 12px;
    }

    .minutes-filters {
        grid-template-columns: 1fr;
    }

    .minutes-filter-btn,
    .minutes-clear-btn {
        width: 100%;
    }

    .minutes-table-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .minutes-pagination {
        max-width: 100%;
        flex-wrap: wrap;
    }

    .minutes-student-summary {
        grid-template-columns: 1fr;
    }

    .minutes-student-avatar {
        display: none;
    }

    .minutes-student-metrics {
        grid-column: auto;
    }

    .minutes-student-metrics > div {
        flex: 1;
        min-width: 0;
        padding-left: 10px;
        padding-right: 10px;
    }

    .minutes-selection-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .minutes-warning-row {
        padding-left: 14px;
        padding-right: 14px;
    }

    .minutes-warning-main {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .minutes-form-actions {
        flex-direction: column-reverse;
    }

    .minutes-form-actions .minutes-primary-btn,
    .minutes-form-actions .minutes-secondary-btn {
        width: 100%;
    }
}

/* ===== ALUNOS V2 ===== */
.students-page,
.student-form-page {
    width: 100%;
}

.students-page-header,
.student-form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.students-page-header h1,
.student-form-header h1 {
    margin: 0;
    color: var(--admin-text);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.1;
    font-weight: 750;
    letter-spacing: -0.025em;
}

.students-page-header p,
.student-form-header p {
    margin: 7px 0 0;
    color: var(--admin-muted);
    font-size: 14px;
}

.students-primary-btn,
.student-submit-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border: 1px solid #171b21;
    border-radius: 10px;
    background: #171b21;
    color: #fff !important;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none !important;
    transition: transform .15s ease, background .15s ease;
}

.students-alert,
.student-form-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 11px;
    font-size: 14px;
}

.students-alert--success {
    color: #17683a;
    background: var(--admin-green-soft);
    border: 1px solid #ccebd8;
}

.student-form-alert--error {
    color: #9a2d2d;
    background: var(--admin-red-soft);
    border: 1px solid #f2caca;
}

.student-form-alert--error strong {
    display: block;
    margin-bottom: 4px;
}

.student-form-alert--error ul {
    margin: 0;
    padding-left: 18px;
}

.students-filter-card,
.students-table-card,
.student-form-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    box-shadow: var(--admin-shadow);
}

.students-filter-card {
    padding: 16px;
    margin-bottom: 18px;
}

.students-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) minmax(220px, .9fr) auto auto;
    gap: 12px;
    align-items: center;
}

.students-search-field {
    position: relative;
    display: block;
    margin: 0;
}

.students-search-field i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #687180;
    font-size: 14px;
    pointer-events: none;
}

.students-search-field input,
.students-select,
.student-field input,
.student-field select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--admin-border-strong);
    border-radius: 9px;
    outline: 0;
    background: #fff;
    color: var(--admin-text);
    font: inherit;
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.students-search-field input {
    padding-left: 41px;
}

.students-search-field input:focus,
.students-select:focus,
.student-field input:focus,
.student-field select:focus {
    border-color: #a9b5c6;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, .08);
}

.students-filter-btn,
.students-clear-btn,
.student-back-btn,
.student-secondary-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid var(--admin-border-strong);
    border-radius: 9px;
    background: #fff;
    color: var(--admin-text) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
}

.students-clear-btn {
    width: 44px;
    padding: 0;
}

.students-table-card {
    overflow: hidden;
}

.students-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.students-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    color: var(--admin-text);
    font-size: 13.5px;
}

.students-table th {
    padding: 17px 16px;
    border-bottom: 1px solid var(--admin-border);
    background: #fff;
    color: #252b34;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.students-table td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--admin-border);
    vertical-align: middle;
}

.students-table tbody tr:last-child td {
    border-bottom: 0;
}

.students-table tbody tr:hover {
    background: #fbfcfd;
}

.students-name {
    display: block;
    font-size: 13.5px;
    font-weight: 650;
}

.students-class-name {
    display: block;
    font-weight: 600;
}

.students-table td small {
    display: block;
    margin-top: 2px;
    color: var(--admin-muted);
    font-size: 11px;
}

.students-actions-heading {
    width: 116px;
    text-align: center !important;
}

.students-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.students-action-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none !important;
}

.students-action-btn--edit {
    color: #1368c8 !important;
    background: #f1f7ff;
    border: 1px solid #cbdff8;
}

.students-action-btn--delete {
    color: #e13d43 !important;
    background: #fff5f5;
    border: 1px solid #f3c9cb;
}

.students-empty-state {
    padding: 54px 20px !important;
    text-align: center;
    color: var(--admin-muted);
}

.students-empty-state i,
.students-empty-state strong,
.students-empty-state span {
    display: block;
}

.students-empty-state i {
    margin-bottom: 10px;
    font-size: 28px;
    color: #a8afb9;
}

.students-empty-state strong {
    margin-bottom: 4px;
    color: var(--admin-text);
    font-size: 15px;
}

.students-table-footer {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-top: 1px solid var(--admin-border);
    color: var(--admin-muted);
    font-size: 12px;
}

.students-table-footer small {
    color: #9aa0a9;
}

.students-pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

.students-pagination a,
.students-pagination span {
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--admin-border);
    border-radius: 7px;
    background: #fff;
    color: #444b55;
    text-decoration: none;
    font-size: 12px;
}

.students-pagination .active {
    color: #fff;
    background: #171b21;
    border-color: #171b21;
}

.students-pagination .disabled {
    color: #b7bcc4;
    background: #fafafa;
}

.students-pagination .ellipsis {
    min-width: 24px;
    border: 0;
    background: transparent;
}

.student-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--admin-muted);
    font-size: 12px;
}

.student-breadcrumb a {
    color: var(--admin-muted);
    text-decoration: none;
}

.student-breadcrumb i {
    font-size: 8px;
    color: #a6acb5;
}

.student-form-card {
    overflow: hidden;
}

.student-form-section {
    padding: 28px;
}

.student-form-section--bordered {
    border-top: 1px solid var(--admin-border);
}

.student-form-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.student-form-section-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #f1f3f5;
    color: #222832;
}

.student-form-section-title h2 {
    margin: 0 0 3px;
    font-size: 16px;
    font-weight: 700;
}

.student-form-section-title p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 12px;
}

.student-fields-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.student-fields-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-field {
    min-width: 0;
    display: block;
    margin: 0;
}

.student-field > span {
    display: block;
    margin-bottom: 7px;
    color: #242a33;
    font-size: 13px;
    font-weight: 650;
}

.student-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 28px;
    border-top: 1px solid var(--admin-border);
    background: #fcfcfd;
}

@media (hover: hover) and (pointer: fine) {
    .students-primary-btn:hover,
    .student-submit-btn:hover {
        background: #050709;
        transform: translateY(-1px);
    }

    .students-filter-btn:hover,
    .students-clear-btn:hover,
    .student-back-btn:hover,
    .student-secondary-btn:hover {
        background: #f8f9fa;
    }

    .students-action-btn--edit:hover {
        background: #e7f2ff;
    }

    .students-action-btn--delete:hover {
        background: #ffecec;
    }
}

@media (max-width: 900px) {
    .students-filters {
        grid-template-columns: 1fr 1fr;
    }

    .students-search-field {
        grid-column: 1 / -1;
    }

    .student-fields-grid--two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .students-page-header,
    .student-form-header {
        flex-direction: column;
        align-items: stretch;
    }

    .students-primary-btn,
    .student-back-btn {
        align-self: flex-start;
    }

    .students-filters {
        grid-template-columns: 1fr;
    }

    .students-search-field {
        grid-column: auto;
    }

    .students-filter-btn {
        width: 100%;
    }

    .students-table-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-form-section {
        padding: 20px;
    }

    .student-form-actions {
        padding: 14px 20px;
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .student-submit-btn,
    .student-secondary-btn {
        width: 100%;
    }
}

/* =========================================================
   PROFESSORES V2
   ========================================================= */
.professors-page,
.professor-form-page {
    max-width: 1560px;
    margin: 0 auto;
}

.professors-page-header,
.professor-form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.professors-page-header h1,
.professor-form-header h1 {
    margin: 0;
    color: var(--admin-text);
    font-size: 31px;
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -0.7px;
}

.professors-page-header p,
.professor-form-header p {
    margin: 6px 0 0;
    color: var(--admin-muted);
    font-size: 14px;
}

.professors-primary-btn,
.professor-submit-btn {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: #151a21;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.professors-primary-btn:hover,
.professor-submit-btn:hover {
    background: #05080c;
}

.professors-alert,
.professor-form-alert {
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}

.professors-alert--success {
    border-color: #c8ead5;
    background: var(--admin-green-soft);
    color: #176b3c;
}

.professor-form-alert--error {
    border-color: #f3c8c8;
    background: var(--admin-red-soft);
    color: #9d2929;
}

.professor-form-alert ul {
    margin: 5px 0 0;
    padding-left: 18px;
}

.professors-filter-card,
.professors-table-card,
.professor-form-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    box-shadow: var(--admin-shadow);
}

.professors-filter-card {
    padding: 16px;
    margin-bottom: 18px;
}

.professors-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.professors-search-field {
    min-height: 44px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--admin-border-strong);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
}

.professors-search-field i {
    color: #68717d;
}

.professors-search-field input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--admin-text);
    font-size: 14px;
}

.professors-filter-btn,
.professors-clear-btn,
.professor-back-btn,
.professor-secondary-btn {
    min-height: 44px;
    border: 1px solid var(--admin-border-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--admin-text) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
}

.professors-filter-btn {
    padding: 0 17px;
    cursor: pointer;
}

.professors-clear-btn {
    width: 44px;
}

.professors-table-card {
    overflow: hidden;
}

.professors-table-wrap {
    overflow-x: auto;
}

.professors-table {
    width: 100%;
    min-width: 720px;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.professors-table th,
.professors-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--admin-border);
    text-align: left;
    vertical-align: middle;
    font-size: 13px;
}

.professors-table th {
    height: 52px;
    color: #1c2129;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
}

.professors-table th:nth-child(1) { width: 52%; }
.professors-table th:nth-child(2) { width: 32%; }
.professors-table th:nth-child(3) { width: 16%; }

.professors-table tbody tr:last-child td {
    border-bottom: 0;
}

.professors-table tbody tr:hover {
    background: #fbfbfc;
}

.professor-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.professor-identity strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #111821;
    font-size: 13px;
    font-weight: 700;
}

.professor-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    background: #f0f2f4;
    color: #343b45;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 750;
}

.professor-username {
    color: #424a55;
}

.professors-actions-heading {
    text-align: right !important;
}

.professors-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.professors-actions form {
    margin: 0;
}

.professors-action-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.professors-action-btn--delete {
    border: 1px solid #f2c5c5;
    background: #fff6f6;
    color: var(--admin-red);
}

.professors-action-btn--delete:hover {
    background: var(--admin-red-soft);
}

.professors-empty-state {
    height: 230px;
    text-align: center !important;
    color: var(--admin-muted);
}

.professors-empty-state i,
.professors-empty-state strong,
.professors-empty-state span {
    display: block;
}

.professors-empty-state i {
    margin-bottom: 10px;
    font-size: 26px;
}

.professors-empty-state strong {
    margin-bottom: 4px;
    color: var(--admin-text);
}

.professors-table-footer {
    min-height: 58px;
    padding: 12px 18px;
    border-top: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--admin-muted);
    font-size: 12px;
}

.professors-table-footer small {
    margin-left: 3px;
}

.professors-pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

.professors-pagination a,
.professors-pagination span {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: var(--admin-text);
    background: #fff;
    font-size: 12px;
}

.professors-pagination .active {
    border-color: #151a21;
    background: #151a21;
    color: #fff;
}

.professors-pagination .disabled,
.professors-pagination .ellipsis {
    color: #afb4bc;
    background: #fafafa;
}

.professors-pagination .ellipsis {
    border-color: transparent;
}

.professor-breadcrumb {
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--admin-muted);
    font-size: 12px;
}

.professor-breadcrumb a {
    color: var(--admin-muted);
    text-decoration: none;
}

.professor-breadcrumb i {
    font-size: 8px;
}

.professor-back-btn {
    padding: 0 16px;
}

.professor-form-card {
    overflow: hidden;
}

.professor-form-section {
    padding: 26px;
}

.professor-form-section--bordered {
    border-top: 1px solid var(--admin-border);
}

.professor-form-section-title {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.professor-form-section-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 9px;
    background: #f1f3f5;
    color: #202731;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.professor-form-section-title h2 {
    margin: 0;
    color: var(--admin-text);
    font-size: 16px;
    font-weight: 700;
}

.professor-form-section-title p {
    margin: 3px 0 0;
    color: var(--admin-muted);
    font-size: 12px;
}

.professor-fields-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.professor-fields-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.professor-field {
    min-width: 0;
    margin: 0;
}

.professor-field > span {
    display: block;
    margin-bottom: 7px;
    color: #171c23;
    font-size: 13px;
    font-weight: 650;
}

.professor-field input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--admin-border-strong);
    border-radius: 9px;
    outline: 0;
    background: #fff;
    color: var(--admin-text);
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.professor-field input:focus,
.professors-search-field:focus-within {
    border-color: #9ca5b2;
    box-shadow: 0 0 0 3px rgba(20, 24, 32, .055);
}

.professor-form-actions {
    padding: 16px 26px;
    border-top: 1px solid var(--admin-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #fff;
}

.professor-secondary-btn {
    padding: 0 16px;
}

@media (max-width: 780px) {
    .professors-page-header,
    .professor-form-header {
        flex-direction: column;
        align-items: stretch;
    }

    .professors-primary-btn,
    .professor-back-btn {
        align-self: flex-start;
    }

    .professors-filters {
        grid-template-columns: 1fr auto;
    }

    .professors-search-field {
        grid-column: 1 / -1;
    }

    .professor-fields-grid--two {
        grid-template-columns: 1fr;
    }

    .professors-table-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .professor-form-section {
        padding: 20px;
    }

    .professor-form-actions {
        padding: 14px 20px;
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .professor-submit-btn,
    .professor-secondary-btn {
        width: 100%;
    }
}

/* =========================================================
   TURMAS V2
   ========================================================= */

.classes-page,
.class-form-page {
    width: 100%;
}

.classes-page-header,
.class-form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.classes-page-header h1,
.class-form-header h1 {
    margin: 0;
    color: var(--admin-text);
    font-size: 32px;
    line-height: 1.08;
    font-weight: 750;
    letter-spacing: -0.035em;
}

.classes-page-header p,
.class-form-header p {
    margin: 7px 0 0;
    color: var(--admin-muted);
    font-size: 14px;
}

.classes-primary-btn,
.class-back-btn,
.classes-filter-btn,
.classes-clear-btn,
.classes-action-btn,
.class-submit-btn,
.class-secondary-btn {
    border: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 650;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.classes-primary-btn,
.class-submit-btn {
    min-height: 42px;
    padding: 0 17px;
    border-radius: 10px;
    background: #151a21;
    color: #fff;
    font-size: 13px;
}

.classes-primary-btn:hover,
.class-submit-btn:hover {
    background: #242a33;
    color: #fff;
}

.class-back-btn,
.class-secondary-btn,
.classes-filter-btn,
.classes-clear-btn {
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid var(--admin-border-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--admin-text);
    font-size: 13px;
}

.class-back-btn:hover,
.class-secondary-btn:hover,
.classes-filter-btn:hover,
.classes-clear-btn:hover {
    background: #f5f6f7;
    color: var(--admin-text);
}

.classes-alert,
.class-form-alert {
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 11px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
}

.classes-alert--success {
    border: 1px solid #b9e3ca;
    background: #effaf3;
    color: #176235;
}

.class-form-alert--error {
    border: 1px solid #f0c4c6;
    background: #fff4f4;
    color: #9c2730;
}

.class-form-alert ul {
    margin: 5px 0 0;
    padding-left: 18px;
}

.classes-filter-card,
.classes-table-card,
.class-form-card {
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(16, 24, 40, .025);
}

.classes-filter-card {
    padding: 14px 16px;
    margin-bottom: 18px;
}

.classes-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) minmax(170px, .55fr) minmax(150px, .45fr) auto auto;
    gap: 10px;
    align-items: center;
}

.classes-search-field,
.classes-select-field {
    height: 44px;
    border: 1px solid var(--admin-border-strong);
    border-radius: 9px;
    background: #fff;
    display: flex;
    align-items: center;
}

.classes-search-field {
    padding: 0 13px;
    gap: 10px;
    color: #758090;
}

.classes-search-field input {
    min-width: 0;
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--admin-text);
    font-size: 13px;
}

.classes-search-field input::placeholder {
    color: #7f8997;
}

.classes-select-field {
    position: relative;
}

.classes-select-field select {
    width: 100%;
    height: 100%;
    padding: 0 38px 0 13px;
    border: 0;
    outline: 0;
    appearance: none;
    background: transparent;
    color: var(--admin-text);
    font-size: 13px;
    cursor: pointer;
}

.classes-select-field > i {
    position: absolute;
    right: 13px;
    pointer-events: none;
    color: #6d7784;
    font-size: 10px;
}

.classes-search-field:focus-within,
.classes-select-field:focus-within {
    border-color: #9ca5b2;
    box-shadow: 0 0 0 3px rgba(20, 24, 32, .055);
}

.classes-clear-btn {
    width: 42px;
    padding: 0;
}

.classes-table-card {
    overflow: hidden;
}

.classes-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.classes-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    table-layout: fixed;
}

.classes-table th,
.classes-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--admin-border);
    vertical-align: middle;
    text-align: left;
}

.classes-table th {
    background: #fff;
    color: #1c222b;
    font-size: 12px;
    font-weight: 700;
}

.classes-table td {
    color: var(--admin-text);
    font-size: 13px;
}

.classes-table th:nth-child(1) { width: 47%; }
.classes-table th:nth-child(2) { width: 20%; }
.classes-table th:nth-child(3) { width: 20%; }
.classes-table th:nth-child(4) { width: 13%; }

.classes-table tbody tr:last-child td {
    border-bottom: 0;
}

.classes-table tbody tr:hover td {
    background: #fbfbfc;
}

.class-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.class-identity strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 680;
}

.class-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    background: #f0f2f4;
    color: #27303a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.class-series-badge {
    padding: 5px 9px;
    border-radius: 8px;
    background: #f1f3f5;
    color: #333c47;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.class-year {
    color: #39424e;
    font-variant-numeric: tabular-nums;
}

.classes-actions-heading {
    text-align: right !important;
}

.classes-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
}

.classes-actions form {
    margin: 0;
}

.classes-action-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 9px;
    border: 1px solid #f2b9bc;
    background: #fff5f5;
    color: #ef3b45;
}

.classes-action-btn:hover {
    background: #ffe9ea;
    color: #dc2833;
}

.classes-empty-state {
    height: 210px;
    text-align: center !important;
    color: var(--admin-muted) !important;
}

.classes-empty-state > i,
.classes-empty-state > strong,
.classes-empty-state > span {
    display: block;
}

.classes-empty-state > i {
    margin-bottom: 9px;
    color: #a3abb6;
    font-size: 24px;
}

.classes-empty-state > strong {
    margin-bottom: 4px;
    color: var(--admin-text);
    font-size: 14px;
}

.classes-empty-state > span {
    font-size: 12px;
}

.classes-table-footer {
    min-height: 58px;
    padding: 12px 16px;
    border-top: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--admin-muted);
    font-size: 12px;
}

.classes-table-footer small {
    margin-left: 4px;
    color: #9aa2ad;
}

.classes-pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

.classes-pagination a,
.classes-pagination span {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #46505c;
    font-size: 12px;
}

.classes-pagination a:hover {
    background: #f0f2f4;
    color: var(--admin-text);
}

.classes-pagination .active {
    background: #161b22;
    color: #fff;
}

.classes-pagination .disabled {
    color: #c1c7cf;
}

.classes-pagination .ellipsis {
    min-width: auto;
    padding: 0 2px;
}

/* Formulário */
.class-breadcrumb {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--admin-muted);
    font-size: 12px;
}

.class-breadcrumb a {
    color: var(--admin-muted);
    text-decoration: none;
}

.class-breadcrumb a:hover {
    color: var(--admin-text);
}

.class-breadcrumb i {
    font-size: 8px;
}

.class-form-card {
    overflow: hidden;
}

.class-form-section {
    padding: 24px 26px 28px;
}

.class-form-section-title {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.class-form-section-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 9px;
    background: #f1f3f5;
    color: #202731;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.class-form-section-title h2 {
    margin: 0;
    color: var(--admin-text);
    font-size: 16px;
    font-weight: 700;
}

.class-form-section-title p {
    margin: 3px 0 0;
    color: var(--admin-muted);
    font-size: 12px;
}

.class-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.class-field {
    min-width: 0;
    margin: 0;
}

.class-field--full {
    grid-column: 1 / -1;
}

.class-field > span {
    display: block;
    margin-bottom: 7px;
    color: #171c23;
    font-size: 13px;
    font-weight: 650;
}

.class-field input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--admin-border-strong);
    border-radius: 9px;
    outline: 0;
    background: #fff;
    color: var(--admin-text);
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.class-field input:focus {
    border-color: #9ca5b2;
    box-shadow: 0 0 0 3px rgba(20, 24, 32, .055);
}

.class-input-suffix {
    position: relative;
}

.class-input-suffix input {
    padding-right: 68px;
}

.class-input-suffix > span {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    color: var(--admin-muted);
    font-size: 12px;
    pointer-events: none;
}

.class-form-actions {
    padding: 16px 26px;
    border-top: 1px solid var(--admin-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #fff;
}

.class-secondary-btn {
    padding: 0 16px;
}

@media (max-width: 980px) {
    .classes-filters {
        grid-template-columns: 1fr 1fr auto auto;
    }

    .classes-search-field {
        grid-column: 1 / -1;
    }
}

@media (max-width: 780px) {
    .classes-page-header,
    .class-form-header {
        flex-direction: column;
        align-items: stretch;
    }

    .classes-primary-btn,
    .class-back-btn {
        align-self: flex-start;
    }

    .classes-filters {
        grid-template-columns: 1fr 1fr;
    }

    .classes-search-field {
        grid-column: 1 / -1;
    }

    .classes-filter-btn {
        width: 100%;
    }

    .classes-table-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .class-fields-grid {
        grid-template-columns: 1fr;
    }

    .class-field--full {
        grid-column: auto;
    }

    .class-form-section {
        padding: 20px;
    }

    .class-form-actions {
        padding: 14px 20px;
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .class-submit-btn,
    .class-secondary-btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .classes-filters {
        grid-template-columns: 1fr auto;
    }

    .classes-select-field {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   LABORATÓRIOS V2
   ========================================================= */
.labs-page,
.lab-form-page {
    max-width: 1560px;
    margin: 0 auto;
}

.labs-page-header,
.lab-form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.labs-page-header h1,
.lab-form-header h1 {
    margin: 0;
    color: var(--admin-text);
    font-size: 31px;
    font-weight: 750;
    letter-spacing: -0.7px;
}

.labs-page-header p,
.lab-form-header p {
    margin: 5px 0 0;
    color: var(--admin-muted);
    font-size: 14px;
}

.labs-primary-btn,
.lab-back-btn,
.lab-submit-btn,
.lab-secondary-btn,
.labs-filter-btn,
.labs-clear-btn,
.labs-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 650;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.labs-primary-btn,
.lab-submit-btn {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #151a21;
    background: #151a21;
    color: #fff !important;
}

.labs-primary-btn:hover,
.lab-submit-btn:hover {
    background: #090d12;
    border-color: #090d12;
}

.labs-alert,
.lab-form-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 13px 15px;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    background: var(--admin-surface);
    font-size: 13px;
}

.labs-alert--success {
    border-color: #bce7cf;
    background: #f1fbf5;
    color: #177a46;
}

.lab-form-alert--error {
    border-color: #fecaca;
    background: #fff5f5;
    color: #b42318;
}

.lab-form-alert ul {
    margin: 5px 0 0;
    padding-left: 18px;
}

.labs-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.labs-summary-card {
    min-height: 112px;
    padding: 18px 20px;
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    background: var(--admin-surface);
    box-shadow: var(--admin-shadow);
}

.labs-summary-card > span {
    display: block;
    margin-bottom: 7px;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.labs-summary-card strong {
    display: block;
    color: var(--admin-text);
    font-size: 28px;
    line-height: 1;
    font-weight: 780;
}

.labs-summary-card small {
    display: block;
    margin-top: 7px;
    color: var(--admin-muted);
    font-size: 12px;
}

.labs-summary-card--active {
    border-color: #ccebd8;
}

.labs-summary-card--inactive {
    border-color: #e6e8eb;
}

.labs-filter-card,
.labs-table-card,
.lab-form-card {
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    background: var(--admin-surface);
    box-shadow: var(--admin-shadow);
}

.labs-filter-card {
    margin-bottom: 16px;
    padding: 14px;
}

.labs-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(200px, 270px) auto auto;
    gap: 10px;
    align-items: center;
}

.labs-search-field,
.labs-select-field {
    position: relative;
    min-width: 0;
    margin: 0;
}

.labs-search-field > i {
    position: absolute;
    left: 14px;
    top: 50%;
    z-index: 1;
    color: #667085;
    transform: translateY(-50%);
    pointer-events: none;
}

.labs-search-field input,
.labs-select-field select,
.lab-field input,
.lab-field textarea {
    width: 100%;
    border: 1px solid #d6dbe1;
    border-radius: 10px;
    background: #fff;
    color: var(--admin-text);
    outline: none;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.labs-search-field input {
    height: 44px;
    padding: 0 14px 0 42px;
}

.labs-select-field select {
    height: 44px;
    padding: 0 40px 0 14px;
    appearance: none;
}

.labs-select-field > i {
    position: absolute;
    right: 14px;
    top: 50%;
    color: #667085;
    font-size: 11px;
    transform: translateY(-50%);
    pointer-events: none;
}

.labs-search-field:focus-within input,
.labs-select-field:focus-within select,
.lab-field input:focus,
.lab-field textarea:focus {
    border-color: #9aa4b2;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, .05);
}

.labs-filter-btn,
.labs-clear-btn {
    min-height: 44px;
    border: 1px solid #d6dbe1;
    background: #fff;
    color: #161b22 !important;
}

.labs-filter-btn {
    padding: 0 15px;
}

.labs-clear-btn {
    width: 44px;
    padding: 0;
}

.labs-filter-btn:hover,
.labs-clear-btn:hover {
    border-color: #aeb6c0;
    background: #f8f9fa;
}

.labs-table-card {
    overflow: hidden;
}

.labs-table-wrap {
    overflow-x: auto;
}

.labs-table {
    width: 100%;
    min-width: 960px;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.labs-table th,
.labs-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--admin-border);
    vertical-align: middle;
    text-align: left;
}

.labs-table th {
    background: #fff;
    color: #161b22;
    font-size: 12px;
    font-weight: 750;
}

.labs-table td {
    color: #20262e;
    font-size: 13px;
}

.labs-table th:nth-child(1) { width: 27%; }
.labs-table th:nth-child(2) { width: 30%; }
.labs-table th:nth-child(3) { width: 13%; }
.labs-table th:nth-child(4) { width: 15%; }
.labs-table th:nth-child(5) { width: 15%; }

.labs-table tbody tr:last-child td {
    border-bottom: 0;
}

.labs-table tbody tr:hover td {
    background: #fbfbfc;
}

.labs-row--inactive td {
    background: #fcfcfd;
}

.lab-identity {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.lab-avatar {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f0f2f4;
    color: #252b33;
}

.lab-identity > div {
    min-width: 0;
}

.lab-identity strong {
    display: block;
    overflow: hidden;
    color: #111827;
    font-weight: 730;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lab-identity small {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--admin-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lab-description {
    display: block;
    overflow: hidden;
    color: #475467;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lab-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.lab-status-badge > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.lab-status-badge--active {
    background: #ecf9f1;
    color: #18794e;
}

.lab-status-badge--active > span {
    background: #22a565;
}

.lab-status-badge--inactive {
    background: #f1f3f5;
    color: #667085;
}

.lab-status-badge--inactive > span {
    background: #98a2b3;
}

.lab-reservations-today {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.lab-reservations-today strong {
    color: #111827;
    font-size: 15px;
    font-weight: 760;
}

.lab-reservations-today span {
    color: var(--admin-muted);
    font-size: 12px;
}

.labs-actions-heading {
    text-align: right !important;
}

.labs-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
}

.labs-actions form {
    margin: 0;
}

.labs-action-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    cursor: pointer;
}

.labs-action-btn--disable {
    border: 1px solid #f2d28d;
    background: #fffaf0;
    color: #9a6700;
}

.labs-action-btn--enable {
    border: 1px solid #b9e5ca;
    background: #f1fbf5;
    color: #16814c;
}

.labs-action-btn--delete {
    border: 1px solid #fecaca;
    background: #fff7f7;
    color: #ef4444;
}

.labs-action-btn:hover {
    transform: translateY(-1px);
}

.labs-empty-state {
    padding: 46px 20px !important;
    text-align: center !important;
    color: var(--admin-muted) !important;
}

.labs-empty-state > i,
.labs-empty-state > strong,
.labs-empty-state > span {
    display: block;
}

.labs-empty-state > i {
    margin-bottom: 10px;
    font-size: 23px;
}

.labs-empty-state > strong {
    margin-bottom: 5px;
    color: #2e3640;
}

.labs-table-footer {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 16px;
    border-top: 1px solid var(--admin-border);
    color: var(--admin-muted);
    font-size: 12px;
}

.labs-table-footer small {
    color: #98a2b3;
}

.labs-pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

.labs-pagination a,
.labs-pagination span {
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #344054;
    text-decoration: none !important;
    font-size: 12px;
}

.labs-pagination a:hover {
    background: #f2f4f7;
}

.labs-pagination .active {
    background: #151a21;
    color: #fff;
}

.labs-pagination .disabled {
    color: #c5cbd3;
}

.labs-pagination .ellipsis {
    min-width: auto;
}

/* Cadastro */
.lab-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: #667085;
    font-size: 12px;
}

.lab-breadcrumb a {
    color: #667085;
    text-decoration: none;
}

.lab-breadcrumb i {
    font-size: 8px;
}

.lab-back-btn,
.lab-secondary-btn {
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid #d6dbe1;
    background: #fff;
    color: #161b22 !important;
}

.lab-form-card {
    overflow: hidden;
}

.lab-form-section {
    padding: 24px 26px;
}

.lab-form-section-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
}

.lab-form-section-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f0f2f4;
    color: #151a21;
}

.lab-form-section-title h2 {
    margin: 0;
    color: #151a21;
    font-size: 16px;
    font-weight: 740;
}

.lab-form-section-title p {
    margin: 3px 0 0;
    color: var(--admin-muted);
    font-size: 12px;
}

.lab-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.lab-field {
    display: block;
    min-width: 0;
    margin: 0;
}

.lab-field--full {
    grid-column: 1 / -1;
}

.lab-field > span {
    display: block;
    margin-bottom: 7px;
    color: #1d2939;
    font-size: 13px;
    font-weight: 680;
}

.lab-field > span small {
    color: #98a2b3;
    font-size: 11px;
    font-weight: 500;
}

.lab-field input {
    height: 44px;
    padding: 0 13px;
}

.lab-field textarea {
    min-height: 112px;
    padding: 12px 13px;
    resize: vertical;
}

.lab-field-hint {
    display: block;
    margin-top: 7px;
    color: #667085;
    font-size: 11px;
}

.lab-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding: 15px 26px;
    border-top: 1px solid var(--admin-border);
    background: #fff;
}

@media (max-width: 900px) {
    .labs-summary-grid {
        grid-template-columns: 1fr;
    }

    .labs-filters {
        grid-template-columns: 1fr 1fr;
    }

    .labs-search-field {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .labs-page-header,
    .lab-form-header {
        flex-direction: column;
    }

    .labs-primary-btn,
    .lab-back-btn {
        width: 100%;
    }

    .labs-filters,
    .lab-fields-grid {
        grid-template-columns: 1fr;
    }

    .labs-search-field,
    .lab-field--full {
        grid-column: auto;
    }

    .labs-filter-btn {
        width: 100%;
    }

    .labs-table-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .lab-form-section {
        padding: 20px 16px;
    }

    .lab-form-actions {
        padding: 14px 16px;
        flex-direction: column-reverse;
    }

    .lab-form-actions .lab-submit-btn,
    .lab-form-actions .lab-secondary-btn {
        width: 100%;
    }
}

/* =========================================================
   LABORATÓRIOS V2.1 - AGENDA ADMINISTRATIVA
   ========================================================= */

.labs-agenda-link {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid #c7d7fe;
    border-radius: 9px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.labs-agenda-link:hover {
    color: #1e40af;
    background: #dbeafe;
    border-color: #93c5fd;
    text-decoration: none;
}

.lab-agenda-page {
    width: 100%;
}

.lab-agenda-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.lab-agenda-header h1 {
    margin: 5px 0 4px;
    color: #111827;
    font-size: 31px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.7px;
}

.lab-agenda-header p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.lab-agenda-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 18px;
    color: #98a2b3;
    font-size: 11px;
}

.lab-agenda-breadcrumb a {
    color: #667085;
    text-decoration: none;
}

.lab-agenda-breadcrumb a:hover {
    color: #111827;
}

.lab-agenda-breadcrumb i {
    font-size: 8px;
}

.lab-agenda-back-btn,
.lab-agenda-primary-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.lab-agenda-back-btn {
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #101828;
}

.lab-agenda-back-btn:hover {
    color: #101828;
    background: #f9fafb;
    text-decoration: none;
}

.lab-agenda-primary-btn {
    border: 1px solid #101828;
    background: #101828;
    color: #fff;
}

.lab-agenda-primary-btn:hover {
    color: #fff;
    background: #1f2937;
    text-decoration: none;
}

.lab-agenda-alert {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    padding: 12px 15px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 13px;
}

.lab-agenda-alert--success {
    color: #067647;
    background: #ecfdf3;
    border-color: #abefc6;
}

.lab-agenda-alert--error {
    color: #b42318;
    background: #fef3f2;
    border-color: #fecdca;
}

.lab-agenda-toolbar-card {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}

.lab-agenda-toolbar {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(250px, 1.35fr) minmax(190px, .75fr);
    gap: 12px;
    max-width: 720px;
}

.lab-agenda-filter-group {
    min-width: 0;
}

.lab-agenda-filter-group > label {
    display: block;
    margin-bottom: 6px;
    color: #344054;
    font-size: 11px;
    font-weight: 700;
}

.lab-agenda-select-wrap,
.lab-agenda-date-wrap {
    min-height: 42px;
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
}

.lab-agenda-select-wrap > i:first-child,
.lab-agenda-date-wrap > i {
    position: absolute;
    left: 13px;
    z-index: 1;
    color: #667085;
    pointer-events: none;
}

.lab-agenda-select-wrap select,
.lab-agenda-date-wrap input {
    width: 100%;
    min-height: 40px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #101828;
    font-size: 13px;
}

.lab-agenda-select-wrap select {
    appearance: none;
    padding: 0 38px 0 39px;
}

.lab-agenda-date-wrap input {
    padding: 0 12px 0 39px;
}

.lab-agenda-select-arrow {
    position: absolute;
    right: 13px;
    color: #667085;
    font-size: 10px;
    pointer-events: none;
}

.lab-agenda-day-nav {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 1px;
}

.lab-agenda-day-nav a {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.lab-agenda-day-nav a:hover {
    color: #101828;
    background: #f9fafb;
    text-decoration: none;
}

.lab-agenda-day-nav .lab-agenda-today-btn {
    min-width: 70px;
    padding: 0 13px;
}

.lab-agenda-selected-card {
    min-height: 94px;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    align-items: center;
    gap: 22px;
    margin-bottom: 14px;
    padding: 16px 18px;
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    background: #fff;
}

.lab-agenda-selected-lab {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lab-agenda-lab-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #f2f4f7;
    color: #101828;
    font-size: 16px;
}

.lab-agenda-selected-lab div,
.lab-agenda-selected-date {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.lab-agenda-selected-lab span,
.lab-agenda-selected-date span {
    color: #667085;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .35px;
}

.lab-agenda-selected-lab strong {
    margin-top: 2px;
    overflow: hidden;
    color: #101828;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lab-agenda-selected-lab small {
    margin-top: 2px;
    overflow: hidden;
    color: #667085;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lab-agenda-selected-date {
    padding-left: 22px;
    border-left: 1px solid #eaecf0;
}

.lab-agenda-selected-date strong {
    margin-top: 3px;
    color: #101828;
    font-size: 13px;
    white-space: nowrap;
}

.lab-agenda-inactive-badge {
    min-height: 29px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.lab-agenda-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.lab-agenda-summary-card {
    min-height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 18px;
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    background: #fff;
}

.lab-agenda-summary-card > span {
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.lab-agenda-summary-card strong {
    margin: 5px 0 1px;
    color: #101828;
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
}

.lab-agenda-summary-card small {
    color: #667085;
    font-size: 11px;
}

.lab-agenda-summary-card--reserved {
    border-color: #abefc6;
}

.lab-agenda-summary-card--reserved strong {
    color: #067647;
}

.lab-agenda-summary-card--free strong {
    color: #175cd3;
}

.lab-agenda-card {
    overflow: hidden;
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}

.lab-agenda-card-header {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 18px;
    border-bottom: 1px solid #eaecf0;
}

.lab-agenda-card-header h2 {
    margin: 0 0 2px;
    color: #101828;
    font-size: 17px;
    font-weight: 800;
}

.lab-agenda-card-header p {
    margin: 0;
    color: #667085;
    font-size: 11px;
}

.lab-agenda-date-badge {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    border-radius: 8px;
    background: #f2f4f7;
    color: #344054;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.lab-agenda-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.lab-agenda-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    table-layout: fixed;
}

.lab-agenda-table th {
    padding: 12px 14px;
    border-bottom: 1px solid #eaecf0;
    background: #fcfcfd;
    color: #344054;
    font-size: 10px;
    font-weight: 800;
    text-align: left;
}

.lab-agenda-table td {
    height: 68px;
    padding: 10px 14px;
    border-bottom: 1px solid #eaecf0;
    color: #344054;
    font-size: 11px;
    vertical-align: middle;
}

.lab-agenda-table tbody tr:last-child td {
    border-bottom: 0;
}

.lab-agenda-row--reserved {
    background: #fff;
}

.lab-agenda-row--reserved:hover {
    background: #fcfcfd;
}

.lab-agenda-row--free {
    background: #fff;
}

.lab-agenda-time,
.lab-agenda-main-info,
.lab-agenda-free-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lab-agenda-time strong,
.lab-agenda-main-info strong,
.lab-agenda-free-info strong {
    color: #101828;
    font-size: 11px;
    font-weight: 800;
}

.lab-agenda-time span,
.lab-agenda-main-info span,
.lab-agenda-free-info span {
    color: #667085;
    font-size: 10px;
}

.lab-agenda-status {
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.lab-agenda-status--reserved {
    background: #dcfae6;
    color: #067647;
}

.lab-agenda-status--reserved i {
    font-size: 8px;
}

.lab-agenda-status--free {
    background: #f2f4f7;
    color: #475467;
}

.lab-agenda-professor {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lab-agenda-professor-avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f2f4f7;
    color: #344054;
    font-size: 10px;
    font-weight: 800;
}

.lab-agenda-professor > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lab-agenda-observation {
    display: block;
    overflow: hidden;
    color: #475467;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lab-agenda-muted,
.lab-agenda-no-action {
    color: #98a2b3;
}

.lab-agenda-actions-heading {
    text-align: right !important;
}

.lab-agenda-table td:last-child {
    text-align: right;
}

.lab-agenda-cancel-btn {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid #fecdca;
    border-radius: 8px;
    background: #fff5f4;
    color: #d92d20;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.lab-agenda-cancel-btn:hover {
    background: #fee4e2;
}

.lab-agenda-empty-card {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px;
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.lab-agenda-empty-card > i {
    margin-bottom: 6px;
    color: #98a2b3;
    font-size: 30px;
}

.lab-agenda-empty-card h2 {
    margin: 0;
    color: #101828;
    font-size: 18px;
    font-weight: 800;
}

.lab-agenda-empty-card p {
    margin: 0 0 8px;
    color: #667085;
    font-size: 12px;
}

@media (max-width: 1000px) {
    .lab-agenda-toolbar-card {
        align-items: stretch;
        flex-direction: column;
    }

    .lab-agenda-toolbar {
        max-width: none;
    }

    .lab-agenda-day-nav {
        justify-content: flex-end;
    }

    .lab-agenda-selected-card {
        grid-template-columns: 1fr auto;
    }

    .lab-agenda-inactive-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 700px) {
    .lab-agenda-header {
        flex-direction: column;
    }

    .lab-agenda-back-btn {
        width: 100%;
    }

    .lab-agenda-toolbar {
        grid-template-columns: 1fr;
    }

    .lab-agenda-selected-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .lab-agenda-selected-date {
        padding: 13px 0 0;
        border-top: 1px solid #eaecf0;
        border-left: 0;
    }

    .lab-agenda-summary-grid {
        grid-template-columns: 1fr;
    }

    .lab-agenda-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .labs-agenda-link span {
        display: none;
    }

    .labs-agenda-link {
        width: 34px;
        padding: 0;
    }
}

/* =========================================================
   LOGIN V2
   ========================================================= */

body.login-v2-body {
    margin: 0;
    min-height: 100vh;
    background: #f5f6f8;
    color: #141820;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.login-v2-page {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 40px 20px;
    isolation: isolate;
}

.login-v2-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image:
        linear-gradient(rgba(17, 24, 39, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 24, 39, .025) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 82%);
}

.login-v2-decoration {
    position: absolute;
    z-index: -2;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    filter: blur(8px);
    pointer-events: none;
}

.login-v2-decoration--one {
    top: -230px;
    right: -140px;
    background: rgba(24, 119, 242, .06);
}

.login-v2-decoration--two {
    bottom: -260px;
    left: -140px;
    background: rgba(34, 163, 90, .055);
}

.login-v2-card {
    width: min(100%, 460px);
    padding: 34px;
    border: 1px solid #dfe3e8;
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 22px 60px rgba(17, 24, 39, .09);
    backdrop-filter: blur(16px);
}

.login-v2-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.login-v2-logo-wrap {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border: 1px solid #e2e5e9;
    border-radius: 15px;
    background: #f9fafb;
}

.login-v2-logo {
    width: 37px;
    height: 37px;
    object-fit: contain;
}

.login-v2-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #737b87;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
}

.login-v2-header h1 {
    margin: 0;
    color: #101318;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.55px;
}

.login-v2-header p {
    margin: 5px 0 0;
    color: #7a818c;
    font-size: 13px;
}

.login-v2-alert {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 11px 13px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.login-v2-alert--success {
    border-color: #b7e4c8;
    background: #effbf4;
    color: #167448;
}

.login-v2-alert--error {
    border-color: #ffd0cd;
    background: #fff3f2;
    color: #c4322b;
}

.login-v2-form {
    display: grid;
    gap: 18px;
}

.login-v2-field label {
    display: block;
    margin-bottom: 7px;
    color: #20252d;
    font-size: 12px;
    font-weight: 750;
}

.login-v2-input-wrap {
    position: relative;
}

.login-v2-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;
    color: #8c949f;
    font-size: 13px;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-v2-input-wrap input {
    width: 100%;
    min-height: 48px;
    padding: 0 44px 0 42px;
    border: 1px solid #d6dbe1;
    border-radius: 10px;
    outline: 0;
    background: #fff;
    color: #171b22;
    font: inherit;
    font-size: 13px;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.login-v2-input-wrap input::placeholder {
    color: #a0a7b1;
}

.login-v2-input-wrap input:focus {
    border-color: #929aa5;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, .055);
}

.login-v2-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6f7782;
    cursor: pointer;
    transform: translateY(-50%);
}

.login-v2-password-toggle:hover {
    background: #f2f4f6;
    color: #1d232b;
}

.login-v2-password-toggle:focus-visible,
.login-v2-submit:focus-visible {
    outline: 3px solid rgba(24, 119, 242, .18);
    outline-offset: 2px;
}

.login-v2-submit {
    width: 100%;
    min-height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2px;
    border: 1px solid #11161c;
    border-radius: 10px;
    background: #11161c;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.login-v2-submit:hover {
    background: #20262e;
    box-shadow: 0 8px 20px rgba(17, 22, 28, .14);
    transform: translateY(-1px);
}

.login-v2-submit i {
    font-size: 11px;
}

.login-v2-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eceef1;
    color: #8a929d;
    font-size: 10px;
    font-weight: 600;
}

.login-v2-footer i {
    color: #69727d;
}

@media (max-width: 560px) {
    .login-v2-page {
        align-items: start;
        padding: 54px 16px 28px;
    }

    .login-v2-card {
        padding: 26px 20px;
        border-radius: 15px;
    }

    .login-v2-header {
        align-items: flex-start;
    }

    .login-v2-logo-wrap {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .login-v2-logo {
        width: 32px;
        height: 32px;
    }

    .login-v2-header h1 {
        font-size: 22px;
    }
}


/* =========================================================
   ADVERTÊNCIAS - HISTÓRICO INDIVIDUAL DO ALUNO
   ========================================================= */
.warnings-summary-table th:nth-child(1),
.warnings-summary-table td:nth-child(1) { width: 28%; }
.warnings-summary-table th:nth-child(2),
.warnings-summary-table td:nth-child(2) { width: 13%; }
.warnings-summary-table th:nth-child(3),
.warnings-summary-table td:nth-child(3),
.warnings-summary-table th:nth-child(4),
.warnings-summary-table td:nth-child(4) { width: 8%; }
.warnings-summary-table th:nth-child(5),
.warnings-summary-table td:nth-child(5) { width: 10%; }
.warnings-summary-table th:nth-child(6),
.warnings-summary-table td:nth-child(6) { width: 7%; }
.warnings-summary-table th:nth-child(7),
.warnings-summary-table td:nth-child(7) { width: 26%; }

.warnings-summary-actions {
    text-align: right;
    white-space: nowrap;
}

.warnings-summary-actions-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}

.warnings-history-btn {
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid #aeb5bd;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #fff;
    color: #252b33 !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.warnings-history-btn:hover {
    border-color: #252b33;
    background: #f5f6f8;
}

.warning-history-page { max-width: 1560px; margin: 0 auto; }
.warning-history-header {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}
.warning-history-back {
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #59616c !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 650;
}
.warning-history-header h1 {
    max-width: 900px;
    margin: 0;
    color: var(--admin-text);
    font-size: 31px;
    line-height: 1.15;
    font-weight: 760;
}
.warning-history-header p { margin: 7px 0 0; color: var(--admin-muted); font-size: 14px; }
.warning-history-header p span { margin: 0 6px; color: #b0b5bc; }
.warning-history-stats {
    min-width: 410px;
    min-height: 72px;
    padding: 0 14px;
    border: 1px solid var(--admin-border);
    border-radius: 13px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--admin-surface);
    box-shadow: var(--admin-shadow);
}
.warning-history-stats > div {
    position: relative;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.warning-history-stats > div + div::before {
    content: "";
    position: absolute;
    left: 0;
    top: 17px;
    bottom: 17px;
    width: 1px;
    background: var(--admin-border);
}
.warning-history-stats span { color: #6c7480; font-size: 12px; }
.warning-history-stats strong { color: #161b22; font-size: 18px; font-weight: 760; }
.warning-history-card {
    overflow: hidden;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    background: var(--admin-surface);
    box-shadow: var(--admin-shadow);
}
.warning-history-card-head {
    min-height: 86px;
    padding: 19px 20px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.warning-history-card-head h2 { margin: 0; color: #242a32; font-size: 16px; font-weight: 750; }
.warning-history-card-head p { margin: 5px 0 0; color: var(--admin-muted); font-size: 12px; }
.warning-history-table { min-width: 980px; }
.warning-history-table th:nth-child(1), .warning-history-table td:nth-child(1) { width: 13%; }
.warning-history-table th:nth-child(2), .warning-history-table td:nth-child(2) { width: 12%; }
.warning-history-table th:nth-child(3), .warning-history-table td:nth-child(3) { width: 27%; text-align: left; }
.warning-history-table th:nth-child(4), .warning-history-table td:nth-child(4) { width: 10%; text-align: left; }
.warning-history-table th:nth-child(5), .warning-history-table td:nth-child(5) { width: 16%; text-align: left; }
.warning-history-table th:nth-child(6), .warning-history-table td:nth-child(6) { width: 22%; text-align: right; }
.warning-history-date { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.warning-history-type,
.warning-history-status {
    min-height: 27px;
    padding: 5px 9px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.warning-history-type.is-normal { border: 1px solid #d9dde2; background: #f2f4f6; color: #454c56; }
.warning-history-type.is-cellphone { border: 1px solid #cddcf6; background: #eef4ff; color: #315fa7; }
.warning-history-status.is-pending { border: 1px solid #f0d8aa; background: #fff7e6; color: #8a6520; }
.warning-history-status.is-filed { border: 1px solid #d8dde3; background: #f6f7f9; color: #5a626e; }
.warning-history-professor { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.warning-history-action-cell { text-align: right !important; }
.warning-history-open-btn {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #191f27;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #191f27;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.warning-history-open-btn:hover { background: #303741; border-color: #303741; }
.warning-history-footer {
    min-height: 54px;
    padding: 14px 20px;
    border-top: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    color: #777f89;
    font-size: 11px;
}
@media (max-width: 1100px) {
    .warnings-summary-table { min-width: 1080px; }
    .warning-history-header { align-items: stretch; flex-direction: column; }
    .warning-history-stats { width: 100%; min-width: 0; }
}
@media (max-width: 700px) {
    .warning-history-header h1 { font-size: 26px; }
    .warning-history-stats { padding: 0 5px; }
    .warning-history-stats > div { padding: 12px 8px; gap: 6px; flex-direction: column; }
    .warning-history-card-head { padding: 16px; }
}
