/* ===== CONTRATOS LOCAÇÃO — MESA DE TRABALHO =====
   Usa o kit das mesas (shared/crm_ws.css). Aqui ficam só as peças da carteira:
   régua do mês, fita de 12 meses, tabela que vira lista no celular e a ficha. */

.cw.cw--loc,
.cw-pa.cw--loc,
.cw-drawer.cw--loc,
.cw-toast.cw--loc,
.lcw-pop.cw--loc {
  --cw-acc: #0b6b4f; --cw-acc-600: #08573f; --cw-acc-50: #eaf5f0; --cw-acc-100: #cde8dc;
  --lcw-ok: #1e9a5c; --lcw-ok-50: #e9f6ef; --lcw-ok-100: #c3e6d2; --lcw-ok-ink: #11683f;
  --lcw-late: #c01c2b; --lcw-late-50: #fdf0f1; --lcw-late-100: #f7d5d9;
  --lcw-parc: #b7791f; --lcw-parc-50: #fbf3e2;
  --lcw-due: #9aa6b6;
  --lcw-na: #eceff3;
}

/* ---------- cabeçalho: caixa do mês ---------- */
.lcw-caixa { width: 340px; }
.lcw-caixa-bar { display: flex; gap: 3px; height: 8px; }
.lcw-caixa-bar i { display: block; flex: 1 1 0; min-width: 4px; height: 100%; border-radius: 3px; transition: flex-grow .5s var(--cw-ease); }
.lcw-caixa-bar .is-ok { background: var(--lcw-ok); }
.lcw-caixa-bar .is-late { background: var(--lcw-late); }
.lcw-caixa-bar .is-due { background: #e3e8ef; }
.lcw-caixa .cw-meta.is-complete .cw-meta-top b { color: var(--lcw-ok-ink); }
.lcw-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px;
  font: 12.5px var(--font-sans), sans-serif; color: var(--cw-muted); background: var(--cw-surface); border: 1px solid var(--cw-line);
}
.lcw-chip b { color: var(--cw-ink); font-size: 13.5px; }
.lcw-chip .cw-ic { color: var(--cw-faint); }
.lcw-chip--late { cursor: pointer; color: var(--lcw-late); border-color: var(--lcw-late-100); background: var(--lcw-late-50); transition: background .15s, box-shadow .15s; }
.lcw-chip--late b, .lcw-chip--late .cw-ic { color: var(--lcw-late); }
.lcw-chip--late:hover { background: #fbe3e6; box-shadow: 0 0 0 3px rgba(192, 28, 43, .06); }
.lcw .cw-zero-next button { grid-template-columns: 32px minmax(0, 1fr) auto auto; }

/* o "feito" da mesa de contratos é pagamento recebido: verde, não dourado */
.cw--loc .cw-streak.is-on { color: var(--lcw-ok-ink); border-color: var(--lcw-ok-100); background: var(--lcw-ok-50); }
.cw--loc .cw-streak.is-on .cw-ic { color: var(--lcw-ok); fill: none; }
.cw--loc .cw-row.is-done { background: var(--lcw-ok-50); }
.cw--loc .cw-row.is-done .cw-row-act { color: var(--lcw-ok-ink); }
.cw--loc .cw-av--done { background: var(--lcw-ok); }
.cw--loc .cw-done-tag { color: var(--lcw-ok-ink); border-color: var(--lcw-ok-100); }
.cw--loc .cw-zero-mark { background: var(--lcw-ok-50); color: var(--lcw-ok); box-shadow: 0 0 0 8px rgba(30, 154, 92, .08); }
.cw-toast.cw--loc .cw-toast-ic { background: var(--lcw-ok); }

/* ---------- régua do mês ---------- */
.lcw-regua {
  margin-top: 18px; padding: 14px 18px 12px; background: var(--cw-surface);
  border: 1px solid var(--cw-line); border-radius: var(--cw-r-lg); box-shadow: var(--cw-shadow);
}
.lcw-regua-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap; margin-bottom: 10px; }
.lcw-regua-h h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--cw-ink); }
.lcw-leg { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--cw-muted); }
.lcw-leg li { display: inline-flex; align-items: center; gap: 6px; }
.lcw-leg b { color: var(--cw-ink); font-weight: 700; }
.lcw-leg i, .lcw-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.lcw-leg i.is-ok, .lcw-dot.is-ok { background: var(--lcw-ok); }
.lcw-leg i.is-late, .lcw-dot.is-late { background: var(--lcw-late); }
.lcw-leg i.is-parc { background: linear-gradient(90deg, var(--lcw-parc) 50%, #f1e2c2 50%); }
.lcw-leg i.is-due { background: var(--cw-surface); box-shadow: inset 0 0 0 1.5px var(--lcw-due); }

.lcw-regua-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #d3d9e2 transparent; margin: 0 -6px; padding: 0 6px 2px; }
.lcw-dias { display: grid; grid-template-columns: repeat(var(--n), minmax(22px, 1fr)); gap: 3px; margin: 0; padding: 0; list-style: none; min-width: calc(var(--n) * 25px); }
.lcw-dia > button, .lcw-dia > .lcw-dia-b {
  position: relative; width: 100%; height: 74px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px;
  padding: 6px 0 7px; border: 0; border-radius: 8px; background: transparent; font: inherit; color: inherit;
}
.lcw-dia > button { cursor: pointer; transition: background .15s, box-shadow .15s; }
.lcw-dia > button:hover { background: var(--cw-sunk); }
.lcw-dia > button:focus-visible { outline: 2px solid var(--cw-acc); outline-offset: -2px; }
.lcw-dia.is-wk > * { background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(13, 24, 41, .025) 5px 6px); }
.lcw-dia.is-sel > button { background: var(--cw-acc-50); box-shadow: inset 0 0 0 1.5px var(--cw-acc); }
.lcw-dia-pips { display: flex; flex-direction: column-reverse; align-items: center; gap: 3px; min-height: 0; }
.lcw-dia-pips i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.lcw-dia-pips i.is-ok { background: var(--lcw-ok); }
.lcw-dia-pips i.is-late { background: var(--lcw-late); box-shadow: 0 0 0 2.5px var(--lcw-late-50); }
.lcw-dia-pips i.is-parc { background: linear-gradient(180deg, #f1e2c2 50%, var(--lcw-parc) 50%); }
.lcw-dia-pips i.is-due { background: var(--cw-surface); box-shadow: inset 0 0 0 1.5px var(--lcw-due); }
.lcw-dia-pips em { order: -1; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--cw-muted); line-height: 1; }
.lcw-dia-n { font-size: 12px; font-weight: 600; color: var(--cw-muted); line-height: 1; min-width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 6px; }
.lcw-dia.is-past .lcw-dia-n { color: #a3adbb; font-weight: 500; }
.lcw-dia.is-today .lcw-dia-n { background: var(--cw-ink); color: #fff; font-weight: 700; }
.lcw-dia.is-today > * { box-shadow: inset 0 -2px 0 var(--cw-ink); border-radius: 8px 8px 2px 2px; }
.lcw-dia.is-today.is-sel > button { box-shadow: inset 0 0 0 1.5px var(--cw-acc), inset 0 -2px 0 var(--cw-ink); }

/* ---------- fila ---------- */
.lcw-row .cw-row-top { gap: 8px; }
.lcw-ctid { flex-shrink: 0; font-size: 11.5px; font-weight: 600; color: var(--cw-faint); padding: 2px 7px; border-radius: 6px; background: #f0f2f5; letter-spacing: .01em; }
.lcw-amt { font-weight: 700; color: var(--cw-ink); white-space: nowrap; }
.lcw-amt.is-late { color: var(--lcw-late); }
.lcw-row .cw-row-meta > span { min-width: 0; }
.lcw-row .cw-row-meta .cw-ic { color: #a3adbb; }

.lcw-lane--semana .cw-lane-dot { background: var(--cw-navy); }
.lcw-lane--renov .cw-lane-dot { background: var(--lcw-parc); }
.lcw-lane--semana .cw-lane-h b { background: var(--cw-navy-50); color: var(--cw-navy); }
.lcw-lane--renov .cw-lane-h b { background: var(--lcw-parc-50); color: #8a5a12; }

/* avatar: o anel diz a situação do contrato */
.lcw-av { box-shadow: inset 0 0 0 2px var(--cw-cold), inset 0 0 0 4px #fff; }
.lcw-av--late { background: var(--lcw-late-50); color: #8f1420; box-shadow: inset 0 0 0 2px var(--lcw-late), inset 0 0 0 4px #fff; }
.lcw-av--due { background: var(--cw-navy-50); color: var(--cw-navy); box-shadow: inset 0 0 0 2px var(--cw-navy), inset 0 0 0 4px #fff; }
.lcw-av--renov, .lcw-av--warn { background: var(--lcw-parc-50); color: #7a4f0f; box-shadow: inset 0 0 0 2px var(--lcw-parc), inset 0 0 0 4px #fff; }
.lcw-av--resc { background: #f3f0fa; color: #5b3a9e; box-shadow: inset 0 0 0 2px #7b5cc4, inset 0 0 0 4px #fff; }
.lcw-av--ok { background: #eef1f5; }
.lcw-av--ass { background: #f3f0fa; color: #5b3a9e; box-shadow: inset 0 0 0 2px #8e6fd0, inset 0 0 0 4px #fff; }
.lcw-av--fim { background: #f1f3f6; color: #8792a2; box-shadow: none; }
.lcw-av--pes { width: 36px; height: 36px; font-size: 12px; background: #eef1f5; box-shadow: none; }

.lcw-zero-when { font-size: 12.5px; font-weight: 600; color: var(--cw-navy); text-align: right; }
.cw-zero-next .lcw-av { width: 32px; height: 32px; font-size: 11.5px; }

/* laterais */
.lcw-steps { display: inline-flex; gap: 2px; margin-right: 7px; vertical-align: 1px; }
.lcw-steps i { width: 9px; height: 4px; border-radius: 2px; background: #e2e7ee; }
.lcw-steps i.is-done { background: color-mix(in srgb, var(--cw-navy) 45%, #fff); }
.lcw-steps i.is-cur { background: var(--cw-navy); width: 14px; }
.lcw-panel-note { margin: -4px 0 6px; font-size: 12.5px; color: var(--cw-muted); line-height: 1.4; }
.cw-panel .cw-link { gap: 4px; }

/* ---------- carteira ---------- */
.lcw-cart { container: lcwc / inline-size; overflow-x: visible; }
.lcw-cart-tools { flex-wrap: wrap; }
.lcw-cart-tools .cw-seg { margin: 0; }
.lcw-cart-tools .cw-count { margin-right: auto; }
.lcw-recortes { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 12px; border-bottom: 1px solid var(--cw-line); }
.lcw-rc {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--cw-line); background: var(--cw-surface); color: var(--cw-text);
  font: 600 13px var(--font-sans), sans-serif; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.lcw-rc b { font-size: 12px; font-weight: 700; color: var(--cw-faint); }
.lcw-rc:hover { border-color: #c8d0db; background: var(--cw-sunk); }
.lcw-rc.is-zero { color: var(--cw-faint); }
.lcw-rc.is-on { background: var(--cw-ink); border-color: var(--cw-ink); color: #fff; }
.lcw-rc.is-on b { color: rgba(255, 255, 255, .75); }
.lcw-rc--late:not(.is-zero):not(.is-on) b { color: var(--lcw-late); }
.lcw-rc--late.is-on { background: var(--lcw-late); border-color: var(--lcw-late); }
.lcw-rc--due.is-on { background: var(--cw-navy); border-color: var(--cw-navy); }
.lcw-rc--ok.is-on { background: var(--lcw-ok-ink); border-color: var(--lcw-ok-ink); }
.lcw-rc--dia { background: var(--cw-acc); border-color: var(--cw-acc); }
.lcw-rc--dia .cw-ic { opacity: .85; }

.lcw-table { min-width: 0; }
.lcw-table td { vertical-align: middle; }
.lcw-table tbody tr.is-sel { background: var(--cw-acc-50); }
.lcw-td-inq .cw-td-lead b { max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcw-td-imv { max-width: 260px; }
.lcw-imv-end { display: block; color: var(--cw-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcw-imv-prop { display: block; font-size: 12.5px; color: var(--cw-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcw-td-val b { display: block; color: var(--cw-ink); font-weight: 700; }
.lcw-td-val span { display: block; font-size: 12.5px; color: var(--cw-faint); }

.lcw-fita { display: inline-grid; grid-template-columns: repeat(12, 7px); gap: 2px; align-items: center; vertical-align: middle; }
.lcw-fita i { height: 16px; border-radius: 2px; background: var(--lcw-na); }
.lcw-fita i.is-ok { background: var(--lcw-ok); }
.lcw-fita i.is-late { background: var(--lcw-late); }
.lcw-fita i.is-parc { background: linear-gradient(180deg, #f1e2c2 50%, var(--lcw-parc) 50%); }
.lcw-fita i.is-due { background: var(--cw-surface); box-shadow: inset 0 0 0 1.5px #c9d0da; }
.lcw-fita i.is-cur { height: 20px; outline: 1.5px solid var(--cw-ink); outline-offset: 1px; }

.lcw-pill {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid transparent;
  font: 600 12.5px var(--font-sans), sans-serif; white-space: nowrap; background: #f0f2f5; color: var(--cw-muted);
}
button.lcw-pill { cursor: pointer; transition: box-shadow .15s, transform .1s, background .15s; }
button.lcw-pill:hover { box-shadow: 0 0 0 3px rgba(13, 24, 41, .06); }
button.lcw-pill:active { transform: translateY(1px); }
.lcw-pill--ok { background: var(--lcw-ok-50); color: var(--lcw-ok-ink); border-color: var(--lcw-ok-100); }
.lcw-pill--late { background: var(--lcw-late-50); color: var(--lcw-late); border-color: var(--lcw-late-100); }
.lcw-pill--parc { background: var(--lcw-parc-50); color: #8a5a12; border-color: #efdcb4; }
.lcw-pill--due { background: var(--cw-surface); color: var(--cw-text); border-color: var(--cw-line); }
.lcw-pill--na { background: transparent; color: var(--cw-faint); }

.lcw-fim b { display: block; font-weight: 600; color: var(--cw-text); white-space: nowrap; }
.lcw-fim span { display: block; font-size: 12.5px; color: var(--cw-faint); white-space: nowrap; }
.lcw-fim.is-warn b { color: #8a5a12; }
.lcw-fim.is-late b { color: var(--lcw-late); }

.lcw-gar { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 0; border: 0; background: none; font: inherit; text-align: left; }
.lcw-gar b { font-size: 13px; font-weight: 600; color: var(--cw-text); }
.lcw-gar span { font-size: 12px; color: var(--cw-faint); }
.lcw-gar.is-none { font-size: 12.5px; color: var(--cw-faint); }
.lcw-gar.is-ok span { color: var(--lcw-ok-ink); }
.lcw-gar.is-pend span { color: #8a5a12; font-weight: 600; }
button.lcw-gar { cursor: pointer; border-radius: 6px; }
button.lcw-gar:hover b { text-decoration: underline; text-underline-offset: 3px; }

.lcw-td-menu { width: 52px; text-align: right; }
.cw--loc .lc-act-trigger { width: 34px; height: 34px; border-radius: 9px; border-color: var(--cw-line); color: var(--cw-muted); }
.cw--loc .lc-act-trigger:hover { background: var(--cw-sunk); color: var(--cw-ink); border-color: #cfd6e0; }
.cw--loc .lc-act-trigger[aria-expanded="true"] { background: var(--cw-ink); color: #fff; border-color: var(--cw-ink); }
.lcw-inline { margin: 0; display: inline; font-size: inherit; }

/* carteira no celular: cada contrato vira um bloco */
@container lcwc (max-width: 820px) {
  .lcw-table, .lcw-table tbody { display: block; }
  .lcw-table thead { display: none; }
  .lcw-table tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "inq menu" "imv imv" "mes val" "rib fim" "gar gar";
    gap: 8px 12px; padding: 14px 16px; border-top: 1px solid var(--cw-line-2);
  }
  .lcw-table td { padding: 0; border: 0; }
  .lcw-td-inq { grid-area: inq; min-width: 0; }
  .lcw-td-menu { grid-area: menu; width: auto; }
  .lcw-td-imv { grid-area: imv; max-width: none; padding-left: 44px !important; }
  .lcw-td-mes { grid-area: mes; padding-left: 44px !important; }
  .lcw-td-val { grid-area: val; }
  .lcw-td-rib { grid-area: rib; padding-left: 44px !important; }
  .lcw-td-fim { grid-area: fim; text-align: right; }
  .lcw-td-fim .lcw-fim b, .lcw-td-fim .lcw-fim span { text-align: right; }
  .lcw-td-gar { grid-area: gar; padding-left: 44px !important; }
  .lcw-td-gar .lcw-gar { flex-direction: row; gap: 6px; align-items: baseline; }
  .lcw-td-inq .cw-td-lead b { max-width: none; white-space: normal; }
}
@container lcwc (max-width: 420px) {
  .lcw-td-imv, .lcw-td-mes, .lcw-td-rib, .lcw-td-gar { padding-left: 0 !important; }
}

/* ---------- ficha ---------- */
.lcw-drawer .cw-dr-body { gap: 26px; }
.lcw-sit { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #eef1f5; color: var(--cw-muted); }
.lcw-sit::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lcw-sit--ok { background: var(--lcw-ok-50); color: var(--lcw-ok-ink); }
.lcw-sit--late { background: var(--lcw-late-50); color: var(--lcw-late); }
.lcw-sit--due { background: var(--cw-navy-50); color: var(--cw-navy); }
.lcw-sit--warn { background: var(--lcw-parc-50); color: #8a5a12; }
.lcw-sit--resc { background: #f3f0fa; color: #5b3a9e; }
.lcw-sit--ass { background: #f3f0fa; color: #5b3a9e; }
.lcw-dr-menu .cw-menu-pop { min-width: 240px; }
.lcw-drawer .cw-next p b { color: var(--cw-ink); }
.lcw-drawer .cw-next--agora p b { color: var(--lcw-late); }

.lcw-ano-nav { display: inline-flex; align-items: center; gap: 6px; }
.lcw-ano-nav .cw-icbtn { width: 30px; height: 30px; border-radius: 8px; }
.lcw-ano-nav .cw-icbtn:disabled { opacity: .4; cursor: default; }
.lcw-ano-nav b { min-width: 38px; text-align: center; font-size: 14px; color: var(--cw-ink); }

.lcw-ano { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.lcw-mes {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 66px; padding: 8px 9px; border-radius: 10px;
  border: 1px solid var(--cw-line); background: var(--cw-surface); font: inherit; text-align: left; color: var(--cw-text);
}
button.lcw-mes { cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s; }
button.lcw-mes:hover { border-color: #c3cbd6; box-shadow: 0 4px 12px -8px rgba(13, 24, 41, .35); }
button.lcw-mes:active { transform: translateY(1px); }
.lcw-mes-n { display: flex; align-items: center; justify-content: space-between; align-self: stretch; font-size: 12px; font-weight: 700; color: var(--cw-muted); }
.lcw-mes-bol { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--cw-navy-50); color: var(--cw-navy); }
.lcw-mes--ok .lcw-mes-bol { background: rgba(255, 255, 255, .7); color: var(--lcw-ok-ink); }
button.lcw-mes[aria-expanded="true"], button.lcw-pill[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--cw-acc-100); }
.lcw-mes-ic { height: 14px; display: inline-flex; }
.lcw-mes-v { margin-top: auto; font-size: 12.5px; font-weight: 600; color: var(--cw-ink); }
.lcw-mes--ok { background: var(--lcw-ok-50); border-color: var(--lcw-ok-100); }
.lcw-mes--ok .lcw-mes-ic, .lcw-mes--ok .lcw-mes-n { color: var(--lcw-ok-ink); }
.lcw-mes--late { background: var(--lcw-late-50); border-color: var(--lcw-late-100); }
.lcw-mes--late .lcw-mes-ic, .lcw-mes--late .lcw-mes-n, .lcw-mes--late .lcw-mes-v { color: var(--lcw-late); }
.lcw-mes--parc { background: var(--lcw-parc-50); border-color: #efdcb4; }
.lcw-mes--parc .lcw-mes-ic, .lcw-mes--parc .lcw-mes-n { color: #8a5a12; }
.lcw-mes--na { background: repeating-linear-gradient(135deg, #fafbfc 0 6px, #f3f5f8 6px 7px); border-style: dashed; }
.lcw-mes--na .lcw-mes-n, .lcw-mes--na .lcw-mes-v { color: #a3adbb; font-weight: 500; }
.lcw-mes.is-cur { box-shadow: 0 0 0 2px var(--cw-ink); border-color: transparent; }
.lcw-ano-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 10px 0 0; font-size: 12.5px; color: var(--cw-text); }
.lcw-ano-foot span { display: inline-flex; align-items: center; gap: 6px; }
.lcw-ano-foot .cw-muted { margin-left: auto; }

.lcw-vig { margin-bottom: 14px; }
.lcw-vig-bar { height: 6px; border-radius: 3px; background: #e8ecf1; overflow: hidden; }
.lcw-vig-bar i { display: block; height: 100%; border-radius: 3px; background: var(--cw-acc); }
.lcw-vig.is-warn .lcw-vig-bar i { background: var(--lcw-parc); }
.lcw-vig.is-late .lcw-vig-bar i { background: var(--lcw-late); }
.lcw-vig-lbl { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 12.5px; color: var(--cw-faint); }
.lcw-vig-lbl b { color: var(--cw-ink); font-weight: 600; }
.lcw-vig.is-warn .lcw-vig-lbl b { color: #8a5a12; }
.lcw-vig.is-late .lcw-vig-lbl b { color: var(--lcw-late); }

.lcw-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; border: 1px solid var(--cw-line); border-radius: 12px; overflow: hidden; background: var(--cw-line-2); }
.lcw-facts > div { padding: 11px 13px; background: var(--cw-surface); min-width: 0; }
.lcw-facts dt { font-size: 12px; font-weight: 600; color: var(--cw-faint); margin-bottom: 3px; }
.lcw-facts dd { margin: 0; font-size: 14px; color: var(--cw-ink); }
.lcw-facts dd b { font-weight: 700; }
.lcw-facts dd small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--cw-muted); line-height: 1.4; overflow-wrap: anywhere; }
.lcw-dd-btn { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; font: inherit; color: var(--cw-acc); cursor: pointer; text-align: left; }
.lcw-dd-btn:hover b { text-decoration: underline; text-underline-offset: 3px; }

.lcw-pessoas { list-style: none; margin: 0; padding: 0; border: 1px solid var(--cw-line); border-radius: 12px; overflow: hidden; }
.lcw-pes { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; }
.lcw-pes + .lcw-pes { border-top: 1px solid var(--cw-line-2); }
.lcw-pes-txt { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.lcw-pes-papel { font-size: 12px; font-weight: 600; color: var(--cw-faint); }
.lcw-pes-nome { padding: 0; border: 0; background: none; font: 700 14px var(--font-sans), sans-serif; color: var(--cw-ink); text-align: left; overflow-wrap: anywhere; }
button.lcw-pes-nome { cursor: pointer; }
button.lcw-pes-nome:hover { color: var(--cw-acc); text-decoration: underline; text-underline-offset: 3px; }
.lcw-pes-sub { font-size: 12.5px; color: var(--cw-muted); overflow-wrap: anywhere; }
.lcw-pes .cw-icbtn { width: 34px; height: 34px; text-decoration: none; }
.lcw-end { display: flex; align-items: flex-start; gap: 8px; margin: 10px 2px 0; font-size: 13.5px; color: var(--cw-text); line-height: 1.45; }
.lcw-end .cw-ic { color: var(--cw-faint); margin-top: 2px; }

.lcw-docs button { grid-template-columns: 18px 72px minmax(0, 1fr) 14px; }
.lcw-docs button.is-ok > .cw-ic:first-child { color: var(--lcw-ok); }
.lcw-docs button.is-meio > .cw-ic:first-child { color: var(--lcw-parc); }
.lcw-docs button.is-falta > .cw-ic:first-child { color: var(--lcw-late); }
.lcw-docs button.is-falta .cw-status-v { color: var(--cw-text); }
.lcw-dr-full { width: 100%; height: 42px; }

@media (max-width: 760px) {
  .lcw-caixa { width: 100%; }
  .lcw-ano { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lcw-facts { grid-template-columns: 1fr; }
  .lcw-ano-foot .cw-muted { margin-left: 0; flex-basis: 100%; }
}
@container cw (max-width: 880px) {
  .lcw-caixa { width: 100%; }
}
@container cw (max-width: 560px) {
  .lcw-regua { padding: 12px 12px 10px; }
  .lcw-dias { grid-template-columns: repeat(var(--n), 30px); }
  .lcw-dia > button, .lcw-dia > .lcw-dia-b { height: 70px; }
  .lcw-leg { gap: 4px 12px; font-size: 12px; }
}
@container cwq (max-width: 680px) {
  .lcw-ctid { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lcw-caixa-bar i { transition: none; }
}

/* ---------- menu do mês (pagamento, boleto, cobrança) ---------- */
.lcw-pop {
  --cw-ink: #0d1829; --cw-text: #1f2a3d; --cw-muted: #56647a; --cw-faint: #667386; --cw-line: #e1e6ee; --cw-line-2: #edf0f5;
  --cw-surface: #ffffff; --cw-sunk: #f5f7fa; --cw-ease: cubic-bezier(.2, .8, .2, 1);
  color: var(--cw-text);
  position: fixed; z-index: 290; min-width: 236px; max-width: calc(100vw - 16px); padding: 6px; border-radius: 12px;
  background: var(--cw-surface); border: 1px solid var(--cw-line); box-shadow: 0 16px 40px -16px rgba(13, 24, 41, .38);
  font-family: var(--font-sans), system-ui, sans-serif; opacity: 0; transform: translateY(-4px); transition: opacity .14s, transform .18s var(--cw-ease);
}
.lcw-pop.is-in { opacity: 1; transform: none; }
.lcw-pop-h { padding: 8px 10px 9px; margin-bottom: 4px; border-bottom: 1px solid var(--cw-line-2); }
.lcw-pop-h b { display: block; font-size: 14px; font-weight: 700; color: var(--cw-ink); }
.lcw-pop-h span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--cw-muted); }
.lcw-pop button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 8px; background: none;
  font: 500 14px var(--font-sans), sans-serif; color: var(--cw-text); text-align: left; cursor: pointer;
}
.lcw-pop button:hover, .lcw-pop button:focus-visible { background: var(--cw-sunk); outline: none; }
.lcw-pop button .cw-ic { color: var(--cw-faint); }
.lcw-pop button:first-of-type { font-weight: 600; color: var(--cw-ink); }
.lcw-pop button:first-of-type .cw-ic { color: var(--cw-acc); }
@media (prefers-reduced-motion: reduce) { .lcw-pop { transition: none; } }
