/* App da equipe: celular primeiro; barra inferior no celular, lateral no computador. */
body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }

.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(246, 241, 234, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 22px; }
.topbar .who { font-size: 13px; color: var(--muted); text-align: right; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--paper); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 9px; min-height: 58px;
  font-size: 11.5px; font-weight: 600; color: var(--muted); text-decoration: none;
}
.tabbar a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current=page] { color: var(--gold-d); }

main { padding: 16px; max-width: 1100px; margin: 0 auto; }
.screen-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.screen-head h2 { font-size: 26px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.scroll-x { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.card + .card { margin-top: 12px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list .item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; text-decoration: none; color: inherit; width: 100%; background: none; border: 0; text-align: left; cursor: pointer; }
.list .item:hover { background: var(--gold-t); }
.item b { display: block; font-weight: 600; }
.empty { padding: 28px 8px; text-align: center; color: var(--muted); }

/* ---------- agenda ---------- */
.daynav { display: flex; align-items: center; gap: 6px; }
.daynav label { position: relative; }
.daynav .label { font-family: var(--display); font-size: 20px; min-width: 150px; text-align: center; }
.cal-line { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); pointer-events: none; }
.cal-line.half { background: #f0e9df; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.iconbtn:hover { background: var(--gold-t); }
.iconbtn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

.cal { display: grid; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px); }
.cal-head { position: sticky; top: 0; z-index: 3; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 8px; font-weight: 600; font-size: 14px; text-align: center; }
.cal-head i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.cal-times { position: relative; border-right: 1px solid var(--line); }
.cal-times span { position: absolute; right: 6px; font-size: 11.5px; color: var(--muted); transform: translateY(-50%); }
.cal-col { position: relative; border-right: 1px solid var(--line); cursor: pointer; }
.cal-col:last-child { border-right: 0; }
.cal-off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, #f3ede4 0 6px, #ece4d8 6px 12px); pointer-events: none; }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--bad); z-index: 2; pointer-events: none; }
.cal-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.appt {
  position: absolute; left: 4px; right: 4px; z-index: 1; border-radius: 8px; padding: 5px 8px; overflow: hidden;
  background: var(--gold-t); border-left: 4px solid var(--gold); font-size: 13px; line-height: 1.25; cursor: pointer; text-align: left; border-top: 0; border-right: 0; border-bottom: 0;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.appt b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt span { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt.confirmado { background: #ecdcc0; }
.appt.em_atendimento { background: var(--pink); border-left-color: #b9867f; }
.appt.concluido { background: var(--ok-t); border-left-color: var(--ok); }
.appt.faltou { background: var(--bad-t); border-left-color: var(--bad); }
.appt.cancelado { background: #f1eeea; border-left-color: #b8aea4; opacity: .7; }
.appt.cancelado b { text-decoration: line-through; }
.appt.online::after { content: "marcou online"; font-size: 10.5px; font-weight: 700; color: var(--gold-d); letter-spacing: .04em; text-transform: uppercase; }
.cal-block { position: absolute; left: 4px; right: 4px; border-radius: 8px; background: #e6ddd1; color: var(--muted); font-size: 12.5px; padding: 4px 8px; cursor: pointer; border: 1px dashed #c9bba9; text-align: left; }

.fab {
  position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 25;
  box-shadow: 0 6px 20px rgba(28, 23, 21, .18);
}

.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--gold-t); color: var(--gold-d); }
.status.concluido { background: var(--ok-t); color: var(--ok); }
.status.faltou, .status.cancelado { background: var(--bad-t); color: var(--bad); }
.status.em_atendimento { background: var(--pink); color: #8a5a54; }

/* ---------- sheet (painel que sobe) ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(28, 23, 21, .35); display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow: auto; background: var(--ivory);
  border-radius: 18px 18px 0 0; padding: 0 16px calc(18px + env(safe-area-inset-bottom));
  animation: up .18s ease-out;
}
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 10px; background: var(--ivory); }
.sheet-head h2 { font-size: 22px; }
.sheet .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.results { margin: -4px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); max-height: 220px; overflow: auto; }
.results button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; }
.results button:hover { background: var(--gold-t); }
.picked { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--gold-t); margin-bottom: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.stats div { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; }
.stats b { display: block; font-family: var(--display); font-size: 22px; font-weight: 400; }
.stats span { font-size: 12px; color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 12px 18px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-l); }
.timeline li.nota::before { background: var(--gold); }
.timeline small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- funis ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 82vw); gap: 12px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.stage { background: #efe7db; border-radius: var(--radius); padding: 10px; scroll-snap-align: start; min-height: 200px; }
.stage h3 { font-family: var(--body); font-size: 14px; font-weight: 700; display: flex; justify-content: space-between; margin: 2px 4px 10px; }
.stage.won h3 { color: var(--ok); }
.stage.lost h3 { color: var(--bad); }
.deal { display: block; width: 100%; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.deal:hover { border-color: var(--gold-l); }
.deal b { display: block; font-weight: 600; }
.deal span { display: block; font-size: 12.5px; color: var(--muted); }
.deal .late { color: var(--bad); font-weight: 600; }

/* ---------- login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login form { width: 100%; max-width: 360px; }
.login .brand { justify-content: center; margin-bottom: 28px; }
.login .brand img { width: 46px; height: 56px; }
.login .brand b { font-size: 28px; }
.err { color: var(--bad); font-size: 14px; margin: 0 0 12px; }

#toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; pointer-events: none; }
#toast div { background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-size: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.2); animation: up .18s ease-out; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 12px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--gold); }
.hours { display: grid; grid-template-columns: 52px 1fr 1fr; gap: 6px 8px; align-items: center; font-size: 14px; }
.hours input { min-height: 38px; padding: 6px 8px; }
.price-row { display: grid; grid-template-columns: 1fr 110px 90px; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 14px; }
.price-row input { min-height: 38px; }

@media (min-width: 900px) {
  body { padding-bottom: 0; padding-left: 92px; }
  .tabbar { top: 0; right: auto; width: 92px; grid-template-columns: 1fr; grid-auto-rows: 76px; align-content: start; border-top: 0; border-right: 1px solid var(--line); padding-top: 70px; }
  .fab { bottom: 24px; right: 24px; }
  #toast { bottom: 24px; }
  .board { grid-auto-columns: 260px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 18px; max-height: 88vh; }
}
.chip.small-chip { min-height: 32px; font-size: 13px; padding: 0 12px; }

/* agenda de 7 dias */
.cal.wk .appt { font-size: 12px; padding: 3px 5px; border-left-width: 3px; }
.cal.wk .appt.online::after { content: none; }
.cal-head.daylink { border: 0; border-bottom: 1px solid var(--line); cursor: pointer; font: inherit; font-weight: 600; font-size: 13.5px; }
.cal-head.daylink:hover { background: var(--gold-t); }
.cal-head.daylink.today { color: var(--gold-d); }
.cal-col.is-today { background: #fffaf2; }
.chip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }

/* =================== acabamento visual (16/nov/2026) =================== */
:root { --shadow-1: 0 1px 2px rgba(60, 40, 20, .05), 0 2px 8px rgba(60, 40, 20, .05); --shadow-2: 0 4px 14px rgba(60, 40, 20, .10), 0 1px 3px rgba(60, 40, 20, .06); --ease: cubic-bezier(.2, .7, .2, 1); }
body { background: radial-gradient(1200px 600px at 100% -10%, #f3e6d3 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #f4e4e1 0%, transparent 55%), var(--ivory); background-attachment: fixed; }
main { animation: fadein .28s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }

/* menu */
.tabbar { grid-template-columns: repeat(var(--tabs, 5), 1fr); box-shadow: 0 -6px 20px rgba(60, 40, 20, .05); }
.tabbar a { position: relative; transition: color .2s var(--ease); }
.tabbar a svg { transition: transform .2s var(--ease); }
.tabbar a:hover { color: var(--gold-d); }
.tabbar a:hover svg { transform: translateY(-1px); }
.tabbar a[aria-current=page]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--gold-l), var(--gold)); }
.tabbar a[aria-current=page] svg { stroke-width: 2; }
@media (min-width: 900px) {
  .tabbar { grid-template-columns: 1fr; box-shadow: 4px 0 20px rgba(60, 40, 20, .04); }
  .tabbar a { margin: 0 10px; border-radius: 14px; justify-content: center; }
  .tabbar a:hover { background: var(--gold-t); }
  .tabbar a[aria-current=page] { background: linear-gradient(180deg, #f6ecdc, #f1e3cc); }
  .tabbar a[aria-current=page]::before { top: 18%; bottom: 18%; left: -10px; right: auto; width: 3px; height: auto; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--gold-l), var(--gold)); }
}

/* cartões, botões e chips */
.card { border-radius: 16px; box-shadow: var(--shadow-1); border-color: #e8ddcf; }
.card + .card { margin-top: 14px; }
.list .item { border-radius: 10px; transition: background .15s var(--ease), padding .15s var(--ease); }
.list .item:hover { padding-left: 8px; }
.btn { background: linear-gradient(180deg, #b88f55, var(--gold)); box-shadow: 0 2px 6px rgba(138, 104, 53, .25); transition: background .2s, box-shadow .2s, transform .08s; }
.btn:hover { background: linear-gradient(180deg, var(--gold), var(--gold-d)); box-shadow: 0 4px 12px rgba(138, 104, 53, .3); }
.btn.ghost, .btn.quiet, .btn.danger { background: transparent; box-shadow: none; }
.btn.quiet { background: var(--paper); }
.btn.quiet:hover, .btn.ghost:hover { background: var(--gold-t); box-shadow: var(--shadow-1); }
.chip { transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.chip:hover:not([aria-pressed=true]):not(:disabled) { border-color: var(--gold-l); background: #fffaf3; }
.chip[aria-pressed=true] { box-shadow: 0 2px 8px rgba(28, 23, 21, .18); }
.iconbtn { transition: background .15s, box-shadow .15s; }
.iconbtn:hover { box-shadow: var(--shadow-1); }

/* agenda */
.cal { border-radius: 16px; box-shadow: var(--shadow-1); }
.cal-head { background: linear-gradient(180deg, #fffdfa, #fbf6ef); }
.appt { box-shadow: 0 1px 3px rgba(60, 40, 20, .08); transition: transform .12s var(--ease), box-shadow .12s var(--ease); }
.appt:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); z-index: 4; }
.cal.wk .appt em { display: block; font-style: normal; font-size: 11px; font-weight: 700; color: var(--gold-d); line-height: 1.2; }
.cal.wk .appt b { font-size: 12.5px; }
.cal.wk .appt span { font-size: 11px; }
.cal-now { box-shadow: 0 0 0 2px rgba(161, 69, 58, .12); }
.fab { box-shadow: 0 10px 26px rgba(138, 104, 53, .35); }

/* painel que sobe */
.sheet-backdrop { backdrop-filter: blur(3px); animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; } }
.sheet { box-shadow: 0 -10px 40px rgba(28, 23, 21, .2); }

/* números da ficha */
.stats div { border-radius: 14px; box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.stats div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--gold-l), var(--gold)); }

/* concluir: forma de pagamento */
fieldset.pay { border: 0; padding: 0; margin: 0; }
fieldset.pay legend { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; padding: 0; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-opt { position: relative; }
.pay-opt input { position: absolute; opacity: 0; inset: 0; }
.pay-opt span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-weight: 600; font-size: 14px; text-align: center; cursor: pointer; transition: all .15s; }
.pay-opt input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 0 3px 10px rgba(28, 23, 21, .2); }
.pay-opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ADM */
.badge-admin { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-d); background: var(--gold-t); border: 1px solid var(--gold-l); padding: 4px 10px; border-radius: 999px; }
.seg { display: inline-flex; background: #efe6d9; border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; transition: all .15s; }
.seg button[aria-pressed=true] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-1); }
.range .field { min-width: 150px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--paper); border: 1px solid #e8ddcf; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-1); }
.kpi span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; margin-top: 2px; }
.kpi.accent { background: linear-gradient(135deg, #2a211c, #1c1715); border-color: #1c1715; color: #fff; }
.kpi.accent span { color: var(--gold-l); }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 8px; border-bottom: 1px solid #f0e8dd; white-space: nowrap; }
.tbl tbody tr:hover td { background: #fbf5ec; }
.tbl .n { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .dot, .chip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.tbl input.pct { width: 64px; min-height: 34px; padding: 4px 8px; text-align: right; transition: background .3s; }
.tbl input.pct.saved { background: var(--ok-t); border-color: var(--ok); }
.warn { color: var(--wait); font-weight: 600; }
.notice { background: #fbf1dc; border: 1px solid #ecd6a6; border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.notice p { margin: 4px 0; }
details.card summary { cursor: pointer; list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after { content: "mostrar"; float: right; font-size: 13px; color: var(--gold-d); font-weight: 600; margin-top: 4px; }
details.card[open] summary::after { content: "esconder"; }
details.card[open] summary { margin-bottom: 10px; }
.paybars { margin-top: 14px; display: grid; gap: 8px; }
.paybars > div { display: grid; grid-template-columns: 130px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.paybars .bar { height: 8px; border-radius: 99px; background: #f0e7da; overflow: hidden; }
.paybars .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold-l), var(--gold)); }
.how ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.fees { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 12px; align-items: end; }
.fees .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 900px) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .fees { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ADM: agendamentos e financeiro */
.kpis-3 { grid-template-columns: repeat(3, 1fr); }
.kpi small { font-family: var(--body); font-size: 13px; }
.grid-2 { display: grid; gap: 14px; margin-top: 14px; }
.grid-2 .card + .card { margin-top: 0; }
.tbl td.wrap { white-space: normal; min-width: 180px; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--gold-t); color: var(--gold-d); white-space: nowrap; }
.tag.lancamento { background: var(--pink); color: #8a5a54; }
.linkbtn { border: 0; background: none; color: var(--bad); font-weight: 600; font-size: 13px; cursor: pointer; padding: 4px; }
.linkbtn:hover { text-decoration: underline; }
@media (max-width: 600px) { .kpis-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* =================== janela do horário, ficha, calendário e ocupação (16/nov/2026) =================== */
:root { --wa: #25d366; --wa-d: #128c4a; }
.avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #e7cf9f, var(--gold) 55%, var(--gold-d)); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .03em;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--gold-l), 0 6px 14px rgba(138, 104, 53, .25); }
.avatar.lg { width: 58px; height: 58px; font-size: 20px; }
.avatar.xl { width: 72px; height: 72px; font-size: 24px; }
.client-name { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.12; letter-spacing: .01em; margin: 0 0 6px;
  background: linear-gradient(90deg, var(--ink), #4a3a2c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.client-hero .client-name { font-size: clamp(26px, 4vw, 36px); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #f3ece2; color: var(--muted); border: 1px solid #e8ddcf; }
.pill svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.pill.gold { background: var(--gold-t); color: var(--gold-d); border-color: var(--gold-l); }
.pill.bad { background: var(--bad-t); color: var(--bad); border-color: #e9b8b0; }

.appt-hero { display: flex; gap: 14px; align-items: center; padding: 14px; margin: 0 0 12px; border-radius: 16px;
  background: linear-gradient(135deg, #fffaf2, #f6ecdc); border: 1px solid #ecdcc2; }
.who-block { min-width: 0; flex: 1; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.info { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid #ece2d4; }
.info.wide { grid-column: 1 / -1; }
.info .ic { flex: none; width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--gold-t); color: var(--gold-d); }
.info .ic svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.info b { display: block; font-weight: 600; font-size: 14.5px; }
.info em { display: block; font-style: normal; font-size: 13px; color: var(--gold-d); font-weight: 600; }
.info .note { font-weight: 500; font-size: 14px; }
.status-actions { padding-top: 12px; border-top: 1px dashed #e3d6c4; }
.link-actions { margin-top: 10px; }
@media (max-width: 480px) { .info-grid { grid-template-columns: 1fr; } }

/* botão do WhatsApp */
.btn.wa-btn { background: linear-gradient(180deg, #2fdc70, var(--wa)); border-color: var(--wa); color: #fff; box-shadow: 0 3px 10px rgba(37, 211, 102, .3); }
.btn.wa-btn:hover { background: linear-gradient(180deg, var(--wa), var(--wa-d)); border-color: var(--wa-d); }
.btn.wa-btn svg.wa, svg.wa { width: 18px; height: 18px; fill: currentColor; stroke: none; }

/* alerta de faltas */
.miss-alert { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, #c0392b, #8e2a20); box-shadow: 0 6px 18px rgba(161, 69, 58, .35); animation: pulse-bad 2.4s ease-in-out infinite; }
.miss-alert svg { flex: none; width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.miss-alert b { display: block; font-size: 15px; }
.miss-alert small { display: block; font-size: 13px; opacity: .9; }
@keyframes pulse-bad { 0%, 100% { box-shadow: 0 6px 18px rgba(161, 69, 58, .35); } 50% { box-shadow: 0 6px 26px rgba(192, 57, 43, .6); } }

/* ficha da cliente */
.client-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 14px; border-radius: 20px;
  background: radial-gradient(500px 160px at 0% 0%, #fbf0dd, transparent 70%), linear-gradient(135deg, #fffdfa, #f7efe3); border: 1px solid #ecdcc2; box-shadow: var(--shadow-1); }
.hero-actions { margin-left: auto; }

/* folhinha de calendário */
.datepick { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; padding: 2px 6px; border-radius: 14px; font: inherit; color: inherit; }
.datepick:hover { background: var(--gold-t); }
.calbadge { display: inline-flex; flex-direction: column; align-items: center; width: 50px; border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 0 #e5d8c6, 0 4px 10px rgba(60, 40, 20, .12); border: 1px solid #e8dccb; line-height: 1; }
.calbadge i { display: block; width: 100%; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #fff; text-align: center; padding: 3px 0;
  background: linear-gradient(180deg, #c49a5e, var(--gold-d)); }
.calbadge b { font-family: var(--display); font-weight: 400; font-size: 22px; padding: 3px 0 0; color: var(--ink); }
.calbadge small { font-size: 9px; font-weight: 700; color: var(--muted); letter-spacing: .06em; padding: 1px 0 4px; }
.agenda-head { align-items: center; }

/* ocupação */
.occcard { display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 16px; background: var(--paper); border: 1px solid #e8ddcf; box-shadow: var(--shadow-1); }
.occcard strong { display: block; font-size: 14px; }
.occcard small { display: block; font-size: 12px; color: var(--muted); }
.ring { --c: var(--ok); position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #efe6d9 0); display: inline-flex; align-items: center; justify-content: center; transition: background .4s; }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--paper); }
.ring b { position: relative; font-size: 13px; font-weight: 800; }
.occcard.mid .ring { --c: #d3a34d; }
.occcard.full .ring { --c: var(--bad); }
.occcard.off .ring { --c: #cfc4b5; }
.occbar { display: block; position: relative; height: 5px; border-radius: 99px; background: #efe6d9; overflow: hidden; margin-top: 5px; width: 100%; }
.occbar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8fc7a0, var(--ok)); transition: width .5s var(--ease); }
.occbar.mid > i { background: linear-gradient(90deg, #ecc781, #d3a34d); }
.occbar.full > i { background: linear-gradient(90deg, #e08c80, var(--bad)); }
.occbar.mini { display: inline-block; width: 26px; height: 6px; margin: 0 4px 0 0; vertical-align: middle; }
.occtxt { display: block; font-size: 10.5px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.cal-head .occbar { max-width: 140px; margin-left: auto; margin-right: auto; }

/* cabeçalho dos dias na agenda de 7 dias */
.cal-head.daylink { padding: 6px 6px 7px; }
.dl-top { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.dl-wd { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--muted); }
.dl-day { font-family: var(--display); font-size: 20px; font-weight: 400; color: var(--ink); line-height: 1; }
.dl-n { font-size: 11px; color: var(--muted); font-weight: 600; }
.cal-head.daylink.today .dl-day { color: #fff; background: var(--gold); border-radius: 50%; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.cal.wk .appt { background: color-mix(in srgb, var(--pc, var(--gold)) 14%, #fffdfa); }
.cal.wk .appt.concluido { background: var(--ok-t); }
.cal.wk .appt.faltou { background: var(--bad-t); }
.cal.wk .cal-block { font-size: 11px; padding: 3px 5px; }
.appt em { display: block; font-style: normal; font-size: 11px; font-weight: 700; color: var(--gold-d); line-height: 1.2; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 10px; }
.legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
@media (max-width: 700px) { .occcard { width: 100%; } }

/* =================== etiquetas da cliente na agenda (16/nov/2026) =================== */
.ctags { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cal.wk .appt em .ctags { margin: 0 0 0 4px; vertical-align: -2px; gap: 2px; }
.ctag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px 0 5px; border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; line-height: 1; border: 1px solid transparent; }
.ctag svg { width: 13px; height: 13px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ctag.compact { width: 18px; height: 18px; padding: 0; justify-content: center; }
.ctag.compact svg { width: 11px; height: 11px; }
.ctag.nova { background: linear-gradient(135deg, #e8f3ff, #d4e8fb); color: #2563a8; border-color: #bcd8f5; }
.ctag.cliente { background: linear-gradient(135deg, #fbe9ec, #f6d6dc); color: #a24a5c; border-color: #efc3cc; }
.ctag.cliente svg { fill: currentColor; fill-opacity: .25; }
.ctag.vip { background: linear-gradient(135deg, #f9e7b9, #e9c56f); color: #6b4a10; border-color: #d9ad4c; box-shadow: 0 1px 4px rgba(201, 150, 44, .35); }
.ctag.vip svg { fill: #fff3c8; }
.ctag.master { position: relative; overflow: hidden; background: linear-gradient(135deg, #2a211c, #4a3622 55%, #1c1715); color: #f3d38b; border-color: #8a6835;
  box-shadow: 0 1px 6px rgba(138, 104, 53, .45); }
.ctag.master svg { fill: #f3d38b; fill-opacity: .35; }
.ctag.master::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 236, 180, .55), transparent); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.ctag.atencao { background: linear-gradient(135deg, #fff1cc, #fbdc8a); color: #8a5a00; border-color: #efc35a; }
.ctag.risco { background: linear-gradient(135deg, #e0483a, #9f2b20); color: #fff; border-color: #8e2a20; animation: risk-pulse 1.8s ease-in-out infinite; }
.ctag.risco svg { fill: #ffd2c6; fill-opacity: .6; }
@keyframes risk-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 72, 58, .55); } 50% { box-shadow: 0 0 0 4px rgba(224, 72, 58, 0); } }

/* o card inteiro sinaliza o comportamento */
.appt.atencao { box-shadow: inset 0 0 0 1px #efc35a, 0 1px 3px rgba(60, 40, 20, .08); }
.appt.risco { box-shadow: inset 0 0 0 2px #e0483a, 0 2px 8px rgba(224, 72, 58, .25); }
.appt.risco::before { content: ""; position: absolute; top: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 16px 16px 0; border-color: transparent #e0483a transparent transparent; }
.appt.master { background-image: linear-gradient(135deg, rgba(243, 211, 139, .25), transparent 60%); }
.appt.vip { background-image: linear-gradient(135deg, rgba(233, 197, 111, .18), transparent 60%); }

.tags-legend { margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: var(--paper); border: 1px solid #ece2d4; gap: 8px 16px; }
.tags-legend .lg-tip { font-size: 12px; }
/* dentro do card da agenda, as etiquetas não herdam o estilo de texto do card */
.appt span.ctags { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; overflow: visible; white-space: normal; color: inherit; }
.appt span.ctag { display: inline-flex; overflow: hidden; color: inherit; }
.appt span.ctag > span { display: inline; color: inherit; overflow: visible; }
.appt span.ctag.nova { color: #2563a8; } .appt span.ctag.cliente { color: #a24a5c; } .appt span.ctag.vip { color: #6b4a10; }
.appt span.ctag.master { color: #f3d38b; } .appt span.ctag.atencao { color: #8a5a00; } .appt span.ctag.risco { color: #fff; }
.cal.wk .appt em span.ctags { margin: 0 0 0 4px; gap: 2px; vertical-align: -3px; flex-wrap: nowrap; }

/* =================== ranking de clientes (16/nov/2026) =================== */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; margin: 6px 0 16px; }
.pod { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; text-decoration: none; color: var(--ink);
  padding: 22px 12px 0; border-radius: 20px 20px 14px 14px; background: linear-gradient(180deg, #fffdfa, #f8f0e4); border: 1px solid #ecdcc2;
  box-shadow: var(--shadow-1); transition: transform .18s var(--ease), box-shadow .18s var(--ease); overflow: hidden; }
.pod:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.pod-1 { padding-top: 30px; background: radial-gradient(260px 140px at 50% 0%, #fbeccb, transparent 70%), linear-gradient(180deg, #fffaf0, #f6e7c8); border-color: #e6c77f; }
.pod-crown { position: absolute; top: 4px; color: #d4a437; animation: crown-float 2.6s ease-in-out infinite; }
.pod-crown svg { width: 26px; height: 26px; fill: #f3cf6d; stroke: #b8862a; stroke-width: 1.4; }
@keyframes crown-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-3px) rotate(4deg); } }
.medal { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15), 0 3px 8px rgba(0, 0, 0, .18); }
.medal::after { content: ""; position: absolute; left: 50%; top: 100%; width: 10px; height: 10px; transform: translate(-50%, -4px) rotate(45deg); background: inherit; z-index: -1; }
.medal.ouro { background: linear-gradient(135deg, #ffe08a, #d4a437 55%, #a87b17); }
.medal.prata { background: linear-gradient(135deg, #f4f6f8, #b8c0c8 55%, #8a949e); color: #3b4249; }
.medal.bronze { background: linear-gradient(135deg, #f3c39a, #c07d48 55%, #8e5326); }
.pod-name { font-family: var(--display); font-weight: 400; font-size: 17px; line-height: 1.15; margin-top: 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pod-1 .pod-name { font-size: 20px; }
.pod-main { font-weight: 800; font-size: 18px; color: var(--gold-d); }
.pod-1 .pod-main { font-size: 22px; }
.pod-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.pod-step { align-self: stretch; margin: 4px -12px 0; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--display); font-size: 22px; }
.pod-step i { font-style: normal; }
.pod-1 .pod-step { height: 64px; background: linear-gradient(180deg, #e2b85a, #b8862a); }
.pod-2 .pod-step { height: 44px; background: linear-gradient(180deg, #c9d0d6, #8a949e); }
.pod-3 .pod-step { height: 32px; background: linear-gradient(180deg, #d9a273, #9b6233); }
.pod .ctag { margin-top: 2px; }

.ranklist { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.ranklist li + li { border-top: 1px solid #f0e8dd; }
.rank-row { display: grid; grid-template-columns: 34px 40px minmax(0, 1.4fr) minmax(60px, 1fr) auto; gap: 12px; align-items: center; padding: 10px 6px; text-decoration: none; color: inherit; border-radius: 12px; transition: background .15s; }
.rank-row:hover { background: #fbf5ec; }
.rank-pos { width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: var(--gold-d); background: var(--gold-t); border: 1px solid var(--gold-l); }
.rank-who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-tags { display: flex; align-items: center; gap: 6px; }
.rank-tags small { color: var(--muted); font-size: 12px; }
.rank-bar { height: 8px; border-radius: 99px; background: #f0e7da; overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold-l), var(--gold)); }
.rank-val { text-align: right; }
.rank-val b { display: block; font-weight: 800; color: var(--ink); white-space: nowrap; }
.rank-val small { color: var(--muted); font-size: 12px; white-space: nowrap; }
@media (max-width: 640px) {
  .podium { gap: 6px; }
  .pod { padding: 18px 6px 0; }
  .pod-name { font-size: 14px; } .pod-1 .pod-name { font-size: 16px; }
  .pod-main { font-size: 15px; } .pod-1 .pod-main { font-size: 17px; }
  .avatar.xl { width: 56px; height: 56px; font-size: 19px; }
  .rank-row { grid-template-columns: 30px 36px minmax(0, 1fr) auto; }
  .rank-bar { display: none; }
}

/* excluir agendamento */
.danger-zone { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #ecc9c3; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.danger-zone small { color: var(--muted); font-size: 12px; flex: 1; min-width: 200px; }
.btn-del { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e9b8b0; background: #fff6f4; color: var(--bad); font-weight: 700; font-size: 13.5px;
  padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.btn-del svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-del:hover { background: var(--bad); color: #fff; box-shadow: 0 4px 12px rgba(161, 69, 58, .3); }

/* =================== escala de ocupação (16/nov/2026): verde > 70, amarelo 40–70, vermelho 10–40, preto < 10 =================== */
.occbar { height: 7px; }
.occbar > i { background: #cfc4b5; }
/* verde: destaque máximo */
.occbar.top { background: #d9f2e1; box-shadow: 0 0 0 1px #9fd8b2, 0 0 10px rgba(34, 160, 84, .35); }
.occbar.top > i { position: relative; overflow: hidden; background: linear-gradient(90deg, #34c46b, #12924a); }
.occbar.top > i::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); animation: occ-shine 2.2s ease-in-out infinite; }
@keyframes occ-shine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(120%); } }
/* amarelo */
.occbar.mid > i { background: linear-gradient(90deg, #f6d36b, #e2a91d); }
/* vermelho */
.occbar.low { background: #f6e1dd; }
.occbar.low > i { background: linear-gradient(90deg, #ec7a6c, #c0392b); }
/* preto: destaque máximo de alerta */
.occbar.zero { background: repeating-linear-gradient(-45deg, #1c1715 0 6px, #3a302a 6px 12px); background-size: 34px 34px;
  box-shadow: 0 0 0 1px #000, 0 0 10px rgba(0, 0, 0, .35); animation: occ-stripes 1.2s linear infinite; }
@keyframes occ-stripes { to { background-position: 34px 0; } }
.occbar.zero > i { background: #fff; }

.occtxt { display: inline-flex; align-items: center; gap: 4px; justify-content: center; padding: 1px 7px; border-radius: 999px; margin-top: 4px; }
.occtxt svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.occtxt span { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 9.5px; }
.occtxt.mid { color: #a3750a; }
.occtxt.low { color: var(--bad); }
.occtxt.top { color: #fff; background: linear-gradient(135deg, #2bbd63, #0f8a44); box-shadow: 0 2px 8px rgba(18, 146, 74, .4); animation: occ-glow 2s ease-in-out infinite; }
.occtxt.top svg { fill: #d8ffe6; }
.occtxt.zero { color: #fff; background: #1c1715; box-shadow: 0 0 0 0 rgba(0, 0, 0, .5); animation: occ-pulse 1.6s ease-in-out infinite; }
@keyframes occ-glow { 0%, 100% { box-shadow: 0 2px 8px rgba(18, 146, 74, .35); } 50% { box-shadow: 0 2px 16px rgba(18, 146, 74, .7); } }
@keyframes occ-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(28, 23, 21, .55); } 50% { box-shadow: 0 0 0 5px rgba(28, 23, 21, 0); } }
.cal-head:has(.occbar.top) { background: linear-gradient(180deg, #f1fbf4, #e3f6ea); }
.cal-head:has(.occbar.zero) { background: linear-gradient(180deg, #f3efea, #e7e0d8); }

/* anel e cartão de ocupação */
.occcard.top .ring { --c: #1fa85a; box-shadow: 0 0 0 3px #d9f2e1, 0 0 16px rgba(31, 168, 90, .45); animation: occ-glow 2s ease-in-out infinite; }
.occcard.mid .ring { --c: #e2a91d; }
.occcard.low .ring { --c: #c0392b; }
.occcard.zero .ring { --c: #1c1715; box-shadow: 0 0 0 3px #e7e0d8; animation: occ-pulse 1.6s ease-in-out infinite; }
.occcard.top { border-color: #9fd8b2; background: linear-gradient(135deg, #f4fcf6, #fffdfa); }
.occcard.zero { border-color: #1c1715; background: linear-gradient(135deg, #f3efea, #fffdfa); }
.occflag { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 8px; border-radius: 999px; vertical-align: 2px; margin-left: 4px; }
.occflag svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.occflag.top { color: #fff; background: linear-gradient(135deg, #2bbd63, #0f8a44); }
.occflag.zero { color: #fff; background: #1c1715; }
.occbar.mini.zero { animation: none; }

/* =================== quadro do topo da agenda (16/nov/2026) =================== */
main { overflow-x: clip; }
.agenda-toolbar { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 12px; margin: 0 0 12px; border-radius: 18px;
  background: radial-gradient(420px 140px at 0% 0%, #fbf0dd, transparent 70%), linear-gradient(135deg, #fffdfa, #f6ede1);
  border: 1px solid #ecdcc2; box-shadow: var(--shadow-1); min-width: 0; }
.tb-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tb-date .iconbtn { flex: none; }
.tb-datebtn { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 12px;
  border-radius: 999px; border: 1px solid #e6d6bf; background: var(--paper); cursor: pointer; font: inherit; color: var(--ink); transition: box-shadow .15s, border-color .15s; }
.tb-datebtn:hover { border-color: var(--gold-l); box-shadow: var(--shadow-1); }
.tb-datebtn svg { width: 18px; height: 18px; flex: none; stroke: var(--gold-d); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.tb-datebtn span { font-family: var(--display); font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-today { flex: none; }
.tb-filters { gap: 8px; }
.tb-select { flex: 1; min-width: 0; position: relative; display: block; margin: 0; }
.tb-select small { position: absolute; top: 5px; left: 14px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-d); pointer-events: none; }
.tb-select select { width: 100%; height: 48px; padding: 16px 34px 2px 13px; border-radius: 14px; border: 1px solid #e6d6bf; background-color: var(--paper);
  font-weight: 600; font-size: 15px; color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a6835' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }
.tb-select select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-t); outline: none; }
.tb-occ { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ring txt" "bar bar"; gap: 6px 10px; padding: 8px 10px; border-radius: 14px; background: var(--paper); border: 1px solid #ece2d4; }
.tb-occ .ring { grid-area: ring; }
.tb-occ-txt { grid-area: txt; min-width: 0; }
.tb-occ-txt strong { display: block; font-size: 14px; }
.tb-occ-txt small { display: block; font-size: 12px; color: var(--muted); }
.tb-occ .occbar { grid-area: bar; margin: 0; }
.ring.sm { width: 44px; height: 44px; }
.ring.sm::before { inset: 5px; }
.ring.sm b { font-size: 12px; }
.tb-occ.top { border-color: #9fd8b2; background: linear-gradient(135deg, #f4fcf6, #fffdfa); }
.tb-occ.top .ring { --c: #1fa85a; box-shadow: 0 0 0 3px #d9f2e1, 0 0 14px rgba(31, 168, 90, .45); animation: occ-glow 2s ease-in-out infinite; }
.tb-occ.mid .ring { --c: #e2a91d; }
.tb-occ.low .ring { --c: #c0392b; }
.tb-occ.zero { border-color: #1c1715; }
.tb-occ.zero .ring { --c: #1c1715; box-shadow: 0 0 0 3px #e7e0d8; animation: occ-pulse 1.6s ease-in-out infinite; }
.tb-occ.off .ring { --c: #cfc4b5; }
@media (min-width: 900px) {
  .agenda-toolbar { grid-template-columns: minmax(280px, 1.1fr) minmax(300px, 1fr) minmax(260px, .9fr); align-items: center; padding: 12px 14px; }
  .tb-occ { grid-template-columns: auto minmax(0, 1fr) 90px; grid-template-areas: "ring txt bar"; align-items: center; }
}
@media (max-width: 480px) { .tb-select select { font-size: 14px; padding-right: 30px; padding-left: 12px; background-position: right 8px center; } .tb-select small { left: 12px; } .tb-datebtn span { font-size: 17px; } }
@media (min-width: 900px) { .agenda-toolbar { grid-template-columns: minmax(300px, 1fr) minmax(320px, 1fr); } .tb-occ { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr) minmax(160px, 38%); grid-template-areas: "ring txt bar"; } .tb-occ-txt strong { white-space: nowrap; } }

/* =================== ajustes 16/nov (madrugada): contraste, ocupação central, ações, logo e foto =================== */
/* quadro da agenda com mais contraste */
.agenda-toolbar { background: radial-gradient(520px 160px at 0% 0%, #f6e3c4, transparent 70%), linear-gradient(135deg, #fbf4e8, #efe2cf);
  border: 1px solid #d9c09a; box-shadow: 0 2px 0 #e9dac4, 0 8px 22px rgba(90, 60, 25, .12); }
.tb-datebtn, .tb-select select { border-color: #cfb48b; background-color: #fffdf9; box-shadow: 0 1px 2px rgba(90, 60, 25, .08); }
.tb-datebtn span { color: var(--ink); }
.tb-select small { color: #7a5524; }
.tb-select select { font-weight: 700; }
.agenda-toolbar .iconbtn { border-color: #cfb48b; background: #fffdf9; }
/* ocupação centralizada */
.tb-occ { justify-content: center; border-color: #dcc9ad; }
@media (min-width: 900px) {
  .tb-occ { grid-template-columns: auto auto minmax(220px, 360px); justify-content: center; column-gap: 18px; }
}

/* janela do horário: ações distribuídas */
.appt-actions { display: grid; gap: 8px; padding-top: 12px; border-top: 1px dashed #e3d6c4; }
.aa-main .btn { width: 100%; min-height: 48px; font-size: 16px; }
.aa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.aa-grid .btn { width: 100%; min-height: 42px; }
.aa-links { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.aa-links .btn { width: 100%; min-height: 42px; padding: 0 10px; font-size: 14px; }
.aa-links .btn:only-child { grid-column: 1 / -1; }
@media (max-width: 480px) { .aa-links { grid-template-columns: 1fr 1fr; } .aa-links .aa-wa { grid-column: 1 / -1; } }

/* topo: logo centralizada e foto */
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.tb-spacer { display: block; }
.topbar .brand { justify-self: center; }
.topbar .brand img { width: 34px; height: 41px; filter: drop-shadow(0 2px 3px rgba(138, 104, 53, .25)); }
.topbar .brand b { font-size: 22px; letter-spacing: .32em;
  background: linear-gradient(90deg, #1c1715, #6b4f2a 60%, #a9824a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar .who { justify-self: end; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--muted); font-size: 13px; }
.topbar .who .avatar { width: 34px; height: 34px; font-size: 12px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--gold-l); }
.who-name { white-space: nowrap; }
@media (max-width: 700px) { .who-name { display: none; } .topbar .brand b { font-size: 20px; } }
@media (min-width: 900px) { .tb-spacer { display: block; } }
.avatar.photo { padding: 0; overflow: hidden; background: #eee; }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
/* Mais: foto de perfil */
.profile-row { display: flex; align-items: center; gap: 16px; }
.profile-name { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; }
.photo-pick { position: relative; cursor: pointer; flex: none; }
.photo-cam { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px #fff; }
.photo-cam svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.occtxt { white-space: nowrap; }
@media (max-width: 480px) { .aa-links > :nth-child(2):last-child { grid-column: 1 / -1; } }

/* =================== 16/nov (manhã): data em destaque, menus próprios, arrastar, logo =================== */
/* logo um pouco maior */
.topbar .brand img { width: 38px; height: 46px; }
.topbar .brand b { font-size: 24px; letter-spacing: .34em; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .8)); }
@media (max-width: 700px) { .topbar .brand b { font-size: 22px; } .topbar .brand img { width: 34px; height: 41px; } }

/* botão da data */
.tb-datebtn { height: 46px; gap: 10px; padding: 0 10px 0 6px; justify-content: space-between;
  background: linear-gradient(180deg, #ffffff, #fbf3e6); border: 1.5px solid #c9a46c; box-shadow: 0 2px 0 #ead8bb, 0 6px 14px rgba(138, 104, 53, .14); position: relative; overflow: hidden; }
.tb-datebtn::after { content: ""; position: absolute; top: 0; left: -40%; width: 30%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: shine 4.5s ease-in-out infinite; pointer-events: none; }
.tb-calic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #c9a46c, var(--gold-d)); box-shadow: 0 3px 8px rgba(138, 104, 53, .35); }
.tb-calic svg { width: 18px; height: 18px; stroke: #fff; }
.tb-lbl { flex: 1; text-align: center; font-family: var(--display); font-size: 19px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-chev svg { width: 16px; height: 16px; stroke: var(--gold-d); fill: none; stroke-width: 2.4; }
.today-pill { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; padding: 3px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #2bbd63, #0f8a44); box-shadow: 0 2px 8px rgba(18, 146, 74, .35); }
.tb-datebtn.is-today { border-color: #1fa85a; box-shadow: 0 2px 0 #cfeedd, 0 6px 16px rgba(31, 168, 90, .18); }
.tb-datebtn.is-today .tb-calic { background: linear-gradient(135deg, #34c46b, #0f8a44); }
/* setas com movimento */
.agenda-toolbar .iconbtn { width: 42px; height: 42px; transition: transform .15s var(--ease), background .15s, box-shadow .15s; }
.agenda-toolbar .iconbtn svg { transition: transform .2s var(--ease); }
.agenda-toolbar .iconbtn:hover { background: var(--gold); border-color: var(--gold); box-shadow: 0 4px 12px rgba(138, 104, 53, .3); }
.agenda-toolbar .iconbtn:hover svg { stroke: #fff; }
.agenda-toolbar [data-day="-1"]:hover svg, .agenda-toolbar [data-week="-1"]:hover svg { transform: translateX(-3px); }
.agenda-toolbar [data-day="1"]:hover svg, .agenda-toolbar [data-week="1"]:hover svg { transform: translateX(3px); }
.agenda-toolbar .iconbtn:active { transform: scale(.9); }
.agenda-toolbar [data-day="-1"]:active svg, .agenda-toolbar [data-week="-1"]:active svg { transform: translateX(-5px); }
.agenda-toolbar [data-day="1"]:active svg, .agenda-toolbar [data-week="1"]:active svg { transform: translateX(5px); }

/* Período e Profissional: menores, centralizados, menu próprio */
.tb-filters { justify-content: center; }
.dd { position: relative; flex: 1; max-width: 230px; min-width: 0; }
.dd-btn { width: 100%; height: 42px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 6px;
  padding: 3px 10px 3px 12px; border-radius: 12px; border: 1px solid #cfb48b; background: #fffdf9; cursor: pointer; text-align: left; font: inherit; color: var(--ink);
  box-shadow: 0 1px 2px rgba(90, 60, 25, .08); transition: border-color .15s, box-shadow .15s; }
.dd-btn small { grid-column: 1; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #7a5524; line-height: 1.1; }
.dd-btn b { grid-column: 1; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.dd-chev { grid-column: 2; grid-row: 1 / 3; display: inline-flex; transition: transform .2s var(--ease); }
.dd-chev svg { width: 16px; height: 16px; stroke: var(--gold-d); fill: none; stroke-width: 2.4; }
.dd-btn:hover { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-t); }
.dd.open .dd-btn { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-t); }
.dd.open .dd-chev { transform: rotate(180deg); }
.dd-menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: 260px; padding: 6px; border-radius: 14px;
  background: #fffdfa; border: 1px solid #e3d2b8; box-shadow: 0 14px 34px rgba(60, 40, 20, .18), 0 2px 6px rgba(60, 40, 20, .08);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top; pointer-events: none; transition: opacity .16s ease, transform .16s var(--ease); }
.dd:last-child .dd-menu { left: auto; right: 0; }
.dd.open .dd-menu { opacity: 1; transform: none; pointer-events: auto; }
.dd-opt { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: none; border-radius: 10px; cursor: pointer; font: inherit;
  font-size: 14.5px; color: var(--ink); text-align: left; transition: background .12s; }
.dd-opt:hover { background: var(--gold-t); }
.dd-opt.on { background: linear-gradient(135deg, #f6ead5, #f1e1c4); font-weight: 700; }
.dd-ic { width: 28px; height: 28px; flex: none; border-radius: 8px; background: #f3eadc; display: inline-flex; align-items: center; justify-content: center; }
.dd-ic svg { width: 15px; height: 15px; stroke: var(--gold-d); fill: none; stroke-width: 2; stroke-linecap: round; }
.dd-opt.on .dd-ic { background: var(--gold); } .dd-opt.on .dd-ic svg { stroke: #fff; }
.dd-opt .dot { width: 12px; height: 12px; border-radius: 50%; margin: 0 8px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #e3d2b8; }
.dd-check { margin-left: auto; display: inline-flex; } .dd-check svg { width: 16px; height: 16px; stroke: var(--ok); fill: none; stroke-width: 2.6; }

/* ocupação um pouco menor */
.tb-occ { padding: 6px 10px; gap: 4px 10px; }
.ring.sm { width: 38px; height: 38px; } .ring.sm::before { inset: 4px; } .ring.sm b { font-size: 11px; }
.tb-occ-txt strong { font-size: 13px; } .tb-occ-txt small { font-size: 11.5px; }
.tb-occ .occbar { height: 6px; }

/* semana: aviso de tocar no dia e dias com cara de botão */
.pick-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 8px; font-size: 13px; color: #6b4f2a; }
.pick-hint b { color: var(--gold-d); }
.ph-ic svg { width: 20px; height: 20px; stroke: var(--gold-d); fill: #fff6e6; stroke-width: 1.6; stroke-linejoin: round; animation: tap 1.6s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes tap { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(2px) scale(.92); } 60% { transform: translateY(0) scale(1); } }
.cal-head.daylink { position: relative; transition: background .15s, box-shadow .15s; }
.cal-head.daylink:hover, .cal-head.daylink:active { background: linear-gradient(180deg, #fbf1e1, #f3e3c8); box-shadow: inset 0 -2px 0 var(--gold); }
.dl-go { display: inline-flex; margin-left: 2px; opacity: .55; }
.dl-go svg { width: 12px; height: 12px; stroke: var(--gold-d); fill: none; stroke-width: 2.6; }
.cal-head.daylink:hover .dl-go { opacity: 1; transform: translateX(2px); }

/* arrastar para o lado */
.cal-wrap { position: relative; }
.cal-wrap::before, .cal-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 26px; pointer-events: none; z-index: 6; opacity: 0; transition: opacity .2s; border-radius: 16px; }
.cal-wrap::after { right: 0; background: linear-gradient(90deg, transparent, rgba(60, 40, 20, .14)); }
.cal-wrap::before { left: 52px; background: linear-gradient(270deg, transparent, rgba(60, 40, 20, .12)); }
.cal-wrap.more-right::after, .cal-wrap.more-left::before { opacity: 1; }
.swipe-hint { position: absolute; z-index: 7; right: 8px; top: 64px; display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px 6px 12px; border-radius: 999px;
  background: rgba(28, 23, 21, .82); color: #fff; font-size: 12px; font-weight: 700; pointer-events: none; opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; }
.swipe-hint svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2.6; animation: nudge 1.1s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.cal-wrap.more-right:not(.swiped) .swipe-hint { opacity: 1; transform: none; }

/* clientes: quantas vezes veio */
.visit-count { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 3px; padding: 1px 9px; border-radius: 999px; font-size: 12px;
  background: var(--gold-t); color: var(--gold-d); border: 1px solid var(--gold-l); }
.visit-count b { display: inline; color: var(--ink); font-size: 13px; }

/* celular: quadro mais enxuto e colunas mais estreitas */
@media (max-width: 480px) {
  .agenda-toolbar { padding: 10px; gap: 8px; }
  .tb-lbl { font-size: 17px; }
  .cal { --tcol: 44px; --wkcol: 96px; --daycol: 132px; }
  .cal-wrap::before { left: 44px; }
  .cal.wk .appt b { font-size: 12px; }
  .cal.wk .appt span { font-size: 10.5px; }
}
@media (max-width: 480px) { .tb-chev { display: none; } .tb-calic { width: 30px; height: 30px; border-radius: 9px; } .tb-calic svg { width: 16px; height: 16px; } .tb-datebtn { gap: 6px; padding: 0 8px 0 5px; } .tb-lbl { font-size: 16px; } .today-pill { font-size: 9px; padding: 2px 6px; } .agenda-toolbar .iconbtn { width: 38px; height: 38px; } .tb-date { gap: 6px; } }
@media (max-width: 480px) { .cal.wk .dl-n { display: none; } .cal.wk .occtxt.top span { display: none; } .cal.wk .dl-top { flex-wrap: nowrap; gap: 4px; } .cal.wk .occtxt { max-width: 100%; overflow: hidden; } }

/* =================== calendário próprio, botões de status e legenda (16/nov) =================== */
.tb-date { position: relative; }
.calpop { position: absolute; z-index: 45; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: min(320px, calc(100vw - 32px)); padding: 12px;
  border-radius: 18px; background: #fffdfa; border: 1px solid #e3d2b8; box-shadow: 0 18px 40px rgba(60, 40, 20, .22), 0 2px 6px rgba(60, 40, 20, .08);
  animation: cp-in .16s var(--ease); }
@keyframes cp-in { from { opacity: 0; transform: translate(-50%, -6px) scale(.98); } }
.cp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cp-head b { font-family: var(--display); font-weight: 400; font-size: 19px; text-transform: capitalize; }
.cp-head b span { color: var(--gold-d); }
.cp-nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #e3d2b8; background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s; }
.cp-nav:hover { background: var(--gold); border-color: var(--gold); } .cp-nav:hover svg { stroke: #fff; }
.cp-nav svg { width: 16px; height: 16px; stroke: var(--gold-d); fill: none; stroke-width: 2.4; }
.cp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cp-wd span { text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); padding: 4px 0; }
.cp-wd span.we { color: var(--gold-d); }
.cp-day { aspect-ratio: 1; border: 0; border-radius: 10px; background: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); transition: background .12s, transform .1s; }
.cp-day:hover { background: var(--gold-t); }
.cp-day:active { transform: scale(.92); }
.cp-day.we { color: #8a6835; }
.cp-day.out { color: #c9bcab; font-weight: 500; }
.cp-day.today { box-shadow: inset 0 0 0 2px #1fa85a; color: #0f8a44; font-weight: 800; }
.cp-day.sel { background: linear-gradient(135deg, #c9a46c, var(--gold-d)); color: #fff; box-shadow: 0 3px 8px rgba(138, 104, 53, .35); }
.cp-day.sel.today { box-shadow: 0 0 0 2px #1fa85a, 0 3px 8px rgba(138, 104, 53, .35); }
.cp-day.sel:not(.sel-start):not(.sel-end) { border-radius: 4px; }
.cp-day.sel-start { border-radius: 10px 4px 4px 10px; } .cp-day.sel-end { border-radius: 4px 10px 10px 4px; }
.cp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #efe6d9; }
.cp-foot .btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

/* botões de status com ícone e explicação */
.st-btn { justify-content: flex-start; gap: 10px; text-align: left; padding: 8px 12px; min-height: 54px !important; height: auto; border-radius: 16px; }
.st-ic { flex: none; width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .7); }
.st-ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.st-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.st-txt b { font-size: 14.5px; font-weight: 700; }
.st-txt small { font-size: 11.5px; font-weight: 500; opacity: .8; }
.aa-main .st-btn { justify-content: center; min-height: 58px !important; }
.aa-main .st-btn .st-ic { background: rgba(255, 255, 255, .22); }
.aa-main .st-btn .st-txt { text-align: left; }
.st-confirmado { border-color: #b9dcc5 !important; } .st-confirmado .st-ic { background: #e3f3e9; color: #1d8a4a; }
.st-em_atendimento { border-color: #e6cf9f !important; } .st-em_atendimento .st-ic { background: #fbefd6; color: #a3750a; }
.st-agendado .st-ic { background: #efe8dd; color: var(--muted); }
.st-faltou .st-ic { background: #fbe4df; color: var(--bad); }
.st-cancelado .st-ic { background: #f3ece4; color: #8a7a6c; }
.st-cancelado { color: #7a6b5e !important; border-color: #d9cbbb !important; }
.st-btn.danger:hover .st-ic, .st-btn.quiet:hover .st-ic { background: #fff; }

/* legenda recolhida */
.legend-box { margin-top: 10px; }
.legend-box summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 7px 14px; border-radius: 999px; border: 1px solid #e3d2b8;
  background: #fffdfa; font-size: 13px; font-weight: 700; color: var(--gold-d); box-shadow: var(--shadow-1); transition: background .15s; }
.legend-box summary::-webkit-details-marker { display: none; }
.legend-box summary:hover { background: var(--gold-t); }
.legend-box summary svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.legend-box .lb-close { display: none; } .legend-box[open] .lb-open { display: none; } .legend-box[open] .lb-close { display: inline; }
.legend-box[open] > div { animation: fade .2s ease-out; }
.legend-box .legend { margin-top: 8px; }
.st-cancelado { color: #8e3b30 !important; border-color: #d9a9a0 !important; background: #fffaf8 !important; } .st-cancelado .st-ic { background: #f6e1dd; color: #a1453a; } .st-btn .st-txt small { opacity: .85; }

/* WhatsApp: lembrar (verde cheio) e conversar (contorno verde); horário com início e fim */
.aa-links { grid-template-columns: 1fr 1fr; }
.aa-links .btn.wa-btn.aa-wa2 { background: #fff; color: #128c4a; border: 1.5px solid #25d366; box-shadow: none; }
.aa-links .btn.wa-btn.aa-wa2:hover { background: #e9fbf0; }
@media (max-width: 480px) { .aa-links .aa-wa { grid-column: auto; } .aa-links .btn { font-size: 13px; padding: 0 8px; } .aa-links .btn.wa-btn span { white-space: nowrap; } }
.when-range { display: flex !important; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.wr-from, .wr-to { display: inline-block; padding: 1px 8px; border-radius: 8px; background: var(--gold-t); color: var(--gold-d); font-weight: 800; font-size: 13px; }
.wr-dur { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.wr-dur::before { content: "· "; }
.appt em .t-end { font-weight: 600; opacity: .8; }
.aa-links .btn { min-width: 0; overflow: hidden; }

/* =================== CHAT — WhatsApp com a identidade do Espaço Rieger =================== */
main.main-chat { max-width: 1240px; padding-top: 10px; padding-bottom: 10px; }
.chat-app { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100dvh - 92px); border-radius: 20px; overflow: hidden;
  background: #fffdfa; border: 1px solid #e3d2b8; box-shadow: 0 10px 30px rgba(60, 40, 20, .12); }
@media (max-width: 899px) { .chat-app { height: calc(100dvh - 150px - env(safe-area-inset-bottom)); grid-template-columns: 1fr; border-radius: 16px; }
  .chat-app.has-open .chat-list { display: none; } .chat-app:not(.has-open) .chat-pane { display: none; } }
@media (min-width: 900px) { .cp-back { display: none !important; } }
/* lista */
.chat-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid #ecdfcc; background: linear-gradient(180deg, #fbf5ea, #fffdfa 120px); }
.cl-head { padding: 14px 14px 10px; border-bottom: 1px solid #efe4d3; }
.cl-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cl-title h2 { font-size: 24px; }
.wa-on { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; color: #128c4a; background: #e3f6ea; border: 1px solid #b8e5c8; padding: 3px 9px; border-radius: 999px; }
.wa-on svg { width: 13px; height: 13px; fill: currentColor; }
.cl-search { position: relative; }
.cl-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; stroke: var(--gold-d); fill: none; stroke-width: 2; }
.cl-search input { padding-left: 38px; min-height: 40px; border-radius: 999px; background: #fff; border-color: #e3d2b8; }
.cl-items { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; }
.cl-item { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 0; border-radius: 14px; background: none; cursor: pointer; text-align: left; font: inherit; color: var(--ink); transition: background .12s; }
.cl-item:hover { background: #f6ecdc; }
.cl-item.on { background: linear-gradient(135deg, #f3e3c7, #efdcbb); box-shadow: inset 3px 0 0 var(--gold); }
.cl-item .avatar { width: 44px; height: 44px; font-size: 15px; }
.cl-mid b { display: block; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-prev { display: flex; align-items: center; gap: 3px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-item.unread .cl-prev { color: var(--ink); font-weight: 600; }
.cl-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cl-side small { font-size: 11.5px; color: var(--muted); }
.cl-item.unread .cl-side small { color: var(--gold-d); font-weight: 700; }
.cl-badge { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: linear-gradient(135deg, #c9a46c, var(--gold-d)); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(138, 104, 53, .35); }
.tick { display: inline-flex; } .tick svg { width: 14px; height: 14px; stroke: var(--gold); fill: none; stroke-width: 2.4; }
.cl-empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 14px; }
/* conversa */
.chat-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0;
  background: radial-gradient(circle at 20px 20px, rgba(169, 130, 74, .07) 2px, transparent 2.5px) 0 0 / 40px 40px, linear-gradient(180deg, #f8f1e6, #f3e9da); }
.cp-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fffdfa; border-bottom: 1px solid #ecdfcc; box-shadow: 0 2px 8px rgba(60, 40, 20, .05); }
.cp-head .avatar { width: 42px; height: 42px; }
.cp-who { min-width: 0; flex: 1; }
.cp-who b { display: block; font-family: var(--display); font-weight: 400; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-who small { display: block; font-size: 12px; color: var(--muted); }
.cp-who .ctags { margin-top: 3px; }
.cp-actions { display: flex; gap: 6px; flex: none; }
.cp-msgs { flex: 1; overflow-y: auto; padding: 14px 6% 18px; display: flex; flex-direction: column; gap: 4px; }
.day-sep { display: flex; justify-content: center; margin: 10px 0 6px; }
.day-sep span { font-size: 11.5px; font-weight: 700; color: #7a5524; background: rgba(255, 253, 250, .92); border: 1px solid #ead8bc; padding: 3px 12px; border-radius: 999px; box-shadow: 0 1px 2px rgba(60, 40, 20, .06); }
.bubble { position: relative; max-width: min(72%, 520px); padding: 7px 10px 6px; border-radius: 14px; font-size: 14.5px; line-height: 1.4; box-shadow: 0 1px 2px rgba(60, 40, 20, .12); animation: b-in .18s var(--ease); word-wrap: break-word; }
@keyframes b-in { from { opacity: 0; transform: translateY(4px); } }
.bubble.in { align-self: flex-start; background: #fffdfa; border-top-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: linear-gradient(135deg, #f4e3c4, #ecd3a8); border-top-right-radius: 4px; }
.bubble.pending { opacity: .7; } .bubble.failed { box-shadow: 0 0 0 2px var(--bad); }
.b-text { white-space: pre-wrap; }
.b-meta { display: inline-flex; align-items: center; gap: 3px; float: right; margin: 6px 0 -2px 10px; font-size: 10.5px; color: #8a7a6c; }
.bubble.out .b-meta { color: #7a5524; }
.b-media { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-width: 180px; padding: 10px 12px; margin-bottom: 4px; border: 1px dashed #d9c09a; border-radius: 10px; background: rgba(255, 255, 255, .55); cursor: pointer; font: inherit; font-weight: 700; color: var(--gold-d); text-align: left; }
.b-media small { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.b-media.loading { opacity: .6; }
.b-img { display: block; max-width: 100%; max-height: 320px; border-radius: 10px; margin-bottom: 4px; }
.b-audio { width: 240px; max-width: 100%; margin-bottom: 4px; }
.cp-none { margin: auto; color: var(--muted); font-size: 14px; background: rgba(255, 253, 250, .85); padding: 10px 16px; border-radius: 12px; }
.cp-input { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; background: #fffdfa; border-top: 1px solid #ecdfcc; }
.cp-input textarea { flex: 1; min-height: 44px; max-height: 140px; resize: none; border-radius: 22px; padding: 11px 16px; border: 1px solid #e3d2b8; background: #fff; line-height: 1.35; }
.cp-send { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #c9a46c, var(--gold-d)); box-shadow: 0 4px 12px rgba(138, 104, 53, .35); transition: transform .12s; }
.cp-send:active { transform: scale(.9); }
.cp-send svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linejoin: round; margin-left: -2px; }
.cp-empty { margin: auto; text-align: center; max-width: 340px; padding: 20px; }
.cp-empty img { width: 64px; height: 78px; opacity: .85; filter: drop-shadow(0 4px 10px rgba(138, 104, 53, .25)); }
.cp-empty h3 { font-size: 24px; margin: 12px 0 6px; }
.cp-empty p { color: var(--muted); font-size: 14px; }
.cp-loading { margin: auto; color: var(--muted); }
@media (max-width: 899px) { .cp-msgs { padding: 12px 10px 16px; } .bubble { max-width: 84%; } .cp-actions .btn.ghost { display: none; } }
/* conectar */
.wa-connect { display: flex; justify-content: center; padding: 10px 0 20px; }
.wc-card { width: 100%; max-width: 760px; padding: 26px; border-radius: 24px; text-align: center;
  background: radial-gradient(600px 200px at 50% 0%, #f8e9cf, transparent 70%), #fffdfa; border: 1px solid #e3d2b8; box-shadow: 0 12px 34px rgba(60, 40, 20, .14); }
.wc-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wc-brand img { width: 40px; height: 48px; } .wc-brand span { font-family: var(--display); font-size: 22px; letter-spacing: .32em; color: var(--ink); }
.wc-card h2 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 6px; }
.wc-body { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; margin: 20px 0 12px; text-align: left; }
@media (max-width: 700px) { .wc-body { grid-template-columns: 1fr; justify-items: center; } }
.wc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wc-steps li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.wc-steps li > b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 13px;
  background: linear-gradient(135deg, #c9a46c, var(--gold-d)); box-shadow: 0 2px 6px rgba(138, 104, 53, .3); }
.wc-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 260px; }
.qr-frame { position: relative; padding: 14px; background: #fff; border-radius: 18px; box-shadow: 0 6px 20px rgba(60, 40, 20, .15); }
.qr-frame img { display: block; width: 240px; height: 240px; image-rendering: pixelated; }
.qr-corner { position: absolute; width: 26px; height: 26px; border: 4px solid var(--gold); }
.qr-corner.tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.qr-corner.tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.qr-corner.bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.qr-corner.br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.wc-wait { width: 268px; height: 268px; display: flex; align-items: center; justify-content: center; border-radius: 18px; background: #f6ecdc; color: var(--gold-d); font-weight: 700; animation: occ-pulse 1.6s ease-in-out infinite; }
.wc-warn { display: inline-flex; align-items: center; gap: 6px; }
.wc-warn svg { width: 15px; height: 15px; stroke: var(--wait); fill: none; stroke-width: 2; }
.wa-card h3 { display: flex; align-items: center; gap: 8px; } .wa-card h3 svg { width: 20px; height: 20px; fill: #25d366; }
.tabbar a span { white-space: nowrap; }

/* =================== ADM novo: topo, cartões, Caixa, Insights, fluxo (16/nov) =================== */
.adm-head h2 span { color: var(--gold); }
.adm-tabs { display: flex; gap: 6px; margin: 0 0 12px; padding: 5px; border-radius: 16px; background: #efe5d6; overflow-x: auto; scrollbar-width: none; }
.adm-tab { flex: 1; min-width: max-content; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 14px; border: 0; border-radius: 12px; background: none; cursor: pointer; font: inherit; font-weight: 700; font-size: 14.5px; color: #7a6552; transition: background .15s, color .15s, box-shadow .15s; }
.adm-tab svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }
.adm-tab:hover { color: var(--ink); background: rgba(255, 255, 255, .5); }
.adm-tab.on { background: #fffdfa; color: var(--ink); box-shadow: 0 2px 8px rgba(90, 60, 25, .14); }
.adm-tab.on svg { stroke: var(--gold-d); }
.adm-toolbar { grid-template-columns: 1fr; }
@media (min-width: 900px) { .adm-toolbar { grid-template-columns: minmax(260px, .8fr) minmax(0, 1.6fr) !important; } }
.adm-toolbar .tb-filters { justify-content: flex-end; }
@media (max-width: 899px) { .adm-toolbar .tb-filters { justify-content: center; } .adm-toolbar .dd { max-width: none; } }
.calpop.range .cp-day.sel:not(.sel-start):not(.sel-end) { background: #f1e2c8; color: var(--ink); box-shadow: none; }

/* cartões de números */
.kpis5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi2 { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: #fffdfa; border: 1px solid #ead9c0; box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.kpi2::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--gold-l), var(--gold)); opacity: .6; }
.k-ic { flex: none; width: 42px; height: 42px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: var(--gold-t); color: var(--gold-d); }
.k-ic svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.k-txt { min-width: 0; }
.k-txt small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.k-txt b { display: block; font-family: var(--display); font-weight: 400; font-size: 25px; line-height: 1.15; white-space: nowrap; }
.k-txt em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); }
.kpi2.pos .k-ic { background: #e3f3e9; color: #1d8a4a; } .kpi2.pos::after { background: linear-gradient(90deg, #8fd0a6, #1d8a4a); }
.kpi2.neg .k-ic { background: #fbe4df; color: var(--bad); } .kpi2.neg::after { background: linear-gradient(90deg, #f0a99f, var(--bad)); }
.kpi2.hero { background: linear-gradient(135deg, #2a211c, #1c1715 70%); border-color: #3a2e25; color: #fff; box-shadow: 0 10px 26px rgba(28, 23, 21, .35); }
.kpi2.hero .k-ic { background: linear-gradient(135deg, #e7cf9f, var(--gold)); color: #1c1715; }
.kpi2.hero small, .kpi2.hero em { color: #d8c09a; } .kpi2.hero::after { background: linear-gradient(90deg, #e7cf9f, var(--gold)); opacity: 1; }
.flow-note { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; }
.flow-note svg { width: 15px; height: 15px; flex: none; stroke: var(--gold-d); fill: none; stroke-width: 2; }
.sec-title { display: flex; align-items: center; gap: 8px; font-size: 20px; margin: 4px 0 10px; }
.sec-title svg { width: 20px; height: 20px; stroke: var(--gold-d); fill: none; stroke-width: 1.9; }
.sec-title small { font-family: var(--body); font-size: 12.5px; color: var(--muted); }
.split2 { display: grid; gap: 12px; margin-top: 12px; } @media (min-width: 900px) { .split2 { grid-template-columns: 1fr 1fr; } }
.split2 .card + .card { margin-top: 0; }
/* Insights */
.gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.gauge { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #fffdfa; border: 1px solid #ead9c0; box-shadow: var(--shadow-1); }
.gauge strong { display: block; font-size: 14px; } .gauge small { display: block; font-size: 12px; color: var(--muted); }
.ring.lg { width: 62px; height: 62px; } .ring.lg::before { inset: 7px; } .ring.lg b { font-size: 14px; }
.gauge.good .ring { --c: #1fa85a; } .gauge.mid .ring { --c: #e2a91d; } .gauge.bad .ring { --c: #c0392b; } .gauge.off .ring { --c: #cfc4b5; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stats div { padding: 10px; border-radius: 14px; background: #fbf5ec; text-align: center; }
.mini-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; } .mini-stats b.neg { color: var(--bad); }
.mini-stats span { font-size: 11.5px; color: var(--muted); }
/* Caixa */
.cash-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-bottom: 12px; }
.cash-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; color: #fff; box-shadow: 0 10px 24px rgba(60, 40, 20, .18); }
.cash-card small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; opacity: .9; }
.cash-card b { display: block; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; }
.cash-card em { display: block; font-style: normal; font-size: 12px; opacity: .85; }
.cc-ic { flex: none; width: 48px; height: 48px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .2); }
.cc-ic svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cash-card.in { background: linear-gradient(135deg, #2bbd63, #0f7a3c); }
.cash-card.out { background: linear-gradient(135deg, #e0564a, #9a2c22); }
.cash-card.bal { background: linear-gradient(135deg, #b88f55, #6b4f2a); } .cash-card.bal.neg { background: linear-gradient(135deg, #3a2e25, #1c1715); }
.close-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; margin-bottom: 10px; border: 1px solid; }
.close-strip.ok { background: #effaf3; border-color: #b8e5c8; } .close-strip.open { background: #fff8ec; border-color: #ecd6a6; }
.cs-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.close-strip.ok .cs-ic { background: #1fa85a; } .close-strip.open .cs-ic { background: var(--gold); }
.cs-ic svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.2; }
.cs-txt { flex: 1; min-width: 200px; } .cs-txt b { display: block; } .cs-txt small { color: var(--muted); }
.pending-days { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; margin-bottom: 10px; background: #fdecea; border: 1px solid #f1b8b0; color: #8e2a20; font-size: 14px; }
.pending-days svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
.pd-day { border: 1px solid #e9a69c; background: #fff; color: #8e2a20; border-radius: 999px; padding: 2px 10px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; margin: 2px; }
.pd-day:hover { background: #c0392b; color: #fff; }
.cash-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cash-actions .btn svg, .out-btn svg, .close-strip .btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.btn.out-btn { background: linear-gradient(180deg, #d9574b, #b03a2e); border-color: #b03a2e; box-shadow: 0 2px 6px rgba(176, 58, 46, .3); }
.btn.out-btn:hover { background: linear-gradient(180deg, #c0392b, #8e2a20); }
.h-in, .h-out { display: flex; align-items: center; gap: 8px; } .h-in svg, .h-out svg { width: 18px; height: 18px; fill: none; stroke-width: 2.2; }
.h-in svg { stroke: #1d8a4a; } .h-out svg { stroke: var(--bad); }
.mov-list { list-style: none; margin: 0; padding: 0; }
.mov-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid #f0e8dd; }
.mv-d { font-size: 12px; font-weight: 800; color: var(--gold-d); }
.mv-t b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mv-t small { color: var(--muted); font-size: 12px; }
.mv-v { font-weight: 800; white-space: nowrap; }
.pos { color: #1d8a4a; } .neg { color: var(--bad); }
.clip, .mov-list .linkbtn { display: inline-flex; padding: 4px; color: var(--gold-d); }
.clip svg, .mov-list .linkbtn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }
.mov-list .linkbtn { color: #b5a596; } .mov-list .linkbtn:hover { color: var(--bad); }
.ok-pill { background: #e3f3e9; color: #1d8a4a; border-color: #b8e5c8; } .ok-pill svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 3; }
.attach-pick { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 2px dashed #d9c09a; background: #fffaf2; cursor: pointer; transition: background .15s, border-color .15s; }
.attach-pick:hover { background: #fbf0dd; } .attach-pick.done { border-style: solid; border-color: #1fa85a; background: #effaf3; } .attach-pick.loading { opacity: .6; }
.attach-pick svg { width: 26px; height: 26px; stroke: var(--gold-d); fill: none; stroke-width: 1.8; flex: none; }
.attach-pick b { display: block; } .attach-pick small { color: var(--muted); font-size: 12px; }
.cash-close .cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.cash-close .cc-grid div { padding: 10px 12px; border-radius: 12px; background: #fbf5ec; } .cash-close .cc-grid small { display: block; color: var(--muted); font-size: 12px; } .cash-close .cc-grid b { font-size: 17px; }
.cc-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px; border-radius: 14px; background: #1c1715; color: #fff; margin-bottom: 6px; }
.cc-sum small { display: block; font-size: 11px; color: #d8c09a; } .cc-sum b { font-size: 15px; white-space: nowrap; }
.cc-sum .in b { color: #8fe0aa; } .cc-sum .out b { color: #f2a196; } .cc-sum .bal b { color: #f3d38b; }
@media (max-width: 480px) { .cc-sum { grid-template-columns: 1fr 1fr; } }
.ok-notice { background: #effaf3; border-color: #b8e5c8; } .ok-notice svg { width: 14px; height: 14px; stroke: #1d8a4a; fill: none; stroke-width: 3; vertical-align: -2px; }
.cash-close .btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2.2; }
/* cartão vermelho em todas as telas */
.cash-alert { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 16px 0; padding: 10px 14px; border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, #d0453a, #8e2a20); box-shadow: 0 6px 18px rgba(161, 69, 58, .35); animation: pulse-bad 2.4s ease-in-out infinite; }
@media (min-width: 900px) { .cash-alert { max-width: 1100px; margin: 12px auto 0; } }
.cash-alert svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; flex: none; }
.cash-alert span { flex: 1; min-width: 200px; font-size: 14px; }
.cash-alert .btn { background: #fff; color: #8e2a20; border-color: #fff; box-shadow: none; }
/* etapas do atendimento na janela do horário */
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 12px 0 2px; position: relative; }
.fs { display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.fs::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: #e7dccb; z-index: 0; }
.fs:first-child::before { display: none; }
.fs.done::before, .fs.now::before { background: linear-gradient(90deg, var(--gold-l), var(--gold)); }
.fs i { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 800; background: #f1e9dd; color: #a8998a; border: 2px solid #e7dccb; }
.fs i svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 3; }
.fs.done i { background: var(--gold); border-color: var(--gold); }
.fs.now i { background: #fff; color: var(--gold-d); border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-t); }
.fs small { font-size: 10.5px; font-weight: 700; color: #a8998a; text-align: center; } .fs.now small, .fs.done small { color: var(--ink); }

/* ===== v22 (16/nov/2026): menu com BETA, Clientes refeita, importação, selo Top, blocos da agenda ===== */
/* selo BETA no menu */
.tab-beta { position: absolute; top: 5px; left: calc(50% + 6px); padding: 1px 5px; border-radius: 999px; font-style: normal; font-size: 8.5px; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #e0483a, #a1291e); box-shadow: 0 2px 6px rgba(200, 50, 40, .35), 0 0 0 2px var(--paper); line-height: 1.5; }
@media (min-width: 900px) { .tab-beta { top: 10px; left: calc(50% + 4px); } }

/* selo Top 1/2/3 */
.ctag.rank { border: 1px solid; position: relative; overflow: hidden; }
.ctag.rank svg { fill: currentColor; fill-opacity: .25; }
.ctag.rank.r1 { background: linear-gradient(135deg, #fff2c2, #f0c75a 55%, #c8962b); color: #5a3d06; border-color: #c8962b; box-shadow: 0 2px 8px rgba(201, 150, 44, .45); }
.ctag.rank.r2 { background: linear-gradient(135deg, #ffffff, #d9dde3 55%, #a9b0ba); color: #3d434b; border-color: #a9b0ba; box-shadow: 0 2px 8px rgba(120, 130, 145, .35); }
.ctag.rank.r3 { background: linear-gradient(135deg, #ffe6cf, #e0a06b 55%, #b06b35); color: #4e2a0c; border-color: #b06b35; box-shadow: 0 2px 8px rgba(176, 107, 53, .38); }
.ctag.rank::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: shine 3.2s ease-in-out infinite; }
.ctag.rank.compact { width: auto; padding: 0 5px 0 3px; gap: 1px; }
.ctag.rank.compact b { font-size: 11px; font-weight: 900; line-height: 1; }

/* blocos da agenda: horário em cima, nome, serviço inteiro, selo à direita */
.appt.ab { gap: 1px; }
.appt.ab .ab-time { display: block; font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--gold-d); letter-spacing: .01em; white-space: nowrap; line-height: 1.25; }
.appt.ab .ab-time .t-end { display: inline; color: inherit; }
.appt.ab .ab-name { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.appt.ab .ab-svc { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-height: 1.25; color: var(--muted); font-size: 12px; text-overflow: clip; }
.appt.ab.has-badge { padding-right: 34px; }
.appt.ab .ab-badge { position: absolute; top: 5px; right: 5px; display: block; overflow: visible; }
.appt.ab .ab-badge .ctags { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; margin: 0; }
.appt.ab .ab-badge .ctag { display: inline-flex; }
.appt.ab .ab-badge .ctag span { display: inline; color: inherit; overflow: visible; }
.cal:not(.wk) .appt.ab.has-badge { padding-right: 96px; }
.cal:not(.wk) .appt.ab .ab-badge .ctag { height: 22px; font-size: 11.5px; }
.cal.wk .appt.ab { padding: 4px 6px; }
.cal.wk .appt.ab.has-badge { padding-right: 28px; }
.cal.wk .appt.ab .ab-badge { top: 4px; right: 4px; }
.cal.wk .appt.ab .ab-badge .ctag.compact { height: 24px; min-width: 24px; justify-content: center; }
.cal.wk .appt.ab .ab-badge .ctag.compact svg { width: 13px; height: 13px; }
.cal.wk .appt.ab .ab-badge .ctag.rank.compact { padding: 0 6px 0 4px; }
.cal.wk .appt.ab .ab-badge .ctag.rank.compact b { font-size: 12.5px; }
.cal.wk .appt.ab.has-badge { padding-right: 32px; }
.cal.wk .appt.ab .ab-name { font-size: 13px; }
.cal.wk .appt.ab .ab-svc { font-size: 11.5px; }
@media (max-width: 600px) {
  .cal.wk .appt.ab { padding: 3px 3px; }
  .cal.wk .appt.ab.has-badge { padding-right: 3px; padding-top: 22px; }
  .cal.wk .appt.ab .ab-badge { top: 2px; right: 2px; left: 2px; }
  .cal.wk .appt.ab .ab-badge .ctags { flex-direction: row; justify-content: flex-end; }
  .cal.wk .appt.ab .ab-time { font-size: 10px; white-space: normal; }
  .cal.wk .appt.ab .ab-time .t-end { display: block; }
}

/* janela do horário: folhinha com data e horário */
.when-tile { flex: none; display: flex; flex-direction: column; align-items: center; width: 82px; border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid #e3cfae; box-shadow: 0 6px 16px rgba(138, 104, 53, .18); text-align: center; }
.when-tile i { display: block; width: 100%; padding: 4px 0; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: #fff;
  background: linear-gradient(135deg, #c39a5d, var(--gold-d)); }
.when-tile b { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; color: var(--ink); padding-top: 2px; }
.when-tile small { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--gold-d); margin-top: -2px; }
.when-tile em { display: flex; flex-direction: column; width: 100%; margin-top: 5px; padding: 5px 0; font-style: normal; font-size: 14px; font-weight: 800; color: var(--ink);
  background: var(--gold-t); border-top: 1px dashed #e3cfae; line-height: 1.2; }
.when-tile em span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.when-tile em span::before { content: "até "; font-weight: 500; }
@media (max-width: 420px) { .appt-hero .avatar.lg { display: none; } .when-tile { width: 74px; } }

/* ----- Clientes ----- */
.cx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.clh-title h2 { font-size: 30px; margin: 0; }
.clh-title p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.cl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cl-actions .btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 700; }
.cl-actions .btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cl-actions .cl-imp { border: 1.5px solid var(--gold-l); background: var(--paper); }
.cl-actions .cl-imp:hover { border-color: var(--gold); background: #fff8ec; }
.cl-actions .cl-add { box-shadow: 0 6px 16px rgba(138, 104, 53, .3); }
.cl-actions .cl-add:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(138, 104, 53, .35); }

.cl-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.cl-stat { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ic n" "l l" "s s"; align-items: center; column-gap: 8px; text-align: left;
  padding: 12px 14px; border-radius: 16px; border: 1px solid #ecdfcc; background: linear-gradient(160deg, #fffdf9, #f8efe2); color: var(--ink); font: inherit; cursor: default;
  box-shadow: var(--shadow-1); overflow: hidden; }
.cl-stat:disabled { opacity: 1; }
.cl-stat.link { cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s; }
.cl-stat.link:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--gold-l); }
.cl-stat.link::after { content: "›"; position: absolute; right: 10px; top: 8px; font-size: 18px; color: var(--gold); }
.cls-ic { grid-area: ic; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 10px; background: var(--gold-t); color: var(--gold-d); }
.cls-ic svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cls-n { grid-area: n; font-family: var(--display); font-size: 28px; line-height: 1; }
.cls-l { grid-area: l; margin-top: 8px; font-weight: 700; font-size: 13.5px; }
.cl-stat small { grid-area: s; color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.cl-stat.s0 { background: linear-gradient(150deg, #2a211c, #46331f); color: #fff; border-color: #5a4329; }
.cl-stat.s0 .cls-ic { background: rgba(255, 255, 255, .12); color: #f3d38b; }
.cl-stat.s0 small { color: #d9c7ad; }
.cl-stat.s1 .cls-ic { background: var(--ok-t); color: var(--ok); }
.cl-stat.s2 .cls-ic { background: linear-gradient(135deg, #f9e7b9, #e9c56f); color: #6b4a10; }
.cl-stat.s4 .cls-ic { background: var(--bad-t); color: var(--bad); }
.cl-stat.s4 .cls-n { color: var(--bad); }
.cl-stat.s5 .cls-ic { background: #e8f3ff; color: #2563a8; }
@media (max-width: 1000px) { .cl-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .cls-n { font-size: 24px; } .clh-title h2 { font-size: 26px; } .cl-actions { width: 100%; } .cl-actions .btn { flex: 1; justify-content: center; padding: 0 12px; } }

.cx-search { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; margin-bottom: 12px; border-radius: 999px; background: var(--paper);
  border: 1.5px solid #e6d8c3; box-shadow: var(--shadow-1); transition: border-color .15s, box-shadow .15s; }
.cx-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(169, 130, 74, .15), var(--shadow-1); }
.cxs-ic svg, .cs-clear svg, .cs-go svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cxs-ic { display: inline-flex; color: var(--gold); }
.cx-search input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important; font-size: 16px; padding: 8px 4px; min-height: 0; }
.cx-search input::-webkit-search-cancel-button { display: none; }
.cs-clear { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--gold-t); color: var(--gold-d); cursor: pointer; }
.cs-clear[hidden] { display: none; }
.cs-go { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 700; }
@media (max-width: 480px) { .cs-go span { display: none; } .cs-go { padding: 0 12px; } }

.cl-filters { padding: 12px 14px; margin-bottom: 10px; border-radius: 18px; background: rgba(255, 253, 250, .75); border: 1px solid #ecdfcc; }
.clf-lbl { display: block; margin: 0 0 7px 2px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-d); }
.clf-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.clf { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px 0 10px; border-radius: 12px; border: 1px solid #e6d8c3; background: var(--paper);
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; transition: all .15s var(--ease); }
.clf svg { width: 16px; height: 16px; flex: none; stroke: var(--gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.clf:hover { border-color: var(--gold-l); background: #fff8ec; transform: translateY(-1px); }
.clf[aria-pressed=true] { background: linear-gradient(135deg, #2a211c, #1c1715); color: #fff; border-color: #1c1715; box-shadow: 0 4px 12px rgba(28, 23, 21, .22); }
.clf[aria-pressed=true] svg { stroke: #f3d38b; }
.clf.gold:not([aria-pressed=true]) { background: linear-gradient(135deg, #fff6df, #f6e2b3); border-color: #e2c27e; }
.clf-sub { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #e6d8c3; }
.seg.seg-wrap { flex-wrap: wrap; border-radius: 14px; }
.clf-hint { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.clf-hint svg { width: 16px; height: 16px; flex: none; margin-top: 1px; stroke: var(--gold); fill: none; stroke-width: 2; }
@media (max-width: 600px) { .clf-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 2px; } .clf { flex: none; } }
.cl-count { margin: 4px 2px 10px; font-size: 13px; color: var(--muted); font-weight: 600; }

.cl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 900px) { .cl-grid { grid-template-columns: 1fr 1fr; } }
.ccard { border-radius: 18px; background: var(--paper); border: 1px solid #ecdfcc; box-shadow: var(--shadow-1); overflow: hidden; transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s; }
.ccard:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--gold-l); }
.cc-top { display: flex; align-items: center; gap: 12px; padding: 14px 14px 10px; color: inherit; text-decoration: none; }
.cc-who { flex: 1; min-width: 0; }
.cc-who b { display: block; font-weight: 700; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-who small { color: var(--muted); font-size: 13px; }
.cc-visits { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 6px 8px; border-radius: 12px; background: var(--gold-t); }
.cc-visits b { font-family: var(--display); font-size: 22px; line-height: 1; color: var(--gold-d); }
.cc-visits small { font-size: 10.5px; font-weight: 700; color: var(--gold-d); text-transform: uppercase; letter-spacing: .05em; }
.cc-visits.zero { background: #f3eee7; } .cc-visits.zero b, .cc-visits.zero small { color: var(--muted); }
.cc-foot { display: flex; align-items: center; gap: 8px; padding: 9px 12px 11px 14px; border-top: 1px solid #f1e8db; background: linear-gradient(180deg, #fffdfa, #fbf6ef); }
.cc-pills { flex: 1; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-width: 0; }
.cc-pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #f3ece2; color: var(--ink); border: 1px solid #e9dccb; white-space: nowrap; }
.cc-pill svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cc-pill.ok { background: var(--ok-t); color: var(--ok); border-color: #bfd8c6; }
.cc-pill.bad { background: var(--bad-t); color: var(--bad); border-color: #e9b8b0; }
.cc-pill.warn { background: #fff1cc; color: #8a5a00; border-color: #efd58f; }
.cc-pill.muted { color: var(--muted); }
.cc-wa { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 3px 10px rgba(37, 211, 102, .35); transition: transform .15s; }
.cc-wa:hover { transform: scale(1.08); }
.cc-wa svg { width: 19px; height: 19px; fill: currentColor; stroke: none; }
.cx-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 16px; border-radius: 18px; background: var(--paper); border: 1px dashed var(--gold-l); text-align: center; color: var(--muted); }
.cx-empty svg { width: 30px; height: 30px; stroke: var(--gold); fill: none; stroke-width: 1.8; }
.cx-empty b { color: var(--ink); font-size: 16px; }

/* ----- importação em massa ----- */
.imp-steps { display: flex; gap: 6px; margin-bottom: 12px; }
.imp-steps span { flex: 1; display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 10px; background: #efe6d9; color: var(--muted); font-size: 12px; font-weight: 700; }
.imp-steps b { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; font-size: 11px; }
.imp-steps span.on { background: linear-gradient(135deg, #b88f55, var(--gold-d)); color: #fff; }
.imp-steps span.on b { color: var(--gold-d); }
.imp-drop { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; border: 2px dashed var(--gold-l); background: #fffaf2; cursor: pointer; transition: all .15s; }
.imp-drop:hover, .imp-drop.over { border-color: var(--gold); background: #fbf0dc; }
.imp-drop b { display: block; } .imp-drop small { color: var(--muted); }
.imp-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #c39a5d, var(--gold-d)); color: #fff; flex: none; }
.imp-ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.imp-or { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.imp-or::before, .imp-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#imptxt { width: 100%; font: 13px/1.5 ui-monospace, Consolas, monospace; border-radius: 12px; border: 1px solid var(--line); padding: 10px 12px; background: var(--paper); resize: vertical; }
.imp-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0 8px; }
.imp-num { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 12px; background: #f3ece2; text-align: center; }
.imp-num b { font-family: var(--display); font-size: 24px; line-height: 1.1; }
.imp-num span { font-size: 11px; color: var(--muted); line-height: 1.2; }
.imp-num.ok { background: var(--ok-t); } .imp-num.ok b { color: var(--ok); }
.imp-num.bad { background: var(--bad-t); } .imp-num.bad b { color: var(--bad); }
.imp-prev { padding: 8px 10px; border-radius: 12px; background: var(--paper); border: 1px solid #ecdfcc; margin-bottom: 8px; }
.imp-prev small { display: block; font-weight: 700; color: var(--gold-d); margin-bottom: 4px; }
.imp-prev > div { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; border-top: 1px solid #f3ebe0; }
.imp-prev .avatar { width: 28px; height: 28px; font-size: 11px; box-shadow: none; }
.imp-prev span { color: var(--muted); } .imp-prev em { font-style: normal; color: var(--muted); font-size: 12px; margin-left: auto; }
.imp-err { font-size: 12.5px; color: var(--bad); margin-bottom: 8px; } .imp-err summary { cursor: pointer; font-weight: 700; }
.imp-btns { margin-top: 10px; }
.imp-btns .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.imp-btns .btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; }
@media (max-width: 480px) { .imp-sum { grid-template-columns: 1fr 1fr; } .imp-steps span { font-size: 11px; } }

.cl-actions .btn { white-space: nowrap; }
@media (max-width: 520px) { .hide-sm { display: none; } }
.appt.ab .abb-mini { display: none; }
@media (max-width: 700px) {
  .cal:not(.wk) .appt.ab .abb-full { display: none; }
  .cal:not(.wk) .appt.ab .abb-mini { display: block; }
  .cal:not(.wk) .appt.ab.has-badge { padding-right: 34px; }
  .cal:not(.wk) .appt.ab .ab-badge .ctag.compact { height: 24px; min-width: 24px; justify-content: center; }
  .cal:not(.wk) .appt.ab .ab-badge .ctag.rank.compact { padding: 0 6px 0 4px; }
}

/* ===== v23 (16/nov/2026): filtros compactos, cartões clicáveis, elementos no horário, alerta de taxa, faturamento e custos fixos ===== */
/* filtros menores e centralizados */
.cl-filters { text-align: center; padding: 10px 12px; }
.cl-filters .clf-lbl { margin: 0 0 6px; text-align: center; font-size: 9.5px; }
.clf-chips { justify-content: center; gap: 5px; }
.clf { min-height: 30px; padding: 0 11px 0 9px; gap: 5px; border-radius: 999px; font-size: 12.5px; }
.clf svg { width: 13px; height: 13px; }
.clf:hover { transform: none; }
.clf-sub { display: flex; flex-direction: column; align-items: center; margin-top: 9px; padding-top: 8px; }
.clf-sub .seg { padding: 2px; }
.clf-sub .seg button { padding: 4px 10px; font-size: 11.5px; }
.clf-hint { justify-content: center; text-align: left; font-size: 12px; margin-top: 8px; }
@media (max-width: 600px) { .clf-chips { justify-content: flex-start; } }
/* cartões do topo clicáveis */
.cl-stat.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(169, 130, 74, .22), var(--shadow-2); }
.cl-stat.s0.on { box-shadow: 0 0 0 3px rgba(243, 211, 139, .5), var(--shadow-2); }
.cl-stat.link::after { content: "›"; }
.cl-showing { display: flex; align-items: center; gap: 8px; margin: -4px 0 10px; padding: 8px 12px; border-radius: 12px; background: var(--gold-t); color: var(--gold-d); font-size: 13px; }
.cl-showing svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
.cl-showing span { flex: 1; }
.cl-showing button { border: 0; background: var(--paper); color: var(--gold-d); font: inherit; font-weight: 700; font-size: 12.5px; padding: 5px 12px; border-radius: 999px; cursor: pointer; box-shadow: var(--shadow-1); }

/* janela do horário: Ficha e Remarcar como elementos */
.aa-els { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.aa-el { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 58px; border-radius: 16px; border: 1px solid #e3d3bb; background: linear-gradient(135deg, #fffdf9, #f7eddd);
  color: var(--ink); text-decoration: none; font: inherit; text-align: left; cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s; }
.aa-el:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--gold-l); }
.aa-el:only-child { grid-column: 1 / -1; }
.ael-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px; color: #fff; box-shadow: 0 4px 10px rgba(138, 104, 53, .25); }
.el-ficha .ael-ic { background: linear-gradient(135deg, #c39a5d, var(--gold-d)); }
.el-move .ael-ic { background: linear-gradient(135deg, #5b7fc4, #33569a); box-shadow: 0 4px 10px rgba(51, 86, 154, .25); }
.ael-ic svg, .ael-go svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ael-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ael-txt b { font-size: 14.5px; font-weight: 700; }
.ael-txt small { font-size: 11.5px; color: var(--muted); }
.ael-go { color: var(--gold); display: inline-flex; transition: transform .15s; }
.aa-el:hover .ael-go { transform: translateX(3px); }
@media (max-width: 420px) { .aa-els { grid-template-columns: 1fr; } }

/* alerta forte: taxa da maquininha em 0% */
.fee-alert { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 0 0 16px; border-radius: 18px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #d63a2c, #9f2116 70%); box-shadow: 0 10px 26px rgba(190, 40, 28, .35); border: 1px solid #8e1d14; animation: fee-pulse 2.4s ease-in-out infinite; }
.fee-alert::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 12px, transparent 12px 24px); pointer-events: none; }
.fa-ic { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; color: #c22d20; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.fa-ic svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fa-txt { position: relative; flex: 1; min-width: 0; }
.fa-txt b { display: block; font-size: 15.5px; letter-spacing: .01em; }
.fa-txt p { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: #ffe3de; }
.fa-txt u { text-decoration-color: #ffd0c8; text-underline-offset: 2px; color: #fff; font-weight: 700; }
.fa-btn { position: relative; flex: none; background: #fff !important; color: #b0281c !important; font-weight: 800; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2) !important; }
.fa-btn:hover { transform: translateY(-1px); }
@keyframes fee-pulse { 0%, 100% { box-shadow: 0 10px 26px rgba(190, 40, 28, .35); } 50% { box-shadow: 0 10px 34px rgba(220, 50, 35, .6); } }
@media (max-width: 640px) { .fee-alert { flex-wrap: wrap; } .fa-btn { width: 100%; } }

/* faturamento e resultado */
.kpi2.big b { font-size: 1.12em; }
.fin-tip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin: -2px 0 14px; border-radius: 14px; background: #fbf1dc; border: 1px solid #ecd6a6; font-size: 13.5px; }
.fin-tip svg { width: 16px; height: 16px; stroke: var(--gold-d); fill: none; stroke-width: 2; flex: none; }
.fin-tip span { flex: 1; min-width: 200px; }
.fin-split { margin-bottom: 14px; }
.wf { display: grid; gap: 9px; margin-top: 6px; }
.wf-row { display: grid; grid-template-columns: minmax(150px, 1.1fr) 2fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.wf-l { display: flex; align-items: center; gap: 6px; }
.wf-l i { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; font-style: normal; font-weight: 800; font-size: 12px; background: #f6e1dd; color: var(--bad); }
.wf-bar { height: 12px; border-radius: 99px; background: #f3ebe0; overflow: hidden; }
.wf-bar b { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f0a99f, var(--bad)); }
.wf-v { font-weight: 700; font-variant-numeric: tabular-nums; }
.wf-gross .wf-bar b { background: linear-gradient(90deg, #e7cf9f, var(--gold)); }
.wf-gross .wf-l { font-weight: 700; }
.wf-res { padding-top: 9px; border-top: 1px dashed var(--line); }
.wf-res .wf-l { font-weight: 800; }
.wf-res .wf-l i { background: #e3f3e9; color: #1d8a4a; }
.wf-res .wf-bar b { background: linear-gradient(90deg, #8fd0a6, #1d8a4a); }
.wf-res .wf-v { color: #1d8a4a; font-size: 15px; }
.wf-res.bad .wf-bar b { background: linear-gradient(90deg, #f0a99f, var(--bad)); } .wf-res.bad .wf-v { color: var(--bad); } .wf-res.bad .wf-l i { background: #f6e1dd; color: var(--bad); }
.neg-bars .bar i { background: linear-gradient(90deg, #f0bdb4, #c0584a); }
.paybars > div > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.neg-bars > div { grid-template-columns: minmax(120px, 190px) 1fr auto; }
.fin-groups { display: grid; gap: 8px; margin-top: 6px; }
.fg-row { display: grid; grid-template-columns: minmax(110px, 170px) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.fg-bars { display: grid; gap: 3px; }
.fg-bars i { display: block; height: 7px; border-radius: 99px; min-width: 2px; }
.fg-bars i.in, .fg-legend i.in { background: linear-gradient(90deg, #e7cf9f, var(--gold)); }
.fg-bars i.out, .fg-legend i.out { background: linear-gradient(90deg, #f0bdb4, #c0584a); }
.fg-v { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; font-variant-numeric: tabular-nums; }
.fg-v small.pos { color: #1d8a4a; font-weight: 700; } .fg-v small.neg { color: var(--bad); font-weight: 700; }
.fg-legend { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.fg-legend i { display: inline-block; width: 18px; height: 7px; border-radius: 99px; margin-left: 6px; }
@media (max-width: 560px) { .wf-row { grid-template-columns: 1fr auto; } .wf-bar { grid-column: 1 / -1; grid-row: 2; } .fg-row { grid-template-columns: 1fr auto; } .fg-bars { grid-column: 1 / -1; grid-row: 2; } }

/* custos fixos */
.fx-top { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 12px; margin-bottom: 12px; }
.fx-total { display: flex; flex-direction: column; gap: 2px; padding: 18px; border-radius: 20px; color: #fff; background: linear-gradient(150deg, #2a211c, #46331f); box-shadow: 0 10px 26px rgba(28, 23, 21, .3); }
.fx-total small { color: #d8c09a; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.fx-total b { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1.1; color: #f3d38b; }
.fx-total span { color: #eadbc4; font-size: 13px; }
.fx-total em { font-style: normal; margin-top: 6px; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #f3d38b; font-size: 12px; font-weight: 700; }
.fx-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; align-content: start; padding: 12px; border-radius: 20px; background: var(--paper); border: 1px solid #ecdfcc; }
.fx-cat { position: relative; display: flex; align-items: center; gap: 9px; padding: 8px 10px 12px; border-radius: 12px; background: #fbf6ef; overflow: hidden; }
.fx-cat b { display: block; font-size: 14px; } .fx-cat small { font-size: 11px; color: var(--muted); }
.fx-cat > i { position: absolute; left: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--gold-l), var(--gold)); }
.fx-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fx-bar p { flex: 1; min-width: 240px; margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.fx-bar p svg { width: 16px; height: 16px; flex: none; margin-top: 2px; stroke: var(--gold); fill: none; stroke-width: 2; }
.fx-add { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; min-height: 44px; padding: 0 18px; font-weight: 700; box-shadow: 0 6px 16px rgba(138, 104, 53, .3); }
.fx-add svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.fx-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 900px) { .fx-list { grid-template-columns: 1fr 1fr; } }
.fx-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 1px solid #ecdfcc; box-shadow: var(--shadow-1); }
.fx-card.off { opacity: .6; }
.fx-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--gold-t); color: var(--gold-d); font-style: normal; }
.fx-ic.sm { width: 28px; height: 28px; border-radius: 9px; }
.fx-ic svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fx-ic.sm svg { width: 14px; height: 14px; }
.fx-ic.c-folha { background: #e8f3ff; color: #2563a8; } .fx-ic.c-aluguel { background: #f3e8ff; color: #7a3fb0; } .fx-ic.c-contas { background: #fff4d6; color: #9a6a12; }
.fx-ic.c-sistemas { background: #e3f3e9; color: #1d8a4a; } .fx-ic.c-contador { background: #efe6d9; color: var(--gold-d); } .fx-ic.c-marketing { background: #fde6ee; color: #b2335f; }
.fx-ic.c-parcelas { background: #f6e1dd; color: var(--bad); } .fx-ic.c-manutencao { background: #e6f4f4; color: #23807e; }
.fx-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fx-who b { font-size: 15px; } .fx-who small { color: var(--muted); font-size: 12.5px; }
.fx-who em { font-style: normal; font-size: 11.5px; color: var(--gold-d); margin-top: 2px; } .fx-who .fx-note { color: var(--muted); }
.fx-val { display: flex; flex-direction: column; align-items: flex-end; }
.fx-val b { font-family: var(--display); font-weight: 400; font-size: 20px; } .fx-val small { font-size: 11px; color: var(--muted); }
.fx-acts { display: flex; gap: 4px; }
.fx-acts .iconbtn { width: 34px; height: 34px; }
.fx-ended { margin-bottom: 16px; } .fx-ended summary { cursor: pointer; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.fx-catpick { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.fxc input { position: absolute; opacity: 0; pointer-events: none; }
.fxc span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; border: 1px solid #e6d8c3; background: var(--paper); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .15s; }
.fxc input:checked + span { border-color: var(--gold); background: #fbf0dc; box-shadow: 0 0 0 2px rgba(169, 130, 74, .25); }
.fxc input:focus-visible + span { outline: 2px solid var(--gold); }
.fx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
@media (max-width: 700px) { .fx-top { grid-template-columns: 1fr; } .fx-card { flex-wrap: wrap; } .fx-val { margin-left: auto; } }

.fin-kpis .kpi2 b { font-size: clamp(16px, 1.5vw, 21px); white-space: nowrap; }
.fin-kpis .kpi2 .k-txt { min-width: 0; }

/* ===== v24 (16/nov/2026): selo nas setas, faixa de ocupação compacta, formulário de custo fixo ===== */
input[type=month], .field input:not([type]) { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font: inherit; font-size: 16px; }
/* setas da data com selo */
.navtag-btn { position: relative; overflow: visible; }
.nav-tag { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); padding: 1px 6px; border-radius: 999px; font-style: normal; font-size: 9px; font-weight: 800;
  letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; color: var(--gold-d); background: #fff; border: 1px solid var(--gold-l); box-shadow: 0 2px 6px rgba(138, 104, 53, .18); line-height: 1.5; pointer-events: none; }
.nav-tag.rel { color: #fff; background: linear-gradient(135deg, #c39a5d, var(--gold-d)); border-color: var(--gold-d); }
.tb-date { padding-bottom: 6px; }
/* faixa de ocupação mais baixa */
.tb-occ { padding: 4px 10px !important; gap: 2px 10px !important; min-height: 0; }
.tb-occ .ring.sm { width: 34px; height: 34px; }
.tb-occ .ring.sm b { font-size: 10.5px; }
.tb-occ-txt strong { font-size: 12.5px !important; display: flex !important; align-items: center; gap: 6px; flex-wrap: wrap; }
.tb-occ-txt small { font-size: 11px !important; }
.tb-occ .occflag { font-size: 8.5px; padding: 1px 6px; gap: 3px; }
.tb-occ .occflag svg { width: 10px; height: 10px; }
.tb-occ .occbar { height: 5px !important; }

/* formulário de custo fixo */
.fx-form .field > span:first-child { font-weight: 700; }
.fx-sec { margin: 4px 0 14px; padding: 12px; border-radius: 16px; background: rgba(255, 253, 250, .7); border: 1px solid #ecdfcc; text-align: center; }
.fx-sec-t { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 9px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-d); }
.fx-sec-t svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.fx-form .fx-catpick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.fx-form .fx-catpick.pay { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fx-form .fxc { position: relative; display: block; min-width: 0; }
.fx-form .fxc span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 100%; height: 100%; min-height: 70px; padding: 8px 6px;
  border-radius: 14px; border: 1px solid #e6d8c3; background: var(--paper); text-align: center; transition: all .15s var(--ease); }
.fx-form .fxc span b { font-size: 11.5px; font-weight: 700; line-height: 1.2; }
.fx-form .fxc .fx-ic.sm { width: 30px; height: 30px; }
.fx-form .fxc .fx-ic.pay { background: var(--gold-t); color: var(--gold-d); }
.fx-form .fxc:hover span { border-color: var(--gold-l); transform: translateY(-1px); }
.fx-form .fxc input:checked + span { border-color: var(--gold); background: linear-gradient(160deg, #fff8ea, #f6e6c8); box-shadow: 0 0 0 2px rgba(169, 130, 74, .3), 0 4px 10px rgba(138, 104, 53, .15); }
.fx-form .fxc input:checked + span::after { content: "✓"; position: absolute; top: 5px; right: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); color: #fff; font-size: 10px; font-weight: 900; line-height: 16px; }
.fx-seg { display: inline-flex; flex-wrap: wrap; justify-content: center; padding: 3px; border-radius: 999px; background: #efe6d9; }
.fx-seg label { position: relative; }
.fx-seg input, .wdc input { position: absolute; opacity: 0; pointer-events: none; }
.fx-seg span { display: block; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; transition: all .15s; }
.fx-seg input:checked + span { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-1); }
.fx-money { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; margin-bottom: 4px; }
.fx-cur { display: flex; align-items: center; border: 1.5px solid #e2d2b9; border-radius: 12px; background: var(--paper); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.fx-cur:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-t); }
.fx-cur i { flex: none; padding: 0 10px 0 12px; font-style: normal; font-weight: 800; color: var(--gold-d); font-size: 14px; align-self: stretch; display: flex; align-items: center; background: #f7eedf; border-right: 1px solid #ecdcc2; }
.fx-cur input { border: 0 !important; box-shadow: none !important; background: transparent !important; min-height: 46px; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fx-cur.sm input { font-size: 17px; }
.fx-eqv { display: block; min-height: 16px; margin-top: 3px; font-size: 12px; color: var(--gold-d); font-weight: 700; }
.fx-due small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.fx-due-week { display: flex; gap: 4px; justify-content: space-between; }
.wdc { position: relative; flex: 1; }
.wdc span { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 12px; border: 1px solid #e2d2b9; background: var(--paper); font-weight: 800; font-size: 13px; cursor: pointer; transition: all .15s; }
.wdc input:checked + span { background: linear-gradient(135deg, #c39a5d, var(--gold-d)); color: #fff; border-color: var(--gold-d); }
.fx-save { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; font-size: 16px; margin-top: 4px; }
.fx-save svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.fx-val .fx-eq { color: var(--gold-d); font-weight: 700; }
@media (max-width: 480px) { .fx-form .fxc span b { font-size: 10.5px; } .fx-money { grid-template-columns: 1fr; } }
.field .fx-cur { display: flex; flex-direction: row; margin: 0; }
.field .fx-cur i { display: flex; }
.fx-due > span:first-child { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }

/* histórico de comissões do One Beleza */
.hist-com .hc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.hist-com h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.hist-com h3 svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 2; }
.hc-sum { display: flex; gap: 8px; flex-wrap: wrap; }
.hc-sum > span { display: flex; flex-direction: column; padding: 6px 12px; border-radius: 12px; background: var(--gold-t); }
.hc-sum small { font-size: 10.5px; font-weight: 700; color: var(--gold-d); text-transform: uppercase; letter-spacing: .05em; }
.hc-sum b { font-size: 15px; font-variant-numeric: tabular-nums; }
.hc-pros { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-bottom: 12px; }
.hc-pro { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, #fffdf9, #f7eddd); border: 1px solid #ecdcc2; }
.hc-who { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hc-who b { font-size: 15px; } .hc-who small { font-size: 11.5px; color: var(--muted); }
.hc-who .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.hc-k { display: flex; flex-direction: column; align-items: flex-end; }
.hc-k small { font-size: 10.5px; color: var(--muted); } .hc-k b { font-variant-numeric: tabular-nums; } .hc-k .hc-c { color: var(--gold-d); }

/* ===== v26 (16/nov/2026): painel das profissionais (comissão por serviço, vales, pagamentos) ===== */
.pro-top { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 12px; align-items: center; margin-bottom: 14px; }
.pt-total { display: flex; flex-direction: column; padding: 16px 18px; border-radius: 20px; color: #fff; background: linear-gradient(150deg, #2a211c, #46331f); box-shadow: 0 10px 26px rgba(28, 23, 21, .3); }
.pt-total small { color: #d8c09a; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pt-total b { font-family: var(--display); font-weight: 400; font-size: 34px; color: #f3d38b; line-height: 1.15; }
.pt-total span { color: #eadbc4; font-size: 13px; }
.pro-top p { display: flex; gap: 8px; margin: 0; } .pro-top p svg { width: 16px; height: 16px; flex: none; margin-top: 2px; stroke: var(--gold); fill: none; stroke-width: 2; }
.pro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pro-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 20px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; overflow: hidden;
  background: linear-gradient(160deg, #fffdf9, #f8efe2); border: 1px solid #ecdfcc; box-shadow: var(--shadow-1); transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s; }
.pro-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--pc, var(--gold)); }
.pro-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--gold-l); }
.pro-card.off { opacity: .55; }
.pc-head { display: flex; align-items: center; gap: 12px; }
.pc-who { display: flex; flex-direction: column; min-width: 0; } .pc-who b { font-size: 17px; } .pc-who small { color: var(--muted); font-size: 12.5px; }
.pc-total { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 14px; border-radius: 14px; background: #1f1915; color: #fff; }
.pc-total small { color: #d8c09a; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.pc-total b { font-family: var(--display); font-weight: 400; font-size: 26px; color: #f3d38b; }
.pc-lines { display: grid; gap: 6px; font-size: 13px; }
.pc-lines > span { display: flex; align-items: center; gap: 8px; }
.pc-lines i { display: inline-flex; width: 24px; height: 24px; border-radius: 8px; align-items: center; justify-content: center; background: var(--gold-t); color: var(--gold-d); }
.pc-lines .pos i { background: #e3f3e9; color: #1d8a4a; } .pc-lines .neg i { background: #fbe4df; color: var(--bad); }
.pc-lines svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.pc-lines b { margin-left: auto; font-variant-numeric: tabular-nums; } .pc-lines em { font-style: normal; color: var(--muted); font-size: 11.5px; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px dashed #e6d8c3; }
.pc-foot small { color: var(--muted); font-size: 11.5px; }
.pay-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--gold-t); color: var(--gold-d); }
.pay-badge svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.pay-badge.soon { background: #fff1cc; color: #8a5a00; } .pay-badge.today { background: linear-gradient(135deg, #d63a2c, #9f2116); color: #fff; }
.pp-back { margin-bottom: 10px; display: inline-flex; align-items: center; gap: 6px; } .pp-back svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.pp-hero { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px; margin-bottom: 14px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(135deg, #fffaf2, #f3e6cf); border: 1px solid #e6d3b3; box-shadow: var(--shadow-1); }
.pp-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--pc, var(--gold)); }
.pp-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pp-who h3 { margin: 0; font-size: 24px; } .pp-who > span { color: var(--muted); font-size: 13px; }
.pp-total { display: flex; flex-direction: column; align-items: flex-end; padding: 12px 18px; border-radius: 16px; background: #1f1915; color: #fff; box-shadow: 0 8px 20px rgba(28, 23, 21, .3); }
.pp-total small { color: #d8c09a; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.pp-total b { font-family: var(--display); font-weight: 400; font-size: 32px; color: #f3d38b; line-height: 1.15; }
.pp-total span { color: #cdbba0; font-size: 11.5px; }
@media (max-width: 640px) { .pp-hero { flex-wrap: wrap; } .pp-total { width: 100%; align-items: flex-start; } .pro-top { grid-template-columns: 1fr; } }
.pp-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.pp-act { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 16px; border: 1px solid #ecdfcc; background: var(--paper); font: inherit; cursor: pointer; text-align: center; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.pp-act:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.pp-act > span { display: inline-flex; width: 38px; height: 38px; border-radius: 12px; align-items: center; justify-content: center; color: #fff; }
.pp-act svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pp-act b { font-size: 13.5px; } .pp-act small { font-size: 11px; color: var(--muted); }
.a-vale > span { background: linear-gradient(135deg, #e0584a, #a1291e); } .a-desc > span { background: linear-gradient(135deg, #e48a5a, #b2552a); }
.a-bonus > span { background: linear-gradient(135deg, #3fb36c, #1d7a45); } .a-prod > span { background: linear-gradient(135deg, #5b7fc4, #33569a); }
.a-pay { background: linear-gradient(160deg, #2a211c, #1c1715); border-color: #1c1715; color: #fff; } .a-pay small { color: #d8c09a; }
.a-pay > span { background: linear-gradient(135deg, #e7cf9f, var(--gold)); color: #1c1715; }
@media (max-width: 760px) { .pp-actions { grid-template-columns: repeat(2, 1fr); } .a-pay { grid-column: 1 / -1; } }
.led-list, .pay-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.led-list li, .pay-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: #fbf6ef; border: 1px solid #f0e6d8; }
.ll-ic { display: inline-flex; width: 30px; height: 30px; border-radius: 10px; align-items: center; justify-content: center; flex: none; }
.led-list .neg .ll-ic { background: #fbe4df; color: var(--bad); } .led-list .pos .ll-ic { background: #e3f3e9; color: #1d8a4a; }
.ll-ic svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.ll-txt, .pl-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; } .ll-txt small, .pl-txt small { color: var(--muted); font-size: 11.5px; }
.pl-txt em { font-style: normal; font-size: 12px; color: var(--gold-d); }
.ll-v { font-weight: 800; font-variant-numeric: tabular-nums; } .led-list .neg .ll-v { color: var(--bad); } .led-list .pos .ll-v { color: #1d8a4a; }
.pl-date { display: flex; flex-direction: column; align-items: center; width: 42px; padding: 3px 0; border-radius: 10px; background: #fff; border: 1px solid #e6d3b3; }
.pl-date b { font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1.1; } .pl-date small { font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--gold-d); }
.pp-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pp-sec-head h3, .card h3 { display: flex; align-items: center; gap: 8px; } .card h3 > svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 2; }
.com-quick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; font-size: 13px; color: var(--muted); }
.com-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 6px; }
.com-row { display: grid; grid-template-columns: 1fr auto 86px 80px; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 12px; background: #fbf6ef; border: 1px solid #f0e6d8; font-size: 13px; }
.cr-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cr-name i { font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--gold-d); margin-right: 6px; }
.cr-price { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.cr-pct { display: flex; align-items: center; border: 1.5px solid #e2d2b9; border-radius: 10px; background: var(--paper); overflow: hidden; }
.cr-pct input { border: 0 !important; box-shadow: none !important; min-height: 34px !important; padding: 4px 6px !important; text-align: right; font-weight: 800; font-size: 15px; background: transparent !important; }
.cr-pct em { font-style: normal; padding: 0 8px 0 2px; font-weight: 800; color: var(--gold-d); }
.cr-pct-ro { text-align: right; } .cr-val { text-align: right; font-weight: 700; color: #1d8a4a; font-variant-numeric: tabular-nums; }
.proset { display: grid; gap: 12px; justify-items: start; }
.proset-row { display: grid; grid-template-columns: repeat(2, minmax(200px, 280px)); gap: 10px; width: 100%; }
@media (max-width: 560px) { .proset-row { grid-template-columns: 1fr; } .com-row { grid-template-columns: 1fr 86px 70px; } .cr-price { display: none; } }
.pay-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.pay-sum > div { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 12px; background: #f3ece2; text-align: center; }
.pay-sum small { font-size: 11px; color: var(--muted); } .pay-sum b { font-variant-numeric: tabular-nums; }
.pay-sum .pos b { color: #1d8a4a; } .pay-sum .neg b { color: var(--bad); } .pay-sum .tot { background: #1f1915; color: #fff; } .pay-sum .tot small { color: #d8c09a; } .pay-sum .tot b { color: #f3d38b; font-size: 16px; }
@media (max-width: 480px) { .pay-sum { grid-template-columns: 1fr 1fr; } }
.led-kinds { margin-bottom: 6px; } .led-hint { margin: 0 0 10px; text-align: center; }
.my-panel-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); background: linear-gradient(135deg, #fffaf2, #f3e6cf); border-color: #e6d3b3; }
.mpl-ic { display: inline-flex; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center; background: linear-gradient(135deg, #c39a5d, var(--gold-d)); color: #fff; flex: none; }
.mpl-ic svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.my-panel-link > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; } .my-panel-link small { color: var(--muted); font-size: 12.5px; }

/* ===== v27: competência, comissão por categoria, botão do aviso de caixa ===== */
.ca-btns { display: flex; gap: 6px; flex-wrap: wrap; flex: none; }
.ca-go { display: inline-flex; align-items: center; gap: 6px; background: #fff !important; color: #a1291e !important; font-weight: 800; box-shadow: 0 3px 10px rgba(0,0,0,.18) !important; }
.ca-go svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.ca-now { color: #fff !important; border: 1px solid rgba(255,255,255,.6) !important; background: transparent !important; }
.ps-hint { display: block; margin-top: 3px; font-size: 11.5px; }
.com-card .com-quick { margin-bottom: 12px; }
.com-cfg { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 12.5px; color: var(--gold-d); text-decoration: none; }
.com-cfg svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.com-cat { margin-bottom: 10px; border-radius: 18px; border: 1px solid #ecdcc2; background: linear-gradient(160deg, #fffdf9, #faf3e8); overflow: hidden; }
.com-cat > summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.com-cat > summary::-webkit-details-marker { display: none; }
.cc-ic { display: inline-flex; width: 38px; height: 38px; border-radius: 12px; align-items: center; justify-content: center; background: linear-gradient(135deg, #c39a5d, var(--gold-d)); color: #fff; flex: none; }
.cc-ic svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; }
.cc-t { flex: 1; display: flex; flex-direction: column; } .cc-t b { font-size: 16px; } .cc-t small { color: var(--muted); font-size: 12px; }
.cc-avg { padding: 4px 12px; border-radius: 999px; background: #1f1915; color: #f3d38b; font-weight: 800; font-size: 13px; }
.cc-chev { display: inline-flex; color: var(--gold); transition: transform .2s; } .cc-chev svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.com-cat[open] .cc-chev { transform: rotate(180deg); }
.com-quick.cat { padding: 0 14px; margin: 0 0 8px; }
.com-sub { margin: 0 12px 12px; padding: 10px 12px; border-radius: 14px; background: var(--paper); border: 1px solid #f0e6d8; }
.cs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px dashed #e6d8c3; }
.cs-head b { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-d); } .cs-head span { font-size: 12px; color: var(--muted); }
.com-line { display: grid; grid-template-columns: 1fr auto 92px 84px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid #f6efe4; font-size: 14px; }
.com-line:last-child { border-bottom: 0; }
.cl-name { font-weight: 600; line-height: 1.3; } .cl-name i { font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--gold-d); background: var(--gold-t); padding: 1px 6px; border-radius: 6px; margin-left: 4px; white-space: nowrap; }
.cl-price { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .com-line { grid-template-columns: 1fr 84px 70px; } .cl-price { display: none; } }

.hist-row td { background: #fbf3e4; }

/* ===== v29: Marketing (Meta Ads) ===== */
.mkt-head h2 span { color: var(--muted); font-size: .7em; }
.mkt-acc { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--paper); border: 1px solid #ecdfcc; font-size: 13px; }
.mkt-acc svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 2; }
.mkt-refresh { display: inline-flex; align-items: center; gap: 6px; } .mkt-refresh svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.mkt-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--muted); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--gold-t); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mkt-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
@media (max-width: 1000px) { .mkt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mkt-kpis > :first-child { grid-column: 1 / -1; } }
.mkt-mini { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.mkt-mini > div { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 14px; background: var(--paper); border: 1px solid #ecdfcc; }
.mkt-mini small { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; } .mkt-mini b { font-size: 17px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .mkt-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mkt-ch-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.mkt-leg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.mkt-leg i { display: inline-block; width: 14px; height: 8px; border-radius: 3px; margin-left: 6px; } .mkt-leg .b { background: var(--gold-l); } .mkt-leg .l { background: #1d8a4a; height: 3px; }
.mkt-chart { width: 100%; height: 210px; display: block; }
.mkt-chart .gl { stroke: #efe6d9; stroke-width: 1; } .mkt-chart .bar { fill: url(#none); fill: #e3cba3; } .mkt-chart .bar:hover { fill: var(--gold); }
.mkt-chart .ln { fill: none; stroke: #1d8a4a; stroke-width: 2.5; stroke-linejoin: round; } .mkt-chart .pt { fill: #fff; stroke: #1d8a4a; stroke-width: 2; }
.mkt-chart .tx { font-size: 10px; fill: var(--muted); text-anchor: middle; }
.hour-grid { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px; align-items: end; height: 150px; margin: 8px 0 6px; }
.hb { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
.hb span { display: block; width: 100%; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #e7cf9f, var(--gold-l)); transition: background .15s; }
.hb small { font-size: 10px; color: var(--muted); margin-top: 4px; }
.hb:hover span { background: var(--gold); } .hb.best span { background: linear-gradient(180deg, #3fb36c, #1d7a45); } .hb.best small { color: #1d7a45; font-weight: 800; }
.mkt-tbl th[data-sort] { cursor: pointer; } .mkt-tbl th.sorted { color: var(--gold-d); }
.mkt-connect { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.mc-hero { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: 22px; color: #fff; background: linear-gradient(140deg, #2a211c, #46331f); box-shadow: 0 10px 26px rgba(28,23,21,.3); }
.mc-hero h3 { margin: 0 0 4px; color: #f3d38b; font-size: 21px; } .mc-hero p { margin: 0; color: #eadbc4; font-size: 14px; }
.mc-ic { display: inline-flex; width: 56px; height: 56px; border-radius: 16px; align-items: center; justify-content: center; background: linear-gradient(135deg, #e7cf9f, var(--gold)); color: #1c1715; flex: none; }
.mc-ic svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2; }
.mc-form h3 svg, .mc-help svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 2; }
.mc-help summary { cursor: pointer; } .mc-help ol { margin: 10px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.acc-list { display: grid; gap: 6px; } .acc-pick { display: flex; flex-direction: column; align-items: flex-start; padding: 10px 14px; border-radius: 14px; border: 1px solid #e6d8c3; background: var(--paper); font: inherit; cursor: pointer; text-align: left; }
.acc-pick:hover, .acc-pick.on { border-color: var(--gold); background: #fff8ec; } .acc-pick small { color: var(--muted); font-size: 12px; }

/* ===== v30: Marketing em seções + cadastros ===== */
.mkt-tabs { margin-bottom: 14px; }
.tab-count { margin-left: 6px; padding: 0 7px; border-radius: 999px; background: #c22d20; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; }
.conn-dot { width: 8px; height: 8px; border-radius: 50%; background: #cfc4b5; margin-left: 6px; } .conn-dot.on { background: #1d8a4a; box-shadow: 0 0 0 3px #d9f2e1; } .conn-dot.half { background: #e2a91d; }
.mkt-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 34px 20px; border-radius: 22px; background: var(--paper); border: 1px dashed var(--gold-l); }
.mkt-empty h3 { margin: 6px 0 0; } .mkt-empty p { max-width: 560px; color: var(--muted); margin: 0 0 8px; }
.mkt-empty .btn, .lp-cta .btn, .conn-card .btn { display: inline-flex; align-items: center; gap: 6px; } .mkt-empty .btn svg, .lp-cta .btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.mc-hero.g { background: linear-gradient(140deg, #1d3557, #2c5282); } .mc-hero.g h3 { color: #cfe2ff; }
.conn-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px; border-radius: 18px; background: var(--paper); border: 1px solid #ecdfcc; box-shadow: var(--shadow-1); margin-bottom: 12px; }
.conn-card.ok { border-color: #9fd8b2; background: linear-gradient(135deg, #f4fcf6, #fffdfa); } .conn-card.half { border-color: #efd58f; background: linear-gradient(135deg, #fffaeb, #fffdfa); }
.cn-ic { display: inline-flex; width: 46px; height: 46px; border-radius: 14px; align-items: center; justify-content: center; color: #fff; flex: none; } .cn-ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.cn-ic.meta { background: linear-gradient(135deg, #3b82f6, #1d4ed8); } .cn-ic.google { background: linear-gradient(135deg, #34a853, #1a73e8); }
.cn-txt { flex: 1; min-width: 200px; display: flex; flex-direction: column; } .cn-txt b { font-size: 16px; } .cn-txt span, .cn-txt small { color: var(--muted); font-size: 13px; }
.cn-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.lp-wrap { display: grid; gap: 12px; }
.lp-cta { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 20px; border-radius: 22px; color: #fff; background: linear-gradient(140deg, #2a211c, #46331f); box-shadow: 0 10px 26px rgba(28,23,21,.3); }
.lp-cta h3 { margin: 0 0 4px; color: #f3d38b; } .lp-cta p { margin: 0; color: #eadbc4; font-size: 14px; } .lp-cta b { color: #fff; }
.lp-cta-btns { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.lp-cta .btn.ghost { color: #f3d38b; border: 1px solid rgba(243,211,139,.5); } .lp-wa { display: inline-flex; }
.lp-folds { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.lp-folds li { display: flex; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fbf6ef; border: 1px solid #f0e6d8; }
.lf-n { display: inline-flex; width: 28px; height: 28px; border-radius: 9px; align-items: center; justify-content: center; background: linear-gradient(135deg, #c39a5d, var(--gold-d)); color: #fff; font-weight: 800; flex: none; }
.lp-folds b { display: block; } .lp-folds small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.lp-list { margin: 6px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.brief-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; } .brief-top h3 { margin: 0; }
.brief-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.brief-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid #ecdfcc; background: var(--paper); font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow-1); }
.brief-row:hover { border-color: var(--gold-l); transform: translateY(-1px); }
.br-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; } .br-txt small { color: var(--muted); font-size: 12.5px; }
.br-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; } .br-meta small { color: var(--muted); font-size: 11.5px; }
.bv-sec { margin-bottom: 14px; padding: 12px; border-radius: 14px; background: var(--paper); border: 1px solid #ecdfcc; }
.bv-sec h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-d); }
.bv-row { display: grid; grid-template-columns: 170px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid #f6efe4; font-size: 13.5px; } .bv-row:last-child { border-bottom: 0; }
.bv-row > span { color: var(--muted); font-weight: 600; } @media (max-width: 520px) { .bv-row { grid-template-columns: 1fr; gap: 2px; } }
.brief-sub { display: grid; gap: 3px; } .brief-sub i { font-style: normal; color: var(--muted); margin-right: 6px; }
.brief-tbl td { padding: 4px 6px; font-size: 12.5px; }
.bv-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.bv-file { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--muted); font-size: 11px; }
.bv-file img, .bv-file > span { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid #ecdfcc; background: #f3ece2; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--gold-d); }

.bv-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--gold-t); color: var(--gold-d); font-weight: 700; text-decoration: none; }
.bv-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ===== v32: painel Loures Growth Marketing (identidade da agência: verde #1f6f4e, Sora/Manrope) ===== */
.lg { --lg-ink: #12231c; --lg-green: #1f6f4e; --lg-green-l: #9fd4b0; --lg-dark: #1f352c; --lg-bg1: #eef3ec; --lg-bg2: #f6f8f5; --lg-line: #dbe5dd; font-family: Manrope, var(--body); color: var(--lg-ink); }
.lg h2, .lg h3, .lg .lg-logo b { font-family: Sora, var(--display); letter-spacing: -.02em; }
.tabbar a[href="#/loures"] svg { stroke: none; fill: none; color: #1f6f4e; } .tabbar a[href="#/loures"][aria-current=page] { color: #1f6f4e; }
.lg-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.lg-head h2 { margin: 0; font-size: 24px; font-weight: 800; flex: 1; }
.lg-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--lg-green); padding-right: 14px; border-right: 1px solid var(--lg-line); }
.lg-logo svg { width: 34px; height: 34px; } .lg-logo > span { display: flex; flex-direction: column; line-height: 1; color: var(--lg-ink); }
.lg-logo b { font-size: 19px; font-weight: 800; } .lg-logo b i { font-style: normal; color: var(--lg-green); } .lg-logo small { font-size: 10px; color: #5d6f66; margin-top: 2px; }
.lg-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 800; font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 0; background: var(--lg-green); color: #fff; cursor: pointer; box-shadow: 0 6px 16px rgba(31,111,78,.25); text-decoration: none; }
.lg-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.lg-btn.ghost { background: #fff; color: var(--lg-green); border: 1.5px solid var(--lg-line); box-shadow: none; }
.lg-kpis { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.lgk { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 18px; background: var(--lg-bg2); border: 1px solid var(--lg-line); }
.lgk small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5d6f66; } .lgk b { font-family: Sora, var(--display); font-size: 28px; line-height: 1.15; } .lgk span { font-size: 12.5px; color: #5d6f66; }
.lgk.hero { background: linear-gradient(140deg, var(--lg-dark), #12231c); color: #fff; border-color: #12231c; } .lgk.hero small { color: var(--lg-green-l); } .lgk.hero b { color: #fff; } .lgk.hero span { color: #cfe3d6; }
.lgk.warn { border-color: #efd58f; background: #fffaeb; } .lgk.warn b { color: #8a5a00; } .lgk.bad { border-color: #f0b4ab; background: #fdecea; } .lgk.bad b { color: #a1291e; }
@media (max-width: 800px) { .lg-kpis { grid-template-columns: 1fr 1fr; } .lgk.hero { grid-column: 1 / -1; } }
.lg-sec { font-size: 16px; font-weight: 800; margin: 18px 0 10px; } .lg-sec small { color: #5d6f66; font-weight: 600; }
.lg-prods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lg-prod { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; background: #fff; border: 1.5px solid var(--lg-green-l); }
.lg-prod.soon { border-style: dashed; border-color: var(--lg-line); background: var(--lg-bg2); }
.lp-tag { align-self: flex-start; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--lg-green); color: #fff; }
.lg-prod.soon .lp-tag { background: #cfd9d2; color: var(--lg-ink); }
.lg-prod b { font-family: Sora, var(--display); font-size: 16px; margin-top: 4px; } .lg-prod small { color: #5d6f66; font-size: 12.5px; line-height: 1.4; }
.lp-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; font-size: 12.5px; color: #5d6f66; } .lp-foot em { font-style: normal; font-weight: 800; color: var(--lg-green); }
@media (max-width: 760px) { .lg-prods { grid-template-columns: 1fr; } }
.lg-briefs { display: grid; gap: 6px; }
.lg-brief { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: #fffaeb; border: 1px solid #efd58f; }
.lg-brief > span { flex: 1; min-width: 0; display: flex; flex-direction: column; } .lg-brief small { color: #5d6f66; font-size: 12.5px; }
.lg-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; } .lg-bar .lg-sec { margin: 0; margin-right: auto; }
.lg-bar input { max-width: 280px; min-height: 38px !important; border-radius: 999px !important; }
.lg-list { display: grid; gap: 8px; margin-top: 10px; }
.lg-row { display: grid; grid-template-columns: auto 1.2fr 1.3fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--lg-line); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.lg-row:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(18,35,28,.08); border-color: var(--lg-green-l); }
.lg .avatar { background: linear-gradient(135deg, #9fd4b0, #1f6f4e); box-shadow: 0 0 0 3px #fff, 0 0 0 4px #dbe5dd; }
.lr-who { display: flex; flex-direction: column; min-width: 0; } .lr-who b { font-size: 15px; } .lr-who small { color: #5d6f66; font-size: 12.5px; }
.lr-plans { display: flex; flex-wrap: wrap; gap: 4px; } .lr-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
@media (max-width: 700px) { .lg-row { grid-template-columns: auto 1fr; } .lr-plans, .lr-meta { grid-column: 2; align-items: flex-start; } }
.lg-due { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--lg-bg1); color: var(--lg-green); white-space: nowrap; }
.lg-due.soon { background: #fff1cc; color: #8a5a00; } .lg-due.late { background: #fdecea; color: #a1291e; } .lg-due.none { background: #f1efec; color: #8a8580; }
.lg-empty { padding: 26px; text-align: center; color: #5d6f66; border-radius: 16px; border: 1px dashed var(--lg-line); background: var(--lg-bg2); margin-top: 10px; } .lg-empty.sm { padding: 14px; }
.lg-back { display: inline-flex; align-items: center; gap: 6px; color: var(--lg-green); font-weight: 800; text-decoration: none; margin-bottom: 10px; } .lg-back svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.lg-client-hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px; border-radius: 22px; background: linear-gradient(140deg, var(--lg-bg1), #fff); border: 1px solid var(--lg-line); margin-bottom: 12px; }
.lg-client-hero > div { flex: 1; min-width: 200px; } .lg-client-hero h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; }
.lg-mrr { font-weight: 800; color: var(--lg-green); font-size: 14px; } .lg-hero-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.lg-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; margin-bottom: 12px; } @media (max-width: 860px) { .lg-split { grid-template-columns: 1fr; } }
.lg-card { padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--lg-line); margin-bottom: 12px; } .lg-card h3 { margin: 0 0 10px; font-size: 16px; font-weight: 800; } .lg-card h4 { margin: 12px 0 4px; font-size: 13px; color: #5d6f66; }
.lg-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; } .lg-card-head h3 { margin: 0; }
.lg-dl { display: grid; grid-template-columns: 130px 1fr; gap: 6px 10px; margin: 0; font-size: 14px; } .lg-dl dt { color: #5d6f66; font-weight: 600; } .lg-dl dd { margin: 0; }
.lg-p { margin: 0; font-size: 14px; white-space: pre-wrap; }
.lg-sub { padding: 12px; border-radius: 14px; background: var(--lg-bg2); border: 1px solid var(--lg-line); margin-bottom: 8px; }
.ls-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .ls-top b { font-family: Sora, var(--display); }
.ls-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .ls-grid > span { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.ls-grid small { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #5d6f66; } .ls-grid em { font-style: normal; color: #5d6f66; font-size: 11.5px; }
@media (max-width: 560px) { .ls-grid { grid-template-columns: 1fr 1fr; } }
.ls-acts { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.lg-del { margin-top: 6px; }
.lg-form .lg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; } .lg-form .lg-wide { grid-column: 1 / -1; }
.lg-prodpick { display: grid; gap: 6px; margin-bottom: 12px; }
.lgp input { position: absolute; opacity: 0; pointer-events: none; }
.lgp span { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 14px; border: 1.5px solid #dbe5dd; background: #fff; cursor: pointer; }
.lgp span small { color: #5d6f66; font-size: 12px; } .lgp input:checked + span { border-color: #1f6f4e; background: #eef3ec; box-shadow: 0 0 0 2px rgba(31,111,78,.2); }
.lgp.soon span { border-style: dashed; }

.lg-tabs { margin: 0 0 16px; }
.lg-tabs .adm-tab.on { color: #1f6f4e; }
.lg-tabs .adm-tab.on svg { stroke: #1f6f4e; }

.lg-ia { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 6px; background: #1f6f4e; color: #fff; vertical-align: 3px; letter-spacing: .04em; }

/* ===== Plataforma Loures: marca da empresa ===== */
.brand img { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; }
.brand-ini { display: inline-flex; width: 38px; height: 38px; border-radius: 11px; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--gold-l), var(--gold)); color: #fff; font-weight: 800; font-family: var(--body); letter-spacing: 0; font-size: 15px; }
.brand b { text-transform: uppercase; }
.brand .pl-name { font-family: Sora, var(--body); letter-spacing: .04em; text-transform: none; font-weight: 800; color: #12231c; }
.login .brand { justify-content: center; }

/* Tráfego: conectar contas (Meta + Google na mesma tela) */
.trf-conn{display:flex;flex-direction:column;gap:14px}
.trf-h{display:flex;align-items:center;gap:8px;margin:10px 0 0;font-size:1.05rem}
.trf-h svg{width:20px;height:20px;fill:none;stroke:currentColor}
