/* หน้าแรกเมนูพนักงานแบบใหม่ (12/10/2569 เจ้าของออกแบบ): พื้นสว่าง · ปุ่มกลมแดง · บริการ 3 กลุ่ม · แถบล่าง — ใช้เฉพาะ body.ess-v2 · หน้าเข้าสู่ระบบ (มืด) ไม่เปลี่ยน */
.ess-v2{--ess-red:#c8161d;--ess-red-2:#a30f16;--ess-ink:#1c1c1f;--ess-muted:#6b6b72;--ess-line:#ece6e7;--ess-pink:#fdeef0;--ess-pink-line:#f5d4d8;--ess-wine:#8e1b22}
body.ess-v2.ess-home-on{min-height:100vh;background:#f7f5f6 radial-gradient(120% 520px at 0% 0%,#fde3e7 0%,rgba(253,227,231,0) 60%) no-repeat;color:var(--ess-ink);font-family:Prompt,Sarabun,"Leelawadee UI",Tahoma,sans-serif}
body.ess-v2.ess-home-on .employee-shell{padding:6px 16px 128px}
body.ess-v2.ess-lang-lo .ess-hero,body.ess-v2.ess-lang-lo #ess-home,body.ess-v2.ess-lang-lo .ess-tabbar,body.ess-v2.ess-lang-lo .ess-group,body.ess-v2.ess-lang-lo .ess-lang{font-family:"Noto Sans Lao","Leelawadee UI","Phetsarath OT",Prompt,sans-serif}
/* แถบบน: ตัวอักษร TD-HR สีแดง + สลับภาษา */
body.ess-v2.ess-home-on .appbar{position:static;background:transparent;border:0;color:var(--ess-red);padding:14px 20px 4px;max-width:580px;margin:0 auto;box-sizing:border-box}
body.ess-v2.ess-home-on .appbar .brand{gap:0}
body.ess-v2.ess-home-on .appbar .brand-mark,body.ess-v2.ess-home-on .appbar .brand small,body.ess-v2.ess-home-on #logout{display:none}
body.ess-v2.ess-home-on .appbar .brand strong{color:var(--ess-red);font-size:30px;font-weight:800;letter-spacing:-.02em;line-height:1}
/* 🔔 ข้างปุ่มภาษา (12/10/2569) */
body.ess-v2.ess-home-on .appbar{gap:10px}
.ess-bell{position:relative;display:grid;place-items:center;flex:0 0 auto;width:46px;height:46px;margin-left:auto;padding:0;border:1px solid var(--ess-line);border-radius:50%;background:#fff;color:#4a4a50;box-shadow:0 2px 10px rgba(30,0,4,.06);cursor:pointer}
.ess-bell[hidden]{display:none}
.ess-bell svg{width:24px;height:24px}
.ess-bell.has{color:var(--ess-red)}
.ess-bell-count{position:absolute;top:-4px;right:-4px;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--ess-red);color:#fff;font-size:12px;font-weight:700;line-height:22px;text-align:center;box-shadow:0 0 0 2px #fff}
.ess-bell-count[hidden]{display:none}
.ess-v2 .ess-notices>h2{display:none}
.ess-notices-empty{margin:8px 0;padding:28px 16px;border:1px dashed var(--ess-line);border-radius:16px;background:#fff;color:var(--ess-muted);text-align:center;font-size:16px}
.ess-notices-empty[hidden]{display:none}
.ess-lang{display:inline-flex;padding:4px;border:1px solid var(--ess-line);border-radius:999px;background:#fff;box-shadow:0 2px 10px rgba(30,0,4,.06)}
.ess-lang[hidden]{display:none}
.ess-lang button{min-width:58px;min-height:34px;padding:4px 14px;border:0;border-radius:999px;background:transparent;color:#4a4a50;font:inherit;font-size:15px;font-weight:500;cursor:pointer}
.ess-lang button[aria-pressed="true"]{background:linear-gradient(135deg,var(--ess-red),var(--ess-red-2));color:#fff;box-shadow:0 4px 10px rgba(200,22,29,.28)}
/* ส่วนหัว: รูป · วันที่ · สวัสดี · บริษัท */
.ess-v2 .ess-hero{background:transparent;color:var(--ess-ink);padding:6px 0 0;margin:0 0 16px;border-radius:0}
.ess-hero-top{display:flex;align-items:center;gap:18px}
.ess-avatar{position:relative;flex:0 0 auto;display:grid;place-items:center;width:98px;height:98px;border-radius:50%;background:linear-gradient(135deg,var(--ess-red),var(--ess-red-2));border:5px solid #fff;box-shadow:0 10px 24px rgba(60,0,8,.16);overflow:hidden;color:#fff;font-size:38px;font-weight:700}
.ess-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ess-avatar img[hidden]{display:none}
.ess-avatar.has-photo span{visibility:hidden}
.ess-hello{min-width:0}
.ess-v2 .ess-hero .ess-date{margin:0 0 4px;color:#4c4c52;font-size:16px}
.ess-v2 .ess-hero h1{margin:0;font-size:clamp(24px,7vw,32px);line-height:1.18;font-weight:700;color:var(--ess-ink);overflow-wrap:anywhere}
.ess-v2 .ess-hero .ess-company{margin:6px 0 0;color:var(--ess-muted);font-size:15px}
/* การ์ดกะวันนี้ */
.ess-today{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;margin-top:14px;padding:11px 2px;border:1px solid var(--ess-line);border-radius:18px;background:#fff;box-shadow:0 6px 18px rgba(40,0,6,.05)}
.ess-today>div{display:flex;align-items:center;gap:8px;min-width:0;padding:2px 10px}
.ess-today>div+div{border-left:1px solid var(--ess-line)}
.ess-today>div[hidden]{display:none}
.ess-today svg{flex:0 0 auto;width:26px;height:26px;color:var(--ess-red)}
.ess-today-hours svg{width:21px;height:21px;color:#555}
.ess-today small{display:block;color:var(--ess-muted);font-size:11.5px;line-height:1.2}
.ess-today b{display:block;font-size:17px;font-weight:600;color:var(--ess-ink);white-space:nowrap}
.ess-today-hours b{font-size:13.5px;font-weight:500}
.ess-today-link span{font-size:12px;color:#147a3d;line-height:1.3}
.ess-today-link .ess-nowrap{white-space:nowrap;font-size:inherit;color:inherit}
.ess-today-link i{flex:0 0 auto;width:10px;height:10px;border-radius:50%;background:#1aa251}
.ess-today-link[data-state="wait"] i{background:#d29b13}.ess-today-link[data-state="wait"] span{color:#8a6400}
.ess-today-link[data-state="bad"] i{background:#d1232a}.ess-today-link[data-state="bad"] span{color:#a3141b}
.ess-v2 #message.ess-msg-quiet{display:none}
/* เมนูทางลัด · บริการพนักงาน */
.ess-v2 #app .menu-grid{display:none}
.ess-home h2{margin:18px 2px 12px;font-size:22px;font-weight:700;color:var(--ess-ink)}
.ess-shortcuts,.ess-services{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px}
/* ปุ่มเริ่มจากบน (timecore.css จัดเนื้อในปุ่มไว้กลาง): วงกลมตรงแถวเดียวกันแม้ชื่อบรรทัดเดียว / สองบรรทัด (12/10/2569) */
.ess-shortcuts button,.ess-services button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;min-height:0;padding:0;border:0;background:transparent;color:var(--ess-ink);font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ess-shortcuts button[hidden],.ess-services button[hidden]{display:none}
.ess-shortcuts .ess-round{display:grid;place-items:center;width:clamp(66px,19.5vw,84px);aspect-ratio:1;border-radius:50%;background:radial-gradient(120% 120% at 30% 20%,#e0383d 0%,var(--ess-red) 45%,var(--ess-red-2) 100%);color:#fff;box-shadow:0 10px 20px rgba(170,16,24,.28),inset 0 -3px 6px rgba(0,0,0,.12)}
.ess-shortcuts svg{width:44%;height:44%}
.ess-shortcuts .ess-label,.ess-services .ess-label{font-size:15px;font-weight:500;line-height:1.25;text-align:center}
.ess-services .ess-label{white-space:pre-line}
.ess-services .ess-round{display:grid;place-items:center;width:clamp(66px,19.5vw,84px);aspect-ratio:1;border-radius:50%;background:radial-gradient(120% 120% at 30% 20%,#fff 0%,var(--ess-pink) 70%);border:1px solid var(--ess-pink-line);color:var(--ess-wine);box-shadow:0 6px 14px rgba(120,10,20,.08)}
.ess-services svg{width:46%;height:46%}
.ess-shortcuts button:active .ess-round,.ess-services button:active .ess-round{transform:scale(.96)}
.ess-shortcuts button:focus-visible .ess-round,.ess-services button:focus-visible .ess-round,.ess-tabbar button:focus-visible{outline:3px solid #f2a6ab;outline-offset:3px}
.ess-badge{position:absolute;top:0;right:calc(50% - 50px);min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:var(--ess-red);color:#fff;font-size:13px;font-weight:700;line-height:24px;box-shadow:0 0 0 3px #f7f5f6}
.ess-badge[hidden]{display:none}
/* หน้าในกลุ่ม */
.ess-v2 .ess-group>h2{display:none}
.ess-group-list{display:grid;gap:10px;margin-top:6px}
.ess-item{position:relative;display:flex;align-items:center;gap:14px;width:100%;min-height:62px;padding:10px 14px;border:1px solid var(--ess-line);border-radius:16px;background:#fff;color:var(--ess-ink);font:inherit;font-size:17px;font-weight:500;text-align:left;cursor:pointer}
.ess-item-icon{display:grid;place-items:center;flex:0 0 auto;width:42px;height:42px;border-radius:50%;background:var(--ess-pink);color:var(--ess-wine)}
.ess-item-icon svg{width:22px;height:22px}
.ess-item-label{flex:1;min-width:0}
.ess-item-badge{min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:var(--ess-red);color:#fff;font-size:13px;line-height:24px;text-align:center}
.ess-item-logout{color:var(--ess-red)}
.ess-item-logout .ess-item-icon{background:#fff0f1;color:var(--ess-red)}
.ess-profile-logout{display:block;width:100%;margin:18px 0 0;min-height:52px;border:1px solid #f0c6ca;border-radius:14px;background:#fff6f7;color:var(--ess-red);font:inherit;font-size:16px;font-weight:600;cursor:pointer}
/* แถบล่าง 5 ปุ่ม · ปุ่มกลาง ลงเวลาสำรอง */
.ess-tabbar{position:fixed;left:50%;bottom:max(10px,env(safe-area-inset-bottom));z-index:40;transform:translateX(-50%);display:flex;align-items:flex-end;justify-content:space-around;width:min(calc(100% - 20px),560px);box-sizing:border-box;padding:8px 6px 8px;border-radius:26px;background:#fff;border:1px solid var(--ess-line);box-shadow:0 10px 30px rgba(40,0,8,.14)}
.ess-tabbar[hidden]{display:none}
.ess-tabbar button{flex:1 1 0;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;min-height:58px;padding:4px 1px;border:0;background:transparent;color:#86868d;font:inherit;font-size:12px;font-weight:500;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ess-tabbar button[hidden]{display:none}
.ess-tabbar button svg{width:30px;height:30px}
.ess-tabbar button.on{color:var(--ess-red);font-weight:700}
.ess-tabbar .ess-tab-clock{position:relative;flex:1.35 1 0}
.ess-tabbar .ess-tab-clock .ess-fab{display:grid;place-items:center;width:64px;height:64px;margin-top:-34px;border-radius:50%;background:radial-gradient(120% 120% at 30% 20%,#e0383d 0%,var(--ess-red) 45%,var(--ess-red-2) 100%);color:#fff;box-shadow:0 10px 20px rgba(170,16,24,.32);border:4px solid #fff}
.ess-tabbar .ess-tab-clock .ess-fab svg{width:30px;height:30px}
.ess-tabbar .ess-tab-clock span:last-child{color:#5d5d63}
.ess-tabbar span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
/* หน้าย่อยเดิม: แถบกลับ + การ์ดบนพื้นสว่าง */
/* 19/10/2569 แถบ "‹ กลับเมนู" ลอยติดบนตอนเลื่อน → พื้นฝ้าเต็มความกว้าง ตัวหนังสือด้านล่างไม่ทะลุ (เดิม background:transparent) */
body.ess-v2.ess-home-on .ess-screen-bar{margin:0 -16px 12px;padding:10px 18px;background:rgba(247,245,246,.94);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 1px 0 rgba(40,20,30,.07)}
body.ess-v2.ess-home-on .ess-screen-bar button{border-radius:999px;border-color:var(--ess-line);color:var(--ess-red)}
body.ess-v2.ess-home-on footer{padding-bottom:110px}
@media(max-width:400px){.ess-avatar{width:90px;height:90px;font-size:30px}.ess-today>div{padding:2px 6px;gap:6px}.ess-today svg{width:22px;height:22px}.ess-today b{font-size:15px}.ess-today-hours svg{width:17px;height:17px}.ess-today-hours b{font-size:12px}.ess-today-link i{width:8px;height:8px}.ess-today-link span{font-size:11px}.ess-shortcuts .ess-label,.ess-services .ess-label{font-size:14px}.ess-tabbar button{font-size:11px}}
@media(max-width:350px){.ess-today{grid-template-columns:auto minmax(0,1fr)}.ess-today-link{grid-column:1/-1;border-left:0 !important;border-top:1px solid var(--ess-line);margin-top:6px;padding-top:8px !important}}
@media(min-width:760px){body.ess-v2.ess-home-on .ess-tabbar{bottom:16px}}
