/* v0.9.3: one dashboard grid, independent of the order folding UI. */
html[data-pm-style=technology] .tech-dashboard.tech-v8-dashboard{grid-auto-flow:row;align-items:start}
html[data-pm-style=technology] .tech-dashboard.tech-v8-dashboard>.tech-v8-chart,
html[data-pm-style=technology] .tech-dashboard.tech-v8-dashboard>.tech-alerts{grid-row:4;align-self:stretch;min-width:0;margin:0}
html[data-pm-style=technology] .tech-dashboard.tech-v8-dashboard>.tech-v8-chart{grid-column:1}
html[data-pm-style=technology] .tech-dashboard.tech-v8-dashboard>.tech-alerts{grid-column:2}
html[data-pm-style=technology] .tech-dashboard.tech-v8-dashboard:not(:has(>.tech-v8-chart))>.tech-alerts,
html[data-pm-style=technology] .tech-dashboard.tech-v8-dashboard:not(:has(>.tech-alerts))>.tech-v8-chart{grid-column:1/-1}
html[data-pm-style=technology] .tech-dashboard.tech-v8-dashboard>.tech-alerts .metrics{grid-template-columns:minmax(0,1fr);margin:0;gap:7px}
html[data-pm-style=technology] .tech-dashboard.tech-v8-dashboard>.tech-alerts .metric{min-width:0;width:100%;margin:0;overflow-wrap:anywhere}
.pm-mobile-nav-close,.pm-mobile-shade,.pm-mobile-sections{display:none}
@media(max-width:1100px){
 html[data-pm-style=technology] .tech-dashboard.tech-v8-dashboard{display:flex;flex-direction:column;align-items:stretch}
 html[data-pm-style=technology] .tech-dashboard.tech-v8-dashboard>.tech-v8-chart{order:2}
 html[data-pm-style=technology] .tech-dashboard.tech-v8-dashboard>.tech-alerts{order:3}
 html[data-pm-style=technology] .tech-dashboard.tech-v8-dashboard>.tech-pagehead{order:-1}
 html[data-pm-style=technology] .tech-dashboard.tech-v8-dashboard>.tech-alerts .metrics{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:900px){
 body.layout,html[data-pm-style] body.layout{display:block;min-width:0}
 body.layout main{width:100%;min-width:0}
 body.layout aside,html[data-pm-style] body.layout aside{display:none;position:fixed;inset:0 auto 0 0;width:min(310px,86vw);height:100vh;height:100dvh;z-index:51;overflow-y:auto;overscroll-behavior:contain;padding:14px 12px 24px;box-shadow:0 12px 30px #0005}
 body.layout.nav-open aside,html[data-pm-style] body.layout.nav-open aside{display:block}
 body.layout.nav-open{overflow:hidden}
 body.layout .pm-mobile-nav-close,html[data-pm-style] body.layout .pm-mobile-nav-close{display:flex;position:static;width:100%;margin:0 0 14px;min-height:44px;background:var(--nav);color:var(--text);justify-content:space-between}
 body.layout.nav-open .pm-mobile-shade{display:block;position:fixed;inset:0;z-index:50;background:#08142899;border:0;border-radius:0;width:100%;height:100%;padding:0;box-shadow:none}
 body.layout #nav-toggle,html[data-pm-style] body.layout #nav-toggle{display:inline-flex;position:static;z-index:auto;order:-3;flex:none;min-width:44px;min-height:44px}
 body.layout header,html[data-pm-style] body.layout header{position:sticky;top:0;padding:8px 10px;gap:6px;min-height:0;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;z-index:5}
 body.layout header .quick,html[data-pm-style] body.layout header .quick{order:-2;flex:1 1 140px;width:auto;max-width:none;min-width:0;margin:0}
 body.layout header .who{display:none}
 body.layout header .pm-shift-flag{order:1;font-size:12px;min-height:36px;display:inline-flex;align-items:center;white-space:normal}
 body.layout header .appearance-picker,html[data-pm-style] body.layout header .appearance-picker{order:2;flex:1 1 115px;max-width:160px;min-width:0;width:auto}
 body.layout header .appearance-picker select{font-size:13px;width:100%;min-height:40px}
 body.layout header #theme{order:3;min-width:40px;padding:8px}
 body.layout header form:has(input[name=action][value=logout]){order:4;flex:none;margin:0;min-width:0}
 body.layout header .pm-unread,body.layout header #pm-shift-pending{font-size:12px;white-space:normal;max-width:100%}
 body.layout .content,html[data-pm-style] body.layout .content{width:100%;max-width:100%;min-width:0;padding:15px 12px 36px;overflow-wrap:anywhere}
 body.layout .content>*{min-width:0;max-width:100%}
 body.layout .tech-detail-layout,body.layout .tech-workspace{display:block}
 body.layout .card,html[data-pm-style] body.layout .card{padding:14px 12px;margin-bottom:12px;min-width:0;max-width:100%}
 body.layout .tech-v8-dashboard>.card,html[data-pm-style] body.layout .tech-v8-dashboard>.card{margin:0}
 body.layout .form,html[data-pm-style] body.layout .form{grid-template-columns:minmax(0,1fr);gap:10px}
 body.layout .form>*{min-width:0;max-width:100%}
 body.layout .form>button{justify-self:stretch}
 body.layout .inline,body.layout .detail,body.layout .part-widget{flex-wrap:wrap;gap:8px;min-width:0}
 body.layout .inline label{min-width:0;flex:1 1 140px}
 body.layout .inline>*{max-width:100%}
 body.layout .content :is(input:not([type=checkbox]):not([type=radio]),select,textarea),html[data-pm-style] body.layout .content :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px;max-width:100%;min-width:0}
 body.layout header .quick input{font-size:16px;min-height:44px}
 body.layout .content :is(button,.btn){white-space:normal;max-width:100%;min-height:42px}
 body.layout .content .pm-sort{min-height:32px}
 body.layout .tablewrap,body.layout .repair-board{width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;touch-action:pan-x pan-y}
 body.layout .tablewrap table{width:100%;min-width:540px}
 body.layout .tablewrap td{min-width:82px}
 body.layout .tablewrap :is(th,td){padding:9px 10px;overflow-wrap:normal}
 body.layout .tablewrap td .form{min-width:150px;flex-wrap:wrap}
 body.layout .repair-board{grid-template-columns:repeat(7,minmax(240px,78vw));scroll-snap-type:x proximity}
 body.layout .board-column{scroll-snap-align:start}
 body.layout .board-intro,.board-toolbar{flex-wrap:wrap;gap:8px}
 body.layout .board-ticket select{font-size:16px}
 body.layout .pm-mobile-sections{display:block;margin:10px 0 14px;padding:10px;background:var(--paper);border:1px solid var(--line);border-radius:8px;color:var(--text)}
 body.layout .pm-mobile-sections select{margin-top:5px}
 body.layout .tech-detail-layout .card,body.layout .pm-fold-panel{scroll-margin-top:155px}
 body.layout .pm-fold-heading{flex-wrap:wrap}
 body.layout .pm-layout-move button{min-width:44px;min-height:44px}
 body.layout .pm-layout-handle{display:none}
 body.layout .pm-layout-status{flex-basis:100%;margin:2px 0}
 body.layout .pm-fold-controls{gap:6px}
 body.layout .pm-fold-controls button{flex:1 1 120px}
 body.layout .pm09-photos>div,body.layout .pm09-uploaded>div{max-width:100%}
 body.layout :is(img,video){max-width:100%}
 body.layout dialog{max-width:calc(100vw - 20px);max-height:90dvh;overflow:auto;padding:14px}
 body.layout .pm-shift-report .metrics,body.layout #pm-shifts-live .metrics{grid-template-columns:repeat(auto-fit,minmax(min(130px,100%),1fr))}
 body.layout .pm-shift-report .inline{flex-wrap:wrap}
 body.layout pre{max-width:100%;overflow-wrap:anywhere}
}
@media(max-width:600px){
 body.layout .metrics,html[data-pm-style] body.layout .tech-v8-dashboard>.tech-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.layout .permissions{grid-template-columns:minmax(0,1fr)}
 html[data-pm-style=technology] .tech-dashboard.tech-v8-dashboard>.tech-v8-hero{grid-template-columns:minmax(0,1fr);min-height:0}
 html[data-pm-style=technology] .tech-v8-hero>div:first-child{padding:16px;min-width:0}
 html[data-pm-style=technology] .tech-v8-hero h2{font-size:29px;line-height:1.15;overflow-wrap:normal}
 html[data-pm-style=technology] .tech-v8-actions{gap:6px;flex-wrap:wrap}
 html[data-pm-style=technology] .tech-v8-actions a{min-height:42px;white-space:normal}
 html[data-pm-style=technology] .tech-dashboard.tech-v8-dashboard>.tech-v8-chart{padding:14px 12px}
 html[data-pm-style=technology] .tech-v8-bar{grid-template-columns:minmax(0,1fr) minmax(32px,1fr) 22px;gap:6px}
 html[data-pm-style=technology] .tech-v8-dashboard>.tech-overview .metric{min-height:80px;padding:10px}
 html[data-pm-style=technology] .tech-v8-dashboard>.tech-overview .metric strong{font-size:25px}
 html[data-pm-style=technology] .tech-v8-dashboard>.tech-events .metrics{grid-template-columns:minmax(0,1fr)}
 body.login{min-width:0}
 html[data-pm-style=technology] body.login:has(.tech-login-visual){display:flex;flex-direction:column;align-items:stretch;gap:0;min-height:100vh;padding:0}
 html[data-pm-style=technology] body.login .tech-login-visual{min-height:160px;padding:20px;max-width:100%}
 html[data-pm-style=technology] body.login main{width:100%;max-width:440px;margin:0 auto;padding:16px}
 html[data-pm-style=technology] body.login .tech-login-copy>strong{font-size:28px;line-height:1.2}
 body.login input{font-size:16px}
}
@media(max-width:360px){body.layout .metrics,html[data-pm-style] body.layout .tech-v8-dashboard>.tech-overview{grid-template-columns:minmax(0,1fr)}}
@media(max-width:1249px){
 body.layout .pm-mobile-sections{display:block;margin:10px 0 14px;padding:10px;background:var(--paper);border:1px solid var(--line);border-radius:8px;color:var(--text);min-width:0}
 body.layout .pm-mobile-sections select{margin-top:5px}
}
@media(max-width:1100px){html[data-pm-style=technology] .tech-dashboard.tech-v8-dashboard>a.btn[href='/accept']{order:5;align-self:start}}

@media(max-width:760px){
 html[data-pm-style=technology] body.login:has(.tech-login-visual){display:flex;flex-direction:column;align-items:stretch;min-height:100dvh;overflow-x:hidden}
 html[data-pm-style=technology] body.login .tech-login-visual{min-height:0;padding:24px 20px;box-sizing:border-box;border-right:0;max-width:100%;width:100%;}
 html[data-pm-style=technology] body.login .tech-login-copy>span{font-size:10px;letter-spacing:1.6px;margin-bottom:12px;line-height:1.4;overflow-wrap:anywhere}
 html[data-pm-style=technology] body.login .tech-login-copy>strong{font-size:clamp(28px,7vw,40px);line-height:1.13;letter-spacing:-.5px;overflow-wrap:anywhere}
 html[data-pm-style=technology] body.login .tech-login-copy>strong br{display:initial}
 html[data-pm-style=technology] body.login .tech-login-copy p{font-size:14px;line-height:1.4;margin:12px 0 0}
 html[data-pm-style=technology] body.login:has(.tech-login-visual) main{box-sizing:border-box;width:100%;max-width:440px;margin:0 auto;padding:18px 16px;align-self:center;}
 html[data-pm-style=technology] body.login:has(.tech-login-visual) .login-card{padding:20px;min-width:0;}
}
