.nexus-budget-page {
  max-width: 1920px;
  color: #0b2235;
}
.nexus-budget-page .nb-hero {
  background: #092634 url("/assets/nexus-budget-bandeau-59d0b22ec96c1ac0.webp") center 53% / cover no-repeat;
  box-shadow: 0 12px 28px #09263424;
}
.nexus-budget-page .nb-hero > .nb-hero-inner {
  padding: clamp(22px, 3vw, 42px) clamp(20px, 3.4vw, 52px) 0;
  background: linear-gradient(90deg, #081e2af2 0%, #081e2acc 41%, #081e2a00 78%);
}
.nexus-budget-page .nb-hero h1 {
  color: #fff;
  font-size: clamp(27px, 3vw, 48px);
  letter-spacing: -.045em;
  line-height: 1.05;
  max-width: 21ch;
}
.nexus-budget-page .nb-company {
  color: #dcebea;
  font-size: clamp(14px, 1.2vw, 19px);
  margin-top: 8px;
}
.nexus-budget-page .nb-hero-add {
  align-self: flex-start;
  background: #d8f4e8;
  color: #073b37;
  border: 1px solid #a4d1c1;
  padding: 10px 16px;
  font-weight: 700;
  border-radius: 10px;
}
.nexus-budget-page .nb-hero-add:hover { background: #eefbf4; }
.nexus-budget-page .nb-hero-add:disabled { opacity: .55; }
.nexus-budget-page .nb-hero-tabs { box-shadow: none; }

.nexus-budget-workspace {
  --nb-code-width: 16rem;
  --nb-total-width: 11rem;
  --nb-ink: #0d2937;
  --nb-teal: #0c3b4a;
  --nb-accent: #1b736b;
  --nb-line: #e0e3dc;
  background: #faf7f1;
  border: 1px solid #eee7dd;
  border-radius: 18px;
  padding: clamp(14px, 1.7vw, 26px);
  color: var(--nb-ink);
}
.nb-toolbar, .nb-period, .nb-summary, .nb-summary > div, .nb-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nb-toolbar { justify-content: space-between; margin-bottom: 14px; }
.nb-toolbar h2 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.04em; line-height: 1.12; font-weight: 780; }
.nb-search { flex: 1 1 175px; max-width: 360px; }
.nb-period { align-items: end; }
.nb-period label { display: grid; gap: 3px; font-size: 11px; color: #425a60; }
.nb-search input, .nb-period select, .nb-arrows button, .nb-summary button, .nb-cell-editor input, .nb-cell-editor button {
  min-height: 36px;
  border: 1px solid #cbd4d0;
  border-radius: 8px;
  padding: 6px 10px;
  background: #fffdf9;
  font-size: 13px;
  color: var(--nb-ink);
}
.nb-search input { width: 100%; }
.nb-arrows button { min-width: 34px; font-size: 19px; line-height: 1; }
.nb-arrows button:disabled, .nb-period select:disabled { opacity: .5; }
.nb-summary { justify-content: space-between; background: #e9eee2; padding: 10px 14px; border-radius: 10px; margin-bottom: 13px; font-size: 13px; }
.nb-summary strong { margin-left: 4px; font-size: 16px; color: #103e36; }
.nb-summary button { border-color: #6c9c8d; background: transparent; font-weight: 700; }
.nb-scroll { overflow: auto; max-height: 62vh; border: 1px solid var(--nb-line); border-radius: 12px; }
.nb-grid {
  table-layout: fixed;
  border-spacing: 0;
  width: max(100%, calc(var(--nb-code-width) + var(--nb-total-width) + var(--nb-month-count) * 8rem));
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  background: #fffefa;
}
.nb-col-post { width: var(--nb-code-width); }
.nb-col-total { width: var(--nb-total-width); }
.nb-grid th, .nb-grid td { padding: 8px 12px; border-bottom: 1px solid var(--nb-line); text-align: right; }
.nb-grid thead th { position: sticky; top: 0; z-index: 3; background: var(--nb-teal); color: #fff; font-weight: 720; padding-block: 11px; white-space: nowrap; }
.nb-grid .nb-post, .nb-grid .nb-total { position: sticky; z-index: 2; }
.nb-grid .nb-post { left: 0; background: #fffefa; text-align: left; overflow-wrap: anywhere; }
.nb-grid .nb-total { left: var(--nb-code-width); background: #eaf2e7; font-weight: 750; color: #123f36; white-space: nowrap; }
.nb-grid thead .nb-post, .nb-grid thead .nb-total { z-index: 4; color: white; background: var(--nb-teal); }
.nb-grid thead .nb-total { color: #ddf6e5; }
.nb-grid .nb-child .nb-post { padding-left: 22px; font-weight: 520; }
.nb-grid .nb-post small { display: block; font-size: 10px; color: #42625a; }
.nb-grid tr:hover td:not(.nb-total), .nb-grid tr:hover .nb-post { background: #f5faf7; }
.nb-code { color: #4b6570; font-size: .86em; margin-right: 3px; }
.nb-conflict { border: 0; border-radius: 20px; padding: 3px 8px; background: #f8e1cc; color: #743b19; font-size: 11px; }
.nb-cell { display: block; text-align: right; width: 100%; min-height: 32px; padding: 4px 5px; border-radius: 6px; }
.nb-cell:not(:disabled):hover { background: #e9f4ec; }
.nb-cell:disabled { cursor: default; }
.nb-cell-editor input { width: 100%; }
.nb-cell-editor > div { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 4px; }
.nb-cell-editor button { min-height: 26px; padding: 2px 5px; font-size: 11px; }
.nb-grid .nb-empty { text-align: left; padding: 16px; }
.nb-caption { margin: 8px 0; font-size: 12px; color: #465c60; }
.nb-charges { border-top: 1px solid var(--nb-line); margin-top: 14px; padding-top: 9px; }
.nb-charges summary { cursor: pointer; color: var(--nb-teal); font-weight: 650; margin-bottom: 8px; }
.nexus-budget-page :focus-visible { outline: 2px solid #24796f; outline-offset: 2px; }
.nb-sr-only { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 767px) {
  .nexus-budget-workspace { --nb-code-width: 10rem; --nb-total-width: 8.5rem; }
  .nb-toolbar h2 { flex-basis: 100%; }
  .nb-grid th, .nb-grid td { padding-inline: 8px; }
}
