/* =====================================================================
   Forma Flua do Pricing (out/2026). Carregado DEPOIS do styles.css: aqui
   ficam so as regras que mudam a FORMA dos componentes para a marca Flua —
   pilulas, raios 16/24, sombra so em modal e toast, header em gradiente,
   launcher claro e login sobre foto. As CORES vem dos tokens (flua.css e o
   :root do styles.css). Referencia: design/pricing.figcraft.

   Regras de marca (docs/FLUA-MARCA.md e a skill flua-redesign):
   - texto branco so sobre navy ou sobre o gradiente do header;
   - gradiente Coral so no header e no botao de destaque (.btn-destaque),
     sempre com texto navy;
   - estado sempre com icone + texto (as tags ganham icone por ::before).
   ===================================================================== */

/* ---------- Tipografia ---------- */
body { font-size: 14px; letter-spacing: 0; }
h1, h2, h3, h4 { font-family: var(--font-family); color: var(--texto); }
.card h2 { color: var(--texto); font-weight: 500; font-size: 1.3rem; }
label { font-weight: 500; }

/* ---------- Cards: raio 16, borda, sem sombra ---------- */
.card { border-radius: var(--radius-card); box-shadow: none; }

/* ---------- Campos em pilula ---------- */
input, select {
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  min-height: 44px;
  background: var(--h-ffffff, #fff);
}
textarea { border-radius: 20px; }
input[type="checkbox"], input[type="radio"] {
  min-height: 0; padding: 0; border-radius: 4px; accent-color: var(--flua-navy);
}
input[type="radio"] { border-radius: 50%; }
input[type="file"] { border-radius: var(--radius-pill); padding: 8px 12px; }
input:focus, select:focus, textarea:focus {
  border-color: var(--flua-navy); box-shadow: var(--sombra-foco);
}
input.ac-fixado { background: var(--status-ok-bg); border-color: transparent; color: var(--flua-navy); }

/* ---------- Botoes em pilula ----------
   .btn          secundario: contorno navy
   .btn-primario primario: navy cheio, texto branco
   .btn-destaque acao principal da tela: gradiente Coral, texto navy
   .btn-perigo   gravar/apagar/inativar em producao: vermelho cheio */
.btn {
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  min-height: 42px;
  font-weight: 500;
  font-size: 15px;
  background: var(--h-ffffff, #fff);
  color: var(--flua-navy);
  border: 1.5px solid var(--flua-navy);
  gap: 8px;
}
.btn:hover:not(:disabled) { filter: none; background: var(--color-primary-lighter); }
.btn-primario, .btn.btn-primario { background: var(--flua-navy); border-color: var(--flua-navy); color: var(--h-ffffff, #fff); }
.btn-primario:hover:not(:disabled) {
  background: var(--color-primary-dark); transform: none; box-shadow: none;
}
.btn-secundario { background: var(--h-ffffff, #fff); color: var(--flua-navy); border-color: var(--flua-navy); }
.btn-destaque, .btn.btn-destaque, .btn-primario.btn-destaque {
  background: var(--flua-gradient); border-color: transparent; color: var(--flua-navy);
}
.btn-destaque:hover:not(:disabled) { background: var(--flua-gradient); filter: brightness(1.04); }
.btn-perigo, .btn.btn-perigo { background: var(--status-busy); border-color: var(--status-busy); color: var(--h-ffffff, #fff); }
.btn-perigo:hover:not(:disabled) { background: var(--btn-perigo-hover); transform: none; box-shadow: none; }
.btn:disabled { opacity: .4; }
.btn-mini {
  border-radius: var(--radius-pill); padding: 5px 14px; font-weight: 500;
  border: 1.5px solid var(--flua-navy); color: var(--flua-navy); background: var(--h-ffffff, #fff);
}
.btn-mini:hover { background: var(--color-primary-lighter); border-color: var(--flua-navy); }
.link-btn { color: var(--flua-navy); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Tags: selo em pilula com icone + texto ---------- */
.tag, .delta {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: var(--radius-pill); padding: 3px 10px; font-weight: 500; font-size: .75rem;
  white-space: nowrap; vertical-align: middle;
}
.tag::before {
  font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .9em; line-height: 1;
}
.tag-novo::before { content: "\f055"; }            /* circle-plus */
.tag-atualizacao::before { content: "\f2f1"; }     /* rotate */
.tag-duplicata::before { content: "\f0c5"; }       /* copy */
.tag-ignorada::before { content: "\f05e"; }        /* ban */
.tag-retroativo::before { content: "\f1da"; }      /* clock-rotate-left */
.tag-criar { background: var(--flua-navy); color: var(--h-ffffff, #fff); }
.tag-criar::before { content: "\2b"; }             /* plus */
.tag-inexistente::before { content: "\2b"; }
.tag-divergente::before, .tag-aviso::before { content: "\f071"; }  /* triangle-exclamation */
.tag-diverg-ok::before, .tag-ok::before { content: "\f058"; }      /* circle-check */
.tag-duplicidade::before, .tag-erro::before { content: "\f057"; }  /* circle-xmark */
.delta::before { content: none; }                /* a seta ja vem no texto (app.js deltaHtml) */
.tag-remover::before { content: "\f2ed"; }         /* trash-can (REMOVER na validacao de DELETE) */

/* ---------- Tabelas ---------- */
.tabela-wrap { border-radius: 12px; }
thead th {
  background: var(--color-bg-page); color: var(--text-muted);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Popup (#popup): raio 24, cabecalho branco, sombra ---------- */
.modal { background: rgba(11, 44, 69, 0.6); }
.modal-box, .modal-box.modal-box-grande {
  border-radius: var(--radius-modal); box-shadow: var(--shadow-xl);
}
.modal-head {
  background: var(--h-ffffff, #fff); color: var(--flua-navy);
  border-top-left-radius: var(--radius-modal); border-top-right-radius: var(--radius-modal);
  padding: 20px 20px 12px 28px;
}
.modal-head h3 { font-weight: 500; font-size: 1.25rem; }
.modal-x {
  color: var(--flua-navy); opacity: 1; width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
}
.modal-x:hover { background: var(--color-primary-lighter); }
.modal-corpo { background: var(--h-ffffff, #fff); padding: 8px 28px 24px; }
.modal-acoes { padding: 16px 28px; border-top: 1px solid var(--border); gap: 12px; }
.aviso-forte {
  color: var(--status-busy); background: var(--status-busy-bg); border-radius: 12px;
  padding: 12px 16px; font-weight: 500;
}
@media (max-width: 640px) {
  /* Mobile: folha de baixo em tela cheia; "Cancelar/Fechar" continua antes do botao principal. */
  .modal { align-items: flex-end; padding: 56px 0 0; }
  /* !important: as regras .modal-box-grande:has(...) do styles.css sao mais especificas. */
  .modal-box, .modal-box.modal-box-grande {
    max-width: 100% !important; width: 100%; max-height: calc(100svh - 56px);
    border-radius: var(--radius-modal) var(--radius-modal) 0 0;
  }
  .modal-corpo { padding: 8px 20px 20px; }
  .modal-acoes { flex-direction: column; align-items: stretch; padding: 16px 20px 28px; }
  .modal-acoes .btn { width: 100%; }
}

/* ---------- Toasts e overlay ---------- */
.toast {
  border-radius: var(--radius-card); border-left-width: 4px; font-weight: 500;
  box-shadow: 0 12px 32px rgba(11, 44, 69, 0.16); color: var(--flua-navy);
  padding: 14px 16px;
}
.load-overlay { background: rgba(11, 44, 69, 0.6); }
.load-box { border-radius: var(--radius-modal); box-shadow: var(--shadow-xl); }
.load-spinner { border-color: var(--flua-light-blue); border-top-color: var(--flua-navy); }
.load-msg { color: var(--flua-navy); font-weight: 500; }

/* ---------- Autocomplete e datepicker ---------- */
.ac-lista { border-radius: var(--radius-card); box-shadow: 0 8px 24px rgba(11, 44, 69, 0.12); }
.ac-item:hover, .ac-item.ativo { background: var(--flua-light-blue); box-shadow: none; }
.ac-item .cod { border-radius: var(--radius-pill); }
.ac-item:hover .cod, .ac-item.ativo .cod { background: var(--flua-navy); color: var(--h-ffffff, #fff); }

/* ======================= Shell ======================= */
/* Mesma geometria do /inicio do sim-relatorios (agenda): faixa do gradiente de
   64px, faixa das abas de 52px, 24px de folga nas bordas, botoes de 40px. O
   zoom de 80% no computador vem de flua.css + flua-zoom.js. Duas faixas no
   mesmo <header>: em cima o gradiente (launcher, marca, online, usuario,
   sair); embaixo a faixa branca das abas. O app.js mostra e esconde o
   #cabecalho inteiro, por isso as abas continuam dentro dele. */
header.shell-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "launcher marca userbox" "abas abas abas";
  grid-template-rows: 64px 52px;
  align-items: center; gap: 0 14px;
  padding: 0;
  background: var(--h-ffffff, #fff);
  border-bottom: 1px solid var(--border);
}
header.shell-topbar::before {
  content: ""; grid-row: 1; grid-column: 1 / -1; align-self: stretch;
  background: var(--flua-gradient);
}
.shell-launcher-btn, .shell-marca, .shell-userbox { grid-row: 1; z-index: 1; }
.shell-launcher-btn {
  grid-area: launcher; margin-left: 24px;
  width: 40px; height: 40px; border-radius: 50%; background: var(--h-ffffff, #fff); color: var(--flua-navy); font-size: 15px;
}
.shell-launcher-btn:hover, .shell-launcher-btn.ativo { background: var(--flua-beige); color: var(--flua-navy); }
.shell-marca { grid-area: marca; display: flex; align-items: flex-end; gap: 10px; min-width: 0; overflow: hidden; }
.shell-logo { height: 26px; opacity: 1; }
.shell-produto { color: var(--h-ffffff, #fff); font-size: 24px; font-weight: 400; line-height: 1; white-space: nowrap; }
.shell-userbox { grid-area: userbox; gap: 10px; padding: 0 24px 0 0; }
.shell-acoes { gap: 10px; }
.online-badge {
  display: inline-flex; align-items: center; gap: 6px; height: 40px;
  background: var(--h-ffffff, #fff); color: var(--flua-navy); border: 0; border-radius: var(--radius-pill);
  padding: 0 12px; font-weight: 700; font-size: 14px;
}
.online-badge .online-dot { background: var(--status-ok); }
.shell-userbox .header-user {
  background: var(--h-ffffff, #fff); color: var(--flua-navy); padding: 4px 16px 4px 4px; gap: 10px;
  font-size: 14px; font-weight: 700; max-width: 220px;
}
.shell-userbox .header-user-avatar {
  width: 32px; height: 32px; font-size: 14px; font-weight: 700;
  background: var(--flua-light-blue); color: var(--flua-navy);
}
.shell-userbox .tema-btn,
.shell-userbox .button-logout {
  width: 40px; height: 40px; border-radius: 50%; background: var(--h-ffffff, #fff); color: var(--flua-navy); font-size: 15px;
}
.shell-userbox .tema-btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; cursor: pointer;
}
.shell-userbox .tema-btn:hover { background: var(--flua-beige); }
.shell-userbox .button-logout:hover { background: var(--flua-beige); color: var(--flua-navy); }

/* Abas como no agenda: transparentes, a ativa em azul-claro. */
.shell-tabs-wrap { grid-area: abas; padding: 0 24px; gap: 6px; align-items: center; height: 100%; }
.shell-tabs { gap: 6px; align-items: center; }
.shell-tab {
  height: auto; padding: 8px 10px 8px 14px; margin: 0; gap: 8px; max-width: 240px;
  border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--text-muted); font-weight: 400; font-size: 14px;
}
.shell-tab > i { color: inherit; font-size: 13px; }
.shell-tab:hover { background: var(--h-f3f5f7, #F3F5F7); color: var(--flua-navy); }
.shell-tab.ativa { background: var(--flua-light-blue); color: var(--flua-navy); font-weight: 500; }
.shell-tab.ativa > i { color: var(--flua-navy); }
.shell-tab-fechar { visibility: visible; width: 20px; height: 20px; font-size: 11px; color: var(--text-muted); border-radius: 50%; }
.shell-tab.ativa .shell-tab-fechar { color: var(--text-muted); }
.shell-tab-fechar:hover { background: rgba(var(--rgb-0b2c45, 11, 44, 69), 0.1); color: var(--flua-navy); }
.shell-tab-nova {
  width: 32px; height: 32px; font-size: 13px; border: 1px solid var(--border); border-radius: 50%;
  background: var(--h-ffffff, #fff); color: var(--flua-navy);
}
.shell-tab-nova:hover { background: var(--flua-beige); color: var(--flua-navy); }

/* Launcher: centrado, grade de blocos 150x124, igual ao do agenda. As secoes
   nomeadas ficam (divergencia deliberada: ver styles.css). */
.shell-launcher {
  background: var(--flua-beige); background-image: none;
  justify-content: flex-start; padding: 40px 24px 24px;
}
.shell-launcher-inner { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 900px; margin: auto 0; }
.shell-launcher-marca {
  position: static; display: flex; align-items: flex-end; gap: 10px; align-self: auto; color: var(--flua-navy);
  font-size: 20px; font-weight: 300; line-height: 1; margin-bottom: 20px;
}
.shell-launcher-marca img { height: 28px; width: auto; }
.shell-launcher-marca span { font-size: 20px; font-weight: 300; line-height: 1; color: var(--flua-navy); }
.shell-launcher-fechar {
  top: 20px; right: 24px; width: 40px; height: 40px;
  background: var(--h-ffffff, #fff); color: var(--flua-navy); border: 1px solid var(--border);
}
.shell-launcher-fechar:hover { background: var(--h-fbfaf7, #FBFAF7); }
.shell-busca-wrap {
  width: 100%; max-width: 560px; box-sizing: border-box;
  background: var(--h-ffffff, #fff); border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 0 20px; height: 48px; margin-bottom: 20px; gap: 10px;
}
.shell-busca-wrap:focus-within { border: 1px solid var(--flua-navy); box-shadow: inset 0 0 0 1px var(--flua-navy); }
.shell-busca-wrap i, .shell-busca-wrap:focus-within i { color: var(--text-muted); font-size: 15px; }
.shell-busca, .shell-busca:focus {
  color: var(--flua-navy); font-size: 16px; font-weight: 400;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0; min-height: 0;
}
.shell-busca::placeholder { color: var(--text-muted); font-weight: 400; }
.shell-launcher-titulo { color: var(--text-muted); font-weight: 700; letter-spacing: .04em; font-size: 12px; margin-bottom: 20px; }
.shell-grid { align-items: center; gap: 20px; }
.shell-secao { width: 798px; max-width: 100%; }
.shell-secao-titulo { color: var(--text-muted); padding-left: 0; font-size: 12px; letter-spacing: .04em; margin-bottom: 10px; }
.shell-secao-itens { grid-template-columns: repeat(5, 150px); grid-auto-rows: 124px; gap: 12px; }
.shell-func {
  flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--h-ffffff, #fff); color: var(--flua-navy); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 18px 10px; gap: 10px;
}
.shell-func:hover { background: var(--h-ffffff, #fff); border-color: rgba(var(--rgb-0b2c45, 11, 44, 69), 0.35); }
.shell-func.destaque { background: var(--h-ffffff, #fff); outline: none; border: 1px solid var(--flua-navy); box-shadow: inset 0 0 0 1px var(--flua-navy); padding: 18px 10px; }
.shell-func:focus-visible { outline: 2px solid var(--flua-navy); outline-offset: 2px; }
.shell-func-icone {
  width: 48px; height: 48px; border-radius: 999px;
  background: var(--flua-light-blue); color: var(--flua-navy); font-size: 18px;
}
.shell-func:hover .shell-func-icone, .shell-func.destaque .shell-func-icone {
  background: var(--flua-light-blue); color: var(--flua-navy);
}
.shell-func-rotulo { font-size: 14px; font-weight: 500; line-height: 1.3; letter-spacing: 0; }
.shell-func.aberta .shell-func-rotulo::after { background: var(--status-ok); width: 6px; height: 6px; margin-left: 6px; }
.shell-vazio { color: var(--flua-navy); text-align: center; font-size: 16px; font-weight: 500; padding: 32px 4px; }
.shell-launcher-rodape {
  position: static; justify-content: center; gap: 6px; margin-top: 20px; padding-top: 0;
  border-top: 0; color: var(--text-muted); align-self: stretch; font-size: 12px;
}
.shell-launcher-rodape > * + *::before { content: "·"; margin-right: 6px; }
.shell-rodape-unidade { color: var(--flua-navy); font-weight: 700; font-size: 12px; }

@media (max-width: 1000px) { .shell-secao { width: 486px; } .shell-secao-itens { grid-template-columns: repeat(3, 150px); } }
@media (max-width: 768px) {
  header.shell-topbar { gap: 0 10px; grid-template-rows: 60px 52px; }
  .shell-launcher-btn { margin-left: 12px; }
  .shell-logo { display: block; height: 20px; }
  /* como no agenda: no celular so logo, botoes e avatar */
  .shell-produto, .shell-userbox .header-user span, .shell-userbox .online-badge { display: none !important; }
  .shell-userbox { padding-right: 12px; gap: 8px; }
  .shell-userbox .header-user { padding: 4px; }
  .shell-tabs-wrap { padding: 0 12px; }
  .shell-tab { max-width: 160px; padding: 4px 4px 4px 12px; }
  .shell-tab-fechar { width: 30px; height: 30px; font-size: 12px; }
  .shell-launcher { padding: 32px 16px 20px; }
  .shell-launcher-fechar { top: 24px; right: 16px; }
  .shell-secao { width: 358px; }
  .shell-secao-itens { grid-template-columns: repeat(3, minmax(0, 112px)); grid-auto-rows: 112px; gap: 11px; }
  .shell-func { padding: 14px 8px; }
  .shell-func-icone { width: 40px; height: 40px; font-size: 15px; }
  .shell-func-rotulo { font-size: 12px; }
}
/* Celular estreito: "Pricing" sai do header para nao encostar no selo de online. */
@media (max-width: 380px) { .shell-produto { display: none; } }

/* ======================= Login ======================= */
/* Foto clara com veu branco de 70% atras do conteudo (sem a curva do
   grafismo); card azul-claro a ESQUERDA, raio 24, sem sombra; texto
   secundario sobre a foto em navy. */
.login-container {
  justify-content: flex-start;
  padding: 48px 120px;
  background-image:
    linear-gradient(rgba(var(--rgb-ffffff, 255, 255, 255), .7), rgba(var(--rgb-ffffff, 255, 255, 255), .7)),
    var(--login-bg, none);
}
@media (max-width: 640px) {
  .login-container {
    align-items: flex-start;
    padding: 40px 16px 24px;
    background-image:
      linear-gradient(rgba(var(--rgb-ffffff, 255, 255, 255), .7), rgba(var(--rgb-ffffff, 255, 255, 255), .7)),
      var(--login-bg-sm, none);
  }
}
.login-card {
  max-width: 440px; border-radius: var(--radius-modal); border: 0; box-shadow: none;
  backdrop-filter: none; padding: 40px;
}
@media (max-width: 640px) { .login-card { padding: 28px; } }
.login-header--logo { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.login-logo { height: 32px; margin: 0; }
.login-produto { color: var(--flua-navy); font-size: 28px; font-weight: 300; line-height: 1; }
.login-eyebrow { color: var(--text-muted); font-weight: 700; letter-spacing: .04em; font-size: 12px; }
.login-title { font-weight: 400; font-size: 28px; letter-spacing: 0; }
.login-subtitle { font-size: 14px; }
/* Sem a caixa branca dos portais: no Flua os campos brancos ficam direto no card azul-claro. */
#painelLogin .login-form, #painelRecuperar, #painelCodigo, #painelNovaSenha {
  padding: 0; background: transparent; border: 0; box-shadow: none;
}
.login-recuperar-ok-icone { background: var(--h-ffffff, #fff); color: var(--flua-navy); }
/* O painel e centralizado (icone e titulo); rotulo, campo e nota seguem a esquerda, como no design. */
#painelCodigo .form-group, #painelCodigo .login-recuperar-nota { text-align: left; }
.login-recuperar-ok h2 { font-weight: 400; font-size: 28px; letter-spacing: 0; }
.login-card .form-group label { font-weight: 500; }
.login-card .input-wrap { border-radius: var(--radius-pill); border: 1px solid transparent; background: var(--h-ffffff, #fff); }
.login-card .input-wrap:focus-within { border: 2px solid var(--flua-navy); box-shadow: none; background: var(--h-ffffff, #fff); }
.login-card .form-group .input-wrap input,
.login-card .form-group .input-wrap input[type="text"],
.login-card .form-group .input-wrap input[type="password"] { border-radius: var(--radius-pill); min-height: 46px; }
.login-card .input-icon { margin-left: 20px; }
.toggle-password { margin-right: 6px; }
.caps-warning {
  background: var(--status-maint-bg); color: var(--status-maint); border-radius: 12px; padding: 10px 14px;
  font-size: 14px;
}
.login-link { color: var(--flua-navy); font-weight: 500; font-size: 14px; }
.btn-login {
  border-radius: var(--radius-pill); background: var(--flua-navy); color: var(--h-ffffff, #fff);
  font-weight: 500; min-height: 46px;
}
.btn-login:hover:not(:disabled) { background: var(--primary-light); box-shadow: none; }
.btn-login:disabled { background: var(--login-btn-off); color: var(--flua-navy); }
.error-message {
  background: var(--status-busy-bg); color: var(--status-busy); border: 0; border-radius: 12px;
  text-align: left; padding: 12px 16px;
}
.login-footer { border-top-color: rgba(var(--rgb-0b2c45, 11, 44, 69), 0.10); }

/* ---------- Acertos depois da primeira conferencia no navegador ---------- */
/* Campo e botao nao herdam a fonte por padrao do navegador. */
input, select, textarea, button { font-family: inherit; }
/* Select em pilula com seta propria (a nativa ficava colada na borda). */
select {
  appearance: none; -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%2355697A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
select[multiple], select[size] { background-image: none; padding-right: 18px; border-radius: 16px; }
/* Filtros Tipo/Ano/Praca/Plano: pilula, como os campos. */
.ms-trigger { border-radius: var(--radius-pill); padding: 8px 16px; background: var(--h-ffffff, #fff); }
.ms-dropdown.aberto .ms-trigger { border-color: var(--flua-navy); }
.ms-menu { border-radius: var(--radius-card); box-shadow: 0 8px 24px rgba(11, 44, 69, 0.12); }
.filtro-chip { border-radius: var(--radius-pill); background: var(--flua-light-blue); color: var(--flua-navy); }
/* Icone FA dentro de texto corrido. */
.fa-solid { line-height: 1; }
/* No desktop o rotulo do botao de ACAO nao quebra ("Nova / consulta"); botao com dado
   no rotulo (prodmed: "Atendimento N · dia · unidade") continua quebrando. */
@media (min-width: 641px) { .acoes .btn, .btn-destaque { white-space: nowrap; } }
/* Rodape do popup: os botoes quebram linha e o rodape enrola. Com nowrap, os tres botoes do
   modal "O que vai ser criado?" passavam dos 520px da caixa e ficavam cortados (sem clique). */
.modal-acoes { flex-wrap: wrap; }
/* .btn-sm (tabelas da Producao Medica e Turnos) segue pequeno: o .btn acima vinha depois. */
.btn.btn-sm { padding: 6px 14px; font-size: 13px; min-height: 32px; }
/* Select com opcao longa empurrava a coluna 1fr para fora do card no celular. */
input, select { max-width: 100%; }
.grid > *, .tn-form > * { min-width: 0; }
/* Campos compactos de edicao em linha nao herdam os 44px do campo padrao. */
.gtd-valor, .gtd-ajuste input, .pp-edit-input { min-height: 0; }
