.tochka-page{display:grid;gap:20px;max-width:1400px;margin:auto;min-width:0}.tochka-page .panel{margin-bottom:16px}.tochka-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;align-items:start}.tochka-form{display:grid;gap:16px}.tochka-form h2{margin:0}.tochka-check{display:flex;align-items:center;gap:12px;min-height:44px;cursor:pointer}.tochka-check input{flex:0 0 20px;width:20px;height:20px}.tochka-copy{display:flex;gap:12px;align-items:center}.tochka-copy input{min-width:0}.tochka-number{font-size:28px;line-height:1.4;font-variant-numeric:tabular-nums}.tochka-toolbar{display:flex;align-items:end;gap:16px;flex-wrap:wrap}.tochka-toolbar .form-text{flex-basis:100%;margin:0}.tochka-tabs{display:flex;flex-wrap:wrap;gap:8px}.tochka-page .btn{min-height:44px}.tochka-operation-head{display:flex;justify-content:space-between;gap:16px}.tochka-operation p{margin:8px 0 12px}.tochka-in{color:#187659}.tochka-out{color:#374151}.tochka-detail{border:2px solid #287c70}.tochka-detail>.btn{margin:8px 12px 0 0}.tochka-pager{display:flex;align-items:center;justify-content:space-between;gap:12px}.tochka-page [hidden]{display:none!important}.tochka-page input,.tochka-page select{max-width:100%}.tochka-page .long-text{overflow-wrap:anywhere}@media(max-width:600px){.tochka-copy,.tochka-operation-head{flex-direction:column;align-items:stretch}.tochka-toolbar{display:grid;grid-template-columns:1fr 1fr}.tochka-toolbar>.btn,.tochka-toolbar>.form-text{grid-column:1/-1}.tochka-tabs .btn{flex:1 1 45%}.tochka-number{font-size:24px}}
.tochka-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;list-style:none;padding:0;margin:12px 0 20px}.tochka-step{display:flex;align-items:flex-start;gap:12px;min-width:0}.tochka-step-mark{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:50%;background:#edf0f3;color:#5e6c7a;font-weight:700}.tochka-step.is-complete .tochka-step-mark{background:#e2f2ec;color:#1d6958}.tochka-step p{margin:6px 0 0;color:#607180;font-size:14px;line-height:1.5}.tochka-registration{padding:16px;background:#f7f9fb;border:1px solid #dce4eb;border-radius:12px;min-width:0}.tochka-registration h3{font-size:16px;margin:0 0 8px}.tochka-registration .form-text{margin:0 0 12px}.tochka-copy>.btn{flex:0 0 auto;white-space:normal}.tochka-actions{display:flex;flex-wrap:wrap;gap:12px}.tochka-advanced{padding-top:16px;border-top:1px solid #dce4eb;min-width:0}.tochka-advanced>summary{cursor:pointer;min-height:44px;font-weight:600;display:list-item;list-style-position:inside}.tochka-advanced[open]>.tochka-form{margin-top:12px}.tochka-progress{margin:0;color:#226d62;line-height:1.6}.tochka-progress:empty{display:none}.tochka-connect-note{margin:0}.tochka-conflict{border:2px solid #e0b670}.tochka-conflict-url{padding:12px;background:#f7f9fb;border-radius:8px;font-size:14px}.tochka-bank-link{font-weight:600}.tochka-form[aria-busy=true]{cursor:progress}.tochka-page .field-group,.tochka-page .tochka-form{min-width:0}.tochka-page .tochka-check{align-items:flex-start;line-height:1.6}.tochka-page .tochka-check input{margin-top:3px}.tochka-page .panel h2,.tochka-page .panel h3{overflow-wrap:anywhere}@media(max-width:700px){.tochka-copy{flex-direction:column;align-items:stretch}.tochka-steps{grid-template-columns:1fr;gap:16px}.tochka-actions{display:grid;grid-template-columns:1fr}.tochka-actions>.btn{width:100%}.tochka-registration{padding:12px}.tochka-copy>.btn{width:100%}.tochka-advanced .btn{width:100%}}
.tochka-diagnostic{min-width:0;overflow-wrap:anywhere}
.tochka-review{scroll-margin-top:20px}.tochka-review-heading,.tochka-review-line-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.tochka-review-heading h2,.tochka-review-line-head h3{margin:0}.tochka-review-bank{background:#f5f8fa;border-radius:12px;padding:16px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;margin:16px 0}.tochka-review-bank p{grid-column:1/-1;margin:0;overflow-wrap:anywhere}.tochka-review-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;background:#eef6f4;border:1px solid #c5e0d8;border-radius:12px;padding:14px;margin:16px 0}.tochka-review-totals>div{display:flex;flex-direction:column;gap:6px;min-width:0}.tochka-review-totals span{font-size:13px;color:#50646b}.tochka-review-totals strong{font-variant-numeric:tabular-nums;font-size:20px;overflow-wrap:anywhere}.tochka-review-totals.has-excess{background:#fff1ef;border-color:#e7b0a5}.tochka-review-totals.has-excess>div:last-child{color:#9f2d21}.tochka-review-rows{display:grid;gap:16px;margin-bottom:16px}.tochka-review-line{border:1px solid #dce5e7;border-radius:14px;padding:16px;background:#fff;min-width:0}.tochka-review-line-head{margin-bottom:16px}.tochka-review-line-head h3{font-size:18px}.tochka-review-line-primary,.tochka-review-line-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}.tochka-review-line-primary{margin-bottom:14px}.tochka-review-line-fields>.inline-note{grid-column:1/-1;margin:0}.tochka-review-line-fields .field-group,.tochka-review-line-primary .field-group{margin-bottom:0}.tochka-review-line-fields textarea{min-height:88px}.tochka-review-lookup{min-width:0;display:flex;flex-direction:column;gap:6px}.tochka-review-lookup input{min-height:44px}.tochka-review input,.tochka-review select,.tochka-review textarea{font-size:16px;width:100%;min-width:0;min-height:44px}.tochka-review select{white-space:normal;text-overflow:ellipsis}.tochka-review-missing{margin:16px 0;color:#52616b;font-size:14px}.tochka-review-missing ul{padding-left:20px;margin:6px 0}.tochka-review-message:empty{display:none}.tochka-review-message{color:#226d62}.tochka-review-actions{display:flex;gap:12px;flex-wrap:wrap;border-top:1px solid #dce5e7;padding-top:16px;margin-top:16px}.tochka-review-actions .btn{white-space:normal}.tochka-review-note{padding:10px 12px;border-left:3px solid #7baaa2;background:#f0f7f5;overflow-wrap:anywhere}@media(max-width:700px){.tochka-review-bank{grid-template-columns:1fr}.tochka-review-bank .tochka-number{font-size:26px}.tochka-review-line-primary,.tochka-review-line-fields{grid-template-columns:minmax(0,1fr)}.tochka-review-totals{grid-template-columns:1fr;padding:12px}.tochka-review-totals>div{flex-direction:row;align-items:center;justify-content:space-between;gap:10px}.tochka-review-totals strong{font-size:18px;white-space:nowrap}.tochka-review-line{padding:12px}.tochka-review-actions{display:grid;grid-template-columns:1fr}.tochka-review-actions .btn{width:100%}.tochka-review .tochka-review-heading{align-items:flex-start}.tochka-review .tochka-review-heading h2{font-size:22px}}
.tochka-diagnostic h3{font-size:16px;margin:0 0 8px;line-height:1.5}
.tochka-diagnostic p{margin:0 0 8px}
.tochka-diagnostic-reference{font-size:13px}
.tochka-diagnostic-details>summary{cursor:pointer;min-height:44px;line-height:1.5;padding:10px 0}
.tochka-diagnostic-values{display:grid;grid-template-columns:minmax(130px,1fr) minmax(0,2fr);gap:8px 16px;margin:4px 0 16px;font-size:13px}
.tochka-diagnostic-values dt,.tochka-diagnostic-values dd{margin:0;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}
.tochka-diagnostic-details>.btn{max-width:100%;white-space:normal;text-align:left}
@media(max-width:700px){.tochka-diagnostic-values{grid-template-columns:minmax(0,1fr);gap:4px}.tochka-diagnostic-values dd{margin-bottom:8px}.tochka-diagnostic-details>.btn{width:100%}}

.tochka-review-line.is-posted{background:#f2f8f6;border-color:#b8d9cd}.tochka-review-line.is-posted h3{color:#226d62}.tochka-review[aria-busy=true]{cursor:progress}

.tochka-review-totals{position:sticky;top:8px;z-index:2;box-shadow:0 3px 8px #173b3014}.tochka-review-line{scroll-margin-top:145px}@media(min-width:1150px){.tochka-review-line-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}

.tochka-review-line.is-posted>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:44px;cursor:pointer;font-weight:600;color:#226d62}.tochka-review-line.is-posted>summary strong{white-space:nowrap}.tochka-review-line.is-posted[open]>summary{margin-bottom:12px}.tochka-review-line.is-posted>summary:before{content:"▸"}.tochka-review-line.is-posted[open]>summary:before{content:"▾"}.tochka-operation .tochka-review-note{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}@media(max-width:700px){.tochka-review-line.is-posted>summary{flex-wrap:wrap}.tochka-review-line.is-posted>summary>span{flex:1;min-width:140px}}
.tochka-review-lookup>.field-group{position:relative}.tochka-review-lookup input[role=combobox]{padding-right:48px}.tochka-review-lookup input::-webkit-search-cancel-button{display:none}.tochka-review-lookup .tochka-lookup-clear{position:absolute;right:2px;bottom:1px;width:42px;height:42px;min-height:42px;padding:4px;font-size:24px;line-height:1;border:0;background:transparent;color:#607780}.tochka-review-lookup .tochka-lookup-clear:hover{background:#edf4f1}

.tochka-review-merchant{grid-column:1/-1;padding:12px;background:#fff8e8;border:1px solid #ead9ae;border-radius:10px}.tochka-review-merchant .tochka-check input{width:20px;min-height:20px}.tochka-review-bank>.btn{justify-self:start;grid-column:1/-1}

.tochka-review-accounting{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px 24px;margin:0;padding-bottom:12px;border-bottom:1px solid #c5e0d8}.tochka-review-totals .tochka-review-accounting span{font-size:14px;color:#28584e}.tochka-review-totals .tochka-review-accounting strong{font-size:16px;white-space:nowrap}.tochka-review .tochka-review-line-fields>.tochka-review-explanation{grid-column:1/-1}.tochka-review .tochka-review-line-fields textarea{min-height:96px;resize:vertical}
.tochka-review-lookup{position:relative}.tochka-review-lookup>select[hidden]{display:none!important}.tochka-lookup-options{display:grid;gap:3px;max-height:232px;overflow:auto;border:1px solid #bad5cf;border-radius:10px;padding:6px;background:white;box-shadow:0 6px 16px #183d3017}.tochka-lookup-options>.btn{text-align:left;white-space:normal;overflow-wrap:anywhere;flex-shrink:0}.tochka-lookup-options>.btn[aria-selected=true]{background:#e6f3ef;color:#205e53}.tochka-review-lookup>.btn{align-self:start;font-size:13px}.tochka-review-lookup .field-group{margin:0}.tochka-recovery-panel{padding:12px 14px;background:#f5f8fa;border:1px solid #d6e2e7;border-radius:12px;margin:0 0 16px;overflow-wrap:anywhere}.tochka-recovery-state{margin:0;line-height:1.5}.tochka-recovery-state[data-state=unknown],.tochka-recovery-state[data-state=conflict]{color:#8b4f12;font-weight:600}.tochka-recovery-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.tochka-review-conflict{border-top:1px solid #d7b98e;margin-top:12px;padding-top:12px}.tochka-review-conflict .btn{margin:4px 8px 4px 0}.tochka-reset-confirm{padding:14px;border:1px solid #dfc49c;background:#fff9ee;margin-top:12px;border-radius:10px}.tochka-reset-confirm .btn{margin:4px 8px 4px 0}@media(max-width:700px){.tochka-review-totals{position:static;box-shadow:none;gap:6px}.tochka-review-totals>div{gap:4px}.tochka-review-accounting{padding-bottom:8px;gap:4px 12px}.tochka-review-line{scroll-margin-top:16px}.tochka-recovery-actions{display:grid;grid-template-columns:1fr}.tochka-review-actions>.btn{max-width:100%}.tochka-lookup-options{max-height:220px}.tochka-review-lookup>.btn{min-height:36px}}
.tochka-posted-correction{margin-top:16px;padding:16px;background:#fff;border:1px solid #bed4dd;border-radius:12px;min-width:0}.tochka-posted-correction h3{font-size:18px;line-height:1.4}.tochka-correction-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tochka-correction-preview{background:#f3f6f8;padding:12px;border-radius:8px;margin:14px 0;overflow-wrap:anywhere}.tochka-correction-preview p{margin:0 0 6px}.tochka-posted-correction textarea{min-height:96px}.tochka-correction-history{margin-top:14px;border-top:1px solid #d5e2dd;padding-top:8px}.tochka-correction-history>summary{cursor:pointer;min-height:44px;line-height:1.6;padding:8px 0}.tochka-correction-history article{border-top:1px solid #d5e2dd;padding:12px 0;overflow-wrap:anywhere}.tochka-review-line.is-posted>.btn{margin:10px 12px 0 0}@media(max-width:700px){.tochka-correction-fields{grid-template-columns:minmax(0,1fr)}.tochka-posted-correction{padding:12px}.tochka-review-line.is-posted>.btn{width:100%;margin-right:0}}

/* The review is one focused task. The queue returns after confirmed completion. */
.is-review-open>.tochka-operation,.is-review-open>.tochka-pager,.is-review-open>.empty-state{display:none!important}
.is-review-open>:not(.tochka-detail):not(.tochka-review-loading){display:none!important}
.tochka-review{border:1px solid #d5e1e5;border-radius:16px;max-width:1120px;margin:0 auto!important;min-width:0}
.tochka-review-back{padding-left:0;margin-bottom:12px;text-align:left}
.tochka-review-bank{margin:12px 0;background:#f6f8fa}
.tochka-review-bank .long-text{font-size:14px;line-height:1.5}
.tochka-review-totals{background:#f5f7fb;border-color:#d7dfe9;box-shadow:none;position:static;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0 6px}
.tochka-review-totals>.tochka-review-accounting{display:contents;border:0;padding:0;margin:0}
.tochka-review-accounting>div{display:flex;flex-direction:column;gap:6px;min-width:0}
.tochka-review-totals .tochka-review-accounting span{font-size:13px;color:#50646b}
.tochka-review-totals .tochka-review-accounting strong{font-size:22px;white-space:normal;font-variant-numeric:tabular-nums}
.tochka-review-accounting>div:last-child strong{color:#855b16}
.tochka-review-totals.is-complete{background:#eef7f3;border-color:#bddbce}
.tochka-review-totals.is-complete .tochka-review-accounting>div:last-child strong{color:#246953}
.tochka-split-totals{display:flex;gap:8px 20px;flex-wrap:wrap;font-size:13px;color:#62737e;margin:8px 0 12px}
.tochka-recovery-panel.is-quiet{padding:8px 0;margin:0 0 12px;border:0;background:transparent;color:#607380;font-size:13px}
.tochka-recovery-panel.is-quiet .tochka-recovery-actions{display:none}
.tochka-review-line-primary{grid-template-columns:minmax(0,2fr) minmax(140px,1fr)}
.tochka-review-line-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.tochka-review [hidden]{display:none!important}
.tochka-known-party{display:flex;flex-direction:column;align-items:start;gap:5px;min-width:0;padding:10px 12px;border:1px solid #d5e1e5;border-radius:10px;background:#f7faf9}
.tochka-known-party strong{overflow-wrap:anywhere}.tochka-known-party small{color:#63777a}.tochka-known-party .btn{padding:4px 0;min-height:36px}
.tochka-review-extra{grid-column:1/-1;border-top:1px solid #e4eaee;padding-top:4px}
.tochka-review-extra>summary,.tochka-review-extra-actions>summary{min-height:44px;cursor:pointer;padding:12px 0;font-size:14px;color:#516b75}
.tochka-review-extra[open]{display:grid;gap:12px}.tochka-review-extra[open]>summary{margin-bottom:4px}
.tochka-review-extra-actions{margin-top:8px}.tochka-review-extra-actions>.btn{margin:4px 8px 4px 0}
.tochka-line-status{font-size:13px;line-height:1.5;color:#835e25;margin:12px 0 0;padding-top:10px;border-top:1px solid #edf0f2}
.tochka-line-status.is-ready{color:#326e5d}
.tochka-field-hint{display:block;color:#8d5a19;font-size:12px;line-height:1.5;margin-top:5px}
.tochka-review .is-missing input,.tochka-review .is-missing select,.tochka-review .is-missing textarea{border-color:#cba66f}
.tochka-review [aria-invalid=true]{border-color:#b14f3a;box-shadow:0 0 0 1px #b14f3a}
.tochka-review .tochka-review-actions{position:sticky;bottom:0;z-index:5;background:#fff;padding:12px 0 calc(12px + env(safe-area-inset-bottom));display:flex;gap:12px;box-shadow:0 -7px 12px #fff}
.tochka-review-actions>.btn-primary{min-width:230px}
.tochka-review-missing:empty,.tochka-completed:empty{display:none}
.tochka-success{border:1px solid #a9cfc2;background:#f1f9f5}.tochka-success h2{margin:0 0 10px}.tochka-success details{margin-top:12px}.tochka-success summary{min-height:44px;padding:12px 0;cursor:pointer}.tochka-success details .btn{display:block;text-align:left}
.tochka-review-merchant small{display:block;margin:6px 0 10px;color:#6f6048}
.tochka-page{gap:12px}
.tochka-page>.page-heading{margin-bottom:4px;gap:12px}
.tochka-page>.page-heading h1{font-size:28px}
.tochka-page>.page-heading .eyebrow{display:none}
.tochka-page>.tochka-grid:empty,.tochka-page>div:empty{display:none}
.tochka-bank-tools{border-bottom:1px solid #dce5e7;padding-bottom:4px}
.tochka-bank-tools>summary{cursor:pointer;min-height:44px;padding:10px 0;color:#526b75;font-size:14px}
.tochka-bank-tools[open]>.tochka-toolbar{margin-top:8px}
.tochka-page .tochka-operation{margin-bottom:10px;padding:16px}
.tochka-operation>.long-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;color:#52616b}
.tochka-operation>.form-text{font-size:13px}
.tochka-operation-head>strong:last-child{white-space:nowrap}
@media(max-width:700px){.tochka-page>.page-heading h1{font-size:24px}.tochka-page>.page-heading .card-action-row{gap:8px}.tochka-page>.page-heading .card-action-row .btn{font-size:13px;padding:8px 10px}.tochka-page .tochka-operation-head{flex-direction:row;align-items:flex-start}.tochka-operation-head>strong:first-child{min-width:0;overflow-wrap:anywhere}.tochka-operation-head>strong:last-child{font-size:16px}}
@media(max-width:700px){
 .tochka-review{padding:14px!important;border-radius:12px}.tochka-review-line{padding:12px}
 .tochka-review-totals{grid-template-columns:1fr;gap:8px;padding:12px}
 .tochka-review-totals>div:not(.tochka-review-accounting),.tochka-review-accounting>div{flex-direction:row;align-items:center;justify-content:space-between;gap:10px}
 .tochka-review-totals strong,.tochka-review-totals .tochka-review-accounting strong{font-size:18px;white-space:nowrap}
 .tochka-review-line-primary,.tochka-review-line-fields{grid-template-columns:1fr}
 .tochka-review .tochka-review-actions{display:grid;grid-template-columns:1fr;gap:8px;margin:12px -4px 0;padding-left:4px;padding-right:4px}
 .tochka-review-actions>.btn{min-width:0;width:100%;min-height:44px}
 .tochka-review-extra-actions>.btn{display:block;width:100%;margin-right:0}
 .tochka-review-bank{padding:12px}.tochka-known-party .btn{min-height:44px}
}
/* Daily allocation: essential choices first, details remain available on demand. */
.tochka-review-bank{grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:12px;margin:8px 0}
.tochka-review-bank>.tochka-number{font-size:22px;white-space:nowrap}
.tochka-bank-original{grid-column:1/-1;font-size:13px;color:#60717b}
.tochka-bank-original>summary{cursor:pointer;min-height:36px;padding:8px 0}
.tochka-bank-original[open] p{margin:6px 0;line-height:1.45}
.tochka-review-totals{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px 12px;margin:10px 0 4px}
.tochka-review-back{margin-bottom:4px;padding-top:4px;padding-bottom:4px}
.tochka-review-line-primary{margin-bottom:10px}
.tochka-review-line-fields{gap:10px 14px}
.tochka-known-party{grid-column:1/-1;display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:4px 8px;padding:4px 0;border:0;border-radius:0;background:none;font-size:14px}
.tochka-known-party>.form-label{font-size:12px;margin:0;color:#63777a}
.tochka-known-party>small{display:none}
.tochka-known-party>.btn{margin-left:auto;padding:4px 0}
.tochka-review-line.is-pending>summary{cursor:pointer;list-style:none;min-height:44px;display:flex;align-items:center;gap:8px;font-weight:600;margin:0}
.tochka-review-line.is-pending>summary:before{content:'▸';flex:none}
.tochka-review-line.is-pending[open]>summary:before{content:'▾'}
.tochka-review-line.is-pending[open]>summary{margin-bottom:12px}
.tochka-review-line.is-pending.is-single>summary{display:none}
.tochka-part-label{font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.tochka-part-state{font-weight:400;font-size:12px;color:#667782;flex:none}
.tochka-review-line.is-pending:not([open]){padding-top:6px;padding-bottom:6px}
.tochka-line-tools>summary{cursor:pointer;min-height:40px;padding:10px 0;font-size:13px;color:#60717b}
.tochka-line-tools>.btn{margin:4px 8px 4px 0}
.tochka-review .tochka-review-actions{position:static;box-shadow:none;padding-bottom:8px}
.tochka-review-extra{border:0;padding:0}
.tochka-review-extra>summary{padding:10px 0}
.tochka-review-message{font-size:14px}
.tochka-review-lookup>.tochka-lookup-options{max-height:300px}
.tochka-queue-amounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px;margin:12px 0;background:#f5f8fa;border-radius:10px}
.tochka-queue-amounts>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.tochka-queue-amounts span{font-size:13px;line-height:1.4;color:#60717b}
.tochka-queue-amounts strong{font-size:18px;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.tochka-queue-amounts [data-queue-amount=posted] strong{color:#246953}
.tochka-queue-amounts [data-queue-amount=remaining] strong{color:#855b16}
.tochka-operation .tochka-prepared-note{margin-top:-4px;font-size:12px;line-height:1.5}
.tochka-inherited-article{color:#56756a;font-size:12px}
@media(max-width:550px){.tochka-queue-amounts{grid-template-columns:1fr;gap:6px;padding:10px}.tochka-queue-amounts>div{flex-direction:row;align-items:baseline;justify-content:space-between;gap:12px}.tochka-queue-amounts strong{font-size:16px;white-space:nowrap}}
.tochka-review>p:empty,.tochka-review>.tochka-review-missing:empty{display:none}
.tochka-tab-select{display:none}
.tochka-project-code{display:block;font-weight:400;font-size:12px;color:#677a82}
.tochka-sync-progress{width:100%;flex-basis:100%;grid-column:1/-1}.tochka-sync-progress button{margin:0 8px 6px 0}
.tochka-queue-tools{margin:16px 0}.tochka-queue-filters{display:grid;grid-template-columns:1fr;gap:12px;padding:16px}.tochka-directions{display:flex;gap:8px;flex-wrap:wrap}.tochka-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-top:12px}.tochka-filter-bottom,.tochka-filter-chip{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.tochka-filter-bottom label{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer}.tochka-filter-bottom input[type=checkbox]{width:20px;min-height:20px;height:20px}.tochka-filter-period summary,.tochka-operation-filter summary{cursor:pointer;min-height:32px;display:flex;align-items:center;color:#52756f}.tochka-filter-period summary::before,.tochka-operation-filter summary::before{content:'▸';margin-right:6px}.tochka-filter-period[open] summary::before,.tochka-operation-filter[open] summary::before{content:'▾'}.tochka-filtered-amounts{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px;margin:12px 0}.tochka-filtered-card{border:1px solid #dce6e4;background:#fff;border-radius:12px;padding:16px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}.tochka-filtered-card dl{display:grid;grid-template-columns:1fr auto;width:100%;gap:4px;margin:0;font-size:13px}.tochka-filtered-card dt{font-weight:400;color:#5b6d75}.tochka-filtered-card dd{text-align:right;font-weight:600;margin:0}.tochka-merchant-group h2{font-size:18px}.tochka-operation-filter{margin:8px 0}.tochka-operation-filter .tochka-actions{margin:8px 0}.tochka-filter-chip{border-radius:8px;background:#eef5f2;padding:4px 10px}.tochka-queue-tools .crm-analytics-content{margin-top:8px}
@media(max-width:600px){.tochka-filter-grid{grid-template-columns:1fr}.tochka-queue-filters{padding:12px}.tochka-directions{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.tochka-directions .btn{font-size:13px;padding:9px 5px;min-height:44px}.tochka-filtered-card{padding:12px}.tochka-filtered-amounts{grid-template-columns:1fr}.tochka-filter-bottom{gap:0}}
.tochka-review-totals{grid-template-columns:1fr}
.tochka-queue-dashboard{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:10px 18px;padding:16px}
.tochka-queue-dashboard>.tochka-queue-filters{grid-column:1;grid-row:1;margin:0;padding:0;border:0;box-shadow:none;background:none}
.tochka-queue-dashboard>.tochka-filtered-amounts{grid-column:1;grid-row:2;margin:0;padding-top:10px;border-top:1px solid #edf1f1;grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.tochka-queue-dashboard .tochka-filtered-card{border:0;padding:4px 0;border-radius:0;gap:4px 8px;align-content:start}
.tochka-queue-diagram{grid-column:2;grid-row:1/3;min-width:0;border-left:1px solid #edf1f1}
.tochka-queue-diagram>summary{min-height:44px;padding:12px 16px;cursor:pointer;font-weight:600}
.tochka-queue-diagram .crm-inline-analytics{border:0;padding:0 14px 10px;margin:0;box-shadow:none}
.tochka-queue-diagram .crm-analytics-top,.tochka-queue-diagram .crm-analytics-kpis{display:none}
.tochka-queue-diagram .crm-analytics-donut{height:140px}
.tochka-queue-diagram .crm-analytics-body{padding:4px 0}
.tochka-queue-diagram .crm-analytics-legend{margin-top:4px;padding-top:4px}
.tochka-queue-dashboard{align-content:start}
.tochka-queue-dashboard>.tochka-queue-filters{align-content:start;align-self:start}
.tochka-queue-dashboard .tochka-queue-diagram .crm-analytics-donut{height:140px}
.tochka-queue-dashboard .crm-analytics-toolbar{border-top:0;padding-top:0}
.tochka-queue-dashboard .crm-analytics-modes{display:none}
.tochka-queue-dashboard .crm-analytics-preview-slot:has(>.crm-analytics-preview[hidden]){min-height:0}
@media(min-width:1000px){.tochka-queue-filters{grid-template-columns:auto minmax(0,1fr);align-items:end;gap:8px 18px}.tochka-queue-filters>.field-group{margin:0}.tochka-queue-filters>.tochka-filter-chip{grid-column:1/-1}.tochka-filter-period{align-self:start}.tochka-filter-grid{grid-template-columns:1fr;min-width:210px}.tochka-filter-bottom{justify-content:flex-end}}
@media(max-width:999px){.tochka-queue-dashboard{grid-template-columns:1fr;padding:12px}.tochka-queue-diagram{grid-column:1;grid-row:3;border-left:0;border-top:1px solid #edf1f1}.tochka-queue-diagram>summary{padding:10px 0}.tochka-queue-diagram .crm-analytics-donut{height:160px}}
.tochka-review-accounting{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tochka-review-accounting>div{display:flex;flex-direction:column;gap:4px}
.tochka-review-accounting [data-form-amount=posted] strong{color:#246953}
.tochka-review-accounting [data-form-amount=remaining] strong{color:#855b16}
@media(max-width:700px){.tochka-tabs>.btn{display:none}.tochka-tab-select{display:block;width:100%;min-height:44px}.tochka-review-accounting{grid-template-columns:1fr;gap:6px}.tochka-page>.page-heading>p{display:none}.tochka-bank-tools>summary{min-height:36px;padding:8px 0}}
@media(max-width:700px){
 .tochka-review .tochka-review-heading h2{font-size:20px}
 .tochka-review-bank>.tochka-number{font-size:20px}
 .tochka-review-totals{grid-template-columns:1fr;gap:4px}
 .tochka-review-line.is-pending>summary{flex-wrap:wrap;justify-content:flex-start;gap:2px 8px}
 .tochka-part-label{flex:1;min-width:190px}.tochka-part-state{padding-left:18px}
 .tochka-review-bank>strong:first-child{font-size:14px;align-self:center;overflow-wrap:anywhere}
 .tochka-review .tochka-review-actions{display:flex;flex-direction:column}
 .tochka-review-actions>.btn-outline-secondary{border-color:transparent;min-height:40px}
 .tochka-review-extra-actions>summary{font-size:13px}
}

/* Proportional queue totals: one independent scale per currency and direction. */
.tochka-queue-dashboard>.tochka-filtered-amounts{grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr))}
.tochka-filtered-card{container-type:inline-size}
.tochka-filtered-card dl.tochka-amount-breakdown{display:flex;flex-direction:column;gap:6px}
.tochka-amount-row{display:grid;grid-template-columns:132px minmax(0,1fr);gap:12px;align-items:center;min-height:22px}
.tochka-filtered-card .tochka-amount-row dd{display:grid;grid-template-columns:minmax(10px,1fr) 112px;gap:12px;align-items:center}
.tochka-amount-track{display:block;height:7px;border-radius:20px;background:#edf1f5;overflow:hidden}
.tochka-amount-fill{display:block;height:100%;border-radius:inherit;background:#6b8bb7}
.tochka-amount-row.is-allocated .tochka-amount-fill{background:#2b9b7d}
.tochka-amount-row.is-prepared .tochka-amount-fill{background:#8960dc}
.tochka-amount-row.is-remaining .tochka-amount-fill{background:#e4a139}
.tochka-amount-value{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
@container(max-width:420px){.tochka-amount-row{grid-template-columns:100px minmax(0,1fr);gap:8px}.tochka-filtered-card .tochka-amount-row dd{grid-template-columns:minmax(10px,1fr) 104px;gap:8px}.tochka-amount-row dt{line-height:1.25}}

/* Align the action with the controls, not the labelled field wrapper. */
.tochka-toolbar>.field-group{margin:0}
.tochka-toolbar input[type=date]{height:44px;min-height:44px}
.tochka-toolbar>.btn{min-height:44px}

.tochka-toolbar>.tochka-sync-progress>.form-text{margin:0 0 12px}
.tochka-sync-progress>button{margin-bottom:0}

.tochka-remember-rule{margin-top:12px;padding:12px 14px;border:1px solid #dce6e5;border-radius:10px;background:#f7faf9;grid-column:1/-1}
.tochka-remember-rule[hidden]{display:none}
.tochka-remember-rule.is-selected{background:#edf7f3;border-color:#79aaa1}
.tochka-remember-label{display:flex;align-items:flex-start;gap:10px;min-height:44px;cursor:pointer;margin:0;font-weight:600;line-height:1.45}
.tochka-remember-label input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;margin:2px 0 0;accent-color:#26776c}
.tochka-remember-label span{padding-bottom:6px}
.tochka-remember-pair{margin:0 0 6px;font-size:.85rem;overflow-wrap:anywhere;line-height:1.5}
.tochka-remember-rule .form-text{margin:4px 0 0;line-height:1.5}
.tochka-remember-summary{padding:12px 14px;margin:16px 0 0;background:#edf7f3;border-left:3px solid #26776c;overflow-wrap:anywhere}
.tochka-remember-summary[hidden]{display:none}
@media(max-width:600px){.tochka-remember-rule{padding:12px}.tochka-remember-label{font-size:.9rem}.tochka-remember-summary{font-size:.9rem}}
.tochka-queue-actions{display:flex;justify-content:flex-end;margin:0 0 14px;gap:12px}
.tochka-queue-actions[hidden]{display:none}
.tochka-rule-backfill{margin-bottom:16px}
.tochka-rule-backfill .tochka-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.tochka-rule-backfill .tochka-actions .btn{min-height:44px;margin:0}
@media(max-width:600px){.tochka-queue-actions>.btn{width:100%}.tochka-rule-backfill .tochka-actions>.btn{flex:1 1 100%}}
.tochka-backfill-status {display:flex;gap:10px;align-items:baseline;margin-top:10px}
.tochka-backfill-status p {margin:0 0 12px}
.tochka-backfill-working {color:#26756c;animation:tochka-backfill-pulse 1.2s ease-in-out infinite}
.tochka-backfill-working[hidden] {display:none}
@keyframes tochka-backfill-pulse {50% {opacity:.25}}
@media (prefers-reduced-motion:reduce) {.tochka-backfill-working {animation:none}}
.tochka-backfill-progress {display:block;width:100%;height:12px;accent-color:#26756c;appearance:none;border:0;border-radius:8px;overflow:hidden;background:#e8efee}
.tochka-backfill-progress[hidden] {display:none}
.tochka-backfill-progress::-webkit-progress-bar {background:#e8efee}
.tochka-backfill-progress::-webkit-progress-value {background:#26756c;border-radius:8px}
.tochka-backfill-progress::-moz-progress-bar {background:#26756c;border-radius:8px}
/* Import a missing project without leaving or replacing the allocation form. */
.tochka-project-import {width:min(1120px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:20px;border:1px solid #dce4e9;border-radius:16px;box-sizing:border-box;overflow:auto;background:#f5f7fa;color:#172b3d;}
.tochka-project-import::backdrop {background:rgb(16 31 42 / 50%);}
.tochka-project-import-close {display:flex;justify-content:flex-end;position:sticky;top:-20px;z-index:2;background:#f5f7fa;padding:8px 0;}
.tochka-project-import-link {display:block;margin-top:8px;text-align:left;white-space:normal;min-height:44px;}
.tochka-project-import .bitrix-import-page {width:100%;min-width:0;}
@media(max-width:600px){.tochka-project-import{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);padding:12px;border-radius:12px;}.tochka-project-import-close{top:-12px;}.tochka-project-import-close .btn{width:100%;min-height:44px;}}
