@font-face {
  font-family: 'Catamaran';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/catamaran-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Catamaran';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/catamaran-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Catamaran';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/catamaran-latin-700-normal.woff2') format('woff2');
}

:root {
  --bo-brand-primary: #6DB8E2;
  --bo-brand-ink: #1A6496;
  --bo-brand-accent: #EDCA54;
  --bo-brand-accent-soft: #FDF6DC;
  --bo-brand-primary-hover: #4FA6D6;
  --bo-brand-primary-soft: #EAF5FC;
  --bo-brand-primary-muted: #DCEEF9;
  --bo-brand-border: #D7E8F3;

  --bo-text-strong: #0C1014;
  --bo-text-primary: #1B1B22;
  --bo-text-body: #46464F;
  --bo-text-secondary: #5E5D67;
  --bo-text-muted: #77767F;
  --bo-text-disabled: #91909A;
  --bo-text-on-brand: #0C1014;

  --bo-surface-page: #F3F3F6;
  --bo-surface-card: #FFFFFF;
  --bo-surface-sidebar: #F7F7F9;
  --bo-surface-sunken: #F7F7F7;
  --bo-surface-header: #F5F5F5;
  --bo-surface-subtle: #FAFAFC;
  --bo-surface-hover: #F6F6FA;
  --bo-surface-hover-nav: #EEEEF2;

  --bo-border-strong: #ACAAB4;
  --bo-border-medium: #C7C5D0;
  --bo-border-subtle: #E8F1F7;
  --bo-border-faint: #F3F3F3;
  --bo-border-disabled: #DFDEE6;

  --bo-success-fg: #389E0D;
  --bo-success-bg: #F6FFED;
  --bo-success-border: #B7EB8F;

  --bo-warning-fg: #D48806;
  --bo-warning-bg: #FFFBE6;
  --bo-warning-border: #FFE58F;

  --bo-danger-fg: #CF1322;
  --bo-danger-bg: #FFF1F0;
  --bo-danger-bg-soft: #FFFBFA;
  --bo-danger-border: #FFA39E;

  --bo-overlay-modal: rgba(12, 16, 20, 0.5);
  --bo-font-family: 'Catamaran', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --bo-radius-tag: 2px;
  --bo-radius-check: 4px;
  --bo-radius-xs: 6px;
  --bo-radius-sm: 8px;
  --bo-radius-md: 12px;
  --bo-radius-lg: 16px;
  --bo-radius-pill: 100px;

  --bo-control-height: 40px;
  --bo-control-height-lg: 48px;
  --bo-control-height-sm: 32px;
  --bo-touch-target: 44px;
  --bo-sidebar-width: 231px;
  --bo-row-min-height: 54px;

  --bo-shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
  --bo-shadow-dropdown: 0 4px 16px rgba(0, 0, 0, 0.12);
  --bo-shadow-modal: 0 4px 16px rgba(0, 0, 0, 0.16);

  --bo-ring-input: inset 0 0 0 1px var(--bo-border-strong);
  --bo-ring-input-focus: inset 0 0 0 2px var(--bo-brand-ink);
  --bo-ring-card: inset 0 0 0 1px var(--bo-brand-border);
  --bo-ring-button: inset 0 0 0 1px var(--bo-brand-ink);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--bo-font-family);
  font-size: 14px;
  line-height: 1.5;
  color: var(--bo-text-primary);
  background: var(--bo-surface-page);
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--bo-brand-ink);
  outline-offset: -2px;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

p,
dd,
td,
li {
  overflow-wrap: anywhere;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 14px;
}

.icone {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.icone svg {
  width: 100%;
  height: 100%;
}
.icone-sm {
  width: 16px;
  height: 16px;
}

.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: var(--bo-surface-page);
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--bo-surface-card);
  border-radius: var(--bo-radius-lg);
  box-shadow: var(--bo-shadow-card);
  border: 1px solid var(--bo-brand-border);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.login-brand img {
  height: 28px;
  width: auto;
}

.login-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--bo-text-primary);
}

.casca {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.barra {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bo-surface-sidebar);
  border-bottom: 1px solid var(--bo-brand-border);
  position: sticky;
  top: 0;
  z-index: 80;
}

.botao-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--bo-touch-target);
  height: var(--bo-touch-target);
  flex-shrink: 0;
  border: 0;
  border-radius: var(--bo-radius-sm);
  background: transparent;
  color: var(--bo-text-primary);
  cursor: pointer;
}
.botao-menu:hover {
  background: var(--bo-surface-hover-nav);
}

.barra-marca img {
  height: 24px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.sidebar-host {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  width: var(--bo-sidebar-width);
  max-width: 84vw;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 200ms ease, visibility 200ms;
}

.sidebar-host.aberta {
  transform: none;
  visibility: visible;
}

.sidebar {
  width: 100%;
  height: 100%;
  background: var(--bo-surface-sidebar);
  border-right: 1px solid var(--bo-brand-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-marca {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 16px;
  flex-shrink: 0;
}

.sidebar-marca img {
  height: 28px;
  width: auto;
  max-width: 148px;
  object-fit: contain;
}

.fechar-gaveta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--bo-touch-target);
  height: var(--bo-touch-target);
  margin-left: auto;
  border: 0;
  border-radius: var(--bo-radius-sm);
  background: transparent;
  color: var(--bo-text-primary);
  cursor: pointer;
}
.fechar-gaveta:hover {
  background: var(--bo-surface-hover-nav);
}

.divisor {
  height: 1px;
  flex-shrink: 0;
  background: var(--bo-brand-border);
}

.divisor.rodape {
  margin-top: auto;
}

.modulos {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 12px 16px;
}

.lista-modulos {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: var(--bo-touch-target);
  padding: 10px 12px;
  border: 0;
  border-radius: var(--bo-radius-sm);
  background: transparent;
  color: var(--bo-text-secondary);
  font-size: 16px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.nav-item:hover {
  background: var(--bo-surface-hover-nav);
  color: var(--bo-text-primary);
}

.nav-item.ativo {
  background: var(--bo-brand-primary-muted);
  color: var(--bo-brand-ink);
  font-weight: 700;
}

.nav-item .rotulo {
  flex: 1;
  min-width: 0;
}

.usuario-bloco {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--bo-radius-pill);
  box-shadow: inset 0 0 0 1.5px var(--bo-brand-ink);
  color: var(--bo-brand-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.usuario-nome {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  color: var(--bo-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fundo {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: var(--bo-overlay-modal);
}

.conteudo {
  flex: 1;
  min-width: 0;
  padding: 16px 12px 40px;
}

.cabecalho-pagina {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.titulo-pagina {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--bo-text-strong);
}

.trilha {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
  font-size: 14px;
}

.trilha-link {
  color: var(--bo-brand-ink);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.trilha-link:hover {
  text-decoration: underline;
}

.trilha-atual,
.trilha-sep {
  color: var(--bo-text-muted);
}

.acoes-pagina {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.cabecalho-cliente {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.marca-meta {
  font-size: 12px;
  color: var(--bo-text-muted);
}

.abas {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  border-bottom: 1px solid var(--bo-brand-border);
  margin-bottom: 16px;
  scrollbar-width: thin;
}

.aba {
  padding: 10px 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--bo-text-secondary);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
  text-align: left;
}
.aba:hover {
  color: var(--bo-text-primary);
}
.aba.ativa {
  color: var(--bo-text-primary);
  font-weight: 700;
  border-bottom-color: var(--bo-brand-ink);
}

.abas.cartoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  overflow: visible;
  border-bottom: 0;
  margin: 14px 0 22px;
}

.abas.cartoes .aba {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  margin-bottom: 0;
  border-bottom: 0;
  border-radius: var(--bo-radius-sm);
  background: var(--bo-surface-card);
  box-shadow: var(--bo-shadow-card);
  white-space: normal;
  color: var(--bo-text-primary);
}
.abas.cartoes .aba:hover {
  box-shadow: var(--bo-shadow-dropdown);
}
.abas.cartoes .aba.ativa {
  background: var(--bo-brand-primary);
  color: var(--bo-text-on-brand);
  box-shadow: var(--bo-shadow-dropdown);
}
.aba-titulo {
  font-size: 15px;
  font-weight: 700;
}
.aba-descricao {
  font-size: 12px;
  color: var(--bo-text-secondary);
  font-weight: 400;
}
.abas.cartoes .aba.ativa .aba-descricao {
  color: rgba(12, 16, 20, 0.72);
}

.botao {
  height: var(--bo-control-height);
  min-height: var(--bo-touch-target);
  padding: 8px 20px;
  border: 0;
  border-radius: var(--bo-radius-pill);
  font-family: var(--bo-font-family);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
}

.botao.primario {
  background: var(--bo-brand-primary);
  color: var(--bo-text-on-brand);
}
.botao.primario:hover:not(:disabled) {
  background: var(--bo-brand-primary-hover);
}

.botao.secundario {
  background: var(--bo-surface-card);
  color: var(--bo-brand-ink);
  box-shadow: var(--bo-ring-button);
}
.botao.secundario:hover:not(:disabled) {
  background: var(--bo-brand-primary-soft);
}

.botao.perigo {
  background: var(--bo-danger-bg);
  color: var(--bo-danger-fg);
  box-shadow: inset 0 0 0 1px var(--bo-danger-border);
}

.botao.sutil {
  height: 36px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: var(--bo-radius-check);
  background: transparent;
  color: var(--bo-text-muted);
  font-size: 12px;
  font-weight: 700;
}
.botao.sutil:hover:not(:disabled) {
  background: var(--bo-surface-hover);
  color: var(--bo-text-primary);
}

.botao:disabled {
  background: var(--bo-border-disabled);
  color: var(--bo-text-disabled);
  box-shadow: none;
  cursor: not-allowed;
}

.botao-compacto {
  height: 34px;
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.campo-rotulo {
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--bo-text-strong);
}

.asterisco {
  color: var(--bo-danger-fg);
}

.entrada {
  height: var(--bo-control-height);
  padding: 0 16px;
  border: 0;
  border-radius: var(--bo-radius-pill);
  background: var(--bo-surface-card);
  box-shadow: var(--bo-ring-input);
  font-family: var(--bo-font-family);
  font-size: 14px;
  color: var(--bo-text-primary);
  width: 100%;
}
.entrada::placeholder {
  color: var(--bo-text-disabled);
}
.entrada:focus {
  outline: none;
  box-shadow: var(--bo-ring-input-focus);
}
.entrada.grande {
  height: var(--bo-control-height-lg);
}

.indicadores {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.indicador {
  flex: 1 1 min(160px, 100%);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  background: var(--bo-surface-card);
  border-radius: var(--bo-radius-sm);
  box-shadow: var(--bo-ring-card);
}

.indicador-rotulo {
  font-size: 14px;
  font-weight: 700;
  color: var(--bo-text-strong);
}

.indicador-valor {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--bo-text-primary);
}

.indicador-contexto {
  font-size: 12px;
  color: var(--bo-text-muted);
}

.indicador.sucesso {
  background: var(--bo-success-bg);
  box-shadow: inset 0 0 0 1px var(--bo-success-border);
}
.indicador.sucesso .indicador-valor {
  color: var(--bo-success-fg);
}

.indicador.alerta {
  background: var(--bo-warning-bg);
  box-shadow: inset 0 0 0 1px var(--bo-warning-border);
}
.indicador.alerta .indicador-valor {
  color: var(--bo-warning-fg);
}

.filtros {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 10px;
  border-radius: var(--bo-radius-tag);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.tag.sucesso {
  color: var(--bo-success-fg);
  background: var(--bo-success-bg);
  box-shadow: inset 0 0 0 1px var(--bo-success-border);
}
.tag.alerta {
  color: var(--bo-warning-fg);
  background: var(--bo-warning-bg);
  box-shadow: inset 0 0 0 1px var(--bo-warning-border);
}
.tag.erro {
  color: var(--bo-danger-fg);
  background: var(--bo-danger-bg);
  box-shadow: inset 0 0 0 1px var(--bo-danger-border);
}
.tag.neutro {
  color: var(--bo-text-secondary);
  background: var(--bo-surface-sunken);
  box-shadow: inset 0 0 0 1px var(--bo-border-disabled);
}

.barra-trilho {
  flex: 1;
  min-width: 50px;
  height: 6px;
  border-radius: var(--bo-radius-pill);
  background: var(--bo-border-disabled);
  overflow: hidden;
}
.barra-preenchimento {
  display: block;
  height: 100%;
  border-radius: var(--bo-radius-pill);
  background: var(--bo-brand-primary);
  transition: width 200ms ease;
}
.barra-preenchimento.sucesso {
  background: var(--bo-success-fg);
}
.barra-rotulo {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--bo-text-secondary);
  font-variant-numeric: tabular-nums;
}

.quadro {
  background: var(--bo-surface-card);
  border: 1px solid var(--bo-brand-border);
  border-radius: var(--bo-radius-sm);
  overflow: hidden;
}
.rolagem {
  width: 100%;
}
.tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  display: block;
}
.tabela thead {
  display: none;
}
.tabela tbody {
  display: block;
}
.tabela tbody tr {
  display: block;
  padding: 14px 16px;
  border-top: 1px solid var(--bo-border-subtle);
}
.tabela tbody tr:first-child {
  border-top: 0;
}
.tabela td {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  color: var(--bo-text-primary);
  border: 0;
  text-align: right;
}
.tabela td[data-rotulo]::before {
  content: attr(data-rotulo);
  flex-shrink: 0;
  color: var(--bo-text-strong);
  font-weight: 700;
  text-align: left;
}
.tabela td.celula-acoes {
  justify-content: flex-end;
  padding-top: 10px;
}
.linha-clicavel {
  cursor: pointer;
}
.linha-clicavel:hover {
  background: var(--bo-surface-hover);
}
.vazio {
  display: block;
  text-align: center;
  padding: 36px 16px;
  color: var(--bo-text-muted);
}

.painel {
  padding: 20px;
  border-radius: var(--bo-radius-sm);
  background: var(--bo-surface-card);
  box-shadow: var(--bo-ring-card);
  margin-bottom: 16px;
}

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

.rodape-aba {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.grade-dupla {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.ficha-pares {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.par {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bo-border-faint);
}
.par dt {
  font-size: 12px;
  color: var(--bo-text-secondary);
  font-weight: 700;
}
.par dd {
  font-size: 14px;
  color: var(--bo-text-primary);
}

.escala-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bo-border-faint);
}
.escala-item:last-child {
  border-bottom: 0;
}
.escala-topo {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.escala-nome {
  font-weight: 700;
  color: var(--bo-text-strong);
}

.overlay {
  position: fixed;
  inset: 0;
  background: var(--bo-overlay-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  z-index: 100;
}
.modal {
  width: 100%;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  background: var(--bo-surface-card);
  border-radius: var(--bo-radius-lg);
  box-shadow: var(--bo-shadow-modal);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-cabecalho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.modal-titulo {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--bo-text-primary);
}
.modal-fechar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--bo-touch-target);
  height: var(--bo-touch-target);
  border: 0;
  border-radius: var(--bo-radius-check);
  background: transparent;
  color: var(--bo-text-secondary);
  cursor: pointer;
}
.modal-fechar:hover {
  background: var(--bo-surface-hover-nav);
}
.modal-corpo {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-rodape {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--bo-border-faint);
}

.aviso-toast {
  position: fixed;
  bottom: 16px;
  right: 16px;
  left: 16px;
  z-index: 200;
  padding: 12px 16px;
  border-radius: var(--bo-radius-sm);
  background: var(--bo-success-bg);
  box-shadow: inset 0 0 0 1px var(--bo-success-border), var(--bo-shadow-dropdown);
  color: var(--bo-success-fg);
  font-weight: 700;
  font-size: 14px;
}
.aviso-toast.erro {
  background: var(--bo-danger-bg);
  box-shadow: inset 0 0 0 1px var(--bo-danger-border), var(--bo-shadow-dropdown);
  color: var(--bo-danger-fg);
}

@media (min-width: 900px) {
  .casca {
    flex-direction: row;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
  }

  .barra,
  .fundo,
  .fechar-gaveta {
    display: none;
  }

  .sidebar-host {
    position: static;
    z-index: auto;
    max-width: none;
    flex-shrink: 0;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .conteudo {
    overflow-y: auto;
    padding: 24px 32px 48px;
  }

  .cabecalho-pagina {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }

  .acoes-pagina {
    width: auto;
    justify-content: flex-end;
  }

  .trilha {
    font-size: 16px;
  }

  .filtros {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .filtros .campo {
    min-width: 220px;
  }

  .filtros .campo-busca {
    flex: 1;
    min-width: 280px;
  }

  .rolagem {
    overflow: auto;
    max-height: 70vh;
  }

  .tabela {
    display: table;
  }

  .tabela thead {
    display: table-header-group;
  }

  .tabela thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--bo-surface-header);
    color: var(--bo-text-strong);
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    white-space: nowrap;
  }

  .tabela tbody {
    display: table-row-group;
  }

  .tabela tbody tr {
    display: table-row;
    padding: 0;
    border-top: 0;
    min-height: var(--bo-row-min-height);
  }

  .tabela td {
    display: table-cell;
    padding: 12px 16px;
    border-top: 1px solid var(--bo-border-subtle);
    white-space: nowrap;
    text-align: left;
    vertical-align: middle;
  }

  .tabela td[data-rotulo]::before {
    content: none;
  }

  .tabela td.celula-acoes {
    width: 1%;
    text-align: right;
    padding-top: 12px;
  }

  .vazio {
    display: table-cell;
    padding: 48px 16px;
  }

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

  .ficha-pares {
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
  }

  .grade-dupla {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .modal {
    width: 505px;
    padding: 24px;
  }

  .aviso-toast {
    left: auto;
    max-width: 420px;
  }
}

body.modal-aberto {
  overflow: hidden;
}

.carregando {
  padding: 32px 24px;
  color: var(--bo-text-muted);
}

.botao-largo {
  width: 100%;
  height: 48px;
}

.margem-auto {
  margin-right: auto;
}

.oculto {
  display: none !important;
}

.texto-forte {
  color: var(--bo-text-strong);
  font-weight: 700;
}

.texto-marca {
  color: var(--bo-brand-ink);
}

.texto-sutil {
  color: var(--bo-text-muted);
  font-size: 13px;
}

.campo-dica {
  padding: 0 16px;
  font-size: 12px;
  color: var(--bo-text-muted);
}

.contagem {
  font-size: 13px;
  color: var(--bo-text-secondary);
  margin: 0 4px 8px;
}

.painel-estreito {
  max-width: 505px;
}

.painel-conclusao {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.barra-empilhada {
  display: flex;
  height: 10px;
  border-radius: var(--bo-radius-pill);
  background: var(--bo-border-disabled);
  overflow: hidden;
}

.barra-empilhada .barra-preenchimento {
  border-radius: 0;
}

.barra-preenchimento.alerta {
  background: var(--bo-warning-fg);
}

.legenda {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--bo-text-secondary);
}

.legenda span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ponto {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.ponto.sucesso {
  background: var(--bo-success-fg);
}

.ponto.alerta {
  background: var(--bo-warning-fg);
}

.ponto.neutro {
  background: var(--bo-border-disabled);
}

.barra-linha {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.barra-trilho.grossa {
  height: 8px;
}

.painel-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bo-brand-primary-soft);
  box-shadow: inset 0 0 0 1px var(--bo-brand-border);
}

.rotulo-sutil {
  font-size: 12px;
  font-weight: 700;
  color: var(--bo-text-secondary);
}

.link-portal {
  color: var(--bo-brand-ink);
  font-size: 14px;
  word-break: break-all;
}

.acoes-link {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.acoes-link .botao {
  flex: 1 1 160px;
}

.painel-titulo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.painel-titulo h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--bo-text-strong);
}

.destaque {
  font-size: 14px;
  color: var(--bo-text-secondary);
  margin-bottom: 8px;
}

.destaque strong {
  color: var(--bo-brand-ink);
}

.barra-acoes-aba {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.texto-situacao {
  color: var(--bo-text-body);
  margin: 6px 0 12px;
  font-size: 14px;
}

.tabela td.celula-texto {
  white-space: normal;
  text-align: left;
  flex-direction: column;
  align-items: flex-start;
}

.grupo-aba {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal.amplo {
  gap: 12px;
}

.modal .abas {
  margin-bottom: 0;
  flex-shrink: 0;
}

.modal-conteudo {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.modal-conteudo .painel {
  box-shadow: var(--bo-ring-card);
}

@media (max-width: 899px) {
  .overlay {
    padding: 0;
    align-items: stretch;
  }

  .modal,
  .modal.amplo {
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    padding: 16px;
  }

  .modal-cabecalho {
    position: sticky;
    top: -16px;
    background: var(--bo-surface-card);
    margin: -16px -16px 0;
    padding: 12px 16px;
    z-index: 2;
    border-bottom: 1px solid var(--bo-border-faint);
  }

  .modal-rodape .botao {
    flex: 1 1 auto;
  }
}

@media (min-width: 900px) {
  .modal.amplo {
    width: min(960px, 100%);
    min-height: min(640px, calc(100dvh - 24px));
  }

  .acoes-link .botao {
    flex: 0 0 auto;
  }
}
.relatorio-barra {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.relatorio-opcoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.relatorio-opcoes .botao {
  flex: 1 1 140px;
}

.relatorio-folha {
  background: var(--bo-surface-card);
  border-radius: var(--bo-radius-sm);
  box-shadow: var(--bo-ring-card);
  padding: 20px 16px;
  margin-bottom: 16px;
}

.relatorio-cabecalho {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--bo-brand-ink);
}

.relatorio-cabecalho img {
  height: 32px;
  width: auto;
}

.relatorio-cabecalho h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--bo-text-strong);
  line-height: 1.2;
}

.relatorio-dados {
  margin-bottom: 16px;
}

.relatorio-bloco {
  padding: 14px 0;
  border-top: 1px solid var(--bo-border-faint);
  break-inside: avoid;
}

.relatorio-subtitulo {
  font-size: 14px;
  font-weight: 700;
  color: var(--bo-text-strong);
  margin: 14px 0 4px;
}

.relatorio-legenda {
  margin: 12px 0 0 18px;
  font-size: 12px;
  color: var(--bo-text-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (min-width: 900px) {
  .relatorio-barra {
    flex-direction: row;
    align-items: flex-end;
  }

  .relatorio-opcoes .botao {
    flex: 0 0 auto;
  }

  .relatorio-campo {
    flex: 1;
    max-width: 360px;
  }

  .relatorio-folha {
    padding: 28px 32px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  body {
    background: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .barra,
  .sidebar-host,
  .fundo,
  .cabecalho-pagina,
  .abas,
  .nao-imprimir,
  .aviso-toast,
  .overlay {
    display: none !important;
  }

  .casca,
  .conteudo {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .relatorio-folha {
    box-shadow: none;
    padding: 0;
    margin: 0;
    break-after: page;
  }

  .relatorio-folha:last-child {
    break-after: auto;
  }

  .grade-dupla {
    grid-template-columns: 1fr 1fr;
  }

  .ficha-pares {
    grid-template-columns: 1fr 1fr;
  }

  .indicadores {
    flex-wrap: nowrap;
  }

  .rolagem {
    max-height: none !important;
    overflow: visible !important;
  }

  .tabela {
    display: table;
  }

  .tabela thead {
    display: table-header-group;
  }

  .tabela tbody {
    display: table-row-group;
  }

  .tabela tbody tr {
    display: table-row;
    break-inside: avoid;
  }

  .tabela td {
    display: table-cell;
    padding: 6px 10px;
    border-top: 1px solid var(--bo-border-subtle);
    text-align: left;
  }

  .tabela thead th {
    text-align: left;
    padding: 6px 10px;
    background: var(--bo-surface-header);
  }

  .tabela td[data-rotulo]::before {
    content: none;
  }
}
.escala-item .barra-trilho {
  flex: none;
  width: 100%;
}

.modal .abas {
  scrollbar-width: none;
}

.modal .abas::-webkit-scrollbar {
  display: none;
}
.ponto.erro {
  background: var(--bo-danger-fg);
}

.margem-baixo {
  margin-bottom: 12px;
}

.texto-erro {
  color: var(--bo-danger-fg);
  font-weight: 600;
  font-size: 13px;
}

.tabela tbody tr.linha-erro {
  background: var(--bo-danger-bg-soft);
}

.paginacao {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--bo-text-secondary);
}

.passo-importacao {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 0;
}

.passo-importacao > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.passo-numero {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bo-brand-accent);
  color: var(--bo-text-strong);
  box-shadow: inset 0 0 0 1.5px var(--bo-text-strong);
  font-weight: 700;
}

label.botao {
  cursor: pointer;
}

label.botao.desabilitado {
  pointer-events: none;
  opacity: 0.6;
}

.importacao-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bo-border-faint);
}

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

.importacao-item .barra-trilho {
  flex: 1;
}

.detalhes-importacao summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--bo-brand-ink);
}

.detalhes-importacao ul {
  margin: 8px 0 0 18px;
  font-size: 13px;
  color: var(--bo-text-secondary);
  max-height: 220px;
  overflow-y: auto;
}

.login-brand img {
  height: 44px;
  width: auto;
}
.sub-linha {
  display: block;
  font-size: 12px;
  color: var(--bo-text-secondary);
  font-weight: 400;
}

@media (max-width: 899px) {
  .trilha-atual,
  .trilha-sep:nth-last-child(2) {
    display: none;
  }

  .acoes-pagina .botao {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
  }

  .abas.cartoes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 4px 0 18px;
  }

  .abas.cartoes .aba {
    padding: 10px 6px;
    align-items: center;
    text-align: center;
  }

  .abas.cartoes .aba-titulo {
    font-size: 14px;
    line-height: 1.2;
  }

  .abas.cartoes .aba-descricao {
    display: none;
  }

  .tabela td.so-mesa {
    display: none;
  }

  .tabela td.celula-titulo {
    display: block;
    text-align: left;
    padding-bottom: 8px;
  }

  .tabela td.celula-titulo::before {
    content: none;
  }

  .indicador-valor {
    font-size: 24px;
  }

  .conteudo {
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }

  .modal-rodape {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .entrada,
  select.entrada,
  .entrada.grande {
    font-size: 16px;
  }
}

@media (min-width: 900px) {
  .sub-linha {
    display: none;
  }
}
.canais {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.opcao-canal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--bo-radius-sm);
  background: var(--bo-surface-card);
  box-shadow: inset 0 0 0 1px var(--bo-border-strong);
  font-family: var(--bo-font-family);
  font-size: 15px;
  font-weight: 700;
  color: var(--bo-text-primary);
  cursor: pointer;
}

.opcao-canal.ativa {
  background: var(--bo-brand-primary-soft);
  box-shadow: inset 0 0 0 2px var(--bo-brand-ink);
  color: var(--bo-brand-ink);
}

.aviso-canal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--bo-radius-sm);
  font-size: 14px;
  font-weight: 600;
}

.aviso-canal.ok {
  justify-content: flex-start;
  background: var(--bo-success-bg);
  color: var(--bo-success-fg);
  box-shadow: inset 0 0 0 1px var(--bo-success-border);
}

.aviso-canal.alerta {
  background: var(--bo-warning-bg);
  color: var(--bo-text-strong);
  box-shadow: inset 0 0 0 1px var(--bo-warning-border);
}

.barra-selecao {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 4px 10px;
}

.caixa-marcar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--bo-text-strong);
  cursor: pointer;
  min-height: var(--bo-touch-target);
}

.caixa-marcar input,
.celula-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--bo-brand-ink);
  cursor: pointer;
}

.tabela tbody tr.linha-inativa {
  opacity: 0.55;
}

.barra-envio {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.acoes-job {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assistente {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.passo-assistente {
  margin-bottom: 0;
}

.passo-assistente.inativo {
  opacity: 0.55;
}

.passo-assistente.feito .passo-numero {
  background: var(--bo-success-bg);
  color: var(--bo-success-fg);
  box-shadow: inset 0 0 0 1.5px var(--bo-success-fg);
}

.qr-code {
  width: 240px;
  max-width: 100%;
  height: auto;
  border-radius: var(--bo-radius-sm);
  box-shadow: var(--bo-ring-card);
  background: #fff;
  padding: 8px;
}

.linha-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.linha-form .entrada {
  flex: 1 1 200px;
}

.entrada-curta {
  max-width: 240px;
}

@media (max-width: 899px) {
  .tabela-selecao tbody tr {
    position: relative;
    padding-left: 48px;
  }

  .tabela-selecao td.celula-check {
    position: absolute;
    left: 14px;
    top: 16px;
    padding: 0;
  }

  .tabela-selecao td.celula-check::before {
    content: none;
  }

  .barra-envio {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin-bottom: 16px;
    box-shadow: var(--bo-shadow-dropdown);
  }
}

@media (min-width: 900px) {
  .barra-envio {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .barra-envio .campo {
    max-width: 420px;
  }

  .barra-envio .botao-largo {
    width: auto;
    min-width: 260px;
  }

  .tabela-selecao td.celula-check {
    width: 1%;
  }
}
@media (max-width: 899px) {
  .acoes-pagina .botao-destaque {
    flex-basis: 100%;
  }

  .barra-envio {
    padding: 12px 14px;
    gap: 10px;
  }

  .barra-envio .campo-dica {
    padding: 0 4px;
  }
}
.relatorio-nome {
  font-size: 20px;
  font-weight: 700;
  color: var(--bo-text-strong);
  margin-bottom: 12px;
}
.via-destaques {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.indicador-valor.via-valor {
  font-size: 18px;
  line-height: 1.3;
}

.forcas-grade {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.forca-cartao {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: var(--bo-radius-sm);
  background: var(--bo-surface-card);
  box-shadow: var(--bo-ring-card);
  break-inside: avoid;
}

.forca-texto {
  font-size: 14px;
  color: var(--bo-text-body);
}

.forca-dica,
.forca-alerta {
  font-size: 13px;
  line-height: 1.45;
  padding: 8px 10px;
  border-radius: var(--bo-radius-xs);
}

.forca-dica {
  background: var(--bo-brand-primary-soft);
  color: var(--bo-text-strong);
}

.forca-alerta {
  background: var(--bo-brand-accent-soft);
  color: var(--bo-text-strong);
}

@media (min-width: 900px) {
  .forcas-grade {
    grid-template-columns: 1fr 1fr;
  }
}

@media print {
  .forcas-grade {
    grid-template-columns: 1fr 1fr;
  }

  .via-destaques {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media print {
  html,
  body {
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
  }
}