.rd-calculator-page {
  display:flex;
  flex-direction:column;
  gap:18px;
}
.rd-calculator-hero {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  padding:22px 24px;
  background:linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
  border:1px solid var(--line-strong);
  border-radius:8px;
  box-shadow:var(--shadow);
}
.rd-calculator-hero h1 {
  margin:8px 0 0;
  color:var(--brand);
  font-size:clamp(24px, 3vw, 34px);
  line-height:1.12;
}
.rd-hero-note {
  flex:0 0 auto;
  padding:9px 12px;
  border:1px solid #cdd8ec;
  border-radius:8px;
  background:#ffffff;
  color:var(--brand);
  font-weight:800;
}
.rd-calculator-grid {
  display:grid;
  grid-template-columns:minmax(0, 1.1fr) minmax(360px, .9fr);
  gap:18px;
  align-items:start;
}
.rd-panel {
  background:var(--panel);
  border:1px solid var(--line-strong);
  border-radius:8px;
  padding:20px;
  box-shadow:var(--shadow);
}
.rd-result-panel {
  position:sticky;
  top:62px;
}
.rd-panel-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
}
.rd-panel-head.compact {
  margin-bottom:12px;
  padding-bottom:8px;
}
.rd-panel-head h2 {
  margin:0;
  color:var(--brand);
  font-size:21px;
  line-height:1.2;
}
.rd-form-row {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}
.rd-form-group {
  margin-bottom:14px;
}
.rd-form-group label {
  display:block;
  margin-bottom:6px;
  color:#263553;
  font-weight:800;
  font-size:14px;
}
.rd-form-group input[type="number"],
.rd-form-group select {
  width:100%;
  min-height:44px;
  border:1px solid #c8d3e5;
  border-radius:8px;
  background:#ffffff;
  color:var(--ink);
  font:inherit;
  font-size:16px;
  padding:9px 11px;
}
.rd-form-group input[type="number"]:focus,
.rd-form-group select:focus {
  outline:3px solid rgba(10, 44, 130, .14);
  border-color:var(--brand-2);
}
.rd-option-box {
  display:grid;
  gap:8px;
  padding:10px;
  border:1px solid var(--line-strong);
  border-radius:8px;
  background:#f8fbff;
}
.rd-option-box.compact {
  display:block;
}
.rd-option {
  display:flex;
  align-items:flex-start;
  gap:10px;
  min-height:40px;
  padding:9px 10px;
  border:1px solid transparent;
  border-radius:8px;
  background:#ffffff;
  color:#283654;
  cursor:pointer;
}
.rd-option:hover {
  border-color:#cbd7ec;
  background:#fdfefe;
}
.rd-option input {
  width:18px;
  height:18px;
  margin-top:2px;
  accent-color:var(--brand-2);
  flex:0 0 auto;
}
.rd-option span {
  min-width:0;
  overflow-wrap:anywhere;
  line-height:1.35;
}
.rd-trusted-panel {
  margin-top:4px;
  padding:16px;
  border:1px solid #badbc9;
  border-radius:8px;
  background:#f5fbf7;
}
.rd-verdict-card {
  margin-bottom:14px;
  padding:16px;
  border-radius:8px;
  font-weight:900;
  text-align:center;
  font-size:18px;
  line-height:1.28;
}
.rd-verdict-card.verdict-rd {
  color:#075c38;
  background:#e8f7ef;
  border:1px solid #b9e2ca;
}
.rd-verdict-card.verdict-ri {
  color:#9d241c;
  background:#fff0ed;
  border:1px solid #fac7bf;
}
.rd-verdict-card.verdict-stop {
  color:#9b4a00;
  background:#fff5df;
  border:1px solid #f0d08e;
}
.rd-math-list {
  display:grid;
  gap:8px;
}
.rd-math-row {
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:12px;
  align-items:center;
  min-height:42px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#ffffff;
}
.rd-math-row span {
  color:#52617b;
  min-width:0;
  overflow-wrap:anywhere;
}
.rd-math-row b {
  color:var(--brand);
  font-size:16px;
  white-space:nowrap;
}
.rd-math-row.strong {
  background:#eef5ff;
  border-color:#ccd8ed;
}
.rd-math-row.good {
  background:#f4fbf6;
  border-color:#c7e2d0;
}
.rd-math-row.good b,
.rd-math-row.total b {
  color:var(--good);
}
.rd-math-row.total {
  background:#eefaf3;
  border-color:#aed8bf;
  font-weight:900;
}
.rd-crm-box {
  margin-top:14px;
  border:1px solid #cfdaec;
  border-radius:8px;
  background:#f8fbff;
  overflow:hidden;
}
.rd-crm-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  background:#ffffff;
}
.rd-crm-head label {
  margin:0;
  color:var(--brand);
  font-weight:900;
}
.rd-copy {
  min-height:34px;
  padding:6px 10px;
}
.rd-copy:disabled {
  opacity:.7;
  cursor:default;
}
.rd-crm-text {
  margin:0;
  min-height:220px;
  max-height:420px;
  overflow:auto;
  white-space:pre-wrap;
  word-break:break-word;
  color:#1f3154;
  background:#f8fbff;
  padding:14px;
  font:13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 980px) {
  .rd-calculator-grid {
    grid-template-columns:minmax(0, 1fr);
  }
  .rd-result-panel {
    position:static;
  }
  .rd-calculator-hero {
    align-items:flex-start;
    flex-direction:column;
  }
}

@media (max-width: 640px) {
  .rd-calculator-hero,
  .rd-panel {
    padding:16px;
  }
  .rd-calculator-hero h1 {
    font-size:25px;
  }
  .rd-form-row {
    grid-template-columns:minmax(0, 1fr);
    gap:0;
  }
  .rd-math-row {
    grid-template-columns:minmax(0, 1fr);
    gap:3px;
  }
  .rd-math-row b {
    white-space:normal;
  }
  .rd-crm-head {
    align-items:flex-start;
    flex-direction:column;
  }
  .rd-copy {
    width:100%;
  }
}

.telegram-required-panel {
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto auto;
  align-items:center;
  gap:16px;
  border-left:6px solid var(--warn);
  background:#fffaf0;
}
.telegram-required-panel[hidden] { display:none; }
.telegram-required-body {
  grid-column:1;
  grid-row:1;
  min-width:0;
}
.telegram-required-panel h2 {
  margin:6px 0 4px;
}
.telegram-required-panel p {
  margin:0 0 6px;
}
.telegram-required-button {
  grid-column:2;
  grid-row:1;
  white-space:nowrap;
}
.telegram-required-panel .next-step-dismiss {
  grid-column:3;
  grid-row:1;
}

@media (max-width: 760px) {
  .telegram-required-panel {
    grid-template-columns:minmax(0, 1fr) auto;
    align-items:start;
  }
  .telegram-required-body {
    grid-column:1;
    grid-row:1;
  }
  .telegram-required-button {
    grid-column:1 / -1;
    grid-row:2;
    width:100%;
  }
  .telegram-required-panel .next-step-dismiss {
    grid-column:2;
    grid-row:1;
  }
}

.payment-upload-grid {
  display:grid;
  grid-template-columns:repeat(3, minmax(160px, 1fr)) minmax(150px, auto);
  gap:14px;
  align-items:end;
}
.payment-final-check {
  display:flex;
  gap:10px;
  align-items:center;
  min-height:44px;
  margin:0 0 2px;
  padding:10px 12px;
  border:1px solid var(--line-strong);
  border-radius:8px;
  background:#f8fbff;
  color:var(--ink);
}
.payment-final-check input {
  width:auto;
  margin:0;
}
.payment-notice {
  display:flex;
  align-items:center;
  gap:10px;
  border-left:4px solid var(--brand-3);
}
.payment-periods h2,
.payment-report-table h2 {
  margin-top:0;
}
.bankruptcy-payout-page {
  display:grid;
  gap:10px;
}
.bankruptcy-payout-main-workspace-head {
  display:grid;
  gap:10px;
  padding:11px 12px 12px;
  border:1px solid #cfdef0;
  border-radius:8px;
  background:linear-gradient(145deg,#ffffff 0%,#f7fbff 100%);
  box-shadow:0 7px 20px rgba(27,53,93,.05);
}
.bankruptcy-payout-register-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 0 10px;
  border-bottom:1px solid #d8e5f5;
}
.bankruptcy-payout-register-head h1 {
  margin:0;
  color:#10264d;
  font-size:26px;
  line-height:1.05;
}
.bankruptcy-payout-hero {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  padding:14px 18px;
  border:1px solid #cfe0f6;
  border-radius:8px;
  background:linear-gradient(135deg,#ffffff 0%,#eef7ff 58%,#fff8e8 100%);
  box-shadow:0 10px 28px rgba(27,53,93,.08);
}
.bankruptcy-payout-hero.compact {
  align-items:center;
}
.bankruptcy-payout-kicker {
  margin:0 0 4px;
  color:#1f7a54;
  font-size:12px;
  font-weight:900;
  letter-spacing:0;
  text-transform:uppercase;
}
.bankruptcy-payout-hero h1 {
  margin:0;
  color:#10264d;
  font-size:26px;
  line-height:1.1;
}
.bankruptcy-payout-hero p:not(.bankruptcy-payout-kicker) {
  max-width:720px;
  margin:6px 0 0;
  color:#52627d;
  font-size:14px;
}
.bankruptcy-payout-hero .toolbar {
  margin:0;
  justify-content:flex-end;
}
.bankruptcy-payout-hero-metric {
  flex:0 0 auto;
  min-width:190px;
  padding:11px 14px;
  border:1px solid #bfe2d0;
  border-radius:8px;
  background:#ffffff;
  box-shadow:0 8px 22px rgba(31,122,84,.11);
}
.bankruptcy-payout-hero-metric span {
  display:block;
  margin-bottom:4px;
  color:#5c6b80;
  font-size:13px;
  font-weight:800;
}
.bankruptcy-payout-hero-metric b {
  display:block;
  color:#1f7a54;
  font-size:24px;
  line-height:1.1;
}
.bankruptcy-payout-main-nav {
  display:flex;
  min-width:0;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  justify-content:flex-end;
}
.bankruptcy-payout-main-nav .curator-links {
  margin:0;
}
.bankruptcy-payout-main-nav .bankruptcy-payout-section-nav,
.bankruptcy-payout-main-nav .bankruptcy-payout-dataset-switch {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.bankruptcy-payout-main-nav .bankruptcy-payout-dataset-switch .button,
.bankruptcy-payout-main-nav .bankruptcy-payout-section-nav .nav-chip {
  min-height:32px;
  padding:6px 9px;
  font-size:13px;
}
.bankruptcy-payout-main-tabs-shell {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.bankruptcy-payout-main-tabs-label {
  flex:0 0 auto;
  color:#657590;
  font-size:11px;
  font-weight:900;
  letter-spacing:.035em;
  text-transform:uppercase;
}
.bankruptcy-payout-main-workspace-head .bankruptcy-payout-main-tabs {
  position:static;
  display:flex;
  flex:1 1 auto;
  flex-wrap:wrap;
  gap:6px;
  min-width:0;
  padding:0;
  background:transparent;
}
.bankruptcy-payout-main-workspace-head .bankruptcy-payout-main-tabs .nav-chip {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:6px 12px;
  border-color:#c9d9ec;
  box-shadow:none;
}
.bankruptcy-payout-main-workspace-head .bankruptcy-payout-main-tabs .nav-chip.active {
  border-color:#1f7a54;
  box-shadow:inset 0 -2px 0 #1f7a54;
}
.bankruptcy-payout-empty-state {
  display:grid;
  place-items:center start;
  min-height:126px;
  padding:18px 24px;
  border-color:#cfdef0;
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);
  box-shadow:none;
}
.bankruptcy-payout-empty-state h2 {
  margin:0;
  color:#10264d;
  font-size:18px;
}
.bankruptcy-payout-empty-state p {
  max-width:680px;
  margin:5px 0 0;
}
.bankruptcy-payout-compact-stats {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(104px,1fr));
  gap:6px;
}
.bankruptcy-payout-compact-stat {
  display:flex;
  min-height:42px;
  flex-direction:column-reverse;
  justify-content:center;
  gap:3px;
  padding:7px 9px;
  border:1px solid #d8e5f5;
  border-left:3px solid #2f6edb;
  border-radius:8px;
  background:#ffffff;
  color:#10264d;
  text-decoration:none;
  box-shadow:0 6px 16px rgba(27,53,93,.04);
}
.bankruptcy-payout-compact-stat:hover {
  border-color:#9ec4ff;
  background:#f7fbff;
}
.bankruptcy-payout-compact-stat span {
  color:#657590;
  font-size:11px;
  font-weight:800;
  line-height:1.15;
}
.bankruptcy-payout-compact-stat b {
  color:#10264d;
  font-size:17px;
  line-height:1;
}
.bankruptcy-payout-compact-stat .pill {
  align-self:flex-start;
  margin:0;
}
.bankruptcy-payout-compact-stat.soft {
  border-left-color:#9fb2cc;
  background:#fbfdff;
}
.bankruptcy-payout-compact-stat.due,
.bankruptcy-payout-compact-stat.money {
  border-left-color:#1f7a54;
}
.bankruptcy-payout-compact-stat.due b,
.bankruptcy-payout-compact-stat.money b {
  color:#1f7a54;
}
.bankruptcy-payout-compact-stat.paid {
  border-left-color:#36a36a;
}
.bankruptcy-payout-compact-stat.warn {
  border-left-color:#f2b84b;
}
.bankruptcy-payout-page .payment-report-filters {
  padding:10px 12px;
  border-color:#cfdef0;
  background:#ffffff;
  box-shadow:none;
}
.bankruptcy-payout-page .payment-report-filters .payment-upload-grid {
  grid-template-columns:minmax(280px,1fr) 150px auto;
  gap:10px;
  align-items:end;
}
.bankruptcy-payout-filter-actions {
  display:flex;
  gap:8px;
  align-items:center;
  white-space:nowrap;
}
.bankruptcy-payout-filter-actions .button,
.bankruptcy-payout-filter-actions button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:38px;
  min-width:104px;
}
.bankruptcy-payout-withdrawal-filters {
  padding:10px 12px;
  border-color:#cfdef0;
  background:#ffffff;
  box-shadow:none;
}
.bankruptcy-payout-withdrawal-filter-grid {
  display:grid;
  grid-template-columns:minmax(230px,1.7fr) minmax(130px,.85fr) minmax(120px,.7fr) minmax(130px,.7fr) minmax(130px,.7fr) auto;
  gap:8px;
  align-items:end;
}
.bankruptcy-payout-withdrawal-filter-grid label {
  display:grid;
  min-width:0;
  gap:4px;
  color:#657590;
  font-size:12px;
  font-weight:850;
}
.bankruptcy-payout-withdrawal-filter-grid input,
.bankruptcy-payout-withdrawal-filter-grid select {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:38px;
}
.bankruptcy-payout-bank-filter {
  position:relative;
  min-width:0;
}
.bankruptcy-payout-bank-filter summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:38px;
  padding:0 10px;
  border:1px solid #cfdbea;
  border-radius:8px;
  color:#657590;
  cursor:pointer;
  list-style:none;
}
.bankruptcy-payout-bank-filter summary::-webkit-details-marker { display:none; }
.bankruptcy-payout-bank-filter summary::after { content:'⌄'; color:#56718f; font-size:14px; }
.bankruptcy-payout-bank-filter summary span { font-size:12px; font-weight:850; }
.bankruptcy-payout-bank-filter summary b { color:#244b73; font-size:12px; font-weight:750; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bankruptcy-payout-bank-filter[open] summary {
  border-color:#75a9d8;
  background:#f5faff;
}
.bankruptcy-payout-bank-filter-options {
  position:absolute;
  z-index:12;
  top:calc(100% + 4px);
  left:0;
  width:min(320px, calc(100vw - 36px));
  max-height:280px;
  overflow:auto;
  padding:8px;
  border:1px solid #bcd2e9;
  border-radius:10px;
  background:#fff;
  box-shadow:0 12px 30px rgba(28,57,92,.16);
}
.bankruptcy-payout-bank-filter-options label {
  display:flex;
  align-items:center;
  gap:7px;
  min-height:30px;
  padding:2px 5px;
  color:#284866;
  cursor:pointer;
}
.bankruptcy-payout-bank-filter-options label:hover { background:#f0f7ff; }
.bankruptcy-payout-bank-filter-options input { width:auto; min-height:0; margin:0; }
.bankruptcy-payout-bank-filter-all { margin-bottom:5px; border-bottom:1px solid #e1ebf4; font-weight:850; }
.bankruptcy-payout-withdrawal-filter-grid .bankruptcy-payout-filter-actions {
  display:grid;
  grid-template-columns:repeat(2,minmax(104px,1fr));
  min-width:216px;
  white-space:normal;
}
.bankruptcy-payout-withdrawal-filter-grid .bankruptcy-payout-filter-actions .button,
.bankruptcy-payout-withdrawal-filter-grid .bankruptcy-payout-filter-actions button {
  width:100%;
  min-width:0;
}
.bankruptcy-payout-inline-actions {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:stretch;
}
.bankruptcy-payout-inline-actions .button,
.bankruptcy-payout-inline-actions button {
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:150px;
  min-height:38px;
  margin:0;
  padding:7px 10px;
  white-space:nowrap;
}
.bankruptcy-payout-inline-actions form {
  display:flex;
  margin:0;
}
.bankruptcy-payout-income-selection-summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 8px;
  padding:7px 10px;
  border:1px solid #d8e5f5;
  border-radius:8px;
  background:#f8fbff;
  color:#52627d;
  font-size:12px;
}
.bankruptcy-payout-income-selection-summary b,
.bankruptcy-payout-income-selection-summary strong {
  color:#10264d;
}
.bankruptcy-payout-income-select {
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin:0 7px 0 0;
  color:#657590;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}
.bankruptcy-payout-income-select input {
  width:auto;
  margin:0;
}
.bankruptcy-payout-income-select.all {
  display:flex;
  margin:0 0 4px;
}
.bankruptcy-payout-page-numbers {
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.bankruptcy-payout-page-number,
.bankruptcy-payout-page-arrow {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  min-width:32px;
  height:32px;
  margin:0;
  padding:0 8px;
  border:1px solid #d8e1ed;
  border-radius:999px;
  background:#ffffff;
  color:#38506f;
  font-size:13px;
  font-weight:700;
  line-height:1;
  text-decoration:none;
}
.bankruptcy-payout-page-number:hover,
.bankruptcy-payout-page-number:focus-visible,
.bankruptcy-payout-page-arrow:hover,
.bankruptcy-payout-page-arrow:focus-visible {
  border-color:#75a9d8;
  background:#edf7ff;
  color:#0b5b96;
  outline:0;
}
.bankruptcy-payout-page-number.active {
  border-color:#177fc8;
  background:#177fc8;
  color:#ffffff;
}
.bankruptcy-payout-page-arrow {
  min-width:32px;
  padding:0;
  font-size:22px;
  font-weight:500;
}
.bankruptcy-payout-page-arrow.muted {
  opacity:.48;
}
.bankruptcy-payout-page-ellipsis {
  color:#7b8798;
  font-weight:700;
}
@media (max-width: 1100px) {
  .bankruptcy-payout-withdrawal-filter-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .bankruptcy-payout-withdrawal-filter-grid .bankruptcy-payout-search-field {
    grid-column:span 2;
  }
  .bankruptcy-payout-withdrawal-filter-grid .bankruptcy-payout-filter-actions {
    min-width:0;
  }
}
@media (max-width: 680px) {
  .bankruptcy-payout-withdrawal-filter-grid {
    grid-template-columns:minmax(0,1fr);
  }
  .bankruptcy-payout-withdrawal-filter-grid .bankruptcy-payout-search-field {
    grid-column:auto;
  }
  .bankruptcy-payout-income-selection-summary {
    align-items:flex-start;
    flex-direction:column;
  }
  .bankruptcy-payout-inline-actions .button,
  .bankruptcy-payout-inline-actions button {
    width:100%;
  }
}
.bankruptcy-payout-simple-search .payment-upload-grid {
  grid-template-columns:minmax(280px,1fr) auto;
}
.bankruptcy-payout-simple-search .bankruptcy-payout-search-field label {
  display:block;
  margin-bottom:4px;
  color:#657590;
  font-size:12px;
  font-weight:850;
}
.bankruptcy-payout-main-tabs {
  position:sticky;
  top:0;
  z-index:8;
  gap:8px;
  padding:6px 0;
  background:#f4f7fb;
}
.bankruptcy-payout-main-tabs .nav-chip {
  border:1px solid #cfe0f4;
  border-radius:8px;
  background:#ffffff;
  color:#10264d;
  font-weight:900;
}
.bankruptcy-payout-main-tabs .nav-chip.active {
  border-color:#1f7a54;
  background:#e8f8ee;
  color:#1f7a54;
}
.bankruptcy-payout-section-body {
  display:grid;
  gap:12px;
}
.bankruptcy-payout-section-total {
  min-width:190px;
  padding:8px 10px;
  border:1px solid #b9e4c9;
  border-radius:8px;
  background:#f0fff5;
  color:#1f7a54;
  text-align:right;
}
.bankruptcy-payout-section-total span,
.bankruptcy-payout-section-total small {
  display:block;
  color:#657590;
  font-size:11px;
  font-weight:850;
}
.bankruptcy-payout-section-total b {
  display:block;
  margin:2px 0;
  color:#1f7a54;
  font-size:20px;
  line-height:1;
}
.bankruptcy-payout-page .bankruptcy-payout-income-queue-table {
  min-width:860px;
}
.bankruptcy-payout-page .bankruptcy-payout-income-history-table {
  min-width:980px;
}
.bankruptcy-payout-income-queue-table td:nth-child(2),
.bankruptcy-payout-income-history-table td:nth-child(2),
.bankruptcy-payout-income-history-table td:nth-child(6) {
  white-space:nowrap;
}
.bankruptcy-payout-income-queue-table td:nth-child(3),
.bankruptcy-payout-income-history-table td:nth-child(3) {
  color:#1f7a54;
  white-space:nowrap;
}
.bankruptcy-payout-income-queue-table td:last-child {
  white-space:nowrap;
}
.bankruptcy-payout-registry-filters {
  margin:-2px 0 8px;
}
.bankruptcy-payout-import-history {
  padding:0;
}
.bankruptcy-payout-import-history > summary {
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  cursor:pointer;
  color:#10264d;
  font-weight:900;
}
.bankruptcy-payout-import-history > summary small {
  color:#657590;
  font-size:12px;
}
.bankruptcy-payout-import-history > summary::-webkit-details-marker {
  display:none;
}
.bankruptcy-payout-import-history > :not(summary) {
  margin:0 14px 14px;
}
.bankruptcy-payout-work-panel {
  padding:11px 12px;
  box-shadow:none;
}
.bankruptcy-payout-work-panel .cabinet-zone-head {
  align-items:flex-start;
  gap:12px;
  margin-bottom:10px;
  padding-bottom:9px;
  border-bottom:1px solid #e0eaf6;
}
.bankruptcy-payout-work-panel .cabinet-zone-head h2 {
  font-size:18px;
  line-height:1.2;
}
.bankruptcy-payout-work-panel .cabinet-zone-head p {
  margin-top:2px;
}
.bankruptcy-payout-page .panel {
  border-color:#d8e3f3;
}
.bankruptcy-payout-page .stats-grid .stat {
  border:1px solid #d8e5f5;
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);
}
.bankruptcy-payout-page .stats-grid .stat b {
  color:#10264d;
}
.bankruptcy-payout-page .table-wrap {
  max-width:100%;
  overflow:auto;
  border:1px solid #d8e5f5;
  border-radius:8px;
  background:#ffffff;
  scrollbar-color:#aac4e3 #f3f7fc;
}
.bankruptcy-payout-page .payments-table {
  min-width:920px;
  border-collapse:separate;
  border-spacing:0;
  font-size:13px;
}
.bankruptcy-payout-page .payments-table thead th {
  position:sticky;
  top:0;
  z-index:4;
  background:#eef5ff;
  color:#10264d;
  padding:9px 10px;
  font-size:12px;
  letter-spacing:.01em;
}
.bankruptcy-payout-page .payments-table td {
  padding:9px 10px;
  vertical-align:middle;
}
.bankruptcy-payout-sort-link {
  color:#10264d;
  font-weight:900;
  text-decoration:none;
}
.bankruptcy-payout-sort-link:hover,
.bankruptcy-payout-sort-link.active {
  color:#1f7a54;
  text-decoration:underline;
  text-underline-offset:3px;
}
.bankruptcy-payout-page .payments-table tbody tr:hover {
  background:#f7fbff;
}
.bankruptcy-payout-page .payments-table th:first-child,
.bankruptcy-payout-page .payments-table td:first-child {
  position:sticky;
  left:0;
  z-index:3;
  min-width:230px;
  max-width:320px;
  background:#ffffff;
  box-shadow:8px 0 14px rgba(16,38,77,.06);
}
.bankruptcy-payout-page .payments-table thead th:first-child {
  z-index:5;
  background:#e6f1ff;
}
.bankruptcy-payout-page .payments-table tbody tr:hover td:first-child {
  background:#f7fbff;
}
.bankruptcy-payout-page .payments-table tr.payout-row-paid td:first-child {
  border-left:4px solid #1f7a54;
}
.bankruptcy-payout-page .payments-table tr.payout-row-paid td {
  background:#fbfffd;
}
.bankruptcy-payout-page .payments-table tr.payout-row-missing-bitrix td {
  background:#fffdf4;
}
.bankruptcy-payout-page .payments-table tr.payout-row-discrepancy td {
  background:#fff7f4;
}
.bankruptcy-payout-page .payments-table tr.payout-row-missing-end td {
  box-shadow:inset 0 -1px 0 #f2b84b;
}
.bankruptcy-payout-page .payments-table tr.payout-row-paid:hover td,
.bankruptcy-payout-page .payments-table tr.payout-row-missing-bitrix:hover td,
.bankruptcy-payout-page .payments-table tr.payout-row-discrepancy:hover td {
  background:#f7fbff;
}
.bankruptcy-payout-filter-chips {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:6px;
}
.bankruptcy-payout-filter-chip {
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:30px;
  padding:5px 9px;
  border:1px solid #d8e5f5;
  border-radius:999px;
  background:#ffffff;
  color:#10264d;
  font-size:13px;
  font-weight:850;
  text-decoration:none;
}
.bankruptcy-payout-filter-chip b {
  min-width:24px;
  padding:2px 7px;
  border-radius:999px;
  background:#eef5ff;
  color:#2f6edb;
  font-size:12px;
  text-align:center;
}
.bankruptcy-payout-filter-chip:hover,
.bankruptcy-payout-filter-chip.active {
  border-color:#95d2ae;
  background:#e8f8ee;
  color:#1f7a54;
}
.bankruptcy-payout-filter-chip.active b {
  background:#1f7a54;
  color:#ffffff;
}
.bankruptcy-payout-filter-note {
  display:inline-flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:12px;
  padding:8px 10px;
  border:1px solid #d8e5f5;
  border-radius:8px;
  background:#f7fbff;
  color:#5c6b80;
  font-size:13px;
  font-weight:800;
}
.bankruptcy-payout-filter-note span {
  color:#7890ad;
}
.bankruptcy-payout-filter-note b {
  color:#10264d;
}
.bankruptcy-payout-row-legend {
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  margin-top:10px;
  padding:10px 12px;
  border:1px dashed #c9d8ea;
  border-radius:8px;
  background:#fbfdff;
  color:#5c6b80;
  font-size:13px;
  font-weight:800;
}
.bankruptcy-payout-row-legend span {
  display:inline-flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
}
.bankruptcy-payout-row-legend i {
  width:18px;
  height:10px;
  border-radius:999px;
  border:1px solid #d8e5f5;
}
.bankruptcy-payout-row-legend i.paid {
  border-left:4px solid #1f7a54;
  background:#fbfffd;
}
.bankruptcy-payout-row-legend i.missing-bitrix {
  background:#fffdf4;
}
.bankruptcy-payout-row-legend i.discrepancy {
  background:#fff7f4;
}
.bankruptcy-payout-row-legend i.missing-end {
  box-shadow:inset 0 -2px 0 #f2b84b;
}
.bankruptcy-payout-filter-summary {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:10px;
  align-items:stretch;
  border-left:4px solid #1f7a54;
  background:linear-gradient(135deg,#f7fff9 0%,#ffffff 55%,#f7fbff 100%);
}
.bankruptcy-payout-section-nav {
  gap:8px;
  margin-top:-4px;
}
.bankruptcy-payout-section-nav .nav-chip {
  border-radius:8px;
  font-weight:900;
}
.bankruptcy-payout-main-stats {
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:10px;
}
.bankruptcy-payout-main-stats .stat {
  min-height:76px;
  padding:12px 14px;
  border-left:4px solid #2f6edb;
}
.bankruptcy-payout-main-stats .stat .pill {
  margin-top:6px;
}
@media (max-width: 860px) {
  .bankruptcy-payout-main-workspace-head {
    padding:10px;
  }
  .bankruptcy-payout-empty-state {
    min-height:104px;
    padding:14px;
  }
  .bankruptcy-payout-register-head,
  .bankruptcy-payout-main-tabs-shell {
    align-items:stretch;
    flex-direction:column;
  }
  .bankruptcy-payout-main-nav {
    justify-content:flex-start;
  }
  .bankruptcy-payout-main-workspace-head .bankruptcy-payout-main-tabs {
    flex-wrap:nowrap;
    width:100%;
    overflow-x:auto;
    padding-bottom:2px;
    scrollbar-width:thin;
  }
  .bankruptcy-payout-main-workspace-head .bankruptcy-payout-main-tabs .nav-chip {
    flex:0 0 auto;
  }
}
.bankruptcy-payout-paid-stats {
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
}
.bankruptcy-payout-paid-registry-table {
  min-width:1040px;
}
.bankruptcy-payout-activity-table {
  min-width:1080px;
}
.bankruptcy-payout-distribution-report-table {
  min-width:1120px;
}
.bankruptcy-payout-activity-table td:nth-child(1) {
  white-space:nowrap;
}
.bankruptcy-payout-activity-table td:nth-child(5) {
  max-width:420px;
  overflow-wrap:anywhere;
}
.bankruptcy-payout-distribution-report-table td:nth-child(1),
.bankruptcy-payout-distribution-report-table td:nth-child(4) {
  white-space:nowrap;
}
.bankruptcy-payout-distribution-substats {
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
}
.bankruptcy-payout-paid-registry-table td:nth-child(1) {
  white-space:nowrap;
}
.bankruptcy-payout-paid-registry-table td:nth-child(3) {
  color:#10264d;
  white-space:nowrap;
}
.bankruptcy-payout-paid-filters .payment-upload-grid {
  grid-template-columns:minmax(240px,1.4fr) repeat(3,minmax(130px,.7fr));
}
.payments-table td:nth-child(1),
.payments-table td:nth-child(4),
.payments-table td:nth-child(5),
.payments-table td:nth-child(6) {
  white-space:nowrap;
}
.payments-table td:nth-child(4) b,
.payments-table td:nth-child(5),
.payments-table td:nth-child(6) {
  color:var(--brand);
  font-size:17px;
  font-weight:700;
}
.bankruptcy-payout-card-summary {
  border-left:4px solid #2f6edb;
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);
}
.bankruptcy-payout-card-summary h2 {
  margin:0 0 12px;
}
.bankruptcy-payout-contract-status {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:14px;
  padding:12px 14px;
  border:1px solid #bfe2d0;
  border-radius:8px;
  background:linear-gradient(135deg,#f2fff6 0%,#ffffff 100%);
}
.bankruptcy-payout-contract-badge {
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:28px;
  padding:5px 10px;
  border:1px solid #95d2ae;
  border-radius:999px;
  background:#e8f8ee;
  color:#1f7a54;
  font-size:13px;
  font-weight:900;
  line-height:1.15;
  white-space:nowrap;
}
.bankruptcy-payout-contract-badge::before {
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:#1f7a54;
}
.bankruptcy-payout-contract-badge.muted {
  border-color:#d8e3f3;
  background:#f6f8fb;
  color:#6d7890;
}
.bankruptcy-payout-contract-badge.muted::before {
  background:#aab4c4;
}
.bankruptcy-payout-paid-dot {
  display:inline-flex;
  width:16px;
  height:16px;
  border-radius:50%;
  border:2px solid #ffffff;
  box-shadow:0 0 0 2px #d8e3f3;
  vertical-align:middle;
}
.bankruptcy-payout-paid-dot.paid {
  background:#19a463;
  box-shadow:0 0 0 2px rgba(25,164,99,.2);
}
.bankruptcy-payout-paid-dot.unpaid {
  background:#e24b5a;
  box-shadow:0 0 0 2px rgba(226,75,90,.18);
}
.bankruptcy-payout-row-meta {
  display:block;
  margin-top:4px;
  color:#6d7890;
  font-size:12px;
  font-weight:700;
  line-height:1.25;
}
.bankruptcy-payout-row-comment {
  display:block;
  max-width:420px;
  margin-top:5px;
  padding:5px 8px;
  border:1px solid #f1d79b;
  border-radius:8px;
  background:#fff8e8;
  color:#725100;
  font-size:12px;
  font-weight:800;
  line-height:1.25;
}
.bankruptcy-payout-card-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 14px;
}
.bankruptcy-payout-card-actions .button {
  min-height:42px;
  border-width:1px;
  box-shadow:0 8px 18px rgba(20,36,72,.08);
}
.bankruptcy-payout-card-actions .payout-action-income {
  border-color:#b8d5ff;
  background:#eef6ff;
  color:#1457a8;
}
.bankruptcy-payout-card-actions .payout-action-distribution {
  border-color:#a9d9bd;
  background:#ecfbf1;
  color:#176b48;
}
.bankruptcy-payout-card-actions .payout-action-entitlement {
  border-color:#f3d28b;
  background:#fff7df;
  color:#815a00;
}
.bankruptcy-payout-row-actions {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  min-width:128px;
}
.bankruptcy-payout-row-actions a {
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:4px 8px;
  border:1px solid #d8e3f3;
  border-radius:999px;
  background:#ffffff;
  font-size:12px;
  font-weight:900;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
}
.bankruptcy-payout-row-actions .payout-action-income {
  border-color:#b8d5ff;
  background:#eef6ff;
  color:#1457a8;
}
.bankruptcy-payout-row-actions .payout-action-distribution {
  border-color:#a9d9bd;
  background:#ecfbf1;
  color:#176b48;
}
.bankruptcy-payout-entry-forms {
  border-left:4px solid #1f7a54;
  background:linear-gradient(180deg,#ffffff 0%,#f7fff9 100%);
  box-shadow:0 10px 24px rgba(31,122,84,.08);
  scroll-margin-top:84px;
}
.bankruptcy-payout-manager-comment {
  border-left:4px solid #d4941f;
  background:linear-gradient(135deg,#ffffff 0%,#fffaf0 100%);
}
.bankruptcy-payout-requisites-summary {
  border-left:4px solid #7b61ff;
  background:linear-gradient(135deg,#ffffff 0%,#f6f4ff 48%,#f3fbff 100%);
  box-shadow:0 10px 24px rgba(75,61,180,.08);
}
.bankruptcy-payout-requisites-summary h2 {
  margin:0;
}
.bankruptcy-payout-requisites-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(160px,1fr));
  gap:10px;
  margin:12px 0;
}
.bankruptcy-payout-requisites-grid > div {
  min-height:78px;
  padding:12px;
  border:1px solid #dcd8ff;
  border-radius:8px;
  background:#ffffff;
}
.bankruptcy-payout-requisites-grid span,
.bankruptcy-payout-requisite-meta {
  color:#6d7890;
  font-size:12px;
  font-weight:800;
}
.bankruptcy-payout-requisites-grid b {
  display:block;
  margin-top:5px;
  color:#10264d;
  font-size:15px;
  line-height:1.25;
}
.bankruptcy-payout-requisite-meta {
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  margin:10px 0 0;
}
.bankruptcy-payout-requisite-file {
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-right:8px;
}
.bankruptcy-payout-debtor-cabinet .bankruptcy-payout-hero {
  border-left:4px solid #7b61ff;
}
.bankruptcy-payout-debtor-form {
  display:grid;
  gap:16px;
  border-left:4px solid #1f7a54;
  background:linear-gradient(180deg,#ffffff 0%,#f8fffb 100%);
}
.bankruptcy-payout-debtor-form h2,
.bankruptcy-payout-debtor-form h3 {
  margin:0;
}
.bankruptcy-payout-debtor-form-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(180px,1fr));
  gap:12px;
}
.bankruptcy-payout-debtor-form-grid label,
.bankruptcy-payout-electronic-signature label:not(.bankruptcy-payout-sign-check) {
  display:block;
  margin:0 0 5px;
  color:#61708a;
  font-size:13px;
  font-weight:900;
}
.bankruptcy-payout-debtor-form-grid input,
.bankruptcy-payout-electronic-signature input:not([type="checkbox"]) {
  width:100%;
  min-height:42px;
  border-color:#cbd9ea;
  background:#ffffff;
}
.bankruptcy-payout-debtor-form-grid input:focus,
.bankruptcy-payout-electronic-signature input:not([type="checkbox"]):focus {
  outline:3px solid rgba(123,97,255,.16);
  border-color:#7b61ff;
}
.bankruptcy-payout-debtor-account {
  display:grid;
  gap:10px;
  padding:14px;
  border:1px solid #d8e5f5;
  border-radius:8px;
  background:#ffffff;
}
.bankruptcy-payout-income-accounts {
  border-color:#b9d7ff;
  background:linear-gradient(135deg,#ffffff 0%,#f3f8ff 100%);
}
.bankruptcy-payout-extra-accounts {
  display:grid;
  gap:8px;
}
.bankruptcy-payout-extra-account {
  border:1px dashed #9fc4f7;
  border-radius:8px;
  background:#ffffff;
}
.bankruptcy-payout-extra-account summary {
  cursor:pointer;
  padding:10px 12px;
  color:#0c4d93;
  font-weight:900;
}
.bankruptcy-payout-extra-account[open] {
  padding-bottom:12px;
  border-style:solid;
  box-shadow:0 8px 18px rgba(39,114,212,.08);
}
.bankruptcy-payout-extra-account .bankruptcy-payout-debtor-form-grid {
  padding:0 12px;
}
.bankruptcy-payout-electronic-signature {
  display:grid;
  gap:10px;
  padding:14px;
  border:1px solid #bfdecf;
  border-radius:8px;
  background:#f0fbf5;
}
.bankruptcy-payout-sign-check {
  display:flex;
  align-items:flex-start;
  gap:10px;
  color:#18315c;
  font-weight:900;
  line-height:1.35;
}
.bankruptcy-payout-sign-check input {
  width:20px;
  height:20px;
  margin-top:1px;
  accent-color:#1f7a54;
}
.bankruptcy-payout-sign-identity {
  display:grid;
  gap:4px;
  padding:12px;
  border:1px solid #bfdecf;
  border-radius:8px;
  background:#ffffff;
}
.bankruptcy-payout-sign-identity span,
.bankruptcy-payout-sign-identity small {
  color:#61708a;
  font-size:12px;
  font-weight:800;
}
.bankruptcy-payout-sign-identity b {
  color:#0f2a50;
  font-size:16px;
}
.bankruptcy-payout-review-actions {
  display:grid;
  gap:8px;
  min-width:260px;
}
.bankruptcy-payout-review-actions form,
.bankruptcy-payout-reject-form {
  display:flex;
  gap:6px;
  align-items:center;
}
.bankruptcy-payout-review-actions input {
  min-height:36px;
}
.bankruptcy-payout-manager-comment h2 {
  margin:0;
}
.bankruptcy-payout-import-comment {
  display:grid;
  gap:8px;
  margin:12px 0;
  padding:12px;
  border:1px solid #f1d79b;
  border-radius:8px;
  background:#fff8e8;
}
.bankruptcy-payout-import-comment p {
  margin:0;
  color:#725100;
  font-weight:800;
  line-height:1.35;
}
.bankruptcy-payout-comment-form {
  display:grid;
  gap:10px;
}
.bankruptcy-payout-comment-form textarea {
  min-height:92px;
  resize:vertical;
  border-color:#d8e3f3;
  background:#ffffff;
}
.bankruptcy-payout-comment-form textarea:focus {
  outline:3px solid rgba(212,148,31,.18);
  border-color:#d4941f;
}
.bankruptcy-payout-comment-form button {
  justify-self:start;
  min-height:40px;
}
.bankruptcy-payout-entry-form {
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#f8fbff;
}
.bankruptcy-payout-entry-form.compact {
  grid-template-columns:repeat(4,minmax(160px,1fr));
  gap:12px;
  align-items:end;
  border-color:#bfdecf;
  border-top:4px solid #1f7a54;
  background:linear-gradient(135deg,#f7fff9 0%,#ffffff 52%,#fff8e8 100%);
}
.bankruptcy-payout-entry-form.compact .wide {
  grid-column:span 2;
}
.bankruptcy-payout-entry-form label {
  display:block;
  margin:2px 0 -2px;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}
.bankruptcy-payout-entry-form input,
.bankruptcy-payout-entry-form select {
  min-height:38px;
  border-color:#cbd9ea;
  background:#ffffff;
}
.bankruptcy-payout-entry-form input:focus,
.bankruptcy-payout-entry-form select:focus {
  outline:3px solid rgba(31,122,84,.14);
  border-color:#1f7a54;
}
.bankruptcy-payout-entry-form button {
  min-height:42px;
  background:#1f7a54;
  border-color:#1f7a54;
  box-shadow:0 8px 16px rgba(31,122,84,.18);
}
.bankruptcy-payout-entry-context {
  display:grid;
  grid-template-columns:repeat(3,minmax(190px,1fr));
  gap:10px;
  margin:10px 0 12px;
}
.bankruptcy-payout-entry-context > div {
  min-height:82px;
  padding:12px;
  border:1px solid #d8e5f5;
  border-radius:8px;
  background:#ffffff;
}
.bankruptcy-payout-entry-context span,
.bankruptcy-payout-entry-context small {
  display:block;
  color:#6d7890;
  font-size:12px;
  font-weight:800;
}
.bankruptcy-payout-entry-context b {
  display:block;
  margin:4px 0 2px;
  color:#10264d;
  font-size:22px;
  line-height:1.15;
}
.bankruptcy-payout-creditor-library {
  display:grid;
  grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr);
  gap:12px;
  align-items:end;
  margin-top:12px;
  padding:12px;
  border:1px solid #d8e5f5;
  border-radius:8px;
  background:#ffffff;
}
.bankruptcy-payout-creditor-library b,
.bankruptcy-payout-creditor-library span {
  display:block;
}
.bankruptcy-payout-creditor-library form {
  display:grid;
  grid-template-columns:minmax(180px,1fr) minmax(110px,.35fr) auto;
  gap:8px;
  align-items:center;
}
.bankruptcy-payout-creditor-library input,
.bankruptcy-payout-creditor-library select {
  min-height:38px;
}
.bankruptcy-payout-void-form {
  display:grid;
  grid-template-columns:minmax(120px,1fr) auto;
  gap:6px;
  align-items:center;
  min-width:240px;
}
.bankruptcy-payout-void-form input {
  min-height:34px;
}
.bankruptcy-payout-void-form button {
  min-height:34px;
  padding:0 10px;
}
.bankruptcy-payout-summary-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(170px,1fr));
  gap:12px;
}
.bankruptcy-payout-summary-grid > div {
  min-height:72px;
  padding:12px;
  border:1px solid #d8e5f5;
  border-radius:8px;
  background:#ffffff;
}
.bankruptcy-payout-summary-grid .wide {
  grid-column:span 2;
}
.bankruptcy-payout-summary-grid .bankruptcy-payout-due-highlight {
  border-color:#9bc7ff;
  border-top:4px solid #2f6edb;
  background:linear-gradient(180deg,#ffffff 0%,#eef6ff 100%);
  box-shadow:0 10px 24px rgba(47,110,219,.12);
}
.bankruptcy-payout-summary-grid .bankruptcy-payout-due-highlight span {
  color:#17498f;
  font-weight:900;
}
.bankruptcy-payout-summary-grid .bankruptcy-payout-due-highlight b {
  color:#10264d;
  font-size:28px;
  line-height:1.05;
}
.bankruptcy-payout-summary-grid .bankruptcy-payout-due-highlight small {
  display:block;
  margin-top:6px;
  color:#68758e;
  font-weight:800;
}
.bankruptcy-payout-summary-grid span {
  display:block;
  margin-bottom:6px;
}
.bankruptcy-payout-summary-grid b {
  display:block;
  color:var(--ink);
  font-size:16px;
  line-height:1.25;
}
.bankruptcy-payout-sections-grid,
.bankruptcy-payout-sections-stack {
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  align-items:start;
}
.bankruptcy-payout-section {
  min-width:0;
  border-top:4px solid #2f6edb;
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);
}
.bankruptcy-payout-section.entitlement {
  border-top-color:#f2b84b;
  background:linear-gradient(180deg,#ffffff 0%,#fffaf0 100%);
}
.bankruptcy-payout-section.distribution {
  border-top-color:#1f7a54;
  background:linear-gradient(180deg,#ffffff 0%,#f6fff9 100%);
}
.bankruptcy-payout-section h2 {
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:0;
}
.bankruptcy-payout-section h2::before {
  content:"";
  width:10px;
  height:10px;
  border-radius:50%;
  background:#2f6edb;
}
.bankruptcy-payout-section.entitlement h2::before {
  background:#f2b84b;
}
.bankruptcy-payout-section.distribution h2::before {
  background:#1f7a54;
}
.bankruptcy-payout-section .table-wrap {
  border:1px solid #d8e5f5;
  border-radius:8px;
  background:#ffffff;
  overflow-x:auto;
}
.bankruptcy-payout-detail-table {
  width:100%;
  min-width:720px;
  border-collapse:separate;
  border-spacing:0;
}
.bankruptcy-payout-detail-table th {
  background:#eaf3ff;
  color:#10264d;
  font-size:13px;
  font-weight:900;
}
.bankruptcy-payout-section.entitlement .bankruptcy-payout-detail-table th {
  background:#fff2cf;
}
.bankruptcy-payout-section.distribution .bankruptcy-payout-detail-table th {
  background:#e4f7eb;
}
.bankruptcy-payout-detail-table td,
.bankruptcy-payout-detail-table th {
  padding:12px 14px;
  white-space:normal;
  vertical-align:top;
}
.bankruptcy-payout-detail-table tbody tr:nth-child(even) td {
  background:#fbfdff;
}
.bankruptcy-payout-detail-table td:nth-child(n),
.bankruptcy-payout-detail-table td:nth-child(n) b {
  color:inherit;
  font-size:inherit;
}
.bankruptcy-payout-detail-table .money-col,
.bankruptcy-payout-detail-table .money-col b {
  color:#10264d;
  font-size:16px;
  font-weight:900;
  white-space:nowrap;
  text-align:right;
}
.bankruptcy-payout-detail-table tfoot td {
  border-top:2px solid var(--line-strong);
  color:#10264d;
  font-size:16px;
  font-weight:800;
  background:#ffffff;
}
.bankruptcy-payout-control-cell {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  min-width:0;
}
.bankruptcy-payout-control-cell .bankruptcy-payout-void-form {
  min-width:0;
  max-width:260px;
  grid-template-columns:minmax(120px,1fr) auto;
}
.bankruptcy-payout-control-cell .bankruptcy-payout-void-form input {
  min-width:0;
}
.bankruptcy-payout-entry-meta {
  display:block;
  margin-top:4px;
  color:#6d7890;
  font-size:12px;
  font-weight:700;
  line-height:1.25;
  white-space:normal;
}
.bankruptcy-payout-manual-counts {
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  min-width:120px;
}
.bankruptcy-payout-manual-counts .pill {
  font-size:11px;
}
.bankruptcy-payout-mass-total {
  border:1px solid #cfe7d8;
  border-left:5px solid #1f7a54;
  background:linear-gradient(135deg,#ffffff 0%,#f5fff8 58%,#fff7df 100%);
  box-shadow:0 14px 30px rgba(31,122,84,.10);
}
.bankruptcy-payout-mass-total h2 {
  margin:0;
}
.bankruptcy-payout-balance-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(190px,1fr));
  gap:12px;
  margin-top:12px;
}
.bankruptcy-payout-balance-grid .balance-card {
  min-height:104px;
  padding:16px;
  border:1px solid #d8e5f5;
  border-radius:8px;
  background:#ffffff;
  box-shadow:0 8px 20px rgba(20,36,72,.06);
}
.bankruptcy-payout-balance-grid .balance-card span {
  display:block;
  margin-bottom:10px;
  color:#68758e;
  font-size:13px;
  font-weight:900;
}
.bankruptcy-payout-balance-grid .balance-card b {
  display:block;
  color:#10264d;
  font-size:28px;
  line-height:1.05;
}
.bankruptcy-payout-balance-grid .balance-card.plan {
  border-top:4px solid #f2b84b;
}
.bankruptcy-payout-balance-grid .balance-card.fact {
  border-top:4px solid #2f6edb;
}
.bankruptcy-payout-balance-grid .balance-card.delta.ok {
  border-top:4px solid #1f7a54;
  background:linear-gradient(180deg,#ffffff 0%,#f2fff6 100%);
}
.bankruptcy-payout-balance-grid .balance-card.delta.bad {
  border-top:4px solid #d9475c;
  background:linear-gradient(180deg,#ffffff 0%,#fff4f5 100%);
}
.bankruptcy-payout-balance-grid .balance-card.delta.ok b {
  color:#1f7a54;
}
.bankruptcy-payout-balance-grid .balance-card.delta.bad b {
  color:#b4233a;
}
.bankruptcy-payout-balance-details {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.bankruptcy-payout-balance-details span {
  display:inline-flex;
  gap:5px;
  align-items:center;
  min-height:30px;
  padding:5px 10px;
  border:1px solid #d8e3f3;
  border-radius:999px;
  background:#ffffff;
  color:#68758e;
  font-size:13px;
  font-weight:800;
}
.bankruptcy-payout-balance-details b {
  color:#10264d;
}
.bankruptcy-payout-source-note {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border:1px solid #d8e3f3;
  border-radius:8px;
  background:#f8fbff;
  color:#68758e;
  font-size:13px;
  font-weight:800;
}
.bankruptcy-payout-source-review {
  border-left:4px solid #d4941f;
  background:linear-gradient(135deg,#ffffff 0%,#fff8e8 100%);
}
.bankruptcy-payout-source-review ul {
  margin:10px 0;
  padding-left:20px;
}
.bankruptcy-payout-flat-layout {
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  gap:10px;
  width:100%;
  max-width:min(1680px, calc(100vw - 40px));
  box-sizing:border-box;
  margin:0 auto;
  padding:16px 20px;
  border:1px solid #e6e8ed;
  border-radius:2px;
  background:#ffffff;
  color:#151515;
  box-shadow:0 10px 26px rgba(16,38,77,.05);
}
.bankruptcy-payout-flat-layout .visually-hidden {
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  margin:-1px !important;
  padding:0 !important;
  overflow:hidden !important;
  clip:rect(0 0 0 0) !important;
  white-space:nowrap !important;
  border:0 !important;
}
.bankruptcy-payout-flat-card {
  min-width:0;
  border-bottom:1px solid #e8e8e8;
  padding-bottom:10px;
}
.bankruptcy-payout-flat-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.bankruptcy-payout-flat-title {
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.bankruptcy-payout-flat-title h2 {
  margin:0;
  color:#111111;
  font-size:20px;
  font-weight:700;
  line-height:1.15;
}
.bankruptcy-payout-flat-badge {
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:4px 13px;
  border-radius:999px;
  background:#eef7ff;
  color:#2583c7;
  font-size:15px;
  font-weight:500;
  white-space:nowrap;
}
.bankruptcy-payout-flat-badge.paid {
  background:#e9f7ff;
  color:#1576b8;
}
.bankruptcy-payout-flat-badge.action {
  background:#fff5e6;
  color:#9b5a00;
}
.bankruptcy-payout-flat-badge.muted {
  background:#f1f1f1;
  color:#8d8d8d;
}
.bankruptcy-payout-contract-toggle {
  position:relative;
}
.bankruptcy-payout-contract-toggle > summary {
  list-style:none;
  cursor:pointer;
}
.bankruptcy-payout-contract-toggle > summary::-webkit-details-marker {
  display:none;
}
.bankruptcy-payout-contract-toggle form {
  position:absolute;
  left:0;
  z-index:6;
  display:grid;
  gap:8px;
  width:320px;
  margin-top:10px;
  padding:12px;
  border:1px solid #dfe5ee;
  border-radius:14px;
  background:#ffffff;
  box-shadow:0 16px 38px rgba(15,23,42,.16);
}
.bankruptcy-payout-contract-toggle label {
  display:grid;
  gap:5px;
  color:#767676;
  font-size:13px;
}
.bankruptcy-payout-contract-toggle input,
.bankruptcy-payout-contract-toggle select {
  min-height:36px;
  border:1px solid #dedede;
  border-radius:10px;
  padding:6px 9px;
  color:#111111;
  font:inherit;
}
.bankruptcy-payout-contract-toggle small {
  color:#8d8d8d;
}
.bankruptcy-payout-contract-toggle button {
  min-height:36px;
  border-radius:10px;
  background:#111111;
  color:#ffffff;
}
.bankruptcy-payout-flat-links {
  display:flex;
  align-items:center;
  gap:34px;
  color:#8a8a8a;
  font-size:18px;
  white-space:nowrap;
}
.bankruptcy-payout-flat-links a,
.bankruptcy-payout-flat-links span {
  color:#8a8a8a;
  text-decoration:none;
  font-weight:500;
}
.bankruptcy-payout-flat-info {
  display:grid;
  grid-template-columns:minmax(300px,1.2fr) minmax(190px,.72fr) minmax(210px,.84fr) minmax(180px,.72fr);
  gap:8px;
  align-items:start;
}
.bankruptcy-payout-flat-dates {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px 10px;
}
.bankruptcy-payout-flat-dates label {
  display:grid;
  gap:4px;
  color:#151515;
  font-size:13px;
  font-weight:500;
}
.bankruptcy-payout-flat-dates input {
  width:100%;
  min-height:30px;
  padding:4px 8px;
  border:1px solid #dedede;
  border-radius:14px;
  background:#ffffff;
  color:#111111;
  font-size:14px;
  font-weight:500;
}
.bankruptcy-payout-flat-dates p {
  grid-column:1 / -1;
  margin:0;
  color:#8b8b8b;
  font-size:13px;
  line-height:1.25;
}
.bankruptcy-payout-flat-pm,
.bankruptcy-payout-flat-recipient,
.bankruptcy-payout-flat-manager {
  min-height:72px;
  padding-left:9px;
  border-left:1px solid #e6e6e6;
}
a.bankruptcy-payout-flat-pm {
  width:100%;
  border-top:0;
  border-right:0;
  border-bottom:0;
  background:transparent;
  color:inherit;
  text-align:left;
  text-decoration:none;
  font:inherit;
  cursor:pointer;
  transition:background .16s ease, box-shadow .16s ease;
}
a.bankruptcy-payout-flat-pm:hover,
a.bankruptcy-payout-flat-pm:focus-visible {
  border-radius:14px;
  background:#f5fbff;
  box-shadow:inset 0 0 0 1px #cfe9ff;
  outline:0;
}
.bankruptcy-payout-flat-pm span,
.bankruptcy-payout-flat-recipient span,
.bankruptcy-payout-flat-manager span {
  display:block;
  color:#8a8a8a;
  font-size:13px;
  font-weight:500;
}
.bankruptcy-payout-flat-pm b,
.bankruptcy-payout-flat-recipient b,
.bankruptcy-payout-flat-manager b {
  display:block;
  margin-top:4px;
  color:#111111;
  font-size:16px;
  font-weight:600;
  line-height:1.15;
}
.bankruptcy-payout-flat-pm p,
.bankruptcy-payout-flat-recipient p,
.bankruptcy-payout-flat-manager p {
  margin:4px 0 0;
  color:#151515;
  font-size:12px;
  line-height:1.25;
}
.bankruptcy-payout-flat-manager details {
  margin-top:7px;
}
.bankruptcy-payout-flat-manager summary {
  color:#138a72;
  font-size:16px;
  cursor:pointer;
}
.bankruptcy-payout-flat-manager form {
  display:grid;
  gap:7px;
  margin-top:7px;
}
.bankruptcy-payout-flat-manager input {
  width:100%;
  min-height:34px;
  padding:6px 10px;
  border:1px solid #dedede;
  border-radius:10px;
}
.bankruptcy-payout-flat-manager button {
  min-height:34px;
  padding:6px 10px;
  border-radius:10px;
}
.bankruptcy-payout-flat-pm small {
  display:block;
  margin-top:10px;
  color:#a0a0a0;
  font-size:20px;
  text-align:center;
}
.bankruptcy-payout-copy {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  margin-left:8px;
  border:1px solid #cfcfcf;
  border-radius:6px;
  background:#ffffff;
  color:#777777;
  font-size:14px;
  cursor:pointer;
}
.bankruptcy-payout-flat-comment {
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 0;
  border-bottom:1px solid #e8e8e8;
}
.bankruptcy-payout-flat-comment > span {
  padding:5px 12px;
  border-radius:999px;
  background:#eef7ff;
  color:#2990d2;
  font-size:18px;
}
.bankruptcy-payout-flat-comment p {
  flex:1;
  margin:0;
  color:#7f7f7f;
  font-size:20px;
  line-height:1.25;
}
.bankruptcy-payout-flat-comment p b {
  color:#151515;
  font-weight:600;
}
.bankruptcy-payout-flat-comment em {
  color:#8f8f8f;
  font-style:normal;
}
.bankruptcy-payout-flat-comment-edit {
  position:relative;
}
.bankruptcy-payout-flat-comment-edit summary {
  list-style:none;
  border:0;
  background:transparent;
  color:#8a8a8a;
  font-size:18px;
  cursor:pointer;
}
.bankruptcy-payout-flat-comment-edit summary::-webkit-details-marker {
  display:none;
}
.bankruptcy-payout-flat-comment-edit form {
  position:absolute;
  right:0;
  z-index:4;
  display:grid;
  gap:8px;
  width:min(520px, calc(100vw - 80px));
  margin-top:10px;
  padding:12px;
  border:1px solid #e2e2e2;
  border-radius:14px;
  background:#ffffff;
  box-shadow:0 14px 34px rgba(0,0,0,.14);
}
.bankruptcy-payout-flat-comment-edit textarea {
  width:100%;
  min-height:90px;
  border:1px solid #dddddd;
  border-radius:10px;
  padding:10px;
  font:inherit;
}
.bankruptcy-payout-flat-comment-edit button {
  justify-self:end;
  min-height:36px;
  padding:0 14px;
  border-radius:10px;
  background:#111111;
  color:#ffffff;
}
.bankruptcy-payout-flat-metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}
.bankruptcy-payout-flat-metric {
  min-height:58px;
  padding:8px 10px;
  border-radius:8px;
  background:#f4f4f4;
}
.bankruptcy-payout-flat-metric span {
  display:block;
  color:#8d8d8d;
  font-size:12px;
  line-height:1.15;
}
.bankruptcy-payout-flat-metric b {
  display:block;
  margin-top:4px;
  color:#111111;
  font-size:19px;
  font-weight:600;
  line-height:1.1;
}
.bankruptcy-payout-flat-metric small {
  display:block;
  margin-top:4px;
  color:#8d8d8d;
  font-size:11px;
}
.bankruptcy-payout-excel-board {
  display:grid;
  gap:8px;
}
.bankruptcy-payout-excel-board-head {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:10px;
}
.bankruptcy-payout-excel-board-head h3 {
  margin:0;
  color:#151515;
  font-size:18px;
  font-weight:650;
}
.bankruptcy-payout-excel-board-head p {
  max-width:760px;
  margin:2px 0 0;
  color:#7f7f7f;
  font-size:13px;
  line-height:1.3;
}
.bankruptcy-payout-excel-quick-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(170px,1fr));
  gap:8px;
  min-width:360px;
}
.bankruptcy-payout-excel-quick-grid div {
  padding:10px 12px;
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#f8fafc;
}
.bankruptcy-payout-excel-quick-grid span {
  display:block;
  color:#8d8d8d;
  font-size:13px;
}
.bankruptcy-payout-excel-quick-grid b {
  display:block;
  margin-top:4px;
  color:#111111;
  font-size:22px;
  font-weight:650;
  white-space:nowrap;
}
.bankruptcy-payout-excel-lanes {
  display:grid;
  grid-template-columns:1.08fr .82fr 1fr;
  gap:8px;
  align-items:start;
}
.bankruptcy-payout-excel-lane {
  min-width:0;
  border:1px solid #e6e8ed;
  border-radius:10px;
  background:#ffffff;
  overflow:hidden;
}
.bankruptcy-payout-excel-lane.income {
  border-top:4px solid #38a5ef;
}
.bankruptcy-payout-excel-lane.entitlement {
  border-top:4px solid #f0b43e;
}
.bankruptcy-payout-excel-lane.distribution {
  border-top:4px solid #208a63;
}
.bankruptcy-payout-excel-lane-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:7px 9px;
  border-bottom:1px solid #edf0f5;
}
.bankruptcy-payout-excel-lane-head h3 {
  margin:0;
  color:#111111;
  font-size:15px;
  font-weight:650;
}
.bankruptcy-payout-excel-lane-head span {
  padding:3px 6px;
  border-radius:999px;
  background:#f3f6fb;
  color:#6f7785;
  font-size:11px;
  white-space:nowrap;
}
.bankruptcy-payout-excel-table-wrap {
  max-height:168px;
  overflow:auto;
}
.bankruptcy-payout-excel-table {
  width:100%;
  border-collapse:collapse;
}
.bankruptcy-payout-excel-table th,
.bankruptcy-payout-excel-table td {
  padding:5px 7px;
  border-bottom:1px solid #edf0f5;
  color:#151515;
  font-size:12px;
  line-height:1.25;
  text-align:left;
  vertical-align:top;
}
.bankruptcy-payout-excel-table th {
  position:sticky;
  top:0;
  z-index:1;
  background:#f4f8fd;
  color:#6f7785;
  font-weight:650;
}
.bankruptcy-payout-excel-table .money-col {
  text-align:right;
  white-space:nowrap;
}
.bankruptcy-payout-excel-main b,
.bankruptcy-payout-excel-main small {
  display:block;
}
.bankruptcy-payout-excel-main b {
  font-weight:650;
}
.bankruptcy-payout-excel-main small {
  margin-top:2px;
  color:#6f7785;
  font-size:11px;
  line-height:1.25;
  overflow-wrap:anywhere;
}
.bankruptcy-payout-excel-more-entries {
  border-top:1px solid #edf0f5;
}
.bankruptcy-payout-excel-more-entries summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:9px 12px;
  color:#2d628e;
  cursor:pointer;
  font-size:13px;
  font-weight:700;
}
.bankruptcy-payout-excel-more-entries summary small {
  color:#718195;
  font-size:12px;
  font-weight:650;
}
.bankruptcy-payout-excel-more-entries[open] summary {
  background:#f6faff;
  border-bottom:1px solid #edf0f5;
}
.bankruptcy-payout-excel-total {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:7px 9px;
  background:#fbfcfe;
  color:#6f7785;
  font-size:12px;
  font-weight:650;
}
.bankruptcy-payout-excel-total b {
  color:#f08a00;
  font-size:15px;
  white-space:nowrap;
}
.bankruptcy-payout-excel-km {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.bankruptcy-payout-excel-km span {
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:5px 10px;
  border:1px solid #e6e8ed;
  border-radius:999px;
  background:#fbfcfe;
  color:#7f7f7f;
  font-size:14px;
}
.bankruptcy-payout-excel-km b {
  color:#111111;
}
.bankruptcy-payout-card-back {
  display:flex;
  justify-content:flex-start;
  margin:0 0 10px;
}
.bankruptcy-payout-card-back .button { min-height:34px; }
.bankruptcy-payout-toast {
  position:fixed;
  z-index:1200;
  top:18px;
  right:18px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  width:min(460px, calc(100vw - 36px));
  padding:12px 14px;
  border:1px solid #d9e3f1;
  border-left:4px solid #426f9d;
  border-radius:8px;
  box-shadow:0 12px 30px rgba(21, 46, 78, .18);
  background:#fff;
  color:#1b2d45;
}
.bankruptcy-payout-toast.ok { border-left-color:#25835a; }
.bankruptcy-payout-toast.warn { border-left-color:#c3821b; }
.bankruptcy-payout-toast.bad { border-left-color:#be4b4b; }
.bankruptcy-payout-toast-close,
.bankruptcy-payout-copy,
.bankruptcy-payout-requisite-reveal {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  min-width:28px;
  height:28px;
  margin-left:6px;
  padding:0;
  border:1px solid #ccd8e8;
  border-radius:6px;
  background:#fff;
  color:#173f75;
  cursor:pointer;
}
.bankruptcy-payout-toast-close { margin:0; border:0; font-size:20px; line-height:1; color:#52667e; }
.bankruptcy-payout-back-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  margin-right:8px;
  border:1px solid #cbd8e8;
  border-radius:7px;
  color:#173f75;
  font-size:19px;
  line-height:1;
  text-decoration:none;
  vertical-align:middle;
}
.bankruptcy-payout-back-link:hover { background:#edf4ff; }
.bankruptcy-payout-transfer-indicator {
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin:2px 5px 2px 0;
  white-space:nowrap;
  font-size:11px;
  color:#42546b;
}
.bankruptcy-payout-transfer-indicator > span { width:9px; height:9px; border-radius:50%; background:#7a52c5; }
.bankruptcy-payout-transfer-indicator.manager > span { background:#25835a; }
.bankruptcy-payout-transfer-indicator.vd > span { background:#2378c4; }
.bankruptcy-payout-transfer-indicator.failed > span { background:#c84545; }
.bankruptcy-payout-transfer-requisites { display:grid; gap:3px; font-size:12px; white-space:nowrap; }
.bankruptcy-payout-distribution-paid td { background:#edf9ef; }
.bankruptcy-payout-pm-history { margin-top:14px; padding-top:12px; border-top:1px solid #e1e8f0; }
.bankruptcy-payout-pm-history h3 { margin:0 0 8px; font-size:15px; }
.bankruptcy-payout-comment-marks { display:grid; gap:8px; }
.bankruptcy-payout-comment-marks > label { display:inline-flex; align-items:center; gap:6px; }
@media (max-width:600px) {
  .bankruptcy-payout-toast { top:10px; right:10px; width:calc(100vw - 20px); }
  .bankruptcy-payout-transfer-requisites { white-space:normal; }
}
.bankruptcy-payout-flat-tabs {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
  padding-top:18px;
  border-top:1px solid #e8e8e8;
}
.bankruptcy-payout-comment-history,
.bankruptcy-payout-comment-legacy {
  margin-top:8px;
  border-top:1px solid #e5edf5;
}
.bankruptcy-payout-comment-history summary {
  display:flex;
  justify-content:space-between;
  gap:8px;
  padding:7px 0;
  color:#2d628e;
  cursor:pointer;
  font-size:12px;
  font-weight:750;
}
.bankruptcy-payout-comment-history summary small {
  color:#718195;
  font-size:11px;
}
.bankruptcy-payout-flat-comment {
  display:grid;
  gap:10px;
  align-items:stretch;
  padding:10px 0;
}
.bankruptcy-payout-comment-list,
.bankruptcy-payout-comment-history-list {
  display:grid;
  gap:10px;
}
.bankruptcy-payout-comment-card {
  margin:0;
  padding:14px 18px;
  border-radius:14px;
  background:#f4f7fc;
  color:#1c365f;
}
.bankruptcy-payout-comment-card p {
  margin:0;
  color:#1d3d6c;
  font-size:18px;
  font-weight:700;
  line-height:1.3;
}
.bankruptcy-payout-comment-card small {
  display:block;
  margin-top:6px;
  color:#71839f;
  font-size:16px;
  font-weight:500;
  line-height:1.25;
}
.bankruptcy-payout-comment-empty {
  margin:0;
  color:#71839f;
  font-size:15px;
}
.bankruptcy-payout-comment-history {
  margin-top:0;
  border:2px solid #1768d4;
  border-radius:8px;
  background:#fff;
}
.bankruptcy-payout-comment-history summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 16px;
  color:#285e9c;
  font-size:18px;
  font-weight:800;
  list-style:none;
  cursor:pointer;
}
.bankruptcy-payout-comment-history summary::-webkit-details-marker { display:none; }
.bankruptcy-payout-comment-history summary::before {
  content:'⌄';
  order:2;
  margin-left:auto;
  color:#285e9c;
  font-size:20px;
  transition:transform .16s ease;
}
.bankruptcy-payout-comment-history[open] summary::before { transform:rotate(180deg); }
.bankruptcy-payout-comment-history summary span {
  order:3;
  color:#71839f;
  font-size:16px;
}
.bankruptcy-payout-comment-history-list { padding:0 10px 10px; }
@media (max-width:600px) {
  .bankruptcy-payout-comment-card { padding:11px 13px; }
  .bankruptcy-payout-comment-card p { font-size:16px; }
  .bankruptcy-payout-comment-card small { font-size:13px; }
  .bankruptcy-payout-comment-history summary { padding:10px 12px; font-size:16px; }
}
.bankruptcy-payout-comment-history ol {
  display:grid;
  gap:7px;
  margin:0 0 4px;
  padding:0;
  list-style:none;
}
.bankruptcy-payout-comment-history li,
.bankruptcy-payout-comment-legacy {
  padding:7px 8px;
  border-radius:7px;
  background:#f7faff;
}
.bankruptcy-payout-comment-history p,
.bankruptcy-payout-comment-legacy p {
  margin:0;
  color:#243b55;
  font-size:13px;
  white-space:pre-wrap;
}
.bankruptcy-payout-comment-history small,
.bankruptcy-payout-comment-legacy span,
.bankruptcy-payout-comment-legacy small {
  display:block;
  margin-top:3px;
  color:#718195;
  font-size:11px;
}
.bankruptcy-payout-comment-legacy span { margin:0 0 3px; font-weight:750; }
.bankruptcy-payout-flat-tab-list {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.bankruptcy-payout-flat-tab-list a,
.bankruptcy-payout-flat-add > summary {
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 16px;
  border:1px solid #dedede;
  border-radius:13px;
  background:#ffffff;
  color:#151515;
  font-size:20px;
  text-decoration:none;
  cursor:pointer;
  list-style:none;
}
.bankruptcy-payout-flat-tab-list a {
  font-family:inherit;
  font-weight:500;
  transition:background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.bankruptcy-payout-flat-tab-list a.active {
  border-color:#2b9fec;
  background:#2b9fec;
  color:#ffffff;
}
.bankruptcy-payout-flat-tab-list a:not(.active):hover,
.bankruptcy-payout-flat-tab-list a:not(.active):focus-visible {
  border-color:#b7dcf7;
  background:#f3faff;
  color:#176ba1;
  outline:0;
}
.bankruptcy-payout-flat-add {
  position:relative;
}
.bankruptcy-payout-contract-toggle:not([open]) > :not(summary),
.bankruptcy-payout-flat-comment-edit:not([open]) > :not(summary),
.bankruptcy-payout-flat-add:not([open]) > :not(summary),
.bankruptcy-payout-movement-details:not([open]) > :not(summary) {
  display:none !important;
}
.bankruptcy-payout-flat-add > summary {
  border-color:#111111;
  background:#111111;
  color:#ffffff;
  transition:background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.bankruptcy-payout-flat-add > summary:hover,
.bankruptcy-payout-flat-add > summary:focus-visible {
  background:#0b2345;
  box-shadow:0 10px 22px rgba(11,35,69,.18);
  outline:0;
}
.bankruptcy-payout-flat-add > summary::-webkit-details-marker {
  display:none;
}
.bankruptcy-payout-flat-add[open] {
  flex:1 0 100%;
}
.bankruptcy-payout-flat-add[open] > .bankruptcy-payout-entry-forms {
  position:static;
  box-sizing:border-box;
  width:100%;
  margin-top:10px;
  padding:16px;
  border:1px solid #cfe6d8;
  border-left:4px solid #1f7a54;
  border-radius:18px;
  background:linear-gradient(135deg,#f8fffb 0%,#ffffff 54%,#fff9ec 100%);
  box-shadow:0 14px 30px rgba(31,122,84,.10);
}
.bankruptcy-payout-flat-add[open] > .bankruptcy-payout-entry-forms .cabinet-zone-head {
  margin:0 0 12px;
}
.bankruptcy-payout-flat-add[open] > .bankruptcy-payout-entry-forms h2 {
  margin:0;
  color:#111111;
  font-size:22px;
  font-weight:700;
}
.bankruptcy-payout-flat-add[open] > .bankruptcy-payout-entry-forms p.muted {
  margin:4px 0 0;
  color:#6f7785;
  font-size:15px;
  line-height:1.35;
}
.bankruptcy-payout-flat-add[open] .bankruptcy-payout-entry-form.compact {
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.bankruptcy-payout-flat-add[open] .bankruptcy-payout-entry-form.compact > div {
  display:grid;
  gap:6px;
  min-width:0;
}
.bankruptcy-payout-flat-add[open] .bankruptcy-payout-entry-form label {
  margin:0;
  color:#526174;
  font-size:13px;
  font-weight:700;
}
.bankruptcy-payout-flat-add[open] .bankruptcy-payout-entry-form input,
.bankruptcy-payout-flat-add[open] .bankruptcy-payout-entry-form select {
  box-sizing:border-box;
  width:100%;
  min-height:44px;
  padding:8px 10px;
  border:1px solid #cbd9ea;
  border-radius:12px;
  background:#ffffff;
  color:#111111;
  font:inherit;
}
.bankruptcy-payout-flat-add[open] .bankruptcy-payout-entry-form input:focus,
.bankruptcy-payout-flat-add[open] .bankruptcy-payout-entry-form select:focus {
  outline:3px solid rgba(31,122,84,.16);
  border-color:#1f7a54;
}
.bankruptcy-payout-flat-add[open] .bankruptcy-payout-entry-form button[type="submit"] {
  align-self:end;
  min-height:44px;
  border:0;
  border-radius:14px;
  background:#1f7a54;
  color:#ffffff;
  font-weight:700;
  box-shadow:0 10px 20px rgba(31,122,84,.20);
}
.bankruptcy-payout-flat-add[open] .bankruptcy-payout-creditor-library {
  margin-top:12px;
}
.bankruptcy-payout-flat-journal {
  display:grid;
  gap:8px;
}
.bankruptcy-payout-flat-journal-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.bankruptcy-payout-flat-journal h3 {
  margin:0;
  color:#151515;
  font-size:20px;
  font-weight:600;
}
.bankruptcy-payout-flat-journal-head span {
  color:#9a9a9a;
  font-size:18px;
}
.bankruptcy-payout-flat-table {
  width:100%;
  border-collapse:collapse;
}
.bankruptcy-payout-flat-table th,
.bankruptcy-payout-flat-table td {
  padding:12px 12px;
  border-bottom:1px solid #ececec;
  background:#ffffff;
  color:#151515;
  font-size:20px;
  font-weight:400;
  vertical-align:middle;
}
.bankruptcy-payout-flat-table th {
  color:#8d8d8d;
  font-weight:500;
  text-align:left;
}
.bankruptcy-payout-flat-table .money-col,
.bankruptcy-payout-flat-table .money-col b {
  color:#151515;
  font-size:20px;
  font-weight:500;
  text-align:left;
  white-space:nowrap;
}
.bankruptcy-payout-flat-table .more-col {
  color:#999999;
  text-align:right;
}
.bankruptcy-payout-flat-table .dot {
  display:inline-block;
  width:10px;
  height:10px;
  margin-right:8px;
  border-radius:50%;
  vertical-align:middle;
}
.bankruptcy-payout-flat-table .dot.blue {
  background:#38a5ef;
}
.bankruptcy-payout-flat-table .dot.amber {
  background:#f0b43e;
}
.bankruptcy-payout-flat-table .dot.orange {
  background:#f38b3b;
}
.bankruptcy-payout-flat-tab-panels,
.bankruptcy-payout-movement-details {
  border-top:1px solid #e8e8e8;
}
.bankruptcy-payout-flat-tab-panel,
.bankruptcy-payout-movement-details {
  border:0;
  box-shadow:none;
}
.bankruptcy-payout-flat-tab-panel {
  padding:16px 0;
}
.bankruptcy-payout-flat-tab-panel[hidden] {
  display:none !important;
}
.bankruptcy-payout-pm-editor {
  display:grid;
  gap:12px;
  padding:4px 0 12px;
}
.bankruptcy-payout-pm-editor-head h3 {
  margin:0;
  font-size:20px;
}
.bankruptcy-payout-pm-editor-head p,
.bankruptcy-payout-pm-readonly {
  margin:4px 0 0;
}
.bankruptcy-payout-pm-current {
  display:grid;
  gap:4px;
  padding:14px 16px;
  border:1px solid #ffe2a5;
  border-left:4px solid #f0b43e;
  border-radius:16px;
  background:linear-gradient(135deg,#fffaf0 0%,#ffffff 72%);
}
.bankruptcy-payout-pm-current span,
.bankruptcy-payout-pm-current small {
  color:#7b6b46;
  font-size:13px;
  font-weight:700;
}
.bankruptcy-payout-pm-current b {
  color:#111111;
  font-size:26px;
  line-height:1.1;
}
.bankruptcy-payout-pm-current p {
  margin:0;
  color:#404654;
  font-size:16px;
  line-height:1.35;
}
.bankruptcy-payout-pm-form {
  display:grid;
  grid-template-columns:repeat(4,minmax(145px,1fr));
  gap:10px;
  padding:14px;
  border:1px solid #e6e8ed;
  border-radius:16px;
  background:#fbfcfe;
}
.bankruptcy-payout-pm-form label {
  display:grid;
  gap:5px;
  min-width:0;
  color:#526174;
  font-size:13px;
  font-weight:700;
}
.bankruptcy-payout-pm-form label.wide {
  grid-column:span 2;
}
.bankruptcy-payout-pm-form input {
  box-sizing:border-box;
  width:100%;
  min-height:40px;
  padding:7px 10px;
  border:1px solid #cbd9ea;
  border-radius:12px;
  background:#ffffff;
  color:#111111;
  font:inherit;
}
.bankruptcy-payout-pm-form input:focus {
  outline:3px solid rgba(240,180,62,.20);
  border-color:#d69a24;
}
.bankruptcy-payout-pm-form button {
  align-self:end;
  min-height:40px;
  border:0;
  border-radius:13px;
  background:#111111;
  color:#ffffff;
  font-weight:700;
}
.bankruptcy-payout-card-compact-grid {
  display:grid;
  grid-template-columns:minmax(420px,1.05fr) minmax(380px,.95fr);
  gap:12px;
  align-items:start;
  margin:0 0 12px;
}
.bankruptcy-payout-card-compact-grid > .panel,
.bankruptcy-payout-card-compact-grid > .bankruptcy-payout-source-note {
  margin:0;
}
.bankruptcy-payout-card-compact-grid .panel {
  padding:14px;
  border-radius:10px;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-entry-forms,
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-requisites-summary,
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-source-note,
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-source-review {
  grid-column:1 / -1;
}
.bankruptcy-payout-card-compact-grid h2 {
  margin:0 0 8px;
  font-size:20px;
  line-height:1.15;
}
.bankruptcy-payout-card-compact-grid p.muted {
  margin:0;
  line-height:1.3;
}
.bankruptcy-payout-card-compact-grid .cabinet-zone-head {
  gap:10px;
  margin-bottom:8px;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-contract-status {
  gap:8px;
  margin-bottom:8px;
  padding:8px 10px;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-summary-grid {
  grid-template-columns:1.25fr repeat(2,minmax(130px,1fr));
  gap:8px;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-summary-grid > div {
  min-height:58px;
  padding:9px 10px;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-summary-grid .wide {
  grid-column:span 1;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-summary-grid .bankruptcy-payout-due-highlight b {
  font-size:24px;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-summary-grid b {
  font-size:15px;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-balance-grid {
  gap:8px;
  margin-top:8px;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-balance-grid .balance-card {
  min-height:74px;
  padding:10px;
  box-shadow:none;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-balance-grid .balance-card span {
  margin-bottom:6px;
  font-size:12px;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-balance-grid .balance-card b {
  font-size:23px;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-balance-details {
  gap:6px;
  margin-top:8px;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-balance-details span {
  min-height:25px;
  padding:4px 8px;
  font-size:12px;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-entry-context {
  grid-template-columns:repeat(3,minmax(150px,1fr));
  gap:8px;
  margin:8px 0;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-entry-context > div {
  min-height:62px;
  padding:9px 10px;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-entry-form.compact {
  grid-template-columns:1fr .8fr .8fr 1fr 1fr 1fr 1fr;
  gap:8px;
  padding:10px;
  border-top-width:0;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-entry-form.compact .wide {
  grid-column:span 2;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-entry-form label {
  font-size:12px;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-entry-form input,
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-entry-form select {
  min-height:34px;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-entry-form button {
  min-height:36px;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-comment-form {
  grid-template-columns:1fr auto;
  align-items:end;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-comment-form textarea {
  min-height:52px;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-import-comment {
  margin:8px 0;
  padding:8px 10px;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-requisites-grid {
  grid-template-columns:repeat(4,minmax(130px,1fr));
  gap:8px;
  margin:8px 0;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-requisites-grid > div {
  min-height:58px;
  padding:9px 10px;
}
.bankruptcy-payout-card-compact-grid .bankruptcy-payout-requisites-grid b {
  margin-top:3px;
  font-size:14px;
}
.bankruptcy-payout-movement-details {
  padding:0;
  overflow:hidden;
}
.bankruptcy-payout-movement-details > summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  cursor:pointer;
  color:#10264d;
  font-weight:900;
  list-style:none;
}
.bankruptcy-payout-movement-details > summary::-webkit-details-marker {
  display:none;
}
.bankruptcy-payout-movement-details > summary::after {
  content:"+";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:#eef6ff;
  color:#2f6edb;
  font-size:20px;
  line-height:1;
}
.bankruptcy-payout-movement-details[open] > summary::after {
  content:"-";
}
.bankruptcy-payout-movement-details > summary small {
  color:#68758e;
  font-size:13px;
}
.bankruptcy-payout-movement-details .bankruptcy-payout-sections-stack {
  padding:0 16px 16px;
}
.bankruptcy-payout-voided-entries {
  border-left:4px solid #d4941f;
  background:linear-gradient(135deg,#ffffff 0%,#fffaf0 100%);
}
.bankruptcy-payout-voided-entries h2 {
  margin-top:0;
}
.payment-section-tabs {
  margin-bottom:14px;
}
.payment-debtors-hero {
  padding:20px 22px;
  background:linear-gradient(135deg,#fff 0%,#f4f8ff 100%);
}
.payment-debtors-hero-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
}
.payment-debtors-hero h1 {
  margin:4px 0 5px;
}
.payment-debtors-hero p {
  margin:0;
}
.payment-debtors-hero .payment-section-tabs {
  flex:0 0 auto;
  margin:0;
}
.payment-debtors-meta {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
}
.payment-debtors-meta span {
  padding:7px 10px;
  border:1px solid #dbe5f3;
  border-radius:8px;
  background:#fff;
  color:#68758e;
  font-size:13px;
}
.payment-debtors-meta b {
  color:#263553;
}
.payment-debtor-filters {
  padding-bottom:16px;
}
.payment-debtors-table td {
  vertical-align:top;
}
.payment-debtors-table .payment-debtor-person {
  min-width:240px;
}
.payment-debtors-table .payment-debtor-team,
.payment-debtors-table .payment-debtor-manager,
.payment-debtors-table .payment-debtor-overdue {
  white-space:nowrap;
}
.payment-debtors-table .payment-debtor-manager {
  min-width:180px;
}
.payment-debtors-table .payment-debtor-overdue {
  min-width:92px;
}
.payment-debtors-table .payment-debtor-transfer {
  min-width:210px;
}
.payment-debtor-transfer-form {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:6px;
}
.payment-debtor-transfer-form select,
.payment-debtor-transfer-form button {
  width:100%;
  min-width:0;
}
.payment-debtors-table .table-sort-button {
  text-decoration:none;
}
.payment-debtor-name,
.payment-manager-link {
  color:var(--brand);
  font-weight:800;
  text-decoration:none;
}
.payment-debtor-name:hover,
.payment-manager-link:hover {
  text-decoration:underline;
}
.payment-debtor-card-layout {
  display:grid;
  grid-template-columns:minmax(0, 1.2fr) minmax(360px, .8fr);
  gap:16px;
  align-items:start;
}
.payment-debtor-details {
  display:grid;
  grid-template-columns:repeat(4, minmax(150px, 1fr));
  gap:10px;
}
.payment-debtor-detail {
  min-height:66px;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#f8fbff;
}
.payment-debtor-detail span {
  display:block;
  margin-bottom:5px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
.payment-debtor-detail b {
  display:block;
  color:var(--brand);
  overflow-wrap:anywhere;
}
.payment-debtor-comment-form label {
  display:block;
  margin-bottom:8px;
  color:#263553;
  font-weight:800;
}
.payment-debtor-comment-form textarea {
  width:100%;
  resize:vertical;
  min-height:132px;
  border:1px solid #c8d3e5;
  border-radius:8px;
  padding:10px 12px;
  font:inherit;
}
.payment-debtor-readonly-comment {
  min-height:132px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#f8fbff;
  white-space:pre-wrap;
}
.payment-debtor-work-form label {
  display:block;
  margin-bottom:7px;
  color:#263553;
  font-weight:800;
}
.payment-debtor-work-grid {
  display:grid;
  grid-template-columns:repeat(3, minmax(180px, 1fr));
  gap:12px;
  align-items:start;
}
.payment-debtor-work-grid .wide {
  grid-column:span 2;
}
.payment-debtor-work-grid .full {
  grid-column:1 / -1;
}
.payment-debtor-work-grid input,
.payment-debtor-work-grid select,
.payment-debtor-work-grid textarea {
  width:100%;
  min-height:42px;
  border:1px solid #c8d3e5;
  border-radius:8px;
  background:#ffffff;
  color:var(--ink);
  font:inherit;
  padding:9px 11px;
}
.payment-debtor-work-grid textarea {
  resize:vertical;
}
.payment-debtor-history {
  display:grid;
  gap:10px;
}
.payment-debtor-history-item {
  padding:12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#ffffff;
}
.payment-debtor-snapshots-table td:nth-child(5) {
  white-space:normal;
  min-width:260px;
}
.payment-task-summary {
  border-left:4px solid var(--brand-3);
}
.payment-debtor-tasks h2 {
  margin-top:0;
}
.payment-debtor-task-list {
  display:grid;
  gap:10px;
}
.payment-debtor-task-item {
  display:grid;
  gap:5px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#ffffff;
  color:var(--ink);
  text-decoration:none;
}
.payment-debtor-task-item:hover {
  border-color:#b9c8df;
  background:#f8fbff;
}
.payment-debtor-task-item .task-top {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.payment-debtor-task-item b {
  color:var(--brand);
  overflow-wrap:anywhere;
}
.payment-manager-dashboard h2 {
  margin:0;
}
.payment-manager-dashboard .curator-links {
  margin:10px 0 12px;
}
.payment-manager-dashboard-table td {
  vertical-align:middle;
}
.payment-manager-dashboard-table td:nth-child(n+3) {
  text-align:center;
  white-space:nowrap;
}
.payment-manager-dashboard-table td:first-child {
  min-width:210px;
}
.payment-debtor-activity {
  display:grid;
  gap:10px;
}
.payment-debtor-activity-item {
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
}
.payment-debtor-activity-title {
  margin:2px 0 4px;
  font-weight:700;
  color:var(--brand);
}
.payment-smart-signals {
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  min-width:130px;
}
.payment-smart-signals .pill {
  margin:0;
  white-space:nowrap;
}
.button.disabled {
  opacity:.55;
  pointer-events:none;
}
.debtor-exit-form {
  display:grid;
  grid-template-columns:minmax(120px, .8fr) minmax(180px, 1fr) auto;
  gap:8px;
  align-items:start;
}
.compact-toolbar {
  gap:6px;
  margin-top:8px;
}
.compact-toolbar button {
  padding:8px 10px;
}
.pagination-links {
  margin-top:14px;
}
@media (max-width: 860px) {
  .bankruptcy-payout-hero,
  .bankruptcy-payout-hero.compact {
    align-items:stretch;
    flex-direction:column;
    padding:18px;
  }
  .bankruptcy-payout-hero h1 {
    font-size:26px;
  }
  .bankruptcy-payout-hero .toolbar {
    justify-content:flex-start;
  }
  .bankruptcy-payout-hero-metric {
    min-width:0;
  }
  .payment-upload-grid {
    grid-template-columns:1fr;
    gap:4px;
  }
  .payment-final-check {
    margin-top:8px;
  }
  .payment-debtors-hero-head {
    align-items:stretch;
    flex-direction:column;
    gap:14px;
  }
  .payment-debtors-hero .payment-section-tabs {
    width:100%;
  }
  .payment-debtors-table .payment-debtor-person,
  .payment-debtors-table .payment-debtor-team,
  .payment-debtors-table .payment-debtor-manager,
  .payment-debtors-table .payment-debtor-overdue,
  .payment-debtors-table .payment-debtor-transfer {
    min-width:0;
    white-space:normal;
  }
  .debtor-exit-form {
    grid-template-columns:1fr;
  }
  .payment-debtor-card-layout,
  .payment-debtor-details,
  .payment-debtor-work-grid {
    grid-template-columns:1fr;
  }
  .payment-debtor-work-grid .wide,
  .payment-debtor-work-grid .full {
    grid-column:1;
  }
  .bankruptcy-payout-entry-form.compact,
  .bankruptcy-payout-entry-context,
  .bankruptcy-payout-card-compact-grid,
  .bankruptcy-payout-creditor-library,
  .bankruptcy-payout-creditor-library form,
  .bankruptcy-payout-summary-grid,
  .bankruptcy-payout-balance-grid,
  .bankruptcy-payout-sections-grid,
  .bankruptcy-payout-sections-stack,
  .bankruptcy-payout-filter-summary,
  .bankruptcy-payout-main-stats,
  .bankruptcy-payout-paid-stats,
  .bankruptcy-payout-flat-metrics,
  .bankruptcy-payout-paid-filters .payment-upload-grid,
  .bankruptcy-payout-flat-info,
  .bankruptcy-payout-flat-dates,
  .bankruptcy-payout-excel-lanes,
  .bankruptcy-payout-excel-quick-grid,
  .bankruptcy-payout-pm-form {
    grid-template-columns:1fr;
  }
  .bankruptcy-payout-flat-layout {
    padding:14px;
  }
  .bankruptcy-payout-flat-head,
  .bankruptcy-payout-excel-board-head,
  .bankruptcy-payout-flat-tabs,
  .bankruptcy-payout-flat-comment {
    align-items:stretch;
    flex-direction:column;
  }
  .bankruptcy-payout-flat-title {
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .bankruptcy-payout-flat-title h2 {
    min-width:0;
    overflow-wrap:anywhere;
  }
  .bankruptcy-payout-flat-badge {
    max-width:100%;
    white-space:normal;
  }
  .bankruptcy-payout-flat-links {
    gap:14px;
    font-size:16px;
  }
  .bankruptcy-payout-flat-pm,
  .bankruptcy-payout-flat-recipient,
  .bankruptcy-payout-flat-manager {
    padding-left:0;
    border-left:0;
  }
  .bankruptcy-payout-excel-quick-grid {
    min-width:0;
  }
  .bankruptcy-payout-flat-add[open] > .bankruptcy-payout-entry-forms {
    position:static;
    width:auto;
  }
  .bankruptcy-payout-entry-form.compact .wide,
  .bankruptcy-payout-pm-form label.wide,
  .bankruptcy-payout-summary-grid .wide,
  .bankruptcy-payout-card-compact-grid .bankruptcy-payout-entry-form.compact .wide {
    grid-column:1;
  }
  .bankruptcy-payout-card-compact-grid .bankruptcy-payout-entry-forms,
  .bankruptcy-payout-card-compact-grid .bankruptcy-payout-requisites-summary,
  .bankruptcy-payout-card-compact-grid .bankruptcy-payout-source-note,
  .bankruptcy-payout-card-compact-grid .bankruptcy-payout-source-review {
    grid-column:1;
  }
  .bankruptcy-payout-page .payment-report-filters .payment-upload-grid,
  .bankruptcy-payout-simple-search .payment-upload-grid {
    grid-template-columns:minmax(0, 1fr);
  }
  .bankruptcy-payout-filter-actions {
    width:100%;
    flex-wrap:wrap;
    white-space:normal;
  }
  .bankruptcy-payout-filter-actions .button,
  .bankruptcy-payout-filter-actions button {
    flex:1 1 120px;
  }
  .bankruptcy-payout-page .payments-table th:first-child,
  .bankruptcy-payout-page .payments-table td:first-child {
    min-width:190px;
    max-width:240px;
  }
}

.chat-page {
  display:grid;
  grid-template-columns:340px minmax(0, 1fr);
  gap:16px;
  align-items:start;
}
.chat-sidebar,
.chat-dialog {
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:var(--shadow);
}
.chat-sidebar {
  padding:16px;
  position:sticky;
  top:58px;
}
.chat-sidebar h2 {
  margin:16px 0 8px;
  font-size:18px;
}
.chat-notification-center,
.chat-search-results,
.chat-auto-groups,
.chat-settings,
.chat-group-create {
  margin:0 0 14px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px 12px;
  background:#f8fbff;
}
.chat-notification-center h2,
.chat-search-results h2,
.chat-auto-groups h2 {
  margin:0 0 8px;
  font-size:17px;
}
.chat-notification-item,
.chat-search-result {
  display:grid;
  gap:3px;
  padding:9px 10px;
  border-radius:9px;
  color:var(--ink);
}
.chat-notification-item:hover,
.chat-search-result:hover {
  background:#eef4ff;
}
.chat-notification-item b,
.chat-search-result b {
  color:var(--brand);
}
.chat-notification-item span,
.chat-notification-item em,
.chat-search-result span,
.chat-search-result em {
  color:var(--muted);
  font-size:12px;
  font-style:normal;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.chat-search-form {
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:8px;
  margin:0 0 12px;
}
.chat-auto-groups > div {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.chat-auto-groups form,
.chat-reactions form,
.chat-pin-form,
.chat-leave-form {
  margin:0;
}
.chat-settings summary,
.chat-group-create summary,
.chat-group-manage summary {
  cursor:pointer;
  font-weight:800;
  color:var(--brand);
}
.chat-settings-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.chat-settings-check {
  margin:8px 0;
}
.chat-start-row {
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:8px;
}
.chat-group-create {
  margin-top:14px;
}
.chat-member-list {
  display:grid;
  gap:6px;
  max-height:300px;
  overflow:auto;
  padding:6px 2px;
}
.chat-member-check {
  display:grid;
  grid-template-columns:auto 32px minmax(0, 1fr);
  gap:8px;
  align-items:center;
  margin:0;
  padding:7px;
  border-radius:8px;
  color:var(--ink);
}
.chat-member-check:hover {
  background:#eef4ff;
}
.chat-member-check input {
  width:auto;
  margin:0;
}
.chat-member-check small {
  display:block;
  color:var(--muted);
  font-size:12px;
}
.chat-member-avatar {
  width:32px;
  height:32px;
  font-size:12px;
}
.chat-thread-list {
  display:grid;
  gap:8px;
}
.chat-thread-card {
  display:grid;
  grid-template-columns:42px minmax(0, 1fr) auto;
  gap:10px;
  align-items:center;
  padding:10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  color:var(--ink);
}
.chat-thread-card:hover,
.chat-thread-card.active {
  border-color:var(--brand-3);
  background:#f4f7fd;
}
.chat-thread-card b,
.chat-thread-card small,
.chat-thread-card em {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.chat-thread-card small {
  color:var(--muted);
  font-size:12px;
  font-weight:500;
}
.chat-thread-card em {
  color:var(--muted);
  font-size:12px;
  font-style:normal;
  font-weight:500;
}
.chat-thread-avatar {
  width:42px;
  height:42px;
  font-size:14px;
}
.chat-unread {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  height:24px;
  padding:0 7px;
  border-radius:999px;
  background:var(--brand);
  color:#fff;
  font-size:12px;
  font-weight:800;
}
.chat-dialog {
  min-height:640px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.chat-dialog-head {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:18px 20px;
  border-bottom:1px solid var(--line);
}
.chat-dialog-head h2 {
  margin:0 0 2px;
}
.chat-dialog-head p {
  margin:0;
}
.chat-messages {
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
  min-height:360px;
  padding:18px 20px;
  overflow:auto;
  background:#f8fbff;
}
.chat-pinned,
.chat-group-manage {
  border-bottom:1px solid var(--line);
  padding:12px 20px;
  background:#fff;
}
.chat-pinned {
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:10px;
  align-items:center;
}
.chat-pinned b {
  color:var(--brand);
}
.chat-pinned .chat-message-text,
.chat-pinned .chat-image-link,
.chat-pinned .chat-attachment {
  margin-top:4px;
}
.chat-group-manage .chat-member-list {
  max-height:220px;
}
.chat-leave-form {
  margin-top:10px;
}
.chat-message {
  position:relative;
  max-width:78%;
  align-self:flex-start;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  box-shadow:var(--shadow);
}
.chat-message.own {
  align-self:flex-end;
  background:#eef4ff;
  border-color:#c8d3e5;
}
.chat-message-meta {
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:space-between;
  margin-bottom:4px;
  color:var(--muted);
  font-size:12px;
}
.chat-message-meta b {
  color:var(--brand);
}
.chat-message-meta span {
  display:inline-flex;
  flex-wrap:wrap;
  gap:5px;
  justify-content:flex-end;
}
.chat-message-status {
  color:#50617d;
  font-size:11px;
  font-weight:700;
}
.chat-pin-form button {
  min-width:28px;
  min-height:28px;
  padding:2px 6px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  color:var(--brand);
  box-shadow:none;
}
.chat-pin-form button:hover {
  background:#eef4ff;
}
.chat-message-text {
  white-space:normal;
  overflow-wrap:anywhere;
}
.chat-image-link {
  display:grid;
  gap:6px;
  margin-top:8px;
  color:var(--brand);
}
.chat-image-preview {
  display:block;
  width:min(340px, 100%);
  max-height:260px;
  object-fit:cover;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
}
.chat-image-link span {
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}
.chat-attachment {
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  margin-top:8px;
  padding:8px 10px;
  border-radius:8px;
  background:#fff;
  border:1px solid var(--line-strong);
  color:var(--brand);
}
.chat-attachment::before {
  content:"📎";
}
.chat-attachment span {
  color:var(--muted);
  font-size:12px;
  font-weight:600;
}
.chat-attachment.expired {
  color:var(--muted);
  font-weight:600;
}
.chat-reactions {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
  min-height:28px;
}
.chat-reactions.empty {
  position:absolute;
  right:8px;
  bottom:4px;
  margin-top:0;
  min-height:0;
}
.chat-message.own .chat-reactions.empty {
  left:8px;
  right:auto;
}
.chat-reaction button,
.chat-reactions summary {
  min-width:30px;
  min-height:28px;
  padding:3px 8px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--ink);
  box-shadow:none;
  font-size:13px;
  font-weight:800;
  list-style:none;
}
.chat-reaction.active button {
  border-color:var(--brand-3);
  background:#eaf2ff;
  color:var(--brand);
}
.chat-reactions details {
  position:relative;
}
.chat-reaction-picker {
  opacity:0;
  transition:opacity .12s ease;
}
.chat-message:hover .chat-reaction-picker,
.chat-message:focus-within .chat-reaction-picker {
  opacity:1;
}
.chat-reactions summary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  min-width:24px;
  min-height:24px;
  padding:1px 6px;
  border-color:transparent;
  background:transparent;
  color:#7a859b;
  font-size:15px;
  line-height:1;
}
.chat-reactions summary::-webkit-details-marker {
  display:none;
}
.chat-reactions summary:hover,
.chat-reaction-picker[open] summary {
  border-color:var(--line);
  background:#fff;
  color:var(--brand);
}
.chat-reactions details > div {
  position:absolute;
  z-index:5;
  right:0;
  top:34px;
  display:flex;
  gap:5px;
  padding:7px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  box-shadow:var(--shadow);
}
.chat-compose {
  display:grid;
  gap:10px;
  padding:14px 16px;
  border-top:1px solid var(--line);
  background:#fff;
}
.chat-compose textarea {
  min-height:92px;
  resize:vertical;
}
.chat-emoji-row {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.chat-emoji {
  min-width:34px;
  padding:6px 8px;
  border:1px solid var(--line);
  background:#f8fbff;
  color:var(--ink);
  box-shadow:none;
}
.chat-emoji:hover {
  background:#eef4ff;
  color:var(--ink);
}
.chat-compose-bottom {
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}
.chat-file-picker {
  margin:0;
  color:var(--brand);
  font-weight:700;
}
.chat-file-picker input {
  margin-top:6px;
}
.chat-empty {
  padding:18px;
  color:var(--muted);
  text-align:center;
}
.chat-notice {
  display:flex;
  gap:10px;
  align-items:center;
  border-left:4px solid var(--brand-3);
}
.sales-plan-page {
  display:grid;
  gap:12px;
}
.sales-plan-topbar {
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:16px;
  align-items:end;
  padding:12px 16px;
  border:1px solid var(--line-strong);
  border-radius:8px;
  background:#ffffff;
  box-shadow:var(--shadow);
}
.sales-plan-topbar h1,
.sales-plan-board h2 {
  margin:0;
  color:var(--brand);
}
.sales-plan-topbar h1 { font-size:26px; line-height:1.05; }
.sales-plan-topbar p {
  margin:4px 0 0;
  max-width:860px;
}
.sales-plan-month-form {
  display:grid;
  grid-template-columns:auto minmax(140px, 160px) minmax(150px, 190px) auto;
  gap:8px;
  align-items:end;
}
.sales-plan-month-form label {
  color:var(--muted);
  font-weight:800;
  align-self:center;
}
.sales-plan-current-week {
  display:grid;
  gap:1px;
  min-width:180px;
  padding:8px 11px;
  border:1px solid #c9dcff;
  border-left:4px solid #2766c7;
  border-radius:8px;
  background:#f4f8ff;
}
.sales-plan-current-week span {
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.sales-plan-current-week b {
  color:var(--brand);
  font-size:16px;
}
.sales-plan-current-week small {
  color:var(--muted);
  font-size:11px;
  font-weight:750;
}
.sales-plan-overview {
  display:grid;
  grid-template-columns:minmax(180px, .8fr) minmax(180px, .8fr) minmax(320px, 1.4fr);
  overflow:hidden;
  border:1px solid var(--line-strong);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--shadow);
}
.sales-plan-overview-item {
  display:grid;
  gap:4px;
  min-height:64px;
  padding:10px 13px;
  border-left:4px solid var(--brand-2);
}
.sales-plan-overview-item + .sales-plan-overview-item { border-left:1px solid var(--line); }
.sales-plan-overview-item span { color:var(--muted); font-size:12px; font-weight:800; }
.sales-plan-overview-item > b { color:var(--brand); font-size:17px; line-height:1.2; }
.sales-plan-overview-item.is-plan { background:#f4f8ff; border-top:3px solid #2766c7; }
.sales-plan-overview-item.is-fact { background:#f2fcf6; border-top:3px solid #0f8a68; }
.sales-plan-overview-item.is-week { background:#fffdf7; border-top:3px solid #d88920; }
.sales-plan-overview-item.is-week > div { display:flex; flex-wrap:wrap; gap:5px 12px; color:var(--ink); font-size:12px; }
.sales-plan-overview-item.is-week .pill { margin-left:4px; vertical-align:middle; }
.home-sales-daily-summary {
  margin:12px 0;
  padding:14px 16px;
  border-top:3px solid #1f8f68;
}
.home-sales-daily-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.home-sales-daily-head h2 {
  margin:2px 0 0;
  color:var(--brand);
  font-size:20px;
}
.home-sales-daily-grid {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}
.home-sales-daily-block {
  border:1px solid var(--line-strong);
  border-radius:7px;
  overflow:hidden;
  background:#fff;
}
.home-sales-daily-block:first-child { border-top:3px solid #2766c7; }
.home-sales-daily-block:last-child { border-top:3px solid #d88920; }
.home-sales-daily-block-head {
  display:flex;
  justify-content:space-between;
  gap:8px;
  padding:9px 11px;
  background:#f7f9fc;
}
.home-sales-daily-block-head b { color:var(--brand); }
.home-sales-daily-block-head span { color:var(--muted); font-size:13px; font-weight:700; }
.home-sales-daily-metrics {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
}
.home-sales-daily-metric {
  display:grid;
  gap:2px;
  padding:9px 11px;
}
.home-sales-daily-metric + .home-sales-daily-metric { border-left:1px solid var(--line); }
.home-sales-daily-metric span { color:var(--muted); font-size:13px; }
.home-sales-daily-metric b { color:var(--brand); font-size:22px; }
.sales-interview-hero {
  align-items:end;
}
.sales-interview-week-form {
  display:grid;
  grid-template-columns:112px 150px 180px 112px;
  gap:8px;
  align-items:end;
  min-width:min(100%, 580px);
}
.sales-interview-week-form .btn,
.sales-interview-week-form button,
.sales-interview-week-form .input {
  width:100%;
  min-height:40px;
  height:40px;
  border-radius:8px;
  padding:8px 12px;
  line-height:1.1;
  text-align:center;
}
.sales-interview-stats {
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
  margin:10px 0;
}
.sales-interview-stat {
  display:grid;
  gap:3px;
  min-height:82px;
  padding:10px 12px;
  border:1px solid var(--line-strong);
  border-left:4px solid var(--brand-2);
  border-radius:8px;
  background:#ffffff;
  box-shadow:var(--shadow);
}
.sales-interview-stat span,
.sales-interview-stat small {
  display:block;
  color:var(--muted);
  font-weight:800;
}
.sales-interview-stat b {
  display:block;
  color:var(--brand);
  font-size:28px;
  line-height:1;
}
.sales-interview-stat.ok {
  border-left-color:#0f8a68;
  background:#f3fff9;
}
.sales-interview-stat.bad {
  border-left-color:#b42318;
  background:#fff7f5;
}
.sales-interview-stat.warn {
  border-left-color:#d89000;
  background:#fffaf0;
}
.sales-plan-board {
  padding:0;
  overflow:hidden;
}
.sales-region-board {
  padding:0;
  overflow:hidden;
}
.sales-plan-board-head {
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:12px;
  align-items:center;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
  background:#f8fbff;
}
.sales-plan-board-head p {
  margin:4px 0 0;
}
.sales-region-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  padding:10px;
  background:#f7f9fd;
}
.sales-region-card {
  display:grid;
  gap:8px;
  padding:10px;
  border:1px solid var(--line-strong);
  border-radius:8px;
  background:#ffffff;
  box-shadow:var(--shadow);
}
.sales-region-card-compact {
  gap:10px;
  padding:0;
  overflow:hidden;
}
.sales-region-card-head {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(90deg, #ffffff 0%, #f7fbff 100%);
}
.sales-region-card h3 {
  margin:0;
  color:var(--brand);
  font-size:20px;
  line-height:1.15;
}
.sales-region-card p {
  margin:3px 0 0;
  color:var(--muted);
  font-size:13px;
}
.sales-region-targets {
  display:grid;
  gap:10px;
  padding:0 14px 12px;
}
.sales-region-targets label,
.sales-region-plan-inputs label {
  display:grid;
  gap:3px;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}
.sales-region-targets .input {
  min-height:34px;
  border-radius:6px;
}
.sales-region-targets textarea.input {
  min-height:58px;
  max-height:96px;
  resize:vertical;
  line-height:1.25;
}
.sales-region-targets .wide {
  grid-column:span 2;
}
.sales-region-kpis {
  display:grid;
  grid-template-columns:1.15fr 1fr 1.25fr .85fr;
  gap:8px;
  align-items:stretch;
}
.sales-region-kpi {
  display:grid;
  gap:4px;
  min-height:78px;
  padding:9px 10px;
  border:1px solid var(--line);
  border-left:4px solid var(--brand-2);
  border-radius:8px;
  background:#f8fbff;
}
.sales-region-kpi span {
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.sales-region-kpi b {
  color:var(--brand);
  font-size:16px;
  line-height:1.25;
}
.sales-region-kpi em {
  margin-left:4px;
  font-style:normal;
}
.sales-region-kpi-plan {
  background:#ffffff;
  border-left-color:#0f8a68;
}
.sales-region-kpi-progress {
  border-left-color:#2563eb;
}
.sales-region-kpi-gap {
  border-left-color:#f59e0b;
}
.sales-region-plan-inputs {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
}
.sales-region-plan-inputs .input {
  height:34px;
  min-height:34px;
  font-size:15px;
  font-weight:900;
}
.sales-region-notes {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.sales-region-mini {
  min-height:50px;
  padding:7px 9px;
  border:1px solid var(--line);
  border-left:4px solid var(--brand-2);
  border-radius:8px;
  background:#f8fbff;
}
.sales-region-mini span,
.sales-region-mini b {
  display:block;
}
.sales-region-mini span {
  color:var(--muted);
  font-size:11px;
}
.sales-region-mini b {
  margin-top:3px;
  color:var(--brand);
}
.sales-region-actions-row {
  display:flex;
  gap:8px;
  justify-content:flex-end;
  align-items:center;
  padding-top:2px;
}
.sales-region-actions-row .compact-save {
  min-height:32px;
  border-radius:6px;
  padding:7px 14px;
}
.sales-region-actions-row .confirm {
  background:#0f8a68;
  border-color:#0f8a68;
}
.sales-office-plans {
  display:grid;
  gap:6px;
  margin:0 14px;
  padding:8px;
  border:1px solid #c7d2fe;
  border-radius:8px;
  background:#f5f8ff;
}
.sales-office-head {
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:center;
}
.sales-office-head .compact-save {
  margin-left:auto;
  white-space:nowrap;
}
.sales-region-autosave-status {
  display:inline-block;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}
.sales-region-autosave-status.ok {
  color:#0f8a68;
}
.sales-region-autosave-status.bad {
  color:#b42318;
}
.sales-region-autosave-status.pending {
  color:#9a6700;
}
.sales-office-table th,
.sales-office-table td {
  padding:6px 7px;
  font-size:12px;
  vertical-align:middle;
}
.sales-office-table .compact-input {
  min-height:30px;
  height:30px;
  width:86px;
  font-size:12px;
}
.sales-office-row-form {
  margin:0;
}
.sales-office-row-form .compact-save {
  min-height:30px;
  padding:4px 8px;
  border-radius:6px;
  font-size:12px;
}
.sales-office-add-form {
  display:grid;
  grid-template-columns:minmax(160px, 1fr) 110px 120px auto;
  gap:6px;
  align-items:center;
}
.sales-office-add-form .input,
.sales-office-add-form button {
  min-height:32px;
  height:32px;
  border-radius:6px;
  font-size:12px;
}
.sales-region-actions {
  display:grid;
  gap:6px;
  margin:0 14px 14px;
}
.sales-region-action {
  display:grid;
  grid-template-columns:minmax(120px, 1fr) 120px 100px minmax(180px, 1.2fr);
  gap:6px;
  align-items:center;
  padding:7px 8px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fbfcff;
}
.sales-region-action.empty {
  display:block;
  color:var(--muted);
}
.sales-region-action b,
.sales-region-action span,
.sales-region-action small {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sales-region-action span,
.sales-region-action small {
  color:var(--muted);
}
.sales-region-action-form,
.sales-region-add-action {
  display:grid;
  grid-template-columns:115px minmax(120px, 1fr) auto;
  gap:5px;
  align-items:center;
}
.sales-region-add-action {
  grid-template-columns:150px minmax(160px, 1fr) 130px auto;
}
.sales-region-action-form .input,
.sales-region-add-action .input {
  min-height:32px;
  height:32px;
  border-radius:6px;
  font-size:12px;
}
.sales-region-action-form button,
.sales-region-add-action button {
  min-height:32px;
  padding:5px 9px;
  border-radius:6px;
  font-size:12px;
}
.sales-plan-scroll {
  max-height:calc(100vh - 270px);
  min-height:360px;
  overflow:auto;
}
.sales-plan-search-form {
  display:grid;
  grid-template-columns:minmax(220px, 1fr) minmax(150px, 190px) 120px 120px;
  gap:8px;
  align-items:center;
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  background:#ffffff;
}
.sales-plan-search-form.has-date {
  grid-template-columns:154px minmax(190px, 1fr) minmax(150px, 190px) 104px 104px;
  align-items:end;
}
.sales-plan-search-form label {
  display:grid;
  gap:3px;
  margin:0;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}
.sales-plan-search-form .input,
.sales-plan-search-form button,
.sales-plan-search-form .btn {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  height:36px;
  border-radius:6px;
  white-space:nowrap;
}
.sales-plan-matrix {
  width:max-content;
  min-width:1280px;
  font-size:13px;
  table-layout:fixed;
}
.sales-plan-day-scroll {
  min-height:220px;
  max-height:calc(100vh - 360px);
}
.sales-plan-day-matrix {
  min-width:980px;
}
.sales-plan-matrix.sales-plan-day-matrix thead th:not(.sales-person-head),
.sales-plan-matrix.sales-plan-day-matrix tbody tr:not(.sales-office-section-row) td:not(.sales-person-cell) {
  width:185px;
  min-width:185px;
}
.sales-plan-matrix.sales-plan-day-matrix .sales-daily-total-cell {
  width:130px;
  min-width:130px;
}
.sales-day-cell {
  padding:7px 9px !important;
  vertical-align:middle !important;
}
.sales-day-entry {
  display:flex;
  align-items:center;
  gap:7px;
}
.sales-day-cell .input {
  min-height:32px;
  height:32px;
}
.sales-day-entry .compact-input {
  flex:0 0 70px;
  width:70px;
  font-weight:850;
}
.sales-day-plan-cell { background:#f5f9ff; }
.sales-day-fact-cell { background:#f3fbf7; }
.sales-day-plan-cell .compact-input { border-color:#b9cff6; color:#144c9d; }
.sales-day-fact-cell .compact-input { border-color:#a7dbc4; color:#087655; }
.sales-day-comment-cell { background:#ffffff; }
.sales-day-cell .sales-day-comment {
  min-height:28px;
  height:28px;
  font-size:12px;
}
.sales-day-cell .pill { justify-self:start; white-space:nowrap; }
.sales-plan-column-head { background:#e7f0ff !important; color:#1456b9 !important; }
.sales-fact-column-head { background:#e7f8ef !important; color:#087a57 !important; }
.sales-daily-total-cell {
  display:grid;
  grid-template-columns:auto 1fr;
  gap:2px 6px;
  align-items:baseline;
}
.sales-daily-total-cell b { color:var(--brand); }
.sales-daily-total-cell span { color:var(--muted); font-size:12px; }
.sales-daily-total-cell .pill { grid-column:1 / -1; justify-self:start; margin-top:2px; }
.sales-day-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.sales-plan-day-board .sales-plan-board-head { padding:12px 14px 9px; }
.sales-plan-day-board .sales-plan-board-head h2 { font-size:18px; }
.sales-plan-day-board .sales-plan-board-head p { margin:3px 0 0; }
.sales-plan-secondary {
  border:1px solid var(--line-strong);
  border-radius:8px;
  background:#fff;
}
.sales-plan-history { margin-top:0; }
.sales-plan-secondary > summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 14px;
  color:var(--brand);
  cursor:pointer;
}
.sales-plan-secondary[open] > summary { border-bottom:1px solid var(--line); }
.sales-plan-secondary > .sales-region-board,
.sales-plan-secondary > .sales-plan-board { border:0; border-radius:0; box-shadow:none; }
.sales-plan-matrix th,
.sales-plan-matrix td {
  padding:6px 8px;
  vertical-align:top;
  box-sizing:border-box;
}
.sales-plan-matrix thead th {
  position:sticky;
  top:0;
  z-index:3;
  background:#eef5ff;
}
.sales-day-confirm-form {
  display:none;
}
.sales-day-confirm-button {
  display:block;
  width:100%;
  min-height:26px;
  margin-top:5px;
  padding:4px 6px;
  border:1px solid #b9d2ff;
  border-radius:6px;
  background:#ffffff;
  color:#06307c;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
}
.sales-day-confirm-button:hover {
  border-color:#145bd7;
  background:#f8fbff;
}
.sales-person-cell {
  position:sticky;
  left:0;
  z-index:2;
  width:210px;
  min-width:210px;
  background:#fbfcff;
  box-shadow:1px 0 0 var(--line);
}
.sales-plan-matrix thead th:not(.sales-person-head),
.sales-plan-matrix tbody tr:not(.sales-office-section-row) td:not(.sales-person-cell) {
  width:118px;
  min-width:118px;
}
.sales-plan-matrix thead .sales-person-head {
  z-index:4;
  width:210px;
  min-width:210px;
}
.sales-office-section-row td {
  padding:0;
  border-top:1px solid var(--line-strong);
  border-bottom:1px solid var(--line);
  background:#f4f8ff;
}
.sales-office-section-label {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:7px 10px;
  background:linear-gradient(90deg, #eef6ff 0%, #f7fbff 70%, #ffffff 100%);
}
.sales-office-section-row span {
  color:var(--brand);
  font-weight:900;
  max-width:320px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sales-office-section-row b {
  flex:0 0 auto;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  padding:2px 8px;
  border:1px solid #cfe0ff;
  border-radius:999px;
  background:#ffffff;
}
.sales-person-cell b,
.sales-person-cell span {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sales-person-cell span {
  margin-top:2px;
  color:var(--muted);
  font-size:12px;
}
.sales-metric-cell {
  width:105px;
  min-width:105px;
  background:#fbfcff;
}
.sales-metric-cell b::before {
  content:"";
  display:inline-block;
  width:7px;
  height:7px;
  margin:0 6px 1px 0;
  border-radius:50%;
  background:#f4a21b;
}
.sales-metric-cell b { white-space:nowrap; }
.sales-metric-cell small {
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
  line-height:1.25;
}
.sales-week-cell {
  width:124px;
  min-width:124px;
}
.sales-week-cell b,
.sales-week-cell span,
.sales-week-cell small {
  display:block;
}
.sales-week-cell small {
  color:var(--muted);
  font-size:12px;
  line-height:1.25;
  margin-top:3px;
  max-width:150px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sales-week-cell.editable {
  min-width:136px;
}
.sales-autosave-status {
  display:block;
  min-height:16px;
  margin-top:4px;
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  line-height:1.2;
}
.sales-autosave-status.ok {
  color:#0f8a68;
}
.sales-autosave-status.bad {
  color:#b42318;
}
.sales-autosave-status.pending {
  color:#9a6700;
}
.sales-day-title {
  display:flex;
  justify-content:space-between;
  gap:6px;
  align-items:center;
  margin-bottom:4px;
}
.sales-week-inputs {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4px;
}
.sales-week-inputs label {
  display:grid;
  gap:2px;
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
}
.sales-week-inputs .compact-input {
  min-height:30px;
  height:30px;
  padding:5px 6px;
  font-size:13px;
  border-radius:6px;
}
.sales-week-inputs .sales-week-comment {
  grid-column:1 / span 2;
  min-height:28px;
  height:28px;
  padding:5px 6px;
  font-size:12px;
  border-radius:6px;
}
.sales-total-cell {
  width:132px;
  min-width:132px;
  background:#fbfcff;
}
.sales-row-form {
  margin-top:6px;
}
.sales-total-cell .compact-save {
  width:100%;
  min-height:30px;
  padding:5px 8px;
  border-radius:6px;
  font-size:12px;
}
.sales-total-cell .compact-save.confirm {
  margin-top:5px;
  background:#0f8a68;
  border-color:#0f8a68;
}
.sales-plan-view-tabs {
  display:flex;
  gap:6px;
  align-items:center;
  border-bottom:1px solid var(--line);
  padding:0 2px;
}
.sales-plan-view-tab {
  display:inline-flex;
  min-height:34px;
  align-items:center;
  padding:0 12px;
  border:1px solid transparent;
  border-bottom:0;
  border-radius:7px 7px 0 0;
  color:var(--muted);
  font-weight:850;
  text-decoration:none;
}
.sales-plan-view-tab:hover {
  color:var(--brand);
  background:#eef6ff;
}
.sales-plan-view-tab.is-active {
  position:relative;
  top:1px;
  color:var(--brand);
  border-color:var(--line-strong);
  background:#ffffff;
}
.sales-leaderboard {
  padding:0;
  overflow:hidden;
}
.sales-leader-podium {
  display:grid;
  grid-template-columns:repeat(5, minmax(150px, 1fr));
  gap:8px;
  padding:12px 14px;
  overflow-x:auto;
  background:#f7f9fd;
}
.sales-leader-card {
  display:grid;
  gap:5px;
  min-width:150px;
  padding:12px;
  border:1px solid var(--line-strong);
  border-top:3px solid #2f74de;
  border-radius:8px;
  background:#ffffff;
}
.sales-leader-card:nth-child(1) { border-top-color:#e1a300; }
.sales-leader-card:nth-child(2) { border-top-color:#768397; }
.sales-leader-card:nth-child(3) { border-top-color:#b66d36; }
.sales-leader-card:nth-child(4) { border-top-color:#2f74de; }
.sales-leader-card:nth-child(5) { border-top-color:#148968; }
.sales-leader-card b { line-height:1.25; }
.sales-leader-card span { color:var(--muted); font-size:12px; }
.sales-leader-card strong { color:var(--brand); font-size:18px; }
.sales-leader-person {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.sales-leader-person b {
  color:var(--ink);
  overflow:hidden;
  text-overflow:ellipsis;
}
.sales-leader-avatar,
.sales-leader-table-avatar {
  flex:0 0 auto;
  width:38px;
  height:38px;
  border:2px solid #ffffff;
  box-shadow:0 1px 5px rgba(24,47,86,.18);
}
.sales-leader-table-avatar {
  width:32px;
  height:32px;
}
.sales-rank-medal {
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:48px;
  margin:0 3px 3px;
  vertical-align:middle;
}
.sales-rank-medal-face {
  position:relative;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.95);
  color:#ffffff;
  font-size:16px;
  font-weight:850;
  line-height:1;
  box-shadow:0 5px 12px rgba(18,37,70,.18), inset 0 2px 4px rgba(255,255,255,.24);
}
.sales-rank-medal-ribbon,
.sales-rank-medal-ribbon::after {
  content:"";
  position:absolute;
  bottom:1px;
  width:10px;
  height:20px;
  border-radius:2px 2px 7px 7px;
  background:#d84e55;
  transform:rotate(15deg);
}
.sales-rank-medal-ribbon { left:12px; }
.sales-rank-medal-ribbon::after {
  left:9px;
  bottom:0;
  background:#214e95;
  transform:rotate(-30deg);
}
.sales-rank-medal-gold .sales-rank-medal-face { background:linear-gradient(145deg,#ffd86a,#d99a09); }
.sales-rank-medal-silver .sales-rank-medal-face { background:linear-gradient(145deg,#e8edf6,#7b8797); }
.sales-rank-medal-bronze .sales-rank-medal-face { background:linear-gradient(145deg,#e5a06a,#9a5625); }
.sales-rank-medal-cobalt .sales-rank-medal-face { background:linear-gradient(145deg,#5fa7ff,#255eb8); }
.sales-rank-medal-emerald .sales-rank-medal-face { background:linear-gradient(145deg,#45c18f,#0d7350); }
.sales-rank-marker {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:50%;
  color:#ffffff;
  background:#63718a;
  font-size:12px;
  font-weight:900;
}
.sales-rank-marker.top-1 { background:#e1a300; }
.sales-rank-marker.top-2 { background:#768397; }
.sales-rank-marker.top-3 { background:#b66d36; }
.sales-rank-marker.top-4,
.sales-rank-marker.top-5 { background:#2f74de; }
.sales-leader-table td:first-child { width:54px; }
@media (max-width: 900px) {
  .sales-leader-podium { grid-template-columns:repeat(5, minmax(170px, 1fr)); }
}
@media (max-width: 900px) {
  .sales-plan-page > * {
    min-width:0;
  }
  .sales-plan-view-tabs {
    flex-wrap:wrap;
    align-items:stretch;
  }
  .sales-plan-view-tab {
    min-height:32px;
    padding:0 9px;
  }
  .sales-plan-topbar,
  .sales-plan-month-form,
  .sales-interview-hero,
  .sales-plan-board-head {
    grid-template-columns:1fr;
  }
  .home-sales-daily-grid { grid-template-columns:1fr; }
  .home-sales-daily-head { align-items:stretch; flex-direction:column; }
  .home-sales-daily-head .button { width:100%; }
  .sales-interview-week-form {
    grid-template-columns:1fr 1fr;
    min-width:0;
  }
  .sales-plan-overview {
    grid-template-columns:1fr;
  }
  .sales-plan-overview-item + .sales-plan-overview-item {
    border-left:4px solid var(--brand-2);
    border-top:1px solid var(--line);
  }
  .sales-region-grid,
  .sales-region-targets,
  .sales-region-kpis,
  .sales-region-notes,
  .sales-region-action,
  .sales-region-action-form,
  .sales-region-add-action,
  .sales-office-add-form {
    grid-template-columns:1fr;
  }
  .sales-region-card-head,
  .sales-region-actions-row,
  .sales-office-head {
    align-items:stretch;
    flex-direction:column;
  }
  .sales-region-plan-inputs {
    grid-template-columns:1fr 1fr;
  }
  .sales-region-targets .wide,
  .sales-region-actions-row {
    grid-column:auto;
  }
  .sales-interview-stats {
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .sales-plan-search-form {
    grid-template-columns:1fr;
  }
  .sales-day-actions { justify-content:flex-start; }
  .sales-plan-day-scroll { max-height:none; }
  .sales-plan-scroll {
    max-height:none;
  }
  .bankruptcy-payout-requisites-grid,
  .bankruptcy-payout-debtor-form-grid {
    grid-template-columns:1fr 1fr;
  }
  .chat-page {
    grid-template-columns:minmax(0, 1fr);
  }
  .chat-sidebar {
    position:static;
  }
  .chat-dialog {
    min-height:560px;
  }
  .chat-message {
    max-width:94%;
  }
}
@media (max-width: 620px) {
  .bankruptcy-payout-requisites-grid,
  .bankruptcy-payout-debtor-form-grid,
  .bankruptcy-payout-review-actions form,
  .bankruptcy-payout-reject-form {
    grid-template-columns:1fr;
    display:grid;
  }
  .bankruptcy-payout-requisites-summary .toolbar,
  .bankruptcy-payout-review-actions {
    grid-template-columns:1fr;
    display:grid;
  }
  .bankruptcy-payout-requisites-summary .button,
  .bankruptcy-payout-debtor-form button,
  .bankruptcy-payout-review-actions button {
    width:100%;
  }
  .chat-start-row,
  .chat-search-form,
  .chat-settings-grid,
  .chat-compose-bottom {
    grid-template-columns:1fr;
    display:grid;
  }
  .chat-auto-groups > div {
    display:grid;
  }
  .chat-auto-groups button,
  .chat-search-form button,
  .chat-start-row button {
    width:100%;
  }
  .chat-compose-bottom button {
    width:100%;
  }
  .chat-dialog-head,
  .chat-messages,
  .chat-pinned,
  .chat-group-manage,
  .chat-compose {
    padding:14px;
  }
  .chat-pinned {
    grid-template-columns:1fr;
  }
  .chat-image-preview {
    width:100%;
    max-height:220px;
  }
}

/* ===== План продаж: отчёт за произвольный период ===== */
.sales-period-toolbar {
  display:grid;
  gap:10px;
  padding:12px 14px;
}
.sales-period-presets {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.sales-period-chip {
  padding:6px 12px;
  border:1px solid var(--line-strong);
  border-radius:999px;
  background:#fff;
  color:var(--ink);
  font-size:13px;
  font-weight:750;
  text-decoration:none;
  white-space:nowrap;
}
.sales-period-chip:hover { border-color:var(--brand-2); background:#f4f8ff; }
.sales-period-chip.is-active {
  border-color:#2766c7;
  background:#2766c7;
  color:#fff;
}
.sales-period-form {
  display:grid;
  grid-template-columns:auto auto minmax(150px, 1fr) minmax(140px, 190px) auto auto;
  gap:8px;
  align-items:end;
  padding-top:10px;
  border-top:1px solid var(--line);
}
.sales-period-form label {
  display:grid;
  gap:3px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.sales-period-cards {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:10px;
}
.sales-period-card {
  display:grid;
  gap:5px;
  align-content:start;
  padding:12px 14px;
  border:1px solid var(--line-strong);
  border-top:3px solid #2766c7;
  border-radius:8px;
  background:#fff;
  box-shadow:var(--shadow);
}
.sales-period-card:nth-child(2n) { border-top-color:#0f8a68; }
.sales-period-card header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.sales-period-card header span {
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.sales-period-card > b {
  color:var(--brand);
  font-size:30px;
  line-height:1.05;
  font-variant-numeric:tabular-nums;
}
.sales-period-card small { color:var(--muted); font-size:12px; font-weight:700; }
.sales-period-bar {
  height:6px;
  margin:3px 0 1px;
  overflow:hidden;
  border-radius:999px;
  background:#e8eef7;
}
.sales-period-bar i {
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg, #2766c7, #0f8a68);
}
.sales-period-table th.num,
.sales-period-table td.num { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.sales-period-table thead tr:first-child th { border-bottom:1px solid var(--line); text-align:center; }
.sales-period-table thead tr:first-child th:not(:first-child) { background:#f4f8ff; }
.sales-period-table tbody tr:hover { background:#f8fbff; }
.sales-period-managers .sales-plan-board-head { margin-bottom:8px; }

@media (max-width: 900px) {
  .sales-period-form { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .sales-period-form button,
  .sales-period-form .btn { grid-column:span 1; }
  .sales-plan-period-page .sales-plan-topbar { grid-template-columns:minmax(0, 1fr); }
}
