.kf-capital-page {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.6;
}

.kf-capital-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.kf-capital-header h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.kf-capital-header p,
.kf-help {
  margin: 0;
  color: #666;
  font-size: 13px;
}

.kf-card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.kf-capital-summary {
  display: grid;
  gap: 6px;
}

.kf-label {
  color: #666;
  font-size: 13px;
}

.kf-main-amount {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.kf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.kf-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.kf-field {
  margin-top: 14px;
}

.kf-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.kf-field input[type="number"],
.kf-field input[type="text"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #c3c4c7;
  border-radius: 6px;
  font-size: 14px;
}

.kf-radio-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.kf-radio-row label {
  font-weight: 400;
  margin: 0;
}

.kf-btn {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2271b1;
  background: #2271b1;
  color: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}

.kf-btn:hover {
  background: #135e96;
  color: #fff;
}

.kf-btn-sub {
  margin-top: 0;
  background: #fff;
  color: #2271b1;
}

.kf-btn-sub:hover {
  background: #f0f6fc;
  color: #135e96;
}

.kf-alert {
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.kf-alert-ok {
  background: #f0f8ee;
  border-color: #8bc58a;
  color: #1e6b25;
}

.kf-alert-error {
  background: #fcf0f1;
  border-color: #d63638;
  color: #8a2424;
}

.kf-section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}

.kf-section-title h3 {
  margin: 0;
}

.kf-table-wrap {
  overflow-x: auto;
}

.kf-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 13px;
}

.kf-table th,
.kf-table td {
  border-bottom: 1px solid #eee;
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}

.kf-table th {
  background: #f6f7f7;
  font-weight: 700;
}

.kf-pos {
  color: #008a20;
  font-weight: 700;
}

.kf-neg {
  color: #d63638;
  font-weight: 700;
}

@media (max-width: 900px) {
  .kf-grid {
    grid-template-columns: 1fr;
  }

  .kf-capital-header {
    flex-direction: column;
  }
}
