/* Correções finais de contraste das telas operacionais, carregadas após o layout. */
html[data-theme="dark"]{
  --bs-body-bg:#0b121a;
  --bs-body-color:#e7edf4;
  --bs-tertiary-bg:#151f2b;
  --bs-secondary-bg:#182431;
  --bs-border-color:#304457;
  --bs-secondary-color:#aebdcb;
}
html[data-theme="dark"] body:not(.pagina-rodadas) .app-card,
html[data-theme="dark"] .pagina-rodadas .app-card,
html[data-theme="dark"] .pagina-rodadas .rodada-panel,
html[data-theme="dark"] .pagina-rodadas .rodada-participante,
html[data-theme="dark"] .pagina-rodadas .lista-rodada-item,
html[data-theme="dark"] .pagina-rodadas .rodada-destinatario,
html[data-theme="dark"] .pagina-rodadas .rodada-lote-preview,
html[data-theme="dark"] .pagina-rodadas .rodada-lote-log{
  background:#111c27!important;
  color:#e7edf4!important;
  border-color:#304457!important;
}
html[data-theme="dark"] body:not(.pagina-rodadas) .card-header,
html[data-theme="dark"] .pagina-rodadas .card-header,
html[data-theme="dark"] .pagina-rodadas .rodada-panel-header,
html[data-theme="dark"] .pagina-rodadas .rodada-panel-footer{
  background:#142230!important;
  color:#e7edf4!important;
  border-color:#304457!important;
}
html[data-theme="dark"] .pagina-rodadas .rodada-participante.atual{
  background:#173757!important;
  border-color:#62a9ff!important;
}
html[data-theme="dark"] .pagina-rodadas .rodada-participante.inativo{opacity:.72}
html[data-theme="dark"] .pagina-rodadas .rodada-participante-main,
html[data-theme="dark"] .pagina-rodadas .rodada-editar,
html[data-theme="dark"] .pagina-rodadas .rodada-email,
html[data-theme="dark"] .pagina-rodadas .rodada-status{color:#dce8f3!important}
html[data-theme="dark"] body:not(.pagina-rodadas) .input-group-text,
html[data-theme="dark"] .pagina-rodadas .input-group-text{
  background:#1a2a39!important;
  color:#cfe0ee!important;
  border-color:#3a5065!important;
}
html[data-theme="dark"] body:not(.pagina-rodadas) .form-control,
html[data-theme="dark"] body:not(.pagina-rodadas) .form-select,
html[data-theme="dark"] .pagina-rodadas .form-control,
html[data-theme="dark"] .pagina-rodadas .form-select{
  background-color:#0e1822!important;
  color:#f2f7fb!important;
  border-color:#3a5065!important;
}
html[data-theme="dark"] body:not(.pagina-rodadas) .form-control::placeholder,
html[data-theme="dark"] .pagina-rodadas .form-control::placeholder{color:#8194a7!important;opacity:1}
html[data-theme="dark"] body:not(.pagina-rodadas) .historico-table thead th,
html[data-theme="dark"] .pagina-rodadas .historico-table thead th{background:#162635!important;color:#d6e5f1!important}
html[data-theme="dark"] body:not(.pagina-rodadas) .historico-table tbody td,
html[data-theme="dark"] .pagina-rodadas .historico-table tbody td{background:#101c27!important;color:#e5edf5!important}
html[data-theme="dark"] body:not(.pagina-rodadas) .historico-table tbody tr:nth-child(even) td,
html[data-theme="dark"] .pagina-rodadas .historico-table tbody tr:nth-child(even) td{background:#162634!important}
html[data-theme="dark"] body:not(.pagina-rodadas) .historico-table tbody tr:hover td,
html[data-theme="dark"] .pagina-rodadas .historico-table tbody tr:hover td{background:#20415d!important;color:#fff!important}

.hc-rodada-bloqueio{
  position:fixed;
  inset:calc(var(--hc-header-height,72px) + var(--hc-session-height,44px)) 0 var(--hc-footer-height,32px) 0;
  z-index:1021;
  display:grid;
  place-items:center;
  padding:1rem;
  background:rgba(240,245,250,.90);
  backdrop-filter:blur(3px);
}
.hc-rodada-bloqueio-card{width:min(92vw,560px);padding:2rem;text-align:center;border:1px solid #b8c9da;border-radius:1.2rem;background:#fff;box-shadow:0 1rem 3rem rgba(15,23,42,.22)}
.hc-rodada-bloqueio-icone{display:grid;place-items:center;width:70px;height:70px;margin:0 auto 1rem;border-radius:50%;background:#e8f2ff;color:#0d6efd;font-size:2rem}
.hc-rodada-bloqueio-acoes{display:flex;justify-content:center;gap:.7rem;flex-wrap:wrap;margin-top:1.25rem}
html[data-theme="dark"] .hc-rodada-bloqueio{background:rgba(5,10,15,.91)}
html[data-theme="dark"] .hc-rodada-bloqueio-card{background:#121f2b;color:#edf5fb;border-color:#3b5368}
html[data-theme="dark"] .hc-rodada-bloqueio-icone{background:#173757;color:#75b5ff}
body.hc-documento-embed .hc-rodada-bloqueio{display:none!important}
@media(max-width:575.98px){.hc-rodada-bloqueio-card{padding:1.35rem}.hc-rodada-bloqueio-acoes{display:grid}.hc-rodada-bloqueio-acoes .btn{width:100%}}
