.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:8px;
}
.bankruptcy-payout-register-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 0 2px;
  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;
  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-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:9px 12px;
}
.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 {
  min-height:38px;
}
.bankruptcy-payout-work-panel {
  padding:11px 12px;
}
.bankruptcy-payout-work-panel .cabinet-zone-head {
  margin-bottom:8px;
}
.bankruptcy-payout-work-panel .cabinet-zone-head h2 {
  font-size:18px;
}
.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;
}
.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:8px 10px;
}
.bankruptcy-payout-page .payments-table td {
  padding:8px 10px;
}
.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:8px;
}
.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;
}
.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;
  gap:14px;
  width:100%;
  max-width:min(1680px, calc(100vw - 40px));
  box-sizing:border-box;
  margin:0 auto;
  padding:22px 26px;
  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 {
  border-bottom:1px solid #e8e8e8;
  padding-bottom:16px;
}
.bankruptcy-payout-flat-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}
.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:24px;
  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(430px,1.35fr) minmax(230px,.75fr) minmax(270px,.9fr);
  gap:18px;
  align-items:start;
}
.bankruptcy-payout-flat-dates {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 14px;
}
.bankruptcy-payout-flat-dates label {
  display:grid;
  gap:7px;
  color:#151515;
  font-size:18px;
  font-weight:500;
}
.bankruptcy-payout-flat-dates input {
  width:100%;
  min-height:42px;
  padding:7px 12px;
  border:1px solid #dedede;
  border-radius:14px;
  background:#ffffff;
  color:#111111;
  font-size:22px;
  font-weight:500;
}
.bankruptcy-payout-flat-dates p {
  grid-column:1 / -1;
  margin:0;
  color:#8b8b8b;
  font-size:18px;
  line-height:1.25;
}
.bankruptcy-payout-flat-pm,
.bankruptcy-payout-flat-recipient {
  min-height:118px;
  padding-left:16px;
  border-left:1px solid #e6e6e6;
}
button.bankruptcy-payout-flat-pm {
  width:100%;
  border-top:0;
  border-right:0;
  border-bottom:0;
  background:transparent;
  text-align:left;
  font:inherit;
  cursor:pointer;
  transition:background .16s ease, box-shadow .16s ease;
}
button.bankruptcy-payout-flat-pm:hover,
button.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 {
  display:block;
  color:#8a8a8a;
  font-size:20px;
  font-weight:500;
}
.bankruptcy-payout-flat-pm b,
.bankruptcy-payout-flat-recipient b {
  display:block;
  margin-top:7px;
  color:#111111;
  font-size:24px;
  font-weight:600;
  line-height:1.15;
}
.bankruptcy-payout-flat-pm p,
.bankruptcy-payout-flat-recipient p {
  margin:7px 0 0;
  color:#151515;
  font-size:18px;
  line-height:1.25;
}
.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(3,1fr);
  gap:16px;
}
.bankruptcy-payout-flat-metric {
  min-height:116px;
  padding:20px 18px;
  border-radius:16px;
  background:#f4f4f4;
}
.bankruptcy-payout-flat-metric span {
  display:block;
  color:#8d8d8d;
  font-size:20px;
  line-height:1.15;
}
.bankruptcy-payout-flat-metric b {
  display:block;
  margin-top:8px;
  color:#111111;
  font-size:30px;
  font-weight:600;
  line-height:1.1;
}
.bankruptcy-payout-flat-metric small {
  display:block;
  margin-top:8px;
  color:#8d8d8d;
  font-size:16px;
}
.bankruptcy-payout-excel-board {
  display:grid;
  gap:12px;
}
.bankruptcy-payout-excel-board-head {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:16px;
}
.bankruptcy-payout-excel-board-head h3 {
  margin:0;
  color:#151515;
  font-size:22px;
  font-weight:650;
}
.bankruptcy-payout-excel-board-head p {
  max-width:760px;
  margin:4px 0 0;
  color:#7f7f7f;
  font-size:15px;
  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:12px;
  align-items:start;
}
.bankruptcy-payout-excel-lane {
  min-width:0;
  border:1px solid #e6e8ed;
  border-radius:16px;
  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:10px 12px;
  border-bottom:1px solid #edf0f5;
}
.bankruptcy-payout-excel-lane-head h3 {
  margin:0;
  color:#111111;
  font-size:18px;
  font-weight:650;
}
.bankruptcy-payout-excel-lane-head span {
  padding:4px 8px;
  border-radius:999px;
  background:#f3f6fb;
  color:#6f7785;
  font-size:12px;
  white-space:nowrap;
}
.bankruptcy-payout-excel-table-wrap {
  max-height:290px;
  overflow:auto;
}
.bankruptcy-payout-excel-table {
  width:100%;
  border-collapse:collapse;
}
.bankruptcy-payout-excel-table th,
.bankruptcy-payout-excel-table td {
  padding:8px 9px;
  border-bottom:1px solid #edf0f5;
  color:#151515;
  font-size:14px;
  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:12px;
  line-height:1.25;
  overflow-wrap:anywhere;
}
.bankruptcy-payout-excel-total {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  background:#fbfcfe;
  color:#6f7785;
  font-size:14px;
  font-weight:650;
}
.bankruptcy-payout-excel-total b {
  color:#f08a00;
  font-size:18px;
  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-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-flat-tab-list {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.bankruptcy-payout-flat-tab-list button,
.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 button {
  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 button.active {
  border-color:#2b9fec;
  background:#2b9fec;
  color:#ffffff;
}
.bankruptcy-payout-flat-tab-list button:not(.active):hover,
.bankruptcy-payout-flat-tab-list button: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-flat-details details: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-details,
.bankruptcy-payout-movement-details {
  border-top:1px solid #e8e8e8;
}
.bankruptcy-payout-flat-details details,
.bankruptcy-payout-movement-details {
  border:0;
  box-shadow:none;
}
.bankruptcy-payout-flat-details summary,
.bankruptcy-payout-movement-details > summary {
  cursor:pointer;
  padding:12px 0;
  color:#777777;
  font-size:18px;
  font-weight:500;
}
.bankruptcy-payout-pm-editor {
  display:grid;
  gap:12px;
  padding:4px 0 12px;
}
.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-debtor-filters {
  padding-bottom:16px;
}
.payment-debtors-table td {
  vertical-align:top;
}
.payment-debtors-table td:nth-child(1),
.payment-debtors-table td:nth-child(2),
.payment-debtors-table td:nth-child(3),
.payment-debtors-table td:nth-child(4),
.payment-debtors-table td:nth-child(5) {
  white-space:nowrap;
}
.payment-debtors-table td:nth-child(5),
.payment-debtors-table td:nth-child(6) {
  color:inherit;
  font-size:inherit;
  font-weight:inherit;
}
.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-comment {
  min-width:260px;
  max-width:520px;
  white-space:normal !important;
}
.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-table td:nth-child(1),
  .payment-debtors-table td:nth-child(2),
  .payment-debtors-table td:nth-child(3),
  .payment-debtors-table td:nth-child(4),
  .payment-debtors-table td:nth-child(5) {
    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-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-links {
    gap:14px;
    font-size:16px;
  }
  .bankruptcy-payout-flat-pm,
  .bankruptcy-payout-flat-recipient {
    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 .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);
}
@media (max-width: 900px) {
  .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;
  }
}
