/* EHKK Registrations — public styles */

.ehkk-form-wrap,
.ehkk-list-wrap {
  max-width: 560px;
  font-family: inherit;
}

/* ── VORM ── */
.ehkk-form-title {
  margin-bottom: 1.2em;
}

.ehkk-field {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ehkk-field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.ehkk-field input[type="text"],
.ehkk-field input[type="email"],
.ehkk-field input[type="number"],
.ehkk-field select,
.ehkk-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color .15s;
}

.ehkk-field input:focus,
.ehkk-field select:focus,
.ehkk-field textarea:focus {
  border-color: #b22222;
  outline: none;
  box-shadow: 0 0 0 2px rgba(178,34,34,.15);
}

.ehkk-number-status {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 2px;
}
.ehkk-ok    { color: #2d8a2d; }
.ehkk-taken { color: #c0392b; }

.ehkk-submit-btn {
  display: inline-block;
  background: #b22222;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  margin-top: 4px;
}
.ehkk-submit-btn:hover  { background: #8b1a1a; }
.ehkk-submit-btn:disabled { background: #aaa; cursor: not-allowed; }

.ehkk-form-message {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 4px;
  font-weight: 600;
  display: none;
}
.ehkk-form-message:not(:empty) { display: block; }
.ehkk-msg-success { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.ehkk-msg-error   { background: #fdecea; color: #b71c1c; border: 1px solid #ef9a9a; }

.ehkk-notice {
  padding: 12px 16px;
  background: #fff3cd;
  border-left: 4px solid #f0ad4e;
  border-radius: 4px;
}

/* ── NIMEKIRI ── */
.ehkk-list-wrap {
  max-width: 100%;
}

.ehkk-klass-header {
  margin: 1.4em 0 0.4em;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #b22222;
  border-bottom: 2px solid #b22222;
  padding-bottom: 4px;
}

.ehkk-klass-count {
  color: #666;
  font-weight: 400;
  font-size: .9rem;
}

.ehkk-entries-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-bottom: 0.5em;
}
.ehkk-entries-table th,
.ehkk-entries-table td {
  text-align: left;
  padding: 6px 10px;
  border-bottom: 1px solid #eee;
}
.ehkk-entries-table thead th {
  background: #f5f5f5;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.ehkk-entries-table tbody tr:hover { background: #fafafa; }
.ehkk-number { font-weight: 700; width: 60px; }

.ehkk-loading { color: #888; padding: 12px 0; }
.ehkk-empty   { color: #888; font-style: italic; }
.ehkk-error   { color: #c0392b; }

.ehkk-last-updated {
  font-size: 0.78rem;
  color: #aaa;
  margin-top: 8px;
  text-align: right;
}

/* ── KLASSITABID (ehkk_registrations) ── */

.ehkk-tabs-wrap {
  display: flex !important;
  gap: 0 !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  min-height: 300px !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

.ehkk-tabs-wrap .ehkk-tabs-sidebar {
  display: flex !important;
  flex-direction: column !important;
  background: #f0f0f0 !important;
  border-right: 1px solid #ddd !important;
  min-width: 130px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Kõrge spetsiifilisus + !important et teema button-stiilid ei saaks üle kirjutada */
.ehkk-tabs-wrap .ehkk-tabs-sidebar .ehkk-tab-btn {
  all: unset !important;
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #ddd !important;
  border-radius: 0 !important;
  padding: 11px 16px !important;
  text-align: left !important;
  cursor: pointer !important;
  font-size: 0.88rem !important;
  font-family: inherit !important;
  color: #444 !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  transition: background 0.12s, color 0.12s !important;
  margin: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.ehkk-tabs-wrap .ehkk-tabs-sidebar .ehkk-tab-btn:last-child {
  border-bottom: none !important;
}

.ehkk-tabs-wrap .ehkk-tabs-sidebar .ehkk-tab-btn:hover {
  background: #e2e2e2 !important;
  color: #222 !important;
}

.ehkk-tabs-wrap .ehkk-tabs-sidebar .ehkk-tab-btn.ehkk-tab-active {
  background: #b22222 !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-bottom-color: #a01e1e !important;
}

.ehkk-tabs-wrap .ehkk-tabs-content {
  flex: 1 !important;
  padding: 16px 20px !important;
  min-width: 0 !important;
  background: #fff !important;
}

.ehkk-tabs-wrap .ehkk-tabs-header {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
  border-bottom: 2px solid #b22222 !important;
  padding-bottom: 6px !important;
}

.ehkk-tabs-wrap .ehkk-tabs-title {
  font-weight: 700 !important;
  font-size: 1rem !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  color: #b22222 !important;
}

.ehkk-tabs-wrap .ehkk-tabs-count {
  color: #888 !important;
  font-size: 0.88rem !important;
}

.ehkk-tabs-wrap .ehkk-last-updated {
  font-size: 0.78rem !important;
  color: #aaa !important;
  margin-top: 8px !important;
  text-align: right !important;
}

.ehkk-tabs-wrap .ehkk-entries-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 0.95rem !important;
}

.ehkk-tabs-wrap .ehkk-entries-table th,
.ehkk-tabs-wrap .ehkk-entries-table td {
  text-align: left !important;
  padding: 6px 10px !important;
  border-bottom: 1px solid #eee !important;
  background: none !important;
  color: inherit !important;
}

.ehkk-tabs-wrap .ehkk-entries-table thead th {
  background: #f5f5f5 !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  text-transform: uppercase !important;
  letter-spacing: .03em !important;
  color: #555 !important;
}

.ehkk-tabs-wrap .ehkk-entries-table .ehkk-number {
  font-weight: 700 !important;
  width: 60px !important;
}

@media (max-width: 600px) {
  .ehkk-tabs-wrap {
    flex-direction: column !important;
  }
  .ehkk-tabs-wrap .ehkk-tabs-sidebar {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    border-right: none !important;
    border-bottom: 1px solid #ddd !important;
  }
  .ehkk-tabs-wrap .ehkk-tabs-sidebar .ehkk-tab-btn {
    width: auto !important;
    border-bottom: none !important;
    border-right: 1px solid #ddd !important;
    padding: 8px 12px !important;
    font-size: 0.82rem !important;
  }
}
