/* Direct wizard content and table; the modal is the only outer surface. */
.ct-manual-statement { min-width:0; }
:is(.ct-manual-statement,.ct-statement-upload) .fi-sc-wizard { border:0; border-radius:0; box-shadow:none; background:transparent; }
:is(.ct-manual-statement,.ct-statement-upload) .fi-sc-wizard-step { padding-inline:0; }
:is(.ct-manual-statement,.ct-statement-upload) .fi-sc-wizard-footer { padding-inline:0; }
:is(.ct-prototype,.ct-product)[data-table-design] .ct-manual-statement :is(.fi-ta-ctn,.fi-ta-main) { border:0; border-radius:0; box-shadow:none; background:transparent; }
:is(.ct-prototype,.ct-product)[data-table-design] .ct-manual-statement .fi-ta-header-toolbar { padding:0 0 12px; border:0; border-radius:0; background:transparent; }
:is(.ct-prototype,.ct-product)[data-table-design] .ct-manual-statement .fi-ta-content-ctn { border:1px solid var(--ct-border); border-radius:12px; overflow:hidden; }
:is(.ct-prototype,.ct-product) .ct-manual-statement .fi-ta-table { min-width:400px; }
.ct-statement-date-warning { color:var(--ct-warning); font-size:13px; line-height:1.7; }
.ct-statement-date-warning p { margin-top:4px; }
.ct-statement-timing-unknown { color:var(--ct-muted); font-size:13px; line-height:1.7; }
.ct-statement-amounts { display:grid; gap:8px; margin-top:20px; font-size:14px; font-variant-numeric:tabular-nums; }
.ct-statement-amounts > div { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 24px; }
.ct-statement-amounts dd { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.ct-statement-amounts dd span { color:var(--ct-muted); }
.ct-statement-not-performed { background:var(--ct-subtle) !important; }
.ct-statement-not-performed .fi-ta-text { color:var(--ct-muted); }
.ct-statement-not-performed .fi-ta-text-item-label { color:var(--ct-muted) !important; }
.ct-statement-total { display:flex; justify-content:flex-end; gap:12px; margin-top:20px; font-variant-numeric:tabular-nums; }
.ct-statement-result { margin-block:16px 24px; font-size:14px; line-height:1.7; }
.ct-statement-result > p { color:var(--ct-muted); max-width:70ch; }
.ct-statement-result dl { margin-top:20px; }
.ct-statement-result dl > div { display:flex; justify-content:space-between; gap:24px; padding-block:12px; border-bottom:1px solid var(--ct-border); }
.ct-statement-result dd { text-align:end; font-weight:500; font-variant-numeric:tabular-nums; }
.ct-manual-statement h2 { font-size:18px; font-weight:600; }
.ct-statement-evidence-input { display:block; max-width:100%; margin-block:12px; }
.ct-statement-detail > h2 { margin-block-end:16px; }
[data-native-line-evidence] { margin-block:0; }
[data-native-line-evidence] > dl { margin-top:0; }
@media (max-width:640px) {
    .ct-manual-statement .fi-sc-wizard-header { overflow-x:auto; }
    .ct-statement-lines { min-width:0; }
    .ct-statement-result dl > div { gap:16px; }
    :is(.ct-prototype,.ct-product) .ct-manual-statement .fi-ta-table { display:block; min-width:0; width:100%; }
    .ct-manual-statement .fi-ta-table > :is(thead,tbody) { display:block; }
    .ct-manual-statement .fi-ta-table > thead > tr,
    .ct-manual-statement .fi-ta-table .fi-ta-row { display:grid; grid-template-columns:minmax(0,1fr) 88px 88px; align-items:stretch; }
    .ct-manual-statement .fi-ta-table :is(.fi-ta-header-cell-quantity,.fi-ta-cell-quantity) { display:none; }
    .ct-manual-statement .fi-ta-table tr:has(.fi-ta-group-header-cell),
    .ct-manual-statement .fi-ta-table .fi-ta-group-header-cell { display:block; width:100%; }
    .ct-manual-statement .fi-ta-table .fi-ta-cell:not(.fi-ta-cell-quantity) { display:flex; align-items:center; min-width:0; }
    :is(.ct-prototype,.ct-product)[data-table-style] .ct-manual-statement .fi-ta-table .fi-ta-row > .fi-ta-cell { width:auto; }
    :is(.ct-prototype,.ct-product) .ct-manual-statement .fi-ta-table td { padding-inline:0; }
    :is(.ct-prototype,.ct-product) .ct-manual-statement .fi-ta-table th { padding-inline:8px; }
    :is(.ct-prototype,.ct-product)[data-table-style] .ct-manual-statement .fi-ta-text { min-width:0; padding-inline:8px; }
    :is(.ct-prototype,.ct-product) .ct-manual-statement .fi-ta-actions { padding-inline:4px; }
}
