.work-current-sales{padding:12px 0;border-bottom:1px solid #dce2e7;margin-bottom:14px}.work-current-sales summary{cursor:pointer;font-weight:600;color:#253e33;line-height:1.4}.work-current-sales dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 16px;font-size:14px}.work-current-sales dt{color:#65717d;min-width:0}.work-current-sales dd{margin:0;text-align:right;font-weight:600;overflow-wrap:anywhere}.work-current-sales small{color:#65717d;font-size:12px;line-height:1.4}
.sales-main .oct-table :is(th, td):first-child { min-width: 165px; }
.sales-main .oct-table th:not(:first-child) { min-width: 84px; }
.sales-main .oct-table td:not(:first-child) { min-width: 0; white-space: nowrap; }
.sales-main .oct-table :is(th, td):not(:first-child),
.grt-main .oct-table th:nth-child(n+3),
.grt-main .oct-table td:nth-child(n+3),
.grt-main .oct-table td[colspan] ~ td { text-align: right; }
.grt-main .oct-table td:nth-child(n+3) { white-space: nowrap; }
.grt-excel-scroll{max-width:100%;overflow:auto;border:1px solid #b7bdc5;border-radius:0;background:#fff}
.oct-modal>.modal-panel:has(.grt-excel){width:min(1240px,100%)}
.grt-excel-table{width:100%;min-width:1040px;table-layout:fixed;border-collapse:separate;border-spacing:0;color:#17191c;font:14px/1.35 Arial,sans-serif;font-variant-numeric:tabular-nums}
.grt-excel-table .grt-name{width:32%}.grt-excel-table .grt-division{width:17%}.grt-excel-table .grt-capita{width:12%}.grt-excel-table .grt-score{width:6%}.grt-excel-table .grt-product{width:16.5%}
.grt-excel-table th,.grt-excel-table td{border-right:1px solid #c5c9ce;border-bottom:1px solid #c5c9ce;padding:8px 12px;height:35px;vertical-align:middle;background:#fff}
.grt-excel-table tr>:last-child{border-right:0}.grt-excel-table tbody:last-child tr:last-child>*{border-bottom:0}
.grt-excel-table thead th{font-size:14px;text-align:center;white-space:normal;padding:15px 10px;font-weight:700;background:#f2f3f4;border-bottom:2px solid #a7adb5}
.grt-excel-table thead th:first-child{text-align:left}
.grt-excel-table tbody td:nth-last-child(-n+4){text-align:right;white-space:nowrap}
.grt-excel-table .grt-limits th{font-size:12px;font-weight:600;text-align:left;white-space:normal;padding:7px 10px}
.grt-excel-table .grt-limits td{font-weight:700;font-size:13px;padding:7px 12px}
.grt-excel-table .grt-limits tr:last-child>*{border-bottom:2px solid #9ba2ab}
.grt-excel-table .grt-people th{text-align:left;font-weight:400;white-space:normal}
.grt-excel-table .grt-people td:nth-child(2){font-size:13px;text-align:left;white-space:normal}
.grt-excel-table .grt-rop th,.grt-excel-table .grt-rop td{font-weight:700}
.grt-excel-table .grt-source-capita{background:#c0c0c0}
.grt-excel-table td.mail-grt-red{background:#ff6464;color:#17191c}
.grt-excel-table td.mail-grt-blue{background:#50aaff;color:#17191c}
.grt-excel-table td.mail-grt-white{background:#fff;color:#17191c}
.grt-excel-scroll:focus-visible{outline:2px solid #a31c29;outline-offset:2px}
@media(max-width:700px){.grt-excel-table{min-width:990px;font-size:13px}.grt-excel-table th,.grt-excel-table td{padding:8px}.grt-excel-table .grt-name{width:28%}.grt-excel-table .grt-division{width:18%}.grt-excel-table .grt-capita{width:12%}.grt-excel-table .grt-score{width:7%}.grt-excel-table .grt-product{width:17.5%}}
.report-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; align-items: baseline; margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.report-meta details { max-width: 100%; }
.report-meta details[open] { flex-basis: 100%; }
.report-meta summary, .debt-payments summary { cursor: pointer; color: #34495f; }
.report-meta summary:hover, .debt-payments summary:hover { color: var(--accent-dark); }
.report-meta details p { margin: 5px 0 0; overflow-wrap: anywhere; }
.debt-meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
.debt-meta .report-meta { margin: 0; }
.debt-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.debt-total > span { color: var(--muted); font-size: 13px; }
.debt-total > strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.debt-overdue { color: var(--accent-dark); }
.debt-table :is(th, td):nth-child(2), .debt-table :is(th, td):nth-child(3) { text-align: right; }
.debt-table td:nth-child(2), .debt-table td:nth-child(3) { min-width: 0; white-space: nowrap; }
@media (min-width: 581px) {
  .debt-table :is(th, td):last-child:not([colspan]) { width: 27%; }
}
.debt-table .debt-group > th { position: static; background: #edf0f4; color: var(--ink); border-top: 1px solid var(--line); }
.debt-group-total { float: right; margin-left: 12px; white-space: nowrap; color: var(--muted); font-size: 12px; }
.debt-payments summary { width: fit-content; font-weight: 600; }
.debt-payments ul { margin: 7px 0 1px; padding: 0; list-style: none; }
.debt-payments li { display: grid; grid-template-columns: 1fr auto; gap: 2px 7px; padding: 4px 0; border-top: 1px solid var(--line); }
.debt-payments li > strong { text-align: right; white-space: nowrap; }
.debt-payments time { white-space: nowrap; }
.debt-payments li > small { margin-top: 0; grid-column: 1 / -1; }
.debt-critical-chip { display: inline-block; width: fit-content; padding: 2px 6px; border-radius: 4px; background: #fce6e8; color: #9c1825; font-size: 12px; font-weight: 700; }
.debt-table .debt-client-age { display: block; margin-top: 4px; }
.debt-table small.debt-critical-chip { color: #9c1825; }
.debt-payment-single ul { margin: 0; }
.debt-payment-single li { padding: 0; border-top: 0; }
.debt-view .debt-critical-filter { margin-bottom: 10px; padding: 5px 9px; border: 1px solid #c02a37; border-radius: 5px; background: #fff; color: #9c1825; cursor: pointer; font-weight: 600; }
.debt-view .debt-critical-filter[aria-pressed=true] { background: #9c1825; color: #fff; }
.debt-view.is-critical-only tbody:not(:has(.debt-critical-row)), .debt-view.is-critical-only tbody tr:not(.debt-group,.debt-critical-row) { display: none; }
.retention-toolbar label { min-width: 0; display: grid; gap: 5px; }
.retention-toolbar input { max-width: 100%; }

@media (max-width: 580px) {
  .debt-table { display: block; position: relative; }
  .debt-table thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .debt-table tbody, .debt-table .debt-group > th { display: block; }
  .debt-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 7px 10px; border-top: 1px solid var(--line); }
  .debt-table .debt-group { display: block; padding: 0; border-top: 0; }
  .debt-group-total { float: none; display: block; margin: 2px 0 0; }
  .debt-table tbody tr:not(.debt-group) > td { min-width: 0; width: auto; padding: 3px 0; border: 0; background: transparent; text-align: left; }
  .debt-table td:first-child, .debt-table td:last-child { grid-column: 1 / -1; }
  .debt-table td:nth-child(2)::before, .debt-table td:nth-child(3)::before { display: block; font-size: 11px; color: var(--muted); }
  .debt-table td:nth-child(2)::before { content: 'Общий долг'; }
  .debt-table td:nth-child(3)::before { content: 'Просрочено'; }
  .debt-table .debt-payments summary { padding: 5px 0; }
}

#planningDetails:has(.sales-branch) { grid-template-columns: minmax(0, 1fr); }
.sales-branch .oct-table td:first-child { min-width: 205px; }
.sales-branch .sales-total td { font-weight: 650; }
.sales-branch .oct-table .sales-total-branch td:not([class^="mail-grt-"]) { background: #e7eef7; }
.sales-branch .oct-table .sales-total-rop td:not([class^="mail-grt-"]) { background: #fceff1; }
.sales-total-branch td:first-child { border-left: 3px solid #45617d; }
.sales-total-rop td:first-child { border-left: 3px solid var(--accent-dark); }
.sales-expand { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 7px; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); cursor: pointer; vertical-align: middle; font-size: 18px; line-height: 1; }
.sales-expand:hover { border-color: var(--accent-dark); color: var(--accent-dark); }
.sales-branch .oct-table .sales-member td:first-child { padding-left: 26px; }
.grt-compact-mpp col.grt-name{width:28%}
.grt-compact-mpp col.grt-division{width:14%}
.grt-compact-mpp col.grt-capita{width:10%}
.grt-compact-mpp col.grt-score{width:6%}
.grt-compact-mpp col.grt-product{width:21%}
