.trsa-sale-options.trsa-sale-options--advance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trsa-sale-options--advance [data-route="project"] { grid-column: 1 / -1; }
.trsa-advance-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.trsa-advance-field { display: grid; gap: 7px; min-width: 0; font-size: 14px; }
.trsa-advance-dialog [hidden] { display: none; }
.trsa-advance-payment-time { grid-column: 1 / -1; display: grid; gap: 6px; justify-items: start; font-size: 14px; }
.trsa-advance-time-label { color: #65656b; font-size: 13px; }
.trsa-advance-time-value { font-weight: 500; }
.trsa-advance-dialog .trsa-advance-payment-time > button { padding: 4px 0; min-height: 32px; background: none; border: 0; color: #0069cc; font-size: 13px; }
.trsa-advance-dialog .trsa-advance-payment-time > button:focus-visible { outline: 2px solid #0069cc; outline-offset: 3px; }
.trsa-advance-dialog .trsa-advance-field :is(input, select) { width: 100%; margin: 0; padding: 12px; min-height: 48px; border: 1px solid #c5c5cb; border-radius: 10px; font: inherit; color: inherit; background: #fff; }
.trsa-advance-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.trsa-advance-totals > div { padding: 16px; border-radius: 12px; background: #f5f5f7; }
.trsa-advance-totals dt, .trsa-advance-review dt { color: #65656b; font-size: 13px; }
.trsa-advance-totals dd { margin: 6px 0 0; font-size: 20px; font-weight: 600; }
.trsa-advance-review { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.trsa-advance-review dd { margin: 4px 0 0; font-weight: 500; }
.trsa-advance-help { margin-top: 20px; border-top: 1px solid #ececee; font-size: 14px; line-height: 1.5; }
.trsa-advance-help summary { cursor: pointer; padding: 12px 0; color: #0069cc; }
.trsa-advance-help ul { margin: 0 0 12px; padding-left: 20px; }
.trsa-advance-help li + li { margin-top: 8px; }
.trsa-advance-help a { color: #0069cc; text-underline-offset: 3px; }
.trsa-advance-help :is(summary, a):focus-visible { outline: 2px solid #0069cc; outline-offset: 3px; border-radius: 3px; }
.trsa-advance-history { margin-top: 16px; font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }
.trsa-advance-history[hidden] { display: none; }
.trsa-advance-history summary { cursor: pointer; padding: 10px 0; color: #0069cc; }
.trsa-advance-history-table { max-width: 100%; overflow-x: auto; font-variant-numeric: tabular-nums; }
.trsa-advance-history-table table { border-collapse: collapse; width: 100%; min-width: 580px; font-size: 14px; }
.trsa-advance-history-table :is(td, th) { text-align: left; padding: 10px 12px; border-bottom: 1px solid #ececee; }
.trsa-advance-history-table th { font-weight: 500; color: #65656b; }
.trsa-advance-history-table :is(td, th):nth-child(4) { text-align: right; white-space: nowrap; }
.trsa-advance-history-table :is(td, th).trsa-advance-history-actions-cell { text-align: right; }
.trsa-advance-history-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px 12px; }
.trsa-advance-history-table button.trsa-advance-history-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto; min-height: 32px; margin: 0; padding: 4px 6px; border: 0; border-radius: 6px; background: transparent; box-shadow: none; color: #0069cc; font: inherit; font-size: 13px; font-weight: 500; line-height: 1.4; white-space: nowrap; cursor: pointer; }
.trsa-advance-history-table button.trsa-advance-history-action:hover:not(:disabled) { background: #f0f5fc; }
.trsa-advance-history-table button.trsa-advance-history-action:focus-visible { outline: 2px solid #0069cc; outline-offset: 2px; }
.trsa-advance-history-table button.trsa-advance-history-action:disabled { opacity: .5; cursor: wait; }
.trsa-advance-history-action svg { flex-shrink: 0; }
.trsa-advance-history-chevron { font-size: 20px; font-weight: 400; line-height: 1; }
.trsa-advance-history-error { margin: 6px 0 0; max-width: 260px; margin-left: auto; color: #b42318; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.trsa-advance-history-error[hidden] { display: none; }
@media (max-width: 640px) { .trsa-sale-options.trsa-sale-options--advance, .trsa-advance-fields, .trsa-advance-totals, .trsa-advance-review { grid-template-columns: 1fr; } }
