/* shell.css — layout do SPA-shell (sidebar fixa única) no padrão visual do Solutaq. */
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter Tight', Inter, system-ui, Arial, sans-serif; background: #F4F6F9; color: #12151b; }

/* Sidebar FIXA — montada uma vez, nunca recarrega ao navegar. */
.sidebar {
  position: fixed; top: 0; left: 0; width: 256px; height: 100vh;
  background: #fff; border-right: 1px solid #e2e8f0; overflow-y: auto;
  display: flex; flex-direction: column; padding: 14px 12px; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 6px 14px; border-bottom: 1px solid #eef0f2; margin-bottom: 6px; }
.logo-glyph { width: 32px; height: 32px; border-radius: 8px; background: #1f564f; color: #fff; display: flex; align-items: center; justify-content: center; }
.wordmark { font-size: 15px; font-weight: 700; color: #12151b; } .wordmark span { color: #1f564f; }
.sec { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #64748b; margin: 12px 8px 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; font-size: 13px; font-weight: 500; color: #334155; text-decoration: none; cursor: pointer; margin-bottom: 2px; transition: all .18s cubic-bezier(.34,1.56,.64,1); }
.nav-item:hover { background: #e7f1ed; color: #174239; transform: translateX(3px); box-shadow: inset 2px 0 0 #3e8a80; }
.nav-item.ativo { background: #e7f1ed; font-weight: 600; box-shadow: inset 3px 0 0 #1f564f; }
.side-foot { margin-top: auto; padding: 10px 8px 4px; border-top: 1px solid #eef0f2; }

/* Área principal — só ela rola/troca; a sidebar permanece. */
.main { margin-left: 256px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 64px; background: #fff; border-bottom: 1px solid #DDE3EA; display: flex; align-items: center; padding: 0 28px; box-shadow: 0 2px 12px rgba(26,79,122,.10); position: sticky; top: 0; z-index: 10; }
.topbar h1 { font-size: 18px; font-weight: 700; margin: 0; } .topbar .sub { font-size: 12px; color: #6B7280; margin-left: 12px; }
.conteudo { padding: 24px 28px; }

.card { background: #fff; border: 1px solid #DDE3EA; border-radius: 14px; box-shadow: 0 2px 12px rgba(26,79,122,.10); padding: 18px 20px; margin-bottom: 18px; }
.card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: #174239; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { background: #fff; border: 1px solid #DDE3EA; border-radius: 14px; padding: 14px 16px; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: #1f564f; }
.stat .v { font-size: 22px; font-weight: 700; color: #1f564f; } .stat .l { font-size: 12px; color: #6B7280; margin-top: 2px; }
.dim { font-size: 13px; color: #6B7280; }
.ic { width: 16px; height: 16px; } .ic-sm { width: 13px; height: 13px; }
.page[hidden] { display: none; }

/* ── Fase 1: tela de Atendimento (SOAP) ── */
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.inp { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid #DDE3EA; border-radius: 8px; background: #fff; color: #174239; flex: 1; min-width: 140px; }
.inp:focus { outline: none; border-color: #1f564f; box-shadow: 0 0 0 3px rgba(31,86,79,.12); }
.inp-sm { flex: 0 0 auto; min-width: 120px; }
.ta { width: 100%; min-height: 70px; resize: vertical; flex: none; }
.btn { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 8px; border: 1px solid #1f564f; background: #1f564f; color: #fff; cursor: pointer; }
.btn:hover { background: #174239; }
.btn-ghost { background: #fff; color: #1f564f; }
.btn-ghost:hover { background: #f0f5f4; }
.lista { display: flex; flex-direction: column; gap: 2px; margin: 6px 0; }
.lista .li { padding: 8px 10px; border: 1px solid #EDF1F5; border-radius: 8px; cursor: pointer; font-size: 14px; color: #174239; }
.lista .li:hover { background: #f0f5f4; border-color: #1f564f; }
.sel { margin-top: 10px; padding: 10px 12px; background: #f0f5f4; border-radius: 8px; font-size: 14px; color: #174239; }
.med-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.med-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #6B7280; }
.med-grid .inp { flex: none; width: 100%; min-width: 0; }
.sub-bloco { margin-top: 12px; padding-top: 10px; border-top: 1px solid #EDF1F5; }
.sub-bloco b { font-size: 13px; color: #174239; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: #eaf3f1; border: 1px solid #cfe3de; border-radius: 999px; font-size: 13px; color: #174239; }
.chip i { cursor: pointer; font-style: normal; color: #b4231f; font-weight: 700; }

/* ── Login overlay ── */
.login-overlay { position: fixed; inset: 0; background: #F4F6F9; display: flex; align-items: center; justify-content: center; z-index: 1000; }
.login-overlay[hidden] { display: none !important; }
.login-card { background: #fff; border: 1px solid #DDE3EA; border-radius: 16px; box-shadow: 0 8px 30px rgba(26,79,122,.15); padding: 28px 30px; width: 340px; max-width: 90vw; }
.login-card label { display: block; font-size: 12px; }

/* ── Tabelas e chips de status (LGPD / listas) ── */
.table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.table th { text-align: left; color: #6B7280; font-weight: 600; border-bottom: 1px solid #DDE3EA; padding: 6px 8px; }
.table td { border-bottom: 1px solid #EDF1F5; padding: 6px 8px; color: #174239; }
.status-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #eaf3f1; border: 1px solid #cfe3de; font-size: 12px; }
