/* Final approved visual refinement. Existing authority and width-based workflows remain shared. */
body .employee-workspace :is(.employee-directory,.employee-work){border:0;border-radius:0;background:#fff}
body .employee-workspace .employee-section-head{background:#fff;border:0;padding:0 0 16px;min-height:0;height:auto}
body .employee-workspace .employee-directory-list{padding:0 8px 0 0;max-height:calc(100dvh - 240px)}
body .employee-workspace .employee-person{flex-direction:row;align-items:center;gap:10px;min-height:50px;padding:8px 10px;margin:2px 0;border-radius:6px}
body .employee-workspace .employee-person.selected{background:#f1f1f0;color:#333}
.employee-task-count{font-variant-numeric:tabular-nums;font-size:12px!important;font-weight:400;color:#888;white-space:nowrap}
.employee-person>.employee-task-count{margin-left:auto;min-width:16px;text-align:right}
.employee-person-heading{display:flex;flex-direction:column;gap:3px}.employee-workspace .employee-person-heading h2{margin:0;font-size:17px;font-weight:500}.employee-person-heading small{font-size:12px;color:#888}
body .employee-workspace .employee-work-body{padding:0}.employee-workspace .employee-work>.employee-section-head{gap:12px;flex-wrap:wrap}
body .employee-workspace .employee-task-filters{display:flex;gap:22px;border-bottom:1px solid #ececec;margin-bottom:8px}
body .employee-workspace .employee-task-filters>button{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none;padding:7px 0!important;min-height:34px;height:auto;color:#888!important;border-bottom:2px solid transparent!important}
body .employee-workspace .employee-task-filters>button.active{color:#333!important;border-bottom-color:#555!important;font-weight:500}
body .employee-workspace :is(.employee-project,.employee-other){margin:0;padding:0;border:0;border-bottom:1px solid #efefef;border-radius:0;background:#fff}
body .employee-workspace :is(.employee-project,.employee-other)>summary{display:flex;align-items:center;gap:10px;list-style:none;padding:14px 0;cursor:pointer;min-height:48px;box-sizing:border-box}
body .employee-workspace :is(.employee-project,.employee-other)>summary::-webkit-details-marker{display:none}
.employee-workspace summary>svg{width:18px;height:18px;flex:none;color:#91918d;fill:none;stroke:currentColor;stroke-width:1.5}.employee-schedule-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}.employee-schedule-copy>.employee-text-link{font-size:14px;font-weight:500;overflow-wrap:anywhere}.employee-schedule-copy .employee-date{font-size:12px!important;color:#999;margin:0!important;white-space:normal}
.employee-schedule-meta{display:flex;align-items:center;gap:10px;margin-left:auto;flex:none}.employee-schedule-meta>svg{width:14px;height:14px;fill:none;stroke:#888;stroke-width:1.5;transition:transform .12s}.employee-workspace details[open]>.employee-schedule-meta>svg,.employee-workspace details[open]>summary .employee-schedule-meta>svg{transform:rotate(90deg)}.employee-highest-dot{width:5px;height:5px;border-radius:50%;background:#af4e4b;display:inline-block}
.employee-project-tasks{margin:0 0 10px 24px;padding:5px 10px;background:#f8f8f7;border-radius:5px}.employee-project-tasks .employee-task{padding:6px 0;min-height:36px;font-size:13px}.employee-project-tasks .employee-task .employee-date{font-size:12px}.employee-project-tasks>.empty-inline{margin:0;padding:7px 0;font-size:12px;color:#999}
.polish-association-tags{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:5px;max-width:100%;min-width:0}
body .polish-stock-tag{display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:100%;font-size:12px!important;font-weight:400;line-height:1.5;min-height:22px;height:auto;box-sizing:border-box;padding:2px 7px;border-radius:4px;text-decoration:none;border:0;white-space:normal}
.polish-stock-tag>span:last-child{overflow-wrap:anywhere;min-width:0}.polish-tag-dot{width:4px;height:4px;flex:none;display:inline-block;border-radius:50%;background:currentColor;opacity:.7}.polish-stock-tag[data-tone=reserved]{background:#f2ede3;color:#8a744b}.polish-stock-tag[data-tone=prepared]{background:#e8efe9;color:#52745c}.polish-stock-tag[data-tone=dispatched]{background:#ede8f2;color:#78628c}.polish-stock-tag[data-tone=return]{background:#e8eef3;color:#58758a}.polish-stock-tag[data-tone=loaded],.polish-stock-tag[data-tone=neutral]{background:#efefee;color:#71716b}
body .polish-tags-more{font-size:12px!important;line-height:18px!important;height:24px!important;min-height:24px!important;padding:2px 6px!important;background:transparent!important;border:0!important;color:#888;border-radius:4px}.polish-tags-more::before{display:none!important}.polish-stock-tag:focus-visible,.polish-tags-more:focus-visible{outline:2px solid #888;outline-offset:2px}.polish-stock-tag:hover{text-decoration:underline}
body .u3183-location-columns{grid-template-columns:minmax(148px,.24fr) minmax(0,.76fr);gap:20px}
body .u3183-location-columns :is(.u3-location-directory,.u3-location-stock){border:0;border-radius:0;background:#fff}
body .u3183-location-columns :is(.u3183-directory-head,.u3-module-head){background:#fff;border:0;padding:8px 0;min-height:48px;height:auto}
body .u3183-location-columns .u3183-directory-search{padding:8px 0 12px}.u3183-location-columns .u3183-directory-search input{font-size:13px}
body .u3183-location-columns .u3-location-list{padding:0 4px 8px 0}
body .u3183-location-columns .u3-location-list>.warehouse-location-choice{display:flex;align-items:center;gap:10px;padding:0 10px;font-size:16px;font-weight:500;line-height:1.4;border-radius:5px}
body .u3183-location-columns .u3-location-list>.warehouse-location-choice.active{background:#f1f1f0;color:#333}
.warehouse-location-choice>svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;color:#888}
body .polish-project-toolbar{display:flex!important;flex-direction:column!important;gap:12px!important;align-items:stretch!important}
body .polish-project-toolbar .project-state-switch{display:flex;gap:24px;flex-wrap:wrap;width:100%;border-bottom:1px solid #e8e8e8}
body .polish-project-toolbar .project-state-switch>button{border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;color:#888;padding:8px 0!important;min-height:36px;height:auto;font-weight:400;display:inline-flex;gap:6px;align-items:center;box-shadow:none}
body .polish-project-toolbar .project-state-switch>button.active{color:#333;border-bottom-color:#555!important;font-weight:500}
.project-tab-count{font-size:11px;color:#999;font-weight:400;font-variant-numeric:tabular-nums}.polish-project-search-row{display:flex;gap:10px;align-items:center;min-width:0}.polish-project-search-row>#project-search{flex:0 1 300px;width:300px;max-width:100%;min-width:0;height:34px;margin:0}.polish-project-search-row>.refresh{flex:none}
@media(max-width:767px){body .polish-project-toolbar .project-state-switch{gap:0;justify-content:space-between}body .polish-project-toolbar .project-state-switch>button{flex:none;gap:4px;font-size:12px!important;padding:8px 2px!important}.project-tab-count{font-size:10px}.polish-project-search-row>#project-search{flex:1 1 240px;width:min(260px,100%)}.employee-workspace .employee-project-tasks{margin-left:18px}.employee-project-tasks .employee-task{grid-template-columns:minmax(0,1fr) auto;gap:8px}.polish-stock-tag{max-width:100%}.employee-workspace .employee-directory-list{max-height:280px}}
@media(max-width:700px){body .u3183-location-columns{grid-template-columns:minmax(0,1fr);gap:16px}}
/* iPad readable type is scoped to iPad/iPadOS detection; no zoom, transforms or viewport restrictions. */
@media all{
 body.warehouse-ipad-readable{--warehouse-control-height:44px}
 body.warehouse-ipad-readable #app-view main{font-size:16px;line-height:1.5}
 body.warehouse-ipad-readable .view :is(.page-head h1,#project-detail-title){font-size:26px!important;line-height:1.3}
 body.warehouse-ipad-readable .view :is(h2,h3){font-size:18px!important;line-height:1.4}
 body.warehouse-ipad-readable :is(.view,dialog) :is(table th,table td){font-size:16px!important;line-height:1.5}
 body.warehouse-ipad-readable :is(.view,dialog) :is(.warehouse-material-name,.u318-material-name,.todo-title,.employee-name,.employee-schedule-copy>.employee-text-link){font-size:17px!important;line-height:1.5}
 body.warehouse-ipad-readable :is(.view,dialog) :is(.u318-quantity,.u36-quantity,.u37-quantity,.r316-count,.r316-actual-quantity,.u312-metric strong,.u38-quantity){font-size:18px!important}
 body.warehouse-ipad-readable .u3183-location-columns .warehouse-location-choice{font-size:18px!important;min-height:48px;height:48px}
 body.warehouse-ipad-readable #app-view .view :is(button.primary-button,button.secondary-button,button.refresh,button.row-action):not(.polish-tags-more){font-size:16px!important;height:44px!important;min-height:44px!important;line-height:22px;padding:8px 12px}
 body.warehouse-ipad-readable dialog :is(button.primary-button,button.secondary-button,button[type=submit],.warehouse-choice-control>button){font-size:16px!important;min-height:44px;height:44px;line-height:22px}
 body.warehouse-ipad-readable :is(.view,dialog) :is(input:not([type=checkbox]):not([type=radio]),select,textarea,.warehouse-date-value,.todo-date-trigger){font-size:16px!important;line-height:22px;min-width:0}
 body.warehouse-ipad-readable :is(.view,dialog) :is(input:not([type=checkbox]):not([type=radio]),select,.warehouse-date-control,.todo-date-trigger){min-height:44px;height:44px}
 body.warehouse-ipad-readable :is(.view,dialog) :is(small,.cell-secondary,.warehouse-material-spec,.employee-date,.material-list-state){font-size:13px!important;line-height:1.5}
 body.warehouse-ipad-readable .polish-stock-tag{font-size:13px!important;line-height:1.45;min-height:24px}
 body.warehouse-ipad-readable .polish-project-toolbar .project-state-switch>button{font-size:16px!important;min-height:44px;height:auto;padding:8px 0!important}
 body.warehouse-ipad-readable .employee-workspace .employee-task-filters>button{height:auto!important;min-height:44px;padding:8px 0!important;font-size:16px!important}
 body.warehouse-ipad-readable :is(.todo-view-controls,.todo-calendar-navigation) button{font-size:16px;min-height:44px}
 body.warehouse-ipad-readable .v3-tabs>button{font-size:16px!important;min-height:44px}
 body.warehouse-ipad-readable :is(.u38-head,.r316-head,.u3-module-head){line-height:1.5}
 body.warehouse-ipad-readable .u3183-location-table td:last-child{font-size:18px!important}
 body.warehouse-ipad-readable .u318-stock-summary strong{font-size:18px!important}
 body.warehouse-ipad-readable .polish-project-toolbar .project-tab-count{font-size:13px!important}
}

@media all{
 body.warehouse-ipad-readable :is(.view,dialog) :is(.u38-qty,.u312-qty,.u314-remaining-quantity,.u314-demand-quantity,.r316-pending-quantity,.r316-quantity input,.u182-pending-quantity,.u38-shelf,.warehouse-location-name){font-size:18px!important;line-height:1.45}
 body.warehouse-ipad-readable .u311fix-material-table td[data-label=需求数量]{font-size:18px!important}
 body.warehouse-ipad-readable .calendar-date-number{font-size:16px}
 body.warehouse-ipad-readable :is(.calendar-entry,.todo-due,.todo-assignee,.todo-detail-time,.r316-location){font-size:14px!important}
}
/* Reserve real space for enlarged iPad controls; retain existing table and columns. */
body.warehouse-ipad-readable #u3-materials-layout .u311fix-material-table .u311fix-col-actions{width:112px}
body.warehouse-ipad-readable #u3-materials-layout .u311fix-material-table .u311fix-col-quantity{width:88px}
body.warehouse-ipad-readable #u3-materials-layout .u311fix-material-table .u311fix-col-name{width:32%}
/* Keep project name/date as an actual two-line group against legacy summary rules. */
body .employee-workspace details>summary>.employee-schedule-copy{display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0}
body .employee-workspace details>summary .employee-schedule-copy>.employee-date{display:block;flex:none;width:auto;max-width:100%;margin:0!important;text-align:left;white-space:normal}
body .employee-workspace details>summary{flex-wrap:nowrap}
@media(min-width:768px){
 /* Keep the established category/table split. Narrow iPad tables scroll locally rather than crush names. */
 body.warehouse-ipad-readable #u3-materials-layout .u31-material-panel{overflow-x:auto}
 body.warehouse-ipad-readable #u3-materials-layout .u311fix-material-table,
 body.warehouse-ipad-readable #u3-materials-layout .u31-panel-heading{min-width:620px}
}
@media(min-width:768px){
 body.warehouse-ipad-readable #u3-materials-layout .u311fix-material-table{min-width:620px!important}
 body.warehouse-ipad-readable #u3-materials-layout .u35-category-head{padding:10px 8px;gap:6px}
 body.warehouse-ipad-readable #u3-materials-layout .u35-category-head h3{white-space:nowrap}
 body.warehouse-ipad-readable #u3-materials-layout .u35-category-head button{padding-inline:8px!important}
}
@media(max-width:767px){body .employee-workspace .employee-directory-list{max-height:280px}}
body.warehouse-ipad-readable .u3183-location-table th:last-child{width:92px!important;white-space:nowrap}
body.warehouse-ipad-readable .view[data-panel=projects] .final-project-list td:nth-child(3){white-space:normal!important;overflow-wrap:anywhere}
body.warehouse-ipad-readable .view[data-panel=projects] .final-project-list td:nth-child(3)>*{white-space:normal!important;overflow-wrap:anywhere}
