/* Formulários de gestão: texto legível sem alterar os títulos ou os indicadores. */
.family-access-overlay .stock-form label,
.family-access-overlay :is(.document-action-form,.communication-action-form,.health-action-form,.meal-action-form,.stock-action-form) label {
  font-size:11px;
  line-height:1.4;
}
.family-access-overlay .stock-form :is(input,select,textarea),
.family-access-overlay :is(.document-action-form,.communication-action-form,.health-action-form,.meal-action-form,.stock-action-form) :is(input,select,textarea) {
  font-size:12px;
}
#dashboardActionOverlay .family-access-modal {
  width:min(580px,calc(100vw - 24px));
  max-height:calc(100dvh - 24px);
  overflow:auto;
}
#dashboardActionOverlay .family-access-modal>header {
  padding:20px 22px;
}
#dashboardActionOverlay .family-modal-avatar {
  width:44px;
  height:44px;
  font-size:16px;
}
#dashboardActionOverlay .family-access-modal header span {
  font-size:11px;
}
#dashboardActionOverlay .family-access-modal h2 {
  font-size:20px;
}
#dashboardActionOverlay .family-access-modal header p {
  font-size:12px;
}
#dashboardActionForm>div {
  display:grid;
  gap:15px;
  padding:20px 22px!important;
}
#dashboardActionForm label {
  font-size:12px!important;
  margin:0;
}
#dashboardActionForm :is(input,select) {
  height:42px;
  margin-top:6px;
  padding:0 12px;
  font-size:13px!important;
}
#dashboardActionForm .stock-form-row {
  gap:12px;
}
#dashboardActionForm footer {
  padding:15px 22px;
}
#dashboardActionForm footer .button {
  font-size:12px;
  min-width:98px;
}
@media(max-width:560px) {
  #dashboardActionForm .stock-form-row {grid-template-columns:1fr;gap:15px}
  #dashboardActionOverlay .family-access-modal>header {padding:17px 16px}
  #dashboardActionForm>div {padding:16px!important}
  #dashboardActionForm footer {padding:12px 16px}
}

/* Contraste mínimo dos textos auxiliares também no tema Light. */
.family-access-modal>header :is(span,p) {color:#69708a}
.family-access-modal>header button,.drawer-close {color:#55586f}
.enrollment-wizard-progress button {color:#656a7e}
.enrollment-wizard-progress i {background:#e2e4ec;color:#51576b}
.enrollment-step-heading p,#databaseEnrollmentScope {color:#666b80}

/*
 * Padrão de formulários do tema Premium.
 * Esta folha é carregada por último para neutralizar fundos claros residuais
 * dos módulos antigos sem alterar o tema Light.
 */
html[data-theme="premium"] {
  --form-canvas:#031a34;
  --form-surface:#082747;
  --form-raised:#103355;
  --form-field:#061e39;
  --form-border:#32618b;
  --form-text:#edf4ff;
  --form-muted:#a6bad6;
  --form-accent:#a58aff;
}

html[data-theme="premium"] :is(
  .training-real-overlay,.class-occurrence-overlay,.school-unit-overlay,
  .school-card-overlay,.tuition-overlay,.wizard-overlay,.user-modal-overlay,
  .drawer-overlay,.support-drawer-overlay,.audit-drawer-overlay
) {
  background:#000c24b8!important;
  backdrop-filter:blur(5px);
}

html[data-theme="premium"] :is(
  .training-real-dialog,.class-occurrence-overlay>section,.school-unit-dialog,
  .school-card-dialog,.tuition-dialog,.recipient-modal,.document-file-modal,
  .user-modal,.master-install-dialog,.client-wizard,.wizard-layout,
  .support-drawer,.audit-drawer
) {
  background:var(--form-surface)!important;
  border-color:var(--form-border)!important;
  color:var(--form-text)!important;
  box-shadow:0 24px 70px #000b22a6!important;
}

html[data-theme="premium"] :is(
  .training-real-dialog,.class-occurrence-overlay>section,.school-unit-dialog,
  .school-card-dialog,.tuition-dialog,.recipient-modal,.document-file-modal,
  .user-modal,.master-install-dialog,.client-wizard,.wizard-layout,
  .support-drawer,.audit-drawer
) :is(header,footer,form,fieldset,.training-real-fields,.user-modal-body,.drawer-content) {
  background:var(--form-surface)!important;
  border-color:var(--form-border)!important;
  color:var(--form-text)!important;
}

html[data-theme="premium"] :is(
  .training-real-dialog,.class-occurrence-overlay>section,.school-unit-dialog,
  .school-card-dialog,.tuition-dialog,.recipient-modal,.document-file-modal,
  .user-modal,.master-install-dialog,.client-wizard,.wizard-layout,
  .support-drawer,.audit-drawer,.family-access-modal,.entity-modal,.report-modal
) :is(h1,h2,h3,h4,legend,strong,dd) {
  color:var(--form-text)!important;
}

html[data-theme="premium"] :is(
  .training-real-dialog,.class-occurrence-overlay>section,.school-unit-dialog,
  .school-card-dialog,.tuition-dialog,.recipient-modal,.document-file-modal,
  .user-modal,.master-install-dialog,.client-wizard,.wizard-layout,
  .support-drawer,.audit-drawer,.family-access-modal,.entity-modal,.report-modal
) :is(p,small,label,dt,.hint,.description) {
  color:var(--form-muted)!important;
}

html[data-theme="premium"] :is(
  .training-real-dialog,.class-occurrence-overlay>section,.school-unit-dialog,
  .school-card-dialog,.tuition-dialog,.recipient-modal,.document-file-modal,
  .user-modal,.master-install-dialog,.client-wizard,.wizard-layout,
  .family-access-modal,.entity-modal,.report-modal
) :is(header,.entity-modal-heading,.report-modal-heading,.enrollment-step-heading)>div>span,
html[data-theme="premium"] :is(.entity-modal-heading>div>span,.report-modal-heading>div>span,.enrollment-step-heading>span) {
  color:#c1b3ff!important;
}

html[data-theme="premium"] :is(
  .training-real-dialog,.class-occurrence-overlay>section,.school-unit-dialog,
  .school-card-dialog,.tuition-dialog,.recipient-modal,.document-file-modal,
  .user-modal,.master-install-dialog,.client-wizard,.wizard-layout,
  .family-access-modal,.entity-modal,.report-modal
) :is(input,select,textarea,[contenteditable="true"]) {
  background:var(--form-field)!important;
  border-color:var(--form-border)!important;
  color:var(--form-text)!important;
}

html[data-theme="premium"] select option {
  background:var(--form-field);
  color:var(--form-text);
}

html[data-theme="premium"] input[type="file"]::file-selector-button {
  border:1px solid var(--form-border);
  border-radius:7px;
  background:var(--form-raised);
  color:var(--form-text);
  padding:7px 9px;
}

html[data-theme="premium"] :is(
  .training-real-dialog,.class-occurrence-overlay>section,.school-unit-dialog,
  .school-card-dialog,.tuition-dialog,.recipient-modal,.document-file-modal,
  .user-modal,.master-install-dialog,.client-wizard,.wizard-layout,
  .family-access-modal,.entity-modal,.report-modal
) :is(input,textarea)::placeholder {
  color:#91a8c6!important;
  opacity:1;
}

html[data-theme="premium"] :is(
  .training-real-dialog,.class-occurrence-overlay>section,.school-unit-dialog,
  .school-card-dialog,.tuition-dialog,.recipient-modal,.document-file-modal,
  .user-modal,.master-install-dialog,.client-wizard,.wizard-layout,
  .family-access-modal,.entity-modal,.report-modal
) :is(.button.secondary,button[type="button"]:not(.primary):not([class*="status"])) {
  background:#09294c!important;
  border-color:var(--form-border)!important;
  color:#d8e8fb!important;
}

html[data-theme="premium"] :is(.drawer-close,header>[aria-label*="Fechar"],header>[data-training-close]) {
  background:#173b5e!important;
  border:1px solid var(--form-border)!important;
  color:#e8f1ff!important;
}

/* Etapas de cadastro: o cabeçalho e os estados pendentes permanecem legíveis. */
html[data-theme="premium"] :is(.enrollment-wizard-modal>header,.enrollment-wizard-modal>footer) {
  background:var(--form-surface)!important;
  border-color:var(--form-border)!important;
}

html[data-theme="premium"] .enrollment-wizard-progress {
  background:#071f3b!important;
  border-color:var(--form-border)!important;
}

html[data-theme="premium"] .enrollment-wizard-progress button {
  color:#aabdd6!important;
}

html[data-theme="premium"] .enrollment-wizard-progress span {
  background:#071f3b!important;
}

html[data-theme="premium"] .enrollment-wizard-progress button:not(:last-child)::after {
  background:#315271!important;
}

html[data-theme="premium"] .enrollment-wizard-progress i,
html[data-theme="premium"] .form-progress i {
  background:#173b5e!important;
  color:#c5d7ed!important;
}

html[data-theme="premium"] :is(.enrollment-wizard-progress,.form-progress) :is(.active,.done) {
  color:#c7baff!important;
}

html[data-theme="premium"] :is(.enrollment-wizard-progress,.form-progress) .active i {
  background:#6d4cec!important;
  color:#fff!important;
}

html[data-theme="premium"] :is(.enrollment-wizard-progress,.form-progress) .done i {
  background:#16483f!important;
  color:#8ff0d4!important;
}

html[data-theme="premium"] .enrollment-wizard-progress .done:not(:last-child)::after {
  background:#287b6c!important;
}

html[data-theme="premium"] .form-progress {
  background:#071f3b!important;
  border:1px solid var(--form-border);
  border-radius:11px;
  margin:15px 0;
  padding:13px 12px!important;
}

html[data-theme="premium"] .form-progress>div {color:#aabdd6!important}
html[data-theme="premium"] .form-progress>em {background:#315271!important}

html[data-theme="premium"] :is(
  .enrollment-wizard-body,.enrollment-document-grid,.enrollment-access-fields,
  .enrollment-review article,.enrollment-doc-preview,.enrollment-doc-preview dl div,
  .database-enrollment-form .profile-file-fields,.enrollment-review-form
) {
  background:var(--form-surface)!important;
  border-color:var(--form-border)!important;
  color:var(--form-text)!important;
}

html[data-theme="premium"] :is(.enrollment-step-heading h3,.enrollment-review strong,.enrollment-access-fields h4) {
  color:var(--form-text)!important;
}

html[data-theme="premium"] :is(.enrollment-step-heading p,.enrollment-review span,.enrollment-review small) {
  color:var(--form-muted)!important;
}

/* Cartões de detalhe, benefícios e gavetas de aluno/profissional. */
html[data-theme="premium"] #aluno-detalhe .student-profile-records article,
html[data-theme="premium"] .indicator-manage-modal .student-profile-records article,
html[data-theme="premium"] :is(.drawer-stats,.guardian-card,.case-summary,.case-motive,.qualification) {
  background:var(--form-raised)!important;
  border-color:var(--form-border)!important;
  color:var(--form-text)!important;
}

html[data-theme="premium"] #aluno-detalhe .student-profile-records strong,
html[data-theme="premium"] :is(.drawer-stats,.guardian-card,.case-summary,.case-motive,.qualification,.drawer-section) strong {
  color:var(--form-text)!important;
}

html[data-theme="premium"] #aluno-detalhe .student-profile-records span,
html[data-theme="premium"] :is(.drawer-stats,.guardian-card,.case-summary,.case-motive,.qualification,.drawer-section) :is(small,span) {
  color:var(--form-muted)!important;
}

html[data-theme="premium"] .guardian-card button {
  background:#173b5e!important;
  color:#d7ccff!important;
  border:1px solid var(--form-border)!important;
}

html[data-theme="premium"] .drawer-alert.success {
  background:#123e3d!important;
  color:#83ead1!important;
}

html[data-theme="premium"] .drawer-alert.info {
  background:#17375e!important;
  color:#b9d5ff!important;
}

/* Superfícies auxiliares encontradas em formulários administrativos. */
html[data-theme="premium"] :is(
  .stock-new-product,.upload-zone,.profile-file-fields,.saved-local-note,
  .permission-check,.invite-security,.form-consent,.communication-confirm,
  .census-declaration,.asset-transfer-summary,.finance-form-row,
  .training-attendance-person,.attendance-modal-note,.school-step-fields,
  .report-schedule-form,.help-support-form,.dashboard-action-fields
) {
  background:var(--form-raised)!important;
  border-color:var(--form-border)!important;
  color:var(--form-text)!important;
}

html[data-theme="premium"] :is(
  .stock-new-product,.upload-zone,.profile-file-fields,.saved-local-note,
  .permission-check,.invite-security,.form-consent,.communication-confirm,
  .census-declaration,.asset-transfer-summary,.finance-form-row,
  .training-attendance-person,.attendance-modal-note,.school-step-fields,
  .report-schedule-form,.help-support-form,.dashboard-action-fields
) :is(h3,h4,strong) {color:var(--form-text)!important}

html[data-theme="premium"] :is(
  .stock-new-product,.upload-zone,.profile-file-fields,.saved-local-note,
  .permission-check,.invite-security,.form-consent,.communication-confirm,
  .census-declaration,.asset-transfer-summary,.finance-form-row,
  .training-attendance-person,.attendance-modal-note,.school-step-fields,
  .report-schedule-form,.help-support-form,.dashboard-action-fields
) :is(p,small,label,span) {color:var(--form-muted)!important}

html[data-theme="premium"] :is(.form-message,.training-real-error,.wizard-error).visible,
html[data-theme="premium"] :is(.form-message,.training-real-error,.wizard-error):not([hidden]) {
  background:#502c43!important;
  color:#ffbfd0!important;
  border-color:#80415d!important;
}

@media(max-width:680px) {
  html[data-theme="premium"] .enrollment-wizard-progress {padding:12px 8px 10px}
  html[data-theme="premium"] .enrollment-wizard-progress span {font-size:10px}
  html[data-theme="premium"] .enrollment-wizard-progress button {gap:4px;min-width:0}
  html[data-theme="premium"] .enrollment-wizard-progress button:not(:last-child)::after {left:calc(50% + 24px);right:calc(-50% + 24px)}
}

/* Exceções de contraste encontradas nas páginas internas de escola e profissional. */
html[data-theme="premium"] :is(.stage-note,.allocation-hero) {
  background:var(--form-raised)!important;
  border:1px solid var(--form-border)!important;
  color:var(--form-text)!important;
}

html[data-theme="premium"] :is(.stage-note,.allocation-hero) strong {
  color:var(--form-text)!important;
}

html[data-theme="premium"] :is(.stage-note,.allocation-hero) :is(span,p) {
  color:var(--form-muted)!important;
}

html[data-theme="premium"] .allocation-hero>i {
  background:#1b4670!important;
  color:#d8d0ff!important;
}

html[data-theme="premium"] .allocation-hero button {
  color:#c6b7ff!important;
}

/* Frequência: superfícies explícitas evitam o painel uniforme no Premium móvel. */
html[data-theme="premium"] #frequencia :is(
  .attendance-date-bar,.attendance-kpis article:not(.featured),
  .attendance-main-grid>.panel,.attendance-lower-grid>.panel,.attendance-school-table
) {
  background:var(--form-surface)!important;
  border-color:var(--form-border)!important;
  color:var(--form-text)!important;
}

html[data-theme="premium"] #frequencia .attendance-kpis article:not(.featured) {
  background:linear-gradient(145deg,#0d3156,#0a294b)!important;
}

html[data-theme="premium"] #frequencia :is(.panel-heading h2,.attendance-kpis strong,.completion-row strong,.missing-school strong,.absence-row strong) {
  color:var(--form-text)!important;
}

html[data-theme="premium"] #frequencia :is(
  .panel-heading p,.attendance-kpis p,.attendance-kpis small,.completion-row small,
  .missing-school small,.absence-row small,.attendance-chart-footer,.attendance-school-row small
) {
  color:var(--form-muted)!important;
}

html[data-theme="premium"] #frequencia .attendance-date-bar>button {
  background:#f7f9ff!important;
  color:#17304f!important;
  border-color:#d7e1ed!important;
}

html[data-theme="premium"] #frequencia .attendance-date-bar label {
  background:#0c2e51!important;
  border-color:var(--form-border)!important;
}

html[data-theme="premium"] #frequencia .attendance-date-bar input {
  background:transparent!important;
  color:var(--form-text)!important;
}

html[data-theme="premium"] #frequencia .attendance-school-row {
  background:#0a294d!important;
  border-color:#244d77!important;
  color:#d7e4f4!important;
}

html[data-theme="premium"] #frequencia .attendance-school-row:hover {
  background:#10365f!important;
}

@media(max-width:700px) {
  html[data-theme="premium"] #frequencia {
    background:#031a34!important;
    color:var(--form-text)!important;
  }

  html[data-theme="premium"] #frequencia :is(
    .attendance-date-bar,.attendance-kpis article,
    .attendance-main-grid>.panel,.attendance-lower-grid>.panel,.attendance-school-table
  ) {
    box-shadow:0 8px 22px rgba(0,8,25,.18)!important;
  }

  html[data-theme="premium"] #frequencia .absence-row>button {
    min-height:34px;
    padding:7px 4px;
    color:#bca9ff!important;
  }

  html[data-theme="premium"] #frequencia .attendance-school-grid {
    background:#071f3b!important;
    scrollbar-color:#5f79a1 #071f3b;
  }
}

/* Estado selecionado da chamada no Premium: contraste semântico e foco visível. */
@layer munieduPremium {
html[data-theme="premium"] body[data-access-role="teacher"] #diario-professor .attendance-choice button.active.present {
  background:#075f50!important;
  border-color:#2ee0b3!important;
  color:#effffb!important;
  box-shadow:inset 0 0 0 1px rgba(46,224,179,.5),0 0 0 2px rgba(46,224,179,.18)!important;
}

html[data-theme="premium"] body[data-access-role="teacher"] #diario-professor .attendance-choice button.active.absent {
  background:#7b2540!important;
  border-color:#ff7897!important;
  color:#fff5f8!important;
  box-shadow:inset 0 0 0 1px rgba(255,120,151,.5),0 0 0 2px rgba(255,120,151,.18)!important;
}

html[data-theme="premium"] body[data-access-role="teacher"] #diario-professor .attendance-choice button.active.late {
  background:#73510f!important;
  border-color:#ffd166!important;
  color:#fff9df!important;
  box-shadow:inset 0 0 0 1px rgba(255,209,102,.5),0 0 0 2px rgba(255,209,102,.18)!important;
}

html[data-theme="premium"] body[data-access-role="teacher"] #diario-professor .attendance-choice button[aria-pressed="true"] {
  font-weight:800!important;
}
}

/* Portal da Escola: Central de notificações legível no tema Premium. */
html[data-theme="premium"] #schoolPortalDashboard .sp-columns>section,
html[data-theme="premium"] #schoolPortalDashboard .sp-columns>aside {
  background:#08294c!important;
  border-color:#315d87!important;
}

html[data-theme="premium"] #schoolPortalDashboard :is(h2,h3,.sp-open strong,.sp-events strong) {
  color:#f4f7ff!important;
}

html[data-theme="premium"] #schoolPortalDashboard :is(p,[data-status],.sp-legend,.sp-events span) {
  color:#b8c9dd!important;
}

html[data-theme="premium"] #schoolPortalDashboard .sp-search input,
html[data-theme="premium"] #schoolPortalDashboard .sp-header-actions select {
  background:#051d38!important;
  border-color:#426b95!important;
  color:#f4f7ff!important;
}

html[data-theme="premium"] #schoolPortalDashboard .sp-search input::placeholder {
  color:#91a8c3!important;
  opacity:1!important;
}

html[data-theme="premium"] #schoolPortalDashboard .sp-filters button {
  background:#0a2c4f!important;
  border-color:#315d87!important;
  color:#dce8f7!important;
}

html[data-theme="premium"] #schoolPortalDashboard .sp-filters button[aria-pressed="true"] {
  background:linear-gradient(135deg,#6249dc,#7d63f0)!important;
  border-color:#9b8cff!important;
  color:#fff!important;
}

html[data-theme="premium"] #schoolPortalDashboard .sp-notification {
  background:#0c3157!important;
  border:1px solid #315d87!important;
  border-left:4px solid #63a5ff!important;
  color:#edf4ff!important;
}

html[data-theme="premium"] #schoolPortalDashboard .sp-notification.urgent {
  background:#40243a!important;
  border-color:#78435a!important;
  border-left-color:#ff758b!important;
}

html[data-theme="premium"] #schoolPortalDashboard .sp-notification.attention {
  background:#3b301d!important;
  border-color:#735b2d!important;
  border-left-color:#ffc268!important;
}

html[data-theme="premium"] #schoolPortalDashboard .sp-row-icon {
  background:#173e68!important;
  color:#8fc4ff!important;
}

html[data-theme="premium"] #schoolPortalDashboard .sp-notification.urgent .sp-row-icon {
  background:#642e48!important;
  color:#ffadbb!important;
}

html[data-theme="premium"] #schoolPortalDashboard .sp-notification.attention .sp-row-icon {
  background:#60461f!important;
  color:#ffd18a!important;
}

html[data-theme="premium"] #schoolPortalDashboard .sp-open span,
html[data-theme="premium"] #schoolPortalDashboard .sp-notification>time {
  color:#c1d1e4!important;
}

html[data-theme="premium"] #schoolPortalDashboard .sp-type {
  background:#173e68!important;
  color:#b9d8ff!important;
}

html[data-theme="premium"] #schoolPortalDashboard .sp-notification.urgent .sp-type {
  background:#642e48!important;
  color:#ffd0d8!important;
}

html[data-theme="premium"] #schoolPortalDashboard .sp-notification.attention .sp-type {
  background:#60461f!important;
  color:#ffe0aa!important;
}

html[data-theme="premium"] #schoolPortalDashboard .sp-quick-actions button {
  background:#061f3c!important;
  border-color:#4a7197!important;
  color:#d8ceff!important;
}

html[data-theme="premium"] #schoolPortalDashboard .sp-quick-actions button:hover,
html[data-theme="premium"] #schoolPortalDashboard .sp-quick-actions button:focus-visible {
  background:#253f78!important;
  border-color:#9b8cff!important;
  color:#fff!important;
}

html[data-theme="premium"] #schoolPortalDashboard .sp-notifications {
  scrollbar-color:#6f5ce2 #071f3c;
}

html[data-theme="premium"] #schoolPortalDashboard .sp-events article {
  border-color:#31506f!important;
}

html[data-theme="premium"] #schoolPortalDashboard .sp-events article>time {
  background:#253f78!important;
  color:#eee9ff!important;
}

html[data-theme="premium"] #schoolPortalDashboard .sp-events article>time span {
  color:#c7b8ff!important;
}

/*
 * Contraste do acesso e da conta no tema Premium.
 * Estes componentes ficam fora das views principais e, por isso, precisam de
 * superfícies próprias para não herdar texto claro sobre cartões brancos.
 */
html[data-theme="premium"] .access-card {
  background:linear-gradient(155deg,#0b2d52 0%,#071f3c 100%)!important;
  background-color:#071f3c!important;
  border-color:#315d87!important;
  color:#edf4ff!important;
  box-shadow:0 28px 78px rgba(2,15,37,.34)!important;
}

html[data-theme="premium"] .access-intro>span {
  color:#bca9ff!important;
}

html[data-theme="premium"] .access-intro h1,
html[data-theme="premium"] .access-role-grid strong,
html[data-theme="premium"] .access-selected strong {
  color:#f4f7ff!important;
}

html[data-theme="premium"] .access-intro p,
html[data-theme="premium"] .access-role-grid small,
html[data-theme="premium"] .access-demo {
  color:#afc1d8!important;
}

html[data-theme="premium"] .access-tenant-badge {
  background:#203c78!important;
  color:#e4dcff!important;
}

html[data-theme="premium"] .access-role-grid>button {
  background:#0c3157!important;
  border-color:#315d87!important;
  color:#edf4ff!important;
}

html[data-theme="premium"] .access-role-grid>button:hover,
html[data-theme="premium"] .access-role-grid>button:focus-visible {
  background:#123b65!important;
  border-color:#7768ef!important;
}

html[data-theme="premium"] :is(.access-role-grid i,.access-selected>i) {
  background:#253f78!important;
  color:#d8ceff!important;
}

html[data-theme="premium"] .access-role-grid b,
html[data-theme="premium"] .access-back {
  color:#c8baff!important;
}

html[data-theme="premium"] .access-selected {
  background:#10365d!important;
  border-color:#426b95!important;
}

html[data-theme="premium"] .access-selected span {
  color:#b8c9dd!important;
}

html[data-theme="premium"] .access-login-form>label {
  color:#dce8f7!important;
}

html[data-theme="premium"] .access-login-form>label>input,
html[data-theme="premium"] .access-login-form>label>span {
  background:#051d38!important;
  border-color:#426b95!important;
  color:#f4f7ff!important;
}

html[data-theme="premium"] .access-login-form input {
  background:transparent!important;
  color:#f4f7ff!important;
  caret-color:#9b8cff!important;
}

html[data-theme="premium"] .access-login-form input::placeholder {
  color:#91a8c3!important;
  opacity:1!important;
}

html[data-theme="premium"] .access-login-form>label>span button {
  color:#c2d2e6!important;
}

html[data-theme="premium"] .access-login-options {
  color:#b7c7dc!important;
}

html[data-theme="premium"] .access-login-options button {
  color:#c7b8ff!important;
}

html[data-theme="premium"] .pwa-install-button {
  background:#173c67!important;
  border-color:#536faf!important;
  color:#eee9ff!important;
}

html[data-theme="premium"] #globalUtilityModal .profile-session-card {
  background:#10365d!important;
  border-color:#426b95!important;
  color:#edf4ff!important;
}

html[data-theme="premium"] #globalUtilityModal .profile-session-card>i {
  background:#253f78!important;
  color:#d8ceff!important;
}

html[data-theme="premium"] #globalUtilityModal .profile-session-card strong {
  color:#f4f7ff!important;
}

html[data-theme="premium"] #globalUtilityModal .profile-session-card small {
  color:#b8c9dd!important;
}

html[data-theme="premium"] #globalUtilityModal .profile-session-card>b {
  background:#123f3e!important;
  color:#75ead0!important;
}

html[data-theme="premium"] #globalUtilityModal .profile-menu-actions button {
  background:#0a2c4f!important;
  border-color:#315d87!important;
  color:#edf4ff!important;
}

html[data-theme="premium"] #globalUtilityModal .profile-menu-actions button:hover,
html[data-theme="premium"] #globalUtilityModal .profile-menu-actions button:focus-visible {
  background:#123b65!important;
  border-color:#7768ef!important;
}

html[data-theme="premium"] #globalUtilityModal .profile-menu-actions i {
  background:#173e68!important;
  color:#d8ceff!important;
}

html[data-theme="premium"] #globalUtilityModal .profile-menu-actions strong {
  color:#f4f7ff!important;
}

html[data-theme="premium"] #globalUtilityModal .profile-menu-actions small {
  color:#b8c9dd!important;
}

html[data-theme="premium"] #globalUtilityModal .profile-menu-actions button>b {
  color:#c7b8ff!important;
}

html[data-theme="premium"] #globalUtilityModal .profile-menu-actions button.danger strong {
  color:#ff9da8!important;
}

/* Estado vazio de afastamentos no prontuário profissional. */
html[data-theme="premium"] #profissional-detalhe .leave-zero {
  background:#0c3157!important;
  border:1px solid #315d87!important;
  color:#edf4ff!important;
}

html[data-theme="premium"] #profissional-detalhe .leave-zero>i {
  background:#123f3e!important;
  color:#75ead0!important;
}

html[data-theme="premium"] #profissional-detalhe .leave-zero strong {
  color:#f4f7ff!important;
}

html[data-theme="premium"] #profissional-detalhe .leave-zero p {
  color:#b8c9dd!important;
}

html[data-theme="premium"] #profissional-detalhe .leave-summary>button {
  color:#c7b8ff!important;
}

@media(max-width:600px) {
  html[data-theme="premium"] .access-card {
    border-radius:18px!important;
    padding:22px 16px!important;
  }

  html[data-theme="premium"] #globalUtilityModal .profile-session-card,
  html[data-theme="premium"] #globalUtilityModal .profile-menu-actions button {
    box-shadow:none!important;
  }
}

/*
 * Estabilidade de pintura no Premium móvel.
 * Alguns navegadores Android/iOS repintavam a barra com desfoque e a sidebar
 * deslocada sobre a página durante a rolagem, deixando o conteúdo azul ou
 * temporariamente invisível. No celular usamos camadas sólidas e escondemos a
 * sidebar fechada também do compositor, além da transformação visual.
 */
@media(max-width:1050px) {
  html[data-theme="premium"] .sidebar:not(.open) {
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
    box-shadow:none!important;
  }

  html[data-theme="premium"] .sidebar.open {
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
  }

  html[data-theme="premium"] .topbar {
    background:#051f3b!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
}

@media(max-width:700px) {
  html[data-theme="premium"] {
    background:#031a34!important;
    scroll-behavior:auto;
  }

  html[data-theme="premium"] body,
  html[data-theme="premium"] .app-shell,
  html[data-theme="premium"] .app-shell>main,
  html[data-theme="premium"] .content,
  html[data-theme="premium"] .app-view.active-view,
  html[data-theme="premium"] .family-view {
    background-color:#031a34!important;
    background-image:none!important;
  }

  html[data-theme="premium"] .app-shell>main {
    position:relative;
    z-index:1;
    isolation:isolate;
    min-height:100dvh;
  }

  html[data-theme="premium"] :is(
    .app-view,.family-view
  ) :is(
    .panel,[class$="-panel"],[class*="-panel "],
    [class$="-card"],[class*="-card "],
    [class$="-summary"]>article,[class$="-metrics"]>article,
    [class$="-kpis"]>article,[class$="-stats"]>article
  ) {
    background-color:#08294c!important;
    background-image:none!important;
  }

  html[data-theme="premium"] :is(
    .topbar,.family-topbar,.family-bottom-nav,.family-theme-controls,
    .family-access-overlay,.indicator-overlay,.utility-overlay,.report-overlay
  ) {
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
}
