/* Latest estimate (#/budget?v=le). Builds on plan.css (bar, grid, panels, drawer). Actual months are shaded, estimate months are plain. */
.le-asof { min-width: 150px; }
.le-asof select { width: 100%; }
.le-t th.act, .le-t td.act { background: var(--sunken); color: var(--ink-2); }
.le-t th.lev, .le-t td.lev { background: var(--surface); }
.le-t td.act .pbtn { color: var(--ink-2); }
.le-t td.neg, .le-t td.neg .pbtn { color: var(--bad); }
.le-t td.ovr { box-shadow: inset 0 0 0 1px var(--warn); }
.le-t td.bad { background: var(--bad-tint); }
.le-t td.plab { background: var(--surface); color: var(--ink); font-weight: 500; }
.le-t .r { text-align: right; }
.le-t .pfy { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.le-t td, .le-t th { padding-left: 12px; padding-right: 12px; }
.le-t thead th { position: sticky; top: 0; z-index: 4; }
.le-t thead th.plab { z-index: 5; }
.le-tag { display: block; font-size: 11.5px; font-weight: 500; color: var(--ink-3); line-height: 14px; }
.le-t th.lev .le-tag { color: var(--brand-deep); }
.le-t tr.der td { font-weight: 600; color: var(--ink); background: #faf9f7; border-top: 1px solid var(--line-2); }
.le-t tr.der td.act { background: #f3f1ee; }
.le-t tr.pct td { color: var(--ink-3); font-weight: 500; }
.le-t .psec-h th { text-align: left; background: #faf9f7; padding: 0; height: 38px; border-bottom: 1px solid var(--line); position: sticky; left: 0; display: table-cell; }
.lechip { cursor: pointer; font-family: inherit; }
.le-fy { overflow: hidden; }
.le-fyt { min-width: 0; width: 100%; font-size: 14px; }
.le-fyt td { background: transparent; }
.le-fyt td.plab { position: static; min-width: 0; max-width: none; border-right: 0; color: var(--ink); font-weight: 500; white-space: normal; }
.le-fyt .psec-h th { text-align: left; background: #faf9f7; font-size: 13px; font-weight: 600; color: var(--ink); height: 38px; padding-left: 20px; }
.le-fyt tr.der td { font-weight: 600; color: var(--ink); background: #faf9f7; }
.le-fyt td.neg { color: var(--bad); }
.le-fyt td.r, .le-fyt th.r { text-align: right; }
.le-modes { display: grid; gap: 6px; }
.le-mode { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.le-mode.on { border-color: var(--brand); background: var(--tint); }
.le-mode input { margin-top: 3px; }
.le-mode:focus-within { box-shadow: var(--focus); }
.le-sheet .plan-mini td.neg { color: var(--red); }
.le-ovl { padding: 0; }

@media (max-width: 760px) {
  .le-asof { flex-basis: 100%; }
  .le-sheet { top: auto; bottom: 0; left: 0; right: 0; width: 100vw; max-width: 100vw; height: auto; max-height: 88vh; border-radius: 14px 14px 0 0; }
  .le-sheet .db { overflow-y: auto; }
  .le-fyt th, .le-fyt td { padding: 6px 6px; font-size: 13px; }
  .le-fyt th:nth-child(5), .le-fyt td:nth-child(5) { display: none; }
}
