/* =========================================================================
   Identidade A2M System: azul-marinho da marca + azul de destaque.
   ========================================================================= */
:root {
  color-scheme: light;
  --brand: #0e1a27;          /* azul-marinho da logo */
  --brand-2: #16263a;
  --brand-3: #1f3550;
  --brand-ink: #c8d3e2;
  --brand-muted: #7f90a8;
  --page: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --surface-3: #eef2f7;
  --ink: #0e1a27;
  --ink-2: #4b5a6e;
  --muted: #8592a6;
  --grid: #e7ebf1;
  --axis: #cfd6e0;
  --border: #e3e8ef;
  --accent: #2a78d6;
  --accent-soft: #e8f1fc;
  --accent-ink: #ffffff;
  --s1: #2a78d6;   /* seus sistemas */
  --s2: #eb6834;   /* A2M */
  --s3: #1baf7a;   /* lucro */
  --s4: #eda100;
  --s5: #6250d6;   /* funil */
  --good: #0ca30c; --good-ink: #067a06; --good-soft: #e7f6e7;
  --warn: #c98500; --warn-soft: #fdf3dc;
  --bad: #d03b3b;  --bad-soft: #fbeaea;
  --shadow-sm: 0 1px 2px rgba(14,26,39,.05);
  --shadow: 0 1px 2px rgba(14,26,39,.04), 0 6px 20px rgba(14,26,39,.06);
  --radius: 14px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: Jost, Inter, system-ui, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0b1118; --surface: #131c27; --surface-2: #18222f; --surface-3: #1d2836;
  --ink: #eef2f7; --ink-2: #b6c1d0; --muted: #7f8ea3; --grid: #223042; --axis: #2d3d52; --border: #223042;
  --accent: #3d8be6; --accent-soft: #16283f; --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #9085e9;
  --good-ink: #2fc02f; --good-soft: #13281a; --warn-soft: #2b2411; --bad-soft: #2d1616;
  --shadow-sm: none; --shadow: none;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #0b1118; --surface: #131c27; --surface-2: #18222f; --surface-3: #1d2836;
    --ink: #eef2f7; --ink-2: #b6c1d0; --muted: #7f8ea3; --grid: #223042; --axis: #2d3d52; --border: #223042;
    --accent: #3d8be6; --accent-soft: #16283f; --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #9085e9;
    --good-ink: #2fc02f; --good-soft: #13281a; --warn-soft: #2b2411; --bad-soft: #2d1616;
    --shadow-sm: none; --shadow: none;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.num, td.r { font-variant-numeric: tabular-nums; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 15px; height: 15px; }

/* ---------- marca ---------- */
.logo { display: flex; align-items: center; gap: 10px; }
.logo svg.mark { width: 34px; height: 21px; }
.logo .word { font-family: var(--font-brand); font-size: 22px; font-weight: 400; letter-spacing: 0; line-height: 1; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: var(--brand); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art .logo svg.mark { width: 52px; height: 32px; } .login-art .logo .word { font-size: 30px; }
.login-art .mark-big { position: absolute; right: -60px; bottom: -40px; width: 520px; opacity: .06; }
.login-art h2 { font-family: var(--font-brand); font-weight: 500; font-size: 34px; line-height: 1.15; margin: 0 0 12px; max-width: 460px; }
.login-art p { color: var(--brand-ink); max-width: 420px; margin: 0; }
.login-art ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: var(--brand-ink); }
.login-art li { display: flex; gap: 10px; align-items: center; }
.login-art li svg { color: #7fb4f0; }
.login-form { display: grid; place-items: center; padding: 32px 20px; }
.login-card { width: 100%; max-width: 380px; }
.login-card h1 { font-family: var(--font-brand); font-weight: 500; font-size: 28px; margin: 0 0 6px; }
.login-card > p { color: var(--ink-2); margin: 0 0 24px; }
.demo { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.demo-title { font-size: 12px; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.demo-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; margin-bottom: 8px; text-align: left; }
.demo-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.demo-btn small { display: block; color: var(--muted); }

/* ---------- formulários ---------- */
label.f, div.f { display: block; margin-bottom: 12px; }
div.f > .seg { display: flex; width: fit-content; max-width: 100%; }
label.f > span, div.f > span { display: block; font-size: 12px; font-weight: 500; color: var(--ink-2); margin-bottom: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=month], input[type=tel], input[type=time], input[type=search], select, textarea {
  width: 100%; height: 38px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 76px; padding: 9px 11px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; cursor: pointer; }
.hint { font-size: 12px; color: var(--muted); margin: -6px 0 12px; }

.btn { height: 38px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; font-weight: 500; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--surface-2); border-color: var(--axis); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-3); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent:hover { filter: brightness(1.06); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn.xs { height: 26px; padding: 0 8px; font-size: 12px; border-radius: 7px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.full { width: 100%; }
.btn.icon { width: 38px; padding: 0; }
.btn.icon.sm { width: 30px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--brand); color: var(--brand-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-top { padding: 20px 12px 14px 18px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-top .recolher { color: var(--brand-muted); }
.side-top .recolher:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-ctx { margin: 0 14px 10px; background: rgba(255,255,255,.06); border-radius: 11px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.side-ctx button { border: 0; background: transparent; color: var(--brand-ink); height: 32px; border-radius: 8px; cursor: pointer; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 6px; }
.side-ctx button.on { background: #fff; color: var(--brand); }
.side-ctx .dot { width: 7px; height: 7px; border-radius: 50%; }
.side-ctx-fixed { margin: 0 14px 10px; padding: 9px 12px; border-radius: 11px; background: rgba(255,255,255,.06); font-size: 12px; }
.side-ctx-fixed b { color: #fff; }
.nav { padding: 6px 10px 16px; flex: 1; }
.nav-sec { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-muted); padding: 14px 10px 6px; }
.nav button { width: 100%; border: 0; background: transparent; color: var(--brand-ink); display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; cursor: pointer; text-align: left; position: relative; }
.nav button:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav button.on { background: rgba(255,255,255,.10); color: #fff; font-weight: 600; }
.nav button.on::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #7fb4f0; }
.nav .count { margin-left: auto; background: var(--bad); color: #fff; font-size: 11px; font-weight: 600; border-radius: 99px; padding: 1px 7px; }
.nav .count.neutral { background: rgba(255,255,255,.14); }
.side-foot { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 10px; }
.side-foot b { color: #fff; display: block; font-size: 13px; }
.side-foot small { color: var(--brand-muted); font-size: 12px; }
.side-foot .btn { margin-left: auto; color: var(--brand-ink); }
.side-foot .btn:hover { background: rgba(255,255,255,.08); }

.topbar { height: 64px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 0 24px; position: sticky; top: 0; z-index: 20; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; min-width: 0; }
.crumbs b { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search { margin-left: auto; position: relative; width: 300px; }
.search input { padding-left: 36px; background: var(--surface-2); }
.search > svg { position: absolute; left: 11px; top: 10px; color: var(--muted); }
.search-res { position: absolute; top: 44px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 30; }
.search-res button { width: 100%; display: flex; gap: 10px; align-items: center; border: 0; background: transparent; padding: 8px; border-radius: 8px; cursor: pointer; text-align: left; }
.search-res button:hover { background: var(--surface-2); }
.search-res small { color: var(--muted); display: block; }
.top-actions { display: flex; gap: 8px; align-items: center; position: relative; }
.bell { position: relative; }
.bell .pip { position: absolute; top: 6px; right: 7px; min-width: 16px; height: 16px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--surface); }
.pop { position: absolute; right: 0; top: 46px; width: 340px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; z-index: 30; }
.pop h4 { margin: 6px 8px 8px; font-size: 13px; }
.pop .item { display: flex; gap: 10px; padding: 9px 8px; border-radius: 9px; cursor: pointer; }
.pop .item:hover { background: var(--surface-2); }
.pop .item small { display: block; color: var(--muted); }
.menu button { width: 100%; display: flex; gap: 10px; align-items: center; border: 0; background: transparent; padding: 9px 10px; border-radius: 9px; cursor: pointer; text-align: left; }
.menu button:hover { background: var(--surface-2); }

.main { min-width: 0; display: flex; flex-direction: column; }
.content { padding: 22px 24px 56px; max-width: 1480px; width: 100%; }
.proto { font-size: 12px; color: var(--ink-2); background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); border-radius: 10px; padding: 8px 12px; margin-bottom: 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.proto svg { color: var(--warn); }
.proto button { margin-left: auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--font-brand); font-weight: 500; font-size: 28px; margin: 0; letter-spacing: -.005em; line-height: 1.15; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- filtros estilo BI ---------- */
.slicers { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.slicer { display: flex; align-items: center; gap: 8px; }
.slicer > span { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; height: 30px; padding: 0 12px; border-radius: 8px; cursor: pointer; color: var(--ink-2); font-weight: 500; font-size: 13px; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(14,26,39,.12); font-weight: 600; }
.slicers select { height: 36px; width: auto; min-width: 150px; background: var(--surface-2); }
.slicers .sep { width: 1px; height: 26px; background: var(--border); }
.slicers .clear { margin-left: auto; }
.tag-filter { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; background: var(--accent-soft); color: var(--accent); padding: 4px 10px; border-radius: 99px; font-weight: 500; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-h h2 { font-size: 15px; margin: 0; font-weight: 600; }
.card-h p { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.g { display: grid; gap: 16px; }
.g-kpi { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mt { margin-top: 16px; }

.kpi { position: relative; overflow: hidden; padding: 16px 18px 14px; }
.kpi .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi .lbl { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.kpi .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.kpi .val { font-size: 25px; font-weight: 700; letter-spacing: -.02em; margin-top: 8px; white-space: nowrap; }
.kpi .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; min-height: 30px; }
.kpi .sub { font-size: 12px; color: var(--muted); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 99px; }
.delta.up { color: var(--good-ink); background: var(--good-soft); }
.delta.down { color: var(--bad); background: var(--bad-soft); }
.delta.flat { color: var(--ink-2); background: var(--surface-3); }
.spark { width: 92px; height: 30px; }

.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend i.ln { height: 3px; width: 14px; border-radius: 2px; vertical-align: 2px; }
.chart { position: relative; height: 290px; }
.chart.md { height: 240px; }
.chart.sm { height: 200px; }

.meter { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter > div { height: 100%; border-radius: 99px; background: var(--accent); }
.meter.thin { height: 6px; }
.stackbar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 2px; background: var(--surface); }
.stackbar > div { height: 100%; }
.meta-big { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.kv dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.alerts { display: grid; gap: 8px; }
.alert { display: flex; gap: 11px; align-items: flex-start; padding: 10px 12px; border-radius: 11px; background: var(--surface-2); cursor: pointer; border: 1px solid transparent; }
.alert:hover { border-color: var(--border); }
.alert .ai { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.alert b { display: block; font-size: 13px; }
.alert small { color: var(--muted); }
.alert.bad .ai { background: var(--bad-soft); color: var(--bad); }
.alert.warn .ai { background: var(--warn-soft); color: var(--warn); }
.alert.info .ai { background: var(--accent-soft); color: var(--accent); }

/* ---------- tabelas ---------- */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--grid); white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
td { padding: 11px 10px; border-bottom: 1px solid var(--grid); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; white-space: nowrap; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
tfoot td { font-weight: 700; border-top: 1px solid var(--axis); border-bottom: 0; }
.muted { color: var(--muted); } .small { font-size: 12px; } .ink2 { color: var(--ink-2); }
.cell-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-main b { display: block; font-weight: 600; }
.cell-main small { color: var(--muted); display: block; }

.av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12.5px; flex: none; letter-spacing: .02em; }
.av.round { border-radius: 50%; }
.av.sm { width: 26px; height: 26px; font-size: 10.5px; border-radius: 8px; }
.av.sm.round { border-radius: 50%; }
.av.lg { width: 52px; height: 52px; font-size: 17px; border-radius: 14px; }
.avs { display: flex; }
.avs .av { border: 2px solid var(--surface); margin-left: -6px; }
.avs .av:first-child { margin-left: 0; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.pill .d { width: 7px; height: 7px; border-radius: 50%; }
.pill.a2m { background: color-mix(in srgb, var(--s2) 12%, var(--surface)); color: color-mix(in srgb, var(--s2) 70%, var(--ink)); }
.pill.meu { background: color-mix(in srgb, var(--s1) 12%, var(--surface)); color: color-mix(in srgb, var(--s1) 70%, var(--ink)); }
.pill.good { background: var(--good-soft); color: var(--good-ink); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--accent-soft); color: var(--accent); }
.pill.demo { background: transparent; border: 1px dashed var(--axis); color: var(--muted); font-size: 11px; padding: 1px 7px; }
.st { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.st.ok { color: var(--good-ink); } .st.late { color: var(--bad); } .st.prev { color: var(--ink-2); }

/* ---------- projetos ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.pcard { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-2px); border-color: var(--axis); box-shadow: 0 2px 4px rgba(14,26,39,.05), 0 14px 32px rgba(14,26,39,.09); }
.pcard .band { height: 6px; }
.pcard .pc-body { padding: 16px 18px 14px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.pcard .pc-top { display: flex; gap: 12px; align-items: flex-start; }
.pcard .pc-top h3 { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.25; }
.pcard .pc-top .cli { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.pcard .pc-top .pills { margin-left: auto; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--grid); border-radius: 11px; overflow: hidden; }
.pc-stats > div { background: var(--surface-2); padding: 9px 10px; }
.pc-stats small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.pc-stats b { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-prog .lbls { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 18px; border-top: 1px solid var(--grid); background: var(--surface-2); font-size: 12.5px; color: var(--ink-2); }
.pc-foot .nx { display: flex; align-items: center; gap: 6px; min-width: 0; }
.donut-mini { width: 38px; height: 38px; }

.detail-hero { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px; }
.detail-hero .band { height: 8px; }
.detail-hero .dh-body { padding: 20px 22px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.detail-hero h1 { font-family: var(--font-brand); font-weight: 500; font-size: 26px; margin: 0; }
.detail-hero .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; align-items: center; color: var(--ink-2); font-size: 13px; }
.detail-hero .dh-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); padding: 0 22px; overflow-x: auto; }
.tabs button { border: 0; background: transparent; padding: 11px 12px; cursor: pointer; color: var(--ink-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--brand); font-weight: 600; }
.tabs .c { font-size: 11px; background: var(--surface-3); padding: 0 6px; border-radius: 99px; }

/* ---------- funil (kanban) ---------- */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kcol { background: var(--surface-3); border-radius: 14px; padding: 10px; min-height: 200px; transition: background .15s, outline-color .15s; outline: 2px dashed transparent; outline-offset: -2px; }
.kcol.over { background: var(--accent-soft); outline-color: var(--accent); }
.kcol-h { display: flex; align-items: center; gap: 8px; padding: 4px 4px 10px; }
.kcol-h b { font-size: 13px; }
.kcol-h .n { font-size: 11.5px; background: var(--surface); border-radius: 99px; padding: 0 7px; color: var(--ink-2); font-weight: 600; }
.kcol-h .tot { margin-left: auto; font-size: 12px; color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.kcol-bar { height: 3px; border-radius: 3px; margin: -4px 4px 10px; }
.kcard { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 9px; cursor: grab; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .1s; }
.kcard:hover { box-shadow: var(--shadow); }
.kcard.dragging { opacity: .5; transform: rotate(1.5deg); }
.kcard .kt { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.kcard .kc { font-size: 12px; color: var(--ink-2); margin: 3px 0 10px; display: flex; align-items: center; gap: 6px; }
.kcard .kempresa { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; min-width: 0; }
.kcard .kcoment { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.35; }
.kcard .kult { display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: var(--muted); margin: -4px 0 8px; }
/* ficha do lead */
.campo-destaque { font-size: 16px !important; font-weight: 600; }
.cli-fixo { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.seg.radio.canais { flex-wrap: wrap; }
.hist { display: grid; gap: 2px; margin-bottom: 12px; max-height: 240px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; padding: 6px; background: var(--surface-2); }
.hist-it { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 7px 6px; border-radius: 8px; }
.hist-it + .hist-it { border-top: 1px solid var(--grid); }
.hist-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.hist-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
details.mais { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-top: 4px; }
details.mais > summary { font-size: 13px; font-weight: 600; margin: 0; }
details.mais[open] > summary { margin-bottom: 10px; }
.kcard .kv2 { display: flex; gap: 12px; font-size: 12px; color: var(--ink-2); }
.kcard .kv2 b { color: var(--ink); font-variant-numeric: tabular-nums; }
.kcard .kacao { display: flex; gap: 6px; align-items: center; min-width: 0; border: 0; background: transparent; padding: 3px 6px; margin: -3px -6px; border-radius: 7px; color: inherit; font: inherit; text-align: left; }
.kcard button.kacao { cursor: pointer; }
.kcard button.kacao:hover { background: var(--accent-soft); color: var(--accent); }
.acao-efeito { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: 13px; }
.acao-efeito[hidden] { display: none; }
.acao-efeito svg { color: var(--accent); margin-top: 2px; }
.kcard.t-quente { box-shadow: inset 3px 0 0 #e5484d, var(--shadow-sm); }
.kcard.t-morno { box-shadow: inset 3px 0 0 #eda100, var(--shadow-sm); }
.kcard.t-frio { box-shadow: inset 3px 0 0 #3d8be6, var(--shadow-sm); }
/* temperatura do lead */
svg.chama { fill: currentColor; stroke: none; }
.fogo { border: 0; background: transparent; padding: 2px; border-radius: 7px; display: inline-flex; cursor: pointer; line-height: 0; }
span.fogo { cursor: default; }
button.fogo:hover { background: var(--surface-3); }
.fogo.vazio svg.chama { fill: none; stroke: var(--muted); stroke-width: 1.6; opacity: .55; }
.fogo.vazio:hover svg.chama { opacity: 1; }
.pill.lead { background: var(--surface-3); color: var(--ink-2); font-size: 10.5px; padding: 1px 7px; font-weight: 600; letter-spacing: .02em; }
.funil-filtro { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.funil-filtro .seg button { display: inline-flex; align-items: center; gap: 5px; }
.seg.radio { flex-wrap: wrap; }
.seg.radio label { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 8px; cursor: pointer; color: var(--ink-2); font-weight: 500; font-size: 13px; white-space: nowrap; }
.seg.radio label:hover { color: var(--ink); }
.seg.radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg.radio label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(14,26,39,.12); font-weight: 600; }
.seg.radio label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.seg.radio label.off { opacity: .45; cursor: not-allowed; }
.kcard .kf {display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--grid); font-size: 12px; color: var(--ink-2); gap: 8px; }
.prob { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.prob .meter { width: 54px; }
.funnel-row { display: grid; grid-template-columns: 120px 1fr 90px; gap: 10px; align-items: center; margin-bottom: 9px; font-size: 13px; }
.funnel-row .bar { height: 22px; border-radius: 6px; display: flex; align-items: center; padding: 0 8px; color: #fff; font-size: 11.5px; font-weight: 600; min-width: 2px; }

/* ---------- clientes ---------- */
.cli-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ccard { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.ccard:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(14,26,39,.09); }
.ccard .ch { display: flex; gap: 12px; align-items: center; }
.ccard h3 { margin: 0; font-size: 15.5px; }
.ccard .seg2 { font-size: 12.5px; color: var(--ink-2); }
.ccard .cs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 12px; }
.ccard .cs small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.ccard .cs b { font-size: 16px; font-variant-numeric: tabular-nums; }
.ccard .cf { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-2); padding-top: 12px; border-top: 1px solid var(--grid); }
.contact { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
.contact .ca { margin-left: auto; display: flex; gap: 6px; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--grid); }
.tl { position: relative; padding-bottom: 16px; }
.tl::before { content: ''; position: absolute; left: -20px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.tl.pay::before { border-color: var(--good); }
.tl b { font-size: 13px; } .tl small { color: var(--muted); display: block; }
.tl p { margin: 3px 0 0; color: var(--ink-2); font-size: 13px; }

/* ---------- tarefas e agenda ---------- */
.task { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-bottom: 8px; }
.task.done { opacity: .55; }
.task.done .tt { text-decoration: line-through; }
.task .cb { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--axis); display: grid; place-items: center; cursor: pointer; flex: none; background: var(--surface); }
.task .cb.on { background: var(--good); border-color: var(--good); color: #fff; }
.task .tt { font-weight: 600; font-size: 13.5px; }
.task .tm { font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; align-items: center; }
.task .tr { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--grid); gap: 1px; }
.cal .dow { background: var(--surface-2); font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; padding: 8px; text-align: center; }
.cal .day { background: var(--surface); min-height: 104px; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal .day.out { background: var(--surface-2); }
.cal .day.out .dn { color: var(--axis); }
.cal .dn { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 2px; }
.cal .day.today .dn { background: var(--brand); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.ev { font-size: 11px; padding: 2px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; border-left: 3px solid; }
.ev.t { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.ev.r { background: var(--good-soft); border-color: var(--good); color: var(--ink); }
.ev.c { background: var(--bad-soft); border-color: var(--bad); color: var(--ink); }
.ev.done { opacity: .5; text-decoration: line-through; }

/* ---------- contratos ---------- */
.doc { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; }
.doc .fi { width: 32px; height: 36px; border-radius: 6px; background: var(--bad-soft); color: var(--bad); display: grid; place-items: center; font-size: 9.5px; font-weight: 700; flex: none; }
.doc .fi.xls { background: var(--good-soft); color: var(--good-ink); }
.doc .fi.img { background: var(--accent-soft); color: var(--accent); }
.nf-row { display: flex; gap: 4px; }
.nf-row span { width: 20px; height: 20px; border-radius: 5px; font-size: 9.5px; display: grid; place-items: center; font-weight: 600; }
.nf-row .ok { background: var(--good-soft); color: var(--good-ink); }
.nf-row .no { background: var(--surface-3); color: var(--muted); }
.nf-row .pend { background: var(--warn-soft); color: var(--warn); }

/* ---------- admin ---------- */
.perm td { text-align: center; }
.perm td:first-child { text-align: left; }
.perm select { height: 32px; width: auto; min-width: 120px; }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(14,26,39,.45); backdrop-filter: blur(2px); display: grid; place-items: center; padding: 16px; z-index: 90; }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: 18px; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(14,26,39,.25); }
.modal .mh { padding: 18px 22px 0; display: flex; gap: 12px; align-items: flex-start; }
.modal .mh h2 { margin: 0; font-size: 18px; font-family: var(--font-brand); font-weight: 500; }
.modal .mh p { margin: 3px 0 0; color: var(--ink-2); font-size: 13px; }
.modal .mb { padding: 16px 22px; }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 18px 18px; position: sticky; bottom: 0; }
.calc { display: flex; justify-content: space-between; align-items: center; background: var(--accent-soft); color: var(--ink); border-radius: 10px; padding: 11px 13px; margin-bottom: 12px; font-weight: 600; }
.calc b { font-size: 17px; }
fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 12px 12px 2px; margin: 0 0 12px; }
legend { font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 0 6px; }
.preview { font-size: 12px; color: var(--ink-2); margin: -4px 0 12px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; padding: 11px 16px; border-radius: 11px; font-size: 13px; z-index: 60; display: flex; gap: 8px; align-items: center; box-shadow: 0 10px 30px rgba(14,26,39,.25); }
.empty { color: var(--muted); text-align: center; padding: 28px; }
.note-box { font-size: 13px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 11px 13px; display: flex; gap: 10px; }

/* ---------- indicadores clicáveis, DRE, detalhes ---------- */
.g-kpi6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpi.click { cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.kpi.click:hover { transform: translateY(-2px); border-color: var(--axis); box-shadow: 0 2px 4px rgba(14,26,39,.05), 0 12px 28px rgba(14,26,39,.09); }
.kpi .mais { font-size: 11.5px; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; opacity: .0; transition: opacity .15s; }
.kpi.click:hover .mais, .kpi.click:focus-visible .mais { opacity: 1; }
.kpi .val.neg { color: var(--bad); }
.dre { display: grid; gap: 2px; }
.dre .l { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; }
.dre .l span:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dre .l b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dre .l.menos b { color: var(--bad); }
.dre .l.sub { padding: 4px 10px 4px 28px; font-size: 12.5px; color: var(--ink-2); }
.dre .l.sub b { font-weight: 500; color: var(--ink-2); }
.dre .l.total { background: var(--surface-2); font-weight: 600; margin-top: 4px; }
.dre .l.final { background: color-mix(in srgb, var(--s3) 12%, var(--surface)); font-weight: 700; font-size: 15px; margin-top: 6px; }
.dre .l.final.neg { background: var(--bad-soft); }
.dre .l.click { cursor: pointer; } .dre .l.click:hover { background: var(--surface-3); }
.barlist { display: grid; gap: 10px; }
.barlist .br { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: 13px; align-items: center; }
.barlist .br .meter { grid-column: 1 / -1; height: 8px; }
.barlist .br b { font-variant-numeric: tabular-nums; }
.barlist .br.click { cursor: pointer; } .barlist .br.click:hover span { color: var(--accent); }
.modal.lg { max-width: 920px; }
.det-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.det-kpis > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 10px 12px; }
.det-kpis small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.det-kpis b { font-size: 17px; font-variant-numeric: tabular-nums; }
.det-h { font-size: 13px; font-weight: 600; margin: 18px 0 8px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.chart-hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* ---------- menu do usuário, ver como ---------- */
.me-btn { display: flex; align-items: center; gap: 8px; border: 1px solid transparent; background: transparent; border-radius: 10px; padding: 3px 6px 3px 3px; cursor: pointer; }
.me-btn:hover { background: var(--surface-2); border-color: var(--border); }
.me-btn .av { width: 32px; height: 32px; }
.pop .menu-h { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.pop .menu-h small { display: block; color: var(--muted); }
.vercomo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: color-mix(in srgb, var(--s5) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--s5) 35%, transparent); color: var(--ink); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; font-size: 13px; }
.vercomo svg { color: var(--s5); }
.vercomo .btn { margin-left: auto; }
.pcard .pc-edit { position: absolute; top: 14px; right: 12px; opacity: 0; transition: opacity .15s; background: var(--surface); }
.pcard { position: relative; }
.pcard:hover .pc-edit { opacity: 1; }
.burger, .mob-nav, .drawer-bg, .fab { display: none; }

/* ---------- menu lateral recolhido: só a marca e os ícones ---------- */
@media (min-width: 861px) {
  .shell.recolhido { grid-template-columns: 72px 1fr; }
  .shell.recolhido .side-top { flex-direction: column; padding: 20px 0 12px; gap: 14px; }
  .shell.recolhido .logo .word, .shell.recolhido .side .lbl { display: none; }
  .shell.recolhido .nav-sec { font-size: 0; padding: 0; height: 1px; margin: 10px 8px; background: rgba(255,255,255,.08); }
  .shell.recolhido .nav { padding: 0 12px 16px; }
  .shell.recolhido .nav button { justify-content: center; padding: 10px 0; }
  .shell.recolhido .nav button.on::before { left: -12px; }
  .shell.recolhido .nav .count { position: absolute; top: 2px; right: 2px; margin: 0; font-size: 10px; padding: 0 5px; }
  .shell.recolhido .side-ctx { grid-template-columns: 1fr; margin: 0 10px 8px; }
  .shell.recolhido .side-ctx button { height: 28px; font-size: 11.5px; gap: 4px; }
  .shell.recolhido .side-foot { flex-direction: column; padding: 12px 0; gap: 8px; }
  .shell.recolhido .side-foot .btn { margin-left: 0; }
}

/* ---------- chat ---------- */
[data-chat-badge][hidden] { display: none !important; }
.content:has(.chat) { padding-bottom: 22px; }
.chat { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100dvh - 64px - 44px); min-height: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.chat-lista { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; background: var(--surface-2); }
.chat-lista-h { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 16px 10px; }
.chat-lista-h h2 { margin: 0; font-size: 17px; }
#chat-lista { overflow-y: auto; padding: 0 8px 12px; flex: 1; }
.chat-sec { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 8px 6px; }
.chat-item { width: 100%; display: flex; gap: 10px; align-items: center; border: 0; background: transparent; padding: 9px 8px; border-radius: 10px; cursor: pointer; text-align: left; color: inherit; }
.chat-item:hover { background: var(--surface-3); }
.chat-item.on { background: var(--surface); box-shadow: var(--shadow-sm); outline: 1px solid var(--border); }
.ci-txt { flex: 1; min-width: 0; }
.ci-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ci-top b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-sub { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.ci-sub > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat .count, .ci-sub .count { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; flex: none; }
.av.chat-geral { background: var(--brand); color: #fff; }
.av-on { position: relative; display: inline-flex; flex: none; }
.av-on.on::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--good); border: 2px solid var(--surface-2); }
.chat-conversa { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--border); min-height: 62px; }
.chat-head b { font-size: 14.5px; }
.chat-head .on-txt { color: var(--good-ink); }
.chat-voltar { display: none; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; background: var(--page); }
.chat-dia { text-align: center; margin: 12px 0 8px; }
.chat-dia span { font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--border); padding: 3px 10px; border-radius: 99px; }
.msg { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; max-width: 78%; position: relative; }
.msg.junto { margin-top: 2px; }
.msg.minha { margin-left: auto; flex-direction: row-reverse; }
.av-esp { width: 26px; flex: none; }
.bolha { background: var(--surface); border: 1px solid var(--border); border-radius: 14px 14px 14px 4px; padding: 7px 11px 5px; min-width: 64px; box-shadow: var(--shadow-sm); }
.msg.junto .bolha { border-radius: 14px; }
.msg.minha .bolha { background: var(--accent); border-color: var(--accent); color: #fff; border-radius: 14px 14px 4px 14px; }
.msg.minha.junto .bolha { border-radius: 14px; }
.msg.enviando .bolha { opacity: .65; }
.bolha .quem { display: block; font-size: 12px; margin-bottom: 1px; }
.bolha .tx { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.bolha .tx a { color: inherit; text-decoration: underline; }
.bolha .hr { display: block; text-align: right; font-size: 10.5px; opacity: .65; margin-top: 2px; }
.msg-apagar { opacity: 0; align-self: center; color: var(--muted); }
.msg:hover .msg-apagar, .msg-apagar:focus-visible { opacity: 1; }
.chat-vazio { margin: auto; text-align: center; display: grid; gap: 6px; justify-items: center; color: var(--ink-2); max-width: 320px; }
.chat-vazio svg { width: 34px; height: 34px; color: var(--muted); }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-form textarea { flex: 1; resize: none; border: 1px solid var(--border); border-radius: 12px; padding: 9px 12px; background: var(--surface-2); line-height: 1.4; max-height: 140px; min-height: 40px; }
.chat-form textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); background: var(--surface); }
.chat-form .btn { height: 40px; width: 40px; flex: none; }
@media (max-width: 860px) {
  .chat { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 56px - 14px - 82px - env(safe-area-inset-bottom)); border-radius: 12px; }
  .chat.ver-lista .chat-conversa, .chat.ver-conversa .chat-lista { display: none; }
  .chat-lista { border-right: 0; }
  .chat-voltar { display: inline-flex; margin-left: -6px; }
  .chat-head { padding: 10px 12px; }
  .chat-msgs { padding: 10px 12px; }
  .msg { max-width: 88%; }
  .msg-apagar { opacity: .4; }
  .content:has(.chat) { padding-bottom: 82px; }
}

/* ---------- calendário (dia e semana) ---------- */
.calw { padding: 14px 14px 12px; }
.calw-topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.calw-nav { display: flex; align-items: center; gap: 6px; }
.calw-nav h2 { margin: 0 0 0 6px; font-size: 16px; }
.calw-rolo { overflow-x: auto; }
.calw-grade { --col: minmax(120px, 1fr); min-width: calc(52px + var(--dias) * 120px); }
.calw.dia .calw-grade { --col: minmax(0, 1fr); min-width: 0; }
.calw-cab, .calw-corpo { display: grid; grid-template-columns: 52px repeat(var(--dias), var(--col)); }
.calw-dia { border: 0; background: transparent; padding: 6px 4px 8px; display: grid; justify-items: center; gap: 1px; cursor: pointer; color: var(--ink-2); border-radius: 10px; }
.calw-dia:hover { background: var(--surface-2); }
.calw-dia span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.calw-dia b { font-size: 18px; color: var(--ink); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; }
.calw-dia.hoje b { background: var(--accent); color: #fff; }
.calw-canto { display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; font-size: 10.5px; }
.calw-cab.todo { border-top: 1px solid var(--grid); border-bottom: 1px solid var(--border); }
.calw-todo { padding: 4px; display: grid; gap: 3px; align-content: start; min-height: 30px; border-left: 1px solid var(--grid); }
.calw-chip { border: 0; text-align: left; font: inherit; font-size: 11.5px; padding: 3px 7px; border-radius: 6px; background: color-mix(in srgb, var(--cor, var(--accent)) 14%, var(--surface)); color: var(--ink);
  border-left: 3px solid var(--cor, var(--accent)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; display: flex; gap: 4px; align-items: center; }
.calw-chip.rec { --cor: var(--good); cursor: default; }
.calw-chip.feita, .calw-ev.feita { opacity: .5; text-decoration: line-through; }
.calw-horas > div { position: relative; }
.calw-horas span { position: absolute; top: -7px; right: 6px; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.calw-col { position: relative; border-left: 1px solid var(--grid); }
.calw-col.hoje { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.calw-slot { height: calc(52px / 2); border-top: 1px solid var(--grid); cursor: pointer; }
.calw-slot.meia { border-top-style: dashed; border-top-color: color-mix(in srgb, var(--grid) 60%, transparent); }
.calw-slot.fora { background: repeating-linear-gradient(-45deg, transparent 0 6px, color-mix(in srgb, var(--surface-3) 70%, transparent) 6px 7px); }
.calw-slot:hover { background: var(--accent-soft); }
.calw-ev { position: absolute; z-index: 2; border-radius: 8px; padding: 4px 7px; overflow: hidden; cursor: pointer; font-size: 12px; line-height: 1.3;
  background: color-mix(in srgb, var(--cor) 16%, var(--surface)); border-left: 3px solid var(--cor); box-shadow: var(--shadow-sm); display: grid; align-content: start; gap: 1px; }
.calw-ev:hover { box-shadow: var(--shadow); z-index: 3; }
.calw-ev b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 4px; align-items: center; }
.calw-ev span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
.calw-ev.curto { padding: 2px 6px; }
.calw-ev svg.i.sm { width: 12px; height: 12px; flex: none; }
.calw-agora { position: absolute; left: -4px; right: 0; height: 2px; background: var(--bad); z-index: 4; pointer-events: none; }
.calw-agora::before { content: ''; position: absolute; left: 0; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }
.notif-aviso { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.notif-aviso svg { color: var(--accent); }
.notif-aviso .btn.ghost { margin-left: 0; }

/* ---------- reuniões ---------- */
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger:hover { filter: brightness(.95); }
.rec-pilula { background: var(--bad-soft); color: var(--bad); border-color: transparent; font-weight: 700; font-variant-numeric: tabular-nums; }
.rec-banner { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.rec-banner svg { color: var(--bad); }
.reu-ag { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--grid); }
.reu-ag .dt { width: 54px; text-align: center; display: grid; font-size: 12px; color: var(--ink-2); }
.reu-ag .dt b { color: var(--ink); font-size: 13px; }
.reu-item { width: 100%; display: flex; gap: 12px; align-items: center; padding: 11px 6px; border: 0; border-top: 1px solid var(--grid); background: transparent; text-align: left; cursor: pointer; color: inherit; border-radius: 8px; }
.reu-item:hover { background: var(--surface-2); }
.reu-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.reu-ic.presencial { background: color-mix(in srgb, var(--s3) 14%, var(--surface)); color: var(--s3); }
.reu-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.reu-player { padding: 12px 16px; margin-bottom: 14px; }
.reu-player audio { width: 100%; }
.rec-card { min-width: 0; }
.rec-top { display: flex; align-items: center; gap: 12px; }
.rec-top .btn { margin-left: auto; }
.rec-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--muted); flex: none; }
.rec-dot.on { background: var(--bad); animation: pisca 1.2s ease-in-out infinite; }
@keyframes pisca { 50% { opacity: .35; } }
.rec-tempo { font-size: 30px; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.rec-niveis { display: grid; gap: 8px; margin-top: 14px; }
.nivel { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.nivel .meter > div { background: var(--good); transition: width .25s; }
.rec-status { margin-top: 12px; font-size: 13px; }
.rec-texto { max-height: 52vh; overflow-y: auto; display: grid; gap: 2px; padding-right: 4px; }
.rec-texto.alto { max-height: 70vh; }
.fala { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 6px 4px; border-radius: 8px; line-height: 1.45; }
.fala:hover { background: var(--surface-2); }
.fala-t { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; border: 0; background: transparent; text-align: left; font-family: inherit; }
button.fala-t { cursor: pointer; color: var(--accent); }
.fala-q { font-weight: 600; }
.fala.voce .fala-q { color: var(--accent); }
.fala.cliente .fala-q { color: var(--s2); }
.rec-notas { width: 100%; min-height: 240px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); resize: vertical; line-height: 1.45; }
.passo-ia { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.reu-resumo { width: 100%; min-height: 260px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); resize: vertical; line-height: 1.45; }
.reu-resumo-txt { white-space: pre-wrap; line-height: 1.5; font-size: 13.5px; }
.ia-lista { margin: 0; padding-left: 18px; display: grid; gap: 5px; line-height: 1.45; font-size: 13.5px; }
.ia-passos td { vertical-align: top; font-size: 13px; }
.ia-passos td:first-child { width: 60%; }
.dialogo { display: block; }
.fala-d { margin: 0 0 10px; line-height: 1.5; font-size: 13.5px; }
.fala-d b.a2m { color: var(--accent); }
.fala-d b.cli { color: var(--s2); }
details > summary { cursor: pointer; color: var(--ink-2); margin-bottom: 8px; }
@media (max-width: 860px) {
  .rec-tempo { font-size: 24px; }
  .rec-texto, .rec-texto.alto { max-height: none; }
  .rec-pilula { padding: 0 8px; }
}

/* ---------- instalação do aplicativo ---------- */
.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.passos li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.passos li svg { color: var(--accent); margin-top: 1px; }
@media (display-mode: standalone) { body { overscroll-behavior-y: none; } }

@media (max-width: 1400px) { .g-kpi6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1280px) { .g-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g-kpi > :first-child { grid-column: span 2; } }
@media (max-width: 1100px) {
  .g-21, .g-12, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search { width: 220px; }
}
/* ---------- celular: menu lateral deslizante + barra inferior ---------- */
@media (max-width: 860px) {
  .shell { display: block; }
  .side { position: fixed; top: 0; left: 0; bottom: 0; width: 286px; max-width: 86vw; height: 100%; z-index: 80; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 20px 0 60px rgba(0,0,0,.25); }
  .shell.menu-aberto .side { transform: none; }
  .drawer-bg { display: block; position: fixed; inset: 0; background: rgba(14,26,39,.5); z-index: 75; opacity: 0; pointer-events: none; transition: opacity .22s; }
  .shell.menu-aberto .drawer-bg { opacity: 1; pointer-events: auto; }
  .burger { display: inline-flex; }
  .side-top .recolher { display: none; }
  .topbar { height: 56px; padding: 0 10px; gap: 6px; }
  .topbar .crumbs .pill { display: none; }
  .topbar .crumbs > svg { display: none; }
  .topbar .btn.accent span, .topbar [data-act="tema"], .topbar [data-act="recarregar"] { display: none; }
  .topbar .btn.accent { width: 38px; padding: 0; }
  .me-btn .nm { display: none; }
  .search { display: none; }
  .pop { position: fixed; left: 10px; right: 10px; top: 60px; width: auto !important; max-height: 70vh; overflow: auto; }
  .content { padding: 14px 14px 92px; }
  .mob-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--surface); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(14,26,39,.06); }
  .mob-nav button { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 500; color: var(--muted); padding: 4px 2px; border-radius: 10px; cursor: pointer; position: relative; }
  .mob-nav button.on { color: var(--brand); font-weight: 700; }
  .mob-nav button.on svg { color: var(--accent); }
  .mob-nav .count { position: absolute; top: 0; right: 18%; background: var(--bad); color: #fff; font-size: 10px; border-radius: 99px; padding: 0 5px; font-weight: 700; }
  .page-head h1 { font-size: 24px; }
  .page-head { margin-bottom: 12px; }
  .slicers { padding: 8px; gap: 8px; }
  .slicer { flex-wrap: wrap; max-width: 100%; }
  .slicer > span { display: none; }
  .slicers .sep { display: none; }
  .seg { max-width: 100%; overflow-x: auto; }
  .g-kpi, .g-kpi6, .g-4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .g-2 { grid-template-columns: minmax(0, 1fr); }
  .modal .g-4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .g-kpi > :first-child { grid-column: auto; }
  .kpi { padding: 12px 13px; }
  .kpi .val { font-size: 18px; }
  .kpi .ico { width: 28px; height: 28px; }
  .kpi .mais { opacity: 1; }
  .spark { display: none; }
  .card { padding: 14px; }
  .chart { height: 240px; }
  .hide-sm { display: none; }
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 28px 22px; min-height: 240px; }
  .login-art h2 { font-size: 24px; }
  .login-art ul { display: none; }
  .row3 { grid-template-columns: 1fr; }
  .cal .day { min-height: 64px; }
  .cal .ev { font-size: 0; height: 6px; padding: 0; border-left-width: 6px; }
  .modal-bg { place-items: end center; padding: 0; }
  .modal, .modal.lg { max-width: 100%; border-radius: 18px 18px 0 0; max-height: 92vh; }
  .modal footer { border-radius: 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .detail-hero .dh-body { padding: 16px; }
  .detail-hero h1 { font-size: 22px; }
  .dh-actions { margin-left: 0 !important; width: 100%; }
  .kanban { grid-template-columns: repeat(5, minmax(78vw, 1fr)); scroll-snap-type: x mandatory; }
  .kcol { scroll-snap-align: start; }
  .pcard .pc-edit { opacity: 1; }
  .toast { bottom: 86px; }
}
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }

/* ---------- sistema real ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.toast.erro { background: var(--bad); }
.modal footer .btn.ghost[data-act^="excluir"], .modal footer .btn.ghost[data-act="remover-mensalidade"] { padding-left: 8px; }
label.btn { cursor: pointer; }

/* ---------- abas das telas agrupadas ---------- */
.page-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: -4px 0 18px; overflow-x: auto; }
.page-tabs button { border: 0; background: transparent; padding: 10px 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 14px; }
.page-tabs button:hover { color: var(--ink); }
.page-tabs button.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.tl-hoje td { background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 6px 10px; }
.socio-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--grid); }
.versao { border: 1px solid var(--border); border-radius: 11px; padding: 10px 12px; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; justify-content: space-between; font-size: 13px; }

/* gerador de contratos: quadro da assinatura */
.assin-pad { display: block; background: #fff; border: 1px dashed var(--border); border-radius: 10px; touch-action: none; width: 100%; height: 130px; cursor: crosshair; }
.assin-atual { display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin-bottom: 10px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.assin-atual img { height: 48px; max-width: 220px; object-fit: contain; }
.assin-atual .small { color: #5d6f6a; }
.cnpj-busca { display: flex; gap: 8px; }
.cnpj-busca input { flex: 1; min-width: 0; }
.cnpj-info { display: block; margin-top: 4px; font-size: 12px; min-height: 0; }
.cnpj-info.ok { color: var(--good-ink); }
.cnpj-info.alerta { color: var(--bad); }
.cli-falta { display: flex; align-items: center; gap: 8px; margin: 10px 0 2px; padding: 7px 10px; border-radius: 9px; background: var(--warn-soft); color: var(--ink-2); font-size: 12px; }
.cli-falta span { flex: 1; min-width: 0; }

/* =========================================================================
   Visual enxuto (nov/26): sem barra superior; Novo, busca, conta e alertas
   ficam no menu lateral. A barra de cima só aparece no celular.
   ========================================================================= */
.shell { --sw: 248px; }
.shell.recolhido { --sw: 72px; }
@media (min-width: 861px) { .topbar { display: none; } }
.side-acts { display: grid; gap: 8px; margin: 2px 14px 6px; }
.side-novo { justify-content: center; width: 100%; }
.side-busca { display: flex; align-items: center; gap: 8px; width: 100%; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: var(--brand-muted); border-radius: 9px; padding: 7px 10px; cursor: pointer; font-size: 13px; }
.side-busca:hover { color: #fff; background: rgba(255,255,255,.09); }
.side-busca kbd { margin-left: auto; font: 11px var(--font); border: 1px solid rgba(255,255,255,.14); border-radius: 5px; padding: 1px 5px; }
.side-foot { gap: 6px; padding: 10px 10px 12px; }
.side-foot .me-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: #fff; padding: 5px 6px; border-radius: 10px; cursor: pointer; text-align: left; }
.side-foot .me-btn:hover { background: rgba(255,255,255,.07); }
.side-foot .me-btn .lbl { min-width: 0; }
.side-foot .bell { margin-left: 0; color: var(--brand-ink); }
.side-foot .bell .pip { top: 2px; right: 2px; border-color: var(--brand); }
.side-pop { position: fixed; left: calc(var(--sw) + 10px); z-index: 70; max-height: calc(100vh - 24px); overflow: auto; }
.side-pop.topo { top: 92px; right: auto; }
.side-pop.base { bottom: 12px; top: auto; right: auto; }
.busca-pop { width: 420px; }
.busca-pop .search { margin: 0 0 6px; width: 100%; }
.busca-pop .search-res { position: static; border: 0; box-shadow: none; padding: 0; }
.busca-pop .empty { padding: 10px; }
.pop-sec { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 4px; }
.pop-sep { height: 1px; background: var(--grid); margin: 6px 4px; }
.topbar .bell .av { width: 30px; height: 30px; }
@media (min-width: 861px) {
  .shell.recolhido .side-acts { margin: 2px 12px 6px; }
  .shell.recolhido .side-novo { padding: 0; height: 36px; }
  .shell.recolhido .side-busca { justify-content: center; padding: 8px 0; }
  .shell.recolhido .side-foot .me-btn { flex: none; padding: 4px; }
}
@media (max-width: 860px) {
  .side-pop, .side-pop.topo, .side-pop.base { left: 10px; right: 10px; top: 60px; bottom: auto; width: auto !important; }
}

/* ---------- painel enxuto ---------- */
.ticker { background: var(--brand); color: #fff; border-radius: 14px; padding: 14px 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; }
.ticker > div { padding: 2px 18px; border-left: 1px solid rgba(255,255,255,.1); min-width: 0; }
.ticker > div:first-child { border-left: 0; padding-left: 2px; }
.tk-l { font-size: 11px; color: var(--brand-muted); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 3px 0 1px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-s { font-size: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--brand-ink); white-space: nowrap; min-height: 26px; }
.tk-s .spark { width: 70px; height: 24px; flex: none; }
.tk-s .up { color: #4ade80; } .tk-s .down { color: #f87171; }
.up { color: var(--good-ink); } .down { color: var(--bad); }
.painel-g { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: start; }
.painel-esq { gap: 14px; }
.chart.sm { height: 210px; }
.card.tight { padding: 12px 10px; } .card.tight .card-h { padding: 0 6px; margin-bottom: 4px; }
.watch td { white-space: nowrap; padding-top: 8px; padding-bottom: 8px; }
.watch .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.linha { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--grid); }
.card-h + .linha { border-top: 0; }
.linha.click { cursor: pointer; } .linha.click:hover { background: var(--surface-2); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 8px; }
.linha .t { flex: 1; min-width: 0; } .linha .t b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linha .t small { color: var(--muted); font-size: 11.5px; }
.linha.alerta { margin-top: 10px; border-top: 1px solid var(--grid); padding-top: 10px; }
.dia-box { width: 38px; flex: none; text-align: center; border-radius: 8px; background: var(--surface-2); padding: 3px 0; }
.dia-box b { display: block; font-size: 15px; line-height: 1.1; } .dia-box small { font-size: 10px; text-transform: uppercase; color: var(--muted); }
.sec-t { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin: 14px 0 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 1100px) { .painel-g { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .ticker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; padding: 12px; }
  .ticker > div:nth-child(3) { border-left: 0; padding-left: 2px; }
  .tk-v { font-size: 19px; } .tk-s .spark { display: none; }
}

/* ---------- clientes: lista + ficha única ---------- */
.cli-split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.cli-lista { padding: 10px; position: sticky; top: 16px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.cli-lista-topo { display: flex; gap: 8px; margin-bottom: 8px; } .cli-lista-topo .search { margin: 0; width: auto; flex: 1; }
.cli-filtros { margin-bottom: 6px; width: 100%; overflow-x: auto; } .cli-filtros button { flex: 1; white-space: nowrap; padding-left: 7px; padding-right: 7px; font-size: 12px; }
.cli-itens { overflow: auto; margin: 0 -4px; padding: 0 4px; }
.cli-it { width: 100%; display: flex; gap: 10px; align-items: center; border: 0; background: transparent; padding: 8px; border-radius: 10px; cursor: pointer; text-align: left; }
.cli-it:hover { background: var(--surface-2); } .cli-it.on { background: var(--accent-soft); }
.cli-it .t { flex: 1; min-width: 0; } .cli-it b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cli-it small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.dot-bad { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); flex: none; }
.ficha { padding: 18px 20px; }
.ficha-voltar { display: none; margin-bottom: 8px; }
.ficha-topo { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--grid); flex-wrap: wrap; }
.ficha-nome { flex: 1; min-width: 200px; } .ficha-nome h1 { font-family: var(--font-brand); font-weight: 500; font-size: 24px; margin: 0; line-height: 1.15; }
.ficha-nome .meta { color: var(--ink-2); font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 3px; }
.ficha-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 4px; }
.ficha-nums > div { background: var(--surface-2); border-radius: 10px; padding: 9px 12px; }
.ficha-nums small { display: block; font-size: 11.5px; color: var(--muted); } .ficha-nums b { font-size: 17px; font-variant-numeric: tabular-nums; }
.ficha .watch td:first-child { white-space: normal; }
.ficha .tbl-wrap { overflow-x: auto; }
.ficha-g { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); gap: 24px; }
.ficha .sec-t { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.ficha .sec-t a { text-transform: none; letter-spacing: 0; font-size: 12px; }
.ficha-kv { grid-template-columns: 104px minmax(0, 1fr); gap: 5px 10px; font-size: 12.5px; }
.ficha-kv dd { text-align: left; font-weight: 500; overflow-wrap: anywhere; } .ficha-kv dd.falta { color: var(--bad); font-weight: 600; }
.linha-tempo > div { position: relative; padding: 0 0 9px 22px; font-size: 12.5px; }
.linha-tempo > div::before { content: ''; position: absolute; left: 3px; top: 5px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); background: var(--surface); }
.linha-tempo > div.pay::before { border-color: var(--good); }
.linha-tempo > div::after { content: ''; position: absolute; left: 7px; top: 17px; bottom: 0; width: 2px; background: var(--grid); }
.linha-tempo > div:last-child::after { display: none; }
.linha-tempo small { color: var(--muted); } .linha-tempo p { margin: 1px 0 0; color: var(--ink-2); }
@media (max-width: 1100px) { .ficha-g { grid-template-columns: minmax(0, 1fr); gap: 0; } }
@media (max-width: 860px) {
  .cli-split { grid-template-columns: minmax(0, 1fr); }
  .cli-lista { position: static; max-height: none; }
  .cli-split.ver-ficha .cli-lista, .cli-split:not(.ver-ficha) .ficha { display: none; }
  .ficha-voltar { display: inline-flex; }
  .ficha-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.topbar .top-actions { margin-left: auto; }
.ev.r.prev { background: transparent; border: 1px dashed var(--good); border-left-width: 3px; }
.ev.r.pago { font-weight: 600; }
.calw-chip.rec:not(.pago) { background: transparent; border: 1px dashed var(--good); border-left: 3px solid var(--good); }
.calw-chip.rec.pago { font-weight: 600; }

/* ---------- comercial ---------- */
.kanban.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.temp-barra { display: inline-block; width: 4px; height: 13px; border-radius: 2px; background: var(--c); margin-right: 6px; vertical-align: -2px; }
.kcard.t-quente { border-left: 3px solid #e5484d; } .kcard.t-morno { border-left: 3px solid #eda100; } .kcard.t-frio { border-left: 3px solid #3d8be6; }
@media (max-width: 860px) { .kanban.k4 { grid-template-columns: repeat(4, minmax(78vw, 1fr)); } }

/* ---------- chat em tela cheia ---------- */
@media (min-width: 861px) {
  .content:has(.chat) { padding: 0; max-width: none; }
  .chat { height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
}

.barra-rec { display: flex; align-items: center; gap: 8px; min-width: 130px; } .barra-rec .meter { flex: 1; }

/* ---------- configurações ---------- */
.cfg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.cfg-it { display: flex; gap: 12px; align-items: center; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.cfg-it:hover { border-color: var(--accent); }
.cfg-it > span:nth-child(2) { flex: 1; min-width: 0; } .cfg-it b { display: block; } .cfg-it small { color: var(--muted); font-size: 12px; }
.cfg-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.watch tr.sel td { background: var(--accent-soft); }

/* ---------- link de divulgação no topo do painel do representante ---------- */
.link-rep { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 14px; flex-wrap: wrap; box-shadow: var(--shadow-sm); }
.link-rep .t { flex: 1; min-width: 220px; } .link-rep small { display: block; color: var(--muted); font-size: 11.5px; }
.link-rep .t b { font: 600 14px ui-monospace, Menlo, Consolas, monospace; color: var(--accent); word-break: break-all; }
.link-rep select { width: auto; min-width: 130px; padding-top: 6px; padding-bottom: 6px; }
@media (max-width: 860px) { .link-rep .btn { flex: 1; justify-content: center; } .link-rep select { flex-basis: 100%; } }

/* ---------- agenda: horário livre verde, representante roxo, equipe "ocupado" ---------- */
.calw-slot.livre { background: color-mix(in srgb, var(--good) 9%, transparent); }
.calw-slot.livre:hover { background: color-mix(in srgb, var(--good) 22%, transparent); }
.calw-ev.ocupado { cursor: default; background: repeating-linear-gradient(-45deg, color-mix(in srgb, #94a3b8 18%, var(--surface)) 0 6px, color-mix(in srgb, #94a3b8 30%, var(--surface)) 6px 9px); color: var(--ink-2); }
.calw-ev.do-rep { background: color-mix(in srgb, #9333ea 16%, var(--surface)); }
.rep-tag { font-style: normal; font-size: 9.5px; font-weight: 700; color: #fff; background: #9333ea; border-radius: 4px; padding: 0 4px; flex: none; }
.cal .ev.ocupado { background: repeating-linear-gradient(-45deg, var(--surface-2) 0 5px, var(--surface-3) 5px 8px); color: var(--muted); cursor: default; }
.cal .ev.do-rep { background: color-mix(in srgb, #9333ea 14%, var(--surface)); }

/* painel: agenda da semana */
.semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.sem-dia { display: flex; flex-direction: column; gap: 4px; min-height: 150px; padding: 8px 6px; border-radius: 10px; background: var(--surface-2); border: 1px solid transparent; min-width: 0; }
.sem-dia.hoje { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.sem-dia.fds { opacity: .8; }
.sem-h { display: flex; align-items: baseline; gap: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 2px; }
.sem-h b { font-size: 15px; color: var(--ink); letter-spacing: 0; }
.sem-dia.hoje .sem-h b { color: var(--accent); }
.sem-novo { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 2px; line-height: 1; }
.sem-novo:hover { color: var(--accent); }
.sem-ev { font-size: 11.5px; line-height: 1.3; padding: 4px 6px; border-radius: 6px; background: var(--surface); border-left: 3px solid var(--c); cursor: pointer; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; word-break: break-word; }
.sem-ev b { display: block; font-size: 10.5px; color: var(--c); font-weight: 700; }
.sem-ev.feita { opacity: .5; text-decoration: line-through; }
.sem-ev:hover { box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.sem-mais { font-size: 11px; color: var(--accent); cursor: pointer; padding: 0 4px; }
.sem-vazio { font-size: 11px; color: var(--muted); padding: 2px 4px; }
@media (max-width: 700px) {
  .semana { grid-template-columns: minmax(0, 1fr); }
  .sem-dia { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sem-h { width: 100%; }
  .sem-ev { flex: 1 1 140px; }
}
/* painel: frase do dia */
.frase-dia { position: relative; padding: 22px 24px 18px 56px; }
.frase-dia .aspas { position: absolute; left: 18px; top: 6px; font: 700 54px/1 Georgia, serif; color: var(--accent); opacity: .35; }
.frase-dia blockquote { margin: 0; font-size: 17px; line-height: 1.5; font-weight: 500; color: var(--ink); text-wrap: pretty; }
.frase-dia cite { display: block; margin-top: 8px; font-style: normal; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.frase-dia cite::before { content: '— '; }
.frase-dia small { display: block; margin-top: 10px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
/* projeto: linha do tempo dos recebimentos */
.tl-card { margin-bottom: 16px; }
.tl-ano { display: flex; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: thin; }
.tl-pt { position: relative; flex: 1 0 92px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.tl-pt::before { content: ''; position: absolute; top: calc(1.3em + 13px); left: -50%; right: 50%; height: 2px; background: var(--axis); }
.tl-pt:first-child::before { display: none; }
.tl-pt.ok::before { background: var(--good); }
.tl-pt b { font-size: 13px; white-space: nowrap; }
.tl-pt small { font-size: 11.5px; color: var(--muted); text-transform: capitalize; }
.tl-dot { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--axis); background: var(--surface); }
.tl-pt.ok .tl-dot { background: var(--good); border-color: var(--good); }
.tl-pt.late .tl-dot { border-color: var(--bad); }
.tl-pt.late b { color: var(--bad); }
.tl-pt.agora small { color: var(--accent); font-weight: 700; }
.tl-pt.agora .tl-dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.tl-lg { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--axis); background: var(--surface); vertical-align: -1px; }
.tl-lg.ok { background: var(--good); border-color: var(--good); }
.tl-lg.late { border-color: var(--bad); }
.tk-s > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tk-s b { color: #fff; font-weight: 600; }
@media (max-width: 700px) {
  .sem-dia.vazio { flex-wrap: nowrap; padding: 6px 8px; }
  .sem-dia.vazio .sem-h { width: auto; flex: 1; margin: 0; }
  .sem-dia.vazio .sem-vazio { order: -1; display: none; }
  .sem-dia.vazio .sem-h::after { content: 'livre'; margin-left: 8px; font-size: 11px; text-transform: none; letter-spacing: 0; color: var(--muted); }
}
@media (max-width: 700px) { .sem-dia.vazio .sem-h::after { order: 1; } .sem-dia.vazio .sem-novo { order: 2; } }

/* ---------- olho (mostrar/ocultar valores) e canal Comercial ---------- */
.side-olho { display: flex; align-items: center; gap: 8px; width: 100%; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: var(--brand-ink); border-radius: 9px; padding: 7px 10px; cursor: pointer; font-size: 13px; }
.side-olho:hover { color: #fff; background: rgba(255,255,255,.09); }
.side-olho.aberto { color: #fbbf24; border-color: rgba(251,191,36,.35); }
@media (min-width: 861px) { .shell.recolhido .side-olho { justify-content: center; padding: 8px 0; } }
.chat-geral.comercial { background: #9333ea; }

/* ---------- comercial em listas compactas ---------- */
.klista .kcol { padding: 10px 8px; }
.krow { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 8px 9px; margin-bottom: 6px; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.krow:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.krow.dragging { opacity: .5; }
.krow .temp-barra { height: 26px; margin: 0; flex: none; }
.krow .t { flex: 1; min-width: 0; } .krow .t b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.krow .t small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.krow > svg { color: var(--muted); flex: none; }
.kdata { font-size: 11px; color: var(--ink-2); background: var(--surface-3); border-radius: 6px; padding: 1px 6px; white-space: nowrap; flex: none; }
.kdata.late { background: var(--bad-soft); color: var(--bad); font-weight: 600; }
.det-opp dd .pill { margin-right: 4px; }

/* ---------- modal do dia ---------- */
.cal .day { cursor: pointer; } .cal .day:hover { background: var(--accent-soft); }
.hora-dia { font-variant-numeric: tabular-nums; font-size: 13px; min-width: 42px; }
[data-modal-dia] .linha .cb { flex: none; }

/* ---------- afazeres e caixinha de concluir fora da lista de tarefas ---------- */
.linha .cb { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--axis); display: grid; place-items: center; cursor: pointer; flex: none; background: var(--surface); }
.linha .cb.on { background: var(--good); border-color: var(--good); color: #fff; }
.linha .cb:hover { border-color: var(--good); }
.afazeres .sec-t.down { color: var(--bad); }
.afazer .t.click { cursor: pointer; } .afazer .t svg.i.sm { width: 12px; height: 12px; vertical-align: -2px; }
.sem-data { border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; gap: 4px; align-items: baseline; color: inherit; font: inherit; }
.sem-data:hover b { color: var(--accent); }
/* Projetos em três fases */
.kanban.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .kanban.k3 { grid-template-columns: repeat(3, minmax(78vw, 1fr)); } }
.fluxo-dica { font-size: 12.5px; color: var(--muted); margin: 14px 2px 10px; }
.krow .kdata { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.modal footer { flex-wrap: wrap; }
/* ficha do cliente enxuta */
.ficha details.dobra { border-top: 1px solid var(--border); margin-top: 14px; }
.ficha details.dobra > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 12px 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.ficha details.dobra > summary::-webkit-details-marker { display: none; }
.ficha details.dobra > summary::after { content: '▸'; color: var(--muted); }
.ficha details.dobra[open] > summary::after { content: '▾'; }
/* olho junto dos valores */
.olho { display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; border-radius: 99px; padding: 2px 9px 2px 7px; font-size: 11px; text-transform: none; letter-spacing: 0; margin-left: 8px; vertical-align: middle; cursor: pointer; font-weight: 500; }
.olho:hover { background: rgba(255,255,255,.16); }
.olho.aberto { color: #fbbf24; border-color: rgba(251,191,36,.4); }
.olho.claro { border-color: var(--border); background: var(--surface); color: var(--ink-2); margin-left: 0; padding: 6px 12px 6px 10px; font-size: 12.5px; border-radius: 9px; }
.olho.claro.aberto { color: var(--warn); border-color: var(--warn); }
.tk-l:has(.olho) { display: flex; align-items: center; gap: 6px; }
.tk-l-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tk-l .olho { flex: none; margin-left: auto; }
@media (max-width: 860px) { .tk-l .olho { padding: 3px 6px; } .tk-l .olho span { display: none; } }
/* Financeiro · Mensalidades */
.acts-linha { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.leg-mm { display: flex; gap: 12px; font-size: 12px; color: var(--ink-2); }
.leg-mm span { display: inline-flex; align-items: center; gap: 5px; }
.leg-mm .mm { width: 18px; height: 18px; border-radius: 5px; }
.mm { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; border: 1.5px solid transparent; background: none; padding: 0; color: inherit; }
button.mm:not([disabled]) { cursor: pointer; } button.mm:not([disabled]):hover { box-shadow: 0 0 0 2px var(--accent); }
.mm.ok { background: var(--good-soft); color: var(--good-ink, var(--good)); }
.mm.late { background: var(--bad-soft); color: var(--bad); }
.mm.prev { border: 1.5px dashed var(--axis); }
.mm.na { color: var(--axis); }
.grade-mm { width: 100%; border-collapse: collapse; font-size: 13px; }
.grade-mm th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 8px 4px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.grade-mm td { padding: 7px 4px; border-bottom: 1px solid var(--grid); white-space: nowrap; font-variant-numeric: tabular-nums; }
.grade-mm .r { text-align: right; } .grade-mm .c { text-align: center; }
.grade-mm .agora { background: var(--accent-soft); }
.grade-mm td.cli { min-width: 190px; } .grade-mm td.cli small { display: block; color: var(--muted); font-size: 11.5px; }
.grade-mm tfoot td { font-weight: 600; border-bottom: 0; color: var(--ink-2); font-size: 11px; }
/* Agenda operacional: Gantt dos projetos */
.seg-modo button.on { background: var(--accent); color: #fff; }
.gantt-card { margin-bottom: 14px; }
.gantt { overflow-x: auto; }
.g-in { min-width: 720px; }
.g-head, .g-row { display: grid; grid-template-columns: 200px 1fr; align-items: center; }
.g-meses { display: grid; grid-template-columns: repeat(3, 1fr); }
.g-meses span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 6px; border-left: 1px solid var(--grid); }
.g-corpo { position: relative; }
.g-row { border-top: 1px solid var(--grid); min-height: 48px; }
.g-nm { padding: 6px 10px 6px 0; min-width: 0; }
.g-nm b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-nm small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-track { position: relative; height: 48px; background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px); background-size: calc(100% / 3) 100%; }
.g-bar { position: absolute; top: 12px; height: 24px; border-radius: 7px; color: #fff; font-size: 11.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; padding: 0 8px; white-space: nowrap; overflow: hidden; cursor: pointer; }
.g-bar.dev { background: var(--s1); } .g-bar.imp { background: var(--s5); }
.g-bar.sem { background: repeating-linear-gradient(135deg, var(--surface-3) 0 8px, var(--surface-2) 8px 16px); color: var(--ink-2); border: 1px dashed var(--axis); }
.g-bar.late { box-shadow: 0 0 0 2px var(--bad); }
.g-bar .fim { margin-left: auto; font-weight: 500; opacity: .95; }
.g-mk { position: absolute; top: 8px; width: 3px; height: 32px; border-radius: 2px; background: var(--warn); transform: translateX(-50%); }
.g-mk.ok { background: var(--good); }
.g-dot { position: absolute; top: 17px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--good); transform: translateX(-50%); }
.g-hoje-wrap { position: absolute; top: 0; bottom: 0; left: 200px; right: 0; pointer-events: none; }
.g-hoje { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--bad); }
.legend .lg-mk { width: 3px !important; height: 12px !important; background: var(--warn); border-radius: 2px; }
.legend .lg-dot { border: 2px solid var(--good); background: transparent !important; border-radius: 50% !important; }
/* projeto: prazo, etapas e pagamentos */
.prazo-g { margin-bottom: 16px; }
.prazo-bar { height: 10px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.prazo-bar > div { height: 100%; background: var(--s1); border-radius: 99px; }
.prazo-bar.late > div { background: var(--bad); }
.prazo-bar.fino { height: 5px; margin-top: 7px; }
.fileira-pg { display: flex; gap: 10px; flex-wrap: wrap; }
.fileira-pg .pg { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.fileira-pg small { font-size: 11px; color: var(--muted); }
.linha .cb { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--axis); background: var(--surface); display: grid; place-items: center; padding: 0; flex: none; cursor: pointer; color: #fff; }
.linha .cb.on { background: var(--good); border-color: var(--good); }
/* Projetos: andamento sem valores */
.proj-kan { align-items: start; }
.pcard2 { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 11px; margin-bottom: 8px; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.pcard2:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.pcard2.lead { border-style: dashed; }
.pc2-t { display: flex; align-items: center; gap: 7px; } .pc2-t b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard2 > small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc2-p { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-2); margin-top: 8px; min-height: 22px; }
.pcard2 .avs { display: flex; } .pcard2 .avs .av { width: 22px; height: 22px; font-size: 9px; margin-left: -5px; border: 2px solid var(--surface); } .pcard2 .avs .av:first-child { margin-left: 0; }
.concluidos { margin-top: 16px; } .concluidos summary { cursor: pointer; font-weight: 600; color: var(--ink-2); padding: 6px 0; }
.concl-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 8px; }
.concl-g .pcard2 { margin: 0; }
/* Clientes: barra de clientes no topo e ficha na página inteira */
.cli-pagina { display: flex; flex-direction: column; gap: 14px; }
.cli-topo { display: flex; flex-direction: column; gap: 10px; }
.cli-topo-l { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cli-topo-l .search { margin: 0; width: 280px; max-width: 100%; }
.cli-bar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.cli-chip { flex: none; display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 5px 12px 5px 5px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--ink); }
.cli-chip:hover { border-color: var(--accent); }
.cli-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.cli-chip .av { width: 26px; height: 26px; font-size: 10px; border-radius: 8px; }
.cli-chip .dot-bad { position: static; }
.cli-chip.add { color: var(--accent); padding: 5px 12px; }
.cli-pagina .ficha-voltar { display: none !important; }
/* Lembretes */
.lem-g { align-items: start; }
.lem-novo { display: flex; flex-direction: column; gap: 12px; }
.lem-novo h2 { margin: 0; font-size: 15px; }
.lem-novo input[type=text] { font-size: 15px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.chips button { border: 1px solid var(--border); background: var(--surface); border-radius: 99px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; color: var(--ink); }
.chips button.on, .chip-data.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.chip-data { border: 1px solid var(--border); background: var(--surface); border-radius: 99px; padding: 4px 10px; font-size: 12.5px; color: var(--ink-2); width: auto; }
.lem-rodape { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 12px; }
.lem-rodape .small { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.hora-lem { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 2px 7px; flex: none; font-variant-numeric: tabular-nums; }
.hora-lem.late { color: var(--bad); background: var(--bad-soft); }
.lem-novo .chips input.chip-data { width: auto; flex: none; height: 31px; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; }
.cli-topo .cli-filtros { width: auto; display: inline-flex; flex: none; }
.cli-topo .cli-filtros button { flex: none; padding: 6px 12px; }
.pc2-t .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
/* lembrete: escolher quem recebe */
.para-chips .chips-sep { width: 1px; height: 20px; background: var(--border); margin: 0 2px; }
.para-chips button.pessoa { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 3px; }
.av.xs { width: 22px; height: 22px; font-size: 9.5px; flex: none; }
/* Documentos */
.doc-rapido { margin-bottom: 14px; }
.doc-rapido .sec-t span { display: inline-flex; align-items: center; gap: 6px; }
.doc-fixos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.doc-fixo { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; cursor: pointer; min-width: 0; color: var(--ink); }
.doc-fixo:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.doc-fixo span { min-width: 0; } .doc-fixo b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .doc-fixo small { color: var(--muted); font-size: 11.5px; }
.doc-card { position: relative; transition: box-shadow .15s, border-color .15s; }
.doc-card.soltando, .cli-docs.soltando { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.doc-topo { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.doc-topo .search { margin: 0; max-width: 420px; }
.doc-topo .chips .muted { font-weight: 400; margin-left: 2px; }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--grid); }
.doc-row:first-of-type { border-top: 0; }
.doc-row .t { flex: 1; min-width: 0; } .doc-row .t b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-row .t small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-acts { display: flex; gap: 2px; flex: none; }
.doc-acts .fixo { color: var(--warn); }
.doc-acts .fixo svg { fill: currentColor; }
.doc-ic { width: 36px; height: 36px; border-radius: 9px; flex: none; display: grid; place-items: center; font-size: 10px; font-weight: 700; letter-spacing: .02em; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.doc-drop-dica { margin-top: 10px; border: 1.5px dashed var(--axis); border-radius: 10px; padding: 12px; text-align: center; font-size: 12.5px; color: var(--muted); }
.doc-card.soltando .doc-drop-dica { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.cli-docs { border: 1px solid transparent; border-radius: 10px; }
.sec-acts { font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.link-btn { color: var(--accent); cursor: pointer; }
@media (max-width: 860px) { .doc-topo .search, .cli-topo-l .search { display: flex; width: 100%; max-width: none; } }
/* itens adicionais do projeto */
.itens-card { margin-bottom: 16px; }
.item-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--grid); }
.item-row.principal { border-top: 0; }
.item-row.enc { opacity: .6; }
.item-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.item-row.principal .item-ic { background: var(--surface-3); color: var(--ink-2); }
.item-row .t { flex: 1; min-width: 0; } .item-row .t b { font-size: 13.5px; } .item-row .t small { display: block; color: var(--muted); font-size: 12px; }
.item-st { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; } .item-st small { font-size: 11.5px; color: var(--muted); }
.item-esp { width: 28px; flex: none; }
.itens-tot { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; font-size: 13px; color: var(--ink-2); }
.itens-tot b { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.vida-proj { margin-bottom: 8px; } .vida-proj .krow { margin-bottom: 0; }
.vida-itens { margin: 0 0 0 14px; border-left: 2px solid var(--grid); padding: 4px 0 2px 12px; }
.vida-item { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 3px 0; color: var(--ink-2); }
.vida-item small { color: var(--muted); white-space: nowrap; }
@media (max-width: 860px) { .tk-s { white-space: normal; } .tk-s > span { overflow: visible; } }
