/* Layout: coluna única de app. Cabeçalho fixo com logo e semana, conteúdo rolável, navegação inferior com 6 abas.
   Identidade: cores medidas no logo da empresa (azul marinho, vermelho, azul-petróleo, cinza).
   Detalhe do assunto: linha tracejada de estrada no destaque do lucro. */
:root {
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-logo: 'Montserrat', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --bg: #EFF2F8; --surface: #FFFFFF; --surface2: #E4EAF3;
  --ink: #101A33; --muted: #55617C; --line: #D5DCE9;
  --accent: #253D84; --accent-ink: #FFFFFF;
  --brand-red: #C7242D; --brand-navy: #253D84; --brand-teal: #2D8FA8; --brand-gray: #818285;
  --good: #17703F; --good-bg: #DAF0E3;
  --warn: #8A5200; --warn-bg: #FBEACB;
  --bad: #B3261E; --bad-bg: #F9DCD8;
  --hero-bg: #253D84; --hero-fg: #F4F7FF; --hero-line: rgba(255,255,255,.36); --hero-neg-bg: #8E2A22;
  --scrim: rgba(10,14,28,.52);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1222; --surface: #151D33; --surface2: #1E2842;
    --ink: #E8EDF8; --muted: #97A3C0; --line: #2B3654;
    --accent: #6FB6D2; --accent-ink: #08202B;
    --brand-red: #FF6F78; --brand-navy: #8FA8F0; --brand-teal: #5BB8D6; --brand-gray: #A3A4A8;
    --good: #62D39A; --good-bg: #12342A;
    --warn: #F2BC57; --warn-bg: #392C0E;
    --bad: #FF8F86; --bad-bg: #3E1C19;
    --hero-bg: #1E3470; --hero-fg: #EEF3FF; --hero-line: rgba(255,255,255,.3); --hero-neg-bg: #5A2420;
    --scrim: rgba(0,0,0,.62);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1222; --surface: #151D33; --surface2: #1E2842;
  --ink: #E8EDF8; --muted: #97A3C0; --line: #2B3654;
  --accent: #6FB6D2; --accent-ink: #08202B;
  --brand-red: #FF6F78; --brand-navy: #8FA8F0; --brand-teal: #5BB8D6; --brand-gray: #A3A4A8;
  --good: #62D39A; --good-bg: #12342A;
  --warn: #F2BC57; --warn-bg: #392C0E;
  --bad: #FF8F86; --bad-bg: #3E1C19;
  --hero-bg: #1E3470; --hero-fg: #EEF3FF; --hero-line: rgba(255,255,255,.3); --hero-neg-bg: #5A2420;
  --scrim: rgba(0,0,0,.62);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 640px; margin-inline: auto; padding-inline: 16px; }
.num, .row-v, .item b, .kv b, .big { font-variant-numeric: tabular-nums; }

/* cabeçalho */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px 2px; }
.save { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex: none; }
.save i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); display: block; }
.save.busy i { background: var(--warn); }
.save.err i { background: var(--bad); }
.weeknav { display: flex; align-items: center; gap: 8px; padding-block: 6px 10px; }
.wn-btn { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; flex: none; background: var(--surface); }
.wn-btn svg, .icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wn-label { flex: 1; min-width: 0; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: .02em; line-height: 1; }
.wn-label small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.wn-today { min-height: 42px; padding: 0 12px; font-size: 13px; flex: none; }

main { padding-block: 16px 100px; }

/* navegação inferior */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabs .wrap { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font-size: 11px; font-weight: 500; color: var(--muted); min-width: 0; }
.tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab[aria-current="page"] { color: var(--accent); font-weight: 600; }
.tab[aria-current="page"] svg { stroke-width: 2.2; }

/* destaque do lucro */
.hero { background: var(--hero-bg); color: var(--hero-fg); border-radius: 14px; padding: 18px 16px 14px; }
.hero.neg { background: var(--hero-neg-bg); }
.hero .lbl { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.hero .big { font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 17vw, 72px); line-height: 1; margin: 6px 0 14px; overflow-wrap: anywhere; }
.hero .trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 2px dashed var(--hero-line); padding-top: 10px; }
.hero .trio span { display: block; font-size: 11px; letter-spacing: .04em; opacity: .85; overflow-wrap: anywhere; }
.hero .trio b { font-family: var(--font-display); font-weight: 600; font-size: 19px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

.sec { margin-top: 24px; }
.sec h2 { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 13px 14px; border-top: 1px solid var(--line); min-width: 0; }
.item:first-child { border-top: 0; }
.item > span { min-width: 0; overflow-wrap: anywhere; }
.item b { font-family: var(--font-display); font-weight: 600; font-size: 20px; white-space: nowrap; }
.item b.due { color: var(--warn); }
.item b.ok { color: var(--good); }
.item b.bad { color: var(--bad); }
.item.link::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); transform: rotate(45deg); flex: none; margin-left: -4px; }

/* linhas de serviço, ajudante, despesa */
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row-main { display: block; min-width: 0; text-align: left; }
.row-t { font-weight: 600; overflow-wrap: anywhere; }
.row-s { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.row-s.obs { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-style: italic; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.row-v { font-family: var(--font-display); font-weight: 600; font-size: 21px; white-space: nowrap; line-height: 1.1; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.ok { background: var(--good-bg); color: var(--good); }
.chip.due { background: var(--warn-bg); color: var(--warn); }
.chip.static { cursor: default; }
.day-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 16px 2px 6px; }
.day-h b { font-weight: 600; font-variant-numeric: tabular-nums; }
.grp { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 14px 8px; border-top: 1px solid var(--line); background: var(--surface2); }
.grp:first-child { border-top: 0; }
.grp strong { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: .03em; }
.grp span { font-size: 13px; color: var(--muted); }

/* calendário da semana */
.strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dchip { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0 7px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); min-width: 0; text-align: center; }
.dchip .wd { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.dchip .dn { font-family: var(--font-display); font-weight: 700; font-size: 23px; line-height: 1.1; border-bottom: 3px solid transparent; padding-inline: 2px; }
.dchip.today .dn { border-bottom-color: var(--accent); }
.dchip .ct { font-size: 11px; min-height: 16px; color: var(--muted); font-weight: 600; }
.dchip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dchip[aria-pressed="true"] .wd, .dchip[aria-pressed="true"] .ct { color: var(--accent-ink); opacity: .9; }
.dchip[aria-pressed="true"].today .dn { border-bottom-color: var(--accent-ink); }
.scope { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.scope b { color: var(--ink); font-variant-numeric: tabular-nums; }
.linkbtn { color: var(--accent); font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }

/* botões e campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 12px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); text-align: center; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.danger.armed { background: var(--bad); color: #fff; }
.btn.block { display: flex; width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }
.actions-col { display: grid; gap: 10px; margin-top: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .lab { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.inp { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; min-width: 0; }
textarea.inp { min-height: 76px; resize: vertical; }
.hint { font-size: 12px; color: var(--muted); }
.g2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 340px) { .g2 { grid-template-columns: minmax(0, 1fr); } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 14px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 500; }
.pick button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.seg button { min-height: 46px; text-align: center; font-weight: 600; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.ajrows { display: grid; }
.ajrow { display: grid; grid-template-columns: minmax(0, 1fr) 84px 96px; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.ajn { font-weight: 600; overflow-wrap: anywhere; }
.ajn small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.ajv { text-align: right; font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 7px; }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.kv > span { min-width: 0; overflow-wrap: anywhere; }
.kv b { font-weight: 600; text-align: right; }
.kv.sub { font-size: 12px; color: var(--muted); margin-top: -4px; }
.kv.total { border-top: 1px solid var(--line); padding-top: 9px; margin-top: 2px; font-weight: 700; }
.kv.total b { font-family: var(--font-display); font-size: 22px; }
.kv.neg b { color: var(--bad); }
.note { font-size: 13px; padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); display: grid; gap: 8px; justify-items: start; }
.note.err { background: var(--bad-bg); color: var(--bad); }
.note.info { background: var(--surface2); color: var(--ink); }
.note + .hero, .note + .note { margin-top: 12px; }
.note + .hero { margin-top: 12px; }
.empty { padding: 30px 16px; text-align: center; color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.empty strong { color: var(--ink); font-family: var(--font-display); font-size: 22px; letter-spacing: .02em; }
.list .empty { padding: 24px 16px; }

/* barras das últimas semanas */
.bars { display: grid; gap: 4px; padding: 6px 14px; }
.bar { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; text-align: left; width: 100%; min-height: 40px; }
.bar .tr { height: 12px; border-radius: 6px; background: var(--surface2); position: relative; overflow: hidden; }
.bar .fill { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 6px; opacity: .5; }
.bar.cur .fill { opacity: 1; }
.bar .fill.neg { background: var(--bad); }
.bar b { font-family: var(--font-display); font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
.bar.cur span:first-child { font-weight: 600; }

/* configurações */
.rate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.rate:first-of-type { border-top: 0; padding-top: 0; }
.rate-t { grid-column: 1 / -1; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--surface2); font-size: 14px; }
.tag button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.tag button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* janela de edição */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 640px; max-height: calc(100dvh - 20px); overflow-y: auto; background: var(--bg); border-radius: 18px 18px 0 0; padding: 16px 16px calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.sh-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sh-head h3 { margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.icon-btn { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; background: var(--surface); flex: none; }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; z-index: 60; max-width: calc(100% - 32px); text-align: center; }
/* logo no cabeçalho */
.logo { display: flex; align-items: center; gap: 9px; min-width: 0; }
.logo .emb { width: 42px; height: 37px; flex: none; display: block; }
.logo .emb svg { display: block; width: 100%; height: 100%; }
.logo .wm { display: flex; flex-direction: column; min-width: 0; line-height: 1; }
.logo .wm1 { font-family: var(--font-logo); font-style: italic; font-weight: 800; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo b { font-weight: 800; }
.logo .wr { color: var(--brand-red); }
.logo .wn { color: var(--brand-navy); }
.logo small { font-size: 9.5px; letter-spacing: .16em; color: var(--brand-navy); font-weight: 500; margin-top: 4px; white-space: nowrap; }

/* seções que abrem (deslocamento, material) */
.acc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.acc > summary { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 0 14px; font-weight: 600; cursor: pointer; list-style: none; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 2px 0 6px; flex: none; }
.acc[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.acc-v { margin-left: auto; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--accent); font-variant-numeric: tabular-nums; }
.acc-body { display: grid; gap: 14px; padding: 14px; border-top: 1px solid var(--line); }
.matrow { display: grid; grid-template-columns: minmax(0, 1fr) 84px 96px; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.matrow:first-child { border-top: 0; }
.matn { font-weight: 600; overflow-wrap: anywhere; }
.matn small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.outrow { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.outrow .kv b { font-family: var(--font-display); font-size: 19px; }
.span2 { grid-column: 1 / -1; }

/* configurações: ajudantes e materiais */
.aj-cfg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.aj-cfg .chip { justify-self: start; grid-column: 1 / -1; }
.add-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.add-row .btn { grid-column: 1 / -1; }
@media (max-width: 340px) { .aj-cfg, .add-row { grid-template-columns: minmax(0, 1fr); } }

/* números do destaque nunca quebram linha, mesmo se a fonte da internet não carregar */
.hero .big { font-size: clamp(40px, 13.5vw, 68px); white-space: nowrap; }
.hero .trio b { font-size: clamp(14px, 4.6vw, 19px); white-space: nowrap; }

/* escolha de tipo do serviço: três botões lado a lado */
.seg.s3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg.s3 button { font-size: 13px; padding: 0 4px; text-align: center; }

/* agenda */
.seg.vista { margin-bottom: 12px; }
.novo-btns { margin-bottom: 14px; }
.novo-btns .btn { padding: 0 8px; font-size: 14px; }
.seg.s4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg.s4 button { font-size: 13px; padding: 0 2px; text-align: center; }
.mes-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.mes-t { font-family: var(--font-display); font-weight: 700; font-size: 24px; text-transform: capitalize; letter-spacing: .02em; }
.mes-nav .icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.mwd { text-align: center; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding-bottom: 2px; }
.mcell { position: relative; aspect-ratio: 1 / 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.mcell .mn { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1; }
.mcell .mt { font-size: 11px; font-weight: 700; min-height: 13px; line-height: 13px; }
.mcell.agd { background: var(--brand-teal); border-color: var(--brand-teal); color: #fff; }
.mcell.cod { background: var(--good-bg); border-color: var(--good); color: var(--good); }
.mcell.mix { background: var(--brand-teal); border-color: var(--good); border-width: 2px; color: #fff; }
.mcell.today .mn { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.mcell.full::after { content: ""; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-red); box-shadow: 0 0 0 2px var(--surface); }
.mcell[aria-pressed="true"] { outline: 3px solid var(--accent); outline-offset: 1px; }
.legenda { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 10px 0 4px; font-size: 12px; color: var(--muted); }
.legenda span { display: inline-flex; align-items: center; gap: 5px; }
.lg { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.lg.agd { background: var(--brand-teal); } .lg.cod { background: var(--good); } .lg.full { background: var(--brand-red); border-radius: 50%; }
.legenda .linkbtn { margin-left: auto; }
.chip.ag { background: color-mix(in srgb, var(--brand-teal) 18%, var(--surface)); color: var(--brand-teal); }
.row.ag .row-t .hr { font-family: var(--font-display); font-weight: 700; color: var(--brand-teal); font-size: 20px; margin-right: 4px; }
.row.canc { opacity: .62; } .row.canc .row-t { text-decoration: line-through; }
.ag-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
a.mini, button.mini { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.mini.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); margin-left: auto; }
.itens { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.it { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface2); color: var(--ink); }
.it.o { background: transparent; border: 1px dashed var(--line); font-weight: 500; color: var(--muted); }
.alerta { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--bad); }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links:empty { display: none; }
.detlist { display: grid; gap: 8px; margin-top: 4px; }
.detlist:empty { display: none; }
.detrow { display: grid; grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr); gap: 8px; align-items: center; font-size: 13px; font-weight: 600; }
.prox { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand-teal); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.prox-h { padding: 10px 14px 4px; font-family: var(--font-display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; color: var(--muted); }
.prox-i { display: grid; gap: 1px; width: 100%; text-align: left; padding: 8px 14px; border-top: 1px solid var(--line); min-width: 0; }
.prox-i b { color: var(--brand-teal); } .prox-i span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }

.seg.s5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.seg.s5 button { font-size: 14px; padding: 0 2px; text-align: center; }

/* chamar ajudante */
.calllist { display: grid; gap: 8px; margin: 12px 0; }
.call { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); min-height: 56px; }
.call span { font-weight: 600; font-size: 17px; } .call small { color: var(--muted); font-size: 12px; }
.call em { font-style: normal; font-size: 12px; color: var(--good); font-weight: 600; margin-left: 6px; }
a.call:not(.off) { border-left: 4px solid var(--good); }
.call.off { opacity: .6; }
a.btn { text-decoration: none; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
