/* Shared responsive layout for the main Workforce Connect 360 application. */
@media screen {
 body.wc360-responsive{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
 body.wc360-responsive > main{width:100%!important;max-width:1600px!important;margin:20px auto!important;padding:0 clamp(12px,2vw,32px)!important;flex:1;min-width:0}
 body.wc360-responsive > main.staff-clock-main{max-width:680px!important}
 body.wc360-responsive main .narrow{width:100%;margin-inline:auto}
 body.wc360-responsive main :is(.card,.card-inset,section,form){min-width:0;max-width:100%;box-sizing:border-box}
 body.wc360-responsive :is(input,select,textarea){max-width:100%;box-sizing:border-box}
 body.wc360-responsive input[type=checkbox],body.wc360-responsive input[type=radio]{width:auto}
 body.wc360-responsive > header.wc360-site-header{padding:8px clamp(12px,2vw,32px)!important;gap:12px 24px!important;flex-wrap:wrap!important}
 body.wc360-responsive > header.wc360-site-header > .brand.wc360-header-brand{margin:0!important;min-width:0!important;width:250px!important;max-width:100%!important;flex:0 1 250px!important;height:52px!important}
 body.wc360-responsive > header.wc360-site-header > .brand.wc360-header-brand img{width:100%!important;max-width:250px!important;height:50px!important;object-fit:contain!important}
 body.wc360-responsive > header.wc360-site-header > nav{width:auto!important;max-width:100%;margin:0 0 0 auto!important;gap:10px 16px!important;flex-wrap:wrap!important;overflow:visible!important}
 body.wc360-responsive .page-title-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:16px}
 body.wc360-responsive .page-title-row h1{margin:0;font-size:clamp(22px,2vw,30px)}
 body.wc360-responsive :is(.toolbar,.timesheet-toolbar,.employee-timesheet-head,.selected-employee-head,.staff-new-screen-head){flex-wrap:wrap;gap:12px}
 body.wc360-responsive .staff-new-employee-screen{width:100%;max-width:1200px;margin-inline:auto}
 body.wc360-responsive .wc360-table-scroll{width:100%;max-width:100%;overflow:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 body.wc360-responsive .wc360-table-scroll:focus-visible{outline:2px solid #194d72;outline-offset:2px}
 body.wc360-responsive .workforce-footer{position:static!important;width:100%!important;max-width:none!important;margin:24px 0 0!important;padding:16px clamp(12px,2vw,32px)!important;flex-shrink:0;box-sizing:border-box}
 body.wc360-responsive .workforce-footer-layout{display:grid!important;grid-template-columns:140px minmax(0,1fr)!important;align-items:center!important;gap:18px!important;width:100%!important;max-width:1600px!important;margin:auto!important}
 body.wc360-responsive .workforce-footer-content{min-width:0!important;overflow-wrap:anywhere}
 body.wc360-responsive .workforce-footer-brand,body.wc360-responsive .workforce-footer-links{display:flex!important;flex-wrap:wrap!important;gap:6px 14px!important;align-items:center}
 body.wc360-responsive .workforce-footer-details{white-space:normal!important;line-height:1.5}
 body.wc360-responsive .workforce-footer-logo-wrap img{width:140px!important;max-width:100%!important;height:auto!important;max-height:60px!important;object-fit:contain}
}
@media screen and (max-width:1100px){
 body.wc360-responsive main :is(.employee-settings-grid,.admin-compact-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.wc360-responsive main .new-employee-details-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.wc360-responsive main :is(.weekly-hours-row,.weekly-hours-head){grid-template-columns:90px 70px minmax(90px,1fr) minmax(90px,1fr) minmax(90px,1fr) 50px!important}
}
@media screen and (max-width:760px){
 body.wc360-responsive > header.wc360-site-header > nav{width:100%!important;margin:0!important;justify-content:flex-start!important}
 body.wc360-responsive main :is(.employee-settings-grid,.admin-compact-grid,.home-actions,.dashboard-columns,.dashboard-main-grid,.vehicle-admin-grid,.vehicle-columns){grid-template-columns:minmax(0,1fr)!important}
 body.wc360-responsive main :is(.employee-settings-grid,.admin-compact-grid) > *{grid-column:auto!important}
 body.wc360-responsive .employee-timesheet-row{grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important}
 body.wc360-responsive main :is(.toolbar,.timesheet-toolbar){align-items:stretch!important}
 body.wc360-responsive main .toolbar label{flex:1 1 160px;min-width:0}
 body.wc360-responsive main .toolbar input{width:100%!important}
 body.wc360-responsive main .new-weekly-hours-head{display:none!important}
 body.wc360-responsive main .new-weekly-hours-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:12px 0!important;min-height:0!important}
 body.wc360-responsive main .new-weekly-hours-row .weekly-day{grid-column:1!important}
 body.wc360-responsive main .new-weekly-hours-row .weekly-working-toggle{grid-column:2!important;justify-self:end!important}
 body.wc360-responsive main .new-weekly-hours-row :is(input[type=time],select){width:100%!important;height:auto!important;min-height:36px!important}
 body.wc360-responsive main .new-weekly-hours-row .weekly-paid{display:block!important;text-align:left!important}
 body.wc360-responsive main .new-weekly-hours-row .weekly-paid::before{content:'Paid: '}
 body.wc360-responsive .workforce-footer-layout{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 body.wc360-responsive .workforce-footer-brand{align-items:flex-start!important;flex-direction:column!important}
}
@media screen and (max-width:480px){
 body.wc360-responsive main .grid,body.wc360-responsive main .new-employee-details-grid{grid-template-columns:minmax(0,1fr)!important}
 body.wc360-responsive main .new-employee-auto{grid-column:auto!important}
 body.wc360-responsive main .card{padding:14px!important}
 body.wc360-responsive main .new-employee-actions{display:flex!important;flex-direction:column!important;gap:8px!important}
 body.wc360-responsive main .new-employee-actions > *{width:100%!important;min-width:0!important;text-align:center}
 body.wc360-responsive main details{min-width:0!important}
}
@media print{.wc360-table-scroll{overflow:visible!important;max-height:none!important}}
/* Compact desktop scale; retain comfortable controls on phones. */
@media screen and (min-width:761px){
 body.wc360-responsive{font-size:14px}
 body.wc360-responsive > main{margin:12px auto!important;max-width:1840px!important;padding-inline:20px!important}
 body.wc360-responsive main .card{padding:12px 14px!important;margin-block:8px!important}
 body.wc360-responsive main :is(input,select,textarea){font-size:14px!important;padding:7px 9px!important;margin-top:4px!important}
 body.wc360-responsive main label{margin-block:7px!important}
 body.wc360-responsive main :is(button,.button){font-size:14px!important;padding:8px 12px!important}
 body.wc360-responsive main h2{font-size:19px!important}
 body.wc360-responsive main .dashboard-hero{padding:12px 18px!important;min-height:0!important;gap:18px!important;margin-bottom:10px!important}
 body.wc360-responsive main .dashboard-hero .company-logo{width:100px!important;max-width:100px!important;max-height:65px!important;height:auto!important;object-fit:contain;margin:0!important}
 body.wc360-responsive main .dashboard-hero-copy h2{font-size:23px!important;margin:0 0 3px!important}
 body.wc360-responsive main .dashboard-hero-copy h3{font-size:17px!important;margin:0 0 3px!important}
 body.wc360-responsive main .dashboard-hero-copy p{margin:0!important}
 body.wc360-responsive main .dashboard-stats{gap:8px!important;margin-bottom:10px!important}
 body.wc360-responsive main .dashboard-stat{padding:10px 12px!important;min-height:0!important;gap:3px!important}
 body.wc360-responsive main .dashboard-stat .stat-icon{font-size:17px!important;margin:0!important}
 body.wc360-responsive main .stat-value{font-size:21px!important;line-height:1.15!important;margin-block:2px!important}
 body.wc360-responsive main .dashboard-grid{gap:10px!important;margin-block:8px!important;align-items:start!important}
 body.wc360-responsive main .dashboard-panel{min-height:0!important;height:auto!important;margin:0!important}
 body.wc360-responsive main .dashboard-panel-head{margin-bottom:7px!important}
 body.wc360-responsive main .dashboard-panel-head h2{font-size:18px!important;margin:2px 0!important}
 body.wc360-responsive main .dashboard-kicker{margin:0!important;font-size:10px!important}
 body.wc360-responsive main .dashboard-panel > p{margin-block:8px!important}
 body.wc360-responsive main .dashboard-safety-grid{gap:8px!important}
 body.wc360-responsive main .dashboard-safety-grid > div{padding:9px 11px!important;min-height:0!important}
 body.wc360-responsive main .dashboard-alert{padding:7px 10px!important;margin-block:5px!important}
 body.wc360-responsive main .cc-summary{margin-top:10px!important}
 body.wc360-responsive main .cc-summary-metrics{gap:8px!important}
 body.wc360-responsive main .cc-summary-metrics > div{padding:9px 12px!important;min-height:0!important}
 body.wc360-responsive main .cc-summary-metrics strong{font-size:23px!important;margin-top:3px!important}
 body.wc360-responsive main .cc-summary > .muted{margin-top:8px!important;font-size:12px!important}
 body.wc360-responsive .workforce-footer{margin-top:12px!important;padding-block:12px!important;font-size:11px}
}
