/* CHAPINTER R200 — alinhamento final de grades, linhas operacionais e formulários. */
body[data-app-shell="1"] main :where(.table-wrap,.table-scroll,.data-table-wrap,.responsive-table){
  isolation:isolate;
}
body[data-app-shell="1"] main :where(.triage-table,.user-table-wrap,.consistency-table-wrap){
  width:100%;
  max-width:100%;
  overflow:auto;
  border:1px solid #c8d9df;
  border-radius:12px;
  background:#fff;
  scrollbar-gutter:stable;
  -webkit-overflow-scrolling:touch;
}
body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) :where(th,td){
  box-sizing:border-box;
  height:auto;
}
body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) tbody td{
  vertical-align:middle!important;
}
body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) :where(td,th):not(:first-child){
  font-variant-numeric:tabular-nums;
}
body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) td>form{
  display:flex;
  align-items:center;
  gap:8px;
  width:max-content;
  max-width:100%;
  margin:0;
}
body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) td>form :where(input,select,button){
  min-height:36px;
  margin:0;
}
body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) td>form button{
  white-space:nowrap;
}
body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) td:has(>.status-chip),
body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) td:has(>.badge){
  white-space:nowrap;
}
body[data-app-shell="1"] main :where(.inline-form,.filter-grid,.omni-filter-grid)>button,
body[data-app-shell="1"] main :where(.inline-form,.filter-grid,.omni-filter-grid)>.button{
  align-self:end;
  min-height:42px;
  margin:0!important;
}
body[data-app-shell="1"] main :where(.inline-form,.filter-grid,.omni-filter-grid)>label{
  display:grid;
  align-content:end;
  min-width:0;
  margin:0!important;
}
body[data-app-shell="1"] main :where(.inline-form,.filter-grid,.omni-filter-grid)>label>:where(input,select,textarea){
  width:100%;
  margin-bottom:0;
}
body[data-app-shell="1"] main details>summary{
  box-sizing:border-box;
  max-width:100%;
}
body[data-app-shell="1"] main :where(.operational-drawer,.new-supplier-drawer)>summary{
  position:relative;
  list-style:none;
  padding-right:44px!important;
}
body[data-app-shell="1"] main :where(.operational-drawer,.new-supplier-drawer)>summary::-webkit-details-marker{display:none}
body[data-app-shell="1"] main :where(.operational-drawer,.new-supplier-drawer)>summary::after{
  content:"⌄";
  position:absolute;
  right:18px;
  color:#087c70;
  font-size:18px;
}
body[data-app-shell="1"] main :where(.operational-drawer,.new-supplier-drawer)[open]>summary::after{content:"⌃"}
body[data-app-shell="1"] .triage-table table{min-width:760px}
body[data-app-shell="1"] .triage-table :where(th,td):nth-child(n+3):nth-child(-n+5){text-align:right}
body[data-app-shell="1"] .triage-table :where(th,td):last-child{text-align:center}

/* Estoque: grade verdadeira, sem o marcador nativo sobre a coluna Quarentena. */
body[data-app-shell="1"] .inventory-table{
  width:100%;
  overflow:auto;
  scrollbar-gutter:stable both-edges;
}
body[data-app-shell="1"] .inventory-table .inventory-row{
  grid-template-columns:minmax(390px,2.8fr) repeat(5,minmax(112px,.85fr));
  min-width:1000px;
}
body[data-app-shell="1"] .inventory-table summary.inventory-row{
  list-style:none;
  cursor:pointer;
}
body[data-app-shell="1"] .inventory-table summary.inventory-row::-webkit-details-marker{display:none}
body[data-app-shell="1"] .inventory-table summary.inventory-row::marker{content:""}
body[data-app-shell="1"] .inventory-table .inventory-row>span{
  display:flex;
  align-items:center;
  min-height:64px;
  padding:13px 15px;
}
body[data-app-shell="1"] .inventory-table .inventory-head>span{
  min-height:46px;
}
body[data-app-shell="1"] .inventory-table .inventory-row>span:first-child{
  align-items:flex-start;
  flex-direction:column;
  justify-content:center;
}
body[data-app-shell="1"] .inventory-table .inventory-row>span:not(:first-child){
  justify-content:center;
  padding-inline:15px;
  text-align:center;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
body[data-app-shell="1"] .inventory-table .inventory-head>span:not(:first-child){
  justify-content:center;
  padding-inline:15px;
  text-align:center;
}
body[data-app-shell="1"] .inventory-table summary>span:first-child{
  position:relative;
  padding-right:46px;
}
body[data-app-shell="1"] .inventory-table summary>span:first-child::after{
  right:16px;
}
body[data-app-shell="1"] .inventory-table details>form.inline-form{
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  align-items:end;
  gap:12px 16px;
}
body[data-app-shell="1"] .inventory-table details>form.inline-form>label{
  align-self:stretch;
  margin:0;
}

/* Listas e cartões com valores ficam na mesma linha-base. */
body[data-app-shell="1"] :where(.compact-list,.user-table)>div{
  align-items:center;
  gap:14px;
}
body[data-app-shell="1"] :where(.page-actions,.hero-actions,.top-actions)>:where(a,button,form){
  align-self:center;
  margin-block:0;
}
body[data-app-shell="1"] :where(.page-actions,.hero-actions,.top-actions)>form>button{margin:0}
body[data-app-shell="1"] :where(.metric-card,.stat-card) strong{
  font-variant-numeric:tabular-nums;
}
body[data-app-shell="1"] :where(.section-heading,.panel-heading)>.count-badge,
body[data-app-shell="1"] :where(.section-heading,.panel-heading)>.status-chip{
  flex:0 0 auto;
  align-self:flex-start;
}

@container workspace (max-width:1050px){
  body[data-app-shell="1"] .inventory-table .inventory-row{grid-template-columns:minmax(330px,2.5fr) repeat(5,minmax(105px,.8fr))}
}
@media(max-width:700px){
  body[data-app-shell="1"] .inventory-table{overflow:visible;scrollbar-gutter:auto}
  body[data-app-shell="1"] .inventory-table .inventory-row{min-width:0;grid-template-columns:1fr 1fr}
  body[data-app-shell="1"] .inventory-table .inventory-row>span{min-height:0}
  body[data-app-shell="1"] .inventory-table .inventory-row>span:not(:first-child){justify-content:flex-start;padding-right:9px;text-align:left;white-space:normal}
  body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) td>form{width:100%;flex-wrap:wrap}
  body[data-app-shell="1"] main :where(.triage-table,.user-table-wrap,.consistency-table-wrap){scrollbar-gutter:auto}
}
@media print{
  body[data-app-shell="1"] .inventory-table .inventory-row{min-width:0;grid-template-columns:minmax(260px,2.5fr) repeat(5,minmax(65px,.7fr))}
  body[data-app-shell="1"] .inventory-table .inventory-row>span{padding:7px 8px;min-height:0}
}
