/* Mobile alternatives stay absent from the existing desktop workbench. */
.workbench-mobile-label,.workbench-mobile-register{display:none}

@media(max-width:600px){
  .workbench-heading{flex-wrap:wrap;align-items:center;margin-bottom:16px}
  .workbench-heading h1{font-size:calc(22px * var(--ui-type-scale, 1))}
  .workbench-heading p{font-size:calc(12px * var(--ui-type-scale, 1));line-height:1.5}
  .workbench-heading .actions{width:auto;max-width:100%;flex:0 1 auto}
  .workbench-heading .btn{min-height:44px;padding:10px 14px}
  .workbench .workbench-desktop-register,.workbench-desktop-label{display:none}
  .workbench-mobile-label{display:inline}
  .workbench-cards{display:block;margin-bottom:16px}
  .workbench-cards>.workbench-card-link{display:none}
  .workbench-today{padding:18px}
  .workbench-today .workbench-card-label{font-size:calc(14px * var(--ui-type-scale, 1))}
  .workbench-today .workbench-card-value{font-size:calc(34px * var(--ui-type-scale, 1));margin:12px 0 10px}
  .workbench-today .workbench-card-note{font-size:calc(12px * var(--ui-type-scale, 1));line-height:1.6}
  .workbench-mobile-register{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin-top:18px;font-size:calc(16px * var(--ui-type-scale, 1))}
  .workbench-details{display:flex;flex-direction:column}
  .workbench-today-products{order:-1}
  .workbench .panel{margin-bottom:16px}
  .workbench .panel-head{padding:14px 16px}
  .workbench .panel-head h2{font-size:calc(16px * var(--ui-type-scale, 1))}
  .workbench .panel-head p{font-size:calc(12px * var(--ui-type-scale, 1));line-height:1.5}
  .workbench-products{width:100%;min-width:0;table-layout:fixed}
  .workbench-products th,.workbench-products td{padding:12px;font-size:calc(12px * var(--ui-type-scale, 1))}
  .workbench-products .number{width:64px}
  .workbench-products .number:last-child{width:50px}
  .workbench-products .workbench-product-name{font-size:calc(13px * var(--ui-type-scale, 1))}
  .workbench-products .sub-text{font-size:calc(11px * var(--ui-type-scale, 1))}
  .workbench-products-scroll{overflow:visible}
  .workbench-filters{width:100%;gap:4px}
  .workbench-filter{min-height:44px;padding:9px 8px;font-size:calc(13px * var(--ui-type-scale, 1))}
  .workbench-pending>.table-wrap{overflow:visible}
  .workbench-pending-table{display:block;width:100%;min-width:0}
  .workbench-pending-table thead{display:none}
  .workbench-pending-table tbody{display:block;width:100%}
  .workbench-pending-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;width:100%;padding:12px 16px 16px;border-bottom:1px solid var(--line)}
  .workbench-pending-table tbody tr:last-child{border-bottom:0}
  .workbench-pending-table td{display:block;padding:0;border:0;min-width:0;white-space:normal}
  .workbench-pending-table .workbench-order{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 8px;align-items:center}
  .workbench-order>.link-btn{grid-column:1/-1;display:flex;align-items:center;min-height:44px;line-height:1.5;text-align:left}
  .workbench-pending-table .workbench-order>.mono{font-size:calc(14px * var(--ui-type-scale, 1));overflow-wrap:anywhere}
  .workbench-order>.sub-text{font-size:calc(12px * var(--ui-type-scale, 1));margin:0}
  .workbench-order>.workbench-label-status{font-size:calc(11px * var(--ui-type-scale, 1));margin:0}
  .workbench-pending-table .workbench-party{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 12px;font-size:calc(13px * var(--ui-type-scale, 1));color:var(--muted)}
  .workbench-party>.sub-text{margin:0;font-size:calc(13px * var(--ui-type-scale, 1))}
  .workbench-remaining{gap:12px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
  .workbench-remaining .workbench-product-name{font-size:calc(13px * var(--ui-type-scale, 1));line-height:1.6}
  .workbench-remaining .mono{font-size:calc(11px * var(--ui-type-scale, 1))}
  .workbench-remaining strong{font-size:calc(14px * var(--ui-type-scale, 1))}
  .workbench-row-actions{display:grid;width:100%;gap:8px}
  .workbench-row-print{display:flex;width:100%;gap:8px}
  .workbench-row-actions .link-btn{display:flex;flex:1;align-items:center;justify-content:center;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:6px;font-size:calc(13px * var(--ui-type-scale, 1));text-align:center;white-space:normal}
  .workbench-row-actions>.btn{width:100%;min-height:44px;font-size:calc(14px * var(--ui-type-scale, 1))}
  .workbench-pagination{padding:12px 16px;gap:10px;font-size:calc(12px * var(--ui-type-scale, 1))}
  .workbench-pagination .actions{width:100%;justify-content:space-between}
  .workbench-pagination .btn{min-height:44px;padding:9px 14px;font-size:calc(13px * var(--ui-type-scale, 1))}
  .workbench-error{align-items:flex-start;font-size:calc(13px * var(--ui-type-scale, 1));line-height:1.6}
  .workbench-error .link-btn{min-height:44px;flex:none}
  .workbench-scope{font-size:calc(12px * var(--ui-type-scale, 1));line-height:1.6}
}
