/* เพิ่มผู้เข้าร่วมย้อนหลัง + เติมชื่อที่แสดง (admin-backfill.js · 29 ต.ค. 2569) */
.cert-backfill-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.cert-backfill-bar.hidden { display: none; }
.cert-fill-name { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 2px 10px; border: 1px solid #c9d8cf; border-radius: 999px; background: #fff; color: #194e31; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; }
.cert-fill-name .material-symbols-rounded { font-size: 18px; }
.cert-fill-name:hover { background: var(--health-soft, #eaf4ee); }

.backfill-dialog .modal-body, .fill-name-dialog .modal-body { max-width: 520px; }
.backfill-form { display: grid; gap: 14px; }
.backfill-field { display: grid; gap: 6px; font-weight: 700; }
.backfill-field input[type="text"], .backfill-field input[type="datetime-local"] { min-height: 48px; border: 1px solid #d4d4d8; border-radius: 14px; padding: 8px 12px; font: inherit; font-weight: 400; }
.backfill-field input:disabled { background: #f4f4f5; color: #999; }
.backfill-field.hidden, .backfill-picked.hidden { display: none; }
.backfill-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.backfill-finish-head { display: inline-flex; align-items: center; gap: 8px; }
.backfill-finish-head input { width: 20px; height: 20px; margin: 0; }
.backfill-picked { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #c9d8cf; border-radius: 14px; background: var(--health-soft, #eaf4ee); }
.backfill-picked-text { display: grid; flex: 1; min-width: 0; }
.backfill-picked-text small { color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.backfill-dialog .team-suggest li.is-registered { cursor: not-allowed; opacity: .55; }
.backfill-dialog .team-suggest li small em { font-style: normal; color: #b45309; }
.backfill-form > .button { justify-self: stretch; min-height: 52px; }
.backfill-form .is-busy { pointer-events: none; opacity: .7; }

@media (max-width: 520px) {
  .backfill-times { grid-template-columns: 1fr; }
  .cert-backfill-bar .button { flex: 1 1 100%; }
}
