/* Solucionnes: paper-like forms, ink-blue structure, cyan interaction accents.
   Color is operational information, never a substitute for the written status. */
.collection-workspace{--ink:#123257;--paper:#f7fbff;--accent:#245bff;--cyan:#1ac9e8;--muted:#546b84;max-width:1040px;margin:auto;color:var(--ink);font-family:inherit}
.collection-topline{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:16px;margin-bottom:22px}.collection-pagination{display:flex;align-items:center;justify-content:center;gap:9px;margin:0}.collection-pagination strong{min-width:54px;text-align:center;color:var(--muted);font-size:13px}.collection-pagination .btn{min-height:40px}.collection-route-name{font-weight:650;text-align:right}.collection-credit{background:#fff;border:1px solid #d3e1ef;border-radius:26px;overflow:hidden;box-shadow:0 14px 45px #193f6b0d}
.collection-credit>header{padding:30px 32px 20px;display:flex;justify-content:space-between;gap:20px;align-items:start;border-top:5px solid var(--cyan)}
.collection-credit h1{font-size:clamp(25px,4vw,36px);line-height:1.12;letter-spacing:-1px;margin:8px 0;color:var(--ink)}
.collection-credit p{color:var(--muted);line-height:1.6}.collection-eyebrow{font-size:14px;color:#496d8f}.collection-credit>header .actions{flex-wrap:wrap;justify-content:flex-end}
.collection-name-row,.owner-loan-name-row{display:flex;align-items:center;gap:8px;min-width:0}.collection-name-row h1{flex:1;min-width:0;margin-right:2px}.collection-edit-all,.owner-loan-edit{display:inline-grid;place-items:center;flex:0 0 36px;width:36px;height:36px;padding:8px;border:1px solid #b9cfe3;border-radius:9px;background:#fff;color:#245bff;cursor:pointer}.collection-edit-all svg,.owner-loan-edit svg{width:18px;height:18px}.collection-edit-all:hover,.owner-loan-edit:hover{background:#eaf3ff;border-color:#75a4ef}
.collection-client-nav{display:flex;align-items:center;gap:5px;margin-left:auto}.collection-client-nav button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #075fe4;border-radius:8px;background:#075fe4;color:#fff;cursor:pointer}.collection-client-nav button svg{width:17px;height:17px}.collection-client-nav button:hover{background:#034fc4;border-color:#034fc4}.collection-client-nav button:focus-visible{outline:3px solid #1ac9e866;outline-offset:2px}.collection-client-nav button:disabled{background:#e4ebf4;border-color:#d5dfeb;color:#9aabc0}
.collection-contacts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:0 32px 20px}.collection-contacts .btn{min-width:0;text-align:left;white-space:normal;justify-content:center}.collection-contacts .btn span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collection-reference{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:7px 11px;border:1px solid #d6e2ef;border-radius:12px;background:#f7fbff;color:#385979;font-size:12px;line-height:1.35;overflow-wrap:anywhere}.collection-reference svg{width:16px;height:16px;flex:0 0 16px;color:#245bff}
.collection-summary,.collection-terms{margin:0;padding:24px 32px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px;background:var(--paper);border-block:1px solid #dce8f3}
.collection-summary dt,.collection-terms dt{font-size:13px;color:#506a83;margin-bottom:7px}.collection-summary dd,.collection-terms dd{margin:0;color:var(--ink);font-size:19px;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.collection-summary>div:first-child dd{font-size:26px;color:#1955cc}
.collection-payment{padding:30px 32px}.collection-form-title{display:flex;gap:12px;align-items:baseline;justify-content:space-between;margin-bottom:22px}.collection-form-title h2{font-size:24px;margin:0;color:var(--ink)}.collection-form-title>span{font-size:12px;color:var(--muted)}
.collection-entry{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;align-items:center;margin-bottom:20px}.collection-workspace .field{display:flex;flex-direction:column;gap:8px;color:var(--ink);font-size:14px}
.workspace-ui .collection-workspace input,.workspace-ui .collection-workspace select{background:#f7fbff;color:#123257;border:1px solid #b9cfe3;border-radius:12px;padding:14px;font-size:17px;min-height:50px;width:100%}.collection-workspace input:focus,.collection-workspace select:focus{outline:3px solid #1ac9e83d;outline-offset:2px;border-color:#245bff}
.collection-preferences{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px}.collection-workspace .collection-toggle{display:flex;align-items:flex-start;gap:11px;padding:14px;border:1px solid #c9dcef;border-radius:14px;background:#f7fbff;color:var(--ink);cursor:pointer}.collection-workspace .collection-toggle input{width:20px;min-height:20px;accent-color:#245bff;flex:0 0 auto;margin-top:2px}.collection-toggle span{display:grid;gap:3px}.collection-toggle strong{font-size:14px}.collection-toggle small{color:var(--muted);font-size:11px;line-height:1.45}.collection-receipt-toggle:has(input:checked){background:#eaf3ff;border-color:#4e7eff;box-shadow:inset 0 0 0 1px #4e7eff}.collection-hint{font-size:12px;color:var(--muted)}
.collection-calculated span{display:block;font-size:13px;color:var(--muted)}.collection-calculated strong{display:block;font-size:22px;color:#146445;font-variant-numeric:tabular-nums;margin-top:10px}
.collection-submit,.collection-admin{display:flex;gap:12px;justify-content:flex-end;padding-top:12px}.collection-submit .btn{min-height:50px}.collection-admin{padding:20px 32px}.collection-terms{background:#fff;grid-template-columns:repeat(2,minmax(0,1fr))}.collection-terms dd{font-size:16px}
.collection-history{display:grid;gap:16px;margin-top:22px}.collection-history article{padding:20px;border:1px solid #d2e0ed;border-radius:15px;background:#fff}.collection-history header{display:flex;justify-content:space-between;gap:12px}.collection-history p{font-size:14px}.collection-history details{margin-left:auto;position:relative}.collection-history summary{cursor:pointer;padding:8px 14px;background:#eaf3ff;border-radius:10px}.collection-history details[open]{display:flex;flex-direction:column}.collection-history details button{display:block;margin-top:8px}
.workspace-ui .owner-loan-card .collection-contacts{padding:0 18px 18px;gap:6px}.workspace-ui .owner-loan-card .collection-contacts .btn{font-size:12px;min-height:36px;background:#fff}
.workspace-ui .owner-loan-name-row{padding:18px 66px 0 22px}.workspace-ui .owner-loan-name-row>button:first-child{min-width:0;border:0;background:transparent;color:#123257;padding:0;text-align:left;font:inherit;cursor:pointer}.workspace-ui .owner-loan-name-row strong{font-size:18px;line-height:1.35;overflow-wrap:anywhere}.workspace-ui .owner-loan-edit{flex-basis:32px;width:32px;height:32px;padding:6px}.workspace-ui .owner-loan-card .owner-loan-open{min-height:112px;padding-top:8px}.workspace-ui .owner-loan-card .owner-loan-person{padding-top:0}.workspace-ui .owner-loan-card .collection-reference{max-width:100%}
.workspace-ui .owner-loan-card .owner-loan-open{display:block;min-height:0;padding:8px 22px 20px}
.workspace-ui .owner-loan-card .owner-loan-person{display:grid;gap:5px;padding:0;color:#4c6580;font-size:12px;line-height:1.4}
.workspace-ui .owner-loan-direct{display:grid;gap:4px;padding:7px 22px 0}
.workspace-ui .owner-loan-direct a,.workspace-ui .owner-loan-direct button,.workspace-ui .owner-loan-direct>span{display:flex;align-items:center;gap:7px;width:max-content;max-width:100%;padding:2px 0;border:0;background:transparent;color:#245bff;text-decoration:none;font:inherit;font-size:12px;text-align:left;cursor:pointer}
.workspace-ui .owner-loan-direct svg{width:15px;height:15px;flex:0 0 15px}
.workspace-ui .owner-loan-direct span{overflow-wrap:anywhere}
.workspace-ui .owner-loan-card>p.owner-loan-reference{margin:5px 22px 0;color:#526b83;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.workspace-ui .owner-loan-card{border-left-color:#075fe4!important}
.workspace-ui .owner-loan-card .owner-loan-period{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:4px;font-size:13px;font-weight:750}
.workspace-ui .owner-loan-card[data-arrears=green] .owner-loan-period>span{color:#16835c}
.workspace-ui .owner-loan-card[data-arrears=yellow] .owner-loan-period>span,.workspace-ui .owner-loan-card[data-arrears=orange] .owner-loan-period>span,.workspace-ui .owner-loan-card[data-arrears=unknown] .owner-loan-period>span{color:#a77c00}
.workspace-ui .owner-loan-card[data-arrears=red] .owner-loan-period>span{color:#c8324d}
.workspace-ui .owner-loan-card .owner-loan-period b{font-weight:750;color:#075fe4}
.workspace-ui .owner-loan-card .owner-loan-balance{width:100%;min-width:0;padding:14px 24px 0 0;background:transparent;color:#123257;justify-content:flex-start}
.workspace-ui .owner-loan-card .owner-loan-balance>strong{font-size:25px;font-weight:750}
.workspace-ui .owner-loan-card .owner-loan-chevron{right:0;bottom:2px;color:#245bff}
.workspace-ui .collection-workspace{max-width:820px}.workspace-ui .collection-topline{margin-bottom:12px}.workspace-ui .collection-credit>header{padding:18px 22px 12px}.workspace-ui .collection-credit h1{font-size:26px;margin:4px 0}.workspace-ui .collection-credit>header p{margin:4px 0}.workspace-ui .collection-credit>.collection-contacts{padding:0 22px 12px}.workspace-ui .collection-summary,.workspace-ui .collection-terms{padding:17px 22px;gap:16px}.workspace-ui .collection-payment{padding:20px 22px}.workspace-ui .collection-form-title{margin-bottom:14px}.workspace-ui .collection-entry{gap:12px;margin-bottom:14px}.workspace-ui .collection-preferences{margin-top:14px}.workspace-ui .collection-admin{padding:14px 22px}
.workspace-ui .owner-card-drag{position:absolute;z-index:6;right:8px;top:8px;display:grid;place-items:center;width:34px;height:34px;padding:7px;border:1px solid #b8d5f2;border-radius:50%;background:#fff;color:#245bff;box-shadow:0 4px 14px #082b5730;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}.workspace-ui .owner-card-drag svg{width:20px;height:20px;stroke-width:1.85}.workspace-ui .owner-card-drag:active{cursor:grabbing}.workspace-ui .owner-card-drag:focus-visible{outline:3px solid #19c7e8;outline-offset:2px}.workspace-ui .owner-loan-grid.is-reordering{cursor:grabbing}.workspace-ui .owner-loan-card{transition:box-shadow .18s ease,transform .18s ease,opacity .18s ease}.workspace-ui .owner-loan-card.is-grabbed{z-index:7;transform:scale(1.025) rotate(.35deg);box-shadow:0 24px 55px #082b5738;opacity:.94}.workspace-ui .owner-loan-card.is-grabbed .owner-card-drag{background:#245bff;color:#fff;border-color:#245bff;transform:scale(1.08)}.workspace-ui .owner-loan-grid.is-reordering .owner-loan-card:not(.is-grabbed){transition:transform .18s ease}
.workspace-ui .arrears-tag{display:inline-block;padding:4px 9px;border-radius:7px;font-size:12px;line-height:1.5}.workspace-ui .arrears-green{background:#ddf4e9;color:#11643f}.workspace-ui .arrears-yellow,.workspace-ui .arrears-orange,.workspace-ui .arrears-unknown{background:#fff3bd;color:#715500}.workspace-ui .arrears-red{background:#ffe3e8;color:#a0253d}
/* The ID scope deliberately overrides the older dark-dialog sheet. */
#modal-root .modal{background:#f7fbff;color:#123257;border:1px solid #c6d9ed;border-radius:26px;box-shadow:0 30px 100px #071e4c40}
#modal-root .modal-head{background:#edf6ff;border-color:#c9dff2;padding:25px 28px}#modal-root .modal-head h2{color:#123257}#modal-root .modal-head .icon-btn{background:#fff;color:#285d99;border-color:#b8cee6}
#modal-root .modal-body{background:#f7fbff;color:#173556}#modal-root .modal-foot{background:#edf4fc;border-color:#c9dff2}#modal-root .modal .field,#modal-root .modal .field label{color:#21466d}
#modal-root .modal .field input,#modal-root .modal .field select,#modal-root .modal .field textarea{background:#fff;color:#14345a;border:1px solid #b9d0e7;border-radius:12px;min-height:47px;font-size:16px}#modal-root .modal .field input[type=checkbox]{min-height:18px}
#modal-root .modal .field small,#modal-root .modal .note,#modal-root .modal .form-heading{color:#456482}#modal-root .modal .note{background:#eaf4ff;border-color:#b7d8f3}#modal-root .modal .form-preview{background:#e9f6fc;color:#164564;border-color:#a4d8e8}
#modal-root .modal .btn{color:#184879;background:#fff;border-color:#bad1e8}#modal-root .modal .btn.primary{color:#fff;background:#245bff;border-color:#245bff}#modal-root .modal .field input:focus,#modal-root .modal .field select:focus,#modal-root .modal .field textarea:focus{outline:3px solid #1ac9e83d;outline-offset:2px}
/* Operational header: currency preferences stay visible instead of being buried in the drawer. */
.workspace-ui .office-shell .office-header{grid-template-columns:230px minmax(100px,1fr) 180px 48px}.workspace-ui .office-header .home-brand{grid-column:1}.workspace-ui .office-header-title{grid-column:2}.workspace-ui .workspace-identity{grid-column:3}.workspace-ui .office-header .owner-menu-button{grid-column:4}
@media(max-width:1100px){.workspace-ui .office-shell .office-header{grid-template-columns:220px minmax(100px,1fr) auto 48px}.workspace-ui .office-header .owner-menu-button{grid-column:4}}
@media(max-width:760px){.collection-credit{border-radius:20px}.collection-credit>header{padding:16px 16px 10px;display:block}.collection-credit>header .actions{justify-content:flex-start;margin-top:10px}.collection-contacts{padding:0 16px 10px}.collection-summary{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;gap:16px 10px}.collection-summary dd{font-size:17px}.collection-summary>div:first-child dd{font-size:22px}.collection-payment{padding:18px 16px}.collection-entry{grid-template-columns:1fr 1fr}.collection-calculated{grid-column:1/-1}.collection-form-title{display:block}.collection-form-title>span{display:block;margin-top:5px}.collection-preferences{grid-template-columns:1fr}.collection-terms{padding:16px;gap:15px}.collection-submit .btn{padding:12px;font-size:13px}.collection-history header{flex-direction:column}.collection-topline{grid-template-columns:auto 1fr;align-items:center}.collection-back{grid-column:1}.collection-route-name{grid-column:2;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collection-pagination .btn{font-size:12px}.workspace-ui .office-shell .office-header{grid-template-columns:145px minmax(0,1fr) 40px}.workspace-ui .office-header .owner-menu-button{grid-column:3}.workspace-ui .owner-card-drag{width:36px;height:36px;padding:7px}#modal-root .modal{border-radius:22px}#modal-root .modal-head{padding:20px}}
@media(max-width:370px){.workspace-ui .office-shell .office-header{grid-template-columns:1fr 40px}.workspace-ui .office-header-title{display:none}.workspace-ui .office-header .owner-menu-button{grid-column:2}}
/* Compact payment capture: controls stay readable without turning the form into a tall stack. */
.workspace-ui .collection-payment{padding:14px 16px}
.workspace-ui .collection-form-title{margin-bottom:10px}.workspace-ui .collection-form-title h2{font-size:21px}.workspace-ui .collection-form-title>span{display:none!important}
.workspace-ui .collection-entry{gap:8px 10px;margin-bottom:9px}.workspace-ui .collection-workspace .field{gap:4px;font-size:13px}
.workspace-ui .collection-workspace input,.workspace-ui .collection-workspace select{min-height:42px;padding:9px 11px;border-radius:9px;font-size:16px}
.workspace-ui .collection-calculated{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:34px;padding:2px 0}.workspace-ui .collection-calculated strong{font-size:19px;margin:0}.workspace-ui .collection-calculated span{font-size:12px}
.workspace-ui .collection-preferences{display:flex;align-items:center;gap:10px;margin-top:9px}.workspace-ui .collection-workspace .collection-toggle{flex:1;align-items:center;min-height:36px;padding:5px 2px;border:0;border-radius:0;background:transparent}.workspace-ui .collection-workspace .collection-toggle input{width:18px;min-height:18px;margin:0}.workspace-ui .collection-toggle strong{font-size:12px;line-height:1.3}.workspace-ui .collection-toggle small{display:none}.workspace-ui .collection-receipt-toggle:has(input:checked){background:transparent;border-color:transparent;box-shadow:none}
.workspace-ui .collection-submit{padding-top:7px;gap:8px}.workspace-ui .collection-submit .btn{min-height:42px;padding:8px 11px}
@media(max-width:430px){.workspace-ui .collection-payment{padding:12px}.workspace-ui .collection-entry{gap:8px}.workspace-ui .collection-preferences{align-items:flex-start}.workspace-ui .collection-workspace .collection-toggle{align-items:flex-start}.workspace-ui .collection-toggle strong{font-size:11px}}
.collection-history-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 10px;margin-bottom:10px}.collection-history-heading strong{font-size:16px}.collection-history-heading span{font-size:12px;color:#526884}.collection-history-heading .btn{grid-column:2;grid-row:1/3;min-height:34px;padding:6px 11px}
.collection-history{gap:7px;margin-top:0}.collection-history .collection-history-item{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:11px 13px;border:0;border-radius:8px;background:#edf0f3;box-shadow:none}.collection-history-item>div{display:grid;gap:4px}.collection-history-item header{display:flex;align-items:center;justify-content:space-between;gap:14px}.collection-history-item header strong,.collection-history-item header b{font-size:14px}.collection-history-item span,.collection-history-item time{font-size:12px;color:#657181}.collection-history-item span b{float:right;color:#455267;font-weight:500}.collection-history-item details{margin:0;position:relative}.collection-history-item summary{display:grid;place-items:center;width:34px;height:32px;padding:0;border:0;background:transparent;color:#176c9d;list-style:none;font-weight:700}.collection-history-item summary::-webkit-details-marker{display:none}.collection-history-menu{position:absolute;right:0;bottom:37px;z-index:4;width:180px;padding:5px;background:#fff;border:1px solid #cbd8e6;border-radius:8px;box-shadow:0 8px 22px #102b5628}.collection-history-menu button,.collection-history-menu a{display:block;width:100%;min-height:34px;padding:8px;border:0;background:#fff;color:#173d66;text-align:left;text-decoration:none;font:inherit;font-size:12px}.collection-history-menu button:hover,.collection-history-menu a:hover{background:#eef5ff}.collection-history-item.is-voided{opacity:.65}.collection-disbursement{grid-template-columns:1fr!important}

/* Compact collection sheet: one information plane, one payment action. */
.workspace-ui .collection-workspace{max-width:620px}
.workspace-ui .collection-topline{grid-template-columns:auto 1fr;gap:8px;margin-bottom:10px}
.workspace-ui .collection-route-name{grid-column:2;grid-row:1;text-align:right;font-size:12px}
.workspace-ui .collection-pagination-top{grid-column:1/-1;grid-row:2;width:100%;min-height:42px;padding:4px;border:1px solid #c9d8e8;border-radius:9px;background:#fff}
.workspace-ui .collection-pagination-top .btn{min-height:34px;padding:5px 10px;border:0;background:transparent}
.workspace-ui .collection-credit{border-radius:8px;border-color:#d6e0eb;box-shadow:none;overflow:hidden}
.workspace-ui .collection-credit>header{align-items:center;padding:14px 16px 10px;border-top:0;background:#fff}
.workspace-ui .collection-eyebrow{font-size:11px;color:#6c7f94}
.workspace-ui .collection-credit h1{font-size:22px;line-height:1.2;letter-spacing:-.35px;margin:3px 0}
.workspace-ui .collection-credit>header p{display:flex;align-items:center;gap:7px;margin:2px 0;font-size:12px}
.workspace-ui .collection-credit>header .actions .btn{width:38px;height:38px;min-height:38px;padding:0;font-size:0;border:0;border-radius:50%;background:#eaf3ff;color:#145ed2}
.workspace-ui .collection-credit>header .actions .btn svg{width:20px;height:20px;margin:0}
.workspace-ui .collection-credit>.collection-contacts{display:flex;gap:2px;padding:0 10px 9px;border-bottom:1px solid #dce4ed}
.workspace-ui .collection-credit>.collection-contacts .btn{flex:1;justify-content:center;min-height:38px;padding:7px 8px;border:0;border-radius:6px;background:#f5f8fc;color:#174e8c;font-size:12px}
.workspace-ui .collection-credit>.collection-contacts .collection-reference{display:none}
.workspace-ui .collection-facts-panel{background:#fff;border-bottom:1px solid #dce4ed}.workspace-ui .collection-facts-toggle{display:flex;align-items:center;width:100%;min-height:42px;padding:9px 16px;border:0;border-bottom:1px solid #e8edf3;background:#f7faff;color:#174e8c;font:inherit;font-size:12px;font-weight:700;cursor:pointer;text-align:left}.workspace-ui .collection-facts-toggle>span:first-child{color:#173a63}.workspace-ui .collection-facts-toggle [data-collection-facts-label]{margin-left:auto;font-weight:600}.workspace-ui .collection-facts-toggle svg{width:16px;height:16px;margin-left:7px;transition:transform .2s;transform:rotate(90deg)}.workspace-ui .collection-facts-panel[data-collapsed=true] .collection-facts-toggle svg{transform:rotate(0)}.workspace-ui .collection-facts-panel[data-collapsed=true] .collection-facts>div:not([data-fact-essential]){display:none}
.workspace-ui .collection-facts{margin:0;padding:4px 16px 8px;background:#fff}
.workspace-ui .collection-facts>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,auto);gap:12px;align-items:center;min-height:37px;border-bottom:1px solid #e8edf3}
.workspace-ui .collection-facts>div:last-child{border-bottom:0}
.workspace-ui .collection-facts dt{color:#718093;font-size:13px}
.workspace-ui .collection-facts dd{margin:0;color:#17283d;font-size:14px;font-weight:600;text-align:right;overflow-wrap:anywhere}
.workspace-ui .collection-facts>div:nth-child(6) dd{color:#075fe4;font-size:18px;font-weight:800}
.workspace-ui .collection-facts-panel[data-collapsed=true] .collection-facts{display:flex;gap:0;padding-block:12px}
.workspace-ui .collection-facts-panel[data-collapsed=true] .collection-facts>div[data-fact-essential]{display:flex;flex:1;min-width:0;flex-direction:column;align-items:center;gap:5px;padding-inline:8px;border-bottom:0;text-align:center}
.workspace-ui .collection-facts-panel[data-collapsed=true] .collection-facts>div:nth-child(7){order:-1}
.workspace-ui .collection-facts-panel[data-collapsed=true] .collection-facts>div:nth-child(6){border-left:1px solid #e8edf3}
.workspace-ui .collection-facts-panel[data-collapsed=true] .collection-facts>div[data-fact-essential] dd{max-width:100%;font-size:26px;font-weight:800;line-height:1.15;font-variant-numeric:tabular-nums;text-align:center}
.workspace-ui .collection-facts[data-state=green]>div:nth-child(11) dd{color:#16835c}.workspace-ui .collection-facts[data-state=yellow]>div:nth-child(11) dd{color:#a77c00}.workspace-ui .collection-facts[data-state=red]>div:nth-child(11) dd{color:#c8324d}
.workspace-ui .collection-payment{margin:10px 0 0;padding:18px 18px 20px;border-top:4px solid #075fe4;background:#fff}
.workspace-ui .collection-form-title{margin-bottom:16px}
.workspace-ui .collection-form-title h2{font-size:22px;line-height:1.2}
.workspace-ui .collection-entry{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 12px;margin-bottom:10px;align-items:end}
.workspace-ui .collection-calculated{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;align-items:stretch;min-height:64px;padding:0;background:#fff;border:1px solid #c9d9e8;border-left:4px solid #16835c;border-radius:12px;overflow:hidden}
.workspace-ui .collection-calculated-value{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:10px 14px;border-right:1px solid #d8e3ee}
.workspace-ui .collection-calculated-value span{margin:0;font-size:13px;line-height:1.25}
.workspace-ui .collection-calculated-value strong{flex:0 0 auto;margin:0;padding:5px 11px;border-radius:9px;background:#dff4e9;color:#075c38;font-size:clamp(26px,5vw,32px);font-weight:800;line-height:1.1;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.workspace-ui .collection-pay-inline{min-height:64px;border:0;border-radius:0 11px 11px 0;box-shadow:none;font-size:16px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.workspace-ui .collection-workspace .field{gap:7px;font-size:13px;font-weight:600}
.workspace-ui .collection-workspace input,.workspace-ui .collection-workspace select{min-width:0;min-height:56px;padding:11px 14px;border-radius:10px;font-size:clamp(21px,4vw,25px);font-weight:700;font-variant-numeric:tabular-nums}
.workspace-ui .collection-entry input{appearance:textfield;-webkit-appearance:none}
.workspace-ui .collection-entry input::-webkit-inner-spin-button,.workspace-ui .collection-entry input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.workspace-ui .collection-workspace input.is-mismatch{border-color:#d83952;background:#fff5f6;box-shadow:0 0 0 2px #d839521a}
.workspace-ui .collection-preferences{display:flex;gap:0;margin-top:10px;border-block:1px solid #e3eaf2}
.workspace-ui .collection-workspace .collection-toggle{flex:1;min-width:0;align-items:center;padding:9px 7px;border:0;border-radius:0;background:#fff}
.workspace-ui .collection-location-required{display:flex;align-items:center;gap:7px;flex:1;min-width:0;padding:9px 7px;color:#176044}
.workspace-ui .collection-location-required>svg{width:18px;height:18px;flex:0 0 18px}
.workspace-ui .collection-location-required>span{display:grid;gap:2px}
.workspace-ui .collection-location-required strong{font-size:11px;line-height:1.3}
.workspace-ui .collection-location-required small{font-size:10px;color:#60766c}
.workspace-ui .collection-toggle strong{font-size:11px;line-height:1.3}
.workspace-ui .collection-toggle small{display:none}
.workspace-ui .collection-submit{display:grid;grid-template-columns:1fr;gap:8px;padding-top:10px}
.workspace-ui .collection-submit .btn{min-height:43px;border-radius:6px}
.workspace-ui .collection-submit .btn.primary{letter-spacing:.08em;text-transform:uppercase}
.workspace-ui .collection-admin{justify-content:flex-start;gap:7px;padding:10px 16px;border-top:1px solid #e1e8f0;background:#f8fafc}
.workspace-ui .collection-admin .btn{min-height:34px;padding:6px 9px;font-size:11px}
@media(max-width:430px){.workspace-ui .collection-credit>header{padding-inline:12px}.workspace-ui .collection-facts{padding-inline:12px}.workspace-ui .collection-payment{padding:13px 12px 14px}.workspace-ui .collection-form-title{margin-bottom:11px}.workspace-ui .collection-form-title h2{font-size:19px}.workspace-ui .collection-facts>div{min-height:34px}.workspace-ui .collection-entry{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 8px;margin-bottom:6px}.workspace-ui .collection-entry .field{min-width:0;gap:5px;font-size:11px}.workspace-ui .collection-entry .field input{min-width:0;min-height:50px;padding:8px 10px;font-size:21px}.workspace-ui .collection-calculated{grid-column:1/-1;min-height:56px}.workspace-ui .collection-calculated-value{padding:7px 9px}.workspace-ui .collection-calculated-value span{font-size:11px}.workspace-ui .collection-calculated-value strong{font-size:25px;padding:4px 8px}.workspace-ui .collection-pay-inline{min-height:56px;padding:7px 9px;font-size:13px}}
@media(max-width:760px){.workspace-ui .office-shell[data-owner-view="card"] .owner-content{padding-bottom:12px}}

/* The client name owns its row; tools never compete with it on small screens. */
.collection-credit>header>div{width:100%;min-width:0}
.collection-name-row h1{overflow-wrap:anywhere;white-space:normal}
.collection-credit-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}
.collection-credit-tools .collection-edit-all{flex:0 0 40px;width:40px;height:40px}
.collection-credit-tools .collection-quota-date{min-height:40px;white-space:normal}
.collection-credit-tools .collection-client-nav{flex:0 0 auto;margin-left:auto}
.collection-credit-tools .collection-client-nav button{width:40px;height:40px}
.collection-credit-tools .collection-delete-client{margin-left:20px;color:#d72a36;border-color:#f1b2b8;background:#fff5f5}
.collection-credit-tools .collection-delete-client:hover{background:#ffe4e7;border-color:#d72a36}
