/* =========================================================
   KHPG Schedule Tool – Base Layout
   ========================================================= */

.kst-wrap {
  max-width: 1200px;
  margin: 18px auto;
}

.kst-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.kst-h1 {
  font-size: 1.2rem;
  font-weight: 700;
}

.kst-muted {
  opacity: .7;
  font-size: .95rem;
}

.kst-status {
  font-weight: 600;
  opacity: .85;
}

.kst-error {
  color: #a00;
}

/* =========================================================
   Grid / Cards
   ========================================================= */

.kst-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 980px) {
  .kst-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.kst-card {
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  padding: 14px;
}

.kst-card-h {
  font-weight: 700;
  margin-bottom: 10px;
}

/* =========================================================
   Event List (left)
   ========================================================= */

.kst-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kst-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 10px;
}

.kst-row-main {
  flex: 1;
}

.kst-evtitle {
  font-weight: 700;
}

.kst-meta {
  opacity: .75;
  font-size: .92rem;
  margin-top: 2px;
}

.kst-row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* =========================================================
   Form fields (right)
   ========================================================= */

.kst-field {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kst-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: 10px;
  background: #fff;
}

.kst-help {
  opacity: .7;
  font-size: .9rem;
}

.kst-rowline {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* =========================================================
   Buttons
   ========================================================= */

.kst-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.kst-btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.18);
  font-weight: 700;
  cursor: pointer;
  background: transparent;
}

.kst-btn:hover {
  border-color: rgba(0,0,0,.30);
}

.kst-btn-primary {
  background: rgba(0,0,0,.06);
}

.kst-btn-outline {
  opacity: .9;
}

.kst-btn-danger {
  border-color: rgba(160,0,0,.35);
  color: #a00;
}

/* =========================================================
   FORCE CHECKBOX VISIBILITY (Theme-safe)
   ========================================================= */

#khpg-schedule-tool input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;

  width: 18px !important;
  height: 18px !important;

  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;

  position: relative !important;
  left: 0 !important;
  top: 0 !important;

  clip: auto !important;
  clip-path: none !important;

  transform: none !important;
  pointer-events: auto !important;

  background: #fff !important;
  border: 1px solid rgba(0,0,0,.4) !important;
}

#khpg-schedule-tool label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}
