/* EDHD CHECK-IN — สไตล์จำกัดเฉพาะภายใน .edhd-app เพื่อไม่กระทบธีมและหน้าอื่น */
.edhd-app {
	--edhd-navy: #0b2e6b;
	--edhd-blue: #1653b5;
	--edhd-sky: #38a8e0;
	--edhd-sky-l: #e9f5fc;
	--edhd-gold: #c9a227;
	--edhd-gold-l: #fbf4dc;
	--edhd-ink: #1c2434;
	--edhd-muted: #5b6577;
	--edhd-line: #d8e0ec;
	--edhd-bg: #f5f8fc;
	--edhd-ok: #1e7b4f;
	--edhd-warn: #9a6a00;
	--edhd-bad: #b3261e;
	--edhd-r: 12px;
	font-family: "Sarabun", "Noto Sans Thai", "Leelawadee UI", "Thonburi", Tahoma, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	color: var(--edhd-ink);
	background: var(--edhd-bg);
	border-radius: var(--edhd-r);
	overflow: hidden;
	max-width: 1180px;
	margin: 0 auto 2rem;
	box-sizing: border-box;
	text-align: left;
}
.edhd-app *, .edhd-app *::before, .edhd-app *::after { box-sizing: border-box; }
.edhd-app h2, .edhd-app h3 { font-family: inherit; color: var(--edhd-navy); line-height: 1.35; margin: 0 0 .6em; letter-spacing: 0; text-transform: none; }
.edhd-app h2 { font-size: 1.4rem; }
.edhd-app h3 { font-size: 1.12rem; }
.edhd-app p { margin: 0 0 .8em; }
.edhd-app a { color: var(--edhd-blue); }
.edhd-app img { max-width: 100%; height: auto; }
.edhd-app [hidden] { display: none !important; }

/* ส่วนหัว */
.edhd-app .edhd-hero { background: linear-gradient(120deg, var(--edhd-navy) 0%, var(--edhd-blue) 60%, var(--edhd-sky) 100%); color: #fff; border-bottom: 4px solid var(--edhd-gold); }
.edhd-app .edhd-hero-inner { display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between; align-items: center; padding: 1.1rem 1.25rem; }
.edhd-app .edhd-brand { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.edhd-app .edhd-logos { display: flex; align-items: center; gap: .45rem; background: #fff; border-radius: 14px; padding: .35rem .55rem; box-shadow: 0 2px 8px rgba(0,0,0,.15); flex: none; }
.edhd-app .edhd-logos img { height: 56px; width: auto; display: block; }
.edhd-app .edhd-pick2 { display: grid; grid-template-columns: 1fr; gap: .5rem; }
.edhd-app .edhd-sublabel { display: block; font-size: .88rem; color: var(--edhd-muted); margin: 0 0 .2rem; font-weight: 600; }
.edhd-app .edhd-other-input { margin-top: .5rem; }
@media (min-width: 720px) { .edhd-app .edhd-pick2 { grid-template-columns: 1fr 1.4fr; } }
@media (max-width: 719px) { .edhd-app .edhd-logos img { height: 44px; } .edhd-app .edhd-name { font-size: 1.25rem; } }
.edhd-app .edhd-logo { width: 48px; height: 48px; border-radius: 50%; background: var(--edhd-gold); color: var(--edhd-navy); display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; flex: none; }
.edhd-app .edhd-name { font-size: 1.5rem; font-weight: 800; letter-spacing: .04em; }
.edhd-app .edhd-slogan { color: #ffe9a8; font-size: 1rem; }
.edhd-app .edhd-org { font-size: .85rem; opacity: .92; text-align: right; }

.edhd-app .edhd-main { padding: 1rem; }

/* เมนู */
.edhd-app .edhd-nav { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0 0 1rem; }
.edhd-app .edhd-nav-item { padding: .55rem .95rem; border-radius: 999px; background: #fff; border: 1px solid var(--edhd-line); color: var(--edhd-navy); text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.edhd-app .edhd-nav-item.is-active { background: var(--edhd-navy); border-color: var(--edhd-navy); color: #fff; }
.edhd-app .edhd-nav-user { margin-left: auto; font-size: .9rem; color: var(--edhd-muted); }

/* การ์ด */
.edhd-app .edhd-card { background: #fff; border: 1px solid var(--edhd-line); border-radius: var(--edhd-r); padding: 1.1rem 1.2rem; margin: 0 0 1rem; }
.edhd-app .edhd-empty { text-align: center; padding: 2rem 1.2rem; }
.edhd-app .edhd-muted { color: var(--edhd-muted); font-size: .92em; }
.edhd-app .edhd-center { text-align: center; }

/* ปุ่ม */
.edhd-app .edhd-btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 44px; padding: .5rem 1.05rem; border-radius: 10px; border: 1px solid var(--edhd-blue); background: #fff; color: var(--edhd-blue); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center; }
.edhd-app .edhd-btn:hover { background: var(--edhd-sky-l); }
.edhd-app .edhd-btn:focus-visible, .edhd-app a:focus-visible, .edhd-app input:focus-visible, .edhd-app select:focus-visible, .edhd-app textarea:focus-visible { outline: 3px solid var(--edhd-gold); outline-offset: 2px; }
.edhd-app .edhd-btn-primary { background: var(--edhd-blue); color: #fff; }
.edhd-app .edhd-btn-primary:hover { background: var(--edhd-navy); color: #fff; }
.edhd-app .edhd-btn-gold { background: var(--edhd-gold); border-color: var(--edhd-gold); color: var(--edhd-navy); }
.edhd-app .edhd-btn-gold:hover { background: #b38e1c; color: #fff; }
.edhd-app .edhd-btn-ghost { border-color: var(--edhd-line); color: var(--edhd-navy); }
.edhd-app .edhd-btn-danger { border-color: var(--edhd-bad); color: var(--edhd-bad); }
.edhd-app .edhd-btn-danger:hover { background: #fdeceb; }
.edhd-app .edhd-btn-lg { min-height: 52px; padding: .7rem 1.4rem; font-size: 1.05rem; }
.edhd-app .edhd-btn-sm { min-height: 34px; padding: .25rem .7rem; font-size: .9rem; }
.edhd-app .edhd-btn.is-busy { opacity: .6; cursor: progress; }
.edhd-app .edhd-link { background: none; border: 0; color: var(--edhd-blue); text-decoration: underline; cursor: pointer; font: inherit; padding: .2rem .4rem; }

/* หน้าแรก */
.edhd-app .edhd-actions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; margin: 0 0 1rem; }
.edhd-app .edhd-action { display: flex; flex-direction: column; gap: .2rem; padding: 1.1rem; border-radius: var(--edhd-r); background: #fff; border: 1px solid var(--edhd-line); border-top: 4px solid var(--edhd-gold); text-decoration: none; color: var(--edhd-ink); min-height: 120px; transition: transform .12s, box-shadow .12s; }
.edhd-app .edhd-action:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(11, 46, 107, .12); }
.edhd-app .edhd-action-ico { font-size: 1.6rem; }
.edhd-app .edhd-action-title { font-weight: 700; color: var(--edhd-navy); font-size: 1.1rem; }
.edhd-app .edhd-action-sub { color: var(--edhd-muted); font-size: .9rem; }

.edhd-app .edhd-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; margin: 0 0 1rem; }
.edhd-app .edhd-kpi { background: var(--edhd-sky-l); border-radius: 10px; padding: .8rem; text-align: center; }
.edhd-app .edhd-kpi-num { font-size: 1.9rem; font-weight: 800; color: var(--edhd-navy); line-height: 1.1; }
.edhd-app .edhd-kpi-unit { font-weight: 600; color: var(--edhd-blue); }
.edhd-app .edhd-kpi-label { font-size: .85rem; color: var(--edhd-muted); }

.edhd-app .edhd-list { margin: 0; padding-left: 1.2rem; }
.edhd-app .edhd-list li { margin: .3rem 0; }

/* แจ้งเตือน */
.edhd-app .edhd-alert { border-radius: 10px; padding: .8rem 1rem; margin: 0 0 1rem; border: 1px solid; }
.edhd-app .edhd-alert ul { margin: .3rem 0 0 1.2rem; padding: 0; }
.edhd-app .edhd-alert-ok { background: #e8f6ef; border-color: #a6d8bd; color: var(--edhd-ok); }
.edhd-app .edhd-alert-bad { background: #fdeceb; border-color: #f0b3ae; color: var(--edhd-bad); }
.edhd-app .edhd-alert-bad a { color: var(--edhd-bad); }
.edhd-app .edhd-alert-warn { background: var(--edhd-gold-l); border-color: #ead48a; color: #6b4d00; }
.edhd-app .edhd-alert-info { background: var(--edhd-sky-l); border-color: #b5dcf2; color: var(--edhd-navy); }

/* ป้าย */
.edhd-app .edhd-act-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .4rem; }
.edhd-app .edhd-badge { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #eef1f6; color: var(--edhd-muted); white-space: nowrap; }
.edhd-app .edhd-badge-ok { background: #e3f4ea; color: var(--edhd-ok); }
.edhd-app .edhd-badge-warn { background: var(--edhd-gold-l); color: #7a5600; }
.edhd-app .edhd-badge-bad { background: #fdeceb; color: var(--edhd-bad); }
.edhd-app .edhd-badge-navy { background: var(--edhd-navy); color: #fff; }
.edhd-app .edhd-badge-sky { background: var(--edhd-sky-l); color: var(--edhd-blue); }

/* ตัวกรอง */
.edhd-app .edhd-filters { display: flex; flex-wrap: wrap; gap: .7rem; align-items: flex-end; }
.edhd-app .edhd-filters label { display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; color: var(--edhd-muted); min-width: 150px; flex: 1 1 150px; }
.edhd-app .edhd-filters .edhd-f-grow { flex: 3 1 260px; }
.edhd-app .edhd-filters .edhd-check { flex-direction: row; align-items: center; min-width: 0; flex: 0 1 auto; min-height: 44px; }
.edhd-app .edhd-f-actions { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ฟอร์ม */
.edhd-app input[type=text], .edhd-app input[type=url], .edhd-app input[type=search], .edhd-app input[type=date], .edhd-app input[type=time], .edhd-app input[type=datetime-local], .edhd-app input[type=email], .edhd-app input[type=password], .edhd-app select, .edhd-app textarea {
	width: 100%; min-height: 46px; padding: .55rem .7rem; border: 1px solid #b9c5d8; border-radius: 10px; background: #fff; color: var(--edhd-ink); font: inherit; font-size: 16px; box-shadow: none; margin: 0;
}
.edhd-app textarea { min-height: 96px; resize: vertical; }
.edhd-app .edhd-form { margin: 0; }
.edhd-app .edhd-section { background: #fff; border: 1px solid var(--edhd-line); border-radius: var(--edhd-r); padding: 1rem 1.1rem .4rem; margin: 0 0 1rem; min-width: 0; }
.edhd-app .edhd-section legend { font-weight: 700; color: var(--edhd-navy); font-size: 1.08rem; padding: 0 .4rem; display: flex; align-items: center; gap: .5rem; }
.edhd-app .edhd-step { width: 30px; height: 30px; border-radius: 50%; background: var(--edhd-gold); color: var(--edhd-navy); display: inline-grid; place-items: center; font-weight: 800; }
.edhd-app .edhd-field { margin: 0 0 1rem; }
.edhd-app .edhd-field > label, .edhd-app .edhd-label { display: block; font-weight: 600; margin: 0 0 .3rem; color: var(--edhd-ink); }
.edhd-app .edhd-field em { color: var(--edhd-bad); font-style: normal; }
.edhd-app .edhd-field.has-error input, .edhd-app .edhd-field.has-error select, .edhd-app .edhd-field.has-error textarea { border-color: var(--edhd-bad); background: #fffafa; }
.edhd-app .edhd-field-error { color: var(--edhd-bad); font-size: .92rem; margin: .3rem 0 0; font-weight: 600; }
.edhd-app .edhd-help { color: var(--edhd-muted); font-size: .88rem; margin: .25rem 0 0; }
.edhd-app .edhd-grid2, .edhd-app .edhd-grid4 { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
.edhd-app .edhd-radios { display: flex; flex-wrap: wrap; gap: .5rem; }
.edhd-app .edhd-radio, .edhd-app .edhd-check { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border: 1px solid var(--edhd-line); border-radius: 10px; background: #fff; cursor: pointer; min-height: 44px; font-weight: 500; }
.edhd-app .edhd-check-lg { display: flex; flex-wrap: wrap; margin: 0 0 1rem; }
.edhd-app .edhd-radio input, .edhd-app .edhd-check input, .edhd-app .edhd-day input { width: 20px; height: 20px; margin: 0; accent-color: var(--edhd-blue); }
.edhd-app .edhd-days { display: flex; flex-wrap: wrap; gap: .4rem; }
.edhd-app .edhd-day { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border: 1px solid var(--edhd-line); border-radius: 10px; min-height: 44px; cursor: pointer; background: #fff; }
.edhd-app .edhd-daypick { width: 100%; }
.edhd-app .edhd-repeat-row { display: flex; gap: .5rem; margin: 0 0 .5rem; align-items: center; }
.edhd-app .edhd-link-row input[type=text] { flex: 1 1 40%; }
.edhd-app .edhd-link-row input[type=url] { flex: 1 1 60%; }
.edhd-app .edhd-similar { background: var(--edhd-gold-l); border: 1px solid #ead48a; border-radius: 10px; padding: .8rem 1rem; margin: -.3rem 0 1rem; }
.edhd-app .edhd-similar ul { margin: .3rem 0 0 1.1rem; padding: 0; }
.edhd-app .edhd-similar li { margin: .35rem 0; }
.edhd-app .edhd-submitbar { position: sticky; bottom: 0; display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; padding: .8rem; background: rgba(245, 248, 252, .96); border-top: 1px solid var(--edhd-line); margin: 0 -1rem; z-index: 5; }
.edhd-app .edhd-submitbar .edhd-btn { flex: 1 1 200px; max-width: 360px; }

.edhd-app .edhd-photo { border: 2px dashed #b9c5d8; border-radius: var(--edhd-r); padding: .8rem; background: #fafcff; }
.edhd-app .edhd-photo-preview { display: grid; place-items: center; min-height: 160px; background: #eef3f9; border-radius: 10px; margin: 0 0 .7rem; overflow: hidden; }
.edhd-app .edhd-photo-preview img { max-height: 340px; width: auto; object-fit: contain; }
.edhd-app .edhd-photo-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.edhd-app .edhd-photo-actions .edhd-btn { flex: 1 1 160px; }
.edhd-app .edhd-photo-status { font-weight: 600; color: var(--edhd-navy); margin: .4rem 0 0; }
.edhd-app .edhd-only-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .edhd-app .edhd-only-touch { display: inline-flex; } }
.edhd-app .edhd-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* รายการกิจกรรม */
.edhd-app .edhd-titlebar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin: 0 0 .8rem; }
.edhd-app .edhd-titlebar h2, .edhd-app .edhd-titlebar h3 { margin: 0; }
.edhd-app .edhd-titlebar-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.edhd-app .edhd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: .8rem; }
.edhd-app .edhd-act-card { background: #fff; border: 1px solid var(--edhd-line); border-left: 5px solid var(--edhd-sky); border-radius: var(--edhd-r); padding: 1rem; display: flex; flex-direction: column; }
.edhd-app .edhd-act-card h3 { font-size: 1.08rem; margin: .2rem 0 .5rem; }
.edhd-app .edhd-act-card h3 a { color: var(--edhd-navy); text-decoration: none; }
.edhd-app .edhd-meta { margin: 0 0 .8rem; font-size: .93rem; }
.edhd-app .edhd-meta div { display: flex; gap: .5rem; }
.edhd-app .edhd-meta dt { color: var(--edhd-muted); min-width: 70px; margin: 0; font-weight: 400; }
.edhd-app .edhd-meta dd { margin: 0; }
.edhd-app .edhd-act-foot { margin-top: auto; display: flex; gap: .4rem; flex-wrap: wrap; }
.edhd-app .edhd-act-foot .edhd-btn { flex: 1 1 auto; }
.edhd-app .edhd-pager { display: flex; gap: .3rem; flex-wrap: wrap; margin: 1rem 0; }
.edhd-app .edhd-pager a { min-width: 44px; min-height: 44px; display: grid; place-items: center; border: 1px solid var(--edhd-line); border-radius: 8px; background: #fff; text-decoration: none; }
.edhd-app .edhd-pager a.is-active { background: var(--edhd-navy); color: #fff; }

.edhd-app .edhd-dl { margin: 0 0 1rem; display: grid; gap: .5rem; }
.edhd-app .edhd-dl > div { display: grid; grid-template-columns: 1fr; gap: .1rem; padding: .35rem 0; border-bottom: 1px solid #eef1f6; }
.edhd-app .edhd-dl dt { color: var(--edhd-muted); font-weight: 600; margin: 0; }
.edhd-app .edhd-dl dd { margin: 0; white-space: normal; word-break: break-word; }
.edhd-app .edhd-dl-compact > div { padding: .2rem 0; }
.edhd-app .edhd-cta { margin: 1rem 0 0; padding: 1rem; background: var(--edhd-sky-l); border-radius: 10px; }
.edhd-app .edhd-inline-forms { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.edhd-app .edhd-inline-forms form { margin: 0; }
.edhd-app .edhd-act-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 .2rem; }
.edhd-app .edhd-links { margin: 0; padding-left: 1.1rem; }

.edhd-app .edhd-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .7rem; }
.edhd-app .edhd-person { display: flex; flex-direction: column; gap: .2rem; text-decoration: none; color: var(--edhd-ink); border: 1px solid var(--edhd-line); border-radius: 10px; padding: .5rem; background: #fff; }
.edhd-app .edhd-person img, .edhd-app .edhd-hist-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #eef3f9; }
.edhd-app .edhd-noimg { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #eef3f9; border-radius: 8px; color: var(--edhd-muted); font-size: .85rem; width: 100%; }
.edhd-app .edhd-person-name { font-weight: 700; font-size: .95rem; }

.edhd-app .edhd-history { display: grid; gap: .7rem; }
.edhd-app .edhd-hist-item { display: grid; grid-template-columns: 110px 1fr; gap: .8rem; background: #fff; border: 1px solid var(--edhd-line); border-radius: var(--edhd-r); padding: .7rem; align-items: start; }
.edhd-app .edhd-hist-item h3 { margin: 0 0 .2rem; font-size: 1.02rem; }
.edhd-app .edhd-hist-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.edhd-app .edhd-part-view { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.edhd-app .edhd-part-photo img { border-radius: 10px; width: 100%; max-height: 460px; object-fit: contain; background: #eef3f9; }

/* แท็บรายงาน */
.edhd-app .edhd-tabs { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .8rem; border-bottom: 2px solid var(--edhd-line); }
.edhd-app .edhd-tabs a { padding: .6rem 1rem; text-decoration: none; color: var(--edhd-navy); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; min-height: 44px; display: inline-flex; align-items: center; }
.edhd-app .edhd-tabs a.is-active { border-color: var(--edhd-gold); }
.edhd-app .edhd-export-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 1rem; }

/* รายงาน */
.edhd-app .edhd-rep-head { text-align: center; margin: 0 0 1rem; }
.edhd-app .edhd-rep-org { font-weight: 700; color: var(--edhd-navy); }
.edhd-app .edhd-rep-title { margin: .2rem 0; }
.edhd-app .edhd-rep-sys { color: var(--edhd-muted); font-size: .9rem; }
.edhd-app .edhd-rep-filters { list-style: none; padding: 0; margin: .5rem 0 0; font-size: .9rem; color: var(--edhd-muted); }
.edhd-app .edhd-rep-info { border-collapse: collapse; margin: 0 0 1rem; }
.edhd-app .edhd-rep-info th { text-align: left; padding: .2rem 1rem .2rem 0; color: var(--edhd-muted); font-weight: 600; vertical-align: top; }
.edhd-app .edhd-rep-info td { padding: .2rem 0; }
.edhd-app .edhd-rep-h { margin-top: 1.2rem; }
.edhd-app .edhd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.edhd-app .edhd-table { width: 100%; border-collapse: collapse; font-size: .93rem; background: #fff; margin: 0; }
.edhd-app .edhd-table th { background: var(--edhd-navy); color: #fff; padding: .5rem; text-align: left; font-weight: 600; border: 1px solid var(--edhd-navy); }
.edhd-app .edhd-table td { padding: .5rem; border: 1px solid var(--edhd-line); vertical-align: top; }
.edhd-app .edhd-table tbody tr:nth-child(even) td { background: #f8fafd; }
.edhd-app .edhd-rep-photo { width: 140px; max-width: 100%; border-radius: 6px; display: block; margin: 0 0 .3rem; }
.edhd-app .edhd-rep-def { margin: 1.2rem 0 0; padding: .8rem 1rem; background: var(--edhd-gold-l); border-radius: 10px; font-size: .9rem; }
.edhd-app .edhd-rep-def ul { margin: .3rem 0 0 1.1rem; padding: 0; }

.edhd-app .edhd-guest-list { padding-left: 1.2rem; }

@media (min-width: 720px) {
	.edhd-app .edhd-main { padding: 1.4rem; }
	.edhd-app .edhd-grid2 { grid-template-columns: 1fr 1fr; }
	.edhd-app .edhd-grid4 { grid-template-columns: 1.7fr 1.7fr 1fr 1fr; }
	.edhd-app .edhd-dl > div { grid-template-columns: 200px 1fr; }
	.edhd-app .edhd-part-view { grid-template-columns: minmax(240px, 2fr) 3fr; }
	.edhd-app .edhd-hist-item { grid-template-columns: 150px 1fr; }
	.edhd-app .edhd-submitbar { margin: 0; border-radius: 10px; }
}
@media (max-width: 719px) {
	.edhd-app { font-size: 16px; border-radius: 0; }
	.edhd-app .edhd-org { text-align: left; }
	.edhd-app .edhd-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; }
	.edhd-app .edhd-nav-item { white-space: nowrap; }
	.edhd-app .edhd-nav-user { display: none; }
	.edhd-app .edhd-actions-grid { grid-template-columns: 1fr 1fr; }
	.edhd-app .edhd-action { min-height: 110px; padding: .8rem; }
	.edhd-app .edhd-link-row { flex-wrap: wrap; }
	.edhd-app .edhd-link-row input { flex: 1 1 100% !important; }
	/* ตารางรายงานหลักแสดงเป็นการ์ดบนมือถือ */
	.edhd-app .edhd-table-main thead { display: none; }
	.edhd-app .edhd-table-main, .edhd-app .edhd-table-main tbody, .edhd-app .edhd-table-main tr, .edhd-app .edhd-table-main td { display: block; width: 100%; }
	.edhd-app .edhd-table-main tr { border: 1px solid var(--edhd-line); border-radius: 10px; margin: 0 0 .7rem; overflow: hidden; }
	.edhd-app .edhd-table-main td { border: 0; border-bottom: 1px solid #eef1f6; display: grid; grid-template-columns: 110px 1fr; gap: .5rem; }
	.edhd-app .edhd-table-main td::before { content: attr(data-label); font-weight: 600; color: var(--edhd-muted); }
}

.edhd-app .edhd-rep-logos { display: flex; justify-content: center; gap: 10px; margin-bottom: 6px; }
.edhd-app .edhd-rep-logos img { height: 54px; width: auto; }

/* หน้าเข้าสู่ระบบ */
.edhd-app .edhd-guest-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.edhd-app .edhd-login { border-top: 4px solid var(--edhd-gold); }
.edhd-app .edhd-pwd { display: flex; gap: .4rem; align-items: center; } .edhd-app .edhd-pwd input { flex: 1; }
.edhd-app .edhd-btn-block { width: 100%; }
.edhd-app .edhd-small { font-size: .85rem; }
@media (min-width: 820px) { .edhd-app .edhd-guest-grid { grid-template-columns: minmax(300px, 420px) 1fr; align-items: start; } }

/* แดชบอร์ด */
.edhd-app .edhd-kpis-dash { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.edhd-app .edhd-bar { display: inline-block; flex: 1 1 auto; min-width: 60px; height: 12px; background: #e4ebf4; border-radius: 999px; overflow: hidden; vertical-align: middle; }
.edhd-app .edhd-bar > span { display: block; height: 100%; background: var(--edhd-blue); border-radius: 999px; }
.edhd-app .edhd-bar-ok > span { background: #2e9a64; }
.edhd-app .edhd-bar-warn > span { background: var(--edhd-gold); }
.edhd-app .edhd-bar-bad > span { background: #d0574f; }
.edhd-app .edhd-barrow { display: flex; align-items: center; gap: .5rem; }
.edhd-app .edhd-barrow b { min-width: 2.6em; text-align: right; }
.edhd-app .edhd-notyet td { background: #fbfcfe !important; font-size: .88rem; color: var(--edhd-muted); }
.edhd-app .edhd-notyet summary { cursor: pointer; color: var(--edhd-blue); }
.edhd-app .edhd-dash-grid { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 900px) { .edhd-app .edhd-dash-grid { grid-template-columns: 1fr 1fr 1.3fr; } }
.edhd-app .edhd-hbar { display: grid; grid-template-columns: minmax(90px, 40%) 1fr auto; gap: .5rem; align-items: center; margin: .45rem 0; font-size: .92rem; }
.edhd-app .edhd-vbars { display: flex; align-items: flex-end; gap: .4rem; height: 180px; padding-top: 1.2rem; }
.edhd-app .edhd-vbar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: .8rem; }
.edhd-app .edhd-vbar span { width: 70%; max-width: 34px; background: linear-gradient(var(--edhd-sky), var(--edhd-blue)); border-radius: 6px 6px 0 0; min-height: 3px; }
.edhd-app .edhd-vbar em { font-style: normal; color: var(--edhd-muted); margin-top: .2rem; white-space: nowrap; }
@media (max-width: 719px) {
	.edhd-app .edhd-dash-table thead { display: none; }
	.edhd-app .edhd-dash-table, .edhd-app .edhd-dash-table tbody, .edhd-app .edhd-dash-table tr, .edhd-app .edhd-dash-table td { display: block; width: 100%; }
	.edhd-app .edhd-dash-table tr { border: 1px solid var(--edhd-line); border-radius: 10px; margin-bottom: .6rem; }
	.edhd-app .edhd-dash-table td { border: 0; }
}

/* วันที่/เวลาแบบไทย */
.edhd-app .edhd-dt { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.edhd-app .edhd-dt select { width: auto; min-width: 0; padding: .5rem 1.5rem .5rem .55rem; background-position: right .3rem center; }
.edhd-app .edhd-dt .edhd-dt-d { flex: 0 0 5em; }
.edhd-app .edhd-dt .edhd-dt-m { flex: 0 0 5.4em; }
.edhd-app .edhd-dt .edhd-dt-y { flex: 0 0 5.9em; }
.edhd-app .edhd-tm select { flex: 0 0 4.8em; }
.edhd-app .edhd-dt-unit { color: var(--edhd-muted); }
.edhd-app .edhd-dt-today { font-size: .85rem; }
.edhd-app .edhd-dtl { display: flex; flex-direction: column; gap: .4rem; }
.edhd-app .edhd-filters .edhd-dt { flex-wrap: nowrap; }
.edhd-app .edhd-filters .edhd-dt-today { display: none; }
.edhd-app .edhd-repeat-row .edhd-dt { flex: 1; }

.edhd-app .edhd-checkin-now { border-left: 5px solid var(--edhd-gold); }
.edhd-app .edhd-checkin-list { list-style: none; margin: 0; padding: 0; }
.edhd-app .edhd-checkin-list li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid #eef1f6; flex-wrap: wrap; }
.edhd-app .edhd-checkin-list li:last-child { border-bottom: 0; }
.edhd-app .edhd-checkin-title { font-weight: 700; color: var(--edhd-navy); text-decoration: none; font-size: 1.05rem; }
.edhd-app .edhd-evidence-note { margin: .2rem 0 1rem; }

/* แบบฟอร์มเช็คอินในหน้ารายละเอียดกิจกรรม */
.edhd-app .edhd-checkin-box { margin-top: 1rem; border: 2px solid var(--edhd-gold); border-radius: var(--edhd-r); padding: 1rem; background: #fffdf6; }
.edhd-app .edhd-checkin-h { color: var(--edhd-navy); font-size: 1.25rem; margin: 0 0 .3rem; }
.edhd-app details.edhd-checkin-box > summary { cursor: pointer; font-weight: 700; color: var(--edhd-blue); font-size: 1.05rem; }
.edhd-app details.edhd-checkin-box[open] > summary { margin-bottom: .8rem; }
.edhd-app .edhd-checkin-box .edhd-section { background: #fff; }

.edhd-app .edhd-filters label.edhd-f-date { flex: 1 1 280px; min-width: 280px; }
.edhd-app .edhd-filters .edhd-f-date .edhd-dt select { flex: 1 1 auto; }
.edhd-app .edhd-filters .edhd-f-date .edhd-dt .edhd-dt-m { flex: 1 1 5.6em; min-width: 5.6em; }

/* ค้นหาแบบรายการแนะนำ */
.edhd-app .edhd-ac-wrap { position: relative; }
.edhd-app .edhd-ac { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: .25rem 0 0; padding: .3rem; list-style: none; background: #fff; border: 1px solid #b9c5d8; border-radius: 10px; box-shadow: 0 10px 28px rgba(11, 46, 107, .18); max-height: 380px; overflow-y: auto; color: var(--edhd-ink); }
.edhd-app .edhd-ac li { display: grid; grid-template-columns: 1fr auto; gap: .1rem .6rem; padding: .55rem .7rem; border-radius: 8px; cursor: pointer; align-items: center; }
.edhd-app .edhd-ac li:hover, .edhd-app .edhd-ac li.is-active { background: var(--edhd-sky-l); }
.edhd-app .edhd-ac-t { font-weight: 700; color: var(--edhd-navy); grid-column: 1; }
.edhd-app .edhd-ac-m { font-size: .85rem; color: var(--edhd-muted); grid-column: 1; }
.edhd-app .edhd-ac li .edhd-badge { grid-column: 2; grid-row: 1 / span 2; }
.edhd-app .edhd-ac-empty { color: var(--edhd-muted); cursor: default !important; display: block !important; }
.edhd-app .edhd-badge-gold { background: var(--edhd-gold); color: var(--edhd-navy); }
.edhd-app .edhd-steps-guide { background: var(--edhd-gold-l); border: 1px solid #ead48a; border-radius: 10px; padding: .8rem 1rem; margin: 0 0 1rem; line-height: 1.8; }
.edhd-app .edhd-steps-guide span { display: inline-block; margin-right: .8rem; }
.edhd-app .edhd-count { display: inline-grid; place-items: center; min-width: 1.8em; height: 1.8em; padding: 0 .4em; border-radius: 999px; background: var(--edhd-gold); color: var(--edhd-navy); font-size: .85rem; vertical-align: middle; }
.edhd-app .edhd-filters .edhd-ac-wrap { flex: 1 1 100%; }
.edhd-app .edhd-filters .edhd-ac-wrap input { font-size: 18px; min-height: 52px; border-width: 2px; border-color: var(--edhd-blue); }

.edhd-app details.edhd-preview > summary { font-size: 1.1rem; padding: .3rem 0; }
.edhd-app .edhd-preview-form button[disabled] { opacity: .55; cursor: not-allowed; }

/* ขอสิทธิ์เข้าใช้งาน */
.edhd-app .edhd-request-cta { margin-top: 1rem; padding: .9rem; border-radius: 10px; background: var(--edhd-gold-l); border: 1px solid #ead48a; }
.edhd-app .edhd-request-cta p { margin: .2rem 0 .6rem; font-size: .92rem; }
.edhd-app .edhd-request { max-width: 760px; margin-left: auto; margin-right: auto; border-top: 4px solid var(--edhd-gold); }
.edhd-app .edhd-req-steps { margin: 0 0 1rem 1.2rem; padding: 0; color: var(--edhd-muted); }
.edhd-app .edhd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ชื่อระบบ KruCare – EDHD CHECK-IN */
.edhd-app .edhd-name-accent { color: var(--edhd-gold); }
.edhd-app .edhd-hero .edhd-name-accent { color: #ffd54a; }
.edhd-app .edhd-login-brand { text-align: center; margin: 0 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--edhd-line); }
.edhd-app .edhd-login-logos { display: flex; justify-content: center; align-items: center; gap: .9rem; margin-bottom: .6rem; }
.edhd-app .edhd-login-logos img { height: 64px; width: auto; }
.edhd-app .edhd-login-logos span { width: 1px; height: 52px; background: var(--edhd-line); }
.edhd-app .edhd-login-name { font-size: 1.35rem; font-weight: 800; color: var(--edhd-navy); line-height: 1.3; }

/* ช่องพิมพ์ชื่อแล้วคลิกเลือก */
.edhd-app .edhd-combo { position: relative; }
.edhd-app .edhd-combo input[type=text] { padding-right: 2.4rem; }
.edhd-app .edhd-combo.has-value input[type=text] { background: #f1f8ff; border-color: var(--edhd-blue); font-weight: 600; color: var(--edhd-navy); }
.edhd-app .edhd-combo-clear { position: absolute; right: .35rem; top: 23px; transform: translateY(-50%); border: 0; background: transparent; color: var(--edhd-muted); font-size: 1rem; width: 2rem; height: 2rem; cursor: pointer; border-radius: 50%; }
.edhd-app .edhd-combo-clear:hover { background: #eef1f6; }
.edhd-app .edhd-combo-list li { grid-template-columns: 1fr; }
.edhd-app .edhd-combo-other { border-top: 1px dashed var(--edhd-line); }
.edhd-app .edhd-opt { font-weight: 400; color: var(--edhd-muted); }
.edhd-app .edhd-filters .edhd-combo { min-width: 240px; }

.edhd-app .edhd-admin-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; padding: .8rem 1rem; margin: 0 0 1rem; border: 1px dashed var(--edhd-blue); border-radius: 10px; background: #fff; }
.edhd-app .edhd-admin-links { display: flex; flex-wrap: wrap; gap: .4rem; }

.edhd-app .edhd-combo-list li.is-blocked .edhd-ac-t { color: var(--edhd-muted); }
.edhd-app .edhd-combo-msg { margin: .4rem 0 0; padding: .55rem .75rem; border-radius: 8px; background: var(--edhd-gold-l); border: 1px solid #ead48a; color: #6b4d00; font-weight: 600; font-size: .92rem; }
