#group-overview-dialog .group-center-dialog { width: min(960px, calc(100vw - 24px)); min-width: 0; max-width: 100%; }
#group-overview-dialog [hidden] { display: none !important; }
body:has(#group-overview-dialog[style*="flex"]) .feedback-entry { visibility: hidden; }
.group-center-tabs { display: flex; flex-shrink: 0; gap: 24px; padding: 0 24px; border-bottom: 1px solid #dce4e9; }
.group-center-tabs button { padding: 15px 0 12px; background: none; border: 0; border-bottom: 3px solid transparent; font: inherit; font-size: 14px; color: #64748b; cursor: pointer; }
.group-center-tabs button[aria-selected="true"] { color: #0f766e; border-bottom-color: #0f766e; font-weight: 600; }
.group-loan-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #cbd5e1; border-radius: 7px; margin-bottom: 24px; overflow: hidden; background: #f8fafc; }
.group-loan-totals > div { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-right: 1px solid #dce4e9; }
.group-loan-totals > div:first-child { background: #eef7f4; }
.group-loan-totals > div:last-child { border-right: 0; }
.group-loan-totals span { color: #64748b; font-size: 12px; }
.group-loan-totals strong { color: #153c39; font-size: 22px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.loan-company-heading, .loan-plans-heading { margin-bottom: 14px; flex-wrap: wrap; }
.loan-company-heading h3, .loan-plans-heading h3 { color: #334155; font-size: 16px; }
.loan-operation-status { color: #925500; font-size: 12px; line-height: 1.7; margin: 0 0 14px; }
.loan-operation-status:empty { display: none; }
.loan-company-section { padding: 16px 0; border-top: 1px solid #dce4e9; }
.loan-company-title, .loan-card-heading, .loan-card-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.loan-company-title { margin-bottom: 12px; }
.loan-company-title h4, .loan-card-heading h4 { color: #243b48; font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.loan-company-title small { color: #64748b; font-size: 12px; font-weight: 400; margin-left: 6px; }
.loan-company-title span { display: block; color: #64748b; font-size: 11px; margin-top: 5px; }
.loan-company-title .loan-current-tag { color: #047857; padding: 5px 8px; background: #eef7f4; border-radius: 4px; margin: 0; white-space: nowrap; }
.group-loan-card, .group-loan-plan { border: 1px solid #dce4e9; border-radius: 7px; background: #f8fafc; padding: 16px; margin-bottom: 10px; min-width: 0; }
.loan-card-heading span, .loan-card-actions span, .loan-plan-total { color: #64748b; font-size: 11px; line-height: 1.7; }
.loan-card-heading strong { color: #0f766e; font-size: 15px; white-space: nowrap; }
.loan-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; font-variant-numeric: tabular-nums; }
.loan-facts dt { color: #64748b; font-size: 11px; margin-bottom: 5px; }
.loan-facts dd { color: #334155; font-size: 13px; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.loan-progress { height: 5px; background: #e2e8f0; border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.loan-progress span { display: block; height: 100%; background: #228979; }
.loan-card-actions { margin-top: 10px; }
.loan-card-actions .btn, .loan-company-title .btn { flex-shrink: 0; min-height: 36px; }
.loan-plans-heading { margin-top: 24px; }
.loan-plans-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.group-loan-plan { background: #f4faf8; margin: 0; }
.group-loan-plan .loan-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.credit-loan-summary { margin-top: 24px; padding: 20px 0; border-top: 1px solid #dce4e9; border-bottom: 1px solid #dce4e9; }
.credit-loan-summary .management-section-heading { margin-bottom: 16px; }
.credit-capacity-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin: 0; font-variant-numeric: tabular-nums; }
.credit-capacity-facts dt { color: #64748b; font-size: 11px; margin-bottom: 6px; }
.credit-capacity-facts dd { margin: 0; color: #334155; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.credit-capacity-available { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 14px; border-top: 1px solid #e2e8f0; }
.credit-capacity-available span { font-size: 12px; color: #64748b; }
.credit-capacity-available strong { color: #0f766e; font-size: 20px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.credit-loan-summary .loan-operation-status { margin: 8px 0 0; }
.credit-loan-amount { margin-top: 16px; }
.credit-loan-amount label { display: block; margin-bottom: 7px; font-size: 12px; color: #334155; }
.credit-loan-amount-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.credit-loan-amount input { width: 100%; min-width: 0; height: 38px; box-sizing: border-box; border: 1px solid #aebfc5; border-radius: 4px; background: #fff; color: #243b48; padding: 8px 10px; font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; }
.credit-loan-amount input:focus { outline: 2px solid #0f766e; outline-offset: 1px; }
.credit-loan-amount input:disabled { background: #eef2f4; color: #64748b; }
.credit-loan-amount .btn { min-height: 38px; white-space: normal; }
.credit-loan-status { min-width: 0; overflow-wrap: anywhere; }
.loan-plan-disabled { background: #f8fafc; }
.loan-plan-disabled button { cursor: not-allowed; opacity: .55; }
.loan-empty { color: #7c8998; font-size: 12px; padding: 5px 0; line-height: 1.7; }
@media (max-width: 680px) {
  #group-overview-dialog .dialog-body { padding: 16px; }
  .group-center-tabs { padding: 0 16px; gap: 20px; }
  .group-center-tabs button { min-height: 44px; }
  .group-loan-totals { grid-template-columns: 1fr; }
  .group-loan-totals > div { padding: 12px 14px; flex-direction: row; justify-content: space-between; align-items: center; border-right: 0; border-bottom: 1px solid #dce4e9; }
  .group-loan-totals > div:last-child { border-bottom: 0; }
  .group-loan-totals strong { font-size: 17px; }
  .loan-plans-grid { grid-template-columns: 1fr; }
  .loan-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group-loan-plan .loan-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credit-capacity-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .credit-capacity-facts dd { font-size: 13px; }
  .credit-capacity-available { align-items: flex-start; flex-wrap: wrap; }
  .credit-capacity-available strong { font-size: 18px; }
  .credit-loan-amount input, .credit-loan-amount .btn { min-height: 44px; }
  .loan-company-title { align-items: flex-start; flex-wrap: wrap; }
  .loan-card-heading { align-items: flex-start; flex-wrap: wrap; }
  .loan-card-actions { flex-wrap: wrap; }
  .loan-card-actions .btn, .loan-company-title .btn { min-height: 44px; }
  .loan-company-title small { display: block; margin: 5px 0 0; }
}
