/* Party.u — app web. Identidade visual do Spark Buffet (cores oficiais: azul #51668B, verde #8EA48F,
   laranja #DC9657, lilás #926DA9, terracota #D27A4F; fonte ITC Benguiat nos títulos). Mesmo visual da barra lateral. */
@font-face { font-family: "Benguiat"; src: url("img/benguiat-bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
:root {
  --azul: #51668B; --verde: #8EA48F; --laranja: #DC9657; --lilas: #926DA9; --terracota: #D27A4F;
  --bg: #FAF7F3; --surface: #FFFFFF; --surface-2: #F2EDE7; --ink: #2B3650; --muted: #6B7084; --line: #E6DFD6;
  --accent: var(--azul); --accent-soft: #E8ECF3; --accent-ink: #FFFFFF; --brand-2: var(--laranja);
  --ok: #4E6A52; --ok-soft: #E6EDE5; --warn: #95531F; --warn-soft: #FAEBDA; --bad: #A24B28; --bad-soft: #F8E4DA; --info: #7A559A; --info-soft: #EFE7F5;
  --shadow: 0 1px 2px rgba(43,54,80,.06), 0 8px 24px rgba(43,54,80,.10);
  --f-display: "Benguiat", Georgia, "Times New Roman", serif;
  --f-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 12px;
  /* gráficos do Financeiro: azul e laranja da marca um passo mais fortes (conferidos com o validador de cores) */
  --fin-rec: #3F5FA3; --fin-arec: #C7742E;
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #1B2131; --surface: #232A3C; --surface-2: #2E3A54; --ink: #F1ECE5; --muted: #ADB3C6; --line: #3A4560;
  --accent: #A3B6D8; --accent-soft: #2E3A54; --accent-ink: #1B2131; --brand-2: #E8B07E;
  --ok: #A9C2AA; --ok-soft: #26352A; --warn: #E8B07E; --warn-soft: #3D2E1E; --bad: #EC9E7C; --bad-soft: #43291F; --info: #C6AADB; --info-soft: #33293F;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  --fin-rec: #6A8AD4; --fin-arec: #CF7E36;
  color-scheme: dark; } }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font: 14px/1.45 var(--f-body); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
h1.vt { font-family: var(--f-display); font-weight: 700; font-size: 26px; margin: 0; line-height: 1.1; text-wrap: balance; }
.sub { color: var(--muted); margin: 4px 0 16px; }

.top { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
/* Logo Spark Buffet; no escuro vai numa plaquinha creme para as cores da marca aparecerem */
.logo { display: inline-flex; align-items: center; border-radius: 8px; }
.logo img { height: 36px; width: auto; display: block; }
@media (prefers-color-scheme: dark) { .logo { background: #F8EFE8; padding: 4px 8px; } .logo img { height: 30px; } }
.marca { display: block; width: min(240px, 70%); height: auto; margin: 0 auto; }
.marca-plate { background: #fff; border-radius: 16px; padding: 14px 18px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.tab { border: 0; background: transparent; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; text-decoration: none; }
.tab:hover { background: var(--surface-2); color: var(--ink); }
.tab[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.who { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.lnk { border: 0; background: none; color: var(--muted); text-decoration: underline; padding: 0; }
main { padding: 18px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); max-width: 1500px; margin: 0 auto; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.p-ok { background: var(--ok-soft); color: var(--ok); } .p-warn { background: var(--warn-soft); color: var(--warn); }
.p-bad { background: var(--bad-soft); color: var(--bad); } .p-info { background: var(--info-soft); color: var(--info); }
.p-muted { background: var(--surface-2); color: var(--muted); } .p-accent { background: var(--accent-soft); color: var(--accent); }
.btn { border: 1px solid var(--line); background: var(--surface); padding: 7px 12px; border-radius: 8px; font-weight: 600; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.sm { padding: 4px 9px; font-size: 13px; }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .5; cursor: default; }
label.f { display: grid; gap: 3px; font-size: 12px; color: var(--muted); font-weight: 600; }
.in { width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 8px; font-size: 14px; color: var(--ink); }
textarea.in { resize: vertical; min-height: 54px; }
.lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.muted { color: var(--muted); }
.vazio { padding: 24px; text-align: center; color: var(--muted); }
.linkbtn { border: 0; background: none; color: var(--accent); font-weight: 700; padding: 0; text-align: left; }

/* login */
.login { max-width: 360px; margin: 10vh auto; padding: 24px; display: grid; gap: 12px; }
.login .sub { text-align: center; margin: 0 0 4px; }
.err { color: var(--bad); }
.warnt { color: var(--warn); }
/* WhatsApp pela ficha: abrir a conversa ou mandar a mensagem daqui */
.wa-box { display: grid; gap: 6px; margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.wa-box textarea { min-height: 56px; background: var(--surface); }
.wa-status { font-size: 12px; } .wa-status .ok { color: var(--ok); font-weight: 600; } .wa-status .warnt, .wa-status .err { font-weight: 600; }

/* Hoje */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { padding: 12px 14px; display: grid; gap: 2px; }
.kpi b { font: 700 26px/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); }
.today { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.today .card { padding: 12px 14px; display: grid; gap: 6px; min-width: 0; }
.today h3 { margin: 0; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 8px; padding: 8px 0; border-top: 1px solid var(--line); align-items: center; }
.item:first-of-type { border-top: 0; }
.item .t2 { color: var(--muted); font-size: 12px; grid-column: 1 / -1; overflow-wrap: anywhere; }
.mais { font-size: 12px; color: var(--muted); }

/* Funil */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 12px; }
.filtros label.f { min-width: 160px; }
.kanban-wrap { overflow-x: auto; padding-bottom: 8px; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 10px; align-items: start; }
.col { background: var(--surface-2); border-radius: var(--r); padding: 8px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 230px); min-height: 200px; }
.col.over { outline: 2px dashed var(--accent); }
.col-hd { display: flex; justify-content: space-between; font-weight: 700; font-size: 13px; padding: 2px 4px; }
.col-sem { background: var(--warn-soft); border: 1px dashed var(--warn); } .col-sem .col-hd { color: var(--warn); }
.msgs { display: grid; gap: 6px; } .msg { padding: 8px 10px; border-radius: 10px; max-width: 92%; font-size: 13px; }
.msg small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 2px; }
.msg.cli { background: var(--surface-2); justify-self: start; } .msg.buf { background: var(--accent-soft); justify-self: end; }
.col-nota { display: block; font-size: 11px; line-height: 1.35; padding: 0 2px 4px; }
.col-hd small { color: var(--muted); font-variant-numeric: tabular-nums; }
.col-body { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 40px; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: grab; display: grid; gap: 3px; text-align: left; }
.kcard:hover { border-color: var(--accent); }
.kcard .n { font-weight: 700; overflow-wrap: anywhere; } .kcard .d { font-size: 12px; color: var(--muted); }
.ask { background: var(--surface); border: 1px solid var(--bad); border-radius: 8px; padding: 8px; display: grid; gap: 6px; font-size: 13px; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; }

/* Agenda (estilo Google: semana ou mês). Cores dos eventos: festa fechada, reserva, degustação, conflito */
:root { --ev-festa: #51668B; --ev-res: #7A559A; --ev-deg: #A85A1C; --ev-conf: #B3261E; --ev-ink: #FFFFFF; --ev-agora: #D9534F; }
@media (prefers-color-scheme: dark) { :root { --ev-festa: #A3B6D8; --ev-res: #C6AADB; --ev-deg: #E8B07E; --ev-conf: #F28B82; --ev-ink: #1B2131; --ev-agora: #F07A6E; } }
.ag-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.ag-top h2 { margin: 0 6px; font: 700 22px var(--f-display); min-width: 170px; }
.ag-top .legend { width: 100%; margin-left: 0; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; vertical-align: -2px; }
.ev-festa { --c: var(--ev-festa); } .ev-res { --c: var(--ev-res); } .ev-deg { --c: var(--ev-deg); } .ev-conf { --c: var(--ev-conf); }
.sw.ev-festa, .sw.ev-res, .sw.ev-deg, .sw.ev-conf { background: var(--c); }
.ev { display: block; width: 100%; border: 0; border-radius: 5px; background: var(--c); color: var(--ev-ink); font-size: 12px; text-align: left; padding: 2px 6px; margin-top: 2px; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev b { font-weight: 700; } .ev.ev-passada { opacity: .55; }
.ev:hover { filter: brightness(1.08); }
.ag-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: auto; }
/* mês */
.ag-mes { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); min-width: 770px; }
.ag-dow { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--muted); padding: 8px 0 4px; text-transform: uppercase; border-left: 1px solid var(--line); }
.ag-dow:first-child, .ag-cel:nth-child(7n+8) { border-left: 0; }
.ag-cel { border-left: 1px solid var(--line); border-top: 1px solid var(--line); padding: 4px 5px 6px; min-width: 0; cursor: default; }
.ag-cel.fora .ag-dn { color: var(--muted); font-weight: 500; }
.ag-dn { display: block; margin: 0 auto 2px; border: 0; background: none; font-size: 12px; font-weight: 700; min-width: 26px; height: 26px; border-radius: 13px; padding: 0 6px; }
.ag-dn:hover { background: var(--surface-2); }
.ag-dn.hoje { background: var(--accent); color: var(--accent-ink); }
.ag-mais { border: 0; background: none; font-size: 12px; font-weight: 600; color: var(--muted); padding: 2px 6px; }
.ag-mais:hover { color: var(--ink); text-decoration: underline; }
/* semana */
.ag-sem { min-width: 760px; max-height: calc(100vh - 220px); min-height: 420px; overflow-y: auto; position: relative; }
.ag-sh { display: grid; grid-template-columns: 56px repeat(7, 1fr); position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--line); }
.ag-sh.ag-dia-todo { top: 66px; padding: 2px 0 4px; } .ag-sh.ag-dia-todo > div { padding: 0 3px; min-width: 0; }
.ag-gmt { font-size: 10px; color: var(--muted); align-self: end; padding: 0 0 4px 6px; }
.ag-shd { text-align: center; padding: 8px 0 6px; }
.ag-shd small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--muted); }
.ag-shd b { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font: 500 22px var(--f-body); }
.ag-shd.hoje small { color: var(--accent); } .ag-shd.hoje b { background: var(--accent); color: var(--accent-ink); }
.ag-grade { display: grid; grid-template-columns: 56px repeat(7, 1fr); position: relative;
  background: repeating-linear-gradient(to bottom, transparent 0 45px, var(--line) 45px 46px); }
.ag-horas { position: relative; }
.ag-horas span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; color: var(--muted); }
.ag-col { position: relative; border-left: 1px solid var(--line); }
.ag-col.hoje { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.ev-bloco { position: absolute; margin: 0; padding: 3px 6px; white-space: normal; z-index: 1; box-shadow: 0 0 0 1px var(--surface); }
.ev-bloco b, .ev-bloco small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-bloco small { font-size: 11px; opacity: .9; }
.ag-agora { position: absolute; left: -1px; right: 0; height: 2px; background: var(--ev-agora); z-index: 2; pointer-events: none; }
.ag-agora::before { content: ""; position: absolute; left: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--ev-agora); }
/* janela de detalhe / formulário de degustação */
.ag-modal { position: fixed; inset: 0; z-index: 50; background: rgba(20, 24, 36, .35); display: grid; place-items: center; padding: 16px; }
.ag-jan { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 18px; display: grid; gap: 8px; }
.ag-jan h3 { margin: 0; font: 700 20px var(--f-display); }
.ag-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); }
.dg-form { display: grid; gap: 8px; }
.dg-status { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }
@media (max-width: 600px) { .ag-top h2 { width: 100%; order: -1; margin: 0; } .dg-form .g2 { grid-template-columns: 1fr; } }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-left: auto; }
.detalhe { margin-top: 14px; padding: 12px 14px; display: grid; gap: 6px; }

/* Cozinha */
.kitchen { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 14px; align-items: start; }
.k-list { display: grid; gap: 8px; }
.k-item { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 3px; }
.k-item[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.k-item .d { font-weight: 700; } .k-item .m { color: var(--muted); font-size: 13px; }
.k-detail { padding: 16px; display: grid; gap: 14px; }
.k-detail h2 { margin: 0; font: 700 26px/1.1 var(--f-display); }
.bigstats { display: flex; flex-wrap: wrap; gap: 10px; }
.bigstats div { background: var(--surface-2); border-radius: 8px; padding: 8px 12px; }
.bigstats b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.bigstats small { color: var(--muted); }
.restr { display: grid; gap: 6px; }
.restr div { background: var(--bad-soft); color: var(--bad); border-radius: 8px; padding: 8px 10px; font-weight: 700; }
.restr div span { font-weight: 400; color: var(--ink); }
.menu-items { columns: 2 240px; column-gap: 24px; margin: 0; padding-left: 18px; font-size: 13px; }
.menu-items li { break-inside: avoid; margin-bottom: 2px; }
/* Produção, equipe e custo (planilha de consumo) */
.cons { display: grid; gap: 8px; margin-top: 6px; }
.cons-custo { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; }
.cons-custo > div { background: var(--surface-2); border-radius: 8px; padding: 6px 10px; display: grid; }
.cons-custo small { color: var(--muted); font-size: 11px; }
.cons-custo b { font-size: 15px; }
.cons-custo b.neg { color: var(--bad); }
.cons-grupos { columns: 2 260px; column-gap: 20px; font-size: 13px; }
.cons-grupos > div { break-inside: avoid; margin-bottom: 8px; }
.cons-g { font-weight: 700; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.cons-i { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; border-bottom: 1px dotted var(--line); }
.cons-i b { white-space: nowrap; }
.cons-eq { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.cons-eq span { background: var(--surface-2); border-radius: 999px; padding: 2px 10px; }
.cons details summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.k-cardapio { margin: 2px 0 8px; font-size: 18px; font-weight: 700; color: var(--ink); }
.k-adic { background: var(--warn-soft); border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
.k-adic b { color: var(--warn); }
.k-adic ul { margin: 4px 0 0; padding-left: 18px; font-weight: 600; }
.check { display: grid; gap: 6px; }
.check label { display: flex; gap: 8px; align-items: center; }

/* Financeiro */
.fin-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.fin-top .sub { margin-bottom: 12px; }
.kpi-bad b { color: var(--bad); }
.fin-kpis .kpi b { font-size: 22px; white-space: nowrap; }
.fin-aviso { padding: 10px 14px; display: grid; gap: 4px; margin-bottom: 14px; background: var(--warn-soft); border-color: transparent; font-size: 13px; }
.fin-graf { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; margin-bottom: 14px; }
.graf-card { padding: 12px 14px; display: grid; gap: 6px; position: relative; min-width: 0; }
.graf-card h3 { margin: 0; font-size: 15px; }
.graf { width: 100%; height: auto; display: block; }
.graf .gr { stroke: var(--line); stroke-width: 1; }
.graf .ax { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.graf .ax.atual { fill: var(--ink); font-weight: 700; }
.graf .hit { fill: transparent; cursor: default; }
.graf .hit:hover { fill: var(--ink); fill-opacity: .04; }
.metas-graf .hit { cursor: pointer; }
.metas-graf .hit.sel { fill: var(--ink); fill-opacity: .06; }
.leg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.leg i, .dica-g i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.dica-g { position: absolute; z-index: 5; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 8px 10px; display: grid; gap: 2px; font-size: 12px; white-space: nowrap; }
.dica-g small { color: var(--muted); }
.vt-tab summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.vt-tab table { margin-top: 6px; font-size: 13px; }
.fin-festas { margin-top: 18px; display: grid; gap: 8px; }
.fin-festas h2 { font: 700 20px/1.1 var(--f-display); margin: 0; }
.seg { display: flex; gap: 4px; flex-wrap: wrap; }
.seg .btn.on { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.wa-box .btn.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.fin-tb { font-size: 13px; }
.fin-tb th.r, .fin-tb td.r { text-align: right; white-space: nowrap; }
.fin-tb td.num, .fin-tb td:first-child { white-space: nowrap; }
.fin-tb tbody tr[data-op] { cursor: pointer; }
.fin-tb tbody tr[data-op]:hover { background: var(--surface-2); }
.fin-tb tr.tot td { font-weight: 700; border-bottom: 0; }
.meter { display: inline-block; width: 64px; height: 6px; border-radius: 99px; background: var(--accent-soft); vertical-align: middle; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--fin-rec); border-radius: 99px; }

/* Usuários */
.tabela-wrap { overflow-x: auto; }
table.tb { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.tb th, .tb td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tb th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* Ficha (gaveta lateral) */
.ficha { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow); z-index: 40; display: flex; flex-direction: column; }
.ficha-hd { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ficha-body { overflow-y: auto; flex: 1; }
.sec { padding: 12px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.sec h4 { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cl { font: 700 22px/1.1 var(--f-display); margin: 0; overflow-wrap: anywhere; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 12px; }
.row { display: flex; gap: 6px; align-items: end; } .grow { flex: 1; min-width: 0; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.disp { border-radius: 8px; padding: 6px 10px; font-weight: 700; }
.disp.livre { background: var(--ok-soft); color: var(--ok); } .disp.res { background: var(--info-soft); color: var(--info); } .disp.fech { background: var(--bad-soft); color: var(--bad); }
.preco { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; display: grid; gap: 2px; }
.preco b { font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 12px; }
.chip button { border: 0; background: var(--surface-2); color: var(--muted); border-radius: 50%; width: 18px; height: 18px; padding: 0; }
.tarefa { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: var(--surface-2); }
.tarefa.venc { background: var(--warn-soft); }
/* "+ Adicionar …": formulário que só abre ao clicar (ficha e barra) */
details.add > summary { list-style: none; cursor: pointer; display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); padding: 2px 0; }
details.add > summary::-webkit-details-marker { display: none; }
details.add[open] > summary { color: var(--muted); }
.add-c { display: grid; gap: 8px; margin-top: 6px; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; }
.hist { display: grid; gap: 8px; font-size: 13px; }
.hist div { border-left: 2px solid var(--line); padding-left: 8px; overflow-wrap: anywhere; }
.hist small { display: block; color: var(--muted); font-size: 11px; }
.ia { background: var(--info-soft); border-radius: 8px; padding: 8px 10px; display: grid; gap: 4px; }

/* Telão */

.toast { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 9px 14px; border-radius: 8px; font-weight: 600; z-index: 60; max-width: calc(100vw - 32px); }
.toast.err { background: var(--bad); color: #fff; }

@media (max-width: 760px) {
  .kitchen { grid-template-columns: minmax(0, 1fr); }
  .today { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Checklist Comercial: escala da equipe */
.cc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.cc-top h2 { margin: 2px 0; }
.cc-resumo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 600px) { .cc-resumo { grid-template-columns: repeat(2, 1fr); } }
.cc-resumo > div { background: var(--surface-2); border-radius: 10px; padding: 8px 12px; display: grid; gap: 1px; align-content: start; }
.cc-resumo small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.cc-resumo b { font-size: 20px; }
.cc-resumo i { font-style: normal; font-size: 12px; color: var(--muted); }
.cc-resumo .neg b { color: var(--bad, #A24B28); }
.cc-resumo .alerta { background: var(--bad-soft); } .cc-resumo .alerta b, .cc-resumo .alerta small { color: var(--bad); }
.cc-abas { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.cc-g { margin-top: 6px; gap: 10px 16px; }
.cc-ul { margin: 4px 0 0; padding-left: 18px; }
.esc { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.esc-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.esc-res { display: flex; gap: 4px; flex-wrap: wrap; }
.esc-tb td { vertical-align: top; }
.esc-tb tr.esc-recusou td { background: #F3F1EE; color: #9A958E; }
.esc-tb tr.esc-recusou select.in { color: #9A958E; text-decoration: line-through; }
.esc-tb select.in option:disabled { color: #A9A49C; }
.esc-tb select.in { min-width: 170px; max-width: 260px; }
.esc-valor { width: 96px; text-align: right; }
.esc-tb td:nth-child(4) { min-width: 150px; }
.esc-arrasta { cursor: grab; color: var(--muted); margin-right: 6px; letter-spacing: -2px; user-select: none; }
.esc-arrasta:hover { color: var(--ink); }
.esc-tb tr.esc-arrastando td { opacity: .45; background: var(--surface-2); }
.esc-tb select.in.esc-st { min-width: 0; width: auto; border: 0; border-radius: 999px; font-size: 12px; font-weight: 700; padding: 3px 22px 3px 10px; height: auto; cursor: pointer; }
.esc-tb tr.esc-recusou select.in.esc-st { text-decoration: none; color: var(--bad); }
.esc-resp { display: block; margin-top: 3px; font-style: italic; color: var(--ink); }
.esc-acoes { white-space: nowrap; text-align: right; }
.esc-acoes .btn + .btn { margin-left: 4px; }
.esc-rodape { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.unif { display: grid; gap: 4px; padding: 8px 10px; background: var(--surface-2); border-radius: 10px; }
.unif-l { display: flex; flex-wrap: wrap; gap: 4px 18px; } .unif-l small { color: var(--muted); }
.cons-g.adic { color: var(--warn); }

/* Botões de impressão */
.pr-botoes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; background: var(--surface-2); border-radius: 10px; }
.pr-botoes .lbl { margin-right: 4px; }
.pr-par { display: inline-flex; } .pr-par .btn:first-child { border-radius: 8px 0 0 8px; } .pr-par .btn + .btn { border-radius: 0 8px 8px 0; margin-left: -1px; color: var(--ok); font-weight: 600; }

/* Impressão (A4): só o documento aparece */
/* painel "Ver na tela" da Cozinha */
.k-ver { margin-top: 14px; }
.k-ver-doc { margin-top: 12px; padding: 16px; background: #fff; border: 1px solid var(--line, #e3e6ee); border-radius: 10px; overflow-x: auto; max-width: 900px; }
#print-area { display: none; }
@media print {
  @page { size: A4; margin: 12mm 12mm 14mm; }
  body.imprimindo { background: #fff !important; }
  body.imprimindo > *:not(#print-area) { display: none !important; }
  body.imprimindo #print-area { display: block; }
}
.pr-doc { font: 10.5pt/1.4 "Montserrat", Arial, sans-serif; color: #1f2a40; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pr-doc .pv { color: #8a8fa0; font-style: italic; }
.pr-hd { display: flex; align-items: center; gap: 16px; border-bottom: 3px solid #DC9657; padding-bottom: 8px; margin-bottom: 10px; }
.pr-hd img { height: 46px; width: auto; }
.pr-tit { font: 700 18pt/1.1 "Benguiat", Georgia, serif; color: #51668B; }
.pr-sub { font-size: 11pt; color: #4b5266; margin-top: 2px; }
.pr-faixa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.pr-faixa > div { background: #F3EEE8; border-radius: 6px; padding: 6px 9px; display: grid; }
.pr-faixa small { font-size: 7.5pt; text-transform: uppercase; letter-spacing: .06em; color: #6B7084; font-weight: 700; }
.pr-faixa b { font-size: 11.5pt; }
.pr-faixa i { font-style: normal; font-size: 8pt; color: #6B7084; }
.pr-sec { display: flex; align-items: center; gap: 8px; font: 700 11pt/1.2 "Montserrat", Arial, sans-serif; color: #51668B; text-transform: uppercase; letter-spacing: .05em; margin: 14px 0 6px; break-after: avoid; }
.pr-sec span { background: #51668B; color: #fff; border-radius: 50%; width: 20px; height: 20px; display: inline-grid; place-items: center; font-size: 9pt; }
.pr-tab { width: 100%; border-collapse: collapse; break-inside: avoid; }
.pr-tab th, .pr-tab td { text-align: left; vertical-align: top; padding: 5px 8px; border-bottom: 1px solid #E6DFD6; }
.pr-tab th { width: 34%; color: #4b5266; font-weight: 600; background: #FAF7F3; }
.pr-alerta { border: 2px solid #A24B28; background: #F8E4DA; border-radius: 6px; padding: 6px 10px; margin: 6px 0; break-inside: avoid; }
.pr-alerta b { color: #A24B28; }
.pr-alerta ul { margin: 4px 0 0; padding-left: 18px; }
.pr-menu { border: 1px solid #E6DFD6; border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; }
.pr-menu-nome { font: 700 15pt/1.2 "Benguiat", Georgia, serif; color: #1f2a40; margin-bottom: 6px; }
.pr-cols { columns: 2; column-gap: 24px; margin: 0; padding-left: 18px; }
.pr-cols li { break-inside: avoid; margin-bottom: 2px; }
.pr-adic { background: #FAEBDA; border-radius: 6px; padding: 6px 10px; margin-top: 8px; }
.pr-adic b { color: #95531F; }
.pr-adic ul { margin: 3px 0 0; padding-left: 18px; font-weight: 600; }
.pr-nota { font-size: 9pt; color: #4b5266; margin: 0 0 8px; }
.pr-bloco { break-inside: avoid; margin-bottom: 10px; }
.pr-bloco h3 { font-size: 11pt; margin: 0 0 4px; color: #51668B; border-bottom: 1px solid #E6DFD6; padding-bottom: 2px; }
.pr-bloco h3 small { color: #8a8fa0; font-weight: 500; font-size: 8.5pt; }
.pr-lista { width: 100%; border-collapse: collapse; }
.pr-lista th { text-align: left; font-size: 8pt; text-transform: uppercase; letter-spacing: .05em; color: #6B7084; border-bottom: 1.5px solid #51668B; padding: 4px 6px; }
.pr-lista td { padding: 5px 6px; border-bottom: 1px solid #E6DFD6; vertical-align: middle; }
.pr-lista tr { break-inside: avoid; }
.pr-lista .q { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pr-lista .ck { width: 22px; }
.pr-lista .box { display: inline-block; width: 12px; height: 12px; border: 1.5px solid #51668B; border-radius: 2px; }
.pr-lista em { font-style: normal; font-size: 7.5pt; background: #FAEBDA; color: #95531F; border-radius: 3px; padding: 0 4px; }
.pr-lista tfoot td { font-weight: 700; border-bottom: 0; }
.pr-escala td.lin { border-bottom: 1px solid #9aa0b3; min-width: 70px; }
/* escala: sempre uma página só (linhas compactas; sem valores na impressão) */
.pr-1pag { break-inside: avoid; page-break-inside: avoid; max-height: 268mm; overflow: hidden; }
.pr-escala { font-size: 9pt; }
.pr-escala td { padding: 3px 6px; }
.pr-escala td.lin { height: 19px; }
.pr-conv-tit { font-size: 11pt; margin: 8px 0 4px; break-after: avoid; }
.pr-conv-tit small { font-weight: 400; color: #6B7084; font-size: 8.5pt; margin-left: 6px; }
.pr-st { font-size: 8pt; font-weight: 700; border-radius: 99px; padding: 1px 7px; background: #eee; }
.pr-st.confirmado { background: #E6EDE5; color: #4E6A52; } .pr-st.recusado { background: #F8E4DA; color: #A24B28; } .pr-st.convidado { background: #FAEBDA; color: #95531F; }
/* lista de convidados da recepção: 3 colunas de 30 nomes por página */
.pr-conv-cab { margin-bottom: 10px; font-size: 9.5pt; }
.pr-conv-cab th { width: 17%; } .pr-conv-cab td { width: 33%; }
.pr-conv-cab td.lin { border-bottom: 1px solid #9aa0b3; }
.pr-conv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 10px; break-inside: avoid; }
.pr-conv + .pr-conv { break-before: page; }
.pr-lote + .pr-lote { break-before: page; }
.pr-conv .pr-lista { font-size: 8.5pt; table-layout: fixed; }
.pr-conv .pr-lista td { padding: 2px 4px; height: 17.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-conv .pr-lista th { padding: 3px 4px; }
.pr-conv .pr-lista .n { width: 30px; padding-left: 0; text-overflow: clip; text-align: right; color: #8a8fa0; font-variant-numeric: tabular-nums; }
.pr-conv .ck { width: 24px; text-align: center; }
.pr-assina { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 22px; font-size: 9pt; color: #4b5266; text-align: center; break-inside: avoid; }
.pr-assina span { display: block; border-bottom: 1px solid #1f2a40; height: 26px; margin-bottom: 3px; }
.pr-equipe { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 9.5pt; margin: 0; }
.pr-ft { margin-top: 14px; padding-top: 6px; border-top: 1px solid #E6DFD6; font-size: 8pt; color: #8a8fa0; text-align: right; }
.esc-rodape .btn { white-space: nowrap; }

/* Financeiro: metas de festas vendidas (20 mínimo, 25 bom, 30 ótimo) */
:root { --meta-abaixo: #A7AEBF; --meta-minimo: #C7742E; --meta-bom: #3F5FA3; --meta-otimo: #4E8F5E; }
@media (prefers-color-scheme: dark) { :root { --meta-abaixo: #6B7590; --meta-minimo: #CF7E36; --meta-bom: #6A8AD4; --meta-otimo: #5FA772; } }
.metas { padding: 14px 16px; margin-bottom: 14px; display: grid; gap: 14px; }
.metas-top { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 16px; align-items: center; }
@media (max-width: 760px) { .metas-top { grid-template-columns: 1fr; } }
.metas-n { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.metas-n b { font: 700 56px/1 var(--f-body); letter-spacing: -1px; }
.metas-badge { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; color: #fff; background: var(--meta-abaixo); }
.metas-badge.minimo { background: var(--meta-minimo); } .metas-badge.bom { background: var(--meta-bom); } .metas-badge.otimo { background: var(--meta-otimo); }
.metas-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.metas-info > div { background: var(--surface-2); border-radius: 10px; padding: 8px 12px; display: grid; gap: 2px; align-content: start; }
.metas-info small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.metas-info b { font-size: 17px; }
.metas-info .metas-badge { justify-self: start; }
.metas-falta { font-size: 13px !important; font-weight: 500; line-height: 1.4; }
.metas-regua { position: relative; height: 16px; border-radius: 999px; background: var(--surface-2); margin: 4px 0 26px; }
.metas-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--meta-abaixo); transition: width .6s ease; }
.metas-fill.minimo { background: var(--meta-minimo); } .metas-fill.bom { background: var(--meta-bom); } .metas-fill.otimo { background: var(--meta-otimo); }
.metas-proj { position: absolute; inset: 0 auto 0 0; border-radius: 999px; border: 2px dashed var(--muted); opacity: .6; }
.metas-marca { position: absolute; top: -3px; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; padding-top: 24px; font-weight: 600; }
.metas-marca i { position: absolute; top: 0; left: 50%; width: 2px; height: 22px; background: var(--ink); opacity: .45; transform: translateX(-50%); }
.metas-graf .graf { margin-top: 4px; }
.graf .meta-l { stroke-width: 1.5; } .graf .meta-l.minimo { stroke: var(--meta-minimo); } .graf .meta-l.bom { stroke: var(--meta-bom); } .graf .meta-l.otimo { stroke: var(--meta-otimo); }
.graf .meta-t { fill: var(--muted); font-size: 11px; }
.graf .meta-v { fill: var(--ink); font-size: 11px; font-weight: 700; }
.graf .meta-b { fill: var(--meta-abaixo); } .graf .meta-b.minimo { fill: var(--meta-minimo); } .graf .meta-b.bom { fill: var(--meta-bom); } .graf .meta-b.otimo { fill: var(--meta-otimo); }
.graf .meta-proj { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 3; }
.metas-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--meta-abaixo); }
.metas-sw.minimo { background: var(--meta-minimo); } .metas-sw.bom { background: var(--meta-bom); } .metas-sw.otimo { background: var(--meta-otimo); }
.metas-sw.proj { background: none; border: 1.5px dashed var(--muted); }
.metas-conferir { background: var(--warn-soft); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.metas-conferir .linkbtn { font-weight: 700; }

/* Chamados (vistoria e manutenção) */
.ch-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ch-top .f { min-width: 180px; }
.ch-novo { display: grid; gap: 8px; max-width: 560px; margin-bottom: 14px; padding: 14px; }
.ch-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.ch-card { display: grid; gap: 6px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); cursor: pointer; font: inherit; color: inherit; }
.ch-card:hover { border-color: var(--accent); }
.ch-cont { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; align-items: center; }
.ch-link { display: grid; gap: 8px; padding: 12px 14px; margin-bottom: 12px; }
.ch-url { font: 12px ui-monospace, Consolas, monospace; background: var(--surface-2); border-radius: 8px; padding: 6px 8px; overflow-wrap: anywhere; }
.ch-filtros { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.ch-onde { font-size: 15px; margin: 18px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--borda, #e5e5e5); }
.ch-itens { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.ch-item { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 8px; }
.ch-item img, .ch-semfoto { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); font-size: 32px; }
.ch-item.ok { opacity: .6; }
.ch-txt { display: grid; gap: 2px; align-content: start; min-width: 0; } .ch-txt p { margin: 2px 0; font-size: 13px; }
.ch-resp { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; } .ch-resp .in { flex: 1 1 130px; min-width: 0; }
.ch-res { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; margin-top: 4px; cursor: pointer; }

/* Checklist Cozinha: lista de compras somada de várias festas */
.k-somar { width: 100%; margin-bottom: 6px; }
.k-item.marcada { border-color: var(--accent); background: var(--accent-soft); }
.k-ck { font-size: 15px; color: var(--accent); }
.k-marc { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 13px; }
.pr-por { font-size: 8.5pt; color: #555; }

/* Relatório de vistoria (Chamados): resumo por área e anotações com foto, 2 por linha */
.vs-info th { width: 16%; }
.vs-res { width: 100%; border-collapse: collapse; font-size: 9.5pt; break-inside: avoid; margin-bottom: 4px; }
.vs-res th, .vs-res td { border-bottom: 1px solid #E6DFD6; padding: 4px 6px; text-align: left; }
.vs-res th { background: #FAF7F3; color: #4b5266; font-weight: 600; } .vs-res .c { text-align: center; }
.vs-res tr.tot td { border-top: 2px solid #51668B; font-weight: 700; }
.vs-area { break-before: auto; }
.vs-area .pr-sec small { text-transform: none; letter-spacing: 0; color: #8a8fa0; font-weight: 500; }
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vs-item { border: 1px solid #E6DFD6; border-radius: 8px; overflow: hidden; break-inside: avoid; page-break-inside: avoid; display: grid; align-content: start; }
.vs-item img, .vs-semfoto { width: 100%; height: 62mm; object-fit: cover; display: block; background: #F2EDE7; }
.vs-semfoto { display: grid; place-items: center; color: #8a8fa0; font-size: 9pt; height: 14mm !important; }
.vs-txt { padding: 6px 9px 8px; display: grid; gap: 3px; font-size: 9.5pt; }
.vs-txt p { margin: 0; }
.vs-txt small { color: #6B7084; font-size: 8.5pt; }
.vs-cab { display: flex; align-items: center; gap: 6px; }
.vs-n { background: #51668B; color: #fff; border-radius: 6px; min-width: 22px; padding: 1px 6px; text-align: center; font-weight: 700; font-size: 9pt; }
.vs-box { display: inline-block; width: 10px; height: 10px; border: 1.2px solid #6B7084; border-radius: 2px; vertical-align: -1px; }
.vs-ok { color: #4E6A52; }
.vs-linha { margin-top: 4px; border-bottom: 1px solid #c9c2b8; height: 16px; font-size: 8.5pt; color: #8a8fa0; }
/* tamanhos do relatório: grande (padrão acima), médio para imprimir, econômico em lista */
.vs-medio .vs-grid { grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
.vs-medio .vs-item img { height: 38mm; }
.vs-medio .vs-txt { padding: 4px 6px 6px; font-size: 8.5pt; gap: 2px; }
.vs-medio .vs-txt small { font-size: 7.5pt; }
.vs-medio .vs-linha { height: 12px; font-size: 7.5pt; }
.vs-economico .vs-grid { grid-template-columns: 1fr 1fr; gap: 5px 8px; }
.vs-economico .vs-item { grid-template-columns: 26mm 1fr; align-items: start; }
.vs-economico .vs-item img, .vs-economico .vs-semfoto { width: 26mm; height: 26mm !important; }
.vs-economico .vs-txt { padding: 3px 6px; font-size: 8pt; gap: 1px; }
.vs-economico .vs-txt small { font-size: 7pt; }
.vs-economico .vs-linha { height: 10px; font-size: 7pt; margin-top: 2px; }
.vs-economico .pr-sec { margin: 9px 0 4px; }
.sel-sm { width: auto; padding: 4px 8px; font-size: 12px; }

/* Ficha enxuta (sem telefone): últimas mensagens com rolagem e aviso da mensagem pronta */
.msgs-rolagem { max-height: 250px; overflow-y: auto; padding-right: 4px; overscroll-behavior: contain; }
.compacto-resposta .wa-box textarea { min-height: 150px; resize: vertical; font-size: 14px; line-height: 1.45; }
.retomada { background: var(--warn-soft); color: var(--ink); border-radius: 8px; padding: 6px 10px; font-size: 12px; margin-bottom: 6px; }

/* Aviso de nova versão do app */
.nova-versao { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow); max-width: calc(100% - 32px); font-size: 14px; }
.nova-versao .btn:not(.primary) { background: transparent; color: var(--bg); border-color: rgba(255,255,255,.35); }

/* Funil: leads novos por dia (barras com e sem telefone) e filtro da coluna "Novo Contato" */
.graf-leads { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; display: grid; gap: 8px; }
.graf-leads.fechado { padding: 6px 12px; }
.graf-leads .row { gap: 6px; flex-wrap: wrap; }
.gbars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; align-items: end; height: 120px; }
.gb { all: unset; cursor: pointer; display: grid; grid-template-rows: 14px 1fr 14px; height: 100%; text-align: center; border-radius: 4px; }
.gb:hover, .gb:focus-visible { background: var(--surface-2); outline: none; }
.gb.sel { background: var(--accent-soft, var(--surface-2)); box-shadow: inset 0 0 0 1px var(--accent); }
.gcol { display: flex; flex-direction: column-reverse; justify-content: flex-start; margin: 0 2px; }
.gc { background: var(--accent); border-radius: 2px 2px 0 0; min-height: 0; }
.gs { background: var(--warn); opacity: .45; }
.gcol .gc:last-child, .gcol .gs:last-child { border-radius: 2px 2px 0 0; }
.gv { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; align-self: end; }
.gd { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gb.fds .gd { font-weight: 700; color: var(--ink); }
.leg { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin: 0 3px 0 8px; vertical-align: -1px; }
.leg.gc { background: var(--accent); } .leg.gs { background: var(--warn); opacity: .45; }
.col-filtro { padding: 0 2px 6px; } .col-filtro .in { width: 100%; font-size: 12px; padding: 4px 6px; }
@media (max-width: 640px) { .gv { display: none; } .gbars { height: 90px; gap: 1px; } .gd { font-size: 8px; } }

/* Ficha enxuta: "Marcar retorno" discreto embaixo da caixa de resposta */
.retorno-link { margin-top: 6px; font-size: 12px; }
.ask.retorno { border-color: var(--accent); margin-top: 8px; }
.ask.retorno .row { gap: 6px; flex-wrap: wrap; align-items: end; }
.chk { display: flex; gap: 6px; align-items: center; font-size: 13px; cursor: pointer; }

/* Responder em lote (#respostas): colunas por mensagem pronta, cards com as últimas mensagens e o texto que vai sair */
.lote-wrap { overflow-x: auto; padding-bottom: 8px; margin-top: 10px; }
.lote { display: grid; grid-auto-flow: column; grid-auto-columns: 320px; gap: 10px; align-items: start; }
.lcol { background: var(--surface-2); border-radius: var(--r); padding: 8px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 220px); }
.lcol-hd { display: grid; gap: 6px; padding: 2px 4px; }
.lcol-hd .row { gap: 6px; align-items: baseline; }
.lcol-body { display: grid; gap: 8px; overflow-y: auto; padding-right: 2px; }
.lcard { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: grid; gap: 6px; font-size: 13px; }
.lcard .row { gap: 6px; align-items: center; }
.lcard.marcado { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.lcard.ok { border-color: var(--ok); } .lcard.erro { border-color: var(--bad); }
.lcard textarea { min-height: 96px; font-size: 13px; line-height: 1.4; resize: vertical; }
.ia-mini { background: var(--info-soft); border-radius: 6px; padding: 4px 6px; font-size: 12px; }
.msgs-mini { display: grid; gap: 3px; font-size: 12px; max-height: 120px; overflow-y: auto; }
.msgs-mini .cli { color: var(--ink); } .msgs-mini .buf { color: var(--muted); }
.msgs-mini small { color: var(--muted); font-size: 10px; }
.lstatus { font-weight: 700; font-size: 12px; }
.lcard.ok .lstatus { color: var(--ok); } .lcard.erro .lstatus { color: var(--bad); }
.col-sem .btn { justify-self: start; text-decoration: none; }
/* Responder em lote: abas das colunas, coluna de leads novos em destaque e o que foi personalizado */
.lote-abas { gap: 6px; margin: 4px 0 6px; flex-wrap: wrap; } .lote-abas .btn { text-decoration: none; }
.lcol-novos { background: var(--accent-soft); border: 2px solid var(--accent); }
.lcol-novos .lcol-hd b { color: var(--accent); }
.pers { display: flex; flex-wrap: wrap; gap: 4px; } .pers span { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 600; }
.col-lote { padding: 0 2px 6px; } .col-lote .btn { text-decoration: none; }
.lote-material { gap: 8px; flex-wrap: wrap; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin: 4px 0; font-size: 13px; }
.lote-material label.btn { cursor: pointer; }

/* Estoque e compras */
.es-resumo { display: flex; gap: 18px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 10px; }
.es-abas { margin-bottom: 12px; }
.es-barra { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.es-barra #esBusca { max-width: 280px; }
.es-chk { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.es-cat { font: 700 16px/1.2 var(--f-display); margin: 18px 0 6px; }
.es-tb td.c, .es-tb th.c { text-align: center; }
.es-q { width: 84px; text-align: right; } .es-p { width: 84px; }
.es-off { opacity: .55; }
.es-acts { white-space: nowrap; text-align: right; }
.es-form { padding: 12px; display: grid; gap: 10px; margin-bottom: 10px; }
.es-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.es-grid .grow2 { grid-column: span 2; }
.es-total { display: flex; justify-content: space-between; padding: 10px 14px; margin-top: 12px; font-size: 16px; }
.es-avulso { padding: 10px 14px; margin-top: 14px; max-width: 420px; }
.es-forn-cab { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 18px; } .es-forn-cab .es-cat { margin: 0 8px 0 0; }
.es-fcard { padding: 12px 14px; display: grid; gap: 4px; align-content: start; } .es-fcard a { color: var(--accent); font-weight: 600; }

/* Fichas técnicas */
.fichas .seg { margin-bottom: 14px; }
.fi-grid { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
@media (max-width: 800px) { .fi-grid { grid-template-columns: 1fr; } }
.fi-lista { display: flex; flex-direction: column; gap: 6px; }
.fi-it { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-align: left; width: 100%; }
.fi-it.on { border-color: var(--accent); box-shadow: var(--shadow); }
.fi-it b { display: block; } .fi-it small { color: var(--muted); }
.fi-h { margin: 0 0 10px; font: 700 20px var(--f-display); } .fi-h3 { margin: 0 0 8px; }
.fi-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 12px; }
.fi-kpi { background: var(--surface-2); border-radius: 10px; padding: 10px; } .fi-kpi small { color: var(--muted); display: block; } .fi-kpi b { font-size: 18px; }
.fi-tab { overflow-x: auto; }
.card:has(> .fi-h, > .fi-h3) { padding: 16px 18px; }
.card:has(> .fi-h, > .fi-h3) > p { margin: 0 0 12px; }
.fi-row { margin-bottom: 12px; }
.fi-t { width: 100%; border-collapse: collapse; }
.fi-t th, .fi-t td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; font-size: 13px; }
.fi-t th:first-child, .fi-t td:first-child, .fi-t td.fi-uso { text-align: left; } .fi-t th { color: var(--muted); font-weight: 600; font-size: 12px; }
.fi-row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; } .fi-row label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.fi-row .in { width: 150px; }
.fi-edit { padding: 16px 18px; }
.fi-edit .fi-row { gap: 12px 14px; margin-bottom: 14px; }
.fi-edit .fi-row label, .fi-obs { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.fi-obs { margin-bottom: 14px; } .fi-obs textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.fi-edit > p { margin: 0 0 14px; }
.fi-t .in { width: 84px; padding: 6px 8px; text-align: right; }
.fi-un { display: inline-block; width: 30px; margin-left: 6px; text-align: left; }
.fi-bad { color: var(--bad); } .fi-ok { color: var(--ok); }

/* Estoque: áreas Comercial x Cozinha e mínimo automático pelas festas (0071) */
.es-areas { margin-bottom: 10px; }
.es-festas { padding: 12px 14px; margin-bottom: 12px; }
.es-festas-cab { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.es-festas-cab > div { flex: 1 1 320px; }
.es-festas .tabela-wrap { margin-top: 10px; }

/* Conciliação do WhatsApp: leads com telefone e sem mensagens (esquerda) x conversas sem telefone com histórico (direita) */
.cc-l1, .cc-l2, .cc-ask { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cc-g { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-right: 14px; }
.cc-ask { background: var(--surface); border-radius: 8px; padding: 6px 8px; }
.cc-ask .in { width: auto; }
.cc-barra { display: grid; gap: 8px; position: sticky; top: 0; z-index: 3; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--r); padding: 8px 12px; margin-bottom: 10px; }
.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.cc-col { background: var(--surface-2); border-radius: var(--r); padding: 8px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cc-hd { display: grid; gap: 6px; padding: 2px 4px; }
.cc-hd .row { gap: 6px; align-items: center; }
.cc-lista { display: grid; gap: 6px; overflow-y: auto; max-height: calc(100vh - 290px); align-content: start; }
.cc-lista-d { max-height: 34vh; }
.cc-card { background: var(--surface); border: 2px solid transparent; border-radius: 10px; padding: 8px 10px; display: grid; gap: 3px; cursor: pointer; }
.cc-card:hover { border-color: var(--line); }
.cc-card.sel { border-color: var(--accent); background: var(--accent-soft); }
.cc-fone { font-weight: 700; letter-spacing: .2px; }
.cc-trecho { font-size: 12px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cc-hist { background: var(--surface); border-radius: 10px; padding: 8px 10px; min-height: 200px; }
.cc-hh { margin-bottom: 6px; }
.cc-msgs { display: grid; gap: 6px; max-height: calc(100vh - 290px - 34vh); min-height: 180px; overflow-y: auto; }
.cc-m { max-width: 86%; padding: 6px 9px; border-radius: 10px; font-size: 13px; overflow-wrap: anywhere; }
.cc-m small { display: block; font-size: 10px; color: var(--muted); }
.cc-m.cli { background: var(--surface-2); justify-self: start; }
.cc-m.buf { background: var(--accent-soft); justify-self: end; }
@media (max-width: 900px) { .cc-grid { grid-template-columns: 1fr; } .cc-lista { max-height: 40vh; } }

/* Cronograma da festa: impressão e editor */
.pr-cron td { vertical-align: top; font-size: 9pt; line-height: 1.35; }
.pr-cron td.h { font-weight: 700; white-space: nowrap; width: 48px; }
.pr-cron td.m { font-weight: 600; width: 120px; }
.pr-cron td.lin { width: 22%; }
.cr-lin { display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid var(--line, #E6DFD6); align-items: start; }
.cr-lin textarea { grid-column: 1 / -1; min-height: 72px; resize: none; overflow: hidden; }
.cr-lin .cr-x { grid-column: 2; justify-self: end; }
.cr-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; align-items: center; }

/* ---------- Calculadora de festas (#calculadora) ---------- */
.calc-top { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: flex-start; justify-content: space-between; }
.calc-cen { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; position: relative; } .calc-cen select.in { width: auto; min-width: 170px; }
.calc-mais summary { list-style: none; cursor: pointer; } .calc-mais summary::-webkit-details-marker { display: none; }
.calc-mais .card { position: absolute; right: 0; top: 36px; z-index: 5; padding: 8px; display: grid; gap: 6px; min-width: 190px; box-shadow: var(--shadow); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.calc-col { display: grid; gap: 14px; min-width: 0; }
.calc-sec { padding: 14px 16px; } .calc-sec h3 { margin: 0 0 10px; font-size: 16px; } .calc-sec h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.calc-dica { margin: 0 0 10px; font-size: 13px; }
.calc-campos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 10px 0; }
.calc-f { display: grid; gap: 3px; font-size: 12px; color: var(--muted); font-weight: 600; } .calc-f .in { font-weight: 400; color: var(--ink); }
.calc-w2 { grid-column: span 2; }
.calc-pacote { font-size: 15px; } .calc-pacote details, .calc-extras { margin-top: 8px; } .calc-pacote summary, .calc-extras summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 13px; }
.calc-extras { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 14px; }
.calc-linhas { display: grid; gap: 4px; margin: 8px 0; }
.calc-grupo { margin-bottom: 10px; } .calc-gh { display: flex; justify-content: space-between; font-size: 13px; padding: 2px 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.calc-linha { display: flex; gap: 6px; align-items: center; padding: 2px 0; } .calc-linha.off { opacity: .5; }
.calc-linha .calc-nome { flex: 1 1 auto; min-width: 0; width: auto; } .calc-linha .calc-val { flex: 0 0 96px; width: 96px; } .calc-linha .calc-modo { flex: 0 0 120px; width: 120px; }
.calc-tot { flex: 0 0 78px; text-align: right; font-size: 13px; color: var(--muted); } .calc-aviso { color: var(--warn); cursor: help; }
.calc-reset[hidden] { display: none; }
.calc-res { position: sticky; top: 76px; display: grid; gap: 12px; max-height: calc(100vh - 92px); overflow-y: auto; padding-bottom: 4px; }
.calc-hero { padding: 16px 18px; display: grid; gap: 2px; }
.calc-hero b { font: 700 32px/1.1 var(--f-display); } .calc-hero small, .calc-hero span { color: var(--muted); }
.calc-hero.calc-ok b { color: var(--ok); } .calc-hero.calc-warn b { color: var(--warn); } .calc-hero.calc-bad b { color: var(--bad); }
.calc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.calc-kpis .card { padding: 10px 12px; display: grid; gap: 2px; min-width: 0; } .calc-kpis small { color: var(--muted); } .calc-kpis b { font: 700 18px/1.15 var(--f-display); overflow-wrap: anywhere; }
.calc-t-ok { color: var(--ok); } .calc-t-warn { color: var(--warn); } .calc-t-bad { color: var(--bad); }
.calc-tb { width: 100%; border-collapse: collapse; font-size: 13px; } .calc-tb th { text-align: left; color: var(--muted); font-weight: 600; padding: 4px 6px; }
.calc-tb td { padding: 5px 6px; border-top: 1px solid var(--line); } .calc-tb td.num { text-align: right; white-space: nowrap; } .calc-tb tr.tot td { font-weight: 700; }
.calc-neg tr.calc-ok td:nth-child(4) { color: var(--ok); } .calc-neg tr.calc-warn td:nth-child(4) { color: var(--warn); } .calc-neg tr.calc-bad td:nth-child(4), .calc-neg tr.calc-bad td:nth-child(3) { color: var(--bad); }
@media (max-width: 900px) { .calc-grid { grid-template-columns: minmax(0, 1fr); } .calc-res { position: static; max-height: none; overflow: visible; }
  .calc-linha { flex-wrap: wrap; } .calc-linha .calc-nome { flex: 1 1 100%; } }
.calc-grupo { border-bottom: 1px solid var(--line); padding: 4px 0 8px; margin: 0; }
.calc-grupo > summary { display: flex; gap: 8px; align-items: baseline; cursor: pointer; padding: 4px; list-style: none; } .calc-grupo > summary::-webkit-details-marker { display: none; }
.calc-grupo > summary::before { content: "▸"; color: var(--muted); } .calc-grupo[open] > summary::before { content: "▾"; }
.calc-grupo > summary .num { margin-left: auto; font-weight: 700; } .calc-grupo > .btn { margin-top: 6px; }
.calc-qt { flex: 0 0 auto; white-space: nowrap; } .calc-linha .calc-grupo-in, .calc-linha input.calc-grupo { flex: 0 0 100px; width: 100px; }

/* Custos do cardápio (js/custos.js) */
.cu-barra { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 12px 0; } .cu-barra label { display: flex; gap: 8px; align-items: center; }
.cu-g { margin: 10px 0; } .cu-g summary { cursor: pointer; padding: 4px 0; }
.cu-n { width: 110px; text-align: right; } .cu-forn { min-width: 110px; }
.cu-g td .in { width: 100%; min-width: 90px; } .cu-g td .cu-n { min-width: 90px; }

/* Escala: painel de escolha do freelancer (js/comercial.js). Estrela = ponta firme. */
:root { --firme: #B7791F; --firme-soft: #FBF0D9; }
@media (prefers-color-scheme: dark) { :root { --firme: #F0C46B; --firme-soft: #3F3420; } }
.pk-btn { display: flex; align-items: center; gap: 9px; width: 100%; min-width: 230px; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.pk-btn:hover { border-color: var(--accent); }
.pk-btn .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.pk-btn .nm small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.pk-btn.vazio { border-style: dashed; color: var(--muted); } .pk-btn.vazio .nm { font-weight: 500; }
.pk-btn .seta { color: var(--muted); font-size: 11px; }
.pk-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; flex: none; }
.pk-estrela { color: var(--firme); }
.pk-fundo { position: fixed; inset: 0; z-index: 80; background: rgba(20,25,40,.35); }
.pk-painel { position: fixed; z-index: 81; width: min(460px, calc(100vw - 24px)); max-height: min(560px, calc(100dvh - 24px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 12px 30px rgba(0,0,0,.18); overflow: hidden; }
.pk-topo { padding: 12px 14px 10px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.pk-tit { display: flex; align-items: center; gap: 8px; } .pk-tit b { font-size: 15px; flex: 1; }
.pk-tit button { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--muted); padding: 2px 6px; }
.pk-busca { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 15px; }
.pk-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pk-chip { border: 1px solid var(--line); background: var(--bg); border-radius: 99px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pk-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pk-lista { overflow-y: auto; flex: 1; min-height: 120px; }
.pk-sec { position: sticky; top: 0; z-index: 1; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 6px 14px; display: flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); }
.pk-sec.firme { background: var(--firme-soft); color: var(--firme); }
.pk-sec button { margin-left: auto; border: 0; background: none; color: var(--accent); font-weight: 700; font-size: 12px; text-transform: none; letter-spacing: 0; }
.pk-item { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border: 0; border-bottom: 1px solid var(--line); width: 100%; background: none; text-align: left; }
.pk-item:hover, .pk-item.foco { background: var(--accent-soft); }
.pk-item .nm { flex: 1; min-width: 0; } .pk-item .nm b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-item .nm small { color: var(--muted); font-size: 12px; display: block; } .pk-item .nm .aviso { color: var(--warn); font-weight: 600; }
.pk-item.off { opacity: .6; } .pk-item.bloq { cursor: not-allowed; }
.pk-item .festas { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pk-star { font-size: 20px; line-height: 1; padding: 4px 6px; color: var(--line); border-radius: 8px; cursor: pointer; }
button.pk-star { border: 0; background: none; }
.pk-star:hover { background: var(--surface-2); color: var(--firme); } .pk-star[aria-pressed="true"] { color: var(--firme); }
.pk-rodape { border-top: 1px solid var(--line); padding: 8px 14px; display: flex; gap: 8px; align-items: center; background: var(--surface); } .pk-rodape .grow { flex: 1; }
@media (max-width: 760px) { .pk-painel { left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important; width: 100%; max-height: 82dvh; border-radius: 16px 16px 0 0; } .pk-btn { min-width: 0; } }
