/* Tela de entrada, cadastro e criação da empresa */
body.pre-auth > *:not(#auth) { display: none !important; }
#auth[hidden] { display: none; }
#auth { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); color: var(--ink); }
.au-card { width: min(100%, 400px); display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px 20px; }
.au-brand { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.au-sub { margin: 0; color: var(--muted); }
.au-form { display: flex; flex-direction: column; gap: 12px; }
.au-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; }
.au-form input { font: inherit; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); min-height: 44px; }
.au-form input:focus-visible, .au-btn:focus-visible, .au-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.au-btn { font: inherit; font-weight: 600; min-height: 46px; border-radius: 8px; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.au-btn[disabled] { opacity: .6; cursor: wait; }
.au-link { font: inherit; background: none; border: 0; padding: 8px 0; color: var(--accent); text-decoration: underline; cursor: pointer; text-align: left; }
.au-msg { margin: 0; padding: 10px 12px; border-radius: 8px; background: #FBE4E2; color: #7A1C14; }
.au-msg.ok { background: var(--good-soft); color: var(--good); }
.au-hint { margin: 0; font-size: 13px; color: var(--muted); }
body.real .sample { display: block; }
body.real .sample.save-err { color: var(--bad); cursor: pointer; }
body.real .simbar, body.real #simNote, body.real .drawer-foot .lbl, body.real #asUser, body.real .drawer-foot > p.muted { display: none !important; }
.logout-btn { margin-top: 8px; }
.au-pw { position: relative; display: block; }
.au-pw input { width: 100%; box-sizing: border-box; padding-right: 48px; }
.au-eye { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; }
.au-eye:hover, .au-eye[aria-pressed="true"] { color: var(--accent); }
.au-eye:focus-visible { outline: 3px solid var(--accent); outline-offset: -2px; }

/* Painel master */
#auth.au-wide { place-items: start center; padding: 16px; }
.mp { width: min(100%, 1000px); display: flex; flex-direction: column; gap: 14px; }
.mp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.mp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mp-tabs { display: flex; gap: 4px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; align-self: flex-start; }
.mp-tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 8px; font-weight: 600; color: var(--muted); min-height: 40px; }
.mp-tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.mp-bar { display: flex; flex-direction: column; gap: 10px; }
.mp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mp-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.mp-main { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.mp-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px 16px; margin: 0; }
.mp-meta dt { font-size: 12px; color: var(--muted); }
.mp-meta dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.mp-edit { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.mp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.mp-grid label, .mp-feat { display: flex; flex-direction: column; gap: 4px; font-weight: 500; min-width: 0; }
.mp-wide { grid-column: 1 / -1; }
.mp-edit input:not([type="checkbox"]), .mp-edit select, .mp-edit textarea { font: inherit; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); min-height: 40px; width: 100%; min-width: 0; }
.mp-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.mp-feats { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mp-feat { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; align-items: center; gap: 10px; }
.mp-feat .muted { display: block; font-weight: 400; font-size: 12px; }
.mp-check { display: flex; flex-direction: row !important; gap: 8px; align-items: flex-start; }
.mp-hint { margin: 0; min-height: 1em; }
@media (max-width: 640px) { .mp-feat { grid-template-columns: 1fr; } }
.mp .pill.good { color: var(--good); border-color: var(--good); background: var(--good-soft); }
.mp .pill.warn { background: #FFF1D6; color: #5C3B00; border-color: #E3B35A; }
.mp .pill.bad { background: #FBE4E2; color: #7A1C14; border-color: #B3261E; }
.mp .pill.info { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

/* Aviso de acesso (teste, atraso, modo suporte) */
.a-banner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); border: 1px solid var(--line); }
.a-banner[hidden] { display: none; }
.a-banner.warn { background: #FFF1D6; color: #5C3B00; }
.a-banner.support { background: #EDE7FA; color: #3F2A86; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 5px 12px; display: block; text-align: center; }
.a-banner button { margin-left: auto; }

/* Recursos desligados no plano */
body.nf-funil #tab-funil, body.nf-automacoes #tab-auto, body.nf-chatbot #tab-chatbot, body.nf-chat_interno #tab-interno,
body.nf-chat_interno .bottombar [data-tab="interno"], body.nf-mensagens_rapidas #tab-respostas,
body:not(.real) #tab-assinatura, body:not(.real) #tab-relatorios, body.nf-ia #tab-ia, body.nf-ia #aiBtn, body:not(.real) #tab-ia, body:not(.real) #aiBtn, body:not(.real) #aiNote,
body.nf-importacao [data-ct="imp-open"], body.nf-importacao [data-ct="flds-open"] { display: none !important; }
.mp-life { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.mp-cred { background: var(--au-field, #f4f6f8); border: 1px solid var(--au-line, #d5dbe1); border-radius: 8px; padding: 12px; white-space: pre-wrap; word-break: break-all; font: 14px/1.5 ui-monospace, Menlo, Consolas, monospace; margin: 10px 0; user-select: all; }

.pill.pend { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.mfail { color: var(--bad); font-weight: 600; }
.meta .link { font-size: inherit; }
body.support-ro .composer { opacity: .6; }

/* Painel master no celular: tudo cabe na largura da tela */
#auth.au-wide { grid-template-columns: minmax(0, 1fr); overflow-x: hidden; }
.mp { min-width: 0; max-width: 100%; }
.mp-bar, .mp-bar > * { min-width: 0; max-width: 100%; }
.mp .chips { flex-wrap: wrap; overflow: visible; }
.mp-tabs { max-width: 100%; flex-wrap: wrap; }
@media (max-width: 640px) {
  #auth.au-wide { padding: 10px; }
  .mp { gap: 10px; font-size: 14px; }
  .mp .au-brand { font-size: 22px; }
  .mp-head .btn-sm, .mp-actions .btn-sm { padding: 6px 10px; font-size: 13px; min-height: 34px; }
  .mp-tabs button { padding: 6px 10px; font-size: 14px; min-height: 36px; }
  .mp-card { padding: 10px; }
  .mp-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; font-size: 14px; }
  .mp .chip { padding: 4px 9px; font-size: 12px; }
}
.mp-name{color:inherit;text-decoration:none}.mp-name:hover{text-decoration:underline}

/* Clientes (painel NexSync) */
.mp-form { display: flex; flex-direction: column; gap: 10px; }
.mp-form label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted, #64748b); flex: 1; min-width: 0; }
.mp-form input:not([type="checkbox"]), .mp-form select, .mp-form textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; font: inherit; }
.mp-form .mp-row { justify-content: flex-start; align-items: flex-end; }
.mp-form .mp-row[hidden] { display: none; }
.mp-card form.mp-row { align-items: center; }
.mp-card form.mp-row input, .mp-card form.mp-row select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; font: inherit; max-width: 100%; }

/* Produtos, planos, extras e cobrança única (Painel NexSync) */
.pr-card.off { opacity: .6; }
.pr-kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.pr-kpis li { background: var(--bg, #f6f7f9); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; min-width: 0; }
.pr-kpis li b { font-size: 1.05rem; overflow-wrap: anywhere; }
.pr-kpis li span { font-size: .75rem; color: var(--muted, #667); }
.pr-kpis li.pr-bad b { color: var(--bad, #b42318); }
.pr-total { font-weight: 700; }
.pr-tabs, .pr-h { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pr-xl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.pr-xl li { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.pr-xs { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.pr-xs legend { font-size: .85rem; padding: 0 4px; }
.pr-group { border-left: 4px solid var(--accent, #2563eb); }
.pr-consol { gap: 8px; }

/* ===== Menu fixo do Painel (mesmo estilo da barra do CRM) ===== */
.mp { padding-top: 58px; }
.mp-top { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--line); min-height: 48px; }
.mp-brand { font-weight: 800; font-size: 15px; color: var(--ink); margin-right: 8px; white-space: nowrap; }
.mp-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.mp-top .tn-item { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--muted); white-space: nowrap; cursor: pointer; min-height: 34px; }
.mp-top .tn-item:hover { background: var(--surface-2); color: var(--ink); }
.mp-top .tn-item[aria-current="true"] { color: var(--accent); background: var(--accent-soft); }
.mp-top .tn-group { position: relative; }
.mp-top .tn-menu { display: none; position: absolute; top: calc(100% + 4px); left: 0; min-width: 220px; max-height: 70vh; overflow: auto; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(15, 30, 50, .16); flex-direction: column; gap: 2px; }
.mp-top .tn-group.open .tn-menu { display: flex; }
.mp-top .tn-sub { text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--ink); cursor: pointer; }
.mp-top .tn-sub:hover { background: var(--surface-2); }
.mp-top .tn-sub[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.mp-top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.mp-who { font-size: 12px; color: var(--muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .mp { padding-top: 96px; }
  .mp-top { flex-wrap: wrap; padding: 6px 10px; gap: 4px; }
  .mp-who { display: none; }
  .mp-nav { order: 3; width: 100%; }
  .mp-top .tn-menu { position: fixed; left: 10px; right: 10px; top: 92px; min-width: 0; }
}

/* barra: logo + NexSync + Painel; conteúdo alinhado à esquerda */
.mp-top-logo { height: 26px; width: auto; max-width: 90px; object-fit: contain; margin-right: 2px; }
.mp-brand-sub { font-weight: 600; color: var(--muted); }
#auth.au-wide { place-items: start stretch; }
.mp { width: 100%; max-width: none; margin: 0; }   /* painéis ocupam a tela toda (sem faixa estreita) */
/* Clientes: barra de ferramentas */
.cl-tool { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cl-tool .search { flex: 0 1 400px; width: 400px; max-width: 100%; min-width: 0; }
.cl-new { width: auto; flex: 0 0 auto; white-space: nowrap; }
.cl-fgrp { position: relative; }
.cl-fbtn { display: inline-flex; align-items: center; gap: 6px; }
.cl-fcur { font-size: 12px; font-weight: 600; color: var(--accent); }
.cl-fmenu { display: none; position: absolute; right: 0; top: calc(100% + 4px); z-index: 40; min-width: 230px; max-height: 70vh; overflow: auto; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(15, 30, 50, .16); flex-direction: column; gap: 2px; }
.cl-fgrp.open .cl-fmenu { display: flex; }
.cl-fmenu button { display: flex; justify-content: space-between; gap: 12px; text-align: left; border: 0; background: transparent; padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.cl-fmenu button:hover { background: var(--surface-2); }
.cl-fmenu button[aria-current="true"] { background: var(--accent-soft); color: var(--accent); }
.cl-n { color: var(--muted); font-weight: 600; }

.cl-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 0; }
@media (max-width: 640px) { .cl-right { margin-left: 0; width: 100%; } .cl-tool .search { flex: 1 1 auto; width: auto; } }

.mp-top .tn-add { border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; color: var(--accent); }

/* portal: empresa atual em destaque e troca de empresa */
.mk-cur { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 12px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent); }
.mk-cur-l { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.mk-cur-n { font-size: 20px; color: var(--ink); }
.mk-swconf { margin: 12px 0; padding: 14px 16px; border-radius: 12px; border: 1px solid #e0a800; background: #fff8e1; color: #3a2e00; }
.mk-iscur { border-color: var(--accent); }
.mk-pick-h { margin: 0 0 4px; }

/* ===== Painel NexSync: menu lateral sempre visível (verde claro, da família do verde do logo) ===== */
.mp-shell {
  --accent: #23814F; --accent-ink: #FFFFFF; --accent-soft: #DDF1E5;
  --sn-bg: #EAF5EE; --sn-line: #D2E5D9; --sn-hover: #DDEEE3; --sn-active: #CBE8D6; --sn-ink: #1F4631; --sn-muted: #5E7266;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mp-shell {
  --accent: #5CC58C; --accent-ink: #0C1A12; --accent-soft: #1F3A2A;
  --sn-bg: #16241C; --sn-line: #22372B; --sn-hover: #1E3226; --sn-active: #27422F; --sn-ink: #CFE8D8; --sn-muted: #98AEA1; } }
:root[data-theme="dark"] .mp-shell {
  --accent: #5CC58C; --accent-ink: #0C1A12; --accent-soft: #1F3A2A;
  --sn-bg: #16241C; --sn-line: #22372B; --sn-hover: #1E3226; --sn-active: #27422F; --sn-ink: #CFE8D8; --sn-muted: #98AEA1; }
#auth.au-wide:has(> .mp-shell) { padding: 0; }
.mp.mp-shell { padding-top: 0; display: block; min-height: 100vh; }
.mp-side { position: fixed; z-index: 70; top: 0; bottom: 0; left: 0; width: 244px; display: flex; flex-direction: column; gap: 14px; padding: 18px 12px 12px; background: var(--sn-bg); border-right: 1px solid var(--sn-line); }
.mp-pane { margin-left: 244px; min-width: 0; display: flex; flex-direction: column; }
.sn-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 8px 0; }
.sn-logo { width: 100%; max-width: 200px; height: auto; display: block; mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sn-logo { mix-blend-mode: normal; background: #fff; border-radius: 10px; padding: 6px 8px; } }
:root[data-theme="dark"] .sn-logo { mix-blend-mode: normal; background: #fff; border-radius: 10px; padding: 6px 8px; }
.sn-brand span { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sn-muted); }
.sn-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; overflow: auto; }
.sn-it { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; color: var(--sn-ink); padding: 9px 10px; border-radius: 9px; font: inherit; font-weight: 550; min-height: 38px; cursor: pointer; }
.sn-it:hover { background: var(--sn-hover); }
.sn-it[aria-current="page"] { background: var(--sn-active); font-weight: 650; }
.sn-it .i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sn-it .chev { margin-left: auto; width: 16px; height: 16px; transition: transform .15s; }
.sn-it[aria-expanded="true"] .chev { transform: rotate(180deg); }
.sn-sub { display: none; flex-direction: column; gap: 1px; margin: 2px 0 6px 18px; padding-left: 10px; border-left: 2px solid var(--sn-line); }
.sn-sub.open { display: flex; }
.sn-s { padding: 6px 10px; min-height: 32px; font-weight: 500; font-size: 13.5px; color: var(--sn-muted); }
.sn-s[aria-current="page"] { color: var(--sn-ink); }
.sn-add { color: var(--accent); }
.sn-foot { border-top: 1px solid var(--sn-line); padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.sn-foot .sn-it { color: var(--sn-muted); font-weight: 500; font-size: 13.5px; }
.mp-bar2 { display: flex; align-items: center; gap: 12px; padding: 10px 24px; min-height: 56px; }
.mp-bar2 .mp-top-r { margin-left: auto; }
.mp-av { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.mp-burger { display: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 38px; height: 38px; border-radius: 9px; place-items: center; cursor: pointer; }
.mp-burger .i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; }
.mp-content { padding: 0 24px 32px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mp-pane > .au-msg { margin: 0 24px 12px; }
.mp-scrim { display: none; }
.pr-home-h { align-items: center; }
.pr-title { margin: 0; font: 700 30px/1.1 var(--f-display); letter-spacing: -.015em; }
.pr-th { margin: 0 0 12px; font: 650 17px/1.2 var(--f-display); }
.pr-tcard { padding: 16px 14px; }
.pr-tw { overflow-x: auto; }
.pr-table { width: 100%; min-width: 860px; border-collapse: collapse; }
.pr-table th { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 9px 6px; background: var(--surface-2); text-align: center; line-height: 1.25; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.pr-table th.wr { white-space: normal; min-width: 78px; }

.pr-table td { padding: 12px 6px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; vertical-align: middle; }
.pr-table tr:last-child td { border-bottom: 0; }
.pr-table th.l, .pr-table td.l { text-align: left; }
.pr-table td.act { text-align: right; } .pr-table .ac { display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; }
.pr-table tr.off { opacity: .6; }
.pr-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: 10px; }
.pr-badt { color: var(--bad, #b42318); font-weight: 700; }
.pr-table .pill.warn { background: #FCEBC8; color: #8A5A00; display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 600; }
@media (max-width: 820px) {
  .mp-side { transform: translateX(-100%); transition: transform .18s; }
  .mp-shell.menu .mp-side { transform: none; box-shadow: 8px 0 30px rgba(0,0,0,.18); }
  .mp-shell.menu .mp-scrim { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.35); }
  .mp-pane { margin-left: 0; }
  .mp-burger { display: grid; }
  .mp-bar2 { padding: 8px 16px; } .mp-content { padding: 0 16px 24px; } .mp-pane > .au-msg { margin: 0 16px 12px; }
  .pr-title { font-size: 26px; } .mp-who { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mp-side, .sn-it .chev { transition: none; } }

/* ---- Clientes: lista em tabela + ficha em página ---- */
.cl-tool { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 10px; }
.cl-find { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.cl-find .search { flex: 1 1 240px; min-width: 180px; }
.cl-sel { min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.cl-chips { display: flex; gap: 6px; flex-wrap: wrap; position: sticky; top: 0; z-index: 30; background: var(--bg); padding: 10px 0; }
.cl-chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; min-height: 36px; cursor: pointer; }
.cl-chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cl-n { font-weight: 500; opacity: .75; margin-left: 4px; }
.cl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cl-tbl { width: 100%; min-width: 860px; border-collapse: collapse; }
.cl-tbl th { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 10px 8px; background: var(--surface-2); text-align: left; white-space: nowrap; }
.cl-tbl td { padding: 12px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.cl-tbl .ce { text-align: center; }
.cl-row { cursor: pointer; }
.cl-row:hover { background: var(--surface-2); }
.cl-name { display: flex; flex-direction: column; gap: 2px; }
.cl-lk { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer; }
.cl-lk:hover { text-decoration: underline; }
.cl-no { color: var(--muted); }
.cl-cnt { display: inline-block; min-width: 24px; padding: 2px 8px; border-radius: 999px; background: #FCEBC8; color: #8A5A00; font-weight: 700; }
.cl-go { color: var(--muted); font-size: 20px; width: 24px; }
.cl-ficha { display: flex; flex-direction: column; gap: 14px; }
.cl-crumb { font-size: 14px; color: var(--muted); }
.cl-crumb button { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); font-weight: 600; cursor: pointer; }
.cl-fh { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.cl-fh h2 { margin: 0; }
.cl-more { position: relative; }
.cl-mmenu { display: none; position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 170px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.cl-more.open .cl-mmenu { display: flex; flex-direction: column; }
.cl-mmenu button { border: 0; background: none; text-align: left; padding: 9px 12px; border-radius: 8px; font: inherit; color: var(--ink); cursor: pointer; }
.cl-mmenu button:hover { background: var(--surface-2); }
.cl-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cl-k { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cl-k strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.cl-k strong.bad { color: var(--bad, #b3261e); }
.cl-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cl-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cl-tile.off { border-style: dashed; background: transparent; }
.cl-tile p { margin: 0; flex: 1; }
.cl-th { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cl-ta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cl-enter { padding: 4px 10px; min-height: 30px; font-size: 13px; margin-left: auto; }
.cl-vback { align-self: flex-start; }
.cl-vh { display: flex; align-items: center; gap: 10px; }
.cl-vh h3 { margin: 0; }
@media (max-width: 820px) { .cl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pr-stick { position: sticky; top: 0; z-index: 30; background: var(--bg); padding: 10px 0; }
.pr-stick .mp-tabs { display: inline-flex; }
.mp-tabs button[aria-selected="true"] .cl-n { color: inherit; opacity: .85; }
