/* Ficha contínua da transação e seu resumo para impressão. */
.deal-sheet-module { --sheet-bronze: #76592c; display: grid; grid-template-columns: minmax(0,1fr); min-width: 0; gap: 22px; }
.deal-sheet-module > * { min-width: 0; }
.sheet-hint { font-size: 12px; color: var(--muted,#626262); line-height: 1.8; }
.sheet-state { display: inline-flex; padding: 5px 9px; border-radius: 5px; background: var(--surface-soft,#f5f2ed); color: var(--accent-strong,#76592c); font-size: 11px; font-weight: 600; }
.deal-start-module { max-width: 840px; }
.sheet-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px 20px; }
.sheet-fields > .form-field:has(textarea),.sheet-fields > .form-alert { grid-column: 1 / -1; }
.sheet-list-filters { padding: 22px; display: flex; flex-wrap: wrap; gap: 11px; align-items: flex-end; }
.sheet-list-filters .search-field { min-width: 210px; flex: 1 1 250px; }
.sheet-list-filters > div:not(.search-field) { flex: 1 1 155px; }
.sheet-list-filters label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.sheet-list-filters .button { min-height: 43px; }
.sheet-deal-table th { font-size: 10px; }.sheet-deal-table td,.sheet-deal-table .table-main-link { font-size: 12px; }
.sheet-table-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }.sheet-source-tag { font-size: 10px; color: var(--muted); align-self: center; }
.sheet-workflow-counts { display: grid; gap: 5px; font-size: 10px; white-space: nowrap; color: var(--muted); }.sheet-workflow-counts strong { color: var(--ink); font-weight: 600; }
.sheet-next-action { display: block; max-width: 230px; font-size: 12px; }
.deal-sheet-page { padding-bottom: 95px; }
.sheet-origin-notice { border: 1px solid var(--accent-line,#d7c8b0); border-radius: 9px; background: var(--surface-soft,#f5f2ed); padding: 15px 19px; color: var(--ink); font-size: 12px; }
.sheet-origin-notice strong { display: block; font-weight: 650; margin-bottom: 5px; }.sheet-origin-notice p { color: var(--muted); font-size: 11px; line-height: 1.8; }
.sheet-overview { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 23px; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; padding: 22px 24px; }
.sheet-overview span { display: block; font-size: 9px; color: var(--muted); letter-spacing: .9px; margin-bottom: 7px; }.sheet-overview strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.35px; overflow-wrap: anywhere; }.sheet-overview small { display: block; font-size: 11px; color: var(--muted); margin-top: 6px; }
.sheet-section-navigation { display: flex; gap: 5px; position: sticky; top: 0; z-index: 15; background: var(--canvas,#f7f7f6); padding: 12px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.sheet-section-navigation a { padding: 9px 11px; border-radius: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; }.sheet-section-navigation a:hover,.sheet-section-navigation a.is-current { color: var(--accent-strong,#76592c); background: var(--surface-soft,#f5f2ed); }.sheet-section-navigation a:focus-visible { outline-offset: -3px; }
.sheet-editable-area { border: 0; padding: 0; margin: 0; min-width: 0; }
.deal-sheet-section { scroll-margin-top: 75px; margin-bottom: 30px; min-width: 0; }.deal-sheet-section:last-child { margin-bottom: 0; }
.sheet-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }.sheet-section-heading h2 { font-size: 18px; letter-spacing: -.35px; }.sheet-section-heading p { font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 5px; }
.sheet-section-number { display: inline-flex; justify-content: center; align-items: center; width: 27px; height: 27px; margin-right: 9px; border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--accent-strong); background: var(--accent-tint); vertical-align: middle; }
.sheet-card,.sheet-repeater-row { padding: 22px; }.sheet-card + .sheet-card { margin-top: 15px; }
.sheet-card-title { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-bottom: 15px; margin-bottom: 18px; border-bottom: 1px solid var(--line-soft); }.sheet-card-title h3 { font-size: 14px; font-weight: 650; }.sheet-card-title small { font-size: 10px; color: var(--muted); }
.sheet-field { min-width: 0; }.sheet-field > label { display: block; font-size: 12px; font-weight: 600; color: #57524b; margin-bottom: 7px; }.sheet-field > label small { display: block; font-weight: 400; font-size: 10px; color: var(--muted); margin-top: 3px; }
.deal-sheet-module .sheet-field input:not([type="checkbox"]):not([type="radio"]),.deal-sheet-module .sheet-field select,.deal-sheet-module .sheet-field textarea,.deal-start-module .form-field input,.deal-start-module .form-field select { font-size: 13px; min-height: 42px; }
.sheet-field .help-text { font-size: 10px; line-height: 1.7; }.sheet-field-checkbox { align-self: end; }
.sheet-fields > .sheet-field:has(textarea),.sheet-fields > .sheet-field[data-field-name="full_name"],.sheet-fields > .sheet-field[data-field-name="address"],.sheet-fields > .sheet-field[data-field-name="representative"],.sheet-fields > .sheet-field[data-field-name="draft_title"] { grid-column: 1 / -1; }
.sheet-field input:disabled,.sheet-field select:disabled,.sheet-field textarea:disabled,.sheet-field input[readonly],.sheet-field textarea[readonly] { background: #f2f1ee !important; border-color: #d2cdc5 !important; color: #59554f !important; cursor: default; opacity: 1; }
.sheet-paired-parties { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: start; }.sheet-paired-parties .sheet-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }.sheet-column-heading { font-size: 14px; margin-bottom: 13px; }
.sheet-formset { min-width: 0; }.sheet-formset [data-formset-items] { display: grid; gap: 14px; }.sheet-formset [data-formset-status]:empty { display: none; }
.sheet-add-button { display: block; width: 100%; border: 1px dashed #b9a584; background: #f8f4ed; color: #70562f; min-height: 43px; border-radius: 7px; padding: 11px 15px; margin-top: 13px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }.sheet-add-button:hover { background: #f0e8dc; }
.sheet-delete-toggle { display: inline-flex; gap: 7px; align-items: center; font-size: 10px; color: #864942; font-weight: 500; cursor: pointer; }.sheet-delete-toggle input { width: 15px; height: 15px; }.sheet-delete-notice { display: none; font-size: 11px; color: #864942; background: #fbefed; border-radius: 5px; padding: 10px 12px; margin-bottom: 15px; }.sheet-repeater-row.is-deleted { border-color: #bf8279; }.sheet-repeater-row.is-deleted .sheet-delete-notice { display: block; }
.sheet-readonly-info { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 0; }.sheet-readonly-info dt { color: var(--muted); font-size: 11px; }.sheet-readonly-info dd { font-size: 13px; margin: 7px 0 0; }
.sheet-financial-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }.sheet-financial-metrics > div { padding: 17px; background: var(--surface-soft); border-radius: 8px; }.sheet-financial-metrics span { color: var(--muted); display: block; font-size: 11px; }.sheet-financial-metrics strong { display: block; font-size: 23px; letter-spacing: -.6px; font-weight: 600; margin-top: 7px; overflow-wrap: anywhere; }
.sheet-financial-distribution { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 28px; margin: 21px 0 17px; }.sheet-financial-distribution > div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }.sheet-financial-distribution dt { font-size: 11px; color: var(--muted); }.sheet-financial-distribution dd { font-size: 12px; font-weight: 600; margin: 0; white-space: nowrap; }
.sheet-own-commission { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 12px; }.sheet-own-commission span { font-size: 12px; color: var(--muted); }.sheet-own-commission strong { font-size: 27px; font-weight: 600; }
.sheet-save-bar { position: fixed; bottom: 0; left: var(--sidebar-width,248px); right: 0; z-index: 25; display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 15px 38px; min-height: 79px; border-top: 1px solid #d9d2c6; background: #fffffff7; backdrop-filter: blur(9px); }
.sheet-save-state { font-size: 12px; color: #5e523d; font-weight: 600; }.sheet-save-state > small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); margin-top: 4px; }.sheet-save-state.is-dirty > span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #8c6a34; margin-right: 7px; }.sheet-save-actions { display: flex; gap: 9px; flex-shrink: 0; }.sheet-save-actions .button-primary { background: #8c6a34; border-color: #8c6a34; }.sheet-save-actions .button-primary:hover { background: #76592c; border-color: #76592c; }
.sheet-legacy-group,.sheet-document-group { margin-bottom: 15px; }.sheet-legacy-group > summary,.sheet-document-group > summary,.sheet-audit > summary { cursor: pointer; padding: 19px 22px; font-size: 14px; font-weight: 600; background: #faf9f7; }.sheet-legacy-group > dl { padding: 0 22px 21px; margin: 0; }.sheet-legacy-group dl > div { display: grid; grid-template-columns: minmax(150px,.7fr) minmax(0,1fr); gap: 22px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }.sheet-legacy-group dt { font-size: 12px; color: var(--muted); }.sheet-legacy-group dd { font-size: 12px; margin: 0; line-height: 1.8; overflow-wrap: anywhere; }.sheet-legacy-group .sheet-source-tag { display: block; margin-top: 6px; }
.sheet-document-items { padding: 0 22px; }.sheet-document-item { padding: 19px 0; border-top: 1px solid var(--line-soft); }.sheet-document-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }.sheet-document-title h3 { font-size: 13px; font-weight: 600; }.sheet-document-title .badge { font-size: 10px; }.sheet-document-attachments { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-top: 11px; }.sheet-document-attachments:empty { display: none; }.sheet-document-attachments a { overflow-wrap: anywhere; font-size: 11px; }
.sheet-managed-value { background: #f2f1ee; border: 1px solid #e0ddd7; padding: 13px 15px; margin: 11px 0 8px; border-radius: 6px; font-size: 12px; color: #59554f; line-height: 1.8; overflow-wrap: anywhere; }
.sheet-document-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(150px,.45fr) auto; gap: 15px; align-items: end; margin-top: 15px; }.sheet-document-form .button { min-height: 42px; }.sheet-document-notes { grid-column: 1 / -1; }.sheet-document-notes > summary { color: var(--muted); font-size: 11px; cursor: pointer; }.sheet-document-notes > .sheet-field { margin-top: 12px; }.sheet-audit .activity-list { padding-top: 10px; }
.deal-sheet-module [hidden] { display: none !important; }
@media(max-width:1150px) { .sheet-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }.sheet-paired-parties .sheet-fields { grid-template-columns: 1fr; }.sheet-save-bar { padding-left: 26px; padding-right: 26px; }.sheet-save-state { max-width: 240px; } }
@media(max-width:900px) { .sheet-paired-parties { grid-template-columns: 1fr; gap: 23px; }.sheet-paired-parties .sheet-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }.sheet-financial-metrics { grid-template-columns: 1fr; }.sheet-financial-metrics > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }.sheet-financial-metrics strong { margin-top: 0; }.sheet-save-bar { gap: 14px; }.sheet-save-actions .button { font-size: 10px; padding-left: 12px; padding-right: 12px; } }
@media(max-width:800px) { .sheet-save-bar { left: 0; padding: 13px 20px; }.sheet-overview { gap: 18px; }.sheet-overview strong { font-size: 16px; }.sheet-document-form { grid-template-columns: 1fr 1fr; }.sheet-document-form > .sheet-field:first-of-type { grid-column: 1 / -1; }.sheet-document-form .button { align-self: end; }.sheet-own-commission { align-items: flex-start; flex-direction: column; gap: 8px; } }
@media(max-width:560px) { .deal-sheet-page { padding-bottom: 140px; }.sheet-overview { grid-template-columns: 1fr 1fr; padding: 19px 17px; }.sheet-overview > div:first-child { grid-column: 1 / -1; }.sheet-overview strong { font-size: 16px; }.sheet-section-heading { align-items: flex-start; }.sheet-section-heading h2 { font-size: 16px; }.sheet-section-heading p { font-size: 11px; }.sheet-section-number { width: 24px; height: 24px; font-size: 10px; margin-right: 6px; }.sheet-card,.sheet-repeater-row { padding: 18px 16px; }.sheet-card-title { align-items: flex-start; }.sheet-card-title h3 { font-size: 13px; }.sheet-delete-toggle { font-size: 9px; }.sheet-fields,.sheet-paired-parties .sheet-fields { grid-template-columns: 1fr; gap: 16px; }.sheet-readonly-info { grid-template-columns: 1fr; }.sheet-financial-metrics strong { font-size: 20px; }.sheet-financial-distribution { grid-template-columns: 1fr; }.sheet-save-bar { align-items: stretch; flex-direction: column; gap: 10px; padding: 11px 16px; }.sheet-save-state { max-width: none; font-size: 11px; }.sheet-save-state > small { font-size: 9px; margin-top: 2px; }.sheet-save-actions { width: 100%; }.sheet-save-actions .button { flex: 1; min-height: 40px; }.sheet-section-navigation { gap: 3px; padding: 10px 0; }.sheet-section-navigation a { padding: 8px 9px; font-size: 10px; }.sheet-legacy-group > summary,.sheet-document-group > summary,.sheet-audit > summary { padding: 17px; font-size: 13px; }.sheet-legacy-group > dl { padding: 0 17px 17px; }.sheet-legacy-group dl > div { grid-template-columns: 1fr; gap: 7px; }.sheet-document-items { padding: 0 17px; }.sheet-document-title { flex-wrap: wrap; gap: 9px; }.sheet-document-form { grid-template-columns: 1fr; }.sheet-document-form > .sheet-field:first-of-type { grid-column: auto; }.sheet-document-notes { grid-column: auto; } }
.deal-print-page { margin: 0; font: 13px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color: #202020; background: #eeece8; }
.deal-print-page * { box-sizing: border-box; }.deal-print-toolbar { max-width: 950px; margin: 0 auto; padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }.deal-print-toolbar > div { display: flex; gap: 18px; align-items: center; }.deal-print-toolbar a { color: #76592c; text-decoration: none; font-size: 12px; }.deal-print-toolbar button { cursor: pointer; color: white; border: 0; background: #171513; padding: 11px 17px; border-radius: 6px; font: inherit; }.deal-print-toolbar :focus-visible { outline: 3px solid #8c6a34; outline-offset: 3px; }
.deal-print-document { max-width: 900px; background: white; margin: 0 auto 40px; padding: 42px 48px; }.deal-print-header { display: flex; justify-content: space-between; gap: 22px; padding-bottom: 22px; border-bottom: 2px solid #8c6a34; margin-bottom: 25px; }.deal-print-header strong { display: block; letter-spacing: 2px; font-size: 17px; }.deal-print-header span,.deal-print-header p { color: #626262; font-size: 10px; margin: 3px 0 0; }.deal-print-document h1 { font-size: 27px; line-height: 1.3; margin: 0 0 9px; }.deal-print-stage { color: #626262; margin: 0 0 25px; }.deal-print-warnings { padding: 16px 20px; background: #f5f2ed; margin: 20px 0; }.deal-print-warnings ul { margin: 7px 0 0; padding-left: 18px; }.deal-print-section { margin-top: 27px; }.deal-print-section h2 { font-size: 15px; border-bottom: 1px solid #dedbd5; padding-bottom: 8px; margin-bottom: 0; }.deal-print-section dl { margin: 0; }.deal-print-section dl > div { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 20px; padding: 9px 0; border-bottom: 1px solid #efede9; break-inside: avoid; }.deal-print-section dt { font-size: 11px; color: #626262; }.deal-print-section dd { margin: 0; white-space: normal; overflow-wrap: anywhere; }.deal-print-footer { margin-top: 35px; padding-top: 15px; border-top: 1px solid #dedbd5; color: #626262; font-size: 10px; }
@media(max-width:680px) { .sheet-fields { grid-template-columns: 1fr; }.sheet-list-filters { padding: 17px; }.sheet-list-filters .search-field { flex-basis: 100%; min-width: 0; }.deal-print-document { padding: 25px 20px; }.deal-print-header { flex-direction: column; gap: 9px; }.deal-print-section dl > div { grid-template-columns: 1fr; gap: 4px; }.deal-print-toolbar { padding: 17px; }.deal-print-toolbar > div { gap: 10px; } }
@media print { @page { size: A4; margin: 16mm; }.deal-print-page { background: white; font-size: 10pt; }.deal-print-toolbar { display: none !important; }.deal-print-document { max-width: none; margin: 0; padding: 0; }.deal-print-section h2 { break-after: avoid; }.deal-print-warnings { border: 1px solid #dedbd5; }.deal-print-section dd { font-size: 9pt; }.deal-print-stage,.deal-print-header p { font-size: 8pt; } }

.deal-print-logo { display: block; width: 138px; height: 47px; object-fit: contain; background: #000; padding: 5px 7px; margin-bottom: 7px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }

/* Comissão final de cada beneficiário e instruções de pagamento ao vendedor. */
.sheet-payout-summary { margin-bottom: 18px; }
.sheet-payout-summary .sheet-card-title > div { display: grid; gap: 5px; }
.sheet-payout-totals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.sheet-payout-totals > div { padding: 16px; border-radius: 7px; background: #f5f2ed; }
.sheet-payout-totals span { display: block; font-size: 11px; color: var(--muted,#626262); }
.sheet-payout-totals strong { display: block; font-size: 23px; margin-top: 6px; font-weight: 650; overflow-wrap: anywhere; }
.sheet-payout-warnings { border-left: 3px solid #a58249; background: #faf7f2; padding: 11px 14px; margin-top: 16px; }
.sheet-payout-warnings p { color: #75522d; font-size: 12px; line-height: 1.7; margin: 0; }
.sheet-payout-table-wrap { overflow-x: auto; margin: 15px 0; }
.sheet-payout-table { width: 100%; border-collapse: collapse; text-align: left; }
.sheet-payout-table th { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: #70665a; padding: 11px 9px; border-bottom: 1px solid #dedbd5; }
.sheet-payout-table td { padding: 14px 9px; vertical-align: top; border-bottom: 1px solid #efede9; font-size: 12px; overflow-wrap: anywhere; }
.sheet-payout-table td:first-child { min-width: 145px; }
.sheet-payout-table small { display: block; color: var(--muted,#626262); font-size: 10px; line-height: 1.7; margin-top: 4px; }
.sheet-payout-value { font-weight: 650; min-width: 135px; white-space: nowrap; }
.sheet-payout-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 17px 0 12px; }
[data-prefix="beneficiary_accounts"] [data-field-name="payment_amount"] { background: #f8f5ef; padding: 11px 13px; border: 1px solid #dfd3bf; border-radius: 7px; }
[data-prefix="beneficiary_accounts"] [data-field-name="payment_amount"] input { font-weight: 650; }
.payout-print-title { font-size: 16px; margin: 0 0 18px; color: #626262; }
.payout-print-identification { margin: 0 0 22px; }
.payout-print-identification > div { display: grid; grid-template-columns: 125px minmax(0,1fr); gap: 14px; margin: 7px 0; }
.payout-print-identification dt { font-size: 11px; color: #626262; }
.payout-print-identification dd { margin: 0; overflow-wrap: anywhere; }
.payout-print-totals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; border-top: 1px solid #dedbd5; border-bottom: 1px solid #dedbd5; padding: 15px 0; margin: 22px 0 13px; }
.payout-print-totals span { display: block; font-size: 11px; color: #626262; }
.payout-print-totals strong { display: block; font-size: 22px; margin-top: 5px; overflow-wrap: anywhere; }
.payout-print-instruction { font-size: 12px; color: #626262; }
.payout-print-recipients { display: grid; gap: 19px; margin-top: 28px; }
.payout-print-recipient { padding: 18px 20px; border: 1px solid #dedbd5; border-radius: 7px; break-inside: avoid; }
.payout-print-recipient-heading { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 12px; margin-bottom: 9px; border-bottom: 1px solid #efede9; }
.payout-print-recipient-heading span { display: block; font-size: 10px; color: #76592c; }
.payout-print-recipient-heading h2 { margin: 4px 0 0; font-size: 15px; line-height: 1.4; }
.payout-print-recipient-heading > strong { font-size: 20px; white-space: nowrap; }
.payout-print-recipient dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 20px; margin: 0; }
.payout-print-recipient dl > div { min-width: 0; }
.payout-print-recipient dt { font-size: 10px; color: #626262; }
.payout-print-recipient dd { margin: 2px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.payout-print-row-warnings { color: #84482a; font-size: 11px; margin: 12px 0 0; padding-left: 16px; }
@media(max-width:560px) { .sheet-payout-totals { grid-template-columns: 1fr; gap: 9px; }.sheet-payout-totals > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px; }.sheet-payout-totals strong { font-size: 19px; margin: 0; }.sheet-payout-actions .button { width: 100%; }.payout-print-identification > div { grid-template-columns: 1fr; gap: 3px; }.payout-print-totals { gap: 12px; }.payout-print-totals strong { font-size: 18px; }.payout-print-recipient { padding: 15px; }.payout-print-recipient-heading { flex-direction: column; gap: 10px; }.payout-print-recipient dl { grid-template-columns: 1fr; } }
@media print { .payout-print-document h1 { font-size: 20pt; }.payout-print-title { font-size: 12pt; }.payout-print-recipient { border-radius: 0; }.payout-print-recipient-heading h2 { font-size: 11pt; }.payout-print-recipient-heading > strong { font-size: 14pt; }.payout-print-recipient dt { font-size: 8pt; }.payout-print-recipient dd { font-size: 9pt; }.payout-print-recipients { gap: 14px; } }
@media(max-width:560px) {
  .sheet-payout-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sheet-payout-table tbody { display: block; }
  .sheet-payout-table tr { display: grid; grid-template-columns: minmax(0,1fr) auto; border-bottom: 1px solid var(--line-soft); padding: 12px 0; gap: 4px 10px; }
  .sheet-payout-table td { display: block; padding: 4px 0; border: 0; min-width: 0; }
  .sheet-payout-table td:first-child { min-width: 0; }
  .sheet-payout-table td:last-child { grid-column: 1 / -1; }
  .sheet-payout-table td:last-child small { display: inline; margin-left: 6px; }
  .sheet-payout-table small { overflow-wrap: anywhere; }
}

/* Five short stages, with one form and explicit saving throughout. */
.deal-sheet-page [hidden]{display:none!important}
.sheet-flow-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:28px 0 20px}
.sheet-flow-intro h2{font-size:26px;letter-spacing:-.6px;line-height:1.3;margin:6px 0 10px}
.sheet-flow-intro p{font-size:13px;line-height:1.8;color:var(--muted);max-width:700px}
.sheet-eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:600;color:#866a3c}
.sheet-step-navigation{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 22px}
.sheet-step-navigation>a{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:15px 12px;color:var(--muted);background:var(--paper);min-width:0;text-decoration:none}
.sheet-step-navigation>a>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#f2eee7;font-size:10px;color:#80673e;flex-shrink:0}
.sheet-step-navigation strong{display:block;font-size:12px;font-weight:600;color:var(--ink)}
.sheet-step-navigation small{display:block;font-size:10px;line-height:1.5;margin-top:4px;overflow-wrap:anywhere}
.sheet-step-navigation>a:hover,.sheet-step-navigation>a.is-current{border-color:#a58a60;background:#f8f5f0;box-shadow:0 2px 10px #33260b08}
.sheet-step-navigation>a.is-current>span{color:#fff;background:#866a3c}
.sheet-step-navigation>a.has-errors{border-color:#b75b48}
.sheet-current-step{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:24px 0 8px;padding:24px 26px;border-radius:14px;background:#f0ece4;scroll-margin-top:90px}
.sheet-current-step [data-sheet-step-counter]{color:#80673e;font-size:11px}
.sheet-current-step h2{font-size:24px;letter-spacing:-.4px;margin:7px 0}
.sheet-current-step p{color:var(--muted);font-size:12px;line-height:1.7}
.sheet-step-progress{height:5px;background:#ddd5c7;border-radius:10px;width:130px;flex-shrink:0;overflow:hidden}
.sheet-step-progress>span{display:block;height:100%;background:#8c703e;transition:width .18s}
.sheet-flow-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.sheet-save-bar{gap:12px;flex-wrap:wrap}
.sheet-save-state{min-width:170px;flex:1}
.sheet-flow-actions .button,.sheet-save-actions .button{font-size:11px;padding:12px 16px}
.sheet-commission-preview{display:flex;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid var(--line);margin-top:22px;padding-top:22px}
.sheet-commission-preview>div{min-width:0}
.sheet-commission-preview span{display:block;font-size:10px;letter-spacing:.9px;text-transform:uppercase;color:var(--muted)}
.sheet-commission-preview strong{display:block;font-size:31px;letter-spacing:-.8px;line-height:1.3;margin:7px 0}
.sheet-commission-preview small{font-size:11px;color:#7e663e;line-height:1.7;display:block}
.sheet-commission-preview>p{font-size:11px;color:var(--muted);line-height:1.8;max-width:270px}
.sheet-optional,.sheet-optional-fields{margin:17px 0;border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.sheet-optional>summary,.sheet-optional-fields>summary{padding:18px 22px;cursor:pointer;font-size:12px;font-weight:600;line-height:1.8}
.sheet-optional summary small{font-weight:400;color:var(--muted);display:block;margin:5px 0 0 17px}
.sheet-optional-fields{grid-column:1/-1;width:100%;margin:12px 0 0;background:#fbfaf7}
.sheet-optional-fields>.sheet-fields{padding:0 20px 22px}
.sheet-optional .sheet-card{border:0;border-radius:0;background:transparent}
.sheet-step-navigation a:focus-visible,.sheet-optional summary:focus-visible,.sheet-optional-fields summary:focus-visible{outline:2px solid #94703a;outline-offset:4px}
@media(max-width:1100px){.sheet-step-navigation{grid-template-columns:repeat(3,minmax(0,1fr))}.sheet-save-bar{justify-content:flex-end}.sheet-save-state{flex-basis:100%}.sheet-commission-preview{align-items:flex-start;flex-direction:column;gap:10px}}
@media(max-width:650px){.sheet-step-navigation{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sheet-step-navigation>a{padding:12px 10px;gap:8px}.sheet-step-navigation small{font-size:9px}.sheet-current-step{padding:20px 18px;align-items:flex-start;gap:14px;flex-direction:column}.sheet-step-progress{width:100%}.sheet-flow-intro{align-items:flex-start}.sheet-flow-intro h2{font-size:22px}.sheet-flow-intro>.button{font-size:10px;padding:10px;white-space:nowrap}.sheet-flow-actions,.sheet-save-actions{width:100%;display:flex}.sheet-flow-actions>.button,.sheet-save-actions>.button{flex:1;min-width:0;white-space:normal;text-align:center;justify-content:center}.sheet-save-bar{padding:14px 16px}.sheet-commission-preview strong{font-size:28px}.sheet-optional-fields>.sheet-fields{padding:0 15px 18px}.sheet-optional>summary,.sheet-optional-fields>summary{padding:15px}.sheet-section-navigation{position:static}}
@media print{.sheet-flow-intro,.sheet-step-navigation,.sheet-current-step,.sheet-commission-preview,.sheet-flow-actions{display:none!important}.deal-sheet-page [data-sheet-step][hidden]{display:block!important}}
.deal-sheet-page{padding-bottom:160px}
.sheet-commission-intro { margin: 25px 0 18px; }
.sheet-commission-intro h3 { font-size: 18px; }
.sheet-commission-intro p { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 8px; max-width: 760px; }
.sheet-commission-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: stretch; }
.sheet-commission-side { padding: 24px; min-width: 0; }
.sheet-commission-side > header { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.sheet-commission-side h3 { font-size: 23px; margin-top: 5px; }
.sheet-commission-side h4 { font-size: 14px; margin: 0 0 14px; }
.sheet-side-total { text-align: right; min-width: 0; }
.sheet-side-total span, .sheet-side-base > span { display: block; font-size: 11px; color: var(--muted); }
.sheet-side-total strong { display: block; font-size: 21px; margin-top: 7px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sheet-side-indications, .sheet-side-actor { padding: 22px 0; border-bottom: 1px solid var(--line); }
.sheet-side-base { background: var(--surface-soft); border-radius: 9px; padding: 16px; margin-top: 20px; }
.sheet-side-base > strong { display: block; font-size: 23px; margin: 7px 0; font-variant-numeric: tabular-nums; }
.sheet-side-base small { font-size: 11px; color: var(--muted); line-height: 1.7; display: block; }
.sheet-side-actor-fields { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(100px,1fr); gap: 14px; }
.sheet-side-actor-fields .sheet-field { min-width: 0; }
.sheet-side-actor-fields .sheet-field label { min-height: 32px; display: block; }
.sheet-second-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sheet-leader-filter { border: 0; background: none; padding: 0; font: inherit; font-size: 11px; cursor: pointer; text-align: left; }
.sheet-leader-filter:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sheet-second-heading + p { margin: 0 0 14px; }
.sheet-side-secondary-saved { font-size: 12px; color: var(--muted); margin-top: 14px; }
.sheet-side-protagonist { border-radius: 10px; background: var(--brand); color: var(--paper); padding: 20px; margin-top: 22px; }
.sheet-side-protagonist > span { font-size: 12px; display: block; }
.sheet-side-protagonist > strong { display: block; font-size: 28px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.sheet-side-protagonist > small { display: block; color: var(--on-brand-muted); font-size: 11px; line-height: 1.7; margin-top: 8px; }
.sheet-common-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin-top: 22px; }
.sheet-common-grid section { min-width: 0; }
.sheet-common-grid h4 { font-size: 14px; margin-bottom: 20px; }
.sheet-common-grid .sheet-field + .sheet-field { margin-top: 18px; }
@media(max-width:1100px) { .sheet-commission-side { padding: 19px; }.sheet-commission-side > header { flex-direction: column; }.sheet-side-total { text-align: left; } }
@media(max-width:950px) { .sheet-commission-columns,.sheet-common-grid { grid-template-columns: 1fr; }.sheet-commission-side > header { flex-direction: row; }.sheet-side-total { text-align: right; } }
@media(max-width:540px) { .sheet-side-actor-fields { grid-template-columns: 1fr; }.sheet-side-actor-fields .sheet-field label { min-height: 0; }.sheet-commission-side > header { flex-direction: column; }.sheet-side-total { text-align: left; }.sheet-side-protagonist > strong { font-size: 25px; } }
@media(max-width:650px){.deal-sheet-page{padding-bottom:220px}}
