/* Windows-aligned production workspaces; no phone/PWA rules. */
@media (min-width:761px){
  #productionPage.dp-ready,#harvestPage.dp-harvest-page{min-width:0}
  #productionPage.dp-ready>.production-commandbar{padding:0 0 10px;background:transparent;border:0;box-shadow:none;margin-bottom:0}
  #productionPage.dp-ready .production-commandbar h2{font-size:21px}
  #productionPage.dp-ready #productionBridgeState{padding:5px 0;background:transparent;border:0;margin:0;color:var(--muted);font-size:11px}
  #productionPage.dp-ready #productionMoreActions,#productionPage.dp-ready #productionJumpHarvestBtn,#productionPage.dp-ready #mobileProductionStats,#productionPage.dp-ready>.page-help,#productionPage.dp-ready #productionBoardResetColumns,.dp-command-hidden{display:none!important}
  .dp-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;flex-wrap:wrap}
  .dp-machine-counts,.dp-secondary-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
  .dp-machine-counts>span{display:flex;gap:6px;align-items:center;border:1px solid var(--border);background:var(--card);padding:5px 9px;border-radius:5px;color:var(--muted);font-size:12px}
  .dp-machine-counts b{color:var(--text);font-size:14px;font-variant-numeric:tabular-nums}
  .dp-tabs{display:flex;align-items:center;gap:2px;border-bottom:1px solid var(--border);margin:0 0 14px;overflow-x:auto;white-space:nowrap}
  .dp-tabs button{display:flex;gap:8px;align-items:center;background:transparent;color:var(--muted);padding:11px 15px;border:0;border-bottom:2px solid transparent;border-radius:0;font-size:14px;cursor:pointer}
  .dp-tabs button.active{color:var(--blue2);border-bottom-color:var(--blue);font-weight:650}
  .dp-tabs button span{font-size:11px;padding:1px 5px;background:var(--soft);border-radius:4px;font-variant-numeric:tabular-nums}
  .dp-tabs [hidden],.dp-panel[hidden],.dp-next-target[hidden],.dp-dialog [hidden],.dp-retry-notice[hidden],.dp-harvest-page [data-batch][hidden],.dp-ready [data-quantity-batch][hidden],.dp-ready [data-review][hidden]{display:none!important}
  .dp-panel>.section-card{margin:0 0 12px;padding:14px;box-shadow:none;border:1px solid var(--border);border-radius:6px}
  .dp-panel .section-head h2{font-size:15px}.dp-panel .section-head p{font-size:12px;margin:4px 0 0}
  .dp-ready #productionBoardSection>.section-head{margin-bottom:10px}
  .dp-ready .production-board-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:4px}
  .dp-ready #productionBoardSearch{flex:1;min-width:210px;max-width:420px;height:33px;font-size:13px}
  .dp-ready #productionFilterMenu>summary{display:none}
  .dp-ready #productionFilterMenu .responsive-controls-body{display:flex;position:static;box-shadow:none;border:0;background:transparent;padding:0;gap:8px;flex-wrap:wrap;align-items:center}
  .dp-ready #productionBoardGroup,.dp-ready #productionBoardStatus,.dp-ready #productionBoardSort{min-height:33px;height:33px;max-width:180px;font-size:12px}
  .dp-ready .production-sort-control{display:flex;align-items:center;gap:6px;font-size:12px}
  .dp-ready #productionBoardNotice{font-size:11px;margin:6px 0;color:var(--muted);min-height:16px}
  .dp-ready #productionBoardList{width:100%;max-width:100%;max-height:calc(100dvh - 335px);min-height:240px;overflow:auto;border:1px solid var(--border);border-radius:5px;overscroll-behavior:contain}
  .dp-scheduling-table,.dp-record-table{border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:12px;background:var(--card);color:var(--text);min-width:100%}
  .dp-scheduling-table th,.dp-scheduling-table td,.dp-record-table th,.dp-record-table td{padding:8px 10px;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle;overflow-wrap:anywhere;line-height:1.5}
  .dp-scheduling-table thead th,.dp-record-table thead th{position:sticky;top:0;z-index:2;height:34px;background:#edf2ef;color:var(--muted);font-weight:550;font-size:11px}
  .dp-scheduling-table thead th{padding:0;position:sticky}
  .dp-scheduling-table thead button{border:0;background:transparent;color:inherit;font:inherit;text-align:left;padding:9px 10px;width:100%;cursor:pointer;white-space:nowrap}
  .dp-scheduling-table thead button:disabled{opacity:1;cursor:default}
  [data-dp-resize]{position:absolute;right:-3px;top:0;width:7px;height:100%;cursor:col-resize;z-index:3;touch-action:none}
  [data-dp-resize]:hover,[data-dp-resize]:focus-visible{background:var(--blue)}
  .dp-scheduling-table tbody tr.dp-alt,.dp-record-table tbody tr:nth-child(even){background:#f7f9f8}
  .dp-scheduling-table tbody tr:hover,.dp-record-table tbody tr:hover{background:#edf7f4}
  .dp-scheduling-table strong{font-size:12px;font-weight:550;display:block}
  .dp-scheduling-table small,.dp-record-table small{display:block;color:var(--muted);font-size:10.5px;margin-top:3px}
  .dp-scheduling-table .dp-number{font-variant-numeric:tabular-nums;font-size:14px;font-weight:600;text-align:center}
  .dp-machine-link{border:0;background:transparent;color:var(--blue2);font-size:12px;font-weight:650;padding:0;cursor:pointer;text-align:left}
  .dp-next-link{display:flex;justify-content:space-between;align-items:center;gap:6px;width:100%;padding:4px 6px;border:1px solid transparent;border-radius:4px;background:transparent;text-align:left;font:inherit;color:var(--text);cursor:pointer;line-height:1.5}
  .dp-next-link:hover:not(:disabled){border-color:var(--border);background:var(--card)}
  .dp-next-link:disabled{opacity:1;cursor:default}.dp-next-link.dp-manual{color:var(--blue2);font-weight:550}
  .dp-state{font-size:11px;white-space:nowrap}.dp-state::before{content:'●';font-size:9px;margin-right:5px;color:#94a39b}
  .dp-state-printing::before,.dp-state-completed::before{color:var(--green)}.dp-state-failed::before,.dp-state-stale::before,.dp-state-offline::before,.dp-state-paused::before{color:var(--amber)}
  .dp-progress{display:block;height:3px;max-width:110px;background:var(--soft);border-radius:2px;overflow:hidden;margin-top:5px}.dp-progress i{display:block;height:100%;background:var(--blue);border-radius:2px}
  .dp-note{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--muted)}.dp-muted{color:var(--muted)}
  .dp-group th{background:var(--soft);color:var(--text);font-size:12px;padding:7px 10px}.dp-empty{padding:40px!important;text-align:center!important;color:var(--muted)}
  .dp-secondary-fold{border-top:1px solid var(--border);margin-top:12px;background:transparent}.dp-secondary-fold>summary{padding:12px 2px;color:var(--muted);font-size:12px;cursor:pointer}.dp-secondary-body .section-card{box-shadow:none;border:0;padding:8px 0;background:transparent}
  .dp-review-filter,.dp-harvest-filters,.dp-record-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:12px}
  .dp-review-filter label,.dp-harvest-filters label,.dp-record-filters label{display:grid;gap:5px;font-size:11px;color:var(--muted)}
  .dp-review-filter input{min-width:300px}.dp-harvest-filters select{min-width:160px}.dp-record-filters input{min-width:260px}
  .dp-review-filter input,.dp-harvest-filters select,.dp-record-filters input,.dp-record-filters select{min-height:33px;font-size:13px;padding:6px 8px;border:1px solid var(--border);border-radius:5px;background:#fff;color:var(--text)}
  #dpHarvestSummary,#dpQuantitySummary,#dpRecordStatusText{font-size:12px;color:var(--muted)}
  .dp-table-scroll{max-width:100%;overflow:auto;border:1px solid var(--border);border-radius:5px;max-height:calc(100dvh - 350px)}
  .dp-record-table{width:100%;min-width:900px;table-layout:auto}.dp-record-table th{white-space:nowrap}.dp-record-table td:first-child{min-width:160px}.dp-record-table td:last-child{max-width:220px}.dp-pagination{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:10px}.dp-pagination>span{margin-right:auto;color:var(--muted);font-size:12px}
  .dp-harvest-page>#dpHarvestTabs{margin-top:4px}.dp-harvest-page #harvestQueueSection{padding:14px;border-radius:6px;box-shadow:none}.dp-harvest-page #pendingHarvestList{display:flex;flex-direction:column;gap:0}.dp-harvest-page .harvest-card{padding:12px 10px;border:0;border-bottom:1px solid var(--border);border-radius:0;box-shadow:none;background:var(--card);display:flex;gap:18px;align-items:center}.dp-harvest-page .harvest-card:nth-of-type(even){background:#f7f9f8}.dp-harvest-page .harvest-card-main{flex:1;min-width:0}.dp-harvest-page .harvest-actions{flex:none}.dp-harvest-page .harvest-trace{font-size:11px}.dp-harvest-page .harvest-title-line{justify-content:flex-start;gap:14px}.dp-harvest-page .harvest-name{font-size:13px}.dp-harvest-page .harvest-card .meta{font-size:11px}.dp-harvest-page .quantity-chip{font-size:11px;padding:3px 7px}.dp-harvest-page #harvestSearch{max-width:340px;min-height:33px}
  .dp-capacity-back{display:flex;align-items:center;gap:14px;margin:0 0 12px;font-size:12px;color:var(--muted)}
  .dp-dialog{width:min(680px,92vw);max-height:88dvh;padding:0;border-radius:8px;border:1px solid var(--border);box-shadow:var(--shadow);background:var(--card);color:var(--text)}
  .dp-dialog .dialog-head{padding:14px 18px;border-bottom:1px solid var(--border);margin:0}.dp-dialog h2{font-size:17px;margin:0}.dp-dialog-body{padding:18px;overflow:auto}.dp-dialog label{display:grid;gap:6px;font-size:12px;color:var(--muted);margin-bottom:12px}.dp-dialog input,.dp-dialog select,.dp-dialog textarea{width:100%;min-width:0;padding:9px;border:1px solid var(--border);border-radius:5px;font:inherit;color:var(--text);background:#fff}.dp-next-target{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dp-next-context{padding:10px 12px;background:var(--soft);border-radius:5px;font-size:12px;margin:0 0 16px}.dp-dialog-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:12px;border-top:1px solid var(--border);margin-top:14px}.dp-fact-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px}.dp-fact-grid span{display:block;font-size:11px;color:var(--muted);margin-bottom:5px}.dp-fact-grid strong{font-size:14px;font-weight:600}.dp-fact-grid p,.dp-dialog-body>p,.dp-dialog-body details{font-size:12px;line-height:1.6}.dp-raw-file{overflow-wrap:anywhere}.dp-retry-notice{padding:10px 12px;background:#fff5df;color:#805a12;font-size:12px;margin-bottom:12px;border-radius:5px}.dp-resizing{cursor:col-resize;user-select:none}
}
@media (min-width:761px){
  .dp-ready>.production-commandbar>.section-title{display:none}
  .dp-command-group,#dpPrimaryActions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
  .dp-ready .production-board-filters{display:grid;grid-template-columns:minmax(180px,1fr) auto;align-items:center}
  .dp-ready #productionBoardSearch{max-width:none;width:100%}
  .dp-ready #productionFilterMenu{min-width:0;max-width:none}
  .dp-ready #productionFilterMenu .responsive-controls-body{flex-wrap:nowrap;width:auto;max-width:none}
  .dp-ready #productionBoardGroup{width:160px}.dp-ready #productionBoardStatus{width:140px}
  .dp-ready .production-sort-control{flex:none;white-space:nowrap;gap:6px}
  .dp-ready .production-sort-control label{width:auto;min-width:28px;white-space:nowrap;flex:none;display:block}
  .dp-ready #productionBoardSort{width:108px;flex:none}
  .dp-ready #productionBoardSortDirection{width:72px;min-width:72px;flex:none;white-space:nowrap;padding:6px 8px}
  .dp-harvest-page> .section-head h2{display:none}
  .dp-harvest-page #harvestWorkspaceStatus:empty,.dp-harvest-page .production-group-heading[hidden]{display:none!important}
  .dp-dialog .dialog-head>[data-dp-close]{width:auto;min-width:56px;flex:none;white-space:nowrap}
}
@media (min-width:761px) and (max-width:1200px){
  .dp-ready .production-board-filters{grid-template-columns:1fr}
  .dp-ready #productionBoardSearch{max-width:400px}
  .dp-ready #productionFilterMenu .responsive-controls-body{justify-content:flex-start;flex-wrap:wrap}
}
@media (min-width:761px){
  .dp-capacity-page #capacityFacts .capacity-facts-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
  .dp-capacity-page #capacityFacts:not(.expanded) [data-tier="secondary"]{display:none}
  .dp-capacity-page #capacityFacts .capacity-facts-more{display:block;margin-top:10px}
  .dp-capacity-page .section-card{box-shadow:none;border-radius:6px}
  .dp-capacity-page .section-head h2{font-size:15px}
  .dp-capacity-detail:not(.dp-show-unit-details) #capacityUnitList{display:none}
  .dp-capacity-tools{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:12px 0}
  .dp-capacity-tools label{display:grid;gap:5px;color:var(--muted);font-size:11px}
  .dp-capacity-tools input{padding:7px 9px;min-width:230px;border:1px solid var(--border);border-radius:5px;font-size:13px}
}
@media (min-width:761px){
  .dp-capacity-page>.page-commandbar .page-duplicate-title{display:none}
  .dp-capacity-page .empty-state{min-height:0;padding:12px}
}
.dp-limit-panel{margin:14px 0;padding:14px 0;border-top:1px solid var(--border,#dbe5f2)}
.dp-limit-check{display:flex!important;align-items:center;gap:8px;margin:8px 0}
.dp-limit-check input{width:18px!important;min-height:18px!important;margin:0}
.dp-limit-fields{display:flex;flex-wrap:wrap;gap:12px;align-items:end}
.dp-limit-fields label{min-width:100px;max-width:360px}.dp-limit-fields input{max-width:150px}
.dp-limit-panel[hidden],.dp-limit-panel [hidden]{display:none!important}
