/**
 * PNL4-F — Kredi ayarları: esneme payı alanı ve sağlayıcı fiyat tablosu (panel.css'ten sonra yüklenir).
 */

.pn-settings-col { display: grid; gap: 18px; align-content: start; }

.pn-btn-sm { padding: 6px 12px; font-size: 0.84rem; }
.pn-link-btn {
  font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer;
}
.pn-link-btn:hover { color: var(--accent-hover); text-decoration: underline; }
.pn-link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }

.pn-prices-card { margin-top: 20px; padding: 22px 0 0; display: grid; gap: 14px; max-width: 1100px; overflow: hidden; }
.pn-prices-card > :not(#pricesBody) { margin-left: 22px; margin-right: 22px; }
.pn-prices-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pn-prices-note { margin-top: -6px; margin-bottom: 0; font-size: 0.86rem; color: var(--text-muted); line-height: 1.45; }
.pn-prices-card .pn-alert, .pn-prices-card .pn-state-card { margin-bottom: 0; }

.pn-prices-add {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 0.9fr) auto;
  gap: 12px; align-items: end; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-soft);
}
.pn-prices-add .pn-input { width: 100%; height: 36px; box-sizing: border-box; }
.pn-prices-add-actions { display: flex; gap: 8px; }
.pn-prices-add-error { grid-column: 1 / -1; }

.pn-prices-table-wrap { overflow-x: auto; }
.pn-prices-table { table-layout: fixed; min-width: 860px; }
.pn-prices-table thead th:nth-child(1) { width: 24%; }
.pn-prices-table thead th:nth-child(2) { width: 8%; }
.pn-prices-table thead th:nth-child(3), .pn-prices-table thead th:nth-child(4) { width: 13%; }
.pn-prices-table thead th:nth-child(6) { width: 196px; }
.pn-prices-table td { padding: 9px 16px; vertical-align: middle; }
.pn-prices-table th:first-child, .pn-prices-table td:first-child { padding-left: 22px; }
.pn-prices-table th:last-child, .pn-prices-table td:last-child { padding-right: 22px; }
.pn-prices-table tbody tr { cursor: default; }
.pn-prices-table tbody tr:hover { background: transparent; }
.pn-prices-table tr.pn-pr-group th {
  padding: 14px 22px 6px; background: transparent; color: var(--text); font-size: 0.84rem; text-transform: none; letter-spacing: 0;
}
.pn-pr-model { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.84rem; overflow-wrap: anywhere; }
.pn-pr-row.is-editing td { background: var(--accent-soft); }
.pn-pr-status { display: grid; gap: 2px; justify-items: start; font-size: 0.84rem; line-height: 1.35; }
.pn-pr-default { color: var(--text-soft); }
.pn-pr-changed { color: var(--warn); font-weight: 600; }
.pn-pr-actions { text-align: right; white-space: nowrap; }
.pn-pr-actions .pn-btn + .pn-btn { margin-left: 6px; }
.pn-pr-input { width: 96px; text-align: right; }

.pn-prices-search {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 22px;
  border-top: 1px solid var(--border); background: var(--surface-soft);
}
.pn-prices-search .pn-label { margin-right: auto; }
.pn-prices-search-input { display: inline-flex; align-items: center; gap: 6px; color: var(--text-soft); }
.pn-prices-search-input .pn-input { width: 96px; text-align: right; }
.pn-prices-search #pricesSearchStatus { font-size: 0.84rem; }

@media (max-width: 1024px) {
  .pn-prices-add { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pn-prices-add-actions { grid-column: 1 / -1; }
}
