:root{font-family:system-ui,-apple-system,sans-serif;color:#173c30;background:#eef2e9;font-size:18px}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}header{height:66px;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;background:#194d3b;color:white}header strong{font-size:24px;margin-right:18px}header span{font-size:15px}main{max-width:1120px;margin:auto;padding:16px 24px}h1{font-size:28px;margin:0 0 12px}p{line-height:1.6}button,input{font:inherit;border-radius:10px;border:1px solid #9eafa6;padding:12px}button{background:white;color:#194d3b;cursor:pointer;min-height:48px}button:disabled{opacity:.45;cursor:default}button.primary{background:#194d3b;color:white;border:0;font-weight:700}label{display:block;margin:14px 0}input{display:block;width:100%;margin-top:7px;background:white;color:#173c30}small,footer{font-size:13px;color:#5e7265;line-height:1.6}.card{background:white;border-radius:18px;padding:24px}#setup,#unlock{max-width:520px;margin:24px auto}.time{text-align:center;margin:0 0 14px}#date{font-size:18px}#clock{display:block;font-size:clamp(64px,9vw,104px);font-weight:750;letter-spacing:.02em;line-height:1.05;font-variant-numeric:tabular-nums}#workArea{display:grid;gap:18px}body.office #workArea{grid-template-columns:1fr 1.3fr}#staffPanel{max-height:420px;overflow:auto;padding:16px}#staffList{display:grid;grid-template-columns:1fr 1fr;gap:8px}#staffList button{font-size:16px;text-align:left;padding:10px}#staffList button.selected{background:#deeee0;border:2px solid #194d3b}.punchPanel{text-align:center}#camera{width:200px;height:125px;object-fit:cover;transform:scaleX(-1);border-radius:10px;margin:auto auto 10px}#punch{display:block;width:100%;font-size:36px;min-height:94px;margin:14px 0}#locationButton{width:100%}.quiet{border:0;font-size:14px;text-decoration:underline}#reasonLabel{text-align:left;font-size:15px}#plan,#todayHistory,#cameraStatus,#locationStatus{font-size:15px;margin:8px 0}#todayHistory{min-height:24px}.syncRow{display:flex;justify-content:space-between;align-items:center;margin:12px 0;font-size:14px;gap:12px}#status{color:#8b2929;white-space:pre-wrap}footer{text-align:center;margin-top:12px}.message{position:fixed;inset:66px 0 0;z-index:5;border-radius:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;overflow:auto}.message h1{font-size:40px}.message p{white-space:pre-line}.message button{min-width:200px}#messageTime{font-size:28px;margin-bottom:18px}body.personal main{max-width:560px}body.personal .time{margin:22px 0}body.personal #clock{font-size:70px}body.personal #punch{min-height:110px}body.office #status{margin:5px}body.office footer{margin:0}@media (orientation:landscape) and (max-height:820px) and (min-width:760px){body.office header{height:54px}body.office main{padding:10px 24px}body.office #clock{font-size:82px}body.office #staffPanel{max-height:355px}body.office .punchPanel{padding:16px}body.office #punch{min-height:76px;margin:8px 0}body.office #camera{height:105px;width:168px}body.office .time{margin-bottom:10px}body.office .syncRow{margin:8px 0}}@media(max-width:700px){header{padding:12px 16px}header strong{font-size:20px}main{padding:16px}.card{padding:20px}body.office #workArea{grid-template-columns:1fr}#staffPanel{max-height:180px}.message h1{font-size:32px}}

.usageNotice{background:#e1eddf;border-left:4px solid #44784e;border-radius:10px;padding:14px 16px;margin:0 auto 16px;max-width:640px;font-size:15px;line-height:1.6}.usageNotice p{margin:6px 0 0;font-size:14px}.installCard{background:#fff;border:1px solid #bdcdbf;border-radius:14px;max-width:640px;margin:0 auto 16px;padding:18px}.installCard p{font-size:14px;margin:8px 0 12px}.installCard>button{width:100%;font-size:16px;font-weight:650}.installCard h2{font-size:18px;margin-top:20px}.installCard ol{padding-left:24px;font-size:15px;line-height:1.8}.installCard li{padding:3px 0}.installCard small{display:block;margin-top:12px}body.office #usageNotice,body.office #installCard{display:none}body.personal #installCard{padding:14px}body.personal .time{margin:14px 0}

#setup select{font:inherit;display:block;width:100%;padding:12px;margin-top:7px;border:1px solid #9eafa6;border-radius:10px;background:white;color:#173c30}#officeQRNotice{background:#e4efde;padding:12px;border-radius:8px;font-size:14px}
.navPictogram{width:24px;height:24px;vertical-align:middle;flex-shrink:0}.businessTile{display:flex;align-items:center;gap:14px;text-decoration:none;min-height:76px;font-size:21px;font-weight:700}.businessTile.primary{background:#e2eddf;color:#194d3b}.businessTile .navPictogram{width:38px;height:38px}.returnBusiness{display:inline-flex;align-items:center;gap:7px;font-size:15px}header .returnBusiness .navPictogram{background:white;border-radius:5px;padding:2px}#deviceSettingsClose,#deviceSettingsButton{display:inline-flex;align-items:center;gap:8px}

.companyBrand{display:flex;align-items:center;gap:20px}.companyBrand>img{width:min(55vw,280px);height:auto}.companyBrand span{display:block;font-size:13px;margin-top:5px}

/* TR業務の入口と操作ボタン */
.portalBrand{background:#194d3b;color:white;border-radius:14px;padding:20px;margin-bottom:24px}.portalBrand img{width:min(280px,85%);height:auto}.portalBrand h1{margin:12px 0 0}.businessTile{width:100%;min-height:88px;margin:14px 0;display:flex;align-items:center;justify-content:flex-start;gap:18px;font-size:1.35rem;font-weight:700;background:#edf4ef;color:#194d3b;border:2px solid #809b8d;border-radius:16px;padding:20px}.businessTile .navPictogram{width:38px;height:38px}a,a:visited{color:#194d3b;text-decoration:none}a.returnBusiness{display:inline-flex;align-items:center;gap:8px;background:white;border:2px solid #b7c9be;border-radius:12px;padding:10px 14px;color:#194d3b}summary{display:inline-block;border:1px solid #8aa394;border-radius:10px;padding:10px 14px;margin-top:10px;background:white;color:#194d3b;cursor:pointer}.usageNotice{font-size:.95rem;padding:16px}.usageNotice strong{font-size:1rem}#deviceSettingsClose{display:flex;gap:10px;align-items:center;margin-top:22px}header{backdrop-filter:none;-webkit-backdrop-filter:none;background:#194d3b}#businessHome{max-width:640px;margin:0 auto}button{min-height:48px}

.headerCompanyLogo{width:150px;max-width:40vw;height:auto;object-fit:contain}#unlock{max-width:480px;margin:24px auto}

/* v0.4.13: narrow-screen header, safe area and natural document height */
html{overflow-x:hidden;-webkit-text-size-adjust:100%}body{min-width:0}
header.appHeader{height:auto;min-height:0;display:block;position:relative;padding:calc(env(safe-area-inset-top,0px) + 14px) max(16px,env(safe-area-inset-right,0px)) 14px max(16px,env(safe-area-inset-left,0px));}
.brandRow{display:flex;align-items:center;gap:12px;min-width:0}.brandRow .headerCompanyLogo{width:150px;max-width:48%;height:auto;flex:none}.brandRow .brandTitle{font-size:17px;font-weight:700;white-space:nowrap}.brandRow small{margin-left:auto;font-size:11px;color:#d6e4db;white-space:nowrap}
.headerActions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}.headerActions:not(:has(>:not([hidden]))){display:none}.headerActions>a.returnBusiness,.headerActions>button{flex:0 0 auto;min-width:0;max-width:100%;white-space:nowrap;word-break:normal;font-size:14px;line-height:1.3;min-height:44px;padding:10px 12px;border:1px solid #b7c9be;border-radius:10px;display:inline-flex;align-items:center;gap:7px;background:#fff;color:#194d3b}.headerActions .navPictogram{width:20px;height:20px;padding:0}
.portalIntro h1{font-size:24px}.portalIntro p{font-size:15px;margin:0 0 20px}.businessTile{font-size:21px;min-height:80px;padding:18px;border-width:1px}.businessTile .navPictogram{width:32px;height:32px}main{padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}#status:empty{display:none}#unlock{margin:12px auto}#unlock h1{font-size:25px}#unlock small{display:block;margin-top:14px}.message{inset:0;padding-top:calc(24px + env(safe-area-inset-top,0px))}
@media(max-width:430px){:root{font-size:16px}main{padding:16px}.card{padding:20px}body.personal #clock{font-size:clamp(48px,16vw,70px)}#punch{font-size:clamp(23px,6vw,32px)}#employeeName{font-size:26px}.usageNotice strong{font-size:15px}.syncRow{flex-wrap:wrap}.syncRow button{font-size:14px}.brandRow{gap:9px}.brandRow .brandTitle{font-size:15px}footer{font-size:11px}}
@media(orientation:landscape) and (min-width:760px){body.office header.appHeader{height:auto;display:flex;justify-content:space-between;gap:16px;padding:10px 24px}body.office .headerActions{margin-top:0}}

/* v0.9.4 共用iPad画面 */
#timecardHeading{font-size:16px;font-weight:700;white-space:nowrap}.brandRow small{margin-left:auto}#businessHome{max-width:1000px}.businessTile{display:inline-flex;vertical-align:top;flex-direction:column;justify-content:center;aspect-ratio:1;width:180px;min-height:0;margin:10px;font-size:20px;gap:20px}.businessTile .navPictogram{width:60px;height:60px}#messageName{font-size:clamp(30px,5vw,56px);margin:10px}#messagePhoto{max-width:min(520px,70vw);max-height:40dvh;object-fit:contain;border-radius:18px;transform:scaleX(-1)}#messageTime{margin:6px}#messageBody{margin:8px}#messageTitle{margin:5px}.message{gap:8px}body.office #camera{width:100%;height:clamp(180px,32dvh,360px);object-fit:contain;background:#edf2ee}body.office #camera[hidden]{display:none}body.office #installCard{display:block}body.office[data-view=screen] #installCard{display:none}body.office[data-view=screen] main{max-width:1500px}body.office[data-view=screen] footer{display:none}
@media (orientation:landscape) and (min-width:760px){body.office[data-view=screen] header.appHeader{padding:8px 18px}body.office[data-view=screen] .brandRow{flex:1}body.office[data-view=screen] .time{display:flex;justify-content:center;align-items:center;gap:24px;margin:0 0 8px}body.office[data-view=screen] #clock{font-size:38px}body.office[data-view=screen] main{padding:10px 18px}body.office[data-view=screen] #workArea{height:calc(100dvh - 175px);min-height:350px;grid-template-columns:1.1fr 1fr;gap:14px}body.office[data-view=screen] #staffPanel{max-height:none;height:100%;padding:12px;overflow:auto}body.office[data-view=screen] #staffPanel label{margin:0 0 10px}body.office[data-view=screen] #staffList{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}body.office[data-view=screen] #staffList button{font-size:15px;min-height:50px;padding:8px}body.office[data-view=screen] .punchPanel{padding:12px}body.office[data-view=screen] #employeeName{font-size:28px;margin:0}body.office[data-view=screen] #camera{height:clamp(150px,calc(100dvh - 390px),340px)}body.office[data-view=screen] #punch{font-size:30px;min-height:65px;margin:8px 0}body.office[data-view=screen] .syncRow{margin:6px 0}body.office[data-view=screen] #screen>small{display:none}}
dialog{border:0;border-radius:20px;padding:28px;max-width:min(460px,90vw);color:#194d3b}dialog::backdrop{background:#12382dbb}#gateError{color:#9f2424}
/* rc3: responsive header and shared tablet viewport */
.brandRow{flex-wrap:wrap;gap:8px 12px}.brandRow .headerCompanyLogo{width:clamp(100px,25vw,150px);max-width:40%}.brandRow small{margin-left:0}#timecardHeading{margin-left:0;flex-shrink:0}.headerActions{gap:6px}
#testControls{max-width:1000px;margin:12px auto;padding:14px}#testControls p{font-size:14px}#testControls button{font-size:15px;margin:4px;padding:10px}body[data-test=true]::before{content:'テストモード · 本番への送信なし';display:block;background:#fff0b4;color:#684900;padding:8px;text-align:center;font-weight:bold}#reselectEmployee{font-size:16px;padding:8px 14px;margin:4px 0 8px}
body.office[data-view=screen] main{width:100%;max-width:none;box-sizing:border-box}body.office[data-view=screen] #screen{width:100%}
@media(min-width:760px) and (orientation:landscape){body.office[data-view=screen] #workArea{height:auto;min-height:0;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}body.office[data-view=screen] #staffPanel{height:auto;max-height:calc(100dvh - 220px);overflow:auto}body.office[data-view=screen] #camera{height:clamp(160px,calc(100dvh - 400px),420px)}body.office[data-view=screen] #staffList button{min-height:52px}body.office[data-view=screen] .punchPanel{min-width:0}body.office[data-view=screen] .time{margin:0}body.office[data-view=screen] #recentPunch{font-size:14px;padding:8px;min-height:40px}}
@media(max-width:480px){.brandRow .brandTitle{font-size:15px}.brandRow small{font-size:10px}#timecardHeading{font-size:15px}.brandRow .headerCompanyLogo{width:108px}.businessTile{width:calc(50% - 16px);margin:6px;font-size:17px;padding:12px}.businessTile .navPictogram{width:48px;height:48px}}

.staffPager{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px}.staffPager button{font-size:14px;min-height:38px;padding:6px 14px}
@media(min-width:760px) and (orientation:landscape){body.office[data-view=screen] .punchPanel{display:flex;flex-direction:column;height:calc(100dvh - 200px);min-height:420px}body.office[data-view=screen] #camera{flex:1 1 auto;height:0;min-height:100px;max-height:none;width:100%;margin:4px 0}body.office[data-view=screen] #staffPanel{max-height:none;overflow:visible}body.office[data-view=screen] #plan,body.office[data-view=screen] #cameraStatus,body.office[data-view=screen] #todayHistory{margin:4px 0;font-size:14px;min-height:18px}body.office[data-view=screen] #reselectEmployee{min-height:38px;margin:2px 0;padding:6px}body.office[data-view=screen] #punch{flex:none;min-height:60px;margin:5px 0}body.office[data-view=screen] #staffList{grid-template-columns:repeat(3,minmax(0,1fr))}body.office[data-view=screen] #staffList button{min-height:54px}body.office[data-view=screen] #employeeName{font-size:26px;line-height:1.3}}

/* Language selection: keep every action visible with longer Indonesian labels. */
.languageBar{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:6px max(16px,env(safe-area-inset-right,0px));background:#194d3b;color:#fff}.languageBar label{margin:0;font-size:13px}.languageBar select{font:inherit;font-size:14px;border:1px solid #bbd3c7;border-radius:8px;padding:5px 9px;background:white;color:#194d3b;max-width:180px}.languageBar select:focus-visible{outline:3px solid #f5cf67;outline-offset:2px}html[lang=id] #timecardHeading{white-space:normal}html[lang=id] .businessTile{font-size:18px}html[lang=id] #messageTitle{font-size:clamp(24px,4vw,38px)}html[lang=id] #punch{font-size:clamp(22px,3.5vw,32px)}html[lang=id] body[data-test=true]::before{content:'Mode uji · tidak dikirim ke data sebenarnya'}html[lang=id] .headerActions a{white-space:normal}html[lang=id] #messageBody{font-size:16px;line-height:1.5}html[lang=id] #reselectEmployee{font-size:15px}html[lang=id] .brandRow{flex-wrap:wrap}@media(min-width:760px) and (orientation:landscape){body.office[data-view=screen] .punchPanel{height:calc(100dvh - 238px);min-height:420px}}

body[data-view=message] .languageBar{position:fixed;top:0;left:0;right:0;z-index:20}body[data-view=message] .message{padding-top:70px}

#privateOut{width:100%;margin:6px 0;background:#fff5df;border-color:#ac8d42;font-weight:700}#privateSummary{font-size:14px;margin:4px 0}#openCorrections{font-size:15px;padding:8px 12px;margin:6px 8px 0 0}#correctionRows{display:grid;gap:10px;max-height:55dvh;overflow:auto}#correctionRows button{text-align:left;white-space:normal}#correctionDialog p{font-size:15px}body.office[data-view=screen] #privateOut{min-height:40px;font-size:16px;padding:7px;margin:3px 0}body.office[data-view=screen] #privateSummary:empty{display:none}

#openTimeRequest{font-size:15px;padding:8px 12px;margin:6px 8px 0 0}#timeRequestDialog{width:min(560px,94vw);max-height:90dvh;overflow:auto}#timeRequestDialog p,#timeRequestList{font-size:14px}#timeRequestDialog select,#timeRequestReason{font:inherit;display:block;width:100%;border:1px solid #9eafa6;border-radius:9px;padding:10px;margin-top:7px;color:#194d3b;background:white}#timeRequestReason{min-height:85px}#timeRequestError{color:#9f2424}#timeRequestStatus{font-size:14px;color:#805d0b}

@media(min-width:760px) and (orientation:landscape){body.office[data-view=screen] #reselectEmployee{min-height:32px;padding:4px 8px}body.office[data-view=screen] #privateOut{min-height:36px;padding:4px 8px}body.office[data-view=screen] #cameraStatus{font-size:12px;line-height:1.2;margin:2px 0}body.office[data-view=screen] #plan,body.office[data-view=screen] #privateSummary{line-height:1.3;margin:2px 0}}

.calendarPanel{margin-top:24px;border-top:1px solid #c4d3c7;padding-top:18px}.calendarPanel label{font-size:14px}.calendarPanel ul{list-style:none;padding:0;max-height:42dvh;overflow:auto}.calendarEvent{display:flex;gap:10px;padding:10px;border-left:5px solid #447c51;background:#f2f7ef;margin:6px 0;font-size:15px}.calendarEvent strong{flex:none}.calendarEvent.office{border-left-color:#8c61a7;background:#f7f0fa}#calendarConnection{font-size:12px;white-space:pre-line}#calendarSummary{font-size:15px}.workdayControl{display:flex;align-items:center;justify-content:center;gap:12px;margin:4px 0 8px;font-size:13px}.workdayControl input{width:auto;margin:0;padding:5px;font-size:14px}.checkboxLabel{display:flex;gap:8px;align-items:center}.checkboxLabel input{width:auto}.checkboxLabel input[type=checkbox]{min-width:20px;width:20px}#earlyLeave{background:#fff1e9;border-color:#b88669;font-size:15px;min-height:38px;padding:7px;margin:4px}#earlyDialog,#planRequestDialog{max-height:90dvh;overflow:auto;width:min(520px,94vw)}dialog select,dialog textarea{display:block;font:inherit;width:100%;padding:10px;border:1px solid #9eafa6;border-radius:8px;margin-top:6px}#openPlanRequest{font-size:15px;padding:8px 12px;margin:6px}body.office[data-view=screen] .workdayControl{margin:2px 0}body.office[data-view=screen] #earlyLeave{min-height:34px;margin:2px;padding:4px}body.office[data-view=screen] .punchPanel{height:calc(100dvh - 270px)}

.employeeHeading{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}.secondaryPunchActions{display:flex;gap:8px;justify-content:center}.secondaryPunchActions>button{flex:1}.secondaryPunchActions:not(:has(>:not([hidden]))){display:none}.screenTools:empty,#timeRequestStatus:empty{display:none}
@media(min-width:760px) and (orientation:landscape){body.office[data-view=screen]{height:100dvh;display:flex;flex-direction:column;overflow:hidden}body.office[data-view=screen] .languageBar,body.office[data-view=screen] header{flex:none}body.office[data-view=screen] main{flex:1;min-height:0;display:flex;flex-direction:column;width:100%;padding:6px 12px}body.office[data-view=screen] #screen{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px}body.office[data-view=screen] .screenTop{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}body.office[data-view=screen] .time{margin:0;gap:14px}body.office[data-view=screen] #date{font-size:15px}body.office[data-view=screen] #clock{font-size:34px}body.office[data-view=screen] .workdayControl{margin:0;font-size:12px}body.office[data-view=screen] #workArea{flex:1;min-height:0;height:auto;display:grid;grid-template-columns:1fr 1.15fr;gap:12px}body.office[data-view=screen] #staffPanel{height:100%;min-height:0;overflow:hidden;display:flex;flex-direction:column;padding:10px}body.office[data-view=screen] #staffPanel label{flex:none;font-size:13px;margin:0 0 6px}body.office[data-view=screen] #employeeCode{padding:6px;margin-top:3px}body.office[data-view=screen] #staffList{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:6px}body.office[data-view=screen] #staffList button{min-height:0;padding:6px;font-size:15px;overflow-wrap:anywhere}body.office[data-view=screen] .staffPager{flex:none;margin-top:6px}body.office[data-view=screen] .punchPanel{height:100%;min-height:0;padding:8px 10px;display:flex;flex-direction:column;gap:3px;overflow:hidden}body.office[data-view=screen] .employeeHeading{flex:none;flex-wrap:nowrap;justify-content:space-between}body.office[data-view=screen] #employeeName{font-size:26px;line-height:1.2;margin:0}body.office[data-view=screen] #reselectEmployee{min-height:30px;font-size:12px;padding:4px 7px;margin:0;max-width:46%}body.office[data-view=screen] #camera{flex:1;min-height:60px;height:0;max-height:none;width:100%;margin:0;background:#edf2ee;object-fit:contain}body.office[data-view=screen][data-camera-ready=true] #cameraStatus{display:none}body.office[data-view=screen] #punch{flex:none;font-size:30px;min-height:56px;padding:8px;margin:2px 0}body.office[data-view=screen] #plan,body.office[data-view=screen] #privateSummary,body.office[data-view=screen] #todayHistory{flex:none;min-height:0;margin:1px 0;font-size:13px;line-height:1.2}body.office[data-view=screen] .secondaryPunchActions{flex:none;gap:8px}body.office[data-view=screen] #earlyLeave,body.office[data-view=screen] #privateOut{min-height:30px;font-size:14px;padding:4px 8px;margin:0;width:auto}body.office[data-view=screen] .screenTools{display:flex;align-items:center;gap:7px;flex-wrap:wrap;flex:none}body.office[data-view=screen] .screenTools>button{font-size:12px;padding:6px 9px;margin:0;min-height:34px}body.office[data-view=screen] .syncRow{flex:1;min-width:240px;gap:8px;margin:0;font-size:12px}body.office[data-view=screen] .syncRow button{min-height:34px;font-size:12px;padding:6px}body.office[data-view=screen] #status{flex:none;max-height:7dvh;overflow:auto;font-size:13px;margin:0}body.office[data-view=screen] footer,body.office[data-view=screen] #screen>small{display:none}body.office[data-view=screen][data-test=true] #testControls{position:fixed;top:3px;right:6px;z-index:30;padding:2px;margin:0}body.office[data-view=screen][data-test=true] #testControls p,body.office[data-view=screen][data-test=true] #testControls strong{display:none}body.office[data-view=screen][data-test=true] #exitTest{font-size:11px;min-height:28px;padding:4px}
}

#cameraRetry{font-size:14px;min-height:36px;padding:7px 12px;margin:4px}body.office[data-view=screen] #cameraRetry{font-size:13px;min-height:30px;padding:4px}

.calendarPanel[hidden]{display:none!important}body[data-view=businessHome] #businessHome{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px}#businessHome[hidden]{display:none!important}.portalIntro,#weatherSummary{grid-column:1/-1}.businessTile{aspect-ratio:1;min-width:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;text-decoration:none;border-radius:22px}.correctionIdentity{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}.correctionIdentity strong{font-size:24px}dialog{max-width:min(680px,94vw);max-height:90dvh;overflow:auto}dialog textarea{width:100%}body.office .screenTools #openPlanRequest,body.personal .screenTools #openPlanRequest{display:none}#officePlanPeople[hidden]{display:none!important}

#workday[hidden],.workdayControl[hidden],#reasonLabel[hidden]{display:none!important}#staffList button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}#staffList button strong{font-size:22px;line-height:1.35;word-break:keep-all}#staffList button small{font-size:16px;color:inherit;margin:0}#photoNotice{position:fixed;left:50%;top:42%;transform:translate(-50%,-50%);padding:18px 28px;border-radius:16px;background:#fffbe8;border:3px solid #d9a422;color:#194d3b;font-size:28px;z-index:1000;box-shadow:0 3px 24px #0004}.correctionIdentity button{min-height:36px}.employeeHeading h1{font-size:26px;line-height:1.3}.correctionIdentity strong{font-size:19px}body.office[data-view=screen]{height:100dvh;overflow:hidden;display:flex;flex-direction:column}body.office[data-view=screen] main{flex:1;min-height:0;display:flex;flex-direction:column;padding:6px 10px;width:100%;max-width:none}body.office[data-view=screen] .appHeader{padding:7px 12px;flex:none}body.office[data-view=screen] .brandRow{min-height:0}body.office[data-view=screen] .brandTitle{font-size:23px}body.office[data-view=screen] .headerCompanyLogo{height:36px}body.office[data-view=screen] .headerActions a{padding:5px 12px;min-height:36px}body.office[data-view=screen] #screen{display:flex;flex-direction:column;flex:1;min-height:0;gap:5px}body.office[data-view=screen] .screenTop{height:42px;min-height:42px;justify-content:center}body.office[data-view=screen] .time{display:flex;align-items:center;gap:20px}body.office[data-view=screen] #clock{font-size:30px;line-height:1}body.office[data-view=screen] #date{font-size:16px}body.office[data-view=screen] #workArea{display:grid;grid-template-columns:46% minmax(0,1fr);flex:1;min-height:0;gap:10px}body.office[data-view=screen] #staffPanel{display:flex;flex-direction:column;min-height:0;padding:10px;margin:0}body.office[data-view=screen] #staffList{flex:1;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:6px}body.office[data-view=screen] #staffList button{min-height:0;padding:5px}body.office[data-view=screen] #staffPanel label{font-size:12px;display:flex;align-items:center;gap:6px;margin-bottom:6px}body.office[data-view=screen] #employeeCode{font-size:16px;width:100px;min-height:30px;padding:3px}body.office[data-view=screen] .staffPager{min-height:32px;margin-top:5px}body.office[data-view=screen] .staffPager button{min-height:30px;padding:3px 12px}body.office[data-view=screen] .punchPanel{display:flex;flex-direction:column;min-height:0;padding:9px;margin:0;gap:3px}body.office[data-view=screen] .employeeHeading{flex:none;gap:4px}body.office[data-view=screen] .employeeHeading h1{font-size:24px;margin:0}body.office[data-view=screen] #camera{flex:1;min-height:70px;height:0;width:100%;object-fit:contain;max-height:none;border-radius:10px}body.office[data-view=screen] #plan,body.office[data-view=screen] #cameraStatus{font-size:12px;margin:0;line-height:1.2}body.office[data-view=screen] #punch{min-height:54px;font-size:26px;margin:3px 0}body.office[data-view=screen] #todayHistory{font-size:11px;margin:0;max-height:24px;overflow:auto}body.office[data-view=screen] #privateSummary{font-size:12px;margin:0}body.office[data-view=screen] .screenTools{flex:none;min-height:30px;display:block;padding:0}body.office[data-view=screen] .syncRow{font-size:12px;min-height:30px}body.office[data-view=screen] .syncRow button{min-height:28px;padding:3px 10px}body.office[data-view=screen] #screen>small,body.office[data-view=screen] footer{display:none}body.office[data-view=screen] #status{flex:none;max-height:34px;overflow:auto;font-size:11px;margin:2px 0}body.office[data-view=screen] #timeRequestStatus{font-size:11px;margin:0}body.office[data-view=screen] .correctionIdentity{gap:5px}body.office[data-view=screen] .correctionIdentity button{min-height:30px;padding:3px 8px;font-size:13px}body.office[data-view=screen] .secondaryPunchActions button{min-height:31px;padding:3px 8px;font-size:14px}@media(max-width:650px){body.office[data-view=screen] #workArea{grid-template-columns:1fr 1fr}body.office[data-view=screen] #staffList button strong{font-size:17px}body.office[data-view=screen] .employeeHeading h1{font-size:18px}body.office[data-view=screen] #staffList button small{font-size:13px}}

/* v0.9 viewport and touch layouts */
.brandRow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}.brandTitle{white-space:nowrap}#timecardHeading{white-space:nowrap;overflow:visible;font-size:clamp(15px,3vw,22px)}.headerActions{display:flex;gap:6px;flex-wrap:wrap}.headerActions button{padding:7px 10px;font-size:14px;min-height:38px}.requestBox{display:block;width:100%;padding:14px;border:2px solid #8fac9d;border-radius:12px;background:white;color:#194d3b;margin:10px 0;font:inherit;font-weight:bold}#reselectEmployee,#correctionEmployee{display:none!important}dialog{box-sizing:border-box;max-height:calc(var(--visible-height,100dvh) - 24px);overflow-y:auto;overscroll-behavior:contain;scroll-padding:20px;inset:12px 0 auto;margin:0 auto}dialog input{font-size:18px;scroll-margin:20px}#selfDialog{width:min(460px,94vw);padding:20px}#selfDialog h2{font-size:21px;margin:0 0 10px}#selfDialog input{width:100%;font-size:28px;letter-spacing:12px}#selfDialog p{font-size:15px}#requestTime{font-size:36px;font-weight:bold}#requestDateDetails{margin:12px 0}.timelineRecord{display:flex;align-items:center;gap:14px;width:100%;margin:8px 0;padding:10px;text-align:left}.timelineRecord img{width:90px;height:68px;object-fit:cover;border-radius:8px}#recordDetailPhoto{width:100%;max-height:35dvh;object-fit:contain}#recordDetailDialog button{margin:8px}#photoNotice{position:fixed;z-index:100;inset:28% 15% auto;padding:30px;background:#143f32ee;color:white;font-size:clamp(42px,10vw,100px);text-align:center;border-radius:24px;pointer-events:none}.staffTitle{margin:0 0 8px;font-size:18px}#mobileNotificationItems section{padding:15px;margin:8px 0;background:#edf5ef;border-radius:10px}
@media(min-width:700px){body.office[data-view=screen] #staffList{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr))}body.office[data-view=screen] #staffList strong{font-size:clamp(18px,2.2vw,27px)}body.office[data-view=message]{height:100dvh;overflow:hidden;display:flex;flex-direction:column}body.office[data-view=message] main{flex:1;min-height:0;padding:10px;display:flex}body.office[data-view=message] #message{flex:1;min-height:0;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto 1fr auto;gap:8px;padding:14px}body.office[data-view=message] #message>*{margin:0}body.office[data-view=message] #messageName{font-size:clamp(28px,4vw,48px);grid-column:1/-1}body.office[data-view=message] #messageTitle{font-size:28px}body.office[data-view=message] #messagePhoto{grid-column:1;grid-row:2/5;width:100%;height:100%;min-height:0;max-height:60dvh;object-fit:contain}body.office[data-view=message] #messageBody{font-size:18px;line-height:1.4;overflow:auto}body.office[data-view=message] #messageClose,body.office[data-view=message] #requestCancel{font-size:18px;padding:10px;min-height:44px}body.office[data-view=message] footer{display:none}}
@media(max-width:699px){.appHeader{padding:10px}.headerCompanyLogo{width:42px;height:42px}.brandTitle{font-size:22px}.headerActions{margin-top:8px}#timecardHeading{font-size:17px}.headerActions .returnBusiness{font-size:14px;padding:8px}#timeRequestDialog{width:96vw;padding:14px}}

/* Capture cue resets old translate and inset rules; mobile actions never use a fixed header height. */
header.appHeader{height:auto!important;min-height:66px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px;position:relative;padding:12px 18px}.brandRow{min-height:38px;flex:none}.headerActions{display:flex;flex-wrap:wrap;gap:8px;position:static;width:100%;margin:0}.headerActions>*{position:static!important;margin:0!important;flex:0 1 auto;min-height:38px}.personal #screen .screenTools,.personal .syncRow{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.personal #screen .screenTools>*,.personal .syncRow>*{margin:4px 0;min-width:0}.personal .correctionIdentity{display:flex;flex-direction:column;gap:10px}.personal .correctionIdentity button,.personal .requestBox{width:100%;margin:0 0 10px}.personal #screen button{white-space:normal;line-height:1.4}.message{position:relative!important;inset:auto!important;z-index:auto;min-height:0}body[data-view=message] .languageBar{position:static!important}dialog{width:min(680px,calc(100vw - 24px));max-width:calc(100vw - 24px)}dialog select:not(:disabled){color:#173c30;background:#fff;opacity:1;-webkit-text-fill-color:#173c30;border:1px solid #8ca99c;padding:12px;font-size:18px;min-height:46px}dialog select:disabled{background:#eef0ee;color:#69766e}#photoNotice{position:fixed!important;inset:0!important;left:0!important;top:0!important;right:0!important;bottom:0!important;transform:none!important;translate:none!important;width:100vw!important;max-width:none!important;height:100dvh;max-height:none;margin:0!important;display:grid;place-items:center;padding:24px;z-index:10000;border:0;border-radius:0;background:#143f32dc;color:white;text-align:center;font-size:clamp(48px,12vw,120px);box-sizing:border-box;pointer-events:none;white-space:normal}body.office[data-view=screen] #staffList{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(4,minmax(0,1fr))!important;gap:8px}body.office[data-view=screen] #staffList strong{font-size:clamp(16px,1.9vw,24px);line-height:1.3;overflow-wrap:anywhere}body.office[data-view=screen] #staffList button{padding:8px;min-height:0}body.office[data-view=screen] .staffPager{margin-top:8px}#mobileNotificationDetail p{white-space:pre-line;line-height:1.7}#mobileNotificationDetail button{margin:8px 8px 0 0}#registerSelfPinDialog input{font-size:26px;letter-spacing:8px;width:100%}#registerSelfPinError,#selfError{color:#a0323a;white-space:pre-line}
@media(max-width:600px){.headerActions>*{flex:1 1 auto;font-size:13px}.brandRow .headerCompanyLogo{width:105px;max-width:32%}.brandRow .brandTitle{font-size:17px}.personal .message{padding:18px}.personal #messagePhoto{width:100%;max-width:100%;height:auto;max-height:35dvh}.personal .message h1{font-size:30px}}

.mobileLogoMark{position:relative;display:inline-block;flex:none;width:56px;height:44px;overflow:hidden}.mobileLogoMark .headerCompanyLogo{position:absolute;left:0;top:0;width:193px!important;max-width:none!important;height:44px!important;object-fit:fill}.mobileCompanyName{font-family:"HG正楷書体-PRO","HGS正楷書体-PRO","Yu Kyokasho","YuKyokasho","DFKai-SB","Kaiti SC","Kaiti TC","STKaiti","KaiTi",serif;font-size:clamp(24px,4vw,34px);white-space:nowrap}.brandRow .brandTitle{font-size:16px}.staffCode{flex:none;display:inline-grid;place-items:center;border-radius:7px;background:#e3eee7;font-size:17px;min-width:29px;padding:4px}.staffName{flex:1;min-width:0;white-space:normal;word-break:normal;overflow-wrap:anywhere;text-align:left;line-height:1.35}body.office[data-view=screen] #staffList button{display:flex;gap:7px;align-items:center;justify-content:flex-start;padding:7px}body.office[data-view=screen] #staffList strong{font-size:clamp(16px,1.75vw,22px)}.timelineRecord img{width:52px;height:40px;object-fit:cover;flex:none}#recordDetailPhoto{width:110px;max-width:110px;height:85px;max-height:85px;object-fit:contain;cursor:zoom-in;margin:12px auto}#mobileLargePhoto{max-width:100%;max-height:65dvh;object-fit:contain}.scheduleRest{color:#7a827e;background:#eff0ef;padding:8px;border-radius:6px}#deviceScheduleRows{max-height:35dvh;overflow:auto}#deviceScheduleDialog label{display:block;margin:12px 0}#deviceScheduleError{color:#a0333b}#deviceTestBanner{background:#fff0c9;color:#7b4b00;padding:10px;grid-column:1/-1;font-size:14px}

/* v0.9.5: explicit scopes prevent dialog-wide image rules from enlarging thumbnails. */
.mobileLogoMark{width:48px!important;height:38px!important;overflow:visible!important}.mobileLogoMark .headerCompanyLogo{position:static!important;width:48px!important;height:38px!important;max-width:100%!important;object-fit:contain!important}
#correctionRows .timelineRecord{display:flex!important;align-items:center;gap:12px;min-height:72px;padding:10px;width:100%;text-align:left;white-space:normal}
#correctionRows .timelineRecord img,#editOriginalPhoto{display:block;width:56px!important;min-width:56px!important;max-width:56px!important;height:44px!important;max-height:44px!important;object-fit:cover!important;flex:0 0 56px;border-radius:6px;margin:0!important}
.timelineText{display:flex;flex-direction:column;gap:5px;min-width:0}.timelineText strong{font-size:22px}.timelineText small{font-size:14px}.requestHistoryCard{padding:12px;border:1px solid #c9d7cf;border-radius:10px;margin:10px 0}.requestHistoryCard strong{display:block;font-size:24px}.requestHistoryCard small{display:block}.requestHistoryCard button{margin:8px 8px 0 0}.requestHistoryCard[data-status=pending]{border-left:5px solid #bc7d17;background:#fffbef}.requestHistoryCard[data-status=rejected]{border-left:5px solid #bb4a50}
.dateShortcuts{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}.dateShortcuts button{min-height:42px;padding:8px 12px}.dateShortcuts button[aria-pressed=true]{background:#194d3b;color:#fff}.dateShortcuts span{flex-basis:100%;font-size:15px}#requestTime,#exceptionTime{font-size:34px;font-weight:bold;padding:12px}#requestDateDetails summary{font-size:15px}.originalSummary{display:flex;gap:12px;align-items:center;border-radius:10px;background:#edf2ee;padding:12px}#editOriginalText{font-size:16px}#requestConfirmSummary p{padding:10px;border-bottom:1px solid #d6dfda}#requestConfirmSummary strong{font-size:25px}#timeCancelRecord{display:block;margin:14px 0;color:#a23b43}#requestConfirmDialog button,#timeRequestForm>button,#exceptionForm>button{margin:8px 8px 0 0}#cameraIdleOverlay{display:none}body.office[data-view=screen] .punchPanel{position:relative}body.office[data-view=screen] #cameraIdleOverlay:not([hidden]){display:grid;position:absolute;inset:25% 10% 42%;place-items:center;text-align:center;font-size:clamp(14px,2vw,20px);pointer-events:none;margin:0;background:#edf2ee;border-radius:10px}body.office[data-view=screen] #cameraStatus{max-height:32px;overflow:auto}#settingsEmployee{font-size:22px;font-weight:bold}#settingsLocationResult{padding:8px;border-radius:8px;background:#edf2ee}#halfDayTimes{display:grid;grid-template-columns:1fr 1fr;gap:12px}#halfDayTimes p{grid-column:1/-1}#halfDayTimes label{margin:0}#timeRequestDialog,#correctionDialog,#exceptionDialog,#requestConfirmDialog{width:min(600px,94vw);padding:20px;max-height:calc(var(--visible-height,100dvh) - 24px)}dialog h2{font-size:24px}dialog:focus{outline:none}dialog h2:focus{outline:none}#timeRequestDialog>p,#exceptionDialog>p{font-size:15px}body.personal #ipadSettingsHelp{display:none!important}

body.office[data-camera-idle=true] #cameraStatus{visibility:hidden}

/* v0.10.1: grid items own the full column; never apply the old half-width twice. */
body[data-view=businessHome] #businessHome{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px;align-items:start}
body[data-view=businessHome] #businessHome .businessTile{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;max-width:none;min-width:0;height:auto;min-height:0;aspect-ratio:1;margin:0;padding:12px;gap:10px;border-radius:18px;font-size:17px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;text-align:center}
body[data-view=businessHome] #businessHome .businessTile .navPictogram{display:block;flex:0 0 36px;width:36px;height:36px;min-width:36px;max-width:36px;max-height:36px;margin:0;object-fit:contain}
body[data-view=businessHome] #businessHome .businessTileLabel{display:block;flex:0 1 auto;max-width:100%;min-width:0;font-size:inherit;line-height:1.4;overflow-wrap:anywhere;word-break:normal;white-space:normal}
body[data-view=businessHome] #businessHome .portalIntro,body[data-view=businessHome] #weatherSummary{grid-column:1/-1;margin:0}
body[data-view=businessHome] #weatherSummary{font-size:14px;line-height:1.5}
@media(max-width:600px){body[data-view=businessHome] #businessHome{width:100%;padding:16px;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){body[data-view=businessHome] #businessHome .businessTile{padding:8px;gap:8px;font-size:15px}body[data-view=businessHome] main{padding-left:12px;padding-right:12px}}

.headerEmployee{font-size:clamp(12px,1.5vw,16px);font-weight:700;color:#e8f2e7;background:#286348;border:1px solid rgba(255,255,255,.28);border-radius:8px;padding:5px 9px;white-space:normal;overflow-wrap:anywhere;max-width:36vw}.cameraIdleOverlay{cursor:pointer;text-decoration:underline;text-underline-offset:3px}#cameraStatus[role=button]{cursor:pointer;text-decoration:underline;text-underline-offset:3px}dialog input[type=date],dialog input[type=time],dialog input[type=datetime-local],dialog select{max-width:100%;min-width:0}

.planDateRange{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.planDateRange label{min-width:0}.planDateRange input{width:100%;min-width:0}#requestDate,#correctionDay,#exceptionDate,#planRequestDay,#planRequestEndDay{width:100%;max-width:100%;min-width:0}#correctionDialog,#timeRequestDialog,#planRequestDialog,#exceptionDialog{width:min(680px,94vw);max-width:94vw;padding:clamp(14px,3vw,24px)}@media(max-width:480px){.planDateRange{grid-template-columns:minmax(0,1fr)}.planDateRange input{font-size:16px}}

#cameraIdleOverlay{cursor:pointer;text-decoration:underline;text-underline-offset:3px}#cameraStatus[role=button],#cameraIdleOverlay[role=button]{cursor:pointer}#leaveRequests{display:flex;flex-direction:column;gap:8px}.leaveRequestCard{background:#fff;border:1px solid #d2ded6;border-left:5px solid #527c64;border-radius:8px;padding:10px;margin:0}.leaveRequestCard.leave-paid{border-left-color:#267b58}.leaveRequestCard.leave-half{border-left-color:#3785a4}.leaveRequestCard.leave-rest{border-left-color:#69788a}.leaveRequestCard.leave-absence{border-left-color:#bf6c3a}.leaveRequestCard.suspected{border-left-color:#cf6b00}.leaveRequestCard p{margin:4px 0}

/* Keep the native iOS date/time intrinsic width inside its grid cell. */
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
dialog{box-sizing:border-box!important;width:min(720px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;padding:20px!important;overflow-x:hidden!important;max-height:calc(100dvh - 32px);scroll-padding:20px}
dialog form,dialog label,dialog .planDateRange,dialog .planDateRange>*,dialog details{min-width:0!important;max-width:100%!important}
dialog input:not([type=checkbox]):not([type=radio]),dialog select,dialog textarea{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:6px 0 0!important}
input[type=date]::-webkit-date-and-time-value,input[type=time]::-webkit-date-and-time-value{text-align:left;min-width:0}
dialog input[type=date],dialog input[type=time],dialog input[type=datetime-local]{display:block;appearance:none;-webkit-appearance:none;min-inline-size:0!important;inline-size:100%!important}
dialog form>label,dialog>label{display:block;margin:16px 0!important}
dialog button{margin:6px 8px 6px 0!important;max-width:100%;white-space:normal;overflow-wrap:anywhere;min-height:44px}
dialog h2{margin:0 0 18px!important;font-size:24px}
dialog p{line-height:1.6}
.planDateRange{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px!important}
#halfDayTimes{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#correctionForgot{display:block;width:100%;margin:12px 0!important}
#staffList{align-items:stretch!important;grid-auto-rows:minmax(108px,auto)!important}
#staffList button{height:auto!important;min-height:108px!important;max-height:none!important;display:flex!important;flex-direction:column!important;gap:6px!important;padding:10px!important;overflow:visible!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;min-width:0}
#staffList button span,#staffList button strong{white-space:normal!important;max-height:none!important;height:auto!important;overflow:visible!important;min-width:0;font-size:clamp(14px,1.6vw,23px)!important;line-height:1.35!important}
body.office[data-camera-idle=true] #cameraStatus{visibility:visible!important}
body.office[data-view=screen] #cameraIdleOverlay:not([hidden]){pointer-events:auto!important;inset:auto!important;position:static!important;display:block!important;padding:12px!important}
#camera{cursor:pointer}
#screen .punchPanel>button{margin-top:12px!important;margin-bottom:0!important}
.wf-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}
.wf-toolbar button,.wf-toolbar select,.wf-toolbar input{margin:0!important;width:auto!important}
.wf-dialog{color:#173f32;background:#fff;border:1px solid #bbcec2;border-radius:16px;font-size:16px}
.wf-dialog::backdrop{background:#173f3299}
.wf-dialog button{font:inherit;border:1px solid #789a87;background:white;color:#173f32;border-radius:9px;padding:10px 14px}
.wf-dialog button:disabled{opacity:.5}
.wf-dialog button[aria-pressed=true]{background:#194d3b;color:#fff}
.wf-dialog select,.wf-dialog input,.wf-dialog textarea{font:inherit;padding:10px;border:1px solid #9bb1a3;border-radius:8px}
.wf-dialog label{display:block;margin:14px 0}
.wf-dialog input[type=checkbox]{width:22px!important;height:22px;margin:0 8px 0 0!important;vertical-align:middle}
.wf-card{border:1px solid #becfc3;border-radius:10px;padding:14px;margin:14px 0;overflow-wrap:anywhere}
.wf-card[data-status=rejected],.requestHistoryCard[data-status=rejected]{border-left:6px solid #b72d3d;background:#fff1f1}
.wf-error{color:#ad2435;font-weight:700;white-space:pre-wrap}
.wf-pending{background:#fff1cb}
.wf-approved{background:#e0f0e7}
.wf-table-wrap{overflow:auto;max-height:65dvh}
.wf-table{border-collapse:separate;border-spacing:0;white-space:nowrap;width:100%}
.wf-table th,.wf-table td{border-right:1px solid #d4ded8;border-bottom:1px solid #d4ded8;padding:10px;text-align:center;min-width:44px}
.wf-table th:first-child{position:sticky;left:0;background:#f0f5f1;z-index:1;text-align:left;max-width:180px;white-space:normal}
.wf-table thead th{position:sticky;top:0;background:#f0f5f1;z-index:2}
.wf-table .wf-past{background:#ededed;color:#55645c}
.wf-table .wf-today{box-shadow:inset 0 0 0 2px #db8909;background:#fff2cc}
.wf-legend{display:flex;flex-wrap:wrap;gap:8px;font-size:14px;margin:12px 0}
.wf-legend span{padding:5px;border:1px solid #c4d3ca;border-radius:5px}
.wf-rest{color:#8e2637;background:#ffe4e8}
.wf-direct{color:#245b99;background:#e4efff}
.wf-number{font-size:.72em;margin-right:5px;color:#416b56;font-weight:500}
body.office[data-view=screen] #staffPanel{overflow:auto!important}
body.office[data-view=screen] #staffList{flex:0 0 auto!important;grid-template-rows:repeat(4,minmax(108px,auto))!important}
body.office[data-view=screen] #staffList .staffName{flex:0 0 auto!important;min-height:min-content!important}
[data-ui-number]::before{content:attr(data-ui-number) ' ';font-size:.72em;font-weight:500}
button[aria-pressed=true]::before{color:inherit}
@media(max-width:600px){
 dialog{padding:16px!important}
 .planDateRange,#halfDayTimes{grid-template-columns:minmax(0,1fr)!important}
 dialog input,dialog select,dialog textarea{font-size:16px!important}
 dialog h2{font-size:22px!important}
 .punchPanel{padding:16px!important}
 #employeeName{font-size:26px!important;margin:12px 0!important}
 #clock{font-size:clamp(40px,14vw,64px)!important}
 #punch{min-height:100px!important;font-size:28px!important;padding:20px!important}
 #usageNotice{padding:14px!important;font-size:15px!important}
 .wf-toolbar select,.wf-toolbar input{max-width:100%!important}
}

/* Section hierarchy: menu 1, content 1-1, 1-2. */
[data-ui-number]::before{content:none!important}
[data-section-number]::before{content:attr(data-section-number) ' ';font:inherit;font-weight:inherit;color:inherit}
.portalDashboard{grid-column:1/-1;min-width:0}
.portalDashboard h2{margin:0 0 12px;font-size:22px}
.wf-dialog h3{font-size:18px;margin:22px 0 12px}

.wf-schedule { box-sizing: border-box; width: min(100%, 1200px); max-width: 100%; max-height: 100dvh; }
.wf-schedule > div { display: grid; gap: .65rem; }
.wf-period-nav { display: grid; gap: .4rem; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 24rem); }
.wf-schedule .wf-table :is(th,td) { padding: .3rem .4rem; }
.wf-schedule .wf-table thead th:not(.wf-employee) { white-space: nowrap; }
.wf-schedule .wf-table .wf-employee { position: sticky; left: 0; min-width: 7rem; z-index: 1; background: #eef4ef; overflow-wrap: anywhere; }
.wf-schedule .wf-table thead .wf-employee { z-index: 2; }
.wf-schedule .wf-employee span { display: inline-block; max-width: 100%; margin-inline-end: .25em; }
.wf-schedule .wf-table .wf-month-start { border-inline-start: 2px solid #527965; }
.wf-schedule .wf-table tbody tr > :first-child:not(.wf-employee) { position: static; }
.wf-schedule .wf-table thead tr > :first-child:not(.wf-employee) { left: auto; }
.wf-card > p, .requestHistoryCard > p { margin-block: .35rem; }

.wf-required { color: #8c251a; font-weight: 700; }
.wf-required textarea { border-color: #a33a30; }
#photoSave { margin-inline-start: .5rem; }

body:has(> .wf-schedule-page:not([hidden])) > :is(main,footer) { display:none !important; }
.wf-schedule-page { width: 100%; min-height: 100dvh; overflow: auto; padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom)); background: #fff; }
.wf-schedule-page > button { margin-top: .75rem; }

.deviceSettingsLayout { display: grid; grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr); gap: 1rem; margin-block: 1rem; align-items: start; }
.deviceSettingsNav { display: grid; gap: .45rem; }
.deviceSettingsNav button { text-align: start; }
.deviceSettingsNav button[aria-pressed="true"] { color: white; background: #194b3d; }
.deviceSettingsPanel { border: 1px solid #c7d5ce; border-radius: .65rem; padding: 1rem; }
.deviceSettingsPanel > h2 { margin-top: 0; }
#mobileUpdateForm { display: grid; gap: .75rem; max-width: 30rem; }
#mobileUpdateForm input[type="file"] { max-width: 100%; }
@media (max-width: 640px) {
  .deviceSettingsLayout { grid-template-columns: minmax(0,1fr); }
  .deviceSettingsNav { display: flex; flex-wrap: wrap; }
}

.wf-schedule-controls { display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px; }
.wf-schedule-controls .wf-toolbar,.wf-schedule-controls .wf-period-nav { display:flex; flex-wrap:wrap; gap:6px; margin:0; }
.wf-period-label { display:block; margin:8px 0 4px; }
.wf-table thead .wf-saturday { color:#175aa3; }
.wf-table thead .wf-sunday { color:#a32230; }
.wf-table thead .wf-employee { position:sticky; left:0; z-index:4; background:#e8efeb; }
.wf-card[data-status="rejected"] { border-color:#ab283a; }
.wf-card[data-status="pending"] { border-color:#a37725; }
.wf-dialog { box-sizing:border-box; max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 32px); }

.wf-schedule-page > h2 { margin:0 0 8px; }

.wf-saturday { color:#175aa3; }
.wf-sunday { color:#a32230; }
.wf-month-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; text-align:center; }
.wf-month-grid > div { display:grid; align-content:start; border:1px solid #cbd7ce; border-radius:4px; min-height:48px; padding:3px; overflow-wrap:anywhere; }
.wf-month-grid .wf-past { background:#eceeec; }
.wf-month-grid .wf-today { outline:2px solid #20765a; outline-offset:-2px; }
.wf-plan-cell { min-height:0; margin:0; padding:2px; border:0; font:inherit; color:inherit; background:transparent; }
@media (min-width:950px) {
  .wf-schedule-page .wf-month { table-layout:fixed; width:100%; min-width:0; }
  .wf-schedule-page .wf-month .wf-employee { width:145px; }
  .wf-schedule-page .wf-month :is(th,td) { padding:2px 0; font-size:.78rem; white-space:normal; overflow-wrap:anywhere; }
}

body.office[data-view=screen] #cameraIdleOverlay:not([hidden]){
  position:absolute!important;inset:38% 14% auto!important;z-index:2;
  margin:0;width:auto;min-height:44px;background:#fff;color:#194c3f;
}

.wf-schedule-controls > h2 { margin:0; }
.wf-view-modes,.wf-schedule-filters,.wf-period-nav { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.wf-view-modes { padding:3px; border-radius:8px; background:#e4eee8; }
.wf-view-modes button { min-width:2.6em; margin:0; }
.wf-schedule-controls .wf-schedule-filters select { width:auto; min-width:9em; min-height:44px; padding:6px 12px; font:inherit; color:inherit; border:1px solid #9eb7a8; border-radius:8px; background:#fff; }
.wf-schedule-period { display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px; margin:8px 0 6px; }
.wf-schedule-period .wf-period-label,.wf-schedule-period button { margin:0; }
.wf-date-heading span { display:block; line-height:1.2; }
.wf-date-heading span + span { font-size:.88em; }
.wf-schedule-notice:not(:empty) { position:fixed; z-index:20; inset:auto 12px max(18px, env(safe-area-inset-bottom)); width:max-content; max-width:calc(100% - 24px); margin-inline:auto; padding:9px 14px; background:#174738; color:#fff; border-radius:8px; pointer-events:none; box-sizing:border-box; }

.wf-schedule-nav { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin:0 0 12px; padding:6px; background:#eaf1ec; border-radius:8px; }
.wf-schedule-nav button,.wf-schedule-controls .wf-view-modes button { width:auto; margin:0; }
.wf-schedule-nav [aria-current="page"] { padding:8px 12px; border-radius:8px; }
.wf-schedule-nav [aria-current="page"],.wf-schedule-controls .wf-view-modes button[aria-pressed="true"] { color:#fff; background:#194d3b; border-color:#194d3b; font-weight:700; }
.wf-schedule-controls .wf-view-modes button[aria-pressed="true"] { box-shadow:inset 0 -3px #9ccead; }
.wf-close-top { margin-block:0 8px; }
.wf-schedule .wf-legend { margin-block:6px; }
.wf-table thead .wf-saturday,.wf-month-grid .wf-saturday { color:#103e68; background:#e0eefb; font-weight:750; }
.wf-table thead .wf-sunday,.wf-month-grid .wf-sunday { color:#86202b; background:#fbe6e8; font-weight:750; }
.wf-month-grid .wf-plan-cell { overflow-wrap:anywhere; white-space:normal; }
#leaveHome > button { display:block; width:min(100%,25rem); min-height:48px; margin:0 0 8px; text-align:left; }
#leaveHome > button:last-child { margin-bottom:0; }

.wf-dialog .wf-plan-form h3 { margin:12px 0 6px; }
.wf-dialog .wf-plan-form label { margin:6px 0; line-height:1.3; }
.wf-dialog .wf-plan-form .planDateRange[hidden] { display:none !important; }
.wf-dialog .wf-plan-form .planDateRange input { min-height:44px; margin-top:4px; }
.wf-dialog .wf-plan-form .wf-error:empty { display:none; }
.wf-plan-times { margin:8px 0; padding:4px 10px; min-width:0; border:1px solid #9bb1a3; border-radius:8px; }

body:not(.wf-schedule-open):not([data-view="leaveHome"]) .headerActions > .wf-schedule-timecard { display:none; }
.wf-schedule-open .wf-schedule-page { padding-block-start:8px; }
.wf-schedule-page .wf-schedule-nav { margin-bottom:8px; }
.wf-schedule-nav .wf-schedule-back { margin-inline-start:auto; }
.wf-schedule-page .wf-schedule-controls { gap:6px 10px; }
.wf-schedule-page .wf-schedule-controls > * { flex:0 0 auto; width:auto; max-width:100%; }
.wf-schedule-page .wf-schedule-controls > h2 { white-space:nowrap; }
.wf-schedule-page .wf-schedule-period { margin:0; gap:6px 8px; }
.wf-schedule-page .wf-period-nav button { width:auto; }
.wf-schedule-page .wf-view-modes { padding:3px; }
.wf-schedule-page .wf-schedule-filters select { min-width:7em; max-width:13em; }

.wf-dialog:has(.wf-plan-form) > h2 { margin-inline-end:6rem; }
.wf-dialog:has(.wf-plan-form) > .wf-close-top { position:absolute; inset-block-start:1rem; inset-inline-end:1rem; width:auto; margin:0; }
.wf-plan-applicants { display:flex; align-items:end; flex-wrap:wrap; gap:0 12px; }
.wf-plan-applicants > label:not(.wf-inline-check) { flex:1 1 12rem; }
.wf-dialog .wf-plan-form .wf-inline-check:not([hidden]) { display:flex; flex-direction:row-reverse; justify-content:flex-end; align-items:center; gap:5px; min-height:40px; }

.wf-schedule > .wf-schedule-controls { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; margin-block:0 8px; }
.wf-schedule-controls > :is(h2,.wf-view-modes,.wf-schedule-filters,.wf-schedule-period) { flex:0 0 auto; width:auto; max-width:100%; }
.wf-schedule-controls > h2 { white-space:nowrap; }
.wf-schedule-controls .wf-schedule-period { margin:0; gap:6px 8px; }
.wf-schedule-controls .wf-period-nav button { width:auto; }
.wf-schedule .wf-table-wrap { max-height:none; min-width:0; overflow-x:auto; overflow-y:hidden; }
@media (min-width:950px) {
  .wf-schedule .wf-month { table-layout:fixed; width:100%; min-width:0; }
  .wf-schedule .wf-month .wf-employee { width:145px; }
  .wf-schedule .wf-month :is(th,td) { padding:2px 0; font-size:.78rem; white-space:normal; overflow-wrap:anywhere; }
}
.wf-schedule-page { min-height:0; max-height:none; overflow:visible; }

.wf-dialog .wf-plan-form :is(input,select,textarea)[data-entry-state="empty"]:not(:disabled) { background:#fff4d6; border-color:#9a6b23; }
.wf-dialog .wf-plan-form :is(input,select,textarea)[data-entry-state="default"]:not(:disabled) { background:#e5effa; border-color:#6082a2; }

body:not([data-view="screen"]) .headerActions > .wf-header-leave { display:none; }
body[data-view="screen"] .wf-header-leave { width:auto; }
header.appHeader, body.office[data-view="screen"] header.appHeader {
  flex-direction:row; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px;
  padding:8px 16px;
}
.appHeader .headerActions { width:auto; justify-content:flex-end; margin-inline-start:auto; }
.appHeader .headerActions > :is(button,a.returnBusiness),
body.office[data-view="screen"] .appHeader .headerActions > a.returnBusiness {
  width:auto; min-height:40px; padding:7px 12px;
}

.wf-direct-menu { display:grid; gap:8px; max-width:25rem; margin-block:8px; }
.wf-direct-menu button { margin:0; text-align:left; }

body:not(.office) .headerActions > .wf-header-direct,
body:not([data-view="screen"]) .headerActions > .wf-header-direct,
body.wf-schedule-open .headerActions > .wf-header-direct,
body.wf-schedule-open:not(:has(.wf-direct-home,.wf-direct-schedule)) .headerActions > .wf-header-leave { display:none; }
body.wf-schedule-open:has(.wf-direct-home,.wf-direct-schedule) .headerActions > :is(.wf-header-leave,.wf-schedule-timecard) { display:inline-flex; }
body.wf-schedule-open .headerActions > #returnBusiness[hidden] { display:inline-flex !important; }
body.office[data-view="screen"].wf-schedule-open { height:auto; overflow:visible; }
.wf-schedule-page.wf-direct-home { max-width:1120px; margin:10px auto; padding:24px; border-radius:18px; }
.wf-direct-home > div { display:block; }
.wf-direct-home .wf-direct-menu { gap:8px; }

.appHeader :is(.wf-current-leave,.wf-current-direct) { display:none; }
body[data-view="leaveHome"]:not(.wf-schedule-open) .appHeader .wf-current-leave,
body.wf-schedule-open:not(:has(.wf-direct-home,.wf-direct-schedule)) .appHeader .wf-current-leave,
body.wf-schedule-open:has(.wf-direct-home,.wf-direct-schedule) .appHeader .wf-current-direct { display:inline-flex; }
.appHeader :is(.wf-current-leave,.wf-current-direct),
body[data-view="screen"]:not(.wf-schedule-open) .appHeader #timecardHeading {
  align-items:center; padding:7px 12px; border-radius:8px; background:#cde9df;
  color:#113f32; box-shadow:inset 0 -4px #53c89c; font-weight:700; white-space:nowrap;
}
body.wf-schedule-open .appHeader #timecardHeading { display:none; }

.wf-schedule-page .wf-legend { display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; padding:6px 8px; margin:8px 0; background:#edf4ef; border:1px solid #d0dfd5; border-radius:8px; }
.wf-schedule-page .wf-legend span { padding:2px 5px; }

.appHeader .headerActions > .wf-current-home { display:none; }
body[data-view="businessHome"]:not(.wf-schedule-open) .appHeader .headerActions > .wf-current-home { display:inline-flex; }
.appHeader .headerActions > :is(.wf-schedule-timecard,.wf-header-direct,.wf-header-leave) {
  color:#fff; background:transparent; border-color:transparent;
}
.appHeader .headerActions > :is(.wf-current-home,.wf-current-leave,.wf-current-direct,#timecardHeading) {
  align-items:center; gap:6px; min-height:40px; padding:7px 12px; border:1px solid #cde9df; border-radius:8px;
  background:#cde9df; color:#113f32; box-shadow:inset 0 -4px #53c89c; font-weight:700; white-space:nowrap;
}
body[data-view="screen"]:not(.wf-schedule-open) .appHeader .headerActions > #timecardHeading:not([hidden]),
body[data-view="message"] .appHeader .headerActions > #timecardHeading:not([hidden]) { display:inline-flex; }
.appHeader .headerActions > .wf-schedule-timecard .navPictogram { filter:brightness(0) invert(1); }

/* The shared iPad uses the same header dimensions and navigation slots across business screens. */
@media (min-width:760px) {
  body.office header.appHeader {
    display:grid; grid-template-columns:minmax(0,1fr); align-items:center;
    gap:6px 12px; padding:8px 16px; min-height:66px;
  }
  body.office header.appHeader .brandRow { min-height:40px; gap:8px; }
  body.office header.appHeader .brandRow .headerCompanyLogo { height:36px; }
  body.office header.appHeader .brandRow .brandTitle { font-size:20px; line-height:1.2; }
  body.office header.appHeader .brandRow small { font-size:11px; line-height:1.2; }
  body.office header.appHeader .headerEmployee { font-size:14px; line-height:1.2; }
  body.office header.appHeader .headerActions {
    justify-content:flex-start; align-items:center; gap:6px; margin:0; width:100%;
  }
  body.office header.appHeader .headerActions > :is(button,a.returnBusiness,.wf-current-home,.wf-current-leave,.wf-current-direct,#timecardHeading) {
    align-items:center; justify-content:center; gap:6px; min-height:40px; padding:7px 10px;
    font-size:14px; line-height:1.25; font-weight:600; white-space:nowrap;
  }
  body.office header.appHeader .headerActions .navPictogram { width:18px; height:18px; }
  body.office:is([data-view="businessHome"],[data-view="screen"],[data-view="leaveHome"],[data-view="message"],.wf-schedule-open) .appHeader .headerActions > :is(.wf-schedule-timecard,#timecardHeading,.wf-header-direct,.wf-current-direct,.wf-header-leave,.wf-current-leave) {
    flex:0 0 119px;
  }
  body.office:is([data-view="businessHome"],[data-view="screen"],[data-view="leaveHome"],[data-view="message"],.wf-schedule-open) .appHeader .headerActions > :is(.wf-schedule-timecard,.wf-header-direct,.wf-header-leave) { display:inline-flex; }
  body.office:is([data-view="screen"],[data-view="message"]):not(.wf-schedule-open) .appHeader .headerActions > .wf-schedule-timecard,
  body.office:is([data-view="leaveHome"]:not(.wf-schedule-open),.wf-schedule-open:not(:has(.wf-direct-home,.wf-direct-schedule))) .appHeader .headerActions > .wf-header-leave,
  body.office.wf-schedule-open:has(.wf-direct-home,.wf-direct-schedule) .appHeader .headerActions > .wf-header-direct { display:none; }
  body.office header.appHeader .headerActions > :is(.wf-current-home,#returnBusiness) {
    order:1; margin-inline-start:auto!important; flex:0 0 138px;
  }
  body.office header.appHeader .headerActions > :not(:is(.wf-current-home,#returnBusiness,.wf-schedule-timecard,#timecardHeading,.wf-header-direct,.wf-current-direct,.wf-header-leave,.wf-current-leave)) { order:2; }
}
@media (min-width:1100px) {
  body.office header.appHeader { grid-template-columns:minmax(0,1fr) auto; }
  body.office header.appHeader .headerActions { width:auto; }
}

.wf-request-detail .wf-request-fields {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: .4rem .75rem;
  margin: .7rem 0 1rem;
}
.wf-request-detail .wf-request-fields dt { font-weight: 700; }
.wf-request-detail .wf-request-fields dd { margin: 0; overflow-wrap: anywhere; }
.wf-request-detail .wf-request-state { font-weight: 700; margin: 0; }