/* Explicit crew layout: independent of desktop window width. */
body.crew-view #jobs.page{width:100%!important;max-width:none!important;margin:0!important;padding:88px 20px 90px!important;transform:none!important}
body.crew-view #jobs .open-jobs-toolbar{margin:0 0 12px!important;justify-content:flex-start!important}
body.crew-view #jobs .open-job-stats{display:flex!important;width:100%!important;min-height:0!important;height:auto!important;background:transparent!important;border:0!important;box-shadow:none!important;gap:12px!important;margin:0 0 14px!important}
body.crew-view #jobs .open-job-stats>div{flex:1;min-height:56px!important;padding:10px!important;border:1px solid #a7c5d5!important;border-radius:10px;background:rgba(248,252,255,.94)}
body.crew-view #jobs .open-job-stats img{width:28px!important;height:28px!important}
body.crew-view #jobs .open-job-stats b{font-size:23px!important}
body.crew-view #jobs .open-list-panel{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;backdrop-filter:none!important}
body.crew-view #jobs .open-list-head{padding:0 0 12px!important;margin:0!important;border:0!important;gap:12px!important}
body.crew-view #jobs .open-list-head h2{font-size:24px!important}
body.crew-view #jobs .open-list-controls button,body.crew-view #jobs .open-list-controls select,body.crew-view #jobs .open-job-tabs button{min-height:46px!important;font-size:15px!important}
body.crew-view #jobs .open-job-columns{display:none!important}
body.crew-view #jobs #jobList{display:flex!important;flex-direction:column!important;gap:14px!important;height:auto!important;max-height:none!important;overflow:visible!important;background:transparent!important;border:0!important;padding:0!important}
body.crew-view #jobs .open-job-card{display:grid!important;grid-template-columns:44px .7fr 1fr 1.2fr .65fr .65fr 1.35fr 1.3fr!important;grid-template-rows:auto auto!important;gap:8px 12px!important;padding:18px!important;margin:0!important;min-height:148px!important;height:auto!important;border:1px solid #afcbdc!important;border-radius:14px!important;background:rgba(248,252,255,.96)!important;box-shadow:0 4px 14px #062a4420!important}
body.crew-view #jobs .open-job-card>div{grid-column:auto!important;grid-row:auto!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;padding:0!important;min-height:42px!important;border:0!important;min-width:0!important}
body.crew-view #jobs .open-job-card small{display:block!important;font-size:11px!important;color:#526f80!important;margin-bottom:6px!important}
body.crew-view #jobs .open-job-card b{font-size:17px!important;white-space:normal!important}
body.crew-view #jobs .open-job-card>.open-status-icon{grid-column:1!important;grid-row:1/3!important;align-items:center!important}
body.crew-view #jobs .open-status-icon img{width:36px!important;height:36px!important}
body.crew-view #jobs .open-route-cell img{width:44px!important;height:44px!important;object-fit:contain}
body.crew-view #jobs .open-job-card>.open-priority-cell{grid-column:7!important;grid-row:2!important}
body.crew-view #jobs .open-job-card>.open-created-cell{display:none!important}
body.crew-view #jobs .open-job-card>.open-chevron{grid-column:8!important;grid-row:2!important;position:static!important;transform:none!important;font-size:15px!important;justify-self:stretch!important;text-align:center;background:#0876bd;color:white!important;border-radius:8px;padding:13px!important}
body.crew-view #jobs .open-chevron::before{content:'View Job ';font-weight:700}
body.crew-view #jobs .open-travel b{font-size:14px!important;width:auto!important;padding:9px!important}
body.crew-view #jobs .open-status-badge{font-size:13px!important;padding:10px 14px!important}
body.crew-view #jobs.jobs-map-view #jobList{display:none!important}
body.crew-view #openJobsMapPanel p{display:none!important}
body.crew-view #openJobsMap{height:calc(100dvh - 320px)!important;min-height:320px!important}
body.crew-view .bottom-nav{display:flex!important;position:fixed!important;inset:auto 0 0!important;height:70px!important;padding-bottom:env(safe-area-inset-bottom);z-index:100;background:rgba(5,26,42,.96);border-top:1px solid #7295ab}
body.crew-view .bottom-nav button{flex:1;min-height:48px;border:0;background:transparent;color:#c0d8e7;font-size:22px}
body.crew-view .bottom-nav span{display:block;font-size:13px;margin-top:4px}
body.crew-view.theme-night #jobs .open-job-card,body.crew-view.theme-night #jobs .open-job-stats>div{background:rgba(5,28,45,.96)!important;border-color:#3e647b!important}
body.crew-view.theme-night #jobs .open-job-card small{color:#b1c9d8!important}
@media(max-width:900px){
 body.crew-view #jobs .open-job-card{grid-template-columns:40px repeat(3,minmax(0,1fr))!important}
 body.crew-view #jobs .open-job-card>.open-priority-cell{grid-column:3!important;grid-row:3!important}
 body.crew-view #jobs .open-job-card>.open-chevron{grid-column:4!important;grid-row:3!important}
 body.crew-view #jobs .open-job-stats{flex-wrap:wrap!important}
 body.crew-view #jobs .open-job-stats>div{flex:1 1 40%}
 body.crew-view #jobs .open-list-head{flex-wrap:wrap!important}
}

/* Centered crew job list with explicit, consistent field positions. */
body.crew-view #app #jobs.page{width:calc(100% - 40px)!important;max-width:1120px!important;margin:0 auto!important;padding:88px 0 96px!important}
body.crew-view #jobs #openJobFilter,body.crew-view #jobs #openJobSort,
body.crew-view #jobs .open-job-stats>div:has(#openStatProgress){display:none!important}
body.crew-view #jobs .open-job-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;overflow:visible!important;gap:12px!important}
body.crew-view #jobs .open-job-stats>div{min-width:0!important;border-radius:10px!important;justify-content:center!important}
body.crew-view #jobs .open-list-head{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;margin:18px 0 0!important}
body.crew-view #jobs .open-list-controls{width:auto!important;gap:8px!important}
body.crew-view #app #jobs .open-job-card{grid-template-columns:38px 1fr 1.2fr 1.3fr 1fr 1fr!important;grid-template-rows:auto auto!important;grid-template-areas:"icon job csr city route direction" "icon travel travel priority status view"!important;gap:18px 20px!important;padding:18px!important;min-height:160px!important;align-items:center!important}
body.crew-view #app #jobs .open-job-card>.open-status-icon{grid-area:icon!important;position:static!important}
body.crew-view #app #jobs .open-job-card>.open-job-number{grid-area:job!important}
body.crew-view #app #jobs .open-job-card>.open-csr-number{grid-area:csr!important}
body.crew-view #app #jobs .open-job-card>.open-city-cell{grid-area:city!important}
body.crew-view #app #jobs .open-job-card>.open-route-cell{grid-area:route!important}
body.crew-view #app #jobs .open-job-card>.open-direction-cell{grid-area:direction!important}
body.crew-view #app #jobs .open-job-card>.open-travel{grid-area:travel!important}
body.crew-view #app #jobs .open-job-card>.open-priority-cell{grid-area:priority!important}
body.crew-view #app #jobs .open-job-card>.open-status-cell{grid-area:status!important}
body.crew-view #app #jobs .open-job-card>.open-chevron{grid-area:view!important;align-self:center!important}
body.crew-view #app #jobs .open-job-card>div{min-height:40px!important;text-align:left!important}
body.crew-view #app #jobs .open-job-card b{font-size:16px!important;overflow-wrap:anywhere!important}
body.crew-view #app #jobs .open-travel b{font-size:13px!important}
@media(max-width:760px){
 body.crew-view #app #jobs.page{width:calc(100% - 24px)!important}
 body.crew-view #app #jobs .open-job-card{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-areas:"job csr city" "route direction priority" "travel status view"!important;gap:16px 12px!important;padding:16px!important}
 body.crew-view #app #jobs .open-job-card>.open-status-icon{display:none!important}
 body.crew-view #jobs .open-job-stats{gap:6px!important}
 body.crew-view #jobs .open-job-stats>div{padding:8px!important}
 body.crew-view #jobs .open-job-stats img{width:22px!important;height:22px!important}
 body.crew-view #jobs .open-list-head h2{font-size:20px!important}
}

/* Crew list: centered heading, shared toolbar, taller stats, single-line jobs. */
body.crew-view #app #jobs .open-list-head{justify-content:center!important;margin:0 0 16px!important;padding:0!important}
body.crew-view #app #jobs .open-list-head h2{text-align:center!important;width:100%;padding:0!important;border:0!important}
body.crew-view #app #jobs .open-list-head h2::before{display:none!important}
body.crew-view #app #jobs .open-jobs-toolbar{display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:8px!important;margin-bottom:14px!important}
body.crew-view #app #jobs .open-list-controls{margin:0!important;display:flex!important;gap:8px!important}
body.crew-view #app #jobs .open-job-stats{margin:0 0 14px!important}
body.crew-view #app #jobs .open-job-stats>div{min-height:82px!important;padding:16px!important}
body.crew-view #app #jobs .open-job-stats b{font-size:27px!important}
body.crew-view #app #jobs #jobList{overflow-x:auto!important;padding-bottom:4px!important}
body.crew-view #app #jobs .open-job-card{grid-template-columns:30px .6fr 1fr 1.15fr .65fr .7fr 1.35fr .9fr 1fr 84px!important;grid-template-areas:"icon job csr city route direction travel status priority view"!important;grid-template-rows:auto!important;min-width:1000px!important;min-height:98px!important;gap:12px!important;padding:16px!important}
body.crew-view #app #jobs .open-job-card>.open-status-icon{display:flex!important}
body.crew-view #app #jobs .open-job-card b{font-size:14px!important}
body.crew-view #app #jobs .open-job-card small{font-size:10px!important}
body.crew-view #app #jobs .open-job-card>.open-chevron{font-size:12px!important;padding:10px 4px!important}
body.crew-view #app #jobs .open-travel b{font-size:12px!important}
body.crew-view #app #jobs .open-status-badge{font-size:11px!important;padding:9px!important}

/* Crew table matches the desktop column spacing and shared headers. */
body.crew-view #app #jobs{--crew-table-cols:40px .55fr .95fr 1.1fr .75fr .7fr 1.5fr 1.15fr 1fr 1.1fr 0px}
body.crew-view #app #jobs.request-list-view{--crew-table-cols:32px 1.15fr 1.15fr 1fr .65fr .65fr 1.25fr 1fr .9fr 1fr 0px}
body.crew-view #app #jobs .open-list-panel{overflow-x:auto!important;border-radius:12px!important;background:rgba(5,28,45,.96)!important;border:1px solid #3e647b!important}
body.crew-view.theme-day #app #jobs .open-list-panel{background:rgba(248,252,255,.96)!important;border-color:#afcbdc!important}
body.crew-view #app #jobs .open-job-columns,
body.crew-view #app #jobs .open-job-card{display:grid!important;grid-template-columns:var(--crew-table-cols)!important;gap:0!important;min-width:1000px!important;width:100%!important;box-sizing:border-box!important;padding:0 12px!important}
body.crew-view #app #jobs .open-job-columns{height:58px!important;align-items:center!important;border-bottom:1px solid #3e647b!important}
body.crew-view #app #jobs .open-job-columns span{text-align:center!important;font-size:10px!important;white-space:normal!important}
body.crew-view #app #jobs #jobList{gap:0!important;overflow:visible!important;padding:0!important;min-width:1000px!important}
body.crew-view #app #jobs .open-job-card{grid-template-areas:"icon job csr city route direction travel status priority created unused"!important;min-height:84px!important;border:0!important;border-bottom:1px solid #3e647b!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;transform:none!important}
body.crew-view #app #jobs .open-job-card:last-child{border-bottom:0!important}
body.crew-view #app #jobs .open-job-card>div{align-items:center!important;justify-content:center!important;text-align:center!important;padding:10px 6px!important;min-height:64px!important}
body.crew-view #app #jobs .open-job-card small{display:none!important}
body.crew-view #app #jobs .open-job-card>.open-created-cell{display:flex!important;grid-area:created!important}
body.crew-view #app #jobs .open-job-card>.open-chevron{display:none!important}
body.crew-view #app #jobs .open-job-card b{font-size:14px!important;line-height:1.3!important}
body.crew-view #app #jobs .open-travel b{font-size:12px!important;width:100%!important}
body.crew-view #app #jobs .open-job-card:focus-visible{outline:2px solid #2aa9ff!important;outline-offset:-2px!important}
body.crew-view #app #jobs.jobs-map-view .open-job-columns,
body.crew-view #app #jobs.jobs-map-view #jobList{display:none!important}

/* Touch-friendly details, scoped to crew/tablet view. */
body.crew-view #app #details.page{max-width:1120px!important;width:calc(100% - 40px)!important;padding:88px 0 100px!important;height:auto!important;max-height:none!important;overflow:visible!important}
body.crew-view #app #detailsBody{padding:18px!important}
body.crew-view #app #details .detail-head{gap:14px!important;margin-bottom:16px!important}
body.crew-view #app #details .detail-head h1{font-size:27px!important}
body.crew-view #app #details .detail-side-actions{gap:10px!important}
body.crew-view #app #details .detail-side-actions button{min-height:48px!important;min-width:105px!important;font-size:15px!important;padding:12px 18px!important}
body.crew-view #app #details .detail-head .priority{font-size:12px!important;padding:7px 10px!important}
body.crew-view #app #details .summary-strip>div{padding:14px 10px!important}
body.crew-view #app #details .summary-strip b{font-size:16px!important}
body.crew-view #app #details .k{font-size:11px!important;line-height:1.4!important}
body.crew-view #app #details .detail-body{grid-template-columns:minmax(0,1fr) minmax(0,1.65fr)!important;gap:16px!important}
body.crew-view #app #details .panel{padding:14px!important}
body.crew-view #app #details .panel h3{font-size:16px!important}
body.crew-view #app #details .info-grid b{font-size:15px!important;line-height:1.55!important}
body.crew-view #app #details .detail-text-block{padding:14px!important}
body.crew-view #app #details .detail-completion summary{min-height:48px!important;box-sizing:border-box;padding:13px 0!important;font-size:15px!important}
body.crew-view #app #details .detail-completion p{font-size:14px!important}
body.crew-view #app #details .location-meta b{font-size:13px!important;line-height:1.4!important}
body.crew-view #app #details .map-box{height:clamp(310px,38vh,390px)!important}
body.crew-view #app #details .completed-photos{gap:12px!important;-webkit-overflow-scrolling:touch}
body.crew-view #app #details .job-photo{width:170px!important;height:120px!important;flex:0 0 170px!important}
body.crew-view #app #details .photo-rail-arrow{min-width:44px!important;width:44px!important;height:44px!important;font-size:28px!important}
@media(max-width:900px){
 body.crew-view #app #details.page{width:calc(100% - 24px)!important}
 body.crew-view #app #details .detail-body{grid-template-columns:1fr!important}
 body.crew-view #app #details .summary-strip{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.crew-view #app #details .map-box{height:350px!important}
}
@media(max-width:540px){
 body.crew-view #app #detailsBody{padding:12px!important}
 body.crew-view #app #details .detail-side-actions{width:100%!important}
 body.crew-view #app #details .detail-side-actions button{flex:1!important}
 body.crew-view #app #details .location-meta{grid-template-columns:repeat(3,minmax(0,1fr))!important;row-gap:14px!important}
}
