/* ===== Wrapper ===== */
.ahis-wrap {
  max-width: 960px;
  margin: 30px auto;
}

/* ===== Header ===== */
.ahis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 12px 4px;
}

.ahis-now-time {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.5px;
}

/* ===== Next prayer (rechtsboven) ===== */
.ahis-next {
  display: flex;
  align-items: baseline;
  gap: 14px;              /* ← spacing tussen tekst en countdown (desktop) */
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
}

.ahis-next-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
}

/* Alleen de countdown (aftel-timer) */
.ahis-next-countdown {
  font-size: 2.2rem;
  font-weight: 900;
  color: #0077B6;
  letter-spacing: 1px;
  line-height: 1;
}

/* ===== Table wrapper (kaart) ===== */
.ahis-table-wrapper {
  overflow-x: auto;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none; /* bewust geen schaduw */
}

/* ===== Table ===== */
.ahis-table {
  min-width: 720px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/* ===== Table header ===== */
.ahis-table th {
  background: #0077B6;
  color: #ffffff;
  padding: 10px;
  text-align: center;
  font-weight: 700;
}

.ahis-table th small {
  display: block;
  font-size: 0.75em;
  color: #e0f2ff;
}

/* Rounded corners on header */
.ahis-table thead th:first-child {
  border-top-left-radius: 14px;
}

.ahis-table thead th:last-child {
  border-top-right-radius: 14px;
}

/* ===== Table cells ===== */
.ahis-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
  background: #ffffff;
}

/* ===== Today row ===== */
.ahis-today,
.ahis-today td {
  background: #f3f4f6;
}

/* ===== Active prayer ===== */
.ahis-active {
  background: #0096C7 !important;
  color: #ffffff !important;
  font-weight: 700;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {

  /* header onder elkaar */
  .ahis-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* huidige tijd verbergen op mobiel */
  .ahis-now-time {
    display: none;
  }

  /* next prayer onder elkaar */
  .ahis-next {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* countdown iets kleiner op mobiel */
  .ahis-next-countdown {
    font-size: 1.9rem;
  }
}

/* ===== DEFINITIEF: countdown forceren ===== */
.ahis-header .ahis-next #ahis-next-countdown {
  font-size: 2.0rem !important;
  font-weight: 900 !important;
  color: #0077B6 !important;
  letter-spacing: 1px;
  line-height: 1.1;
}

