/* Pronimos KOBİ Yüzü — Ayarlar & e-Belge (32–38. Ekranlar) Stilleri (ESM + Modern Web) */

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

.ayr-page[hidden],
.ayr-grid-2[hidden],
.ayr-card[hidden],
.ayr-notice[hidden],
.ayr-kpi-bar[hidden],
.ayr-davet-kutu[hidden],
#ayr-k-ruhsat-wrap[hidden] {
  display: none !important;
}

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

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

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

/* Bildirim & KPI Şeridi */
.ayr-notice {
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #bfe6d7;
  background: #eef9f5;
  color: #1f5f49;
  font-size: 13px;
  font-weight: 600;
}

.ayr-notice.is-error {
  border-color: #f2c0ba;
  background: #fdf2f0;
  color: #8f2d22;
}

.ayr-kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

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

.ayr-kpi-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #7d7b76;
}

.ayr-kpi-val {
  font-size: 17px;
  font-weight: 700;
  color: #2b2a28;
  font-variant-numeric: tabular-nums;
}

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

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

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

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

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

.ayr-card {
  background: #ffffff;
  border: 1px solid #e2e0dc;
  border-radius: 6px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ayr-card-tonal {
  background: #f7f6f4;
}

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

.ayr-card-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #4a90b8;
}

.ayr-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;
}

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

.ayr-btn-ghost {
  appearance: none;
  border: 1px solid #dfddd8;
  border-radius: 4px;
  background: #ffffff;
  color: #3d3c3a;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ayr-btn-ghost:hover {
  border-color: #4a90b8;
  color: #4a90b8;
}

.ayr-row-btn {
  appearance: none;
  border: 1px solid #dfddd8;
  background: #ffffff;
  color: #3d3c3a;
  border-radius: 4px;
  min-inline-size: 24px;
  min-block-size: 28px;
  padding: 4px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ayr-row-btn:hover {
  border-color: #4a90b8;
  color: #4a90b8;
}

/* Kopyalama Satırı & Erişilebilir Balon */
.ayr-copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: #f9f8f6;
  border: 1px solid #eceae6;
  border-radius: 4px;
  font-size: 13px;
}

.ayr-copy-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ayr-copy-tip {
  font-size: 12px;
  font-weight: 600;
  color: #1f5f49;
  opacity: 0;
  transition: opacity 0.15s;
}

.ayr-copy-tip:not(:empty) {
  opacity: 1;
}

/* Duyarlı Tablo (responsive-table rehberi) */
.ayr-table-wrap {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(480px, 72vh);
  container-type: inline-size;
}

.ayr-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.ayr-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
}

.ayr-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;
}

.ayr-table tbody th,
.ayr-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid #f0efec;
  vertical-align: middle;
  text-align: left;
  font-weight: 400;
}

.ayr-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  background: #ffffff;
  font-weight: 600;
}

@container (width < 600px) {
  .ayr-table,
  .ayr-table thead,
  .ayr-table tbody,
  .ayr-table tr,
  .ayr-table th,
  .ayr-table td {
    display: block;
  }

  .ayr-table thead {
    display: none;
  }

  .ayr-table tbody tr {
    margin-block-end: 12px;
    border: 1px solid #e2e0dc;
    border-radius: 4px;
    padding: 8px;
  }
}

/* Durum Rozetleri */
.ayr-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.ayr-badge-aktif {
  background: #eef9f5;
  color: #1f5f49;
  border: 1px solid #bfe6d7;
}

.ayr-badge-kilit {
  background: #fdf6ec;
  color: #9e5a11;
  border: 1px solid #f0d7b5;
}

.ayr-badge-pasif {
  background: #f4f3f1;
  color: #7d7b76;
  border: 1px solid #dfddd8;
}

/* Davet Taslağı Kutusu */
.ayr-davet-kutu {
  border: 1px solid #bfe6d7;
  background: #f7fcfa;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ayr-davet-kutu-baslik {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #1f5f49;
}

.ayr-davet-pre {
  margin: 0;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #dfddd8;
  border-radius: 4px;
  font-size: 12.5px;
  white-space: pre-wrap;
  line-height: 1.5;
}

/* Etiket / Kategori Çipleri & Formu */
.ayr-kat-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ayr-kat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ayr-kat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #dfddd8;
  background: #f9f8f6;
  font-size: 12.5px;
  font-weight: 500;
}

.ayr-kat-sil {
  appearance: none;
  border: 0;
  background: transparent;
  color: #7d7b76;
  font-size: 15px;
  line-height: 1;
  min-inline-size: 24px;
  min-block-size: 24px;
  cursor: pointer;
  border-radius: 999px;
}

.ayr-kat-sil:hover {
  background: #eceae6;
  color: #8f2d22;
}

/* Yazdırma Kağıt Önizleme */
.ayr-paper-preview {
  background: #ffffff;
  border: 1px solid #dfddd8;
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ayr-paper-preview.is-termal {
  max-inline-size: 300px;
  font-size: 12px;
}

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

.ayr-paper-logo {
  height: 24px;
  width: auto;
}

.ayr-paper-sign {
  margin-top: 6px;
  padding: 10px;
  border: 1px dashed #c8c5be;
  border-radius: 4px;
  text-align: center;
  font-size: 12px;
  color: #7d7b76;
}

/* Entegrasyonlar & Modül Anahtar Satırı */
.ayr-ent-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ayr-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #eceae6;
  border-radius: 4px;
  background: #faf9f7;
}

.ayr-toggle-btn {
  appearance: none;
  border: 1px solid #dfddd8;
  background: #ffffff;
  color: #6b6965;
  border-radius: 999px;
  padding: 5px 14px;
  min-block-size: 28px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ayr-toggle-btn[aria-pressed="true"] {
  background: #4a90b8;
  border-color: #4a90b8;
  color: #ffffff;
}

/* Yerel Dialog Modalları (light-dismiss-a-dialog) */
.ayr-dialog {
  border: 1px solid #dfddd8;
  border-radius: 8px;
  padding: 20px;
  width: min(520px, 92vw);
  background: #ffffff;
  color: #3d3c3a;
}

.ayr-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.ayr-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eceae6;
}

.ayr-dialog-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #2b2a28;
}

.ayr-dialog-foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.ayr-hr {
  border: 0;
  border-top: 1px solid #eceae6;
  margin: 16px 0;
}

@media (max-width: 900px) {
  .ayr-kpi-bar,
  .ayr-grid-2,
  .ayr-ent-list {
    grid-template-columns: 1fr;
  }
}
