/* Owner: recovered Stitch cc903921505140e1a3665c7bf48b15be.
   Domain composition only; shell, documents and other routes are untouched. */
.accounting-dimensions-stitch:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  color: #102338;
  background: #f8fafc;
  display: grid;
  gap: 24px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
  container-type: inline-size;
}
.accounting-dimensions-stitch .dimension-page-header:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}
.accounting-dimensions-stitch h1:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ font-size: 24px; margin: 4px 0; }
.accounting-dimensions-stitch h2:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ font-size: 18px; margin: 8px 0; }
.accounting-dimensions-stitch h3:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ font-size: 14px; margin: 0 0 8px; }
.accounting-dimensions-stitch p:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ margin: 4px 0; color: #52657d; }
.accounting-dimensions-stitch .dimension-scope:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ font-size: 12px; }
.accounting-dimensions-stitch .dimension-page-actions:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)),.dimension-inspection > .drawer-header-actions:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: flex; flex-wrap: wrap; gap: 8px; }
.accounting-dimensions-stitch .dimension-metrics:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.accounting-dimensions-stitch .dimension-metric:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)),.accounting-dimensions-stitch .dimension-register:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)),.dimension-inspection .dimension-detail-card:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  min-width: 0;
}
.accounting-dimensions-stitch .dimension-metric:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ padding: 16px; }
.accounting-dimensions-stitch .dimension-metric > span:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)),.accounting-dimensions-stitch .dimension-metric p:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ font-size: 12px; color: #52657d; }
.accounting-dimensions-stitch .dimension-metric strong:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: block; font-size: 22px; font-variant-numeric: tabular-nums; margin: 4px 0; }
.accounting-dimensions-stitch .dimension-metric-ready strong:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ color: #047857; }
.accounting-dimensions-stitch .dimension-metric-needs-setup strong:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ color: #b45309; }
.accounting-dimensions-stitch .dimension-workspace:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
.accounting-dimensions-stitch .accounting-dimension-filters:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 16px 16px 8px; background: #f8fafc; align-items: end; }
.accounting-dimensions-stitch .accounting-dimension-filters > :first-child:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ flex: 1 1 240px; }
.accounting-dimensions-stitch .accounting-dimension-filters input:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)),.accounting-dimensions-stitch .accounting-dimension-filters select:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ min-height: 38px; font-size: 14px; width: 100%; }
.accounting-dimensions-stitch .dimension-register-context:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ font-size: 12px; padding: 0 16px 12px; margin: 0; }
.dimension-table-scroll:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ min-width: 0; max-width: 100%; overflow-x: auto; }
.dimension-table-scroll:focus-visible:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ outline: 2px solid #2563eb; outline-offset: -2px; }
.accounting-dimensions-stitch .data-table:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ width: 100%; min-width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
.accounting-dimensions-stitch .dimension-register .data-table:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ min-width: 760px; }
.accounting-dimensions-stitch .dimension-register .data-table th:first-child:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ width: 24%; }
.accounting-dimensions-stitch .dimension-register .data-table th:nth-child(2):where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ width: 13%; }
.accounting-dimensions-stitch .dimension-register .data-table th:nth-child(3):where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ width: 9%; }
.accounting-dimensions-stitch .dimension-register .data-table th:nth-child(4):where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ width: 14%; }
.accounting-dimensions-stitch .dimension-register .data-table th:nth-child(5):where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ width: 8%; }
.accounting-dimensions-stitch .dimension-register .data-table th:nth-child(6):where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ width: 16%; }
.accounting-dimensions-stitch .dimension-register .data-table th:last-child:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ width: 16%; }
.accounting-dimensions-stitch .data-table th:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ background: #f8fafc; color: #52657d; font-size: 12px; text-align: left; padding: 12px; }
.accounting-dimensions-stitch .dimension-register .data-table th:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ overflow-wrap: normal; }
.accounting-dimensions-stitch .data-table td:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ padding: 12px; border-top: 1px solid #e2e8f0; vertical-align: top; }
.accounting-dimensions-stitch .data-table th:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)),.accounting-dimensions-stitch .data-table td:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ overflow-wrap: anywhere; }
.accounting-dimensions-stitch .data-table tr:has(button[aria-pressed="true"]):where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ background: #eff6ff; box-shadow: inset 3px 0 #2563eb; }
.accounting-dimensions-stitch .dimension-cell:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: grid; gap: 4px; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.accounting-dimensions-stitch .dimension-cell strong:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ overflow: visible; text-overflow: clip; white-space: normal; }
.accounting-dimensions-stitch .dimension-cell > span:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: block; font-size: 12px; }
.accounting-dimensions-stitch .dimension-cell-detail:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ color: #52657d; }
.accounting-dimensions-stitch .dimension-identity:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)),.accounting-dimensions-stitch .dimension-configuration:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: grid; gap: 6px; }
.accounting-dimensions-stitch .accounting-dimension-pagination:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ margin: 0; padding: 12px 16px; border-top: 1px solid #e2e8f0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; }
.dimension-inspection:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ min-width: 0; display: grid; gap: 12px; }
.dimension-inspection > .drawer-header-actions:empty:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: none; }
.dimension-inspection .dimension-drawer-toggle:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: none; }
:is(.dimension-inspection, .accounting-dimension-drawer) .accounting-dimension-detail:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: grid; gap: 16px; min-width: 0; }
:is(.dimension-inspection, .accounting-dimension-drawer) .dimension-detail-card:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ padding: 20px; background: white; border: 1px solid #e2e8f0; border-radius: 12px; min-width: 0; }
:is(.dimension-inspection, .accounting-dimension-drawer) .dimension-record-identity:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; }
:is(.dimension-inspection, .accounting-dimension-drawer) .dimension-detail-grid:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px 0; border-top: 1px solid #e2e8f0; margin-top: 16px; }
:is(.dimension-inspection, .accounting-dimension-drawer) .dimension-detail-card .health-line:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: grid; gap: 4px; margin: 4px 0; min-width: 0; overflow-wrap: anywhere; }
:is(.dimension-inspection, .accounting-dimension-drawer) .dimension-card-heading:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
:is(.dimension-inspection, .accounting-dimension-drawer) .dimension-card-heading > :first-child:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ flex: 1 1 180px; min-width: 0; }
:is(.dimension-inspection, .accounting-dimension-drawer) .dimension-card-heading h3:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ margin: 0; align-self: center; }
:is(.dimension-inspection, .accounting-dimension-drawer) .dimension-detail-card .health-line > span:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ font-size: 12px; color: #52657d; }
:is(.dimension-inspection, .accounting-dimension-drawer) .dimension-detail-card .health-line > strong:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ font-size: 14px; }
:is(.dimension-inspection, .accounting-dimension-drawer) .dimension-reference-evidence:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ padding: 12px; margin-top: 16px; background: #f8fafc; border-radius: 8px; }
:is(.dimension-inspection, .accounting-dimension-drawer) .dimension-reference-evidence .health-line:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
:is(.dimension-inspection, .accounting-dimension-drawer) .data-table:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ min-width: 560px; }
.dimension-inspection .data-table:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ min-width: 440px; table-layout: fixed; }
.dimension-inspection .data-table th:nth-child(1):where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ width: 22%; }
.dimension-inspection .data-table th:nth-child(2):where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ width: 22%; }
.dimension-inspection .data-table th:nth-child(3):where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ width: 18%; }
.dimension-inspection .data-table th:nth-child(4):where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ width: 14%; }
.dimension-inspection .data-table th:nth-child(5):where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ width: 24%; }
.dimension-inspection .dimension-values-card .data-table :is(th, td):where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ padding: 8px; }
.dimension-inspection .dimension-values-card .data-table th:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ overflow-wrap: normal; }
.dimension-inspection .dimension-values-card .badge:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ white-space: nowrap; }
:is(.dimension-inspection, .accounting-dimension-drawer) code:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ overflow-wrap: anywhere; }
.dimension-value-actions:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: flex; flex-wrap: wrap; gap: 8px; }
.accounting-dimension-drawer:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ position: fixed; inset: 0 0 0 auto; width: min(680px, 100vw); height: 100dvh; box-sizing: border-box; display: flex; flex-direction: column; background: #f8fafc; color: #102338; font-size: 14px; line-height: 1.5; }
.accounting-dimension-drawer .drawer-header:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 16px; background: white; border-bottom: 1px solid #e2e8f0; flex: 0 0 auto; }
.accounting-dimension-drawer .drawer-title:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ min-width: 0; overflow-wrap: anywhere; }
.accounting-dimension-drawer .drawer-title p:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ margin: 4px 0 0; font-size: 12px; color: #52657d; }
.accounting-dimension-drawer .icon-btn:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid #e2e8f0; border-radius: 8px; color: #102338; background: white; cursor: pointer; }
.accounting-dimension-drawer .icon-btn svg:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.accounting-dimension-drawer .drawer-body:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 16px; }
.accounting-dimension-drawer .drawer-footer:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: white; border-top: 1px solid #e2e8f0; flex: 0 0 auto; }
.accounting-dimension-drawer .drawer-header-actions:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: flex; flex-wrap: wrap; gap: 8px; }
.accounting-dimension-drawer .dimension-cell:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: grid; gap: 4px; overflow-wrap: anywhere; }
.accounting-dimension-drawer .dimension-cell > span:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: block; font-size: 12px; }
.accounting-dimension-drawer .dimension-cell-detail:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ color: #52657d; }
.accounting-dimension-drawer h2:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ font-size: 18px; margin: 8px 0; }
.accounting-dimension-drawer h3:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ font-size: 14px; margin: 0 0 8px; }
.accounting-dimension-drawer .data-table:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ width: 100%; border-collapse: collapse; font-size: 14px; }
.accounting-dimension-drawer .data-table th:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ background: #f8fafc; color: #52657d; font-size: 12px; text-align: left; }
.accounting-dimension-drawer .data-table :is(th, td):where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ padding: 12px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.accounting-dimension-drawer .btn:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ min-height: 38px; padding: 8px 12px; font-size: 14px; border: 1px solid #cbd5e1; border-radius: 8px; color: #102338; background: white; cursor: pointer; }
.accounting-dimension-drawer :is(.btn, .icon-btn):focus-visible:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ outline: 2px solid #2563eb; outline-offset: 2px; }
.accounting-dimension-drawer .btn:disabled:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ opacity: .6; cursor: not-allowed; }
.accounting-dimension-drawer .btn-primary:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ background: #2563eb; color: white; }
.accounting-dimensions-stitch .btn:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ min-height: 38px; font-size: 14px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.accounting-dimensions-stitch .data-table .btn:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ padding: 8px; }
.accounting-dimensions-stitch .badge:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ width: fit-content; max-width: 100%; white-space: nowrap; }
.accounting-dimensions-stitch .btn-primary:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ background: #2563eb; color: white; }
.dimension-values-card .dimension-value-actions .btn:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ white-space: normal; width: 100%; overflow-wrap: normal; }

/* The shared modal owns lifecycle/focus. These two existing forms identify
   presentation ownership without modifying the shared host or mutation code. */
body #tv-app > .app-shell .modal:has(.accounting-dimension-form, .dimension-value-form):where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  color: #102338;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}
body #tv-app > .app-shell .modal.modal-dimension-definition:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)),body #tv-app > .app-shell .modal.modal-dimension-value:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ width: min(680px, calc(100vw - 32px)); max-width: 680px; }
body #tv-app > .app-shell .modal:has(.accounting-dimension-form, .dimension-value-form) .modal-header:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: flex; justify-content: space-between; gap: 16px; padding: 20px; flex: 0 0 auto; background: white; border-bottom: 1px solid #e2e8f0; }
body #tv-app > .app-shell .modal:has(.accounting-dimension-form, .dimension-value-form) .modal-header h2:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ font-size: 20px; line-height: 1.3; margin: 0 0 8px; overflow-wrap: anywhere; }
body #tv-app > .app-shell .modal:has(.accounting-dimension-form, .dimension-value-form) .modal-header p:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ font-size: 14px; line-height: 1.5; color: #52657d; margin: 0; overflow-wrap: anywhere; }
body #tv-app > .app-shell .modal:has(.accounting-dimension-form, .dimension-value-form) .modal-body:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ flex: 1 1 auto; min-height: 0; padding: 20px; overflow: auto; overscroll-behavior: contain; }
body #tv-app > .app-shell .modal:has(.accounting-dimension-form, .dimension-value-form) .modal-footer:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; padding: 16px 20px; flex: 0 0 auto; background: #f8fafc; border-top: 1px solid #e2e8f0; }
body #tv-app > .app-shell .modal:has(.accounting-dimension-form, .dimension-value-form) .btn:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ min-height: 40px; padding: 8px 16px; border: 1px solid #cbd5e1; border-radius: 8px; background: white; color: #102338; font-size: 14px; font-weight: 600; line-height: 1.5; }
body #tv-app > .app-shell .modal:has(.accounting-dimension-form, .dimension-value-form) .btn-primary:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ background: #2563eb; color: white; border-color: #2563eb; }
body #tv-app > .app-shell .modal:has(.accounting-dimension-form, .dimension-value-form) .btn-danger:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ background: #fff1f2; color: #9f1239; border-color: #fecdd3; }
body #tv-app > .app-shell .modal:has(.accounting-dimension-form, .dimension-value-form) .btn:disabled:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ opacity: .55; cursor: not-allowed; }
body #tv-app > .app-shell .modal:has(.accounting-dimension-form, .dimension-value-form) .icon-btn:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; background: white; color: #102338; border: 1px solid #e2e8f0; border-radius: 8px; }
body #tv-app > .app-shell .modal:has(.accounting-dimension-form, .dimension-value-form) .icon-btn svg:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
body #tv-app > .app-shell .modal:has(.accounting-dimension-form, .dimension-value-form) :is(input, textarea, button):focus-visible:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ outline: 2px solid #2563eb; outline-offset: 2px; }
:is(.accounting-dimension-form, .dimension-value-form):where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: grid; gap: 16px; }
:is(.accounting-dimension-form, .dimension-value-form) .modal-grid:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
:is(.accounting-dimension-form, .dimension-value-form) label:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: normal; }
:is(.accounting-dimension-form, .dimension-value-form) :is(input:not([type="checkbox"]), textarea):where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ box-sizing: border-box; width: 100%; min-height: 42px; padding: 10px 12px; font-size: 14px; font-weight: 400; line-height: 1.5; color: #102338; background: white; border: 1px solid #cbd5e1; border-radius: 8px; }
:is(.accounting-dimension-form, .dimension-value-form) input:disabled:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ background: #f1f5f9; color: #52657d; }
:is(.accounting-dimension-form, .dimension-value-form) .check-field:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: flex; align-items: center; gap: 8px; min-height: 40px; }
.accounting-dimension-form .dimension-applies-grid:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.accounting-dimension-form .dimension-applies-section h3:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ margin: 0 0 8px; font-size: 16px; }
.accounting-dimension-form .dimension-applies-section p:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ color: #52657d; font-size: 14px; margin: 0 0 12px; }
:is(.accounting-dimension-form, .dimension-value-form) .form-errors:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ color: #9f1239; background: #fff1f2; border: 1px solid #fecdd3; border-radius: 8px; padding: 12px; font-size: 14px; }
@media (max-width: 1100px) {
  .accounting-dimensions-stitch .dimension-workspace:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ grid-template-columns: minmax(0, 1fr); }
  .dimension-inspection .dimension-drawer-toggle:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: inline-flex; }
}
/* Respond to the space left by the shell, not only the browser width. */
@container (max-width: 1100px) {
  .accounting-dimensions-stitch .dimension-workspace:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ grid-template-columns: minmax(0, 1fr); }
  .dimension-inspection .dimension-drawer-toggle:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: inline-flex; }
}
/* Keep the register and selected-record inspection side by side on common
   laptop widths. The shell already consumes part of the viewport, so the
   original 1100px collapse point needs a narrower effective cutoff. */
@container (min-width: 901px) and (max-width: 1100px) {
  .accounting-dimensions-stitch .dimension-workspace:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .dimension-inspection .dimension-drawer-toggle:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ display: none; }
}
@media (max-width: 600px) {
  .accounting-dimensions-stitch:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ gap: 16px; }
  .accounting-dimensions-stitch .dimension-page-header:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ align-items: start; flex-direction: column; }
  .accounting-dimensions-stitch .dimension-metrics:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .accounting-dimensions-stitch .dimension-metric:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ padding: 12px; }
  .accounting-dimensions-stitch .accounting-dimension-filters > :first-child:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ flex-basis: 100%; }
  :is(.dimension-inspection, .accounting-dimension-drawer) .dimension-detail-card:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ padding: 16px; }
  :is(.dimension-inspection, .accounting-dimension-drawer) .dimension-detail-grid:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ grid-template-columns: minmax(0, 1fr); }
  :is(.accounting-dimension-form, .dimension-value-form) .modal-grid:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)),.accounting-dimension-form .dimension-applies-grid:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){ grid-template-columns: minmax(0, 1fr); }
}
