/* Component foundation from the saved Stitch exports. No global reset. */
.tv-stitch-surface {font-size:14px;line-height:1.5;color:var(--tv-text,#122c46);font-family:Inter,system-ui,sans-serif;min-width:0;}
.tv-stitch-surface * {box-sizing:border-box;}
.tv-stitch-surface [hidden] {display:none;}
.tv-stitch-surface .sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;}
.tv-stitch-surface :is(button,input,select,textarea) {font:inherit;}
.tv-stitch-surface :is(input,select,textarea) {border:1px solid var(--tv-border,#c7d4e2);background:var(--tv-surface,#fff);border-radius:8px;padding:10px 12px;color:var(--tv-text,#122c46);min-width:0;max-width:100%;}
.tv-stitch-surface :is(button,.btn) {display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--tv-border,#c7d4e2);background:var(--tv-surface,#fff);border-radius:6px;padding:10px 14px;min-height:44px;color:var(--tv-text,#122c46);cursor:pointer;text-decoration:none;line-height:1.4;}
.tv-stitch-surface .btn-primary {background:var(--tv-brand,#006cba);border-color:var(--tv-brand,#006cba);color:var(--tv-on-brand,#fff);}
.tv-stitch-surface .btn-primary:hover:not(:disabled) {background:var(--tv-brand-hover,#005799);border-color:var(--tv-brand-hover,#005799);}
.tv-stitch-surface .btn-danger {color:var(--tv-danger,#b42318);border-color:var(--tv-danger-border,#e8bbb6);}
.tv-stitch-surface button:disabled {opacity:.55;cursor:not-allowed;}
.tv-stitch-surface :focus-visible {outline:3px solid var(--tv-brief-focus,#005fcc);outline-offset:3px;}
.tv-stitch-surface a {color:var(--tv-brand,#006cba);text-underline-offset:3px;}
.tv-stitch-surface small {font-size:12px;}
.tv-stitch-surface .badge {display:inline-flex;padding:3px 8px;border:1px solid var(--tv-border,#c7d4e2);border-radius:20px;background:var(--tv-surface-muted,#f3f7fb);color:var(--tv-text-muted,#4d6178);font-size:12px;}
.tv-stitch-surface .badge-warning {background:var(--tv-warning-soft,#fff3db);border-color:var(--tv-warning-border,#e8c98e);color:var(--tv-warning,#7b4b00);}
.tv-stitch-surface .badge-success {background:var(--tv-success-soft,#edf9f1);border-color:var(--tv-success-border,#b9dbc7);color:var(--tv-success,#17603e);}
.tv-stitch-surface .badge-danger {background:var(--tv-danger-soft,#fff1f0);border-color:var(--tv-danger-border,#e8bbb6);color:var(--tv-danger,#b42318);}
.tv-stitch-surface table {width:100%;border-collapse:collapse;font-size:14px;}
.tv-stitch-surface :is(th,td) {text-align:left;padding:12px 16px;border-bottom:1px solid var(--tv-border,#c7d4e2);}
.tv-stitch-surface th {background:var(--tv-surface-muted,#f3f7fb);color:var(--tv-text-muted,#4d6178);font-size:12px;}
.tv-stitch-surface th :is(button,.btn) {border:0;background:transparent;padding:4px 0;min-height:36px;justify-content:flex-start;text-align:left;font-weight:600;}
.tv-stitch-customers .tv-route-main {display:grid;gap:24px;}
.tv-stitch-customers .tv-customer-contact,.tv-stitch-customers .tv-customer-contact-lines,.tv-stitch-customers .tv-customer-money-lines > div,.tv-stitch-customers .tv-customer-next-step {display:grid;gap:6px;}
.tv-stitch-customers .tv-route-context {display:flex;flex-wrap:wrap;gap:8px;color:var(--tv-text-muted,#4d6178);font-size:12px;}
.tv-stitch-customers .tv-customer-account-actions {display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;}
.tv-stitch-customers .tv-customer-row-details > span {display:block;margin-top:6px;}
.tv-stitch-customers .tv-customer-pager,.tv-stitch-customers .tv-customer-pager > div {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.tv-stitch-payment-detail .tv-receipt-more-actions {flex-basis:100%;}
.tv-stitch-payment-detail .tv-receipt-more-menu {display:flex;flex-wrap:wrap;gap:10px;padding-top:12px;}
.tv-stitch-payment-detail .tv-payment-action-reason {display:block;font-size:12px;}
.tv-stitch-payment-detail .tv-receipt-attachment-list {display:grid;gap:12px;}
.tv-stitch-surface .tv-attention-list {border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;background:#fff;margin:16px 0;overflow:hidden;}
.tv-stitch-surface .tv-attention-list-head {display:flex;align-items:center;gap:12px;padding:14px 18px;background:#fff7e6;border-bottom:1px solid #e9dfcb;}
.tv-stitch-surface .tv-attention-list-head h3 {margin:0;font-size:15px;}
.tv-stitch-surface .tv-attention-kicker {font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#92400e;font-weight:700;}
.tv-stitch-surface .tv-attention-row {display:flex;align-items:center;gap:14px;padding:16px 18px;}
.tv-stitch-surface .tv-attention-row + .tv-attention-row {border-top:1px solid var(--tv-border,#c7d4e2);}
.tv-stitch-surface .tv-attention-copy {display:grid;gap:6px;flex:1;min-width:0;line-height:1.5;}
.tv-stitch-surface .tv-attention-copy > span {color:var(--tv-text-muted,#4d6178);font-size:13px;}
@media(max-width:540px){.tv-stitch-surface .tv-attention-row{align-items:flex-start;flex-wrap:wrap;}.tv-stitch-surface .tv-attention-copy{flex-basis:70%;}.tv-stitch-surface .tv-attention-action{margin-left:auto;}}

/* Fiscal setup and payment-term route layouts. These are intentionally scoped
   to their exported screen identities so the legacy renderer can be restyled
   without changing unrelated route compositions. */
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .tv-route-frame {
  display:grid;gap:18px;min-width:0;padding:4px 0 24px;
}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .workspace-hero {
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  border:1px solid var(--tv-border,#c7d4e2);border-radius:14px;
  background:var(--tv-surface,#fff);padding:20px 22px;
}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .workspace-hero-copy {min-width:0;flex:1;}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .workspace-hero-copy h2 {margin:0;color:var(--tv-text,#122c46);font-size:24px;line-height:1.2;letter-spacing:-.025em;}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .workspace-hero-copy p {margin:6px 0 0;color:var(--tv-text-muted,#4d6178);font-size:14px;}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .workspace-hero-actions {display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .tv-route-context {margin-top:12px;}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .tv-route-summary {
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;overflow:hidden;
  border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;background:var(--tv-surface,#fff);
}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .tv-route-summary-cell {
  display:grid;align-content:center;gap:5px;min-width:0;min-height:82px;padding:13px 16px;
  border:0;border-right:1px solid var(--tv-border,#c7d4e2);border-radius:0;background:var(--tv-surface,#fff);box-shadow:none;
}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .tv-route-summary-cell:last-child {border-right:0;}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .tv-route-summary-cell > span {color:var(--tv-text-muted,#4d6178);font-size:11px;font-weight:700;letter-spacing:.045em;text-transform:uppercase;}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .tv-route-summary-cell > strong {color:var(--tv-text,#122c46);font-size:20px;line-height:1.15;font-variant-numeric:tabular-nums;}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .tv-route-summary-cell > small {color:var(--tv-text-muted,#4d6178);font-size:11px;line-height:1.35;}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .workspace-body,
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .workspace-main {display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0;}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .table-card {min-width:0;overflow:auto;border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;background:var(--tv-surface,#fff);}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .filters {display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:14px;border-bottom:1px solid var(--tv-border,#c7d4e2);background:var(--tv-surface-muted,#f3f7fb);}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .filters .field {display:grid;gap:5px;min-width:150px;}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .filters .field:first-child {flex:1;min-width:min(280px,100%);}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .data-table {min-width:980px;table-layout:fixed;}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .data-table th,
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .data-table td {padding:12px 14px;vertical-align:top;}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .data-table td {line-height:1.45;overflow-wrap:anywhere;}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .data-table :is(th,td):last-child {width:170px;}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .data-table th {white-space:nowrap;}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .tv-entity-cell {display:grid;gap:3px;min-width:0;line-height:1.35;}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .tv-entity-cell > strong {font-size:13px;overflow-wrap:anywhere;}
:is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .tv-entity-cell > small {color:var(--tv-text-muted,#4d6178);font-size:11px;overflow-wrap:anywhere;}
@media(max-width:760px){
  :is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .workspace-hero {align-items:flex-start;flex-direction:column;padding:16px;}
  :is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .workspace-hero-actions {width:100%;justify-content:flex-start;}
  :is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .workspace-hero-actions > * {flex:1;}
  :is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .tv-route-summary {grid-template-columns:repeat(2,minmax(0,1fr));}
  :is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .tv-route-summary-cell:nth-child(2) {border-right:0;}
  :is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .tv-route-summary-cell:nth-child(n+3) {border-top:1px solid var(--tv-border,#c7d4e2);}
  :is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .filters .field:first-child {flex-basis:100%;}
}
@media(max-width:760px){
  :is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .data-table {min-width:900px;}
  :is([data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"],[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"]) .data-table td {padding:10px 12px;}
}

/* The fiscal-year screen uses an in-page governance rail beside its register.
   Keep payment terms on their existing single-column composition. */
[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-workspace {
  display:grid;grid-template-columns:minmax(270px,.78fr) minmax(0,1.75fr);gap:16px;align-items:start;min-width:0;
}
[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-context {display:grid;gap:12px;min-width:0;}
[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-context-card,
[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-register-wrap {
  min-width:0;border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;background:var(--tv-surface,#fff);
}
[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-context-card {padding:16px;}
[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-section-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:14px;}
[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-section-heading h3,
[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-register-heading h3 {margin:2px 0 0;color:var(--tv-text,#122c46);font-size:17px;line-height:1.3;}
[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-eyebrow {color:var(--tv-text-muted,#4d6178);font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;}
[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-facts {display:grid;gap:0;margin:0;}
[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-facts > div {display:grid;grid-template-columns:minmax(86px,.72fr) minmax(0,1.35fr);gap:4px 10px;padding:10px 0;border-top:1px solid var(--tv-border,#c7d4e2);}
[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-facts dt {color:var(--tv-text-muted,#4d6178);font-size:12px;}
[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-facts dd {margin:0;color:var(--tv-text,#122c46);font-size:12px;font-weight:650;overflow-wrap:anywhere;}
[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-facts dd.is-verified {color:var(--tv-success,#17603e);}
[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-facts dd.is-attention {color:var(--tv-warning,#7b4b00);}
[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-facts small {grid-column:1/-1;color:var(--tv-text-muted,#4d6178);font-size:11px;line-height:1.45;overflow-wrap:anywhere;}
[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-rules ul {display:grid;gap:10px;padding-left:18px;margin:0;color:var(--tv-text-muted,#4d6178);font-size:12px;line-height:1.5;}
[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-shortcuts {display:grid;gap:8px;margin-top:14px;}
[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-shortcuts > * {min-width:0;}
[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-register-wrap {overflow:hidden;}
[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-register-heading {padding:16px 18px 12px;}
[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-register-heading p {margin:5px 0 0;color:var(--tv-text-muted,#4d6178);font-size:12px;}
[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-register-wrap .table-card {border:0;border-radius:0;}
[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-route-summary-toggle {display:none;}
@media(max-width:1050px){[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-workspace {grid-template-columns:minmax(0,1fr);}}
@media(max-width:480px){[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-context-card {padding:13px;}[data-stitch-route-screen="4bfeaa7a52fb4627a3b2d9768abf5310"] .tv-fiscal-years-register-heading {padding:14px 13px 10px;}}

/* Route-level ownership for saved Stitch directions whose legacy renderer is
   retained in the verified parent package.  This styles existing content only;
   data, controls, and authorization continue to come from the route renderer. */
[data-stitch-screen="7e09ac1db256429ab8e6b2e11fe1f089"],
[data-stitch-screen="72278d3080784823a2317e639302afb2"],
[data-stitch-screen="28675d1f505b4d34af2bd00056fe5088"],
[data-stitch-screen="91db8e83b83248108fb1963be88cb541"],
[data-stitch-screen="6cd8c3c468ae46489a279e1a4f0a5e76"],
[data-stitch-screen="136813d8c5ca462c886b59dfe063ae48"],
[data-stitch-screen="d66bf2a9e0834e1d9becdade4cb7c0e6"],
[data-stitch-screen="6ef8f4f173f8443e9b7d1c93af527579"],
[data-stitch-screen="42dfb9feee254e6e8c2b87042916278f"],
[data-stitch-screen="9226e183312241d9a8d4660311976494"],
[data-stitch-screen="7507683ab65f423997edeb17965d1719"],
[data-stitch-screen="a4cd9a445818482aa2bcb3f94afecb94"],
[data-stitch-screen="31bfea1b9c614aa0b70d4d889624c7e7"] {
  --tv-stitch-route-ink:var(--tv-text,#122c46);
  --tv-stitch-route-muted:var(--tv-text-muted,#4d6178);
  --tv-stitch-route-line:var(--tv-border,#c7d4e2);
  --tv-stitch-route-paper:var(--tv-surface,#fff);
  --tv-stitch-route-wash:var(--tv-surface-muted,#f3f7fb);
  color:var(--tv-stitch-route-ink);
  min-width:0;
}
:is(
  [data-stitch-screen="7e09ac1db256429ab8e6b2e11fe1f089"],
  [data-stitch-screen="72278d3080784823a2317e639302afb2"],
  [data-stitch-screen="28675d1f505b4d34af2bd00056fe5088"],
  [data-stitch-screen="91db8e83b83248108fb1963be88cb541"],
  [data-stitch-screen="6cd8c3c468ae46489a279e1a4f0a5e76"],
  [data-stitch-screen="136813d8c5ca462c886b59dfe063ae48"],
  [data-stitch-screen="d66bf2a9e0834e1d9becdade4cb7c0e6"],
  [data-stitch-screen="6ef8f4f173f8443e9b7d1c93af527579"],
  [data-stitch-screen="42dfb9feee254e6e8c2b87042916278f"],
  [data-stitch-screen="9226e183312241d9a8d4660311976494"],
  [data-stitch-screen="7507683ab65f423997edeb17965d1719"],
  [data-stitch-screen="a4cd9a445818482aa2bcb3f94afecb94"],
  [data-stitch-screen="31bfea1b9c614aa0b70d4d889624c7e7"]
) :is(.workspace-hero,.record-header,.register-toolbar) {
  color:var(--tv-stitch-route-ink);
  background:var(--tv-stitch-route-paper);
  border-color:var(--tv-stitch-route-line);
  box-shadow:none;
}
:is(
  [data-stitch-screen="7e09ac1db256429ab8e6b2e11fe1f089"],
  [data-stitch-screen="72278d3080784823a2317e639302afb2"],
  [data-stitch-screen="28675d1f505b4d34af2bd00056fe5088"],
  [data-stitch-screen="91db8e83b83248108fb1963be88cb541"],
  [data-stitch-screen="6cd8c3c468ae46489a279e1a4f0a5e76"],
  [data-stitch-screen="136813d8c5ca462c886b59dfe063ae48"],
  [data-stitch-screen="d66bf2a9e0834e1d9becdade4cb7c0e6"],
  [data-stitch-screen="6ef8f4f173f8443e9b7d1c93af527579"],
  [data-stitch-screen="42dfb9feee254e6e8c2b87042916278f"],
  [data-stitch-screen="9226e183312241d9a8d4660311976494"],
  [data-stitch-screen="7507683ab65f423997edeb17965d1719"],
  [data-stitch-screen="a4cd9a445818482aa2bcb3f94afecb94"],
  [data-stitch-screen="31bfea1b9c614aa0b70d4d889624c7e7"]
) :is(.table-card,.panel,.editor-card,.workspace-stat,.register-filters,.filter-row) {
  min-width:0;
  border-color:var(--tv-stitch-route-line);
  background:var(--tv-stitch-route-paper);
  box-shadow:none;
}
:is(
  [data-stitch-screen="7e09ac1db256429ab8e6b2e11fe1f089"],
  [data-stitch-screen="72278d3080784823a2317e639302afb2"],
  [data-stitch-screen="28675d1f505b4d34af2bd00056fe5088"],
  [data-stitch-screen="91db8e83b83248108fb1963be88cb541"],
  [data-stitch-screen="6cd8c3c468ae46489a279e1a4f0a5e76"],
  [data-stitch-screen="136813d8c5ca462c886b59dfe063ae48"],
  [data-stitch-screen="d66bf2a9e0834e1d9becdade4cb7c0e6"],
  [data-stitch-screen="6ef8f4f173f8443e9b7d1c93af527579"],
  [data-stitch-screen="42dfb9feee254e6e8c2b87042916278f"],
  [data-stitch-screen="9226e183312241d9a8d4660311976494"],
  [data-stitch-screen="7507683ab65f423997edeb17965d1719"],
  [data-stitch-screen="a4cd9a445818482aa2bcb3f94afecb94"],
  [data-stitch-screen="31bfea1b9c614aa0b70d4d889624c7e7"]
) :is(h1,h2,h3,h4) {color:var(--tv-stitch-route-ink);letter-spacing:-.02em;}
:is(
  [data-stitch-screen="7e09ac1db256429ab8e6b2e11fe1f089"],
  [data-stitch-screen="72278d3080784823a2317e639302afb2"],
  [data-stitch-screen="28675d1f505b4d34af2bd00056fe5088"],
  [data-stitch-screen="91db8e83b83248108fb1963be88cb541"],
  [data-stitch-screen="6cd8c3c468ae46489a279e1a4f0a5e76"],
  [data-stitch-screen="136813d8c5ca462c886b59dfe063ae48"],
  [data-stitch-screen="d66bf2a9e0834e1d9becdade4cb7c0e6"],
  [data-stitch-screen="6ef8f4f173f8443e9b7d1c93af527579"],
  [data-stitch-screen="42dfb9feee254e6e8c2b87042916278f"],
  [data-stitch-screen="9226e183312241d9a8d4660311976494"],
  [data-stitch-screen="7507683ab65f423997edeb17965d1719"],
  [data-stitch-screen="a4cd9a445818482aa2bcb3f94afecb94"],
  [data-stitch-screen="31bfea1b9c614aa0b70d4d889624c7e7"]
) :is(.helper-copy,.route-context-bar,.workspace-stat small,td small) {color:var(--tv-stitch-route-muted);}

/* Route identity is separate from an existing nested Stitch renderer identity.
   Skin the committed legacy route root without overwriting that inner owner. */
[data-stitch-route-screen] {
  --tv-stitch-route-ink:var(--tv-text,#122c46);
  --tv-stitch-route-muted:var(--tv-text-muted,#4d6178);
  --tv-stitch-route-line:var(--tv-border,#c7d4e2);
  --tv-stitch-route-paper:var(--tv-surface,#fff);
  color:var(--tv-stitch-route-ink);
  min-width:0;
}
[data-stitch-route-screen] :is(.workspace-hero,.record-header,.register-toolbar) {
  color:var(--tv-stitch-route-ink);
  background:var(--tv-stitch-route-paper);
  border-color:var(--tv-stitch-route-line);
  box-shadow:none;
}
[data-stitch-route-screen] :is(.table-card,.panel,.editor-card,.workspace-stat,.register-filters,.filter-row) {
  min-width:0;
  border-color:var(--tv-stitch-route-line);
  background:var(--tv-stitch-route-paper);
  box-shadow:none;
}
[data-stitch-route-screen] :is(h1,h2,h3,h4) {color:var(--tv-stitch-route-ink);letter-spacing:-.02em;}
[data-stitch-route-screen] :is(.helper-copy,.route-context-bar,.workspace-stat small,td small) {color:var(--tv-stitch-route-muted);}

/* Stitch's shared business states: preserve the existing route/API behavior,
   but make empty, conflict, and journal-edit states read like one product. */
[data-stitch-route-screen] :is(.empty-state,.tv-register-empty-state,.invoice-empty-state) {
  display:grid;
  gap:10px;
  padding:24px;
  border:1px solid var(--tv-stitch-route-line);
  border-radius:8px;
  background:var(--tv-stitch-route-paper);
  color:var(--tv-stitch-route-ink);
  line-height:1.55;
}
[data-stitch-route-screen] :is(.empty-state,.tv-register-empty-state,.invoice-empty-state) :is(h2,h3,strong) {
  color:var(--tv-stitch-route-ink);
  margin:0;
}
[data-stitch-route-screen] :is(.empty-state,.tv-register-empty-state,.invoice-empty-state) :is(p,small) {
  color:var(--tv-stitch-route-muted);
  margin:0;
  max-width:78ch;
}
[data-stitch-route-screen] .tv-invoice-editor .form-errors.tv-stitch-conflict-state,
.tv-invoice-editor .form-errors.tv-stitch-conflict-state {
  display:grid;
  gap:8px;
  padding:16px;
  border:1px solid var(--tv-danger-border,#e8bbb6);
  border-left:4px solid var(--tv-danger,#b42318);
  border-radius:6px;
  background:var(--tv-danger-soft,#fff1f0);
  color:var(--tv-text,#122c46);
}
.tv-invoice-editor .form-errors.tv-stitch-conflict-state > :first-child {font-weight:700;}
.tv-invoice-editor .form-errors.tv-stitch-conflict-state > :not(:first-child) {color:var(--tv-text-muted,#4d6178);}
.tv-invoice-editor .form-errors[hidden] {display:none;}
.tv-stitch-journal-editor[data-stitch-screen="94713288db884033b1df58ddd7c7452e"] {
  display:grid;
  gap:20px;
  color:var(--tv-text,#122c46);
}
.tv-stitch-journal-editor .journal-editor-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:16px 0 12px;
  border-bottom:1px solid var(--tv-border,#c7d4e2);
}
.tv-stitch-journal-editor .journal-editor-heading h3 {margin:0 0 4px;}
.tv-stitch-journal-editor .journal-editor-heading p {margin:0;color:var(--tv-text-muted,#4d6178);}
.tv-stitch-journal-editor .journal-editor-lines {display:grid;gap:8px;min-width:0;}
.tv-stitch-journal-editor .journal-editor-line {
  display:grid;
  grid-template-columns:minmax(170px,1.35fr) minmax(120px,1fr) minmax(110px,.8fr) minmax(110px,.8fr) minmax(150px,1.2fr) 40px;
  align-items:center;
  gap:8px;
  min-width:0;
  padding:8px;
  border:1px solid var(--tv-border,#c7d4e2);
  border-radius:6px;
  background:var(--tv-surface,#fff);
}
.tv-stitch-journal-editor .journal-editor-line > * {min-width:0;}
.tv-stitch-journal-editor :is(input,select,textarea) {width:100%;}

/* Cross-domain states used by real route renderers. Identity is added only
   when that state is active; normal page content is unaffected. */
[data-stitch-screen="2f95bed570ee49f6872acaadea8c969e"] {
  display:grid;
  gap:10px;
  padding:24px;
  border:1px dashed var(--tv-border,#c7d4e2);
  border-radius:10px;
  background:var(--tv-surface,#fff);
  color:var(--tv-text,#122c46);
}
[data-stitch-screen="2f95bed570ee49f6872acaadea8c969e"] :is(h2,h3,p) { margin-block:0; }
[data-stitch-screen="2f95bed570ee49f6872acaadea8c969e"] p { color:var(--tv-text-muted,#4d6178); }
[data-stitch-screen="3e99789277ba43f0970e4baf7a883c91"] {
  display:grid;
  gap:10px;
  padding:16px;
  border:1px solid var(--tv-danger-border,#e8bbb6);
  border-left:4px solid var(--tv-danger,#b42318);
  border-radius:8px;
  background:var(--tv-danger-soft,#fff1f0);
  color:var(--tv-text,#122c46);
}
[data-stitch-screen="3e99789277ba43f0970e4baf7a883c91"] :is(p,small) { color:var(--tv-text-muted,#4d6178); line-height:1.55; }
[data-stitch-screen="a8d7ec1754d94f7597f5c4862dcd49d2"] { min-width:0; overflow-x:auto; }
[data-stitch-screen="a8d7ec1754d94f7597f5c4862dcd49d2"] :is(table,.table-card) { min-width:0; max-width:100%; }
@media(max-width:560px) {
  [data-stitch-screen="2f95bed570ee49f6872acaadea8c969e"] { padding:16px; }
  [data-stitch-screen="3e99789277ba43f0970e4baf7a883c91"] { padding:12px; }
}
@media(max-width:850px) {
  .tv-stitch-journal-editor .journal-editor-line {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:560px) {
  [data-stitch-route-screen] :is(.empty-state,.tv-register-empty-state,.invoice-empty-state) {padding:16px;}
  .tv-stitch-journal-editor .journal-editor-heading {flex-direction:column;}
  .tv-stitch-journal-editor .journal-editor-line {grid-template-columns:minmax(0,1fr);}
}

/* Payment terms: faithful Stitch composition, limited to live service fields. */
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-stitch-workspace {
  display:grid;gap:16px;min-width:0;
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-immutability {
  display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:6px 12px;
  padding:14px 16px;border:1px solid #f0d58f;border-radius:8px;
  background:#fff8e8;color:#704900;line-height:1.5;
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-immutability strong {
  font-size:13px;white-space:nowrap;
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-immutability span {
  font-size:13px;overflow-wrap:anywhere;
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-term-register {
  min-width:0;overflow-x:auto;border:1px solid var(--tv-border,#c7d4e2);
  border-radius:10px;background:var(--tv-surface,#fff);
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .tv-route-summary-toggle {
  display:none;
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-term-register .filters {
  align-items:end;gap:12px;padding:14px 16px;background:#f7f9fc;
  border-bottom:1px solid var(--tv-border,#c7d4e2);
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-term-register .data-table {
  min-width:820px;
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-term-register .data-table tbody tr[aria-selected="true"] {
  background:#eef5ff;
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-stitch-detail {
  min-width:0;scroll-margin-top:20px;
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-detail-card {
  display:grid;gap:18px;min-width:0;padding:20px;
  border:1px solid var(--tv-border,#c7d4e2);border-radius:10px;background:#fff;
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-detail-header {
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding-bottom:16px;border-bottom:1px solid var(--tv-border,#c7d4e2);
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-detail-identity {
  display:flex;align-items:center;gap:12px;min-width:0;
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-day-mark {
  display:grid;place-items:center;flex:0 0 48px;min-height:48px;padding:4px;
  border-radius:8px;background:#e8f3fc;color:#005799;font-size:14px;font-weight:750;
  font-variant-numeric:tabular-nums;overflow-wrap:anywhere;
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-detail-eyebrow {
  color:var(--tv-text-muted,#4d6178);font-size:10px;font-weight:750;letter-spacing:.08em;
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-detail-identity h2 {
  margin:3px 0;color:var(--tv-text,#122c46);font-size:20px;line-height:1.25;
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-detail-identity p {
  margin:0;color:var(--tv-text-muted,#4d6178);font-size:12px;overflow-wrap:anywhere;
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-detail-actions {
  display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-detail-grid {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;min-width:0;
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-detail-grid > .panel {
  min-width:0;padding:16px;border:1px solid var(--tv-border,#c7d4e2);
  border-radius:8px;background:#f7f9fc;box-shadow:none;
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-detail-grid .info-line {
  display:grid;grid-template-columns:minmax(100px,.8fr) minmax(0,1.2fr);gap:10px;
  align-items:start;padding:9px 0;border-bottom:1px solid #e4eaf1;overflow-wrap:anywhere;
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-detail-grid .info-line:last-child {border-bottom:0;}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-audit {
  min-width:0;padding-top:14px;border-top:1px solid var(--tv-border,#c7d4e2);
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-audit-heading {
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-audit-heading h3 {margin:0;font-size:15px;}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-audit-heading span,
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-audit p {color:var(--tv-text-muted,#4d6178);font-size:12px;}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-audit-list {
  display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;
  margin:12px 0 0;padding:0;list-style:none;
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-audit-list li {
  display:grid;gap:4px;min-width:0;padding:10px 12px;border:1px solid #e4eaf1;
  border-radius:6px;background:#fff;overflow-wrap:anywhere;
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-audit-list :is(span,small) {color:var(--tv-text-muted,#4d6178);font-size:11px;}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] :is(.payment-terms-detail-loading,.payment-terms-detail-error) {
  display:grid;gap:8px;padding:16px;border:1px solid var(--tv-border,#c7d4e2);border-radius:8px;background:#fff;
}
[data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-detail-error {border-color:#e8bbb6;background:#fff1f0;}
@media(max-width:1050px) {
  [data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-detail-grid {grid-template-columns:1fr 1fr;}
  [data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-detail-grid > .panel:last-child {grid-column:1/-1;}
}
@media(max-width:680px) {
  [data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-immutability {grid-template-columns:1fr;}
  [data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-immutability strong {white-space:normal;}
  [data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-detail-card {padding:14px;}
  [data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-detail-header {align-items:flex-start;flex-direction:column;}
  [data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-detail-actions {justify-content:flex-start;width:100%;}
  [data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-detail-grid {grid-template-columns:1fr;}
  [data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-detail-grid > .panel:last-child {grid-column:auto;}
  [data-stitch-route-screen="22722cffada9441f929908d49458c5bd"] .payment-terms-detail-grid .info-line {grid-template-columns:minmax(0,1fr);gap:3px;}
}

/* Budgets: Stitch variance-ledger composition, backed only by the governed
   budget read model. This route owns its page layout; shared route components
   continue to own their behavior and authorization. */
.budgets-server-host[data-stitch-route-id="budgets"] {min-width:0;color:var(--tv-text);}
.budgets-server-host[data-stitch-route-id="budgets"] > .tv-route-frame {
  display:grid;gap:16px;width:min(100%,1600px);margin-inline:auto;
}
.budgets-server-host[data-stitch-route-id="budgets"] .workspace-hero {
  align-items:center;padding:4px 0 18px;border:0;border-bottom:1px solid var(--tv-border);
  border-radius:0;background:transparent;box-shadow:none;
}
.budgets-server-host[data-stitch-route-id="budgets"] .workspace-hero h1 {
  margin:0;color:var(--tv-text);font-size:clamp(25px,2.4vw,34px);letter-spacing:-.035em;
}
.budgets-server-host[data-stitch-route-id="budgets"] .workspace-hero p {
  max-width:78ch;margin:7px 0 0;color:var(--tv-text-muted);line-height:1.5;
}
.budgets-server-host[data-stitch-route-id="budgets"] .workspace-hero-actions {gap:8px;}
.budgets-server-host[data-stitch-route-id="budgets"] .tv-route-summary {
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;overflow:hidden;
  border:1px solid var(--tv-border);border-radius:10px;background:var(--tv-surface);box-shadow:none;
}
.budgets-server-host[data-stitch-route-id="budgets"] .tv-route-summary-cell {
  display:grid;align-content:center;gap:5px;min-width:0;min-height:76px;padding:12px 16px;
  border:0;border-right:1px solid var(--tv-border);border-radius:0;background:transparent;box-shadow:none;
}
.budgets-server-host[data-stitch-route-id="budgets"] .tv-route-summary-cell:last-of-type {border-right:0;}
.budgets-server-host[data-stitch-route-id="budgets"] .tv-route-summary-cell > span {
  color:var(--tv-text-muted);font-size:11px;font-weight:700;letter-spacing:.045em;text-transform:uppercase;
}
.budgets-server-host[data-stitch-route-id="budgets"] .tv-route-summary-cell > strong {
  color:var(--tv-text);font-size:20px;line-height:1.15;font-variant-numeric:tabular-nums;
}
.budgets-server-host[data-stitch-route-id="budgets"] .tv-route-summary-cell > small {color:var(--tv-text-muted);font-size:11px;line-height:1.4;}
.budgets-server-host[data-stitch-route-id="budgets"] .tv-route-summary-toggle {
  grid-column:1/-1;justify-self:start;min-height:34px;padding:6px 14px;border:0;border-top:1px solid var(--tv-border);
  border-radius:0;background:transparent;color:var(--tv-brand);font-size:12px;font-weight:650;text-align:left;
}
.budgets-server-host[data-stitch-route-id="budgets"] .workspace-body,
.budgets-server-host[data-stitch-route-id="budgets"] .workspace-main {display:grid;gap:14px;min-width:0;}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-register {
  min-width:0;overflow:hidden;border:1px solid var(--tv-border);border-radius:10px;
  background:var(--tv-surface);box-shadow:none;
}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-register-heading {
  display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:17px 18px 15px;
  border-bottom:1px solid var(--tv-border);background:var(--tv-surface);
}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-register-heading h2 {
  margin:2px 0 0;color:var(--tv-text);font-size:17px;letter-spacing:-.02em;
}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-register-heading p {
  margin:4px 0 0;color:var(--tv-text-muted);font-size:12px;line-height:1.45;
}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-register-kicker {
  color:var(--tv-text-muted);font-size:10px;font-weight:750;letter-spacing:.12em;
}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-register-evidence {
  display:flex;align-items:center;justify-content:flex-end;gap:8px;max-width:42%;
  color:var(--tv-text-muted);font-size:11px;text-align:right;
}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-evidence-dot {
  flex:0 0 8px;width:8px;height:8px;border-radius:50%;background:var(--tv-border-strong);
}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-evidence-dot.is-current {background:var(--tv-success);}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-filters {
  display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;padding:12px 16px;
  border-bottom:1px solid var(--tv-border);background:var(--tv-surface-muted);
}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-filters .field {display:grid;gap:5px;min-width:150px;}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-filters .field:first-child {flex:1;min-width:min(260px,100%);}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-filters .field > :first-child {
  color:var(--tv-text-muted);font-size:11px;font-weight:650;
}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-filters :is(input,select) {min-height:40px;}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-table-scroll {
  max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;
  scrollbar-color:var(--tv-border-strong) transparent;scrollbar-width:thin;
}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-register .data-table {
  width:100%;min-width:1040px;table-layout:fixed;border-collapse:collapse;font-size:12px;
}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-register .data-table th {
  padding:11px 10px;border-bottom:1px solid var(--tv-border);background:var(--tv-surface-muted);
  color:var(--tv-text-muted);font-size:10px;font-weight:750;letter-spacing:.045em;text-transform:uppercase;white-space:normal;
}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-register .data-table td {
  padding:12px 10px;border-bottom:1px solid var(--tv-border);vertical-align:middle;
  color:var(--tv-text);font-size:12px;line-height:1.4;overflow-wrap:anywhere;
}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-register .data-table tbody tr:hover {background:var(--tv-surface-muted);}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-register .data-table :is(th,td):nth-child(n+5):nth-child(-n+8) {text-align:right;}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-register .data-table :is(th,td):nth-child(1) {width:19%;}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-register .data-table :is(th,td):nth-child(2) {width:12%;}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-register .data-table :is(th,td):nth-child(3) {width:13%;}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-register .data-table :is(th,td):nth-child(4) {width:9%;}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-register .data-table :is(th,td):nth-child(5) {width:13%;}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-register .data-table :is(th,td):nth-child(6) {width:13%;}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-register .data-table :is(th,td):nth-child(7) {width:13%;}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-register .data-table :is(th,td):nth-child(8) {width:8%;}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-register .data-table td:nth-child(n+5):nth-child(-n+8) .tv-entity-cell > strong {
  font-variant-numeric:tabular-nums;white-space:nowrap;
}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-register .tv-entity-cell {display:grid;gap:3px;min-width:0;}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-register .tv-entity-cell > strong {font-size:12px;}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-register .tv-entity-cell > small {color:var(--tv-text-muted);font-size:10px;line-height:1.35;}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-utilization {display:grid;gap:6px;min-width:74px;}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-utilization-value {font-variant-numeric:tabular-nums;font-weight:650;}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-utilization-track {display:block;height:5px;overflow:hidden;border-radius:99px;background:var(--tv-surface-strong);}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-utilization-fill {display:block;height:100%;border-radius:inherit;background:var(--tv-brand);}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-utilization.is-over .budget-utilization-fill {background:var(--tv-danger);}
.budgets-server-host[data-stitch-route-id="budgets"] .budget-pagination {
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  padding:11px 16px;border-top:1px solid var(--tv-border);color:var(--tv-text-muted);font-size:12px;
}
.budgets-server-host[data-stitch-route-id="budgets"] .tv-register-empty-state {margin:14px;padding:22px;border:1px solid var(--tv-border);border-radius:8px;background:var(--tv-surface-muted);}
.budgets-server-host[data-stitch-route-id="budgets"] .tv-inspector-section {border-color:var(--tv-border);background:var(--tv-surface);box-shadow:none;}
@media(max-width:760px) {
  .budgets-server-host[data-stitch-route-id="budgets"] .workspace-hero {align-items:flex-start;flex-direction:column;padding:0 0 14px;}
  .budgets-server-host[data-stitch-route-id="budgets"] .workspace-hero-actions {width:100%;justify-content:flex-start;}
  .budgets-server-host[data-stitch-route-id="budgets"] .workspace-hero-actions > * {flex:1;}
  .budgets-server-host[data-stitch-route-id="budgets"] .tv-route-summary {grid-template-columns:repeat(2,minmax(0,1fr));}
  .budgets-server-host[data-stitch-route-id="budgets"] .tv-route-summary-cell {min-height:68px;border-bottom:1px solid var(--tv-border);}
  .budgets-server-host[data-stitch-route-id="budgets"] .tv-route-summary-cell:nth-child(2n) {border-right:0;}
  .budgets-server-host[data-stitch-route-id="budgets"] .tv-route-summary-cell:nth-last-child(-n+2) {border-bottom:0;}
  .budgets-server-host[data-stitch-route-id="budgets"] .budget-register-heading {align-items:flex-start;flex-direction:column;}
  .budgets-server-host[data-stitch-route-id="budgets"] .budget-register-evidence {max-width:none;justify-content:flex-start;text-align:left;}
  .budgets-server-host[data-stitch-route-id="budgets"] .budget-filters .field:first-child {flex-basis:100%;}
  .budgets-server-host[data-stitch-route-id="budgets"] .budget-pagination {align-items:flex-start;}
}
@media(max-width:380px) {
  .budgets-server-host[data-stitch-route-id="budgets"] .tv-route-summary-cell {padding:10px;}
  .budgets-server-host[data-stitch-route-id="budgets"] .tv-route-summary-cell > strong {font-size:17px;}
  .budgets-server-host[data-stitch-route-id="budgets"] .budget-filters > * {min-width:100%;}
  .budgets-server-host[data-stitch-route-id="budgets"] .budget-filters .btn {width:100%;}
}

/* The shared overlay manager mounts this drawer outside the route host. Give
   that portal one explicit owner so budget detail cannot fall back to the
   accumulated legacy drawer treatment. */
.drawer.budget-detail-drawer[data-tv-overlay="drawer"] {
  display:flex;width:min(800px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;
  flex-direction:column;overflow:hidden;border:0;border-left:1px solid var(--tv-border);
  border-radius:0;background:var(--tv-surface);color:var(--tv-text);
}
.budget-detail-drawer .drawer-header,
.budget-detail-drawer .drawer-footer {
  position:relative;z-index:1;flex:0 0 auto;border-color:var(--tv-border);
  background:var(--tv-surface);color:var(--tv-text);
}
.budget-detail-drawer .drawer-header {padding:16px 20px;}
.budget-detail-drawer .drawer-title h2 {margin:0;font-size:18px;line-height:1.3;letter-spacing:-.02em;}
.budget-detail-drawer .drawer-title p {margin:4px 0 0;color:var(--tv-text-muted);font-size:12px;overflow-wrap:anywhere;}
.budget-detail-drawer .drawer-body {flex:1 1 auto;min-height:0;overflow:auto;padding:0;overscroll-behavior:contain;}
.budget-detail-drawer .drawer-footer {display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding:12px 20px;}
.budget-detail-drawer .budget-detail {display:grid;gap:14px;min-width:0;padding:18px 20px 22px;}
.budget-detail-drawer .budget-detail .detail-hero {
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;
  min-width:0;padding:18px 20px;border:1px solid var(--tv-border);border-left:4px solid var(--tv-brand);
  border-radius:10px;background:var(--tv-surface-muted);box-shadow:none;
}
.budget-detail-drawer .budget-detail .detail-kicker {color:var(--tv-text-muted);font-size:10px;font-weight:750;letter-spacing:.11em;text-transform:uppercase;}
.budget-detail-drawer .budget-detail .detail-hero h2 {margin:5px 0;color:var(--tv-text);font-size:22px;line-height:1.2;letter-spacing:-.025em;overflow-wrap:anywhere;}
.budget-detail-drawer .budget-detail .detail-hero p {margin:0;color:var(--tv-text-muted);font-size:13px;line-height:1.45;overflow-wrap:anywhere;}
.budget-detail-drawer .budget-detail .detail-hero-aside {display:grid;gap:4px;justify-items:end;min-width:150px;text-align:right;}
.budget-detail-drawer .budget-detail .detail-hero-aside strong {color:var(--tv-text);font-size:21px;font-variant-numeric:tabular-nums;line-height:1.2;}
.budget-detail-drawer .budget-detail .detail-hero-aside span {color:var(--tv-text-muted);font-size:11px;}
.budget-detail-drawer .budget-detail .panel {
  min-width:0;margin:0;padding:0;overflow:hidden;border:1px solid var(--tv-border);
  border-radius:10px;background:var(--tv-surface);box-shadow:none;
}
.budget-detail-drawer .budget-detail .panel > h2 {margin:0;padding:13px 16px;border-bottom:1px solid var(--tv-border);font-size:14px;line-height:1.35;}
.budget-detail-drawer .budget-detail .panel > .data-table {display:table;width:100%;min-width:950px;table-layout:fixed;border-collapse:collapse;font-size:12px;}
.budget-detail-drawer .budget-detail .panel:has(> .data-table) {overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;}
.budget-detail-drawer .budget-detail .panel > .data-table :is(th,td) {overflow-wrap:anywhere;}
.budget-detail-drawer .budget-detail .panel > .data-table :is(th,td):nth-child(1) {width:120px;}
.budget-detail-drawer .budget-detail .panel > .data-table :is(th,td):nth-child(2) {width:180px;}
.budget-detail-drawer .budget-detail .panel > .data-table :is(th,td):nth-child(3) {width:180px;}
.budget-detail-drawer .budget-detail .panel > .data-table :is(th,td):nth-child(4) {width:180px;}
.budget-detail-drawer .budget-detail .panel > .data-table :is(th,td):nth-child(5) {width:180px;}
.budget-detail-drawer .budget-detail .panel > .data-table :is(th,td):nth-child(6) {width:110px;}
.budget-detail-drawer .budget-detail .tv-entity-cell {display:grid;gap:3px;min-width:0;line-height:1.35;}
.budget-detail-drawer .budget-detail .tv-entity-cell > :is(strong,span,small) {min-width:0;overflow-wrap:anywhere;}
.budget-detail-drawer .budget-detail .tv-entity-cell > strong {font-size:12px;font-variant-numeric:tabular-nums;}
.budget-detail-drawer .budget-detail .tv-entity-cell > span {color:var(--tv-text-muted);font-size:11px;line-height:1.35;}
.budget-detail-drawer .budget-detail .tv-entity-cell > small {color:var(--tv-text-muted);font-size:10px;line-height:1.35;}
.budget-detail-drawer .budget-detail .panel > .data-table th {padding:10px 12px;background:var(--tv-surface-muted);color:var(--tv-text-muted);font-size:10px;line-height:1.35;white-space:normal;}
.budget-detail-drawer .budget-detail .panel > .data-table td {padding:11px 12px;vertical-align:top;font-size:12px;line-height:1.4;}
.budget-detail-drawer .budget-detail .panel > .health-line {display:grid;grid-template-columns:minmax(145px,.8fr) minmax(0,1.2fr);gap:16px;margin:0;padding:11px 16px;border-bottom:1px solid var(--tv-border);}
.budget-detail-drawer .budget-detail .panel > .health-line:last-child {border-bottom:0;}
.budget-detail-drawer .budget-detail .panel > .health-line > span {color:var(--tv-text-muted);font-size:12px;}
.budget-detail-drawer .budget-detail .panel > .health-line > strong {min-width:0;color:var(--tv-text);font-size:12px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
.budget-detail-drawer .budget-detail .panel > .helper-copy {margin:0;padding:14px 16px;color:var(--tv-text-muted);font-size:12px;line-height:1.5;}
.budget-detail-drawer .drawer-footer :is(button,.btn) {min-height:40px;}
@media(max-width:560px) {
  .drawer.budget-detail-drawer[data-tv-overlay="drawer"] {width:100vw;}
  .budget-detail-drawer .drawer-header {padding:13px 14px;}
  .budget-detail-drawer .drawer-footer {justify-content:stretch;padding:10px 14px;}
  .budget-detail-drawer .drawer-footer > * {flex:1 1 auto;}
  .budget-detail-drawer .budget-detail {gap:10px;padding:12px 12px 18px;}
  .budget-detail-drawer .budget-detail .detail-hero {grid-template-columns:minmax(0,1fr);gap:12px;padding:14px;}
  .budget-detail-drawer .budget-detail .detail-hero h2 {font-size:19px;}
  .budget-detail-drawer .budget-detail .detail-hero-aside {justify-items:start;min-width:0;text-align:left;}
  .budget-detail-drawer .budget-detail .panel > .health-line {grid-template-columns:minmax(0,1fr);gap:4px;padding:10px 13px;}
}
