/* 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;
  gap: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  min-height: 300px;
}

.ehkk-tabs-sidebar {
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
  border-right: 1px solid #ddd;
  min-width: 130px;
  flex-shrink: 0;
}

.ehkk-tab-btn {
  background: none;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  padding: 11px 16px;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
  color: #3a6186;
  font-weight: 500;
  transition: background .12s, color .12s;
  line-height: 1.3;
}
.ehkk-tab-btn:last-child { border-bottom: none; }
.ehkk-tab-btn:hover      { background: #e8eef5; }
.ehkk-tab-btn.ehkk-tab-active {
  background: #b22222;
  color: #fff;
  font-weight: 700;
}

.ehkk-tabs-content {
  flex: 1;
  padding: 16px 20px;
  min-width: 0;
}

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

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

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

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