/* Shared geometry from the final generation 33 reference cascade. */
.record-table-card { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-panel); overflow-x: auto; background: var(--surface); }
.record-table-header { height: var(--header-height); background: var(--table-header); color: var(--muted); font: 400 var(--text-meta)/var(--line-meta) var(--sans); border-bottom: 1px solid var(--line); }
.record-table-row { min-height: var(--row-height); border-bottom: 1px solid var(--line-soft); background: var(--surface); color: var(--ink); font: 400 var(--text-body)/var(--line-workspace) var(--sans); }
.record-table-row:last-child { border-bottom: 0; }
.record-table-row + .record-table-row { border-top: 0; box-shadow: none; }
.record-table-row:hover { background: var(--hover); }
.record-table-row[aria-selected="true"] { background: var(--selected); box-shadow: inset 2px 0 var(--accent); }
:is(.button--secondary,.button--outline):where(:not(:disabled,[aria-disabled="true"])):hover { border-color: var(--secondary-hover-line); }
:is(.text-input,.select-input):where(:not(:disabled,[readonly],:focus,[aria-invalid="true"],.field_with_errors *)):hover { border-color: var(--control-hover-line); }
/* Final prototype control geometry, confined to the workspace and its modals. */
:where(body:has(> .workspace-shell)) :is(.button--quiet, .button--icon, .text-link:where(:not(.button))) { border: 1px solid transparent; }
:where(body:has(> .workspace-shell)) .button:where(:not(.button--primary, .button--dark, .button--quiet, .button--icon, .button--tab, .button--danger, :disabled, [aria-disabled="true"])):hover { background: var(--surface); border-color: var(--secondary-hover-line); }
:where(body:has(> .workspace-shell)) .button--icon:where(:not(:disabled, [aria-disabled="true"])):hover { background: var(--thumbnail-placeholder); border-color: transparent; }
:where(body:has(> .workspace-shell)) :is(.text-input, .select-input):not(.grid-input):focus { outline: 0; box-shadow: 0 0 0 2px var(--focus-ring); }
:is(input[type="checkbox"],input[type="radio"]):not(.client-status-body input) { accent-color: var(--ink); }
.button:disabled, .button[aria-disabled="true"] { opacity: var(--disabled-opacity); }
.confirm-dialog .button.button--danger:hover { background: var(--red-hover); border-color: var(--red-hover); }
.record-panel-header p { margin-top: var(--compact-copy-gap); }
.order-panel { border-radius: 0; }
.order-panel .detail-ledger { --field-label-width: var(--drawer-label-width); }
.order-panel .field-rows { --field-label-width: var(--drawer-label-width); }
.record-photo-placeholder { display: grid; place-items: center; width: var(--thumbnail-size); height: var(--thumbnail-size); flex: 0 0 var(--thumbnail-size); background: var(--thumbnail-placeholder); border: 1px solid var(--input-line); border-radius: var(--radius-thumbnail); color: var(--tertiary); }
.record-photo-placeholder svg { width: 16px; height: 16px; }
