/* One stylesheet for every registered converter and every stage. */
.cm-converter-body{margin:0;padding:24px;background:#f5f8ff}
.cm-converter{--cm-ink:#142343;--cm-blue:#2261ed;--cm-navy:#0a246b;--cm-line:#dce5f0;color:var(--cm-ink);font:400 15px/1.65 'DM Sans',sans-serif;max-width:none;width:100%;margin:0 auto 32px;min-width:0}
.cm-converter *{box-sizing:border-box}.cm-converter [hidden]{display:none!important}.cm-converter :is(h1,h2,h3){font-family:'Plus Jakarta Sans',sans-serif;color:var(--cm-navy);letter-spacing:-.03em;line-height:1.3}.cm-converter h1{font-size:clamp(26px,4vw,36px);margin:8px 0 12px}.cm-converter h2{font-size:20px;margin:0 0 12px;display:flex;align-items:center;gap:10px}.cm-converter h3{font-size:18px}.cm-converter p{margin:0 0 16px}.cm-converter a{color:#1545b2;text-underline-offset:3px}.cm-converter-heading>p:last-child{max-width:750px;color:#526681}.cm-converter .cm-converter-eyebrow{font-size:11px;color:var(--cm-blue);font-weight:700;letter-spacing:.12em;margin:0}.cm-converter-icon{width:24px;height:24px;flex-shrink:0;color:var(--cm-blue)}
.cm-converter-security{display:flex;gap:14px;padding:20px 24px;border:1px solid #d5e4fb;border-radius:14px;background:#edf4ff;margin:24px 0}.cm-converter-security strong{color:var(--cm-navy)}.cm-converter-security p{margin:4px 0 0;font-size:13px;line-height:1.65}
.cm-converter-steps{display:flex;list-style:none;padding:0 0 12px;margin:28px 0;gap:8px;overflow:auto;scrollbar-width:thin}.cm-converter-steps li{display:flex;align-items:center;gap:7px;flex:1;white-space:nowrap;font-size:12px;color:#526681}.cm-converter-steps span{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:50%;background:#e8eef8;color:#526681;font-weight:700}.cm-converter-steps [aria-current=step]{color:var(--cm-navy);font-weight:700}.cm-converter-steps [aria-current=step] span{background:var(--cm-blue);color:white}.cm-converter-steps .is-complete span{background:#e2f2eb;color:#156246}
.cm-converter-work,.cm-converter-aside{min-width:0}.cm-converter-card{padding:28px;border:1px solid var(--cm-line);background:#fff;border-radius:18px;margin:0 0 24px;min-width:0}.cm-converter-card form{margin:0}.cm-converter-card>p{color:#526681}.cm-converter-aside .cm-converter-card{padding:22px}.cm-converter-instructions{margin:0 0 18px;padding-left:22px}.cm-converter-instructions li{padding-left:4px;margin:0 0 12px}.cm-converter .cm-converter-hint{font-size:12px;line-height:1.65;color:#526681;margin:12px 0 0}
.cm-converter-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.cm-converter-formats{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end}.cm-converter-formats>span{padding-bottom:11px;color:var(--cm-blue)}.cm-converter label{display:block;color:var(--cm-ink);font-size:13px;font-weight:600;line-height:1.6;margin:0 0 12px}.cm-converter :is(input:not([type=checkbox]),select){width:100%;min-width:0;max-width:100%;min-height:46px;padding:11px 12px;border:1px solid #cdd9e9;border-radius:9px;font:400 16px/1.4 'DM Sans',sans-serif;background:white;color:var(--cm-ink);display:block;margin:6px 0 0}.cm-converter input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;accent-color:var(--cm-blue);margin:4px 8px 0 0}.cm-converter label:has(input[type=checkbox]){display:flex;align-items:start;font-weight:400}.cm-converter :is(input,select,button,a,summary):focus-visible{outline:3px solid #2261ed;outline-offset:3px}.cm-converter button{border:1px solid #cdd9e9;padding:10px 16px;border-radius:9px;background:#edf3ff;color:var(--cm-navy);font:700 14px/1.5 'DM Sans',sans-serif;cursor:pointer;min-height:44px}.cm-converter button.cm-converter-primary{background:var(--cm-blue);color:#fff;border-color:var(--cm-blue);padding:13px 22px;min-height:48px;width:100%;margin-top:16px}.cm-converter button:hover{filter:brightness(.96)}.cm-converter button:disabled{opacity:.55;cursor:wait}
.cm-converter-dropzone{display:flex;align-items:center;flex-direction:column;text-align:center;padding:30px 18px;border:2px dashed #bbcee8;border-radius:12px;background:#f7faff;margin:12px 0 20px;gap:8px}.cm-converter-dropzone.is-dragging{border-color:var(--cm-blue);background:#e9f1ff}.cm-converter-dropzone>.cm-converter-icon{width:34px;height:34px;margin-bottom:8px}.cm-converter-dropzone>span,.cm-converter-dropzone>small{font-size:12px;color:#526681}.cm-converter .cm-converter-file-label{margin:8px 0;position:relative;background:#e4edff;color:#1545b2;padding:10px 18px;border-radius:8px;cursor:pointer;overflow:hidden}.cm-converter-file-label input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;height:100%;margin:0}.cm-converter-file-label:focus-within{outline:3px solid var(--cm-blue);outline-offset:3px}.cm-converter-dropzone p{font-size:13px;max-width:100%;overflow-wrap:anywhere;margin:2px 0}.cm-converter input[type=file]{font-size:13px;padding:10px}.cm-converter input::file-selector-button{border:0;border-radius:5px;padding:8px;background:#e4edff;color:#1545b2;margin-right:8px}
.cm-converter-additional{border:0;padding:16px 0 0;margin:20px 0}.cm-converter-additional legend{font-weight:700;color:var(--cm-navy)}.cm-converter-additional p{font-size:13px;color:#526681}.cm-converter [data-review-entries] fieldset{border:1px solid var(--cm-line);border-radius:12px;padding:18px;margin:20px 0;display:grid;grid-template-columns:1fr 1fr;gap:12px}.cm-converter [data-review-entries] fieldset legend{font-weight:700}.cm-converter [data-review-entries] label:last-of-type{grid-column:1/-1}.cm-converter [data-review-entries] button{justify-self:start}
.cm-converter-credit dl{margin:0}.cm-converter-credit dl>div{display:flex;justify-content:space-between;align-items:start;gap:14px;padding:12px 0;border-bottom:1px solid var(--cm-line);font-size:13px}.cm-converter-credit dt{flex:1}.cm-converter-credit dd{margin:0;text-align:right;font-weight:700;font-variant-numeric:tabular-nums}.cm-converter-total{color:var(--cm-navy)}.cm-converter-validation{border:1px solid #e8b3b3;background:#fff2f2;padding:20px;border-radius:12px;color:#872525;margin:16px 0}.cm-converter-validation ul{margin:8px 0;padding-left:20px}.cm-converter-status:not(:empty){padding:12px;background:#edf4ff;border-radius:9px;margin-top:16px}.cm-converter-pages details{margin-top:12px;border:1px solid var(--cm-line);padding:12px;border-radius:8px}.cm-converter pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.cm-converter summary{cursor:pointer;color:#1545b2;padding:8px 0}.cm-converter-result{display:grid;gap:5px;border:1px solid #d3e6db;border-radius:12px;padding:18px;background:#f1f8f4;margin:22px 0}.cm-converter-result span,.cm-converter-result small{font-size:12px;color:#526681}
.cm-converter-table-wrap{overflow:hidden;border:1px solid var(--cm-line);border-radius:12px;margin-top:22px}.cm-converter table{width:100%;margin:0;table-layout:fixed;border-collapse:collapse}.cm-converter :is(th,td){padding:18px 14px;text-align:left;vertical-align:top;overflow-wrap:anywhere;line-height:1.6;font-size:13px;border:0;border-bottom:1px solid var(--cm-line)}.cm-converter th{background:#edf3ff;font-weight:600;color:#526681}.cm-converter th:first-child{width:21%}.cm-converter th:last-child{width:25%;text-align:right}.cm-converter .cm-converter-date small{display:block;color:#526681}.cm-converter td.cm-converter-amount{text-align:right;font-weight:700;font-variant-numeric:tabular-nums}.cm-converter td.cm-converter-in{color:#156246}.cm-converter-booking strong{font-size:14px}.cm-converter-booking dd{margin:2px 0 14px;white-space:pre-wrap}.cm-converter-booking dt{color:#526681}
@media(max-width:980px){.cm-converter-grid{grid-template-columns:1fr}.cm-converter-aside{display:grid;grid-template-columns:1fr 1fr;gap:20px}.cm-converter-credit{grid-column:1/-1}.cm-converter-steps li{flex:0 0 auto;margin-right:12px}}
@media(max-width:600px){.cm-converter-body{padding:16px}.cm-converter-card,.cm-converter-aside .cm-converter-card{padding:20px;border-radius:14px}.cm-converter-aside,.cm-converter-fields{grid-template-columns:1fr}.cm-converter-formats{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.cm-converter-formats>span{display:none}.cm-converter-security{padding:16px}.cm-converter [data-review-entries] fieldset{grid-template-columns:1fr;padding:12px}.cm-converter-steps{margin:20px 0}.cm-converter :is(table,tbody){display:block}.cm-converter thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.cm-converter tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:16px;border-bottom:1px solid var(--cm-line)}.cm-converter td{border:0;padding:0}.cm-converter-date{grid-column:1/-1}.cm-converter .cm-converter-date small{display:inline;margin-left:10px}.cm-converter-amount{max-width:10em}}
/* One grid per workflow row. These rules are shared by every converter. */
.cm-tools-workspace .cm-workspace-wrap{max-width:none;padding-inline:24px}.cm-converter{container-type:inline-size}.cm-converter-body{padding:24px}.cm-converter-top{display:grid;grid-template-columns:minmax(0,65fr) minmax(0,35fr);gap:24px;align-items:start}.cm-converter-top-aside{min-width:0}.cm-converter-top .cm-converter-security{margin:0 0 10px;padding:14px 16px}.cm-converter-security summary{font-size:12px;padding:2px 0}.cm-converter-security>.cm-converter-icon{color:#15924c;background:#e1f4e7;border-radius:50%;padding:7px;width:40px;height:40px}.cm-converter-balance{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px}.cm-converter-balance strong{font-size:17px;color:var(--cm-navy);font-variant-numeric:tabular-nums;margin-left:8px}.cm-converter-small-button{display:inline-flex;padding:6px 10px;border:1px solid var(--cm-line);border-radius:8px;background:#fff;text-decoration:none}.cm-converter-steps{align-items:center;margin:24px 0;overflow:visible}.cm-converter-steps li{font-size:13px;gap:10px;flex:1;white-space:normal}.cm-converter-steps li:not(:last-child)::after{content:'';height:2px;min-width:20px;flex:1;background:#c4d5f7;margin:0 16px}.cm-converter-steps span{width:36px;height:36px;flex-basis:36px;font-size:16px}.cm-converter-upload-grid{display:grid;grid-template-columns:minmax(0,65fr) minmax(0,35fr);gap:24px;align-items:start}.cm-converter-result-grid{display:grid;grid-template-columns:minmax(0,70fr) minmax(0,30fr);gap:24px;align-items:start;margin-top:24px}.cm-converter-upload-grid>.cm-converter-card,.cm-converter-upload-grid>aside>.cm-converter-card{margin:0}.cm-converter-card{padding:24px;margin-bottom:0;box-shadow:0 4px 14px #14234304}.cm-converter-upload-grid>aside>.cm-converter-card{background:linear-gradient(135deg,#f3f7ff,#eaf1ff)}.cm-converter-dropzone{padding:24px 16px;gap:5px;margin-bottom:18px}.cm-converter-instructions{list-style:none;padding:0}.cm-converter-instructions li{display:flex;gap:12px;margin:18px 0;padding:0}.cm-converter-instructions li p{font-size:13px;margin:5px 0 0}.cm-converter-instruction-icon{width:38px;height:38px;border-radius:50%;flex:0 0 38px;display:grid;place-items:center;background:white}.cm-converter-download{border-top:1px solid var(--cm-line);margin-top:20px;padding-top:20px}.cm-converter-download h2{font-size:17px}.cm-converter-download p{font-size:13px}.cm-converter-export{min-width:0}.cm-converter-primary{background:linear-gradient(110deg,#3778ff,#1545e9)!important}.cm-converter-badge{font-size:11px;background:#edf1f8;padding:3px 7px;border-radius:5px}.cm-converter-badge.cm-converter-in{background:#e2f4e9;color:#156246}.cm-converter .cm-converter-col-date{width:17%}.cm-converter .cm-converter-col-description{width:33%}.cm-converter .cm-converter-col-type{width:12%}.cm-converter .cm-converter-col-cents,.cm-converter .cm-converter-col-balance{width:19%;text-align:right;font-variant-numeric:tabular-nums}.cm-converter-result .cm-converter-fields{margin:8px 0;font-size:12px}.cm-converter-result .cm-converter-fields strong{display:block;color:var(--cm-navy)}.cm-tool-tabs{display:flex;flex-wrap:wrap;gap:8px;border-bottom:1px solid #dce5f0;padding-bottom:12px;margin-bottom:24px}.cm-tool-tabs a{padding:8px 12px;border-radius:8px;color:#526681;text-decoration:none;font-size:13px!important}.cm-tool-tabs a[aria-current=page]{background:#e7efff;color:#1545b2;font-weight:700}[data-tool-panel][hidden]{display:none!important}.cm-converter [data-review-form]{margin-top:24px}.cm-converter-pdf-grid{display:grid;grid-template-columns:minmax(0,70fr) minmax(0,30fr);gap:24px;margin-top:20px}.cm-converter-pdf-grid>aside{min-width:0}.cm-converter-table-scroll{overflow:auto;max-height:520px}.cm-converter .cm-converter-edit-table{table-layout:auto}.cm-converter-edit-table input{margin:0!important;min-height:38px!important;font-size:13px!important;padding:8px!important}.cm-converter-edit-table th:first-child{width:140px}.cm-converter-edit-table th:last-child{width:60px}.cm-converter-edit-table td{padding:8px}.cm-converter-edit-table [data-col=amount]{min-width:110px}.cm-converter-edit-table [data-col=description]{min-width:160px}.cm-converter-pdf-warning{padding:14px 18px;background:#fff8e9;border:1px solid #eddfbd;border-radius:10px;margin-bottom:18px;font-size:13px}.cm-converter-pdf-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.cm-converter-pdf-fields label{min-width:0}.cm-converter-pdf-fields label[hidden]{display:none}.cm-converter .cm-converter-pages{margin-top:16px}.cm-converter .cm-converter-pages>details{font-size:12px}
@container(max-width:850px){.cm-converter-top{grid-template-columns:1fr;gap:16px}.cm-converter-upload-grid,.cm-converter-result-grid,.cm-converter-pdf-grid{grid-template-columns:1fr}.cm-converter-upload-grid{gap:18px}.cm-converter-pdf-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.cm-tools-workspace .cm-workspace-wrap{padding-inline:14px}.cm-converter-body{padding:16px}.cm-converter-steps li{font-size:11px;gap:6px;flex-direction:column;text-align:center}.cm-converter-steps li:not(:last-child)::after{display:none}.cm-converter :is(.cm-converter-col-date,.cm-converter-col-description,.cm-converter-col-type,.cm-converter-col-cents,.cm-converter-col-balance){width:auto;text-align:left}.cm-converter td.cm-converter-col-description{grid-column:1/-1}.cm-converter td.cm-converter-col-cents{text-align:right;grid-column:2;grid-row:3}.cm-converter td.cm-converter-col-balance{grid-column:1/-1;font-size:12px;color:#526681}.cm-converter td.cm-converter-col-balance::before{content:'Saldo: '}.cm-converter-pdf-fields{grid-template-columns:1fr}.cm-converter .cm-converter-edit-table,.cm-converter .cm-converter-edit-table :is(thead,tbody){display:table;position:static;clip-path:none;width:100%;height:auto}.cm-converter .cm-converter-edit-table thead{display:table-header-group}.cm-converter .cm-converter-edit-table tbody{display:table-row-group}.cm-converter .cm-converter-edit-table tr{display:table-row}.cm-converter .cm-converter-edit-table :is(td,th){display:table-cell;border-bottom:1px solid #dce5f0}.cm-converter .cm-converter-edit-table{min-width:580px}}
/* Keep the summary readable inside the 30% column, overriding dashboard definition-list grids. */
.cm-converter .cm-converter-credit dl{display:block;width:100%}.cm-converter .cm-converter-credit dl>div{display:flex;width:100%;gap:12px}.cm-converter .cm-converter-credit dd{white-space:nowrap;word-break:normal;overflow-wrap:normal;flex-shrink:0}.cm-converter .cm-converter-credit dt{min-width:0}.cm-converter .cm-converter-badge{white-space:nowrap;display:inline-block}.cm-converter-dropzone{padding:18px 16px;gap:4px}.cm-converter-dropzone>.cm-converter-icon{width:28px;height:28px;margin-bottom:4px}.cm-converter .cm-converter-dropzone .cm-converter-file-label{margin:4px 0;padding:8px 14px}.cm-converter-formats{margin:16px 0 0}.cm-converter-formats label{margin:0}
@media(max-width:600px){.cm-converter-edit-table input{font-size:16px!important}}

.cm-converter-edit-table th:last-child{white-space:nowrap;min-width:60px}.cm-converter-pdf-warning button{margin-left:10px;padding:4px 8px;min-height:32px;font-size:12px;background:transparent}

.cm-converter .cm-pdf-metadata { margin-bottom: 16px; }
.cm-pdf-review-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.cm-pdf-review-heading h2 { margin: 0; }
.cm-pdf-review-heading > span { color: #526681; font-size: 13px; }
.cm-pdf-review-heading button, .cm-converter .cm-pdf-row-actions button, .cm-converter [data-generate-reference], .cm-converter [data-add-entry] {
    background: #edf2ff; color: #1545b2; border: 1px solid #dce5f0; border-radius: 8px; padding: 8px 10px; font-size: 12px; margin: 0;
}
.cm-converter [data-add-entry] { margin-top: 12px; }
.cm-converter .cm-pdf-metadata-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; margin: 0 0 12px; }
.cm-pdf-metadata-summary > div { background: #f3f6fd; border-radius: 8px; padding: 8px 12px; min-width: 0; }
.cm-pdf-metadata-summary dt { font-size: 11px; color: #526681; margin: 0 0 2px; }
.cm-pdf-metadata-summary dd { font-size: 13px; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.cm-pdf-metadata-summary small, .cm-pdf-row-actions small { display: block; font-size: 11px; color: #526681; font-weight: 400; }
.cm-pdf-reconciliation { padding: 8px 12px; border-radius: 8px; background: #edf2ff; color: #2b456b; font-size: 13px; }
.cm-pdf-reconciliation[data-state=matched] { background: #e2f4e9; color: #156246; }
.cm-pdf-reconciliation[data-state=mismatch] { background: #fff0ed; color: #963326; }
.cm-converter .cm-converter-edit-table th:last-child { width: auto; }
.cm-converter .cm-pdf-row-actions { min-width: 105px; }
.cm-converter .cm-pdf-row-actions button + button { margin: 4px 0; }
.cm-converter [hidden] { display: none !important; }

#bijkopen .cm-credit-package > .button { display: flex; justify-content: center; gap: 10px; min-height: 44px; margin: 0; }
#bijkopen .cm-credit-quantity span { font-weight: 400; }
#bijkopen .cm-credit-explanation { margin-top: 16px; }

.cm-converter .cm-converter-edit-table {
    min-width: 470px;
    table-layout: auto;
}
.cm-converter .cm-converter-edit-table:has(th.cm-bank-column:not([hidden])) { min-width: 660px; }
.cm-converter .cm-converter-edit-table th { width: auto; text-align: left; white-space: nowrap; }
.cm-converter .cm-converter-edit-table .cm-pdf-date { min-width: 106px; white-space: nowrap; }
.cm-converter .cm-converter-edit-table .cm-pdf-description { min-width: 135px; overflow-wrap: anywhere; }
.cm-converter .cm-converter-edit-table .cm-pdf-amount {
    min-width: 106px;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.cm-converter .cm-converter-edit-table .cm-pdf-type { min-width: 112px; }
.cm-converter .cm-converter-edit-table .cm-pdf-reference { min-width: 92px; }
.cm-converter .cm-converter-edit-table .cm-pdf-row-actions { min-width: 109px; text-align: left; }
.cm-converter .cm-pdf-row-actions button { display: block; white-space: nowrap; }

.cm-correction { margin-block: 24px; }
.cm-correction[hidden], .cm-converter [data-converter-results][hidden] { display: none; }
.cm-correction-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 8px; margin: 12px 0 20px; }
.cm-correction-metrics div { min-width: 0; padding: 10px 12px; background: #f0f5ff; border-radius: 9px; }
.cm-correction-metrics dt { color: #526681; font-size: .79rem; min-block-size: 32px; display: flex; align-items: center; }
.cm-correction-metrics dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cm-correction-metrics .cm-correction-deviation { background: #fff0ef; color: #8e2924; }
.cm-correction-split { display: grid; grid-template-columns: minmax(0,39fr) minmax(0,61fr); gap: 20px; align-items: start; }
.cm-correction-document, .cm-correction-editor { min-width: 0; }
.cm-correction-document { padding: 14px; background: #f3f6fc; border: 1px solid var(--cm-line); border-radius: 12px; }
.cm-correction-document .cm-converter-hint { margin: 0; overflow-wrap: anywhere; }
.cm-correction-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.cm-correction-toolbar input, .cm-correction-toolbar select { flex: 1 1 175px; min-width: 0; }
.cm-correction [data-correction-actions] { border-top: 1px solid var(--cm-line); margin-top: 20px; padding-top: 6px; }
.cm-converter .cm-correction-secondary { padding: 7px 11px; border: 1px solid var(--cm-line); border-radius: 8px; background: #edf3ff; color: #153f9c; font: inherit; font-size: .81rem; font-weight: 700; cursor: pointer; }
.cm-converter button.cm-correction-secondary:disabled { opacity: .52; cursor: default; }
.cm-correction-document, .cm-correction-editor { width: 100%; }
.cm-correction-original { position: relative; overflow: auto; max-height: 580px; min-height: 175px; background: #fff; border: 1px solid var(--cm-line); border-radius: 8px; }
.cm-correction-sheet { position: relative; }
.cm-correction-sheet canvas { display: block; width: 100%; height: auto; }
.cm-correction-marker { position: absolute; left: 0; right: 0; height: 12px; transform: translateY(-85%); background: #ffd35a66; outline: 1px solid #aa741a; pointer-events: none; }
.cm-correction-lines { width: max-content; min-width: 100%; font-size: 12px; padding: 8px 0; }
.cm-correction-lines>div { display: flex; gap: 12px; padding: 4px 10px; white-space: pre; }
.cm-correction-lines span { color: #526681; min-width: 4ch; user-select: none; }
.cm-correction-lines .is-selected { background: #ffecad; }
.cm-correction-table-scroll { overflow: auto; border: 1px solid var(--cm-line); border-radius: 10px; }
.cm-converter .cm-correction-table-scroll table { table-layout: auto; }
.cm-converter .cm-correction-table-scroll :is(th,td) { padding: 11px 9px; width: auto; }
.cm-converter .cm-correction-table-scroll th:nth-child(2) { width: 100%; }
.cm-converter .cm-correction-table-scroll :is(th:first-child, th:last-child, td:first-child, .cm-correction-amount) { white-space: nowrap; }
.cm-converter .cm-correction-table-scroll td small { display: block; color: #526681; line-height: 1.4; }
.cm-converter .cm-correction-table-scroll .cm-correction-amount { text-align: right; font-variant-numeric: tabular-nums; }
.cm-converter .cm-correction-table-scroll .cm-correction-sort { border: 0; background: transparent; padding: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; }
.cm-correction-row-actions { display: flex; flex-wrap: wrap; gap: 4px; min-width: 96px; }
.cm-correction-row-actions button { white-space: nowrap; }
.cm-correction-range { justify-content: space-between; font-size: .82rem; }
.cm-converter .cm-correction-table-scroll tr[data-issue] { background: #fff9ec; }
.cm-converter .cm-correction-table-scroll tr[data-issue=critical] { background: #fff2f1; }
.cm-converter .cm-correction-table-scroll .cm-correction-row-alert { margin-top: 5px; font-weight: 700; color: #833f10; }
.cm-correction-issues { padding-left: 1.3em; }
.cm-correction-issues li { margin: 6px 0; }
.cm-correction-issues li[data-category=critical] { color: #8e2924; }
.cm-validation-status { display: inline-block; border-radius: 6px; padding: 3px 9px; font-size: .85rem; font-weight: 700; }
.cm-validation-status[data-status=verified] { background: #e7f6ec; color: #195135; }
.cm-validation-status[data-status=warnings] { background: #fff1d9; color: #694600; }
.cm-validation-status[data-status=unverifiable] { background: #eef0f3; color: #34445a; }
.cm-validation-status[data-status=invalid] { background: #fff0ef; color: #8e2924; }
.cm-correction dialog { color: var(--cm-navy); width: min(660px,calc(100% - 24px)); max-height: 90dvh; overflow: auto; border: 1px solid var(--cm-line); border-radius: 14px; padding: 22px; background: white; }
.cm-correction dialog::backdrop { background: #14234366; }
.cm-correction-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 8px 14px; }
.cm-correction-fields label:has(textarea) { grid-column: 1/-1; }
.cm-correction dialog textarea { display: block; width: 100%; min-height: 76px; }
@container (max-width: 870px) {
    .cm-correction-split { grid-template-columns: minmax(0,1fr); }
    .cm-correction-original { max-height: 360px; }
}
@media (max-width: 600px) {
    .cm-correction-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .cm-converter .cm-correction-table-scroll table { min-width: 390px; display: table; }
    .cm-converter .cm-correction-table-scroll thead { display: table-header-group; position: static; clip-path: none; width: auto; height: auto; }
    .cm-converter .cm-correction-table-scroll tbody { display: table-row-group; }
    .cm-converter .cm-correction-table-scroll tr { display: table-row; }
}
.cm-correction-report { display: block; margin-top: 12px; }
.cm-converter .cm-correction-table-scroll + .cm-correction-secondary { margin-top: 12px; margin-right: 8px; }
@media (max-width: 600px) {
    .cm-converter .cm-correction-table-scroll :is(table, thead, tbody) { display: block; min-width: 0; width: auto; }
    .cm-converter .cm-correction-table-scroll thead tr { display: flex; padding: 0; gap: 0; justify-content: space-between; background: #edf3ff; }
    .cm-converter .cm-correction-editor .cm-correction-table-scroll th:last-child { display: none; }
    .cm-converter .cm-correction-table-scroll th { padding: 9px 8px; width: auto; }
    .cm-converter .cm-correction-table-scroll tbody tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 8px; padding: 10px 8px; }
    .cm-converter .cm-correction-table-scroll tbody td { padding: 0; border: 0; }
    .cm-converter .cm-correction-table-scroll td:nth-child(2) { grid-row: 2; grid-column: 1/-1; }
    .cm-converter .cm-correction-table-scroll td:nth-child(3) { grid-row: 1; grid-column: 2; }
    .cm-converter .cm-correction-table-scroll td:nth-child(4) { grid-row: 3; grid-column: 1/-1; }
    .cm-correction-row-actions { gap: 5px; }
}
@media (max-width: 600px) {
    .cm-converter .cm-correction-table-scroll thead th:nth-child(2) { width: auto; }
    .cm-converter .cm-correction-table-scroll thead :is(th,button) { white-space: nowrap; overflow-wrap: normal; }
    .cm-converter .cm-correction-editor .cm-correction-table-scroll thead th:nth-child(2) { flex: 1; }
}
.cm-converter .cm-correction-location-list { padding-inline-start: 1.25rem; }
.cm-converter .cm-correction-location-list li { margin-block: 1rem; }
.cm-converter .cm-correction-location-list p { margin-block: .2rem .4rem; }
.cm-converter [data-correction-diagnosis] > .cm-correction-document { margin-block: 1rem; }
.cm-converter [data-correction-diagnosis] details { margin-bottom: 1rem; }


.cm-converter .cm-correction-help-label { display: flex; align-items: center; gap: .25rem; }
.cm-converter .cm-correction-help-action { display: flex; align-items: center; gap: .35rem; min-width: 0; max-width: 100%; }
.cm-converter .cm-correction-help-primary { flex: 1 1 100%; }
.cm-converter .cm-correction-help-primary > .cm-converter-primary { flex: 1; width: auto; }
.cm-converter .cm-correction-help-toggle {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    inline-size: 32px;
    block-size: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #1545b2;
    cursor: pointer;
}
.cm-converter .cm-correction-help-toggle > span {
    display: grid;
    place-items: center;
    inline-size: 20px;
    block-size: 20px;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: #edf3ff;
    font-size: .8rem;
    font-weight: 800;
    line-height: 1;
}
.cm-converter .cm-correction-help-toggle[aria-expanded=true] > span { background: #dce8ff; }
.cm-converter .cm-correction-help-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.cm-converter .cm-correction-help-warning { color: #8e2924; }
.cm-converter .cm-correction-help-warning > span { background: #fff0ef; }
.cm-converter .cm-correction-help-warning[aria-expanded=true] > span { background: #ffe1de; }
.cm-converter .cm-correction-help-text {
    flex: 1 1 100%;
    margin: 0 0 8px;
    padding: 10px 12px;
    border: 1px solid var(--cm-line);
    border-radius: 8px;
    background: #f0f5ff;
    color: var(--cm-navy);
    font-size: .84rem;
    line-height: 1.5;
}
@media (max-width: 600px) {
    .cm-converter .cm-correction-help-toggle { inline-size: 40px; block-size: 40px; }
    .cm-correction-metrics dt { min-block-size: 40px; }
}


.cm-converter .cm-converter-format-caption {
    min-block-size: 32px;
    display: flex;
    align-items: center;
    gap: .25rem;
}
.cm-converter .cm-converter-format-caption label { margin: 0; }
@media (max-width: 600px) {
    .cm-converter .cm-converter-format-caption { min-block-size: 40px; }
}
.cm-converter .cm-converter-format-target { min-width: 0; }
.cm-converter .cm-converter-format-advice { grid-column: 1 / -1; margin: 0; }
.cm-converter .cm-converter-format-advice p { font-size: inherit; margin: 0; }
.cm-converter .cm-converter-format-advice p + p { margin-block-start: .45rem; }
