/* WHS Safety – GEFB-aligned styling, independent of production */
:root{font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#1e293b;background:#f8fafc;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:#f8fafc;font:14px/1.5 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#334155}header{background:#083344;color:#fff;box-shadow:0 4px 16px #0f172a1a;padding:15px max(20px,calc((100vw - 1260px)/2));display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}header .brand{display:flex;align-items:center;gap:12px}.brand-mark{background:#dc2626;color:#fff;border-radius:11px;padding:9px 12px;font-weight:900;font-size:20px;letter-spacing:.07em;box-shadow:0 3px 10px #0002}header h1{font-size:19px;font-weight:800;line-height:1.3;margin:0;letter-spacing:.015em}header small{font-size:11px;color:#a5f3fc}#who{font-size:12px;font-weight:700;background:#164e63;border:1px solid #155e75;padding:8px 12px;border-radius:9px;color:#cffafe}#who:empty{display:none}main{max-width:1260px;margin:0 auto;padding:22px 20px 70px}.intro{padding:6px 2px 20px}.intro .eyebrow{color:#0e7490;font-size:11px;letter-spacing:.13em;font-weight:900}.intro h2{font-size:clamp(22px,2.5vw,29px);line-height:1.3;margin:5px 0;color:#17354a;font-weight:850}.intro p{margin:0;color:#64748b;font-size:13px}.panel{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:22px;margin-bottom:18px;box-shadow:0 2px 9px #0f172a08}h2{font-size:17px;font-weight:800;color:#1e293b;margin:0 0 16px}button{border:0;border-radius:9px;padding:10px 15px;min-height:40px;background:#dc2626;color:#fff;font-weight:750;font-size:12px;cursor:pointer;transition:background .15s,transform .15s}button:hover{background:#b91c1c}button:active{transform:translateY(1px)}button.secondary{background:#e2e8f0;color:#334155}button.secondary:hover{background:#cbd5e1}button.danger{background:#991b1b}input,select,textarea{display:block;width:100%;min-width:0;border:1px solid #cbd5e1;border-radius:9px;padding:10px 12px;font:inherit;color:#1e293b;background:#fff;outline:none}input:focus,select:focus,textarea:focus{border-color:#0891b2;box-shadow:0 0 0 3px #06b6d422}label{display:block;margin:10px 0 6px;font-size:12px;font-weight:750;color:#475569}label input,label select,label textarea{margin-top:6px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px 16px}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.toolbar strong{font-size:14px;color:#17354a;padding:0 5px}.actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}.hidden{display:none!important}.week{display:grid;grid-template-columns:repeat(7,minmax(155px,1fr));gap:9px;overflow-x:auto;padding-bottom:4px}.day{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;min-height:150px;padding:12px;overflow-wrap:anywhere}.day>strong,.day h3{color:#0e7490;font-size:12px}.event{background:#eff6ff;border-left:4px solid #0891b2;padding:10px;margin:9px 0;border-radius:7px;color:#17354a;font-size:12px;overflow-wrap:anywhere}.event:hover{background:#e0f2fe}.muted{color:#64748b;font-size:12px}.badge{display:inline-block;background:#dcfce7;color:#166534;border-radius:100px;padding:3px 9px;font-size:11px;font-weight:700}#login{max-width:470px;margin:0 auto 20px;border-top:4px solid #dc2626;box-shadow:0 12px 30px #0f172a12}#login h2{font-size:20px}#login button{width:100%;min-height:44px}#msg{color:#b91c1c;min-height:18px;font-weight:650}#reports>div{border-bottom:1px solid #e2e8f0;padding:12px 0}#reports a{color:#0e7490;font-weight:700}@media(max-width:760px){header{padding:14px 16px}main{padding:16px 12px 50px}.panel{padding:16px}.week{grid-template-columns:1fr}.day{min-height:0}.grid{grid-template-columns:1fr}.toolbar button{flex:1 1 auto}.toolbar strong{order:-1;width:100%;text-align:center}.intro h2{font-size:22px}}@media print{header,.toolbar,button,#login,#editor,#userAdmin,#reportForm{display:none!important}body{background:#fff}.panel{box-shadow:none}.week{grid-template-columns:repeat(7,minmax(0,1fr))}}

.pm-nav{padding:12px 18px}.pm-tab{background:#e9edf3;color:#24384c}.pm-tab.active,.pm-view.active{background:#c53030;color:#fff}.pm-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.pm-kpis>div{background:#f5f7fa;border:1px solid #e1e6ed;border-radius:10px;padding:14px}.pm-kpis small{display:block;color:#64748b}.pm-kpis strong{display:block;font-size:26px;color:#18354a}.pm-view-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}.pm-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.pm-day-label{text-align:center;padding:9px;color:#64748b}.pm-monthday{min-height:105px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:7px;min-width:0;overflow:hidden}.pm-monthday>strong{display:block;margin-bottom:6px}.pm-mini{font-size:11px;background:#e7f2fc;border-left:3px solid #0284c7;border-radius:4px;padding:4px 5px;margin:5px 0;overflow-wrap:anywhere}.pm-mini b,.pm-mini small{display:block}.pm-mini small{font-size:10px;color:#475569}.pm-deadline{background:#fff1e8;border-left-color:#ea580c}.pm-system{background:#fef2f2;border-left-color:#c53030}.pm-year{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.pm-yearmonth{background:#f8fafc;color:#18354a;border:1px solid #e2e8f0;text-align:left;display:flex;flex-direction:column;gap:8px;padding:20px}.pm-yearmonth strong{font-size:17px}.pm-yearmonth span{font-size:12px}.pm-list{margin-top:16px;max-height:650px;overflow:auto}.pm-listrow{width:100%;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:5px;background:#fff;color:#23354b;border:1px solid #e2e8f0;border-radius:8px;padding:12px;margin:5px 0}.pm-listrow:hover{background:#f1f5f9}.pm-listrow span,.pm-listrow small{color:#64748b;font-size:12px}.pm-detail{border-top:2px solid #c53030;margin-top:18px;padding-top:16px}.pm-detail details{border:1px solid #e2e8f0;border-radius:8px;padding:10px;margin:8px 0}.pm-detail summary{cursor:pointer;font-weight:700}.pm-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:12px}.pm-fields>div{background:#f8fafc;padding:8px;overflow-wrap:anywhere}.pm-fields b,.pm-fields span{display:block;font-size:12px}.pm-fields b{color:#64748b}.pm-check{padding:8px;border-bottom:1px solid #e2e8f0;font-size:12px}@media(max-width:800px){.pm-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.pm-year{grid-template-columns:repeat(2,minmax(0,1fr))}.pm-monthday{min-height:55px;padding:3px}.pm-mini{font-size:9px;padding:2px}.pm-mini small{display:none}.pm-fields{grid-template-columns:1fr}}

.pm-vacation{background:#fff2d9!important;border-left:3px solid #d97706!important}.pm-listrow .toolbar{margin-top:10px}.pm-listrow .toolbar select{width:auto;min-width:130px}.pm-listrow .toolbar label{display:flex;align-items:center;gap:6px;margin:0}.pm-listrow .toolbar input[type=checkbox]{width:auto}#pmStaffList .pm-listrow{margin:8px 0}#pmVacation select[multiple]{min-height:135px}#documentForm input[type=file]{padding:12px}#pmDocuments a{color:#0369a1;font-weight:700}#pmDocuments .pm-listrow{margin:8px 0}@media(max-width:650px){#pmReports input,#pmReports select,#pmReports button{min-height:44px}}
#pmCustomerEdit,#pmInspectionEdit{margin-top:18px;padding:20px;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc}#pmCustomerDetails .pm-check button{margin:4px}#pmNewCustomer{margin:10px 0}#pmAudit{max-height:280px;overflow:auto}#pmCustomerEdit .grid,#pmInspectionEdit .grid{margin-bottom:12px}@media(max-width:650px){#pmCustomerEdit,#pmInspectionEdit{padding:12px}#pmCustomerDetails button{min-height:44px}}
