/* Broadsheet (HANDOFF ข้อ 4–5) · serif ทั้งหมด · มุม 2 px · ไม่มีกล่อง/เส้นแบ่งโครงหน้า */
:root {
  --bg: #f3f2f2; --chip: #eae9e9; --soft: #f8f4f4; --white: #fff;
  --ink: #201e1d; --ink2: #444141; --ink3: #605d5d; --ink4: #6b6767; --ink5: #8a8686;   /* ชุด E: contrast ≥ 4.5:1 บนพื้น #f3f2f2 (เดิม 3.9:1) */ --line: #bab6b6; --line2: #d7d3d3;
  --blue: #0088b0; --blueTxt: #006786; --bluePress: #004961; --blueSoft: #e9f8ff;
  --pink: #d6006c; --pinkTxt: #aa0b56; --pinkSoft: #fff1f4;
  --th: 'Noto Serif Thai', 'Source Serif 4', serif; --en: 'Source Serif 4', 'Noto Serif Thai', serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--th); font-size: 14px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { max-width: 480px; margin: 0 auto; min-height: 100vh; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 6px; padding: 10px 16px; background: var(--bg); }
.bar h1 { margin: 0; font-size: 15px; font-weight: 600; }
.back { background: none; border: 0; padding: 10px; margin-left: -10px; font-size: 20px; cursor: pointer; border-radius: 2px; display: flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.upd { font-size: 11px; color: var(--ink4); display: inline-flex; align-items: center; gap: 5px; }
.upd::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: pulse 1s ease-in-out infinite; }
.mock { font: 600 10px var(--en); letter-spacing: .1em; text-transform: uppercase; color: var(--pinkTxt); background: var(--pinkSoft); padding: 2px 6px; border-radius: 2px; }

main { padding: 4px 16px 40px; }
section { margin-top: 28px; }
.kicker { font: 600 11px var(--en); letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); margin: 0 0 10px; }
.kicker.th { font-family: var(--th); letter-spacing: .02em; text-transform: none; font-size: 12px; }
.muted { color: var(--ink4); font-size: 12px; }

/* หัว */
.head { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.avatar { width: 56px; height: 56px; border-radius: 20px; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 20px var(--en); flex: none; position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.head .name { font-size: 22px; font-weight: 600; line-height: 1.2; }
.head .name.full { font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.head .nick { font: 600 15px var(--en); color: var(--ink2); letter-spacing: .03em; margin-top: 1px; }
.head .pos { color: var(--ink2); font-family: var(--en); }
.head .id { font: 600 11px var(--en); letter-spacing: .1em; color: var(--ink4); margin-top: 2px; }

/* การ์ดตัวเลข */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--chip); border-radius: 2px; padding: 12px 10px; min-height: 92px; }
.stat .num { font: 600 24px var(--en); line-height: 1.1; }
.stat .lab { font-size: 11px; color: var(--ink3); margin-top: 6px; line-height: 1.35; }
.stat .sub { font-size: 10px; color: var(--ink4); }

/* หัวใจ */
.hearts { display: flex; gap: 24px; align-items: baseline; }
.hearts .big { font: 600 26px var(--en); }
.hearts .big i { color: var(--pink); font-size: 20px; vertical-align: -2px; margin-right: 4px; }

/* ปฏิทิน */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal .dow { font: 600 10px var(--th); color: var(--ink4); text-align: center; padding-bottom: 2px; }
.day { aspect-ratio: 1 / 1.1; background: var(--chip); border: 0; border-radius: 2px; padding: 3px 0 0; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.day .dn { font: 400 10px var(--en); color: var(--ink4); }
.day .sc { font: 600 14px var(--en); margin-top: 1px; }
.day.off { background: var(--soft); } .day.off .sc { color: var(--ink4); font: 600 11px var(--th); }
.day.leave .sc { color: var(--pinkTxt); font: 600 11px var(--th); }
.day.today { outline: 2px solid var(--ink); outline-offset: -2px; }
.day.blank { background: none; cursor: default; }
.legend { margin-top: 8px; }

/* รายการ */
.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: 10px 0; }
.quote { font-style: italic; font-size: 15px; color: var(--ink); }
.links li button { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 6px 0; text-align: left; cursor: pointer; font-size: 14px; }
.links i.ph-duotone { font-size: 20px; color: var(--ink2); }
.links .chev { margin-left: auto; color: var(--ink5); font-size: 16px; }

/* segment */
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.seg { display: inline-flex; gap: 4px; }
.seg button { background: var(--chip); color: var(--ink2); border: 0; border-radius: 2px; padding: 9px 12px; min-height: 40px; font-size: 13px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ปุ่ม */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 2px; padding: 10px 16px; min-height: 44px; font-weight: 600; font-size: 13px; cursor: pointer; border: 1px solid transparent; }   /* ชุด E: พื้นที่แตะ ≥ 44px */
.btn.primary { background: var(--blueTxt); color: #fff; } .btn.primary:hover { background: var(--blue); } .btn.primary:active { background: var(--bluePress); }
.btn.outline { background: none; border-color: var(--blue); color: var(--blueTxt); } .btn.outline:hover { background: var(--blueSoft); }
.btn.danger { background: none; border-color: var(--pink); color: var(--pinkTxt); padding: 6px 12px; min-height: 40px; font-size: 12px; } .btn.danger:hover { background: var(--pinkSoft); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn.block { width: 100%; }

/* ฟอร์ม */
label.f { display: block; margin-top: 16px; font-size: 12px; color: var(--ink3); }
label.f input { display: block; width: 100%; margin-top: 4px; font: 600 20px var(--en); letter-spacing: .12em; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 6px 0; border-radius: 0; color: var(--ink); }
label.f input:focus { border-bottom-color: var(--blue); } label.f input:focus:not(:focus-visible) { outline: none; }   /* ชุด E: คีย์บอร์ด/สวิตช์ยังเห็นกรอบโฟกัส */
.err { color: var(--pinkTxt); font-size: 13px; min-height: 20px; margin-top: 10px; }
details { margin-top: 10px; font-size: 13px; color: var(--ink3); } summary { cursor: pointer; color: var(--blueTxt); }

/* skeleton / สถานะ */
.sk { background: var(--chip); border-radius: 2px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.state { text-align: center; padding: 60px 16px; color: var(--ink3); }
.state i { font-size: 40px; color: var(--ink4); display: block; margin-bottom: 8px; }

/* toast + sheet */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; padding: 8px 14px; border-radius: 2px; max-width: 90%; z-index: 20; }
.sheet { position: fixed; inset: 0; background: rgba(32, 30, 29, .35); z-index: 15; display: flex; align-items: flex-end; justify-content: center; }
.sheet-body { background: var(--bg); width: 100%; max-width: 480px; padding: 18px 16px 28px; border-radius: 2px 2px 0 0; max-height: 75vh; overflow: auto; }
.pill { display: inline-block; font: 600 11px var(--en); background: var(--chip); padding: 1px 6px; border-radius: 2px; margin-left: 6px; }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* 6 ต.ค. ปรับหน้า ฉัน ตาม SIRIS · ธีม Claude Design (การ์ดแนะนำ): แดง #8B1A1A · ครีม #F7F1E8 · เขียว #1F3D33 · หมึก #1C2A24 */
:root { --red: #8B1A1A; --cream: #F7F1E8; --green: #1F3D33; --gInk: #1C2A24; }
.stats.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border-radius: 6px; padding: 14px 14px 12px; margin-top: 12px; }
section.card { margin-top: 16px; }
.ctitle { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--gInk); margin-bottom: 8px; }
.ctitle i { font-size: 18px; color: var(--green); }
.list.tight li { padding: 7px 0; }
.list.tight li + li { border-top: 1px solid var(--line2); }
.lrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.st { flex: none; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.st.wait { background: #FFF3D6; color: #7A5200; }
.st.ok { background: #DCEBE3; color: var(--green); }
.st.no { background: #F6DEDB; color: var(--red); }

/* การ์ดหัวใจ */
.heartcard { background: var(--cream); }
.hbig { text-align: center; padding: 6px 0 10px; }
.hbig i { font-size: 46px; color: var(--red); }
.hnum { font: 600 34px var(--en); line-height: 1.1; color: var(--gInk); }
.hradar { border-top: 1px solid #E6DCCB; padding: 10px 0 12px; text-align: center; }
.hradar .kicker { text-align: left; }
.hradar svg { width: 100%; max-width: 280px; display: block; margin: 0 auto; overflow: visible; }
.hradar .rg { fill: none; stroke: #E0D3BF; stroke-width: 1; }
.hradar .ra { fill: var(--red); fill-opacity: .22; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; }
.hradar .rd { fill: var(--red); }
.hradar .rl { font-size: 16px; }
.hradar .rt { font: 500 10.5px var(--th, inherit); fill: var(--gInk); }
.hstyle { display: inline-block; margin-top: 2px; padding: 4px 12px; border-radius: 999px; background: #fff; font-size: 13px; }
.hchips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 6px 0 10px; }
.hchip { padding: 4px 10px; border-radius: 999px; background: #fff; font-size: 12.5px; opacity: .55; }
.hchip.on { opacity: 1; box-shadow: inset 0 0 0 1px var(--red); }
.hchip b { font-family: var(--en); margin-left: 2px; }
.hprog { height: 8px; border-radius: 99px; background: #EADFCF; overflow: hidden; margin: 0 8px 6px; }
.hprog i { display: block; height: 100%; background: var(--red); border-radius: 99px; }
.hsum { border-top: 1px solid #E6DCCB; padding-top: 10px; }
/* งานของฉัน (หัวหน้าทีม) */
.taskbtn { position: relative; }
.tbadge.in { position: static; display: inline-block; margin-left: 8px; background: #fff; color: var(--red); padding: 1px 8px; border-radius: 99px; font-size: 12px; }
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats.four .num { font-size: 22px; }
.stats.four .lab { font-size: 11px; }
.stat.hot .num { color: var(--red); }
.tcard { margin-top: 10px; }
.tcard .ctitle .muted { font-weight: 400; }
.trow { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; }
.tline { margin: 6px 0 0; font-size: 13px; }
.tteam { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: #EFEBE5; }
.lvlist .lvrow { padding: 10px 0; border-bottom: 1px solid var(--line); }
.lvcard { background: var(--white); border: 1px solid var(--line2) !important; border-radius: 10px; padding: 12px !important; margin-bottom: 12px; }
.lvbal { font-size: 13px; margin-top: 2px; }
.lvlight { margin: 10px 0 6px; padding: 6px 10px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.lvlight.LG { background: #E3F0E8; color: var(--green); } .lvlight.LY { background: #FBF0CC; color: #5C4A12; } .lvlight.LR { background: #F6DCDC; color: var(--red); }
.lvday { border-left: 3px solid var(--line2); padding: 4px 0 6px 10px; margin: 8px 0; }
.lvdh { font-size: 13px; margin-bottom: 4px; }
.pps { display: flex; flex-wrap: wrap; gap: 4px; }
.pp { font-size: 11.5px; padding: 2px 7px; border-radius: 6px; background: #F1F0EF; }
.pp.req { background: #F6DCDC; color: var(--red); text-decoration: line-through; text-decoration-color: rgba(139,26,26,.5); }
.pp.away { background: var(--red); color: #fff; } .pp.off { background: #E8EDEA; color: var(--green); opacity: .8; }
.lvn { font-size: 12.5px; margin-top: 4px; }
.lvo { font-size: 12px; margin-top: 4px; color: var(--ink3); }
.lvchk { list-style: none; padding: 0; margin: 8px 0; font-size: 13px; }
.lvchk li { padding: 2px 0; } .lvchk .ok { color: var(--green); } .lvchk .no { color: var(--red); font-weight: 600; } .lvchk .warn { color: #8A6A10; }
.ack { display: flex; gap: 8px; align-items: center; margin: 8px 0; font-size: 14px; }
.ack input { width: 20px; height: 20px; }
.lvact .btn.danger { margin-top: 6px; }
.lvwhy { list-style: none; padding: 6px 8px; margin: 6px 0 0; background: #FBF1F1; border-radius: 6px; font-size: 12px; color: var(--red); }
.lvwhy li { padding: 1px 0; }
.lvprop { margin: 8px 0; padding: 8px 10px; background: #FFF8E1; border-radius: 8px; font-size: 13px; }
details.prop { margin-top: 10px; border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; }
details.prop summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.propf { margin-top: 8px; }
.propf .btn { margin-top: 6px; }
.lvact { margin-top: 8px; }
.rgrid { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.rgrid table { border-collapse: separate; border-spacing: 0; font-size: 11px; }
.rgrid th, .rgrid td { min-width: 26px; height: 26px; text-align: center; padding: 0 2px; border-bottom: 1px solid #F0ECE6; }
.rgrid th { font-weight: 600; background: #FAF8F5; line-height: 1.1; }
.rgrid th span { display: block; font-weight: 400; opacity: .6; font-size: 9px; }
.rgrid th.we { color: var(--red); }
.rgrid .nm { position: sticky; left: 0; z-index: 1; min-width: 64px; max-width: 64px; text-align: left; padding-left: 6px; background: var(--white); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: 1px 0 0 var(--line); }
.rgrid thead .nm { background: #FAF8F5; }
.rgrid .tsep td { height: 20px; background: #F4F1EC; font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.rgrid .tsep .nm { background: #F4F1EC; }
.rgrid td.off { background: var(--green); color: #fff; }
.rgrid td.leave { background: var(--red); color: #fff; }
.rgrid td.hol { background: #e8b23a; color: #201e1d; font-weight: 600; }   /* 1 พ.ย. SIRIS: นข (วันหยุดตามประเพณี) สีทอง แยกจาก ห เขียว */
.rgrid td.other { background: #EEE; }
.rgrid .td { outline: 2px solid var(--ink); outline-offset: -2px; }
/* ส่งหัวใจ */
.ktag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #fff; margin-bottom: 2px; }
.kpick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.kpick button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px 6px; border: 1px solid #E3DED6; border-radius: 10px; background: #fff; font: inherit; color: inherit; cursor: pointer; min-width: 0; }
.kpick button[hidden] { display: none; }
.kpick button[aria-pressed="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); background: #FBF3F1; }
.kav { position: relative; overflow: hidden; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font: 600 12px var(--en); }
.kav img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kpick button[aria-pressed="true"] .kav { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--red); }
.kpick button[aria-pressed="true"] .kav { background: var(--red); }
.kn { font-weight: 600; font-size: 12.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kstep { display: inline-flex; align-items: center; gap: 16px; margin-top: 4px; }
.kstep button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--red); background: #fff; color: var(--red); font: 600 22px/1 var(--en); cursor: pointer; }
.kstep button:disabled { opacity: .3; cursor: default; }
.kstep span { min-width: 56px; text-align: center; font-size: 18px; }
.kstep b { font: 600 24px var(--en); color: var(--gInk); }
.ktopics { display: flex; flex-wrap: wrap; gap: 8px; }
.ktopics button { padding: 8px 12px; border: 1px solid #E3DED6; border-radius: 999px; background: #fff; font: inherit; font-size: 14px; color: inherit; cursor: pointer; }
.ktopics button[aria-pressed="true"] { border-color: var(--red); background: #FBF3F1; box-shadow: inset 0 0 0 1px var(--red); }
.kdone .hbig i { font-size: 60px; animation: kpop .5s ease-out; }
.kdt { font: 600 18px var(--th); margin-top: 6px; color: var(--gInk); }
@keyframes kpop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .kdone .hbig i { animation: none; } }
.hsum .kicker { margin-bottom: 2px; }
.hsum .btn { margin-top: 8px; }

/* ปฏิทินสีตามกะ */
#secRoster .day { background: #F1F0EF; }
#secRoster .day.blank { background: none; }
.day.work .sc { font-size: 11px; letter-spacing: -.02em; }
.s-morn { background: #F6E7B8 !important; color: #5C4A12; }
.s-mid { background: #DCEBE3 !important; color: var(--green); }
.s-noon { background: #DCE6F2 !important; color: #1D3B5C; }
.s-eve { background: #F1DCD8 !important; color: var(--red); }
.s-night { background: #DCD9EA !important; color: #2E2A55; }
.day.s-morn .dn, .day.s-mid .dn, .day.s-noon .dn, .day.s-eve .dn, .day.s-night .dn { color: inherit; opacity: .7; }
#secRoster .day.off { background: var(--green); }
#secRoster .day.off .sc, #secRoster .day.off .dn { color: #fff; }
#secRoster .day.leave { background: var(--red); }
#secRoster .day.hol { background: #e8b23a; }   /* 1 พ.ย.: นข สีทอง (ตรงกับตารางทีม) */
#secRoster .day.hol .sc, #secRoster .day.hol .dn { color: #201e1d; font-weight: 600; }
#secRoster .day.leave .sc, #secRoster .day.leave .dn { color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.lg { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.lg.off { background: var(--green); color: #fff; } .lg.leave { background: var(--red); color: #fff; } .lg.hol { background: #e8b23a; color: #201e1d; }

/* หน้าย่อย: ฟอร์มยื่นลา · สลิป · สิทธิ · ซ่อม */
form.card label.f:first-child { margin-top: 0; }
label.f select, label.f textarea, label.f input[type="date"], label.f input[type="text"], label.f input[type="tel"], label.f input[type="time"] { display: block; width: 100%; margin-top: 4px; font: 400 15px var(--th); letter-spacing: 0; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 9px 10px; }
label.f textarea { resize: vertical; }
label.f select:focus, label.f textarea:focus, label.f input[type="date"]:focus, label.f input[type="text"]:focus, label.f input[type="tel"]:focus, label.f input[type="time"]:focus { border-color: var(--blue); }
label.f select:focus:not(:focus-visible), label.f textarea:focus:not(:focus-visible), label.f input:focus:not(:focus-visible) { outline: none; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end; }
.two-col.one { grid-template-columns: minmax(0, 1fr); }
.two-col > label.f { min-width: 0; }
div.f { margin-top: 16px; font-size: 12px; color: var(--ink3); }
.flab { display: block; }
.seg.wide { display: flex; width: 100%; margin-top: 6px; }
.seg.wide button { flex: 1; padding: 9px 8px; }
.seg button[disabled] { opacity: .4; cursor: default; }
/* ช่องวันที่ — iOS แสดง date input สูง/กว้างไม่เท่าช่องอื่น ทำให้ 2 ช่องเหลื่อมกัน → บังคับความสูง + ไม่ใช้หน้าตาของระบบ */
label.f input[type="date"], label.f input[type="time"] { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; height: 42px; line-height: 22px; text-align: left; }
label.f input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
label.f input[type="date"]::-webkit-calendar-picker-indicator { margin-left: 4px; }
.warn { background: #FFF3D6; color: #7A5200; font-size: 12px; padding: 8px 10px; border-radius: 4px; margin: 6px 0 0; }
.lact { display: flex; align-items: center; gap: 6px; flex: none; }
.num .of { font-size: 14px; color: var(--ink4); font-weight: 400; }
.rules li div { font-size: 13px; }
.sub.adj { color: var(--pinkTxt); margin-top: 2px; }
.st { display: inline-flex; align-items: center; gap: 4px; }
.st i.ph-duotone { font-size: 13px; }
.st.cancel { background: var(--chip); color: var(--ink3); }
.btn i.ph-duotone { font-size: 16px; }

/* ไอคอน SVG ฝังในหน้า (แทนฟอนต์ไอคอนจาก unpkg) — ขนาดตาม font-size ของ <i> เหมือนเดิม */
i.ph-duotone { display: inline-flex; align-items: center; justify-content: center; line-height: 1; font-style: normal; }
i.ph-duotone svg { width: 1em; height: 1em; display: block; }
.btn i.ph-duotone { margin-right: 2px; }

/* เมนูการ์ด 2×2 (6 ต.ค.) */
.tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 118px; padding: 14px 12px 12px; border: 0; border-radius: 10px; background: var(--white); text-align: left; cursor: pointer; box-shadow: 0 1px 2px rgba(32, 30, 29, .06); transition: transform .12s ease, box-shadow .12s ease; }
.tile:active { transform: scale(.98); }
.tile:hover { box-shadow: 0 3px 10px rgba(32, 30, 29, .10); }
.ticon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; margin-bottom: 6px; }
.tname { font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--gInk); }
.tsub { font-size: 11px; color: var(--ink4); line-height: 1.35; }
.tbadge { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 10px; background: var(--red); color: #fff; }
.t-green .ticon { background: #DCEBE3; color: var(--green); }
.t-red .ticon { background: #F6DEDB; color: var(--red); }
.t-ink .ticon { background: var(--gInk); color: #fff; }
.t-sand .ticon { background: #F6E7B8; color: #5C4A12; }
.tile.dim { background: var(--cream); }
.tile.dim .tname { color: var(--ink3); }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } }

/* กิจกรรมล่าสุด */
.act li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; }
.act li + li { border-top: 1px solid var(--line2); }
.aic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: var(--chip); color: var(--ink2); }
.aic.heartIn, .aic.thanksOut { background: #F6DEDB; color: var(--red); }
.aic.leave { background: #DCEBE3; color: var(--green); }
.abody { flex: 1; min-width: 0; font-size: 13px; }
.abody .muted { display: block; font-size: 11px; }

/* แจ้งซ่อม (7 ต.ค.): ชิปจุดที่พบบ่อย · ช่องรูป 2 ช่อง · รูปย่อในการ์ดงาน */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; }
.chip { border: 1px solid var(--line2); background: #fff; color: var(--ink2); border-radius: 99px; padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.chip:active { background: #FBF3F1; border-color: var(--red); }
.rpick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rslot { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 1px solid var(--line2); background: #fff; }
.rslot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.radd { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1.5px dashed var(--line2); color: var(--ink3); font: inherit; font-size: 13px; cursor: pointer; }
.radd i.ph-duotone { font-size: 28px; color: var(--red); }
.rdel { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(28,42,36,.75); color: #fff; font-size: 14px; cursor: pointer; }
.rpics { display: flex; gap: 8px; margin: 8px 0; }
.rpics img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--chip); border: 1px solid var(--line2); cursor: zoom-in; opacity: .4; }
.rpics img.on { opacity: 1; }
.rpbig { width: 100%; border-radius: 10px; display: block; }
.st.fix { background: #E3E9F6; color: #23407A; }
.rcard .lvact { grid-template-columns: 1fr 1fr; }
.rcard .lvact.one { grid-template-columns: 1fr; }
.rgrp { display: grid; gap: 8px; margin-top: 4px; }
.rgrp.two { grid-template-columns: 1fr 1fr; }
.rgrp button { border: 1px solid var(--line2); background: #fff; color: var(--ink); border-radius: 10px; padding: 10px; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.rgrp button[aria-pressed="true"] { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: #EEF5F1; }
.rgrp.lvls button { display: flex; flex-direction: column; gap: 2px; }
.rgrp.lvls button span { font-size: 12px; color: var(--ink3); }
.rgrp.lvls button.LG[aria-pressed="true"] { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: #E3F0E8; }
.rgrp.lvls button.LY[aria-pressed="true"] { border-color: #B08A1E; box-shadow: inset 0 0 0 1px #B08A1E; background: #FBF0CC; }
.rgrp.lvls button.LR[aria-pressed="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); background: #F6DCDC; }
.radv { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; background: #E3F0E8; color: var(--green); }
.radv.LY { background: #FBF0CC; color: #5C4A12; } .radv.LR { background: #F6DCDC; color: var(--red); }
.rlvl { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; margin-bottom: 6px; background: #E3F0E8; color: var(--green); }
.rlvl.LY { background: #FBF0CC; color: #5C4A12; } .rlvl.LR { background: var(--red); color: #fff; }
.rcard.LR { border: 2px solid var(--red) !important; }
.rappt { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; font-size: 13px; background: #E3E9F6; color: #23407A; }
.rappt.today { background: #23407A; color: #fff; } .rappt.today a { color: #fff; }
.rappt.wait { background: #FBF0CC; color: #5C4A12; }
.rappt a { color: inherit; font-weight: 600; }
.rapf { margin-top: 8px; }
.rspin { display: inline-block; width: 40px; height: 40px; border-radius: 50%; border: 4px solid #DCEBE3; border-top-color: var(--green); animation: rspin .8s linear infinite; }
@keyframes rspin { to { transform: rotate(360deg); } }
.rdone.failed { border: 2px solid #E8C26A; }
.rslot.up img { opacity: .55; }
.rspin.sm { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-width: 3px; }
.rdone-ok { font-size: 44px; text-align: center; line-height: 1; margin-top: 4px; }
.rdone-h { text-align: center; font-size: 20px; margin: 8px 0 4px; }
.rfixed { background: linear-gradient(180deg, #E3F0E8 0, #fff 120px); }
.rparty { display: flex; justify-content: center; gap: 10px; font-size: 40px; line-height: 1; margin-top: 4px; }
.rparty span { display: inline-block; animation: rpop .7s cubic-bezier(.2,1.6,.4,1) both; }
.rparty span:nth-child(2) { animation-delay: .12s; } .rparty span:nth-child(3) { animation-delay: .24s; }
@keyframes rpop { 0% { transform: scale(0) rotate(-20deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rparty span { animation: none; } }
.rcheer { text-align: center; font-weight: 600; color: var(--green); margin: 0 0 12px; }
.rsum { border: 1px solid var(--line2); border-radius: 10px; padding: 12px; background: #fff; }
/* ---------- AMIRI Counter · โหมดคอมฟร้อน (9 ต.ค.) ---------- */
body.counter { max-width: 1280px; }
body.counter main { padding: 8px 24px 40px; }
body.counter .bar h1 { display: none; }
.cnav { position: sticky; top: 0; z-index: 6; background: var(--bg); border-bottom: 1px solid var(--line2); }
.cnav-in { display: flex; align-items: center; gap: 6px; padding: 8px 24px; }
.cbrand { display: inline-flex; flex-direction: column; line-height: 1.1; white-space: nowrap; font: 600 15px var(--en); color: var(--rmGreen); margin-right: 14px; letter-spacing: .02em; } .cbrand small { font: 500 9px var(--en); color: #8a8580; letter-spacing: .08em; text-transform: uppercase; } .cbrand.big small { font-size: 12px; }   /* PCE ชื่อเต็มเหนือชื่อแอป (SIRIS 9 ต.ค.) */ .cbrand b { color: var(--rmRed); font-weight: 600; } .cbrand.big { font-size: 28px; }
.cnav a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 8px; text-decoration: none; color: var(--ink2); font-size: 14px; min-height: 44px; }
.cnav a .ph-duotone { font-size: 18px; }
.cnav a.on { background: var(--rmGreen); color: #fff; }
.cnav a { white-space: nowrap; }   /* I15: เมนูเพิ่ม "น้ำ" = 8 ปุ่ม · จอ 1280–1440 ลดช่องว่างแทนการตัดบรรทัด */
@media (max-width: 1440px) { .cnav-in { gap: 2px; padding: 8px 14px; } .cnav a { padding: 10px 9px; gap: 4px; } }
.cnav a { position: relative; }
.cbadge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font: 700 12px/20px var(--th); text-align: center; box-shadow: 0 0 0 2px var(--bg); }   /* 13 ต.ค. SIRIS: งานค้างใน งานของฉัน */
.cactor { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.cnames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.clock { position: fixed; inset: 0; z-index: 30; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.clock-in { width: 520px; max-width: 90vw; text-align: center; }
.clock-in .cnames { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
body.counter .sheet { align-items: center; }
body.counter .sheet-body { max-width: 560px; border-radius: 12px; max-height: 85vh; }
body.counter .bsheet .bacts { grid-template-columns: 1fr 1fr; }
/* บอร์ดจอกว้าง */
/* 9 ต.ค. SIRIS: แนวนอน — 3 กล่องขึ้นหัว ต่อด้วยการ์ด No-Show แล้วค่อยบอร์ดเต็มความกว้าง */
.ctop { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 16px; align-items: start; margin: 10px 0 6px; }
.ctop .bsum3 { margin: 0; }
.cns { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 10px; }
.cns .nscard { margin: 0; }
.cmain { margin-top: 8px; }
.cgrp { margin: 10px 0 0; }
.cgrp .bgh { border-radius: 8px; }
.cgrp .ctiles { padding: 8px 0 0; }
.ctiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }   /* ไทล์กว้างอย่างน้อย 120px ทุกจอ (iPad 1024 · 1180 · คอม) ให้ป้าย 2 บรรทัดอ่านชัด · SIRIS 10 ต.ค. */
.ctile { position: relative; display: flex; flex-direction: column; gap: 3px; align-items: stretch; text-align: left; background: #fff; border: 1px solid var(--line2); border-left: 5px solid var(--line2); border-radius: 8px; padding: 6px 7px 6px 8px; min-height: 86px; cursor: pointer; }
.ctile .cn { font: 600 18px var(--en); line-height: 1.1; }
.ctile .cplan { font-size: 10px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctile .bs { font: 600 11px var(--th); padding: 2px 4px; border-radius: 5px; text-align: center; border: 1px solid transparent; }
.ctile .cnote { font-size: 10px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--rmCream); border-radius: 4px; padding: 0 4px; }
.ctile.g-turn { border-left-color: var(--rmRed); } .ctile.g-in { border-left-color: var(--rmGold); } .ctile.g-out { border-left-color: #F3C4CF; } .ctile.g-stay { border-left-color: var(--rmGreen); } .ctile.g-vac { border-left-color: #C8E6C9; } .ctile.g-own { border-left-color: #5F5B5B; }
.ctile.ns .cn { color: var(--rmRed); } .ctile.ns::after { content: 'No-Show'; position: absolute; top: 6px; right: 6px; font: 600 9px var(--en); color: var(--rmRed); border: 1px solid var(--rmRed); border-radius: 4px; padding: 0 3px; }
/* ป้ายสภาพบนไทล์ = สีเดียวกับแถวมือถือ */
.ctile.s-ih .bs { background: #fff; color: #E53935; border-color: var(--line2); }
.ctile.s-ihc .bs { background: #fff; color: #E53935; border-color: #E53935; border-style: dashed; }
.ctile.s-dnd .bs { background: var(--rmRed); color: #fff; }
.ctile.s-rs .bs { background: #D9C8EC; color: #3F2A5E; }
.ctile.s-co .bs, .ctile.s-rc .bs { background: #1A3F8F; color: #fff; }
.ctile.s-vi .bs { background: #fff; color: var(--rmGreen); border: 2px solid #9CD3AE; }
.ctile.s-vc .bs { background: #2F8A5B; color: #fff; }
.ctile.s-ooo .bs { background: var(--ink); color: #fff; }
.ctile.s-own .bs { background: var(--rmCream); color: #9b9797; }
.clegend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; }
.clegend .lg { font-size: 11px; padding: 2px 8px; border-radius: 6px; border-left: 5px solid; background: #fff; }
.clegend .g-turn { border-color: var(--rmRed); } .clegend .g-in { border-color: var(--rmGold); } .clegend .g-out { border-color: #F3C4CF; } .clegend .g-stay { border-color: var(--rmGreen); } .clegend .g-vac { border-color: #C8E6C9; }
/* ปิดรอบ: 3 กล่องไฟล์แถวเดียว · ผู้พัก: 2 คอลัมน์ */
body.counter section:has(> .clbox) { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }   /* 4 ไฟล์ (Reservations ไม่บังคับ) */
body.counter section:has(> .clbox) > .kicker { grid-column: 1 / -1; margin-bottom: 0; }
body.counter .clhead, body.counter #clpend, body.counter #clerr { max-width: 100%; }
body.counter .ihfl { display: inline-block; width: calc(50% - 8px); vertical-align: top; margin-right: 12px; }
body.counter .ihfl:nth-child(even) { margin-right: 0; }
@media (max-width: 1100px) { .ctop { grid-template-columns: 1fr; } }

.rto { margin: 12px 0 0; padding: 8px 10px; border-radius: 8px; background: #E3F0E8; color: var(--green); font-size: 13px; font-weight: 600; }

/* ---------- บอร์ดห้อง · ปิดรอบ · ผู้พักคืนนี้ (8 ต.ค. ค่ำ) ---------- */
.bgrp { margin: 14px 0 0; }
.bgrp .bgh { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 13px; margin: 0 0 6px; }
.bgrp .bgh .muted { font-weight: 400; }
/* บอร์ดแบบตาราง (เหมือน Excel ของ Front): ห้องละ 1 แถว · ห้อง | วันนี้ | สภาพตอนนี้ · บรรทัด 2 = หมายเหตุ */
.bhead { display: grid; grid-template-columns: 44px 1fr 104px; gap: 6px; padding: 8px 8px 3px; font-size: 11px; color: var(--ink4); border-bottom: 1px solid var(--line); margin-top: 6px; }
.brows { background: #fff; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
/* แถวแน่น: ห้องละบรรทัดเดียว สูง ~36px (SIRIS 8 ต.ค.: เห็นหลายห้องไม่ต้องเลื่อน) · โน้ตต่อท้ายประเภท ตัด … · แตะดูเต็มในแผ่น */
.brow { display: grid; grid-template-columns: 44px minmax(0, 1fr) 104px; gap: 0 6px; align-items: center; width: 100%; border: 0; border-bottom: 1px solid var(--line2); background: #fff; padding: 5px 8px; text-align: left; cursor: pointer; min-height: 36px; font: inherit; color: inherit; }
.brow:last-child { border-bottom: 0; }
.brow .bn { font: 600 15px var(--en); letter-spacing: .02em; }
.brow .bp { font-size: 12px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.brow .bp .bty { color: var(--ink2); }
.brow .bs { font: 600 11px var(--th); padding: 3px 4px; border-radius: 6px; text-align: center; justify-self: stretch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow .bnote { font-size: 11px; }
.brow .bnote.muted { background: none; color: var(--ink4); padding: 0; }
.bgrp { margin: 8px 0 0; }
.bgrp .bgh { padding: 5px 10px; font-size: 13px; }
/* 3 กล่องบนสุด Check in · Check out · พักต่อ (SIRIS 8 ต.ค.) — เตี้ย ไม่กินที่ · สี Rich Menu */
.bsum3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 4px; }
/* SIRIS เลือกชุด B (8 ต.ค.): พื้นสีทึบตาม Rich Menu — ทอง Check in · แดง Check out · เขียว พักต่อ */
.bsum3 .stat { min-height: 0; padding: 8px 10px; border-radius: 10px; border: 0; text-align: left; cursor: pointer; font: inherit; width: 100%; }
/* รายชื่อห้องในแผ่นสรุป (แตะกล่อง 3 ช่อง) */
.sumfl { display: flex; justify-content: space-between; margin: 12px 0 0; padding: 4px 10px; font-weight: 600; font-size: 13px; background: var(--chip); border-radius: 8px 8px 0 0; }
.sumfl .muted { font-weight: 400; }
#sheetBody .brows { border-radius: 0 0 10px 10px; }
#sheetBody .brow .bnote { white-space: normal; }
.bsum3 .stat .num { font-size: 26px; }
.bsum3 .stat { position: relative; }
.bsum3 .stat .num small { position: absolute; top: 8px; right: 10px; font: 400 11px var(--en); letter-spacing: .06em; text-transform: uppercase; opacity: .85; }   /* "ROOMS" มุมขวาบน (SIRIS 9 ต.ค.) */
.bsum3 .stat .lab { font-size: 12px; margin-top: 2px; }
.bsum3 .stat.in { background: var(--rmGold); color: var(--rmGreen); } .bsum3 .stat.in .lab { color: var(--rmGreen); }
.bsum3 .stat.out { background: var(--rmRed); color: #fff; } .bsum3 .stat.out .lab { color: rgba(255,255,255,.9); }
.bsum3 .stat.stay { background: var(--rmGreen); color: #fff; } .bsum3 .stat.stay .lab { color: rgba(255,255,255,.9); }
/* หัวกลุ่ม "วันนี้" = แถบสีทึบไล่ตามความด่วน (SIRIS 8 ต.ค.: เอาท์ → มีอินต่อ ต้องรู้ทันทีว่าด่วน) */
/* 8 ต.ค. SIRIS: ทึบหมดแสบตา → หัวกลุ่มเป็นพื้นอ่อน + เส้นสีซ้าย ตัวหนังสือสีเข้ม (คงความหมายสีเดิม) */
.bgrp .bgh { padding: 6px 10px; border-radius: 8px 8px 0 0; margin: 0; font-size: 13px; border-left: 4px solid; }
.bgrp .bgh .muted { font-size: 12px; opacity: .8; color: inherit; }
.bgrp .brows { border-radius: 0 0 10px 10px; border-top: 0; }
/* 8 ต.ค. SIRIS: ใช้รหัสสี Rich Menu v4 เท่านั้น — แดง #8D1A1A · ทอง #FFB800 · เขียวเข้ม #1F3A30 · ครีม #F9F2EC */
:root { --rmRed: #8D1A1A; --rmGold: #FFB800; --rmGreen: #1F3A30; --rmCream: #F9F2EC; --rmRedSoft: #F4E6E6; --rmGoldSoft: #FFF3D1; --rmGreenSoft: #E6ECE9; }
.bgrp.g-turn .bgh { background: var(--rmRed); color: #fff; border-color: var(--rmRed); }            /* เอาท์ → มีอินต่อ: แดง (ด่วน) */
.bgrp.g-in .bgh { background: var(--rmGold); color: var(--rmGreen); border-color: var(--rmGold); }   /* เตรียม IN: ทอง */
.bgrp.g-out .bgh { background: #F3C4CF; color: #6B1E33; border-color: #F3C4CF; }   /* เอาท์อย่างเดียว: ชมพู (SIRIS 8 ต.ค.) */
.bgrp.g-stay .bgh { background: var(--rmGreen); color: #fff; border-color: var(--rmGreen); }         /* พักต่อ: เขียวเข้ม */
.bgrp.g-vac .bgh { background: #C8E6C9; color: #1B4D2B; border-color: #C8E6C9; }    /* ว่าง (ขายได้): เขียวพาสเทล (SIRIS 8 ต.ค.) */
.bgrp.g-own .bgh { background: #5F5B5B; color: #fff; border-color: #5F5B5B; }                      /* OWN: เทาเข้ม (SIRIS 8 ต.ค.) */
/* ป้ายสภาพห้อง: "ต้องลงมือ" = สีทึบ · "แค่รอ/เสร็จแล้ว" = พื้นอ่อน */
/* SIRIS 8 ต.ค.: สีตามลำดับขั้นแม่บ้าน  แดง IN HOUSE (แขกอยู่ ทำไม่ได้) → น้ำเงินเข้ม CO/RC (ว่าง รอทำ) → เขียวอ่อน VI (ทำแล้ว รอตรวจ) → เขียวเข้ม VC (พร้อมขาย) */
/* ป้ายทุกตัว = พื้นอ่อน + ตัวหนังสือสีเข้ม + ขอบบาง (ไม่ทึบ) · เว้น VC พร้อมขาย เป็นเขียวเข้มตัวเดียว ให้เห็นว่า "เสร็จแล้ว" */
/* ป้ายสภาพ: แดง = แขกอยู่ · ทอง = งานรอทำ · เขียว = เสร็จ (ทึบ = พร้อมขาย) · ครีม = ไม่เกี่ยว */
.brow .bs { border: 1px solid transparent; }
.brow.s-ih .bs { background: #fff; color: #E53935; border-color: var(--line2); }                                       /* IN HOUSE แขกอยู่ ยังไม่ทำ — พื้นขาว ขอบบาง ตัวหนังสือแดงสด (SIRIS 8 ต.ค.) */
.brow.s-ihc .bs { background: #fff; color: #E53935; border-color: var(--line2); border-style: dashed; }                 /* IN HOUSE-CLEAN แขกอยู่ ทำแล้ว */
.brow.s-dnd .bs { background: var(--rmRed); color: #fff; }                                                             /* DND ห้ามรบกวน */
.brow.s-rs .bs { background: #D9C8EC; color: #3F2A5E; }                                                               /* RS เจอแขก ไม่ทำห้อง — ม่วงพาสเทล ตัวเข้ม (SIRIS 8 ต.ค.) */
.brow.s-co .bs { background: #1A3F8F; color: #fff; }                                                                  /* CO รอแม่บ้าน — น้ำเงินเข้ม (SIRIS: ทองซ้ำกับหัวกลุ่ม เตรียม IN) */
.brow.s-rc .bs { background: #1A3F8F; color: #fff; }                                                                  /* RC รอแม่บ้าน (ว่างนาน) */
.brow.s-vi .bs { background: #fff; color: var(--rmGreen); border: 2px solid #9CD3AE; padding-top: 2px; padding-bottom: 2px; }   /* VI ทำแล้ว รอ Front ตรวจ — พื้นขาว ตัวเขียวเข้ม ขอบเขียวอ่อนหนา (SIRIS 8 ต.ค.) */
.brow.s-vc .bs { background: #2F8A5B; color: #fff; }                                                                  /* VC พร้อมขาย — เขียวกลาง อ่อนกว่าเขียว Rich Menu (SIRIS 8 ต.ค.) */
.brow.s-ooo .bs { background: var(--ink); color: #fff; }
.brow.s-own .bs { background: var(--rmCream); color: #9b9797; }
.brow .bnote { background: var(--rmCream); color: var(--ink2); padding: 1px 5px; border-radius: 4px; border: 1px solid #ECE2D8; }
/* SIRIS เลือก (8 ต.ค.): พื้นแดงอ่อน · หัวข้อแดง · ปุ่มเปิดขายเขียวเข้ม · เก็บไว้ขอบเขียว */
.nscard { border: 1px solid #E3C3C3; background: var(--rmRedSoft); border-radius: 10px; }   /* SIRIS: ขอบบาง · ช่องเหตุผลใต้ปุ่ม */
.nscard input { border: 1px solid #E3C3C3; }
.nscard .ctitle, .nscard .ctitle .ph-duotone { color: var(--rmRed); }
.nscard .btn.primary { background: var(--rmGreen); border-color: var(--rmGreen); color: #fff; }
.nscard .btn.outline { color: var(--rmGreen); border-color: var(--rmGreen); background: #fff; }
.nscard input { background: #fff; }
.nsflag { color: var(--rmRed); border-color: var(--rmRed); } .brow.ns .bn { color: var(--rmRed); }
.nscard .ctitle { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.nscard input { width: 100%; box-sizing: border-box; margin-top: 8px; }
.brow.ns .bn { color: var(--red); }
.nsflag { font: 600 10px var(--en); color: var(--red); border: 1px solid var(--red); border-radius: 4px; padding: 0 4px; }
.bsheet .bacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.bsheet .bacts .btn { font-size: 12px; padding: 10px 8px; }
/* ปุ่มในแผ่นห้อง + ป้ายหัวแผ่น ใช้สีเดียวกับป้ายบนบอร์ด (SIRIS 8 ต.ค.) */
.bact, .bsheet .bs { border: 1px solid transparent; font-weight: 600; }
.bact.s-ih, .bsheet .bs.s-ih { background: #fff; color: #E53935; border-color: var(--line2); }
.bact.s-ihc, .bsheet .bs.s-ihc { background: #fff; color: #E53935; border-color: #E53935; border-style: dashed; }
.bact.s-ihc.stay, .ctile.s-ihc.stay .bs, .brow.s-ihc.stay .bs, .bsheet .bs.s-ihc.stay { background: #2F8A5B; color: #fff; border-color: #2F8A5B; border-style: solid; }   /* แขกพักต่อ · ทำความสะอาดแล้ว (SIRIS 9 ต.ค.) */
.ctile.s-vc.rck .bs, .brow.s-vc.rck .bs, .bsheet .bs.s-vc.rck { background: #FFB800; color: #1F1F1F; border-color: #FFB800; }   /* ห้องว่างยังไม่รีเช็ค → RECHECK (SIRIS 9 ต.ค.) */
.rckbox { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 10px; background: #F4FAF6; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; align-items: end; }
.rckbox .kicker { grid-column: 1 / -1; }
.undo { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 10px; background: #F4F4F2; border-radius: 10px; font-size: 12px; }   /* ย้อนกลับรายการล่าสุด (SIRIS 9 ต.ค.) */
.undo .btn { padding: 6px 12px; font-size: 12px; white-space: nowrap; }
.rckbox .f { margin: 0; }
.rckbox select { width: 100%; padding: 9px 10px; border: 1px solid var(--line2); border-radius: 8px; font: inherit; background: #fff; }
.bact.s-dnd, .bsheet .bs.s-dnd { background: var(--rmRed); color: #fff; }
.bact.s-rs, .bsheet .bs.s-rs { background: #D9C8EC; color: #3F2A5E; }
.bact.s-co, .bsheet .bs.s-co, .bact.s-rc, .bsheet .bs.s-rc { background: #1A3F8F; color: #fff; }
.bact.s-vi, .bsheet .bs.s-vi { background: #fff; color: var(--rmGreen); border: 2px solid #9CD3AE; }
.bact.s-vc, .bsheet .bs.s-vc { background: #2F8A5B; color: #fff; }
.bact.s-ooo, .bsheet .bs.s-ooo { background: var(--ink); color: #fff; }
.bact.s-own, .bsheet .bs.s-own { background: var(--rmCream); color: #9b9797; }
.bact.s-own, .ctile.s-own.clean .bs, .brow.s-own.clean .bs, .bsheet .bs.s-own.clean { background: #2F8A5B; color: #fff; border-color: #2F8A5B; }   /* OWN ทำความสะอาดแล้ว (SIRIS 9 ต.ค.) */
.fxrow { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line2); }
.fxrow .kicker { display: block; margin: 0 0 2px; }
.fxrow .bacts { margin-top: 6px; }
.fxrow .btn { color: var(--ink); border-color: var(--line); }
.fxwarn { background: var(--rmRedSoft); color: var(--rmRed); border-radius: 8px; padding: 8px 10px; font-size: 13px; margin: 10px 0; display: flex; gap: 6px; align-items: flex-start; }
.fxdest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.fxdest .btn { display: flex; flex-direction: column; align-items: flex-start; padding: 8px; min-height: 52px; color: var(--ink); border-color: var(--line); }
.fxdest .btn b { font: 600 16px var(--en); }
.fxdest .btn .muted { font-size: 10px; text-align: left; }
.bact[data-bact="in"] { color: #2F8A5B; border-color: #2F8A5B; }   /* เช็คอินแล้ว (จากห้อง VC): ตัวหนังสือสีเดียวกับป้าย VC (SIRIS 8 ต.ค.) */
.nscard { padding: 12px; margin: 10px 0; }
.nscard .two-col { margin-top: 8px; }
.clsub { color: var(--rmGreen); font-weight: 600; font-size: 13px; }   /* คำอธิบายใต้หัวข้อ ปิดรอบ มีสี (SIRIS 8 ต.ค.) */
/* กล่อง ผู้ปิดรอบ / กะที่ปิด — พื้นเขียวเข้ม Rich Menu (SIRIS 8 ต.ค.) */
.clhead { background: var(--rmGreen); color: #fff; border-radius: 12px; padding: 14px 14px 12px; }
.clhead label.f { color: rgba(255,255,255,.8); font-size: 12px; }
.clhead select, .clhead input { background: #fff; color: var(--ink); border: 0; border-radius: 8px; font-weight: 600; }
.clhead input:disabled { background: rgba(255,255,255,.14); color: #fff; font: 600 20px var(--en); letter-spacing: .03em; text-align: center; -webkit-text-fill-color: #fff; opacity: 1; }
.clbox { border: 1px solid var(--line2); border-radius: 12px; padding: 12px; background: #fff; margin: 8px 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.clbox .cln { font-weight: 600; font-size: 14px; } .clbox .cls { font-size: 11px; color: var(--ink4); grid-column: 1; }
.clbox .clst { grid-column: 1 / -1; font-size: 12px; margin-top: 4px; min-height: 16px; }
.clbox.ok { border-color: var(--green); background: #F4FAF6; } .clbox.ok .clst { color: var(--green); font-weight: 600; }
.clbox.bad { border-color: var(--red); } .clbox.bad .clst { color: var(--red); }
.clbox.warn { border-color: #FFB800; background: #FFF9E6; } .clbox.warn .clst { color: #8B6A00; font-weight: 600; }   /* แนบได้ แต่หน้าตาเหมือนไฟล์อื่น (SIRIS 9 ต.ค.) */
.clfail { background: #FBE9E7; border: 1px solid #F0B9B3; } .clfail .ctitle { color: var(--rmRed); } .clfail .bacts { display: grid; gap: 8px; margin-top: 8px; grid-template-columns: 1fr; }
.clfail.slim { padding: 10px 12px; margin: 8px 0 12px; } .clfail.slim p { margin: 4px 0; font-size: 13px; }
body.counter .clfail .bacts { grid-template-columns: repeat(auto-fit, minmax(260px, max-content)); }
.clbox input[type=file] { display: none; }
.clbox .tag { font-size: 10px; padding: 2px 6px; border-radius: 6px; background: var(--chip); color: var(--ink2); }
.clbox .tag.req { background: #FDF0E6; color: #8B4A1A; }
/* ห้องค้างเช็คอิน ในหน้าปิดรอบ */
.pendrows { margin-top: 6px; }
.pendrow { display: grid; grid-template-columns: 44px 1fr 36px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line2); }
.pendrow .pn { font: 600 17px var(--en); }
.pendrow input { width: 100%; box-sizing: border-box; }
.pendrow .pdel { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line2); background: #fff; color: var(--ink4); font-size: 14px; }
.pendadd { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; align-items: center; }
.pendadd input, .pendadd select { width: 100%; box-sizing: border-box; } .pendadd select { padding: 10px; border: 1px solid var(--line2); border-radius: 8px; font: inherit; background: #fff; }
.cklist label { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line2); font-size: 14px; min-height: 44px; }
.cklist input { width: 22px; height: 22px; }
/* ผู้พักคืนนี้ — แถวแน่น · การ์ดชั้นสลับ ขาว / เบจอ่อน (SIRIS 8 ต.ค.) */
.ihfl { margin-top: 10px; background: #fff; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.ihfl.alt { background: var(--rmCream); border-color: #E9DCCF; }
.ihflh { display: flex; justify-content: space-between; padding: 5px 10px; font-weight: 600; font-size: 13px; background: var(--chip); }
.ihfl.alt .ihflh { background: #E9DCC2; }
.ihflh .muted { font-weight: 400; }
.ihroom { display: flex; gap: 8px; align-items: center; padding: 5px 8px 5px 10px; min-height: 40px; border-bottom: 1px solid rgba(0,0,0,.05); }
.ihroom:last-child { border-bottom: 0; }
.ihstat { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; text-align: left; cursor: pointer; font: inherit; line-height: inherit; border: 0; width: 100%; padding: 12px 10px; background: var(--rmGreen); color: #fff; border-radius: 10px; }   /* SIRIS 8 ต.ค.: เขียว Rich Menu ตัวขาว · padding เท่ากล่องข้าง ๆ ให้บรรทัดตรงกัน */
.stats.two .stat { border-radius: 10px; }
.ihstat .lab { color: rgba(255,255,255,.9); }
.ihall { background: #fff; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.ihrow { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: center; padding: 4px 10px; min-height: 30px; font-size: 13px; }
.ihrow.first { border-top: 1px solid var(--line2); }
.ihrow.first:first-child { border-top: 0; }
.ihrow .ihn { font: 600 15px var(--en); }
.ihrow .muted { font-size: 11px; }
.ihroom .ihn { font: 600 16px var(--en); min-width: 40px; }
.ihroom .ihg { flex: 1; font-size: 13px; line-height: 1.3; } .ihroom .ihg .muted { font-size: 11px; }
.ihroom .ihf { min-width: 36px; min-height: 36px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-size: 16px; padding: 0; }
.ihroom.found { opacity: .55; } .ihroom.found .ihf { background: var(--rmGreen); border-color: var(--rmGreen); color: #fff; }
/* การ์ดยืนยันหลังเปลี่ยนสถานะ (SIRIS 9 ต.ค.): ห้อง · สถานะตอนนี้ · อัปเดตโดย */
.toast.done { background: #fff; color: var(--ink); border: 1px solid var(--line2); border-left: 5px solid var(--rmGreen); border-radius: 10px; padding: 10px 16px; font-size: 13px; display: grid; gap: 4px; min-width: 260px; box-shadow: 0 6px 24px rgba(0,0,0,.14); }
.toast.done .dn { font-size: 15px; } .toast.done .dn b { font: 600 20px var(--en); }
.toast.done .ds .bs { display: inline-block; padding: 2px 8px; border-radius: 6px; font-weight: 600; border: 1px solid transparent; margin-left: 4px; }
.toast.done .ds .bs.s-ih { background: #fff; color: #E53935; border-color: var(--line2); } .toast.done .ds .bs.s-ihc { background: #fff; color: #E53935; border-color: #E53935; border-style: dashed; }
.toast.done .ds .bs.s-ihc.stay, .toast.done .ds .bs.s-vc, .toast.done .ds .bs.s-own.clean { background: #2F8A5B; color: #fff; } .toast.done .ds .bs.s-vc.rck { background: #FFB800; color: #1F1F1F; }
.toast.done .ds .bs.s-dnd { background: var(--rmRed); color: #fff; } .toast.done .ds .bs.s-rs { background: #D9C8EC; color: #3A2A55; }
.toast.done .ds .bs.s-co, .toast.done .ds .bs.s-rc { background: #1A3F8F; color: #fff; } .toast.done .ds .bs.s-vi { background: #fff; color: var(--rmGreen); border: 2px solid #9CD3AE; }
.toast.done .ds .bs.s-ooo { background: #5F5B5B; color: #fff; } .toast.done .ds .bs.s-own { background: var(--rmCream); color: #9b9797; }
.toast.done .db { color: var(--ink4); font-size: 12px; }
body.counter .toast.done { bottom: 32px; font-size: 14px; min-width: 340px; }
.crefresh { padding: 8px 10px; margin-right: 6px; } .crefresh svg { width: 18px; height: 18px; display: block; }   /* ปุ่มรีเฟรชมุมขวาบน (SIRIS 9 ต.ค.) */
.crefresh.spin svg { animation: cspin .8s linear infinite; } @keyframes cspin { to { transform: rotate(360deg); } }
/* IN HOUSE TODAY — แขกเพิ่งเช็คอินวันนี้ (SIRIS 9 ต.ค.): ขาว ขอบแดงทึบ ตัวแดง ตัวเล็กลงให้พอดีช่อง */
.ctile.s-ih.today .bs, .brow.s-ih.today .bs, .bsheet .bs.s-ih.today, .toast.done .ds .bs.s-ih.today { background: #fff; color: #E53935; border: 2px solid #E53935; font-size: 10px; letter-spacing: 0; padding-left: 4px; padding-right: 4px; }
.bkline { margin: 8px 0 0; font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .bkline svg { width: 16px; height: 16px; flex: none; color: var(--ink4); }
/* วันที่บอร์ด (SIRIS 9 ต.ค.): อังกฤษ ตัวใหญ่ ชัดบน iPad/คอม */
.bdate { display: block; font: 600 18px var(--en); letter-spacing: .04em; color: var(--rmGreen); line-height: 1.15; margin: 2px 0 2px; }
.bfrom { display: block; font-size: 12px; color: var(--ink4); }
body.counter .bdate { font-size: 24px; } body.counter .bfrom { font-size: 13px; }
.bpage h2 { font-size: 21px !important; }   /* หัว "บอร์ดห้อง" ใหญ่ขึ้น (SIRIS 9 ต.ค.) */
body.counter .bpage h2 { font-size: 25px !important; }
/* ป้ายพักต่อทำห้องแล้ว: ข้อความยาว → ขึ้น 2 บรรทัด ตัวเล็กลงให้พอดีช่อง (SIRIS 10 ต.ค. · ห้อง 507) */
.ctile.s-ihc.stay .bs, .brow.s-ihc.stay .bs, .toast.done .ds .bs.s-ihc.stay, .bsheet .bs.s-ihc.stay { font-size: 10px; line-height: 1.2; white-space: pre-line; overflow: visible; padding-top: 2px; padding-bottom: 2px; }
/* 2 บรรทัดตายตัว "พักต่อ / ทำความสะอาดแล้ว ✓" ไม่ตัดคำเพิ่ม · ไทล์เคาน์เตอร์แคบ (iPad 1024 = ข้างใน 84px) → 9.5px ขอบข้าง 1px พอดี */
.ctile.s-ihc.stay .bs, .brow.s-ihc.stay .bs, .toast.done .ds .bs.s-ihc.stay, .bsheet .bs.s-ihc.stay { white-space: pre; }
.ctile { container-type: inline-size; }
.ctile.s-ihc.stay .bs { font-size: 10.5px; font-size: clamp(10.5px, 11.3cqi, 13px); padding-left: 1px; padding-right: 1px; letter-spacing: -.1px; }   /* ไม่มี ✓ แล้ว (SIRIS 10 ต.ค.) · ขยายตามความกว้างไทล์ */
/* ---------- ตรวจห้อง (SIRIS 10 ต.ค.) ---------- */
.insum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 4px; }
.insum > div, .insum > button { background: #fff; border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; align-items: flex-start; font: inherit; text-align: left; cursor: pointer; position: relative; }
.insum > button::after { content: '›'; position: absolute; right: 10px; top: 6px; font-size: 20px; color: var(--ink4); }   /* 11 ต.ค.: แตะดูเลขห้อง */
.insl { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.inslr .inslc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.inchip { min-width: 64px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line2); background: #fff; font: 600 18px var(--en); color: var(--ink); }
.inchip:disabled { opacity: 1; cursor: default; }
.inchip.pass { border-color: #9FD3B5; background: #EEF8F1; color: #1F7A44; } .inchip.fail { border-color: #F3B4B0; background: #FDECEA; color: #C62828; }
.inchip small { font: 600 12px var(--th); margin-left: 4px; }
.inrow.flash { outline: 3px solid #2F8A5B; outline-offset: 2px; transition: outline-color .3s; }
.insum b { font: 600 24px var(--en); color: var(--ink); } .insum span { font-size: 12px; color: var(--ink4); }
.insum .ok b { color: #2F8A5B; } .insum .no b { color: #E53935; }
/* 11 ต.ค. SIRIS: การ์ดสรุปมีพื้นหลังสี · รอตรวจ = เหลืองอ่อน · ผ่าน = เขียวอ่อน · ไม่ผ่าน = แดงอ่อน */
.insum > button[data-sum="wait"] { background: #FBE7B5; border-color: #E2B65C; } .insum > button[data-sum="wait"] b { color: #9A6B00; }
.insum > button.ok { background: #D3EEDD; border-color: #7FC39C; } .insum > button.no { background: #F9D4D0; border-color: #EB9A93; }
.insum > button span { color: #4A4540; }
.infl { margin-top: 14px; } .infl .bgh { background: var(--rmGreen); color: #fff; border-radius: 8px 8px 0 0; padding: 6px 10px; display: flex; justify-content: space-between; font-weight: 600; } .infl .bgh .muted { color: #cfe0d6; }
.inrows { display: grid; gap: 8px; padding: 8px; background: #fff; border: 1px solid var(--line2); border-top: 0; border-radius: 0 0 8px 8px; }
body.counter .inrows { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 12px; }   /* 11 ต.ค. v81: เดิม 300px = 3 ช่องยืดบน iPad */
.inrow { border: 1px solid var(--line2); border-left: 5px solid var(--line2); border-radius: 8px; padding: 8px 10px; display: grid; gap: 6px; }
.inrow.u-out { border-left-color: var(--rmRed); } .inrow.u-in { border-left-color: #FFB800; }
.inrow.late .inm { color: #E53935; font-weight: 600; }
.inl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inn { font: 600 22px var(--en); } .inty { font-size: 12px; color: var(--ink4); }
.inl .bs { font: 600 11px var(--th); padding: 3px 8px; border-radius: 6px; border: 1px solid transparent; }
.inl .bs.s-vi { background: #fff; color: var(--rmGreen); border: 2px solid #9CD3AE; } .inl .bs.s-rc { background: #1A3F8F; color: #fff; } .inl .bs.s-vc.rck { background: #FFB800; color: #1F1F1F; }
.intag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; } .intag.out { background: var(--rmRed); color: #fff; } .intag.in { background: #FFB800; color: #1F1F1F; }
.inm { font-size: 12px; color: var(--ink4); }
.inb { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .inb .btn { padding: 11px 8px; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 6px; } .inb .btn svg { width: 18px; height: 18px; }
.btn.infail { color: #E53935; border-color: #E53935; background: #fff; } .btn.infail.solid { background: #E53935; color: #fff; }
.inchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.inchips .chip { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; font: inherit; font-size: 14px; }
.inchips .chip[aria-pressed="true"] { background: #E53935; border-color: #E53935; color: #fff; }
/* แถบสลับ บอร์ดห้อง | ตรวจห้อง บนมือถือ (SIRIS 10 ต.ค.) */
.btabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 10px 0 6px; border: 1px solid var(--rmGreen); border-radius: 10px; overflow: hidden; }
.btabs a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; font-weight: 600; font-size: 14px; color: var(--rmGreen); text-decoration: none; background: #fff; }
.btabs a + a { border-left: 1px solid var(--rmGreen); } .btabs a.on { background: var(--rmGreen); color: #fff; } .btabs svg { width: 18px; height: 18px; }
.btabs .tbadge { margin-left: 2px; }
/* ตรวจไม่ผ่าน (SIRIS 10 ต.ค.): พื้นดำ ตัวขาว — ไม่ซ้ำสถานะอื่น */
.ctile.s-co.failx .bs, .brow.s-co.failx .bs, .bsheet .bs.s-co.failx, .toast.done .ds .bs.s-co.failx { background: #111; color: #fff; border-color: #111; }
/* แผ่นห้อง: กล่องเหตุผลตรวจไม่ผ่าน ตัวแดงชัด (SIRIS 10 ต.ค.) */
.failbox { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 4px; padding: 10px 12px; border: 2px solid #E53935; border-radius: 10px; background: #FDECEA; color: #C62828; font-size: 16px; line-height: 1.4; }
.failbox b { font-weight: 700; } .failbox svg { width: 22px; height: 22px; flex: none; color: #E53935; } .failbox .muted { display: block; font-size: 12px; color: #8a5a5a; margin-top: 2px; }
/* รูปหลักฐานตอนตรวจไม่ผ่าน (SIRIS 10 ต.ค.) */
.inpics { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; } .inpic { position: relative; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line2); }
.inpic img { width: 100%; height: 100%; object-fit: cover; } .inpic.up img { opacity: .55; } .inpic.err { border-color: #E53935; }
.inpic button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; }
.inpicbtn { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; } .inpicbtn svg { width: 18px; height: 18px; }
#infhk { width: 100%; padding: 10px; border: 1px solid var(--line2); border-radius: 8px; font: inherit; background: #fff; }
/* แผ่นห้องของแม่บ้าน: ดูอย่างเดียว (SIRIS 10 ต.ค.) */
.rohint { display: flex; gap: 8px; align-items: center; margin: 12px 0 2px; padding: 10px 12px; border-radius: 10px; background: #EEF5F0; color: var(--rmGreen); font-size: 14px; } .rohint svg { width: 20px; height: 20px; flex: none; }
/* ขอยกเลิกวันลาหลังอนุมัติ (10 ต.ค.) */
.cxl { display: block; font-size: 12.5px; color: var(--ok, #1f7a44); margin-top: 2px; }
.cxl.wait { color: var(--warn, #b26a00); }
.cxdays { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.lrow .lact { flex-wrap: wrap; justify-content: flex-end; }
/* 11 ต.ค. SIRIS: ปุ่ม มีจองเข้าวันนี้ = พื้นเขียว (สีเดียวกับปุ่มพักต่อ ทำความสะอาดแล้ว) */
.fxrow .btn.fxbooked { background: #2F8A5B; color: #fff; border: 1px solid #2F8A5B; }
.fxrow .btn.fxbooked:disabled { opacity: .6; }

/* 11 ต.ค. SIRIS: หมายเหตุในแผ่นห้อง = กล่องสีครีม · แตะแล้วเปิดป๊อปอัปสีครีมให้ฟร้อนพิมพ์แก้ */
.notebox { display: flex; gap: 10px; align-items: flex-start; width: 100%; margin: 10px 0 4px; padding: 10px 12px; border: 1px solid #E6D9C2; border-radius: 10px; background: #FBF5E9; color: var(--ink, #201E1D); font: inherit; text-align: left; cursor: pointer; }
.notebox:disabled { cursor: default; opacity: 1; }
.notebox > i { flex: none; width: 22px; height: 22px; color: #9A7B4F; margin-top: 2px; }
.notebox .nbt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notebox .nbx { font-size: 16px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.notebox .nbe { flex: none; align-self: center; font-size: 13px; font-weight: 600; color: #9A7B4F; border: 1px solid #D9C7A6; border-radius: 999px; padding: 3px 10px; background: #fff; }
.notepop { position: fixed; inset: 0; z-index: 30; background: rgba(32, 30, 29, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.npcard { width: 100%; max-width: 440px; background: #FBF5E9; border: 1px solid #E6D9C2; border-radius: 14px; padding: 16px; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.npcard .nph { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; margin-bottom: 10px; color: #5C4A2E; }
.npcard .nph i { width: 22px; height: 22px; color: #9A7B4F; }
.npcard textarea { width: 100%; box-sizing: border-box; min-height: 120px; padding: 10px 12px; border: 1px solid #D9C7A6; border-radius: 10px; background: #FFFDF8; font: inherit; font-size: 16px; line-height: 1.45; resize: vertical; }
.npcard .npn { font-size: 12px; margin-top: 6px; }
.npcard .npa { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.npcard .npa .btn { min-width: 96px; }
.npcard #npSave { background: #2F8A5B; color: #fff; border: 1px solid #2F8A5B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .notebox, :root:not([data-theme="light"]) .npcard { background: #FBF5E9; color: #201E1D; } }

/* 11 ต.ค. SIRIS: การ์ดห้องในหน้าตรวจห้อง = แตะทั้งการ์ด (ไม่มีปุ่มผ่าน/ไม่ผ่าน) → แผ่นเช็คลิสต์ */
button.inrow { width: 100%; background: #fff; font: inherit; text-align: left; cursor: pointer; position: relative; padding-right: 64px; }
button.inrow .ingo { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 600; color: var(--rmGreen, #2F8A5B); border: 1px solid #9FD3B5; border-radius: 999px; padding: 4px 10px; background: #EEF8F1; }
.inclh { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 6px; } .inclc { font: 600 15px var(--en); color: var(--ink4); }
.incl { display: grid; gap: 6px; }
.inci { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.inci .incb { flex: none; width: 24px; height: 24px; border: 2px solid #B9B3AC; border-radius: 6px; background: #fff; display: flex; align-items: center; justify-content: center; }
.inci[aria-pressed="true"] { background: #EEF8F1; border-color: #9FD3B5; } .inci[aria-pressed="true"] .incb { background: #2F8A5B; border-color: #2F8A5B; }
.inci[aria-pressed="true"] .incb::after { content: '✓'; color: #fff; font-weight: 700; font-size: 16px; line-height: 1; }
.inckb { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; } .inckb .btn { padding: 13px 8px; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.inckb #inckPass:disabled { background: #D9D5D0; border-color: #D9D5D0; color: #7A746E; } .inckb #inckPass:disabled svg { opacity: .5; }
.inckh { font-size: 12px; margin: 6px 0 0; min-height: 1em; }
/* 11 ต.ค. SIRIS: การ์ดห้องในหน้าตรวจห้อง = สี่เหลี่ยม 3 ช่องต่อแถว (แบบการ์ด Check in / Check out บนบอร์ด) · แถบสีบนสุด = ความเร่ง (แดง เอาท์→อิน · เหลือง เตรียม IN) */
.inrows { grid-template-columns: repeat(3, 1fr); }
button.inrow { padding: 10px 8px 8px; min-height: 112px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; border-left-width: 1px; border-top: 6px solid var(--line2); border-radius: 10px; }
button.inrow.u-out { border-top-color: var(--rmRed); border-left-color: var(--line2); } button.inrow.u-in { border-top-color: #FFB800; border-left-color: var(--line2); }
button.inrow .inl { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; }
button.inrow .inn { font: 600 26px/1 var(--en); }
button.inrow .inty { font-size: 11px; color: var(--ink4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
button.inrow .intag { font-size: 10px; padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
button.inrow .inm { font-size: 11px; line-height: 1.3; margin-top: auto; }
button.inrow .ingo { display: none; }

/* 11 ต.ค. SIRIS ดูบน iPad: หน้าบอร์ด/ตรวจห้อง กว้างขึ้นบนจอ ≥ 700px (เดิมกว้างสุด 480 เท่ามือถือ) · ช่องห้องเต็มความกว้าง (ช่องละ ≥ 112px) */
@media (min-width: 700px) {
  body:not(.counter)[data-pg="board"], body:not(.counter)[data-pg="inspect"] { max-width: 820px; }
  body:not(.counter)[data-pg="board"] .sheet-body, body:not(.counter)[data-pg="inspect"] .sheet-body { max-width: 640px; border-radius: 12px 12px 0 0; }
  body:not(.counter)[data-pg="inspect"] .inrows { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; }
  body:not(.counter)[data-pg="inspect"] button.inrow { min-height: 132px; } body:not(.counter)[data-pg="inspect"] button.inrow .inn { font-size: 30px; }
}
.inrows { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
/* 11 ต.ค. v81 SIRIS (ภาพ iPad "ยังไม่สวย"): ช่องห้องกระชับ — แถวบน เลขห้อง + ป้ายสถานะ (ขวา) · ประเภท · ป้ายแผน · ล่างสุด ผู้ทำ/เวลารอ */
button.inrow { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto 1fr; column-gap: 6px; row-gap: 4px; align-items: center; padding: 10px 10px 9px; min-height: 118px; }
button.inrow .inl { display: contents; }
button.inrow .inn { grid-column: 1; grid-row: 1; line-height: 1; }
button.inrow .bs { grid-column: 2; grid-row: 1; justify-self: end; font-size: 11px; padding: 3px 7px; }
button.inrow .inty { grid-column: 1 / -1; grid-row: 2; }
button.inrow .intag { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
button.inrow .inm { grid-column: 1 / -1; grid-row: 4; align-self: end; margin-top: 2px; padding-top: 6px; border-top: 1px dashed var(--line2); width: 100%; }
button.inrow.late { background: #FFF6F5; }
@media (min-width: 700px) { button.inrow { min-height: 128px; } }
body.counter button.inrow .inn { font-size: 30px; }
/* 11 ต.ค. v81: จอกว้าง (iPad/คอมฟร้อน) วางชั้นเรียงข้างกันแทนเต็มแถว · มือถือ = ชั้นละแถวเหมือนเดิม */
.inflw { display: grid; gap: 12px; margin-top: 10px; } .inflw .infl { margin: 0; }
@media (min-width: 700px) { .inflw { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); align-items: start; } }
@media (min-width: 700px) { .inflw .inrows { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; padding: 10px; } }

/* 11 ต.ค. SIRIS: ช่องทางติดต่อช่างบนแถบนัด (โทร / LINE / Facebook / อื่นๆ) */
.rappt .rct { display: inline-block; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .18); color: inherit; text-decoration: none; font-weight: 600; }
.rappt a.rct { text-decoration: underline; } .rappt .rct.line { background: #06C755; color: #fff; text-decoration: none; } .rappt .rct.fb { background: #1877F2; color: #fff; text-decoration: none; }

/* 11 ต.ค. SIRIS: รอจ่ายช่าง / ค้างคืนเงิน (ผู้บริหาร) */
.paycard .payprice { margin: 6px 0 2px; font-size: 15px; } .paycard .payprice b { font: 600 20px var(--en); }
.paycard .chk { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; } .paycard .chk input { width: 20px; height: 20px; }
.paycard .paycalc { font-size: 13px; margin-top: 4px; color: #1F7A44; min-height: 0; }

/* 11 ต.ค. SIRIS: เตือนแจ้งช่างเรื่องหัก ณ ที่จ่าย 3% ตอนนัดช่าง */
.rwht { margin: 4px 0 8px; padding: 8px 10px; border-radius: 8px; background: #FFF6E0; color: #6B4E00; font-size: 13px; line-height: 1.45; }

/* 11 ต.ค. SIRIS: ความคืบหน้างานซ่อมหลังนัดช่าง */
.rprog { margin-top: 6px; padding: 7px 10px; border-radius: 8px; background: #EEF3FB; border: 1px solid #C9D7EE; font-size: 14px; line-height: 1.45; }
.rprog.late { background: #FDF1F0; border-color: #F3B4B0; } .rproglate { color: #B3261E; font-weight: 600; font-size: 13px; margin-top: 2px; }
.rhist { margin-top: 4px; font-size: 13px; } .rhist summary { cursor: pointer; color: var(--ink4); } .rhist ul { margin: 4px 0 0; padding-left: 16px; } .rhist li { margin: 3px 0; }

/* 11 ต.ค. SIRIS: การ์ดงานซ่อม ปุ่มสี่เหลี่ยมคนละสี แทนกรอบเส้นประที่หน้าตาเหมือนกัน · แตะแล้วฟอร์มกางเต็มแถว (กรอบสีเดียวกับปุ่ม) */
.racts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.racts > :only-child { grid-column: 1 / -1; }
.racts details.rtile { margin: 0; border: 0; padding: 0; background: none; }
.racts details.rtile[open] { grid-column: 1 / -1; order: -1; }
.rtile > summary, button.rtile { list-style: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 76px; padding: 10px 8px; border-radius: 12px; border: 1.5px solid; font: inherit; font-size: 14px; font-weight: 600; text-align: center; cursor: pointer; line-height: 1.3; width: 100%; }
.rtile > summary::-webkit-details-marker { display: none; } .rtile > summary::marker { content: ''; }
.rtile .rti { font-size: 24px; line-height: 1; }
.rtile.blue > summary { background: #EAF1FB; border-color: #9DB8E3; color: #1E4F91; }
.rtile.green > summary { background: #E8F5EE; border-color: #8CC9A6; color: #1F6B45; }
button.rtile.orange { background: #FFF4E0; border-color: #E8C07A; color: #8A5A00; }
.rtile[open] > summary { flex-direction: row; min-height: 0; padding: 8px 12px; border-radius: 12px 12px 0 0; justify-content: flex-start; }
.rtile[open] > summary .rti { font-size: 18px; }
.rtile.blue[open] > .propf { border: 1.5px solid #9DB8E3; border-top: 0; border-radius: 0 0 12px 12px; padding: 10px 12px; background: #F7FAFE; }
.rtile.green[open] > .propf { border: 1.5px solid #8CC9A6; border-top: 0; border-radius: 0 0 12px 12px; padding: 10px 12px; background: #F6FBF8; }
.rtile.green .propf .btn.primary { background: #2F8A5B; border-color: #2F8A5B; } .rtile.blue .propf .btn.primary { background: #2D62A8; border-color: #2D62A8; }
.racts details.rtile[open] ~ :not([open]), .racts details.rtile[open] ~ button.rtile { min-height: 60px; }

/* 11 ต.ค. SIRIS: สมุด LOG กะ */
.logprev { border: 2px solid #E2B65C; background: #FFFBF0; }
.logl { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.logi { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; }
.logi.done { opacity: .6; } .logc { font-size: 20px; line-height: 1.2; flex: none; } .logb { flex: 1; min-width: 0; }
.logh { font-size: 15px; line-height: 1.45; } .logroom { display: inline-block; font: 600 14px var(--en); background: #EEF3F0; border-radius: 6px; padding: 0 6px; margin-right: 2px; }
.logm { font-size: 12px; margin-top: 2px; } .logdone { flex: none; padding: 6px 10px; font-size: 13px; }
.lognote { margin: 4px 0 8px; padding: 6px 10px; background: #fff; border-left: 4px solid #E2B65C; border-radius: 0 8px 8px 0; }
.logwarn { margin: 8px 0 0; font-weight: 600; color: #8A5A00; }
.logacked { margin: 8px 0; padding: 8px 12px; border-radius: 10px; background: #E8F5EE; color: #1F6B45; font-weight: 600; }
.logcats { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; } .logcat[aria-pressed="true"] { background: #1F3D33; color: #fff; border-color: #1F3D33; }
.logadd .chk, .logho .chk { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; } .logadd .chk input { width: 20px; height: 20px; }
.logauto { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 14px; }
.logadd textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 8px; }
.btabs a { white-space: nowrap; }   /* 11 ต.ค. SIRIS: บอร์ดห้องกลับเป็น 2 แท็บ (LOG แยกออก) */
.logclose { border: 2px solid #8B1A1A; background: #FBEDED; } .logclose .btn.primary { background: #8B1A1A; border-color: #8B1A1A; }   /* 11 ต.ค.: ปิดรอบในหน้า LOG (กะดึก) */

/* 11 ต.ค. SIRIS (REF Samsung Notes): สมุด LOG 1 วัน = 1 หน้า · ชั้นวางหน้าย่อ · หน้าสมุดมีเส้นบรรทัด · ปุ่มลอยเขียน */
:root { --lpaper: #fffdf8; --lrule: #ebe3d6; --lgreen: #24332e; --lred: #8B1A1A; --lhand: #2d4a8a; }
@media (min-width: 700px) { body:not(.counter)[data-pg="log"] { max-width: 1100px; } body:not(.counter)[data-pg="log"] .sheet-body { max-width: 560px; border-radius: 12px; } }
.lhead { margin: 12px 0 6px; } .ltop { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; } .ltop h2 { margin: 0; font-size: 22px; } .ltop .muted { font-size: 12px; }
.lsearch { display: flex; align-items: center; background: #e8e5e3; border-radius: 22px; padding: 2px 6px 2px 14px; margin: 8px 0; }
.lsearch input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 14px; padding: 8px 0; outline: none; }
.lsearch button { border: 0; background: none; font-size: 16px; padding: 6px 8px; cursor: pointer; }
.lchips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; } .lchips::-webkit-scrollbar { display: none; }
.lchips .chip { white-space: nowrap; flex: none; } .lchips .chip.on { background: var(--lgreen); border-color: var(--lgreen); color: #fff; } .lchips .chip.hot:not(.on) { background: #FBEDED; color: var(--lred); border-color: #F0C9C9; }
.lpast { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px; color: var(--ink2); position: relative; flex: none; padding: 5px 11px; border: 1px solid var(--line2); border-radius: 99px; background: #fff; cursor: pointer; }
.lpast input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.lgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; margin-top: 6px; }
.lpage { all: unset; cursor: pointer; display: block; text-align: center; min-width: 0; }
.lsheet { position: relative; height: 210px; overflow: hidden; text-align: left; background: var(--lpaper); border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.13); padding: 10px 10px 8px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 20px, var(--lrule) 20px 21px); background-position: 0 32px; }
.lsheet .hd { font-size: 10px; color: var(--ink4); border-bottom: 1px solid var(--lrule); padding-bottom: 3px; margin-bottom: 1px; background: var(--lpaper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lsheet .ln { font-size: 10.5px; line-height: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.lsheet .ln.sh { color: var(--lgreen); font-weight: 600; font-size: 9.5px; } .lsheet .ln.pin { color: var(--lred); } .lsheet .ln.hand { color: var(--lhand); font-style: italic; }
.lpage.now .lsheet { outline: 2.5px solid var(--lred); }
.lnow { position: absolute; top: 7px; right: 7px; font-size: 10px; background: var(--lred); color: #fff; padding: 0 7px; border-radius: 8px; }
.lstamp { position: absolute; right: 8px; bottom: 8px; font-size: 10px; border: 1.5px solid var(--lgreen); color: var(--lgreen); border-radius: 4px; padding: 0 5px; transform: rotate(-6deg); background: var(--lpaper); }
.lpage .nm { font-size: 14px; font-weight: 600; margin-top: 7px; } .lpage .dt { display: flex; gap: 4px; justify-content: center; min-height: 18px; margin-top: 1px; }
.lbadge { font-size: 11px; border-radius: 8px; padding: 0 6px; background: #eee9e4; color: var(--ink2); white-space: nowrap; } .lbadge.pin { background: #FBEDED; color: var(--lred); } .lbadge.mgr { background: #FDF4E3; color: #8A5A00; }
.lcrumb { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 10px 0; font-size: 13px; }
.linkbtn { border: 0; background: none; color: var(--blueTxt); font: inherit; font-size: 13px; padding: 6px 0; cursor: pointer; }
.lpaper { background: var(--lpaper); border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.08); padding: 14px 14px 10px; margin-bottom: 14px; }
.lph { border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin-bottom: 2px; } .lph h3 { margin: 0; font-size: 19px; }
.lgrow { display: grid; grid-template-columns: 40px 24px minmax(0, 1fr) auto; gap: 6px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--lrule); font-size: 14px; }
.lgrow .tm { color: var(--ink4); font-size: 12px; padding-top: 2px; } .lgrow .ic { font-size: 16px; line-height: 1.3; }
.lgrow .tx { min-width: 0; overflow-wrap: anywhere; } .lgrow .lrm { background: #efe9df; border-radius: 4px; padding: 0 5px; font-size: 13px; }
.lgrow .lby { display: block; font-size: 11px; color: var(--ink4); } .lgrow .hand { font-family: inherit; font-style: italic; color: var(--lhand); font-size: 15px; }
.lgrow.sys { color: var(--lgreen); font-size: 13px; background: #f3f6f4; border-radius: 6px; padding: 6px 4px; border-bottom: 0; margin: 4px 0; }
.lgrow.done .tx { opacity: .6; }
.lgrow .act { display: flex; gap: 4px; align-items: center; } .lmini { padding: 4px 8px; font-size: 12px; min-height: 0; }
.lstar { border: 0; background: none; font-size: 18px; line-height: 1; padding: 4px; cursor: pointer; color: #b8b2ad; } .lstar.on { color: inherit; }
.lgroup .lgh { all: unset; cursor: pointer; display: block; font-weight: 600; font-size: 14px; padding: 2px 0 6px; border-bottom: 2px solid var(--ink); color: var(--ink); }
.lfab { position: fixed; right: max(18px, calc(50vw - 540px)); bottom: 22px; z-index: 6; width: 60px; height: 60px; border-radius: 50%; border: 0; background: #fff; color: var(--lred); font-size: 26px; box-shadow: 0 3px 14px rgba(0,0,0,.2); cursor: pointer; display: grid; place-items: center; }
.lfab small { position: absolute; bottom: -18px; font-size: 10px; color: var(--ink2); white-space: nowrap; }
body.counter .lfab { right: max(24px, calc(50vw - 616px)); }
.lnb { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; margin-top: 10px; }
.lside { background: #eceaea; border-radius: 12px; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; align-self: start; position: sticky; top: 70px; }
.lbrand { font-weight: 600; font-size: 16px; padding: 4px 10px 10px; }
.lnav { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--ink2); }
.lnav .ic { width: 20px; text-align: center; } .lnav .n { margin-left: auto; font-size: 12px; color: var(--ink4); } .lnav .n.hot { background: var(--lred); color: #fff; border-radius: 10px; padding: 0 7px; font-weight: 600; }
.lnav.on { background: #dcd9d7; color: var(--ink); font-weight: 600; }
.lside hr { border: 0; border-top: 1px dashed #bdb8b5; margin: 8px 6px; } .lsub { font-size: 11px; color: var(--ink4); padding: 2px 10px; }
.lside .lpast { border: 0; background: none; padding: 9px 10px; font-size: 14px; border-radius: 8px; }
.lnb .lhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 0; } .lnb .lhead .ltop { flex: 1; min-width: 260px; } .lnb .lsearch { width: 320px; margin: 0; }
.lnb .lgrid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 24px 20px; margin-top: 14px; } .lnb .lsheet { height: 240px; }
.lnb .lpaper { padding: 20px 26px 14px; } .lnb .lgrow { grid-template-columns: 52px 28px minmax(0, 1fr) auto; padding: 10px 0; font-size: 15px; } .lnb .lph h3 { font-size: 24px; }
@media (min-width: 560px) { .lgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 11 ต.ค. SIRIS: เงินทอนตอนรับกะ = บังคับ · พื้นแดง */
.lcashreq { color: #8B1A1A; font-weight: 600; } .lcashreq input { background: #FDE7E7 !important; border: 2px solid #C62828 !important; color: #5a0e0e; font-weight: 600; } .lcashreq input::placeholder { color: #c98b8b; font-weight: 400; }
/* 11 ต.ค. SIRIS: ติ๊กรับทราบก่อนรับกะ */
.lseen { border: 1.5px solid #C62828; background: #FDE7E7; color: #8B1A1A; border-radius: 6px; font: inherit; font-size: 12px; font-weight: 600; padding: 4px 8px; cursor: pointer; white-space: nowrap; }
.lseen.on { border-color: #1F6B45; background: #E8F5EE; color: #1F6B45; }
.lseenbar { margin: 6px 0 8px; padding: 8px 12px; border-radius: 8px; background: #FDE7E7; color: #8B1A1A; font-weight: 600; } .lseenbar.ok { background: #E8F5EE; color: #1F6B45; }
#lack:disabled { opacity: .45; cursor: not-allowed; }
/* 11 ต.ค. SIRIS: เงินทอนตอนรับกะ — ยังไม่กรอก = แดง · พิมพ์ตัวเลขแล้ว = เขียว */
.lcashreq input:not(:placeholder-shown):valid { background: #E8F5EE !important; border-color: #1F6B45 !important; color: #14482f; }
.lcashreq:has(input:not(:placeholder-shown):valid) { color: #1F6B45; }
/* 11 ต.ค. SIRIS: การ์ดต้อนรับเข้ากะ (หลังรับกะ) */
.lw { position: fixed; inset: 0; z-index: 40; background: rgba(20, 30, 26, .55); display: flex; align-items: flex-start; justify-content: center; padding: 70px 18px 18px; overflow: auto; animation: lwin .25s ease-out; }
@keyframes lwin { from { opacity: 0; } to { opacity: 1; } }
.lwcard { position: relative; width: 100%; max-width: 400px; background: #FBF5E9; border-radius: 22px; padding: 26px 22px 20px; text-align: center; box-shadow: 0 16px 40px rgba(0,0,0,.3); overflow: hidden; animation: lwup .3s ease-out; }
@keyframes lwup { from { transform: translateY(18px); } to { transform: none; } }
.lwcard::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, #8B1A1A, #c9a24a, #24332e); }
.lwok { display: inline-block; font-size: 12px; font-weight: 600; color: #1F6B45; background: #E8F5EE; border-radius: 99px; padding: 3px 12px; }
.lwicon { font-size: 54px; line-height: 1; margin: 10px 0 6px; }
.lwhi { font-size: 24px; font-weight: 600; margin: 6px 0 2px; color: #201e1d; }
.lwmsg { font-size: 16px; color: #3a3636; margin: 6px 0 16px; line-height: 1.55; }
.lwsum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; }
.lwsum div { background: #fff; border-radius: 12px; padding: 10px 4px; font-size: 11px; color: #6b6767; } .lwsum b { display: block; font-size: 18px; color: #201e1d; }
.lwtip { font-size: 13px; background: #fff; border-left: 4px solid #c9a24a; border-radius: 0 10px 10px 0; padding: 8px 12px; text-align: left; margin-bottom: 16px; color: #444; }
.lwbtn { display: block; width: 100%; border: 0; background: #24332e; color: #fff; border-radius: 12px; padding: 13px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.lwsub { font-size: 11px; color: #6b6767; margin-top: 10px; }
.lw.night .lwcard { background: #1f2a33; } .lw.night .lwhi { color: #fff; } .lw.night .lwmsg, .lw.night .lwtip { color: #d9d2c6; } .lw.night .lwtip { background: #2a3742; }
.lw.night .lwsum div { background: #2a3742; color: #b9b2a8; } .lw.night .lwsum b { color: #fff; } .lw.night .lwbtn { background: #c9a24a; color: #1f2a33; } .lw.night .lwsub { color: #9a948b; }
/* 11 ต.ค. SIRIS: คำขอบคุณหลายภาษา (การ์ดปิดรอบ) */
.lwmsg.lwbig { font-size: 22px; font-weight: 600; margin-bottom: 4px; font-family: 'Noto Serif Thai', 'Source Serif 4', 'Hiragino Mincho ProN', 'Yu Mincho', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', serif; }
.lwmean { font-size: 13px; color: #6b6767; margin: 0 0 16px; } .lw.night .lwmean { color: #b9b2a8; }
.lwmean { line-height: 1.6; }
/* 11 ต.ค. SIRIS: การ์ดรับกะช่วงเย็น/ดึก = ตะวันตกดิน สดใส */
.lw.eve .lwcard { background: linear-gradient(170deg, #FFE7C7 0%, #FFD3BC 45%, #FBC4CF 100%); }
.lw.eve .lwcard::before { background: linear-gradient(90deg, #F59E0B, #F97362, #C2649A); }
.lw.eve .lwhi { color: #5A2A1E; } .lw.eve .lwmsg { color: #6B3A2C; }
.lw.eve .lwsum div { background: rgba(255,255,255,.75); color: #8A5A4A; } .lw.eve .lwsum b { color: #5A2A1E; }
.lw.eve .lwtip { background: rgba(255,255,255,.8); border-left-color: #F97362; color: #6B3A2C; }
.lw.eve .lwbtn { background: linear-gradient(90deg, #F97362, #E5577A); color: #fff; } .lw.eve .lwsub { color: #8A5A4A; }
/* 11 ต.ค. SIRIS: การ์ดรับกะ 05:00–16:59 = รุ่งอรุณ (พาสเทลฟ้า-ชมพู สดชื่น) */
.lw.dawn .lwcard { background: linear-gradient(170deg, #DDF0FF 0%, #EAE6FF 50%, #FFE1EC 100%); }
.lw.dawn .lwcard::before { background: linear-gradient(90deg, #7CC4F5, #B9A7F2, #F7A8C4); }
.lw.dawn .lwhi { color: #23395B; } .lw.dawn .lwmsg { color: #3B4C6B; }
.lw.dawn .lwsum div { background: rgba(255,255,255,.8); color: #5B6B88; } .lw.dawn .lwsum b { color: #23395B; }
.lw.dawn .lwtip { background: rgba(255,255,255,.85); border-left-color: #7CC4F5; color: #3B4C6B; }
.lw.dawn .lwbtn { background: linear-gradient(90deg, #5BB0EC, #9C8CF0); color: #fff; } .lw.dawn .lwsub { color: #5B6B88; }
/* 11 ต.ค. SIRIS: แถบเมนูล่าง ผู้บริหาร/หัวหน้าทีม */
.mnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; background: #fff; border-top: 1px solid var(--line2); display: grid; grid-template-columns: repeat(5, 1fr); padding: 5px 4px calc(8px + env(safe-area-inset-bottom)); max-width: 1100px; margin: 0 auto; }
.mnav a, .mnav button { all: unset; cursor: pointer; text-align: center; font-size: 10.5px; color: var(--ink4); padding: 3px 0; position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mnav .i { display: block; font-size: 20px; line-height: 1.35; margin: 0 8px; }
.mnav a.on { color: #24332e; font-weight: 600; } .mnav a.on .i { background: #e3ece8; border-radius: 12px; }
.mnav .dot { position: absolute; top: 0; left: calc(50% + 6px); min-width: 16px; font-size: 9px; line-height: 15px; background: #8B1A1A; color: #fff; border-radius: 8px; padding: 0 4px; }
body.hasnav main, body.hasnav #app { padding-bottom: 84px; } body.hasnav .lfab { bottom: 84px; } body.hasnav .toast { bottom: 84px; }
.mngrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; }
.mng { text-align: center; font-size: 11.5px; color: var(--ink); text-decoration: none; }
.mng .i { display: grid; place-items: center; height: 56px; border-radius: 14px; background: #f3efe9; font-size: 24px; margin-bottom: 4px; }
.mng .i.red { background: #fbeded; } .mng .i.green { background: #e3ece8; } .mng .i.blue { background: #e6f1fb; } .mng .i.gold { background: #fbf1dc; }
/* 11 ต.ค. SIRIS: รับกะรายคน · รายการที่ต้องติ๊กอยู่ในแถบรับกะ · เงินทอนกะเที่ยงไม่บังคับ (เทา) */
.lneed { background: #fffdf8; border-radius: 10px; padding: 2px 10px; margin: 4px 0 6px; }
.lneed .lgrow:last-child { border-bottom: 0; }
.lcashopt { color: var(--ink4); } .lcashopt input { background: #f1f0ef !important; border: 1.5px dashed #b9b4b1 !important; }
/* 11 ต.ค. SIRIS: การ์ดดีใจ งานฝากเสร็จ (เขียวมิ้นต์-เหลือง) */
.lw.party .lwcard { background: linear-gradient(165deg, #E3F8EC 0%, #F1FAD9 55%, #FFF4C9 100%); }
.lw.party .lwcard::before { background: linear-gradient(90deg, #2BB673, #9BD34B, #F5C542); }
.lw.party .lwhi { color: #1F5A3A; } .lw.party .lwmsg { color: #2E5B44; font-weight: 600; }
.lw.party .lwsum div { background: rgba(255,255,255,.85); color: #5C7A68; } .lw.party .lwsum b { color: #1F5A3A; }
.lw.party .lwtip { background: rgba(255,255,255,.85); border-left-color: #2BB673; color: #2E5B44; }
.lw.party .lwbtn { background: linear-gradient(90deg, #2BB673, #6CC24A); color: #fff; } .lw.party .lwsub { color: #5C7A68; }
.lw .lwicon .rparty { font-size: 44px; margin: 0; }
/* 11 ต.ค. SIRIS: แก้ไข LOG · ป้ายแก้ไข · บันทึกการแก้ไขท้ายหน้าวัน */
.ledit { border: 0; background: none; font-size: 15px; padding: 4px; cursor: pointer; opacity: .55; } .ledit:hover { opacity: 1; }
.ledited { color: #8A5A00; }
.ledits { background: #fbf8f1; } .ledrow { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 6px; padding: 8px 0; border-bottom: 1px dashed var(--lrule); font-size: 13px; }
.ledrow .tm { color: var(--ink4); font-size: 12px; } .ledfrom { color: #8a8686; text-decoration: none; margin-top: 2px; } .ledfrom::before { content: ''; } .ledto { color: #1F5A3A; margin-top: 1px; }
.lreopen { background: #FDF4E3; border-radius: 8px; padding: 6px 8px; color: #8A5A00; font-weight: 600; }   /* 11 ต.ค.: ย้อน เสร็จแล้ว */
/* 11 ต.ค. SIRIS: การ์ดขาวกลางจอ (บันทึก/แก้ไข LOG) แล้วหายเอง */
.flash { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; pointer-events: none; }
.flash-card { background: #fff; border-radius: 18px; padding: 22px 34px; box-shadow: 0 12px 40px rgba(0,0,0,.22); text-align: center; min-width: 220px; animation: flin .22s ease-out; transition: opacity .35s, transform .35s; }
.flash-ic { font-size: 40px; line-height: 1.1; } .flash-tx { font-size: 20px; font-weight: 600; color: #1F5A3A; margin-top: 6px; }
.flash.out .flash-card { opacity: 0; transform: scale(.94); }
@keyframes flin { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
/* 11 ต.ค. SIRIS: ทุกข้อความแจ้ง = การ์ดกลางจอ · สีตามชนิด */
.flash-card { max-width: min(86vw, 460px); }
.flash.warn .flash-tx { color: #9A5B00; } .flash.err .flash-tx { color: #B3261E; } .flash.warn .flash-card { border-top: 4px solid #F0A43A; } .flash.err .flash-card { border-top: 4px solid #D93B30; }
.flash.ok .flash-card { border-top: 4px solid #2BB673; }
.flash-tx { font-size: 18px; line-height: 1.45; }
/* 11 ต.ค. SIRIS: การ์ดยืนยันบอร์ดห้อง = กลางจอ ตัวใหญ่ · ขอบบนสีตามสถานะ · หาย 2 วิ */
.toast.done.mid, body.counter .toast.done.mid { top: 50%; bottom: auto; left: 50%; transform: translate(-50%, -50%); z-index: 46; min-width: 260px; max-width: min(86vw, 420px); padding: 18px 26px 16px; border: 0; border-top: 6px solid var(--rmGreen); border-radius: 18px; box-shadow: 0 12px 40px rgba(0,0,0,.22); text-align: center; justify-items: center; gap: 8px; font-size: 15px; pointer-events: none; animation: flin .2s ease-out; }
.toast.done.mid .dn { font-size: 18px; } .toast.done.mid .dn b { font-size: 34px; }
.toast.done.mid .ds { font-size: 16px; } .toast.done.mid .ds .bs { font-size: 18px; padding: 4px 14px; border-radius: 8px; }
.toast.done.mid .db { font-size: 13px; }
.toast.done.mid.st-vi, .toast.done.mid.st-vc { border-top-color: #2F8A5B; } .toast.done.mid.st-ooo { border-top-color: #5F5B5B; } .toast.done.mid.st-dnd { border-top-color: var(--rmRed); }
.toast.done.mid.st-co, .toast.done.mid.st-rc { border-top-color: #1A3F8F; } .toast.done.mid.st-rs { border-top-color: #9B7BC4; } .toast.done.mid.st-ih, .toast.done.mid.st-ihc { border-top-color: #E53935; }
/* 11 ต.ค. SIRIS: ปุ่ม แก้ไข มุมขวาของหน้าวัน · กดแล้วดินสอโผล่ทุกบรรทัด */
.lph { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.ledmode { flex: none; border: 1.5px solid var(--line); background: #fff; color: var(--ink2); border-radius: 99px; padding: 6px 16px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; margin-bottom: 2px; }
.ledmode.on { background: #24332e; border-color: #24332e; color: #fff; }
.ledit { opacity: .85; }
/* 11 ต.ค. SIRIS: ปุ่ม เขียน LOG = แคปซูลใหญ่ สีแดง AMIRI · ไอคอนดินสอในวงกลมขาว */
.lfab.big { width: auto; height: 62px; border-radius: 31px; padding: 0 26px 0 8px; display: inline-flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #A52222, #7A1414); color: #fff; box-shadow: 0 8px 22px rgba(139, 26, 26, .38), 0 2px 6px rgba(0,0,0,.15); font: 600 17px var(--th); letter-spacing: .01em; transition: transform .12s, box-shadow .12s; }
.lfab.big:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(139, 26, 26, .45), 0 2px 6px rgba(0,0,0,.15); }
.lfab.big:active { transform: scale(.97); }
.lfab.big .fic { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #8B1A1A; display: grid; place-items: center; flex: none; }
.lfab.big .fic svg { width: 24px; height: 24px; }
.lfab.big small { display: none; }
@media (max-width: 480px) { .lfab.big { height: 56px; padding: 0 20px 0 6px; font-size: 16px; } .lfab.big .fic { width: 42px; height: 42px; } }
/* 11 ต.ค.: มือถือ (จอแคบ) บรรทัดที่มีปุ่ม รับทราบ/เสร็จแล้ว → ปุ่มลงไปใต้ข้อความ (เดิมข้อความถูกบีบเหลือคำละบรรทัด) */
@media (max-width: 600px) {
  .lgrow .act:has(.lseen, .lmini) { grid-column: 3 / -1; grid-row: 2; justify-content: flex-start; flex-wrap: wrap; margin-top: 6px; }
}
/* 11 ต.ค. SIRIS: ปุ่มเขียน LOG = วงกลมแบบเดิม ใหญ่ขึ้น ชัดขึ้น สีเขียว · ป้ายชื่อใต้ปุ่ม */
.lfab.round { width: 72px; height: 72px; border-radius: 50%; padding: 0; background: linear-gradient(145deg, #34A06C, #1F6B47); color: #fff; box-shadow: 0 8px 22px rgba(31, 107, 71, .40), 0 2px 6px rgba(0,0,0,.15); bottom: 34px; transition: transform .12s, box-shadow .12s; }
.lfab.round .fic { display: grid; place-items: center; } .lfab.round .fic svg { width: 32px; height: 32px; }
.lfab.round:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31, 107, 71, .48), 0 2px 6px rgba(0,0,0,.15); } .lfab.round:active { transform: scale(.95); }
.lfab.round small { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); font: 700 13px var(--th); color: #1F6B47; background: rgba(255,255,255,.92); padding: 1px 9px; border-radius: 99px; box-shadow: 0 1px 4px rgba(0,0,0,.12); white-space: nowrap; }
body.hasnav .lfab.round { bottom: 100px; }
@media (max-width: 480px) { .lfab.round { width: 64px; height: 64px; } .lfab.round .fic svg { width: 28px; height: 28px; } }
/* F2 (ตรวจอิสระ 11 ต.ค.): ม่านล็อกเคาน์เตอร์อยู่บนสุดเสมอ (เหนือการ์ด/ข้อความแจ้ง/โน้ตห้อง) */
.clock { z-index: 90; }
/* 13 ต.ค. SIRIS: งานของฉัน (Front) = การ์ดหมวด → กดเข้าไปดู */
.tcats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; margin-top: 12px; }
.tcat { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 16px; border-radius: 10px; border: 1px solid var(--line2); border-left: 6px solid var(--red); background: var(--white); cursor: pointer; font: inherit; color: var(--ink); min-height: 88px; }
.tcat.amber { border-left-color: #D9822B; }
.tcat.zero { border-left-color: var(--line2); opacity: .7; }
.tcat .tci { font-size: 30px; line-height: 1; }
.tcat .tct { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tcat .tct b { font: 600 17px var(--th); }
.tcat .tct small { color: var(--ink3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcat .tcn { min-width: 34px; height: 34px; padding: 0 9px; border-radius: 99px; background: var(--red); color: #fff; font: 700 17px/34px var(--th); text-align: center; }
.tcat.amber .tcn { background: #D9822B; }
.tcat.zero .tcn { background: var(--line2); color: var(--ink3); }
.tcat .tcgo { font-size: 24px; color: var(--ink4); }
.tcback { margin-top: 12px; }
.tfol { list-style: none; padding: 0; margin: 0; }
.tfol li { padding: 10px 0; border-bottom: 1px solid var(--line2); display: flex; flex-direction: column; gap: 2px; }
.tfol .tfb { font-size: 12px; }
/* 13 ต.ค. SIRIS: งานที่ต้องตาม = การ์ดทีละเรื่อง (อ่านง่ายกว่าบรรทัด) */
.tfcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.tfcard { display: flex; flex-direction: column; gap: 10px; text-align: left; width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line2); border-left: 6px solid #D9822B; background: var(--white); cursor: pointer; font: inherit; color: var(--ink); }
.tfcard.mgr { border-left-color: var(--red); }
.tfh { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tfroom { font: 700 18px var(--th); background: #FBF0E3; color: #8A4B10; border-radius: 6px; padding: 2px 10px; }
.tfroom.none { font-size: 13px; font-weight: 600; background: var(--chip); color: var(--ink3); }
.tftime { font-size: 13px; color: var(--ink4); white-space: nowrap; }
.tftx { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.tff { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink3); border-top: 1px dashed var(--line2); padding-top: 8px; }
.tff .tfgo { margin-left: auto; color: var(--teal, #00657F); font-weight: 600; }
.tfcard, .tcat { min-width: 0; white-space: normal; }   /* ปุ่มไม่ดันการ์ดเกินจอมือถือ */
/* 13 ต.ค. SIRIS: งานซ่อม (Front) = การ์ดสี่เหลี่ยมสั้น → กดเปิดเต็ม · ขอบซ้ายตามระดับ */
.rmini { border-left-color: var(--green); }
.rmini.LY { border-left-color: #E0B000; }
.rmini.LR { border-left-color: var(--red); border-color: var(--red); border-left-width: 6px; }
.rmini .rlvl { margin-bottom: 0; }
.rmini .tftx { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* 13 ต.ค. SIRIS: รับกะเช้า → ไฟล์ Housekeeping รอบเช้า (แดงประ = ยังไม่แนบ · ส้ม = ดูก่อนยืนยัน · เขียว = อัปเดตแล้ว) */
.lhk { border-radius: 10px; padding: 12px; margin: 4px 0 10px; border: 2px dashed #C62828; background: #FDF1F1; }
.lhk.rev { border: 2px solid #D9822B; background: #FFF6EA; }
.lhk.ok { border: 2px solid #1F6B45; background: #EEF8F2; }
.lhkt { font-weight: 700; font-size: 15px; }
.lhks { font-size: 12px; color: var(--ink3); margin: 4px 0 8px; line-height: 1.5; display: block; }
.lhkpick { cursor: pointer; }
.lhkdiff { background: #fff; border-radius: 8px; padding: 2px 10px; margin: 6px 0; font-size: 14px; }
.lhkdiff > div { padding: 8px 0; border-bottom: 1px dashed var(--line2); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; } .lhkdiff > div:last-child { border-bottom: 0; }
.lhkdiff .rm { font-size: 16px; min-width: 40px; }
.ltag { font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 8px; white-space: nowrap; background: #E7F0F8; color: #1d4f7a; }
.ltag.add { background: #E8F5EE; color: #1F6B45; } .ltag.cx { background: #FDE7E7; color: #8B1A1A; } .ltag.chg { background: #FFF1D6; color: #7a5200; }
.lhka { display: flex; gap: 8px; flex-wrap: wrap; }
.lhkwhy { grid-column: 1 / -1; margin: 4px 0 0; text-align: center; color: #8B1A1A; font-size: 13px; font-weight: 600; }
/* 13 ต.ค. SIRIS: ตัวตนด้วย QR (คอมฟร้อน · iPad · มือถือกลาง) + โหมดตรวจห้องแม่บ้าน (สีม่วง) */
:root { --hk: #6B4FA0; --hkSoft: #EFE9F8; }
.dqr { display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 12px 0; }
.dqrbox { width: 220px; height: 220px; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.dqrbox svg { width: 100%; height: 100%; }
.dqrt { display: flex; flex-direction: column; gap: 8px; max-width: 280px; text-align: left; font-size: 14px; }
.dqrt span { color: var(--ink3); font-size: 13px; line-height: 1.5; }
.dqor { text-align: center; margin: 4px 0 8px; }
.clock .dqrt { color: var(--ink); }
.cnav.hk { border-bottom-color: #b9a6dc; }
.cnav .btn.hk, .cnames .btn.hk { background: var(--hk); border-color: var(--hk); color: #fff; }
.dband { background: var(--hkSoft); color: var(--hk); font-weight: 700; font-size: 14px; padding: 8px 24px; }
.inself { display: inline-block; font-size: 11px; background: #FFF4E0; color: #8A5A00; border-radius: 6px; padding: 1px 6px; }
.deskchip { position: fixed; left: 12px; bottom: 12px; z-index: 40; border: 1px solid var(--teal, #00657F); background: #fff; color: var(--teal, #00657F); font: 700 14px var(--th); padding: 10px 14px; border-radius: 99px; box-shadow: 0 4px 14px rgba(0,0,0,.12); cursor: pointer; }
.deskchip.on { background: var(--teal, #00657F); color: #fff; }
.deskchip.hk { background: var(--hk); border-color: var(--hk); color: #fff; }
.dqclaim p { line-height: 1.6; } .dqok { text-align: center; } .dqok .dqbig { font-size: 54px; color: #1F6B45; line-height: 1; margin: 6px 0; }
/* 13 ต.ค. SIRIS: ปุ่มออกจากระบบ (คอมฟร้อน/iPad) → หน้าสแกน QR ใหม่ */
.cme { text-align: center; padding: 6px 0 2px; } .cme h3 { margin: 8px 0 2px; font: 700 22px var(--th); }
.cmeav { width: 64px; height: 64px; border-radius: 99px; margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 30px; background: #E7F0F3; }
.cmeav.hk { background: var(--hkSoft, #EFE9F8); }
.cmeout { margin-top: 14px; background: #fff; color: var(--red); border: 2px solid var(--red); font-size: 15px; min-height: 48px; }
/* 13 ต.ค. SIRIS: รับกะก่อนใช้งาน (เมนู 🔒) + ป๊อปอัปหมดกะเช้า 15:00 / 15:50 / 16:00 */
.cnav a.lk { opacity: .45; }
.sglock { background: #FDE7E7; color: #8B1A1A; font-weight: 700; padding: 10px 14px; border-radius: 8px; margin: 10px 0; }
body.sglocked .lfab { display: none; }
.sgpop { position: fixed; inset: 0; z-index: 80; background: rgba(20,30,26,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sgcard { width: 100%; max-width: 360px; border-radius: 24px; padding: 24px 20px 18px; text-align: center; position: relative; overflow: hidden; box-shadow: 0 18px 44px rgba(0,0,0,.32); background: #fff; }
.sgcard.hour { border-top: 6px solid #c9a24a; } .sgcard.hour .sgic { font-size: 40px; } .sgcard.hour h3 { margin: 6px 0 4px; font: 700 19px var(--th); } .sgcard.hour p { margin: 0 0 10px; color: #444; }
.sgcard.hour ul { text-align: left; font-size: 13px; color: #444; margin: 0 0 12px; padding-left: 20px; line-height: 1.7; } .sgcard.hour .btn { margin-top: 8px; }
.sgcard.gold { background: linear-gradient(170deg, #FFF6E2 0%, #FFE6B3 55%, #FFD58A 100%); }
.sgring { width: 96px; height: 96px; margin: 2px auto 8px; border-radius: 50%; background: conic-gradient(#D9822B 0 83%, rgba(217,130,43,.18) 83% 100%); display: flex; align-items: center; justify-content: center; }
.sgring div { width: 78px; height: 78px; border-radius: 50%; background: #FFF8EA; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sgring b { font-size: 26px; color: #8A4B10; line-height: 1; } .sgring small { font-size: 11px; color: #8A4B10; }
.sgchip { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 99px; background: rgba(255,255,255,.7); color: #8A4B10; }
.sghi { font: 700 22px var(--th); margin: 10px 0 4px; } .sgmsg { font-size: 16px; line-height: 1.6; margin: 0 0 14px; }
.gold .sgmsg { color: #4a3a22; }
.sgtips { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; } .sgtips span { font-size: 11px; background: rgba(255,255,255,.75); border-radius: 99px; padding: 4px 10px; color: #6b5532; }
.sgbtn { display: block; width: 100%; border-radius: 14px; padding: 13px; font: 700 15px var(--th); border: 0; cursor: pointer; }
.gold .sgbtn { background: #8A4B10; color: #fff; }
.sgcard.dusk { background: linear-gradient(170deg, #FFB37A 0%, #F48C7F 40%, #B5679E 78%, #6E5A9E 100%); color: #fff; }
.sgsun { width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 4px; background: radial-gradient(circle at 50% 40%, #FFF3C4, #FFC46B 60%, rgba(255,196,107,0) 72%); position: relative; }
.sgsun::after { content: '🙏'; font-size: 38px; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.dusk .sgmsg { color: #FFF3EC; } .sgsub { font-size: 12px; color: #FFE6DA; margin: -6px 0 14px; }
.sgstat { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 0 0 16px; } .sgstat div { background: rgba(255,255,255,.18); border-radius: 12px; padding: 8px 4px; font-size: 11px; color: #FFEFE6; } .sgstat b { display: block; font-size: 18px; color: #fff; }
.dusk .sgbtn.out { background: #fff; color: #8B1A1A; } .dusk .sgbtn.ext { margin-top: 8px; background: transparent; border: 1.5px solid rgba(255,255,255,.75); color: #fff; font-size: 14px; padding: 11px; }
.sgcd { font-size: 11px; color: #FFE6DA; margin-top: 8px; }
/* 13 ต.ค. SIRIS: ปุ่มยกเลิกจอง (ห้อง 207) */
/* 13 ต.ค. SIRIS: ปุ่มยกเลิกจอง = แดงทึบ เต็มแถวบนสุด · ปุ่มที่เหลือ 2 คอลัมน์เท่ากัน (สมดุล) */
.fxrow .bacts .btn { min-height: 46px; font-size: 13px; font-weight: 600; border-radius: 6px; }
.fxrow .btn.fxunbook { grid-column: 1 / -1; order: -1; background: #8B1A1A; color: #fff; border: 1px solid #8B1A1A; }
.fxrow .btn.fxunbook:disabled { opacity: .6; }
.fxrow .btn.fxbooked { grid-column: 1 / -1; order: -1; }
/* 13 ต.ค. SIRIS: ฟร้อนเปลี่ยนหมวดห้อง (กล่องหมวด + ตัวเลือก 5 สีตามบอร์ด) */
.fxplan { display: flex; align-items: center; gap: 10px; width: 100%; margin: 6px 0 8px; padding: 12px; border: 2px solid var(--teal, #00657F); border-radius: 10px; background: #fff; font: inherit; cursor: pointer; text-align: left; }
.fxplan b { flex: 1; font-size: 15px; } .fxplan .pkgo { color: var(--teal, #00657F); font-weight: 700; font-size: 13px; }
.pkdot { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.pkopts { display: flex; flex-direction: column; gap: 8px; }
.pkopt { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; width: 100%; padding: 12px 14px; border-radius: 10px; border: 3px solid transparent; font: inherit; text-align: left; cursor: pointer; }
.pkopt b { font-size: 15px; } .pkopt small { font-size: 11px; opacity: .9; flex-basis: 100%; }
.pkopt { position: relative; } .pkopt .pknow { position: absolute; right: 12px; top: 12px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.3); border-radius: 99px; padding: 2px 10px; }
.pkopt.cur { border-color: var(--teal, #00657F); } .pkopt.odd { opacity: .55; }
.pkopt.g-turn, .pkdot.g-turn { background: var(--rmRed); color: #fff; }
.pkopt.g-in, .pkdot.g-in { background: var(--rmGold); color: var(--rmGreen); }
.pkopt.g-out, .pkdot.g-out { background: #F3C4CF; color: #6B1E33; }
.pkopt.g-stay, .pkdot.g-stay { background: var(--rmGreen); color: #fff; }
.pkopt.g-vac, .pkdot.g-vac { background: #C8E6C9; color: #1B4D2B; }
/* 13 ต.ค. SIRIS (feedback พนักงาน): หน้าล็อก = แตะชื่อ + PIN (ซ้าย) · QR (ขวา) · แป้นตัวเลข */
.dlog { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: start; text-align: left; margin-top: 10px; }
@media (max-width: 760px) { .dlog { grid-template-columns: 1fr; } }
.dlh { font-size: 13px; font-weight: 700; color: var(--ink3); margin: 0 0 8px; } .dlh.hk { margin-top: 14px; color: var(--hk, #6B4FA0); }
.dlog .cnames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dlog .cnames .btn { min-height: 52px; font-size: 15px; }
.dlduty { color: #9be3b3; font-size: 10px; }
.dlqr { background: #fff; border-radius: 12px; padding: 12px; } .dlqr .dqr { flex-direction: column; margin: 0; } .dlqr .dqrbox { width: 180px; height: 180px; }
.pinpop { position: fixed; inset: 0; z-index: 95; background: rgba(20,30,26,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pincard { background: #fff; border-radius: 18px; padding: 20px; width: 100%; max-width: 320px; text-align: center; box-shadow: 0 14px 36px rgba(0,0,0,.3); }
.pincard h3 { margin: 0 0 2px; font: 700 20px var(--th); } .pincard .muted { margin: 0 0 10px; }
.pinerr { background: #FDE7E7; color: #8B1A1A; border-radius: 8px; padding: 8px; font-size: 12px; margin-bottom: 10px; line-height: 1.5; }
.pindots { display: flex; justify-content: center; gap: 12px; margin: 6px 0 14px; } .pindots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--teal, #00657F); } .pindots i.f { background: var(--teal, #00657F); }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pinpad button { border: 0; background: #f3f2f2; border-radius: 10px; padding: 14px 0; font: 700 22px var(--en, sans-serif); cursor: pointer; }
.pinpad button.k { background: transparent; font: 600 14px var(--th); color: var(--ink3); }
.pinpop.busy .pinpad { opacity: .4; pointer-events: none; }
.dqhkno { color: var(--red, #8B1A1A); font-weight: 700; text-align: center; padding: 10px; line-height: 1.5; }   /* 15 ต.ค.: แม่บ้านสแกนที่เครื่องที่ไม่ใช่ iPad */
/* 15 ต.ค. ตรวจอิสระ H2/F4: การ์ด "ไม่ได้บันทึก" ค้างจนแตะ */
.flash.sticky { pointer-events: auto; background: rgba(20,30,26,.35); cursor: pointer; }
.flash.sticky .flash-card { border: 3px solid var(--red, #8B1A1A); }
.flash.err .flash-tx { color: var(--red, #8B1A1A); }
.flash-ok { margin-top: 12px; font-size: 13px; color: #6b6767; }
/* I3 งานแก้ห้อง (29 ต.ค.): เช็คลิสต์ทีละข้อ · ข้อไม่ติ๊กมีช่องเหตุผล */
.fixitem { padding: 8px 0; border-bottom: 1px solid var(--line2); } .fixitem:last-child { border-bottom: 0; }
.fixrow { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; line-height: 1.4; } .fixrow input { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.fixwhy { display: flex; gap: 6px; margin: 6px 0 0 30px; } .fixwhy input { flex: 1; min-width: 0; padding: 7px 9px; border: 1px solid var(--line2); border-radius: 8px; font: inherit; font-size: 14px; }
.fixrep { display: grid; gap: 6px; padding: 10px; background: #FFF6E5; border-radius: 10px; color: var(--ink2); }

/* I15 หน้า "น้ำ" (1 พ.ย. · แบบอนุมัติ design/PCE_water_dashboard_preview*.html) · มือถือเรียงลง · จอกว้างการ์ดขาว 2 คอลัมน์ + กราฟเต็มกว้าง */
.wtr { display: grid; gap: 4px; }
.wtr .wcard { margin-top: 22px; }
.wh { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.wherog { display: grid; grid-template-columns: 1fr 150px; gap: 10px; align-items: center; }
.wbig { font: 600 56px/1 var(--en); }
.wbig small { font-size: 22px; color: var(--ink3); }
.wlit { font: 15px var(--en); color: var(--ink2); margin-top: 4px; }
.wpill { display: inline-block; margin-top: 8px; padding: 2px 8px; font-size: 11px; border-radius: 2px; background: #e3f3e8; color: #1f7a44; }
.wpill.warn { background: #fdf4e8; color: #a35a00; } .wpill.low { background: var(--pinkSoft); color: var(--pinkTxt); } .wpill.crit { background: #790e3d; color: #fff; } .wpill.off { background: var(--chip); color: var(--ink3); }
.wmeta { font-size: 11px; color: var(--ink4); margin-top: 6px; line-height: 1.5; }
.wtankbox { text-align: center; filter: drop-shadow(0 4px 6px rgba(0,0,0,.16)); }
.wtank { width: 100%; max-width: 160px; display: block; margin: 0 auto; }
.wcap { margin-top: 2px; }
.wban { margin: 0 0 10px; padding: 8px 10px; font-size: 12px; background: var(--chip); border-radius: 2px; }
.wban.warn { background: #fdf4e8; color: #7a4300; }
.wwait { font-size: 12px; color: var(--ink3); background: var(--soft); padding: 7px 10px; margin: 0 0 10px; border-radius: 2px; }
.wtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wtile { background: var(--chip); padding: 10px 12px; border-radius: 2px; }
.wv { font: 600 24px/1.15 var(--en); }
.wv small { font: 400 12px var(--th); color: var(--ink3); }
.wv.pos { color: #1f7a44; } .wv.neg { color: var(--pinkTxt); }
.wl { font-size: 11px; color: var(--ink3); margin-top: 3px; }
.wk { font: 600 10px var(--en); letter-spacing: .08em; color: var(--pink); margin-bottom: 4px; }
.wchart { display: block; width: 100%; height: auto; }
.wleg { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; color: var(--ink3); margin-top: 4px; }
.wleg i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; }
.wseg { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.wseg button { padding: 4px 10px; font-size: 11px; background: var(--chip); color: var(--ink2); border: 0; border-radius: 2px; cursor: pointer; }
.wseg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.wrbox { display: grid; grid-template-columns: 78px 78px 1fr; gap: 10px; align-items: start; background: var(--chip); padding: 12px 10px 10px; border-radius: 2px; }
.wup { text-align: center; font-size: 10px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.12)); }
.wup .wtank { max-width: 78px; }
.wupv { font: 600 20px/1.1 var(--en); margin-top: 4px; } .wupv small { font-size: 11px; color: var(--ink3); }
.wrinfo { font-size: 12px; }
.wrow { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line, #d7d3d3); }
.wrow span { color: var(--ink3); } .wrow b { white-space: nowrap; } .wrow b.pos { color: #1f7a44; }
.wrinfo .muted { font-size: 10px; margin: 6px 0 0; }
.walist { list-style: none; margin: 0; padding: 0; }
.walist li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line, #d7d3d3); font-size: 13px; }
.walist .wat { font: 12px var(--en); color: var(--ink4); min-width: 84px; }
.wfoot { margin-top: 18px; }
.wgo .wq { margin-left: 6px; font: 600 13px var(--en); color: var(--blueTxt); }
@media (min-width: 900px) {
  body[data-pg="water"] { max-width: 1180px; }
  body[data-pg="water"] main { padding: 8px 24px 40px; }
  .wtr { grid-template-columns: 1fr 1fr; gap: 22px; grid-template-areas: "hero today" "cost roof" "c24 c24" "c30 c30" "al al" "ft ft"; }
  .wtr .wcard { margin: 0; background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.07); padding: 22px 26px 24px; }
  .whero { grid-area: hero; } .wtoday { grid-area: today; } .wcost { grid-area: cost; } .wroof { grid-area: roof; } .wc24 { grid-area: c24; } .wc30 { grid-area: c30; } .walerts { grid-area: al; } .wfoot { grid-area: ft; margin: 0; }
  .wh { font-size: 18px; margin-bottom: 14px; }
  .wherog { grid-template-columns: 1fr 210px; gap: 20px; } .wtank { max-width: 210px; }
  .wbig { font-size: 92px; } .wbig small { font-size: 32px; } .wlit { font-size: 19px; } .wmeta { font-size: 13px; }
  .wtile { background: var(--bg); padding: 18px 20px; border-radius: 6px; } .wv { font-size: 34px; } .wv small { font-size: 15px; } .wl { font-size: 13px; }
  .wrbox { background: var(--bg); grid-template-columns: 104px 104px 1fr; gap: 16px; padding: 16px 18px; border-radius: 6px; } .wup .wtank { max-width: 104px; } .wupv { font-size: 26px; } .wrinfo { font-size: 14px; }
  .wc24 .wchart, .wc30 .wchart { max-height: 380px; } .wleg { justify-content: center; font-size: 13px; gap: 24px; }
  .walist li { font-size: 15px; padding: 12px 0; } .walist .wat { font-size: 14px; min-width: 110px; }
}

/* 1 พ.ย. SIRIS: ถังชั้น 1 เคลื่อนไหว (คลื่น + ไฟจากกล่องเซ็นเซอร์) · ไม่ส่งข้อมูล = ไม่มี .on (ไฟเทา นิ่ง) · ลดการเคลื่อนไหว = นิ่ง */
.wlive.on .wv1 { animation: wv 6s linear infinite; }
.wlive.on .wv2 { animation: wv2 10s linear infinite reverse; }
@keyframes wv { from { transform: translateX(0); } to { transform: translateX(-84px); } }
@keyframes wv2 { from { transform: translateX(0); } to { transform: translateX(-112px); } }
.wlive.on .wbeam { animation: wbeam 3s ease-in-out infinite; }
@keyframes wbeam { 0%, 100% { opacity: .25; } 45% { opacity: 1; } }
.wlive.on .wping { animation: wping 3s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes wping { 0%, 40% { opacity: 0; transform: scale(.2); } 55% { opacity: .9; } 100% { opacity: 0; transform: scale(1.6); } }
.wlive.on .wled { animation: wled 3s ease-in-out infinite; }
@keyframes wled { 0%, 100% { fill: #5a5a5a; } 45% { fill: #4cff9a; } }
@media (prefers-reduced-motion: reduce) { .wlive.on .wv1, .wlive.on .wv2, .wlive.on .wbeam, .wlive.on .wping, .wlive.on .wled { animation: none; } }
