.interest-heading { max-width: 850px; padding-bottom: 36px; }
.interest-heading h1 { font-size: clamp(40px, 4.5vw, 64px); }
.interest-layout { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(250px, 1fr); gap: 32px; align-items: start; }
.interest-panel { border: 1px solid var(--line); border-radius: 16px; padding: 28px; margin-bottom: 22px; background: white; min-width: 0; }
.interest-panel .eyebrow { margin-bottom: 14px; }
.interest-panel h2 { font-size: 32px; margin: 0 0 24px; }
.interest-panel .muted { font-size: 13px; }
.interest-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.interest-field-grid label, .interest-parties label { min-width: 0; font-size: 13px; }
.interest-field-grid input, .interest-field-grid select, .interest-invoice-fields input { min-height: 48px; }
.interest-fixed-options { padding-top: 8px; }
.interest-fixed-options[hidden], .interest-statutory-help[hidden], .interest-remove[hidden], [data-add-invoice][hidden] { display: none; }
.interest-statutory-help { border-radius: 10px; background: #f2f0f9; padding: 18px; font-size: 13px; }
.interest-settings { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 24px; }
.interest-settings summary, .interest-guide summary { cursor: pointer; font-size: 13px; font-weight: bold; padding: 14px 0; }
.interest-settings p { font-size: 13px; }
.interest-invoice { border: 1px solid #dcd7ea; background: #fbfaff; border-radius: 12px; padding: 18px; margin: 22px 0; min-width: 0; }
.interest-invoice legend { padding: 0 8px; font-size: 12px; font-weight: bold; }
.interest-invoice-fields { display: grid; grid-template-columns: 1.15fr 1fr 1.1fr; gap: 16px; }
.interest-invoice-fields label { margin: 0; min-width: 0; font-size: 12px; }
.interest-invoice-fields input { padding: 12px 10px; }
.interest-remove { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin-top: 8px; border: 0; background: transparent; color: #793342; padding: 8px 0; font-size: 12px; cursor: pointer; }
.interest-parties > summary { cursor: pointer; font-weight: bold; font-size: 14px; }
.interest-parties > summary span { font-weight: normal; color: var(--muted); margin-left: 10px; }
.interest-parties[open] > summary { margin-bottom: 20px; }
.interest-guide { background: #eae7f4; border: 1px solid #e0dcec; border-radius: 18px; padding: 28px; }
.interest-guide .eyebrow { font-size: 10px; margin-bottom: 20px; }
.interest-guide h2 { font-size: 31px; margin: 0 0 28px; }
.interest-guide ol { padding-left: 20px; font-size: 13px; }
.interest-guide li { padding: 0 0 18px 5px; }
.interest-guide details { border-top: 1px solid #cec8df; }
.interest-guide p { font-size: 12px; color: #4c4965; }
.interest-guide a { text-decoration: underline; font-size: 12px; }
.interest-guide > a { display: block; margin-top: 22px; }
.interest-submit { display: flex; align-items: center; gap: 24px; margin: 25px 0 55px; }
.interest-submit .button { flex-shrink: 0; }
.interest-submit p, .interest-row-status { font-size: 12px; color: var(--muted); }
.interest-row-status:empty { display: none; }
.interest-result { border-top: 1px solid var(--line); padding: 40px 0 60px; scroll-margin-top: 24px; }
.interest-result > .section-heading { align-items: center; }
.interest-result .eyebrow { margin-bottom: 16px; }
.interest-result h2 { font-size: 40px; margin: 0 0 16px; overflow-wrap: anywhere; }
.interest-result .section-heading > div { min-width: 0; }
.interest-result .section-heading p { font-size: 13px; color: var(--muted); }
.interest-result-mark { color: white; display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 64px; height: 64px; background: var(--lime); border-radius: 50%; font: 32px Georgia, serif; }
.interest-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0 26px; }
.interest-totals > div { padding: 22px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.interest-totals span { display: block; font-size: 12px; margin-bottom: 14px; }
.interest-totals strong { font: 30px Georgia, serif; overflow-wrap: anywhere; }
.interest-totals .interest-total-highlight { background: var(--navy); color: white; border-color: var(--navy); }
.interest-result-actions { flex-wrap: wrap; margin-bottom: 30px; }
.interest-result-actions form { margin: 0; }
.interest-result-actions .text-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; }
.interest-parties-summary { padding: 0 0 16px; font-size: 14px; overflow-wrap: anywhere; }
.interest-method { padding: 22px; background: #f5f4fa; border-radius: 12px; font-size: 13px; margin: 24px 0; }
.interest-method p { margin-bottom: 0; }
.interest-invoice-result { padding: 24px; border: 1px solid var(--line); border-radius: 14px; margin: 18px 0; }
.interest-invoice-result h3 { font-size: 30px; margin: 12px 0; overflow-wrap: anywhere; }
.interest-invoice-result .section-heading { align-items: center; }
.interest-invoice-amount { display: flex; flex-direction: column; text-align: right; gap: 5px; flex-shrink: 0; }
.interest-invoice-amount span { font-size: 12px; color: var(--muted); }
.interest-invoice-amount strong { font: 28px Georgia, serif; }
.interest-invoice-result details { border-top: 1px solid var(--line); margin-top: 18px; }
.interest-invoice-result summary, .interest-versions summary { cursor: pointer; min-height: 44px; padding: 12px 0; font-size: 13px; font-weight: bold; }
.interest-table-scroll { overflow-x: auto; }
.interest-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 12px; }
.interest-table th, .interest-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.interest-table th { font-size: 11px; background: #f5f4fa; }
.interest-table small { display: block; margin-top: 5px; color: var(--muted); }
.interest-notes { white-space: pre-wrap; overflow-wrap: anywhere; margin: 26px 0; font-size: 14px; }
.interest-rounding, .interest-source { font-size: 12px; color: var(--muted); }
.interest-source a { text-decoration: underline; }
.interest-versions { margin: 30px 0 0; padding: 0 20px; border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 950px) {
    .interest-layout { grid-template-columns: minmax(0, 1fr); }
    .interest-guide { margin-bottom: 30px; }
    .interest-invoice-fields { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 650px) {
    .interest-panel, .interest-guide, .interest-invoice-result { padding: 22px; }
    .interest-field-grid, .interest-invoice-fields, .interest-totals { grid-template-columns: 1fr; gap: 14px; }
    .interest-invoice-fields { gap: 16px; }
    .interest-invoice { padding: 16px; }
    .interest-submit { flex-direction: column; align-items: stretch; gap: 8px; }
    .interest-submit .button { justify-content: space-between; }
    .interest-result h2 { font-size: 32px; }
    .interest-result-mark { color: white; width: 48px; height: 48px; font-size: 26px; }
    .interest-totals > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; }
    .interest-totals span { margin: 0; max-width: 120px; }
    .interest-totals strong { font-size: 27px; }
    .interest-result-actions { display: grid; grid-template-columns: 1fr; }
    .interest-result-actions .button, .interest-result-actions form { width: 100%; }
    .interest-result-actions .button { justify-content: space-between; }
    .interest-invoice-result .section-heading { flex-direction: column; align-items: flex-start; }
    .interest-invoice-amount { flex-direction: row; align-items: baseline; text-align: left; flex-wrap: wrap; gap: 10px; }
    .interest-versions .list-row { flex-wrap: wrap; gap: 8px; }
}

/* The page title leads; form section headings remain compact. */
body .interest-heading h1{font-weight:700;line-height:1.12}
.interest-panel h2{font-size:24px;line-height:1.25;margin-bottom:20px}
@media(max-width:760px){
body:not(.workspace) .section-shell+main>.workspace-context-back{margin:20px 0 0}
body:not(.workspace) .interest-heading{padding:24px 0}
body:not(.workspace) .interest-heading h1{font-size:clamp(28px,7vw,36px);margin:14px 0 16px;overflow-wrap:anywhere}
body:not(.workspace) .interest-heading .eyebrow{margin-bottom:0}
body:not(.workspace) .interest-heading .lead{font-size:16px;line-height:1.65;margin:0}
body:not(.workspace) .interest-heading>.muted{margin:16px 0 0}
.interest-panel h2{font-size:24px;margin-bottom:20px}
}

/* The calculator is part of the page; only the report uses a paper surface. */
.interest-step[hidden],.interest-step-nav[hidden],[data-interest-step-back][hidden],[data-interest-step-next][hidden],[data-interest-step-submit][hidden]{display:none!important}
.interest-step-nav{display:flex;gap:10px;margin:0 0 28px;padding:0;scroll-margin-top:110px}
body[data-interface="magilex"] .interest-step-nav button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 15px;border:1px solid #b7d0d6;border-radius:10px;background:transparent;color:#3a6872;font-size:13px;cursor:pointer;font-weight:600}
body[data-interface="magilex"] .interest-step-nav button[aria-current=step]{background:#d6e9eb;border-color:#91b9c0;color:#125d67}
.interest-step-nav button:focus-visible{outline:2px solid #137d83;outline-offset:3px}
body[data-interface="magilex"] :is(.interest-form,.court-fee-form,.payment-plan-form) .interest-panel{background:transparent;border:0;box-shadow:none;border-radius:0;padding:0;margin:0 0 24px}
body[data-interface="magilex"] :is(.interest-form,.court-fee-form,.payment-plan-form) .interest-panel h2{font-size:22px;margin:0 0 18px}
body[data-interface="magilex"] :is(.interest-form,.court-fee-form,.payment-plan-form) .interest-invoice{border:0;border-radius:0;background:transparent;box-shadow:none;margin:20px 0;padding:0 0 22px;border-bottom:1px solid #c7d8df}
:is(.interest-form,.court-fee-form,.payment-plan-form) .interest-invoice legend{padding:0 0 14px;font-size:13px;color:#416570}
body[data-interface="magilex"] :is(.interest-form,.court-fee-form,.payment-plan-form) .interest-statutory-help{background:transparent;padding:0;color:#526977;font-size:12px;line-height:1.7}
body[data-interface="magilex"] :is(.interest-form,.court-fee-form,.payment-plan-form) .interest-parties{border-top:1px solid #c7d8df;padding-top:16px}
:is(.interest-form,.court-fee-form,.payment-plan-form) .interest-parties summary{font-size:13px;color:#365e69}
:is(.interest-form,.court-fee-form,.payment-plan-form) .interest-submit{flex-wrap:wrap;gap:12px;align-items:center}
:is(.interest-form,.court-fee-form,.payment-plan-form) .interest-submit>p{flex-basis:100%;margin:4px 0 0;font-size:11px;line-height:1.6;color:#62757e}
body[data-interface="magilex"].workspace .workspace-calculation--document{border:0;background:transparent;margin:0;gap:46px;grid-template-columns:minmax(280px,.85fr) minmax(0,1.35fr)}
body[data-interface="magilex"].workspace .workspace-calculation--document>:is(.interest-form,.court-fee-form,.payment-plan-form),body[data-interface="magilex"].workspace .workspace-calculation--document>.workspace-calculation-result{background:transparent;border:0;padding:0;box-shadow:none;height:auto;min-height:0;overflow:visible}
body[data-interface="magilex"].workspace .workspace-calculation--document .interest-field-grid{grid-template-columns:1fr 1fr;gap:16px}
body[data-interface="magilex"].workspace .workspace-calculation--document .interest-invoice-fields{grid-template-columns:1fr 1fr;gap:18px 14px}
.workspace-calculation--document .interest-invoice-fields>label:last-child{grid-column:1/-1}
body[data-interface="magilex"].workspace .workspace-calculation--document .interest-panel input,body[data-interface="magilex"].workspace .workspace-calculation--document .interest-panel select{font-size:14px;min-height:44px;padding:10px 12px;border-radius:10px}
body[data-interface="magilex"].workspace .workspace-calculation--document .interest-panel textarea{border-radius:10px}
body[data-interface="magilex"].workspace .workspace-calculation--document>.workspace-calculation-result{position:sticky;top:112px;max-height:calc(100vh - 132px);overflow:auto;scrollbar-width:thin;padding:0 5px 12px 0}
body[data-interface="magilex"].workspace .workspace-calculation--document .interest-preview-heading{font-size:22px;line-height:1.3;margin:0 0 12px}
.workspace-calculation--document .workspace-pane-status{font-size:12px;line-height:1.6;color:#62757e;margin:0 0 18px}
body[data-interface="magilex"].workspace .workspace-calculation--document .interest-report-paper{border:1px solid #d1dce1;border-radius:10px;box-shadow:0 6px 22px #283b4810;padding:28px;min-height:600px}
body[data-interface="magilex"].workspace .workspace-calculation--document .interest-report-paper .interest-result{border:0;padding:0;border-radius:0;box-shadow:none;background:transparent}
body[data-interface="magilex"].workspace .workspace-calculation--document .interest-report-paper .interest-invoice-result{background:transparent;box-shadow:none;border-radius:0;border-width:1px 0 0;padding:20px 0 0}
.workspace-calculation--document .interest-report-paper>.interest-result-actions{position:static;display:flex;flex-wrap:wrap;gap:10px;margin:24px 0 0;padding-top:18px;border-top:1px solid #d4dfe3;background:transparent}
.workspace-calculation--document .interest-report-paper>.interest-result-actions .button{font-size:12px}
.workspace-calculation--document .interest-report-paper>.interest-result-actions form{margin:0}
.workspace-calculation--document .workspace-calculation-result>details{margin-top:18px;font-size:12px;color:#526977}
.workspace-calculation--document .workspace-calculation-result>details>summary{cursor:pointer;padding:8px 0}
@media(max-width:1000px){body[data-interface="magilex"].workspace .workspace-calculation--document{gap:28px;grid-template-columns:minmax(250px,.9fr) minmax(0,1.1fr)}body[data-interface="magilex"].workspace .workspace-calculation--document .interest-field-grid{grid-template-columns:1fr}body[data-interface="magilex"].workspace .workspace-calculation--document .interest-report-paper{padding:22px}}
@media(max-width:780px){body[data-interface="magilex"].workspace .workspace-calculation--document{display:block}body[data-interface="magilex"].workspace .workspace-calculation--document>.workspace-calculation-result{position:static;max-height:none;overflow:visible;margin-top:32px;padding:0}.interest-step-nav{gap:8px}.interest-step-nav button{flex:1}body[data-interface="magilex"].workspace .workspace-calculation--document .interest-panel input{font-size:16px}:is(.interest-form,.court-fee-form,.payment-plan-form) .interest-submit{flex-direction:row}:is(.interest-form,.court-fee-form,.payment-plan-form) .interest-submit .button{width:auto}}
@media print{body[data-interface="magilex"].workspace .workspace-calculation--document{display:block}body[data-interface="magilex"].workspace .workspace-calculation--document>:is(.interest-form,.court-fee-form,.payment-plan-form){display:none}body[data-interface="magilex"].workspace .workspace-calculation--document>.workspace-calculation-result{position:static;max-height:none;overflow:visible}body[data-interface="magilex"].workspace .workspace-calculation--document .interest-report-paper{border:0;box-shadow:none;padding:0}.workspace-calculation--document .interest-preview-heading,.workspace-calculation--document .workspace-pane-status,.workspace-calculation--document .interest-result-actions,.workspace-calculation--document .workspace-calculation-result>details{display:none!important}}
@media screen{
body[data-interface="magilex"] :is(.interest-form,.court-fee-form,.payment-plan-form){--mx-control-radius:10px}
body[data-interface="magilex"] :is(.interest-form,.court-fee-form,.payment-plan-form) .interest-questions .interest-panel{background:transparent;border:0;box-shadow:none;border-radius:0}
}
@media screen{
body[data-interface="magilex"] :is(.court-fee-form,.payment-plan-form) .court-kind-fields{border:0;background:transparent;padding:0;margin:22px 0;min-width:0}
body[data-interface="magilex"] :is(.court-fee-form,.payment-plan-form) .interest-panel>summary{padding:8px 0;font-size:13px;font-weight:600;color:#365e69;cursor:pointer}
body[data-interface="magilex"] .payment-plan-form details.interest-panel,body[data-interface="magilex"] .payment-plan-form .interest-parties{padding-top:14px;border-top:1px solid #c7d8df}
.interest-step-nav button[hidden]{display:none!important}
}

/* Report data uses a quiet, shared hierarchy in previews and saved reports. */
body[data-interface="magilex"] .interest-report-meta { width:100%; border-collapse:collapse; table-layout:fixed; margin:12px 0 20px; font-size:12px; line-height:1.55; }
body[data-interface="magilex"] .interest-report-meta th,
body[data-interface="magilex"] .interest-report-meta td { padding:6px 0; border-bottom:1px solid var(--line); background:transparent; text-align:left; vertical-align:top; font-weight:400; overflow-wrap:anywhere; }
body[data-interface="magilex"] .interest-report-meta th { width:108px; padding-right:12px; color:var(--muted); }
body[data-interface="magilex"] .interest-invoice-result h3 { font-weight:400; }

/* A single form keeps routine inputs visible and optional details together. */
.interest-document-header{position:relative;margin:0 0 28px;padding:0 0 22px;border-bottom:1px solid var(--line);min-width:0}
.interest-document-identity{display:flex;align-items:center;gap:7px;padding-right:58px;min-height:44px}
.interest-document-identity h2{font-size:22px;line-height:1.3;margin:0;min-width:0;overflow-wrap:anywhere}
.interest-document-settings>summary{position:absolute;top:0;right:0;display:flex;align-items:center;gap:7px;list-style:none;cursor:pointer;border:1px solid var(--line);border-radius:10px;padding:9px 11px;min-height:40px;font-size:12px;color:var(--teal,#137d83);background:transparent}
.interest-document-settings>summary::-webkit-details-marker{display:none}
.interest-document-settings>summary svg{width:16px;height:16px}
.interest-document-settings[open]>summary{background:#d6e9eb;border-color:#91b9c0}
.interest-document-settings>summary:focus-visible{outline:2px solid #137d83;outline-offset:3px}
.interest-document-settings-body{padding-top:20px;min-width:0}
.interest-document-settings-body label{font-size:13px;min-width:0}
.interest-document-settings-body h3{font-size:15px;margin:22px 0 12px}
.interest-document-settings-body p{font-size:12px;line-height:1.65;color:var(--muted)}
.interest-document-settings-body input,.interest-document-settings-body select,.interest-document-settings-body textarea{width:100%;min-width:0}

.interest-document-identity [hidden]{display:none!important}
.interest-name-edit{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;padding:7px;border:0;border-radius:8px;background:transparent;color:#3a6872;cursor:pointer}
.interest-name-edit:hover{background:#d6e9eb}
.interest-name-edit:focus-visible{outline:2px solid #137d83;outline-offset:2px}
.interest-name-edit svg{width:17px;height:17px}
.interest-name-field{width:100%;margin:0;min-width:0}
.interest-name-field input{width:100%;min-width:0;margin:0;font-size:18px;padding:8px 10px}
.interest-document-settings>summary{width:40px;justify-content:center;padding:9px}
.interest-document-settings>summary svg{width:20px;height:20px}

/* Settings sit above the page without moving the invoice form. */
.interest-settings-dialog{width:560px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:22px 24px;border:1px solid #c7d8df;border-radius:18px;background:#fff;color:var(--navy,#090d50);box-shadow:0 20px 70px #07134b30;overflow:auto}
.interest-settings-dialog:not([open]){display:none}
.interest-settings-dialog::backdrop{background:#07134b38;backdrop-filter:blur(2px)}
.interest-settings-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
body[data-interface="magilex"] .interest-settings-dialog-header h2{font-size:20px;line-height:1.3;margin:0}
.interest-settings-close{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:inherit;font:26px/1 sans-serif;cursor:pointer}
.interest-settings-close:hover{background:#edf4f5}
.interest-settings-dialog .interest-document-settings-body{padding:0}
body[data-interface="magilex"] .interest-settings-dialog .interest-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
.interest-settings-dialog label{margin:0;font-size:12px;line-height:1.4}
.interest-settings-dialog input,.interest-settings-dialog select,.interest-settings-dialog textarea{font-size:14px;min-height:42px;padding:9px 11px;margin-top:6px;border-radius:9px}
.interest-settings-dialog textarea{min-height:70px;resize:vertical}
.interest-settings-notes{grid-column:1/-1}
.interest-settings-dialog-footer{display:flex;justify-content:flex-end;margin-top:18px}
.interest-settings-dialog-footer .button{font-size:13px;padding:10px 20px;min-height:40px}
body:has(.interest-settings-dialog[open]){overflow:hidden}
@media(max-width:480px){.interest-settings-dialog{padding:18px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}body[data-interface="magilex"] .interest-settings-dialog .interest-field-grid{grid-template-columns:1fr;gap:12px}.interest-settings-dialog input,.interest-settings-dialog select,.interest-settings-dialog textarea{font-size:16px}}

/* Shared calculation choices align with the claim inputs. */
.interest-questions{container-type:inline-size}
.interest-parameter-fields{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:16px;align-items:start}
.interest-calculation-date{min-width:0}
.interest-calculation-date label{margin:0;font-size:13px}
body[data-interface="magilex"] .workspace-calculation--document .interest-form .interest-parameters .interest-calculation-date input{height:48px;min-height:48px;width:100%;box-sizing:border-box}
.interest-form .interest-parameters .interest-mode-choice{margin:0;border:0;padding:0;min-width:0}
.interest-form .interest-parameters .interest-mode-choice legend{font-size:13px;margin:0 0 8px;padding:0}
.interest-mode-switch{display:flex;align-items:center;justify-content:space-between;gap:2px;min-height:48px;box-sizing:border-box;padding:0 8px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:12px}
.interest-mode-switch[hidden],.interest-mode-buttons[hidden]{display:none!important}
.interest-mode-switch>[data-mode-caption]{color:var(--muted);white-space:nowrap}
.interest-mode-switch[data-mode="statutory"]>[data-mode-caption="statutory"],.interest-mode-switch[data-mode="fixed"]>[data-mode-caption="fixed"]{color:var(--navy,#00005c);font-weight:700}
.interest-mode-toggle{display:grid;place-items:center;min-width:36px;height:46px;padding:0;border:0;background:transparent;box-shadow:none;cursor:pointer;border-radius:8px;flex:0 0 36px}
.interest-mode-toggle:focus-visible{outline:2px solid var(--mx-button-focus);outline-offset:0}
.interest-mode-track{display:block;position:relative;width:32px;height:20px;box-sizing:border-box;border:1px solid var(--mx-button-line);border-radius:20px;background:var(--mx-button-fill)}
.interest-mode-track::after{content:"";position:absolute;left:3px;top:3px;width:12px;height:12px;border-radius:50%;background:#00005c;transition:transform .15s ease}
.interest-mode-toggle[aria-checked="true"] .interest-mode-track::after{transform:translateX(12px)}
.interest-form .interest-parameters .interest-mode-buttons{min-height:48px;box-sizing:border-box;align-items:center}
.interest-form .interest-parameters .interest-fixed-options{padding-top:16px}
@container(max-width:335px){.interest-parameter-fields{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.interest-mode-track::after{transition:none}}
body[data-interface="magilex"] .interest-form .interest-panel .interest-invoice{background:#f3f9f9;border:1px solid #c3d7dd;border-radius:12px;padding:16px;margin:14px 0}
body[data-interface="magilex"] .interest-form .interest-panel .interest-invoice legend{float:left;width:100%;padding:0;margin:0 0 12px;font-size:12px}
.interest-form .interest-panel .interest-invoice-fields{clear:both}
body[data-interface="magilex"] .interest-totals>.interest-grand-total>span,
body[data-interface="magilex"] .interest-totals>.interest-grand-total>strong{font-weight:700}

/* The printable report and its preview share one document structure. */
body[data-interface="magilex"] .interest-report-document{color:#172334}
.interest-document-letterhead{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 22px}
body[data-interface="magilex"] .interest-document-letterhead h2{font-size:26px;line-height:1.25;margin:0;min-width:0;overflow-wrap:anywhere;color:#172334}
.interest-document-dates{flex-shrink:0;text-align:right;font-size:11px;line-height:1.5;color:#5b6d83}
.interest-document-dates p{margin:0 0 4px;font-size:inherit}
.interest-document-dates strong{color:#172334;font-weight:600}
.interest-report-document .interest-report-meta{margin:0 0 18px}
.interest-document-method{display:grid;grid-template-columns:minmax(0,2fr) minmax(80px,1fr);gap:20px;padding:14px 16px;margin:0 0 20px;background:#f6f8fb;border:1px solid #dce4ed;border-left:3px solid #117d78;border-radius:4px}
.interest-document-label{display:block;font-size:10px;line-height:1.4;text-transform:uppercase;letter-spacing:.03em;color:#5b6d83;margin-bottom:5px}
.interest-document-method p{margin:0;font-size:12px;line-height:1.6}
body[data-interface="magilex"] .interest-report-document .interest-totals{display:table;width:calc(100% + 16px);border-collapse:separate;border-spacing:8px 0;table-layout:fixed;margin:0 -8px 24px;min-width:0}
body[data-interface="magilex"] .interest-report-document .interest-totals td{width:33.333%;padding:13px 10px;text-align:right;vertical-align:middle;border:1px solid #dce4ed;border-radius:6px;background:#fff}
body[data-interface="magilex"] .interest-report-document .interest-totals span{display:block;font-size:9px;line-height:1.5;text-transform:uppercase;color:#5b6d83;margin-bottom:8px}
body[data-interface="magilex"] .interest-report-document .interest-totals strong{font-family:var(--ui-font);font-size:clamp(16px,1.35vw,22px);font-weight:500;line-height:1.35;font-variant-numeric:tabular-nums;white-space:nowrap;color:#172334}
body[data-interface="magilex"] .interest-report-document .interest-totals td.interest-grand-total{background:#e3f1e9;border-color:#bad9c8}
body[data-interface="magilex"] .interest-report-document .interest-totals .interest-grand-total span{color:#386356;font-weight:400}
body[data-interface="magilex"] .interest-report-document .interest-totals .interest-grand-total strong{color:#174c43;font-weight:700}
body[data-interface="magilex"] .interest-report-document .interest-document-section-title{font-size:14px;font-weight:700;line-height:1.4;color:#35465d;margin:22px 0 10px;padding-bottom:8px;border-bottom:1px solid #dce4ed}
.interest-document-table{border-collapse:collapse;width:100%;font-size:11px;table-layout:fixed}
.interest-document-table th{font-size:10px;line-height:1.45;font-weight:700;color:#41536a;background:transparent;border-bottom:1px solid #c9d7e6;text-align:left;padding:9px 5px}
.interest-document-table td{font-size:11px;line-height:1.5;border-bottom:1px solid #dce4ed;padding:9px 5px;vertical-align:top;overflow-wrap:anywhere}
.interest-document-table .right{text-align:right}
.interest-document-table small{display:block;font-size:10px;color:#5b6d83}
.interest-document-summary{min-width:510px}
.interest-document-summary th:nth-child(1){width:13%}.interest-document-summary th:nth-child(2){width:19%}.interest-document-summary th:nth-child(3){width:18%}.interest-document-summary th:nth-child(4){width:13%}.interest-document-summary th:nth-child(5){width:18%}.interest-document-summary th:nth-child(6){width:19%}
.interest-document-summary tfoot{background:#f6f8fb;text-transform:uppercase}
.interest-document-summary tfoot th,.interest-document-summary tfoot td{font-weight:700}
.interest-invoice-calculation{margin:0 0 18px}
.interest-document-invoice-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:10px 12px;margin:14px 0 6px;background:#f0f5f9;border-radius:4px;line-height:1.5}
.interest-document-invoice-heading>strong{font-size:12px;overflow-wrap:anywhere;min-width:0}
.interest-document-invoice-heading>span{font-size:10px;color:#52667d;text-align:right}
.interest-document-periods{min-width:510px}
.interest-document-periods th:nth-child(1){width:23%}.interest-document-periods th:nth-child(2){width:8%}.interest-document-periods th:nth-child(3){width:21%}.interest-document-periods th:nth-child(4){width:33%}.interest-document-periods th:nth-child(5){width:15%}
.interest-document-table td.interest-document-formula{font-size:10px;color:#5b6d83}
.interest-document-money{white-space:nowrap}
.interest-document-explanations{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:26px;padding-top:14px;border-top:1px solid #dce4ed;color:#52667d}
.interest-document-explanations p{font-size:10px;line-height:1.65;margin:0 0 10px}
.interest-document-explanations a{color:inherit;text-decoration:underline}
.interest-document-user-notes{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;margin:20px 0}
.interest-document-user-notes h3{font-size:14px}
.interest-document-note{font-size:11px;color:#52667d}
.interest-document-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;border-top:1px solid #dce4ed;padding-top:12px;margin-top:28px;font-size:10px;color:#5b6d83}
.interest-document-footer>div{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.interest-document-footer img{display:block;width:66px;height:auto}
.interest-document-footer a{color:inherit;text-decoration:none;font-size:10px}
.interest-report-preview--interest>.interest-result-actions{display:flex;flex-wrap:wrap;gap:10px;padding:0;margin:16px 0 0;background:transparent;border:0}
.interest-report-preview--interest>.interest-result-actions form{margin:0}
.interest-report-preview--interest>.interest-result-actions .button{font-size:12px}
@media(max-width:1100px){.interest-document-letterhead{flex-direction:column;gap:10px}.interest-document-dates{text-align:left}.interest-document-dates p{display:inline-block;margin:0 12px 0 0}.interest-document-explanations{grid-template-columns:1fr;gap:0}.interest-document-invoice-heading{flex-wrap:wrap}.interest-document-invoice-heading>span{text-align:left}}
@media(min-width:481px) and (max-width:1100px){body[data-interface="magilex"] .interest-report-document .interest-totals{display:block;width:100%;margin:0 0 20px;border-spacing:0}body[data-interface="magilex"] .interest-report-document .interest-totals tbody,body[data-interface="magilex"] .interest-report-document .interest-totals tr{display:block}body[data-interface="magilex"] .interest-report-document .interest-totals td{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;margin:8px 0;padding:12px}body[data-interface="magilex"] .interest-report-document .interest-totals span{margin:0;text-align:left}}
@media(max-width:480px){.interest-document-method{grid-template-columns:1fr;gap:12px;padding:12px}.interest-document-letterhead h2{font-size:22px!important}body[data-interface="magilex"] .interest-report-document .interest-totals{display:block;width:100%;margin:0 0 20px;border-spacing:0}body[data-interface="magilex"] .interest-report-document .interest-totals tbody,body[data-interface="magilex"] .interest-report-document .interest-totals tr{display:block}body[data-interface="magilex"] .interest-report-document .interest-totals td{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;margin:8px 0;padding:12px}body[data-interface="magilex"] .interest-report-document .interest-totals span{margin:0;text-align:left}body[data-interface="magilex"] .interest-report-document .interest-totals strong{font-size:20px}.interest-report-preview--interest>.interest-result-actions{align-items:stretch}.interest-report-preview--interest>.interest-result-actions>.button,.interest-report-preview--interest>.interest-result-actions>form{flex:1}}
@media print{.interest-report-preview--interest>.interest-result-actions{display:none!important}.interest-document-table{min-width:0}}

[data-calculation-single-page] .interest-step-nav{display:none!important}
.calculation-extra-options{margin:4px 0 14px;padding:6px 0;border:0;background:transparent;cursor:pointer;font:inherit;color:var(--accent)}
[data-calculation-single-page] .interest-document-settings-body>label{display:block;margin-top:14px}
[data-calculation-single-page] .interest-questions>.interest-step+.interest-step{margin-top:12px}

.interest-saved-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;margin:0 0 24px;font-size:12px;color:var(--muted)}
.interest-saved-toolbar .back{margin:0}.interest-saved-toolbar>.button{margin-left:auto}
.interest-saved-document{max-width:900px;margin:24px auto}
.interest-unsaved-status{font-size:12px;color:var(--muted);margin:8px 0 0}
@media(max-width:600px){.interest-saved-toolbar>.button{margin-left:0}.interest-saved-document .interest-report-paper{padding:18px}}

/* Common report details for court fees, repayment schedules and credit cost. */
.calculation-schedule{min-width:750px;font-variant-numeric:tabular-nums}
.calculation-schedule th,.calculation-schedule td{text-align:right;white-space:nowrap}
.calculation-schedule th:first-child,.calculation-schedule td:first-child{text-align:left}
.calculation-schedule td:nth-child(2){font-weight:600}
.calculation-cashflows{min-width:540px;font-variant-numeric:tabular-nums}
.calculation-cashflows th,.calculation-cashflows td{text-align:right;white-space:nowrap}
.calculation-cashflows th:first-child,.calculation-cashflows td:first-child{text-align:left}
.calculation-pending-table{min-width:360px}
.calculation-report-method{font-size:11px;line-height:1.65;color:#52667d}
.calculation-report-method p{font-size:inherit}
.interest-report-document .muted{font-size:11px;color:#5b6d83}
.calculation-breakdown td.right{white-space:nowrap}
@media print{.calculation-schedule,.calculation-cashflows,.calculation-pending-table{min-width:0}.interest-table-scroll{overflow:visible}}

.credit-cost-payment .interest-invoice-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { 