.workspace:has(#check-printing-root) { max-width: none; }
.check-printing .cp-layout { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(275px,1fr); gap:14px; align-items:start; }
.check-printing .cp-layout.cp-queue { grid-template-columns:minmax(230px,.8fr) minmax(0,1.35fr); }
.check-printing .cp-layout > *, .check-printing .cp-register { min-width:0; }
.check-printing .cp-heading, .check-printing .cp-actions { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:7px; }
.check-printing .cp-actions { justify-content:flex-start; }
.check-printing .cp-heading h2, .check-printing .cp-heading h3 { margin:0; }
.check-printing .cp-check { background:var(--surface-3,#eef7f8); border:1px solid var(--line-strong,#c1d0da); border-radius:6px; padding:clamp(10px,1.4vw,26px); }
.check-printing .cp-fields { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:8px 12px; }
.check-printing .cp-fields > label, .check-printing .cp-invoice > label { display:grid; gap:3px; min-width:0; }
.check-printing .cp-fields input, .check-printing .cp-fields select, .check-printing .cp-invoice input { width:100%; min-width:0; }
.check-printing .cp-full { grid-column:1/-1; }
.check-printing .cp-fields .cp-confirm { display:flex; align-items:center; gap:7px; }
.check-printing .cp-confirm input { width:auto; flex:none; }
.check-printing .cp-section { border-top:1px solid var(--line,#d9e5ec); margin:14px 0; padding-top:12px; }
.check-printing .cp-invoice { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.7fr) auto; gap:6px; align-items:end; }
.check-printing .cp-invoice input[type=number], .check-printing .cp-total { text-align:right; font-variant-numeric:tabular-nums; }
.check-printing .cp-message, .check-printing .cp-warning { color:#775000; }
.check-printing .cp-message:empty { margin:0 0 10px; }
.check-printing .cp-queue-row { width:100%; display:flex; justify-content:space-between; gap:7px; flex-wrap:wrap; margin:4px 0; text-align:left; white-space:normal; }
.check-printing .cp-queue-row small { flex-basis:100%; }
.check-printing .cp-queue-row[aria-pressed=true] { background:var(--accent-soft,#e7f8fa); }
.check-printing .cp-review { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:8px 14px; }
.check-printing .cp-review dd { margin:0; overflow-wrap:anywhere; }
.check-printing .cp-code { font-size:1.75rem; font-variant-numeric:tabular-nums; letter-spacing:.13em; }
.check-printing .cp-signature { display:block; width:min(220px,100%); height:auto; background:#fff; border:1px dashed #7e8c8d; }
.check-printing .cp-stack { display:grid; gap:12px; }
.check-printing .cp-payee { width:min(430px,calc(100% - 20px)); border:1px solid var(--line-strong,#c1d0da); border-radius:8px; }
@media(max-width:1120px) { .check-printing .cp-layout { grid-template-columns:minmax(0,1fr); } }
@media(max-width:740px) { .check-printing .cp-layout.cp-queue { grid-template-columns:minmax(0,1fr); } }
@media(max-width:465px) {
  .check-printing .cp-fields { grid-template-columns:minmax(0,1fr); }
  .check-printing .cp-invoice { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

.check-printing .cp-print-confirm { display:flex; align-items:center; gap:7px; margin:12px 0; }
.check-printing .cp-print-confirm input { flex:none; width:auto; }

.workspace:has(#check-printing-root) #viewTitle { display:none; }
.check-printing .cp-toolbar { padding:0 0 14px; border-bottom:1px solid var(--line,#d9e5ec); }
.check-printing .cp-toolbar h2 { font-size:24px; line-height:1.25; letter-spacing:-.02em; }
.check-printing .cp-check { border-radius:8px; }
.check-printing .cp-check .cp-heading { padding-bottom:11px; margin-bottom:10px; border-bottom:1px solid var(--line,#d9e5ec); }
.check-printing .cp-section h3, #check-enrollment-root h3, #check-approvers-root h3 { font-size:16px; }
.check-printing .cp-register table td:nth-child(3) { text-align:right; font-variant-numeric:tabular-nums; }
.check-printing .cp-register table th:nth-child(3) { text-align:right; }
.check-printing .cp-enroll-scan { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:10px; }
.check-printing .cp-enroll-scan img { width:min(240px,100%); height:auto; }
.check-printing form > label { margin-block:8px; }
.check-printing form > button { margin-top:8px; }
.check-printing .cp-queue-row { padding-block:9px; border-radius:6px; }
@media(max-width:465px) { .check-printing .cp-toolbar h2 { font-size:20px; } }

.check-printing .cp-record-note { display:block; margin-top:3px; overflow-wrap:anywhere; }

.check-printing [hidden], #check-enrollment-root[hidden] { display:none !important; }

.check-printing .mx-phone-fieldset { display:grid; gap:8px; margin:12px 0; padding:12px; min-width:0; border:1px solid var(--line,#d9e5ec); border-radius:6px; }
.check-printing .mx-phone-fieldset label { display:grid; gap:5px; }
.check-printing .mx-phone-fieldset button { justify-self:start; }
.check-printing .mx-phone-fieldset p { margin:0; overflow-wrap:anywhere; }

.check-printing.cp-security { padding:clamp(16px,2vw,32px); }
.cp-security h3, #check-enrollment-root.cp-security h3 { font-size:1.35rem; margin:0; }
.cp-security h4 { font-size:1.13rem; margin:1rem 0 .5rem; }
.cp-security p, .cp-security form { max-width:64ch; }
.cp-security form > label { display:grid; gap:.35rem; }
.cp-security input:not([type=checkbox]) { width:min(100%,24rem); }
.cp-security .cp-security-status { display:flex; flex-wrap:wrap; gap:.75rem 2.5rem; padding:.9rem 0; margin:.3rem 0; border-bottom:1px solid var(--line,#d9e5ec); }
.cp-security-status dt { color:var(--muted,#425466); font-size:.85rem; }
.cp-security-status dd { margin:.25rem 0 0; font-weight:600; }
.cp-security .cp-message:empty { display:none; }
.cp-security .cp-enroll-scan { align-items:center; gap:clamp(1rem,2vw,2rem); }
.cp-security .cp-enroll-scan img { width:min(100%,280px); aspect-ratio:1; border:1px solid var(--line,#d9e5ec); }
.cp-security .cp-enroll-scan > div { flex:1 1 17rem; max-width:40ch; }
.cp-security .cp-setup-link { display:inline-block; padding:.55rem 0; font-weight:600; }

/* Check workspace */
#check-printing-root {
  --cp-ink:#162e42;
  --cp-muted:#526778;
  --cp-line:#d5dfe5;
  --cp-teal:var(--accent-dark,#007d8a);
  color:var(--cp-ink);
  font-family:Inter,"Segoe UI",-apple-system,BlinkMacSystemFont,Arial,sans-serif;
  container-type:inline-size;
  min-width:0;
}
#check-printing-root :is(button,input,select,textarea) { font-family:inherit; }
#check-printing-root :is(input,select,textarea) { font-weight:500; }
#check-printing-root h2,#check-printing-root h3 { color:inherit; line-height:1.2; letter-spacing:-.025em; margin:0; }
#check-printing-root h2 { font-size:clamp(24px,2vw,32px); font-weight:680; }
#check-printing-root h3 { font-size:17px; font-weight:650; }
#check-printing-root button { font-size:14px; font-weight:600; }
#check-printing-root .panel { padding:clamp(16px,1.4vw,26px); border:1px solid var(--cp-line); border-radius:10px; box-shadow:0 2px 6px rgba(20,45,58,.04); }
.cp-work-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:2px 0 15px; }
.cp-work-header p,.cp-entry-title p { margin:4px 0 0; font-size:13px; color:var(--cp-muted); font-weight:450; }
#check-printing-root .cp-refresh { min-height:34px; padding:4px 14px; }
.cp-work-nav { display:flex; flex-wrap:wrap; gap:4px; padding:4px; border:1px solid var(--cp-line); border-radius:8px; background:#e9eff2; margin-bottom:16px; }
#check-printing-root .cp-work-nav button { background:transparent; border:1px solid transparent; box-shadow:none; color:#384f60; padding:8px 16px; min-height:36px; border-radius:5px; }
#check-printing-root .cp-work-nav button:hover { background:#f7fafb; color:var(--cp-ink); }
#check-printing-root .cp-work-nav button[aria-current=page] { background:#19374a; color:white; }
#check-printing-root .cp-pilot { margin:0 0 14px; padding:7px 12px; border-left:3px solid #c69850; background:#faf5eb; color:#694a22; font-size:13px; }
.cp-pilot strong { margin-right:.55em; }
#check-printing-root .cp-message { margin:0 0 12px; font-size:14px; font-weight:550; }
#check-printing-root .cp-message:empty,.cp-total:empty { display:none; }
.cp-entry-layout { display:grid; gap:16px; grid-template-columns:minmax(0,1.65fr) minmax(265px,1fr); grid-template-rows:auto 1fr; align-items:start; }
.cp-entry-layout>* { min-width:0; }
.cp-entry { grid-row:span 2; }
.cp-entry-title { padding:0 0 16px; }
#check-printing-root .cp-entry-title h3 { font-size:22px; }
#check-printing-root .cp-check { padding:0; border:0; background:transparent; }
#check-printing-root .cp-fields { grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:10px 16px; }
#check-printing-root label { font-size:13px; font-weight:600; line-height:1.45; color:#394f5e; }
#check-printing-root .cp-section { margin:16px 0 0; padding-top:14px; border-color:var(--cp-line); }
#check-printing-root .cp-section>h3,#check-printing-root .cp-section>.cp-heading { margin-bottom:10px; }
#check-printing-root .cp-heading button,#check-printing-root .cp-invoice button { min-height:32px; padding:4px 10px; }
#check-printing-root .cp-total { margin:10px 0 0; font-size:13px; }
#check-printing-root .cp-invoice+.cp-invoice { margin-top:7px; }
#check-printing-root .cp-confirm,#check-printing-root .cp-print-confirm { background:#f0f5f5; padding:9px 11px; border-radius:6px; margin:2px 0 0; font-weight:500; }
#check-printing-root .cp-manual-reason { display:grid; gap:4px; margin:12px 0 0; }
.cp-entry-footer { display:flex; justify-content:flex-end; padding-top:16px; }
#check-printing-root .cp-entry-footer button { background:var(--cp-teal); color:white; margin:0; }
#check-printing-root .cp-entry-footer button:disabled { opacity:.55; }
.cp-payment-summary { padding:20px 22px; border-radius:10px; background:#173548; color:white; }
#check-printing-root .cp-payment-summary h3 { color:#cce0e5; font-size:14px; font-weight:550; letter-spacing:0; }
.cp-summary-value { font-size:clamp(30px,2.8vw,46px); font-weight:600; letter-spacing:-.04em; line-height:1.15; margin:14px 0 4px; font-variant-numeric:tabular-nums; }
[data-summary-payee] { font-size:15px; overflow-wrap:anywhere; }
.cp-payment-summary dl { display:flex; gap:16px 32px; flex-wrap:wrap; margin:16px 0 0; padding:12px 0 0; border-top:1px solid #4c6776; }
.cp-payment-summary dt { color:#cce0e5; font-size:12px; }
.cp-payment-summary dd { margin:2px 0 0; font-size:14px; font-weight:600; }
#check-printing-root .cp-register { padding:0; overflow:hidden; }
.cp-register-heading { display:flex; align-items:baseline; justify-content:space-between; gap:7px; padding:18px; }
.cp-register-heading span,.cp-ledger-item small,.cp-empty { color:var(--cp-muted); font-size:12px; font-weight:500; }
.cp-ledger { overflow:auto; max-height:65vh; }
.cp-ledger-item { border-top:1px solid var(--cp-line); }
.cp-ledger-item summary { list-style:none; display:grid; grid-template-columns:max-content minmax(0,1fr) auto; align-items:baseline; gap:10px; padding:12px 16px; cursor:pointer; }
.cp-ledger-item summary::-webkit-details-marker { display:none; }
.cp-ledger-item summary:hover,.cp-ledger-item[open] summary { background:#edf5f5; }
.cp-ledger-item summary:focus-visible { outline:2px solid var(--cp-teal); outline-offset:-2px; }
.cp-ledger-no { font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; }
.cp-ledger-no::before { content:"›"; display:inline-block; margin-right:5px; }
.cp-ledger-item[open] .cp-ledger-no::before { transform:rotate(90deg); }
.cp-ledger-payee,.cp-ledger-value { display:grid; gap:2px; font-size:14px; overflow-wrap:anywhere; }
.cp-ledger-value { text-align:right; font-variant-numeric:tabular-nums; }
.cp-ledger-item .cp-review { margin:0; padding:10px 16px 16px; font-size:13px; }
.cp-review dt { font-weight:550; color:var(--cp-muted); }
.cp-review dd { font-variant-numeric:tabular-nums; }
.cp-gap,.cp-empty { display:grid; gap:2px; padding:12px 18px; margin:0; border-top:1px solid var(--cp-line); }
.cp-gap { font-size:13px; color:#795229; }
.cp-locked { max-width:700px; }
#check-printing-root .cp-queue-row[aria-pressed=true] { border-color:var(--cp-teal); }
@container (min-width:1680px) {
  .cp-entry-layout { grid-template-columns:minmax(560px,1.65fr) minmax(240px,.65fr) minmax(380px,1fr); grid-template-rows:auto; }
  .cp-entry { grid-row:auto; }
}
@container (max-width:850px) {
  .cp-entry-layout { grid-template-columns:minmax(0,1fr); grid-template-rows:auto; }
  .cp-entry { grid-row:auto; }
  #check-printing-root .cp-layout,#check-printing-root .cp-layout.cp-queue { grid-template-columns:minmax(0,1fr); }
}
@container (max-width:510px) {
  #check-printing-root .cp-fields,#check-printing-root .cp-invoice { grid-template-columns:minmax(0,1fr); }
  #check-printing-root .cp-work-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  #check-printing-root .cp-work-nav button { padding:6px; white-space:normal; }
  .cp-entry-footer button { width:100%; }
  .cp-review { grid-template-columns:minmax(80px,.65fr) minmax(0,1fr); }
}
#check-printing-root { padding-bottom:32px; }
.cp-saved-books { list-style:none; padding:0; margin:12px 0 0; }
.cp-saved-books li { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 14px; padding:9px 0; border-top:1px solid var(--cp-line); font-variant-numeric:tabular-nums; }
.cp-saved-books strong { overflow-wrap:anywhere; }
.cp-saved-books small { color:var(--cp-muted); margin-left:auto; }
.cp-save-status:empty { display:none; }
.cp-save-status { margin:8px 0 0; font-size:14px; }
#check-printing-root [data-photo-editor]:not([hidden]) { display:grid; gap:10px; }
#check-printing-root [data-photo-editor] summary { cursor:pointer; font-weight:600; }
.cp-photo { position:relative; width:fit-content; max-width:100%; cursor:crosshair; }
.cp-photo canvas { display:block; max-width:100%; max-height:310px; width:auto; height:auto; }
.cp-photo i { position:absolute; border:2px dashed #08787d; pointer-events:none; }
.cp-crop-edges { display:grid; grid-template-columns:repeat(auto-fit,minmax(72px,1fr)); gap:8px; margin:8px 0; }
.check-printing .cp-signature { width:auto; max-width:100%; max-height:140px; padding:6px; }
.cp-ink-preview { margin:10px 0; }
.cp-ink-preview figcaption { margin-bottom:5px; font-weight:600; }

#check-printing-root .cp-report {padding:0;overflow:hidden}
.cp-report-header,.cp-report-sub,.cp-report-filter,.cp-report-pager {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:18px 22px}
.cp-report-header {align-items:flex-start}
.cp-report-header p {margin:5px 0 0;color:var(--muted);font-size:13px}
.cp-report-header button,.cp-report-filter button,.cp-report-pager button,.cp-report-links button {margin:0}
.cp-report-sub {padding-block:12px;border-top:1px solid var(--cp-line)}
.cp-report-sub h4 {margin:0;font-size:16px}
.cp-overview-totals {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(138px,100%),1fr));gap:8px;margin:0 22px 20px}
#check-printing-root .cp-overview-totals button {display:grid;align-content:start;justify-items:start;margin:0;padding:12px 14px;text-align:left;background:var(--surface-2);border:1px solid var(--cp-line);box-shadow:none;line-height:1.35}
.cp-overview-totals button strong {font-size:25px;letter-spacing:-.04em}
.cp-overview-totals button small,.cp-history-row small,.cp-vendor-row small {color:var(--cp-muted);font-size:12px;font-weight:450}
.cp-history-head,.cp-history-row summary,.cp-vendor-head,#check-printing-root .cp-vendor-row {display:grid;grid-template-columns:minmax(78px,.7fr) minmax(140px,2fr) minmax(95px,1fr) minmax(150px,1.5fr);gap:12px;align-items:center;padding:11px 22px}
.cp-history-head,.cp-vendor-head {background:var(--surface-2);color:var(--cp-muted);font-size:12px;font-weight:650;border-block:1px solid var(--cp-line)}
.cp-history-row {border-bottom:1px solid var(--line)}
.cp-history-row summary {cursor:pointer;list-style:none;font-size:14px}
.cp-history-row summary::-webkit-details-marker {display:none}
.cp-history-row summary>strong:first-child::before {content:'›';margin-right:6px;color:var(--cp-muted)}
.cp-history-row[open] summary>strong:first-child::before {content:'⌄'}
.cp-history-row summary:hover,.cp-history-row[open] summary,#check-printing-root .cp-vendor-row:hover {background:var(--surface-3)}
.cp-history-row small,.cp-vendor-row small {display:block}
.cp-history-detail {padding:4px 22px 14px;max-width:1000px}
.cp-state {justify-self:start;display:inline-block;font-size:12px;font-weight:600;background:var(--surface-2);color:var(--cp-ink);border-radius:5px;padding:3px 8px}
.cp-state.approved {color:#195937;background:#e2f2e9}
.cp-state.waiting {color:#734d13;background:#fbf1dc}
.cp-report-filter {justify-content:flex-start;align-items:flex-end;padding-top:0}
.cp-report-filter label,.cp-vendor-search {margin:0}
.cp-report-filter input,.cp-report-filter select,#check-printing-root .cp-vendor-search input {margin:3px 0 0}
.cp-report-filter label:first-child {width:min(100%,310px)}
.cp-report-pager {justify-content:flex-end}
.cp-report-links {margin-top:14px}
.cp-vendor-search {display:block;max-width:350px;padding:0 22px 16px}
.cp-vendor-head,#check-printing-root .cp-vendor-row {grid-template-columns:minmax(145px,2fr) repeat(3,minmax(90px,1fr)) minmax(64px,.6fr)}
#check-printing-root .cp-vendor-row {width:100%;margin:0;background:var(--surface);color:var(--cp-ink);text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none}
.cp-history-row span,.cp-vendor-row span {min-width:0;overflow-wrap:anywhere}
.cp-vendor-count {display:flex;align-items:center;gap:8px}
.cp-vendor-count>span {color:var(--accent-dark)}
.cp-vendor-row .cp-narrow-label {display:none}
.cp-amount,.cp-overview-totals,.cp-vendor-row {font-variant-numeric:tabular-nums}
@container(max-width:650px){
  .cp-report-header,.cp-report-sub,.cp-report-filter,.cp-report-pager {padding-inline:14px}
  .cp-overview-totals {margin-inline:14px}
  .cp-history-head,.cp-vendor-head {display:none}
  .cp-history-row summary,#check-printing-root .cp-vendor-row {grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:5px 12px;padding:12px 14px}
  .cp-history-detail {padding-inline:14px}
  .cp-vendor-row .cp-narrow-label {display:block}
  .cp-vendor-count {display:block}
  .cp-report-filter label:first-child,.cp-report-filter label:nth-child(2) {width:100%}
}

.check-printing .cp-directory-row,.check-printing .cp-directory-tools,.check-printing .cp-directory-approval {display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.check-printing .cp-directory-row {display:grid;grid-template-columns:minmax(12rem,1fr) minmax(10rem,.6fr) minmax(16rem,1.2fr);padding:.75rem 0;border-top:1px solid #dce4ea}
.check-printing .cp-directory-row label,.check-printing .cp-directory-tools label,.check-printing .cp-directory-row form {display:flex;align-items:center;gap:.6rem;margin:0}
.check-printing .cp-directory-row small {display:block;color:#4b6171}
.check-printing .cp-directory-row input[type=checkbox],.check-printing .cp-directory-tools input[type=checkbox] {width:auto}
.check-printing .cp-directory-row button {white-space:nowrap}
.check-printing .cp-directory-tools,.check-printing .cp-directory-approval {padding:.75rem 0}
.check-printing .cp-directory-approval[hidden]{display:none}
@media(max-width:780px){.check-printing .cp-directory-row{grid-template-columns:1fr}.check-printing .cp-directory-row form input{min-width:0}}
