/* Strong, page-specific correction for the active Cost Sheet Import Review. */
html body #app .csi-page,
html body .shell .csi-page,
html body .shell.detail .csi-page {
  display: block !important;
  width: min(1120px, calc(100% - 32px)) !important;
  min-width: 0 !important;
  max-width: 1120px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: 0 !important;
  padding-bottom: 92px !important;
  padding-left: 0 !important;
  box-sizing: border-box !important;
}

html body #app .csi-page > .csi-wait,
html body #app .csi-page > .csi-review-grid,
html body #app .csi-page > .csi-components,
html body #app .csi-page > .csi-fob {
  width: 100% !important;
  max-width: 1120px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  box-sizing: border-box !important;
}

html body #app .csi-page .csi-review-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-top: 12px !important;
  margin-bottom: 12px !important;
}

html body #app .csi-page .csi-review-card {
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

html body #app .csi-page .csi-review-card h2,
html body #app .csi-page .csi-components h2 {
  margin: 0 !important;
  padding: 10px 13px !important;
  min-height: 0 !important;
  line-height: 1.15 !important;
}

html body #app .csi-page .csi-review-card dt,
html body #app .csi-page .csi-review-card dd {
  min-height: 0 !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  line-height: 1.15 !important;
}

html body #app .csi-page .csi-picture {
  width: auto !important;
  max-width: 145px !important;
  height: 132px !important;
  max-height: 132px !important;
  margin: 5px auto 9px !important;
  object-fit: contain !important;
}

html body #app .csi-page .csi-components {
  min-height: 0 !important;
  margin-top: 12px !important;
  margin-bottom: 12px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

html body #app .csi-page .csi-components table,
html body #app .csi-page .csi-components .table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

html body #app .csi-page .csi-components th,
html body #app .csi-page .csi-components td {
  height: 30px !important;
  min-height: 0 !important;
  padding: 5px 9px !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  vertical-align: middle !important;
}

html body #app .csi-page .csi-components th {
  height: 27px !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  background: #edf4f1 !important;
  color: #31564c !important;
  font-size: 10px !important;
}

html body #app .csi-page .csi-fob > div {
  min-height: 0 !important;
  padding: 7px 11px !important;
}

html body #app .csi-page .csi-actions {
  position: fixed !important;
  z-index: 500 !important;
  right: 50% !important;
  bottom: 14px !important;
  left: auto !important;
  width: min(1088px, calc(100% - 64px)) !important;
  max-width: 1088px !important;
  transform: translateX(50%) !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #d5e1dc !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: 0 10px 30px rgba(16, 47, 40, .18) !important;
  box-sizing: border-box !important;
}

html body #app .csi-page .csi-actions button,
html body #app .csi-page .csi-actions a.button {
  min-height: 34px !important;
  height: auto !important;
  padding: 8px 13px !important;
  border-radius: 9px !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  html body #app .csi-page { width: calc(100% - 20px) !important; }
  html body #app .csi-page .csi-review-grid { grid-template-columns: 1fr !important; }
  html body #app .csi-page .csi-actions {
    width: calc(100% - 20px) !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
  }
}
