
/* ==================================================
   RESET
================================================== */

#ielts-table-tool-tn,
#ielts-table-tool-tn * {
  box-sizing: border-box;
}

#ielts-table-tool-tn {
  --ielts-primary-tn: #2563eb;
  --ielts-primary-dark-tn: #1d4ed8;
  --ielts-primary-soft-tn: #eff6ff;

  --ielts-text-tn: #0f172a;
  --ielts-text2-tn: #334155;
  --ielts-muted-tn: #64748b;

  --ielts-border-tn: #e2e8f0;
  --ielts-bg-tn: #f8fafc;

  width: 100%;
  max-width: 1100px;

  margin: 0px auto;

  color: var(--ielts-text-tn);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  line-height: 1.5;
}


/* ==================================================
   CARD
================================================== */

.ielts-table-tool-tn {
  overflow: hidden;

  background: #fff;

  border: 1px solid var(--ielts-border-tn);
  border-radius: 22px;

  box-shadow:
    0 20px 50px rgba(15, 23, 42, .07);
}


/* ==================================================
   HEADER
================================================== */

.ielts-header-tn {
  position: relative;

  padding: 38px 40px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 92% 0%,
      rgba(37, 99, 235, .15),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #f8fbff,
      #ffffff 65%
    );

  border-bottom: 1px solid var(--ielts-border-tn);
}

.ielts-badge-tn {
  display: inline-flex;

  margin-bottom: 12px;
  padding: 6px 11px;

  color: var(--ielts-primary-tn);
  background: var(--ielts-primary-soft-tn);

  border-radius: 999px;

  font-size: 12px;
  font-weight: 800;
}

.ielts-title-tn {
  margin: 0;

  color: var(--ielts-text-tn);

  font-size: clamp(26px, 4vw, 37px);
  font-weight: 850;

  letter-spacing: -.04em;
  line-height: 1.15;
}

.ielts-description-tn {
  max-width: 680px;

  margin: 11px 0 0;

  color: var(--ielts-muted-tn);

  font-size: 14px;
}


/* ==================================================
   BODY
================================================== */

.ielts-body-tn {
  padding: 28px 40px 38px;
}


/* ==================================================
   FILTER
================================================== */

.ielts-filter-grid-tn {
  display: grid;

  grid-template-columns:
    .7fr 1fr 1fr 1.4fr;

  gap: 12px;

  margin-bottom: 19px;
}

.ielts-field-tn {
  display: block;
}

.ielts-label-tn {
  display: block;

  margin-bottom: 7px;

  color: #475569;

  font-size: 12px;
  font-weight: 700;
}

.ielts-select-tn,
.ielts-input-tn {
  width: 100%;
  height: 52px;

  padding: 0 14px;

  outline: none;

  color: #0f172a;
  background: #fff;

  border: 1px solid #dbe3ef;
  border-radius: 13px;

  font-family: inherit;
  font-size: 13px;

  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

.ielts-select-tn {
  cursor: pointer;
}

.ielts-select-tn:hover,
.ielts-input-tn:hover {
  border-color: #bfdbfe;
}

.ielts-select-tn:focus,
.ielts-input-tn:focus {
  border-color: var(--ielts-primary-tn);

  box-shadow:
    0 0 0 3px rgba(37, 99, 235, .09);
}


/* ==================================================
   SUMMARY
================================================== */

.ielts-summary-tn {
  margin-bottom: 13px;

  color: var(--ielts-muted-tn);

  font-size: 12px;
}

.ielts-summary-tn strong {
  color: var(--ielts-primary-tn);
}


/* ==================================================
   TABLE
================================================== */

.ielts-table-scroll-tn {
  width: 100%;

  overflow-x: auto;

  border: 1px solid var(--ielts-border-tn);
  border-radius: 14px;
}

.ielts-table-tn {
  width: 100%;
  min-width: 780px;

  border-spacing: 0;
  border-collapse: collapse;

  background: #fff;
}

.ielts-table-tn th {
  padding: 12px 10px;

  color: #1e3a8a;
  background: #eaf3ff;

  border-right: 1px solid #dbeafe;
  border-bottom: 1px solid #bfdbfe;

  text-align: center;

  font-size: 11px;
  font-weight: 800;

  white-space: nowrap;
}

.ielts-table-tn th:last-child {
  border-right: 0;
}

.ielts-table-tn td {
  padding: 11px 10px;

  color: #475569;

  border-right: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;

  text-align: center;

  font-size: 12px;
}

.ielts-table-tn td:last-child {
  border-right: 0;
}

.ielts-table-tn tr:last-child td {
  border-bottom: 0;
}

.ielts-table-tn tbody tr:not(.ielts-region-row-tn) {
  transition: background .15s ease;
}

.ielts-table-tn tbody tr:not(.ielts-region-row-tn):hover {
  background: #f8fbff;
}


/* STT */

.ielts-stt-tn {
  width: 52px;

  color: #94a3b8 !important;

  font-size: 11px !important;
}


/* SCHOOL */

.ielts-school-tn {
  min-width: 255px;

  color: #1e293b !important;

  text-align: left !important;

  font-weight: 650;
}


/* REGION HEADER */

.ielts-region-row-tn td {
  padding: 9px 12px;

  color: #1e3a8a;

  background: #f1f6ff;

  text-align: left;

  font-size: 11px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: .03em;
}


/* SCORE */

.ielts-score-tn {
  min-width: 58px;

  color: #334155 !important;

  font-weight: 650;
}

.ielts-score-empty-tn {
  color: #cbd5e1 !important;
}

.ielts-selected-column-tn {
  color: #1d4ed8 !important;
  background: #eff6ff !important;

  font-weight: 800 !important;
}

.ielts-score-pill-tn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 52px;

  padding: 6px 9px;

  color: #1d4ed8;
  background: #eff6ff;

  border-radius: 8px;

  font-size: 13px;
  font-weight: 800;
}


/* ==================================================
   EMPTY
================================================== */

.ielts-empty-tn {
  display: none;

  padding: 35px 15px;

  color: #94a3b8;

  text-align: center;

  font-size: 13px;
}

.ielts-empty-tn.show-tn {
  display: block;
}


/* ==================================================
   NOTE
================================================== */

.ielts-note-tn {
  display: flex;
  align-items: flex-start;

  gap: 11px;

  margin-top: 18px;
  padding: 14px 15px;

  color: var(--ielts-muted-tn);
  background: #f8fafc;

  border: 1px dashed #cbd5e1;
  border-radius: 11px;

  font-size: 11px;
}

.ielts-note-icon-tn {
  display: flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;

  width: 24px;
  height: 24px;

  color: #475569;
  background: #e2e8f0;

  border-radius: 50%;

  font-weight: 800;
}

.ielts-note-tn strong {
  color: #334155;
}

.ielts-note-tn p {
  margin: 3px 0 0;
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 850px) {

  .ielts-filter-grid-tn {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


@media (max-width: 600px) {

  #ielts-table-tool-tn {
    margin: 14px auto;
  }

  .ielts-table-tool-tn {
    border-radius: 17px;
  }

  .ielts-header-tn {
    padding: 28px 20px;
  }

  .ielts-body-tn {
    padding: 21px 16px 27px;
  }

  .ielts-filter-grid-tn {
    grid-template-columns: 1fr;
  }

  .ielts-select-tn,
  .ielts-input-tn {
    height: 55px;

    border-radius: 14px;

    font-size: 14px;
  }

  .ielts-table-tn {
    min-width: 700px;
  }

}
