.finv2 { --fin-line: #dbe4e5; --fin-ink: #203c48; --fin-subtle: #536b76; max-width: none; padding-inline: 24px; }
.finv2 .breadcrumbs { margin-bottom: 14px; }
.finv2-heading { margin-bottom: 14px; }
.finv2-heading h1 { margin-bottom: 4px; }
.finv2-register { overflow: hidden; }
.finv2-toolbar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.finv2-toolbar label { flex: 1; max-width: 560px; min-width: 0; margin: 0; }
.finv2-toolbar input { font-size: 14px; }
.finv2 button:not(.finv2-cell-button, .finv2-expander) {
  border: 1px solid #bdcbd0; border-radius: 5px; padding: 6px 10px; color: var(--fin-ink); background: white; font-size: 12px;
}
.finv2 button.finv2-primary { color: white; background: #234451; border-color: #234451; font-weight: 700; white-space: nowrap; }
.finv2 button:disabled { opacity: .5; cursor: default; }
.finv2 button:focus-visible, .finv2 summary:focus-visible, .finv2 tr:focus-visible { outline: 2px solid #967239; outline-offset: -2px; }
.finv2-summary {
  display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 7px 12px; border-top: 1px solid #edf1f2;
  border-bottom: 1px solid var(--fin-line); color: var(--fin-subtle); font-size: 12px; line-height: 1.35;
}
.finv2-summary strong { color: var(--fin-ink); font-variant-numeric: tabular-nums; }
.finv2-scroll { overflow: auto; max-height: 67vh; overscroll-behavior-inline: contain; }
.finv2-table {
  --row-height: 36px; --group-height: 28px; border-spacing: 0; border-collapse: separate;
  table-layout: fixed; width: max-content; font-size: 12px; color: var(--fin-ink);
}
.finv2-table[data-density="comfortable"] { --row-height: 46px; font-size: 13px; }
.finv2-table th, .finv2-table td {
  padding: 0 8px; border: 0; border-right: 1px solid #eaf0f1; border-bottom: 1px solid var(--fin-line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: none; letter-spacing: normal; font-size: inherit;
}
.finv2-table th { text-align: left; vertical-align: middle; line-height: 16px; }
.finv2-table td { vertical-align: middle; }
.finv2-table thead th { position: sticky; z-index: 3; background: #eef3f4; }
.finv2-table .finv2-group-row th {
  top: 0; height: var(--group-height); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #425d67;
}
.finv2-table .finv2-group-row [data-group="ar"] { background: #e7f2ed; }
.finv2-table .finv2-group-row [data-group="ap"] { background: #f3eee6; }
.finv2-table .finv2-group-row [data-group="cost"] { background: #e9eef5; }
.finv2-table .finv2-label-row th { top: var(--group-height); height: 34px; }
.finv2-table th .finv2-cell-button { line-height: 18px; height: 32px; min-height: 0; }
.finv2-tooltip { position: fixed; z-index: 100; width: 310px; padding: 10px 12px; background: #203c48; color: white; border-radius: 5px; font: 12px/1.5 Arial,sans-serif; box-shadow: 0 4px 18px #18333b33; pointer-events: none; }
.finv2-table [data-pin="trade"] { box-shadow: 2px 0 #dce5e7; }
.finv2 .finv2-cell-button, .finv2 .finv2-expander {
  color: inherit; background: transparent; border: 0; padding: 0; text-align: left; font: inherit; min-height: 28px;
}
.finv2-table th .finv2-cell-button { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finv2-table tbody tr { height: var(--row-height); }
.finv2-table tbody tr[data-project] { cursor: pointer; }
.finv2-table tbody tr[data-project]:hover td { background: #f1f6f7; }
.finv2-table tbody tr:nth-child(even) td { background: #f9fbfb; }
.finv2-table [data-pin] { position: sticky; z-index: 2; background: #fff; }
.finv2-table thead [data-pin] { z-index: 5; background: #eef3f4; }
.finv2-table [data-pin="ref"] { left: 0; }
.finv2-table [data-pin="po"] { box-shadow: 2px 0 #dce5e740; }
.finv2-table .finv2-numeric, .finv2-table .finv2-numeric button { text-align: right; font-variant-numeric: tabular-nums; }
.finv2-ref { display: flex; gap: 6px; align-items: center; font-weight: 700; }
.finv2-ref .finv2-expander { flex: 0 0 22px; text-align: center; font-size: 14px; }
.finv2-ref .finv2-cell-button { overflow: hidden; text-overflow: ellipsis; }
.finv2-table tr.finv2-product td { background: #f4f7f8; }
.finv2-product-name { display: block; width: fit-content; max-width: 100%; left: 12px; position: sticky; color: #325765; }
.finv2-badge { display: inline-block; padding: 2px 6px; border-radius: 3px; color: #475f68; background: #eaf0f0; font-size: 11px; line-height: 1.25; }
.finv2-badge[data-tone="attention"] { background: #fff0ce; color: #754a09; }
.finv2-badge[data-tone="critical"] { background: #f8e2df; color: #852f31; }
.finv2-badge[data-tone="positive"] { background: #e3f0e8; color: #245b43; }
.finv2-empty { padding: 14px; color: var(--fin-subtle); }
.finv2-visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.finv2-dialog {
  color: var(--fin-ink); border: 1px solid #bdcdd0; border-radius: 8px; padding: 0;
  width: min(660px, calc(100% - 24px)); max-height: calc(100dvh - 24px); font-size: 13px;
}
.finv2-dialog::backdrop { background: #19354055; }
.finv2-drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(58vw, 900px); height: 100dvh;
  max-height: 100dvh; max-width: none; border: 0; border-left: 1px solid #bdcdd0; border-radius: 0;
  box-shadow: -10px 0 35px #203c4825;
}
.finv2-dialog-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  position: sticky; top: 0; z-index: 3; background: white; border-bottom: 1px solid var(--fin-line); padding: 12px 16px;
}
.finv2-dialog-head h2 { font-size: 20px; margin: 3px 0 0; }
.finv2-dialog-head small { color: #75551e; font-weight: 700; font-size: 10px; letter-spacing: .04em; }
.finv2-dialog-body { padding: 12px 16px 16px; min-width: 0; }
.finv2-detail-status { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.finv2-folder { margin: 0; padding: 0; border-top: 1px solid var(--fin-line); }
.finv2-folder > summary { padding: 10px 3px; color: var(--fin-ink); overflow-wrap: anywhere; font-size: 13px; }
.finv2-folder > .finv2-section-content { padding: 0 4px 10px 13px; }
.finv2-folder .finv2-folder { margin-top: 4px; }
.finv2-folder[open] > summary { font-weight: 700; }
.finv2-facts {
  display: grid; grid-template-columns: minmax(105px, .52fr) minmax(0, 1fr); margin: 0 0 8px; line-height: 1.45;
}
.finv2-facts dt, .finv2-facts dd { padding: 5px 4px; border-bottom: 1px solid #edf1f2; overflow-wrap: anywhere; }
.finv2-facts dt { color: var(--fin-subtle); }
.finv2-facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.finv2-actions { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.finv2-actions a { align-self: center; }
.finv2-inline-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.finv2-inline-table :is(th, td) { padding: 6px 5px; text-align: left; border-color: var(--fin-line); overflow-wrap: anywhere; }
.finv2-inline-table th { background: #eef3f4; text-transform: none; font-size: 11px; }
.finv2-inline-table-wrap { overflow-x: auto; }
.finv2-revision { padding-left: 8px; border-left: 2px solid var(--fin-line); }
.finv2-muted { color: var(--fin-subtle); margin: 5px 0; }
.finv2-form, .finv2-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 10px; }
.finv2-form label, .finv2-controls label { margin: 0 0 5px; font-size: 12px; }
.finv2-form label input, .finv2-form label select, .finv2-controls label input, .finv2-controls label select { margin-top: 4px; }
.finv2-form input, .finv2-form select, .finv2-controls input, .finv2-controls select { font-size: 14px; }
.finv2-form .finv2-check { display: flex; align-items: center; gap: 7px; }
.finv2-form .finv2-check input, .finv2-column-line input[type="checkbox"] { width: 16px; min-height: 16px; margin: 0; }
.finv2-form .finv2-actions, .finv2-error { grid-column: 1 / -1; }
.finv2-error { color: #852f31; margin: 4px 0; min-height: 1em; }
.finv2-column-line { display: grid; grid-template-columns: minmax(0, 1fr) 72px 38px 38px; gap: 4px; align-items: center; }
.finv2-column-line label { margin: 0; display: flex; gap: 6px; align-items: center; }
.finv2-column-line input[type="number"] { min-height: 32px; padding: 4px; }
.finv2-column-line button { min-height: 34px; }
.finv2-audit-field { margin: 4px 0 8px; padding: 7px; background: #f5f8f8; font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 700px) {
  .finv2 { padding-inline: 8px; }
  .finv2-toolbar { gap: 5px; padding: 7px; }
  .finv2-toolbar input { font-size: 16px; padding-inline: 6px; }
  .finv2 .finv2-toolbar button { padding-inline: 6px; font-size: 11px; }
  .finv2-summary { padding-inline: 7px; font-size: 11px; }
  .finv2-table [data-pin="po"] { position: static; }
  .finv2-table thead [data-pin="po"] { position: sticky; left: auto !important; z-index: 3; }
  .finv2-drawer { width: 100%; border-left: 0; }
  .finv2-drawer .finv2-dialog-body { padding-inline: 10px; }
  .finv2-form, .finv2-controls { grid-template-columns: minmax(0, 1fr); }
}
/* The three financial views keep the original dense project register. */
.financial-workviews{display:flex;gap:5px;margin:8px 0 12px;border-bottom:1px solid #d7e2e5}.financial-workviews button{font:13px/1.5 Arial,sans-serif;padding:7px 12px;border:0;border-bottom:2px solid transparent;background:transparent;color:#24576a;cursor:pointer}.financial-workviews button[aria-pressed=true]{border-bottom-color:#275d70;font-weight:700}.finv2-table:has([data-obligation]) td{padding:8px;font-size:12px;line-height:1.5}
