/* Shared page headers: title left, commands anchored to the right. */
#root .heading:has(>div>h1),#root .page-heading,#root .planning-header-line{
 display:grid;grid-template-columns:minmax(0,max-content) minmax(0,1fr);align-items:center;gap:8px 20px;width:100%;min-width:0;margin:0 0 20px;padding:0;flex-direction:row;
}
#root .heading:has(>div>h1)>div:first-child{display:contents}
#root .heading:has(>div>h1)>div:first-child>h1,#root .page-heading>h1,#root .planning-header-line>h1{
 grid-column:1;grid-row:1;margin:0;font-size:28px;line-height:42px;text-align:left;white-space:normal;overflow-wrap:break-word;
}
#root .heading:has(>div>h1)>div:first-child>p{grid-column:1/-1;grid-row:2;margin:0;line-height:1.5}
#root .heading:has(>div>h1)>.actions,#root .page-heading>.toolbar,#root .planning-header-line>.planning-toolbar-line{
 grid-column:2;grid-row:1;display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;width:auto;max-width:100%;margin:0 0 0 auto;padding:0;overflow:visible;
}
#root .heading:has(>div>h1)>.actions>*,#root .page-heading>.toolbar>*,#root .planning-header-line>.planning-toolbar-line>*{flex:0 0 auto;margin:0;max-width:100%}
#root .heading:has(>div>h1)>.actions>button,#root .page-heading>.toolbar>button,#root .planning-header-line>.planning-toolbar-line>button{min-height:42px;white-space:nowrap}
#root .planning-header-line>.planning-toolbar-line select{width:180px;min-height:42px}
#root .page-heading>.toolbar label{display:flex;align-items:center;gap:8px;margin:0}
#root .page-heading>.toolbar input{width:160px;margin:0;min-height:42px}
#content>.toolbar,#content>form.toolbar{justify-content:flex-end}
#root .duty-toolbar:has(>h1){display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:8px}
#root .duty-toolbar>h1{margin:0;margin-right:auto;min-width:0;text-align:left}
.vehicle-shell .vehicle-identity>.toolbar{justify-content:flex-end;margin-left:auto;max-width:100%;flex-wrap:wrap}
@media(max-width:800px){
 #root .heading:has(>div>h1),#root .page-heading,#root .planning-header-line{grid-template-columns:minmax(0,1fr);gap:10px}
 #root .heading:has(>div>h1)>.actions,#root .page-heading>.toolbar,#root .planning-header-line>.planning-toolbar-line{grid-column:1;grid-row:2;width:100%;margin:0;justify-content:flex-end}
 #root .heading:has(>div>h1)>div:first-child>p{grid-row:3}
 #root .heading:has(>div>h1)>div:first-child>h1,#root .page-heading>h1,#root .planning-header-line>h1{font-size:24px;line-height:1.3}
 #root .page-heading>.toolbar label{flex-wrap:wrap;max-width:100%}
 .vehicle-shell .vehicle-identity{flex-wrap:wrap}
 .vehicle-shell .vehicle-identity>.toolbar{flex-basis:100%}
}
@media(max-width:420px){#root .page-heading>.toolbar label{justify-content:flex-end;width:100%}}
