/* SimulaPay — estilos. A marca da empresa entra pelas variáveis --brand e --accent. */
:root {
  --brand: #1F5FBF;
  --accent: #C8102E;
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --line: #E3E7EF;
  --text: #182033;
  --muted: #667085;
  --good: #0E8A4F;
  --good-bg: #E5F5EC;
  --bad: #B42318;
  --bad-bg: #FDECEA;
  --info-bg: #E8F0FD;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --side: 248px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { font-size: 15px; line-height: 1.45; }
h1 { font-size: 22px; margin: 0 0 4px; letter-spacing: -.01em; }
h2 { font-size: 18px; margin: 0; }
h3 { font-size: 15px; margin: 0; }
h4 { font-size: 13px; margin: 18px 0 8px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
p { margin: 0 0 8px; }
a { color: var(--brand); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
.muted { color: var(--muted); }
.tiny { font-size: 11.5px; }
.small { font-size: 13px; }
.strong { font-weight: 600; }
.brand { color: var(--brand); font-weight: 600; }
.pos { color: var(--good); font-weight: 600; }
.neg { color: var(--bad); font-weight: 600; }
.boot { padding: 40px; text-align: center; color: var(--muted); }

/* ---------- layout ---------- */
.layout { min-height: 100vh; }
.side { display: none; }
.main { min-height: 100vh; padding-bottom: 76px; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--surface); border-bottom: 1px solid var(--line); }
.top-brand .logo { height: 28px; max-width: 120px; object-fit: contain; display: block; }
.top-title { font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.logo-txt { font-weight: 700; color: var(--brand); }
.content { padding: 16px; max-width: 1280px; margin: 0 auto; }
.bottom { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: flex; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bottom a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; font-size: 11px; color: var(--muted); text-decoration: none; }
.bottom a.on { color: var(--brand); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.acting { background: var(--info-bg); color: var(--text); padding: 8px 16px; font-size: 13px; }
.acting.warn { background: #FFF4D6; }

@media (min-width: 900px) {
  .layout { display: grid; grid-template-columns: var(--side) 1fr; }
  .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px; }
  .side-brand { padding: 4px 8px 18px; }
  .side-brand .logo { max-width: 180px; max-height: 48px; object-fit: contain; }
  .side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
  .nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 14px; }
  .nav:hover { background: var(--bg); }
  .nav.on { background: color-mix(in srgb, var(--brand) 10%, white); color: var(--brand); }
  .side-foot { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
  .who { display: flex; flex-direction: column; font-size: 13px; padding: 0 8px; }
  .who span { color: var(--muted); font-size: 12px; }
  .top-brand { display: none; }
  .bottom { display: none; }
  .main { padding-bottom: 0; }
  .content { padding: 24px 28px; }
}

/* ---------- componentes ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 8px; padding: 9px 14px; font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; min-height: 40px; }
.btn:hover { border-color: #C6CDD9; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.btn.small { padding: 6px 10px; min-height: 34px; font-size: 13px; }
.btn.danger { color: var(--bad); }
.btn.block { width: 100%; }
.btn .ico { width: 17px; height: 17px; }
.icon-btn { border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--muted); width: 36px; height: 36px; border-radius: 8px; }
.btns { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.row-between { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.panel-title { margin-bottom: 12px; }
.panel-sub { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.panel-sub > summary { cursor: pointer; font-weight: 600; color: var(--brand); padding: 4px 0; }
.note { font-size: 12.5px; color: var(--muted); margin: 6px 2px 14px; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.narrow { max-width: 640px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 12px; align-items: end; }
.two { display: grid; gap: 14px; margin-top: 14px; }
.three { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 700px) { .two { grid-template-columns: 1fr 1fr; } .three { grid-template-columns: repeat(3, 1fr); } }

.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field .lbl { font-size: 12px; font-weight: 500; color: var(--muted); }
.inputwrap { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.inputwrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.inputwrap input, .inputwrap select { border: 0; outline: 0; font: inherit; padding: 9px 10px; width: 100%; min-width: 0; background: transparent; font-size: 16px; color: var(--text); }
.inputwrap input[type=color] { width: 46px; padding: 2px; flex: none; height: 38px; }
.inputwrap .pre, .inputwrap .suf { color: var(--muted); font-size: 13px; padding: 0 8px; }
.inputwrap .pre { padding-right: 0; }
.field.small .inputwrap input { padding: 6px 6px; font-size: 14px; text-align: right; }
.field.small .suf { padding: 0 6px 0 2px; }
input[type=file] { font: inherit; font-size: 13px; }
.check { display: flex; gap: 8px; align-items: center; padding: 6px 0; }

.ratebox { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #FBFCFE; }
.ratebox-title { font-weight: 600; margin-bottom: 10px; }

.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); background: #F8FAFC; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 8px 10px; border-bottom: 1px solid #EEF1F6; white-space: nowrap; vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t td.num, .t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.t tr.sel td { background: color-mix(in srgb, var(--brand) 8%, white); }
.t tr.hl td { background: #FFFBEA; }
.t.inputs td { padding: 4px; }
.t.inputs td:first-child { padding-left: 10px; }
.t.inputs .field { min-width: 82px; }
.t.mini { font-size: 12px; }
.t.mini td, .t.mini th { padding: 4px 7px; }

.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--info-bg); color: var(--brand); }
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--brand); }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: #EEF1F6; color: var(--muted); margin-top: 8px; }
.tag.edit { background: color-mix(in srgb, var(--brand) 12%, white); color: var(--brand); }
.tag.warn { background: #FFF4D6; color: #8A5A00; margin: 0 0 0 6px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.kpi-l { font-size: 12px; color: var(--muted); }
.kpi-v { font-size: 20px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi.good .kpi-v { color: var(--good); }
.kpi.bad .kpi-v { color: var(--bad); }

.tabs { display: flex; gap: 4px; overflow-x: auto; margin: 6px 0 14px; border-bottom: 1px solid var(--line); }
.tab { border: 0; background: none; padding: 9px 12px; font: inherit; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; text-decoration: none; white-space: nowrap; }
.tab.on { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------- tabelas de taxas e seletores ---------- */
.picker { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
.picker .inputwrap { flex: 1 1 200px; }
.picker .inputwrap.band { flex: 0 1 120px; }
.picker select { font-size: 14px; padding: 7px 8px; }
.picker.empty { display: block; }
.origem { margin: -4px 0 8px; }
.warnbox { background: #FFF4D6; color: #6B4800; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin: 8px 0; }
.warnbox ul { margin: 6px 0 0; padding-left: 18px; }
.badge.warn { background: #FFF4D6; color: #8A5A00; }
.mix { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px 10px; margin: 6px 0 12px; }
.mix .field .lbl { font-size: 11.5px; }
.cart { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.cart-row { display: grid; grid-template-columns: 1fr 150px 40px; gap: 6px; align-items: center; }
.cart-row select { font-size: 14px; padding: 7px 8px; }
@media (max-width: 520px) { .cart-row { grid-template-columns: 1fr 110px 36px; } }
.btns.left { justify-content: flex-start; margin: 6px 0 10px; gap: 6px; }
.searchbar { margin: 0 0 12px; max-width: 420px; }
.rowlink { text-decoration: none; color: var(--text); display: block; }
.rowlink:hover strong { color: var(--brand); text-decoration: underline; }
.inputwrap textarea { border: 0; outline: 0; font: inherit; padding: 9px 10px; width: 100%; resize: vertical; background: transparent; font-size: 15px; }
.t.inputs .field input:disabled { color: var(--text); background: #F6F7F9; }

/* ---------- telas ---------- */
.hello { margin-bottom: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--brand); transform: translateY(-1px); }
.card p { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.card-ic { width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 10%, white); color: var(--brand); display: grid; place-items: center; flex: none; }
.card.plan { flex-direction: column; gap: 6px; }
.card.plan ul { margin: 4px 0 8px; padding-left: 18px; font-size: 13px; }
.price { font-size: 24px; font-weight: 700; }
.price span { font-size: 13px; color: var(--muted); font-weight: 400; }

.mod-head { margin-bottom: 14px; }
.mod-body { display: grid; gap: 16px; }
@media (min-width: 1200px) { .mod-body:not(.stack) { grid-template-columns: minmax(380px, 460px) 1fr; align-items: start; } .mod-body:not(.stack) .mod-inputs { position: sticky; top: 76px; } }
.mod-body.editor { grid-template-columns: 1fr !important; }
@media (min-width: 1200px) { .mod-body.editor { grid-template-columns: minmax(660px, 1.2fr) minmax(420px, 1fr) !important; } .mod-body.editor .mod-inputs { position: static !important; } }
.mod-body.stack .mod-inputs .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

.perm-list { display: flex; flex-direction: column; gap: 6px; }
.perm-row { display: grid; grid-template-columns: 1fr 190px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid #EEF1F6; }
@media (max-width: 520px) { .perm-row { grid-template-columns: 1fr; } }
.cred { background: var(--bg); border-radius: 8px; padding: 12px; margin: 10px 0; display: grid; gap: 4px; }
.brand-preview { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 14px 0; }
.bp-bar { padding: 12px; display: flex; align-items: center; }
.bp-bar img { height: 32px; background: #fff; border-radius: 4px; padding: 2px 6px; }
.bp-body { padding: 14px; display: flex; gap: 10px; align-items: center; }
.mcc-edit { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin: 10px 0; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 14%, white), var(--bg) 60%); }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border-radius: 16px; padding: 28px 24px; box-shadow: 0 10px 30px rgba(16, 24, 40, .12); display: flex; flex-direction: column; gap: 12px; }
.login-logo { max-width: 220px; max-height: 70px; object-fit: contain; align-self: center; }
.login-name { font-size: 24px; font-weight: 700; color: var(--brand); text-align: center; }
.login-card > p.muted { text-align: center; margin-top: -4px; }
.err { color: var(--bad); font-size: 13px; min-height: 18px; }

/* modal e toast */
.modal-back { position: fixed; inset: 0; background: rgba(16, 24, 40, .45); z-index: 100; display: grid; place-items: end center; }
.modal { background: var(--surface); width: 100%; max-width: 680px; max-height: 92vh; display: flex; flex-direction: column; border-radius: 16px 16px 0 0; }
@media (min-width: 700px) { .modal-back { place-items: center; } .modal { border-radius: 16px; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 16px; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; transition: .25s; background: #182033; color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 200; font-size: 14px; max-width: 90vw; }
.toast.err { background: var(--bad); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.md h2, .md h3, .md h4, .md h5 { margin: 16px 0 6px; text-transform: none; letter-spacing: 0; color: var(--text); }
.md h2 { font-size: 18px; } .md h3 { font-size: 16px; } .md h4 { font-size: 14px; }
.md ul, .md ol { padding-left: 20px; margin: 4px 0 10px; }
.md pre { background: var(--bg); padding: 10px; border-radius: 8px; overflow: auto; font-size: 12.5px; }
.md blockquote { border-left: 3px solid var(--brand); margin: 8px 0; padding: 4px 10px; background: var(--info-bg); }
.md table { margin: 6px 0; }

/* proposta */
.proposal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; font-size: 13px; }
.prop-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--brand); padding-bottom: 10px; margin-bottom: 12px; gap: 10px; }
.prop-logo { max-height: 54px; max-width: 220px; object-fit: contain; }
.prop-brand { font-size: 26px; font-weight: 800; color: var(--brand); }
.prop-meta { text-align: right; font-size: 11px; color: var(--muted); }
.prop-title { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.prop-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 18px; margin-bottom: 14px; }
.info { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid #EEF1F6; padding: 4px 0; font-size: 12px; }
.info span { color: var(--muted); }
.prop-mccs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.proposal .t.mini { font-size: 11.5px; }
.proposal .t.mini td, .proposal .t.mini th { padding: 3px 5px; }
.prop-mcc { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.prop-mcc-head { border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; margin-bottom: 8px; font-size: 12px; }
.prop-mcc-head strong { font-size: 15px; margin-right: 6px; }
.prop-sub { color: var(--brand); font-weight: 600; margin: 8px 0 4px; font-size: 12.5px; }
.prop-note { color: var(--brand); margin: 12px 0; }
.prop-contact { margin-top: 14px; }
.prop-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 12px; padding-top: 8px; }
.proposal .tablewrap { border-radius: 6px; }

.hide-sm { }
@media (max-width: 640px) { .hide-sm { display: none !important; } h1 { font-size: 20px; } .content { padding: 12px; } .panel { padding: 12px; } }

/* impressão: só o conteúdo principal; na proposta, só a proposta */
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: #fff; font-size: 11px; }
  .side, .top, .bottom, .acting, .mod-inputs, .mod-head, .note { display: none !important; }
  .layout { display: block; }
  .content { padding: 0; max-width: none; }
  .panel, .kpi, .tablewrap { box-shadow: none; break-inside: avoid; }
  .mod-body { display: block; }
  .proposal { border: 0; padding: 0; }
  .prop-mccs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .prop-mcc { break-inside: avoid; padding: 6px; }
  .t.mini td, .t.mini th { padding: 2px 4px; font-size: 9px; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* tabelas largas rolam dentro do quadro, sem alargar a página no celular */
.main, .content, .mod-body > *, .mod-inputs, .mod-results, .panel, .two > *, .three > *, .ratebox { min-width: 0; }

.cart-item { display: flex; flex-direction: column; gap: 4px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.cart-custo select { font-size: 12.5px; padding: 5px 8px; color: var(--muted); }
.infobox { background: var(--info-bg); color: var(--text); border-radius: 8px; padding: 10px 12px; font-size: 13px; margin: 8px 0; }
.infobox ul { margin: 6px 0 0; padding-left: 18px; }

/* Precificação: composição do preço */
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 190px) 1fr minmax(120px, auto); gap: 10px; align-items: center; font-size: 13px; }
.bar-l { color: var(--muted); }
.bar-track { background: var(--line); border-radius: 99px; height: 10px; overflow: hidden; min-width: 0; }
.bar-fill { display: block; height: 100%; background: var(--brand, #1F5FBF); border-radius: 99px; opacity: .75; }
.bar-fill.good { background: var(--good); opacity: 1; }
.bar-v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) { .bar-row { grid-template-columns: 1fr auto; } .bar-track { grid-column: 1 / -1; order: 3; } }

/* Precificação: passo a passo do cálculo */
.passo { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.passo:first-of-type { border-top: 0; }
.passo-n { width: 26px; height: 26px; border-radius: 50%; background: var(--brand, #1F5FBF); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.passo .tiny { line-height: 1.6; margin-top: 2px; overflow-wrap: anywhere; }
table.mini { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
table.mini td { padding: 4px 0; border-bottom: 1px dashed var(--line); }
table.mini td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
table.mini tr.total td { font-weight: 700; border-bottom: 0; }

/* Quanto o cliente recebe */
.recv { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.recv-bar { display: inline-block; width: 90px; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.recv-bar i { display: block; height: 100%; background: var(--good); border-radius: 99px; }
@media (max-width: 560px) { .recv-bar { display: none; } }
.extrato-total { margin-top: 10px; padding: 10px 12px; background: var(--bg, #F3F5F9); border-radius: 10px; font-size: 14px; }
.extrato-total strong { font-size: 16px; }

/* Simulador para Diretoria */
tr.grp td { background: var(--bg, #F3F5F9); border-top: 2px solid var(--line); }
.row-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

/* ---------- Proposta para o cliente (modelo padrão) ---------- */
.pc { background: #fff; color: #1F2733; border: 1px solid var(--line); border-radius: 12px; padding: 28px 32px; font-size: 13px; line-height: 1.5; }
.pc-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #0B2545; padding-bottom: 8px; margin-bottom: 14px; }
.pc-logo { max-height: 40px; max-width: 200px; object-fit: contain; }
.pc-brand { font-size: 22px; font-weight: 800; color: #0B2545; }
.pc-toptxt { font-size: 10px; letter-spacing: 3px; color: #5B6577; font-weight: 600; }
.pc-hero { background: #0B2545; color: #fff; border-left: 6px solid #E3120B; padding: 18px 22px; margin-bottom: 18px; }
.pc-hero h1 { margin: 0; font-size: 22px; letter-spacing: 3px; color: #fff; }
.pc-hero p { margin: 4px 0 0; font-size: 12px; opacity: .85; }
.pc-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: #EEF3FA; margin-bottom: 18px; }
.pc-meta > div { padding: 10px 12px; background: #F7F9FC; display: flex; flex-direction: column; gap: 2px; }
.pc-meta small { font-size: 9px; letter-spacing: 2px; color: #5B6577; font-weight: 600; }
.pc-meta b { color: #0B2545; }
.pc-sec { margin-bottom: 16px; }
.pc-sec h3 { font-size: 14px; letter-spacing: 2px; color: #0B2545; border-bottom: 1px solid #DDE4EE; padding-bottom: 4px; margin: 0 0 10px; }
.pc-num { color: #E3120B; }
.pc-sub { color: #004BAE; font-weight: 700; margin: 12px 0 6px; }
.pc-kv, .pc-t { width: 100%; border-collapse: collapse; font-size: 12px; }
.pc-kv th { background: #EEF3FA; text-align: left; width: 34%; font-weight: 700; }
.pc-kv th, .pc-kv td { border: 1px solid #DDE4EE; padding: 6px 9px; }
.pc-t thead th { background: #0B2545; color: #fff; font-weight: 600; padding: 7px 8px; text-align: center; }
.pc-t thead th:first-child { text-align: left; }
.pc-t td { border-bottom: 1px solid #DDE4EE; padding: 6px 8px; text-align: center; font-variant-numeric: tabular-nums; }
.pc-t td.l { text-align: left; font-weight: 600; }
.pc-t tbody tr:nth-child(even) td { background: #F7F9FC; }
.pc-t tr.pc-total td { font-weight: 700; background: #EEF3FA; }
.pc-list { margin: 6px 0; padding-left: 18px; }
.pc-list li::marker { color: #E3120B; }
.pc-pos { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: start; }
.pc-posimg { width: 150px; height: auto; }
.pc-nota { font-size: 10.5px; color: #5B6577; font-style: italic; margin: 6px 0 0; }
.pc-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 26px; }
.pc-sign > div { border-top: 1px solid #1F2733; padding-top: 6px; }
.pc-sign p { margin: 4px 0; color: #5B6577; }
.pc-line { display: inline-block; width: 70%; border-bottom: 1px solid #9AA4B2; height: 12px; vertical-align: bottom; }
.pc-foot { margin-top: 18px; border-top: 1px solid #DDE4EE; padding-top: 6px; font-size: 10px; color: #5B6577; }
.pc-grade input { min-width: 70px; }
@media (max-width: 640px) { .pc { padding: 14px; } .pc-pos { grid-template-columns: 1fr; } .pc-meta { grid-template-columns: 1fr; } .pc-t { font-size: 10.5px; } }
@media print {
  .pc { border: 0; padding: 0; font-size: 10.5px; border-radius: 0; }
  .pc-sec { break-inside: auto; }
  .pc-t, .pc-kv, .pc-pos, .pc-sign, .pc-hero, .pc-meta { break-inside: avoid; }
  .pc-sub { break-after: avoid; }
  .pc-sec h3 { break-after: avoid; }
  .screen-only { display: none !important; }
  html, body, .layout, .main, .content, .mod-body, .mod-results { background: #fff !important; min-height: 0 !important; height: auto !important; padding-bottom: 0 !important; margin-bottom: 0 !important; }
  .mod-results > .panel { border: 0; padding: 0; background: #fff; }
}
.field.wide textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
.pc-pagina { width: 100%; border-collapse: collapse; }
.pc-pagina > thead > tr > td, .pc-pagina > tbody > tr > td { padding: 0; }
@media print { .pc-pagina > thead { display: table-header-group; } .pc-top { margin-bottom: 8px; } }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.pub-prop { max-width: 900px; margin: 0 auto; padding: 16px; }
.pub-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; font-weight: 700; color: var(--brand); }
.pub-dica { margin: 0 0 10px; }
@media print { .pub-bar, .pub-dica { display: none !important; } .pub-prop { padding: 0; max-width: none; } }
.warn-txt { color: var(--bad, #b42318); margin: 0; }
.pc-obs { margin-top: 8px; padding: 10px 12px; background: #F7F9FC; border-left: 4px solid #004BAE; font-size: 12px; break-inside: avoid; }
.pc-obs p { margin: 4px 0; }
.pc-cesta-ed { border: 1px dashed var(--line); border-radius: 8px; padding: 10px; margin: 8px 0; }

.pc-aceite { break-inside: avoid; page-break-inside: avoid; }

/* Entrar com Google + autenticador (4.6.0) */
.login-ou { display: flex; align-items: center; gap: 10px; color: var(--muted, #6b7280); font-size: 13px; margin: 12px 0; }
.login-ou::before, .login-ou::after { content: ""; flex: 1; border-top: 1px solid #e3e7ee; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; text-decoration: none; font-weight: 600; }
.btn-google:hover { background: #f7f8fa; }
.btn svg { vertical-align: middle; }
.mfa-input { display: block; width: 100%; font-size: 26px; letter-spacing: 8px; text-align: center; padding: 10px; margin: 12px 0 6px; border: 1px solid #cfd6e2; border-radius: 10px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.mfa-qr { display: block; width: 200px; height: 200px; margin: 10px auto; background: #fff; padding: 6px; border: 1px solid #e3e7ee; border-radius: 10px; }
.mfa-passos { padding-left: 20px; margin: 6px 0; line-height: 1.5; font-size: 14px; }
.mfa-config details { margin: 4px 0 8px; }
.mfa-config code { font-size: 13px; word-break: break-all; }
.codigos-emerg { columns: 2; background: #f4f6fa; border-radius: 10px; padding: 12px 16px; font-size: 15px; line-height: 1.8; font-family: ui-monospace, Menlo, Consolas, monospace; text-align: center; }
.seg-item { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid #eef1f5; }
.seg-item:first-of-type { border-top: 0; }
.seg-item p { margin: 4px 0 0; }
p.ok { color: #0a7a3e; font-weight: 600; }
@media (max-width: 600px) { .seg-item { flex-direction: column; align-items: stretch; } }
.tag.good { background: #E3F6EA; color: #0a7a3e; margin: 4px 0 0; }
.tag.info { background: #E6EEFB; color: #1B3F8F; margin: 0 0 0 6px; }
.seg-item .btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.mod-below { margin-top: 16px; }
.pac-lim { white-space: normal; max-width: 300px; }
