/* Full PC composition. Mobile routes never load this layout adapter; all rules
   are also bounded to desktop widths. Semantic status colours remain intact. */
.mes-total-kpi{display:none}
@media screen and (min-width:768px){
 body.pc-workspace.mes-redesigned{--pc-background:#f2f5fa;--pc-surface:#ffffff;--pc-soft:#eaf1fb;--pc-border:#c5d1e0;--pc-ink:#172b45;--pc-muted:#4b5f78;--pc-accent:#1858ae;--mes-focus:#3e83d2;--mes-nav:#14243a;--mes-nav-border:#314762;background:var(--pc-background)!important;color:var(--pc-ink)!important;font-family:'Segoe UI','Malgun Gothic',sans-serif}
 html[data-ui-theme=dark] body.pc-workspace.mes-redesigned{--pc-background:#101a2b;--pc-surface:#1b2a40;--pc-soft:#253953;--pc-border:#455b76;--pc-ink:#eef4fc;--pc-muted:#becde0;--pc-accent:#9dcdff;--mes-focus:#75b5fc;--mes-nav:#0c1728;--mes-nav-border:#314762}
 .mes-redesigned .app-sidebar{width:224px;padding:0;background:var(--mes-nav)!important;border-right:1px solid var(--mes-nav-border);height:100vh;overflow:hidden;display:flex;flex-direction:column}
 .mes-redesigned .app-brand{flex:none;margin:0;padding:20px 17px 16px;font-size:21px;letter-spacing:.2px;color:#ffffff;border-bottom:1px solid var(--mes-nav-border)}
 .mes-redesigned .app-brand .mes-brand-accent{display:inline;color:#ffffff;font-size:19px;letter-spacing:0}
 .mes-redesigned .app-brand small{display:block;color:#b7c9e2;font-size:12px;letter-spacing:1px;margin-top:5px}
 .mes-redesigned .mes-menu-search{flex:none;padding:12px 12px 7px}
 .mes-redesigned .mes-menu-search input{width:100%;min-width:0;padding:9px 10px;border:1px solid #314762;border-radius:5px;background:#20334e;color:#e7f0fc;font-size:14px}
 .mes-redesigned .mes-menu-search input::placeholder{color:#b7c9e2}
 .mes-redesigned .mes-menu-empty{font-size:13px;color:#e7f0fc;margin:8px 0 0}
 .mes-redesigned #main-menu{flex:1;min-height:0;overflow-y:auto;padding:0 10px 14px;scrollbar-width:thin;scrollbar-color:#5c82b3 transparent}
 .mes-redesigned .menu-label{margin:12px 4px 4px;color:#b7c9e2;letter-spacing:.3px}
 .mes-redesigned .menu-section-toggle{font-size:13px;color:#b7c9e2;padding:4px 3px}
 .mes-redesigned .app-menu{margin-bottom:4px}
 .mes-redesigned .app-menu a{padding:8px 9px;font-size:14px;line-height:1.4;color:#e7f0fc;border-radius:5px;margin:1px 0;gap:9px}
 .mes-redesigned .app-menu a::before{display:none}
 .mes-redesigned .app-menu .menu-icon{width:18px;height:18px;flex-shrink:0;color:#9cc9ff}
 .mes-redesigned .app-menu a.active,.mes-redesigned .app-menu a[aria-current=page]{background:linear-gradient(110deg,#3e83d2,#2163b5)!important;color:#ffffff!important;box-shadow:none;font-weight:700}
 .mes-redesigned .app-menu a.active .menu-icon{color:#ffffff}
 .mes-redesigned .app-menu a:hover{background:#20334e;color:#e7f0fc}
 .mes-redesigned .mes-search-hidden{display:none!important}
 .mes-redesigned .sidebar-note{display:none!important}
 .mes-redesigned .mes-sidebar-footer{flex:none;border-top:1px solid var(--mes-nav-border);padding:10px 13px;background:var(--mes-nav)}
 .mes-redesigned .mes-sidebar-footer>.d-flex{margin:8px 0 0!important;font-size:13px}
 .mes-redesigned .sidebar-clock{display:flex;flex-wrap:wrap;gap:2px 9px;border:0;border-radius:0;background:none;margin:0;padding:0;font-size:12px;color:#b7c9e2}
 .mes-redesigned .sidebar-clock>span{flex-basis:100%}
 .mes-redesigned .sidebar-clock time,.mes-redesigned .sidebar-clock time[data-clock-time]{display:inline;font-size:14px;margin:0;color:#9cc9ff}
 .mes-redesigned .sidebar-clock time[data-clock-time24]{display:inline;font-size:12px;color:#b7c9e2}
 .mes-redesigned .app-workspace{margin-left:224px}
 .mes-redesigned .workspace-header{min-height:56px;padding:9px 20px;background:var(--pc-surface)!important;border-color:var(--pc-border);gap:10px}
 .mes-redesigned .workspace-breadcrumb{margin-right:auto;color:var(--pc-muted)}
 .mes-redesigned .workspace-breadcrumb strong{color:var(--pc-ink)!important}
 .mes-redesigned .workspace-profile{font-size:13px}
 .mes-redesigned .profile-avatar{background:var(--pc-soft);color:var(--pc-accent)}
 .mes-redesigned .content-zoom-controls{font-size:12px}
 .mes-redesigned .content-zoom-controls button{background:var(--pc-surface);color:var(--pc-ink);border-color:var(--pc-border)}
 .mes-redesigned .mes-header-settings{position:relative;flex:none;margin:0!important;z-index:110;min-width:0;color:var(--pc-ink)}
 .mes-redesigned .mes-header-settings>summary{border:1px solid var(--pc-border);padding:6px 10px;border-radius:5px;font-size:13px;background:var(--pc-surface);color:var(--pc-ink)}
 .mes-redesigned .mes-header-settings form{position:absolute;right:0;top:calc(100% + 5px);width:280px;padding:15px;background:var(--pc-surface)!important;color:var(--pc-ink);border:1px solid var(--pc-border);border-radius:8px;box-shadow:0 12px 36px #0003}
 .mes-redesigned .mes-header-settings label,.mes-redesigned .mes-header-settings small{color:var(--pc-muted)!important}
 .mes-redesigned .mes-header-settings select{color:var(--pc-ink);background:var(--pc-background);border-color:var(--pc-border)}
 .mes-redesigned .mes-header-settings .btn-outline-light{color:var(--pc-ink);border-color:var(--pc-border)}
 .mes-redesigned .workspace-bookmarks{padding:9px 18px 0;background:var(--pc-background);border-color:var(--pc-border)}
 .mes-redesigned .workspace-bookmark{background:var(--pc-soft);border-color:var(--pc-border);border-bottom:0;border-radius:7px 7px 0 0}
 .mes-redesigned .workspace-bookmark.current{background:var(--pc-surface);border-top-color:var(--mes-focus)}
 .mes-redesigned .workspace-bookmark a{font-size:14px;padding:9px 12px}
 .mes-redesigned .workspace-content{padding:18px 22px 30px;max-width:none}
 .mes-redesigned .mes-page-eyebrow{font-size:12px;letter-spacing:1px;color:var(--pc-accent);font-weight:700;margin:0 0 5px}
 .mes-redesigned .workspace-content .mes-page-title{font-size:27px;line-height:1.3;margin:0 0 4px;color:var(--pc-ink);letter-spacing:-.5px}
 .mes-redesigned .status-page-header,.mes-redesigned .dashboard-welcome{display:block!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0;box-shadow:none;min-height:0;margin-bottom:12px!important}
 .mes-redesigned .status-page-title{width:100%;padding:0 0 8px!important;border:0!important;background:transparent!important}
 .mes-redesigned .status-page-title>div{margin-bottom:0!important}
 .mes-redesigned .status-page-query{width:100%;margin-top:10px}
 .mes-redesigned .mes-filter-bar{background:var(--pc-surface)!important;border:1px solid var(--pc-border)!important;border-radius:7px;padding:11px 13px!important;margin:10px 0 14px!important;box-shadow:none}
 .mes-redesigned .mes-filter-bar form{margin-bottom:0}
 .mes-redesigned .mes-filter-bar>summary{font-size:13px;color:var(--pc-muted);margin-bottom:8px}
 .mes-redesigned .production-header-title{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
 .mes-redesigned .production-header-title .mes-page-eyebrow{flex-basis:100%}
 .mes-redesigned .production-header-title h1{margin-right:auto!important}
 .mes-redesigned .production-header-search.overview-filter-panel{max-width:none;width:100%;padding:11px 13px!important;flex:none}
 .mes-redesigned .production-header-search .production-filter-fields{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
 .mes-redesigned .production-header-search .production-filter-field{flex:1;min-width:160px}
 .mes-redesigned .production-header-search .production-filter-field:has([type=date]){flex:1.6;min-width:280px}
 .mes-redesigned .mes-section-tabs{display:flex;gap:3px;align-items:end;border-bottom:1px solid var(--pc-border);margin:9px 0 12px;overflow-x:auto;scrollbar-width:thin}
 .mes-redesigned .mes-section-tabs button{flex:none;background:transparent;color:var(--pc-muted);border:1px solid transparent;border-bottom:0;border-radius:6px 6px 0 0;padding:10px 19px;font-size:15px;font-weight:600;white-space:nowrap}
 .mes-redesigned .mes-section-tabs button.active{background:var(--pc-surface);color:var(--pc-accent);border-color:var(--pc-border);box-shadow:inset 0 3px var(--mes-focus)}
 .mes-redesigned .mes-panel-inactive{display:none!important}
 .mes-redesigned .production-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;border:0!important;background:transparent!important;padding:0;margin:0 0 13px}
 .mes-redesigned .production-kpi{display:flex;justify-content:space-between;flex-direction:row-reverse;gap:9px;padding:12px 15px;background:var(--pc-surface);border:1px solid var(--pc-border);border-radius:7px;min-height:84px}
 .mes-redesigned .mes-total-kpi{display:flex;background:#183453!important;border-color:#5c82b3;color:#ffffff}
 .mes-redesigned .production-kpi .kpi-icon{width:36px;height:36px;border-radius:50%;font-size:23px;background:var(--pc-soft);color:var(--pc-accent)}
 .mes-redesigned .production-kpi .kpi-icon svg{width:22px;height:22px}
 .mes-redesigned .production-kpi .kpi-label{font-size:15px;font-weight:500;color:var(--pc-muted)!important}
 .mes-redesigned .production-kpi strong{font-size:30px;line-height:1.2;margin-top:4px;color:var(--pc-ink)!important}
 .mes-redesigned .production-kpi strong small{font-size:15px}
 .mes-redesigned .mes-total-kpi strong,.mes-redesigned .mes-total-kpi .kpi-label{color:#ffffff!important}
 .mes-redesigned .mes-total-kpi .kpi-icon{background:#29496e;color:#9cc9ff}
 .mes-redesigned .production-kpi a{text-decoration:none}
 .mes-redesigned .production-kpi a:hover{text-decoration:underline}
 .mes-redesigned .production-kpi>div{flex:1;text-align:left}
 .mes-redesigned .production-header-search form{padding:0!important;background:transparent!important;border:0!important;margin:7px 0 0!important}
 .mes-redesigned .production-header-search:not([open])>summary{margin-bottom:0}
 .mes-redesigned .lot-dashboard .production-priority{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(270px,1fr);gap:12px;align-items:start;margin-bottom:12px}
 .mes-redesigned .lot-dashboard .production-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .mes-redesigned .production-priority>.card{min-width:0;margin:0!important}
 .mes-redesigned .lot-board-scroll{overflow-x:auto}
 .mes-redesigned .lot-board-table{min-width:730px}
 .mes-redesigned .lot-board-table :is(th,td){font-size:14px}
 .mes-redesigned .lot-board-table th:first-child strong{font-size:16px}
 .mes-redesigned .lot-board-note{font-size:12px;line-height:1.5;flex-basis:100%;text-align:left;margin-top:4px;color:var(--pc-muted)}
 .mes-redesigned .production-detail-toolbar{background:var(--pc-surface)!important;border:1px solid var(--pc-border);border-radius:7px;padding:12px;margin-top:12px}
 .mes-redesigned .overview-detail-grid,.mes-redesigned .planning-popup-menu{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px}
 .mes-redesigned .overview-popup-trigger{border:1px solid var(--pc-border)!important;border-radius:5px;background:var(--pc-soft)!important;color:var(--pc-ink)!important;padding:10px 12px;min-height:44px;font-size:14px;text-align:left}
 .mes-redesigned .overview-popup-trigger small{color:var(--pc-accent)!important}
 .mes-redesigned .workspace-content .card,.mes-redesigned .mes-data-panel{padding:13px!important;border:1px solid var(--pc-border)!important;border-radius:7px!important;background:var(--pc-surface)!important;box-shadow:0 2px 7px #00000005}
 .mes-redesigned .workspace-content :is(.card h2,.overview-panel-heading h2,.mes-panel-heading h2){font-size:17px;line-height:1.4;font-weight:700;color:var(--pc-ink)}
 .mes-redesigned .overview-panel-heading,.mes-redesigned .mes-panel-heading{border-bottom:1px solid var(--pc-border);padding-bottom:9px;margin-bottom:10px;display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap}
 .mes-redesigned .mes-panel-heading span{font-size:13px;color:var(--pc-muted)}
 .mes-redesigned .mes-panel-heading h2{margin:0}
 .mes-redesigned .overview-attention{background:var(--pc-surface)!important;border:1px solid var(--pc-border);border-top:3px solid #ba8730;border-radius:7px;color:var(--pc-ink);padding:12px}
 .mes-redesigned .overview-attention :is(h2,p,strong){color:var(--pc-ink)!important}
 .mes-redesigned .shipment-overview-four{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:start}
 .mes-redesigned .shipment-overview-four>.card{height:auto;min-height:0}
 .mes-redesigned .shipment-overview-charts{grid-template-columns:minmax(280px,1fr) minmax(420px,1.6fr);gap:12px}
 .mes-redesigned .shipment-model-count{background:transparent!important;color:var(--pc-ink)!important;border-color:var(--pc-border)!important}
 .mes-redesigned .shipment-model-count strong{color:var(--pc-accent)!important}
 .mes-redesigned .shipment-donut-center{background:var(--pc-surface)!important;color:var(--pc-ink)!important}
 .mes-redesigned .shipment-donut-card{background:transparent!important;border-color:var(--pc-border)!important}
 .mes-redesigned .mes-equipment-list{margin:0 0 14px}
 .mes-redesigned .mes-equipment-list-host #shipment-equipment-panel{margin:0;padding:0;border:0;background:transparent}
 .mes-redesigned .mes-equipment-list-host #shipment-equipment-panel>summary{display:none}
 .mes-redesigned .mes-equipment-list-host .overview-popup-content{display:block!important}
 .mes-redesigned .mes-equipment-list-host .table-responsive{max-height:65vh;overflow:auto}
 .mes-redesigned .mes-equipment-list-host thead{position:sticky;top:0;z-index:2}
 .mes-redesigned .shipment-action-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin:9px 0 12px}
 .mes-redesigned .shipment-action-toolbar form{margin:0!important;padding:0!important}
 .mes-redesigned .shipment-action-toolbar form label{display:flex;align-items:center;gap:8px;font-size:13px}
 .mes-redesigned .shipment-action-toolbar input{max-width:160px}
 .mes-redesigned .shipment-action-toolbar #shipment-list-launcher{margin-left:auto}
 .mes-redesigned .status-page-title .mes-page-eyebrow{display:block;flex-basis:100%}
 .mes-redesigned .status-page-title>div>div{display:block}
 .mes-redesigned .status-summary-pair{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}
 .mes-redesigned .dashboard-summary-grid{gap:10px}
 .mes-redesigned .dashboard-summary{min-height:80px;padding:12px!important}
 .mes-redesigned .dashboard-summary>span{font-size:15px;color:var(--pc-muted)}
 .mes-redesigned .dashboard-summary>strong{font-size:28px;color:var(--pc-ink)}
 .mes-redesigned .mes-record-form{background:var(--pc-surface);border:1px solid var(--pc-border);border-radius:8px;padding:15px;margin:12px 0}
 .mes-redesigned .mes-record-form>.card{background:var(--pc-background)!important;box-shadow:none;margin-bottom:12px!important}
 .mes-redesigned .mes-form-index{display:flex;gap:6px;flex-wrap:wrap;padding:0 0 12px;margin-bottom:14px;border-bottom:1px solid var(--pc-border)}
 .mes-redesigned .mes-form-index button{padding:7px 11px;font-size:13px;color:var(--pc-accent);background:var(--pc-soft);border:1px solid var(--pc-border);border-radius:5px}
 .mes-redesigned .mes-record-form> :is(.row,.d-flex){margin-bottom:12px}
 .mes-redesigned :is(.workspace-content,dialog,.modal-content) .btn-primary{background:#2163b5!important;border-color:#2163b5!important;color:#fff!important;box-shadow:none}
 .mes-redesigned :is(.workspace-content,dialog,.modal-content) .btn-primary:hover{background:#174b8c!important}
 .mes-redesigned :is(.workspace-content,dialog,.modal-content) .btn-outline-primary{background:transparent!important;border-color:var(--pc-border)!important;color:var(--pc-accent)!important}
 .mes-redesigned :is(.workspace-content,dialog,.modal-content) a:not(.btn):not([class*=state-]):not([stock-serial-for]){color:var(--pc-accent)}
 .mes-redesigned :is(.workspace-content,dialog,.modal-content) :is(.form-control,.form-select){color:var(--pc-ink)!important;background:var(--pc-surface)!important;border-color:var(--pc-border)!important;font-size:15px;min-height:36px;border-radius:5px}
 .mes-redesigned :is(.workspace-content,dialog,.modal-content) :is(.table,table){color:var(--pc-ink);--bs-table-bg:transparent;--bs-table-color:var(--pc-ink);--bs-table-border-color:var(--pc-border)}
 .mes-redesigned :is(.workspace-content,dialog,.modal-content) table thead th{color:var(--pc-muted)!important;background:var(--pc-soft)!important;border-color:var(--pc-border)!important;font-size:14px;font-weight:600}
 .mes-redesigned :is(.workspace-content,dialog,.modal-content) .table-bordered>:not(caption)>*>*{border-width:0 0 1px}
 .mes-redesigned :is(dialog,.modal-content){background:var(--pc-surface)!important;color:var(--pc-ink)!important;border:1px solid var(--pc-border)!important;border-radius:9px!important}
 .mes-redesigned :is(.overview-dialog-header,.kpi-dialog-header,.modal-header){background:var(--pc-soft)!important;color:var(--pc-ink)!important;border-bottom:1px solid var(--pc-border);padding:12px 16px}
 .mes-redesigned :is(.overview-dialog-body,.modal-body){background:var(--pc-surface)!important}
 .mes-redesigned :is(button,input,select,summary,a):focus-visible{outline:3px solid var(--mes-focus);outline-offset:2px}
 html[data-ui-theme=dark] .mes-redesigned :is(.card,.metric,.status-page-query,.production-detail-toolbar,.dashboard-summary,.kpi-calendar-day,.kpi-dialog-header,.overview-dialog-header){background:var(--pc-surface)!important;color:var(--pc-ink)!important;border-color:var(--pc-border)!important}
 html[data-ui-theme=dark] .mes-redesigned :is(.table tbody td,.table tbody th){background-color:transparent!important;color:var(--pc-ink);border-color:var(--pc-border)!important}
 html[data-ui-theme=dark] .mes-redesigned :is(.text-muted,.overview-muted,.small){color:var(--pc-muted)!important}
 html[data-ui-theme=dark] .mes-redesigned :is(.workspace-header,.workspace-breadcrumb strong,.workspace-profile){color:var(--pc-ink)!important}
 html[data-ui-theme=dark] body.pc-workspace.mes-redesigned :is(.workspace-header,.production-header-search,.overview-attention,.mes-menu-search input,.display-settings form,.overview-filter-panel,.status-page-query){background:var(--pc-surface)!important;color:var(--pc-ink)!important;border-color:var(--pc-border)!important}
 html[data-ui-theme=dark] body.pc-workspace.mes-redesigned .production-kpis{background:transparent!important}
 html[data-ui-theme=dark] body.pc-workspace.mes-redesigned .production-kpi :is(strong,.kpi-label){color:var(--pc-ink)!important}
 html[data-ui-theme=dark] body.pc-workspace.mes-redesigned :is(.overview-count-pill,.kpi-badge,.profile-avatar){background:var(--pc-soft)!important;color:var(--pc-accent)!important}
 html[data-ui-theme=dark] body.pc-workspace.mes-redesigned :is(.overview-attention p,.overview-attention strong,.production-header-search summary){color:var(--pc-muted)!important}
 html[data-ui-theme=dark] body.pc-workspace.mes-redesigned :is(.status-page-header,.status-page-title){background:transparent!important;border:0!important}
 html[data-ui-theme=dark] body.pc-workspace.mes-redesigned :is(.content-zoom-controls,.content-zoom-controls button,.overview-popup-trigger){background:var(--pc-soft)!important;color:var(--pc-ink)!important;border-color:var(--pc-border)!important}
 .mes-redesigned .lot-total-progress>span{background:linear-gradient(90deg,#2163b5,#3e83d2)}
}
@media screen and (min-width:768px) and (max-width:1399px){
 .mes-redesigned .shipment-overview-four{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mes-redesigned .shipment-overview-charts{grid-template-columns:1fr}
 .mes-redesigned .lot-dashboard .production-priority{grid-template-columns:minmax(0,1.7fr) minmax(245px,1fr)}
 .mes-redesigned .production-kpi{padding:10px;gap:6px}.mes-redesigned .production-kpi .kpi-icon{display:none}
}
@media screen and (min-width:768px) and (max-width:1050px){
 .mes-redesigned .app-sidebar{width:204px}.mes-redesigned .app-workspace{margin-left:204px}
 .mes-redesigned .workspace-content{padding:15px}
 .mes-redesigned .lot-dashboard .production-priority,.mes-redesigned .lot-dashboard .production-summary-grid{grid-template-columns:1fr}
 .mes-redesigned .production-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media print{.mes-section-tabs,.mes-menu-search,.mes-sidebar-footer,.mes-form-index{display:none!important}.mes-panel-inactive{display:block!important}}
@media screen and (min-width:768px){
 body.pc-workspace.mes-redesigned .status-page-title>div>div{display:block!important;flex:1 1 auto!important;width:auto!important;min-width:240px}
 body.pc-workspace.mes-redesigned .status-page-title h1{display:inline-block!important;white-space:nowrap;width:auto!important;margin-right:12px}
 body.pc-workspace.mes-redesigned .status-page-title .mes-page-eyebrow{display:block!important;width:100%;margin-bottom:5px}
 body.pc-workspace.mes-redesigned .context-help-button{white-space:nowrap;color:var(--pc-accent)!important;background:var(--pc-soft)!important;border-color:var(--pc-border)!important}
 body.pc-workspace.mes-redesigned .shipment-search-form{display:block!important;min-width:0}
 body.pc-workspace.mes-redesigned .shipment-search-fields{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px;min-width:0}
 body.pc-workspace.mes-redesigned .shipment-search-field{min-width:0!important;width:auto!important}
 body.pc-workspace.mes-redesigned .shipment-search-dates{grid-column:span 2}
 body.pc-workspace.mes-redesigned .shipment-search-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:10px;white-space:nowrap}
 body.pc-workspace.mes-redesigned .shipment-action-toolbar label{white-space:nowrap}
 body.pc-workspace.mes-redesigned .shipment-action-toolbar input{width:120px}
}
@media screen and (min-width:768px){
 html[data-ui-theme=dark] body.pc-workspace.mes-redesigned :is(.production-summary-grid,.lot-board-table,.shipment-quantity-summary) :is(tbody td,tbody th){background:var(--pc-surface)!important;color:var(--pc-ink)!important;border-color:var(--pc-border)!important}
 body.pc-workspace.mes-redesigned .shipment-quantity-summary h2,body.pc-workspace.mes-redesigned .overview-popup-trigger small{background:var(--pc-soft)!important;color:var(--pc-accent)!important;border-color:var(--pc-border)!important}
 body.pc-workspace.mes-redesigned .workspace-bookmark a{color:var(--pc-accent)!important}
}
/* Compact production workspace: retain original quantity links and panels. */
@media screen and (min-width:768px){
 .mes-production-page .workspace-content{padding-top:10px}
 .mes-production-page .production-header{margin-bottom:4px!important;padding:0!important;min-height:0!important}
 .mes-production-page .production-header-title{gap:4px 9px}
 .mes-production-page .production-header-title .mes-page-eyebrow{margin:0;font-size:11px}
 .mes-production-page .workspace-content .mes-page-title{font-size:24px;margin-bottom:0}
 .mes-production-page .mes-section-tabs{margin:5px 0 6px}
 .mes-production-page .mes-section-tabs button{padding:7px 16px}
 .mes-production-page .production-header-search.overview-filter-panel{padding:6px 10px!important;margin:0 0 8px!important}
 .mes-production-page .production-header-search .production-filter-fields{gap:7px}
 .mes-production-page .mes-production-workbench{display:flex;align-items:flex-start;gap:10px;margin-bottom:10px}
 .mes-production-page .mes-production-workbench>.production-kpis{flex:0 0 154px;display:grid;grid-template-columns:minmax(0,1fr);gap:7px;margin:0}
 .mes-production-page .mes-production-workbench .production-kpi{min-height:65px;padding:9px 11px;gap:4px;position:relative}
 .mes-production-page .mes-production-workbench .production-kpi .kpi-icon{display:none}
 .mes-production-page .mes-production-workbench .production-kpi strong{font-size:26px}
 .mes-production-page .lot-dashboard .mes-production-workbench>.production-priority{flex:1;min-width:0;grid-template-columns:minmax(0,2fr) minmax(220px,1fr);gap:10px;margin:0}
 .mes-production-page .mes-production-workbench .card{padding:10px!important}
 .mes-production-page .mes-production-workbench:has(>.production-priority.mes-panel-inactive){float:left;margin-right:10px}
 .mes-production-page .production-summary-grid{min-width:0}
}
@media screen and (min-width:768px) and (max-width:1399px){
 .mes-production-page .lot-dashboard .mes-production-workbench>.production-priority{grid-template-columns:minmax(0,1fr)}
 .mes-production-page .mes-production-workbench>.production-kpis{flex-basis:140px}
}
/* Keep chart labels readable in dark mode without changing model colours. */
@media screen and (min-width:768px){
 html[data-ui-theme=dark] body.pc-workspace.mes-redesigned .shipment-month-dialog{background:var(--pc-surface)!important;color:var(--pc-ink)!important}
 html[data-ui-theme=dark] body.pc-workspace.mes-redesigned .shipment-month-scroll svg text[fill='#173b60']{fill:#9dcdff}
 html[data-ui-theme=dark] body.pc-workspace.mes-redesigned .shipment-month-scroll svg text[fill='#52657b']{fill:#becde0}
 html[data-ui-theme=dark] body.pc-workspace.mes-redesigned .shipment-month-scroll svg line{stroke:#455b76}
 html[data-ui-theme=dark] body.pc-workspace.mes-redesigned .shipment-month-scroll :is(td,th,caption){color:#eef4fc!important;border-color:#455b76!important}
 html[data-ui-theme=dark] body.pc-workspace.mes-redesigned .shipment-month-scroll :is(thead,tfoot,tbody th){background:var(--pc-soft)!important}
}
/* Reveal only after desktop node placement; no effect on mobile or printing. */
@media screen and (min-width:768px){
 html.mes-layout-pending body.pc-workspace{visibility:hidden}
 html.mes-layout-pending{background:#f2f5fa}
 html[data-ui-theme=dark].mes-layout-pending{background:#101a2b}
 html[data-ui-theme=dark] body.pc-workspace :is(.btn-outline-primary,.btn-outline-secondary){color:#a7d2ff!important;border-color:#6f8cad!important}
 html[data-ui-theme=dark] body.pc-workspace .btn-outline-danger{color:#ffadb5!important}
 html[data-ui-theme=dark] body.pc-workspace .btn-outline-success{color:#8ce2bb!important}
 html[data-ui-theme=dark] body.pc-workspace .btn-primary{background:#75b5fc!important;color:#102b49!important;border-color:#75b5fc!important}
 html[data-ui-theme=dark] body.pc-workspace .btn-primary:hover{background:#a7d2ff!important}
 html[data-ui-theme=dark] body.pc-workspace :is(.test-batch-scroll,.test-batch-table td,.sales-model-summary caption){background:#1b2a40!important;color:#eef4fc!important}
 html[data-ui-theme=dark] body.pc-workspace .staffing-shortage{color:#9c2134!important}
}
@media screen and (min-width:768px){
 html[data-ui-theme=dark] body.pc-workspace.mes-redesigned .btn{transition:none}
 html[data-ui-theme=dark] body.pc-workspace.mes-redesigned .btn.btn-primary{background:#75b5fc!important;color:#102b49!important;border-color:#75b5fc!important}
 html[data-ui-theme=dark] body.pc-workspace.mes-redesigned .btn.btn-outline-primary,html[data-ui-theme=dark] body.pc-workspace.mes-redesigned .btn.btn-outline-secondary{color:#a7d2ff!important;border-color:#6f8cad!important}
 html[data-ui-theme=dark] body.pc-workspace.mes-redesigned .btn.btn-outline-danger{color:#ffadb5!important}
 html[data-ui-theme=dark] body.pc-workspace.mes-redesigned .btn.staffing-shortage{background:#542e3b!important;color:#ffd0d6!important;border-radius:3px}
}
@media screen and (min-width:768px){
 body.pc-workspace .equipment-scope-nav{display:flex!important;visibility:visible!important;padding:8px;border:1px solid var(--pc-border);border-radius:6px;background:var(--pc-surface)}
 body.pc-workspace .status-table-scroll:has(.equipment-management-table){padding:0!important;isolation:isolate}
 body.pc-workspace .equipment-management-table{border-collapse:separate;border-spacing:0;margin-top:0!important}
 body.pc-workspace .equipment-management-table thead{top:0!important;z-index:20;background:var(--pc-soft)!important}
 body.pc-workspace .equipment-management-table thead th{position:relative;top:auto;background:var(--pc-soft)!important}
}
/* Consistent desktop alignment; retain the original controls and quantity links. */
@media screen and (min-width:768px){
 body.mes-production-page .production-header-search .production-header-filters{margin:5px 0 0!important;padding:0!important}
 body.mes-production-page .production-filter-fields{grid-template-columns:minmax(110px,1fr) minmax(130px,1fr) minmax(290px,1.5fr) auto!important;align-items:end;gap:8px!important}
 body.mes-production-page .production-filter-field>label{margin-bottom:3px!important}
 body.mes-production-page .production-filter-field:has(.date-range-fields)>label{display:none}
 body.mes-production-page .date-range-fields{margin:0;align-items:end;gap:6px}
 body.mes-production-page .date-range-fields label{margin:0!important}
 body.mes-production-page .production-filter-fields :is(input,select){min-height:34px!important;height:34px!important;padding:4px 9px!important}
 body.mes-production-page .production-filter-actions .btn{min-height:34px;padding:5px 10px}
 body.mes-production-page .mes-production-workbench>.production-kpis{padding:0!important;border:0!important;background:transparent!important;gap:8px!important}
 body.mes-production-page .mes-production-workbench .production-kpi{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;height:74px!important;min-height:74px!important;padding:8px!important;border:1px solid var(--pc-border)!important}
 body.mes-production-page .production-kpi>div{width:100%;text-align:center}
 body.mes-production-page .production-kpi strong{display:block;line-height:1.2;margin-top:4px}
 body.mes-production-page .production-kpi strong small{font-size:14px;margin-left:4px}
 body.mes-production-page .production-summary-grid :is(.overview-model-panel,.sales-model-summary) table{width:100%!important;min-width:0!important;table-layout:fixed!important}
 body.mes-production-page .production-summary-grid :is(.overview-model-panel,.sales-model-summary) :is(th,td){text-align:center!important;vertical-align:middle!important;height:40px!important;padding:6px 8px!important;line-height:1.3!important;font-size:14px!important;box-sizing:border-box}
 body.mes-production-page .overview-model-panel th:first-child{width:32%!important}
 body.mes-production-page .overview-model-panel th:not(:first-child){width:22.666%!important}
 body.mes-production-page .sales-model-summary :is(th,td){width:20%!important}
 body.mes-production-page .production-summary-grid .status-table-scroll{padding:0!important}
 body.mes-production-page .production-summary-grid{align-items:start!important;gap:12px!important}
 body.mes-production-page .production-summary-grid .card{padding:12px!important}
}
@media screen and (min-width:768px) and (max-width:1100px){
 body.mes-production-page .production-filter-fields{grid-template-columns:1fr 1fr!important}
 body.mes-production-page .production-filter-field:has(.date-range-fields){grid-column:auto!important}
 body.mes-production-page .production-filter-actions{align-self:end}
}
/* PC information design: blue palette, fixed content tabs, original business controls. */
.mes-final-stages{display:none}
@media screen and (min-width:768px){
 body.pc-workspace .workspace-bookmarks{display:none!important}
 body.pc-workspace.mes-redesigned .mes-section-tabs{display:flex;gap:5px;border-bottom:2px solid #1858ae;padding:0 0 0 2px;margin:8px 0 12px;overflow:auto}
 body.pc-workspace.mes-redesigned .mes-section-tabs button{flex:none;background:#eaf1fb;color:#172b45;border:1px solid #c5d1e0;border-bottom:0;border-radius:7px 7px 0 0;padding:10px 17px;font-size:15px;font-weight:700;box-shadow:inset 0 3px #3e83d2;min-height:43px}
 body.pc-workspace.mes-redesigned .mes-section-tabs button:nth-child(even){background:#eaf1fb}
 body.pc-workspace.mes-redesigned .mes-section-tabs button.active{background:#2163b5;color:#fff;border-color:#2163b5;box-shadow:inset 0 3px #a7d2ff}
 body.pc-workspace.mes-redesigned .mes-section-tabs button:focus-visible{outline:3px solid var(--pc-ink);outline-offset:-4px}
 html[data-ui-theme=dark] body.pc-workspace.mes-redesigned .mes-section-tabs button{background:#253953;color:#e7f0fc;border-color:#455b76}
 html[data-ui-theme=dark] body.pc-workspace.mes-redesigned .mes-section-tabs button.active{background:#75b5fc;color:#102b49;border-color:#75b5fc}
 body.mes-production-page .mes-production-workbench{display:grid!important;grid-template-columns:164px minmax(0,1fr)!important;align-items:start;float:none!important;margin-right:0!important}
 body.mes-production-page .mes-production-workbench>.production-kpis{display:flex!important;flex-direction:column!important;gap:7px!important;width:100%;padding:0!important}
 body.mes-production-page .mes-production-workbench .production-kpi{height:79px!important;min-height:79px!important;justify-content:center;text-align:center;border-radius:6px!important}
 body.mes-production-page .mes-production-workbench .production-kpi:first-child{height:104px!important;background:#183453!important;color:white!important}
 body.mes-production-page .mes-production-workbench .production-kpi:first-child :is(strong,.kpi-label,small){color:white!important}
 body.mes-production-page .production-kpi strong{font-size:30px!important;line-height:1.2}
 body.mes-production-page .production-kpi:first-child strong{font-size:38px!important}
 body.mes-production-page .lot-dashboard .mes-production-workbench>.production-priority{display:grid;grid-template-columns:minmax(0,1fr) 290px!important;gap:12px!important}
 body.mes-production-page .lot-progress-board .lot-board-scroll{overflow:visible;max-height:none;padding:0!important;border:0!important}
 body.mes-production-page .lot-board-table{display:block!important;width:100%!important;min-width:0!important;border:0!important}
 body.mes-production-page .lot-board-table>thead{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body.mes-production-page .lot-board-table>tbody{display:grid!important;gap:12px}
 body.mes-production-page .lot-board-table>tbody>tr:not(:has([colspan])){display:grid!important;grid-template-columns:1.4fr repeat(3,minmax(65px,1fr));gap:8px;padding:12px;border:1px solid var(--pc-border);border-radius:6px;background:var(--pc-surface)}
 body.mes-production-page .lot-board-table>tbody>tr> :is(th,td){display:block!important;width:auto!important;min-width:0!important;height:auto!important;border:0!important;padding:5px!important;white-space:normal!important;text-align:center;background:transparent!important;font-size:14px!important}
 body.mes-production-page .lot-board-table>tbody>tr>th{grid-column:1/4;text-align:left;font-size:21px!important}
 body.mes-production-page .lot-board-table>tbody>tr>td:nth-child(2){grid-column:4;grid-row:1}
 body.mes-production-page .lot-board-table>tbody>tr>td:nth-child(3){grid-column:1/-1;grid-row:2;position:relative;padding-left:115px!important;min-height:106px!important;text-align:left}
 body.mes-production-page .lot-total-progress{position:absolute;left:5px;top:4px;width:96px!important;height:96px!important;border-radius:50%;background:conic-gradient(#2163b5 var(--progress),var(--pc-border) 0)!important;display:grid;place-items:center;overflow:visible}
 body.mes-production-page .lot-total-progress>span{display:none}
 body.mes-production-page .lot-total-progress:before{content:'';position:absolute;inset:10px;border-radius:50%;background:var(--pc-surface)}
 body.mes-production-page .lot-total-progress b{position:relative;font-size:21px;color:var(--pc-ink);background:transparent!important}
 body.mes-production-page .mes-final-stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:7px}
 body.mes-production-page .mes-final-stage{display:grid;gap:3px;background:var(--pc-soft);border:1px solid var(--pc-border);border-radius:5px;padding:7px;text-decoration:none!important;font-size:13px}
 body.mes-production-page .mes-final-stage strong{font-size:20px}.mes-final-stage small{font-size:12px}
 body.mes-production-page .mes-final-stage.is-pending{border-color:#c18c2b;background:#fbf1da}
 html[data-ui-theme=dark] body.mes-production-page .mes-final-stage.is-pending{background:#44351c;color:#ffe2a2!important}
 .mes-stage-track{height:4px;background:var(--pc-border);display:block}.mes-stage-track i{height:100%;display:block;background:#2163b5}
 body.mes-production-page .lot-board-table td.lot-baseline-date:before{content:'계획 완료일';display:block;font-size:12px;color:var(--pc-muted)}
 body.mes-production-page .lot-board-table td:nth-child(5):before{content:'PLC 잔여';display:block;font-size:12px;color:var(--pc-muted)}
 body.mes-production-page .lot-board-table td:nth-child(6):before{content:'TEST 잔여';display:block;font-size:12px;color:var(--pc-muted)}
 body.mes-production-page .lot-board-table td:nth-child(7):before{content:'출하검사 잔여';display:block;font-size:12px;color:var(--pc-muted)}
 body.mes-production-page .lot-board-table td:last-child{grid-column:1/-1;text-align:right}
 body.mes-production-page .overview-attention{padding:13px!important;border-top:3px solid #bd8330!important}
 body.mes-production-page .attention-item{display:flex;flex-direction:column;align-items:stretch;gap:9px;background:var(--pc-soft);padding:10px}
 body.mes-production-page .attention-item>b{font-size:25px}
 body.mes-production-page .production-summary-grid{display:grid;grid-template-columns:1.12fr 1fr!important;gap:12px!important}
 .mes-model-bars{margin:8px 0}.mes-model-legend{font-size:12px;color:var(--pc-muted);padding-bottom:7px}
 .mes-model-bar-row{display:grid;grid-template-columns:110px minmax(0,1fr) 38px;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--pc-border)}
 .mes-model-bar-row strong{font-size:14px}.mes-model-bar-row>b{text-align:right;font-size:17px}
 .mes-model-track{display:flex;min-width:0;height:23px;background:var(--pc-soft);border-radius:3px;overflow:hidden}
 .mes-model-segment{border:0;background:#174b8c;color:#fff;padding:0;min-width:0;font-size:12px;cursor:pointer}
 .mes-model-segment.segment-0{background:#687581}.mes-model-segment.segment-1{background:#356b9f}.mes-model-segment.segment-2{background:#2163b5}
 .mes-model-segment:focus-visible{outline:3px solid var(--pc-ink);outline-offset:-3px}
 .mes-exact-quantities>summary{font-size:14px;color:var(--pc-accent);padding:9px 0;cursor:pointer}
 .mes-production-schedule,.mes-production-records{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mes-production-schedule>h2,.mes-production-records>h2{grid-column:1/-1}
 .mes-production-schedule .overview-popup-trigger,.mes-production-records .overview-popup-trigger{padding:16px!important;min-height:80px}
 body.mes-equipment-page .shipment-donut-card{display:grid!important;grid-template-columns:120px minmax(0,1fr)!important;align-items:center;gap:12px;padding:10px!important}
 body.mes-equipment-page .shipment-donut{width:116px!important;height:116px!important;flex:none!important}
 body.mes-equipment-page .shipment-donut-center{inset:16px!important}.mes-equipment-page .shipment-donut-center strong{font-size:22px!important}
 body.mes-equipment-page .shipment-donut-legend{max-height:220px!important;min-width:0;margin:0!important}
 body.mes-equipment-page .shipment-donut-grid{grid-template-columns:1fr!important;gap:10px!important}
 body.mes-equipment-page .shipment-overview-charts{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)!important;align-items:stretch}
 body.mes-equipment-page .shipment-overview-four{gap:10px!important}
 body.pc-workspace.mes-redesigned .mes-record-page table{font-variant-numeric:tabular-nums}
}
@media screen and (min-width:768px) and (max-width:1250px){
 body.mes-production-page .lot-dashboard .mes-production-workbench>.production-priority{grid-template-columns:minmax(0,1fr)!important}
 body.mes-production-page .mes-production-workbench{grid-template-columns:145px minmax(0,1fr)!important}
 body.mes-production-page .production-summary-grid{grid-template-columns:1fr!important}
 body.mes-equipment-page .shipment-overview-charts{grid-template-columns:1fr!important}
}
@media print{.mes-section-tabs,.mes-model-bars{display:none!important}.mes-exact-quantities>*{display:revert!important}.mes-final-stages{display:none!important}}
@media screen and (min-width:768px){
 body.mes-production-page .lot-board-table>tbody>tr>th{text-align:left!important;font-size:19px!important}
 body.mes-production-page .lot-board-table>tbody>tr>td:nth-child(3){padding-left:102px!important}
 body.mes-production-page .lot-total-progress{width:86px!important;height:86px!important}
 body.mes-production-page .mes-final-stage{color:var(--pc-ink)!important;padding:6px!important;line-height:1.3!important}
 body.mes-production-page .mes-final-stage strong{display:flex!important;align-items:baseline;justify-content:center;gap:4px;white-space:nowrap;font-size:21px!important;margin:1px 0!important}
 body.mes-production-page .mes-final-stage strong small{display:inline!important;white-space:nowrap;font-size:12px!important}
 body.mes-production-page .mes-final-stage>span:first-child{font-size:13px!important;white-space:nowrap}
 html[data-ui-theme=dark] body.mes-production-page .lot-board-table a,html[data-ui-theme=dark] body.mes-production-page .overview-attention a{color:#9dcdff!important}
 body.mes-production-page .lot-progress-board>.user-list-controls{font-size:12px;padding:3px;gap:4px}
 body.mes-production-page .lot-progress-board .user-list-controls .btn{padding:3px 6px;min-height:26px}
}
@media screen and (min-width:768px){
 body.pc-workspace.mes-redesigned #main-content .mes-panel-inactive{display:none!important}
}
@media screen and (min-width:768px){
 body.mes-production-page #main-content .lot-progress-board .user-list-controls{display:flex!important;flex-wrap:nowrap!important;gap:4px!important;padding:4px 0!important;overflow-x:auto;min-height:30px;font-size:11px;white-space:nowrap}
 body.mes-production-page #main-content .lot-progress-board .user-list-controls>*{flex:none;margin:0!important;font-size:11px!important;min-height:26px!important}
 body.mes-production-page #main-content .lot-progress-board .user-list-controls input{width:48px!important}
 body.mes-production-page #main-content .lot-progress-board .user-list-controls :is(button,select){padding:2px 5px!important}
 body.mes-production-page #main-content .lot-progress-board .user-list-controls small{display:none}
 body.mes-production-page #main-content .mes-final-stage,body.mes-production-page #main-content .mes-final-stage *{color:var(--pc-ink)!important}
 body.mes-production-page #main-content .mes-section-tabs{margin:4px 0 8px}
 body.mes-production-page #main-content .mes-section-tabs button{padding:8px 13px;min-height:38px}
 body.mes-production-page #main-content .production-header-search+.d-flex{margin-bottom:8px!important}
 body.mes-production-page #main-content .lot-board-table>tbody>tr:not(:has([colspan])){gap:3px;padding:8px}
}
/* Keep the ring, center label and legend in separate, sized columns on PC. */
@media screen and (min-width:768px){
 body.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut-card{grid-template-columns:176px minmax(0,1fr)!important;gap:28px!important;padding:16px!important;min-height:228px;box-sizing:border-box}
 body.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut{width:176px!important;height:176px!important;min-width:176px;flex-basis:176px!important;justify-self:center}
 body.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut-center{position:static!important;inset:auto!important;width:130px!important;height:130px!important;box-sizing:border-box;padding:8px!important;gap:6px;line-height:1.25}
 body.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut-center>span{font-size:14px!important;white-space:nowrap}
 body.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut-center strong{display:flex!important;align-items:baseline;justify-content:center;gap:3px;font-size:28px!important;line-height:1.15;white-space:nowrap}
 body.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut-center small{display:inline!important;font-size:13px!important;margin:0!important}
 body.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut-legend{width:100%;padding-right:10px!important;box-sizing:border-box;max-height:220px!important}
 body.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut-legend li{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:16px!important;align-items:center;min-height:40px;padding:8px 0!important}
 body.mes-equipment-page #main-content .shipment-quantity-chart .donut-key{display:grid!important;grid-template-columns:10px minmax(0,1fr);gap:10px!important;align-items:center;min-width:0}
 body.mes-equipment-page #main-content .shipment-quantity-chart .donut-key a{text-align:center!important;justify-self:stretch;font-size:14px;font-weight:600;line-height:1.4}
 body.mes-equipment-page #main-content .shipment-quantity-value{text-align:right;white-space:nowrap}
 @container(max-width:460px){
  body.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut-card{grid-template-columns:140px minmax(0,1fr)!important;gap:16px!important;padding:12px!important}
  body.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut{width:140px!important;height:140px!important;min-width:140px;flex-basis:140px!important}
  body.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut-center{width:104px!important;height:104px!important}
  body.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut-center strong{font-size:23px!important}
 }
}

/* Readability tokens shared by PC tables, controls and both display modes. */
@media screen and (min-width:768px){
 body.pc-workspace.mes-redesigned{--pc-row-alt:#f3f7fc;--pc-row-hover:#e5effc}
 html[data-ui-theme=dark] body.pc-workspace.mes-redesigned{--pc-row-alt:#213249;--pc-row-hover:#2b4361}
 body.pc-workspace.mes-redesigned :is(.workspace-content,dialog,.modal-content) table thead th{color:var(--pc-ink)!important;font-weight:700}
 body.pc-workspace.mes-redesigned :is(.form-control,.form-select)::placeholder{color:var(--pc-muted)!important;opacity:1}
 body.pc-workspace.mes-redesigned :is(.equipment-management-table,.test-record-table,.shipment-balanced-table)>tbody>tr:nth-child(even){background-color:var(--pc-row-alt)}
 body.pc-workspace.mes-redesigned :is(.equipment-management-table,.test-record-table,.shipment-balanced-table)>tbody>tr:hover{background-color:var(--pc-row-hover)}
 body.pc-workspace.mes-redesigned :is(.workspace-content,dialog,.modal-content) .btn-outline-primary{border-color:var(--pc-accent)!important}
 body.pc-workspace.mes-redesigned .app-menu a.active,body.pc-workspace.mes-redesigned .app-menu a[aria-current=page]{background:#2163b5!important;color:#fff!important}
 body.pc-workspace.mes-redesigned .app-menu a.active .menu-icon{color:#fff!important}
 body.pc-workspace.mes-redesigned .mes-section-tabs button.active{background:#2163b5;color:#fff;border-color:#2163b5}
 html[data-ui-theme=dark] body.pc-workspace.mes-redesigned .mes-section-tabs button.active{background:#75b5fc;color:#102b49;border-color:#75b5fc}
}
@media screen and (min-width:768px){
 body.pc-workspace a[data-stock-model],
 body.pc-workspace table a[href*="/Production/Details"]{white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;min-width:max-content}
}

@media screen and (min-width:768px){
 body.pc-workspace .equipment-history-toolbar{display:grid;grid-template-columns:210px minmax(0,1fr);gap:12px;margin-bottom:12px;align-items:stretch}
 body.pc-workspace .equipment-history-toolbar>.card{margin:0!important;padding:12px!important;min-width:0}
 body.pc-workspace .equipment-history-toolbar h2{font-size:16px;margin:0 0 8px}
 body.pc-workspace .equipment-history-toolbar .shipment-model-counts{display:flex!important;flex-direction:column;gap:3px}
 body.pc-workspace .equipment-history-toolbar .shipment-model-count{display:flex!important;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;min-height:30px;padding:3px 8px!important;border-radius:4px}
 body.pc-workspace .equipment-history-toolbar .shipment-model-count strong{font-size:20px;line-height:1.2;margin:0}
 body.pc-workspace .equipment-history-toolbar .shipment-model-count small{font-size:12px}
 body.pc-workspace .equipment-history-toolbar form{display:flex;flex-direction:column;justify-content:center}
 body.pc-workspace .equipment-history-toolbar form>.row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}
 body.pc-workspace .equipment-history-toolbar form>.row>div{width:auto;padding:0;margin:0;min-width:0}
 body.pc-workspace .equipment-history-toolbar form label{display:block;margin-bottom:3px}
 body.pc-workspace .equipment-history-toolbar form .mt-3{margin-top:10px!important}
}

@media screen and (min-width:768px){
 body.pc-workspace .status-table-scroll,
 body.pc-workspace .mes-data-panel.status-table-scroll,
 body.mes-separate-window .table-responsive{padding:0!important;isolation:isolate}
 body.pc-workspace .status-table-scroll>table,
 body.mes-separate-window .table-responsive>table{margin-top:0!important;border-spacing:0}
 body.pc-workspace .status-table-scroll thead,
 body.mes-separate-window .table-responsive thead{top:0!important;background:var(--pc-soft,#eaf1fb)!important;z-index:20}
 body.pc-workspace .status-table-scroll thead :is(th,td),
 body.mes-separate-window .table-responsive thead :is(th,td){background:var(--pc-soft,#eaf1fb)!important;background-image:none!important}
 html[data-ui-theme=dark] body:is(.pc-workspace,.mes-separate-window) .status-table-scroll thead,
 html[data-ui-theme=dark] body:is(.pc-workspace,.mes-separate-window) .table-responsive thead :is(th,td){background:#253953!important;color:#eef4fc!important}
 body:is(.pc-workspace,.mes-separate-window) table thead :is(button,a)[aria-label$="오름차순"],
 body:is(.pc-workspace,.mes-separate-window) table thead :is(button,a)[aria-label$="내림차순"]{display:inline-flex!important;align-items:center;justify-content:center;width:22px!important;min-width:22px!important;height:24px!important;min-height:24px!important;padding:0!important;font-size:10px!important;line-height:1!important;border-radius:3px;vertical-align:middle}
}

@media screen and (min-width:768px){
 body:is(.pc-workspace,.mes-separate-window) table thead span:has(> [aria-label$="오름차순"]):has(> [aria-label$="내림차순"]){display:inline-flex!important;flex-direction:column!important;gap:1px!important;vertical-align:middle;margin-left:4px!important}
 body:is(.pc-workspace,.mes-separate-window) table thead :is(button,a)[aria-label$="오름차순"],
 body:is(.pc-workspace,.mes-separate-window) table thead :is(button,a)[aria-label$="내림차순"]{width:19px!important;min-width:19px!important;height:14px!important;min-height:14px!important;font-size:9px!important}
}

@media screen and (min-width:768px){
 body:is(.pc-workspace,.mes-separate-window) table thead th:has([aria-label$="오름차순"]){font-size:16px!important;font-weight:700!important;white-space:nowrap}
}

@media screen and (min-width:768px){
 body.pc-workspace.mes-tests-dashboard .dashboard-summary-grid{display:flex!important;flex-wrap:wrap;gap:0!important;padding:6px 10px!important;border:1px solid var(--pc-border);border-radius:6px;background:var(--pc-surface);margin:8px 0}
 body.pc-workspace.mes-tests-dashboard .dashboard-summary-grid>a{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;padding:5px 14px!important;margin:0!important;min-height:0!important;border:0!important;border-right:1px solid var(--pc-border)!important;border-radius:0;box-shadow:none!important;background:transparent!important}
 body.pc-workspace.mes-tests-dashboard .dashboard-summary-grid>a:last-child{border-right:0!important}
 body.pc-workspace.mes-tests-dashboard .dashboard-summary-grid strong{font-size:22px!important;line-height:1.2;margin:0!important}
 body.pc-workspace.mes-tests-dashboard .dashboard-summary-grid span{font-size:15px!important}
 body.pc-workspace.mes-tests-dashboard .dashboard-summary-grid small{font-size:12px}
 body.pc-workspace.mes-tests-dashboard .test-print-results{margin-top:8px!important}
 body.pc-workspace.mes-tests-dashboard .mes-test-print-options{margin:0 0 8px}
 body.pc-workspace.mes-tests-dashboard .mes-test-print-options summary{cursor:pointer;color:var(--pc-accent)}
 body.pc-workspace table.test-record-table td:first-child{white-space:nowrap!important}
}

@media screen and (min-width:768px){
 body.pc-workspace.mes-tests-dashboard .test-table-search{padding:6px!important;margin:4px 0!important;gap:6px!important}
 body.pc-workspace.mes-tests-dashboard .test-table-search>label{display:flex;align-items:center;gap:8px;white-space:nowrap;margin:0}
 body.pc-workspace.mes-tests-dashboard .test-table-search>label input{flex:1;min-width:0}
 body.pc-workspace.mes-tests-dashboard .test-print-results>h2{margin:4px 0!important}
 body.pc-workspace.mes-tests-dashboard .test-print-results>p{margin-bottom:4px!important}
 body.pc-workspace.mes-tests-dashboard .test-print-results>nav{margin:4px 0!important}
 body.pc-workspace.mes-tests-dashboard .dashboard-summary-grid>a{border-radius:0!important}
}

@media screen and (min-width:768px){
 .mes-planning-page .mes-planning-tabs-tools{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:10px}
 .mes-planning-page .mes-planning-tabs-tools>.mes-section-tabs{flex:0 0 auto;margin:0!important}
 .mes-planning-page .mes-planning-tabs-tools>.status-page-query{flex:1 1 500px;min-width:0;margin:0!important;padding:8px 10px!important}
 .mes-planning-page .mes-planning-tabs-tools .status-page-query::before{display:none}
 .mes-planning-page .mes-planning-tabs-tools form{margin:0!important;padding:0!important}
 .mes-planning-page .mes-planning-tabs-tools :is(input:not([type=checkbox]),select){min-height:32px!important;padding-top:4px;padding-bottom:4px}
 .mes-planning-page .planning-popup-menu{display:flex;flex-wrap:nowrap!important;gap:8px;overflow-x:auto}
 .mes-planning-page .planning-popup-menu :is(a,button){white-space:nowrap!important;flex-shrink:0}
}
@media screen and (min-width:768px){
 .mes-planning-page .planning-popup-menu>.overview-popup-trigger{flex:0 0 auto!important;width:auto!important;min-width:max-content!important;max-width:none!important;height:36px!important;min-height:36px!important;max-height:none!important;padding:6px 10px!important}
 .mes-planning-page .planning-popup-menu>.overview-popup-trigger>span{display:block!important;overflow:visible!important;white-space:nowrap!important;-webkit-line-clamp:unset}
}

@media screen and (min-width:768px){
 body.pc-workspace.mes-production-page .overview-attention{display:block!important;min-width:0}
 body.pc-workspace.mes-production-page .overview-attention .attention-heading{display:flex;flex-direction:column;align-items:flex-start;gap:6px!important}
 body.pc-workspace.mes-production-page .overview-attention .attention-heading h2{margin:0;white-space:nowrap;line-height:1.4}
 body.pc-workspace.mes-production-page .overview-attention .attention-heading a{display:inline-block;white-space:nowrap;line-height:1.5;font-size:13px}
 body.pc-workspace.mes-production-page .overview-attention.attention-clear>p{margin:10px 0 0!important;font-size:14px;line-height:1.65;word-break:keep-all;overflow-wrap:break-word}
}
@media screen and (min-width:768px){
 body.pc-workspace .mes-title-group{flex:1 1 auto;min-width:0;text-align:left}
 body.pc-workspace .mes-title-group h1{margin:0!important;text-align:left!important}
 body.pc-workspace.mes-redesigned .mes-small-filter{display:flex!important;align-items:center;flex-wrap:wrap;width:fit-content!important;max-width:100%;padding:8px 10px!important;margin:8px 0 12px!important;gap:8px!important}
 body.pc-workspace.mes-redesigned .mes-small-filter::before{display:none!important}
 body.pc-workspace .mes-small-filter input.form-control{width:220px;max-width:100%;min-height:34px}
 body.pc-workspace .mes-small-filter :is(button,a){white-space:nowrap}
 body.pc-workspace .mes-equipment-tabs-tools{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;margin-bottom:10px}
 body.pc-workspace .mes-equipment-tabs-tools>.mes-section-tabs{flex:0 0 auto;margin:0!important}
 body.pc-workspace .mes-equipment-tabs-tools>.status-page-query{flex:1 1 500px;min-width:0;padding:6px 8px!important;margin:0!important}
 body.pc-workspace .mes-equipment-tabs-tools .status-page-query::before{display:none!important}
 body.pc-workspace .mes-equipment-tabs-tools .status-query-form{display:flex!important;flex-wrap:wrap;align-items:flex-end;gap:6px;margin:0!important}
 body.pc-workspace .mes-equipment-tabs-tools .status-query-form>.row{display:flex;flex:1 1 100%;min-width:0;gap:6px;margin:0!important}
 body.pc-workspace .mes-equipment-tabs-tools .status-query-form>.row>div{flex:1 1 100px;width:auto!important;padding:0;min-width:100px}
 body.pc-workspace .mes-equipment-tabs-tools .status-query-form>.row>div:has(.date-range-fields){flex:2 1 270px}
 body.pc-workspace .mes-equipment-tabs-tools .status-query-form>.mt-3{margin:0!important;white-space:nowrap}
 body.pc-workspace .mes-equipment-tabs-tools :is(input:not([type=hidden]),select){min-height:32px!important;height:32px!important;padding:4px 8px!important;font-size:14px}
 body.pc-workspace .mes-equipment-tabs-tools label{margin:0;font-size:13px}
 body.pc-workspace [data-common-model]{max-width:600px;display:grid;grid-template-columns:130px 1fr;gap:6px 10px;align-items:center}
 body.pc-workspace [data-common-model][hidden]{display:none}
 body.pc-workspace [data-common-model] small{grid-column:2}
}
@media screen and (min-width:768px){
 body.pc-workspace.mes-redesigned .status-page-header.mes-compact-header{display:flex!important;align-items:center;flex-wrap:wrap;gap:10px}
 body.pc-workspace.mes-redesigned .mes-compact-header>.status-page-title{flex:1 1 350px;width:auto;padding:0!important}
 body.pc-workspace .mes-compact-header .status-page-title>div{gap:16px}
 body.pc-workspace .mes-compact-header .status-page-query form{display:flex;align-items:center;gap:6px;margin:0!important}
 body.pc-workspace .mes-compact-header .status-page-query :is(input,select){width:180px!important;min-height:34px!important}
}
@media screen and (min-width:768px){
 body.pc-workspace.mes-maintenance-dashboard .status-summary-pair{grid-template-columns:minmax(220px,.65fr) minmax(0,1.35fr)!important;align-items:start;gap:12px}
 body.pc-workspace.mes-maintenance-dashboard .status-summary-pair>.dashboard-summary-grid{display:flex!important;flex-direction:column;gap:0;border:1px solid var(--pc-border);border-radius:7px;overflow:hidden}
 body.pc-workspace.mes-maintenance-dashboard .status-summary-pair .dashboard-summary{display:flex!important;flex-direction:row!important;justify-content:space-between;align-items:center;padding:9px 12px!important;min-height:0!important;margin:0!important;border:0!important;border-bottom:1px solid var(--pc-border)!important;border-radius:0!important;gap:12px}
 body.pc-workspace.mes-maintenance-dashboard .status-summary-pair .dashboard-summary strong{font-size:23px;margin:0!important}
 body.pc-workspace.mes-maintenance-dashboard .status-summary-pair>.card{margin:0!important}
}
@media screen and (min-width:768px){
 body.pc-workspace .mes-equipment-tabs-tools{align-items:center}
 body.pc-workspace .mes-equipment-tabs-tools .status-query-form{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px!important}
 body.pc-workspace .mes-equipment-tabs-tools .status-query-form>.row{display:contents!important}
 body.pc-workspace .mes-equipment-tabs-tools .status-query-form>.row>div{min-width:0!important;margin:0!important}
 body.pc-workspace .mes-equipment-tabs-tools .status-query-form>.row>div:has(.date-range-fields){grid-column:span 2}
 body.pc-workspace .mes-equipment-tabs-tools .status-query-form>.mt-3{grid-column:span 2;align-self:end;justify-self:end}
 body.pc-workspace .mes-equipment-tabs-tools .date-range-fields{gap:4px!important}
 body.pc-workspace .mes-equipment-tabs-tools .date-range-fields label{min-width:0}
 body.pc-workspace .mes-equipment-tabs-tools .date-range-fields input{width:100%!important;min-width:0!important}
}
/* Compact desktop query rows. Never constrain entered character counts. */
@media screen and (min-width:768px){
 body.pc-workspace.mes-redesigned :is(#main-content,dialog) form.mes-compact-query{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:flex-end!important;justify-content:flex-start!important;gap:5px!important;padding:6px 7px!important;margin-top:4px!important;margin-bottom:8px!important;max-width:100%;min-width:0;width:auto!important;overflow:visible}
 body.pc-workspace.mes-redesigned :is(#main-content,dialog) .mes-compact-query .mes-query-group{display:contents!important}
 body.pc-workspace.mes-redesigned :is(#main-content,dialog) .mes-compact-query .mes-query-field{display:flex!important;flex-direction:column;flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:none!important;padding:0!important;margin:0!important;gap:2px!important;grid-column:auto!important}
 body.pc-workspace.mes-redesigned :is(#main-content,dialog) .mes-compact-query :is(input,select):not([type=hidden]):not([type=checkbox]){box-sizing:border-box;flex:none!important;width:var(--query-width,112px)!important;min-width:0!important;max-width:none!important;height:32px!important;min-height:32px!important;padding:3px 5px!important;margin:0!important;font-size:14px!important}
 body.pc-workspace.mes-redesigned :is(#main-content,dialog) .mes-compact-query input[data-query-size=date]{width:124px!important;padding:3px!important}
 body.pc-workspace.mes-redesigned :is(#main-content,dialog) .mes-compact-query input[data-query-size=serial]{width:76px!important}
 body.pc-workspace.mes-redesigned :is(#main-content,dialog) .mes-compact-query input[data-query-size=short]{width:74px!important}
 body.pc-workspace.mes-redesigned :is(#main-content,dialog) .mes-compact-query [data-query-size=lot]:is(input,select){width:160px!important}
 body.pc-workspace.mes-redesigned :is(#main-content,dialog) .mes-compact-query input[data-query-size=worker]{width:85px!important}
 body.pc-workspace.mes-redesigned :is(#main-content,dialog) .mes-compact-query input[data-query-size=search]{width:140px!important}
 body.pc-workspace.mes-redesigned :is(#main-content,dialog) .mes-compact-query select{padding-right:22px!important}
 body.pc-workspace.mes-redesigned :is(#main-content,dialog) .mes-compact-query label{font-size:13px!important;line-height:1.25;margin:0!important;white-space:nowrap}
 body.pc-workspace.mes-redesigned :is(#main-content,dialog) .mes-compact-query .mes-query-actions{display:flex!important;gap:4px!important;flex:0 0 auto!important;margin:0!important;padding:0!important;grid-column:auto!important;align-self:flex-end!important}
 body.pc-workspace.mes-redesigned :is(#main-content,dialog) .mes-compact-query :is(button,.btn){min-height:32px!important;padding:4px 8px!important;margin:0!important;white-space:nowrap;font-size:14px!important;flex:0 0 auto}
 body.pc-workspace.mes-redesigned :is(#main-content,dialog) .mes-compact-query .mes-query-group:has(>.date-range-fields)>label{display:none!important}
 body.pc-workspace.mes-redesigned .status-page-query{padding:0!important;min-width:0}
 body.pc-workspace.mes-redesigned .status-page-query::before{display:none!important}
 body.pc-workspace.mes-redesigned .mes-equipment-tabs-tools>.status-page-query{flex:1 1 830px!important}
 body.pc-workspace.mes-redesigned .mes-planning-tabs-tools>.status-page-query{flex:1 1 700px!important}
}
@media screen and (min-width:768px){
 .mes-compact-query input[data-query-size=date]{--query-width:124px}
 .mes-compact-query input[data-query-size=serial]{--query-width:76px}
 .mes-compact-query input[data-query-size=short]{--query-width:74px}
 .mes-compact-query [data-query-size=lot]:is(input,select){--query-width:160px}
 .mes-compact-query input[data-query-size=worker]{--query-width:85px}
 .mes-compact-query input[data-query-size=search]{--query-width:140px}
}
@media screen and (min-width:768px){
 body.pc-workspace.mes-equipment-page #main-content .shipment-overview-charts{grid-template-columns:minmax(190px,.55fr) minmax(0,1.65fr)!important;align-items:stretch;gap:10px}
 body.pc-workspace.mes-equipment-page #main-content .shipment-donut-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 body.pc-workspace.mes-equipment-page #main-content .shipment-quantity-chart{min-width:0}
 body.pc-workspace.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut-card{grid-template-columns:104px minmax(0,1fr)!important;gap:8px!important;padding:8px!important;min-height:228px;align-items:center}
 body.pc-workspace.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut{width:104px!important;height:104px!important;min-width:104px!important;flex-basis:104px!important}
 body.pc-workspace.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut-center{width:76px!important;height:76px!important;padding:3px!important;gap:3px}
 body.pc-workspace.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut-center strong{font-size:20px!important}
 body.pc-workspace.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut-center>span{font-size:12px!important}
 body.pc-workspace.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut-legend{padding-right:3px!important;max-width:270px;justify-self:center}
 body.pc-workspace.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut-legend li{grid-template-columns:minmax(0,1fr) auto!important;gap:5px!important;padding:6px 0!important;min-height:34px}
 body.pc-workspace.mes-equipment-page #main-content .shipment-quantity-chart .donut-key{gap:5px!important;grid-template-columns:8px minmax(0,1fr);font-size:13px;overflow-wrap:anywhere}
 body.pc-workspace.mes-equipment-page #main-content .shipment-quantity-chart .donut-key a{text-align:left!important;font-size:13px}
 body.pc-workspace.mes-equipment-page #main-content .shipment-quantity-value{white-space:nowrap;font-size:13px}
 body.pc-workspace.mes-equipment-page #main-content .shipment-quantity-value small{display:block;text-align:right;font-size:11px}
}
@media screen and (min-width:1500px){
 body.pc-workspace.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut-card{grid-template-columns:136px minmax(0,1fr)!important}
 body.pc-workspace.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut{width:136px!important;height:136px!important;min-width:136px!important;flex-basis:136px!important}
 body.pc-workspace.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut-center{width:100px!important;height:100px!important}
 body.pc-workspace.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut-center strong{font-size:24px!important}
}
@media screen and (min-width:768px){
 body.pc-workspace.mes-equipment-page #main-content .shipment-year-bars{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px!important;min-width:0}
 body.pc-workspace.mes-equipment-page #main-content .shipment-year-bars button{min-width:0;padding:10px 3px!important}
 body.pc-workspace.mes-equipment-page #main-content .shipment-year-bars strong{font-size:18px!important;white-space:nowrap}
 body.pc-workspace.mes-equipment-page #main-content .shipment-year-track{width:76%}
}
@media screen and (min-width:768px){
 body.pc-workspace.mes-equipment-page #main-content .shipment-overview-charts{grid-template-columns:minmax(190px,1fr) minmax(0,min(900px,74%))!important}
 body.pc-workspace.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut-legend{max-width:none!important;justify-self:stretch!important;width:100%!important;padding-right:0!important}
}
@media screen and (min-width:768px){
 body.pc-workspace.mes-equipment-page #main-content .shipment-overview-charts{grid-template-columns:minmax(190px,1fr) minmax(0,min(900px,74%))!important}
 body.pc-workspace.mes-equipment-page #main-content .shipment-donut-grid{gap:6px!important}
 body.pc-workspace.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut-card{gap:4px!important;padding:5px!important}
 body.pc-workspace.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut-legend{max-width:none!important;justify-self:stretch!important;width:100%!important;padding:0!important;margin:0!important}
 body.pc-workspace.mes-equipment-page #main-content .shipment-quantity-chart .shipment-donut-legend li{gap:4px!important;padding:5px 0!important}
 body.pc-workspace.mes-equipment-page #main-content .shipment-quantity-chart .donut-key{gap:4px!important}
}
/* Shared PC query toolbar: tabs and their original filters share one compact row. */
@media screen and (min-width:768px){
 body.pc-workspace.mes-redesigned #main-content .mes-query-tabs-tools{display:flex!important;flex-wrap:wrap;align-items:flex-end;justify-content:flex-start;gap:5px;margin:4px 0 8px!important;min-width:0}
 body.pc-workspace.mes-redesigned #main-content .mes-query-tabs-tools>.mes-section-tabs{flex:0 0 auto!important;margin:0!important;padding:0!important;gap:2px}
 body.pc-workspace.mes-redesigned #main-content .mes-query-tabs-tools>.mes-section-tabs button{padding:7px 8px!important;font-size:14px;white-space:nowrap}
 body.pc-workspace.mes-redesigned #main-content .mes-query-tabs-tools>:is(.status-page-query,.production-header-search,.shipment-list-search-compact,form){flex:0 1 auto!important;width:auto!important;min-width:0!important;max-width:100%;margin:0!important;padding:0!important;border:0!important;box-shadow:none;background:transparent!important}
 body.pc-workspace.mes-redesigned #main-content .mes-query-tabs-tools form.mes-compact-query{padding:0!important;margin:0!important;gap:4px!important}
 body.pc-workspace.mes-redesigned #main-content .mes-query-tabs-tools .production-header-search>summary,
 body.pc-workspace.mes-redesigned #main-content .mes-query-tabs-tools #shipment-list-search-title{display:none!important}
 body.pc-workspace.mes-redesigned :is(#main-content,dialog) .mes-compact-query :is(.row,.shipment-search-fields,.production-filter-fields,.daily-work-filter-fields,.input-group){display:contents!important}
 body.pc-workspace.mes-redesigned :is(#main-content,dialog) .mes-compact-query .shipment-search-dates>label{display:none!important}
 body.pc-workspace.mes-redesigned :is(#main-content,dialog) .mes-compact-query :is(.col-md-3,.ms-auto){width:auto!important;flex:0 0 auto!important;margin-left:0!important;padding:0!important}
 body.pc-workspace.mes-redesigned :is(#main-content,dialog) .mes-compact-query .mes-query-field:has(button){display:contents!important}
 body.pc-workspace.mes-redesigned :is(#main-content,dialog) .mes-compact-query .mes-query-field[data-query-size=check]{flex-direction:row;align-items:center;align-self:center}
 body.pc-workspace.mes-redesigned :is(#main-content,dialog) .mes-compact-query>.validation-summary-valid{display:none}
 body.pc-workspace.mes-redesigned #main-content .shipment-list-search-compact{padding:5px!important;margin-bottom:6px!important}
 body.pc-workspace.mes-redesigned #main-content .mes-docked-list-query.mes-panel-inactive{display:none!important}
}
@media screen and (min-width:768px){
 body.pc-workspace.mes-redesigned #main-content .mes-query-tabs-tools{flex-wrap:nowrap!important;align-items:flex-start}
 body.pc-workspace.mes-redesigned #main-content .mes-query-tabs-tools>:is(.status-page-query,.production-header-search,.shipment-list-search-compact,form){flex:1 1 0!important;min-width:0!important}
 body.pc-workspace.mes-redesigned #main-content .mes-query-tabs-tools>.mes-section-tabs{max-width:48%;flex-wrap:wrap!important;overflow:visible}
 body.pc-workspace.mes-redesigned #main-content #maintenance-picker>.row{display:flex;gap:5px;margin:0}
 body.pc-workspace.mes-redesigned #main-content #maintenance-picker>.row>div{flex:0 0 auto;width:auto;padding:0}
 body.pc-workspace.mes-redesigned #main-content #maintenance-picker [data-filter]{width:125px;min-height:32px;padding:3px 5px}
 body.pc-workspace.mes-redesigned #main-content #maintenance-picker [data-filter=serial]{width:76px}
 body.pc-workspace.mes-redesigned #main-content :is(.test-table-search input,#capacity-process-search,#equipment-search,#allocation-search){width:220px!important;max-width:100%;flex:0 1 auto!important}
 body.pc-workspace.mes-redesigned #main-content .test-table-search>label{flex-grow:0!important}
}
@media screen and (min-width:768px){
 body.pc-workspace.mes-redesigned :is(#main-content,dialog) form.mes-compact-query{width:fit-content!important;max-width:100%}
 body.pc-workspace.mes-redesigned #main-content .mes-query-tabs-tools form.mes-compact-query{width:auto!important}
 body.pc-workspace.mes-redesigned :is(#main-content,dialog) .mes-compact-query .mes-query-group:has(>button)>:is([class*=col-]){flex:0 0 auto!important;width:auto!important}
}
@media screen and (min-width:768px){
 body.pc-workspace [data-precompletion-group]>summary .precompletion-remaining{display:inline-block;margin-left:12px;font-size:14px;white-space:nowrap;color:var(--pc-accent);vertical-align:baseline}
 body.pc-workspace [data-precompletion-group]>summary .precompletion-remaining strong{font-size:16px}
}
/* Keep each shipment heading and its stacked sort controls on the same line. */
@media screen and (min-width:768px){
 body.pc-workspace #shipment-equipment-panel .shipment-balanced-table thead th[aria-sort]{white-space:nowrap!important;vertical-align:middle}
 body.pc-workspace #shipment-equipment-panel .shipment-balanced-table thead th[aria-sort]>span:first-child{display:inline!important;vertical-align:middle}
 body.pc-workspace #shipment-equipment-panel .shipment-balanced-table thead th[aria-sort]>.d-inline-flex{display:inline-flex!important;flex-direction:column!important;vertical-align:middle!important;justify-content:center;gap:2px!important;margin:0 0 0 5px!important;width:19px;flex:none}
}
@media screen and (min-width:768px){
 body.pc-workspace .equipment-heading-filter{display:block;width:100%;min-width:85px;max-width:190px;margin:3px auto 0;padding:2px 20px 2px 4px;min-height:28px;font-size:13px}
 body.pc-workspace :is(#main-content,dialog) th.equipment-sort-heading{white-space:nowrap!important}
 body.pc-workspace :is(#main-content,dialog) th.equipment-sort-heading>span:has(>.btn){display:inline-flex!important;flex-direction:column!important;vertical-align:middle;gap:2px!important;margin:0 0 0 5px!important}
 body.pc-workspace :is(#main-content,dialog) th.equipment-sort-heading>span>.btn{width:19px!important;height:14px!important;min-height:14px!important;padding:0!important;line-height:12px!important;font-size:9px!important}
}
/* Native option list opens from the compact arrow beside the column title. */
@media screen and (min-width:768px){
 body.pc-workspace th.equipment-filter-heading{white-space:nowrap!important;vertical-align:middle}
 body.pc-workspace .equipment-heading-picker{display:inline-flex!important;position:relative;align-items:center;justify-content:center;vertical-align:middle;width:20px;height:22px;margin-left:5px;border:1px solid var(--pc-border,#8196b2);border-radius:4px;color:var(--pc-accent,#235fae);font-size:10px}
 body.pc-workspace .equipment-heading-picker>select.equipment-heading-filter{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;margin:0!important;padding:0!important;opacity:0;cursor:pointer}
 body.pc-workspace .equipment-heading-picker:focus-within{outline:2px solid var(--pc-accent,#235fae);outline-offset:2px}
 body.pc-workspace .equipment-heading-picker.is-filtered{background:#235fae;color:#fff;border-color:#235fae}
}
/* Saved column widths may be smaller than the pane; fill the remaining space. */
@media screen and (min-width:768px){
 body.pc-workspace table[data-header-controls]{min-width:100%!important;margin-right:0!important}
 body.pc-workspace table[data-header-controls] th.equipment-sort-heading{white-space:nowrap!important}
}
@media screen and (min-width:768px){
 body.pc-workspace .equipment-heading-picker{border:0;width:22px;height:24px}
 body.pc-workspace .equipment-heading-picker>select.equipment-heading-filter{display:none!important}
 body.pc-workspace .equipment-filter-trigger{display:inline-flex!important;align-items:center;justify-content:center;width:22px!important;height:24px!important;min-height:0!important;padding:0!important;border:1px solid var(--pc-border,#8196b2);border-radius:4px;background:var(--pc-surface,#fff);color:var(--pc-accent,#235fae);font-size:10px!important;line-height:1!important;cursor:pointer}
 body.pc-workspace .equipment-heading-picker.is-filtered .equipment-filter-trigger{background:#235fae;color:#fff}
 body.pc-workspace .equipment-filter-menu{position:fixed;inset:auto;margin:0;padding:5px!important;min-width:190px;max-width:260px;max-height:min(300px,70vh);overflow-y:auto;border:1px solid var(--pc-border,#8196b2)!important;border-radius:7px;background:var(--pc-surface,#fff)!important;color:var(--pc-ink,#17375b);box-shadow:0 5px 18px #0003;white-space:normal;text-align:left}
 body.pc-workspace .equipment-filter-menu>button{display:block!important;position:relative;width:100%!important;height:auto!important;min-height:34px!important;padding:7px 10px 7px 27px!important;margin:0!important;border:0!important;border-radius:4px;background:transparent;color:inherit;text-align:left;font-size:14px!important;line-height:1.4!important;white-space:normal!important;cursor:pointer}
 body.pc-workspace .equipment-filter-menu>button:hover,body.pc-workspace .equipment-filter-menu>button:focus-visible{background:var(--pc-soft,#e8f0fc);outline:2px solid var(--pc-accent,#235fae);outline-offset:-2px}
 body.pc-workspace .equipment-filter-menu>button[aria-checked=true]{background:#235fae;color:#fff;font-weight:600}
 body.pc-workspace .equipment-filter-menu>button[aria-checked=true]::before{content:'✓';position:absolute;left:8px}
}
@media screen and (min-width:768px){
 body.pc-workspace .mes-list-card{border:1px solid var(--pc-border,#c6d5e9);border-radius:7px;background:var(--pc-surface,#fff);padding:8px;margin:8px 0;min-width:0;overflow-anchor:none}
 body.pc-workspace .mes-list-card[aria-busy=true]{cursor:progress}
 body.pc-workspace [data-shipment-list-host]{overflow-anchor:none}
}

@media screen and (min-width:768px){body.pc-workspace main{overflow-anchor:none}}
/* Sample-style desktop status cards; original links and mobile presentation remain intact. */
@media screen and (min-width:768px){
 body.mes-production-page .mes-production-workbench{display:block!important}
 body.mes-production-page .mes-production-workbench>.production-kpis.mes-status-cards{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin:0 0 12px!important;background:transparent!important;border:0!important}
 body.mes-production-page .mes-production-workbench .mes-status-cards .production-kpi{position:relative;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:4px;height:170px!important;min-height:170px!important;border:0!important;border-radius:8px!important;padding:10px!important;margin:0!important;color:#fff!important;box-shadow:0 3px 8px #142b4c20}
 body.mes-production-page .mes-production-workbench .mes-status-cards .production-kpi:nth-child(1){background:linear-gradient(125deg,#2078c6,#175394)!important}
 body.mes-production-page .mes-production-workbench .mes-status-cards .production-kpi:nth-child(2){background:linear-gradient(125deg,#7162c9,#564294)!important}
 body.mes-production-page .mes-production-workbench .mes-status-cards .production-kpi:nth-child(3){background:linear-gradient(125deg,#b75e00,#954400)!important}
 body.mes-production-page .mes-production-workbench .mes-status-cards .production-kpi:nth-child(4){background:linear-gradient(125deg,#27834b,#176537)!important}
 body.mes-production-page .mes-production-workbench .mes-status-cards .production-kpi .kpi-icon{display:flex!important;align-items:center;justify-content:center;background:transparent!important;color:#fff!important;width:18px;height:18px;font-size:18px}
 body.mes-production-page .mes-production-workbench .mes-status-cards .production-kpi .kpi-icon svg{width:22px;height:22px}
 body.mes-production-page .mes-production-workbench .mes-status-cards .production-kpi>div{display:flex;flex-direction:column;align-items:center;flex:0;width:100%;gap:4px;text-align:center}
 body.mes-production-page .mes-production-workbench .mes-status-cards .production-kpi .kpi-label{font-size:18px!important;font-weight:700!important;color:#fff!important;line-height:1.3}
 body.mes-production-page .mes-production-workbench .mes-status-cards .production-kpi strong{font-size:38px!important;margin:3px 0 0!important;color:#fff!important;line-height:1.15}
 body.mes-production-page .mes-production-workbench .mes-status-cards .production-kpi strong small{color:#fff!important;font-size:15px!important;margin-left:5px}
 body.mes-production-page .mes-status-cards a{color:#fff!important;text-decoration:none!important}
 body.mes-production-page .mes-status-cards a::after{content:'';position:absolute;inset:0;border-radius:8px}
 body.mes-production-page .mes-status-cards a:focus-visible::after{outline:3px solid #fff;outline-offset:-5px}
 body.mes-production-page .mes-status-cards .production-kpi:hover{filter:brightness(1.07)}
 body.mes-production-page .mes-production-workbench .mes-status-cards .production-kpi:nth-child(3) strong{font-size:20px!important;margin:2px 0 0!important}
 body.mes-production-page .mes-making-ring{display:grid;place-items:center;position:relative;width:60px;height:60px;margin:1px auto;border-radius:50%;background:conic-gradient(#fff var(--making-progress),#ffffff40 0)}
 body.mes-production-page .mes-making-ring::before{content:'';position:absolute;inset:4px;border-radius:50%;background:#a04d00}
 body.mes-production-page .mes-making-percent{position:relative;font-size:15px;font-weight:800;color:#fff;line-height:1}
 body.mes-production-page .mes-making-caption{font-size:11px;color:#fff;line-height:1.1}
}
/* Stable three-row clock: digits never change sidebar footer height. */
@media(min-width:768px){.mes-redesigned .mes-sidebar-footer .sidebar-clock{display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:18px 20px 18px;gap:2px;width:100%;height:60px;min-height:60px;flex:none;overflow:hidden}.mes-redesigned .mes-sidebar-footer .sidebar-clock>*{display:block!important;white-space:nowrap;line-height:inherit;margin:0!important;min-width:0;font-variant-numeric:tabular-nums}.mes-redesigned .mes-sidebar-footer .sidebar-clock [data-clock-date]{line-height:18px}.mes-redesigned .mes-sidebar-footer .sidebar-clock [data-clock-time]{line-height:20px}.mes-redesigned .mes-sidebar-footer .sidebar-clock [data-clock-time24]{line-height:18px}}
