/* =========================================================
   21century.edu.az — cədvəl stilləri (t21-tables.css)
   Şriftə, ölçüyə, qalınlığa toxunmur — yalnız rəng, xətt,
   boşluq, fon və mobil görünüş.
   ========================================================= */
:root {
  --t21-primary: #17347c;      /* saytın "Menyu"/"Müraciət edin" düymə rəngi */
  --t21-primary-soft: #eef2fa; /* açıq göy fon */
  --t21-zebra: #f7f9fd;        /* cüt sətirlər */
  --t21-hover: #e7edf8;        /* üzərinə gələndə */
  --t21-line: #e3e8f2;         /* incə xətlər */
  --t21-radius: 14px;
}

/* Bükücü: yuvarlaq künclər, yumşaq kölgə, mobil üfüqi sürüşmə */
.t21-table-wrap {
  margin: 24px 0 32px;
  border: 1px solid var(--t21-line);
  border-radius: var(--t21-radius);
  box-shadow: 0 6px 24px rgba(23, 52, 124, .07);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

.t21-table-wrap table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

/* Bütün xanalar: köhnə qalın göy xətləri sil, incə xətt və rahat boşluq ver */
.t21-table-wrap td,
.t21-table-wrap th {
  border: 0 !important;
  border-bottom: 1px solid var(--t21-line) !important;
  border-right: 1px solid var(--t21-line) !important;
  padding: 14px 18px !important;
  vertical-align: middle !important;
  text-align: left !important;      /* "1   mart   -   31" kimi justify boşluqlarını aradan qaldırır */
  background: transparent !important;
  transition: background-color .15s ease;
}
.t21-table-wrap tr > :last-child { border-right: 0 !important; }
.t21-table-wrap tr:last-child > td,
.t21-table-wrap tr:last-child > th { border-bottom: 0 !important; }

/* Hüceyrə daxilindəki <p> boşluqlarını sıxlaşdır */
.t21-table-wrap td p,
.t21-table-wrap th p { margin: 0 0 6px !important; text-align: left !important; }
.t21-table-wrap td p:last-child,
.t21-table-wrap th p:last-child { margin-bottom: 0 !important; }

/* ---------- Başlıqlı cədvəllər (qiymət, kampaniya) ---------- */
.t21-has-head tr:first-child > td,
.t21-has-head tr:first-child > th,
.t21-has-head thead th,
.t21-has-head thead td {
  background: var(--t21-primary) !important;
  color: #fff !important;
  border-right-color: rgba(255, 255, 255, .15) !important;
  border-bottom: 0 !important;
}
.t21-has-head tr:first-child > * *,
.t21-has-head thead * { color: #fff !important; }

/* Zebra və hover — yalnız gövdə sətirləri */
.t21-has-head tr:not(:first-child):nth-child(odd) > td { background: var(--t21-zebra) !important; }
.t21-has-head tr:not(:first-child):hover > td { background: var(--t21-hover) !important; }

/* Birinci sütun (təhsil pilləsi, tarixlər) — saytın göy rəngi */
.t21-has-head tr:not(:first-child) > td:first-child { color: var(--t21-primary) !important; }

/* Rəqəm sütunları ortalansın (JS .t21-num əlavə edir) */
.t21-table-wrap td.t21-num { text-align: center !important; white-space: nowrap; }
.t21-has-head tr:first-child > .t21-num-head { text-align: center !important; }

/* Boş xana tire ilə göstərilsin */
.t21-table-wrap td.t21-empty::after { content: "—"; color: #b4bdd3; }
.t21-table-wrap td.t21-dash { color: #b4bdd3 !important; text-align: center !important; }

/* ---------- Başlıqsız cədvəllər (ödəniş təlimatları) ---------- */
.t21-no-head tr > td:first-child {
  background: var(--t21-primary-soft) !important;
  color: var(--t21-primary) !important;
}
.t21-no-head td img { display: block; margin: 8px auto; max-width: 90px; height: auto; }
.t21-no-head td { padding: 18px 20px !important; }

/* ---------- Mobil ---------- */
@media (max-width: 768px) {
  .t21-table-wrap { margin: 16px 0 24px; border-radius: 10px; }
  .t21-table-wrap table { min-width: 620px; }
  .t21-table-wrap td,
  .t21-table-wrap th { padding: 11px 13px !important; }
  /* Birinci sütun sürüşdürəndə yerində qalsın */
  .t21-has-head tr > :first-child { position: sticky; left: 0; z-index: 1; }
  .t21-has-head tr:not(:first-child) > td:first-child { background: #fff !important; box-shadow: 2px 0 6px rgba(23,52,124,.06); }
  .t21-has-head tr:not(:first-child):nth-child(odd) > td:first-child { background: var(--t21-zebra) !important; }
}

/* Çap */
@media print {
  .t21-table-wrap { box-shadow: none; overflow: visible; }
  .t21-has-head tr:first-child > * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* =========================================================
   Ödəniş səhifəsi — kartlar (JS cədvəlləri bunlara çevirir)
   ========================================================= */
.t21-pay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0 36px;
}
.t21-pay-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--t21-line);
  border-radius: var(--t21-radius);
  box-shadow: 0 6px 24px rgba(23, 52, 124, .07);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.t21-pay-card:hover { box-shadow: 0 10px 30px rgba(23, 52, 124, .12); transform: translateY(-2px); }

.t21-pay-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--t21-primary-soft);
  border-bottom: 1px solid var(--t21-line);
}
.t21-pay-logo {
  flex: 0 0 auto;
  width: 64px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--t21-line);
}
.t21-pay-logo img {
  width: 48px !important; max-width: 48px !important;
  height: auto !important; max-height: 32px !important;
  object-fit: contain; margin: 0 !important; display: block !important;
}
.t21-pay-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--t21-primary);
  color: #fff;
  margin-bottom: 4px;
}
.t21-pay-title { margin: 0 !important; color: var(--t21-primary); }

.t21-pay-body { padding: 18px 22px; flex: 1; }
.t21-pay-body p { margin: 0 0 10px; }

/* Nömrəli addımlar */
.t21-steps { list-style: none; margin: 0; padding: 0; counter-reset: t21; }
.t21-steps li {
  position: relative;
  counter-increment: t21;
  padding: 0 0 14px 40px;
  min-height: 28px;
}
.t21-steps li:last-child { padding-bottom: 0; }
.t21-steps li::before {
  content: counter(t21);
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--t21-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.t21-steps li:not(:last-child)::after {
  content: "";
  position: absolute; left: 12px; top: 30px; bottom: 4px;
  width: 2px; background: var(--t21-line);
}
.t21-steps b { color: var(--t21-primary); }

/* Terminal menyu ardıcıllığı (addımın içində) */
.t21-path { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 2px !important; }
.t21-path span {
  padding: 4px 11px;
  border-radius: 7px;
  background: var(--t21-primary-soft);
  color: var(--t21-primary);
  border: 1px solid #dbe3f3;
}
.t21-path i { font-style: normal; color: #9aa6c4; }

/* Saytın p/li stillərini kartın içində neytrallaşdır */
.t21-pay-card ol, .t21-pay-card li, .t21-pay-card p, .t21-pay-card div {
  text-align: left !important;
  text-indent: 0 !important;
}
.t21-pay-card li { margin: 0 !important; list-style: none !important; }

.t21-pay-foot { padding: 0 22px 22px; }
.t21-pay-foot a { display: inline-block; }

@media (max-width: 768px) {
  .t21-pay-grid { grid-template-columns: 1fr; gap: 16px; }
}
.t21-pay-foot .t21-pay-btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 8px;
  background: var(--t21-primary) !important;
  color: #fff !important;
  text-decoration: none !important;
  border: 0;
  transition: opacity .15s ease;
}
.t21-pay-foot .t21-pay-btn:hover { opacity: .88; }
