/* Mobile navigation and readable machine records. Desktop keeps its sidebar. */
.sidebar-links{display:flex;flex-direction:column;flex:1;min-height:0}
.mobile-menu-toggle{display:none}
.machine-card{min-width:0;overflow-wrap:anywhere}
.ur-kpis strong.kpi-text{font-size:20px;letter-spacing:0;overflow-wrap:normal}
@media screen and (max-width:800px){
 .sidebar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 18px;height:auto}
 .sidebar .brand{margin:0;padding:0}
 .sidebar .brand-logo{width:122px;max-height:64px;object-fit:contain}
 .sidebar.menu-ready .mobile-menu-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;font-size:14px}
 .sidebar-links{grid-column:1/-1;min-width:0}
 .sidebar.menu-ready .sidebar-links{display:none}
 .sidebar.menu-open .sidebar-links{display:flex}
 .sidebar nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:6px;margin:8px 0}
 .sidebar nav a{white-space:normal;min-height:44px;padding:10px;font-size:12px}
 .sidebar-links>a{padding:12px 10px;border-bottom:1px solid var(--line)}
 .sidebar .sidebar-bottom{display:block;margin-top:12px;padding-top:12px;overflow-wrap:anywhere}
 .sidebar-bottom a{display:block;padding:10px 0}
 .sidebar-bottom .ghost{min-height:44px}
 .workspace{min-width:0}
 .topbar>span:first-child{overflow-wrap:anywhere;min-width:0}
 .heading{flex-wrap:wrap;align-items:flex-start}
 .heading>div{min-width:0;max-width:100%}
 .heading h1{overflow-wrap:anywhere}
 .heading .button{white-space:normal;min-height:44px;font-size:12px}
 .machine-grid{grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))}
 .machine-footer a{display:inline-flex;align-items:center;min-height:44px}
 .inline{flex-wrap:wrap}
 .inline>input,.inline>select{min-width:0;flex:1 1 180px}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px}
 .demo-banner{font-size:12px;line-height:1.6}
}
@media screen and (max-width:650px){
 .workspace{padding:0 14px}
 .card{padding:18px}
 .machine-card{padding:20px}
 .machine-card h2{font-size:18px;line-height:1.45}
 .machine-card .state{white-space:normal}
 .heading{margin-bottom:22px}
 .ur-kpis .state{white-space:normal}
 .ur-kpis strong.kpi-text{font-size:18px}
 .mobile-records,.mobile-records tbody{display:block;width:100%}
 .mobile-records thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .mobile-records tbody tr{display:block;border:1px solid var(--line);border-radius:10px;padding:12px;margin-bottom:12px}
 .mobile-records tbody td{display:block;white-space:normal;padding:7px 0;border:0;overflow-wrap:anywhere;font-size:13px}
 .mobile-records td[data-label]::before{content:attr(data-label);display:block;font-size:10px;color:var(--muted);margin-bottom:4px;font-weight:600}
 .mobile-records .order-link{min-width:0;max-width:none;font-size:14px}
 .mobile-records .order-link small{font-size:10px}
 .mobile-records .state{white-space:normal;font-size:11px!important}
 .mobile-records .priority{font-size:12px}
 .mobile-records td[colspan]{padding:4px}
 .dashboard-tile .device-row>*{min-width:0;overflow-wrap:anywhere}
}
@media screen and (max-width:360px){.ur-kpis{grid-template-columns:1fr}.sidebar nav{grid-template-columns:1fr}}
@media print{.mobile-menu-toggle{display:none!important}}
