/* Intranet (CavalcantiDiniz) */
:root {
  --bg: #f4f6f9; --surface: #ffffff; --surface-2: #f8fafc; --line: #e3e8ef; --line-2: #eef2f6;
  --text: #16212e; --text-2: #4a5768; --muted: #7b8796;
  --brand: #14365c; --brand-2: #1e4e82; --brand-ink: #ffffff; --accent: #0e8a7e;
  --side: #102a47; --side-2: #173a60; --side-text: #c9d6e6;
  --good: #137a4b; --good-bg: #e5f5ec; --warn: #9a5b00; --warn-bg: #fdf1dc; --bad: #b42323; --bad-bg: #fbe7e7;
  --info: #1e4e82; --info-bg: #e6eef8; --mute-bg: #eef1f5;
  --radius: 12px; --shadow: 0 1px 2px rgba(16, 42, 71, .06), 0 2px 8px rgba(16, 42, 71, .04);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1520; --surface: #131e2b; --surface-2: #172434; --line: #243446; --line-2: #1d2b3b;
    --text: #e6edf5; --text-2: #b4c1d0; --muted: #8494a6;
    --brand: #3d7bc4; --brand-2: #5b93d6; --accent: #2fb5a6;
    --side: #0a121c; --side-2: #142233; --side-text: #b3c3d6;
    --good: #57c98f; --good-bg: #13301f; --warn: #f0b456; --warn-bg: #352610; --bad: #f07a7a; --bad-bg: #3a1717;
    --info: #8bb8ec; --info-bg: #15283f; --mute-bg: #1c2938;
    --shadow: none; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
small { font-size: 12px; }
.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.nowrap { white-space: nowrap; } .break { word-break: break-all; }
.inline { display: inline; margin: 0; }

/* shell */
.shell { display: flex; min-height: 100vh; }
.side { width: 248px; flex: none; background: var(--side); color: var(--side-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; gap: 12px; align-items: center; padding: 20px 18px; color: #fff; text-decoration: none !important; border-bottom: 1px solid rgba(255,255,255,.06); }
.brand b { display: block; font-size: 16px; } .brand small { color: var(--side-text); opacity: .8; }
.logo { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #2a6cb3, var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 800; letter-spacing: .5px; }
.logo.lg { width: 56px; height: 56px; font-size: 20px; border-radius: 14px; }
.side nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.nav { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 8px; color: var(--side-text); text-decoration: none !important; margin-bottom: 2px; }
.nav:hover { background: var(--side-2); color: #fff; }
.nav.on { background: var(--side-2); color: #fff; font-weight: 600; }
.nav.sub { padding: 6px 12px 6px 40px; font-size: 13px; }
.nav.sub.on { background: transparent; color: #fff; box-shadow: inset 2px 0 0 var(--accent); border-radius: 0 8px 8px 0; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .55; padding: 16px 12px 6px; }
.me { display: flex; gap: 10px; align-items: center; padding: 14px; border-top: 1px solid rgba(255,255,255,.06); }
.me .icon-btn { color: var(--side-text); } .me .icon-btn:hover { background: var(--side-2); color: #fff; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--side-2); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.me-txt { flex: 1; min-width: 0; } .me-txt b { display: block; color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .me-txt small { opacity: .7; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 12px; padding: 18px 28px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top h1 { font-size: 20px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; }
.top .menu-btn { display: none; }
.content { padding: 24px 28px; flex: 1; max-width: 1480px; width: 100%; }
.foot { padding: 16px 28px; color: var(--muted); font-size: 12px; }
.lead { margin: 0 0 18px; color: var(--text-2); }
.crumbs { margin-bottom: 12px; font-size: 13px; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; gap: 6px; align-items: center; justify-content: center; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn:hover { border-color: var(--brand-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: var(--brand-2); }
.btn.ghost { background: transparent; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.block { width: 100%; height: 42px; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: var(--line-2); color: var(--text); text-decoration: none; }
.icon-btn.danger:hover { background: var(--bad-bg); color: var(--bad); }
.link { font-size: 13px; font-weight: 600; }
.row-gap { display: flex; gap: 8px; align-items: center; }

/* flash */
.flash { padding: 11px 14px; border-radius: 10px; margin-bottom: 16px; font-weight: 500; }
.flash.ok { background: var(--good-bg); color: var(--good); }
.flash.bad { background: var(--bad-bg); color: var(--bad); }

/* cards & grid */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 20px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-h h2 { font-size: 15px; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cols > .card { margin-bottom: 20px; }
.span2 { grid-column: span 2; }
.empty { color: var(--muted); text-align: center; padding: 18px 8px; margin: 0; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; position: relative; overflow: hidden; }
a.kpi:hover { border-color: var(--brand-2); }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand); opacity: .8; }
.kpi.warn::before { background: var(--warn); } .kpi.bad::before { background: var(--bad); }
.kpi-top { display: flex; gap: 8px; align-items: center; color: var(--text-2); font-size: 13px; font-weight: 600; }
.kpi-val { font-size: 26px; font-weight: 700; margin: 6px 0 2px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi.warn .kpi-val { color: var(--warn); } .kpi.bad .kpi-val { color: var(--bad); }
.kpi-sub { color: var(--muted); font-size: 12px; }

/* tables */
.tbl-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl tr.dim td { color: var(--muted); }
.tbl tr.dim td a { color: var(--text-2); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .acts { white-space: nowrap; text-align: right; width: 1%; }
.sub { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }

/* reajuste de contratos */
.icon-btn.reaj { color: var(--brand); }
.icon-btn.reaj.done { color: var(--good); }
.icon-btn.reaj.wait { color: var(--muted); opacity: .45; }
/* badges */
.badge { display: inline-flex; gap: 4px; align-items: baseline; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--mute-bg); color: var(--text-2); white-space: nowrap; }
.badge small { font-weight: 500; opacity: .85; font-size: 11px; }
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.mute { background: var(--mute-bg); color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* bars */
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-lbl { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.bar-lbl span { color: var(--text-2); } .bar-lbl b { font-variant-numeric: tabular-nums; }
.bar { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand-2); border-radius: 99px; }
.split { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.split-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--line-2); gap: 2px; }
.split-bar i.a, .legend i.a { background: var(--brand-2); } .split-bar i.b, .legend i.b { background: var(--accent); }
.legend { display: flex; gap: 16px; margin-top: 8px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.list li:last-child { border-bottom: 0; }
.list b { display: block; font-size: 13.5px; } .list small { color: var(--muted); }

/* filters */
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filters select, .search input { height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; padding: 0 10px; }
.search { display: flex; align-items: center; position: relative; flex: 1 1 260px; max-width: 380px; }
.search .ic { position: absolute; left: 10px; color: var(--muted); }
.search input { width: 100%; padding-left: 34px; }
.spacer { flex: 1; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.seg a { padding: 5px 12px; border-radius: 6px; color: var(--text-2); font-weight: 600; font-size: 13px; text-decoration: none !important; white-space: nowrap; }
.seg a.on { background: var(--brand); color: var(--brand-ink); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px 0 18px; overflow-x: auto; }
.tab { padding: 10px 14px; color: var(--text-2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none !important; }
.tab.on { color: var(--brand-2); border-bottom-color: var(--brand-2); }

/* forms */
.form-card { max-width: 980px; }
.form-card.narrow { max-width: 520px; }
.grid-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; }
.grid-form.one { grid-template-columns: 1fr; }
.form-sec { grid-column: 1 / -1; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.form-sec:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fld.wide { grid-column: span 2; }
.fld span { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.fld input, .fld select, .fld textarea { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; padding: 0 10px; }
.fld textarea { height: auto; padding: 8px 10px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .search input:focus, .filters select:focus { outline: 2px solid color-mix(in srgb, var(--brand-2) 35%, transparent); border-color: var(--brand-2); }
.grid-form .fld:has(textarea) { grid-column: 1 / -1; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); }

/* cliente */
.hero { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.hero h2 { font-size: 22px; }
.hero p { margin: 4px 0 0; }
.hero-kpis { display: flex; gap: 28px; }
.hero-kpis small, .ago-strip small { display: block; color: var(--muted); font-size: 12px; }
.hero-kpis b { font-size: 20px; font-variant-numeric: tabular-nums; }
.dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; font-size: 13.5px; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; }
.dl.cols-dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 20px; }
.cols-dl dt { font-size: 12px; margin-bottom: 2px; } .cols-dl .full { grid-column: 1 / -1; }
.hist { margin-top: 14px; border-top: 1px solid var(--line-2); padding-top: 10px; }
.hist summary { cursor: pointer; font-weight: 600; color: var(--brand-2); padding: 4px 0 8px; }
.ago-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 14px 16px; background: var(--surface-2); border-radius: 10px; margin-bottom: 16px; }
.ago-strip b { font-size: 15px; }
.cargos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cargo h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.pessoa { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; margin-bottom: 6px; }
.pessoa b { display: block; font-size: 13.5px; } .pessoa small { color: var(--muted); }
.danger-zone { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: -4px; }
.pager { display: flex; justify-content: space-between; margin-top: 12px; }

/* login */
.login-page { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(1200px 600px at 20% 0%, #1e4e82 0%, transparent 60%), linear-gradient(160deg, #0d2340, #102a47 60%, #0c3b47); padding: 24px 16px; }
.login-wrap { width: 100%; max-width: 400px; }
.login-brand { text-align: center; color: #fff; margin-bottom: 22px; }
.login-brand .logo { margin: 0 auto 14px; }
.login-brand h1 { font-size: 24px; } .login-brand h1 span { font-weight: 400; opacity: .8; }
.login-brand p { color: #b8c8dc; margin: 6px 0 0; font-size: 13px; }
.login-card { background: var(--surface); border-radius: 16px; padding: 26px; box-shadow: 0 20px 50px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 14px; }
.login-card h2 { font-size: 17px; }
.login-card p { margin: 0; text-align: center; }

/* parcelamentos / plano */
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin-bottom: 20px; }
.pm-grid .card { margin-bottom: 0; }
.pm h2 { font-size: 14px; } .pm .card-h { margin-bottom: 8px; align-items: flex-start; }
.pm-nums { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0 8px; }
.pm-nums small { display: block; color: var(--muted); font-size: 11.5px; } .pm-nums b { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pm-bad { border-color: var(--bad); box-shadow: inset 4px 0 0 var(--bad); }
.pm-alert { display: flex; gap: 6px; align-items: center; color: var(--bad); font-weight: 600; font-size: 12.5px; margin-bottom: 6px; }
.tbl tr.row-bad td { background: var(--bad-bg); color: var(--bad); }
.tbl tr.row-bad td b, .tbl tr.row-bad td .sub { color: var(--bad); }
.tbl tbody tr.row-bad:hover td { background: color-mix(in srgb, var(--bad-bg) 80%, var(--bad) 8%); }
.li-bad b, .li-bad small { color: var(--bad) !important; }
.btn.pay { background: var(--good-bg); border-color: transparent; color: var(--good); }
.btn.pay:hover { border-color: var(--good); }
.tbl .cb { width: 1%; } .tbl input[type=checkbox] { width: 16px; height: 16px; }
.pay-bar input[type=date], .date-f input, .rel-form input { height: 30px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); font: inherit; padding: 0 6px; }
.date-f { display: flex; gap: 6px; align-items: center; }
.rel-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); }
.rel-form label { display: flex; gap: 4px; align-items: center; }
details.gen summary { cursor: pointer; padding: 2px 0; }
details.gen[open] summary { margin-bottom: 14px; }
.tbl tfoot th { border-top: 2px solid var(--line); color: var(--text); font-size: 13px; padding: 10px; }

/* responsivo */
@media (max-width: 1280px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1080px) { .cols { grid-template-columns: 1fr; } .span2 { grid-column: auto; } .grid-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .side { position: fixed; left: 0; top: 0; z-index: 20; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .side.open { transform: none; }
  .top .menu-btn { display: inline-grid; }
  .top { padding: 12px 16px; } .top h1 { font-size: 17px; } .today { display: none; }
  .content { padding: 16px; } .foot { padding: 12px 16px; }
  .kpis, .kpis.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi-val { font-size: 21px; }
  .card { padding: 14px 16px; } .tbl-wrap { margin: 0 -16px; padding: 0 16px; }
  .ago-strip, .dl.cols-dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search { max-width: none; }
}
@media (max-width: 520px) { .kpis, .kpis.three { grid-template-columns: 1fr; } .grid-form { grid-template-columns: 1fr; } .fld.wide { grid-column: auto; } .hero-kpis { gap: 18px; } }

/* Cofre de Senhas */
.cofre { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.cofre-tree { padding: 12px 8px; max-height: calc(100vh - 160px); overflow: auto; position: sticky; top: 12px; }
.cofre-tree .card-h { padding: 0 6px 8px; }
.tree-item { display: flex; gap: 7px; align-items: center; padding: 6px 10px; border-radius: 7px; color: var(--text); font-size: 13px; text-decoration: none !important; }
.tree-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-item small { color: var(--muted); font-size: 11px; }
.tree-item:hover { background: var(--line-2); }
.tree-item.on { background: var(--brand); color: var(--brand-ink); }
.tree-item.on small { color: inherit; opacity: .8; }
.tree-item .ic { width: 16px; height: 16px; flex: none; }
.tree-new { margin: 10px 6px 0; font-size: 13px; }
.tree-new summary, .pasta-edit summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.tree-new .form, .pasta-edit .form { display: grid; gap: 8px; margin-top: 8px; }
.pasta-edit { position: relative; }
.pasta-edit[open] { width: 100%; }
.cofre-main { display: grid; gap: 16px; min-width: 0; }
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.folder-card { display: flex; gap: 8px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); text-decoration: none !important; font-weight: 600; font-size: 13px; }
.folder-card:hover { border-color: var(--brand-2); }
.folder-card span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-card small { color: var(--muted); font-weight: 500; }
.folder-card .ic { color: #d9a400; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.icon-btn.sm { width: 26px; height: 26px; }
.icon-btn.sm .ic { width: 15px; height: 15px; }
.icon-btn.ok { background: var(--good-bg); color: var(--good); }
.icon-btn.err { background: var(--bad-bg); color: var(--bad); }
.cofre-notas { white-space: pre-wrap; word-break: break-word; background: var(--line-2); padding: 8px 10px; border-radius: 8px; margin: 6px 0 0; font-size: 12px; max-width: 420px; }
.cofre-url { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-field { display: flex; gap: 4px; align-items: center; }
.pw-field input { flex: 1; }
@media (max-width: 900px) { .cofre { grid-template-columns: 1fr; } .cofre-tree { position: static; max-height: 320px; } }

/* Cofre: árvore recolhível e ícones dos sites */
.tree-row { display: flex; align-items: center; }
.tree-row[hidden] { display: none; }
.tree-row .tree-item { flex: 1; min-width: 0; padding-left: 4px; }
.tree-tog { width: 18px; height: 22px; flex: none; border: 0; background: none; cursor: pointer; position: relative; padding: 0; color: var(--muted); }
.tree-tog::before { content: ''; position: absolute; left: 6px; top: 7px; border: 4px solid transparent; border-left: 6px solid currentColor; transition: transform .15s; transform-origin: 3px 4px; }
.tree-tog.open::before { transform: rotate(90deg); }
.tree-tog:hover { color: var(--text); }
.tree-tog.none { cursor: default; } .tree-tog.none::before { display: none; }
.tree-acts { margin: 8px 6px 0; font-size: 12px; color: var(--muted); }
button.link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--brand); font: inherit; font-weight: 600; }
.tbl .fav-col { width: 40px; padding-right: 0; }
img.fav { width: 24px; height: 24px; border-radius: 6px; display: block; object-fit: contain; background: #fff; }


/* Pareceres */
.par-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi-mini { padding: 12px 14px; display: grid; gap: 2px; }
.kpi-mini small { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.kpi-mini b { font-size: 20px; line-height: 1.2; }
.kpi-mini span { color: var(--muted); font-size: 12px; }
.kpi-mini .warn-t { color: var(--warn); } .kpi-mini .bad-t { color: var(--bad); }
.par-lote { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 0 12px; }
.par-lote input { height: 30px; border: 1px solid var(--line); border-radius: 7px; padding: 0 8px; font: inherit; font-size: 13px; background: var(--surface); color: var(--text); }
.par-lote .sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.par-tbl td { vertical-align: top; }

/* ---------------- Rateio de Despesas (SAFIRA) */
.rt-novo { align-items: center; }
.rt-novo input[type=month] { height: 36px; }
.rt-tbl input, .rt-tbl select { width: 100%; min-width: 0; height: 32px; padding: 0 8px; border: 1px solid #d7dee8; border-radius: 6px; font: inherit; background: #fff; }
.rt-tbl td { padding-top: 4px; padding-bottom: 4px; }
.rt-tbl td:first-child { min-width: 220px; }
.rt-tbl .rt-val { text-align: right; max-width: 130px; margin-left: auto; display: block; font-variant-numeric: tabular-nums; }
.rt-tbl tr.rt-blank input, .rt-tbl tr.rt-blank select { background: #f8fafc; border-style: dashed; }
.rt-tbl .rt-resp { white-space: nowrap; color: #4a5768; }
.rt-tbl tfoot th { font-variant-numeric: tabular-nums; }
.rt-save { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; background: rgba(255,255,255,.96); border: 1px solid #e3e8ef; border-radius: 10px; padding: 10px 14px; margin: 0 0 18px; box-shadow: 0 -2px 10px rgba(0,0,0,.05); }
.rt-pessoas { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; margin-bottom: 16px; }
.rt-pessoas .card { margin: 0; }
.rt-receb { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.rt-receb input { height: 32px; border: 1px solid #d7dee8; border-radius: 6px; padding: 0 8px; font: inherit; }
.rt-conf form { margin-top: 8px; }
@media (max-width: 700px) { .rt-pessoas { grid-template-columns: 1fr; } .rt-tbl td:first-child { min-width: 160px; } }

/* atalhos na tela de login (outras áreas do site) */
.login-atalhos { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.login-atalhos .la-tit { width: 100%; text-align: center; color: #b8c8dc; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.login-atalhos a { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); color: #fff; text-decoration: none; font-size: 12.5px; line-height: 1.3; background: rgba(255,255,255,.06); }
.login-atalhos a:hover, .login-atalhos a:focus-visible { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.55); }
.login-atalhos a.home { font-weight: 600; }
