/* Scoped independent workbench. Full-IFRS presentation is untouched. */
.sme-workbench{min-width:0;max-width:100%;overflow-wrap:anywhere}.sme-workbench *{box-sizing:border-box}.sme-scope{padding:.8rem 1rem;border:1px solid currentColor;border-radius:.6rem;font-size:.9rem;line-height:1.6}.sme-heading{margin-block:1.5rem}.sme-selected{font-size:1rem}.sme-progress{display:flex;flex-wrap:wrap;gap:.5rem;margin-block:1rem;font-size:.78rem}.sme-progress span{padding:.4rem .6rem;border:1px solid currentColor;border-radius:1rem;opacity:.65}.sme-progress [aria-current]{opacity:1;font-weight:700}.sme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.sme-field{min-width:0;margin-block:1rem}.sme-field label,.sme-record legend{display:block;font-weight:650;line-height:1.5}.sme-field input,.sme-field select,.sme-field textarea{display:block;width:100%;min-width:0;max-width:100%;min-height:44px;padding:.7rem;border:1px solid #98a5ad;border-radius:.4rem;background:var(--surface,#fff);color:inherit;font:inherit}.sme-field textarea{resize:vertical}.sme-record{min-width:0;max-width:100%;padding:1rem;border:1px solid #a6afb5;border-radius:.6rem;margin-block:1.25rem}.sme-row{border-top:1px solid #a6afb5;padding-block:1rem}.sme-nav,.sme-bottom{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:space-between;margin-block:1.5rem}.sme-workbench button{min-height:44px;max-width:100%;white-space:normal;font:inherit;cursor:pointer}.sme-workbench button:focus-visible,.sme-workbench input:focus-visible,.sme-workbench select:focus-visible,.sme-workbench textarea:focus-visible{outline:3px solid #287f91;outline-offset:3px}.sme-notice,.sme-confirm,.sme-reused,.sme-provenance{padding:1rem;border:1px solid #a6afb5;border-radius:.6rem;margin-block:1rem;line-height:1.6}.sme-notice ul{margin:0;padding-inline-start:1.25rem}.sme-confirm button{margin:.35rem}.sme-reused{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem}.sme-review-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) auto;gap:1rem;align-items:start;padding-block:1rem;border-bottom:1px solid #a6afb5}.sme-review-row>span{font-weight:600}.sme-table{max-width:100%;overflow:auto}.sme-table table{width:100%;min-width:340px}.sme-table th,.sme-table td{padding:.7rem;text-align:start}.sme-result{margin-block:2rem}.sme-result h3{font-size:1.35rem}.sme-provenance bdi{white-space:normal}.sme-workbench .helper{line-height:1.65}.sme-workbench input[type=date]{direction:ltr}[data-theme=dark] .sme-field input,[data-theme=dark] .sme-field select,[data-theme=dark] .sme-field textarea{background:#17252c;color:#f0f4f6;border-color:#7d919d}@media(max-width:640px){.sme-grid{grid-template-columns:minmax(0,1fr)}.sme-review-row{grid-template-columns:minmax(0,1fr)}.sme-review-row button{justify-self:start}.sme-record{padding:.75rem}.sme-nav button{flex:1 1 140px}.sme-progress{font-size:.72rem}.sme-field input,.sme-field select,.sme-field textarea{font-size:16px}}
.sme-totals dl>div{display:flex;justify-content:space-between;gap:1rem;padding-block:.5rem;border-bottom:1px solid #a6afb5}.sme-totals dd{margin:0;min-width:5rem;text-align:end}

.sme-declaration-statements li{margin-block:.5rem;line-height:1.65}.sme-internal-id{font-size:.85rem}.sme-optional-evidence summary{min-height:44px;padding-block:.7rem;cursor:pointer}

/* Optional detail controls stay inside their own narrow/RTL editor. */
.sme-workbench [data-sme-detail-editor]{min-inline-size:0;max-inline-size:100%}
.sme-workbench [data-sme-detail-editor] label{display:grid;gap:.35rem;min-inline-size:0;max-inline-size:100%}
.sme-workbench [data-sme-detail-editor] input,.sme-workbench [data-sme-detail-editor] select,.sme-workbench [data-sme-detail-editor] textarea{display:block;inline-size:100%;min-inline-size:0;max-inline-size:100%;font:inherit}
.sme-workbench [data-sme-detail-reference-readback]{display:block;min-inline-size:0;max-inline-size:100%;white-space:pre-wrap;overflow-wrap:anywhere;unicode-bidi:plaintext;font:inherit;margin-block:.35rem .75rem}

/* Visible exclusive choices: one answer, including a separate unknown choice. */
.sme-workbench .sme-choice{border:0;padding:0;min-inline-size:0}.sme-workbench .sme-choice>legend{font-weight:650;line-height:1.6;margin-block-end:.5rem}.sme-workbench .sme-choice .radio-options{display:flex;flex-wrap:wrap;gap:.5rem}.sme-workbench .sme-choice .radio-row{display:flex;align-items:flex-start;gap:.7rem;flex:1 1 180px;min-inline-size:0;min-height:48px;margin:0;padding:.75rem;border:1px solid var(--control,#98a5ad);border-radius:.5rem;background:var(--paper,#fff);font-weight:400;line-height:1.6}.sme-workbench .sme-choice .radio-row:has(input:checked){border-color:var(--accent,#a44500);background:var(--soft,#fff8ef)}.sme-workbench .sme-choice input[type=radio]{display:inline-block;flex:0 0 auto;width:1.15rem;height:1.15rem;min-height:0;padding:0;margin:.2rem 0 0;accent-color:var(--accent,#a44500)}.sme-workbench .sme-grid>.sme-choice{grid-column:1/-1}

/* One continuous SME form; no wizard tabs or next/back jumps. */
.sme-continuous{--sme-form-border:#a6afb5}.sme-continuous .sme-eyebrow{font-size:.8rem;font-weight:650;letter-spacing:.03em;margin-block:0 .5rem}.sme-continuous>.sme-selected{font-size:clamp(1.4rem,4vw,2rem);line-height:1.3;margin-block:.25rem 1.25rem}.sme-continuous .sme-form-section{padding-block:1rem 1.5rem;border-block-start:1px solid var(--sme-form-border);scroll-margin-block-start:1rem}.sme-continuous .sme-heading{margin-block:.5rem 1rem}.sme-continuous .sme-heading h2{font-size:clamp(1.15rem,3.5vw,1.5rem);line-height:1.4;margin-block:0 .5rem}.sme-continuous .sme-heading .helper{margin-block:.5rem}.sme-continuous .sme-grid{gap:.5rem 1rem}.sme-continuous .sme-grid .sme-field{margin-block:.5rem}.sme-continuous summary{min-height:44px;padding-block:.75rem;cursor:pointer;font-weight:650}.sme-continuous button:disabled{opacity:.55;cursor:not-allowed}.sme-continuous .sme-calculate{margin-block:1.25rem 0}.sme-continuous .sme-error-summary{scroll-margin-block:1rem}.sme-continuous .sme-error-summary:focus{outline:3px solid #287f91;outline-offset:3px}.sme-continuous .sme-notice p:last-child{margin-bottom:0}.sme-continuous .sme-input-review{margin-block:.5rem 1rem}.sme-continuous [data-sme-context-details] bdi{display:inline-block;font-weight:400}.sme-continuous .sme-result{margin-bottom:0}.sme-continuous .sme-bottom{padding-block-start:1rem;border-block-start:1px solid var(--sme-form-border)}
@media(max-width:640px){.sme-continuous .sme-form-section{padding-block:.8rem 1.25rem}.sme-continuous .sme-calculate>.primary-button,.sme-continuous [data-sme-action=confirm-context]{width:100%;padding:.8rem}.sme-continuous .sme-bottom{display:grid;grid-template-columns:minmax(0,1fr)}.sme-continuous .sme-declaration-statements{padding-inline-start:1.25rem}.sme-continuous .sme-notice,.sme-continuous .sme-reused{padding:.75rem}.sme-continuous .sme-review-row{gap:.35rem}.sme-continuous .sme-field input,.sme-continuous .sme-field textarea,.sme-continuous .sme-field select{font-size:16px}}
@media(prefers-reduced-motion:reduce){.sme-continuous{scroll-behavior:auto}}


/* SME document-flow presentation; original controls and accounting ownership stay intact. */
.sme-document-flow.sme-continuous { --sme-form-border: var(--doc-line); color: var(--doc-ink); }
.sme-document-flow .sme-selected { color: var(--doc-ink); }
.sme-document-flow .sme-document-preflight { margin-block: 18px; padding: 16px 20px; border: 1px solid var(--doc-line); border-radius: 10px; background: var(--doc-paper); }
.sme-document-flow .sme-document-preflight > summary { min-block-size: 48px; color: var(--doc-ink); font-weight: 650; line-height: 1.6; cursor: pointer; overflow-wrap: anywhere; }
.sme-document-flow .sme-document-preflight > summary:focus-visible { outline: 3px solid var(--doc-accent); outline-offset: 3px; }
.sme-document-flow .sme-document-preflight .sme-heading { margin-block-start: 10px; }
.sme-document-flow .transaction-document .sme-form-section { padding: 0; border: 0; }
.sme-document-flow .document-owned-editor > .sme-heading:first-child { margin-block-start: 0; }
.sme-document-flow .sme-field :is(input:not([type=radio]):not([type=checkbox]), select, textarea) { border-color: var(--doc-control); background: var(--doc-paper); color: var(--doc-ink); border-radius: 6px; min-block-size: 46px; }
.sme-document-flow .sme-record, .sme-document-flow .sme-row, .sme-document-flow .sme-review-row, .sme-document-flow .sme-totals dl > div { border-color: var(--doc-line); }
.sme-document-flow .sme-record { background: var(--doc-paper); }
.sme-document-flow :is(.sme-notice, .sme-confirm, .sme-reused, .sme-provenance) { border-color: var(--doc-line); background: var(--doc-soft); color: var(--doc-ink); }
.sme-document-flow :is(.helper, .sme-internal-id) { color: var(--doc-muted); }
.sme-document-flow .sme-choice .radio-row { border-color: var(--doc-control); background: var(--doc-paper); }
.sme-document-flow .sme-choice .radio-row:has(input:checked) { border-color: var(--doc-accent); background: var(--doc-soft); }
.sme-document-flow .sme-choice input[type=radio] { accent-color: var(--doc-accent); }
.sme-document-flow :is(button, input, select, textarea):focus-visible { outline: 3px solid var(--doc-accent); outline-offset: 3px; }
.sme-document-flow :is(.primary-button, button.primary), .sme-document-flow :is(.primary-button, button.primary):is(:hover, :focus-visible) { color: var(--doc-paper); background: var(--doc-accent); border: 1px solid var(--doc-accent); font-weight: 750; }
html[data-theme=dark] .sme-document-flow :is(.primary-button, button.primary), html[data-theme=dark] .sme-document-flow :is(.primary-button, button.primary):is(:hover, :focus-visible) { color: #1f2937; }
.sme-document-flow .document-condition > summary { min-block-size: 76px; padding: 13px 16px; }
.sme-document-flow .document-condition .sme-heading { margin-block-start: 0; }
.sme-document-flow .document-condition .sme-record { margin-block: 12px; }
.sme-document-flow .document-condition-editor > .sme-field:first-child { margin-block-start: 0; }
.sme-document-flow .document-condition-editor > .sme-field:last-child { margin-block-end: 0; }
.sme-document-flow .document-condition-editor .sme-grid { grid-template-columns: minmax(0, 1fr); }
.sme-document-flow .document-details-summary .sme-review-row:last-child { border-block-end: 0; }
.sme-document-flow .document-result .sme-result { margin-block: 0; }
.sme-document-flow .sme-table { border: 1px solid var(--doc-line); border-radius: 8px; }
.sme-document-flow .sme-table th { background: var(--doc-soft); color: var(--doc-ink); }
.sme-document-flow .sme-table td { border-block-start: 1px solid var(--doc-line); }
.sme-document-flow .sme-bottom { border-color: var(--doc-line); }
.sme-document-flow .sme-error-summary:focus { outline-color: var(--doc-accent); }
@media (max-width: 640px) {
 .sme-document-flow .sme-document-preflight { padding: 12px 14px; }
 .sme-document-flow .document-owned-editor { padding: 16px 14px; }
 .sme-document-flow .document-condition-editor { padding: 16px 14px; }
 .sme-document-flow .document-navigation > *, .sme-document-flow .document-navigation > div > button { max-inline-size: 100%; }
 .sme-document-flow .document-navigation > button, .sme-document-flow .document-navigation > div { inline-size: 100%; }
}
@media print { .sme-document-flow .sme-document-preflight { break-inside: avoid; } }

/* The amount card is a compact native input surface, not the legacy form in a border. */
.sme-document-flow .sme-card-header { padding: 20px 24px 16px; }
.sme-document-flow .sme-card-header .document-title { font-size: clamp(1.35rem, 4vw, 1.85rem); line-height: 1.25; margin-block: 6px 8px; }
.sme-document-flow .sme-card-header .document-guidance { font-size: .95rem; margin: 0; }
.sme-document-flow .sme-card-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding-block-end: 16px; border-block-end: 1px solid var(--doc-line); }
.sme-document-flow .sme-card-meta .sme-field { margin: 0; }
.sme-document-flow .sme-card-meta .sme-field label { font-size: .85rem; color: var(--doc-muted); margin-block-end: 6px; }
.sme-document-flow .sme-card-meta .sme-field input, .sme-document-flow .sme-card-meta .sme-field select { min-block-size: 46px; font-size: 1rem; padding: 10px; }
.sme-document-flow .sme-card-amounts { margin-block: 4px 12px; }
.sme-document-flow .sme-card-row { border-block-end: 1px solid var(--doc-line); }
.sme-document-flow .sme-card-row .sme-field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 38%); gap: 8px 14px; align-items: center; margin: 0; padding-block: 12px; }
.sme-document-flow .sme-card-row .sme-field label { font-size: 1rem; font-weight: 550; line-height: 1.4; }
.sme-document-flow .sme-card-row .sme-field input { text-align: end; font-size: 1.2rem; font-weight: 700; min-block-size: 46px; padding: 8px 12px; font-variant-numeric: tabular-nums; }
.sme-document-flow .sme-card-row .field-error { grid-column: 1 / -1; margin: 0; }
.sme-document-flow .sme-card-support > .sme-field { margin-block: 12px; }
.sme-document-flow .sme-card-support .sme-record { margin-block: 12px; }
.sme-document-flow .sme-card-arithmetic { background: var(--doc-soft); border-radius: 8px; padding: 14px 16px; display: grid; gap: 6px; margin-block: 18px 12px; }
.sme-document-flow .sme-card-arithmetic > span { color: var(--doc-muted); font-weight: 700; font-size: .8rem; text-transform: uppercase; }
.sme-document-flow .sme-card-arithmetic strong { font-size: 1.55rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sme-document-flow .sme-card-arithmetic small { color: var(--doc-muted); font-size: .8rem; line-height: 1.45; }
.sme-document-flow .sme-card-next { color: var(--doc-muted); font-size: .88rem; line-height: 1.55; margin-block: 14px; }
.sme-document-flow .sme-card-definitions, .sme-document-flow .sme-card-source { border-block-start: 1px solid var(--doc-line); padding-block: 2px; margin: 0; }
.sme-document-flow .sme-card-definitions > summary, .sme-document-flow .sme-card-source > summary { font-size: .85rem; font-weight: 550; color: var(--doc-muted); }
.sme-document-flow .sme-card-definitions p { font-size: .88rem; line-height: 1.6; }
.sme-document-flow .sme-edition-suggestion { background: var(--doc-soft); border-inline-start: 3px solid var(--doc-accent); padding: 12px 14px; font-size: .95rem; line-height: 1.55; }
.sme-document-flow .sme-document-tax-inputs { margin-block: 18px; }
@media (max-width: 640px) {
 .sme-document-flow .sme-card-header { padding: 18px 16px 14px; }
 .sme-document-flow .sme-card-row .sme-field { grid-template-columns: minmax(0, 1fr) minmax(100px, 39%); gap: 8px 10px; }
 .sme-document-flow .sme-card-row .sme-field label { font-size: .9rem; }
 .sme-document-flow .sme-card-row .sme-field input { font-size: 1.05rem; padding-inline: 8px; }
 .sme-document-flow .sme-card-meta { gap: 10px; }
 .sme-document-flow .sme-card-meta .sme-field input, .sme-document-flow .sme-card-meta .sme-field select { padding-inline: 6px; font-size: 16px; max-inline-size: 100%; }
}

.sme-document-flow .sme-card-currency-note { font-size: .75rem; line-height: 1.45; margin-block: 7px 10px; color: var(--doc-muted); }

.sme-document-flow .sme-card-tax-totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-block: 10px; border-block-end: 1px solid var(--doc-line); }
.sme-document-flow .sme-card-tax-totals > div:last-child { font-size: 1.1rem; }

.sme-document-flow .sme-edition-summary { display: block; color: var(--doc-muted); font-size: .82rem; font-weight: 400; line-height: 1.5; }
