/* Pronimos KOBİ Yüzü — Paraşüt "Satışlar" Modülü Birebir Önyüz & AI Katmanı */

.st-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #3d3c3a;
  padding-bottom: 48px;
}

.st-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.st-title {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  color: #3d3c3a;
  letter-spacing: -0.01em;
}

.st-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.st-btn-dark {
  appearance: none;
  border: 0;
  border-radius: 4px;
  background: #2b2a28;
  color: #ffffff;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.st-btn-dark:hover {
  background: #1f1e1d;
}

/* Paraşüt Tarzı Alt Çizgili Sekme Şeridi */
.st-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid #dfddd8;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.st-tabs .fs-subtab {
  border-radius: 0;
  border: 0;
  border-bottom: 2.5px solid transparent;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #7d7b76;
  background: transparent;
}

.st-tabs .fs-subtab:hover {
  color: #3d3c3a;
  background: rgba(0, 0, 0, 0.03);
}

.st-tabs .fs-subtab[aria-selected="true"] {
  color: #4a90b8;
  border-bottom-color: #4a90b8;
  background: transparent;
}

/* 3'lü KPI Şeridi */
.st-kpi-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.st-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e0dc;
  border-radius: 4px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.st-kpi-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #7d7b76;
  text-transform: uppercase;
}

.st-kpi-val {
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 700;
  color: #3d3c3a;
}

.st-kpi-val.is-accent {
  color: #4a90b8;
}

.st-kpi-val.is-danger {
  color: #de7763;
}

/* İnce Yeşil Çerçeveli AI Tek Cümle Çubuğu */
.st-ai-bar {
  background: #eef9f5;
  border: 1px solid #bfe6d7;
  border-radius: 4px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.st-ai-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.st-ai-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1f5f49;
}

.st-ai-lock-note {
  font-size: 11.5px;
  font-weight: 600;
  color: #2f8b6b;
  background: #ffffff;
  border: 1px solid #bfe6d7;
  border-radius: 999px;
  padding: 3px 10px;
}

.st-ai-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.st-ai-form .fs-input {
  flex: 1 1 320px;
  background: #ffffff;
  border: 1px solid #cfe7dd;
  border-radius: 4px;
}

.st-ai-submit {
  appearance: none;
  border: 1px solid #55b895;
  background: #55b895;
  color: #ffffff;
  border-radius: 4px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.st-ai-submit:hover {
  background: #429e7d;
}

/* Filtre & Arama Araç Çubuğu */
.st-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.st-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.st-filter-chip {
  appearance: none;
  border: 1px solid #dfddd8;
  background: #ffffff;
  color: #6b6965;
  border-radius: 999px;
  padding: 5px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.st-filter-chip[aria-pressed="true"] {
  background: #4a90b8;
  border-color: #4a90b8;
  color: #ffffff;
}

.st-search-input {
  border: 1px solid #dfddd8;
  background: #ffffff;
  color: #3d3c3a;
  border-radius: 4px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 13px;
  min-width: 220px;
}

/* Beyaz Tablo Kartı */
.st-table-card {
  background: #ffffff;
  border: 1px solid #e2e0dc;
  border-radius: 4px;
  overflow: hidden;
}

.st-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid #eceae6;
}

.st-table-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #4a90b8;
}

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

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

.st-table thead th {
  background: #f7f6f4;
  color: #7d7b76;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid #eceae6;
  white-space: nowrap;
}

.st-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid #f0efec;
  vertical-align: middle;
}

.st-table tbody tr:hover {
  background: #faf9f7;
}

.st-table tbody tr.is-selected {
  background: #eef6fa;
}

.st-table .fs-num,
.st-table th.fs-num {
  text-align: right;
}

/* Durum Rozetleri */
.st-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.st-badge-taslak {
  background: #f0efec;
  color: #6b6965;
}

.st-badge-odenmedi {
  background: #e7f2f8;
  color: #2f6f94;
}

.st-badge-gecikmis {
  background: #fbeae7;
  color: #c24b35;
}

.st-badge-odendi {
  background: #eef9f5;
  color: #2f8b6b;
}

.st-row-actions {
  display: inline-flex;
  gap: 6px;
}

.st-mini-btn {
  appearance: none;
  border: 1px solid #dfddd8;
  background: #ffffff;
  color: #3d3c3a;
  border-radius: 4px;
  padding: 4px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.st-mini-btn:hover:not(:disabled) {
  border-color: #4a90b8;
  color: #4a90b8;
}

.st-mini-btn.is-primary {
  background: #55b895;
  border-color: #55b895;
  color: #ffffff;
}

.st-mini-btn.is-primary:hover:not(:disabled) {
  background: #429e7d;
  color: #ffffff;
}

.st-mini-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

/* Fatura Detay & Tahsilat Çekmecesi */
.st-drawer {
  background: #ffffff;
  border: 1px solid #cfe2ed;
  border-radius: 4px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.st-drawer[hidden] {
  display: none;
}

.st-drawer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eceae6;
}

.st-drawer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.st-drawer-lock {
  padding: 9px 12px;
  border-radius: 4px;
  background: #fff8ea;
  border: 1px solid #f2dca8;
  color: #855e12;
  font-size: 12px;
  font-weight: 600;
}

/* Vade Yaşlandırma (Tahsilat Raporu) */
.st-aging-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.st-aging-card {
  background: #ffffff;
  border: 1px solid #e2e0dc;
  border-radius: 4px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.st-reminder-box {
  background: #f7f6f4;
  border: 1px solid #e2e0dc;
  border-radius: 4px;
  padding: 12px;
  font-size: 12.5px;
  white-space: pre-wrap;
  line-height: 1.5;
}

.st-report-svg {
  width: 100%;
  max-height: 220px;
  display: block;
}

@media (max-width: 900px) {
  .st-kpi-bar {
    grid-template-columns: 1fr;
  }
  .st-aging-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Dalga 1: tam sayfa ekranlar, kalem editörü, menü (Pronimos M3 · Google Finans Mavisi) ===== */
.st-sayfa { display: flex; flex-direction: column; gap: 16px; }
.st-sayfa[hidden], .st-menu-liste[hidden], .st-editor-hata[hidden], .st-editor-ek[hidden], .st-editor [hidden] { display: none; }
.st-detay { display: flex; flex-direction: column; gap: 16px; }
.st-editor { display: flex; flex-direction: column; gap: 16px; background: var(--fs-surface, #fff); border: 1px solid rgba(26, 115, 232, 0.18); border-radius: 16px; padding: 20px; }
.st-editor-ust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.st-editor-alan { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.st-editor-alan .fs-input, .st-editor-alan .fs-select { width: 100%; }
.st-editor-vade { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.st-editor-tablo input, .st-editor-tablo select { width: 100%; min-width: 70px; }
.st-editor-ek td { background: rgba(26, 115, 232, 0.05); }
.st-editor-ek-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; padding: 8px 4px; }
.st-editor-alt { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.st-editor-sol { display: flex; flex-direction: column; gap: 12px; min-width: 240px; }
.st-editor-toplam { min-width: 280px; display: flex; flex-direction: column; gap: 4px; }
.st-editor-oneri { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: #1a56b0; }
.st-editor-hata { padding: 10px 14px; border-radius: 12px; background: #fce8e6; color: #b3261e; font-size: 13px; }
.st-menu { position: relative; display: inline-block; }
.st-menu-liste { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 260px; display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(26, 115, 232, 0.25); border-radius: 12px; box-shadow: 0 6px 20px rgba(26, 115, 232, 0.16); padding: 6px; }
.st-menu-oge { appearance: none; border: 0; background: transparent; text-align: left; padding: 9px 12px; border-radius: 8px; font: inherit; cursor: pointer; }
.st-menu-oge:hover:not(:disabled) { background: rgba(26, 115, 232, 0.1); }
.st-menu-oge:disabled { opacity: 0.45; cursor: not-allowed; }
.st-eb-onizleme { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px; }
.st-gecmis-liste { display: flex; flex-direction: column; gap: 4px; padding: 10px 18px; }
.st-taslak-metin { width: 100%; font-family: inherit; resize: vertical; }
#st-liste-hata { margin: 0 18px 8px; }
