/* Real-device corrections. Shared business DOM/commands; only available width changes layout. */
body .u3183-location-columns .warehouse-location-choice{font-size:17px;font-weight:600;line-height:1.4}
body .u3183-location-columns .device-location-title{display:flex;align-items:center;gap:8px;font-size:24px!important;font-weight:600;line-height:1.25;margin:0}
.device-location-title>svg{width:21px;height:21px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;color:#888}
body .u3183-location-columns .u3-module-head{min-height:60px;align-items:center}
body .employee-fleet-table .fleet-project-tag-list{align-items:flex-start}
body .employee-fleet-table .fleet-project-tag-list>.employee-project-link{width:fit-content;max-width:100%;align-self:flex-start}
body .u38-head,body .u312-head{box-sizing:border-box}
body.warehouse-ipad-readable :is(.dashboard-todos,.business-stage,.project-linked-todos)>.section-head{height:auto!important;min-height:64px;box-sizing:border-box;padding:10px 14px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
body.warehouse-ipad-readable :is(.dashboard-todos,.project-linked-todos)>.section-head>button{flex:none;margin:0}
body.warehouse-ipad-readable .u38-head,body.warehouse-ipad-readable .u312-head{height:auto!important;min-height:92px;padding:12px;display:flex;align-items:center;gap:8px;justify-content:space-between}
body.warehouse-ipad-readable .u38-head h3{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-width:0;font-size:18px!important;line-height:1.35}
body.warehouse-ipad-readable .u38-head .material-list-state{font-size:13px!important;line-height:1.4;white-space:normal;max-width:100%}
body.warehouse-ipad-readable .u38-title-extra{flex:none;max-width:80px;text-align:right;white-space:normal;font-size:13px;line-height:1.5}
body.warehouse-ipad-readable .u38-columns{gap:12px}
body.warehouse-ipad-readable .u38-pick-row{grid-template-columns:24px minmax(0,1fr);gap:8px;padding:12px}
body.warehouse-ipad-readable .u38-pick-row>.u38-quantity{grid-column:2;text-align:left;justify-content:flex-start}
body.warehouse-ipad-readable .u38-middle-body{padding:12px}
body.warehouse-ipad-readable .u38-submit-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
body.warehouse-ipad-readable .u38-workspace :is(select,input:not([type=checkbox])){box-sizing:border-box;min-width:0;max-width:100%;padding:8px 10px}
body.warehouse-ipad-readable .u38-workspace .u38-preview-row{padding:10px 0}
body.warehouse-ipad-readable .u38-workspace .u314-selection-line{flex-wrap:wrap;align-items:center;gap:8px}
body.warehouse-ipad-readable #u3-materials-layout .u31-panel-heading{min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:12px}
body.warehouse-ipad-readable #u3-materials-layout .u31-heading-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%;min-width:0;justify-content:stretch}
body.warehouse-ipad-readable #u3-materials-layout .u31-heading-actions>button,body.warehouse-ipad-readable #u3-materials-layout .project-material-actions{min-width:0;width:100%;margin:0}
body.warehouse-ipad-readable #u3-materials-layout .project-material-actions>button{width:100%;min-width:0;white-space:normal;height:auto!important;min-height:44px!important}
body.warehouse-ipad-readable #u3-materials-layout .u31-heading-actions>button{white-space:normal!important;height:auto!important;min-height:44px!important;line-height:1.35!important;padding:7px 8px!important}
body.warehouse-ipad-readable .u3183-location-columns .warehouse-location-choice{font-size:19px!important;font-weight:600;min-height:48px}
body.warehouse-ipad-readable .u3183-location-columns .device-location-title{font-size:26px!important}
body.warehouse-ipad-readable .employee-section-head{min-height:64px;height:auto;align-items:center}
body.warehouse-ipad-readable .employee-workspace .employee-person{align-items:center;min-height:54px}
body.warehouse-ipad-readable .employee-schedule-meta{align-self:center;gap:8px}
body.warehouse-ipad-readable .calendar-period{font-size:16px;line-height:1.4}
body.warehouse-ipad-readable .calendar-day{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:4px;min-height:44px;padding:5px 6px}
body.warehouse-ipad-readable .calendar-count{font-size:13px;line-height:18px;white-space:nowrap}
body.warehouse-ipad-readable .calendar-day-button{flex:none}
body.warehouse-ipad-readable .calendar-entry{min-height:24px;line-height:22px;font-size:13px!important}
body.warehouse-ipad-readable .calendar-car-reminder{display:block;position:static;font-size:11px;line-height:14px;white-space:nowrap}
body.warehouse-ipad-readable .calendar-week-dates{align-items:start}
body.warehouse-ipad-readable .todo-row{align-items:center;gap:10px}
body.warehouse-ipad-readable .todo-copy{min-width:0}
body.warehouse-ipad-readable .todo-meta{display:flex;gap:4px 8px;flex-wrap:wrap;line-height:1.5}
body.warehouse-ipad-readable .todo-row>.todo-actions{flex:none;align-items:center;align-self:center}
@media(min-width:1280px){body.warehouse-ipad-readable #u3-materials-layout .u31-heading-actions{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:767px){
 body .topbar{box-sizing:border-box;gap:10px;padding-inline:12px}
 body .topbar .global-search{min-width:0;flex:1 1 auto}
 body .view[data-panel=project-detail] .u38-columns{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px}
 body .view[data-panel=project-detail] .u38-columns>.u3-pending-materials,body .view[data-panel=project-detail] .u38-columns>.u3-destination,body .view[data-panel=project-detail] .u38-columns>.u3-actual-destinations{display:block!important;min-width:0;width:100%;box-sizing:border-box;border:1px solid #ddd;border-radius:6px;overflow:visible}
 body .u38-workspace{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
 body .u38-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:64px;height:auto;padding:10px 12px;border-radius:6px 6px 0 0}
 body .u38-head h3{display:flex;flex-direction:column;align-items:flex-start;gap:4px;font-size:16px;line-height:1.35;min-width:0}
 body .u38-title-extra{flex:none;font-size:12px;line-height:1.4;max-width:82px;white-space:normal;text-align:right}
 body .u38-head .material-list-state{font-size:12px;line-height:1.4;max-width:100%;white-space:normal}
 body .u38-shelf{font-size:18px;font-weight:600;line-height:1.4;padding:10px 12px;margin:0}
 body .u38-pick-row{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:8px;padding:12px;align-items:start}
 body .u38-pick-row>input[type=checkbox]{width:22px;height:22px;min-height:22px;margin:2px 0;align-self:start;accent-color:#555}
 body .u38-pick-row .warehouse-material-name{font-size:15px;line-height:1.5}
 body .u38-pick-row .warehouse-material-spec{font-size:13px;line-height:1.5}
 body .u38-qty,body .u38-pick-row .u38-quantity{font-size:16px;line-height:1.5;align-self:start;white-space:nowrap}
 body .u38-middle-body{padding:12px}
 body .u38-workspace :is(select,input:not([type=checkbox])){font-size:16px!important;min-height:44px;box-sizing:border-box;min-width:0;max-width:100%;padding:8px 10px}
 body .u38-workspace .u38-preview-row{padding:12px 0}
 body .u314-selection-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
 body .u38-submit-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
 body .u38-submit-actions button{min-height:44px!important}
 body .mobile-selection-jump{position:fixed;z-index:16;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));display:flex!important;justify-content:space-between;align-items:center;gap:12px;min-height:48px;height:auto;padding:10px 14px;border:1px solid #d5d5d5;border-radius:7px;background:#fff;color:#444;box-shadow:0 2px 10px #0001;font-size:14px}
 body .u3-destination{scroll-margin-top:calc(var(--mobile-topbar-offset,68px) + 72px)}
 body .view[data-panel=project-detail] .u312-columns{display:grid!important;grid-template-columns:minmax(0,1fr);gap:14px}
 body .view[data-panel=project-detail] .u312-columns>.u312-pending{display:block!important}
 body .u312-panel{border:1px solid #ddd;border-radius:6px;overflow:hidden;padding:0;min-width:0}
 body .u312-head{height:auto;min-height:50px;padding:10px 12px;display:flex;align-items:center}
 body .u312-head h3{font-size:16px;margin:0;line-height:1.4}
 body .u312-pending-row{padding:12px;gap:8px;grid-template-columns:24px minmax(0,1fr) auto;align-items:start}
 body .u312-pending-row>input[type=checkbox]{width:22px;height:22px;margin:2px 0}
 body .u312-load-actions{padding:12px;display:grid!important;grid-template-columns:minmax(0,1fr);gap:10px}
 body .u312-load-actions .u3-field,body .u312-load-actions label{padding:0;margin:0;min-width:0;gap:6px}
 body .u312-loading-host :is(select,input:not([type=checkbox])){font-size:16px!important;line-height:1.4;min-height:44px;height:44px;padding:8px 30px 8px 10px}
 body .u312-loading-host .u312-scroll{padding:0;max-height:none;overflow:visible}
 body .u312-loading-host .u312-empty,body .u312-loading-host .u313-empty-vehicle{min-height:0;padding:16px 12px;margin:0;font-size:13px}
 body .u312-actual>.u312-scroll{padding:0 12px}
 body .u312-dispatch-bar{padding:14px 0 calc(12px + env(safe-area-inset-bottom));margin-top:14px}
 body .view[data-panel=project-detail] .r316-workspace:not(.mobile-return-batch):not(.mobile-return-followup) .r316-confirm{display:block!important}
 body .view[data-panel=project-detail] .r316-columns{display:grid!important;grid-template-columns:minmax(0,1fr);gap:14px}
 body .view[data-panel=project-detail] .r3161-list-head,body .view[data-panel=project-detail] .r316-material-row{display:grid!important;grid-template-columns:minmax(0,1fr) max-content;gap:6px 10px;align-items:start}
 body .view[data-panel=project-detail] .r3161-list-head{min-height:0;height:auto;padding:10px 12px}
 body .r3161-list-head>span:first-child,body .r316-material-row>.r316-material-copy,body .r316-material-row>.r3162-pick{grid-column:1;grid-row:1;min-width:0}
 body .r3161-list-head>span:nth-child(2),body .r316-material-row>.r3161-location-cell{grid-column:1/-1;grid-row:2;text-align:left}
 body .r3161-list-head>span:last-child,body .r316-material-row>.r316-pending-quantity{grid-column:2;grid-row:1;text-align:right;white-space:nowrap}
 body .r316-material-list{min-height:0!important;max-height:none;overflow:visible}
 body .r316-material-list>.empty-state,body .r316-confirm>.empty-state{min-height:0!important;padding:18px 12px!important}
 body .r316-workspace :is(.r316-confirm,.r316-material-list){min-height:0}
 body .r316-workspace .r316-empty{min-height:0;padding:16px 12px}
 body .r316-workspace :is(select,input:not([type=checkbox])){font-size:16px!important;min-height:44px}
 body .u3183-location-columns .warehouse-location-choice{font-size:18px;min-height:48px}
 body .u3183-location-columns .device-location-title{font-size:24px!important}
 body .u3183-location-columns .u3-location-stock{max-height:none;min-height:0;overflow:visible}
 body .u3-location-stock .u3183-location-table,body .u3-location-stock .u3183-location-table tbody{display:block;width:100%;min-width:0}
 body .u3-location-stock .u3183-location-table thead{display:none}
 body .u3-location-stock .u3183-location-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:12px 0;border-bottom:1px solid #eee;align-items:center}
 body .u3-location-stock .u3183-location-table td{display:block;padding:0!important;border:0!important;width:auto!important;min-width:0}
 body .u3-location-stock .u3183-location-table td::before{display:none!important}
 body .u3-location-stock .u3183-location-table td:nth-child(1){grid-column:1;grid-row:1;font-size:15px;line-height:1.5}
 body .u3-location-stock .u3183-location-table td:nth-child(2){grid-column:1;grid-row:2;font-size:13px;color:#777;line-height:1.5}
 body .u3-location-stock .u3183-location-table td:nth-child(3){grid-column:2;grid-row:1/3;align-self:center;font-size:17px;white-space:nowrap}
 body .employee-fleet-list{overflow:visible;border:0;border-radius:0}
 body .employee-fleet-table,body .employee-fleet-table tbody{display:block;width:100%;min-width:0;table-layout:auto}
 body .employee-fleet-table thead{display:none}
 body .employee-fleet-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;box-sizing:border-box;height:auto!important;min-height:0;padding:14px 12px;border:1px solid #e1e1e1;border-radius:6px;margin-bottom:10px;align-items:center}
 body .employee-fleet-table td{display:block;box-sizing:border-box;border:0;padding:0!important;width:auto!important;min-width:0}
 body .employee-fleet-table td::before{display:none!important}
 body .employee-fleet-table td:nth-child(1){grid-column:1;grid-row:1}
 body .employee-fleet-table td:nth-child(2){grid-column:1/-1;grid-row:2;font-size:14px;line-height:1.5}
 body .employee-fleet-table td:nth-child(3){grid-column:1/-1;grid-row:3;font-size:13px;line-height:1.5}
 body .employee-fleet-table tr[data-vehicle-kind=owned] td:nth-child(3){display:none}
 body .employee-fleet-table td:nth-child(4){grid-column:1/-1;grid-row:4}
 body .employee-fleet-table td:nth-child(5){grid-column:2;grid-row:1;align-self:center}
 body .employee-fleet-table .employee-plate strong{display:block;overflow:visible;-webkit-line-clamp:unset;font-size:16px;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
 body .employee-fleet-table .employee-rental-company{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.5;font-size:13px}
 body .employee-fleet-table .employee-plate{gap:8px}
 body .employee-fleet-table .fleet-project-tags{grid-template-columns:minmax(0,1fr) auto;justify-content:start;max-width:100%;gap:8px}
 body .employee-fleet-table .fleet-project-tag-list{flex-direction:row;flex-wrap:wrap;justify-content:flex-start;gap:5px}
 body .employee-fleet-table .fleet-project-tag-list>a{height:auto;max-width:100%;white-space:normal;line-height:1.4}
 body #u3-inventory .u318-stock-table tr{grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;padding:12px}
 body #u3-inventory .u318-stock-table td:nth-child(2),body #u3-inventory .u318-name-with-tags{display:contents}
 body #u3-inventory .u318-material-name{grid-column:1;grid-row:1;min-width:0;font-size:15px;line-height:1.5}
 body #u3-inventory .polish-association-tags{grid-column:1/-1;grid-row:2;min-width:0;margin:0}
 body #u3-inventory .u318-stock-table td:last-child{grid-column:2;grid-row:1;align-self:start;white-space:nowrap;font-size:17px}
 body #u3-inventory .u318-stock-table td:nth-child(3){grid-column:1/-1;grid-row:3;font-size:13px;line-height:1.5}
 body #u3-inventory .u318-stock-table td:nth-child(1){grid-column:1/-1;grid-row:4;font-size:12px;line-height:1.5}
 body #u3-inventory .u318-stock-table td:nth-child(4){grid-column:1/-1;grid-row:5;text-align:left;font-size:16px;font-weight:600;line-height:1.4}
 body [data-panel=dashboard]>.page-head{margin-bottom:14px;gap:8px;flex-wrap:wrap}
 body [data-panel=dashboard] .dashboard-todos>.section-head{height:auto;min-height:52px;padding:8px 12px;align-items:center}
 body .todo-toolbar{padding:8px 10px;gap:8px;flex-wrap:wrap}
 body .todo-toolbar .todo-filters{gap:4px;flex-wrap:wrap}
 body .todo-views{gap:4px}
 body .todo-toolbar button{min-height:36px;padding:6px 9px;font-size:13px}
 body .todo-list>.todo-row{padding:10px 12px;gap:8px;min-height:0}
 body .calendar-toolbar{padding:10px 12px 4px;gap:8px}
 body .calendar-grid{padding:4px 10px 10px}
 body main{padding-bottom:calc(24px + env(safe-area-inset-bottom))}
 body :is(.view,dialog) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px!important}
}
@media(min-width:768px){
 body.warehouse-ipad-readable .view[data-panel=project-detail] .u38-columns{display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr) minmax(0,1fr)!important;gap:12px;align-items:start}
 body.warehouse-ipad-readable .view[data-panel=project-detail] .u38-columns>.u3-actual-destinations{grid-column:auto!important}
 body.warehouse-ipad-readable .u38-title-extra{max-width:52px;font-size:12px}
 body.warehouse-ipad-readable .u38-actual-group>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;padding:8px}
 body.warehouse-ipad-readable .u38-group-label{min-width:0;flex-wrap:wrap;gap:5px;line-height:1.45}
 body.warehouse-ipad-readable .u38-group-label>span{min-width:0;overflow-wrap:anywhere;white-space:normal}
 body.warehouse-ipad-readable .u38-group-label .u38-count{font-size:12px;white-space:nowrap}
 body.warehouse-ipad-readable .u38-middle-body .u313-destination-label{flex-wrap:wrap;gap:5px}
}
@media(max-width:767px){
 body .employee-fleet-table td{height:auto!important;min-height:0}
 body .employee-fleet-table tr[data-vehicle-kind=owned] td:nth-child(4){grid-row:3}
 body .u312-source-group>h4{padding:10px 12px;margin:0;font-size:14px}
}
@media(max-width:767px){body .employee-fleet-table .employee-rental-period{line-height:20px}body .employee-fleet-table tbody tr{grid-auto-rows:auto;align-content:start}}
body.warehouse-ipad-readable .u3-actual-destinations>.u38-scroll{display:block!important;padding:12px}
body.warehouse-ipad-readable .u3-actual-destinations .u38-actual-group{display:block;width:100%;margin:0 0 10px}
body.warehouse-ipad-readable .calendar-day{min-height:60px}
body.warehouse-ipad-readable .calendar-day .calendar-count{position:static!important;display:inline-block;margin:5px 0 0;align-self:flex-start}
body.warehouse-ipad-readable .calendar-day-button{display:flex!important;flex-direction:column;align-items:center;justify-content:center;height:auto!important;min-height:44px!important;width:32px!important;gap:2px}
body.warehouse-ipad-readable .calendar-day-button .calendar-date-number{flex:none}
/* The same linked-task header must contain its existing action on every width. */
body .project-linked-todos>.section-head{height:auto!important;min-height:52px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 16px}
body .project-linked-todos>.section-head h2{margin:0}
body.warehouse-ipad-readable .project-linked-todos>.section-head{min-height:64px;padding:10px 14px}
@media(max-width:767px){body .topbar input{font-size:16px!important}}
@media(min-width:768px) and (max-width:1100px){
 body.warehouse-ipad-readable .u3-pending-materials>.u38-head{display:block;position:relative;min-height:102px}
 body.warehouse-ipad-readable .u3-pending-materials>.u38-head h3{display:block;white-space:nowrap}
 body.warehouse-ipad-readable .u3-pending-materials>.u38-head .material-list-state{display:block;max-width:calc(100% - 44px);margin-top:5px;white-space:normal}
 body.warehouse-ipad-readable .u3-pending-materials>.u38-head .u38-title-extra{position:absolute;right:10px;bottom:12px;width:40px;max-width:40px;line-height:1.5}
}
