/* Insight Financial Reporting - V2 : institutional financial statement style.
   Off-white paper, navy type, one restrained gold rule, tabular figures. No glow, no gradients, no icon soup. */
:root {
  --paper: #f6f4ef;
  --sheet: #ffffff;
  --ink: #1d2733;
  --navy: #14294b;
  --navy-2: #2b4472;
  --muted: #6b7380;
  --faint: #9aa1ab;
  --rule: #dcd7cc;
  --rule-soft: #ebe8e1;
  --gold: #a07b3b;
  --fav: #2f6b45;
  --unfav: #a23a2e;
  --hover: #f3f1ec;
  --open: #faf9f6;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.45; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
.num { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }

/* ---------- masthead ---------- */
.mast { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.mast-in { max-width: 1240px; margin: 0 auto; padding: 14px 24px 12px; display: flex; align-items: center; gap: 16px; }
.mark { width: 30px; height: 30px; flex: none; }
.home-link { display: flex; align-items: center; gap: 16px; color: inherit; }
.home-link:hover { text-decoration: none; }
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--navy); letter-spacing: .2px; }
.brand span { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.mast .sp { flex: 1; }
.who { text-align: right; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.who b { color: var(--ink); font-weight: 600; }
.mast-links { display: flex; gap: 18px; font-size: 12.5px; }
.mast-links a { color: var(--navy-2); }
.goldrule { height: 2px; background: var(--gold); opacity: .75; }
.envbar { background: #fbf6e9; border-bottom: 1px solid #eadfc4; color: #6d5a2e; font-size: 12px; }
.envbar div { max-width: 1240px; margin: 0 auto; padding: 5px 24px; }

/* ---------- page ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 20px 24px 60px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin-bottom: 14px; }
.crumbs a { color: var(--navy-2); }
.crumbs .sep { color: var(--faint); }
.crumbs .cur { color: var(--ink); font-weight: 600; }

.titlerow { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; border-bottom: 1px solid var(--navy); padding-bottom: 12px; }
.title h1 { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 26px; margin: 0; letter-spacing: .1px; }
.title .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.title .sub b { color: var(--ink); font-weight: 600; }

.controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; text-align: left; }
.ctl { display: flex; flex-direction: column; gap: 2px; }
.ctl label { font-size: 10.5px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); }
select { font: inherit; font-size: 13px; color: var(--ink); background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; padding: 5px 26px 5px 8px; min-height: 31px;
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 13px) 13px, calc(100% - 9px) 13px; background-size: 4px 4px; background-repeat: no-repeat; }
select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--navy-2); outline-offset: 1px; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; background: var(--sheet); }
.seg button { border: 0; background: transparent; padding: 0 12px; min-height: 31px; font-size: 13px; color: var(--muted); cursor: pointer; border-right: 1px solid var(--rule); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--navy); color: #fff; }
.seg button:disabled { color: #c3c7cc; cursor: not-allowed; }

.status { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: 6px 22px; font-size: 12px; color: var(--muted); margin: 10px 0 18px; }
.status .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--fav); margin-right: 6px; vertical-align: 1px; }
.status .dot.warn { background: #b8862b; }
.status a { cursor: pointer; }

/* ---------- executive summary ---------- */
.summary { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--sheet); margin-bottom: 8px; }
.summary > div { padding: 14px 18px 12px; border-right: 1px solid var(--rule-soft); }
.summary > div:last-child { border-right: 0; }
.summary .k { font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.summary .v { font-family: var(--serif); font-size: 23px; color: var(--navy); margin-top: 2px; }
.summary .c { font-size: 12px; color: var(--muted); margin-top: 1px; }
.narrative { font-family: var(--serif); font-size: 15px; color: var(--ink); margin: 12px 2px 18px; text-align: center; }
.fav { color: var(--fav); }
.unfav { color: var(--unfav); }

/* ---------- statement ---------- */
.sheet { background: var(--sheet); border: 1px solid var(--rule); }
.stmt-wrap { overflow-x: auto; }
table.stmt { width: 100%; border-collapse: collapse; min-width: 720px; }
table.stmt th { font-size: 10.5px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); font-weight: 600; text-align: right; padding: 12px 14px 8px; border-bottom: 1.5px solid var(--navy); white-space: nowrap; vertical-align: bottom; }
table.stmt th:first-child { text-align: left; width: 44%; }
table.stmt th .yr { display: block; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--navy); font-weight: 600; }
table.stmt td { padding: 6px 14px; text-align: right; border-bottom: 1px solid var(--rule-soft); }
table.stmt td:first-child { text-align: left; }
tr.hdr td { padding-top: 16px; border-bottom: 0; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--navy); font-weight: 700; }
tr.line td:first-child { padding-left: 26px; }
tr.line.can { cursor: pointer; }
tr.line.can:hover td { background: var(--hover); }
tr.line .tog { display: inline-block; width: 14px; margin-left: -16px; color: var(--faint); font-size: 10px; transition: transform .12s; }
tr.line.isopen .tog { transform: rotate(90deg); color: var(--navy); }
tr.line.isopen td { background: var(--open); }
tr.gl td { font-size: 12.5px; color: #4b5563; background: var(--open); border-bottom-color: #f1efea; padding-top: 4px; padding-bottom: 4px; }
tr.gl td:first-child { padding-left: 46px; }
tr.gl .glc { color: var(--faint); margin-right: 8px; font-size: 11.5px; }
tr.gl.click { cursor: pointer; }
tr.gl.click:hover td { background: #f1eee7; }
tr.sub td { font-weight: 700; color: var(--navy); border-top: 1px solid var(--navy); border-bottom: 1px solid var(--rule); }
tr.sub td:first-child { padding-left: 14px; }
tr.tot td { font-weight: 700; color: var(--navy); border-top: 1px solid var(--navy); border-bottom: 1px solid var(--navy); background: #fbfaf7; }
tr.grand td { font-weight: 700; color: var(--navy); font-size: 15px; border-top: 1px solid var(--navy); border-bottom: 3px double var(--navy); background: #fbfaf7; padding-top: 9px; padding-bottom: 9px; }
tr.memo td { font-style: italic; color: var(--muted); border-bottom: 0; padding-top: 10px; }
tr.memo td:first-child { padding-left: 14px; }
.drill { margin-left: 10px; font-size: 11.5px; font-style: normal; font-weight: 400; color: var(--navy-2); border: 1px solid var(--rule); border-radius: 10px; padding: 0 8px; background: var(--sheet); cursor: pointer; }
.drill:hover { border-color: var(--navy-2); text-decoration: none; }
.info { color: var(--faint); cursor: help; margin-left: 4px; font-style: normal; }
.stmt-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 14px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--rule-soft); }
.ok { color: var(--fav); }
.bad { color: var(--unfav); }
td.na { color: var(--faint); }

/* ---------- sections below the statement ---------- */
.section { margin-top: 30px; }
.section > h2 { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 19px; margin: 0 0 2px; text-align: center; }
.section > .lead { color: var(--muted); font-size: 13px; margin: 0 0 10px; text-align: center; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { background: var(--sheet); border: 1px solid var(--rule); padding: 14px 16px 12px; }
.panel h3 { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--navy); margin: 0 0 8px; }
.panel .tag { font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; padding: 1px 7px; border-radius: 9px; margin-left: 6px; vertical-align: 1px; font-weight: 600; }
.tag.rec { background: #e8f1ea; color: var(--fav); }
.tag.ops { background: #eef1f6; color: var(--navy-2); }
.tag.ro { background: #f6efe1; color: #7a5d22; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: right; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--navy); white-space: nowrap; }
table.t th:first-child, table.t td:first-child { text-align: left; }
table.t td { padding: 5px 8px; border-bottom: 1px solid var(--rule-soft); text-align: right; }
table.t td.l { text-align: left; }
table.t tr.b td { font-weight: 700; color: var(--navy); border-top: 1px solid var(--navy); }
table.t tr.cat td { background: #f8f7f3; font-weight: 600; color: var(--navy); cursor: pointer; }
table.t tr.cat:hover td { background: #f1eee7; }
table.t tr.go { cursor: pointer; }
table.t tr.go:hover td { background: var(--hover); }
table.t tr.dim td { color: var(--faint); }
table.t .ind { padding-left: 22px; }
.tblwrap { overflow-x: auto; }
.note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.note b { color: var(--ink); font-weight: 600; }
.pill { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 9px; border: 1px solid var(--rule); color: var(--muted); white-space: nowrap; }
.pill.PENDING, .pill.REOPENED { color: #7a5d22; border-color: #e3d3ad; background: #fbf6e9; }
.pill.APPROVED { color: var(--fav); border-color: #c5dccb; background: #eef6f0; }
.pill.DENIED { color: var(--unfav); border-color: #e6c3be; background: #fbefed; }
.pill.closed { color: var(--unfav); border-color: #e6c3be; }
.pill.vac { color: #1f4f8f; border-color: #c4d3ea; background: #eef3fa; text-transform: uppercase; letter-spacing: .6px; font-weight: 600; font-size: 10px; }
.linkbtn { background: none; border: 0; color: var(--navy-2); cursor: pointer; padding: 0; font-size: inherit; }
.linkbtn:hover { text-decoration: underline; }
.btn { background: var(--navy); color: #fff; border: 0; border-radius: 3px; padding: 7px 14px; cursor: pointer; font-size: 13px; }
.btn.ghost { background: var(--sheet); color: var(--navy); border: 1px solid var(--rule); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13px; }
.kv div:nth-child(odd) { color: var(--muted); }
.kv div:nth-child(even) { text-align: right; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(20, 41, 75, .18); opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 20; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); background: var(--sheet); border-left: 1px solid var(--rule); box-shadow: -8px 0 30px rgba(20, 41, 75, .08);
  transform: translateX(100%); transition: transform .18s ease; z-index: 21; display: flex; flex-direction: column; }
.drawer.on { transform: none; }
.drawer .dh { padding: 16px 22px 12px; border-bottom: 1px solid var(--navy); display: flex; gap: 12px; align-items: flex-start; }
.drawer .dh h2 { font-family: var(--serif); color: var(--navy); font-size: 20px; margin: 0; font-weight: 600; }
.drawer .dh .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.drawer .dh .x { margin-left: auto; background: none; border: 1px solid var(--rule); border-radius: 3px; cursor: pointer; font-size: 13px; padding: 4px 10px; color: var(--muted); }
.drawer .db { padding: 16px 22px 40px; overflow-y: auto; }
.drawer .db .panel { margin-bottom: 16px; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login .card { width: 100%; max-width: 400px; background: var(--sheet); border: 1px solid var(--rule); border-top: 3px solid var(--navy); padding: 30px 32px 26px; }
.login img { width: 40px; }
.login h1 { font-family: var(--serif); color: var(--navy); font-size: 22px; margin: 10px 0 2px; font-weight: 600; }
.login .sub { color: var(--muted); font-size: 12.5px; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 22px; }
.login label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 4px; }
.login input { width: 100%; font: inherit; padding: 9px 10px; border: 1px solid var(--rule); border-radius: 3px; }
.login input:focus { outline: 2px solid var(--navy-2); outline-offset: 0; }
.login button { width: 100%; margin-top: 20px; padding: 10px; }
.login .err { color: var(--unfav); font-size: 13px; min-height: 18px; margin-top: 12px; }
.login .fine { font-size: 11.5px; color: var(--faint); margin-top: 16px; line-height: 1.5; }

/* ---------- navigation pages: landing, entity hubs, breadcrumbs + Back ---------- */
.navrow { position: relative; display: flex; justify-content: center; align-items: center; min-height: 32px; margin-bottom: 14px; }
.navrow .crumbs { margin: 0; padding: 0 96px; }
.back { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--navy); background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; padding: 5px 12px; }
.back:hover { border-color: var(--navy-2); text-decoration: none; }
.hero { text-align: center; padding: 22px 0 4px; }
.hero h1 { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 32px; margin: 0; letter-spacing: .2px; }
.hero .sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.hero .rule { width: 72px; height: 2px; background: var(--gold); opacity: .75; margin: 16px auto 0; }
.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 1040px; margin: 24px auto 0; }
.tile { flex: 0 1 228px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; padding: 22px 18px 18px; color: var(--ink); transition: border-color .12s, box-shadow .12s, transform .12s; }
a.tile:hover { text-decoration: none; border-color: var(--navy-2); box-shadow: 0 6px 18px rgba(20, 41, 75, .08); transform: translateY(-1px); }
.tile .ico { width: 46px; height: 46px; border-radius: 50%; background: #eef1f6; color: var(--navy-2); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.tile .ico svg { width: 24px; height: 24px; }
.tile .tn { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--navy); }
.tile .ts { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.tile .tt { font-size: 10.5px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--fav); margin-top: 2px; }
.tile.off { background: #fbfaf7; cursor: default; }
.tile.off .ico { opacity: .55; }
.tile.off .tn { color: var(--navy-2); opacity: .8; }
.tile.off .tt { color: var(--faint); }
.feat-row { margin-top: 28px; }
.tile.feat { flex: 0 1 460px; padding: 30px 28px 24px; border-top: 3px solid var(--navy); }
.tile.feat .ico { width: 60px; height: 60px; }
.tile.feat .ico svg { width: 30px; height: 30px; }
.tile.feat .tn { font-size: 25px; }
.tile.feat .ts { font-size: 13.5px; }
.lbl { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 1040px; margin: 34px auto 0; font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); }
.lbl::before, .lbl::after { content: ""; height: 1px; flex: 0 1 140px; background: var(--gold); opacity: .55; }
.tiles.big { margin-top: 30px; gap: 22px; }
.tiles.big .tile { flex: 0 1 310px; min-height: 230px; padding: 34px 26px 28px; justify-content: flex-start; gap: 8px; }
.tiles.big .tile .ico { width: 62px; height: 62px; margin-bottom: 8px; }
.tiles.big .tile .ico svg { width: 30px; height: 30px; }
.tiles.big .tile .tn { font-size: 22px; }
.tiles.big .tile .ts { font-size: 13px; max-width: 250px; }
.note.center { text-align: center; max-width: 720px; margin: 26px auto 0; }
/* additional entities: same tile as the hospitals; "not connected" status in the muted tag colour */
.tile.nc .tt { color: var(--faint); }
.tiles.hosp .tile .tn, .tile.feat .tn { text-transform: uppercase; }   /* Corporate + hospital names in capitals, like the entity codes */
.tiles.ent .tile { padding-left: 12px; padding-right: 12px; }   /* same 228px tile; a little more room so each full name stays on one line */
.tiles.ent .tile .ts { font-size: 12px; white-space: nowrap; }
.nc-card { max-width: 560px; margin: 30px auto 0; text-align: center; background: var(--sheet); border: 1px solid var(--rule); border-top: 3px solid var(--navy); border-radius: 4px; padding: 30px 32px 24px; }
.nc-card .nc-ico .ico { width: 56px; height: 56px; border-radius: 50%; background: #eef1f6; color: var(--navy-2); display: inline-flex; align-items: center; justify-content: center; }
.nc-card .nc-ico svg { width: 28px; height: 28px; }
.nc-card h2 { font-family: var(--serif); color: var(--navy); font-size: 22px; margin: 12px 0 8px; }
.nc-card p { margin: 0 0 8px; color: var(--ink); }
/* laptop screens: tighten only the vertical spacing of the landing page so all three sections fit without scrolling */
@media (min-width: 561px) and (max-height: 900px) {
  .page:has(.tiles.ent) { padding-top: 4px; padding-bottom: 6px; }
  .hero { padding-top: 2px; }
  .hero h1 { font-size: 28px; }
  .hero .rule { margin-top: 8px; }
  .feat-row { margin-top: 8px; }
  .tile.feat { padding: 16px 28px 14px; gap: 4px; }
  .tile.feat .ico { width: 48px; height: 48px; margin-bottom: 0; }
  .tile.feat .ico svg { width: 26px; height: 26px; }
  .lbl { margin-top: 8px; }
  .tiles { margin-top: 7px; row-gap: 12px; }
}

.loading { padding: 80px 0; text-align: center; color: var(--muted); font-family: var(--serif); font-size: 16px; }
.empty { padding: 16px; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .summary { grid-template-columns: 1fr 1fr; }
  .summary > div:nth-child(2) { border-right: 0; }
  .summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule-soft); }
  .cols { grid-template-columns: 1fr; }
  .who { display: none; }
}
.summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.summary > div { min-width: 0; }
.summary .c { white-space: normal; }
@media (max-width: 900px) { .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .summary > div { padding: 10px 12px; }
  .controls, .ctl, select { max-width: 100%; }
  .mast-in, .page, .envbar div { padding-left: 16px; padding-right: 16px; }
  .title h1 { font-size: 21px; }
  .summary .v { font-size: 19px; }
  .brand span { display: none; }
  .navrow { flex-direction: column; gap: 10px; }
  .navrow .crumbs { padding: 0; }
  .back { position: static; transform: none; }
  .hero h1 { font-size: 25px; }
  .tiles { gap: 12px; }
  .tile { flex-basis: calc(50% - 6px); padding: 18px 10px 14px; }
  .tile.feat, .tiles.big .tile { flex-basis: 100%; }
  .tiles.big .tile { min-height: 0; padding: 26px 20px 22px; }
}
@media print {
  .mast-links, .controls, .drill, .scrim, .drawer, .envbar, .back { display: none !important; }
  body, .page { background: #fff; }
}

/* ----- Leadership note: budgeted vacancies in Payroll and Staffing (2026-11-19) ----- */
.lnote { display: flex; gap: 12px; align-items: flex-start; background: #fbf6e9; border: 1px solid #e3d3ad; border-left: 4px solid var(--gold); padding: 11px 14px; margin: 0 0 16px; color: var(--ink); font-size: 13px; line-height: 1.45; }
.lnote .lk { font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700; color: #7a5d22; white-space: nowrap; padding-top: 2px; }
.lnote b { font-weight: 700; color: var(--navy); }
.section > .lnote { max-width: 980px; margin: 0 auto 14px; }
/* ----- end Leadership note ----- */
/* ----- Budget Summary (2026-11-23): in-page executive review + hospital approval (web\app\summary.js) ----- */
.bsbtn { font: inherit; font-size: 13px; min-height: 31px; padding: 0 14px; border: 1px solid var(--gold); border-radius: 3px; background: var(--sheet); color: var(--navy); font-weight: 600; letter-spacing: .2px; cursor: pointer; }
.bsbtn:hover { background: #fbf6e9; }
.bsbtn.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.bs { margin-top: 14px; }
.bs-head { position: relative; text-align: center; padding: 8px 0 0; min-height: 40px; }
.bs-head .back { top: 22px; }
.bs-head h2 { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 22px; margin: 0; letter-spacing: .1px; }
.bs-head .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.bs-head .sub b { color: var(--ink); font-weight: 600; }
.bs-head .rule { width: 72px; height: 2px; background: var(--gold); opacity: .75; margin: 10px auto 0; }
.bs-hstat { position: absolute; right: 0; top: 22px; transform: translateY(-50%); }
.bs-hstat .pill { font-size: 12px; padding: 3px 12px; }
.bs-mi { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; margin: 12px 0 0; font-size: 11.5px; }
.bs-mi span { border: 1px solid var(--rule); background: #fbfaf7; border-radius: 12px; padding: 2px 10px; color: var(--faint); }
.bs-mi span.live { background: var(--sheet); color: var(--navy); border-color: #c9d3e3; font-weight: 600; }
.bs-alert { max-width: 1040px; margin: 12px auto 0; }
.bs-sb { margin: 8px auto 0; max-width: 900px; }
.bs-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--sheet); margin: 14px 0 14px; }
.bs-cards > div { padding: 12px 16px 10px; border-right: 1px solid var(--rule-soft); min-width: 0; }
.bs-cards > div:last-child { border-right: 0; background: #fbfaf7; }
.bs-cards .k, .bs-chg .k { font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.bs-cards .v { font-family: var(--serif); font-size: 21px; color: var(--navy); margin: 2px 0 3px; }
.bs-cards .c { display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.bs-cards .c span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bs-prog { height: 6px; background: var(--rule-soft); border-radius: 3px; overflow: hidden; margin: 6px 0 5px; }
.bs-prog i { display: block; height: 100%; background: var(--fav); }
.bs-layers table.t th .yr, .bs-vt2 th .yr { display: block; font-size: 10.5px; letter-spacing: 0; text-transform: none; color: var(--navy); font-weight: 600; }
.bs-layers table.t th, .bs-layers table.t td { padding-left: 10px; padding-right: 10px; }
.bs-layers table.t thead th { vertical-align: bottom; white-space: normal; }
.bs-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 22px 0 8px; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.bs-bar h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 17px; margin: 0; }
.bs-basis { flex-direction: row; align-items: center; gap: 8px; }
.bs-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.chip { display: inline-block; font-size: 10.5px; padding: 1px 7px; border-radius: 9px; background: #eef1f6; color: var(--navy-2); margin: 1px 4px 1px 0; white-space: nowrap; font-weight: 600; letter-spacing: .2px; }
.chip.warn { background: #fbefed; color: var(--unfav); }
.chip.gold { background: #fbf6e9; color: #7a5d22; }
.bs-why { line-height: 1.7; }
table.t tr.sel td { background: #f1eee7; }
.bs-scroll { max-height: 390px; overflow: auto; }
.bs-scroll thead th { position: sticky; top: 0; background: var(--sheet); z-index: 1; }
.bs-rules { margin-top: 0; }
.bs-rulesp { margin: 6px 0 10px; }
.bs-rgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; font-size: 11.5px; color: var(--muted); }
.bs-rgrid label { display: flex; flex-direction: column; gap: 3px; }
.bs-rgrid input[type=number], .bs-rgrid select { font: inherit; font-size: 13px; color: var(--ink); border: 1px solid var(--rule); border-radius: 3px; padding: 5px 8px; background-color: var(--sheet); min-height: 31px; }
.bs-rgrid label.cb { flex-direction: row; align-items: center; gap: 6px; padding-top: 16px; }
.bs-ver { margin-top: 18px; border-top: 3px solid var(--navy); }
.bs-ver.bs-empty { border-top: 1px solid var(--rule); }
.bs-ver-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.bs-vt { font-family: var(--serif); font-size: 20px; color: var(--navy); font-weight: 600; }
.bs-vt .glc { font-family: var(--sans); color: var(--faint); font-size: 13px; margin-right: 8px; font-weight: 400; }
.glc { color: var(--faint); margin-right: 8px; font-size: 11.5px; }
.bs-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.bs-ver-h .bs-actions { margin-top: 0; }
.btn.sm { padding: 5px 11px; font-size: 12.5px; }
.btn.ok { background: var(--fav); }
.btn.warn { background: var(--unfav); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
a.btn { display: inline-block; color: #fff; }
a.btn.ghost { color: var(--navy); }
a.btn:hover { text-decoration: none; filter: brightness(1.08); }
.bs-checks { display: grid; gap: 3px; font-size: 12.5px; color: var(--ink); background: #fbfaf7; border: 1px solid var(--rule-soft); padding: 8px 12px; margin: 4px 0 12px; }
.bs-checks .ok, .bs-checks .bad { font-weight: 700; margin-right: 4px; }
.bs-chg { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 10px; }
.bs-chg > div { padding: 8px 12px; border-right: 1px solid var(--rule-soft); min-width: 0; }
.bs-chg > div:last-child { border-right: 0; }
.bs-chg .v { font-family: var(--serif); font-size: 17px; margin-top: 1px; }
.bs-chg .c { font-size: 11.5px; color: var(--muted); }
.bs-chg .chip { font-size: 9.5px; letter-spacing: .3px; text-transform: none; vertical-align: 1px; }
table.stmt.bs-vt2 { min-width: 860px; }
table.stmt.bs-vt2 th:first-child { width: 34%; }
table.stmt.bs-vt2 th { white-space: normal; }
tr.bs-gl td:first-child { padding-left: 34px; }
tr.bs-gl .tog2 { display: inline-block; width: 12px; color: var(--faint); font-size: 10px; margin-left: -14px; }
table.stmt tr.bs-det > td { background: var(--open); padding: 6px 14px 10px 46px; text-align: left; }
table.t.bs-mt { font-size: 11.5px; }
table.t.bs-mt th, table.t.bs-mt td { padding: 3px 5px; border-bottom-color: #ebe8e1; }
textarea.bs-note { width: 100%; font: inherit; font-size: 13px; color: var(--ink); border: 1px solid var(--rule); border-radius: 3px; padding: 7px 9px; min-height: 52px; resize: vertical; margin-top: 10px; background: var(--sheet); }
textarea.bs-note:focus { outline: 2px solid var(--navy-2); outline-offset: 0; }
ul.bs-list { list-style: none; margin: 0; padding: 0; }
ul.bs-list li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid var(--rule-soft); font-size: 13px; }
ul.bs-list li > span { font-weight: 700; width: 14px; flex: none; }
ul.bs-list b { font-weight: 600; color: var(--ink); }
@media (max-width: 1100px) { .bs-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bs-chg, .bs-rgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .bs-grid2 { grid-template-columns: minmax(0, 1fr); } .bs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bs-hstat { position: static; transform: none; margin-top: 8px; } .bs-head .back { position: static; transform: none; margin-bottom: 8px; } }
@media print { .bsbtn, .bs-actions, textarea.bs-note, .bs-head .back, #bsFilter, #bsBasis { display: none !important; } .bs-scroll { max-height: none; overflow: visible; } }
/* ----- end Budget Summary ----- */.bs-cards .c i { font-style: normal; color: var(--faint); margin-left: 2px; }
table.t th.l { text-align: left; }
.bs-grid2 table.t td.l:first-child { max-width: 230px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-scroll table.t td:first-child { white-space: nowrap; }
.bs-scroll table.t td.bs-why { width: 46%; white-space: normal; line-height: 1.9; }
.bs-scroll table.t td.bs-why .chip { margin-top: 0; margin-bottom: 0; }
table.stmt.bs-vt2 { table-layout: fixed; min-width: 900px; }
table.stmt.bs-vt2 th:first-child { width: 31%; }
table.stmt.bs-vt2 > tbody > tr > td:first-child { white-space: normal; }
table.stmt.bs-vt2 > tbody > tr > td, table.stmt.bs-vt2 > thead > tr > th { padding-left: 8px; padding-right: 8px; }
tr.bs-det td .tblwrap { max-width: 100%; overflow-x: auto; }
table.t.bs-mt td:first-child { white-space: nowrap; }
table.t.bs-mt { font-size: 11px; }
table.stmt.bs-vt2 > tbody > tr.line > td:first-child { padding-left: 26px; }
table.stmt.bs-vt2 > tbody > tr.bs-gl > td:first-child { padding-left: 42px; }
table.stmt.bs-vt2 > tbody > tr.sub > td:first-child, table.stmt.bs-vt2 > tbody > tr.tot > td:first-child, table.stmt.bs-vt2 > tbody > tr.grand > td:first-child { padding-left: 12px; }

/* ----- Budget Summary page (2026-11-24 redesign, web\app\summary.js): one compact page for the hospital budget approver.
   Same palette, fonts and components as the statement; sized to fit a laptop screen at 100% zoom. ----- */
.na { color: var(--faint); }
.neu { color: var(--muted); }
.bsx .navrow { margin-bottom: 6px; }
.bsx-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; border-bottom: 1px solid var(--navy); padding-bottom: 8px; }
.bsx-ht { text-align: center; }
.bsx-ht h1 { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 23px; margin: 0; letter-spacing: .1px; }
.bsx-ht .sub { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.bsx-ht .sub b { color: var(--ink); font-weight: 600; }
.bsx-hl .pill { font-size: 12px; padding: 3px 12px; }
.bsx-hr { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.bsx-hr label { font-size: 10.5px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); }
.bsx-msg { margin: 8px 0 0; padding: 7px 12px; }
.bsx-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); background: var(--sheet); margin: 0 0 12px; }
.bsx-tiles > div { padding: 7px 16px 6px; border-right: 1px solid var(--rule-soft); min-width: 0; }
.bsx-tiles > div:last-child { border-right: 0; }
.bsx-tiles .k { font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.bsx-tiles .v { font-family: var(--serif); font-size: 22px; color: var(--navy); margin: 0 0 2px; }
.bsx-tiles .c { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.bsx-tiles .c span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.bsx-tiles .c i { font-style: normal; font-weight: 400; margin-left: 3px; }
.bsx-main { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 10px; align-items: stretch; }
.bsx-left, .bsx-right { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bsx-sum table.t th, .bsx-sum table.t td { padding: 4px 12px; }
.bsx-sum table.t th { padding-top: 7px; }
.bsx-sum td.cur { font-weight: 600; color: var(--navy); }
.bsx-sum td.cmp { background: #fbf8f0; }
.bsx-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; padding: 5px 12px; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--rule-soft); }
.bsx-drv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 384px; gap: 10px; margin-top: 10px; align-items: stretch; }
.bsx-drv .panel, .bsx-appr, .bsx-trk { padding: 9px 12px 8px; }
.bsx-drv .panel h3, .bsx-trk h3 { margin-bottom: 4px; }
.bsx-drv table.t { font-size: 12.5px; }
.bsx-drv table.t th, .bsx-drv table.t td { padding: 3px 5px; }
.bsx-drv table.t th { white-space: normal; vertical-align: bottom; }
td.bsx-dn { white-space: normal; line-height: 1.25; }
.bsx-dnote { margin: 0; font-size: 11.5px; line-height: 1.4; }
.bsx-dag { color: var(--gold); font-weight: 700; margin-left: 2px; }
.bsx-ph { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.bsx-ph h3 { margin: 0; }
.bsx-appr .kv { font-size: 12.5px; gap: 1px 12px; }
.bsx-last { font-size: 12px; margin: 7px 0 0; padding: 5px 8px; background: #fbfaf7; border: 1px solid var(--rule-soft); color: var(--ink); }
.bsx-last.ok { color: var(--fav); }
.bsx-last.bad { color: var(--unfav); }
.bsx-btns .btn { min-width: 132px; }
.bsx-confirm { margin-top: 8px; padding: 8px 10px; border: 1px solid #e3d3ad; background: #fbf6e9; font-size: 12.5px; }
.bsx-confirm .note { margin-top: 3px; }
.bsx-confirm textarea.bs-note { margin-top: 6px; min-height: 46px; }
textarea.bs-note.need { border-color: var(--unfav); outline: 1px solid var(--unfav); }
.bsx-env { font-size: 11px; margin: 6px 0 0; }
.bsx-trk table.t { font-size: 12px; }
.bsx-trk table.t th, .bsx-trk table.t td { padding: 3px 4px; }
.bsx-who { font-size: 12.5px; color: var(--muted); margin: -2px 0 5px; }
.bsx-who b { color: var(--ink); font-weight: 600; }
.bsx-sum { display: flex; flex-direction: column; justify-content: space-between; }
.bsx-trk td.na { text-align: center; font-style: italic; }
.bsx-trk .pill { font-size: 10.5px; padding: 0 6px; }
button.bsx-exp { display: inline-flex; flex: none; align-items: center; gap: 8px; margin: 0; background: var(--sheet); border: 1px solid var(--gold); border-radius: 3px; padding: 5px 12px; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--navy); cursor: pointer; }
button.bsx-exp:hover { background: #fbf6e9; }
button.bsx-exp .tog { font-size: 10px; color: var(--faint); transition: transform .12s; }
button.bsx-exp.on .tog { transform: rotate(90deg); color: var(--navy); }
button.bsx-exp .note { margin: 0 0 0 auto; font-family: var(--sans); }
.bsx-detail .bs-bar { margin-top: 12px; }
.bs-chg.bsx-k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
table.t.bsx-bridge { margin-top: 6px; background: var(--sheet); font-size: 12.5px; }
@media (min-width: 901px) and (max-height: 900px) { .page:has(.bsx) { padding-top: 8px; padding-bottom: 16px; } }
@media (max-width: 1100px) { .bsx-main { grid-template-columns: minmax(0, 1fr); } .bsx-drv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .bsx-drv .bsx-trk { grid-column: 1 / -1; } }
@media (max-width: 760px) { .bsx-head { grid-template-columns: minmax(0, 1fr); text-align: center; } .bsx-hr { justify-content: center; } .bsx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bsx-drv { grid-template-columns: minmax(0, 1fr); } }
@media print { #bsBasis, .bsx-btns, .bsx-confirm, button.bsx-exp .note, .bsx-env .linkbtn { display: none !important; } }
.page:has(.bsx) { max-width: 1360px; }
.bsx-foot2 { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 7px; }
.bsx-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 2px 0 4px; }
.bsx-kv > div { background: #fbfaf7; border: 1px solid var(--rule-soft); padding: 4px 8px; min-width: 0; }
.bsx-kv span { display: block; font-size: 10px; letter-spacing: .9px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.bsx-kv b { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--navy); }
.bsx-val { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.bsx-val b { color: var(--ink); font-weight: 600; }
.bsx-drv table.t th { white-space: nowrap; }
.bsx-btns { margin-top: 7px; }
.bsx-cmp { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 8px; }
.bsx-cmp label { font-size: 10.5px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); }
.bsx .navrow .crumbs { padding: 0 340px; }
.bsx-head { display: block; padding-bottom: 6px; }
.bsx-tiles > div { padding: 6px 14px 5px; }
.bsx-tiles .v { font-size: 21px; line-height: 1.2; }
.bsx-tiles .c { line-height: 1.35; }
.bsx-drv table.t td { padding: 2px 5px; }
.bsx-trk table.t td { padding: 2px 4px; }
@media (max-width: 1100px) { .bsx .navrow { flex-direction: column; gap: 8px; } .bsx .navrow .crumbs { padding: 0; } .bsx-cmp { position: static; transform: none; } }
.bsx .navrow { margin-bottom: 2px; }
.bsx-head { padding-bottom: 5px; }
.bsx-tiles { margin-bottom: 8px; }
.bsx-drv { margin-top: 8px; }
.bsx-trk h3, .bsx-drv .panel h3 { margin-bottom: 2px; }
@media (min-width: 901px) and (max-height: 900px) { .page:has(.bsx) { padding-top: 4px; padding-bottom: 10px; } }
.bsx-sum > table.t { flex: 1 1 auto; }
.bsx-last { font-size: 11.5px; padding: 3px 8px; margin-top: 5px; }
.bsx-kv { margin: 0 0 3px; }
.bsx-kv > div { padding: 2px 8px; }
.bsx-ph { margin-bottom: 3px; }
.bsx-env { margin-top: 4px; }
.bsx-trk table.t { table-layout: auto; }
.bsx-trk table.t td.num { font-size: 11.5px; }
.bsx-trk .pill { font-size: 10px; padding: 0 5px; }
.bsx-trk table.t th:last-child, .bsx-trk table.t td:last-child { text-align: right; padding-right: 0; }
.bsx-detail .bs-scroll { max-height: 440px; }
.bsx-detail table.t { font-size: 12.5px; }
.bsx-detail table.t td, .bsx-detail table.t th { padding: 4px 7px; white-space: nowrap; }
.bsx-detail table.t td.bs-why { width: 300px; min-width: 240px; max-width: 300px; white-space: normal; line-height: 1.5; }
.bsx-detail table.t td.bs-why .chip { font-size: 10px; padding: 0 6px; margin: 1px 3px 1px 0; }
.drawer:has(.bsx-k4) { width: min(980px, 100vw); }
.drawer:has(.bsx-k4) table.stmt.bs-vt2 { min-width: 0; }
.drawer:has(.bsx-k4) table.stmt.bs-vt2 th:first-child { width: 36%; }
/* Budget Review & Support panel (replaces the hospital tracker, same place and size) */
.bsx-sup { padding: 9px 12px 8px; display: flex; flex-direction: column; gap: 6px; }
.bsx-sup h3 { margin: 0 0 1px; }
button.bsx-supb { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; background: #fbfaf7; border: 1px solid var(--rule); border-left: 3px solid var(--gold); border-radius: 3px; padding: 6px 10px; cursor: pointer; font: inherit; color: var(--ink); }
button.bsx-supb:hover { background: #fbf6e9; border-color: var(--navy-2); border-left-color: var(--gold); }
button.bsx-supb b { font-size: 13px; font-weight: 600; color: var(--navy); }
button.bsx-supb span { font-size: 11.5px; color: var(--muted); }
/* drill-down windows */
.drawer:has(.bsx-vt), .drawer:has(.bsx-lt), .drawer:has(.bsx-grid), .drawer:has(.bsx-up) { width: min(1100px, 100vw); }
.bsx-back { font-size: 12.5px; margin: 0 0 8px; }
.bsx-vt table.t td, .bsx-lt table.t td, .bsx-vt table.t th, .bsx-lt table.t th { padding: 4px 7px; }
.bsx-vt table.t td.bsx-vst { white-space: normal; max-width: 330px; font-size: 12px; }
.bsx-vt table.t td.bsx-vst .note { margin: 0; }
tr.bsx-exrow td { background: #fbf6e9; }
.bsx-vt table.t td:nth-child(2), .bsx-vt table.t td .btn, td.bsx-wba .btn { white-space: nowrap; }
.bsx-vt .bs-scroll, .drawer .bs-scroll { max-height: 62vh; }
.bsx-up .bsx-upg { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr 1.4fr; gap: 10px; font-size: 11.5px; color: var(--muted); }
.bsx-up label { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bsx-up input[type=text], .bsx-up input[type=file] { font: inherit; font-size: 12.5px; color: var(--ink); border: 1px solid var(--rule); border-radius: 3px; padding: 5px 8px; background: var(--sheet); min-height: 31px; max-width: 100%; }
.bsx-up select { max-width: 100%; }
td.bsx-wba { white-space: nowrap; text-align: right; }
td.bsx-wba .btn { margin-left: 4px; }
.bsx-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.bsx-tabs button { border: 1px solid var(--rule); background: var(--sheet); color: var(--navy-2); border-radius: 3px 3px 0 0; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.bsx-tabs button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.bsx-grid { max-height: 64vh; overflow: auto; border: 1px solid var(--rule); background: var(--sheet); }
.bsx-grid table { border-collapse: collapse; font-size: 11.5px; }
.bsx-grid th { position: sticky; top: 0; background: #f3f1ec; color: var(--muted); font-weight: 600; padding: 2px 6px; border: 1px solid var(--rule-soft); z-index: 1; }
.bsx-grid tbody th { position: sticky; left: 0; text-align: right; z-index: 0; }
.bsx-grid td { padding: 2px 6px; border: 1px solid var(--rule-soft); white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.bsx-grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
/* ----- end Budget Summary page ----- */
/* ----- Interactive Budget Summary (2026-11-24, web\app\summary.js): the Statement of Operations layout with an editable 2027 Budget
   column, all departments ranked by net income, Adjustment History, Supporting Budget Workbooks and one Approve Final Budget button.
   Same palette, fonts and statement classes as the P&L. ----- */
.page:has(.bse) { max-width: 1360px; }
@media (min-width: 901px) and (max-height: 900px) { .page:has(.bse) { padding-top: 4px; padding-bottom: 8px; } }
.bse .navrow { margin-bottom: 0; min-height: 26px; }
.bse-title { text-align: center; padding: 2px 0 6px; }
.bse-title h1 { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 23px; margin: 0; letter-spacing: .1px; }
.bse-title .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.bse-title .pill.bse-st { font-size: 11.5px; padding: 1px 10px; margin-right: 4px; font-weight: 600; }
.bse-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; border-bottom: 1px solid var(--navy); padding-bottom: 7px; }
.bse-tl { justify-self: start; }
.bse-tc { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.bse-tr { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.bse .back.bse-back { position: static; transform: none; }
.bse-tools .btn { min-height: 31px; padding: 5px 13px; font-weight: 600; }
.bse-tools .btn.ghost.on { background: #fbf6e9; border-color: var(--gold); color: var(--navy); opacity: 1; }
.bse-cnt { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--navy-2); background: #eef1f6; border-radius: 9px; padding: 0 7px; }
.btn.ok.bse-appr { min-width: 172px; letter-spacing: .2px; }
.btn.ok.bse-appr:disabled { opacity: .5; }
.lnote.bse-ebar, .lnote.bse-msg { margin: 7px 0 0; padding: 7px 12px; align-items: center; }
.bse-ebar > div:nth-child(2) { flex: 1; }
.bse-eb { display: flex; gap: 6px; flex: none; }
.bse-msg > div { flex: 1; }
.bsx-tiles.bse-tiles { margin: 0 0 6px; }
.bse-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; margin: 0 0 6px; }
.bse-bl { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; white-space: nowrap; min-width: 0; }
.bse-bc { display: flex; align-items: center; gap: 8px; }
.bse-bc label { font-size: 10.5px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); }
.bse-br { justify-self: end; display: flex; gap: 6px; font-size: 12.5px; }
.bse-bar .seg button { min-height: 28px; font-size: 12.5px; padding: 0 10px; }
.bse-thr { font-size: 12px; color: var(--muted); }
.bse-scroll { overflow: auto; }
table.stmt.bse-t { min-width: 900px; table-layout: fixed; }
table.stmt.bse-t col.c0 { width: 40%; }
table.stmt.bse-t col.c5 { width: 8%; }
table.stmt.bse-t thead th { position: sticky; top: var(--bse-top, 0px); background: var(--sheet); z-index: 4; padding-top: 8px; padding-bottom: 6px; white-space: normal; box-shadow: 0 1px 0 var(--navy); }
table.stmt.bse-t thead th .yr { font-size: 11px; line-height: 1.25; }
table.stmt.bse-t th.cmp { background: #fbf8f0; }
table.stmt.bse-t td.cmp { background-color: rgba(160, 123, 59, .045); }
table.stmt.bse-t td { padding: 5px 12px; }
table.stmt.bse-t th { padding-left: 12px; padding-right: 12px; }
table.stmt.bse-t td:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
tr.bse-d td { font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--rule); cursor: pointer; background: var(--sheet); }
tr.bse-d:hover td { background: var(--hover); }
tr.bse-d.isopen td { background: #f6f3ea; border-bottom-color: var(--navy); }
tr.bse-d .tog, tr.bse-d.isopen .tog { display: inline-block; width: 14px; color: var(--faint); font-size: 10px; transition: transform .12s; }
tr.bse-d.isopen .tog { transform: rotate(90deg); color: var(--navy); }
.bse-rk { display: inline-block; min-width: 22px; text-align: right; margin-right: 8px; font-size: 11px; color: var(--faint); font-weight: 400; }
tr.bse-d .glc { font-weight: 400; }
tr.bse-dx td { font-weight: 600; color: var(--navy-2); }
tr.bse-d.bse-tot td { font-size: 15px; font-weight: 700; color: var(--navy); border-top: 1px solid var(--navy); border-bottom: 3px double var(--navy); background: #fbfaf7; padding-top: 8px; padding-bottom: 8px; }
tr.bse-x.hdr td { padding-left: 34px; padding-top: 9px; font-size: 10.5px; }
tr.bse-x.line td:first-child { padding-left: 50px; }
tr.bse-x.line .tog { margin-left: -16px; }
tr.bse-x.gl td:first-child { padding-left: 70px; }
tr.bse-x.sub td:first-child, tr.bse-x.tot td:first-child, tr.bse-x.grand td:first-child, tr.bse-x.memo td:first-child { padding-left: 34px; }
tr.bse-x.grand td { font-size: 13.5px; padding-top: 6px; padding-bottom: 6px; border-bottom-width: 3px; }
tr.bse-x.memo td { padding-top: 3px; font-size: 12.5px; }
tr.bse-dbar td { background: var(--open); padding: 6px 12px 6px 34px; text-align: left; border-bottom: 1px solid var(--rule-soft); white-space: normal !important; }
tr.bse-dbar td > div { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
tr.bse-dbar .note { margin: 0; }
.bse-lab { margin: 6px 0 0; line-height: 1.45; max-width: 1100px; }
.bse-dv { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; }
tr.bse-vr td { background: #fdf8f7; padding: 3px 12px 5px 66px; font-size: 12px; text-align: left; white-space: normal !important; border-bottom: 1px solid var(--rule); }
.bse-vi { display: inline-block; margin: 1px 16px 1px 0; color: var(--ink); font-size: 12px; }
.bse-vi b { font-weight: 600; color: var(--unfav); }
.bse-vi.x b { color: var(--muted); text-decoration: line-through; }
.bse-vi .note { margin: 0; }
.chip.bse-cx { background: #f1efea; color: var(--faint); text-decoration: line-through; }
tr.bse-d .chip { margin-left: 6px; font-size: 10px; vertical-align: 1px; }
td.bse-mat { background-color: #fbefed !important; font-weight: 700; }
.bse-edm { margin-left: 8px; font-size: 10.5px; font-weight: 600; color: var(--gold); letter-spacing: .3px; }
.bse-dot { margin-left: 6px; color: var(--gold); font-size: 9px; vertical-align: 2px; }
.bse-ed { border-bottom: 2px dotted var(--gold); cursor: help; }
.bse-ed.pend { background: #fbf6e9; }
input.bse-in { width: 100%; box-sizing: border-box; font: inherit; font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); background: #fffdf6; border: 1px solid #e3d3ad; border-radius: 2px; padding: 1px 5px; min-height: 22px; }
input.bse-in:focus { outline: 2px solid var(--navy-2); outline-offset: 0; background: #fff; }
input.bse-in.adj { border-left: 3px solid var(--gold); }
input.bse-in.pend { background: #fbf0d6; border-color: var(--gold); font-weight: 600; }
input.bse-in.bad { border-color: var(--unfav); outline: 1px solid var(--unfav); }
button.bse-sb { float: left; border: 1px solid #e3d3ad; background: #fbf6e9; color: var(--navy); border-radius: 3px; font-size: 11px; line-height: 1; padding: 2px 6px; cursor: pointer; }
button.bse-sb:hover { border-color: var(--navy-2); }
.bse-none { text-align: center !important; color: var(--muted); padding: 18px !important; }
.bse-foot { font-size: 11.5px; padding: 6px 12px; flex-wrap: nowrap; }
.bse-foot > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bse-foot > span:last-child { white-space: nowrap; }
@keyframes bseflash { from { background: #fbf0d6; } to { background: var(--sheet); } }
tr.bse-d.flash td { animation: bseflash 1.6s ease-out; }
/* modal (Save Draft, subtotal allocation, approval confirmation, notes); sits under the drawer so a drawer can open on top */
.bse-ov { position: fixed; inset: 0; background: rgba(20, 41, 75, .22); z-index: 18; display: flex; align-items: flex-start; justify-content: center; padding-top: 5vh; }
.bse-modal { background: var(--sheet); border: 1px solid var(--rule); border-top: 3px solid var(--navy); width: min(1040px, 94vw); max-height: 88vh; overflow: auto; padding: 16px 22px 16px; box-shadow: 0 18px 50px rgba(20, 41, 75, .18); }
.bse-modal h2 { font-family: var(--serif); color: var(--navy); font-size: 20px; margin: 0 0 4px; font-weight: 600; }
.bse-modal .note { margin-top: 4px; }
.bse-mb { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.bse-mb .sp { flex: 1; }
.bse-merr { font-size: 12.5px; margin: 8px 0 0; }
.bse-msc { max-height: 46vh; overflow: auto; margin-top: 8px; border: 1px solid var(--rule-soft); }
.bse-msc thead th { position: sticky; top: 0; background: var(--sheet); z-index: 1; }
.bse-msc table.t td, .bse-msc table.t th { padding: 4px 6px; }
.bse-msc select { min-height: 26px; padding: 2px 24px 2px 6px; font-size: 12px; background-position: calc(100% - 13px) 10px, calc(100% - 9px) 10px; }
label.bse-lbl { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--muted); margin-top: 8px; }
label.bse-lbl input, input.bse-rs, .bse-subg input { font: inherit; font-size: 13px; color: var(--ink); border: 1px solid var(--rule); border-radius: 3px; padding: 5px 8px; background: var(--sheet); }
input.bse-rs { width: 100%; min-width: 160px; font-size: 12.5px; padding: 3px 6px; }
input.bse-mi { width: 76px; font: inherit; font-size: 11.5px; text-align: right; border: 1px solid var(--rule); border-radius: 2px; padding: 1px 4px; }
input.bse-mi.wide { width: 130px; font-size: 12.5px; }
tr.bse-mo td { background: var(--open); }
.bse-subg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.bse-subg > div, .bse-subg > label { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--muted); background: #fbfaf7; border: 1px solid var(--rule-soft); padding: 6px 10px; }
.bse-subg b { font-family: var(--serif); font-size: 17px; color: var(--navy); font-weight: 600; }
table.t.bse-at { margin-top: 8px; font-size: 13.5px; }
table.t.bse-at td, table.t.bse-at th { padding: 5px 10px; }
.bsx-kv.bse-ak { margin-top: 10px; }
.bsx-kv.bse-ak b { font-size: 16px; }
ul.bse-chk li { padding: 4px 0; font-size: 12.5px; }
.bse-ht table.t td { padding: 4px 6px; font-size: 12.5px; vertical-align: top; }
.bse-ht table.t td.bse-hr { white-space: normal; max-width: 240px; }
.bse-ht table.t tr.dim td { color: var(--faint); }
.drawer:has(.bse-ht) { width: min(1180px, 100vw); }
@media (max-width: 1100px) { .bse-tools, .bse-bar { grid-template-columns: minmax(0, 1fr); justify-items: center; } .bse-tl, .bse-br { justify-self: center; } }
@media print { .bse-tools, .bse-bar, .bse-ebar, .bse-ov, button.bse-sb { display: none !important; } .bse-scroll { max-height: none !important; overflow: visible; } }
/* ----- end Interactive Budget Summary ----- */
/* ----- Budget Summary simplification (2026-11-24 PM): 7 columns, 3 lines per department, page scrolling, sticky toolbar ----- */
.bse-sticky { position: sticky; top: 0; z-index: 6; background: var(--paper); padding-top: 4px; }
.bse-sticky .bse-tools { background: var(--paper); }
.bse-tools .btn { white-space: nowrap; }
table.stmt.bse-t col.c0 { width: 25%; }
table.stmt.bse-t col.cn { width: 12.5%; }
table.stmt.bse-t col.cv { width: 15%; }
table.stmt.bse-t col.cx { width: 7.5%; }
table.stmt.bse-t th.bse-xh, table.stmt.bse-t td.bse-xc { text-align: center; }
tr.bse-dh td { padding-top: 8px; padding-bottom: 3px; font-weight: 600; color: var(--navy); border-top: 1px solid var(--rule); border-bottom: 0; background: #fbfaf7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
tr.bse-dh.isopen td { background: #f6f3ea; }
tr.bse-dh .glc { font-weight: 400; }
tr.bse-dh .bse-dn { font-size: 13.5px; }
tr.bse-dh .chip { margin-left: 6px; font-size: 10px; vertical-align: 1px; }
button.bse-det { margin-left: 12px; font-size: 11.5px; font-weight: 400; }
tr.bse-m td { padding-top: 3px; padding-bottom: 3px; border-bottom: 1px solid var(--rule-soft); }
tr.bse-m td:first-child { padding-left: 46px; color: var(--ink); }
tr.bse-m.bse-ni td { font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--rule); }
tr.bse-m.bse-wb td { color: var(--muted); font-style: italic; }
tr.bse-dh.bse-tot td { font-size: 15px; font-weight: 700; border-top: 2px solid var(--navy); background: #f6f3ea; }
tr.bse-dh.bse-tot ~ tr.bse-m td { font-weight: 700; }
tr.bse-dx td { color: var(--navy-2); }
span.bse-p { display: inline-block; min-width: 50px; margin-left: 6px; font-size: 11px; color: var(--muted); font-weight: 400; text-align: right; }
td.bse-mat span.bse-p { color: var(--unfav); }
.bse-fl { float: left; border: 0; background: none; cursor: pointer; padding: 0 2px; font-size: 12px; line-height: 1.5; color: var(--unfav); }
.bse-fl.x { color: var(--faint); }
span.bse-fl { cursor: help; }
.bse-key { display: inline-block; width: 11px; height: 11px; background: #fbefed; border: 1px solid #e6c3be; vertical-align: -1px; margin-right: 6px; }
button.bse-xlb { border: 1px solid transparent; background: none; border-radius: 3px; padding: 1px 3px; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; font-size: 10px; color: var(--muted); }
button.bse-xlb:hover { border-color: #b9d3c3; background: #eef6f0; }
input.bse-in.bse-hi { font-size: 13px; font-weight: 600; min-height: 24px; }
tr.bse-m.bse-ni input.bse-in.bse-hi { font-weight: 700; }
.bse-choice { display: flex; gap: 10px; margin-top: 6px; }
.bse-choice .btn { min-width: 170px; }
.lnote.bse-perr { margin: 10px 0 0; border-left-color: var(--unfav); }
.bse-xo { display: grid; gap: 8px; margin: 12px 0 4px; font-size: 13px; }
.bse-xo label { display: flex; gap: 8px; align-items: baseline; cursor: pointer; }
table.t.bse-wbt td { vertical-align: middle; padding: 8px 6px; }
td.bse-wbn { display: flex; gap: 10px; align-items: flex-start; }
td.bse-wbn svg { flex: none; margin-top: 2px; }
tr.bse-dh.flash td { animation: bseflash 1.6s ease-out; }
/* print-ready export (PDF): only #xprint is printed */
#xprint { display: none; }
@media print {
  body.xprinting > *:not(#xprint) { display: none !important; }
  body.xprinting #xprint { display: block; }
  @page { size: landscape; margin: 12mm 10mm; }
}
.xdoc { font-family: var(--sans); color: var(--ink); font-size: 9.5pt; }
.xdoc h1 { font-family: var(--serif); color: var(--navy); font-size: 16pt; margin: 0 0 2px; }
.xdoc .xst { font-weight: 700; color: var(--navy); margin: 2px 0; }
.xdoc .xmeta { color: var(--muted); font-size: 8.5pt; margin: 0 0 8px; }
table.xtab { width: 100%; border-collapse: collapse; }
table.xtab th { text-align: right; font-size: 8pt; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); border-bottom: 1.5px solid var(--navy); padding: 4px 6px; }
table.xtab th:first-child { text-align: left; width: 34%; }
table.xtab thead { display: table-header-group; }
table.xtab td { padding: 2px 6px; border-bottom: 1px solid var(--rule-soft); text-align: right; }
table.xtab td:first-child { text-align: left; }
table.xtab tr { page-break-inside: avoid; }
table.xtab tr.xd td { font-weight: 700; color: var(--navy); padding-top: 7px; border-bottom: 0; }
table.xtab tr.xd.xt td { border-top: 2px solid var(--navy); font-size: 11pt; }
table.xtab tr.xmet td:first-child, table.xtab tr.xline td:first-child { padding-left: 16px; }
table.xtab tr.xgl td { color: #4b5563; font-size: 8.5pt; } table.xtab tr.xgl td:first-child { padding-left: 30px; }
table.xtab tr.xb td, table.xtab tr.xsub td { font-weight: 700; }
table.xtab tr.xh td { font-size: 8pt; text-transform: uppercase; letter-spacing: 1px; color: var(--navy); padding-top: 5px; padding-left: 16px; }
table.xtab small { color: var(--muted); font-size: 7.5pt; } .xr { color: var(--faint); margin-right: 6px; } .xc { color: var(--faint); margin-right: 6px; font-weight: 400; } .xm { color: var(--unfav); font-weight: 400; }
/* ----- end Budget Summary simplification ----- */
/* ----- Budget Summary layout refinements (2026-11-24): no flag icons, aligned columns, Edit Budget beside Approve ----- */
/* the two main actions, top right */
.bse-tr { gap: 8px; }
.bse-tools .btn.bse-editb, .bse-tools .btn.bse-appr { min-width: 170px; min-height: 34px; padding: 6px 16px; font-size: 13.5px; }
.btn.bse-editb { background: var(--sheet); color: var(--navy); border: 1px solid var(--navy); }
.btn.bse-editb:hover:not(:disabled) { background: #f3f1ec; }
.btn.bse-editb.on { background: #fbf6e9; border-color: var(--gold); opacity: 1; }
.btn.bse-editb .bse-pen { margin-left: 6px; font-size: 14px; }
/* headers: one baseline, same right edge as the figures */
table.stmt.bse-t thead th { vertical-align: bottom; text-align: right; padding: 8px 12px 7px; line-height: 1.25; }
table.stmt.bse-t thead th:first-child { text-align: left; padding-left: 12px; }
table.stmt.bse-t thead th .yr { margin-top: 2px; white-space: normal; }
table.stmt.bse-t thead th.bse-xh { text-align: center; padding-left: 4px; padding-right: 4px; }
/* figures: tabular, right-aligned on one edge; variance amount + a fixed-width % so every column lines up */
table.stmt.bse-t td.num { padding-left: 10px; padding-right: 12px; vertical-align: middle; }
td.bse-v { white-space: nowrap; }
td.bse-v .bse-n { display: inline-block; text-align: right; }
td.bse-v span.bse-p { display: inline-block; width: 48px; min-width: 0; margin-left: 8px; text-align: right; }
td.bse-mat { background-color: #fbefed !important; font-weight: 700; }
td.bse-mat span.bse-p { color: var(--unfav); }
td.bse-matx { background-image: linear-gradient(90deg, transparent, transparent); }
td.bse-matx .bse-n { text-decoration: underline dotted var(--faint); text-underline-offset: 3px; }
td.bse-click { cursor: pointer; }
td.bse-click.bse-mat:hover { background-color: #f6e1de !important; }
td.bse-click.bse-matx:hover { background-color: #f3f1ec !important; }
/* department block: rank | code | name on fixed columns; metric labels start under the name */
tr.bse-dh td { padding: 9px 12px 4px; vertical-align: middle; }
tr.bse-dh td:first-child { position: relative; padding-right: 110px; }
.bse-rk { display: inline-block; width: 24px; min-width: 0; margin-right: 6px; text-align: right; }
tr.bse-dh .glc.bse-cd { display: inline-block; width: 54px; margin-right: 6px; }
tr.bse-dh .bse-dn { font-size: 13.5px; }
tr.bse-dh .chip { margin-left: 8px; }
tr.bse-dh .bse-edm { margin-left: 10px; }
button.bse-det { position: absolute; right: 12px; top: 50%; transform: translateY(-30%); margin: 0; font-size: 11.5px; }
tr.bse-m td { padding-top: 4px; padding-bottom: 4px; vertical-align: middle; }
tr.bse-m td:first-child { padding-left: 102px; }
tr.bse-m:last-child td, tr.bse-m.bse-ni td { padding-bottom: 6px; }
/* Excel column: one icon per department, centred across its rows */
table.stmt.bse-t td.bse-xc { text-align: center; vertical-align: middle; padding: 0 4px; border-bottom: 1px solid var(--rule); border-left: 1px solid var(--rule-soft); background: var(--sheet); }
tr.bse-dh.isopen td.bse-xc { background: var(--sheet); }
button.bse-xlb { padding: 4px 6px; }
/* drill-down rows keep the same left edge as the metric labels */
tr.bse-x.hdr td { padding-left: 102px; }
tr.bse-x.line td:first-child { padding-left: 118px; }
tr.bse-x.gl td:first-child { padding-left: 136px; }
tr.bse-x.sub td:first-child, tr.bse-x.tot td:first-child, tr.bse-x.grand td:first-child { padding-left: 102px; }
tr.bse-dbar td { padding-left: 102px; }
/* ----- end layout refinements ----- */
/* ----- variance % under the dollar amount; pencil icon; bar without the filter button (2026-11-24) ----- */
td.bse-v { white-space: nowrap; line-height: 1.2; padding-top: 3px !important; padding-bottom: 3px !important; }
td.bse-v .bse-n { display: block; text-align: right; }
td.bse-v span.bse-p { display: block; width: auto; min-width: 0; margin: 1px 0 0; font-size: 10.5px; line-height: 1.1; min-height: 12px; text-align: right; color: var(--muted); font-weight: 400; }
td.bse-v.fav span.bse-p, td.bse-v.unfav span.bse-p { opacity: .8; }
td.bse-v.fav span.bse-p { color: var(--fav); }
td.bse-v.unfav span.bse-p, td.bse-mat span.bse-p { color: var(--unfav); }
.btn.bse-editb { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.btn.bse-editb .bse-pen { margin: 0; display: inline-flex; font-size: 0; }
.btn.bse-editb .bse-pen svg { display: block; }
.bse-bar.bse-bar2 { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 6px; min-height: 26px; }
.bse-bar2 .bse-thr { font-size: 12px; }
/* ----- end ----- */
/* ----- roll-up (2026-11-24): one line per department (net income); click to show Net Revenue and Total Expenses ----- */
tr.bse-roll { cursor: pointer; }
tr.bse-roll td { padding-top: 6px; padding-bottom: 6px; border-top: 1px solid var(--rule-soft); background: var(--sheet); }
tr.bse-roll > td:first-child { padding-right: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: static; }
tr.bse-roll td.num { font-weight: 700; color: var(--navy); }
tr.bse-roll td.num.fav { color: var(--fav); } tr.bse-roll td.num.unfav { color: var(--unfav); } tr.bse-roll td.num.neu { color: var(--muted); }
tr.bse-roll:hover td { background: var(--hover); }
tr.bse-roll.isroll td { background: #f6f3ea; border-top-color: var(--rule); }
tr.bse-dh .tog { display: inline-block; width: 14px; color: var(--faint); font-size: 10px; transition: transform .12s; }
tr.bse-roll.isroll .tog { transform: rotate(90deg); color: var(--navy); }
tr.bse-roll .bse-rk { width: 22px; }
tr.bse-dh.bse-q td { background: var(--sheet); border-top: 1px solid var(--rule); padding-top: 6px; padding-bottom: 6px; }
tr.bse-dh.bse-q td.num { font-weight: 700; color: var(--navy); }
tr.bse-dh.bse-tot td { border-top: 2px solid var(--navy); }
tr.bse-m td:first-child { padding-left: 116px; }
table.stmt.bse-t tr.bse-dl td { padding: 0 12px 6px 116px; border-bottom: 1px solid var(--rule); text-align: left; white-space: nowrap; }
tr.bse-dl button.bse-det { position: static; transform: none; font-size: 11.5px; }
/* ----- end roll-up ----- */
/* ----- 2026-11-24 department comparison basis (before revenue deductions & benefits) + reconciliation to the official Net Income ----- */
tr.hdr.bse-rch td { padding: 18px 12px 6px; border-top: 2px solid var(--rule); }
tr.bse-dh.bse-rc td { background: var(--sheet); border-top: 1px solid var(--rule); padding-top: 6px; padding-bottom: 6px; }
tr.bse-dh.bse-rc td.num { font-weight: 700; color: var(--navy); }
tr.bse-dh.bse-rc + tr.bse-q td .bse-dn { font-weight: 400; font-style: italic; }
.bse-basis b { color: var(--navy); font-weight: 700; }
/* ----- end comparison basis ----- */

/* ----- 2026-11-24 show / hide columns (Budget Summary) + Hospital Total highlighted ----- */
table.stmt.bse-t.bse-h3 tr > :nth-child(3), table.stmt.bse-t.bse-h4 tr > :nth-child(4), table.stmt.bse-t.bse-h5 tr > :nth-child(5),
table.stmt.bse-t.bse-h6 tr > :nth-child(6), table.stmt.bse-t.bse-h7 tr > :nth-child(7) { display: none; }
.bse-colw { position: relative; display: inline-block; }
.bse-colm { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; background: #fff; border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.12); padding: 8px 12px; text-align: left; white-space: nowrap; }
.bse-colm .bse-colt { display: block; padding: 4px 0; font-size: 12.5px; color: var(--navy); cursor: pointer; }
.bse-colm .bse-colt input { margin-right: 6px; vertical-align: -2px; }
table.stmt.bse-t tr.bse-dh.bse-tot td:not(.bse-xc), table.stmt.bse-t tr.bse-roll.isroll.bse-tot td:not(.bse-xc) { background: #ffeb00; color: var(--navy); }   /* the Excel cell spans the block below (rowspan) - left white */
/* ----- end show / hide columns ----- */

tr.bse-dh.bse-rc.bse-rct td { border-top: 2px solid var(--navy); }   /* reconciliation total = official hospital revenue */

/* ----- 2026-11-24 holistic 2027 Budget Summary at the top of the page ----- */
.bse-sum { background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--navy); border-radius: 6px; padding: 12px 18px 10px; margin: 10px 0 14px; color: var(--navy-2); font-size: 13.5px; line-height: 1.55; }
.bse-sum h2 { margin: 0 0 6px; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--navy); font-weight: 700; }
.bse-sum p { margin: 0 0 6px; }
.bse-sum ul { margin: 0; padding-left: 20px; }
.bse-sum ul ul { margin: 2px 0 0; columns: 2; column-gap: 40px; }
.bse-sum li { margin: 1px 0; }
.bse-sum b { color: var(--navy); }

/* 2026-11-24 (user): Budget Summary tiles = label + bigger figure only (no comparison lines) */
.bsx-tiles.bse-tiles > div { padding: 10px 18px 12px; }
.bsx-tiles.bse-tiles .v { font-size: 32px; line-height: 1.15; margin: 4px 0 0; }

/* 2026-11-24 (user): Statement of Operations - 2027 Budget boxes = label + bigger figure only (comparison in the tooltip) */
.summary.bud > div { padding: 14px 18px 16px; }
.summary.bud .v, .summary.bud > div .v { font-size: 32px; line-height: 1.15; margin-top: 4px; }
/* 2026-11-24 (user): 2027 Budget = three tiles (Revenue / Expenses / Net Income), labels and figures centred */
.summary.tri, .summary.bud.tri { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.summary.tri > div { text-align: center; border-bottom: 0; }
.summary.tri > div:nth-child(2) { border-right: 1px solid var(--rule-soft); }
.summary.tri .k, .summary.tri .v, .summary.tri .v.num, .summary.tri .c, .summary.tri .c.num { text-align: center; }

/* 2026-11-24 FINAL comparability (user): "—" = not available / not comparable (grey, hover for the reason); "–" = a genuine zero */
table.stmt.bse-t td.bse-na, table.stmt.bse-t td.bse-na .bse-n { color: var(--faint); font-weight: 400 !important; cursor: help; }
tr.bse-roll .bse-ml { display: block; margin: 1px 0 0 92px; font-size: 10.5px; font-weight: 400; letter-spacing: .2px; color: var(--muted); text-transform: none; }
tr.hdr.bse-dhd td { padding: 10px 12px 5px; font-size: 11px; letter-spacing: .3px; color: var(--muted); font-weight: 400; text-transform: none; }
tr.hdr.bse-dhd td b { color: var(--navy); }
tr.bse-m.bse-ibd td { border-top: 1px dashed var(--rule); font-style: italic; }
tr.bse-x.bse-ibd td { font-style: italic; }
.lnote.bse-cnote { margin: 8px 0 0; padding: 7px 12px; font-size: 12.5px; }
.xdoc td.xna { color: #8a8f99; }

/* 2026-11-24 final simplification: recorded variance (not like-for-like) = neutral grey italic, never red/green; reason + like-for-like on hover */
table.stmt.bse-t td.bse-v.bse-rec, table.stmt.bse-t td.bse-v.bse-rec .bse-n, table.stmt.bse-t td.bse-v.bse-rec span.bse-p { color: var(--muted) !important; font-style: italic; font-weight: 400 !important; cursor: help; }
.bse-foot i.bse-recl { color: var(--muted); cursor: help; }
.xdoc td.xrec { color: #8a8f99; font-style: italic; }
/* ---------- 2026-11-24 cloud deployment: account pages (login card style) + administrator Users page ---------- */
.login .acc-card { max-width: 460px; }
.acc-lead { font-size: 13px; color: var(--ink); line-height: 1.5; margin: 4px 0 6px; }
.acc-ok { font-size: 13px; color: var(--fav); line-height: 1.5; margin-top: 14px; }
.acc-links { margin-top: 14px; font-size: 12.5px; text-align: center; }
.acc-rules { font-size: 11.5px; color: var(--muted); margin: 10px 0 0; padding-left: 16px; line-height: 1.5; }
.acc-sep { border-top: 1px solid var(--rule-soft); margin: 22px 0 10px; }
.acc-h { font-family: var(--serif); color: var(--navy); font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.acc-steps { font-size: 12.5px; line-height: 1.6; padding-left: 18px; margin: 6px 0; }
code.acc-key { font-family: Consolas, "Courier New", monospace; font-size: 14px; letter-spacing: .5px; background: #fbf6e9; border: 1px solid #eadfc4; padding: 1px 6px; border-radius: 3px; word-break: break-all; }
.login .btn.ghost { margin-top: 12px; }
.adm-bar { display: flex; gap: 10px; align-items: center; margin: 18px 0 0; }
.adm-sp { flex: 1; }
.adm-alert { margin-top: 14px; font-size: 13px; line-height: 1.7; }
table.adm-t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.adm-t th { font-size: 10.5px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 10px 7px; border-bottom: 1.5px solid var(--navy); white-space: nowrap; text-align: left; }
table.adm-t td { padding: 9px 10px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; text-align: left; }
table.adm-t td .note { margin-top: 2px; }
table.adm-t tr.adm-off td { color: var(--faint); }
.adm-perm { max-width: 260px; }
.adm-chip { display: inline-block; font-size: 11px; padding: 1px 7px; margin: 0 2px 3px 0; border-radius: 9px; background: #eef1f6; color: var(--navy-2); white-space: nowrap; }
.adm-acts a { display: block; font-size: 12.5px; line-height: 1.6; white-space: nowrap; }
.adm-warn { color: var(--unfav); }
.adm-ov { position: fixed; inset: 0; background: rgba(20, 41, 75, .25); z-index: 40; display: flex; align-items: flex-start; justify-content: center; padding-top: 5vh; }
.adm-ov[hidden] { display: none; }
.adm-modal { width: min(860px, 94vw); }
.adm-form label { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 3px; }
.adm-form input:not([type=checkbox]):not([type=radio]), .adm-form select { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; padding: 7px 9px; border: 1px solid var(--rule); border-radius: 3px; }
.adm-form input[readonly] { background: var(--hover); color: var(--muted); }
.adm-form fieldset { border: 1px solid var(--rule); padding: 6px 14px 12px; margin: 14px 0 0; }
.adm-form legend { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--navy); padding: 0 6px; }
.adm-form label.adm-cb { display: block; color: var(--ink); font-size: 13px; margin: 6px 0 0; }
.adm-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: end; }
.adm-hs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; margin: 2px 0 4px 22px; }
.adm-sub { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.adm-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.adm-scroll { max-height: 60vh; overflow: auto; }
table.adm-pw td { vertical-align: middle; }