/* Batimove — design system (sóbrio, estilo Apple / Vercel) */
:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #86868b;
  --line: #e8e8ed;
  --line-2: #d2d2d7;
  --accent: #0071e3;          /* azul Apple para links e foco */
  --brand: #24629d;           /* azul Batimove */
  --black: #1d1d1f;
  --ok: #248a3d; --ok-bg: #e9f7ee;
  --warn: #b25000; --warn-bg: #fff6e5;
  --err: #d70015; --err-bg: #fff0f1;
  --r: 14px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 1px 1px rgba(0,0,0,.02);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --ease: cubic-bezier(.25,.1,.25,1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" 0;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-size: 15px; line-height: 1.47; letter-spacing: -.01em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.025em; margin: 0; line-height: 1.15; }
h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; margin: 2rem 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .8125rem; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.i { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 3px solid rgba(0,113,227,.35); outline-offset: 2px; border-radius: 8px; }

/* ---------------------------------------------------------------- barra de navegação (vidro fosco) */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251,251,253,.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.06); }
.nav-in { max-width: 1280px; margin: 0 auto; height: 56px; padding: 0 20px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; letter-spacing: -.02em; font-size: 1.02rem; }
.brand:hover { text-decoration: none; }
.brand img { height: 28px; width: auto; }
.seg { display: flex; gap: 2px; margin: 0 auto; background: rgba(0,0,0,.04); padding: 3px; border-radius: 12px; }
.seg a { display: flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 9px; color: var(--ink-2); font-size: .875rem; font-weight: 500; transition: background .2s var(--ease), color .2s var(--ease); }
.seg a:hover { text-decoration: none; color: var(--ink); }
.seg a .i { width: 17px; height: 17px; opacity: .8; }
.seg a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 1px rgba(0,0,0,.04); }
.me { position: relative; }
.me summary { list-style: none; cursor: pointer; }
.me summary::-webkit-details-marker { display: none; }
.av { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #3a7bd5, #24629d); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .02em; }
.av.sm { width: 24px; height: 24px; font-size: .625rem; }
.avs { display: inline-flex; }
.avs .av { border: 2px solid var(--surface); margin-left: -6px; }
.avs .av:first-child { margin-left: 0; }
.menu { position: absolute; right: 0; top: 44px; min-width: 220px; background: rgba(255,255,255,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; animation: pop .16s var(--ease); }
.menu-h { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; }
.menu-h span { color: var(--muted); font-size: .8125rem; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; color: var(--ink); background: none; border: 0; font: inherit; font-size: .9rem; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--surface-2); text-decoration: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* barra inferior (telemóvel, estilo iOS) */
.tabbar { display: none; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 28px 20px 64px; }

/* ---------------------------------------------------------------- cabeçalhos de página */
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; justify-content: space-between; margin: 0 0 18px; }
.bar h2 { margin: 2rem 0 0; }
.eyebrow { color: var(--muted); font-size: .875rem; font-weight: 500; margin: -10px 0 18px; }
.weeknav { display: flex; gap: 6px; align-items: center; }
.weeklabel { margin: -8px 0 18px; text-transform: capitalize; color: var(--muted); font-size: .9rem; }

/* ---------------------------------------------------------------- botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; height: 36px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s var(--ease), border-color .15s var(--ease), transform .1s var(--ease); }
.btn:hover { text-decoration: none; background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--black); border-color: var(--black); color: #fff; }
.btn.primary:hover { background: #000; }
.btn.danger { color: var(--err); border-color: #f3c6ca; }
.btn.ok { color: var(--ok); border-color: #bfe3ca; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: rgba(0,0,0,.05); }
.btn.sm { height: 30px; padding: 0 11px; font-size: .8125rem; }
.btn.icon { width: 36px; padding: 0; font-size: 1.1rem; }
.inline { display: inline; }
.jump { height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font: inherit; font-size: .875rem; background: var(--surface); color: var(--ink); min-height: 0; width: auto; }

/* ---------------------------------------------------------------- mensagens */
.toast, .flash { padding: 12px 16px; border-radius: var(--r-sm); margin: 0 0 18px; font-size: .9rem; border: 1px solid transparent; }
.toast.ok, .flash.ok { background: var(--ok-bg); color: #1b6b30; border-color: #cdebd6; }
.toast.err, .flash.err { background: var(--err-bg); color: #a1000f; border-color: #fad1d5; }
.flash.warn { background: var(--warn-bg); color: #7a3d00; border-color: #f7dfb5; }
.flash ul { margin: 6px 0 0; padding-left: 1.1rem; }
.toast { animation: pop .25s var(--ease); }

/* ---------------------------------------------------------------- planeamento (semana) */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day { background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); min-height: 160px; padding: 10px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.day.weekend { background: #fcfcfd; }
.day.today { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,113,227,.12); }
.day header a { color: var(--ink-2); display: flex; align-items: baseline; gap: 6px; padding: 2px 4px; text-transform: capitalize; font-size: .8125rem; }
.day header a b { font-weight: 600; color: var(--ink); }
.day.today header a b { color: var(--accent); }
.day header a:hover { text-decoration: none; color: var(--accent); }
.empty { color: var(--line-2); text-align: center; margin: 12px 0; }
.job { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 10px; background: var(--c); color: var(--tc); font-size: .8125rem; box-shadow: 0 1px 2px rgba(0,0,0,.12), inset 0 0 0 1px rgba(255,255,255,.06); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.job:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.14); }
.job strong { font-size: .875rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.job .jt { display: flex; justify-content: space-between; align-items: center; opacity: .85; font-variant-numeric: tabular-nums; font-size: .75rem; font-weight: 500; }
.job .warn { background: #ffcc00; color: #1d1d1f; border-radius: 50%; width: 18px; height: 18px; display: inline-grid; place-items: center; font-size: .7rem; font-weight: 700; }
.job .cl, .job .ppl { opacity: .88; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job.done { opacity: .62; }
.job.canceled { opacity: .45; text-decoration: line-through; }

/* ---------------------------------------------------------------- cartões e formulários */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 18px; }
.form.compact { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.form .wide { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .8125rem; color: var(--ink-2); font-weight: 500; }
.form label.check { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); font-weight: 400; font-size: .9375rem; }
input, select, textarea { font: inherit; font-size: .9375rem; color: var(--ink); padding: 0 12px; height: 40px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); width: 100%; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
textarea { padding: 10px 12px; height: auto; resize: vertical; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%2386868b' stroke-width='1.5'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); }
input[type=color] { padding: 4px; height: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,113,227,.15); }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px 14px; margin: 0; }
legend { font-size: .8125rem; font-weight: 500; color: var(--ink-2); padding: 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); cursor: pointer; color: var(--ink); font-size: .875rem; transition: all .15s var(--ease); }
.chip input:checked + span { background: var(--black); color: #fff; border-color: var(--black); }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(0,113,227,.25); }
.chip.away span { border-style: dashed; }
.catchip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: .875rem; }
.catchip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.catchip:hover { text-decoration: none; background: var(--surface-2); }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.actions.split { justify-content: space-between; margin-top: 16px; }
.addline { padding: 0; overflow: hidden; }
.addline summary { cursor: pointer; font-weight: 500; color: var(--ink); padding: 14px 20px; list-style: none; display: flex; align-items: center; gap: 10px; }
.addline summary::-webkit-details-marker { display: none; }
.addline summary .plus { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--black); color: #fff; font-size: 1rem; line-height: 1; transition: transform .2s var(--ease); }
.addline[open] summary .plus { transform: rotate(45deg); }
.addline[open] summary { border-bottom: 1px solid var(--line); }
.addline > form { padding: 20px; }
.preview { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
[data-show] { display: none !important; }
[data-show].shown { display: flex !important; }

/* filtros (cápsulas) */
.pills { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 0 20px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pills a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; height: 34px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: .875rem; font-weight: 500; }
.pills a.all { padding-left: 14px; }
.pills a:hover { text-decoration: none; border-color: var(--line-2); }
.pills a.on { background: var(--black); color: #fff; border-color: var(--black); }
.pills a.on .av { background: rgba(255,255,255,.2); }

/* ---------------------------------------------------------------- tabelas */
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl th { font-size: .75rem; color: var(--muted); font-weight: 500; }
.tbl .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl tfoot td { font-weight: 600; border-top: 1px solid var(--line); border-bottom: 0; }
.tbl tr.inactive td { color: var(--muted); }
.tbl tbody tr { transition: background .12s var(--ease); }
.tbl tbody tr:hover { background: #fafafc; }
.rowact { white-space: nowrap; text-align: right; }
.rowact form, .rowact a { margin-left: 4px; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: .75rem; font-weight: 500; margin-right: 4px; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.open { background: #eef4fd; color: #0060c0; }
.badge.closed { background: var(--warn-bg); color: var(--warn); }
.badge.paid { background: var(--ok-bg); color: var(--ok); }

/* ---------------------------------------------------------------- indicadores (KPI) */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi .l { color: var(--muted); font-size: .8125rem; font-weight: 500; }
.kpi .v { font-size: 1.6rem; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 2px; line-height: 1.2; }
.kpi .v small { font-size: .9rem; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-right: 3px; }
.kpi .s { color: var(--muted); font-size: .75rem; margin-top: 2px; }

/* ---------------------------------------------------------------- diárias: resumo por pessoa */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.person.on { border-color: var(--ink); }
.person-h { display: flex; align-items: center; gap: 12px; }
.person-h a { color: var(--ink); font-weight: 600; }
.person-h .tot { margin-left: auto; font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.person-m { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.person-m b { color: var(--ink-2); font-weight: 500; }
.person .actions { gap: 6px; }

/* diárias: linhas agrupadas por dia */
.days { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.dgroup + .dgroup { border-top: 1px solid var(--line); }
.dhead { display: flex; align-items: baseline; gap: 10px; padding: 12px 18px 4px; }
.dhead .d { font-weight: 600; text-transform: capitalize; }
.dhead .dt { margin-left: auto; color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.dhead .multi { font-size: .75rem; color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: 1px 8px; }
.line { display: grid; grid-template-columns: minmax(140px, 1.1fr) minmax(0, 2fr) auto auto; align-items: center; gap: 4px 16px; padding: 8px 18px; }
.line:last-child { padding-bottom: 14px; }
.line .who { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; font-size: .875rem; }
.line .what { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; font-size: .875rem; color: var(--ink-2); }
.line .kind { display: inline-flex; height: 22px; align-items: center; padding: 0 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink); font-size: .75rem; font-weight: 500; white-space: nowrap; }
.line .amt { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line .amt small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }
.line .act { display: flex; align-items: center; gap: 6px; justify-content: flex-end; min-width: 110px; }
.line.paid .amt { color: var(--ok); }
.lock { color: var(--muted); font-size: .8rem; }

/* ---------------------------------------------------------------- histórico (linha do tempo) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; align-items: center; }
.filters input[type=search] { width: 260px; height: 36px; border-radius: 999px; padding: 0 14px; font-size: .875rem; }
.filters select { width: auto; height: 36px; border-radius: 999px; font-size: .875rem; }
.timeline { position: relative; }
.tday { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 0 0 22px; }
.tday-h { position: sticky; top: 72px; align-self: start; }
.tday-h .wd { color: var(--muted); font-size: .8125rem; text-transform: capitalize; }
.tday-h .dd { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.tday-h .mm { color: var(--muted); font-size: .8125rem; text-transform: capitalize; }
.tlist { display: flex; flex-direction: column; gap: 10px; }
.entry { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 14px 20px; box-shadow: var(--shadow); overflow: hidden; }
.entry::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--line-2)); }
.entry-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.entry-h .t { font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.entry-h .t:hover { text-decoration: none; color: var(--accent); }
.entry-h .time { color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.entry-h .cat { margin-left: auto; font-size: .75rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.entry-h .cat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.meta { display: grid; grid-template-columns: 18px 1fr; gap: 4px 8px; margin-top: 8px; color: var(--ink-2); font-size: .875rem; }
.meta .i { width: 16px; height: 16px; color: var(--muted); margin-top: 2px; }
.pay { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.pay span { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 4px; border-radius: 999px; background: var(--surface-2); font-size: .8125rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.entry.solo { --c: #c7c7cc; }
.status-done { color: var(--ok); font-size: .75rem; font-weight: 500; }
.status-planned { color: var(--accent); font-size: .75rem; font-weight: 500; }
.status-canceled { color: var(--muted); font-size: .75rem; font-weight: 500; text-decoration: line-through; }

/* ---------------------------------------------------------------- login */
.login { max-width: 380px; margin: 10vh auto; padding: 32px; }
.login .logo { display: block; width: 150px; margin: 0 auto 24px; }

/* ---------------------------------------------------------------- telemóvel */
@media (max-width: 960px) {
  .week { grid-template-columns: 1fr; }
  .day { min-height: 0; }
  .day .empty { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .seg, .me, .brand span { display: none; }
  .nav-in { height: 48px; justify-content: center; }
  .tabbar { display: flex; position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(251,251,253,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid rgba(0,0,0,.08); justify-content: space-around; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: .6875rem; font-weight: 500; padding: 4px 10px; min-width: 64px; }
  .tabbar a .i { width: 24px; height: 24px; }
  .tabbar a.on { color: var(--accent); }
  .tabbar a:hover { text-decoration: none; }
  body { font-size: 16px; }
  .wrap { padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
  h1 { font-size: 1.6rem; }
  .bar > .btn.primary { width: 100%; height: 44px; }
  .line { grid-template-columns: 1fr auto; }
  .line .what { grid-column: 1 / -1; grid-row: 2; }
  .line .act { grid-column: 1 / -1; justify-content: flex-start; min-width: 0; }
  .tday { grid-template-columns: 1fr; gap: 8px; }
  .tday-h { position: static; display: flex; align-items: baseline; gap: 8px; }
  .filters input[type=search] { width: 100%; }
  .rowact { white-space: normal; }
}

/* ---------------------------------------------------------------- folha para imprimir / PDF */
.print-page { background: #fff; }
.sheet { max-width: 800px; margin: 0 auto; padding: 32px; }
.sheethead { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 20px; }
.sheethead img { height: 64px; }
.sheethead div { text-align: right; font-size: .875rem; }
.sheet h1 { font-size: 1.4rem; margin-bottom: 6px; }
.tbl.print th, .tbl.print td { padding: 6px 8px; font-size: .875rem; }
.tbl.print tr.grand td { font-size: 1.05rem; border-top: 2px solid var(--ink); }
.signs { display: flex; gap: 48px; margin-top: 56px; }
.signs div { flex: 1; border-top: 1px solid var(--ink); padding-top: 6px; font-size: .8125rem; color: var(--ink-2); }
@media print {
  @page { size: A4; margin: 14mm; }
  .noprint { display: none !important; }
  .sheet { padding: 0; max-width: none; }
  body { font-size: 12px; }
  .tablewrap { box-shadow: none; border: 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
