:root{font-family:system-ui,-apple-system,'Malgun Gothic',sans-serif;color:#17283b;background:#f2f5f8;font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:10px;padding:12px 15px;font-weight:700}button:disabled{opacity:.4;cursor:not-allowed}input,select,textarea{border:1px solid #cbd5e1;background:#fff;border-radius:10px;padding:12px;width:100%;min-width:0}label{display:block;font-weight:650;margin:12px 0 7px}label>input,label>select,label>textarea{display:block;margin-top:7px}h1{font-size:24px;margin:0 0 7px}h2{font-size:19px;margin:0 0 13px}h3{font-size:16px;margin:22px 0 10px}p{line-height:1.55}.muted{color:#68798b}.tiny{font-size:12px}.eyebrow{font-size:11px;letter-spacing:.12em;color:#93b5dc;font-weight:800}.top{height:66px;background:#0d2740;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 max(16px,calc((100vw - 1100px)/2));gap:10px}.brand{display:flex;align-items:center;gap:10px}.brand strong{font-size:17px;letter-spacing:.04em}.brand small{display:block;color:#aec0d4;font-size:10px}.mark{display:grid;place-items:center;background:#1c83b7;border-radius:10px;font-size:21px;font-weight:900;width:38px;height:38px}.head-right{display:flex;align-items:center;gap:10px;font-size:12px}.top .muted{color:#cad5e0}main{max-width:1100px;margin:0 auto;padding:22px 16px 70px}.card{background:white;border:1px solid #e0e7ee;border-radius:16px;padding:22px;margin-bottom:16px;box-shadow:0 3px 18px #173e6510}.auth-card{max-width:460px;margin:45px auto;padding:28px}.auth-card .eyebrow{color:#2276a4}.stack{display:grid;gap:7px}.primary{background:#1672b4;color:white}.secondary{background:#e9f3fa;color:#0c5a8e}.outline{border:1px solid #cbd5e1;background:white;color:#28445b}.small{padding:7px 10px;font-size:12px}.full{width:100%;margin-top:10px}.inline{display:flex;gap:9px;align-items:center}.inline>input{flex:1}.spread{justify-content:space-between}.switch{display:flex;background:#edf2f7;padding:4px;border-radius:11px;margin:18px 0}.switch button{flex:1;padding:9px;background:transparent;color:#53687b}.switch .selected{background:white;box-shadow:0 1px 5px #1b395020;color:#0d5e94}.signature-wrap{border:2px dashed #c5d3df;border-radius:12px;background:white;touch-action:none;overflow:hidden}.signature-wrap canvas{width:100%;height:150px;display:block;touch-action:none}.check{display:flex;gap:9px;align-items:flex-start;font-weight:500}.check input{width:auto;margin:3px 0;flex-shrink:0}.notice{color:#aa3e30;font-size:13px}.mainbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:12px}.mainbar p{margin:0}.hero{border-radius:17px;padding:26px;background:linear-gradient(110deg,#103b5d,#1678a8);color:white;display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:15px}.hero h2{font-size:24px;margin:8px 0}.hero p{margin:0;color:#c5e4f3}.hero button{background:#fff;color:#0d598b;white-space:nowrap}.tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}.tiles button{background:#fff;border:1px solid #dbe6ed;text-align:left;min-height:74px}.wizardhead{display:flex;justify-content:space-between;align-items:center;margin:5px 0 12px}.pill{background:#e2edf5;border-radius:30px;padding:6px 10px;font-size:12px;color:#0d5d8d}.progress{height:7px;background:#dce6ef;border-radius:12px;overflow:hidden;margin-bottom:15px}.progress span{display:block;background:#1a81b7;height:100%;width:16.66%;transition:width .2s}.wizardnav{display:flex;justify-content:space-between;gap:12px}.wizardnav button{min-width:120px}.member-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.member-chip{border:1px solid #d6e1e9;border-radius:9px;padding:9px;background:#f8fafc;display:flex;gap:7px;align-items:center}.member-chip input{width:auto}.seg{display:flex;gap:7px;margin-top:14px;flex-wrap:wrap}.seg button{background:#edf2f6;color:#526b80}.seg .selected{background:#126ca4;color:white}.results{max-height:240px;overflow:auto;margin:10px 0}.result-row,.item-row,.approval-row,.work-row{border:1px solid #e0e7ee;border-radius:11px;padding:12px;margin:8px 0;background:#fff}.result-row{display:flex;justify-content:space-between;align-items:center;gap:8px}.result-row button{padding:8px 11px;white-space:nowrap}.item-row{display:flex;gap:8px;align-items:center;justify-content:space-between}.item-row .meta{flex:1}.item-row .controls{display:flex;gap:6px;align-items:center}.item-row .controls input{width:95px}.item-row .controls button{padding:8px}.selected-box{border:1px dashed #b5c9d9;padding:12px;border-radius:10px;background:#f6f9fc}.warning{border-left:3px solid #dba64c;background:#fff8ea;padding:11px;font-size:12px;color:#6f5726}.status{display:inline-block;border-radius:20px;padding:3px 9px;font-size:11px;font-weight:750;background:#f5e9c7;color:#795600}.status.approved{background:#d8f2e4;color:#176842}.status.rejected{background:#f9dddd;color:#a42e2e}.subcard{padding:14px;border:1px solid #dfe8ee;border-radius:12px;display:grid;gap:8px}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.approval-actions{display:flex;gap:8px;margin-top:10px}.approval-actions button{padding:8px 12px}.signature-preview{border:1px solid #e0e7ee;background:white;border-radius:8px;width:210px;height:70px}.quick-location{background:#e9f4fb;border-radius:12px;padding:17px;font-size:19px;font-weight:800;margin:12px 0}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);max-width:90vw;background:#102c43;color:#fff;padding:13px 18px;border-radius:10px;box-shadow:0 10px 35px #0004;display:none;z-index:1000}.toast.show{display:block}.modal{position:fixed;inset:0;background:#081e31aa;z-index:50;display:flex;align-items:center;justify-content:center;padding:12px}.modal[hidden]{display:none}.scan-card{width:min(100%,520px);max-height:95vh;overflow:auto}#qrReader{min-height:180px}hr{border:0;border-top:1px solid #e4eaf0;margin:20px 0}[hidden]{display:none!important}@media(max-width:650px){.top{height:60px}.brand strong{font-size:14px}.head-right .muted{max-width:95px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hero{display:block;padding:22px}.hero button{margin-top:18px;width:100%}.tiles{grid-template-columns:1fr 1fr}.tiles button{font-size:13px}.member-grid,.admin-grid{grid-template-columns:1fr 1fr}.card{padding:17px}.auth-card{margin:16px auto}.item-row{flex-wrap:wrap}.item-row .controls{width:100%;justify-content:flex-end}.mainbar h1{font-size:21px}}@media(max-width:380px){.member-grid{grid-template-columns:1fr}.top{padding:0 10px}}
/* v3.2 mobile camera, photo preview, home actions */
.home-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.photo-input{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin:12px 0}
.photo-input label{flex:1;min-width:185px}
.photo-input input[type=file]{display:block;width:100%;margin-top:8px;font-size:13px}
.photo-previews{display:grid;grid-template-columns:repeat(auto-fit,minmax(95px,1fr));gap:8px;margin:10px 0}
.photo-thumb{position:relative;border-radius:10px;overflow:hidden;background:#e9f1f5;border:1px solid #d7e2eb}
.photo-thumb img{display:block;width:100%;height:110px;object-fit:cover}
.photo-thumb small{display:block;text-align:center;padding:4px}
#vehicleMaintenanceForm{max-width:680px}
#vehicleMaintenanceForm label{display:block}
#vehicleMaintenanceForm input,#vehicleMaintenanceForm select,#vehicleMaintenanceForm textarea{width:100%}
@media(max-width:560px){.home-actions{width:100%}.home-actions button{flex:1;min-width:120px}.photo-input button{width:100%}}
.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
.quick-actions button{min-height:58px;font-size:17px}
#qrView>button{margin-top:8px}

/* v3.4 one-task mobile navigation */
.brand-logo{height:43px;max-width:235px;width:auto;object-fit:contain;background:#fff;border-radius:3px;padding:3px}.brand-sub{font-size:10px;color:#b9d3e4}.mainbar #homeBtn{position:sticky;top:9px;z-index:9}.wizardnav{position:sticky;bottom:0;background:#f2f5f8;padding:12px 0 max(13px,env(safe-area-inset-bottom));z-index:10}.returnnav button{flex:1}.return-step{min-height:42vh}.tbm-check-row{padding:11px;border:1px solid #dce5eb;border-radius:10px;margin:8px 0}.tbm-check-row label{margin:4px 0}.tbm-check-row textarea{margin-top:6px}.return-checked{background:#e2f7e9;border-color:#70c593}.return-mat{display:grid;grid-template-columns:1fr 100px;align-items:center;gap:10px;margin:12px 0;padding:10px;border:1px solid #ddd;border-radius:10px}.return-mat input{max-width:100px}.top{gap:12px}
@media(max-width:650px){main{max-width:540px;padding:12px 12px 110px}.top{padding:0 12px}.brand-logo{height:34px;max-width:160px}.brand-sub{display:none}.hero{padding:20px}.tiles{grid-template-columns:1fr 1fr}.card{padding:16px}.wizardnav button{min-height:52px;font-size:16px}.mainbar #mainSubtitle{font-size:12px}.mainbar h1{font-size:20px}#who{display:none}.return-step{min-height:58vh}}

/* v4.1: compact mobile-first monthly inspection wizard */
.inspection-fields{display:grid;gap:14px;margin-top:14px}.inspection-fields label{display:grid;gap:6px;font-weight:600}.inspection-fields input,.inspection-fields select,.inspection-fields textarea{width:100%;min-height:44px}.inspection-row{border:1px solid #e2e8f0;border-radius:10px;padding:12px;display:grid;gap:8px}.inspection-row small{color:#657588}.inspection-buttons{display:flex;gap:7px}.inspection-buttons label{flex:1;display:flex;align-items:center;justify-content:center;border:1px solid #d7e1eb;padding:10px;border-radius:9px;gap:5px;font-size:14px}.inspection-buttons input{width:auto;min-height:auto}.inspection-photo{display:grid;gap:5px;margin:6px 0}.inspection-photo input{max-width:100%}.inspection-photo img{width:100%;max-height:150px;object-fit:contain;border-radius:8px}.inspection-meta{font-size:12px;color:#60748a}.inspection-success{padding:12px;border:1px solid #aac7b0;background:#f3fbf5;border-radius:10px}@media(max-width:540px){#inspectionView{padding:12px}.inspection-fields{gap:12px}.inspection-row{padding:10px}}

.home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.home-grid button{text-align:left;min-height:86px;background:#fff;color:#092438;border:1px solid #dde5eb;border-radius:14px;font-weight:700}.home-grid small{display:block;color:#6c7a8a;font-weight:400;margin-top:8px}.shortcuts{margin:12px 0}.mobile-home-actions{display:flex;gap:10px;margin:15px 0}@media(max-width:440px){.home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-grid button{font-size:15px;padding:12px}.shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v4.2: five-card home, one task per screen, neutral clean header */
.top{background:#fff;color:#17283b;border-bottom:1px solid #dce3e9;box-shadow:none}.top .muted{color:#53657a}.brand-sub{color:#53657a}.brand-logo{background:transparent}.eyebrow{color:#2470aa}
.home-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.home-grid button{min-height:95px}.site-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.site-actions button{flex:1;min-width:125px}.work-link{display:block;width:100%;text-align:left;background:#fff;border:1px solid #dce5eb;border-radius:12px;margin:10px 0;padding:15px;color:#17283b}.work-link .muted{font-weight:400}.work-link:focus-visible{outline:3px solid #2582cc}.registration-only[hidden]{display:none}.asset-manager-form{margin-top:14px}.wizardnav{position:sticky;bottom:0}
@media(max-width:650px){.home-grid button{min-height:86px;font-size:15px}.site-actions{display:grid;grid-template-columns:1fr}.site-actions button{width:100%}}

/* v4.3 - one screen per site/warehouse task */
.site-choice{width:100%;display:flex;align-items:center;justify-content:space-between;background:#fff;color:#17283b;border:1px solid #e0e7ee;border-radius:13px;padding:18px 15px;text-align:left;margin:8px 0;min-height:70px;font-size:16px}
.site-choice small{display:block;color:#68798b;font-size:12px;margin-top:7px;font-weight:400}.site-choice-arrow{font-size:25px;color:#7a8c9e}.site-person{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:13px 2px;border-bottom:1px solid #e1e7ed}.warehouse-categories{margin:18px 0;grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-categories button{min-height:100px;text-align:center;font-size:18px}.site-actions{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0}.site-actions button{flex:1;min-width:130px}

/* White company header, retained from user's approved screen */
.top{background:#fff!important;color:#17283b!important;border-bottom:1px solid #e2e8ef;box-shadow:none}.top .muted,.brand-sub{color:#53677a!important}.top .outline{background:#fff;color:#17283b;border:1px solid #cbd5e1}.brand-logo{background:#fff}

/* v4.4 TBM signatures & site-selected mobile flow */
#tbmSignerPanel{margin-top:16px}#tbmSignerCanvas{touch-action:none}#tbmSignerList .site-choice{width:100%;margin:7px 0}.inspection-buttons input[type=radio]{width:auto;min-height:0}.tbm-check-row .inspection-buttons label{cursor:pointer}.tbm-check-row textarea{width:100%}.step[data-step="7"] .photo-previews{margin:12px 0}.step[data-step="8"] .inline button{flex:1}#fetchTbmWeather{margin-top:10px} .site-choice{min-height:54px}

/* v4.5 admin focused search */
.admin-search-box{display:grid;gap:10px;padding:12px;border:1px solid #dfe6ee;border-radius:14px}.admin-search-box .site-choice{width:100%}.admin-search-box #adminSearchResults{max-height:70vh;overflow:auto}.admin-search-box .subcard{margin-top:8px}.admin-search-box label{margin:6px 0}

/* v4.6: single-function admin landing */
.admin-category-grid{margin:12px 0 18px}.admin-category-grid button{min-height:92px}.admin-category-grid small{display:block;font-size:12px;font-weight:400;color:#64748b;margin-top:7px}.site-person{display:flex;justify-content:space-between;gap:12px;padding:13px;border:1px solid #e2e8f0;border-radius:10px;margin-bottom:8px}#managerSignModal canvas{touch-action:none;background:#fff}#adminDetailPanel>.outline{margin-bottom:12px}@media(max-width:650px){.admin-category-grid{grid-template-columns:1fr 1fr}}

/* v4.7 — one asset task per screen */
.asset-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}
.asset-tiles button{text-align:left;background:#fff;color:#123047;border:1px solid #dbe4ec;border-radius:14px;min-height:94px;padding:17px}
.asset-tiles small{display:block;font-size:12px;font-weight:400;color:#67798b;margin-top:7px}
#assetListPanel .result-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
#assetDetailBody .subcard{line-height:1.85;margin:16px 0}
#assetDetailBody .subcard>div{border-bottom:1px solid #edf2f5;padding:4px 0}
#assetRegistrationArea .registration-only{margin-top:12px}
#assetRegistrationArea h3{margin-top:12px}
@media(max-width:540px){.asset-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.asset-tiles button{min-height:108px;padding:13px}#assetListPanel .result-row{flex-wrap:wrap}}

/* v4.9: one function per screen, approval cards */
#adminApprovalCategories{margin-top:12px}
#adminApprovalDetail{margin-top:14px}
#adminApprovalDetail h3{margin:15px 0}
#adminApprovalBack{margin-bottom:12px}
#adminPendingSections>section{margin-top:10px}
#adminSearchBox[hidden]{display:none!important}

/* v4.11: site directory uses the same spacious card pattern as the home screen */
#siteDirectory.home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
#siteDirectory .home-site-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:10px;min-height:104px;border:1px solid #dce4ee;background:#fff;color:#16283a;border-radius:13px;padding:15px;text-align:left;font-weight:700}
#siteDirectory .home-site-card-icon{font-size:19px;color:#146fb4}#siteDirectory .site-choice-arrow{align-self:flex-end;color:#6c7a8a}
#employeeDirectoryResults{display:grid;gap:8px;margin:12px 0}
@media(max-width:420px){#siteDirectory.home-grid{gap:9px}#siteDirectory .home-site-card{min-height:92px;padding:12px;font-size:13px}}

/* v4.13: selection-only screens use the same two-column card style as Home.
   Do NOT apply to forms, approval decisions, inspection input, or editable tables. */
#warehouseItemList:not([hidden]),
#employeeDirectoryResults:not([hidden]),
#tbmSignerList:not([hidden]),
#worksList:not([hidden]) {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-content:start;
}
#warehouseItemList > .site-choice,
#employeeDirectoryResults > .site-choice,
#tbmSignerList > .site-choice,
#worksList > .work-link {
  margin:0; min-width:0; min-height:96px; padding:17px; border:1px solid #dbe4ed;
  border-radius:14px; display:flex; align-items:center; justify-content:space-between;
  background:#fff; color:#17283b; text-align:left; overflow-wrap:anywhere;
}
#worksList > .work-link{display:block;}
#warehouseItemList > .site-choice:focus-visible,
#employeeDirectoryResults > .site-choice:focus-visible,
#tbmSignerList > .site-choice:focus-visible,
#worksList > .work-link:focus-visible{outline:3px solid #2582cc;outline-offset:2px;}
#warehouseItemList > p,#employeeDirectoryResults > p,#tbmSignerList > p,#worksList > p{grid-column:1/-1;}
/* A site task picker is navigation; it should also read as a card menu. */
#siteOverview .site-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
#siteOverview .site-actions button{margin:0;min-height:88px;min-width:0;text-align:left;}
@media(max-width:360px){
 #warehouseItemList:not([hidden]),#employeeDirectoryResults:not([hidden]),
 #tbmSignerList:not([hidden]),#worksList:not([hidden]),
 #siteOverview .site-actions{grid-template-columns:1fr;}
}

/* v4.15: site menu, one activity per page */
.header-controls{display:flex;gap:8px;align-items:center}.site-nav-grid{margin-top:16px}.site-nav-grid button,.site-subpanel .home-grid button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;min-height:98px;padding:16px;border:1px solid #dce4ee;background:#fff;border-radius:14px;color:#17283b;text-align:left}.site-nav-grid button small,.site-subpanel .home-grid button small{color:#6c7a8a;font-weight:400}.site-subpanel{margin-top:12px}.site-subpanel>button:first-child{margin-bottom:16px}.site-history-group{margin:14px 0 24px}.site-nav-grid b{font-size:15px}@media(max-width:650px){.site-nav-grid,.site-subpanel .home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v4.16: compact stock-aware material selection table */
.material-table-wrap{overflow-x:auto;max-width:100%;border:1px solid #dae3ec;border-radius:12px;margin-top:10px}
.material-table{width:100%;border-collapse:collapse;font-size:13px;min-width:650px}
.material-table th,.material-table td{padding:10px 8px;border-bottom:1px solid #e5ebf1;text-align:left;vertical-align:middle}
.material-table th{background:#f2f6fa;font-size:12px;position:sticky;top:0}
.material-table .qty{text-align:right;font-variant-numeric:tabular-nums}
.material-table input[type=checkbox]{width:20px;height:20px;accent-color:#1976b9}
.material-table input[type=number]{width:82px;padding:8px}
.material-table tr.material-over{background:#fff4ef}

/* v4.17 navigation and site-scoped asset menu */
.header-controls{display:flex;align-items:center;gap:8px}.site-nav-grid,.home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#siteAssetResult{margin-top:14px}#siteAssetCards button{min-height:80px}#siteAssetCards button small{display:block;color:#66788a;font-weight:400;margin-top:6px}#siteNavAssets h3{margin-top:10px}
@media(max-width:480px){.header-controls{gap:5px}.header-controls button{padding:8px}.site-nav-grid,.home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v4.18: a single page heading for site screens; tables scroll on mobile */
#siteView > h2{display:none;}
#assetsList .material-table{min-width:690px}
#assetsList .material-table td:nth-child(3){min-width:120px}

/* v4.19: the main page title is the only top-level page heading.
   Preserve informative substep headings, selected turbine/site names, and list labels. */
#siteView > h2, #personalView #employeeMenuPanel > h2,
#approvalsView > .inline.spread > h2, #assetsView > .inline.spread > h2 {display:none!important;}
#approvalsView > .inline.spread {justify-content:flex-end;}

/* v4.21 consistent site menu sizing and TBM draft decision */
.site-nav-grid>button,.site-subpanel>.home-grid>button{min-height:90px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:left}
.draft-decision-overlay:not([hidden]){position:fixed;inset:0;z-index:2000;background:rgba(12,31,54,.56);display:flex;align-items:center;justify-content:center;padding:20px}
.draft-decision-card{width:min(100%,450px);border-radius:18px;padding:24px;background:#fff;box-shadow:0 14px 50px rgba(0,0,0,.20)}
.draft-decision-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.draft-decision-actions button{flex:1 1 95px}

/* v4.22: consistent menu heights across home/site/asset/selection views */
.home-grid > button, #siteDirectory .home-site-card, .site-nav-grid > button,
.site-subpanel .home-grid > button, #siteAssetCards > button,
.asset-tiles > button, #siteOverview .site-actions > button {
  min-height:92px!important;height:92px;box-sizing:border-box;
  margin:0!important;padding:14px!important;align-self:stretch;
}
#siteDirectory .home-site-card {gap:4px!important;justify-content:center!important}
#siteDirectory .home-site-card .site-choice-arrow{position:absolute;right:14px;bottom:10px}
#siteDirectory .home-site-card {position:relative}
.tbm-selected-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 4px;border-bottom:1px solid #dce5ee}
.tbm-selected-row:last-child{border-bottom:0}
.tbm-selected-row small{display:block;color:#61778a;margin-top:4px;font-size:12px}
.tbm-selected-row button{width:auto;flex:none}
#selectedVehicle{margin:10px 0;border:1px solid #b6d5eb;background:#edf7ff;font-weight:700}
#selectedTools:not(:empty), #selectedMaterials{margin:10px 0 16px}
@media(max-width:480px){.home-grid > button,#siteDirectory .home-site-card,.site-nav-grid > button,.site-subpanel .home-grid > button,#siteAssetCards > button,.asset-tiles > button,#siteOverview .site-actions > button{height:98px;min-height:98px!important;padding:11px!important}.tbm-selected-row{flex-wrap:wrap}}

/* v4.23: the header provides Back, language and Home. Remove duplicate secondary navigators. */
#assetsView #assetBackBtn,#assetsView #assetDetailBack,
#approvalsView #adminCategoryBack,#approvalsView #adminApprovalBack,
#approvalsView #approvalReload,#siteView #siteBack,
#siteView #warehouseBack,#siteView #warehouseItemsBack{display:none!important}
#assetsView .asset-panel > h3:first-child{margin-top:6px}
#assetsView #assetPageTitle{display:none!important}

/* v4.27 navigation */
#homeView #personalMenu{grid-column:auto}#employeeDirectoryResults .employee-group{margin:14px 0 22px}#employeeDirectoryResults .employee-group h3{margin:0 0 10px}#employeePersonDetail .result-row{margin:8px 0}#siteTbmHistory>button,#siteTbmMonthWorks>button,#siteMaintenanceTurbines>button{min-height:94px}#siteAssetExtra .home-grid{margin-top:12px}

/* v4.28 site personnel details */
#sitePeople .site-person-button{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;background:#fff;color:#17324e;border:1px solid #dce5ee;border-radius:12px;padding:15px 18px;margin-bottom:8px;cursor:pointer;}
#sitePeople .site-person-button small{display:block;color:#6c7a8a;margin-top:5px;font-weight:400;}
#siteStaffPerson .staff-profile{display:grid;gap:14px;}
#siteStaffPerson .staff-profile>.result-row{display:flex;justify-content:space-between;gap:12px;}
#siteStaffPerson .staff-profile>button{width:100%;margin-top:8px;}

/* v4.30 inline asset photo; never opens a new window */
.asset-photo-wrap{width:100%;min-height:48px;margin-bottom:16px}.asset-detail-photo{display:block;width:100%;max-height:380px;object-fit:contain;background:#f0f5fa;border:1px solid #dce6f0;border-radius:10px}.asset-photo-wrap:empty{display:none}

/* v4.31 QR details: show photo and site separately from current stock location */
.qr-asset-photo{margin:14px 0;min-height:60px}
.qr-asset-photo .asset-detail-photo{max-height:420px;object-fit:contain}
.quick-location{display:grid;gap:13px;font-size:18px}
.quick-location small{font-size:12px;font-weight:600;color:#426a87}
.qr-position{padding-top:12px;border-top:1px solid #cddfea;font-size:15px;font-weight:600}

/* v4.37 accounting */
.accounting-table{width:100%;border-collapse:collapse;margin-top:16px;font-size:13px}.accounting-table th,.accounting-table td{border-bottom:1px solid #dde5ee;padding:10px;text-align:left;white-space:nowrap}.accounting-table th{background:#f2f6fa;color:#23394b}.accounting-table button{white-space:nowrap}#accountingContent .home-grid{margin-top:12px}#accountingMessage:not(:empty){margin:10px 0;color:#1b6485}

/* Receipt scanning v4.40 */
.receipt-capture{display:grid;gap:12px;margin:12px 0}
.receipt-capture-actions{display:flex;gap:10px;flex-wrap:wrap}
.receipt-capture-actions button{flex:1;min-width:150px;min-height:42px}
.receipt-scanner{border:1px solid #d4e3ef;border-radius:12px;padding:12px;background:#f8fbfd}
.receipt-scanner[hidden]{display:none}
.receipt-scan-stage{max-width:650px;margin:auto;line-height:0;overflow:hidden;border-radius:9px}
.receipt-scan-stage canvas{display:block;width:100%;height:auto}
.receipt-scan-enhance{display:flex;align-items:center;gap:8px;margin:12px 0}
.receipt-scan-result{max-width:650px;margin:10px auto;text-align:center}
.receipt-scan-result img{width:auto;height:auto;max-width:100%;max-height:65vh;border:1px solid #d7e1eb}
/* v4.43 Height safety equipment inspection */
.hse-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hse-field{display:block}.hse-field input{display:block;width:100%;margin-top:5px}.hse-check{border:1px solid #d9e4ef;border-radius:9px;padding:12px;margin:10px 0;display:grid;gap:8px}.hse-check>div{display:flex;gap:20px}.hse-check input[type=text],.hse-check input:not([type]){width:100%}.hse-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hse-photo-item{border:1px solid #d9e4ef;border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:10px}.hse-photo-item img,.hse-placeholder{width:100%;height:170px;object-fit:contain;border-radius:6px;background:#f2f5f8}.hse-placeholder{display:flex;align-items:center;justify-content:center;color:#6a7989}.hse-month{display:flex;align-items:center;justify-content:space-between;width:100%;padding:16px;margin:9px 0;border:1px solid #d9e4ef;border-radius:10px;background:white;text-align:left}.hse-month-items{padding:6px 12px 14px;border-left:2px solid #b4d5ee}.hse-camera{position:fixed;z-index:99999;inset:0;background:#fff;display:flex;align-items:center;justify-content:center;padding:16px}.hse-camera[hidden]{display:none}.hse-camera>div{background:white;border-radius:12px;max-width:700px;width:100%;padding:15px}.hse-camera video{display:block;max-width:100%;width:100%;max-height:70vh;object-fit:contain;margin:10px auto;background:#fff}@media(max-width:550px){.hse-fields,.hse-photo-grid{grid-template-columns:1fr}}

.hse-code-box{grid-column:1/-1;border:1px solid #ccdbe9;border-radius:10px;padding:15px;background:#f5f9fe;display:grid;gap:9px}.hse-code-box .inline{display:flex;gap:8px;flex-wrap:wrap}.hse-code-box input{width:100%;margin-top:7px}.hse-code-box small{color:#45637b}#hseMatrixReader{width:100%;min-height:280px;overflow:hidden}#hseMatrixReader video{max-height:60vh;object-fit:contain}
/* v4.53 - isolated test lab / reminders */
.wd-bell{position:relative;font-size:1.25rem!important;min-width:46px}.wd-bell-active{border-color:#db8b27!important;box-shadow:0 0 0 2px rgba(244,177,66,.18)}
#wdNoticeCount{display:inline-block;position:absolute;top:-9px;right:-9px;background:#ad2b2b;color:white;border-radius:20px;padding:1px 6px;font-size:12px;font-weight:700;line-height:18px}
#wdNoticeCount[hidden]{display:none}
.wd-history-item{margin:12px 0}.wd-lab-grid{margin-bottom:14px}#wdTestContent .subcard{margin:10px 0}#wdTestContent table{width:100%;border-collapse:collapse}#wdTestContent th,#wdTestContent td{padding:9px;border-bottom:1px solid #dee3eb;text-align:left;white-space:nowrap}

/* v4.54: align notification button with Back / language / Home buttons. */
.header-controls{display:flex;align-items:center;gap:8px}
.header-controls > button.small{height:30px;min-height:30px;box-sizing:border-box;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;line-height:1;vertical-align:middle}
.header-controls > #wdNoticeBell{height:30px;min-height:30px;min-width:34px;width:34px;padding:0;font-size:16px!important;line-height:1}

/* v4.56 – unified, compact and accessible month/file history */
.wd-history-group{margin:8px 0;min-width:0}
.wd-history-month{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left;border:1px solid #d4e1f0;border-radius:10px;background:#fff;padding:14px 16px;min-height:43px;font-size:13px}
.wd-history-files{border-left:1px solid #bcd5ef;margin:7px 0 10px 0;padding:2px 10px 7px}
.wd-history-file{border:1px solid #d8e3ef;border-radius:10px;background:#fff;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:51px;padding:10px;margin:6px 0}
.wd-file-description{display:flex;flex-direction:column;min-width:0;flex:1;overflow-wrap:anywhere;gap:4px;font-size:12px}
.wd-file-description small{font-size:11px;color:#65788f}
.wd-file-actions{display:flex;align-items:center;gap:8px;flex:none}
.wd-file-actions button{white-space:nowrap;min-height:29px;padding:5px 10px;font-size:11px}
#siteTbmHistory,#siteMaintenanceTurbines{display:block!important}
#siteTbmHistory[hidden],#siteMaintenanceTurbines[hidden]{display:none!important}
.hse-month{min-height:43px;padding:12px 14px}
.hse-month-items{padding:4px 10px 10px}
@media(max-width:600px){.wd-history-file{flex-wrap:wrap}.wd-file-actions{width:100%;justify-content:flex-end}.wd-file-description{width:100%}}

/* v4.57: single contextual page title, standardized history layout */
#selectedSiteName{display:none!important}
#siteView > h2, #siteNavPpe > h3, #siteNavTbm > h3,#siteNavWork > h3,#siteNavHistory > h3,#siteNavJsa > h3,#siteNavTbmHistory > h3,#siteMaintenanceLocationName{display:none!important}
#hseView > .inline.spread,#inspectionView > .inline.spread > h2,#homeHseView > h2,#testView > .inline.spread > h2{display:none!important}
#siteMaintenanceTurbines .wd-history-group{display:block;width:100%;margin:8px 0}
#siteMaintenanceTurbines .wd-history-month{width:100%!important;min-height:43px!important;height:auto!important;padding:12px 14px!important;display:flex!important;flex-direction:row!important;justify-content:space-between!important;align-items:center!important;font-size:13px!important;line-height:1.3!important}
#siteMaintenanceTurbines .wd-history-month span{display:inline!important; margin:0!important}
#siteMaintenanceTurbines .wd-history-files{width:100%}
#siteMaintenanceTurbines .wd-history-file{display:flex;flex-direction:row;width:100%;min-height:52px;height:auto;justify-content:space-between;align-items:center;margin:6px 0}
#siteMaintenanceTurbines .wd-history-file .wd-file-actions button{min-height:29px!important;height:auto!important;padding:5px 10px!important;font-size:11px!important;display:inline-flex;align-items:center;white-space:nowrap;width:auto}
#siteMaintenanceTurbines .wd-history-file .wd-file-description{flex:1;min-width:0}
#hseClose{display:none!important}
#mainSubtitle{display:none!important}
@media(max-width:600px){#siteMaintenanceTurbines .wd-history-file{flex-direction:column;align-items:stretch}#siteMaintenanceTurbines .wd-history-file .wd-file-actions{justify-content:flex-end}}

/* v4.58: separate monthly site checklist panel */
#siteMonthlyDashboard[hidden]{display:none!important}
.site-monthly-dashboard{margin-top:22px;padding:22px 24px}
.wd-dashboard-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:18px}
.wd-dashboard-heading h2{font-size:17px;margin:0;color:#10283e}
.wd-dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.wd-dashboard-section{border:1px solid #d9e4ef;border-radius:12px;padding:16px;min-width:0}
.wd-dashboard-section-head{display:flex;justify-content:space-between;gap:10px;align-items:center;border-bottom:1px solid #e2eaf1;padding-bottom:12px;font-size:14px}
.wd-dashboard-section-head span{font-size:12px;color:#64778c}
.wd-dashboard-rows{padding:5px 0;min-height:50px}
.wd-dashboard-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 2px;border-bottom:1px solid #eff3f8;font-size:13px}
.wd-dashboard-row:last-child{border-bottom:0}
.wd-dashboard-state{font-size:12px;white-space:nowrap;font-weight:600}
.wd-dashboard-state.wd-complete{color:#14754d}
.wd-dashboard-state.wd-pending{color:#a45b24}
.wd-dashboard-open{margin-top:12px;min-height:30px!important}
@media(max-width:650px){.wd-dashboard-grid{grid-template-columns:1fr}.site-monthly-dashboard{padding:16px}}

/* v4.60: site-directory only displays per-site monthly completion rates. */
#siteDirectory .wd-site-progress-card{height:auto!important;min-height:174px!important;justify-content:flex-start!important;align-items:stretch!important;padding:14px 16px!important;gap:6px!important}
#siteDirectory .wd-site-progress-name{font-size:14px;font-weight:700;padding-right:18px}
#siteDirectory .wd-site-progress{width:100%;margin-top:7px;font-size:11px;font-weight:400;color:#40546b;padding-right:14px}
.wd-site-progress-top,.wd-site-progress-item{display:flex;align-items:center;justify-content:space-between;gap:6px}
.wd-site-progress-top b{font-size:15px;color:#126ca7}
.wd-site-progress-track{height:7px;background:#e8edf3;border-radius:10px;overflow:hidden;margin:7px 0 10px}
.wd-site-progress-track>span{display:block;height:100%;background:#247db4;border-radius:10px}
.wd-site-progress-item{line-height:1.7}
.wd-site-progress-unavailable{font-size:11px;color:#9a5330}
@media(max-width:480px){#siteDirectory .wd-site-progress-card{height:auto!important;min-height:174px!important}}

/* v4.63 My Page */
.wd-myprofile{margin-bottom:18px}.wd-myprofile-grid{display:grid;grid-template-columns:180px 1fr;grid-template-areas:'photo info' 'photo status';gap:22px;padding:12px 6px}.wd-myphoto{grid-area:photo;width:150px;height:170px;border:1px solid #d3deea;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#f8fafc;color:#506174;overflow:hidden}.wd-myphoto img{width:100%;height:100%;object-fit:cover}.wd-myinfo{grid-area:info;display:grid;grid-template-columns:1fr;gap:7px}.wd-myinfo-row{display:grid;grid-template-columns:85px 1fr;gap:9px;font-size:14px}.wd-myinfo-row b{font-weight:600}.wd-mysubmit{grid-area:status;padding:15px;border:1px solid #d8e2ef;border-radius:11px}.wd-mysubmit b{display:block;margin-bottom:8px}.wd-mysubmit div{white-space:pre-line}.wd-myfeature{min-height:75px;display:flex;align-items:center;justify-content:flex-start;text-align:left}.wd-myprofile input{max-width:100%}@media(max-width:640px){.wd-myprofile-grid{grid-template-columns:1fr;grid-template-areas:'photo' 'info' 'status'}.wd-myphoto{width:120px;height:130px}}

/* v4.66 – compact expandable top-right toolbar and refined My Page */
.mainbar{position:relative;align-items:center;min-height:42px}
.wd-action-drawer{display:flex;align-items:center;justify-content:flex-end;position:relative;z-index:55;flex-shrink:0;min-width:32px}
.wd-drawer-tab{width:34px;height:32px;min-height:32px;padding:0;display:grid;place-items:center;color:#275b85;border:1px solid #d1dfed;background:#fff;border-radius:9px;transition:background .18s,color .18s}
.wd-drawer-tab span{display:inline-block;font-size:20px;line-height:1;transition:transform .2s}
.wd-action-drawer:hover .wd-drawer-tab span,.wd-action-drawer.wd-open .wd-drawer-tab span{transform:rotate(180deg)}
.wd-action-drawer .header-controls{position:absolute;right:32px;top:50%;transform:translateY(-50%) translateX(6px);display:flex;gap:6px;align-items:center;background:#f2f5f8;border:1px solid #dbe5ee;border-radius:11px;padding:5px 6px;box-shadow:0 5px 16px #173e6515;white-space:nowrap;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s,visibility .15s}
.wd-action-drawer:hover .header-controls,.wd-action-drawer.wd-open .header-controls{visibility:visible;opacity:1;pointer-events:auto;transform:translateY(-50%) translateX(0)}
.wd-action-drawer .header-controls button{height:30px;min-height:30px;font-size:12px;white-space:nowrap}
.wd-action-drawer #globalBack{width:34px;min-width:34px;padding:0;font-size:17px}
.wd-action-drawer #mySettingsButton{width:34px;min-width:34px;padding:0;font-size:17px}
#mainTitle{font-size:23px;font-weight:750;letter-spacing:-.035em;color:#132b42}
#mypageView .card{border-radius:16px;border-color:#dce6f0;box-shadow:0 3px 17px #183c5b0b}
#mypageView .wd-myprofile{padding:26px 28px}
#mypageView .wd-myprofile-grid{grid-template-columns:165px minmax(0,1fr);grid-template-areas:'photo info' 'photo status';gap:24px;padding:6px 2px}
#mypageView .wd-myphoto{width:150px;height:170px;border-radius:14px;border-color:#d6e3ee;background:#f8fafc;color:#718298;font-size:14px}
#mypageView .wd-myinfo{gap:9px;align-content:start}
#mypageView .wd-myinfo-row{grid-template-columns:85px 1fr;font-size:14px;line-height:1.4;gap:12px}
#mypageView .wd-myinfo-row b{font-size:13px;color:#506278;font-weight:650}
#mypageView .wd-myinfo-row span{color:#16334b;font-weight:500}
#mypageView .wd-mysubmit{background:#fbfdff;border:1px solid #dbe7f2;border-radius:12px;padding:16px 18px}
#mypageView .wd-mysubmit>b{font-size:15px;color:#17344f;margin-bottom:7px}
.wd-my-status-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #e7edf4;font-size:13px}
.wd-my-status-row:last-child{border-bottom:0}
.wd-my-status-value{font-weight:650;white-space:nowrap}.wd-my-status-value.wd-ok{color:#11804f}.wd-my-status-value.wd-no{color:#ba6730}.wd-my-status-value.wd-idle{color:#8293a5}
#mypageView #myPageMenu{gap:10px}
#mypageView #myPageMenu .wd-myfeature{border:1px solid #dce6f0;border-radius:12px;background:#fff;padding:18px;min-height:86px;font-size:14px;line-height:1.45;font-weight:650;color:#1b3449;transition:border-color .16s,box-shadow .16s,background .16s}
#mypageView #myPageMenu .wd-myfeature:hover{background:#f8fbff;border-color:#9fc4e4;box-shadow:0 4px 14px #275b8512}
#mypageView #myPageMenu .wd-myfeature:focus-visible{outline:3px solid #6db2e8;outline-offset:2px}
@media(max-width:720px){.wd-action-drawer .header-controls{position:fixed;right:48px;top:76px;transform:translateY(0);max-width:calc(100vw - 65px);flex-wrap:wrap;justify-content:flex-end}.wd-action-drawer:hover .header-controls,.wd-action-drawer.wd-open .header-controls{transform:translateY(0)}#mypageView .wd-myprofile{padding:18px}#mypageView .wd-myprofile-grid{grid-template-columns:130px minmax(0,1fr);gap:14px}#mypageView .wd-myphoto{width:120px;height:140px}#mypageView .wd-myinfo-row{grid-template-columns:65px 1fr;font-size:12px;gap:5px}}
@media(max-width:500px){#mypageView .wd-myprofile-grid{grid-template-columns:1fr;grid-template-areas:'photo' 'info' 'status'}#mypageView #myPageMenu{grid-template-columns:repeat(2,minmax(0,1fr))}#mypageView #myPageMenu .wd-myfeature{font-size:12px;padding:12px;min-height:78px}#mainTitle{font-size:20px}}

/* v4.67: My Page menu titles and muted descriptions */
#mypageView #myPageMenu .wd-myfeature{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:5px;text-align:left}
#mypageView #myPageMenu .wd-myfeature-title{font-size:14px;font-weight:700;line-height:1.3;color:#17344f}
#mypageView #myPageMenu .wd-myfeature-desc{display:block;font-size:11px;font-weight:400;line-height:1.5;color:#75869a}
.wd-housing-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid #e2eaf2}
.wd-housing-row:last-child{border-bottom:none}.wd-housing-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.wd-housing-upload{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;border:1px solid #cbd9e6;border-radius:8px;padding:8px 12px;background:white;color:#21496b}
@media(max-width:640px){.wd-housing-row{align-items:flex-start;flex-direction:column}}

/* v4.68: always-visible icon-only top-right actions; no triangle / hover drawer */
.wd-action-drawer{min-width:0;display:flex;align-items:center;position:relative;z-index:12}
.wd-action-drawer .header-controls,.wd-action-drawer:hover .header-controls,.wd-action-drawer.wd-open .header-controls{position:static;right:auto;top:auto;transform:none;visibility:visible;opacity:1;pointer-events:auto;display:flex;align-items:center;gap:6px;padding:5px 6px;white-space:nowrap}
.wd-action-drawer #homeBtn,.wd-action-drawer #adminModeButton,.wd-action-drawer #globalBack,.wd-action-drawer #mySettingsButton{width:34px;min-width:34px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:17px}
.wd-action-drawer #globalBack[hidden],.wd-action-drawer #adminModeButton[hidden],.wd-action-drawer #mySettingsButton[hidden]{display:none}
@media(max-width:720px){.wd-action-drawer .header-controls,.wd-action-drawer:hover .header-controls,.wd-action-drawer.wd-open .header-controls{position:static;right:auto;top:auto;transform:none;max-width:100%;flex-wrap:nowrap}}

/* v4.69: consistent subdued description and actual navigable module cards */
.wd-module-view{min-height:140px;padding:22px}
.wd-module-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.wd-module-tile{min-height:82px;border:1px solid #dce6f0;background:#fff;border-radius:12px;padding:17px 19px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;color:#17344f;transition:background .15s,border-color .15s}
.wd-module-tile:hover{background:#f8fbff;border-color:#9fc4e4}
.wd-module-tile:focus-visible{outline:3px solid #6db2e8;outline-offset:2px}
.wd-module-tile .wd-myfeature-title{font-weight:700;font-size:14px}
.wd-module-arrow{font-size:20px;color:#8098ad}
.wd-module-placeholder{padding:15px 10px;line-height:1.7}
.wd-module-placeholder h3{font-size:16px;margin:0 0 10px;color:#193951}
@media(max-width:520px){.wd-module-grid{grid-template-columns:1fr}.wd-module-tile{min-height:68px}}

/* v4.70 - move personal information and monthly status slightly right while preserving responsive layout */
@media(min-width:721px){
 #mypageView .wd-myprofile-grid{grid-template-columns:195px minmax(0,1fr);gap:28px}
}

/* v4.71: keep profile photo and employee details side-by-side on phones. */
@media (max-width:500px){
  #mypageView .wd-myprofile{padding:14px 12px;}
  #mypageView .wd-myprofile-grid{
    display:grid;
    grid-template-columns:clamp(88px,27vw,116px) minmax(0,1fr);
    grid-template-areas:'photo info' 'status status';
    column-gap:12px;
    row-gap:16px;
    padding:0;
    align-items:start;
  }
  #mypageView .wd-myphoto{
    width:100%;height:auto;aspect-ratio:3/4;
    min-height:116px;
    font-size:12px;
  }
  #mypageView .wd-myinfo{min-width:0;gap:5px;}
  #mypageView .wd-myinfo-row{
    grid-template-columns:51px minmax(0,1fr);
    gap:5px;
    font-size:11px;
    line-height:1.45;
    align-items:start;
  }
  #mypageView .wd-myinfo-row b{font-size:11px;white-space:nowrap;}
  #mypageView .wd-myinfo-row span{min-width:0;overflow-wrap:anywhere;word-break:break-word;}
  #mypageView .wd-mysubmit{grid-area:status;margin:0;padding:12px 13px;}
  #mypageView .wd-my-status-row{font-size:12px;}
}
@media (max-width:360px){
  #mypageView .wd-myprofile{padding:12px 10px;}
  #mypageView .wd-myprofile-grid{grid-template-columns:82px minmax(0,1fr);column-gap:9px;}
  #mypageView .wd-myinfo-row{grid-template-columns:47px minmax(0,1fr);gap:3px;font-size:10px;}
  #mypageView .wd-myinfo-row b{font-size:10px;}
}


/* v4.72 — unified subtle hover feedback across navigation/menu cards.
   Scope intentionally excludes forms, submit/delete/approval buttons, controls,
   readonly status, and ordinary inspection rows. */
@media (hover: hover) and (pointer: fine) {
  :is(
    #mypageView #myPageMenu .wd-myfeature,
    .wd-module-tile,
    .home-grid > button,
    .site-nav-grid > button,
    .site-subpanel .home-grid > button,
    #siteDirectory .home-site-card,
    #siteAssetCards > button,
    .asset-tiles > button,
    #siteOverview .site-actions > button,
    #sitePeople .site-person-button,
    .site-choice,
    .work-link,
    #warehouseItemList > .site-choice,
    #employeeDirectoryResults > .site-choice,
    #tbmSignerList > .site-choice,
    .wd-history-month
  ):not(:disabled):not([aria-disabled="true"]):hover {
    background-color: #f8fbff !important;
    border-color: #9fc4e4 !important;
    box-shadow: 0 4px 14px #275b8512;
  }
}
:is(
  #mypageView #myPageMenu .wd-myfeature,
  .wd-module-tile,
  .home-grid > button,
  .site-nav-grid > button,
  .site-subpanel .home-grid > button,
  #siteDirectory .home-site-card,
  #siteAssetCards > button,
  .asset-tiles > button,
  #siteOverview .site-actions > button,
  #sitePeople .site-person-button,
  .site-choice,
  .work-link,
  .wd-history-month
) {
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
:is(
  #mypageView #myPageMenu .wd-myfeature,
  .wd-module-tile,
  .home-grid > button,
  .site-nav-grid > button,
  .site-subpanel .home-grid > button,
  #siteDirectory .home-site-card,
  #siteAssetCards > button,
  .asset-tiles > button,
  #siteOverview .site-actions > button,
  #sitePeople .site-person-button,
  .site-choice,
  .work-link,
  .wd-history-month
):focus-visible {
  outline: 2px solid #6db2e8;
  outline-offset: 2px;
  background-color: #f8fbff;
  border-color: #9fc4e4;
}
@media (prefers-reduced-motion: reduce) {
  :is(.home-grid > button, .site-choice, .wd-module-tile, .wd-history-month, .work-link) {
    transition: none;
  }
}

/* v4.73 현장별 점검 및 사고보고 표 */
.wd-directory-period,.wd-period-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.wd-period-tabs{display:inline-flex;gap:0;border:1px solid #d8e2ec;border-radius:8px;overflow:hidden;background:#fff}
.wd-period-tabs button{font-size:12px;padding:8px 17px;border:0;border-right:1px solid #e3eaf1;border-radius:0;background:transparent;color:#64758b;min-width:62px;min-height:32px}
.wd-period-tabs button:last-child{border-right:0}
.wd-period-tabs button.wd-selected{background:#eaf3fc;color:#075b9a;font-weight:700}
.wd-report-counts{border-top:1px solid #e4ebf2;margin-top:8px;padding-top:7px}
.wd-report-counts>div{display:flex;justify-content:space-between;gap:8px;line-height:1.85;font-size:11px}
.wd-report-counts strong{color:#186fa6}
.wd-report-summary{margin-top:15px;border:1px solid #d9e5f1;border-radius:10px;padding:14px 18px;background:#fbfdff}
.wd-report-summary h3{font-size:14px;margin:0 0 10px}
.wd-report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.wd-report-stat{border:1px solid #dde7f1;background:#fff;border-radius:8px;padding:12px;font-size:12px}
.wd-report-stat strong{display:block;font-size:21px;color:#166ca8;margin-top:5px}
.wd-report-form{max-width:850px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.wd-report-form label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600}
.wd-report-form .wd-full{grid-column:1/-1}
.wd-report-form input,.wd-report-form textarea{width:100%;font-size:14px;min-height:40px}
.wd-report-form textarea{min-height:105px}
.wd-report-actions{display:flex;gap:10px;flex-wrap:wrap}
.wd-report-record{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #d9e4f0;border-radius:10px;padding:12px;margin:8px 0;font-size:12px}
.wd-report-record small{display:block;color:#63758b;margin-top:5px}
@media(max-width:650px){.wd-report-grid{grid-template-columns:1fr}.wd-report-form{grid-template-columns:1fr}.wd-report-record{align-items:flex-start;flex-direction:column}.wd-directory-period{margin-top:4px}}

/* v4.75 – Monthly status first, employee details revealed through Mypage toggle */
#mypageView .wd-myprofile-collapsible{display:flex;flex-direction:column;gap:12px;padding:18px 22px;min-width:0}
#mypageView .wd-myprofile-toolbar{display:flex;justify-content:flex-end;align-items:center}
#mypageView .wd-myprofile-toggle{display:inline-flex;align-items:center;gap:7px;min-height:30px;font-weight:650;border-radius:8px}
#mypageView .wd-profile-toggle-arrow{display:inline-block;transition:transform .18s ease}
#mypageView .wd-myprofile-toggle[aria-expanded="true"] .wd-profile-toggle-arrow{transform:rotate(90deg)}
#mypageView .wd-myprofile-collapsible>.wd-mysubmit{width:100%;margin:0;grid-area:auto}
#mypageView .wd-my-personal-details{display:grid;grid-template-columns:165px minmax(0,1fr);gap:28px;align-items:start;padding:12px 6px;border-top:1px solid #e4edf5}
#mypageView .wd-my-personal-details[hidden]{display:none!important}
#mypageView .wd-my-personal-details .wd-myphoto{grid-area:auto}
#mypageView .wd-my-personal-details .wd-myinfo{grid-area:auto}
@media(max-width:500px){
 #mypageView .wd-myprofile-collapsible{padding:14px 12px;gap:10px}
 #mypageView .wd-my-personal-details{grid-template-columns:clamp(88px,27vw,116px) minmax(0,1fr);column-gap:12px;padding:10px 0}
 #mypageView .wd-my-personal-details .wd-myphoto{width:100%;height:auto;aspect-ratio:3/4;min-height:112px}
 #mypageView .wd-my-personal-details .wd-myinfo-row{grid-template-columns:51px minmax(0,1fr);font-size:11px;gap:5px}
}

/* v4.79 PPE progress dashboard */
.wd-ppe-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.wd-ppe-heading h2{font-size:18px;margin:0}.wd-ppe-tabs{display:flex;gap:4px;border-bottom:1px solid #dae6f0;margin:16px 0}.wd-ppe-tabs button{border:0;border-radius:8px 8px 0 0;background:transparent;color:#53677c;padding:12px 18px}.wd-ppe-tabs button.selected{background:#e8f2fc;color:#09659e;border-bottom:2px solid #1678b8}.wd-ppe-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0 20px}.wd-ppe-summary button{display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left;padding:18px;background:white;border:1px solid #dce5ed;border-radius:14px}.wd-ppe-summary button:hover,.wd-ppe-site-card:hover{background:#f5faff;border-color:#9fc4e4}.wd-ppe-summary strong{font-size:25px;color:#0a6ba9}.wd-ppe-summary small,.wd-ppe-summary span{color:#65788b}.wd-ppe-site-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.wd-ppe-site-card{border:1px solid #dae4ed;background:white;border-radius:12px;padding:14px;text-align:left;display:flex;flex-direction:column;gap:7px}.wd-ppe-site-card strong{font-size:19px;color:#0a6ba9}.wd-ppe-site-card span{color:#647589;font-size:12px}.wd-ppe-track{background:#e6edf4;border-radius:6px;height:6px;overflow:hidden}.wd-ppe-track i{display:block;height:100%;background:#2186c0}.wd-ppe-select{display:flex;align-items:center;gap:12px;margin:14px 0}.wd-ppe-select select{width:auto;max-width:300px}.wd-ppe-listhead{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:18px 0 10px}.wd-ppe-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.wd-ppe-checkall{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:13px}.wd-ppe-checkall input,.wd-ppe-person input{width:16px;height:16px;margin:0}.wd-ppe-person{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border-bottom:1px solid #e2eaf2}.wd-ppe-person-left{display:flex;align-items:center;gap:9px;min-width:0;flex-wrap:wrap}.wd-ppe-person-left small{color:#65768a}.wd-ppe-good{color:#18834e}.wd-ppe-bad{color:#c15c20}.wd-ppe-person-list{border:1px solid #e2eaf2;border-radius:12px;overflow:hidden}#wdPpeRefresh{margin-top:16px}@media(max-width:520px){.wd-ppe-summary,.wd-ppe-site-grid{grid-template-columns:1fr}.wd-ppe-tabs button{padding:11px}.wd-ppe-person{font-size:12px}}

/* v4.80: reference-style compact monochrome quick actions. */
.wd-action-drawer .header-controls{background:#f7f9fc;border:1px solid #d7e0ed;border-radius:17px;padding:6px;gap:7px;box-shadow:0 3px 11px #1b355112;max-width:100%;}
.wd-action-drawer .header-controls > button.small{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;min-width:36px;height:36px;min-height:36px;padding:0;border:1px solid #cdd7e4;border-radius:12px;background:#fff;color:#111b29;font-weight:700;box-shadow:0 1px 2px #0f28410b;line-height:1;}
.wd-action-drawer .header-controls > button.small:hover{background:#f0f6fc;border-color:#92b6d9;}
.wd-action-drawer .header-controls > button.small:focus-visible{outline:2px solid #276cba;outline-offset:2px;}
.wd-action-drawer .header-controls > button.small[hidden]{display:none!important;}
.wd-action-drawer .header-controls > button.small:disabled{opacity:.4;}
.wd-action-drawer .header-controls svg{display:block;flex-shrink:0;}
.wd-action-drawer .header-controls #wdHarnessQuick{color:#0a0e14;}
.wd-action-drawer .header-controls #wdNoticeBell{position:relative;font-size:initial!important;width:36px;min-width:36px;}
@media(max-width:600px){
 .wd-action-drawer .header-controls{gap:4px;padding:4px;border-radius:12px;}
 .wd-action-drawer .header-controls > button.small{flex-basis:30px;min-width:30px;width:30px;height:32px;min-height:32px;border-radius:10px;}
 .wd-action-drawer .header-controls svg{width:19px;height:19px;}
 .wd-action-drawer .header-controls #wdNoticeBell{width:30px;min-width:30px;}
}

/* v4.81: one photo/check per screen, compact P/F + comment line */
.hse-photo-single{display:flex;flex-direction:column;gap:14px;max-width:850px;margin:18px auto 0;padding:18px;border:1px solid #d7e4f2;border-radius:14px;background:#fff}
.hse-photo-large,.hse-photo-empty{width:100%;height:clamp(220px,45vh,520px);object-fit:contain;border-radius:12px;background:#f3f7fb;border:1px solid #e0e8f2}
.hse-photo-empty{display:flex;align-items:center;justify-content:center;gap:12px;color:#738397}.hse-photo-empty span{font-size:32px}
.hse-photo-single>button{align-self:flex-start;min-height:42px}
.hse-pf-line{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;border:1px solid #d9e4ef;background:#f9fbfd;border-radius:10px;padding:10px;min-width:0}
.hse-pf-caption{font-weight:650;white-space:nowrap;font-size:13px}
.hse-pf-line label{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:13px;margin:0;cursor:pointer}
.hse-pf-line input[type=radio]{width:17px;height:17px;flex-shrink:0;accent-color:#287fc2;margin:0}
.hse-pf-line input[type=text]{min-width:0;flex:1 1 90px;width:auto;margin:0;padding:9px;font-size:13px}
.hse-camera>div{max-height:calc(100dvh - 32px);overflow-y:auto}
.hse-camera video{max-height:48dvh}
.hse-camera-assessment{margin:12px 0}
@media(max-width:540px){.hse-photo-single{padding:10px}.hse-pf-line{gap:5px;padding:7px}.hse-pf-caption{font-size:11px}.hse-pf-line label{font-size:11px;gap:3px}.hse-pf-line input[type=radio]{width:15px;height:15px}.hse-pf-line input[type=text]{font-size:12px;padding:8px 5px;flex-basis:65px}.hse-photo-large,.hse-photo-empty{height:34vh}.hse-camera video{max-height:38dvh}}

/* v4.83: 14 photo steps followed by a compact single-line equipment details page. */
.hse-info-rows{display:grid;gap:7px;margin:12px 0}
.hse-info-row{display:grid;grid-template-columns:minmax(130px,28%) minmax(0,1fr);align-items:center;gap:12px;margin:0;padding:6px 10px;border:1px solid #d9e4ef;border-radius:9px}
.hse-info-row>span{font-weight:600;font-size:13px;line-height:1.35}
.hse-info-row>input{min-width:0;width:100%;margin:0;height:36px;padding:5px 10px;font-size:14px}
.hse-info-row>input[readonly]{background:#f7f9fc;color:#435366}
.hse-scan-summary{display:grid;gap:4px;font-size:12px;color:#62738a;margin:12px 0;overflow-wrap:anywhere}
.hse-final-summary{border-radius:8px;background:#f0f5fa;padding:10px;font-size:13px;margin-bottom:12px}
.hse-label-scan-status{font-size:12px;display:flex;gap:6px;flex-wrap:wrap;overflow-wrap:anywhere;color:#52627a}
@media(max-width:540px){
 .hse-info-row{grid-template-columns:95px minmax(0,1fr);gap:7px;padding:4px 7px}
 .hse-info-row>span{font-size:11px}
 .hse-info-row>input{height:34px;font-size:12px;padding:4px 7px}
}

/* v4.84: label-first scanning and AI-assisted manual review */
.wd-label-result,.wd-ai-advice{display:flex;flex-direction:column;gap:8px;padding:12px;margin:10px 0;border:1px solid #d6e2ed;border-radius:12px;background:#f9fbff;color:#21364e}
.wd-label-result small,.wd-ai-advice small{color:#5a7187;overflow-wrap:anywhere}
.wd-label-result label{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.wd-label-result input{flex:1;min-width:130px}
.wd-review-check{display:flex;align-items:flex-start;gap:8px;font-weight:600;font-size:13px}
.wd-review-check input{width:18px;height:18px;flex:none;margin:0}
.wd-hse-video-wrap{position:relative}
.wd-hse-video-wrap video{max-width:100%;display:block}
.wd-label-guide{position:absolute;inset:21% 17%;border:3px dashed #d7ecff;border-radius:14px;box-shadow:0 0 0 999px #0004;pointer-events:none}
.wd-label-guide span{position:absolute;top:0;left:0;right:0;transform:translateY(-110%);text-align:center;background:#18263bbd;color:white;font-size:12px;padding:4px}
@media(max-width:550px){.wd-label-result,.wd-ai-advice{padding:9px}.wd-label-guide{inset:22% 17%}}

/* v4.85 - minimal camera-first inspection on mobile. Results are only visible after capture. */
#hseWizard .wd-photo-step-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 0 10px}
#hseWizard .wd-photo-step-heading h3{margin:0;font-size:17px;line-height:1.3}
#hseWizard .wd-photo-step-heading>span{font-size:12px;color:#67809a;white-space:nowrap}
#hseWizard .hse-photo-single{max-width:none;margin:0;padding:12px;gap:10px}
#hseWizard .hse-photo-large,#hseWizard .hse-photo-empty{display:flex;width:100%;height:auto;aspect-ratio:4/3;max-height:330px;object-fit:contain;align-items:center;justify-content:center;gap:8px}
#hseWizard .hse-photo-empty span{font-size:13px}
#hseWizard .hse-photo-empty span:first-child{font-size:26px}
#hseWizard .hse-photo-single>button[data-hse-camera]{align-self:stretch;width:100%;min-height:44px}
#hseWizard .wd-after-capture{display:grid;gap:9px}
#hseWizard .wd-ai-compact{margin:0;padding:10px;gap:7px}
#hseWizard .wd-ai-compact>div{display:grid;gap:3px}
#hseWizard .wd-ai-compact b{font-size:13px}
#hseWizard .wd-ai-compact small{font-size:12px}
#hseWizard .wd-ai-compact .wd-review-check{margin:2px 0 0;align-items:center;gap:8px;font-weight:500;font-size:12px}
#hseWizard .wd-label-compact{padding:10px;margin:0;gap:5px}
#hseWizard .wd-label-line{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;margin:0;font-size:13px}
#hseWizard .wd-label-line input{width:100%;min-width:0;margin:0;font-size:14px;height:40px}
#hseWizard .wd-label-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}
#hseWizard .wd-label-foot small{font-size:11px}
#hseWizard .wd-label-foot button{padding:6px 12px;white-space:nowrap}
#hseWizard .wd-photo-processing{margin:0;padding:9px 12px;border-radius:8px;background:#eff6fc;color:#315e80;font-size:13px}
#hseWizard .wizardnav{position:static;margin-top:14px;background:transparent;padding:8px 0 10px;z-index:auto}
#hseWizard .hse-pf-line{gap:8px}
@media(max-width:600px){
 #hseWizard .hse-photo-single{padding:9px}
 #hseWizard .hse-photo-large,#hseWizard .hse-photo-empty{max-height:230px;aspect-ratio:4/3}
 #hseWizard .wd-photo-step-heading h3{font-size:16px}
 #hseWizard .hse-pf-caption{display:none}
 #hseWizard .hse-pf-line{display:flex;gap:7px;padding:8px;flex-wrap:nowrap}
 #hseWizard .hse-pf-line label{font-size:12px;gap:3px}
 #hseWizard .hse-pf-line input[type=text]{min-width:0;flex:1 1 80px}
 #hseWizard .wd-label-line{grid-template-columns:85px minmax(0,1fr);gap:8px;font-size:12px}
 #hseWizard .wd-label-line input{height:36px;padding:7px;font-size:13px}
 #hseWizard .wizardnav button{min-height:44px}
}

/* v4.86: four-by-three camera and compact PPE wizard */
#hseCamera .wd-hse-video-wrap{position:relative;width:100%;aspect-ratio:4/3;max-height:min(62dvh,520px);overflow:hidden;background:#0b1119;border-radius:10px;margin:9px 0}
#hseCamera #hseCameraVideo{width:100%;height:100%;aspect-ratio:4/3;max-height:none;object-fit:cover;display:block;margin:0}
#hseCamera .wd-label-guide{inset:18% 13%;aspect-ratio:4/3;max-height:62%;}
#hseWizard .wizardhead b{display:none}
#hseWizard .wd-photo-step-heading{display:flex;align-items:center}
#hseWizard .wd-photo-step-heading>span{display:none}
#hseWizard .wd-after-capture{margin-top:8px}
#hseWizard .wd-label-compact{border:0;background:transparent;padding:0}
#hseWizard .wd-label-line{display:grid;grid-template-columns:95px minmax(0,1fr)}
#hseWizard .wd-label-foot,#hseWizard .wd-ai-advice{display:none}
#hseWizard .hse-scan-summary,#hseWizard .hse-final-summary{display:none}
#hseHistory .wd-hse-delete{color:#a73333;border-color:#e8c2c2}
#hseHistory .wd-hse-delete:hover{background:#fff1f1}
/* Fixed quick navigation at the bottom, retaining all existing button handlers */
#app .mainbar{padding-bottom:6px}
#app .wd-action-drawer{position:fixed!important;bottom:calc(10px + env(safe-area-inset-bottom,0px));left:50%;right:auto;top:auto;transform:translateX(-50%);z-index:9500;max-width:calc(100vw - 16px);width:max-content}
#app .wd-action-drawer .header-controls,#app .wd-action-drawer:hover .header-controls,#app .wd-action-drawer.wd-open .header-controls{position:static!important;transform:none!important;display:flex!important;flex-wrap:nowrap!important;gap:6px;max-width:100%;background:#f7f9fc}
#app{padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))}
@media(max-width:500px){#app .wd-action-drawer .header-controls{gap:4px;padding:4px}#app .wd-action-drawer .header-controls>button.small{width:clamp(33px,10vw,42px);min-width:0;flex:0 0 clamp(33px,10vw,42px)}#hseCamera .wd-hse-video-wrap{max-height:56dvh}}


/* v4.87: hide all operational views while the user's landing destination is being resolved */
#startupLoading.wd-startup-loading{max-width:440px;margin:48px auto;display:flex;align-items:center;justify-content:center;gap:12px;color:#44556b;font-size:14px;min-height:96px}
#startupLoading[hidden]{display:none!important}
.wd-startup-spinner{width:20px;height:20px;flex:none;border:2px solid #d9e1e8;border-top-color:#3278b5;border-radius:50%;animation:wd87spin .8s linear infinite}
@keyframes wd87spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.wd-startup-spinner{animation:none}}

/* v4.88: final navigation design; filled soft-grey rounded buttons, black icons.
   Explicit id/class targeting avoids legacy .outline/.small and header-control overrides. */
#app #wdActionDrawer{position:fixed!important;bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;left:50%!important;right:auto!important;top:auto!important;transform:translateX(-50%)!important;width:max-content!important;max-width:calc(100vw - 12px)!important;z-index:9500!important}
#app #wdActionDrawer #wdActionControls,
#app #wdActionDrawer:hover #wdActionControls,
#app #wdActionDrawer.wd-open #wdActionControls{
 position:static!important;display:flex!important;flex-wrap:nowrap!important;
 visibility:visible!important;opacity:1!important;pointer-events:auto!important;
 transform:none!important;background:transparent!important;border:0!important;
 box-shadow:none!important;padding:3px!important;gap:8px!important;
}
#app #wdActionDrawer #wdActionControls > button{
 -webkit-appearance:none!important;appearance:none!important;
 box-sizing:border-box!important;display:inline-flex;align-items:center;justify-content:center;
 width:50px!important;min-width:50px!important;height:50px!important;min-height:50px!important;
 flex:0 0 50px!important;padding:0!important;
 background-color:#eceeef!important;border:1px solid #e1e4e7!important;
 border-radius:17px!important;box-shadow:none!important;
 color:#161616!important;font-size:19px!important;font-weight:700!important;
 transition:background-color .15s ease,transform .15s ease!important;
}
#app #wdActionDrawer #wdActionControls > button[hidden]{display:none!important}
#app #wdActionDrawer #wdActionControls > button:hover{background-color:#dce8f2!important}
#app #wdActionDrawer #wdActionControls > button:active{transform:scale(.95)!important}
#app #wdActionDrawer #wdActionControls > button:focus-visible{outline:2px solid #367fb6!important;outline-offset:2px!important}
#app #wdActionDrawer #wdActionControls > button svg{width:25px!important;height:25px!important;stroke:#191919!important;stroke-width:2.1!important}
#app #wdActionDrawer #wdActionControls > #wdHarnessQuick svg{width:31px!important;height:31px!important}
#app #wdActionDrawer #wdActionControls > #wdNoticeBell{font-size:19px!important}
#app #wdActionDrawer #wdActionControls > #langToggle{font-size:20px!important;letter-spacing:0!important}
@media(max-width:520px){
 #app #wdActionDrawer #wdActionControls{gap:5px!important;padding:3px!important}
 #app #wdActionDrawer #wdActionControls > button{
 width:clamp(39px,11vw,47px)!important;min-width:clamp(39px,11vw,47px)!important;
 height:clamp(39px,11vw,47px)!important;min-height:clamp(39px,11vw,47px)!important;
 flex:0 0 clamp(39px,11vw,47px)!important;border-radius:15px!important}
 #app #wdActionDrawer #wdActionControls > button svg{width:23px!important;height:23px!important}
}

/* v4.89 -- reference-matched black pictograms and rounded filled controls. */
#app #wdActionDrawer #wdActionControls{gap:10px!important;padding:0!important;}
#app #wdActionDrawer #wdActionControls > button{
  width:59px!important;min-width:59px!important;height:59px!important;min-height:59px!important;
  flex:0 0 59px!important;border-radius:20px!important;background:#eceeef!important;
  border:1px solid #e2e5e8!important;color:#10151a!important;
  font-weight:700!important;box-shadow:none!important;
}
#app #wdActionDrawer #wdActionControls > button svg.wd89-icon{
  display:block;width:25px!important;height:25px!important;fill:none;
  stroke:#111820!important;stroke-width:2.2!important;stroke-linecap:round;stroke-linejoin:round;
}
#app #wdActionDrawer #wdActionControls > #wdHarnessQuick svg.wd89-icon{width:29px!important;height:29px!important;}
#app #wdActionDrawer #wdActionControls > #wdHarnessQuick svg.wd89-icon circle[fill]{fill:#111820!important;stroke:none!important;}
#app #wdActionDrawer #wdActionControls > #langToggle{font-family:Arial,sans-serif!important;font-size:19px!important;font-weight:750!important;}
@media(max-width:520px){
 #app #wdActionDrawer #wdActionControls{gap:6px!important;}
 #app #wdActionDrawer #wdActionControls > button{width:clamp(40px,12.5vw,51px)!important;min-width:clamp(40px,12.5vw,51px)!important;height:clamp(40px,12.5vw,51px)!important;min-height:clamp(40px,12.5vw,51px)!important;flex:0 0 clamp(40px,12.5vw,51px)!important;border-radius:16px!important;}
 #app #wdActionDrawer #wdActionControls > button svg.wd89-icon{width:23px!important;height:23px!important;}
 #app #wdActionDrawer #wdActionControls > #wdHarnessQuick svg.wd89-icon{width:27px!important;height:27px!important;}
}

/* v4.90: precise reference-style black pictograms, no duplicated cog graphics. */
#app #wdActionDrawer #wdActionControls>button{background:#eceeef!important;border-color:#e3e6e8!important;border-radius:20px!important;}
#app #wdActionDrawer #wdActionControls>button svg.wd90-icon{display:block!important;width:25px!important;height:25px!important;fill:none!important;stroke:#111820!important;stroke-width:2.0!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
#app #wdActionDrawer #wdActionControls>#wdHarnessQuick svg.wd90-icon{width:27px!important;height:27px!important;}
#app #wdActionDrawer #wdActionControls>button svg.wd90-icon circle{fill:none!important;stroke:#111820!important;}
#app #wdActionDrawer #wdActionControls>#langToggle{font-family:Arial,sans-serif!important;font-size:19px!important;font-weight:800!important;}
@media(max-width:520px){#app #wdActionDrawer #wdActionControls>button svg.wd90-icon{width:23px!important;height:23px!important;}}


/* v4.91: upper-right navigation, overriding v4.86~v4.90 bottom-dock rules */
#app .mainbar{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:10px!important;}
#app #wdActionDrawer{position:static!important;inset:auto!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;transform:none!important;margin-left:auto!important;z-index:80!important;width:max-content!important;max-width:100%!important;}
#app #wdActionDrawer #wdActionControls,
#app #wdActionDrawer:hover #wdActionControls,
#app #wdActionDrawer.wd-open #wdActionControls{position:static!important;transform:none!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:nowrap!important;gap:6px!important;padding:0!important;max-width:100%!important;background:transparent!important;border:0!important;box-shadow:none!important;}
#app #wdActionDrawer #wdActionControls > button{width:48px!important;min-width:48px!important;height:48px!important;min-height:48px!important;flex:0 0 48px!important;border-radius:18px!important;background:#eceeef!important;border:1px solid #e1e4e7!important;}
#app #wdActionDrawer #wdActionControls > button[hidden]{display:none!important;}
#app #wdActionDrawer #wdActionControls > #wdHarnessQuick img.wd91-harness-worker{display:block!important;object-fit:contain!important;width:39px!important;height:39px!important;max-width:none!important;max-height:none!important;}
@media(max-width:600px){
 #app .mainbar{gap:7px!important;align-items:flex-start!important;}
 #app #wdActionDrawer{max-width:100%!important;}
 #app #wdActionDrawer #wdActionControls{gap:5px!important;}
 #app #wdActionDrawer #wdActionControls > button{width:clamp(39px,10.5vw,45px)!important;min-width:clamp(39px,10.5vw,45px)!important;height:clamp(39px,10.5vw,45px)!important;min-height:clamp(39px,10.5vw,45px)!important;flex:0 0 clamp(39px,10.5vw,45px)!important;border-radius:15px!important;}
 #app #wdActionDrawer #wdActionControls > #wdHarnessQuick img.wd91-harness-worker{width:34px!important;height:34px!important;}
}


/* v4.92: all header quick-action button surfaces pure white;
   simplified harness-only black line icon, matched to adjacent icon visual weight */
#app #wdActionDrawer #wdActionControls>button,
#app #wdActionDrawer #wdActionControls>button:not([disabled]) {
  background:#ffffff!important;
  background-color:#ffffff!important;
  border:1px solid #e2e5e9!important;
  color:#111820!important;
  box-shadow:none!important;
}
#app #wdActionDrawer #wdActionControls>button:hover:not([disabled]){
  background:#f5f7fa!important;
}
#app #wdActionDrawer #wdActionControls>#wdHarnessQuick svg.wd92-harness-simple{
  display:block!important;
  width:25px!important;height:25px!important;
  min-width:25px!important;min-height:25px!important;
  fill:none!important;stroke:#111820!important;stroke-width:1.85!important;
  stroke-linecap:round!important;stroke-linejoin:round!important;
}
@media(max-width:520px){#app #wdActionDrawer #wdActionControls>#wdHarnessQuick svg.wd92-harness-simple{width:23px!important;height:23px!important;min-width:23px!important;min-height:23px!important;}}

/* v4.93: keep inspection step counter pinned to the top-right of the wizard card */
#hseWizard > .wizardhead { display:flex; width:100%; justify-content:flex-end; align-items:center; }
#hseWizard > .wizardhead #hseStep { margin-left:auto; margin-right:0; flex:0 0 auto; }

/* v4.94: one-line inspection heading and step pill */
#hseWizard > .wizardhead {display:none!important;}
#hseWizard .wd-photo-step-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 14px!important;min-width:0;}
#hseWizard .wd-photo-step-heading h3{flex:1 1 auto;min-width:0;margin:0!important;font-size:clamp(16px,4.2vw,20px);line-height:1.35;}
#hseWizard .wd-photo-step-heading .wd-inline-step{display:inline-flex!important;visibility:visible!important;flex:0 0 auto;align-items:center;justify-content:center;white-space:nowrap;margin:0!important;font-size:14px;}


/* v4.95: top-right utility drawer, language toggle label fix, helmet shortcut icon */
.top{background:#fff!important;color:#1a2430!important;border-bottom:1px solid #dde6ee!important;}
.top .muted{color:#617286!important;}
.head-right{position:relative;display:flex;align-items:center;gap:10px;}
#topQuickArea{position:relative;display:flex;align-items:center;gap:8px;}
#topQuickToggle,#topQuickMenu>button{display:inline-flex;align-items:center;justify-content:center;background:#fff!important;border:1px solid #d6e0e8!important;color:#111820!important;border-radius:16px!important;box-shadow:none!important;}
#topQuickToggle{width:44px;height:44px;min-width:44px;padding:0!important;}
#topQuickMenu{position:absolute;top:calc(100% + 8px);right:0;display:flex;align-items:center;gap:8px;padding:6px;border:1px solid #dfe6ed;border-radius:18px;background:#f8fafc;box-shadow:0 8px 28px rgba(27,52,79,.12);z-index:250;}
#topQuickMenu[hidden]{display:none!important;}
#topQuickMenu>button{width:44px;height:44px;min-width:44px;padding:0!important;}
#topQuickMenu>#langToggle{font-family:Arial,sans-serif!important;font-size:20px!important;font-weight:800!important;letter-spacing:0!important;}
.wd95-top-icon{width:23px!important;height:23px!important;fill:none!important;stroke:#111820!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
#app #wdActionDrawer #wdActionControls > #wdHarnessQuick img.wd95-helmet-icon{display:block!important;object-fit:contain!important;width:25px!important;height:25px!important;max-width:none!important;max-height:none!important;}
@media(max-width:650px){#who{display:none!important;}#topQuickToggle,#topQuickMenu>button{width:40px;height:40px;min-width:40px;border-radius:14px!important;}#topQuickMenu{gap:6px;padding:5px;border-radius:16px;}}

/* v4.97 - standard pictograms, horizontal account menu and independent bottom navigation */
#who{display:none!important}
#topQuickArea{position:relative}
#topQuickMenu{top:50%!important;right:calc(100% + 8px)!important;transform:translateY(-50%)!important;left:auto!important;flex-direction:row!important;white-space:nowrap!important}
#topQuickToggle svg{transition:transform .16s ease}
#topQuickToggle[aria-expanded="true"] svg{transform:rotate(180deg)}
#app #wdActionDrawer #wdActionControls>#wdHarnessQuick svg,
#app #wdActionDrawer #wdActionControls>#wdVehicleQuick svg{width:25px!important;height:25px!important;fill:none!important;stroke:#111820!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important}
#app #wdActionDrawer #wdActionControls>#wdHarnessQuick,
#app #wdActionDrawer #wdActionControls>#wdVehicleQuick{background:#fff!important}
.wd-bottom-navigation{position:fixed;left:50%;bottom:calc(10px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:950;display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;width:min(550px,calc(100vw - 20px));pointer-events:none}
.wd-bottom-slot{display:flex;align-items:center;justify-content:flex-start;pointer-events:none}
.wd-bottom-slot.wd-bottom-center{justify-content:center}
#wdBottomNavigation button{width:49px;height:49px;min-width:49px;display:inline-flex;align-items:center;justify-content:center;padding:0!important;border:1px solid #dae3e9!important;border-radius:17px!important;background:#fff!important;color:#152333!important;box-shadow:0 3px 12px #1a355512;pointer-events:auto}
#wdBottomNavigation button svg{width:25px!important;height:25px!important;stroke:#172332!important;stroke-width:2.0!important;fill:none!important}
#wdBottomNavigation button[hidden]{display:none!important}
#hseHistory .wd-history-file .wd-file-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}
#hseHistory .wd-hse-icon-action{width:39px;height:39px;min-width:39px;padding:0!important;display:inline-flex;align-items:center;justify-content:center;border-radius:12px!important;background:#fff!important;border:1px solid #d9e3ed!important}
#hseHistory .wd-hse-icon-action svg{width:18px;height:18px;fill:none;stroke:#192b3e;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#hseHistory .wd-hse-icon-action.wd-hse-delete svg{stroke:#bd3131}
#hseHistory .wd-hse-icon-action:hover{background:#f1f6fb!important}
@media(max-width:520px){#app .mainbar{align-items:center!important}#app #wdActionDrawer #wdActionControls{gap:4px!important}#app #wdActionDrawer #wdActionControls>button{width:clamp(37px,9.4vw,44px)!important;min-width:clamp(37px,9.4vw,44px)!important;height:clamp(37px,9.4vw,44px)!important;min-height:clamp(37px,9.4vw,44px)!important;flex:0 0 clamp(37px,9.4vw,44px)!important}#wdBottomNavigation button{width:46px;height:46px;min-width:46px}#hseHistory .wd-hse-icon-action{width:35px;height:35px;min-width:35px}}

/* v4.98 — bottom-right HSE step arrow, preserving v4.97 bottom-left Back and center Home. */
#hseWizard > .wizardnav{display:none!important}
.wd-bottom-navigation .wd-bottom-right{justify-content:flex-end}
#wdBottomNavigation #wdHseQuickNext{display:inline-flex!important;align-items:center;justify-content:center;width:52px;height:52px;min-width:52px;padding:0!important;border-radius:17px!important;background:#2877b5!important;border:1px solid #246aa4!important;color:#fff!important;box-shadow:0 3px 13px #1a355522;}
#wdBottomNavigation #wdHseQuickNext svg{width:27px!important;height:27px!important;fill:none!important;stroke:#fff!important;stroke-width:2.7!important;stroke-linecap:round!important;stroke-linejoin:round!important}
#wdBottomNavigation #wdHseQuickNext[hidden]{display:none!important}
#wdBottomNavigation #wdHseQuickNext:disabled{opacity:.52}
@media(max-width:520px){#wdBottomNavigation #wdHseQuickNext{width:48px;height:48px;min-width:48px}}

/* v4.99 mobile app-style launcher. Existing ERP cards/PDF remain untouched. */
.wd-launcher{width:100%;max-width:980px;margin:0 auto;padding:10px 6px 32px;min-height:55vh}
.wd-launcher-heading{margin:4px 10px 22px}.wd-launcher-heading h2{font-size:23px;margin:0 0 4px;color:#17283c}
.wd-launcher-heading p{font-size:13px;margin:0}
.wd-launcher-primary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,3vw,24px);max-width:620px;margin:12px auto 24px}
.wd-launcher-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 12px;max-width:770px;margin:0 auto}
.wd-launcher-divider{height:1px;max-width:760px;background:#dfe6ee;margin:0 auto 24px}
.wd-launch-item{appearance:none!important;display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;gap:9px;border:none!important;background:transparent!important;box-shadow:none!important;padding:0!important;color:#25364a!important;font-size:13px!important;line-height:1.25;white-space:normal;text-align:center;cursor:pointer;min-width:0}
.wd-launch-item[hidden]{display:none!important}
.wd-launch-item .wd-launch-icon{width:min(100%,112px);aspect-ratio:1;display:flex;align-items:center;justify-content:center;border-radius:25%;box-shadow:0 6px 18px #16345720, inset 0 1px #ffffff38;transition:transform .13s,box-shadow .13s;background:#e5e7eb}
.wd-launch-item:hover .wd-launch-icon{transform:translateY(-3px);box-shadow:0 9px 22px #16345738}
.wd-launch-item:active .wd-launch-icon{transform:scale(.94)}
.wd-launch-item .wd-launch-icon svg{width:49%;height:49%;fill:none;stroke:white;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.wd-launch-icon.wd-launch-alert{background:linear-gradient(145deg,#f0af27,#e8781a)}
.wd-launch-icon.wd-launch-car{background:linear-gradient(145deg,#3b97dd,#1160bf)}
.wd-launch-icon.wd-launch-ppe{background:linear-gradient(145deg,#2dbca4,#168c79)}
.wd-launch-icon.wd-launch-mypage{background:linear-gradient(145deg,#7d91e5,#4556b8)}
.wd-launch-icon.wd-launch-site{background:linear-gradient(145deg,#30b2db,#18769f)}
.wd-launch-icon.wd-launch-hr{background:linear-gradient(145deg,#bb83d8,#8249ae)}
.wd-launch-icon.wd-launch-expenses{background:linear-gradient(145deg,#44be7c,#228a5c)}
.wd-launch-icon.wd-launch-general{background:linear-gradient(145deg,#f09a74,#d76653)}
.wd-launch-icon.wd-launch-settings{background:linear-gradient(145deg,#98a6b5,#637489)}
.wd-launch-icon.wd-launch-adminicon{background:linear-gradient(145deg,#425672,#152b48)}
.wd-launch-notice-count{position:absolute;margin:-70px 0 0 75px;border-radius:999px;background:#df3740;color:#fff;font-size:11px;min-width:18px;padding:2px}
/* Quick notifications and inspections are launcher apps on mobile, not tiny title-bar buttons. */
@media(max-width:650px){
 .wd-launcher{padding:7px 9px 68px;min-height:calc(100dvh - 190px)}
 .wd-launcher-heading{margin:3px 5px 18px}
 .wd-launcher-primary{gap:14px;margin:0 auto 23px}
 .wd-launcher-primary .wd-launch-icon{width:min(100%,108px)}
 .wd-launcher-grid{gap:24px 9px}
 .wd-launcher-grid .wd-launch-icon{width:min(100%,78px)}
 .wd-launch-item{font-size:12px!important;gap:7px}
 #app #wdActionDrawer #wdActionControls>#wdNoticeBell,
 #app #wdActionDrawer #wdActionControls>#wdVehicleQuick,
 #app #wdActionDrawer #wdActionControls>#wdHarnessQuick{display:none!important}
 body:has(#launcherView:not([hidden])) #app .mainbar{display:none!important}
}
@media(max-width:365px){.wd-launcher-grid{gap:18px 6px}.wd-launch-item{font-size:11px!important}}


/* v4.100: home is an icon launcher without duplicate title/greeting.
   Keep utility actions visible on all OTHER pages, not the launcher. */
#app:has(#launcherView:not([hidden])) .mainbar,
body.wd-launcher-active #app .mainbar{display:none!important;}
#launcherView .wd-launcher-heading{display:none!important;}
#launcherView{padding-top:14px!important;}
@media(max-width:650px){
  body:not(.wd-launcher-active) #app #wdActionDrawer #wdActionControls > #wdNoticeBell:not([hidden]),
  body:not(.wd-launcher-active) #app #wdActionDrawer #wdActionControls > #wdVehicleQuick:not([hidden]),
  body:not(.wd-launcher-active) #app #wdActionDrawer #wdActionControls > #wdHarnessQuick:not([hidden]){
    display:inline-flex!important;
  }
}
/* White icon tiles (primary actions and utility launcher icons alike). */
#launcherView .wd-launch-item .wd-launch-icon,
#launcherView .wd-launch-item .wd-launch-icon[class*="wd-launch-"]{
  background:#ffffff!important;
  border:1px solid #dce4ed!important;
  box-shadow:0 4px 14px rgba(18,42,67,.08)!important;
}
#launcherView .wd-launch-item .wd-launch-icon svg{
  stroke:#16283b!important;
  fill:none!important;
  stroke-width:1.9!important;
}
#launcherView .wd-launch-item:hover .wd-launch-icon{background:#f4f9ff!important;border-color:#a8c9e8!important;}
/* The HSE next arrow is the same white/black outline design as Back. */
#wdBottomNavigation #wdHseQuickNext{
  background:#ffffff!important;
  color:#172332!important;
  border:1px solid #dae3e9!important;
  border-radius:17px!important;
  box-shadow:0 3px 12px rgba(26,53,85,.07)!important;
}
#wdBottomNavigation #wdHseQuickNext svg{
  stroke:#172332!important;
  stroke-width:2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
/* Never leak the HSE next arrow onto the home or unrelated pages. */
body:not(.wd-active-hse) #wdBottomNavigation #wdHseQuickNext{display:none!important;}
body.wd-active-hse:not(:has(#hseView:not([hidden]) #hseWizard:not([hidden]))) #wdBottomNavigation #wdHseQuickNext{display:none!important;}

/* v4.135 startup: centered spinner only */
#startupLoading.wd-startup-loading{position:fixed!important;inset:0!important;z-index:999!important;max-width:none!important;width:100%!important;height:100dvh!important;margin:0!important;padding:0!important;min-height:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;align-items:center!important;justify-content:center!important}
#startupLoading .wd-startup-spinner{width:28px;height:28px;border-width:3px}
body:has(#startupLoading:not([hidden]))>.top{display:none!important}

/* v4.136: error state after delayed startup */
#startupLoading.wd-startup-error{flex-direction:column!important;gap:20px!important;padding:24px!important;text-align:center!important}
#startupLoading.wd-startup-error .wd-startup-spinner{display:none!important}
#startupLoading .wd-startup-failure{display:flex;flex-direction:column;align-items:center;gap:12px;max-width:340px;font-size:14px;line-height:1.6;color:#24364b}
#startupLoading .wd-startup-failure p{margin:0;color:#62738a;overflow-wrap:anywhere}
#startupLoading .wd-startup-failure button{border:1px solid #ced9e5;border-radius:24px;padding:12px 23px;background:#fff;color:#24364b;font-weight:600}

/* v4.137 independent boot guard: no spinner when diagnostics are showing. */
#startupLoading.wd-startup-error .wd-startup-spinner{display:none!important}
#startupLoading.wd-startup-error{display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important}
#startupLoading.wd-startup-error .wd-startup-failure{padding:12px 24px!important;text-align:center!important;max-width:420px!important}

/* v4.138 critical fix: the hidden attribute MUST override the full-screen loader.
   v4.135's display:flex!important won over the earlier #startupLoading[hidden],
   leaving the fullscreen white overlay visible after authDisplay('app'). */
html body #startupLoading.wd-startup-loading[hidden],
html body #startupLoading.wd-startup-loading.wd-startup-error[hidden]{display:none!important;visibility:hidden!important;pointer-events:none!important}
html body #startupLoading.wd-startup-loading:not([hidden]){display:flex!important}
