:root{
  --bg:#fafafa;
  --card:#fff;
  --border:#e5e5e5;
  --text:#111;
  --muted:#666;
  --danger:#b00020;
  --ok:#0b6b0b;
  --btn:#111;
  --btnText:#fff;
  --radius:14px;
}

select, option {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  padding:16px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans Thai", sans-serif;
  background:var(--bg);
  color:var(--text);
}

.hidden{ display:none !important; }

.loading{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:60vh;
  color:#444;
}
.loading__box{
  max-width:560px;
  width:100%;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
}
.loading__title{ font-size:18px; font-weight:800; }
.loading__subtitle{ margin-top:6px; color:var(--muted); }

.card{
  max-width:560px;
  margin:0 auto;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
}
.card__header{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.card__title{ margin:0; font-size:22px; }

.pill{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  background:#f1f1f1;
  font-size:12px;
  color:#333;
  white-space:nowrap;
}

.section{ margin-top:6px; }
.field{ margin-top:12px; }
label{ display:block; font-weight:750; }

input, select{
  width:100%;
  padding:10px;
  margin-top:6px;
  border-radius:12px;
  border:1px solid #ccc;
  font-size:14px;
  background:#fff;
}

/* ✅ ทำให้ตัวเลขเวลาใน dropdown เรียงสวยขึ้น */
select, option{
  font-variant-numeric: tabular-nums;
}

/* (ช่วยอ่าน) ให้ optgroup ไม่แน่นเกิน */
optgroup{
  font-weight: 800;
}

.hint{
  display:block;
  margin-top:6px;
  color:var(--muted);
  line-height:1.35;
  font-size:12px;
}

.row{ display:flex; gap:10px; }
.row > div{ flex:1; }

/* separator between start/end date inputs */
.date-sep{
  display:flex;
  align-items:center;
  justify-content:center;
  width:36px;
  color:var(--muted);
  font-size:18px;
}

.btn{
  width:100%;
  margin-top:16px;
  padding:12px;
  border-radius:var(--radius);
  border:0;
  font-weight:850;
  background:var(--btn);
  color:var(--btnText);
  cursor:pointer;
}
.btn:disabled{ opacity:.55; cursor:not-allowed; }

.btn--ghost{
  background:transparent;
  color:var(--text);
  border:1px solid var(--border);
  margin-top:10px;
}

.msg{
  margin-top:10px;
  min-height:20px;
  font-weight:650;
}
.msg--err{ color:var(--danger); }
.msg--ok{ color:var(--ok); }

.footer{ margin-top:8px; }
