/* Pronimos KOBİ Yüzü — Paraşüt "Giderler" Modülü Birebir Önyüz (ESM + Modern Web) */

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

.gid-page[hidden] {
  display: none !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.gid-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ı + Duyarlı Tablo (responsive-table rehberi) */
.gid-table-card {
  background: #ffffff;
  border: 1px solid #e2e0dc;
  border-radius: 4px;
  overflow: hidden;
}

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

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

.gid-table-wrap {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(520px, 75vh);
  container-type: inline-size;
}

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

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

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

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

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

.gid-table tbody tr {
  cursor: pointer;
}

.gid-table tbody tr:hover td,
.gid-table tbody tr:hover th {
  background: #faf9f7;
}

.gid-table .fs-num,
.gid-table th.fs-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

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

  .gid-table thead {
    display: none;
  }

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

  .gid-table tbody th {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
    background: #f7f6f4;
    border-radius: 3px;
  }

  .gid-table td::before {
    font-weight: 600;
    color: #7d7b76;
    margin-inline-end: 6px;
  }

  .gid-table-liste td:nth-child(2)::before { content: var(--label-2, "Belge No") ": "; }
  .gid-table-liste td:nth-child(3)::before { content: var(--label-3, "Kategori / Açıklama") ": "; }
  .gid-table-liste td:nth-child(4)::before { content: var(--label-4, "Durum") ": "; }
  .gid-table-liste td:nth-child(5)::before { content: var(--label-5, "Toplam (TL)") ": "; }
}

/* Durum Rozetleri */
.gid-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;
}

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

.gid-badge-inceleme {
  background: #f3f7fa;
  color: #346888;
  border: 1px solid #c9dfec;
}

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

.gid-badge-uyari {
  background: #fdf2f0;
  color: #b4432e;
  border: 1px solid #f2cbc3;
}

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

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

/* Gelen e-Fatura Bilgi Şeridi */
.gid-inbox-banner {
  background: #eef6fa;
  border: 1px solid #c9dfec;
  border-radius: 4px;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

/* Rapor & Ödeme Yaşlandırma Kartları */
.gid-aging-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gid-aging-card {
  background: #f9f8f6;
  border: 1px solid #eceae6;
  border-radius: 4px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gid-aging-card span {
  font-size: 11px;
  font-weight: 600;
  color: #7d7b76;
  text-transform: uppercase;
}

.gid-aging-card strong {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  color: #3d3c3a;
}

.gid-report-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Light-Dismiss Modal Dialog (light-dismiss-a-dialog rehberi) */
dialog.gid-dialog {
  border: 1px solid #dfddd8;
  border-radius: 6px;
  padding: 0;
  width: min(520px, 92vw);
  max-height: 85vh;
  background: #ffffff;
  color: #3d3c3a;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  margin: auto;
}

dialog.gid-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.gid-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #eceae6;
  background: #f7f6f4;
}

.gid-dialog-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #3d3c3a;
}

.gid-dialog-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.gid-dialog-kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f0efec;
  font-size: 13px;
}

.gid-dialog-kv span:first-child {
  color: #7d7b76;
}

.gid-dialog-kv strong {
  font-variant-numeric: tabular-nums;
}

.gid-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid #eceae6;
}

.gid-notice {
  background: #f7f6f4;
  border-left: 3px solid #4a90b8;
  padding: 10px 12px;
  font-size: 12px;
  color: #5b5955;
  border-radius: 2px;
}

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

/* Dalga 2 P1: Ödeme rozetleri, toplu seçim, sayfalama, detay sayfası, ortak çekmece */
.gid-badge-odendi {
  background: #e7f6ec;
  color: #1f6b3a;
}

.gid-badge-kismi {
  background: #e8f1fb;
  color: #1d5a96;
}

.gid-badge-gecikmis {
  background: #fdecec;
  color: #b42318;
}

.gid-badge-odenmedi {
  background: #f4f3f0;
  color: #5b5955;
}

.gid-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
  background: #eef6fb;
  border: 1px solid #b9d7ea;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #265c7d;
}

.gid-bulk-bar[hidden] {
  display: none !important;
}

.gid-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid #eceae6;
  font-size: 12px;
  color: #6b6965;
}

.gid-pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gid-detail-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gid-detail-wrap[hidden] {
  display: none !important;
}

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

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

.gid-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.gid-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 24, 23, 0.38);
  z-index: 900;
}

.gid-drawer-backdrop[hidden] {
  display: none !important;
}

.gid-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(440px, 100vw);
  background: #ffffff;
  border-left: 1px solid #dfddd8;
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.14);
  z-index: 901;
  display: flex;
  flex-direction: column;
}

.gid-drawer[hidden] {
  display: none !important;
}

.gid-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #eceae6;
}

.gid-drawer-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #3d3c3a;
}

.gid-drawer-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.gid-form-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gid-form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
}

.gid-form-field span {
  font-size: 12px;
  font-weight: 600;
  color: #6b6965;
}

.gid-form-error {
  padding: 8px 10px;
  border-radius: 4px;
  background: #fdecec;
  color: #b42318;
  font-size: 12px;
  font-weight: 600;
}

/* Dalga 2 P2 — Raporlar, İnteraktif 7 Kova, Tarih Popover & Ekstre */
.gid-rapor-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gid-muted-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: #6b6965;
}

.gid-rapor-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.gid-rapor-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gid-kpi-bar-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gid-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid #e6e4df;
  padding-bottom: 8px;
}

.gid-subtab {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #dedad2;
  background: #faf9f7;
  color: #3d3c3a;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.gid-subtab.is-active,
.gid-subtab[aria-selected="true"] {
  background: #1f2937;
  color: #ffffff;
  border-color: #1f2937;
}

.gid-aging-card.is-interactive {
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.gid-aging-card.is-interactive:hover {
  border-color: #4a90b8;
}

.gid-aging-card.is-interactive[aria-pressed="true"] {
  border-color: #1f2937;
  background: #eef4f8;
  box-shadow: 0 0 0 2px rgba(74, 144, 184, 0.25);
}

.gid-popover-wrap {
  position: relative;
}

.gid-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  width: 280px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #dedad2;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gid-popover[hidden] {
  display: none;
}

.gid-popover-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gid-popover-custom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.gid-popover-custom label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.gid-toggle-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #d2cec5;
  background: #ffffff;
  color: #2f2e2b;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.gid-toggle-btn[aria-pressed="true"] {
  background: #eef4f8;
  border-color: #4a90b8;
  color: #1b4f72;
}

.gid-inline-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #4f4d49;
}

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

@media print {
  .fs-rail,
  .fs-topbar,
  .fs-kobi-subtabs,
  .gid-rapor-tools,
  .gid-drawer,
  .gid-drawer-backdrop,
  .gid-subtabs {
    display: none !important;
  }
}

.gid-diger-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #ece8df;
}

.gid-kalem-row {
  display: grid;
  grid-template-columns: 2fr 0.7fr 1.1fr 0.8fr 0.9fr 1.1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.gid-ozet-kutu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  padding: 12px;
  background: #f7f5f0;
  border: 1px solid #e5e0d5;
  border-radius: 8px;
}

.gid-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 0;
}

.gid-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
