/* ===== Карточка организации ===== */

.content-org-show .org-card {
  border-radius: 18px;
}

.content-org-show .org-grid {
  grid-template-columns: minmax(0, 1fr);
}

.content-org-show #finance {
  grid-column: 1;
}

.status-badge.is-warning {
  background: rgba(245, 158, 11, 0.08);
  color: #92400e;
  border-color: rgba(253, 186, 116, 0.95);
}

.status-badge.is-warning .status-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.22);
}

.search-result-status.is-warning {
  background: #fff7ed;
  color: #92400e;
}

.content-org-show .status-note-list {
  display: grid;
  gap: 4px;
  max-width: 780px;
  margin-top: 8px;
  color: #dc2626;
  font-size: 13px;
  line-height: 1.35;
}

.content-org-show .status-note {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

.content-org-show .field.field-line {
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  line-height: 1.45;
}

.content-org-show .field.field-line .label {
  width: 220px;
  flex-shrink: 0;
}

.content-org-show .field.field-line .value {
  flex: 1;
  min-width: 0;
}

.org-finance-kpi {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.org-kpi {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  background: #f9fafb;
  padding: 10px 12px;
}

.org-kpi-value {
  margin-top: 4px;
  color: #0f172a;
  font-size: clamp(18px, 0.8vw + 16px, 26px);
  font-weight: 700;
  line-height: 1.1;
}

.org-kpi-trend {
  margin-top: 4px;
  color: #166534;
  font-size: 12px;
  font-weight: 600;
}

.org-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 13px;
}

.org-table th,
.org-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  text-align: left;
  vertical-align: top;
}

.org-table th {
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}

.org-table tr:nth-child(odd) td {
  background: #f8fafc;
}

.org-person-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.org-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(145deg, #eef2ff, #dbeafe);
  color: var(--tag-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
}

.org-person-name,
.org-list-title {
  color: #111827;
  font-weight: 700;
}

.muted,
.small {
  color: #6b7280;
}

.small {
  font-size: 12px;
  line-height: 1.45;
}

.org-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.org-list-item {
  padding: 9px 10px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 10px;
  background: #f9fafb;
}

.org-list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.org-list-inline span,
.org-rating-values span {
  display: inline-flex;
  border: 1px solid rgba(199, 210, 254, 0.9);
  border-radius: 999px;
  background: rgba(238, 242, 255, 0.9);
  color: var(--tag-text);
  padding: 4px 8px;
  font-size: 12px;
}

.org-rating-values {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.org-danger-text {
  color: var(--danger);
}

.risk-score-bar-fill.is-warn {
  width: 68%;
  background: linear-gradient(90deg, #22c55e, #f59e0b, #ef4444);
}

.org-sidebar-menu a.ip-sidebar-link .org-sidebar-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: transparent;
  color: #3730a3;
  box-shadow: none;
}

.org-sidebar-menu a.ip-sidebar-link .org-sidebar-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.org-sidebar-menu a.ip-sidebar-link:hover .org-sidebar-icon {
  color: var(--accent);
  filter: none;
}

.org-empty-note {
  padding: 10px 12px;
  border: 1px dashed rgba(148, 163, 184, 0.75);
  border-radius: 10px;
  background: #f8fafc;
  color: #6b7280;
  line-height: 1.45;
}

.org-plain-note {
  color: #374151;
  font-size: 14px;
  line-height: 1.45;
}

.finance-state {
  display: grid;
  gap: 16px;
}

.finance-subblock,
.finance-extra-card,
.finance-payment-panel {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
}

.finance-subblock-lower {
  background: #f8fafc;
}

.finance-subhead {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.finance-subtitle,
.finance-note-title,
.finance-coeff-group-title,
.payment-block-title {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.finance-note {
  margin: 14px 0 10px;
  color: #64748b;
  font-size: 13px;
}

.finance-kpi-grid,
.finance-charts-row,
.finance-extra-grid,
.payment-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.finance-charts-row,
.finance-extra-grid,
.payment-dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.finance-kpi-card {
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  background: #f9fafb;
}

.finance-kpi-label,
.finance-chart-meta,
.finance-chart-unit,
.employee-year,
.leader-meta,
.founder-meta,
.relation-role,
.relation-address,
.employees-note {
  color: #64748b;
  font-size: 12px;
}

.finance-kpi-value,
.tax-total-amount,
.insurance-amount,
.employees-value {
  margin-top: 4px;
  color: #020617;
  font-size: clamp(20px, 0.9vw + 17px, 30px);
  font-weight: 800;
  line-height: 1.05;
}

.finance-kpi-change,
.payment-metric-change {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
}

.trend-up {
  color: #15803d;
}

.trend-down {
  color: #b91c1c;
}

.finance-chart {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  background: #f9fafb;
}

.finance-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.finance-bar-chart {
  min-height: 190px;
}

.finance-plot {
  display: grid;
  grid-template-rows: 150px auto;
  gap: 8px;
}

.finance-bars-area {
  display: flex;
  align-items: end;
  gap: 4px;
  min-width: 0;
  padding-top: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
}

.finance-column {
  position: relative;
  flex: 1 1 0;
  min-width: 5px;
  height: 100%;
  display: flex;
  align-items: end;
}

.finance-bar {
  display: block;
  width: 100%;
  min-height: 2px;
  height: var(--value);
  border-radius: 4px 4px 0 0;
  background: #4f46e5;
}

.finance-chart-profit .finance-bar {
  background: #16a34a;
}

.finance-column.negative .finance-bar {
  background: #dc2626;
}

.finance-x-axis {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  color: #64748b;
  font-size: 10px;
}

.finance-year-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.finance-year-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}

.finance-pdf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 34px;
  border-radius: 4px;
  background: #d34a4d;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
}

.finance-coeff-list,
.finance-coeff-group {
  display: grid;
  gap: 10px;
}

.finance-coeff-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.finance-coeff-code {
  color: #3730a3;
  font-weight: 800;
}

.finance-coeff-name {
  color: #334155;
  font-size: 13px;
}

.finance-coeff-value {
  color: #0f172a;
  font-size: 13px;
}

.finance-coeff-scale {
  grid-column: 2 / 4;
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c95f58 0%, #e68a44 25%, #f1c85b 40%, #43a047 70%, #1f6b3a 100%);
}

.finance-coeff-marker {
  position: absolute;
  top: 50%;
  left: var(--marker);
  width: 14px;
  height: 14px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #3730a3;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
}

.finance-coeff-hint {
  grid-column: 2 / 4;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.checks-list {
  display: grid;
  gap: 5px;
  color: #166534;
  font-size: 13px;
}

.checkline {
  display: flex;
  gap: 8px;
}

.checkline::before {
  content: "✓";
  color: #15803d;
  font-weight: 800;
}

.warnline {
  color: #b45309;
}

.warnline::before {
  content: "!";
  color: #b45309;
}

.payment-dashboard-grid {
  margin-bottom: 12px;
}

.payment-tax-chart,
.payment-insurance-panel {
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  background: #ffffff;
}

.tax-bar-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.tax-bar-line,
.payment-total-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.tax-name {
  min-width: 0;
  color: #334155;
}

.tax-track {
  height: 7px;
  margin-top: 5px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.tax-fill {
  display: block;
  width: var(--tax-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: #4f46e5;
}

.payment-footer {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.payment-total-line-danger {
  color: #b91c1c;
}

.leader-card,
.founder-card,
.relation-card,
.employees-card {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  background: #f9fafb;
  padding: 12px;
}

.leader-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  background: linear-gradient(145deg, #cbd5e1, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.avatar svg {
  width: 50px;
  height: 50px;
  fill: currentColor;
}

.person-title,
.founder-name,
.relation-name,
.employees-title,
.branch-group-title {
  color: #111827;
  font-weight: 700;
}

.founder-card + .founder-card {
  margin-top: 8px;
}

.founder-lines,
.relations-list,
.employees-rows,
.branches-list,
.branch-group {
  display: grid;
  gap: 8px;
}

.relations-list {
  margin-top: 10px;
}

.branches-summary,
.branch-item {
  padding: 10px 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 10px;
  background: #f9fafb;
}

.branch-item {
  display: flex;
  gap: 8px;
}

.branch-number {
  color: #64748b;
  font-weight: 700;
}

.employees-main {
  margin-bottom: 10px;
}

.employee-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.risk-profile-score {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.risk-profile-label {
  color: #334155;
  font-weight: 700;
}

.risk-profile-bar {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.risk-profile-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #86efac);
}

.risk-profile-bar-fill.is-warn {
  background: linear-gradient(90deg, #22c55e, #f59e0b, #ef4444);
}

.risk-profile-boxes {
  display: grid;
  gap: 10px;
}

.risk-profile-box {
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  background: #f9fafb;
}

.risk-profile-title {
  margin-bottom: 6px;
  color: #111827;
  font-weight: 700;
}

.risk-profile-text {
  display: flex;
  gap: 8px;
  color: #334155;
  line-height: 1.45;
}

.risk-profile-check {
  flex: 0 0 auto;
  color: #15803d;
  font-weight: 800;
}

.risk-profile-check.is-alert {
  color: #b45309;
}

@media (max-width: 880px) {
  .content-org-show .field.field-line {
    flex-direction: column;
    gap: 6px;
  }

  .content-org-show .field.field-line .label {
    width: 100%;
    white-space: normal;
  }

  .org-finance-kpi {
    grid-template-columns: minmax(0, 1fr);
  }

  .finance-kpi-grid,
  .finance-charts-row,
  .finance-extra-grid,
  .payment-dashboard-grid,
  .leader-card,
  .employee-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .finance-x-axis {
    font-size: 9px;
  }
}

/* Org card mockup alignment overrides */
.content-org-show .org-section-stack {
  gap: 0;
  margin-top: 0;
}

.content-org-show .org-section-stack > .section {
  margin-top: 14px;
}

.content-org-show .section-head {
  gap: 16px;
  margin: 0 0 10px;
}

.content-org-show .section-body {
  padding: 0;
}

.content-org-show h2::after {
  display: none;
}

.content-org-show .ip-label-row {
  margin-bottom: 8px;
}

.content-org-show .ip-label-row .ip-label-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-org-show .summary-right .tags-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 3px;
  width: auto;
  max-width: 328px;
  padding-top: 0;
  margin-top: 5px;
  text-align: right;
}

.content-org-show .summary-right .tag {
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
}

.content-org-show .fields {
  display: grid;
  gap: 0;
}

.content-org-show .field,
.content-org-show .field.field-line {
  display: flex;
  gap: 40px;
  padding: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.content-org-show .field .label,
.content-org-show .field.field-line .label {
  flex: 0 0 220px;
  width: auto;
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.content-org-show .field .value,
.content-org-show .field.field-line .value {
  flex: 1 1 auto;
  min-width: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.content-org-show #details .fields,
.content-org-show #classifiers .fields,
.content-org-show #activity .fields,
.content-org-show #contacts .fields,
.content-org-show #procurement .fields {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.content-org-show #history .fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content-org-show #activity .field,
.content-org-show #history .field,
.content-org-show #fedresurs .field,
.content-org-show #checks .field,
.content-org-show #support .field,
.content-org-show #licenses .field,
.content-org-show #trademarks .field,
.content-org-show #contacts .field,
.content-org-show #relations .field {
  flex-direction: column;
  gap: 3px;
  line-height: normal;
}

.content-org-show #activity .field .label,
.content-org-show #activity .field .value,
.content-org-show #history .field .label,
.content-org-show #history .field .value,
.content-org-show #fedresurs .field .label,
.content-org-show #fedresurs .field .value,
.content-org-show #checks .field .label,
.content-org-show #checks .field .value,
.content-org-show #support .field .label,
.content-org-show #support .field .value,
.content-org-show #licenses .field .label,
.content-org-show #licenses .field .value,
.content-org-show #trademarks .field .label,
.content-org-show #trademarks .field .value,
.content-org-show #contacts .field .label,
.content-org-show #contacts .field .value,
.content-org-show #relations .field .label,
.content-org-show #relations .field .value {
  flex: 0 1 auto;
  width: 100%;
  line-height: normal;
}

.content-org-show #finance .finance-state {
  display: grid;
  gap: 24px;
  color: #111827;
  font-size: 14px;
  line-height: 1.4;
  --finance-subsection-gap: 18px;
}

.content-org-show #finance .finance-subblock {
  display: grid;
  gap: var(--finance-subsection-gap);
  min-width: 0;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  background: transparent;
}

.content-org-show #finance .finance-results-block {
  padding-bottom: 0;
  border-bottom: 0;
}

.content-org-show #finance .finance-subblock-lower {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.content-org-show #finance .finance-subhead {
  display: grid;
  gap: 3px;
  margin: 0;
}

.content-org-show #finance .finance-subtitle,
.content-org-show #finance .finance-note.finance-note-title {
  position: relative;
  min-width: 0;
  margin: 0;
  padding-left: 17px;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.content-org-show #finance .finance-subtitle::before,
.content-org-show #finance .finance-note.finance-note-title::before {
  content: "";
  position: absolute;
  top: 0.34em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #4f86c6;
}

.content-org-show #finance #budget-payments .finance-subtitle::before {
  background: #1f9f8a;
}

.content-org-show #finance .finance-note.finance-note-title::before {
  background: #78b34d;
}

.content-org-show #finance .finance-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.content-org-show #finance .finance-kpi-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 12px 13px 11px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.content-org-show #finance .finance-kpi-label {
  color: #6b7280;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.content-org-show #finance .finance-kpi-value {
  margin-top: 6px;
  color: #111827;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.05;
}

.content-org-show #finance .finance-kpi-value.no-data {
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.content-org-show #finance .finance-kpi-change {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 700;
}

.content-org-show #finance .finance-charts-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.content-org-show #finance .finance-chart {
  --bar-color: #a7c0e5;
  min-width: 0;
  padding: 14px 16px 13px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.content-org-show #finance .finance-chart.finance-chart-profit {
  --bar-color: #9fcfd3;
}

.content-org-show #finance .finance-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.content-org-show #finance .finance-chart-head strong {
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.content-org-show #finance .finance-chart-meta,
.content-org-show #finance .finance-chart-unit,
.content-org-show #finance .finance-y-axis,
.content-org-show #finance .finance-x-axis {
  color: #6b7280;
  font-size: 10px;
  line-height: 1.2;
}

.content-org-show #finance .finance-bar-chart {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  min-width: 0;
  min-height: 0;
}

.content-org-show #finance .finance-chart-unit {
  grid-column: 1 / 3;
  justify-self: end;
  margin-bottom: 5px;
}

.content-org-show #finance .finance-y-axis {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 150px;
  padding: 0 0 18px;
  text-align: right;
}

.content-org-show #finance .finance-plot {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-rows: 150px auto;
  gap: 7px;
  min-width: 0;
}

.content-org-show #finance .finance-bars-area,
.content-org-show #finance .finance-x-axis {
  display: grid;
  grid-template-columns: repeat(var(--finance-years-count), minmax(0, 1fr));
  gap: 3px;
  min-width: 0;
}

.content-org-show #finance .finance-bars-area {
  position: relative;
  align-items: end;
  height: 150px;
  padding-top: 8px;
  border-bottom: 1px solid #d1d5db;
}

.content-org-show #finance .finance-column {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  height: 100%;
}

.content-org-show #finance .finance-bar {
  display: block;
  width: 100%;
  min-height: 2px;
  height: var(--value);
  border-radius: 4px 4px 0 0;
  background: var(--bar-color);
}

.content-org-show #finance .finance-column.negative .finance-bar {
  background: #d98b8b;
}

.content-org-show #finance .profit-chart .finance-bars-area {
  align-items: stretch;
  padding-top: 0;
  border-bottom: 0;
}

.content-org-show #finance .profit-chart .finance-bars-area::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--baseline, 50%);
  height: 1px;
  background: #d1d5db;
}

.content-org-show #finance .profit-chart .finance-column {
  align-items: flex-start;
}

.content-org-show #finance .profit-chart .finance-bar {
  position: absolute;
  left: 18%;
  right: 18%;
  top: calc(var(--baseline, 50%) - var(--profit-value, 0%));
  width: auto;
  height: var(--profit-value, 0%);
  border-radius: 4px 4px 0 0;
}

.content-org-show #finance .profit-chart .finance-column.negative .finance-bar {
  top: var(--baseline, 50%);
  border-radius: 0 0 4px 4px;
}

.content-org-show #finance .finance-x-axis {
  align-items: start;
  text-align: center;
}

.content-org-show #finance .finance-extra-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.content-org-show #finance .finance-extra-card {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.content-org-show #finance .finance-year-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 10px;
}

.content-org-show #finance .finance-year-file {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111827;
  font-size: 13px;
  font-weight: 500;
}

.content-org-show #finance .finance-pdf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 32px;
  border-radius: 3px;
  background: #d34a4d;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

.content-org-show #finance .finance-coeff-list,
.content-org-show #finance .finance-coeff-group {
  display: grid;
  gap: 10px;
}

.content-org-show #finance .finance-coeff-group-title {
  color: #111827;
  font-size: 14px;
  font-weight: 600;
}

.content-org-show #finance .finance-coeff-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 7px 10px;
  align-items: center;
  padding: 9px 0 10px;
  border-top: 1px solid #e5e7eb;
}

.content-org-show #finance .finance-coeff-code {
  color: #3730a3;
  font-size: 13px;
  font-weight: 800;
}

.content-org-show #finance .finance-coeff-name,
.content-org-show #finance .finance-coeff-value {
  color: #111827;
  font-size: 13px;
}

.content-org-show #finance .finance-coeff-value {
  font-weight: 700;
}

.content-org-show #finance .finance-coeff-scale {
  grid-column: 2 / 4;
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--scale-gradient, linear-gradient(90deg, #c95f58 0%, #e68a44 25%, #f1c85b 40%, #43a047 70%, #1f6b3a 100%));
}

.content-org-show #finance .finance-coeff-marker {
  position: absolute;
  top: 50%;
  left: var(--marker);
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--marker-color, #3730a3);
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
}

.content-org-show #finance .finance-coeff-scale-labels {
  grid-column: 2 / 4;
  position: relative;
  min-height: 13px;
  color: #6b7280;
  font-size: 10px;
}

.content-org-show #finance .finance-coeff-scale-labels span {
  position: absolute;
  left: var(--pos);
  top: 0;
  transform: translateX(-50%);
}

.content-org-show #finance .finance-coeff-scale-labels span:first-child {
  transform: translateX(0);
}

.content-org-show #finance .finance-coeff-scale-labels span:last-child {
  transform: translateX(-100%);
}

.content-org-show #finance .finance-coeff-hint {
  grid-column: 2 / 4;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
}

.content-org-show #finance .finance-payment-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.content-org-show #finance .payment-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

.content-org-show #finance .payment-tax-chart,
.content-org-show #finance .payment-insurance-panel {
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.content-org-show #finance .payment-block-title {
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
}

.content-org-show #finance .tax-total-amount,
.content-org-show #finance .insurance-amount {
  margin-top: 6px;
  color: #111827;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.05;
}

.content-org-show #finance .tax-bar-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.content-org-show #finance .tax-bar-line,
.content-org-show #finance .payment-total-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #111827;
  font-size: 13px;
}

.content-org-show #finance .tax-track {
  height: 7px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.content-org-show #finance .tax-fill {
  display: block;
  width: var(--tax-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: #1f9f8a;
}

.content-org-show #finance .payment-footer {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}

.content-org-show #riskprofile .risk-profile-score {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.content-org-show #riskprofile .risk-profile-label {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.content-org-show #riskprofile .risk-profile-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.content-org-show #riskprofile .risk-profile-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #86efac);
}

.content-org-show #riskprofile .risk-profile-bar-fill.is-warn {
  background: linear-gradient(90deg, #22c55e, #f59e0b, #ef4444);
}

.content-org-show #riskprofile .risk-profile-boxes {
  display: grid;
  gap: 12px;
}

.content-org-show #riskprofile .risk-profile-box {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.content-org-show #riskprofile .risk-profile-title {
  margin: 0 0 2px;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
}

.content-org-show #riskprofile .risk-profile-text {
  display: flex;
  gap: 8px;
  color: #111827;
  font-size: 14px;
  line-height: 1.45;
}

.content-org-show #riskprofile .risk-profile-check {
  flex: 0 0 auto;
  color: #15803d;
  font-weight: 800;
}

.content-org-show #riskprofile .risk-profile-check.is-alert {
  color: #b45309;
}

.content-org-show #leader .leader-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.content-org-show #leader .avatar {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  background: linear-gradient(145deg, #cbd5e1, #e2e8f0);
  color: #fff;
}

.content-org-show #leader .person-title,
.content-org-show #founder .founder-name,
.content-org-show #relations .relation-name,
.content-org-show #employees .employees-title,
.content-org-show #branches .branch-group-title {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.content-org-show #leader .leader-meta,
.content-org-show #founder .founder-meta,
.content-org-show #relations .relation-role,
.content-org-show #relations .relation-address,
.content-org-show #employees .employees-note {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}

.content-org-show #founder .founder-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.content-org-show #founder .founder-card + .founder-card {
  margin-top: 16px;
}

.content-org-show #founder .founder-lines {
  display: grid;
  gap: 3px;
}

.content-org-show #relations .relations-list {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.content-org-show #relations .relation-card {
  padding: 10px 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
  border-radius: 0;
  background: transparent;
}

.content-org-show #relations .relations-more {
  margin-top: 4px;
  line-height: normal;
}

.content-org-show #trademarks .trademark-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
  line-height: 1.4;
}

.content-org-show #trademarks .trademark-list-title {
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.content-org-show #trademarks .trademark-item {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.4;
}

.content-org-show #branches .branches-summary {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111827;
  font-size: 14px;
  line-height: 1.45;
}

.content-org-show #branches .branches-summary + .branches-summary {
  margin-top: 12px;
}

.content-org-show #branches .branches-list,
.content-org-show #branches .branch-group {
  display: grid;
  gap: 0;
}

.content-org-show #branches .branch-item {
  display: flex;
  gap: 8px;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
  border-radius: 0;
  background: transparent;
}

.content-org-show #branches .branch-number {
  color: #6b7280;
  font-weight: 700;
}

.content-org-show #employees .employees-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.content-org-show #employees .employees-main {
  margin-bottom: 10px;
}

.content-org-show #employees .employees-value,
.content-org-show #employees .employee-year {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.content-org-show #employees .employees-rows {
  display: grid;
  gap: 0;
}

.content-org-show #employees .employee-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.content-org-show #employees .employee-value {
  color: #111827;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 880px) {
  .content-org-show .field,
  .content-org-show .field.field-line {
    flex-direction: column;
    gap: 5px;
  }

  .content-org-show .field .label,
  .content-org-show .field.field-line .label {
    flex: 0 1 auto;
    width: 100%;
  }

  .content-org-show #finance .finance-kpi-grid,
  .content-org-show #finance .finance-charts-row,
  .content-org-show #finance .payment-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-org-show #leader .leader-card,
  .content-org-show #employees .employee-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Org card mockup final pass */
.content-org-show #finance .finance-chart-head {
  gap: 12px;
  margin-bottom: 9px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.3;
}

.content-org-show #finance .finance-chart-head strong {
  font-size: 14px;
  font-weight: 600;
}

.content-org-show #finance .finance-chart-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.content-org-show #finance .finance-chart-years {
  white-space: nowrap;
}

.content-org-show #finance .finance-chart-unit {
  grid-column: 2;
  justify-self: start;
  margin-bottom: 5px;
  color: #6b7280;
  font-size: 11px;
  line-height: 1;
}

.content-org-show #finance .finance-y-axis {
  height: 128px;
  padding: 0;
  color: #6b7280;
  font-size: 11px;
  line-height: 1;
}

.content-org-show #finance .finance-plot {
  display: block;
}

.content-org-show #finance .finance-bars-area {
  display: grid;
  grid-template-columns: repeat(var(--finance-years-count), minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  height: 128px;
  padding: 0 1px;
  overflow: visible;
  border-bottom: 1px solid #eef2f7;
  background: repeating-linear-gradient(to bottom, #eef2f7 0 1px, transparent 1px 20%);
}

.content-org-show #finance .finance-column {
  position: relative;
  height: 100%;
}

.content-org-show #finance .finance-column::after {
  content: attr(data-finance-label);
  position: absolute;
  left: 50%;
  bottom: calc(var(--value) + 8px);
  z-index: 4;
  min-width: max-content;
  max-width: 150px;
  padding: 6px 9px;
  border-radius: 6px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.11);
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.content-org-show #finance .finance-column::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(var(--value) + 4px);
  z-index: 5;
  width: 8px;
  height: 8px;
  border-right: 1px solid #dbeafe;
  border-bottom: 1px solid #dbeafe;
  background: #f8fafc;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px) rotate(45deg);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.content-org-show #finance .finance-column.is-active::after,
.content-org-show #finance .finance-column:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.content-org-show #finance .finance-column.is-active::before,
.content-org-show #finance .finance-column:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0) rotate(45deg);
}

.content-org-show #finance .finance-column.is-edge-right::after {
  left: auto;
  right: 0;
  transform: translate(0, 4px);
}

.content-org-show #finance .finance-column.is-edge-right::before {
  left: auto;
  right: 8px;
  transform: translate(0, 4px) rotate(45deg);
}

.content-org-show #finance .finance-column.is-edge-right.is-active::after,
.content-org-show #finance .finance-column.is-edge-right:focus-visible::after {
  transform: translate(0, 0);
}

.content-org-show #finance .finance-column.is-edge-right.is-active::before,
.content-org-show #finance .finance-column.is-edge-right:focus-visible::before {
  transform: translate(0, 0) rotate(45deg);
}

.content-org-show #finance .finance-column.is-edge-left::after {
  left: 0;
  transform: translate(0, 4px);
}

.content-org-show #finance .finance-column.is-edge-left::before {
  left: 8px;
  transform: translate(0, 4px) rotate(45deg);
}

.content-org-show #finance .finance-column.is-edge-left.is-active::after,
.content-org-show #finance .finance-column.is-edge-left:focus-visible::after {
  transform: translate(0, 0);
}

.content-org-show #finance .finance-column.is-edge-left.is-active::before,
.content-org-show #finance .finance-column.is-edge-left:focus-visible::before {
  transform: translate(0, 0) rotate(45deg);
}

.content-org-show #finance .finance-bar {
  width: min(16px, 80%);
  min-height: 5px;
  height: var(--value);
  border-radius: 3px 3px 0 0;
  background: var(--bar-color, #bdd0ec);
}

.content-org-show #finance .finance-column.zero .finance-bar {
  height: 3px;
  min-height: 3px;
  border-radius: 999px;
  background: #94a3b8;
}

.content-org-show #finance .profit-chart .finance-bars-area {
  align-items: stretch;
  padding-top: 0;
  border-bottom: 0;
}

.content-org-show #finance .profit-chart .finance-bars-area::before {
  content: none;
}

.content-org-show #finance .profit-chart .finance-bars-area::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: var(--baseline, 0%);
  left: 0;
  height: 1px;
  background: #cbd5e1;
}

.content-org-show #finance .profit-chart .finance-bar {
  position: absolute;
  bottom: var(--baseline, 0%);
  left: 50%;
  right: auto;
  top: auto;
  z-index: 1;
  width: min(16px, 80%);
  height: var(--value);
  min-height: 0;
  transform: translateX(-50%);
}

.content-org-show #finance .profit-chart .finance-column:not(.zero) .finance-bar {
  min-height: 5px;
}

.content-org-show #finance .profit-chart .finance-column.negative .finance-bar {
  top: calc(100% - var(--baseline, 0%));
  bottom: auto;
  border-radius: 0 0 3px 3px;
  background: #e89c9c;
}

.content-org-show #finance .profit-chart .finance-column:not(.negative)::after {
  bottom: calc(var(--baseline, 0%) + var(--value) + 8px);
}

.content-org-show #finance .profit-chart .finance-column:not(.negative)::before {
  bottom: calc(var(--baseline, 0%) + var(--value) + 4px);
}

.content-org-show #finance .profit-chart .finance-column.negative::after {
  top: calc(100% - var(--baseline, 0%) + var(--value) + 8px);
  bottom: auto;
}

.content-org-show #finance .profit-chart .finance-column.negative::before {
  top: calc(100% - var(--baseline, 0%) + var(--value) + 4px);
  bottom: auto;
}

.content-org-show #finance .profit-chart .finance-column.zero .finance-bar {
  bottom: var(--baseline, 0%);
  height: 3px;
  min-height: 3px;
  border-radius: 999px;
  background: #94a3b8;
  transform: translate(-50%, 50%);
}

.content-org-show #finance .finance-x-axis {
  display: grid;
  grid-template-columns: repeat(var(--finance-years-count), minmax(0, 1fr));
  gap: 6px;
  padding-top: 6px;
  color: #6b7280;
  font-size: 9px;
  line-height: 1;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .content-org-show #finance .finance-column:hover::after,
  .content-org-show #finance .finance-column:hover::before {
    opacity: 1;
  }

  .content-org-show #finance .finance-column:hover::after {
    transform: translate(-50%, 0);
  }

  .content-org-show #finance .finance-column:hover::before {
    transform: translate(-50%, 0) rotate(45deg);
  }

  .content-org-show #finance .finance-column.is-edge-right:hover::after,
  .content-org-show #finance .finance-column.is-edge-left:hover::after {
    transform: translate(0, 0);
  }

  .content-org-show #finance .finance-column.is-edge-right:hover::before,
  .content-org-show #finance .finance-column.is-edge-left:hover::before {
    transform: translate(0, 0) rotate(45deg);
  }
}

@media (max-width: 560px) {
  .content-org-show #finance .finance-x-axis {
    gap: 2px;
    font-size: 8px;
  }

  .content-org-show #finance .finance-x-axis span:nth-child(even) {
    visibility: hidden;
  }

  .content-org-show #finance .finance-x-axis span:first-child,
  .content-org-show #finance .finance-x-axis span:last-child {
    visibility: visible;
  }

  .content-org-show #finance .finance-bars-area {
    gap: 4px;
  }

  .content-org-show #finance .finance-bar {
    width: min(13px, 78%);
  }
}

.content-org-show #finance .finance-extra-card:first-child {
  order: 1;
}

.content-org-show #finance .finance-extra-card:nth-child(2) {
  order: 2;
}

.content-org-show #finance .finance-year-links {
  gap: 14px;
  align-items: center;
  margin-top: 0;
}

.content-org-show #finance .finance-year-file {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 52px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #374151;
  font-size: 13px;
  line-height: 1;
}

.content-org-show #finance .finance-pdf-icon {
  display: block;
  flex: 0 0 auto;
  width: 42px;
  height: 49px;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.content-org-show #finance .finance-coeff-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  overflow: visible;
}

.content-org-show #finance .finance-coeff-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fbfdff;
  overflow: visible;
}

.content-org-show #finance .finance-coeff-group-title {
  display: flex;
  align-items: center;
  grid-column: 1 / -1;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.content-org-show #finance .finance-coeff-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-rows: 24px 36px 26px 12px minmax(32px, auto);
  gap: 3px 8px;
  align-items: start;
  min-width: 0;
  padding: 10px;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #ffffff;
  overflow: visible;
}

.content-org-show #finance .finance-coeff-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-column: 1;
  grid-row: 1;
  width: 42px;
  min-height: 24px;
  border-radius: 999px;
  background: #eef5ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.content-org-show #finance .finance-coeff-group-liquidity .finance-coeff-code {
  background: #e9f8f4;
  color: #0f766e;
}

.content-org-show #finance .finance-coeff-group-profit .finance-coeff-code {
  background: #f0f9e7;
  color: #4d7c0f;
}

.content-org-show #finance .finance-coeff-name {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  align-self: end;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.3;
}

.content-org-show #finance .finance-coeff-value {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.content-org-show #finance .finance-coeff-scale {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 3;
  height: 26px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.content-org-show #finance .finance-coeff-scale::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 8px;
  border-radius: 999px;
  background: var(--scale-gradient, linear-gradient(90deg, #c95f58 0%, #e68a44 18%, #f1c85b 30%, #c9d866 36%, #43a047 44%, #43a047 68%, #2e7d32 84%, #1f6b3a 100%));
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.content-org-show #finance .finance-coeff-scale.good-band::before {
  background: var(--scale-gradient, linear-gradient(90deg, #c95f58 0%, #e68a44 18%, #f1c85b 30%, #c9d866 36%, #43a047 44%, #43a047 68%, #2e7d32 84%, #1f6b3a 100%));
}

.content-org-show #finance .finance-coeff-scale.good-low::before {
  background: var(--scale-gradient, linear-gradient(90deg, #2e7d32 0%, #43a047 24%, #43a047 68%, #c9d866 74%, #f1c85b 82%, #e68a44 92%, #c95f58 100%));
}

.content-org-show #finance .finance-coeff-scale.profitability::before {
  background: var(--scale-gradient, linear-gradient(90deg, #c95f58 0%, #e68a44 18%, #f1c85b 30%, #c9d866 36%, #43a047 44%, #43a047 68%, #2e7d32 84%, #1f6b3a 100%));
}

.content-org-show #finance .finance-coeff-marker {
  position: absolute;
  left: var(--marker, 50%);
  top: 6px;
  width: 16px;
  height: 16px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--marker-color, #374151);
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.28);
  transform: translateX(-50%);
  z-index: 2;
}

.content-org-show #finance .finance-coeff-marker::after {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  min-width: max-content;
  max-width: min(260px, 78vw);
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.11);
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.content-org-show #finance .finance-coeff-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 5;
  width: 8px;
  height: 8px;
  border-right: 1px solid #dbeafe;
  border-bottom: 1px solid #dbeafe;
  background: #f8fafc;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px) rotate(45deg);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.content-org-show #finance .finance-coeff-marker.is-active::after,
.content-org-show #finance .finance-coeff-marker:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.content-org-show #finance .finance-coeff-marker.is-active::before,
.content-org-show #finance .finance-coeff-marker:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0) rotate(45deg);
}

.content-org-show #finance .finance-coeff-marker.is-edge-right::after {
  left: auto;
  right: 8px;
  transform: translate(0, 4px);
}

.content-org-show #finance .finance-coeff-marker.is-edge-right::before {
  left: auto;
  right: 8px;
  transform: translate(0, 4px) rotate(45deg);
}

.content-org-show #finance .finance-coeff-marker.is-edge-right.is-active::after,
.content-org-show #finance .finance-coeff-marker.is-edge-right:focus-visible::after {
  transform: translate(0, 0);
}

.content-org-show #finance .finance-coeff-marker.is-edge-right.is-active::before,
.content-org-show #finance .finance-coeff-marker.is-edge-right:focus-visible::before {
  transform: translate(0, 0) rotate(45deg);
}

.content-org-show #finance .finance-coeff-marker.is-edge-left::after {
  left: 8px;
  transform: translate(0, 4px);
}

.content-org-show #finance .finance-coeff-marker.is-edge-left::before {
  left: 8px;
  transform: translate(0, 4px) rotate(45deg);
}

.content-org-show #finance .finance-coeff-marker.is-edge-left.is-active::after,
.content-org-show #finance .finance-coeff-marker.is-edge-left:focus-visible::after {
  transform: translate(0, 0);
}

.content-org-show #finance .finance-coeff-marker.is-edge-left.is-active::before,
.content-org-show #finance .finance-coeff-marker.is-edge-left:focus-visible::before {
  transform: translate(0, 0) rotate(45deg);
}

@media (hover: hover) and (pointer: fine) {
  .content-org-show #finance .finance-coeff-marker:hover::after,
  .content-org-show #finance .finance-coeff-marker:hover::before {
    opacity: 1;
  }

  .content-org-show #finance .finance-coeff-marker:hover::after {
    transform: translate(-50%, 0);
  }

  .content-org-show #finance .finance-coeff-marker:hover::before {
    transform: translate(-50%, 0) rotate(45deg);
  }

  .content-org-show #finance .finance-coeff-marker.is-edge-right:hover::after,
  .content-org-show #finance .finance-coeff-marker.is-edge-left:hover::after {
    transform: translate(0, 0);
  }

  .content-org-show #finance .finance-coeff-marker.is-edge-right:hover::before,
  .content-org-show #finance .finance-coeff-marker.is-edge-left:hover::before {
    transform: translate(0, 0) rotate(45deg);
  }
}

.content-org-show #finance .finance-coeff-scale-labels {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 4;
  height: 12px;
  min-height: 0;
  margin-top: -2px;
  color: #6b7280;
  font-size: 10px;
  line-height: 1;
}

.content-org-show #finance .finance-coeff-hint {
  grid-column: 1 / -1;
  grid-row: 5;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.25;
}

.content-org-show #finance .finance-payment-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.content-org-show #finance .payment-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.content-org-show #finance .payment-tax-chart,
.content-org-show #finance .payment-insurance-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.content-org-show #finance .payment-block-title {
  color: #6b7280;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.content-org-show #finance .tax-total-amount,
.content-org-show #finance .insurance-amount {
  margin-top: -4px;
  color: #111827;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.05;
}

.content-org-show #finance .tax-bar-list {
  display: grid;
  gap: 9px;
}

.content-org-show #finance .tax-bar-row {
  display: grid;
  gap: 4px;
}

.content-org-show #finance .tax-bar-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 8px;
  align-items: baseline;
  min-width: 0;
}

.content-org-show #finance .tax-name {
  min-width: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.content-org-show #finance .tax-bar-line strong {
  white-space: nowrap;
  color: #111827;
  font-size: 13px;
  line-height: 1.2;
}

.content-org-show #finance .tax-track {
  position: relative;
  width: min(100%, 210px);
  height: 10px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.content-org-show #finance .tax-fill {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: var(--tax-width, 0%);
  min-width: 8px;
  height: 8px;
  border-radius: 1px;
  background: #0f9f8f;
  transform: translateY(-50%);
}

.content-org-show #finance .payment-insurance-panel {
  padding-top: 13px;
  border-top: 1px solid #e5e7eb;
}

.content-org-show #finance .insurance-name {
  color: #111827;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.content-org-show #finance .payment-footer {
  display: grid;
  gap: 7px;
  padding-top: 11px;
  border-top: 1px solid #e5e7eb;
}

.content-org-show #finance .payment-total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.content-org-show #finance .payment-total-line span {
  color: #6b7280;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.content-org-show #finance .payment-total-line strong {
  color: #111827;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.05;
  text-align: right;
}

.content-org-show #finance .payment-total-line-danger strong {
  color: #b91c1c;
}

.content-org-show #finance .finance-debt-panel .payment-debt-card {
  min-height: 88px;
}

.content-org-show #finance .payment-debt-notes {
  display: grid;
  gap: 7px;
  color: #111827;
  font-size: 14px;
  line-height: 1.4;
}

.content-org-show #finance .payment-source-note {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.4;
}

.content-org-show #finance .finance-subblock-debt .checks-list {
  color: #374151;
}

.content-org-show #finance .finance-subblock-debt .warnline {
  color: #b91c1c;
  font-weight: 600;
}

.content-org-show #finance .finance-subblock-debt .warnline::before {
  color: #b91c1c;
}

.content-org-show #finance .finance-subblock-debt .tax-total-amount,
.content-org-show #finance .finance-subblock-debt .insurance-amount,
.content-org-show #finance .finance-subblock-debt .payment-total-line strong {
  color: #b91c1c;
}

.content-org-show #finance .finance-debt-panel .payment-debt-card {
  min-height: 0;
}

.content-org-show #finance .finance-subtitle,
.content-org-show #finance .finance-note.finance-note-title {
  line-height: 1.4;
}

.content-org-show #finance .finance-kpi-change {
  margin-top: 7px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.content-org-show #finance .finance-plot {
  gap: normal;
}

.content-org-show #finance .finance-x-axis {
  align-items: normal;
  justify-content: normal;
}

.content-org-show #finance .tax-bar-line {
  justify-content: normal;
  font-size: 14px;
  line-height: 1.4;
}

.content-org-show #trademarks .section-head {
  margin-bottom: 10px;
}

.content-org-show #trademarks .section-body {
  padding: 0;
}

.content-org-show #trademarks .field {
  gap: 3px;
}

.content-org-show #riskprofile .risk-profile-label {
  color: #166534;
  font-size: 14px;
  font-weight: 600;
}

.content-org-show #riskprofile .risk-profile-bar {
  height: 8px;
  background: #e5e7eb;
}

.content-org-show #riskprofile .risk-profile-score {
  gap: 7px;
  margin-bottom: 12px;
}

.content-org-show #riskprofile .risk-profile-boxes {
  gap: 8px;
  margin-top: 12px;
}

.content-org-show #riskprofile .risk-profile-text {
  gap: 6px;
  align-items: flex-start;
  color: #4b5563;
}

.content-org-show #riskprofile .risk-profile-check {
  color: #16a34a;
  font-weight: 700;
}

.content-org-show #riskprofile .risk-profile-check.is-alert {
  color: #b45309;
  font-weight: 800;
}

.content-org-show #riskprofile .risk-profile-details {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.4;
}

.content-org-show #riskprofile .risk-profile-case {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  margin-bottom: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  line-height: 1.4;
}

.content-org-show #riskprofile .risk-profile-case-title {
  color: #111827;
  font-weight: 600;
}

.content-org-show #riskprofile .risk-profile-case-meta {
  color: #4b5563;
}

.content-org-show #riskprofile .risk-profile-case-status {
  color: #6b7280;
}

.content-org-show #riskprofile .risk-profile-case-parties {
  display: grid;
  gap: 4px;
}

.content-org-show #riskprofile .risk-profile-case-party {
  display: grid;
  grid-template-columns: minmax(80px, 0.18fr) minmax(0, 1fr);
  gap: 12px;
}

.content-org-show #riskprofile .risk-profile-case-role {
  color: #6b7280;
}

.content-org-show #riskprofile .risk-profile-case-name {
  color: #111827;
  font-weight: 500;
}

.content-org-show #leader .leader-info {
  display: grid;
  gap: 3px;
  line-height: normal;
}

.content-org-show #leader .leader-info > * {
  line-height: normal;
}

.content-org-show #leader .leader-meta {
  margin-top: 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.content-org-show #leader .person-title {
  margin-bottom: 0;
  font-weight: 700;
}

.content-org-show #leader .checks-list {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  gap: 8px;
}

.content-org-show #leader .checkline {
  align-items: flex-start;
  line-height: 1.35;
}

.content-org-show #leader .checkline::before {
  color: #15803d;
  flex-shrink: 0;
}

@media (max-width: 880px) {
  .content-org-show #leader .leader-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    font-size: 14px;
  }

  .content-org-show #leader .avatar {
    width: 58px;
    height: 58px;
    border-radius: 12px;
  }

  .content-org-show #leader .avatar svg {
    width: 42px;
    height: 42px;
  }
}

.content-org-show #founder .founder-card {
  display: block;
}

.content-org-show #founder .founder-name {
  color: #111827;
  font-weight: 600;
  line-height: 1.4;
}

.content-org-show #founder .founder-meta {
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.content-org-show #relations .relations-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.content-org-show #relations .relations-group + .relations-group {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.content-org-show #relations .relation-card {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  padding-bottom: 0;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
  line-height: 1.4;
}

.content-org-show #relations .relation-name {
  color: #111827;
  font-weight: 600;
  line-height: 1.4;
}

.content-org-show #relations .relation-type {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.content-org-show #relations .relation-activity,
.content-org-show #relations .relation-address {
  color: #4b5563;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.content-org-show #relations .relation-role {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.4;
}

.content-org-show #fedresurs .field {
  flex-direction: column;
  gap: 3px;
  line-height: normal;
}

.content-org-show #fedresurs .field .label,
.content-org-show #fedresurs .field .value {
  flex: 0 1 auto;
  width: 100%;
  line-height: normal;
}

.content-org-show #branches .branches-summary {
  margin-bottom: 12px;
  color: #111827;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.content-org-show #branches .branches-summary + .branches-summary {
  margin-top: 8px;
}

.content-org-show #branches .branches-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.content-org-show #branches .branch-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111827;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.content-org-show #branches .branch-number {
  color: #6b7280;
  font-weight: 400;
}

.content-org-show #branches .branches-more {
  margin-top: 4px;
  line-height: normal;
}

.content-org-show #branches .branch-group {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.content-org-show #branches .branch-group-title {
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
}

.content-org-show #employees .employees-card {
  display: grid;
  gap: 10px;
  color: #111827;
  font-size: 14px;
  line-height: 1.4;
}

.content-org-show #employees .employees-main {
  display: grid;
  gap: 3px;
  margin-bottom: 0;
}

.content-org-show #employees .employees-value,
.content-org-show #employees .employee-year {
  margin-top: 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.content-org-show #history .fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content-org-show #history .field {
  flex-direction: column;
  gap: 3px;
  line-height: normal;
}

.content-org-show #history .field .label,
.content-org-show #history .field .value {
  flex: 0 1 auto;
  width: 100%;
  line-height: normal;
}

.content-org-show #history .field .label {
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
}

.content-org-show #history .field .value {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  color: #111827;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.content-org-show #history .field .value a {
  color: #1d4ed8;
  text-decoration: none;
}

.content-org-show #history .field .value a:hover {
  color: #1e40af;
  text-decoration: underline;
}

.content-org-show .history-dot {
  display: block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 3px;
  border-radius: 50%;
  background: #4ade80;
}
