/* Componentes das telas - paleta alinhada ao Design System gov.br */
body {
    background: var(--govbr-bg, #f8f8f8);
    color: var(--govbr-text, #1a2332);
    font-family: inherit;
    font-size: 15px;
}

.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #1a2332 0%, #151d2b 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-inner {
    padding: 1.25rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-brand {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.sidebar-brand-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, #1351B4, #0C326F);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.sidebar-brand-title {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.3;
}

.sidebar-brand-subtitle {
    margin: 0;
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.35;
}

.sidebar-user-profile {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.65rem;
}

.sidebar-user-avatar {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #1351B4, #0C326F);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.sidebar-user-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sidebar-user-name {
    color: #f8fafc;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    color: #64748b;
    font-size: 0.7rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-section-label {
    margin: 0 0 0.5rem 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.55rem;
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sidebar-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.06);
}

.sidebar-nav-link.active {
    background: rgba(37, 99, 235, 0.18);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: inset 3px 0 0 #1351B4;
}

.sidebar-nav-link.active .sidebar-nav-icon {
    color: #60a5fa;
}

.sidebar-nav-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    color: inherit;
    opacity: 0.85;
}

.sidebar-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border: none;
    border-radius: 0.55rem;
    background: transparent;
    color: #94a3b8;
    font-size: 0.86rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.sidebar-logout-btn:hover .sidebar-nav-icon {
    color: #f87171;
}

.sidebar-logout-btn:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

.sidebar-version {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0.85rem 0 0;
    padding: 0 0.75rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #64748b;
}

.sidebar-version-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page-header {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.professor-search-field {
    position: relative;
}

.professor-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.professor-search-input {
    padding-left: 2.35rem;
    border-radius: 0.55rem;
    border-color: #e2e8f0;
}

.professor-search-input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.card {
    border: 1px solid var(--govbr-border, #d7e2ef);
    border-radius: 0.65rem;
    box-shadow: 0 1px 2px rgba(7, 29, 65, 0.04);
}

.metric-card {
    border-left: 4px solid #1351B4;
}

.card-header {
    font-size: 0.95rem;
}

.card-header.bg-white {
    background: linear-gradient(180deg, #f5f9fe 0%, #ffffff 100%) !important;
    border-bottom-color: #e4edf7;
}

.table {
    font-size: 0.92rem;
}

.table th {
    font-size: 0.78rem;
    white-space: nowrap;
}

.table td {
    line-height: 1.35;
}

.table tbody tr.collapse td {
    border-top: 0;
}

.accordion-button {
    background: #fff;
    font-size: 0.92rem;
}

.accordion-button:not(.collapsed) {
    background: #eef5ff;
    color: #1f2d3d;
    box-shadow: none;
}

.accordion-item {
    border-color: #d9e2ef !important;
}

.accordion-body {
    border-top: 1px solid #dee2e6;
}

.table-sm th,
.table-sm td {
    padding-top: 0.52rem;
    padding-bottom: 0.52rem;
}

.form-label {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.form-control,
.form-select,
.btn {
    font-size: 0.9rem;
}

.alert {
    font-size: 0.9rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.4rem;
}

.calendar-cell {
    min-height: 78px;
    border: 1px solid #dee2e6;
    border-radius: 0.4rem;
    padding: 0.35rem;
    background: #fff;
    font-size: 0.85rem;
}

.calendar-cell.out-month {
    background: #f1f3f5;
    color: #6c757d;
}

.calendar-cell.no-data {
    border-color: #ced4da;
}

.calendar-cell .day-number {
    font-weight: 700;
    font-size: 0.78rem;
}

.calendar-cell .status {
    margin-top: 0.35rem;
    font-size: 0.72rem;
}

/* Dashboard (diários) */
.dashboard-hero {
    border: 1px solid #d5e3f4;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 72%);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.dashboard-hero-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, #1351B4, #0C326F);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.dashboard-hero-text {
    font-size: 0.9rem;
    line-height: 1.45;
    max-width: 40rem;
}

.dashboard-filter-action-label {
    visibility: hidden;
    user-select: none;
}

.dashboard-filters .form-control,
.dashboard-filters .form-select,
.dashboard-filters .dashboard-filter-btn {
    height: calc(1.5em + 0.75rem + 2px);
}

.dashboard-filters-grid {
    display: grid;
    grid-template-columns: minmax(7.5rem, 9rem) minmax(16rem, 1.1fr) minmax(16rem, 1.4fr);
    gap: 0.85rem 1rem;
    align-items: start;
}

.dashboard-filters-grid-sync {
    grid-template-columns: minmax(7.5rem, 9rem) minmax(16rem, 1fr);
}

.dashboard-filter-hint {
    display: block;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.35;
}

.dashboard-filters-secondary {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.85rem 1rem;
    margin-top: 0.95rem;
    padding-top: 0.9rem;
    border-top: 1px solid #e2e8f0;
}

.dashboard-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dashboard-filter-btn {
    font-weight: 600;
    white-space: nowrap;
    padding: 0 1rem;
}

.dashboard-filter-clear {
    font-weight: 600;
    white-space: nowrap;
}

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

    .dashboard-filter-course,
    .dashboard-filter-professor {
        grid-column: 1 / -1;
    }
}

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

.dashboard-alert {
    border-radius: 0.55rem;
    font-size: 0.88rem;
}

.dashboard-access-alert {
    align-items: center;
}

.dashboard-access-alert-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    flex: 1;
}

.dashboard-access-alert-body p {
    margin: 0;
    max-width: 42rem;
}

.dashboard-metrics-card,
.dashboard-professors-card {
    border: 1px solid #d7e2ef;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.dashboard-metrics-card {
    border-top: 3px solid #1351B4;
}

.dashboard-professors-card {
    border-top: 3px solid #0C326F;
}

.dashboard-metric {
    background: #f3f7fd;
    border: 1px solid #d5e3f5;
    border-left: 4px solid #1351B4;
    border-radius: 0.55rem;
    padding: 0.85rem 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dashboard-metric-success {
    border-left-color: #168821;
    background: #f2faf3;
    border-color: #cfe8d2;
}

.dashboard-metric-danger {
    border-left-color: #E52207;
    background: #fdf6f5;
    border-color: #f3d5d0;
}

.dashboard-metric-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
}

.dashboard-metric-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0C326F;
    line-height: 1.2;
}

.dashboard-metric-success .dashboard-metric-value {
    color: #15803d;
}

.dashboard-metric-danger .dashboard-metric-value {
    color: #b91c1c;
}

.dashboard-empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
}

.dashboard-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-accordion .accordion-item {
    border: 1px solid #dbe6f2 !important;
    border-radius: 0.55rem !important;
    overflow: hidden;
    background: #fff;
}

.dashboard-accordion .accordion-button {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    box-shadow: none;
    background: #fbfdff;
}

.dashboard-accordion .accordion-button:hover {
    background: #f3f7fd;
}

.dashboard-accordion .accordion-button:not(.collapsed) {
    background: #eaf2fb;
    color: #1e293b;
}

.dashboard-accordion .accordion-button::after {
    margin-left: 0.5rem;
}

.professor-row-name {
    font-weight: 600;
    color: #1e293b;
    text-align: left;
    flex: 1 1 auto;
    min-width: 0;
}

.professor-row-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-right: 0.25rem;
}

.professor-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35em 0.65em;
    border-radius: 2rem;
}

.professor-badge-primary {
    background: #dbeafe;
    color: #0C326F;
}

.professor-badge-success {
    background: #dcfce7;
    color: #166534;
}

.professor-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.professor-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.pendencia-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    background: #f4f8fd;
    border: 1px solid #d7e2ef;
    border-radius: 0.55rem;
    max-width: 36rem;
}

.pendencia-legend-title {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.pendencia-legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
}

.pendencia-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.pendencia-legend-text {
    font-size: 0.8rem;
    color: #475569;
    font-weight: 500;
}

.dashboard-accordion .accordion-body {
    background: #f4f8fd;
    border-top: 1px solid #dbe6f2;
    padding: 0;
}

.dashboard-detail-table {
    min-width: 56rem;
}

.dashboard-detail-table thead th {
    background: #eef4fb;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #dbe6f2;
}

.dashboard-detail-table tbody td {
    padding: 0.65rem 1rem;
    background: #fff;
    font-size: 0.88rem;
}

.dashboard-status-ok {
    background: #dcfce7;
    color: #166534;
    font-weight: 600;
}

.dashboard-status-pending {
    background: #fee2e2;
    color: #991b1b;
    font-weight: 600;
}

.dashboard-status-cell {
    white-space: nowrap;
    width: 1%;
    vertical-align: middle;
}

.dashboard-status-badge {
    display: inline-block;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .dashboard-accordion .accordion-button {
        flex-direction: column;
        align-items: flex-start;
    }

    .professor-row-badges {
        width: 100%;
    }
}

/* Sincronização */
.sync-hero {
    border: 1px solid #d5e3f4;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 72%);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.sync-hero-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, #1351B4, #0C326F);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.sync-hero-text {
    font-size: 0.9rem;
    line-height: 1.45;
    max-width: 38rem;
}

.dashboard-filters .sync-submit-btn {
    height: calc(1.5em + 0.75rem + 2px);
}

.sync-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: none;
}

.sync-submit-btn:hover {
    box-shadow: none;
}

.sync-submit-btn:disabled {
    opacity: 0.85;
    cursor: wait;
}

body.sync-loading-lock {
    overflow: hidden;
}

.sync-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.sync-loading-box {
    width: min(100%, 360px);
    background: #fff;
    border-radius: 0.85rem;
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
}

.sync-spinner {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 1rem;
    border: 3px solid #dbeafe;
    border-top-color: #1351B4;
    border-radius: 50%;
    animation: sync-spin 0.8s linear infinite;
}

.sync-loading-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.sync-loading-text {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.45;
}

@keyframes sync-spin {
    to {
        transform: rotate(360deg);
    }
}

.sync-alert {
    border-radius: 0.55rem;
    font-size: 0.88rem;
}

.sync-history-card {
    overflow: hidden;
}

.sync-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.72rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.sync-table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

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

.sync-date {
    display: block;
    font-weight: 600;
    color: #1e293b;
}

.sync-time {
    display: block;
    font-size: 0.78rem;
}

.sync-period-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    background: #eff6ff;
    color: #0C326F;
    border-radius: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.sync-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35em 0.65em;
    border-radius: 2rem;
}

.sync-badge-success {
    background: #dcfce7;
    color: #166534;
}

.sync-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.sync-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.sync-message {
    max-width: 280px;
    font-size: 0.85rem;
    color: #475569;
}

.sync-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.sync-empty-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #eff6ff;
    color: #1351B4;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ajuda */
.help-hero {
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.help-hero-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, #1351B4, #0C326F);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.help-hero-text {
    font-size: 0.9rem;
    line-height: 1.45;
    max-width: 42rem;
}

.help-section-card {
    border: 1px solid #d7e2ef;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.help-term {
    height: 100%;
    padding: 0.85rem 1rem;
    background: #f4f8fd;
    border: 1px solid #d7e2ef;
    border-left: 3px solid #1351B4;
    border-radius: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.help-term-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1e293b;
}

.help-term-text {
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.4;
}

.help-formula {
    padding: 1rem 1.15rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.65rem;
}

.help-formula-main {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #0C326F;
    letter-spacing: 0.01em;
}

.help-legend {
    max-width: none;
}

.help-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #e2e8f0;
}

.help-table tbody td {
    vertical-align: middle;
    font-size: 0.9rem;
}

.help-example-calc {
    padding: 1rem 1.15rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
}

.help-mono {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.95rem;
    color: #1e293b;
}

.help-notes {
    padding-left: 1.15rem;
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.55;
}

.help-notes li + li {
    margin-top: 0.45rem;
}

.help-legend-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1351B4;
    text-decoration: none;
}

.help-legend-link:hover {
    text-decoration: underline;
}

/* Relatórios */
.report-hero {
    border: 1px solid #d5e3f4;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 72%);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.report-hero-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, #1351B4, #0C326F);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.report-hero-text {
    font-size: 0.9rem;
    line-height: 1.45;
    max-width: 42rem;
}

.report-filter-action-label {
    visibility: hidden;
    user-select: none;
}

.report-filters .form-control,
.report-filters .form-select,
.report-filters .report-filter-btn {
    height: calc(1.5em + 0.75rem + 2px);
}

.report-filter-btn {
    font-weight: 600;
    white-space: nowrap;
    padding: 0 1rem;
}

.report-chart-card {
    border: 1px solid #d7e2ef;
    border-top: 3px solid #1351B4;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.report-chart-wrap {
    position: relative;
    height: 360px;
}

.report-chart-wrap-wide {
    height: 420px;
}

.report-weekly-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.report-weekly-point {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid #d7e2ef;
    border-radius: 0.75rem;
    background: #f4f8fd;
}

.report-weekly-point-current {
    border-color: #1351B4;
    background: #f0f4fb;
    box-shadow: inset 0 0 0 1px rgba(19, 81, 180, 0.12);
}

.report-weekly-point-date {
    font-size: 0.78rem;
    font-weight: 700;
    color: #071D41;
}

.report-weekly-point-main {
    font-size: 0.92rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.report-weekly-point-success {
    color: #0A5713;
}

.report-weekly-point-danger {
    color: #A81905;
    margin-top: 0.45rem;
}

.report-weekly-point-detail,
.report-weekly-point-delta {
    font-size: 0.78rem;
    color: #475569;
}

.report-weekly-point-delta {
    font-weight: 600;
    color: #1351B4;
}

.report-chart-wrap-discipline {
    min-height: 520px;
    height: 520px;
}

.report-chart-body {
    padding: 1rem 1.25rem 0.75rem;
}

.report-chart-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.78rem;
    color: #475569;
}

.report-chart-footer-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1.25rem;
}

.report-chart-footer-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.report-chart-footer-ranges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    margin-left: auto;
}

.report-chart-footer-ranges-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.report-chart-footer-range {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.report-chart-footer .professor-badge {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
}

.report-chart-footer .report-dot {
    margin-top: 0;
}

@media (max-width: 767.98px) {
    .report-chart-footer-ranges {
        margin-left: 0;
    }
}

.report-legend-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: #475569;
    font-size: 0.9rem;
}

.report-legend-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.report-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.report-dot-danger {
    background: #E52207;
}

.report-dot-success {
    background: #168821;
}

.report-empty-state {
    text-align: center;
    padding: 2rem 1rem;
}

@media (min-width: 992px) {
    .sidebar {
        position: sticky;
        top: 0;
        align-self: flex-start;
        max-height: 100vh;
        overflow-y: auto;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        min-height: auto;
    }
}

/* Catálogo de cursos */
.course-hero-sync {
    white-space: nowrap;
    font-weight: 600;
}

.course-catalog-card {
    border: 1px solid #d7e2ef;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.course-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.course-chip {
    border: 1px solid #d5e0ee;
    background: #fff;
    color: #475569;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.course-chip:hover {
    border-color: #93c5fd;
    color: #0C326F;
    background: #f7fbff;
}

.course-chip.active {
    background: #e8f1fc;
    border-color: #1351B4;
    color: #0C326F;
}

.course-accordion-btn {
    align-items: flex-start !important;
}

.course-accordion-main {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1 1 auto;
    text-align: left;
}

.course-accordion-title {
        font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
}

.course-accordion-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.course-accordion-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-right: 0.35rem;
}

.course-matrix-body {
    padding: 1rem 1.1rem 1.15rem !important;
    background: #f8fafc;
}

.course-matrix-empty {
    margin: 0;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 0.5rem;
    color: #64748b;
    font-size: 0.88rem;
}

.course-matrix-period + .course-matrix-period {
    margin-top: 1.15rem;
}

.course-matrix-period-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #334155;
    margin: 0 0 0.5rem;
}

.course-matrix-period .dashboard-detail-table {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .course-hero-sync {
        width: 100%;
    }

    .course-accordion-badges {
        width: 100%;
    }
}

.profile-card .card-body {
    padding: 1.35rem 1.4rem 1.45rem;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.profile-avatar {
    flex: 0 0 4rem;
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #e8f2ff;
    color: #1351B4;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.profile-identity-text {
    min-width: 0;
}

.profile-name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0C326F;
    line-height: 1.25;
}

.profile-email {
    margin: 0.2rem 0 0.55rem;
    color: #64748b;
    font-size: 0.9rem;
    word-break: break-all;
}

.profile-identity-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.profile-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    gap: 0.75rem;
}

.profile-fact {
    background: #f3f7fd;
    border: 1px solid #d5e3f5;
    border-radius: 0.65rem;
    padding: 0.85rem 1rem;
    min-width: 0;
}

.profile-fact-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    margin-bottom: 0.3rem;
}

.profile-fact-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0C326F;
    line-height: 1.35;
}

.profile-fact-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: #64748b;
}

.profile-wait {
    margin-top: 1.15rem;
    padding: 0.95rem 1rem;
    background: #e8f2ff;
    border-left: 4px solid #1351B4;
    border-radius: 0.55rem;
    color: #0c326f;
    font-size: 0.95rem;
    line-height: 1.45;
}

.profile-wait-danger {
    background: #fdece9;
    border-left-color: #E52207;
    color: #841404;
}

.settings-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    cursor: pointer;
}

.settings-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-toggle-ui {
    flex: 0 0 2.6rem;
    width: 2.6rem;
    height: 1.45rem;
    margin-top: 0.15rem;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
    transition: background 0.15s ease;
}

.settings-toggle-ui::after {
    content: "";
    position: absolute;
    top: 0.15rem;
    left: 0.15rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
    transition: transform 0.15s ease;
}

.settings-toggle input:checked + .settings-toggle-ui {
    background: #1351B4;
}

.settings-toggle input:checked + .settings-toggle-ui::after {
    transform: translateX(1.15rem);
}

.settings-toggle input:focus-visible + .settings-toggle-ui {
    outline: 2px solid #1351B4;
    outline-offset: 3px;
}

.users-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.users-metric {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    background: #f3f7fd;
    border: 1px solid #d5e3f5;
    border-left: 4px solid #1351B4;
    border-radius: 0.55rem;
    text-decoration: none;
    color: inherit;
}

.users-metric:hover,
.users-metric.is-active {
    background: #e8f2ff;
    border-color: #1351B4;
}

.users-metric-warning {
    border-left-color: #d97706;
}

.users-metric-success {
    border-left-color: #168821;
}

.users-metric-danger {
    border-left-color: #E52207;
}

.users-queue {
    list-style: none;
    margin: 0;
    padding: 0;
}

.users-queue-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #e8eef6;
}

.users-queue-item:last-child {
    border-bottom: 0;
}

.users-queue-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.users-queue-text strong {
    color: #0C326F;
}

.users-queue-text span,
.users-email {
    display: block;
    color: #64748b;
    font-size: 0.85rem;
    word-break: break-all;
}

.users-avatar {
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.82rem;
    font-weight: 700;
}

.users-avatar-sm {
    flex-basis: 2.15rem;
    width: 2.15rem;
    height: 2.15rem;
    background: #e8f2ff;
    color: #1351B4;
    font-size: 0.72rem;
}

.users-person {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.users-you {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: #e8f2ff;
    color: #1351B4;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    vertical-align: middle;
}

.users-table thead th {
    background: #f3f7fd;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom-color: #d5e3f5;
}

.users-table tbody td {
    vertical-align: middle;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.users-row-self {
    background: #f8fbff;
}

.users-self-hint {
    color: #94a3b8;
    font-size: 0.8rem;
}

.users-row-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.4rem;
}

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

.users-delete-modal {
    border: 1px solid var(--govbr-border, #d7e2ef);
    border-radius: 0.85rem;
    overflow: hidden;
}

.users-delete-modal .modal-header {
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.15rem 1.25rem 0.9rem;
    border-bottom: 1px solid #e8eef6;
}

.users-delete-modal .modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0C326F;
}

.users-delete-modal .modal-body {
    padding: 1rem 1.25rem 0.35rem;
    color: #334155;
}

.users-delete-modal .modal-body p {
    margin: 0 0 0.65rem;
}

.users-delete-modal-user {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.85rem;
    background: #f8fbff;
    border: 1px solid #e8eef6;
    border-radius: 0.65rem;
}

.users-delete-modal-user strong {
    color: #0C326F;
}

.users-delete-modal-user span {
    color: #64748b;
    font-size: 0.85rem;
    word-break: break-all;
}

.users-delete-modal .modal-footer {
    padding: 0.9rem 1.25rem 1.15rem;
    border-top: 0;
    gap: 0.5rem;
}

.users-delete-icon {
    flex: 0 0 2.4rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.65rem;
    display: grid;
    place-items: center;
    background: #fdecea;
    color: var(--govbr-red, #E52207);
}

.course-autocomplete {
    position: relative;
}

.course-autocomplete-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
}

.course-autocomplete-selected:empty {
    display: none;
}

.course-autocomplete-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    padding: 0.3rem 0.45rem 0.3rem 0.65rem;
    border-radius: 999px;
    background: #e8f2ff;
    color: #0C326F;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-autocomplete-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-autocomplete-remove {
    border: 0;
    background: transparent;
    color: #1351B4;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    padding: 0;
}

.course-autocomplete-remove:hover {
    background: #d5e6fb;
}

.course-autocomplete-control {
    position: relative;
}

.course-autocomplete-control i {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.85rem;
    pointer-events: none;
}

.course-autocomplete-control .form-control {
    padding-left: 2.2rem;
}

.course-autocomplete-list {
    list-style: none;
    margin: 0.3rem 0 0;
    padding: 0.3rem 0;
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    max-height: 16rem;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d5e3f5;
    border-radius: 0.55rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.course-autocomplete-option,
.course-autocomplete-empty {
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
}

.course-autocomplete-empty {
    color: #64748b;
}

.course-autocomplete-option {
    cursor: pointer;
    color: #0C326F;
}

.course-autocomplete-option.is-active,
.course-autocomplete-option:hover {
    background: #e8f2ff;
}

@media (max-width: 767.98px) {
    .users-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .users-queue-item {
        flex-wrap: wrap;
    }
}

@media (max-width: 767.98px) {
    .profile-facts {
        grid-template-columns: 1fr;
    }
}
