/* Layout: mesma moldura do painel SDIA (menu lateral + cabeçalho fixo); KPIs da carteira, gráficos 7/5, alertas de renovação e cobrança, tabela de clientes. Dark-first, acento vermelho. */
/* =========================================================
   TOKENS DO SDIA (Etapa 0)
   Primitivos: escala vermelha da marca (50 a 950, a marca é o 600)
   e neutros quentes. Os componentes usam os tokens semânticos
   (--bg, --fg, --accent...), que mudam entre tema escuro e claro.
   ========================================================= */
:root {
  /* vermelhos da marca */
  --v50: #fef3f3; --v100: #ffe4e3; --v200: #ffcac9; --v300: #ffa29f; --v400: #ff6765; --v500: #fd212e;
  --v600: #e11d2a; --v700: #b70e1c; --v800: #90101c; --v900: #6f131d; --v950: #430a12;
  /* neutros quentes (puxam levemente para o vermelho) */
  --n50: #fdf9f9; --n100: #f8f2f1; --n200: #ede4e3; --n300: #d9cecd; --n400: #aea1a0; --n500: #857676;
  --n600: #655757; --n700: #493c3c; --n800: #2e2323; --n850: #201716; --n900: #170e0e; --n950: #0d0606;

  /* espaçamento (base 4px) */
  --esp-1: 4px; --esp-2: 8px; --esp-3: 12px; --esp-4: 16px; --esp-5: 20px; --esp-6: 24px;
  --esp-8: 32px; --esp-10: 40px; --esp-12: 48px; --esp-16: 64px; --esp-20: 80px; --esp-24: 96px;
  /* raios de borda */
  --raio-sm: 6px; --raio-md: 10px; --raio-lg: 14px; --raio-xl: 18px; --raio-pill: 999px;
  /* escala tipográfica */
  --fs-2xs: 11px; --fs-xs: 12px; --fs-sm: 13px; --fs-base: 14px; --fs-md: 16px; --fs-lg: 18px;
  --fs-xl: 22px; --fs-2xl: 28px; --fs-3xl: 40px; --fs-display: clamp(36px, 5.4vw, 64px);
  --lh-justa: 1.1; --lh-media: 1.35; --lh-texto: 1.55;

  /* tema escuro (padrão) */
  --bg: var(--n950); --surface: var(--n900); --surface-2: var(--n850); --line: #3a2b2b;
  --fg: var(--n50); --muted: var(--n400);
  --accent: var(--v400); --accent-fill: var(--v500); --accent-fill-hover: var(--v600); --accent-ink: #ffffff;
  --accent-soft: rgba(253, 33, 46, 0.14);
  --good: #3ddc97; --warn: #ffb020; --info: #6f8fb8; --down: var(--n300);
  --grid: rgba(255, 228, 227, 0.06); --neural: url("/assets/neural-escuro.svg?v=1"); --c2: #ff9d5c; --c3: #6f8fb8; --c4: var(--n300); --c5: #e8c547;
  --faixa: color-mix(in srgb, var(--v950) 38%, var(--n900));
  --atmosfera: rgba(225, 29, 42, 0.16);
  --sombra-1: 0 1px 2px rgba(13, 6, 6, 0.4);
  --sombra-2: 0 12px 32px rgba(13, 6, 6, 0.55);
  --sombra-3: 0 24px 60px rgba(13, 6, 6, 0.7);
  --brilho: 0 0 0 1px rgba(253, 33, 46, 0.3), 0 18px 50px rgba(225, 29, 42, 0.3);
  --shadow: var(--sombra-2);
  --font-display: "Chakra Petch", "Chakra Petch Fallback", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Manrope Fallback", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: var(--n100); --surface: #ffffff; --surface-2: #f3eceb; --line: #e6dcdb;
    --fg: var(--n950); --muted: var(--n600);
    --accent: var(--v700); --accent-soft: rgba(225, 29, 42, 0.09);
    --good: #0a7a4c; --warn: #8f5400; --info: #3f6390; --down: var(--n600); --grid: rgba(67, 10, 18, 0.06); --neural: url("/assets/neural-claro.svg?v=1");
    --c2: #b4530f; --c3: #4a6a94; --c4: var(--n600); --c5: #a87f00;
    --faixa: var(--v50); --atmosfera: rgba(253, 33, 46, 0.10);
    --sombra-1: 0 1px 2px rgba(67, 10, 18, 0.08); --sombra-2: 0 10px 28px rgba(67, 10, 18, 0.10); --sombra-3: 0 22px 54px rgba(67, 10, 18, 0.16);
    --brilho: 0 0 0 1px rgba(225, 29, 42, 0.25), 0 18px 44px rgba(225, 29, 42, 0.16);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: var(--n100); --surface: #ffffff; --surface-2: #f3eceb; --line: #e6dcdb;
  --fg: var(--n950); --muted: var(--n600);
  --accent: var(--v700); --accent-soft: rgba(225, 29, 42, 0.09);
  --good: #0a7a4c; --warn: #8f5400; --info: #3f6390; --down: var(--n600); --grid: rgba(67, 10, 18, 0.06); --neural: url("/assets/neural-claro.svg?v=1");
  --c2: #b4530f; --c3: #4a6a94; --c4: var(--n600); --c5: #a87f00;
  --faixa: var(--v50); --atmosfera: rgba(253, 33, 46, 0.10);
  --sombra-1: 0 1px 2px rgba(67, 10, 18, 0.08); --sombra-2: 0 10px 28px rgba(67, 10, 18, 0.10); --sombra-3: 0 22px 54px rgba(67, 10, 18, 0.16);
  --brilho: 0 0 0 1px rgba(225, 29, 42, 0.25), 0 18px 44px rgba(225, 29, 42, 0.16);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: var(--n950); --surface: var(--n900); --surface-2: var(--n850); --line: #3a2b2b;
  --fg: var(--n50); --muted: var(--n400);
  --accent: var(--v400); --accent-soft: rgba(253, 33, 46, 0.14);
  --good: #3ddc97; --warn: #ffb020; --info: #6f8fb8; --down: var(--n300); --grid: rgba(255, 228, 227, 0.06); --neural: url("/assets/neural-escuro.svg?v=1");
  --c2: #ff9d5c; --c3: #6f8fb8; --c4: var(--n300); --c5: #e8c547;
  --faixa: color-mix(in srgb, var(--v950) 38%, var(--n900)); --atmosfera: rgba(225, 29, 42, 0.16);
  --sombra-1: 0 1px 2px rgba(13, 6, 6, 0.4); --sombra-2: 0 12px 32px rgba(13, 6, 6, 0.55); --sombra-3: 0 24px 60px rgba(13, 6, 6, 0.7);
  --brilho: 0 0 0 1px rgba(253, 33, 46, 0.3), 0 18px 50px rgba(225, 29, 42, 0.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: 14px; }
img { max-width: 100%; }
h1, .h1 { color: var(--fg); }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 14px; line-height: 1.45; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 150; background: var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
svg.i { display: block; flex: none; }

.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100dvh; transition: grid-template-columns .2s ease; }
.app.collapsed { grid-template-columns: 72px minmax(0, 1fr); }

/* Sidebar */
.side { position: sticky; top: 0; align-self: start; height: 100dvh; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; padding: 20px 14px; padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 120; overflow: hidden; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; height: 34px; }
.mark { width: 20px; height: 28px; flex: none; color: var(--accent); filter: drop-shadow(0 0 6px var(--accent-soft)); }
.brand-name { font-family: var(--font-display); font-weight: 700; letter-spacing: .16em; font-size: 17px; white-space: nowrap; }
.brand-tag { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: 5px; padding: 1px 5px; white-space: nowrap; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav button, .nav-out, .nav .nav-link { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; background: none; border: 0; border-radius: 10px; color: var(--muted); text-align: left; font-weight: 600; white-space: nowrap; }
.nav button:hover, .nav .nav-link:hover { background: var(--surface-2); color: var(--fg); }
.nav .nav-link { text-decoration: none; }
.nav button.on { background: var(--accent-soft); color: var(--fg); box-shadow: inset 3px 0 0 var(--accent); }
.nav button.on svg { color: var(--accent); }
.nav-out { margin-top: auto; }
.nav-out:hover { background: var(--accent-soft); color: var(--accent); }
.side-foot { padding: 12px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 12px; }
.app.collapsed .brand-name, .app.collapsed .brand-tag, .app.collapsed .lbl, .app.collapsed .side-foot { display: none; }
.scrim { display: none; }

/* Header */
.main { min-width: 0; position: relative; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100; isolation: isolate; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { min-width: 0; display: flex; align-items: center; gap: 10px; height: 60px; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.icon-btn { position: relative; width: 38px; height: 38px; flex: none; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.icon-btn:hover { border-color: var(--muted); }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.crumbs b { color: var(--fg); font-weight: 600; }
.spacer { flex: 1; }
.search { display: flex; align-items: center; gap: 8px; min-width: 0; width: min(320px, 38vw); height: 38px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--fg); }
.search:focus-within { border-color: var(--accent); }
.avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 13px; }
.profile { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; text-align: left; border-radius: 99px; }
.profile:hover .avatar { border-color: var(--muted); }
.who { line-height: 1.2; }
.who b { display: block; font-size: 13px; }
.who small { color: var(--muted); font-size: 11px; }
.pop-wrap { position: relative; }
.pop { position: absolute; top: 48px; right: 0; width: min(300px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; z-index: 50; }
.prof-id { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.prof-id small { color: var(--muted); font-size: 12px; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 12px; line-height: 1.3; white-space: nowrap; background: none; border: 0; border-radius: 8px; text-align: left; font-weight: 600; color: var(--accent); }
.menu-item:hover { background: var(--surface-2); }

/* Content */
.content { position: relative; z-index: 0; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); padding-block: 22px 40px; max-width: 1480px; display: flex; flex-direction: column; gap: 18px; }
.titlebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
h1, .h1 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 3.4vw, 28px); letter-spacing: .08em; text-transform: uppercase; text-wrap: balance; }
h1 em, .h1 em { font-style: normal; color: var(--accent); }
.stamp { color: var(--muted); font-size: 12px; }
.sync { display: inline-flex; align-items: center; gap: 6px; }
.sync::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.sync.ok::before { background: var(--good); }
.sync.local::before { background: var(--warn); }
.notice { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); font-size: 13px; }

.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 14px; background: none; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; color: var(--muted); }
.ghost:hover:not(:disabled) { color: var(--fg); border-color: var(--muted); }
.ghost:disabled { opacity: .45; cursor: default; }
.primary { height: 38px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent-fill); color: var(--accent-ink); border: 0; border-radius: 10px; font-weight: 700; text-decoration: none; }
.primary:hover:not(:disabled) { background: var(--accent-fill-hover); }
.primary:disabled { opacity: .6; cursor: default; filter: none; }
select, .input { height: 38px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-width: 140px; max-width: 100%; }
textarea.input { height: 76px; padding: 10px 12px; resize: vertical; }
select:hover, .input:hover { border-color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.card { background: linear-gradient(165deg, var(--surface-2), var(--surface) 62%); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.kpi { position: relative; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.kpi.hero::after { content: ""; position: absolute; inset: auto -30px -50px auto; width: 140px; height: 140px; background: radial-gradient(closest-side, var(--accent-soft), transparent); pointer-events: none; }
.kpi .lab { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.kpi .lab svg { color: var(--accent); }
.kpi .val { font-family: var(--font-display); font-weight: 600; font-size: clamp(21px, 2.4vw, 27px); white-space: nowrap; }
.kpi .sub { font-size: 12px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.c7 { grid-column: span 7; } .c5 { grid-column: span 5; } .c12 { grid-column: 1 / -1; }
.card h2 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card h2 small { font-family: var(--font-body); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); font-size: 12px; }
.empty { display: grid; place-items: center; min-height: 140px; text-align: center; color: var(--muted); gap: 6px; padding: 20px; }
.empty b { color: var(--fg); }
.hint { margin-top: 12px; color: var(--muted); font-size: 12px; }

/* Barras */
.bars { display: flex; align-items: stretch; gap: clamp(6px, 1.6vw, 18px); height: 230px; padding-top: 4px; }
.bcol { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 6px; }
.bplot { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; background-image: repeating-linear-gradient(to top, var(--grid) 0 1px, transparent 1px 25%); }
.bval { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.bar { width: min(64px, 80%); background: var(--accent-fill); border-radius: 5px 5px 0 0; min-height: 2px; transition: background-color .15s, opacity .15s; }
.bcol:hover .bar, .bcol:focus-visible .bar { background: color-mix(in srgb, var(--accent) 78%, #ffffff); }
.bars.has-sel .bcol:not(.sel) .bar { opacity: .45; }
.bcol.sel .bar { outline: 2px solid var(--fg); outline-offset: 2px; }
.blab { font-size: 11px; color: var(--muted); }
.bcol.sel .blab { color: var(--fg); font-weight: 700; }

/* Rosca */
.donut { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: center; }
.donut svg { width: 180px; max-width: 100%; flex: none; }
.donut text { fill: var(--fg); font-family: var(--font-display); }
.lg { display: flex; flex-direction: column; gap: 4px; min-width: min(250px, 100%); flex: 1; }
.lrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; background: none; border: 1px solid transparent; border-radius: 8px; font-size: 13px; text-align: left; transition: background-color .15s, border-color .15s, opacity .2s; }
.lrow:hover, .lrow.on { background: var(--surface-2); border-color: var(--line); }
.donut.has-hot .lrow:not(.on) { opacity: .55; }
.lrow i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; }
.lrow small { color: var(--muted); font-weight: 500; }
.seg { stroke-dasharray: var(--len) var(--rest); cursor: pointer; outline: none; transition: stroke-width .2s ease, opacity .2s ease; }
.seg.on { stroke-width: 27; }
.donut.has-hot .seg:not(.on) { opacity: .3; }

.bdetail { margin-top: 12px; padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; }
.bd-t { font-family: var(--font-display); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; flex: 1 1 100%; }
.bdetail div > span { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bdetail div > b { font-family: var(--font-display); font-size: 16px; }
.bd-names { flex: 1 1 100%; color: var(--muted); font-size: 13px; }

/* Alertas */
.alerts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.alist { display: flex; flex-direction: column; }
.arow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.arow:first-child { border-top: 0; }
.arow .nm { flex: 1; min-width: 0; }
.arow .nm b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arow .nm small { color: var(--muted); }
.due { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.due.soon { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.due.late { color: var(--accent); background: var(--accent-soft); }
.due.ok { color: var(--muted); background: var(--surface-2); }

/* Tabela */
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }
.tools .l { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 12px; text-align: left; white-space: nowrap; }
th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: var(--surface-2); border-bottom: 1px solid var(--line); }
th button { background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
th button:hover, th button.on { color: var(--fg); }
td { border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--surface-2); }
td.r, th.r { text-align: right; }
.co b { display: block; }
.co small { color: var(--muted); }
.chip { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; margin-left: 6px; vertical-align: 1px; }
.plan { font-weight: 700; font-size: 12px; }
.st { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st.ativo { color: var(--good); } .st.teste { color: var(--info); } .st.inad { color: var(--warn); } .st.canc { color: var(--muted); }
.acts { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.mini { width: 30px; height: 30px; display: grid; place-items: center; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); text-decoration: none; }
.mini:hover { color: var(--fg); border-color: var(--muted); }
.mini.wa:hover { color: var(--good); border-color: var(--good); }
.mini.dng:hover { color: var(--accent); border-color: var(--accent); }
.conf { display: flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; }
.conf button { height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line); background: none; font-weight: 600; font-size: 12px; }
.conf .yes { background: var(--accent-fill); color: var(--accent-ink); border-color: var(--accent); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.pager .btns { display: flex; gap: 6px; }

/* Modais e gaveta */
.backdrop { position: fixed; inset: 0; z-index: 160; background: rgba(13, 6, 6, .55); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.modal { width: min(540px, 100%); max-height: 100%; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.modal h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 18px; letter-spacing: .04em; }
.modal .sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .full { grid-column: 1 / -1; }
.form select, .form .input { width: 100%; min-width: 0; }
.err { color: var(--accent); font-size: 12px; min-height: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.drawer-bg { position: fixed; inset: 0; z-index: 140; background: rgba(13, 6, 6, .45); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 141; width: min(440px, 100vw); background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow); overflow-y: auto; padding: max(20px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) 20px; display: flex; flex-direction: column; gap: 16px; animation: slide .25s cubic-bezier(.2, .7, .2, 1); }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.dr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dr-head h3 { margin: 0; font-family: var(--font-display); font-size: 20px; letter-spacing: .03em; }
.dr-head p { margin: 4px 0 0; color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.fact span { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fact b { font-family: var(--font-display); font-size: 15px; }
.dr-sec { display: flex; flex-direction: column; gap: 8px; }
.dr-sec h4 { margin: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact { display: flex; flex-direction: column; gap: 2px; }
.contact .sel { user-select: all; }
.status-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.status-btns button { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: none; font-weight: 600; font-size: 12px; color: var(--muted); }
.status-btns button.on { color: var(--fg); border-color: var(--fg); }
.status-btns button:hover:not(.on) { color: var(--fg); }
.dr-actions { display: flex; flex-direction: column; gap: 8px; }
.wa-btn { background: none; border: 1px solid var(--good); color: var(--good); }
.wa-btn:hover { background: color-mix(in srgb, var(--good) 12%, transparent); filter: none; }
.notes { white-space: pre-wrap; color: var(--fg); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.lock { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg); padding: 20px; }
.lock-card { width: min(420px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.lock-card .mark { width: 40px; height: 54px; }
.lock-card h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: .06em; text-transform: uppercase; }
.lock-card p { margin: 0; color: var(--muted); }
.toasts { position: fixed; left: 0; right: 0; bottom: 0; z-index: 230; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.toast { background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; box-shadow: var(--shadow); }
.toast.bad { background: var(--accent-fill); color: var(--accent-ink); }

/* Aba de cadastro */
.view { display: flex; flex-direction: column; gap: 18px; }
.cad-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.cad-form { display: flex; flex-direction: column; gap: 18px; }
.cad-form .input { width: 100%; min-width: 0; height: 46px; font-size: 15px; }
.help-t { color: var(--muted); font-size: 12px; }
.plans { border: 0; margin: 0; padding: 0; min-width: 0; }
.plans legend { padding: 0; margin-bottom: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.plan-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .15s, background-color .15s; }
.pcard:hover { border-color: var(--muted); }
.pcard input { position: absolute; opacity: 0; pointer-events: none; }
.pcard:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.pcard:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pcard .pn { font-family: var(--font-display); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.pcard .pp { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.pcard .pp small { font-family: var(--font-body); font-size: 12px; color: var(--muted); font-weight: 500; }
.pcard .pd { color: var(--muted); font-size: 12px; }
.pcard .tag { position: absolute; top: -9px; right: 10px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--accent-fill); color: var(--accent-ink); padding: 1px 7px; border-radius: 99px; }
.pcard .check { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; }
.pcard:has(input:checked) .check { border-color: var(--accent); background: var(--accent-fill); }
.pcard:has(input:checked) .check::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); }
.cad-submit { height: 48px; font-size: 15px; }
.cad-form:disabled, .cad-form [disabled] { opacity: .55; cursor: not-allowed; }
.cad-done { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cad-done .okmark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.cad-done h3 { margin: 0; font-family: var(--font-display); font-size: 20px; letter-spacing: .03em; }
.cad-done p { margin: 0; color: var(--muted); }
.cad-done .row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 1000px) { .cad-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .plan-cards { grid-template-columns: minmax(0, 1fr); } }

.ghost.danger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.ghost.danger:hover:not(:disabled) { color: var(--accent-ink); background: var(--accent-fill); border-color: var(--accent); }
.danger-box { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent-soft); }
.danger-box span { color: var(--muted); font-size: 13px; }
.danger-box .row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Animações */
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes sweep { from { stroke-dasharray: 0 calc(var(--len) + var(--rest)); } to { stroke-dasharray: var(--len) var(--rest); } }
.bars.anim .bar { transform-origin: bottom center; animation: grow .75s cubic-bezier(.22, .7, .2, 1) both; animation-delay: calc(var(--k) * 60ms); }
.bars.anim .bval { animation: fadein .5s .5s both; }
.donut.anim .seg { animation: sweep .9s cubic-bezier(.4, 0, .2, 1) both; animation-delay: calc(var(--k) * 120ms); }

@media (max-width: 1100px) { .c7, .c5 { grid-column: 1 / -1; } }
@media (max-width: 860px) {
  .app, .app.collapsed { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: 264px; max-width: 84vw; transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow); }
  .app.open .side { transform: none; }
  .app.collapsed .brand-name, .app.collapsed .brand-tag, .app.collapsed .lbl, .app.collapsed .side-foot { display: revert; }
  .app.open .scrim { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(13, 6, 6, .5); }
  .who, .crumbs { display: none; }
  .search { width: auto; flex: 1; }
  .top-in .spacer { display: none; }   /* a busca usa todo o espaço livre no celular */
  .top-in { gap: 8px; }
  .alerts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .form, .facts { grid-template-columns: 1fr; }
  .tools .field { flex: 1 1 130px; }
  .tools select { min-width: 0; width: 100%; }
  .tools .primary { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---- Dashboard do cliente ---- */
.delta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 99px; font-weight: 700; font-size: 12px; }
.pill.good { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.pill.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.pill.flat { color: var(--muted); background: var(--surface-2); }
.track { height: 8px; border-radius: 4px; background: var(--grid); overflow: hidden; margin-top: 4px; }
.fill { height: 100%; background: var(--accent-fill); border-radius: 4px; transition: width .3s ease; }

.line-svg text { fill: var(--muted); font-size: 10px; font-family: var(--font-body); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.lsvg { position: relative; }
.line-svg [data-hit] { cursor: pointer; outline: none; }
.line-svg circle[data-d] { pointer-events: none; transition: r .15s ease; }
.line-svg circle[data-d].hot { r: 5.5; }
.tip { position: absolute; z-index: 5; transform: translate(-50%, -118%); min-width: 170px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); pointer-events: none; font-size: 12px; white-space: nowrap; display: flex; flex-direction: column; gap: 4px; }
.tip.edge-l { transform: translate(-12%, -118%); }
.tip.edge-r { transform: translate(-88%, -118%); }
.tip .tt { font-family: var(--font-display); letter-spacing: .04em; text-transform: uppercase; font-size: 12px; }
.tip .trow { display: flex; justify-content: space-between; align-items: center; gap: 18px; color: var(--muted); }
.tip .trow b { color: var(--fg); }
.tip i, .lrow i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.line-svg.anim .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.4, 0, .2, 1) forwards; }
.line-svg.anim .ln.a { animation-delay: .12s; }
.line-svg.anim .ar { animation: fadein .9s .4s both; }
.line-svg.anim circle[data-d] { transform-box: fill-box; transform-origin: center; animation: pop .4s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(.6s + var(--k) * 100ms); }
.bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 12px; background: var(--accent-soft); border-radius: 10px; font-weight: 600; }
.welcome { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: 22px; border: 1px dashed var(--line); border-radius: 14px; background: var(--surface); }
.welcome h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }
.welcome p { margin: 0; color: var(--muted); max-width: 60ch; }
.welcome > div { flex: 1 1 320px; min-width: 0; }
.welcome .steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.welcome .steps span { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; }
.loading-screen { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--bg); color: var(--muted); }
.loading-screen .box { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 20px; max-width: 460px; }
.loading-screen .mark { width: 34px; height: 46px; animation: breathe 1.6s ease-in-out infinite; }
.loading-screen.err .mark { animation: none; }
.loading-screen b { color: var(--fg); font-size: 16px; }
@keyframes breathe { 50% { opacity: .45; } }
.pass-row { display: flex; gap: 8px; }
.pass-row .input { flex: 1; }
.pass-row .ghost { flex: none; }
.creds { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.creds div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.creds span { color: var(--muted); }
.creds b { font-family: ui-monospace, Menlo, Consolas, monospace; user-select: all; overflow-wrap: anywhere; }

/* ---- Tela de login ---- */
.shell { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100dvh; }
.brand-side { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 40px; padding-left: max(40px, env(safe-area-inset-left, 0px)); background: var(--surface); border-right: 1px solid var(--line); }
.brand-side::before { content: ""; position: absolute; inset: 0; background: var(--neural) 0 0 / 360px 360px; -webkit-mask-image: linear-gradient(160deg, #000, transparent 70%); mask-image: linear-gradient(160deg, #000, transparent 70%); }
.brand-side::after { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; bottom: -220px; background: radial-gradient(closest-side, var(--accent-soft), transparent); }
.brand-side > * { position: relative; z-index: 1; }
.brand-side .brand b { font-family: var(--font-display); font-size: 20px; letter-spacing: .18em; }
.brand-side .mark { width: 24px; height: 33px; }
.pitch { max-width: 460px; }
.pitch h2 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; letter-spacing: .02em; text-transform: uppercase; text-wrap: balance; }
.pitch h2 em { font-style: normal; color: var(--accent); }
.pitch p { margin: 0; color: var(--muted); font-size: 15px; max-width: 42ch; }
.mini-bars { display: flex; align-items: flex-end; gap: 10px; height: 110px; max-width: 360px; }
.mini-bars i { flex: 1; background: var(--accent-fill); border-radius: 4px 4px 0 0; opacity: .9; }
.foot-note { color: var(--muted); font-size: 12px; }
.form-side { position: relative; display: grid; place-items: center; padding-block: 40px; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.form-side .theme { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
.lbox { width: min(400px, 100%); display: flex; flex-direction: column; gap: 22px; }
.m-brand { display: none; align-items: center; gap: 10px; }
.m-brand b { font-family: var(--font-display); letter-spacing: .16em; }
.lead { margin: 6px 0 0; color: var(--muted); }
.lform { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.ctl { position: relative; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; height: 46px; }
.ctl:hover { border-color: var(--muted); }
.ctl:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ctl.bad { border-color: var(--accent); }
.ctl > svg { margin-left: 12px; color: var(--muted); }
.ctl input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; background: none; border: 0; outline: 0; }
.eye { height: 100%; padding: 0 12px; background: none; border: 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.eye:hover { color: var(--fg); }
.lrow2 { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 16px; }
.link { background: none; border: 0; padding: 2px 0; color: var(--accent); font-weight: 700; }
.link:hover { text-decoration: underline; }
.submit { height: 48px; font-size: 15px; width: 100%; }
.alert { padding: 10px 12px; border-radius: 10px; font-size: 13px; background: var(--accent-soft); border: 1px solid var(--accent); }
.okbox { padding: 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--good); display: flex; flex-direction: column; gap: 6px; }
.okbox b { color: var(--good); }
.okbox span { color: var(--muted); }
.help { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--muted); font-size: 13px; }
.wa-link { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--fg); font-weight: 700; text-decoration: none; }
.wa-link:hover { border-color: var(--good); color: var(--good); }
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .brand-side { display: none; }
  .m-brand { display: flex; }
  .form-side { place-items: start center; padding-top: 72px; }
}

.lrow > span:first-child { display: flex; align-items: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow > span:last-child { white-space: nowrap; }

.pill-btn { border: 0; font: inherit; font-weight: 700; font-size: 12px; cursor: pointer; transition: filter .15s, box-shadow .15s; }
.pill-btn:hover { box-shadow: inset 0 0 0 1px currentColor; }
.pill-btn svg { display: inline-block; }
.late-days { color: var(--muted); font-size: 11px; white-space: nowrap; }
#stNote { justify-content: space-between; font-weight: 500; }
#stNote .ghost { height: 32px; background: var(--surface); }

/* ---- Calendário de período ---- */
.date-field { position: relative; }
.date-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-weight: 600; text-align: left; }
.date-btn:hover, .date-btn[aria-expanded="true"] { border-color: var(--accent); }
.date-btn #fPeriodTxt { flex: 1; white-space: nowrap; }
.date-btn svg { color: var(--muted); }
.cal-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; width: 284px; max-width: calc(100vw - 32px); padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head b { font-family: var(--font-display); font-size: 15px; letter-spacing: .03em; }
.cal-nav { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; font-size: 18px; font-weight: 700; color: var(--fg); }
.cal-nav:hover { background: var(--surface-2); }
.cal-title { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--fg); font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .03em; cursor: pointer; }
.cal-title svg { color: var(--muted); flex: none; }
.cal-title:hover, .cal-title[aria-expanded="true"] { background: var(--surface-2); }
.mp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mp-grid button { height: 46px; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--fg); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mp-grid button:hover { border-color: var(--accent); }
.mp-grid .today { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.mp-grid .s, .mp-grid .s:hover { background: var(--accent-fill); border-color: var(--accent); color: var(--accent-ink); }
.ag-head { position: relative; }
.ag-mwrap { position: relative; display: flex; justify-content: center; min-width: 170px; }
.ag-title { height: 38px; font-size: 18px; letter-spacing: .04em; white-space: nowrap; }
.ag-mwrap .cal-pop { left: 50%; transform: translateX(-50%); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-grid .wd { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cd { position: relative; height: 34px; border: 0; border-radius: 8px; background: none; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--fg); }
.cd:hover { background: var(--surface-2); }
.cd.out { color: var(--muted); opacity: .55; }
.cd.today { box-shadow: inset 0 0 0 1px var(--accent); font-weight: 700; }
.cd.in { background: var(--accent-soft); border-radius: 0; }
.cd.s, .cd.e { background: var(--accent-fill); color: var(--accent-ink); font-weight: 700; opacity: 1; }
.cd.s { border-radius: 8px 0 0 8px; } .cd.e { border-radius: 0 8px 8px 0; } .cd.s.e { border-radius: 8px; }
.cd.dot::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent-fill); }
.cd.s.dot::after, .cd.e.dot::after { background: var(--accent-ink); }
.cal-hint { margin-top: 8px; font-size: 12px; color: var(--muted); text-align: center; }
.cal-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.cal-foot .link { font-size: 13px; }
@media (max-width: 520px) { .date-field { flex: 1 1 100%; } .date-btn { width: 100%; } }

/* ---- Planos ---- */
.pfeat { list-style: none; margin: 6px 0 0; padding: 6px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.pfeat li { display: flex; gap: 6px; align-items: flex-start; line-height: 1.35; }
.pfeat svg { flex: none; margin-top: 1px; color: var(--good); }
.pcard:has(input:checked) .pfeat { color: var(--fg); }
.plans-link { margin-left: 8px; font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 700; color: var(--accent); }
.plans-cta { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--fg); text-decoration: none; }
.plans-cta b { color: var(--accent); }
.plans-cta:hover { border-color: var(--accent); }
.wa-cta { height: 48px; }

.cal-fixed { position: fixed; z-index: 220; }
.date-btn.input-date { width: 100%; min-width: 0; }

.top-actions { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); display: flex; align-items: center; gap: 8px; }
.plans-top { text-decoration: none; color: var(--fg); background: var(--surface); }
.plans-top:hover { border-color: var(--accent) !important; color: var(--accent) !important; }
.plans-top svg { color: var(--accent); }
.pitch-cta { margin-top: 22px; height: 46px; padding: 0 20px; font-size: 15px; }

/* ---- Recursos travados por plano ---- */
.locked { position: relative; min-height: 260px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; }
.locked-bg { position: absolute; inset: 0; display: grid; place-items: center; filter: blur(5px); opacity: .35; pointer-events: none; }
.ghost-bars { display: flex; align-items: flex-end; gap: 18px; width: 80%; height: 200px; }
.ghost-bars i { flex: 1; background: var(--accent-fill); border-radius: 5px 5px 0 0; }
.locked-msg { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 340px; padding: 20px; text-align: center; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.locked-msg b { font-family: var(--font-display); font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.locked-msg > span:not(.locked-ic) { color: var(--muted); font-size: 13px; }
.locked-msg small { color: var(--accent); font-weight: 700; font-size: 12px; }
.locked-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.locked-msg .primary { margin-top: 6px; }
.cd.off, .cd:disabled { opacity: .25; cursor: not-allowed; background: none; }
.menu-item.up { color: var(--good); text-decoration: none; }
.foot-up { color: var(--accent); font-weight: 700; }

/* ---- Agenda ---- */
.today-strip { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.today-strip .ts-ic { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.today-strip .ts-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.today-strip .ts-txt span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 14px; align-items: start; }
.ag-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ag-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.ag-head b { font-family: var(--font-display); font-size: 18px; letter-spacing: .04em; min-width: 150px; text-align: center; }
.ag-head .ghost { height: 34px; }
.ag-wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 4px; }
.ag-wd span { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ag-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ag-day { display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-height: 92px; min-width: 0; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; overflow: hidden; transition: border-color .15s, background-color .15s; }
.ag-day:hover { border-color: var(--muted); }
.ag-day .n { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ag-day.out { opacity: .45; }
.ag-day.today .n { color: var(--accent-ink); background: var(--accent-fill); border-radius: 6px; padding: 0 6px; align-self: flex-start; }
.ag-day.sel { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.ag-day .evs { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev { display: block; font-size: 11px; line-height: 1.3; padding: 1px 5px; border-radius: 4px; border-left: 3px solid var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev i { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.ev.done { color: var(--good); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.ev-more { font-size: 11px; font-weight: 700; color: var(--muted); padding-left: 4px; }
.ag-day .dots { display: none; gap: 3px; }
.ag-day .dots i { width: 6px; height: 6px; border-radius: 50%; }
.ag-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.ag-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.ag-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0 10px 10px; border-top: 1px solid var(--line); border-left: 3px solid var(--tc); margin-left: -2px; }
.ag-item:first-child { border-top: 0; }
.ag-item.done { background: color-mix(in srgb, var(--good) 9%, transparent); border-radius: 0 10px 10px 0; }
.ag-item.done .ag-txt b { color: var(--good); text-decoration: line-through; text-decoration-thickness: 2px; }
.ag-item.done .ag-txt small { text-decoration: line-through; opacity: .75; }
.ag-item.done .ag-tag { display: inline-flex; align-items: center; gap: 3px; }
.ag-check[aria-pressed="true"] svg { animation: pop .25s cubic-bezier(.3, 1.4, .5, 1); }
.ag-check { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--line); background: none; display: grid; place-items: center; color: var(--accent-ink); }
.ag-check:hover { border-color: var(--good); }
.ag-check[aria-pressed="true"] { background: var(--good); border-color: var(--good); }
.ag-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ag-txt b { font-size: 14px; overflow-wrap: anywhere; }
.ag-txt small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.ag-txt .ag-obs { color: var(--fg); opacity: .8; white-space: pre-wrap; }
.ag-tag { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tc); padding: 2px 6px; border-radius: 5px; background: color-mix(in srgb, var(--tc) 14%, transparent); }
.ag-item { flex-wrap: wrap; row-gap: 6px; }
.ag-txt { flex: 1 1 calc(100% - 40px); }
.ag-tag { order: 3; margin-left: 32px; align-self: center; }
.ag-item .acts { order: 4; margin-left: auto; flex: none; }
.ag-add-day { margin-top: 8px; }
@media (max-width: 1000px) { .ag-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .ag-day { min-height: 54px; padding: 5px; align-items: center; }
  .ag-day .evs { display: none; }
  .ag-day .dots { display: flex; }
  .ag-day.today .n { align-self: center; }
  .ag-wd span { font-size: 10px; letter-spacing: 0; }
  .ag-head b { min-width: 0; flex: 1; font-size: 16px; }
  .ag-mwrap { position: static; min-width: 0; flex: 1; }
  .ag-title { font-size: 15px; padding: 0 4px; }
  .today-strip { flex-wrap: wrap; }
  .today-strip .ghost { width: 100%; }
}

.foot-links { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.foot-links a { color: var(--muted); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.foot-links a:hover { color: var(--fg); }
.foot-links .foot-up { color: var(--accent); }
.foot-links .foot-up svg { display: inline-block; }

/* ---- Verificação em duas etapas ---- */
.mfa-body { display: flex; flex-direction: column; gap: 12px; }
.mfa-body .sub { margin: 0; }
.mfa-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--fg); font-size: 13px; }
.mfa-qr { display: grid; place-items: center; padding: 14px; background: #ffffff; border-radius: 12px; align-self: center; }
.mfa-on { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--good); border-radius: 10px; background: color-mix(in srgb, var(--good) 10%, transparent); }
.mfa-on svg { color: var(--good); flex: none; margin-top: 2px; }
.mfa-on b { display: block; color: var(--good); }
.mfa-on span { color: var(--muted); font-size: 13px; }

/* ---- Estoque ---- */
.nav-lock { margin-left: auto; color: var(--muted); display: inline-flex; }
.app.collapsed .nav-lock { display: none; }
.est-search { flex: 0 1 320px; width: auto; min-width: 200px; visibility: visible !important; }
#viewEstoque .tools .l { flex: 1 1 auto; flex-wrap: wrap; align-items: flex-end; }
#viewEstoque .tools { justify-content: flex-start; }
.est-table td .due { margin-left: 6px; }
.est-table tbody tr { cursor: default; }
.est-table tr.est-zerado td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.est-table tr.est-baixo td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.mini.in:hover { color: var(--good); border-color: var(--good); }
.mini.outb:hover { color: var(--warn); border-color: var(--warn); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 10px; }
.seg button { height: 36px; border: 0; border-radius: 8px; background: none; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.seg button[data-mtipo="Entrada"].on { color: var(--good); }
.seg button[data-mtipo="Saída"].on { color: var(--warn); }
.mov-prev { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13px; color: var(--muted); }
.mov-prev b { color: var(--fg); }
.mov-prev.warn { color: var(--warn); }
.mov-prev.bad { color: var(--accent); }
.hist-list { display: flex; flex-direction: column; max-height: 55vh; overflow-y: auto; }
.hist-row { display: grid; grid-template-columns: 92px 74px 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--line); font-size: 13px; }
.hist-row:first-child { border-top: 0; }
.hist-row .h-tipo { font-weight: 700; }
.hist-row.t-in .h-tipo, .hist-row.t-in .h-qtd { color: var(--good); }
.hist-row.t-out .h-tipo, .hist-row.t-out .h-qtd { color: var(--warn); }
.hist-row .h-qtd { font-weight: 700; }
.hist-row .h-saldo { color: var(--muted); }
.hist-row .h-obs { grid-column: 2 / -1; color: var(--muted); font-size: 12px; }
@media (max-width: 520px) { .hist-row { grid-template-columns: 80px 1fr auto; } .hist-row .h-tipo { display: none; } .hist-row .h-obs { grid-column: 1 / -1; } }

#stNote span svg { display: inline-block; vertical-align: -2px; margin-right: 4px; }
#stNote .ghost { white-space: nowrap; }

/* ---- Gráfico do estoque ---- */
.est-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.est-grid.solo { grid-template-columns: minmax(0, 1fr); }
.est-grid > * { min-width: 0; }
.seg-tog { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-family: var(--font-body); letter-spacing: 0; text-transform: none; }
.seg-tog button { height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 12px; font-weight: 700; }
.seg-tog button:hover { color: var(--fg); }
.seg-tog button.on { background: var(--accent-soft); color: var(--fg); box-shadow: inset 0 0 0 1px var(--accent); }
.card h2 .seg-tog { flex: none; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: var(--sw); padding: 0; transition: transform .12s; }
.sw:hover { transform: scale(1.08); }
.sw.on { border-color: var(--fg); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--fg); }
.swatches { align-items: center; }
.sw-auto { height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 700; }
.sw-auto:hover { color: var(--fg); border-color: var(--muted); }
.sw-auto.on { color: var(--fg); border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.sw-custom { position: relative; display: grid; place-items: center; cursor: pointer; overflow: hidden; background: conic-gradient(#ff2d3d, #e8c547, #3ddc97, #38bdf8, #a78bfa, #f472b6, #ff2d3d); }
.sw-custom.has { background: var(--sw); }
.sw-custom input { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); opacity: 0; cursor: pointer; border: 0; padding: 0; }
.sw-custom span { pointer-events: none; color: #ffffff; font-size: 16px; font-weight: 800; line-height: 1; text-shadow: 0 1px 3px rgba(13, 6, 6, .7); }
.sw-custom:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.cor-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -2px; border: 1px solid var(--line); }
@media (max-width: 1100px) { .est-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .card h2:has(.seg-tog) { flex-wrap: wrap; } }

/* ---- Menu do perfil ---- */
.pop { display: flex; flex-direction: column; gap: 2px; }
.menu-item svg { flex: none; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.prof-sec { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--good) !important; font-weight: 600; }
.prof-sec svg { flex: none; }
.prof-sec.off { color: var(--warn, #e8a33d) !important; }
#setupQrBox { min-height: 208px; }
#setupQrBox .sub { color: var(--n600); }

/* Cadastro pelo site */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.auth-tabs[hidden] { display: none; }
.auth-tabs button { height: 40px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 700; font-size: 14px; }
.auth-tabs button[aria-selected="true"] { background: var(--accent-fill); color: var(--accent-ink); }
.auth-tabs button:not([aria-selected="true"]):hover { color: var(--fg); background: var(--surface-2); }
.lbox.wide { width: min(540px, 100%); }
/* Entrar com Google / GitHub (só aparecem os provedores ligados no Supabase) */
.social { display: grid; gap: 10px; margin-top: 22px; }
.social[hidden], .social-btn[hidden] { display: none; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.social-btn:hover:not(:disabled) { border-color: var(--muted); background: var(--surface-2); }
.social-btn:disabled { opacity: .6; cursor: default; }
.social-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.social-btn svg { flex: none; }
.social-ou { display: flex; align-items: center; gap: 12px; margin: 4px 0 -8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.social-ou::before, .social-ou::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#sgSair { align-self: center; margin-top: -4px; }
.sg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.sg-grid .full { grid-column: 1 / -1; }
.photo-pick { position: relative; display: flex; align-items: center; gap: 14px; }
.photo-pick b { display: block; font-size: 14px; }
.photo-pick small { display: block; color: var(--muted); font-size: 12px; }
.photo-pick .row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.photo-pick .ghost { height: 34px; }
.avatar-lg { width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface-2); border: 1px dashed var(--line); color: var(--muted); overflow: hidden; }
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fine { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.renew-list { display: grid; gap: 10px; }
.renew-it { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.renew-it.hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.renew-it > div { flex: 1; min-width: 0; }
.renew-it b { display: block; font-family: var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.renew-it small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.renew-it .price { font-weight: 700; white-space: nowrap; text-align: right; }
.renew-it .price small { display: inline; margin-left: 2px; }
.renew-it a { height: 38px; text-decoration: none; flex: none; }
@media (max-width: 520px) { .sg-grid { grid-template-columns: minmax(0, 1fr); } .renew-it { flex-wrap: wrap; } .renew-it a { flex: 1 1 100%; } }
.form-side:has(.lbox.wide) { padding-top: 84px; }
.dr-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dr-foto { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line); }
.tag-site { color: var(--info); font-weight: 700; }
.co .due { margin-left: 6px; font-size: 11px; padding: 1px 7px; vertical-align: 1px; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trial-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--info) 50%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--info) 10%, var(--surface)); font-size: 14px; }
.trial-bar[hidden] { display: none; }
.trial-bar > svg { flex: none; color: var(--info); }
.trial-bar span { flex: 1; min-width: 0; line-height: 1.45; }
.trial-bar a { flex: none; height: 36px; text-decoration: none; }
.trial-bar.soon { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); background: color-mix(in srgb, var(--warn) 10%, var(--surface)); }
.trial-bar.soon > svg { color: var(--warn); }
@media (max-width: 640px) { .trial-bar { flex-wrap: wrap; } .trial-bar a { flex: 1 1 100%; } }
.perfil-top { position: relative; display: flex; align-items: center; gap: 16px; }
.perfil-top b { display: block; font-size: 17px; }
.perfil-top small { display: block; color: var(--muted); margin-top: 2px; }
.perfil-top .row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.perfil-top .ghost { height: 34px; }
.perfil-foto { width: 80px; height: 80px; border-style: solid; }
.perfil-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin: 0; }
.perfil-dl div { padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.perfil-dl dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.perfil-dl dd { margin: 3px 0 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 520px) { .perfil-dl { grid-template-columns: minmax(0, 1fr); } }
.fact .due { align-self: flex-start; }
/* Equipe */
.eq-limit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 14px; }
.eq-meter { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.eq-meter i { display: block; width: 140px; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.eq-meter i b { display: block; height: 100%; background: var(--accent-fill); border-radius: 99px; }
.eq-full { font-size: 13px; color: var(--warn); }
.eq-full a { color: var(--accent); font-weight: 700; }
.eq-list { display: flex; flex-direction: column; }
.eq-row { display: grid; grid-template-columns: 38px minmax(0, 1.6fr) 96px minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.eq-row:first-child { border-top: 0; }
.eq-row.off { opacity: .6; }
.eq-who, .eq-dep, .eq-st { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.eq-who b, .eq-dep b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-who small, .eq-dep small, .eq-st small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-you { font-size: 11px; color: var(--accent); font-weight: 700; margin-left: 4px; }
.eq-perfil { justify-self: start; display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; }
.eq-perfil.dono { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.eq-perfil.gerente { color: var(--c2); border-color: color-mix(in srgb, var(--c2) 45%, var(--line)); }
.eq-perfil.vendedor { color: var(--info); border-color: color-mix(in srgb, var(--info) 45%, var(--line)); }
.eq-pill { align-self: flex-start; font-size: 12px; font-weight: 700; }
.eq-pill.ativo { color: var(--good); }
.eq-pill.pendente { color: var(--warn); }
.eq-pill.bloqueado { color: var(--muted); }
.eq-row .acts { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.eq-blk { height: 32px; font-size: 13px; padding: 0 10px; }
.eq-perfis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.eq-perfis button { text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); display: flex; flex-direction: column; gap: 4px; }
.eq-perfis button span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.eq-perfis button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.lbl-like { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.eq-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.eq-info > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.eq-info span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.eq-done { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.eq-done h3 { margin: 0; }
.eq-done p { margin: 0; color: var(--muted); }
.eq-done .modal-foot { flex-wrap: wrap; }
.eq-done .modal-foot a { text-decoration: none; }
@media (max-width: 900px) {
  .eq-row { grid-template-columns: 38px minmax(0, 1fr) auto; row-gap: 8px; }
  .eq-row .avatar { grid-row: 1; }
  .eq-perfil { grid-column: 3; grid-row: 1; }
  .eq-dep, .eq-st, .eq-row .acts { grid-column: 2 / -1; }
  .eq-row .acts { justify-content: flex-start; }
  .eq-row .acts:empty { display: none; }
  .eq-info { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) { .eq-perfis { grid-template-columns: minmax(0, 1fr); } }
.eq-done .okmark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.dr-team { display: flex; flex-direction: column; gap: 8px; }
.dr-team div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.dr-team div > span:first-child { min-width: 0; display: flex; flex-direction: column; }
.dr-team b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.dr-team small { color: var(--muted); font-size: 12px; }
/* Listas de seleção: cores próprias nos dois temas (o Windows não troca a cor do texto da opção destacada) */
select { color-scheme: inherit; color: var(--fg); }
select option { background-color: var(--surface); color: var(--fg); }
select option:checked { background-color: var(--accent); color: var(--accent-ink); }
select option:disabled { color: var(--muted); }

/* Listas de seleção do SDIA */
.sel-wrap { position: relative; display: inline-flex; min-width: 140px; max-width: 100%; }
.form .sel-wrap, .field .sel-wrap { display: flex; width: 100%; min-width: 0; }
.sel-native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; pointer-events: none; }
.sel-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 38px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--fg); text-align: left; cursor: pointer; }
.sel-btn:hover { border-color: var(--muted); }
.sel-btn:focus-visible, .sel-btn[aria-expanded="true"] { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sel-btn:disabled { opacity: .5; cursor: default; }
.sel-btn svg { flex: none; color: var(--muted); transition: transform .15s; }
.sel-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.sel-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-list { position: fixed; z-index: 300; max-height: 280px; overflow-y: auto; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); color: var(--fg); }
.sel-list[hidden] { display: none; }
.sel-opt { padding: 8px 10px; border-radius: 7px; cursor: pointer; white-space: nowrap; font-size: 14px; color: var(--fg); }
.sel-opt.on { background: var(--surface-2); color: var(--fg); }
.sel-opt.sel { color: var(--accent); font-weight: 700; }
.sel-opt.off { color: var(--muted); cursor: default; }

/* Despesas */
.dp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dp-mes { display: flex; align-items: center; gap: 6px; }
.dp-mes b { font-family: var(--font-display); font-size: 18px; letter-spacing: .04em; min-width: 170px; text-align: center; }
.dp-hoje { height: 34px; margin-left: 6px; }
.dp-kpis { margin-bottom: 16px; }
.dp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.dp-cats { display: flex; flex-direction: column; gap: 14px; }
.dp-cat-t { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.dp-cat-t span { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-cat-t i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dp-cat-bar { height: 8px; margin: 6px 0 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.dp-cat-bar b { display: block; height: 100%; border-radius: 99px; }
.dp-cat small { color: var(--muted); font-size: 12px; }
.dp-tbl td { vertical-align: middle; }
.dp-forn { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.dp-st { border: 0; border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.dp-st.ok { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.dp-st.pend { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.dp-vazio { text-align: center; color: var(--muted); padding: 28px 12px !important; }
.dp-tbl .acts { display: flex; justify-content: flex-end; gap: 6px; }
.kpi-sub { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; text-align: left; }
.kpi-sub:hover { color: var(--accent); }
@media (max-width: 1000px) { .dp-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .dp-mes b { min-width: 0; font-size: 16px; } .dp-bar .primary { width: 100%; } }
.title-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.title-acts .ghost { height: 38px; }
.title-acts .primary, .title-acts .ghost { white-space: nowrap; }
@media (max-width: 560px) { .titlebar .title-acts { width: 100%; } .titlebar .title-acts > * { flex: 1 1 0; } }
table.dp-tbl { min-width: 560px; }
.dp-tbl th, .dp-tbl td { padding: 10px 10px; }
.dp-tbl td:nth-child(2) { white-space: normal; min-width: 150px; }
.dp-tbl td:nth-child(3) { white-space: normal; }
@media (min-width: 1001px) and (max-width: 1400px) { .dp-grid { grid-template-columns: minmax(0, 1fr); } .dp-grid > .card:first-child .dp-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 24px; } }
.dp-mes-t { height: 38px; font-size: 18px; letter-spacing: .04em; min-width: 180px; justify-content: center; }
@media (max-width: 560px) { .dp-mes-t { min-width: 0; font-size: 16px; } }

/* Aceite dos termos */
.check-row { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font-size: 14px; line-height: 1.5; }
.check-row:hover { border-color: var(--muted); }
.check-row.bad { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check-row input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.check-row .box { flex: none; width: 22px; height: 22px; border: 2px solid var(--muted); border-radius: 6px; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.check-row input:checked + .box { background: var(--accent-fill); border-color: var(--accent); }
.check-row input:checked + .box::after { content: ""; width: 6px; height: 11px; border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check-row input:focus-visible + .box { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }
.check-row a { color: var(--accent); font-weight: 700; }
.submit:disabled { opacity: .5; cursor: not-allowed; filter: none; }

/* Despesas mensais, vencidas e notificações */
.dp-mensal { padding: 12px 14px; }
.dp-mensal small { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.dp-rec { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 700; color: var(--info); background: color-mix(in srgb, var(--info) 14%, transparent); vertical-align: 1px; }
.dp-st.venc { color: var(--accent); background: var(--accent-soft); }
.dp-venc td:first-child { color: var(--accent); font-weight: 700; }
.sino-btn { position: relative; }
.sino-n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--warn); color: var(--n950); font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.sino-n.red { background: var(--accent-fill); color: var(--accent-ink); }
.sino-n[hidden] { display: none; }
.sino-pop { width: min(340px, calc(100vw - 24px)); padding: 6px; max-height: 70vh; overflow-y: auto; }
.sino-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.sino-h small { color: var(--muted); font-size: 12px; }
.sino-it { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 9px; background: none; color: var(--fg); text-align: left; cursor: pointer; }
.sino-it:hover, .sino-it:focus-visible { background: var(--surface-2); outline: none; }
.sino-it .dot { flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--warn); }
.sino-it.vencida .dot { background: var(--accent-fill); }
.sino-it b { display: block; font-size: 14px; }
.sino-it small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.sino-it.vencida small { color: var(--accent); }
.sino-vazio { display: flex; align-items: center; gap: 8px; padding: 14px 10px; color: var(--muted); font-size: 13px; }
.sino-vazio svg { color: var(--good); }
.sino-nav { display: block; width: 100%; padding: 10px; margin-top: 4px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; }
.check-row input { inset: 0; width: 100%; height: 100%; z-index: 1; }
.check-row a { position: relative; z-index: 2; }
.field label.check-row { font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--fg); font-weight: 400; }
.field label.check-row b { font-weight: 700; }
/* Login: fundo contínuo, sem linha dividindo a tela */
.shell { background:
  radial-gradient(ellipse 55% 70% at 18% 105%, var(--accent-soft), transparent 70%),
  radial-gradient(ellipse 70% 80% at 0% 0%, color-mix(in srgb, var(--surface) 85%, transparent), transparent 75%),
  var(--bg); }
.brand-side { background: none; border-right: 0; overflow: visible; }
.brand-side::after { display: none; }
.brand-side::before { -webkit-mask-image: radial-gradient(ellipse 85% 75% at 25% 35%, #000 25%, transparent 78%); mask-image: radial-gradient(ellipse 85% 75% at 25% 35%, #000 25%, transparent 78%); }
.form-side { background: none; }

/* Exportar e importar */
.exp-pop { width: min(330px, calc(100vw - 24px)); right: 0; left: auto; top: 46px; padding: 6px; }
.exp-pop .menu-item { align-items: flex-start; gap: 10px; height: auto; min-height: 0; padding: 10px; text-align: left; }
.exp-pop .menu-item svg { flex: none; margin-top: 2px; color: var(--accent); }
.exp-pop .menu-item b { display: block; font-size: 14px; }
.exp-pop .menu-item small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 2px; line-height: 1.4; }
.exp-nota { margin: 4px 0 0; padding: 8px 10px 4px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.exp-lock { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
.exp-lock svg { color: var(--accent); }
.exp-lock span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.exp-lock a { height: 38px; text-decoration: none; margin-top: 4px; }
.imp-steps { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 14px; }
.imp-steps li { display: flex; gap: 12px; align-items: flex-start; }
.imp-steps .n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 13px; }
.imp-steps b { display: block; }
.imp-steps small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; margin: 2px 0 8px; }
.imp-steps .ghost { height: 36px; }
.imp-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 28px 16px; border: 2px dashed var(--line); border-radius: 14px; background: var(--surface); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.imp-drop:hover, .imp-drop.sobre, .imp-drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.imp-drop svg { color: var(--accent); }
.imp-drop small { color: var(--muted); font-size: 12px; }
.imp-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.imp-drop.lendo { opacity: .6; pointer-events: none; }
.imp-resumo { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 12px; }
.imp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: var(--surface-2); font-size: 13px; font-weight: 700; }
.imp-chip.ok { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.imp-chip.bad { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.imp-prev { max-height: 340px; overflow: auto; }
table.imp-tbl { min-width: 680px; }
.imp-tbl th, .imp-tbl td { padding: 8px 10px; font-size: 13px; }
.imp-tbl th { position: sticky; top: 0; z-index: 1; }
.imp-tbl tr.bad td { color: var(--muted); }
.imp-erro { color: var(--accent); font-weight: 700; font-size: 12px; }
.imp-ok { color: var(--good); }
.imp-tbl td:last-child { white-space: normal; min-width: 150px; }
.imp-steps small b { display: inline; }

/* Despesas: importar e exportar */
.dp-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dp-acoes > .ghost, .dp-acoes .pop-wrap > .ghost, .dp-acoes > .primary { height: 40px; }
.dp-esc { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 2px 2px 6px; border-radius: 10px; background: var(--surface-2); }
.dp-esc button { height: 34px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 8px; }
.dp-esc button[aria-checked="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(13, 6, 6, .18); }
@media (max-width: 560px) {
  .dp-acoes { width: 100%; }
  .dp-acoes > .ghost, .dp-acoes .pop-wrap { flex: 1; }
  .dp-acoes .pop-wrap > .ghost { width: 100%; }
  .dp-acoes > .primary { flex-basis: 100%; }
  .dp-acoes .exp-pop { right: auto; left: 0; }
}

/* Venda cancelada: fica na lista, mas fora dos totais */
tr.cancelada td { color: var(--muted); }
tr.cancelada td:not(:last-child):not(:nth-last-child(2)) { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 70%, transparent); }
tr.cancelada td b { color: var(--muted); }
.exp-pop .menu-item { white-space: normal; }

/* Primeiros passos */
.guia { padding: 20px 22px; margin-bottom: 18px; border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.guia-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.guia-top h2 { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin: 0; font-size: 17px; text-transform: none; letter-spacing: 0; }
.guia-top h2 svg { color: var(--accent); }
.guia-top span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.guia-bar { height: 6px; border-radius: 99px; background: var(--surface-2); margin: 14px 0 6px; overflow: hidden; }
.guia-bar b { display: block; height: 100%; background: var(--accent-fill); border-radius: 99px; transition: width .4s; }
.guia-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.guia-lista li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.guia-lista li.agora { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.guia-lista li.ok { opacity: .7; }
.guia-lista li.ok b { text-decoration: line-through; color: var(--muted); }
.guia-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--fg); font-weight: 800; font-size: 13px; }
.guia-lista li.agora .guia-n { background: var(--accent-fill); color: var(--accent-ink, #fff); }
.guia-lista li.ok .guia-n { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.guia-lista b { display: block; font-size: 14px; }
.guia-lista small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 3px; }
.guia-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.guia-acts button { height: 34px; padding: 0 12px; font-size: 13px; }

/* Minha assinatura */
.as-status { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14px; line-height: 1.45; margin: 14px 0; }
.as-status svg { flex: none; margin-top: 1px; color: var(--muted); }
.as-status.ok svg { color: var(--good); }
.as-status.soon { background: var(--accent-soft); } .as-status.soon svg { color: var(--accent); }
.as-planos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.as-plano { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.as-plano:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.as-plano.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.as-p-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; }
.as-p-top b { font-size: 15px; }
.as-tag { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.as-tag.hot { background: var(--accent-soft); color: var(--accent); }
.as-preco { font-size: 19px; font-weight: 800; }
.as-preco small, .as-plano > small { font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.35; }
.as-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.as-acoes .primary, .as-acoes .ghost { height: 44px; }
#asErr a { color: inherit; font-weight: 700; }
.as-hist { margin-top: 14px; }
.as-hist h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.as-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.as-tbl th { text-align: left; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.as-tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
.as-tbl .r { text-align: right; }
.as-link { color: var(--accent); font-weight: 700; text-decoration: none; }
.link.dng { color: var(--muted); font-size: 13px; margin-right: auto; }
.link.dng:hover { color: var(--accent); }
.as-formas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.as-forma { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); text-align: left; cursor: pointer; }
.as-forma svg { flex: none; margin-top: 2px; color: var(--muted); }
.as-forma b { display: block; font-size: 14px; }
.as-forma small { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.as-forma.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.as-forma.on svg { color: var(--accent); }
.pix-box { display: flex; gap: 16px; align-items: flex-start; padding: 14px; margin: 10px 0; border: 1.5px solid color-mix(in srgb, var(--good) 45%, var(--line)); border-radius: 14px; background: var(--surface); }
.pix-qr { flex: none; width: 190px; height: 190px; border-radius: 10px; background: #fff; padding: 6px; image-rendering: pixelated; }
.pix-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pix-info b { font-size: 15px; }
.pix-info small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.pix-code { width: 100%; resize: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.4; height: auto; padding: 8px 10px; word-break: break-all; }
.pix-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.pix-acts .primary, .pix-acts .ghost { height: 40px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.renew-formas { margin-bottom: 4px; }
@media (max-width: 600px) { .as-planos { grid-template-columns: 1fr; } .as-acoes > * { flex: 1 1 100%; } .as-formas { grid-template-columns: 1fr; } .pix-box { flex-direction: column; align-items: center; } .pix-acts > * { flex: 1 1 100%; justify-content: center; } }

/* Avisos por e-mail no perfil */
.pf-avisos { display: grid; gap: 8px; margin: 14px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.pf-avisos > b { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pf-avisos small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; margin-top: 2px; }
.renew-it button { height: 38px; flex: none; }
@media (max-width: 520px) { .renew-it button { flex: 1 1 100%; } }
.alert.ok { background: color-mix(in srgb, var(--good) 12%, transparent); border-color: var(--good); }
#renewFine a { color: var(--accent); font-weight: 700; }

/* Admin: cobrança e avisos */
.cob-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.cob-card { display: flex; flex-direction: column; gap: 12px; }
.cob-st { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; line-height: 1.45; }
.cob-st svg { flex: none; margin-top: 1px; color: var(--muted); }
.cob-st.ok svg { color: var(--good); } .cob-st.bad { background: var(--accent-soft); } .cob-st.bad svg { color: var(--accent); }
.cob-txt { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.cob-lista { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.cob-lista b { color: var(--fg); }
.cob-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.cob-acts button { height: 38px; }
.imp-at { color: var(--info, #4c8bf5); font-weight: 700; font-size: 12.5px; }
#eiBody td:last-child { min-width: 150px; }
.imp-ok { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 12.5px; }
.ok-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }

/* Verificação anti-robô: só aparece quando o Cloudflare pede um clique */
.captcha-box { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; background: rgba(13, 6, 6, .55); opacity: 0; pointer-events: none; transition: opacity .15s; }
.captcha-box.on { opacity: 1; pointer-events: auto; }
.captcha-in { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; max-width: 360px; }
.captcha-in span { color: var(--muted); font-size: 13.5px; }

/* identificação do fornecedor (Decreto 7.962/2013) */
.sd-ident { font-size: 12.5px; color: var(--muted); }
.sd-ident a, .sd-foot a { color: var(--muted); font-weight: 600; text-decoration: none; }
.sd-ident a:hover, .sd-foot a:hover { color: var(--fg); }
.sd-foot { text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.9; padding: 18px 16px 28px; overflow-wrap: anywhere; }
.pf-destaque { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 10px; transition: outline-color 1.5s; }

/* aviso de cookies */
/* Aviso de cookies: faixa fina fixa no pé da tela */
.sd-cookies { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(13, 6, 6, .18); color: var(--fg);
  padding: var(--esp-2) max(16px, env(safe-area-inset-right, 0px)) calc(var(--esp-2) + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.sd-cookies-in { max-width: 1180px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--esp-2) var(--esp-4); }
.sd-cookies p { margin: 0; font-size: var(--fs-sm); line-height: var(--lh-media); color: var(--muted); }
.sd-cookies-links { font-size: var(--fs-sm); color: var(--muted); }
/* telas menores: texto em cima (até 2 linhas), links e botão na linha de baixo */
@media (max-width: 900px) {
  .sd-cookies-in { grid-template-columns: minmax(0, 1fr) auto; }
  .sd-cookies p { grid-column: 1 / -1; }
}
.sd-cookies a { color: var(--fg); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.sd-cookies a:hover { color: var(--accent); }
.sd-cookies-ok { flex: none; min-height: 36px; padding: 0 var(--esp-4); border: 1px solid var(--line); border-radius: var(--raio-md); background: var(--surface-2); color: var(--fg); font: inherit; font-weight: 700; font-size: var(--fs-sm); cursor: pointer; }
.sd-cookies-ok:hover { border-color: var(--accent); color: var(--accent); }
.sd-cookies a:focus-visible, .sd-cookies-ok:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (pointer: coarse), (max-width: 680px) { .sd-cookies-ok { min-height: 44px; padding: 0 var(--esp-3); } .sd-cookies a { display: inline-block; padding-block: var(--esp-1); } .sd-cookies p, .sd-cookies-links { font-size: var(--fs-xs); } }
/* títulos das telas secundárias: mesmo visual do h1, mas só um h1 por página */
body h2.h1 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 3.4vw, 28px); letter-spacing: .08em; text-transform: uppercase; text-wrap: balance; display: block; color: var(--fg); }
[data-logo] { display: inline-block; width: 20px; height: 28px; flex: none; }
.brand-side [data-logo] { width: 24px; height: 33px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; border-radius: 10px; background: var(--v600); color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
/* lucro positivo e negativo */
.num.pos { color: var(--good); }
.num.neg { color: var(--accent); }
/* validade dos produtos */
.muted { color: var(--muted); }
.val-cel { white-space: nowrap; }
.val-cel .due { margin-left: 4px; }
.link-warn { background: none; border: 0; padding: 0; font: inherit; color: var(--warn); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.sd-selo { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; margin-bottom: 4px; border: 1px solid color-mix(in srgb, var(--good) 45%, var(--line)); border-radius: 999px; color: var(--good); font-size: 12px; font-weight: 700; line-height: 1.4; }
/* busca e filtros da tabela de despesas */
.dp-tools .dp-busca { flex: 1 1 260px; width: auto; min-width: 0; visibility: visible !important; display: flex !important; }
.dp-tools .field { min-width: 150px; }
@media (max-width: 640px) { .dp-tools .l > * { flex: 1 1 100%; } }
/* promoção: preço antigo riscado */
.preco-de { color: var(--muted); font-weight: 500; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.preco-antes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; font-size: 15px; }
.promo-selo { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-family: var(--font-body); }
.pp .preco-de, .price .preco-de, .as-preco .preco-de { font-size: .62em; margin-right: 4px; }
th .preco-de { font-size: .95em; margin-right: 2px; }
/* ===== App no celular (PWA) ===== */
.pwa-slot { margin-top: 12px; }
.pwa-slot .pwa-btn { width: 100%; height: 50px; gap: 8px; font-size: 15px; }
.pwa-slot-entrar { width: 100%; margin: 14px 0 0; }
.pwa-fundo { position: fixed; inset: 0; z-index: 220; background: rgba(13, 6, 6, .55); display: flex; align-items: flex-end; justify-content: center; animation: pwaFade .18s ease; }
.pwa-folha { width: min(520px, 100%); max-height: 88dvh; overflow: auto; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; padding: 10px 20px max(20px, env(safe-area-inset-bottom)); box-shadow: var(--shadow); animation: pwaSobe .22s ease; }
.pwa-alca { width: 42px; height: 5px; border-radius: 99px; background: var(--line); margin: 0 auto 14px; }
.pwa-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pwa-cab img { display: block; border-radius: 10px; }
.pwa-cab b { display: block; font-family: var(--font-display); font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
.pwa-cab small { color: var(--muted); }
.pwa-passos { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: passo; display: grid; gap: 10px; }
.pwa-passos li { counter-increment: passo; position: relative; padding: 12px 12px 12px 48px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; line-height: 1.5; }
.pwa-passos li::before { content: counter(passo); position: absolute; left: 12px; top: 11px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-fill); color: #fff; font-weight: 800; font-size: 13px; }
.pwa-sym { display: inline-block; vertical-align: -4px; color: var(--accent); }
.pwa-txt, .pwa-dica { margin: 0 0 14px; color: var(--muted); line-height: 1.55; }
.pwa-dica { font-size: 13px; }
.pwa-ok, .pwa-fechar { width: 100%; height: 48px; margin-top: 4px; }
.pwa-link { width: 100%; margin-top: 10px; }
.pwa-faixa { position: fixed; z-index: 150; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); animation: pwaSobe .25s ease; }
.pwa-faixa img { border-radius: 9px; flex: none; }
.pwa-faixa p { margin: 0; flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; }
.pwa-faixa p b { display: block; font-size: 14px; }
.pwa-faixa p span { color: var(--muted); }
.pwa-faixa .pwa-btn { flex: none; height: 38px; padding: 0 14px; }
.pwa-x { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: none; border: 0; color: var(--muted); border-radius: 10px; cursor: pointer; }
@keyframes pwaSobe { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pwaFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pwa-fundo, .pwa-folha, .pwa-faixa { animation: none; } }
/* dentro do app instalado: sem seleção acidental de texto ao tocar nos botões e sem "puxar" a página inteira */
.no-app body { overscroll-behavior-y: none; }
.no-app button, .no-app .menu-item, .no-app nav a { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.pwa-travado, .pwa-travado body { overflow: hidden; }
/* Celular: campos com 16px para o iPhone não dar zoom ao digitar; toque duplo não amplia a tela */
@media (pointer: coarse) {
  html { touch-action: manipulation; }
  input, select, textarea, .input, .search input, .ctl input { font-size: 16px !important; }
}
/* contas parecidas (admin) */
.dr-parec ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.dr-parec li { padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 12px; background: var(--accent-soft); }
.dr-parec li .link { font-weight: 800; color: var(--fg); padding: 0; background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; font: inherit; font-weight: 800; }
.dr-parec li small { color: var(--muted); }
.parec-mot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
/* computador: instruções do app como janela no centro, botão do tamanho do texto */
@media (min-width: 700px) {
  .pwa-fundo { align-items: center; padding: 24px; }
  .pwa-folha { border-bottom: 1px solid var(--line); border-radius: 20px; padding-bottom: 20px; }
  .pwa-alca { display: none; }
  .pwa-slot .pwa-btn { width: auto; padding: 0 22px; }
  .pwa-slot-entrar .pwa-btn { width: 100%; }
  .pwa-faixa { left: auto; right: 24px; bottom: 24px; width: min(460px, calc(100vw - 48px)); }
}

/* ===== Animações (só movimento e transparência; desligam com "reduzir movimento") ===== */
/* Logo: um sinal de luz percorre as linhas da rede */
.mark .sinal { display: none; }
.logo-vivo .mark .sinal { display: inline; }
.logo-vivo .mark .sinal path { stroke: color-mix(in srgb, currentColor 30%, #fff); stroke-dasharray: 12 140; stroke-dashoffset: 12; animation: sinalLinha 4.2s cubic-bezier(.45, 0, .25, 1) infinite; }
.logo-vivo .mark .sinal circle { stroke: color-mix(in srgb, currentColor 30%, #fff); opacity: 0; animation: sinalNo 4.2s ease-in-out infinite; }
.logo-vivo .mark .sinal :nth-child(2), .logo-vivo .mark .sinal :nth-child(7) { animation-delay: .25s; }
.logo-vivo .mark .sinal :nth-child(3), .logo-vivo .mark .sinal :nth-child(8) { animation-delay: .5s; }
.logo-vivo .mark .sinal :nth-child(4), .logo-vivo .mark .sinal :nth-child(9) { animation-delay: .15s; }
.logo-vivo .mark .sinal :nth-child(5), .logo-vivo .mark .sinal :nth-child(10) { animation-delay: .4s; }
@keyframes sinalLinha { 0% { stroke-dashoffset: 12; } 50%, 100% { stroke-dashoffset: -128; } }
@keyframes sinalNo { 0%, 100% { opacity: 0; } 8% { opacity: .9; } 26% { opacity: 0; } }

/* Esqueleto do painel enquanto carrega */
.loading-screen.esq-on { display: block; place-items: unset; overflow: hidden; }
.esq { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100%; height: 100dvh; }
.esq-side { background: var(--surface); border-right: 1px solid var(--line); padding: 22px 16px; display: grid; align-content: start; gap: 14px; }
.esq-main { padding: 14px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); display: grid; align-content: start; gap: 18px; min-width: 0; }
.esq-top { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.esq-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.esq-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.sk { display: block; position: relative; overflow: hidden; height: 14px; border-radius: 8px; background: var(--surface-2); }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--fg) 7%, transparent), transparent); animation: skBrilho 1.4s ease-in-out infinite; }
@keyframes skBrilho { to { transform: translateX(100%); } }
.esq-side .sk { height: 34px; border-radius: 10px; }
.esq-side .sk-logo { height: 30px; width: 60%; margin-bottom: 14px; }
.sk-t1 { width: 180px; height: 36px; } .sk-t2 { width: 120px; height: 36px; }
.sk-h1 { width: min(340px, 70%); height: 34px; }
.sk-kpi { height: 116px; border-radius: 16px; }
.sk-big { height: 300px; border-radius: 16px; }
.esq-msg { position: fixed; left: 0; right: 0; bottom: max(18px, env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .esq { grid-template-columns: minmax(0, 1fr); } .esq-side { display: none; } .esq-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .esq-row { grid-template-columns: minmax(0, 1fr); } .sk-big { height: 200px; } }

/* Linha recém-salva */
tr.novo > td { animation: linhaNova 2.2s ease-out; }
@keyframes linhaNova { 0%, 30% { background: color-mix(in srgb, var(--good) 18%, transparent); } 100% { background: transparent; } }

/* Números dos cartões: cor do lucro muda suave */
.kpi .val { transition: color .4s ease; font-variant-numeric: tabular-nums; }

/* Cartões de planos: sobem ao passar o mouse; o mais escolhido brilha */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pl, .pc { transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease; }
  .pl:hover, .pc:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(13, 6, 6, .18); }
  .pl.hot:hover, .pc.hot:hover { box-shadow: 0 0 0 1px var(--accent), 0 28px 70px var(--accent-soft); }
}
@media (prefers-reduced-motion: no-preference) {
  .pl.hot::after, .pc.hot::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 1px var(--accent), 0 0 34px color-mix(in srgb, var(--accent) 35%, transparent); opacity: 0; animation: brilhoPlano 3.4s ease-in-out infinite; }
}
@keyframes brilhoPlano { 50% { opacity: 1; } }
/* o selo "Mais escolhido" fica por cima do contorno que pisca (antes o contorno passava riscando o selo) */
.pl.hot::after, .pc.hot::after { z-index: 1; }
.pl .tag, .pc .tag { z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .logo-vivo .mark .sinal { display: none; }
  .sk::after, tr.novo > td { animation: none; }
  .kpi .val { transition: none; }
}

/* ===== Toque no celular: alvos de pelo menos 44px (recomendação Apple/Google) ===== */
@media (pointer: coarse) {
  .icon-btn { width: 44px; height: 44px; }
  .ghost, .primary { min-height: 44px; }
  a.brand { min-height: 44px; display: inline-flex; align-items: center; }
  #toRecover { min-height: 44px; display: inline-flex; align-items: center; }
  #waSupport { min-height: 44px; }
  body .tm-toc a { padding-top: 12px; padding-bottom: 12px; }
  .m-brand { min-height: 44px; }
}
/* Rodapé no celular: links com pelo menos 44px de área de toque.
   O padding vertical num link "inline" aumenta a área clicável sem mexer na altura das linhas,
   então o rodapé continua com o mesmo desenho. */
@media (pointer: coarse), (max-width: 680px) {
  .sd-foot a, .sd-ident a, .tm-foot a, .lp-foot a { padding-block: 14px; position: relative; z-index: 1; }
}

/* ===== Etapa 0: o vermelho como clima nas páginas públicas ===== */
body[data-ancoras-limpas] { background: radial-gradient(1100px 560px at 78% -140px, var(--atmosfera), transparent 70%) no-repeat, var(--bg); }

/* Agenda: quem marcou o compromisso */
.ag-autor { display: flex; align-items: center; gap: 4px; margin-top: 2px; color: var(--muted); }
.ag-autor svg { flex: none; }

/* Despesas: repetir todo mês ou todo ano */
.dp-rep small { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

/* Histórico de vendas alteradas e excluídas */
.hist-filtro { display: inline-flex; gap: 4px; padding: 3px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2, transparent); }
.hist-filtro button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.hist-filtro button.on { background: var(--accent-soft); color: var(--fg); }
.hist-filtro button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hist-lista { display: grid; gap: 8px; max-height: min(56vh, 520px); overflow-y: auto; padding-right: 2px; }
.hist-it { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.hist-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 700; color: var(--info); background: color-mix(in srgb, var(--info) 14%, transparent); white-space: nowrap; }
.hist-it.ex .hist-tag { color: var(--accent); background: var(--accent-soft); }
.hist-it.ra-criou .hist-tag { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.hist-it.ra-acessou .hist-tag { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.ra-filtro { max-width: 320px; margin-bottom: 12px; }
@media (max-width: 520px) { .hist-mud.ra-dados li { flex-wrap: nowrap; } .hist-mud.ra-dados li > span { width: auto; min-width: 92px; flex: none; } .hist-mud.ra-dados li > b { min-width: 0; overflow-wrap: anywhere; } }
.hist-txt { min-width: 0; }
.hist-txt p { margin: 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.hist-txt p .num { color: var(--muted); white-space: nowrap; }
.hist-txt small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.hist-mud { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.hist-mud li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hist-mud li > span { min-width: 82px; color: var(--muted); }
.hist-mud s { color: var(--muted); text-decoration-thickness: 1.5px; }
.hist-mud svg { color: var(--muted); flex: none; }
@media (max-width: 520px) { .hist-it { grid-template-columns: 1fr; } .hist-tag { justify-self: start; } .hist-mud li > span { min-width: 0; width: 100%; } }

/* Admin: números do cliente ocultos até pedir */
.fact.dr-oculto { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.fact.dr-oculto .ghost { margin-top: 4px; min-height: 40px; }
.dr-ocultar { display: flex; justify-content: flex-end; }
.dr-ocultar .link { min-height: 36px; font-size: 13px; }

/* Telas de toque (celular e tablet): área de toque maior nos controles pequenos, sem mudar o visual */
@media (pointer: coarse) {
  .foot-links { gap: 0; margin-top: 6px; padding-top: 6px; }
  .foot-links a { padding: 4px 0; }
  .kpi-sub, .pill-btn, th button, .ag-check, .dp-st, .plans-link, .link-warn { position: relative; }
  .kpi-sub::after, .pill-btn::after, th button::after, .ag-check::after, .dp-st::after, .plans-link::after, .link-warn::after {
    content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 32px; transform: translateY(-50%);
  }
  .ag-check::after { left: 50%; right: auto; width: 32px; transform: translate(-50%, -50%); }
  .kpi .sub:has(.link-warn) { line-height: 26px; }
  .link-warn::after { top: 0; bottom: 0; left: -2px; right: -2px; height: auto; transform: none; }
}

/* Loja */
.lj-busca { flex: 0 1 320px; width: auto; min-width: 200px; visibility: visible !important; }
.lj-kpis { margin-bottom: 16px; }
.lj-vprod { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12px; color: var(--muted); }
.lj-vprod svg { flex: none; }
.lj-venc { margin-bottom: 16px; }
#mLojaInfo { display: block; margin-top: 4px; }
.dc-aviso { display: grid; gap: 8px; margin: 4px 0 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.dc-aviso b { color: var(--fg); }
.dc-aviso ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* Excluir conta (Meu perfil) */
.pf-perigo { display: grid; gap: 6px; margin: 14px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.pf-perigo > b { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pf-perigo p { margin: 0; font-size: 13px; color: var(--muted); }
.pf-perigo .pf-excluir { justify-self: start; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.pf-perigo .pf-excluir:hover { background: var(--accent-soft); }
.ex-passo { display: grid; gap: 12px; }
#exP2.form { grid-template-columns: minmax(0, 1fr); }
.ex-lead { margin: 0; font-size: 14.5px; line-height: 1.5; }
.ex-lista { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ex-lista li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; border-top: 1px solid var(--line); }
.ex-lista li:first-child { border-top: 0; }
.ex-lista li > b.n { flex: none; min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; color: var(--accent); }
.ex-lista li small { display: block; color: var(--muted); font-size: 12.5px; }
.ex-box { font-size: 13px; line-height: 1.5; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--warn); background: color-mix(in srgb, var(--warn) 9%, transparent); display: grid; gap: 4px; }
.ex-box:empty { display: none; }
.ex-dica { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.ex-dica b { color: var(--fg); }
#exErr:empty { display: none; }

/* Acesso do suporte (Meu perfil) */
.pf-sup { display: grid; gap: 8px; margin: 14px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.pf-sup > b { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pf-sup p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.pf-sup p b { color: var(--fg); }
.pf-sup-estado:empty { display: none; }
.pf-sup-estado.on { color: var(--fg); padding: 8px 10px; border-radius: 10px; border: 1px solid var(--warn); background: color-mix(in srgb, var(--warn) 9%, transparent); }
.pf-sup-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.pf-sup-acoes span { flex-basis: 100%; }
.pf-sup-acoes .ghost { min-height: 36px; padding: 6px 12px; font-size: 13px; }

/* Admin: contas excluídas */
.nav-n { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent-fill); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
.nav-n[hidden] { display: none; }
.exc-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
@media (max-width: 640px) {
  .exc-kpis { gap: 8px; }
  .exc-kpis .fact span { font-size: 10px; }
  .exc-tbl thead { display: none; }
  .exc-tbl, .exc-tbl tbody, .exc-tbl tr, .exc-tbl td { display: block; width: 100%; }
  .exc-tbl tr { padding: 10px 12px; border-top: 1px solid var(--line); }
  .exc-tbl tr:first-child { border-top: 0; }
  .exc-tbl { min-width: 0 !important; }
  .exc-tbl td { padding: 3px 0; border: 0; text-align: left; min-width: 0; max-width: none; white-space: normal; overflow-wrap: anywhere; }
  .exc-tbl td.r { text-align: left; }
  .exc-tbl td::before { content: attr(data-l); display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
}
.exc-tbl td { vertical-align: top; }
.exc-motivo { min-width: 220px; max-width: 420px; white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
.exc-motivo .muted { color: var(--muted); font-style: italic; }
.exc-tag { font-size: 11px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 6px; padding: 0 5px; margin-left: 4px; }

/* Venda de serviço */
.m-serv { padding: 10px 12px; }
.m-serv small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; margin-top: 2px; }
#mCostOpc { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }

/* Olho: esconder os valores do painel */
.kpi .lab .kpi-olho { margin-left: auto; display: inline-grid; place-items: center; width: 30px; height: 30px; margin: -6px -6px -6px auto; border-radius: 8px; border: 0; background: transparent; color: var(--accent); cursor: pointer; }
.kpi .lab .kpi-olho:hover { background: var(--accent-soft); }
.kpi .lab .kpi-olho:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (pointer: coarse) { .kpi .lab .kpi-olho { width: 40px; height: 40px; margin: -10px -10px -10px auto; } }
body.valores-ocultos #viewHome .kpi .val,
body.valores-ocultos #viewHome .kpi .delta,
body.valores-ocultos #viewHome .kpi-sub,
body.valores-ocultos #viewHome #monthBox .bval,
body.valores-ocultos #viewHome .bdetail,
body.valores-ocultos #viewHome .tip,
body.valores-ocultos #viewHome svg text,
body.valores-ocultos #viewHome .lrow .num,
body.valores-ocultos #viewHome #vendBox .num,
body.valores-ocultos #viewHome #catBox .num,
body.valores-ocultos #viewHome #tbody td.r,
body.valores-ocultos #viewFluxo .kpi .val,
body.valores-ocultos #viewFluxo .fx-tbl td.num:not(:first-child) { filter: blur(7px); user-select: none; transition: filter .15s; }
body.valores-ocultos #viewHome #monthBox .blab { filter: none; }

/* Minha assinatura: desistir e tabela sem rolagem lateral */
#asDesistir { margin-left: 0; align-self: center; }
.as-tbl th, .as-tbl td { padding-left: 6px; padding-right: 6px; }
.as-tbl td.num { white-space: nowrap; }
table.as-tbl { min-width: 0; }
@media (max-width: 520px) { .as-tbl { font-size: 12px; } .as-tbl th, .as-tbl td { padding-left: 3px; padding-right: 3px; } .as-tbl th { letter-spacing: 0; font-size: 10px; } .as-tbl .st { white-space: normal; } }

/* Forma de pagamento na venda */
.v-forma { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.m-forma-info { font-size: 13px; color: var(--muted); padding: 8px 10px; border-radius: 10px; background: var(--surface-2); line-height: 1.45; }
.m-forma-info b { color: var(--fg); }

/* Fluxo de caixa */
#fxKpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { #fxKpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { #fxKpis { grid-template-columns: minmax(0, 1fr); } }
.fx-card { margin-top: 16px; }
.fx-card h2 small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }
.fx-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 220px; padding-top: 8px; }
.fx-col { display: flex; flex-direction: column; align-items: center; height: 100%; gap: 6px; }
.fx-col.atual .fx-lab { color: var(--fg); font-weight: 700; }
.fx-par { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.fx-b { position: relative; width: 42%; max-width: 22px; height: 100%; display: flex; flex-direction: column-reverse; }
.fx-b i { display: block; width: 100%; border-radius: 4px 4px 0 0; min-height: 0; }
.fx-b.e i { background: var(--good); }
.fx-b.s i { background: var(--accent-fill); }
.fx-b i.prev { opacity: .35; }
.fx-b i:first-child:not(:last-child) { border-radius: 0; }
.fx-lab { font-size: 11.5px; color: var(--muted); }
.fx-leg { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.fx-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.fx-leg i.e { background: var(--good); } .fx-leg i.s { background: var(--accent-fill); } .fx-leg i.p { background: var(--muted); opacity: .4; }
table.fx-tbl { min-width: 640px; }
.fx-tbl td.pos { color: var(--good); } .fx-tbl td.neg { color: var(--accent); }
.fx-tbl tr.fx-atual td { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.fx-tbl td small { color: var(--muted); font-size: 11.5px; }
@media (max-width: 520px) { .fx-bars { gap: 3px; height: 180px; } .fx-lab { font-size: 10px; } }
.field .hint { display: block; margin-top: 6px; }

/* =========================================================
   Demonstração pública (demonstracao.html e demo-painel.html)
   ========================================================= */
.demo-faixa { position: relative; z-index: 130; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); padding-top: max(8px, env(safe-area-inset-top, 0px)); background: linear-gradient(90deg, var(--accent-soft), transparent 70%), var(--surface); border-bottom: 1px solid var(--line); font-size: 13px; }
.demo-selo { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--accent-fill); color: var(--accent-ink); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.demo-txt { color: var(--muted); flex: 1 1 260px; min-width: 0; }
.demo-ver { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.demo-ver select { height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); font: inherit; font-weight: 600; }
.demo-faixa .demo-bt { height: 32px; padding: 0 12px; font-size: 13px; text-decoration: none; }
.demo-roteiro { position: fixed; z-index: 155; top: 64px; right: max(16px, env(safe-area-inset-right, 0px)); width: min(380px, calc(100vw - 32px)); max-height: calc(100dvh - 88px); overflow-y: auto; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.demo-roteiro[hidden] { display: none; }
.demo-rt-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.demo-x { width: 32px; height: 32px; display: grid; place-items: center; background: none; border: 0; color: var(--muted); border-radius: 8px; }
.demo-x:hover { background: var(--accent-soft); color: var(--fg); }
.demo-roteiro ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.demo-roteiro li button { width: 100%; display: flex; align-items: flex-start; gap: 10px; padding: 10px; text-align: left; background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--fg); }
.demo-roteiro li button:hover { border-color: var(--accent); background: var(--accent-soft); }
.demo-roteiro li button > svg { flex: none; margin-top: 2px; color: var(--accent); }
.demo-roteiro li button span { display: flex; flex-direction: column; gap: 2px; }
.demo-roteiro li small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.demo-roteiro li .demo-off { opacity: .55; }
.demo-rt-pe { margin: 12px 0 8px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.demo-rt-rec { width: 100%; height: 36px; }
@media (max-width: 760px) {
  .demo-txt, .demo-so-largo { display: none; }
  .demo-faixa { gap: 8px; }
  .demo-faixa .primary.demo-bt { margin-left: auto; }
  .demo-roteiro { top: auto; bottom: max(12px, env(safe-area-inset-bottom, 0px)); left: 12px; right: 12px; width: auto; max-height: 75dvh; }
}

/* página da demonstração */
.dm-in { max-width: 1180px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.dm-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.dm-top .dm-in { display: flex; align-items: center; gap: 12px; height: 64px; }
.dm-top .brand { padding: 0; }
.dm-top .brand b { font-family: var(--font-display); font-size: var(--fs-lg); letter-spacing: .16em; }
.dm-top .mark { width: 20px; height: 28px; }
.dm-hero { padding-block: 64px 24px; text-align: center; }
.dm-eyebrow { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.dm-hero h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.08; max-width: 20ch; margin: 0 auto; }
.dm-hero h1 em { font-style: normal; color: var(--accent); }
.dm-hero > p { margin: 16px auto 0; max-width: 60ch; color: var(--muted); font-size: var(--fs-md); line-height: 1.55; }
.dm-perfil { margin: 28px auto 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dm-perfil-lbl { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dm-seg { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.dm-seg button { height: 38px; padding: 0 18px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 700; }
.dm-seg button[aria-pressed="true"] { background: var(--accent-fill); color: var(--accent-ink); }
.dm-perfil small { color: var(--muted); max-width: 48ch; min-height: 2.6em; line-height: 1.3; }
.dm-ctas { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.dm-big { height: 48px; padding: 0 22px; font-size: var(--fs-md); }
.dm-ticks { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; color: var(--muted); font-size: var(--fs-sm); }
.dm-ticks li { display: inline-flex; align-items: center; gap: 6px; }
.dm-ticks svg { color: var(--good); }
.dm-sec { padding-block: 48px 8px; }
.dm-sec h2, .dm-closing h2 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 3vw, 26px); letter-spacing: .06em; text-transform: uppercase; }
.dm-lead { margin: 0 0 20px; color: var(--muted); }
.dm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dm-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; min-width: 0; }
.dm-shot { display: block; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: var(--bg); cursor: pointer; overflow: hidden; }
.dm-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; transition: transform .25s ease; }
.dm-shot:hover img { transform: scale(1.02); }
.dm-card-txt { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dm-card h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: var(--fs-md); }
.dm-card h3 svg { color: var(--accent); flex: none; }
.dm-card p { margin: 0; color: var(--muted); line-height: 1.5; flex: 1; }
.dm-try { align-self: flex-start; margin-top: 4px; }
.dm-perfis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dm-perfis article { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.dm-perfis h3 { margin: 0; font-family: var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.dm-perfis p { margin: 0 0 4px; color: var(--muted); line-height: 1.5; flex: 1; }
.dm-perfis .ghost { align-self: flex-start; }
.dm-closing { margin-block: 48px 64px; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(160deg, var(--accent-soft), var(--surface) 55%); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.dm-closing p { margin: 0; color: var(--muted); max-width: 56ch; }
@media (max-width: 860px) { .dm-grid, .dm-perfis { grid-template-columns: minmax(0, 1fr); } .dm-hero { padding-top: 40px; } }
@media (max-width: 520px) { .dm-so-largo { display: none; } .dm-closing { padding: 22px; } .dm-big { width: 100%; } .dm-ctas { flex-direction: column; } }

/* =========================================================
   PDV (frente de caixa) · pdv.html
   ========================================================= */
.pdv-body { background: var(--bg); }
.pdv { min-height: 100dvh; display: flex; flex-direction: column; }
.pdv-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); padding-top: max(8px, env(safe-area-inset-top, 0px)); background: var(--surface); border-bottom: 1px solid var(--line); }
.pdv-brand { display: inline-flex; align-items: center; gap: 8px; padding: 0; color: inherit; text-decoration: none; }
.pdv-brand b { font-family: var(--font-display); letter-spacing: .14em; }
.pdv-brand .mark { width: 18px; height: 26px; }
.pdv-tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 2px 8px; border-radius: 999px; background: var(--accent-fill); color: var(--accent-ink); }
.pdv-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pdv-who b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 28ch; }
.pdv-who small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40ch; }
.pdv-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pdv-pill.ok { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, var(--line)); }
.pdv-pill.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.pdv-pill.bad { color: var(--accent); border-color: var(--accent); }
.pdv-top .pop { top: 46px; }
/* no celular a posição do menu Caixa é ajustada pelo pg-pdv.js para caber na tela */
.pdv-sair { text-decoration: none; }
.pdv-aviso { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 14px; }
.pdv-aviso.warn { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
.pdv-aviso.bad { border-color: var(--accent); background: var(--accent-soft); }
.pdv-aviso > span { flex: 1 1 260px; }
.pdv-aviso small { flex-basis: 100%; color: var(--muted); }
.pdv-aviso .primary, .pdv-aviso .ghost { height: 34px; }
.pdv-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: 16px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); min-height: 0; }
.pdv-busca { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pdv-q-row { display: flex; gap: 8px; }
.pdv-q { width: auto; flex: 1; height: 52px; }
.pdv-q input { font-size: 18px; }
.pdv-qtd { height: 52px; white-space: nowrap; }
.pdv-qtd b { color: var(--fg); margin-left: 4px; }
.pdv-res { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; max-height: calc(100dvh - 230px); padding-right: 2px; }
.pdv-prod { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--fg); cursor: pointer; }
.pdv-prod:hover, .pdv-prod.sel { border-color: var(--accent); }
.pdv-prod.off { opacity: .55; cursor: not-allowed; }
.pdv-prod .nm { display: flex; flex-direction: column; min-width: 0; }
.pdv-prod .nm b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdv-prod small { color: var(--muted); font-size: 12px; }
.pdv-prod .pr { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.pdv-prod em { font-style: normal; font-weight: 700; color: var(--accent); }
.pdv-vazio { display: flex; flex-direction: column; gap: 4px; padding: 24px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.pdv-vazio b { color: var(--fg); }
.pdv-teclas { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; color: var(--muted); font-size: 12px; }
.pdv-teclas kbd, .pdv kbd { display: inline-block; min-width: 26px; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); font: 600 11px/1.4 var(--font-body); color: var(--fg); text-align: center; }
.pdv-cart { display: flex; flex-direction: column; min-height: 0; max-height: calc(100dvh - 100px); position: sticky; top: 72px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pdv-cart-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pdv-cart-top h2 { margin: 0; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.pdv-cart-x { display: none; }
.pdv-itens { flex: 1; overflow-y: auto; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; min-height: 120px; }
.pdv-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; }
.pdv-item.sel { border-color: var(--accent); background: var(--accent-soft); }
.pdv-item .nm { display: flex; flex-direction: column; min-width: 0; }
.pdv-item .nm b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdv-item .nm small { color: var(--muted); font-size: 12px; }
.pdv-item .qt { display: inline-flex; align-items: center; gap: 4px; }
.pdv-item .qt b { min-width: 34px; text-align: center; }
.pdv-item .pdv-st { min-width: 74px; text-align: right; }
.pdv-tot { border-top: 1px solid var(--line); padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.pdv-desc-row { display: grid; grid-template-columns: auto 90px 1fr; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.pdv-desc-row .input { height: 34px; width: 90px; min-width: 0; }
.pdv-desc-row small { font-size: 12px; } .pdv-desc-row small.bad { color: var(--accent); font-weight: 700; }
.pdv-linha { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.pdv-linha b { color: var(--fg); }
.pdv-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; border-top: 1px dashed var(--line); }
.pdv-total span { font-family: var(--font-display); letter-spacing: .1em; font-weight: 600; }
.pdv-total b { font-family: var(--font-display); font-size: 36px; line-height: 1.1; }
.pdv-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.pdv-pagar { grid-column: 1 / -1; height: 56px; font-size: 18px; }
.pdv-mbar { display: none; }
.pdv-big-in { height: 52px; font-size: 22px; }
.pdv-pag-total { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0 14px; }
.pdv-pag-total b { font-family: var(--font-display); font-size: 32px; }
.pdv-formas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.pdv-formas button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 64px; padding: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--fg); font-weight: 700; font-size: 13px; }
.pdv-formas button[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.pdv-notas { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.pdv-notas .ghost { height: 34px; }
.pdv-troco { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); margin-bottom: 10px; }
.pdv-troco b { font-family: var(--font-display); font-size: 26px; } .pdv-troco b.bad { color: var(--accent); font-size: 18px; }
.pdv-ok { display: flex; flex-direction: column; gap: 6px; }
.pdv-ok-tot { display: flex; justify-content: space-between; align-items: baseline; } .pdv-ok-tot b { font-family: var(--font-display); font-size: 30px; }
.pdv-ok-l { display: flex; justify-content: space-between; } .pdv-ok-l.troco b { font-size: 22px; color: var(--good); }
.pdv-ok-acts { flex-wrap: wrap; }
.pdv-resumo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.pdv-rcol { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.pdv-rcol h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pdv-rl { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 14px; }
.pdv-rl.tot { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; font-weight: 700; }
.pdv-dif { min-height: 20px; margin: -4px 0 8px; font-weight: 700; font-size: 14px; } .pdv-dif.ok { color: var(--good); } .pdv-dif.bad { color: var(--accent); }
.pdv-vtbl td, .pdv-vtbl th { white-space: nowrap; }
.pdv-vtbl tr.cancelada td { color: var(--muted); text-decoration: line-through; }
.pdv-vtbl tr.cancelada td:last-child { text-decoration: none; }
.pdv-canc { display: inline-flex; gap: 6px; align-items: center; } .pdv-canc .input { height: 34px; width: 200px; }
.pdv-nfce { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12px; background: #fff; color: #111; padding: 12px; border-radius: 8px; border: 1px solid var(--line); }
.pdv-nfce table { width: 100%; min-width: 0; border-collapse: collapse; margin: 8px 0; } .pdv-nfce th, .pdv-nfce td { padding: 2px 0; border: 0; font-size: 12px; color: #111; background: none; } .pdv-nfce .r { text-align: right; }
.nf-faixa { background: #b70e1c; color: #fff; font-weight: 700; text-align: center; padding: 6px; border-radius: 4px; letter-spacing: .02em; }
.nf-h { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; margin: 8px 0; }
.nf-chave { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 8px 0; text-align: center; } .nf-chave code { font-size: 10px; word-break: break-all; }
.nf-qr { width: 110px; height: 110px; margin: 6px auto; background: repeating-linear-gradient(45deg, #111 0 4px, #fff 4px 8px); opacity: .25; border: 2px solid #111; }
.nf-pe { text-align: center; margin: 6px 0 8px; font-size: 11px; }
.pdv-nfce .cp-l { display: flex; justify-content: space-between; } .pdv-nfce .cp-t { font-weight: 700; font-size: 14px; }
.pdv-cupom { display: none; }
@media print {
  body.pdv-body > *:not(.pdv-cupom) { display: none !important; }
  .pdv-cupom { display: block !important; width: 72mm; margin: 0; padding: 0; font: 12px/1.35 ui-monospace, Menlo, monospace; color: #000; background: #fff; }
  .pdv-cupom .cp-h { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; margin-bottom: 6px; }
  .pdv-cupom .cp-aviso, .pdv-cupom .cp-pe { text-align: center; font-weight: 700; margin: 6px 0; }
  .pdv-cupom table { width: 100%; border-collapse: collapse; } .pdv-cupom td { padding: 2px 0; vertical-align: top; } .pdv-cupom .r { text-align: right; }
  .pdv-cupom .cp-l { display: flex; justify-content: space-between; } .pdv-cupom .cp-t { font-weight: 700; font-size: 14px; border-top: 1px dashed #000; padding-top: 3px; margin-top: 3px; }
  @page { margin: 4mm; }
}
@media (max-width: 860px) {
  .pdv-main { grid-template-columns: minmax(0, 1fr); padding-bottom: 96px; }
  .pdv-cart { display: none; }
  .pdv-cart.open { display: flex; position: fixed; inset: 0; z-index: 150; max-height: none; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top, 0px); }
  .pdv-cart-x { display: grid; }
  .pdv-body .sd-cookies { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }   /* o aviso de cookies fica acima da barra do carrinho */
  .pdv-mbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom, 0px)); z-index: 45; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 8px 16px; background: var(--accent-fill); color: var(--accent-ink); border: 0; border-radius: 14px; box-shadow: var(--shadow); text-align: left; }
  .pdv-body .toasts { bottom: 76px; }
  .pdv-mbar span { display: flex; flex-direction: column; } .pdv-mbar small { opacity: .85; font-size: 12px; }
  .pdv-mbar > b { font-family: var(--font-display); font-size: 24px; }
  .pdv-res { max-height: none; }
  .pdv-teclas { display: none; }
  .pdv-so-largo, .pdv-who small { display: none; }
  .pdv-formas { grid-template-columns: 1fr 1fr; }
  .pdv-resumo { grid-template-columns: 1fr; }
  .pdv-top { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 520px) {
  .pdv-who { display: none; }
  .pdv-pill { font-size: 11px; padding: 0 8px; }
}
.v-canal { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); vertical-align: 1px; }
.v-hora { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.v-canal.imp { color: var(--muted); border-color: var(--line); }
.kpi[data-ver-vendas] { cursor: pointer; }
.dm-roteiro { margin: 14px 0 18px; padding-left: 22px; display: grid; gap: 8px; line-height: 1.5; color: var(--muted); }
.dm-roteiro b { color: var(--fg); }
.dm-card h3 .v-canal { vertical-align: 2px; }
.plano-escolhido { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--accent) 7%, transparent); font-size: 14px; line-height: 1.45; }
.plano-escolhido > span:first-child { color: var(--accent); flex: none; margin-top: 1px; }
.plano-escolhido .link { padding: 0; font-size: inherit; }
/* PDV: número da venda e atalhos depois da venda */
.pdv-ok-num { margin: -6px 0 10px; text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.pdv-ok-num:empty { display: none; }
.pdv-ok-ver { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 12px 0 4px; }
.pdv-ok-ver[hidden] { display: none; }
.pdv-ok-ver > * { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 10px; font-size: 13px; text-decoration: none; }
.pdv-ok-ver > [hidden] { display: none; }
tr.destaque > td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
tr.destaque > td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.kpi-nota { color: var(--muted); font-size: 12px; line-height: 1.35; }
/* Roteiro da demonstração em passos: cartão no canto, nunca cobre a tela */
.demo-tour { position: fixed; z-index: 140; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); width: min(360px, calc(100vw - 32px)); max-height: min(70dvh, 520px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); font-size: 14px; }
.demo-tour[hidden] { display: none; }
.tour-top { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); }
.demo-tour.min .tour-top { border-bottom: 0; }
.tour-tit { display: inline-flex; align-items: baseline; gap: 8px; padding: 0; background: none; border: 0; color: var(--fg); font: inherit; cursor: pointer; }
.tour-n { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tour-pts { display: flex; gap: 5px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.tour-pts li { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); color: var(--accent-ink); }
.tour-pts li.on { border-color: var(--accent); }
.tour-pts li.ok { background: var(--good); border-color: var(--good); color: #fff; }
.demo-tour.min .tour-corpo { display: none; }
.tour-corpo { padding: 12px 14px 12px; }
.tour-corpo h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 15px; }
.tour-ok { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--good); color: #fff; }
.tour-corpo p { margin: 0 0 10px; color: var(--muted); line-height: 1.45; }
.tour-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tour-acoes:empty { display: none; }
.tour-acoes > a, .tour-acoes > button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; font-size: 13px; text-decoration: none; }
.tour-acoes .tour-obs { margin: 0; font-size: 13px; }
.tour-fim { font-size: 13px; }
.tour-fim a { color: var(--accent); }
.tour-nav { display: flex; align-items: center; gap: 8px; }
.tour-nav > span { flex: 1; }
.tour-nav button { height: 34px; padding: 0 12px; font-size: 13px; }
.tour-nav .link, .tour-rec { padding: 0; height: auto; background: none; border: 0; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; }
.tour-rec { display: block; margin-top: 10px; }
@media (max-width: 860px) {
  .demo-tour { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom, 0px)); width: auto; max-height: 55dvh; font-size: 13px; }
  .pdv-body .demo-tour { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }   /* acima da barra do carrinho */
}
/* PDV: cartão (à vista ou parcelado) e taxa da maquininha */
.pdv-cred { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 4px 0 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pdv-cred[hidden] { display: none; }
.pdv-cred button { min-height: 38px; padding: 0 16px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.pdv-cred button + button { border-left: 1px solid var(--line); }
.pdv-cred button[aria-checked="true"] { background: var(--accent-soft); color: var(--fg); box-shadow: inset 0 -2px 0 var(--accent); }
.pdv-pag-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pdv-pag-campos.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pdv-pag-campos .field[hidden] { display: none; }
.pdv-taxa-info { margin: 4px 0 10px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 13px; line-height: 1.5; }
.pdv-taxa-info[hidden] { display: none; }
.pdv-taxa-info b { color: var(--fg); }
.pdv-taxa-info .bad { color: var(--accent); }
.pdv-cfg-sub { margin: 16px 0 2px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 420px) { .pdv-pag-campos.tres { grid-template-columns: 1fr; } }

/* ---------- PDV: maquininha Mercado Pago integrada (20261029h) ---------- */
.pdv-formas .pdv-forma-mp { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; text-align: left; }
.pdv-formas .pdv-forma-mp > span:first-child { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); }
.pdv-formas .pdv-forma-mp > span:last-child { flex: 1; min-width: 0; }
.pdv-formas .pdv-forma-mp[hidden] { display: none; }
/* celular: as maquininhas "em breve" (desativadas) empurravam o troco para fora da tela; lá elas não aparecem */
@media (max-width: 760px) { .pdv-formas .pdv-forma-mp.em-breve { display: none; } }
.pdv-formas .pdv-forma-mp.em-breve { opacity: .6; cursor: not-allowed; }
.pdv-formas .pdv-forma-mp.em-breve small { display: inline-block; margin-top: 2px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pdv-forma-mp small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.pdv-mp { text-align: center; }
.pdv-mp .pdv-pag-total { text-align: left; }
.pdv-mp .modal-foot { justify-content: center; flex-wrap: wrap; }
.pdv-mp-ic { width: 56px; height: 56px; margin: 4px auto 8px; display: grid; place-items: center; }
.pdv-mp-roda { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent); animation: pdvMpRoda 1s linear infinite; }
.pdv-mp-ic.bad .pdv-mp-roda { animation: none; border-color: var(--accent); }
@keyframes pdvMpRoda { to { transform: rotate(360deg); } }
.pdv-mp-st { margin: 8px 0 4px; color: var(--muted); font-size: 14px; line-height: 1.5; min-height: 2.6em; }
.pdv-selo-mp { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--good); border: 1px solid color-mix(in srgb, var(--good) 45%, var(--line)); }
.v-canal.mp { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, var(--line)); }
.pdv-rcol h4 small { font-weight: 500; color: var(--muted); font-size: 12px; }
.pdv-rcol-mp { grid-column: 1 / -1; }
.pdv-cfg-mp { display: grid; gap: 10px; margin-bottom: 8px; }
.pdv-mp-conta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pdv-mp-conta small { color: var(--muted); }
.pdv-mp-term { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.pdv-mp-sim { margin-top: 10px; display: grid; gap: 6px; }
.pdv-mp-lista .arow small { word-break: break-all; }
.pdv-cfg-mp > button { justify-self: start; }
/* demonstração: a maquininha DE MENTIRA aparece ao lado da cobrança */
.backdrop.com-maq { display: flex; flex-wrap: wrap; align-items: center; align-content: center; justify-content: center; gap: 16px; overflow-y: auto; }
.demo-maq { width: min(260px, 100%); padding: 14px; border-radius: 22px; background: #1d1d22; color: #f4f4f6; box-shadow: var(--shadow); font-size: 13px; }
.demo-maq-faixa { margin: -4px -4px 10px; padding: 5px 8px; border-radius: 10px; background: #ffd84d; color: #2a2100; font-weight: 800; font-size: 11px; letter-spacing: .03em; text-align: center; }
.demo-maq-tela { min-height: 110px; padding: 12px; border-radius: 12px; background: #f4f6f2; color: #16181a; display: grid; place-items: center; text-align: center; gap: 4px; }
.demo-maq-tela b { font-size: 24px; }
.demo-maq-tela small { color: #4a4f55; }
.demo-maq-tela b.msg { font-size: 17px; }
.demo-maq-bts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.demo-maq-bts button { min-height: 40px; border-radius: 10px; border: 0; font: inherit; font-weight: 700; cursor: pointer; background: #34343c; color: #fff; }
.demo-maq-bts button.ok { background: #1f8a4c; } .demo-maq-bts button.no { background: #b3261e; }
.demo-maq-bts button:disabled { opacity: .5; cursor: default; }
.demo-maq-bts button:focus-visible { outline: 3px solid #ffd84d; outline-offset: 2px; }
@media (max-width: 560px) { .demo-maq { order: -1; width: 100%; } .demo-maq-tela { min-height: 80px; } }

/* ===== Tabela que não cabe na largura: cada linha vira um cartão (app.js marca .tbl-cartoes) ===== */
.tbl-scroll table { min-width: 0; }
.tbl-scroll.tbl-cartoes { overflow-x: visible; border: 0; border-radius: 0; }
.tbl-cartoes table, .tbl-cartoes tbody, .tbl-cartoes tfoot { display: block; width: 100%; min-width: 0 !important; }
.tbl-cartoes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tbl-cartoes tr { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px 14px; align-items: start; padding: 10px 12px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.tbl-cartoes tbody tr:last-child { margin-bottom: 0; }
.tbl-cartoes td { display: block; padding: 0; border: 0 !important; white-space: normal; min-width: 0 !important; max-width: none; text-align: left !important; overflow-wrap: break-word; }
.tbl-cartoes td:first-child { grid-column: 1 / -1; }   /* nome do cliente/produto ocupa a linha toda: não parte no meio da palavra */
.tbl-cartoes td:empty { display: none; }
.tbl-cartoes td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.tbl-cartoes td[colspan], .tbl-cartoes td[data-label=""] { grid-column: 1 / -1; }
.tbl-cartoes td[data-label=""] { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.tbl-cartoes td[colspan] { justify-content: center; }
.tbl-cartoes tr.destaque { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tbl-cartoes tr.destaque > td { background: none; box-shadow: none; }
/* zerado/baixo: no cartão a faixa vai na borda do cartão (na 1ª célula ficava por cima do nome) */
.tbl-cartoes .est-table tr.est-zerado td:first-child, .tbl-cartoes .est-table tr.est-baixo td:first-child { box-shadow: none; }
.tbl-cartoes .est-table tr.est-zerado { box-shadow: inset 4px 0 0 var(--accent); }
.tbl-cartoes .est-table tr.est-baixo { box-shadow: inset 4px 0 0 var(--warn); }
.tbl-cartoes .pdv-canc { display: flex; flex-wrap: wrap; width: 100%; } .tbl-cartoes .pdv-canc .input { flex: 1 1 180px; width: auto; }

/* data de nascimento no cadastro: dia / mês / ano no mesmo visual dos campos */
.nasc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr) minmax(0, 1.3fr); gap: 8px; }
.ctl.sel { cursor: pointer; }
.ctl.sel::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.ctl select.nasc-s { flex: 1; min-width: 0; max-width: none; width: 100%; height: 100%; padding: 0 30px 0 12px; background: none; border: 0; border-radius: 10px; outline: 0; box-shadow: none; color: var(--fg); font: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; }
.ctl select.nasc-s.vazio { color: var(--muted); }
.ctl select.nasc-s option { background: var(--surface); color: var(--fg); }

/* pagamento do PDV: com muitas formas de pagamento, "Voltar" e "Finalizar venda" ficam sempre à vista no rodapé */
#pagForm > .modal-foot { position: sticky; bottom: -20px; z-index: 2; margin: 16px -20px -20px; padding: 12px 20px 20px; background: var(--surface); border-top: 1px solid var(--line); }

/* PDV: teclas de atalho nos botões — só no computador (mouse e teclado) */
.atalho, .pdv kbd.atalho { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .atalho, .pdv kbd.atalho { display: inline-flex; align-items: center; margin-left: 8px; padding: 1px 6px; border-radius: 5px; border: 1px solid currentColor; font: 600 11px/1.5 var(--font-body); opacity: .7; letter-spacing: .02em; background: transparent; color: inherit; min-width: 0; border-bottom-width: 1px; }
}

/* fechar caixa: aviso de pagamentos na maquininha sem venda (fica separado das mensagens de erro) */
.pdv-fechar-aviso { margin: 8px 0 0; color: var(--warn); font-weight: 600; }
.pdv-fechar-aviso:empty { display: none; }

/* Estoque e Loja no celular: cartão recolhido (nome + quantidade); tocar abre os detalhes e os botões */
@media (max-width: 760px) {
  .tbl-cartoes .est-table tbody tr[data-rid] { position: relative; cursor: pointer; }
  .tbl-cartoes .est-table tbody tr[data-rid]:not(.aberto) { padding-right: 40px; }
  .tbl-cartoes .est-table tbody tr[data-rid].aberto > td:first-child { grid-column: 1 / -1; padding-right: 28px; }
  .tbl-cartoes .est-table tbody tr[data-rid]:not(.aberto) { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .tbl-cartoes .est-table tbody tr[data-rid]:not(.aberto) > td:not(:nth-child(1)):not(:nth-child(3)) { display: none; }
  .tbl-cartoes .est-table tbody tr[data-rid] > td:first-child::before { display: none; }
  .tbl-cartoes .est-table tbody tr[data-rid]:not(.aberto) > td:nth-child(3) { text-align: right !important; }
  .tbl-cartoes .est-table tbody tr[data-rid]:not(.aberto) > td:nth-child(3)::before { display: none; }
  .tbl-cartoes .est-table tbody tr[data-rid]::after { content: ""; position: absolute; right: 16px; top: 22px; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
  .tbl-cartoes .est-table tbody tr[data-rid].aberto::after { transform: rotate(-135deg); top: 26px; }
}

/* Compare os planos no celular: o recurso em cima e os 3 planos lado a lado, cada um com só o nome do plano */
.tbl-cartoes #cmpTable tr { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; }
.tbl-cartoes #cmpTable td:first-child { grid-column: 1 / -1; width: auto; font-weight: 700; color: var(--text); }
.tbl-cartoes #cmpTable td:first-child::before { display: none; }
.tbl-cartoes #cmpTable td[data-plano] { text-align: center !important; overflow-wrap: normal; word-break: normal; hyphens: auto; font-size: 13px; }
.tbl-cartoes #cmpTable td[data-plano]::before { content: attr(data-plano); display: block; }
.tbl-cartoes #cmpTable td.hot { background: none; box-shadow: none; }

/* celular: o menu aberto fica na frente da faixa da demonstração e do roteiro (antes a faixa cobria "Visão geral") */
@media (max-width: 860px) {
  .app.open .scrim { z-index: 150; }
  .app.open .side { z-index: 155; }
}

/* demonstração: o aviso de cookies fica na frente do roteiro ("Entendi" sempre dá para tocar);
   no PDV do computador o roteiro vai para o canto esquerdo (à direita ficam desconto, total e Finalizar) */
.sd-cookies { z-index: 145; }
@media (min-width: 861px) {
  .pdv-body .demo-tour { right: auto; left: max(16px, env(safe-area-inset-left, 0px)); }
}

/* celular: no cartão aberto do Estoque e da Loja, os botões ficam maiores e com o nome (Entrada, Saída, Histórico...) */
@media (max-width: 760px) {
  .tbl-cartoes .est-table tbody tr[data-rid].aberto .acts { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
  .tbl-cartoes .est-table tbody tr[data-rid].aberto .mini[title] { display: inline-flex; align-items: center; width: auto; min-width: 44px; height: 40px; padding: 0 10px; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
  .tbl-cartoes .est-table tbody tr[data-rid].aberto .mini[title]::after { content: attr(title); }
}
/* nome comprido sem espaço não estica a tabela (senão ela vira cartões até no computador) */
.est-table td:first-child { overflow-wrap: anywhere; }
/* valor travado (vendedor: preço da Loja) com cara de travado */
#mValue[readonly], #mVendor[readonly] { background: var(--surface-2); cursor: not-allowed; }

/* "Excluir? Sim / Não" nos cartões do celular: ocupa a linha e com botões que dá para tocar */
.tbl-cartoes .conf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
.tbl-cartoes .conf button { min-width: 64px; min-height: 40px; padding: 0 14px; white-space: nowrap; }
/* com mais de 20.000 vendas e filtro ligado: aviso fixo embaixo dos cartões */
.kpi-corte { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--muted); }
/* celular: com uma janela aberta, os avisos sobem e não tapam Salvar e Cancelar */
@media (max-width: 760px) { body:has(.backdrop:not([hidden])) .toasts { bottom: 88px; } }
/* importação: aviso numa linha que entra (ex.: unidade não reconhecida) */
.imp-aviso { display: block; margin-top: 2px; font-size: 11.5px; color: var(--warn); white-space: normal; }
/* troco repetido no rodapé do pagamento (só no celular: a janela pode ficar maior que a tela com o teclado aberto) */
.pdv-troco-rod { display: none; }
@media (max-width: 760px) {
  .pdv-troco-rod:not(:empty) { display: flex; align-items: center; margin-right: auto; font-weight: 700; font-size: 15px; }
  .pdv-troco-rod.bad { color: var(--accent); }
  /* sino no celular: fica preso à tela (preso ao botão, saía pela esquerda e cortava o texto) */
  .sino-pop { position: fixed; z-index: 136; top: calc(env(safe-area-inset-top, 0px) + 64px); left: 12px; right: 12px; width: auto; max-height: min(70vh, calc(100dvh - 90px)); }
}
/* Agenda no celular: o título do mês encolhe (com reticências) e não cobre os botões « e » */
@media (max-width: 760px) {
  .ag-head .cal-nav { flex: none; position: relative; z-index: 1; }
  .ag-mwrap { min-width: 0; flex: 1 1 auto; }
  .ag-title { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
}
/* menu Caixa aberto (celular): as barras de baixo saem do caminho dos itens */
body.cx-menu-aberto #pdvMbar, body.cx-menu-aberto #demoTour { visibility: hidden; }
/* pagamento: o campo e o erro rolam para cima do rodapé fixo */
#pagForm .input, #pagErr, #pagForm .check-row { scroll-margin-bottom: 96px; }
/* "Baixar todos os meus dados": texto inteiro dentro do botão */
.pf-sup-acoes .ghost { height: auto; white-space: normal; text-align: left; }
/* celular não tem tecla Enter no texto do botão; a lista de vendas em cartões não ordena pelo título */
@media (max-width: 760px) { .so-pc { display: none; } .sales-ordem { display: none; } }
/* aviso de prejuízo (custo maior que o preço) embaixo do campo do preço */
.field .aviso-prej { color: var(--warn); font-weight: 600; }
/* "Fechar sem salvar?" no alto da janela (Voltar, Esc ou toque fora com algo digitado) */
.modal .descartar { margin-bottom: 14px; }
/* PDV: vendas guardadas sem internet */
#filaLista .arow small { display: block; }
#filaLista .arow small.bad { color: var(--accent); }

/* banca 13: notebook baixo (650 px de altura) — o rodapé da janela (Cancelar / Salvar) fica sempre à vista, como já era no Pagamento do PDV */
@media (max-height: 720px) {
  .modal > .modal-foot, .modal > form > .modal-foot { position: sticky; bottom: -20px; z-index: 2; margin: 16px -20px -20px; padding: 12px 20px 20px; background: var(--surface); border-top: 1px solid var(--line); }
  .pdv-cart { max-height: calc(100dvh - 130px); top: 66px; }
  .pdv-itens { min-height: 60px; }
}

/* ---------- Compras (04/11/2026) ---------- */
.cp-itens-wrap { margin-bottom: 8px; }
.cp-itens th, .cp-itens td { padding: 6px 6px; white-space: normal; }
.cp-itens td .input { height: 36px; min-width: 0; }
.cp-itens td select.input { min-width: 120px; }
.cp-itens td input.num { width: 96px; text-align: right; }
.cp-itens td .help-t { display: block; margin-top: 3px; }
.cp-itens-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cp-total b { font-family: var(--font-display); font-size: 20px; margin-left: 6px; }
.cp-det-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.cp-det-acts .help-t { flex-basis: 100%; }
.cp-table td.co small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; }
#cpForm .check-row small, #fiForm .check-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; }
.cp-table tr.cancelada td { color: var(--muted); }
.cp-table tr.cancelada td.num b { text-decoration: line-through; }
.tbl-cartoes .cp-itens tr { grid-template-columns: 1fr 1fr; }
.tbl-cartoes .cp-itens td[data-label=""] { justify-content: flex-end; }
/* ---------- Clientes e fiado (04/11/2026) ---------- */
.fi-kpis { margin-bottom: 16px; }
.fi-chk { padding: 8px 12px; align-items: center; height: 38px; font-size: 14px; }
.fi-chk .box { width: 20px; height: 20px; }
.fi-deve { color: var(--accent); }
.fi-cred { color: var(--good); }
.fi-table td .fi-receber { height: 32px; padding: 0 10px; font-size: 13px; }
.fi-table tr.fi-inativo td { color: var(--muted); }
.fi-table tr.fi-inativo td.co b { text-decoration: line-through; text-decoration-thickness: 1px; }
.fi-table td.co small, .fi-table td.num small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.fi-ext-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.fi-ext tr.cancelada td { color: var(--muted); }
.fi-ext tr.cancelada td:nth-child(3) { text-decoration: line-through; }
.fi-formas { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); margin-bottom: 4px; }
.fi-formas button { min-height: 52px; font-size: 13px; }
.pdv-formas .pdv-forma-fiado > span:first-child { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.pdv-freg-lista { display: flex; flex-direction: column; gap: 4px; margin: -4px 0 10px; }
.pdv-freg-lista[hidden] { display: none; }
.pdv-freg { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--fg); text-align: left; font: inherit; cursor: pointer; }
.pdv-freg:hover, .pdv-freg:focus-visible { border-color: var(--accent); outline: none; }
.pdv-freg b { font-size: 14px; }
.pdv-freg small { color: var(--muted); font-size: 12px; }
.pdv-freg-add { flex-direction: row; align-items: center; gap: 8px; color: var(--accent); }
.pdv-freg-add b { color: var(--fg); } .pdv-freg-add small { margin-left: auto; }
.pdv-freg-sel { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; line-height: 1.5; }
.pdv-freg-sel .pdv-pill { margin-right: 4px; gap: 4px; }
.pdv-freg-sel .link, .pdv-freg-sel .link:hover { margin-left: 4px; font-size: 13px; }
.pdv-freg-novo { margin: 0 0 10px; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; }
.pdv-freg-novo-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

/* ===== Relatório de produtos ===== */
.rp-tools { margin-bottom: 14px; }
.rp-per { min-width: 220px; }
.rp-per .lbl { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.rp-kpis { margin-bottom: 16px; }
.rp-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 14px; align-items: start; }
.rp-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rp-table td.co small, .rp-table td.num small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.rp-pos { display: inline-block; min-width: 26px; padding: 1px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; text-align: center; margin-right: 4px; }
.rp-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; align-items: end; height: 150px; padding-top: 6px; }
.rp-col { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; height: 100%; }
.rp-b { height: calc(100% - 18px); width: 100%; display: flex; align-items: flex-end; justify-content: center; }   /* altura fixa: a barra (em %) nunca passa do cartão */
.rp-b i { display: block; width: min(70%, 28px); border-radius: 6px 6px 2px 2px; background: var(--accent-soft); border: 1px solid var(--accent); min-height: 2px; }
.rp-col.rp-top .rp-b i { background: var(--accent-fill); }   /* "top" sozinho batia com a classe do cabeçalho do painel (fundo escuro na coluna) */
.rp-lab { font-size: 11px; color: var(--muted); white-space: nowrap; min-height: 14px; }
.rp-horas { gap: 3px; }
.rp-horas .rp-b i { width: 80%; border-radius: 4px 4px 1px 1px; }
@media (max-width: 860px) { .rp-grid { grid-template-columns: minmax(0, 1fr); } }
/* ===== Orçamentos ===== */
.or-table td.num small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.or-table td .fi-receber { height: 32px; padding: 0 10px; font-size: 13px; white-space: nowrap; }
.cp-itens-view th, .cp-itens-view td { padding: 8px 6px; }
.pdv-orc-info { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; background: var(--accent-soft); color: var(--fg); font-size: 13px; }
.pdv-orc-info span { flex: 1; min-width: 0; }
.pdv-orc-row .primary { height: 36px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
.pdv-cli-sug { margin-top: 4px; }
/* ===== Repor (Loja e Estoque) e aviso na Visão geral ===== */
.lj-repor-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.lj-repor-acts .help-t { flex: 1; min-width: 200px; }
.lj-repor-acts:empty { display: none; }
.today-strip.estoque-strip { margin-top: 10px; }
.today-strip.estoque-strip .ts-ic { color: var(--warn); background: color-mix(in srgb, var(--warn) 18%, transparent); }
.today-strip .primary { height: 38px; padding: 0 12px; font-size: 13px; }
@media (max-width: 760px) { .today-strip { flex-wrap: wrap; } .today-strip .ts-txt { flex-basis: calc(100% - 52px); } }
/* ===== Impressão do orçamento (painel e PDV) ===== */
@media print {
  body.orc-print > *:not(#orcCupom) { display: none !important; }
  body.orc-print #orcCupom { display: block !important; }
}

/* ---------- Pix com QR na tela do PDV, resumo do caixa, comissão da equipe e catálogo on-line (05/11/2026) ---------- */
.pdv-pix .pix-box { margin: 6px 0 10px; }
.pix-qr-svg { display: flex; align-items: center; justify-content: center; }
.pix-qr-svg svg { width: 100%; height: 100%; display: block; }
.pdv-resumo-txt { width: 100%; font-size: 12.5px; line-height: 1.45; resize: vertical; white-space: pre-wrap; margin: 8px 0 4px; }
.eq-vendas { margin-top: 14px; padding: 0; }
.eq-vendas-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px 0; }
.eq-vendas-top h2 { margin: 0; }
.eq-vendas-top h2 small { color: var(--muted); font-weight: 400; font-size: 12.5px; margin-left: 6px; text-transform: none; letter-spacing: 0; }
.eqv-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px 16px; }
.eqv-kpis > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.eqv-kpis small { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.eqv-kpis b { font-size: 18px; }
.eqv-tbl { width: 100%; }
.eqv-pct { width: 84px; text-align: right; padding: 6px 8px; height: 34px; }
.eq-vendas .fine { padding: 0 16px 14px; margin: 0; }
.ct-status { margin: 4px 0 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; word-break: break-all; }
.ct-slug { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ct-slug > span { color: var(--muted); font-size: 12.5px; word-break: break-all; }
.ct-slug .input { flex: 1; min-width: 160px; }
/* página pública do catálogo */
.ct-pg { max-width: 860px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 120px max(16px, env(safe-area-inset-left, 0px)); }
.ct-top { padding: 28px 0 10px; }
.ct-top .eyebrow { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.ct-top h1 { margin: 0; font-size: clamp(24px, 4vw, 34px); line-height: 1.1; }
.ct-top p { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }
.ct-tools { position: sticky; top: 64px; z-index: 5; background: var(--bg); padding: 10px 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
.ct-tools .search { flex: 1; min-width: 200px; }
.ct-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.ct-cats button { border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.ct-cats button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.ct-grupo h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; }
.ct-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ct-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.ct-item.off { opacity: .65; }
.ct-item .nm { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ct-item .nm b { font-size: 15px; }
.ct-item .nm small { color: var(--muted); display: block; font-size: 12px; }
.ct-item .pr { font-weight: 700; white-space: nowrap; }
.ct-qtd { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.ct-qtd button { min-width: 36px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-size: 16px; font-weight: 700; cursor: pointer; }
.ct-qtd b { min-width: 28px; text-align: center; }
.ct-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ct-bar .tot b { font-size: 18px; }
.ct-bar .tot small { display: block; color: var(--muted); font-size: 12px; }
.ct-vazio { padding: 60px 0; text-align: center; color: var(--muted); }
.ct-selo { margin-top: 30px; font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 560px) { .eqv-kpis { grid-template-columns: 1fr; } .ct-tools { top: 0; } }

/* banca 14 */
.eqv-kpis .fine { font-size: 11.5px; margin: 0; }
.eqv-aviso { display: flex; gap: 6px; align-items: flex-start; padding: 0 16px; color: var(--warn); }
.rp-base { margin: -6px 0 10px; }

.pdv-cli-nota { margin: 0; padding: 8px 10px; }

/* catálogo: com o pedido aberto, o aviso de cookies fica ACIMA da barra do pedido (cobria o "Pedir pelo WhatsApp") */
.ct-com-barra .sd-cookies { bottom: var(--ct-barra-h, 96px); }

/* ---------- novidades de novembro: meta do mês, fotos, pedido do catálogo, aniversários ---------- */
.meta-card { margin-bottom: 16px; padding: 14px 16px; }
.meta-topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.meta-topo b { display: block; font-size: 15px; }
.meta-topo small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.meta-barra { height: 10px; border-radius: 999px; background: var(--surface-2); margin-top: 12px; overflow: hidden; }
.meta-barra i { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .4s ease; }
.meta-barra.ok i { background: var(--ok, #1f9d55); }
.meta-form { margin-top: 12px; display: grid; gap: 6px; }
.meta-form label { font-size: 13px; font-weight: 600; }
.meta-form-l { display: flex; gap: 8px; flex-wrap: wrap; }
.meta-form-l .input { flex: 1 1 160px; min-width: 0; }
.fi-niver { color: var(--accent) !important; font-weight: 600; }
.fi-dica { display: block; flex-basis: 100%; margin-top: 4px; }
.lj-foto { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lj-foto img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.lj-foto-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lj-foto-arq { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lj-foto-arq:focus-visible + .lj-foto-btn { outline: 3px solid var(--accent); outline-offset: 2px; }
.lj-foto-btn { cursor: pointer; display: inline-flex; align-items: center; }
.field label.lj-foto-btn { font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--fg); }
.ct-item.com-foto { padding-top: 0; overflow: hidden; }
.ct-foto { display: block; width: calc(100% + 28px); max-width: none; margin: 0 -14px; aspect-ratio: 4 / 3; height: auto; object-fit: cover; background: var(--surface-2); }
.ct-pedir { width: 100%; display: grid; gap: 8px; }
.ct-pedir-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ct-pedir-campos label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.ct-pedir .err { margin: 0; min-height: 0; }
.ct-pedir-acts { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 520px) { .ct-pedir-campos { grid-template-columns: 1fr; } }

/* celular: botão do WhatsApp do cliente com rótulo curto (Cobrar, Parabéns...): o título inteiro não cabia e empurrava Receber e Editar para fora da tela */
@media (max-width: 760px) {
  .tbl-cartoes .est-table tbody tr[data-rid].aberto .mini[data-rot]::after { content: attr(data-rot); }
  .tbl-cartoes .est-table tbody tr[data-rid].aberto .acts { max-width: 100%; }
  .tbl-cartoes .est-table tbody tr[data-rid].aberto .acts > * { max-width: 100%; }
}
