/* Tema escuro do portal. NÃO EDITE À MÃO: gerado por scripts/gerar_tema_escuro.py
   a partir de portal.css e tabler-identity.css (cores fixas) mais os ajustes de EXTRA.
   Para atualizar: python3 scripts/gerar_tema_escuro.py > edu/static/portal/portal-dark.css */
:root[data-bs-theme=dark]{--brand-blue:#8d9cff;--brand-blue-dark:#b3bdff;--ink:#e4e9f5;--muted:#a3aec4;--canvas:#0e1320;--line:#2a3349;--blue-light:#1d2747;--orange-light:#33211c;--bs-primary:#5468ff;--bs-link-color:#8d9cff;--bs-link-hover-color:#b3bdff;--bs-body-color:#e4e9f5}
[data-bs-theme=dark] .btn-outline-primary{--bs-btn-border-color:#373e66}
[data-bs-theme=dark] .btn-outline-secondary{--bs-btn-color:#bec6d8;--bs-btn-border-color:#323f5d;--bs-btn-hover-bg:#1c2741;--bs-btn-hover-border-color:#384567;--bs-btn-active-bg:#222e4f}
[data-bs-theme=dark] .btn-light{--bs-btn-bg:#1a253e;--bs-btn-color:#bcc5dc;--bs-btn-hover-bg:#1f2c49}
[data-bs-theme=dark] .skip-link{background:#161c2d}
[data-bs-theme=dark] .sidebar{background:#161c2d!important}
[data-bs-theme=dark] .role-switch>.btn{background:#161c2d;color:#c0cadf;border:1px solid #2f3a58}
[data-bs-theme=dark] .dropdown-menu{box-shadow:0 10px 30px #00000027}
[data-bs-theme=dark] .nav-label{color:#b5bbc8}
[data-bs-theme=dark] .portal-nav-link{color:#b8c0cf}
[data-bs-theme=dark] .portal-nav-link:hover{background:#182038}
[data-bs-theme=dark] .workspace-label{color:#b5bcc9}
[data-bs-theme=dark] .topbar{background:#161c2d}
[data-bs-theme=dark] .topbar:before{background:linear-gradient(to right,var(--brand-blue) 0 14%,var(--brand-orange) 14% 23%,#20274a 23% 100%)}
[data-bs-theme=dark] .topbar-divider{border-left:1px solid #323e5c}
[data-bs-theme=dark] .demo-label{color:#b6bcca}
[data-bs-theme=dark] .avatar{background:#1a1f3b;color:#a4adde}
[data-bs-theme=dark] .breadcrumb-line{color:#b2b9c6}
[data-bs-theme=dark] .breadcrumb-line a{color:#b5bcca}
[data-bs-theme=dark] .panel{background:#161c2d}
[data-bs-theme=dark] .page-footer{color:#b5bccb}
[data-bs-theme=dark] .page-footer a{color:#b6c1d8}
[data-bs-theme=dark] .welcome-hero{background:#161c2d}
[data-bs-theme=dark] .hero-languages{color:#b6bdce}
[data-bs-theme=dark] .offer-state{background:#161c2d}
[data-bs-theme=dark] .campus-card{background:#161c2d}
[data-bs-theme=dark] .campus-card:hover{border-color:#3a426b;box-shadow:0 7px 22px #00000018}
[data-bs-theme=dark] .campus-top .eyebrow{color:#b4bbca}
[data-bs-theme=dark] .admin-intro{background:#161c2d}
[data-bs-theme=dark] .stat-card{background:#161c2d}
[data-bs-theme=dark] .stat-top{color:#b7bfcf}
[data-bs-theme=dark] .stat-foot{color:#b5bcca}
[data-bs-theme=dark] .quick-link:hover{background:#171e35}
[data-bs-theme=dark] .quick-link small{color:#b5bcca}
[data-bs-theme=dark] .bar-label{color:#b7c0cf}
[data-bs-theme=dark] .progress{--bs-progress-bg:#1c2642}
[data-bs-theme=dark] .search-input .icon{color:#aeb6c6}
[data-bs-theme=dark] .form-control,[data-bs-theme=dark] .form-select{border-color:#303d5a;color:#bdc9e0;background-color:#161c2d}
[data-bs-theme=dark] .form-control::placeholder{color:#aeb7c6}
[data-bs-theme=dark] .form-control:focus,[data-bs-theme=dark] .form-select:focus{box-shadow:0 0 0 3px #00000030}
[data-bs-theme=dark] .form-label{color:#bdcae0}
[data-bs-theme=dark] .required{color:#eba699}
[data-bs-theme=dark] .form-text{color:#b4bccb}
[data-bs-theme=dark] .subtle-label{color:#b2bbca}
[data-bs-theme=dark] .form-actions{background:#151531}
[data-bs-theme=dark] .data-table thead{background:#171c35}
[data-bs-theme=dark] .data-table th{color:#b5bccb}
[data-bs-theme=dark] .data-table td{color:#b6c1d4;border-color:#2b3650}
[data-bs-theme=dark] .data-table tbody tr:hover{background:#151531}
[data-bs-theme=dark] .table-link{color:#bfcee9}
[data-bs-theme=dark] .tone-0{background:#1a1f3b;color:#a5afd6}
[data-bs-theme=dark] .tone-1{background:#3f271b;color:#dfb3a7}
[data-bs-theme=dark] .tone-2{background:#1c2b41;color:#acbbd4}
[data-bs-theme=dark] .person-cell small{color:#b2b9c8}
[data-bs-theme=dark] .success{background:#1d4228;color:#bbe9d0}
[data-bs-theme=dark] .warning{background:#47381e;color:#f4dcb3}
[data-bs-theme=dark] .neutral{background:#1c2a42;color:#b4bfd3}
[data-bs-theme=dark] .row-action{border:1px solid #2f3856}
[data-bs-theme=dark] .table-footer{color:#b4bccb}
[data-bs-theme=dark] .code{color:#b2bed1}
[data-bs-theme=dark] .notice{background:#192039;border:1px solid #2c3452;color:#b2c1da}
[data-bs-theme=dark] .record-heading{background:#161c2d}
[data-bs-theme=dark] .record-tabs{border-bottom:1px solid #313f5a}
[data-bs-theme=dark] .record-tabs a{color:#b4bccb}
[data-bs-theme=dark] .detail-grid dt{color:#b3bdcc}
[data-bs-theme=dark] .detail-grid dd{color:#becee8}
[data-bs-theme=dark] .compact-empty>.icon{color:#909dd7}
[data-bs-theme=dark] .unit-banner p{color:#adb7d4}
[data-bs-theme=dark] .instruction-list li{color:#b4bed3}
[data-bs-theme=dark] .import-steps,[data-bs-theme=dark] .stepper{background:#161c2d;color:#b2baca}
[data-bs-theme=dark] .stepper .complete{color:#bbdac6}
[data-bs-theme=dark] .teacher-class{background:#161c2d}
[data-bs-theme=dark] .class-meta{color:#b2bccc}
[data-bs-theme=dark] .date-cell{background:#191f3a}
[data-bs-theme=dark] .date-cell small{color:#abb6ce}
[data-bs-theme=dark] .screen-card{background:#161c2d;color:#bbcbe6}
[data-bs-theme=dark] .screen-card:hover{border-color:#3a426b}
[data-bs-theme=dark] .screen-card small{color:#b0b9c8}
[data-bs-theme=dark] .accordion-button{color:#b7c6e1}
[data-bs-theme=dark] .toast{border:1px solid #303b5a;--bs-toast-bg:#161c2d;box-shadow:0 6px 35px #0000003c}
[data-bs-theme=dark] .modal-content{box-shadow:0 10px 45px #00000060}
[data-bs-theme=dark] .card-header,[data-bs-theme=dark] .card-footer{background:#161c2d}
[data-bs-theme=dark] .content .table{color:#b6c1d4}
[data-bs-theme=dark] .content .table th{color:#b5c0d2}
[data-bs-theme=dark] .content .badge,[data-bs-theme=dark] .content .status{border:1px solid #344052;background:#202937;color:#bcc2cd}
[data-bs-theme=dark] .content .tag-success,[data-bs-theme=dark] .content .badge.text-bg-success,[data-bs-theme=dark] .content .badge.badge-success,[data-bs-theme=dark] .content .status.success{background:#1d4228!important;color:#bde9d2!important;border-color:#325d44}
[data-bs-theme=dark] .content .tag-info,[data-bs-theme=dark] .content .badge.text-bg-primary,[data-bs-theme=dark] .content .badge.text-bg-info,[data-bs-theme=dark] .content .badge.badge-primary,[data-bs-theme=dark] .content .badge.badge-info,[data-bs-theme=dark] .content .status.info{background:#1a213b!important;color:#a7b2e3!important;border-color:#2d3553}
[data-bs-theme=dark] .content .tag-warning,[data-bs-theme=dark] .content .badge.text-bg-warning,[data-bs-theme=dark] .content .badge.badge-warning,[data-bs-theme=dark] .content .status.warning{background:#42351c!important;color:#f1dab0!important;border-color:#645736}
[data-bs-theme=dark] .content .tag-danger,[data-bs-theme=dark] .content .badge.text-bg-danger,[data-bs-theme=dark] .content .badge.badge-danger,[data-bs-theme=dark] .content .status.danger{background:#3a1919!important;color:#e0aaaf!important;border-color:#582f2f}
[data-bs-theme=dark] .content .tag-neutral,[data-bs-theme=dark] .content .badge.text-bg-light,[data-bs-theme=dark] .content .badge.text-bg-secondary,[data-bs-theme=dark] .content .badge.text-bg-dark,[data-bs-theme=dark] .content .badge.badge-light,[data-bs-theme=dark] .content .badge.badge-secondary,[data-bs-theme=dark] .content .badge.badge-dark,[data-bs-theme=dark] .content .status.neutral{background:#202937!important;color:#bcc2cd!important;border-color:#344052}
[data-bs-theme=dark] .portal-form .asteriskField{color:#eba699}
[data-bs-theme=dark] .select2-container .select2-selection--single{border:1px solid #303d5a}
[data-bs-theme=dark] .select2-container--default .select2-selection--single .select2-selection__rendered{color:#bdc9e0}
[data-bs-theme=dark] .select2-container--default .select2-selection--multiple{border:1px solid #303d5a}
[data-bs-theme=dark] .select2-dropdown{border-color:#354062}
[data-bs-theme=dark] .note-editor.note-frame{border-color:#303d5a}
[data-bs-theme=dark] .note-editor .note-toolbar{background:#182038}
[data-bs-theme=dark] .diary-app{background:#161c2d}
[data-bs-theme=dark] .diary-app .diary-table th:first-child,[data-bs-theme=dark] .diary-app .diary-table td:first-child{background:#161c2d}
[data-bs-theme=dark] .inscription-actions{background:#161c2d}
[data-bs-theme=dark] .powered-by{color:#b6c1d4}
:root[data-bs-theme=dark]{--tblr-primary:#5468ff;--tblr-primary-darken:#4357f0;--tblr-secondary:#a3aec4;--tblr-secondary-darken:#c2cadb;--tblr-body-color:#e4e9f5;--tblr-body-bg:#0e1320;--tblr-bg-surface:#161d2e;--tblr-border-color:#2a3349;--tblr-border-color-translucent:#2a3349;--tblr-link-color:#8d9cff;--tblr-link-hover-color:#b3bdff}
[data-bs-theme=dark] .ui-tabler .btn-light{--tblr-btn-bg:#1a253e;--tblr-btn-color:#bcc5dc;--tblr-btn-hover-bg:#1f2c49}
[data-bs-theme=dark] .ui-tabler .form-label{color:#bdc9e0}
[data-bs-theme=dark] .ui-tabler .form-control:focus,[data-bs-theme=dark] .ui-tabler .form-select:focus{box-shadow:0 0 0 3px #0000004e}
[data-bs-theme=dark] .ui-tabler .data-table tbody tr:hover{background:#182038}
[data-bs-theme=dark] .ui-tabler .local-preview-banner{background:#42361c;color:#efdbb5;border-color:#6b5d39}
[data-bs-theme=dark] .ui-tabler .screen-card:hover{background:#182038;border-color:#373e66}
[data-bs-theme=dark] .ui-tabler .sidebar{background:#161c2d!important}
@media print{[data-bs-theme=dark] body{background:#161c2d}}
/* Ajustes manuais (não derivados das cores fixas). */
:root[data-bs-theme=dark]{color-scheme:dark}
[data-bs-theme=dark] .bg-white{background-color:var(--tblr-bg-surface,#161d2e)!important}
[data-bs-theme=dark] .bg-light{background-color:#1b2338!important}
[data-bs-theme=dark] .text-dark{color:var(--ink)!important}
[data-bs-theme=dark] .table{--bs-table-bg:transparent;--tblr-table-bg:transparent;--bs-table-color:var(--ink);color:var(--ink);border-color:var(--line)}
[data-bs-theme=dark] .table-light,[data-bs-theme=dark] .table-light>tr>*{--bs-table-bg:#1b2338;--bs-table-color:var(--ink);background-color:#1b2338;color:var(--ink)}
[data-bs-theme=dark] .table-bordered>:not(caption)>*>*{border-color:var(--line)}
[data-bs-theme=dark] .sidebar-brand img,[data-bs-theme=dark] .mobile-brand img{background:#fff;border-radius:10px;padding:6px 10px}
[data-bs-theme=dark] .powered-by img{filter:invert(1) brightness(1.1)}
[data-bs-theme=dark] .select2-container--default .select2-selection--single,[data-bs-theme=dark] .select2-container--default .select2-selection--multiple,[data-bs-theme=dark] .select2-dropdown{background:#161d2e;border-color:#2a3349;color:var(--ink)}
[data-bs-theme=dark] .select2-container--default .select2-selection--single .select2-selection__rendered{color:var(--ink)}
[data-bs-theme=dark] .select2-container--default .select2-results__option--highlighted[aria-selected],[data-bs-theme=dark] .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{background:#5468ff;color:#fff}
[data-bs-theme=dark] .select2-container--default .select2-results__option[aria-selected=true],[data-bs-theme=dark] .select2-container--default .select2-results__option--selected{background:#1d2747}
[data-bs-theme=dark] .select2-search--dropdown .select2-search__field,[data-bs-theme=dark] .select2-container--default .select2-search--inline .select2-search__field{background:#0e1320;color:var(--ink);border-color:#2a3349}
[data-bs-theme=dark] .note-editor.note-frame{border-color:#2a3349}
[data-bs-theme=dark] .note-editor .note-toolbar{background:#1b2338;border-color:#2a3349}
[data-bs-theme=dark] .note-editor .note-editing-area .note-editable{background:#0e1320;color:var(--ink)}
[data-bs-theme=dark] .note-btn{background:#161d2e;color:var(--ink);border-color:#2a3349}
[data-bs-theme=dark] .note-dropdown-menu,[data-bs-theme=dark] .note-modal-content{background:#161d2e;color:var(--ink)}
[data-bs-theme=dark] .note-statusbar{background:#1b2338}
