*{box-sizing:border-box}body{margin:0;font:14px/1.5 Arial,sans-serif;color:#161616;background:#f4f4f4}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #d9d9d9;border-radius:5px;padding:11px 16px;background:white;min-height:44px}input,select{min-height:44px;padding:10px;border:1px solid #d7d7d7;border-radius:5px;background:white;width:100%}input[type=checkbox]{width:18px;min-height:18px;accent-color:#d61c38}label{display:block;color:#656565;font-size:12px}label input,label select{display:block;color:#161616;font-size:16px;margin-top:5px}button.primary{background:#d61c38;color:white;border-color:#d61c38;font-weight:600}.site-header{height:64px;background:#d61c38;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 28px}.site-header>b{font-size:19px;letter-spacing:.3px}.site-header span{border:1px solid #ffffff80;padding:4px}.site-header>div{font-size:12px}h1{font-size:28px;margin:5px 0 8px;letter-spacing:-.6px}h2{font-size:19px}.eyebrow{color:#d61c38;font-size:12px;letter-spacing:1px;text-transform:uppercase}.muted{color:#686868}.login{max-width:430px;margin:70px auto;padding:30px;background:white;border:1px solid #e0e0e0;border-radius:10px}.login label{margin:18px 0}.login .primary{width:100%}#workspace{display:grid;grid-template-columns:220px 1fr;min-height:calc(100vh - 64px)}aside{background:white;border-right:1px solid #e0e0e0;padding:24px 15px}aside .nav{width:100%;text-align:left;margin:4px 0;border:0;font-size:13px}.nav.active{background:#fff0f2;color:#d61c38;font-weight:600}.workspace-title{color:#777;font-size:11px;text-transform:uppercase;margin-bottom:15px}.nav-hint{font-size:11px;color:#777;margin:20px 12px}#identity{font-size:12px;margin:32px 12px 12px}.content{padding:28px;min-width:0;max-width:1300px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px}.filterbar{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px;background:white;padding:16px;border:1px solid #e0e0e0;border-radius:8px}#counter{font-size:12px;color:#686868;margin:20px 0 6px}#debt-report .phone{max-width:none;padding:0;background:transparent}#cards{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:16px;align-items:start}#debt-report .customer{margin:0}#debt-report .phone .actions button{min-height:48px}#debt-report .customer .detailsection{grid-column:1/-1}#status{font-size:13px;color:#686868;margin:10px 0}.pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin:24px 0}.pagination button:disabled{opacity:.4;cursor:default}.user-form{max-width:550px;background:white;padding:20px;border-radius:8px;border:1px solid #ddd}.user-form label{margin:14px 0}.check{display:flex;align-items:center;gap:8px}fieldset{border:1px solid #ddd;border-radius:5px;max-height:300px;overflow:auto}#scope label{display:flex;align-items:center;gap:8px;margin:8px 0;font-size:13px}#user-list>div{padding:14px;background:white;border:1px solid #ddd;border-radius:5px;margin-bottom:10px}#user-list b{display:block}#user-list select{margin:8px 0}#login-error,#user-message{margin-top:12px;color:#b01932}#users-view .page-head{margin-bottom:0}[hidden],#workspace[hidden]{display:none!important}
@media(max-width:900px){#workspace{grid-template-columns:1fr}aside{display:flex;flex-wrap:wrap;gap:6px;padding:10px 14px;border-right:0;border-bottom:1px solid #ddd;align-items:center}aside .nav{width:auto;min-height:40px;padding:8px}.workspace-title,.nav-hint{display:none}#identity{margin:0 auto 0 8px;font-size:11px}.content{padding:18px 14px}.filterbar{grid-template-columns:1fr 1fr}#cards{grid-template-columns:1fr}h1{font-size:23px}.page-head{align-items:flex-start}.site-header{padding:0 16px}.site-header>b{font-size:16px}.login{margin:30px 14px}.site-header>div{font-size:11px}.page-head .primary{padding:10px;font-size:12px}#sync{flex-shrink:0}.filterbar{gap:9px;padding:12px}.filterbar label:nth-child(4){grid-column:1/-1}#debt-report .metric strong{font-size:23px}}
@media(min-width:1200px){.filterbar{grid-template-columns:repeat(3,1fr)}}
/* The report has a primary client card; action styling is scoped to buttons. */
#debt-report .customer{color:#161616}
#debt-report .metric strong,#debt-report h2{color:#161616}
#debt-report .metric.over strong{color:#d61c38}
.filters-panel{margin-bottom:16px;background:white;border:1px solid #ddd;border-radius:8px}.filters-panel>summary{padding:13px 15px;min-height:46px;cursor:pointer;font-weight:600}.filters-panel>summary>span{font-weight:400;font-size:12px;color:#777;margin-left:10px}.filters-panel .filterbar{border:0;border-top:1px solid #eee;border-radius:0}.totals{background:white;border:1px solid #ddd;border-radius:8px;padding:15px;margin:14px 0}.totals-heading{font-size:12px;color:#666;margin-bottom:9px;display:flex;justify-content:space-between;gap:8px}.totals-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.totals-grid span{font-size:12px;color:#666;display:block}.totals-grid b{font-size:23px;letter-spacing:-.5px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;display:block}#total-overdue{color:#d61c38}.total-advance{display:flex;flex-wrap:wrap;gap:6px 12px;padding-top:10px;border-top:1px solid #eee;margin-top:10px;font-size:12px}.total-advance>span{color:#777;font-size:11px;width:100%}
#debt-report .customer{padding:13px 15px;border-radius:11px}#debt-report h2{margin:6px 0 3px;font-size:18px}#debt-report .focus{background:#e7f5ec;color:#217244;border-radius:5px;padding:3px 7px;font-weight:600}#debt-report .identity{padding:0}#debt-report .primary .debtgrid{margin:10px 0 7px;padding:9px 10px;gap:9px;border-bottom:0;background:#f7f7f7;border-radius:7px}#debt-report .metric strong{font-size:22px;line-height:1.25}#debt-report .advance{padding:6px 8px;font-size:11px}#debt-report .late{margin:7px 0;padding:5px 8px;font-size:11px}#debt-report .sales{margin-top:9px;padding-top:7px;border-top:1px solid #eee}#debt-report .actions{margin-top:10px}#debt-report .actions button{min-height:44px;font-size:11px}#debt-report .meta,#debt-report .kam{font-size:11px}#debt-report .kv{padding:6px 0}#debt-report .note{padding:8px;margin:8px 0}#debt-report .requisites{margin-top:8px}#debt-report .requisites summary{padding:9px 0;font-size:12px;cursor:pointer}#debt-report .requisite-group{border-top:1px solid #eee;padding:4px 0}#debt-report .requisite-group h4{margin:10px 0 4px;font-size:12px;color:#d61c38}.export-button{width:100%;margin-top:10px;border:1px solid #d61c38;color:#d61c38;font-size:12px;background:white;padding:10px;min-height:44px}
@media(max-width:430px){.totals-grid b{font-size:20px}.filters-panel>summary>span{display:block;margin:3px 0 0;font-size:11px}#debt-report .metric strong{font-size:21px}}
@media(max-width:360px){.totals-grid b{font-size:18px}}


/* Mobile revision 3: a distinct compact client layout. */
#debt-report .customer{border:1px solid #e0e0e0;border-top:4px solid #d61c38;box-shadow:0 4px 16px #00000008;padding:12px;border-radius:14px}
#debt-report .tagrow{display:flex;justify-content:space-between;align-items:center;gap:6px;flex-wrap:wrap}
#debt-report .identity .meta,#debt-report .identity .kam{display:inline-block;margin:3px 8px 2px 0;background:#f1f1f1;padding:3px 7px;border-radius:6px}
#debt-report .primary .debtgrid{background:transparent;padding:0;margin:10px 0;gap:8px}
#debt-report .metric{background:#f4f5f7;border-radius:9px;padding:10px}
#debt-report .metric.over{background:#fff0f2}
#debt-report .metric label{font-size:11px}
#debt-report .advance,#debt-report .late{background:transparent;padding:3px 0;margin:3px 0}
#debt-report .actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
#debt-report .actions button:last-child{grid-column:1/-1}
#debt-report .actions button{font-size:12px!important;border-radius:8px;background:#fafafa}
#debt-report .order-link{margin-top:12px;padding:10px;background:#fff6f7;border:1px solid #f0d1d6;border-radius:8px}
#debt-report .order-link h4{margin:0 0 6px;color:#b01932;font-size:13px}
#debt-report .detail .export-button{margin:10px 0 5px;background:#d61c38;color:white;font-weight:600}
.totals-proof,.list-totals{padding:12px;background:white;border:1px solid #ddd;border-radius:8px;margin:10px 0;font-size:12px}
.totals-proof summary{cursor:pointer;min-height:30px}.totals-proof p,.list-totals small{color:#777}.list-totals>div{margin:6px 0;font-variant-numeric:tabular-nums}
#debt-report .years{display:flex;flex-wrap:wrap;gap:8px}#debt-report .years>div{flex:1 0 100px;padding:6px;min-width:0}

#debt-report .tagrow{align-items:start;position:relative;gap:6px}
#debt-report .legal-group{flex:1;min-width:0;font-size:11px;color:#686868}
#debt-report .legal-group>summary{cursor:pointer;list-style:none;padding:0;min-height:0}
#debt-report .legal-group>summary::-webkit-details-marker{display:none}
#debt-report .legal-list{margin:7px 0;padding:9px;background:#f7f7f7;border:1px solid #ddd;border-radius:8px;color:#161616}
#debt-report .legal-entity{padding:6px 0;border-bottom:1px solid #e3e3e3;overflow-wrap:anywhere}
#debt-report .legal-entity:last-child{border:0}
#debt-report .identity h2{margin:2px 0 3px}
#debt-report .client-code{font-size:11px;color:#777;margin:2px 0 4px}
#debt-report .abc{line-height:1.1}#debt-report .abc em{margin-top:2px}
#debt-report .late{justify-content:flex-start;gap:12px}
#debt-report .actions{grid-template-columns:repeat(3,minmax(0,1fr))}
#debt-report .actions button:last-child{grid-column:auto}
#debt-report .actions button{padding:8px 3px;font-size:11px!important;min-width:0;overflow-wrap:anywhere}
#debt-report .document-details>summary{cursor:pointer;padding:10px 0 2px;min-height:44px;color:#d61c38;font-size:12px;font-weight:600}#debt-report .document-details[open]>summary{padding-bottom:8px}#debt-report .document-body{border-top:1px solid #eee}#debt-report .document-count{font-size:12px;color:#686868;margin:12px 0 5px}
#debt-report .doc{padding:9px 10px;margin:6px 0;border-radius:9px;line-height:1.3}#debt-report .doc>b{font-size:13px}#debt-report .doc>.small{font-size:11px;margin-top:2px}#debt-report .doc .docmoney{margin:7px 0 3px;gap:8px}#debt-report .docmoney span{font-size:10px}#debt-report .docmoney b{font-size:14px;line-height:1.25;margin-top:2px}#debt-report .document-overdue{display:block;color:#d61c38;font-size:10px;margin-top:3px}#debt-report .doc .kv{padding:4px 0;line-height:1.3}#debt-report .document-details>summary{padding:6px 0;min-height:36px;font-size:11px}#debt-report .document-details[open]>summary{padding-bottom:6px}
#debt-report .doc .document-details{margin:0;padding:0}#debt-report .doc .document-details>summary{min-height:0;margin:0;padding:3px 0 0;line-height:1.2;font-size:11px}#debt-report .doc .document-details[open]>summary{padding:3px 0 4px}#debt-report .doc .docmoney{margin-bottom:2px}#debt-report .doc{padding-bottom:7px}

#debt-report .client-info-group{min-height:0;margin:12px 0 0;padding:10px;border:1px solid #e4e4e4;border-radius:9px;background:#fafafa}
#debt-report .client-info-group h3{margin:0 0 6px;font-size:12px;color:#b01932;line-height:1.4}
#debt-report .client-info-group .kv{padding:5px 0;font-size:11px;grid-template-columns:1fr 1.1fr}
#debt-report .client-info-group .kv:last-child{border-bottom:0}
#debt-report .client-info-group .kv b{white-space:pre-wrap}
#debt-report .annual-amount{display:block;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}

#debt-report .actual-debt-group{min-height:0;border:1px solid #dedede;border-radius:10px;padding:9px;margin:12px 0;background:#fafafa}
#debt-report .actual-debt-header{background:#f0f1f3;border-radius:7px;padding:9px;margin-bottom:7px}
#debt-report .actual-debt-header h4{font-size:13px;margin:2px 0 8px;overflow-wrap:anywhere}
#debt-report .actual-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;font-size:10px;color:#666}
#debt-report .actual-totals b{display:block;font-size:12px;color:#161616;overflow-wrap:anywhere}
#debt-report .actual-totals .red{color:#d61c38}
#debt-report .actual-debt-header .export-button{margin:8px 0 0;padding:7px;min-height:36px;font-size:11px}
#debt-report .actual-debt-group .doc{background:white}
#debt-report .act-download{display:block;text-align:center;text-decoration:none;border-radius:7px;background:#d61c38;color:white;font-weight:600}

.page-head{margin-bottom:6px;gap:10px}.page-head .eyebrow{display:block;margin-bottom:4px}
#snapshot{font-size:7px;line-height:1.4}#sync{font-size:11px;padding:8px 10px;min-height:36px}
.header-search{margin:8px 0 10px}.header-search label{font-size:11px}.header-search input{margin-top:3px;min-height:38px;padding:8px 10px;font-size:14px}
.filters-panel{margin-bottom:10px}.filters-panel>summary{padding:9px 11px;min-height:36px;font-size:12px}
.filters-panel .filterbar{grid-template-columns:repeat(3,minmax(0,1fr));padding:9px;gap:7px}
.filters-panel .filterbar label{font-size:10px}.filters-panel select{font-size:12px;min-height:34px;padding:6px;margin-top:3px}
.client-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0 6px}
.client-list-toolbar #counter{margin:0;font-size:11px;flex-shrink:0}.client-list-toolbar>label{display:flex;align-items:center;gap:6px;font-size:10px;min-width:0}
.client-list-toolbar select{width:auto;min-height:32px;margin:0;padding:5px;font-size:11px;max-width:155px}
@media(max-width:360px){.filters-panel .filterbar{grid-template-columns:1fr}.client-list-toolbar>label{font-size:0}.client-list-toolbar select{font-size:11px;max-width:150px}}

#debt-report .actual-debt-group{padding:9px;background:#fff;border:1px solid #ddd}
#debt-report .actual-debt-header{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:10px;align-items:stretch;background:transparent;padding:0;margin:0}
#debt-report .actual-overview{min-width:0}#debt-report .actual-overview>.small{font-size:10px}
#debt-report .actual-debt-header h4{margin:2px 0 7px;font-size:13px;line-height:1.3}
#debt-report .actual-totals{gap:5px;font-size:10px}#debt-report .actual-totals b{font-size:11px}
#debt-report .actual-debt-header .export-button{display:flex;justify-content:center;align-items:center;align-self:stretch;flex-direction:column;width:48px;min-width:0;min-height:54px;height:auto;margin:0;padding:5px 2px;border:1px solid #d8d8d8;border-radius:7px;background:#f6f6f6;color:#626262;font-size:10px;line-height:1.5;font-weight:500;text-align:center;text-decoration:none}
#debt-report .actual-debt-header .export-button:hover{background:#fff0f2;color:#d61c38;border-color:#e4a4ae}
#debt-report .actual-documents{margin-top:7px}#debt-report .actual-documents>summary{display:flex;justify-content:space-between;align-items:center;list-style:none;cursor:pointer;padding:5px 0 0;min-height:25px;font-size:11px;color:#686868}
#debt-report .actual-documents>summary::-webkit-details-marker{display:none}#debt-report .actual-documents[open] .actual-chevron{transform:rotate(180deg)}
#debt-report .actual-documents[open]>.actual-documents-body{margin-top:7px;border-top:1px solid #eee;padding-top:2px}

#debt-report details.client-info-group{padding:0;background:#fafafa}
#debt-report .client-info-group>summary{padding:10px;min-height:40px;font-size:12px;font-weight:600;color:#b01932;cursor:pointer}
#debt-report .info-group-body{padding:0 10px 8px;border-top:1px solid #eee}
#debt-report .contact-item{padding:7px 0;border-bottom:1px solid #e5e5e5;overflow-wrap:anywhere}
#debt-report .contact-item:last-child{border-bottom:0}.contact-kind{font-size:10px;color:#777}
#debt-report .contact-value{font-size:12px;line-height:1.4;margin:2px 0;white-space:pre-wrap}
#debt-report .contact-value a{color:#b01932}#debt-report .contact-item small{font-size:9px;color:#888;line-height:1.3}

#debt-report .identity .tp{display:inline-block;margin:3px 8px 2px 0;background:#f1f1f1;padding:3px 7px;border-radius:6px;font-size:11px;color:#666}
#debt-report .sales-comparison{width:100%;table-layout:fixed;border-collapse:collapse;font-size:11px;margin-top:5px;font-variant-numeric:tabular-nums}
#debt-report .sales-comparison th,#debt-report .sales-comparison td{text-align:center;padding:4px 2px;border-bottom:1px solid #e6e6e6;overflow-wrap:anywhere;font-weight:400;line-height:1.25}
#debt-report .sales-comparison th:first-child{width:40px;color:#777;font-size:10px}
#debt-report .sales-comparison thead th{font-size:11px;color:#555}
#debt-report .sales-comparison .period-captions{font-size:9px;color:#888}
#debt-report .sales-comparison .current-sales td{font-weight:700;font-size:12px}
#debt-report .sales-comparison .previous-sales{color:#666}
#debt-report .sales-comparison .growth-row td{font-weight:600}
#debt-report .sales-comparison .positive{color:#21803f}#debt-report .sales-comparison .negative{color:#d61c38}#debt-report .sales-comparison .neutral{color:#888}
#debt-report .customer .identity h2{font-size:16px;line-height:1.3;background:#f1f1f1;border-radius:6px;padding:4px 6px;margin:3px 0}#debt-report .client-meta-row{display:flex;flex-wrap:nowrap;gap:4px;overflow-x:auto;max-width:100%;min-width:0;white-space:nowrap;scrollbar-width:thin}#debt-report .identity .client-meta-row>div{display:block;flex:0 0 auto;white-space:nowrap;font-size:9px;line-height:1.25;margin:0;padding:3px 5px;border-radius:4px}#debt-report .customer.primary .debtgrid{margin:6px 0 3px;gap:7px}#debt-report .customer .metric{padding:6px 8px}#debt-report .customer .metric strong{line-height:1.15}#debt-report .customer .advance{padding:1px 0;margin:1px 0;line-height:1.25}#debt-report .customer .late{padding:1px 0;margin:2px 0;line-height:1.25}#debt-report .customer .sales{margin-top:4px;padding-top:4px}#debt-report .customer .actions{margin-top:6px;gap:5px}#debt-report .phone .customer .actions button{min-height:34px;padding:5px 3px;line-height:1.15;font-size:10px!important;border-radius:6px}

#debt-report .comment-group{margin:6px 0;border:1px solid #dedede;border-radius:7px;background:#f3f3f3;overflow:hidden}
#debt-report .comment-group>summary{cursor:pointer;padding:7px 9px;font-size:11px;line-height:1.25;font-weight:600;min-height:30px;color:#4b4b4b}
#debt-report .comment-group-body{padding:4px 9px 7px;border-top:1px solid #e3e3e3;background:#f8f8f8}
#debt-report .comment-group .comment{font-size:11px;line-height:1.3;padding:4px 0;border-bottom:1px solid #e5e5e5;overflow-wrap:anywhere}
#debt-report .comment-group .comment:last-child{border-bottom:0}
#debt-report .comment-group-body .small{font-size:10px;line-height:1.3}
.comment-status{display:inline-block;margin-left:5px;padding:1px 6px;border-radius:4px;background:#e4e4e4;color:#555;font-size:10px;font-weight:500;vertical-align:middle}
#debt-report details.client-info-group{min-height:0;margin:6px 0;padding:0;border:1px solid #dedede;border-radius:7px;background:#f3f3f3;overflow:hidden;color:#000}
#debt-report .client-info-group>summary{padding:7px 9px;min-height:30px;font-size:11px;line-height:1.25;font-weight:600;color:#000}
#debt-report .client-info-group .info-group-body{padding:4px 9px 7px;border-top:1px solid #e3e3e3;background:#f8f8f8;color:#000}
#debt-report .client-info-group .kv,#debt-report .client-info-group .contact-item{padding:4px 0;font-size:11px;line-height:1.3;color:#000}
#debt-report .client-info-group .kv span,#debt-report .client-info-group .kv b,#debt-report .client-info-group .contact-kind,#debt-report .client-info-group .contact-value,#debt-report .client-info-group .contact-value a,#debt-report .client-info-group .years,#debt-report .client-info-group .years b,#debt-report .client-info-group .years span{font-size:11px;line-height:1.3;color:#000}
#debt-report .client-info-group .contact-value{margin:2px 0}
#debt-report .client-info-group .small,#debt-report .client-info-group small{font-size:10px;line-height:1.3;color:#000}
#debt-report .client-info-group p.small{margin:4px 0}
#debt-report .client-info-group .years{padding:5px;margin:4px 0;gap:4px}
#debt-report .actual-debt-group{margin:6px 0;padding:7px 9px;border-radius:7px;background:#f3f3f3;color:#000;font-size:11px;line-height:1.3}
#debt-report .actual-debt-header{gap:7px}
#debt-report .actual-overview>.small{font-size:10px;line-height:1.3;color:#000}
#debt-report .actual-debt-header h4{font-size:11px;line-height:1.25;margin:2px 0 4px;color:#000}
#debt-report .actual-totals{font-size:10px;line-height:1.3;color:#000}
#debt-report .actual-totals b{font-size:11px;line-height:1.3}
#debt-report .actual-debt-header .export-button{min-height:44px;padding:3px 2px;font-size:10px;line-height:1.3}
#debt-report .actual-documents{margin-top:4px}
#debt-report .actual-documents>summary{min-height:30px;padding:7px 0;font-size:11px;line-height:1.25;color:#000}
#debt-report .actual-documents[open]>.actual-documents-body{margin-top:0;padding-top:2px}
#debt-report .actual-debt-group .doc{padding:7px 9px;margin:5px 0;border-radius:7px;font-size:11px;line-height:1.3;color:#000}
#debt-report .actual-debt-group .doc>b{font-size:11px;line-height:1.25}
#debt-report .actual-debt-group .doc>.small{font-size:10px;line-height:1.3;margin-top:2px;color:#000}
#debt-report .actual-debt-group .doc .docmoney{margin:4px 0 2px;gap:5px}
#debt-report .actual-debt-group .docmoney span{font-size:10px;line-height:1.3;color:#000}
#debt-report .actual-debt-group .docmoney b{font-size:11px;line-height:1.3;margin-top:1px}
#debt-report .actual-debt-group .document-overdue{font-size:10px;line-height:1.3;margin-top:2px}
#debt-report .actual-debt-group .doc .document-details>summary{min-height:30px;padding:7px 0;font-size:11px;line-height:1.25;color:#000}
#debt-report .actual-debt-group .doc .kv{padding:4px 0;font-size:11px;line-height:1.3;color:#000}
#debt-report .actual-debt-group .doc .kv span,#debt-report .actual-debt-group .doc .kv b{color:#000}
#debt-report .actual-debt-group .order-link{padding:6px 7px;margin-top:5px;border-radius:7px;background:#f3f3f3;border-color:#dedede}
#debt-report .actual-debt-group .order-link h4{font-size:11px;line-height:1.25;margin:0 0 3px;color:#000}
#debt-report .actual-debt-group .note{padding:5px 7px;margin:5px 0;font-size:11px;line-height:1.3;color:#000}
#workspace>#debt-report{min-width:0}
#debt-report #list-title{font-size:23px;line-height:1.2;margin:0 0 4px;color:#111}
#debt-report #snapshot{font-size:10px;line-height:1.3}
#debt-report #cards{display:block}
#debt-report .list-summary{padding:11px 12px;margin:8px 0 5px}
#debt-report .list-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#debt-report .list-summary-grid>div+div{border-left:1px solid #e4e4e4;padding-left:9px}
#debt-report .list-summary-grid span{display:block;font-size:10px;color:#666}
#debt-report .list-summary-grid b{display:block;font-size:18px;line-height:1.4;letter-spacing:-.4px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#debt-report .net-note{margin:3px 0 9px;font-size:10px;color:#777}
#debt-report .debt-table{border:1px solid #ddd;border-radius:8px;overflow:hidden;background:#fff}
#debt-report .debt-table-head,#debt-report .debt-table-row{display:grid;grid-template-columns:minmax(0,43fr) repeat(3,minmax(0,19fr));gap:4px;align-items:center;padding:9px 10px}
#debt-report .debt-table-head{background:#ededee;border-bottom:1px solid #ddd;font-size:10px;line-height:1.2;font-weight:600;color:#343434}
#debt-report .debt-table-head>span:not(:first-child){text-align:right}
#debt-report .debt-table-row{min-height:55px;text-decoration:none;color:#111;border-bottom:1px solid #eee;cursor:pointer;font-size:11px;line-height:1.3}
#debt-report .debt-table-row:last-child{border-bottom:0}
#debt-report .debt-table-row:hover,#debt-report .debt-table-row:focus-visible{background:#fff3f4}
#debt-report .debt-table-row:focus-visible,#debt-report .directory-row:focus-visible{outline:2px solid #ca303e;outline-offset:-2px}
#debt-report .row-client{min-width:0;padding-right:3px;overflow-wrap:anywhere}
#debt-report .row-client b{display:block;font-size:11px;font-weight:600;line-height:1.3}
#debt-report .row-client small{display:block;font-size:9px;color:#777;margin-top:3px}
#debt-report .row-client i{font-size:15px;color:#888;font-style:normal}
#debt-report .row-number{text-align:right;min-width:0;white-space:normal;font-variant-numeric:tabular-nums;font-size:11px;overflow-wrap:normal}
#debt-report .row-number.red{color:#d61c38;font-weight:600}
#debt-report .row-number.zero{color:#999}
#debt-report .list-empty{padding:22px 12px;text-align:center;background:#fff;border:1px solid #ddd;border-radius:8px;color:#666;font-size:12px}
#debt-report .directory-list{display:grid;gap:7px}
#debt-report .directory-row{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #dedede;border-radius:8px;background:#fff;padding:10px 12px;text-decoration:none;color:#111}
#debt-report .directory-row:hover{background:#fafafa}
#debt-report .directory-row b{font-size:13px;line-height:1.3;display:block;overflow-wrap:anywhere}
#debt-report .directory-row small{font-size:10px;color:#777;display:block;margin:3px 0}
#debt-report .directory-row div>span{font-size:10px;color:#666;display:block}
#debt-report .row-arrow{font-size:24px;color:#888}
#debt-report .client-screen-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
#debt-report #back-to-list{padding:7px 9px;min-height:36px;font-size:11px;color:#333;background:white}
#debt-report #client-snapshot{font-size:9px;text-align:right}
#debt-report #client-card{margin:0;max-width:760px;box-shadow:none;border:0}
#debt-report #client-status{font-size:11px;color:#686868;margin:6px 0}
#debt-report .panel-loading,#debt-report .panel-error{font-size:11px;padding:8px;margin:0}
#debt-report .retry-panel{padding:5px 9px;min-height:30px;font-size:11px}
#debt-report #cards[aria-busy=true]{opacity:.65}
@media(min-width:901px){#debt-report .debt-table-row{font-size:13px;min-height:60px;padding:10px 14px}#debt-report .row-client b,#debt-report .row-number{font-size:13px}#debt-report .debt-table-head{font-size:12px;padding:10px 14px}#debt-report .row-client small{font-size:10px}}
@media(max-width:360px){#debt-report .debt-table-head,#debt-report .debt-table-row{gap:3px;padding-left:7px;padding-right:7px}#debt-report .row-client b,#debt-report .row-number{font-size:10px}#debt-report .debt-table-head{font-size:9px}#debt-report .list-summary-grid b{font-size:15px}}
#workspace{grid-template-columns:minmax(0,1fr)}
.site-header #sections-toggle{display:flex;align-items:center;justify-content:center;min-height:34px;width:36px;padding:0;background:transparent;border:1px solid #ffffff70;color:#fff;font-size:21px;line-height:1;border-radius:5px}
#sections-toggle[hidden]{display:none}
#menu-backdrop{position:fixed;inset:0;background:#0005;z-index:100}
#workspace>#section-menu{position:fixed;z-index:101;top:0;right:0;bottom:0;width:min(290px,85vw);display:block;padding:15px;background:#fff;border:0;border-left:1px solid #ddd;overflow-y:auto;box-shadow:-8px 0 30px #0002;animation:sections-in .16s ease-out}
#workspace>#section-menu[hidden],#menu-backdrop[hidden]{display:none}
#section-menu .menu-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;font-size:15px}
#section-menu #menu-close{min-height:34px;width:34px;padding:0;font-size:24px;border:0;background:#f3f3f3}
#section-menu .workspace-title,#section-menu .nav-hint{display:none}
#section-menu .nav{display:block;width:100%;min-height:38px;padding:8px 10px;text-align:left;margin:4px 0;font-size:12px}
#section-menu .nav[hidden]{display:none}
#section-menu #identity{margin:24px 10px 7px;font-size:10px;color:#777}
body.menu-open{overflow:hidden}
@keyframes sections-in{from{transform:translateX(100%)}to{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){#workspace>#section-menu{animation:none}}
body.debt-list-mode .site-header{height:42px;padding:0 12px}
body.debt-list-mode .site-header>b{font-size:15px}
body.debt-list-mode .site-header>b>span{padding:2px}
body.debt-list-mode #workspace{min-height:calc(100vh - 42px)}
body.debt-list-mode #debts-view{padding:9px 10px;max-width:1100px}
body.debt-list-mode #debt-report .debt-list-head{display:flex;align-items:center;gap:7px;margin:0 0 6px;min-height:28px}
body.debt-list-mode #debt-report .list-heading{display:flex;align-items:center;flex:1;gap:8px;min-width:0;white-space:nowrap}
body.debt-list-mode #debt-report #list-title{font-size:16px;line-height:1.2;margin:0;letter-spacing:-.3px;flex-shrink:0}
body.debt-list-mode #debt-report #snapshot{font-size:8px;line-height:1.2;white-space:nowrap;color:#777}
body.debt-list-mode #debt-report #sync{font-size:10px;line-height:1.1;min-height:27px;flex:0 0 auto;padding:6px 9px;border-radius:5px}
.list-search-filters{position:relative}
.header-search{position:relative}
#client-suggestions{position:absolute;z-index:40;top:calc(100% + 3px);left:0;right:0;border:1px solid #d8d8d8;border-radius:6px;box-shadow:0 5px 18px #0002;background:#fff;max-height:275px;overflow-y:auto}
#client-suggestions[hidden]{display:none}
#client-suggestions>button{display:block;text-align:left;width:100%;padding:7px 9px;min-height:36px;border:0;border-bottom:1px solid #eee;border-radius:0;line-height:1.25;background:#fff;color:#111}
#client-suggestions>button:last-child{border-bottom:0}
#client-suggestions>button:hover,#client-suggestions>button[aria-selected=true]{background:#fff0f2}
#client-suggestions b{display:block;font-size:11px;font-weight:600;overflow-wrap:anywhere}
#client-suggestions small{display:block;font-size:9px;color:#777;margin-top:2px}
#client-suggestions .suggest-empty{padding:9px;font-size:11px;color:#777}
body.debt-list-mode #debt-report .list-search-filters{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr);align-items:start;gap:5px;margin:0 0 6px}
body.debt-list-mode #debt-report .header-search{margin:0;min-width:0}
body.debt-list-mode #debt-report .search-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.debt-list-mode #debt-report #search{margin:0;min-height:32px;height:32px;padding:5px 8px;font-size:14px;line-height:1.2;border-radius:5px}
body.debt-list-mode #debt-report .filters-panel{position:static;margin:0;border:0;background:transparent;border-radius:0}
body.debt-list-mode #debt-report .filters-panel>summary{display:flex;align-items:center;justify-content:center;gap:4px;padding:7px 5px;min-height:32px;font-size:11px;line-height:1.2;cursor:pointer;list-style:none;border:1px solid #d7d7d7;border-radius:5px;background:#fff}
body.debt-list-mode #debt-report .filters-panel>summary::-webkit-details-marker{display:none}
body.debt-list-mode #debt-report .filters-panel>summary::after{content:'⌄';font-size:12px;margin-left:2px}
body.debt-list-mode #debt-report .filters-panel[open]>summary{background:#fff0f2;border-color:#e2a8b0}
body.debt-list-mode #debt-report .filters-panel[open]>summary::after{content:'⌃'}
body.debt-list-mode #debt-report .filters-panel>summary>.filter-caption{display:inline;margin:0;font-size:11px;font-weight:500;color:#111}
body.debt-list-mode #debt-report #filter-selection{display:none}
body.debt-list-mode #debt-report #filter-count{display:inline-block;margin:0;font-size:9px;line-height:1;padding:3px;border-radius:3px;background:#d61c38;color:#fff}
body.debt-list-mode #debt-report #filter-count[hidden]{display:none}
body.debt-list-mode #debt-report .filterbar{position:absolute;z-index:35;left:0;right:0;top:calc(100% + 4px);padding:9px;gap:7px;border:1px solid #ddd;border-radius:6px;box-shadow:0 4px 18px #0002;background:#fff;grid-template-columns:repeat(3,minmax(0,1fr))}
body.debt-list-mode #debt-report #status:empty{display:none}
body.debt-list-mode #debt-report #status{margin:3px 0 5px;font-size:10px;line-height:1.3}
body.debt-list-mode #debt-report .list-summary{padding:6px 9px;margin:0 0 5px;border-radius:6px}
body.debt-list-mode #debt-report .totals-heading,body.debt-list-mode #debt-report .net-note{display:none}
body.debt-list-mode #debt-report .list-summary-grid{gap:7px}
body.debt-list-mode #debt-report .list-summary-grid>div+div{padding-left:7px}
body.debt-list-mode #debt-report .list-summary-grid span{font-size:9px;line-height:1.15}
body.debt-list-mode #debt-report .list-summary-grid b{font-size:16px;line-height:1.3;letter-spacing:-.3px}
body.debt-list-mode #debt-report .client-list-toolbar{margin:3px 0 5px;gap:6px}
body.debt-list-mode #debt-report .client-list-toolbar #counter{font-size:10px}
body.debt-list-mode #debt-report .client-list-toolbar>label{font-size:0;gap:0}
body.debt-list-mode #debt-report #sort{min-height:26px;height:26px;font-size:10px;padding:3px 5px;max-width:143px}
body.debt-list-mode #debt-report .debt-table-head{padding:6px 8px;font-size:9px;line-height:1.15}
body.debt-list-mode #debt-report .debt-table-row{min-height:38px;padding:4px 8px;font-size:11px;line-height:1.2}
body.debt-list-mode #debt-report .row-client b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;line-height:1.2}
body.debt-list-mode #debt-report .row-client small{font-size:8px;line-height:1.2;margin-top:1px}
body.debt-list-mode #debt-report .row-number{font-size:11px;line-height:1.2}
body.debt-list-mode #debt-report .row-client i{font-size:inherit;line-height:inherit}
body.debt-list-mode #debt-report .pagination{margin:10px 0;gap:10px;font-size:10px}
body.debt-list-mode #debt-report .pagination button{min-height:30px;padding:5px 9px;font-size:10px}
@media(max-width:360px){body.debt-list-mode #debt-report .row-client b,body.debt-list-mode #debt-report .row-number{font-size:10px}body.debt-list-mode #debt-report .list-summary-grid b{font-size:14px}body.debt-list-mode #debt-report .list-heading{gap:5px}body.debt-list-mode #debt-report #list-title{font-size:15px}body.debt-list-mode #debt-report #snapshot{font-size:7px}}
body.debt-list-mode #debt-report .filterbar{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:7px}
body.debt-list-mode #debt-report .filterbar label{display:flex;flex-direction:column;position:relative;min-width:0;gap:4px;font-size:10px;line-height:13px;white-space:nowrap;color:#666}
body.debt-list-mode #debt-report .filterbar select,body.debt-list-mode #debt-report .filterbar #kam{box-sizing:border-box;appearance:none;-webkit-appearance:none;width:100%;min-width:0;height:32px;min-height:32px;max-height:32px;margin:0;padding:5px 18px 5px 7px;font:11px/20px Arial,sans-serif;color:#111;background:#fff;border:1px solid #d7d7d7;border-radius:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.debt-list-mode #debt-report .filterbar label::after{content:'⌄';position:absolute;right:7px;bottom:7px;font-size:12px;line-height:16px;color:#555;pointer-events:none}
body.debt-list-mode #debt-report #sort{max-width:168px}
.debt-history{padding:8px 9px;margin:0 0 10px;background:#fafafa;border:1px solid #dedede;border-radius:7px;color:#111;font-size:11px;line-height:1.3}
.history-heading{display:flex;justify-content:space-between;align-items:center;gap:7px;font-size:11px}
.history-heading>span{font-size:9px;color:#777;white-space:nowrap}
.history-legend{display:flex;gap:12px;align-items:center;margin:6px 0 0;font-size:10px}
.history-legend small{margin-left:auto;font-size:9px;color:#777}
.history-debt,.history-value-debt{color:#2563eb}
.history-overdue,.history-value-overdue{color:#d61c38}
.debt-history-chart{display:block;width:100%;height:auto;overflow:visible;touch-action:pan-y}
.history-axis{fill:#666;font:9px Arial,sans-serif}
.history-grid{stroke:#e1e1e1;stroke-width:.5}
.history-grid.minor{stroke:#ededed;stroke-width:.3}
.history-line{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.history-line.history-debt{stroke:#2563eb}
.history-line.history-overdue{stroke:#d61c38}
.history-dot{stroke:#fff;stroke-width:1}
.history-dot.history-debt{fill:#2563eb}
.history-dot.history-overdue{fill:#d61c38}
.history-cursor{stroke:#aaa;stroke-width:.7;stroke-dasharray:3 3}
#debt-report .debt-history .history-day{display:block;min-height:18px;height:18px;margin:0;padding:0;width:100%;accent-color:#2563eb;border:0;background:transparent}
.history-readout{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 8px;margin:4px 0 7px;font-size:10px;font-variant-numeric:tabular-nums}
.history-readout time{color:#666}
.history-entries{border-top:1px solid #e3e3e3;padding-top:6px;font-size:11px}
.history-entries b{font-size:13px;color:#d61c38;margin-left:4px}
.history-note{margin:5px 0 0;font-size:9px;color:#777;line-height:1.3}
.history-unavailable{padding:8px;margin-bottom:8px;background:#f3f3f3;border:1px solid #ddd;border-radius:6px;font-size:11px;color:#777}

.account-page{max-width:1000px}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#e6e8eb;border:1px solid #e6e8eb;border-radius:12px;overflow:hidden;margin:24px 0}.account-field{background:#fff;padding:18px 20px;min-width:0}.account-field dt{font-size:12px;color:#737b85;margin-bottom:7px}.account-field dd{margin:0;font-size:16px;overflow-wrap:anywhere;white-space:pre-wrap}.account-block{background:#fff;border:1px solid #e6e8eb;border-radius:12px;padding:20px;margin:16px 0}.account-block h2{font-size:17px;margin:0 0 16px}.account-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.account-contact{padding:12px 0;border-top:1px solid #eee}.account-contact:first-child{border:0}.account-contact small{display:block;color:#737b85;margin-bottom:5px}.account-contact span{white-space:pre-wrap;overflow-wrap:anywhere}#account-password-form{display:grid;gap:14px;max-width:420px}#account-password-form label{display:grid;gap:6px}#account-password-form input{width:100%;box-sizing:border-box;padding:11px;border:1px solid #cdd1d6;border-radius:7px}#account-status:empty{display:none}@media(max-width:600px){.account-grid{grid-template-columns:1fr}.account-field{padding:15px}.account-page .page-head{align-items:flex-start;gap:15px}.account-block{padding:16px}}

/* Debt list controls and main-counterparty status from 1C. */
#debt-report .row-client b.client-focus,#debt-report .identity h2.client-focus{color:#17733c}
#debt-report .row-client b.client-closed,#debt-report .identity h2.client-closed{color:#b21d35}
#debt-report .snapshot-meta{display:flex;align-items:center;flex-wrap:wrap;gap:2px 8px;min-width:0}
#debt-report #sync-duration{font-size:10px;line-height:1.3;white-space:nowrap}
#debt-report #sync-duration[hidden]{display:none}
#debt-report .client-list-toolbar{flex-wrap:wrap}
#debt-report .client-list-toolbar #counter{flex:1}
#debt-report #page_size{min-width:54px;max-width:90px}
body.debt-list-mode #debt-report #sync-duration{font-size:8px;line-height:1.2}
body.debt-list-mode #debt-report #page_size{min-height:26px;height:26px;font-size:10px;padding:3px 5px}
