/* K-MIS Mascot — ตกแต่งด้วย K-MIS Boy / Bot (patch114) · ปิดการตกแต่งทั้งหมดได้ด้วย <html data-no-mascot> */
.km-m{display:block;pointer-events:none;-webkit-user-select:none;user-select:none;height:auto}
.km-empty-m{width:auto;height:96px;max-width:70%;margin:0 auto 6px;object-fit:contain}
.km-has-mascot>.km-m+b{display:none}
.km-swal-img.swal2-image{width:auto!important;height:auto!important;max-height:124px;max-width:60%;margin:14px auto 2px;object-fit:contain}
.km-login-m{width:auto;height:112px;margin:0 auto 8px;object-fit:contain}
.km-banner-m{position:absolute;right:14px;bottom:-2px;height:150px;width:auto;opacity:.17;z-index:0;object-fit:contain}
.exec-bento-main{position:relative;z-index:2}
@media(max-width:900px){.km-banner-m{height:110px;right:6px}}
@media(max-width:480px){.km-banner-m{display:none}.km-empty-m{height:80px}}
html[data-no-mascot] .km-m,html[data-no-mascot] .km-swal-img{display:none!important}
@media print{.km-m,.km-swal-img{display:none!important}}
/* แอป /app/ — จอเปิดและหน้าเข้าสู่ระบบ */
#boot img.km-boot-m{width:auto;height:150px;border-radius:0;background:none;padding:0;object-fit:contain}
.login .logo img.km-login-m{width:auto;height:80px;border-radius:0;background:none;padding:0;margin-bottom:6px;object-fit:contain}
.login .logo{width:auto;height:auto;background:none;border:0;border-radius:0;display:block;overflow:visible;padding:0}

/* v116: หัวข้อหน้า / แถบหัวแอป / แถบต้อนรับ */
.km-head-m{height:62px;width:auto;object-fit:contain;flex:none}
.km-head-c{margin:0 auto 6px;height:78px;width:auto}
.km-bar-m{height:46px;width:auto;flex:none;object-fit:contain;margin-left:auto;filter:drop-shadow(0 2px 4px rgba(0,0,0,.25))}
.app-header .km-bar-m{margin:0 12px 0 0;height:44px}
.km-welcome{display:flex!important;align-items:center;gap:14px;margin:0 0 14px;padding:6px 16px 6px 10px;background:linear-gradient(135deg,#fff 0%,#fdf8ec 100%);border:1px solid #ecdfbd;border-radius:20px;box-shadow:0 4px 14px rgba(0,0,0,.05)}
.km-welcome-img{height:104px;width:auto;flex:none;object-fit:contain;margin-top:-6px;margin-bottom:-2px}
.km-bubble{position:relative;flex:1;min-width:0;background:#fff;border:1px solid #e6e0d0;border-radius:16px;padding:10px 14px;font-size:14.5px;line-height:1.5;color:#334155;transition:opacity .22s}
.km-bubble::before{content:"";position:absolute;left:-7px;top:50%;width:12px;height:12px;background:#fff;border-left:1px solid #e6e0d0;border-bottom:1px solid #e6e0d0;transform:translateY(-50%) rotate(45deg)}
.km-bubble a{font-weight:700;text-decoration:underline}
.km-welcome-m{margin:10px 0 12px;background:#fff;border-color:#dbe3f0}
.km-welcome-m .km-welcome-img{height:84px}
@media(max-width:560px){.km-welcome-img{height:78px}.km-bubble{font-size:13.5px;padding:8px 11px}.km-head-m{height:48px}}
.exec-bento-banner>.km-banner-m{display:none}
.km-step-m{display:block;height:74px;width:auto;margin:-4px auto 6px;object-fit:contain}

/* ===== patch127: แท็บผู้ดูแลระบบเต็มความกว้างและเต็มความสูง ทุกขนาดหน้าจอ ===== */
body #page-admin-time > div[style*="max-width"],
body #page-admin-salorder > div[style*="max-width"],
body #page-admin-sal > div[style*="max-width"],
body #page-admin-shift > div[style*="max-width"],
body #page-admin-scan > div[style*="max-width"],
body #page-admin-time #payOrderBox,body #page-admin-salorder #payOrderBox{max-width:none!important;width:100%!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box}
body #page-admin-time .card[style*="max-width"],
body #page-admin-sal .card[style*="max-width"],
body #page-admin-sal .card,
body #page-admin-shift .card[style*="max-width"],
body #page-admin-shift .card,
body #page-admin-scan .card[style*="max-width"],
body #page-admin-scan .card,
body #page-admin-salorder .card[style*="max-width"]{max-width:none!important;width:100%!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box}
body #page-admin-line > .card,body #page-admin-devices > .card{width:100%!important;max-width:none!important;box-sizing:border-box}
body #kmisLineFrame{width:100%!important;height:calc(100vh - 250px)!important;height:calc(100dvh - 250px)!important;min-height:520px!important}
body #kmisDeviceFrame{width:100%!important;height:calc(100vh - 190px)!important;height:calc(100dvh - 190px)!important;min-height:520px!important}
@media(max-width:700px){body #kmisLineFrame,body #kmisDeviceFrame{min-height:480px!important;height:calc(100dvh - 210px)!important}}

/* ===== patch136: รูปโปรโมชันที่หน้าแรก /hrd/ ===== */
.hero .art img.promo{width:100%;max-width:440px;max-height:460px;object-fit:contain;background:transparent}
.hero .art a{display:block;max-width:100%}
@media(max-width:760px){.hero .art img.promo{max-width:340px;max-height:360px}}
