/* Sifariş bölməsi — index-ə yüklənən fragment üçün */

.sifaris-back-row {
  display: flex;
  align-items: center;
  margin: 10px 0 20px 15px;
}

.sifaris-back-title {
  margin: 0;
}

.sifaris-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  cursor: pointer;
  margin-right: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 0;
}

.sifaris-back-btn:hover {
  background: #eef1f4;
}

.sifaris-mt {
  margin-top: 15px;
}

/* ——— Toplam satışa görə: sorğu sətri ——— */
#toplamSatishPage .toplam-tps-query {
  margin-bottom: 12px;
  gap: 14px;
}

#toplamSatishPage .toplam-tps-query label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 6px;
}

#toplamSatishPage .toplam-tps-query input {
  min-width: 140px;
  padding: 8px 11px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: #0f172a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#toplamSatishPage .toplam-tps-query input:focus {
  outline: none;
  border-color: rgba(15, 23, 42, 0.22);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

#toplamSatishPage .toplam-tps-fetch.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 120px;
  font-weight: 700;
  color: #f8fafc;
  border: 1px solid #2b2339;
  background: linear-gradient(135deg, #1f1a2b 0%, #34204f 45%, #7c3aed 100%);
  box-shadow: 0 8px 20px rgba(82, 41, 143, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

#toplamSatishPage .toplam-tps-fetch.primary-btn:hover {
  background: linear-gradient(135deg, #261f35 0%, #3f265f 45%, #8b5cf6 100%);
  transform: translateY(-1px);
}

#toplamSatishPage .toplam-tps-fetch.primary-btn:active {
  transform: translateY(0);
}

#toplamSatishPage .toplam-tps-fetch .tps-fetch-icon {
  font-size: 15px;
  line-height: 1;
}

/* ——— Filtr kartı (incə, simmetrik, premium) ——— */
#toplamSatishPage .tps-premium-filters.filter-panel {
  margin-top: 20px;
  padding: 18px 20px 16px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 16px;
  background: linear-gradient(165deg, #fcfcfd 0%, #f1f4f8 48%, #eef1f6 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px rgba(15, 23, 42, 0.07);
}

#toplamSatishPage .tps-premium-filters,
#toplamSatishPage .tps-premium-filters .tps-filters-head-icon,
#toplamSatishPage .tps-premium-filters .tps-filters-title,
#toplamSatishPage .tps-premium-filters .tps-date-sep {
  color: #000000;
}

#toplamSatishPage .tps-filters-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

#toplamSatishPage .tps-filters-head-icon {
  font-size: 15px;
  line-height: 1;
  opacity: 0.85;
}

#toplamSatishPage .tps-filters-title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #0f172a;
}

#toplamSatishPage .tps-filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: end;
}

@media (max-width: 960px) {
  #toplamSatishPage .tps-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  #toplamSatishPage .tps-filters-grid {
    grid-template-columns: 1fr;
  }
}

#toplamSatishPage .tps-filter-cell label,
#toplamSatishPage .tps-filter-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 7px;
}

#toplamSatishPage .tps-filter-control {
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  padding: 7px 10px;
  font-size: 13px;
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#toplamSatishPage .tps-filter-control:focus {
  outline: none;
  border-color: rgba(15, 23, 42, 0.2);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

#toplamSatishPage .tps-dual-dates {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}

#toplamSatishPage .tps-dual-dates .tps-filter-date {
  flex: 1;
  min-width: 0;
}

#toplamSatishPage .tps-date-sep {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1;
}

#toplamSatishPage .tps-filters-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

#toplamSatishPage .tps-filter-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  padding: 10px 14px;
  border-radius: 11px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

#toplamSatishPage .tps-filter-btn:active {
  transform: scale(0.99);
}

#toplamSatishPage .tps-filter-btn--primary {
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

#toplamSatishPage .tps-filter-btn--primary:hover {
  background: #1e293b;
}

#toplamSatishPage .tps-filter-btn--ghost {
  background: rgba(255, 255, 255, 0.75);
  color: #334155;
  border-color: rgba(15, 23, 42, 0.1);
}

#toplamSatishPage .tps-filter-btn--ghost:hover {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.16);
}

/* ——— Sütun filtr modalları: TPS (#tpsFilter) + Telebat (#tbFilter) ———
   Örtük: meşə tonu + Təfərrüat: yuxarı sağda incə X */

#tpsFilter,
#tbFilter {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: linear-gradient(
    160deg,
    rgba(18, 48, 36, 0.5) 0%,
    rgba(12, 38, 28, 0.58) 45%,
    rgba(6, 26, 20, 0.66) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#tpsFilter .card,
#tbFilter .card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: min(85vh, 720px);
  margin: auto;
  padding: 16px 20px 16px;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(32, 72, 56, 0.12);
  background: linear-gradient(165deg, #fcfcfd 0%, #f1f4f8 48%, #eef1f6 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 18px 42px rgba(8, 32, 22, 0.22);
}

#tpsFilter .tps-colmod-top,
#tbFilter .tps-colmod-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 2px 0;
  padding: 2px 0 12px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

#tpsFilter .tps-colmod-top .hdr,
#tbFilter .tps-colmod-top .hdr {
  margin: 0;
  padding: 4px 0 0 0;
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: #0f172a;
  line-height: 1.3;
}

#tpsFilter .tps-colmod-x,
#tbFilter .tps-colmod-x {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.88);
  color: #64748b;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.08s ease,
    box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

#tpsFilter .tps-colmod-x:hover,
#tbFilter .tps-colmod-x:hover {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.15);
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

#tpsFilter .tps-colmod-x:active,
#tbFilter .tps-colmod-x:active {
  transform: scale(0.96);
}

#tpsFilter .tps-colmod-x svg,
#tbFilter .tps-colmod-x svg {
  display: block;
  stroke: currentColor;
  fill: none;
}

#tpsFilter .body,
#tbFilter .body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  font-size: 13px;
  color: #334155;
  -webkit-overflow-scrolling: touch;
}

#tpsFilter .body .grid2 label,
#tbFilter .body .grid2 label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}

#tpsFilter .grid2,
#tbFilter .grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

#tpsFilter .tps-colmod-field,
#tbFilter .tps-colmod-field {
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  margin-bottom: 10px;
  padding: 8px 11px;
  font: 13px/1.3 inherit;
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#tpsFilter .tps-colmod-field:focus,
#tbFilter .tps-colmod-field:focus {
  outline: none;
  border-color: rgba(15, 23, 42, 0.2);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

#tpsFilter input[type="number"],
#tpsFilter input[type="date"],
#tpsFilter input[type="text"]:not(.tps-colmod-field),
#tbFilter input[type="number"],
#tbFilter input[type="date"],
#tbFilter input[type="text"]:not(.tps-colmod-field) {
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  padding: 7px 10px;
  font-size: 13px;
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#tpsFilter input:focus,
#tbFilter input:focus {
  outline: none;
  border-color: rgba(15, 23, 42, 0.2);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

#tpsFilter .tps-colmod-note,
#tbFilter .tps-colmod-note {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.45;
  color: #64748b;
}

#tpsFilter .top,
#tbFilter .top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 12px 0;
}

#tpsFilter .tps-colmod-toggle,
#tbFilter .tps-colmod-toggle {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.75);
  color: #334155;
  transition: background 0.15s ease, border-color 0.15s ease;
}

#tpsFilter .tps-colmod-toggle:hover,
#tbFilter .tps-colmod-toggle:hover {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.16);
}

#tpsFilter .list,
#tbFilter .list {
  max-height: 48vh;
  overflow: auto;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

#tpsFilter .row,
#tbFilter .row {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  column-gap: 10px;
  padding: 6px 8px;
  margin-bottom: 2px;
  border-radius: 8px;
  transition: background 0.12s ease;
}

#tpsFilter .row:hover,
#tbFilter .row:hover {
  background: rgba(15, 23, 42, 0.04);
}

#tpsFilter .row input[type="checkbox"],
#tbFilter .row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #0f172a;
}

#tpsFilter .row span,
#tbFilter .row span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  color: #1e293b;
}

#tpsFilter .act,
#tbFilter .act {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

#tpsFilter .tps-colmod-btn,
#tbFilter .tps-colmod-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  padding: 9px 16px;
  border-radius: 11px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

#tpsFilter .tps-colmod-btn:active,
#tbFilter .tps-colmod-btn:active {
  transform: scale(0.99);
}

#tpsFilter .tps-colmod-btn--primary,
#tbFilter .tps-colmod-btn--primary {
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

#tpsFilter .tps-colmod-btn--primary:hover,
#tbFilter .tps-colmod-btn--primary:hover {
  background: #1e293b;
}

#tpsFilter .tps-colmod-btn--ghost,
#tbFilter .tps-colmod-btn--ghost {
  background: rgba(255, 255, 255, 0.75);
  color: #334155;
  border-color: rgba(15, 23, 42, 0.1);
}

#tpsFilter .tps-colmod-btn--ghost:hover,
#tbFilter .tps-colmod-btn--ghost:hover {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.16);
}
