/* Shared control height for the phone and desktop panels. Content cards keep their natural height. */
body:has(.site-header--panel){--panel-control-height:44px}
body:has(.site-header--panel) :is(button,.button,.primary-button):not(.ticket-row):not(.employee-row):not(.module-card){box-sizing:border-box;height:var(--panel-control-height)!important;min-height:var(--panel-control-height)!important;max-height:var(--panel-control-height)!important;padding-top:0!important;padding-bottom:0!important;flex-shrink:0}
body:has(.site-header--panel) :is(.dialog-close,.notice-close,.icon-button,.menu-toggle,.ticket-field-copy,.operator-status-submit){width:var(--panel-control-height)!important;min-width:var(--panel-control-height)!important;max-width:var(--panel-control-height)!important}
body:has(.site-header--panel) :where(.ticket-toolbar,.module-toolbar,.module-filter,#company-switch-wrap,.operator-mobile-view,#operator-status-form) :where(select,input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"])){box-sizing:border-box;height:var(--panel-control-height)!important;min-height:var(--panel-control-height)!important;max-height:var(--panel-control-height)!important;padding-top:0!important;padding-bottom:0!important}
body:has(.site-header--panel) .ticket-toolbar>.search-box{height:var(--panel-control-height)!important;min-height:var(--panel-control-height)!important;box-sizing:border-box}
body:has(.site-header--panel) .search-box input{height:100%!important;min-height:0!important;max-height:100%!important;padding-top:0!important;padding-bottom:0!important}
body:has(.site-header--panel) .operator-mobile-choice-value{line-height:var(--panel-control-height)!important}
@media(max-width:760px){
 body:has(.site-header--panel) #refresh-tickets{width:var(--panel-control-height)!important;min-width:var(--panel-control-height)!important;max-width:var(--panel-control-height)!important}
 body:is([data-panel-mode="customer"],[data-panel-mode="operator"]) #panel-workspace .ticket-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 1px var(--panel-control-height)!important}
 body[data-panel-mode="customer"] #panel-workspace .workspace-sidebar{grid-template-rows:auto auto!important}
}
@media(max-width:760px) and (max-height:550px){
 body[data-panel-mode="customer"] #panel-workspace .workspace-sidebar{grid-template-rows:auto!important}
}
/* Copy controls are compact icons; other panel actions retain44px. */
body:has(.site-header--panel) .ticket-field-copy{--panel-control-height:16px;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important}
body:has(.site-header--panel) .ticket-remote-field dd:has(>.ticket-field-copy){min-height:0!important}
