/* Structune Hub V17.7.4.475 — Cold Rolled lifecycle and inner-view cleanup.
   The register table and all table/header geometry remain owned by their
   existing sources. */

html.cold-rolled-first-paint,
html.cold-rolled-first-paint body,
html body.v17-cold-rolled-constrained,
html body.v17-uphb-cold{
  width:100%;
  height:100%;
  overflow:hidden!important;
  background:#0B1723!important;
}

/* Isolate the Cold Rolled route before and after the SPA lifecycle runs. */
html.cold-rolled-first-paint #content>.view:not(#view-cold-rolled),
html.cold-rolled-first-paint #arToolsFab,
html.cold-rolled-first-paint #arToolsDock,
html.cold-rolled-first-paint #arToolMessage,
html.cold-rolled-first-paint #labelsPrintModal,
html.cold-rolled-first-paint #labelsPrintStage,
html.cold-rolled-first-paint #arMarkerModal,
html.cold-rolled-first-paint #productionPasteModal,
html.cold-rolled-first-paint #productionConfirmModal,
html.cold-rolled-first-paint body>.v17-right-handle,
body.v17-cold-rolled-constrained #content>.view:not(#view-cold-rolled),
body.v17-cold-rolled-constrained #arToolsFab,
body.v17-cold-rolled-constrained #arToolsDock,
body.v17-cold-rolled-constrained #arToolMessage,
body.v17-cold-rolled-constrained #labelsPrintModal,
body.v17-cold-rolled-constrained #labelsPrintStage,
body.v17-cold-rolled-constrained #arMarkerModal,
body.v17-cold-rolled-constrained #productionPasteModal,
body.v17-cold-rolled-constrained #productionConfirmModal,
body.v17-cold-rolled-constrained>button.v17-right-handle{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

/* The register fills the existing shared A3 shell. Scrolling remains inside
   its established table panel; no viewport-level reserve is retained. */
html[data-structune-shell="v432"] body.v432-shell-geometry.v17-cold-rolled-constrained #view-cold-rolled{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  color:#eef5fb!important;
  background:#0B1723!important;
  z-index:20!important;
}
body.v17-cold-rolled-constrained #view-cold-rolled>.assembly-filter-toolbar,
body.v17-cold-rolled-constrained #view-cold-rolled>#coldRolledMetadataStatus{
  flex:0 0 auto!important;
  min-width:0!important;
  margin-top:0!important;
}
body.v17-cold-rolled-constrained #view-cold-rolled>.cold-rolled-table-panel{
  flex:1 1 auto!important;
  min-width:0!important;
  min-height:0!important;
  max-height:none!important;
  margin-bottom:0!important;
  overflow:auto!important;
}

/* Standalone Drawing / Production / History page. */
html body.v17-uphb-cold .workspace{
  padding:0!important;
  overflow:hidden!important;
  color:#eef5fb!important;
  background:#0B1723!important;
}
html body.v17-uphb-cold .tabs{
  box-sizing:border-box!important;
  flex:0 0 42px!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0 14px!important;
  display:flex!important;
  align-items:stretch!important;
  gap:10px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  border-bottom:1px solid #1d3446!important;
  background:#0B1723!important;
}
html body.v17-uphb-cold .tabs .tab-link{
  flex:0 0 auto!important;
  padding:0 12px!important;
  color:#91a8ba!important;
  background:transparent!important;
  border-bottom-color:transparent!important;
}
html body.v17-uphb-cold .tabs .tab-link:hover{color:#eef5fb!important}
html body.v17-uphb-cold .tabs .tab-link.active{
  color:#55b8f0!important;
  border-bottom-color:#0877ef!important;
}
html body.v17-uphb-cold #panel-production.panel.active,
html body.v17-uphb-cold #panel-history.panel.active{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:18px!important;
  overflow:auto!important;
  color:#eef5fb!important;
  background:#0B1723!important;
}
html body.v17-uphb-cold .availability{color:#91a8ba!important}
html body.v17-uphb-cold .workflow-row,
html body.v17-uphb-cold .workflow-note,
html body.v17-uphb-cold .status-box{
  color:#dce8f1!important;
  border-color:#294257!important;
  background:#102535!important;
}
html body.v17-uphb-cold .workflow-row.hold{
  border-color:#8f4747!important;
  background:#2a2025!important;
}
html body.v17-uphb-cold .workflow-num{background:#294257!important;color:#dce8f1!important}
html body.v17-uphb-cold .workflow-row.complete .workflow-num{background:#17825f!important;color:#fff!important}
html body.v17-uphb-cold .workflow-by,
html body.v17-uphb-cold .workflow-date{color:#91a8ba!important}
html body.v17-uphb-cold .workflow-btn{
  color:#dce8f1!important;
  border-color:#31536c!important;
  background:#102b3d!important;
}
html body.v17-uphb-cold .workflow-btn.primary{color:#fff!important;border-color:#0877ef!important;background:#0877ef!important}

/* Colour-only treatment: history columns and header arrangement are unchanged. */
html body.v17-uphb-cold .history-table{border-color:#294257!important;background:#102535!important;color:#dce8f1!important}
html body.v17-uphb-cold .history-table th{background:#102b3d!important;color:#91a8ba!important}
html body.v17-uphb-cold .history-table th,
html body.v17-uphb-cold .history-table td{border-bottom-color:#294257!important}

html body.v17-uphb-cold .prod-modal{background:rgba(2,12,20,.76)!important}
html body.v17-uphb-cold .prod-dialog{
  color:#eef5fb!important;
  border:1px solid #31536c!important;
  background:#0B1723!important;
  box-shadow:0 24px 70px rgba(0,0,0,.48)!important;
}
html body.v17-uphb-cold .prod-dialog .sub,
html body.v17-uphb-cold .field label{color:#91a8ba!important}
html body.v17-uphb-cold .field input,
html body.v17-uphb-cold .field select,
html body.v17-uphb-cold .field textarea{
  color:#eef5fb!important;
  border-color:#31536c!important;
  background:#102b3d!important;
}
html body.v17-uphb-cold .modal-actions button{
  color:#dce8f1!important;
  border-color:#31536c!important;
  background:#102b3d!important;
}
html body.v17-uphb-cold .modal-actions .submit{color:#fff!important;border-color:#17825f!important;background:#17825f!important}

@media (max-width:640px){
  html body.v17-uphb-cold{overflow:hidden!important}
  html body.v17-uphb-cold .workspace{overflow:hidden!important}
}
