/* การ์ดรายงานประจำวัน (ใช้ทั้งหลังบ้าน หน้าเว็บเจ้าหน้าที่ และสรุปรายเดือน)
 * หัวรายงาน: โลโก้ + ชื่อรายงานด้านซ้าย / ชื่อ วันที่ เวลา ด้านขวา
 * หัวข้อหมวด: แถบมนกลางการ์ด • ตัวอักษรใหญ่ อ่านง่ายบนมือถือ
 */
.cnh-fr-card {
	width: 600px; box-sizing: border-box; background: #fff; color: #1f2937;
	font-family: "Sarabun", sans-serif; font-size: 19px; line-height: 1.45;
	border: 1px solid #d6dee8; box-shadow: 0 4px 18px rgba(15, 40, 80, .08);
}
.cnh-fr-card * { box-sizing: border-box; }

/* หัวรายงาน */
.cnh-fr-head { display: flex; align-items: center; gap: 18px; padding: 16px 20px 16px 26px; }
.cnh-fr-brand { flex: 0 0 auto; width: 196px; text-align: center; }
.cnh-fr-logo { display: block; width: 100%; height: 80px; object-fit: contain; margin: 0 auto 10px; background: none; border-radius: 0; padding: 0; }
.cnh-fr-title { font-size: 25px; font-weight: 700; color: #0b3d91; line-height: 1.25; }
.cnh-fr-info { flex: 1 1 auto; border-collapse: collapse; margin: 0; }
.cnh-fr-info th { width: 1%; white-space: nowrap; text-align: right; vertical-align: top; padding: 3px 16px 3px 0; color: #3b5b85; font-weight: 600; font-size: 20px; }
.cnh-fr-info td { padding: 3px 0; font-size: 21px; color: #0f172a; vertical-align: top; }
.cnh-fr-info td strong { font-weight: 700; }

/* หัวข้อหมวด (แถบมน) */
.cnh-fr-sec { text-align: center; padding: 12px 20px 4px; }
.cnh-fr-pill { display: inline-block; min-width: 60%; max-width: 100%; padding: 5px 24px; border-radius: 999px; font-weight: 700; color: #0b3d91; font-size: 19px; line-height: 1.4; }

/* แถวข้อมูล */
.cnh-fr-rows { width: 100%; border-collapse: collapse; margin: 4px 0 6px; }
.cnh-fr-rows th, .cnh-fr-rows td { padding: 8px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #e8edf3; }
.cnh-fr-rows tr:last-child th, .cnh-fr-rows tr:last-child td { border-bottom: 0; }
.cnh-fr-rows th { width: 53%; padding-left: 18px; font-weight: 400; color: #334155; }
.cnh-fr-rows td { font-weight: 700; color: #0f172a; }
.cnh-fr-rows.is-multi th { width: 40%; }
.cnh-fr-times td { font-weight: 700; color: #0b3d91; font-size: 17px; border-bottom: 2px solid #dbe6f3 !important; }

/* ผู้บันทึก + ท้ายรายงาน */
.cnh-fr-sign { display: flex; align-items: baseline; gap: 18px; background: #a6a6a6; color: #111; padding: 11px 24px; margin-top: 8px; font-size: 19px; }
.cnh-fr-sign span { min-width: 130px; }
.cnh-fr-sign strong { font-weight: 700; }
.cnh-fr-foot { text-align: center; font-size: 15px; color: #64748b; padding: 9px 12px 11px; }

/* สรุปรายเดือน */
.cnh-mr-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 16px; }
.cnh-mr-kpis div { text-align: center; background: #f5f8fc; border-radius: 10px; padding: 8px 4px; }
.cnh-mr-kpis span { display: block; color: #475569; font-size: 15px; }
.cnh-mr-kpis b { font-size: 18px; color: #0f172a; white-space: nowrap; }
.cnh-mr-chart { padding: 6px 18px 10px; }
.cnh-mr-chart-title { font-weight: 600; color: #334155; font-size: 17px; margin-bottom: 4px; }
.cnh-mr-chart-box { position: relative; height: 170px; }
.cnh-mr-chart-box canvas { display: block; }
/* สรุปรายเดือน: โลโก้สาขาวางบนแถบสีโดยตรง ไม่มีกรอบพื้นขาว */
.cnh-mr-card .cnh-fr-logo { background: none; padding: 0; border-radius: 0; height: 80px; }
