/* EnergyBelt 3.1 — desktop inspection workspace corrective layout.
   The earlier .page[data-eb31-inspection=compact] grid rules have higher
   specificity than the consolidated workspace rules appended to the bundle. */
[data-eb-ui="3.1"] .page[data-eb31-inspection="compact"] .eb31-workspace {
  display: block;
  grid-template-columns: none;
  width: min(100%, 1260px);
  max-width: 1260px;
  min-width: 0;
  box-sizing: border-box;
  margin: 18px auto 28px;
}

[data-eb-ui="3.1"] .page[data-eb31-inspection="compact"] .eb31-workspace > .eb31-inspection-head {
  position: static;
  top: auto;
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  max-width: none;
  min-width: 0;
  max-height: none;
  height: auto;
  overflow: visible;
  box-sizing: border-box;
  margin: 0;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px solid #e1ebee;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

[data-eb-ui="3.1"] .page[data-eb31-inspection="compact"] .eb31-workspace > .inspection-layout {
  display: block;
  position: static;
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 18px 0 0;
  box-sizing: border-box;
}

[data-eb-ui="3.1"] .page[data-eb31-inspection="compact"] .eb31-workspace .inspection-layout > .inspection-section {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

[data-eb-ui="3.1"] .page[data-eb31-inspection="compact"] .eb31-workspace .inspection-layout > .inspection-section > .inspection-body {
  padding: 0;
  min-height: 0;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

[data-eb-ui="3.1"] .page[data-eb31-inspection="compact"] .eb31-workspace .eb31-side-photos,
[data-eb-ui="3.1"] .page[data-eb31-inspection="compact"] .eb31-workspace .eb31-side-measures {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

[data-eb-ui="3.1"] .page[data-eb31-inspection="compact"] .eb31-workspace .eb31-photos-thumbs {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 145px), 1fr));
  max-width: 100%;
}

[data-eb-ui="3.1"] .page[data-eb31-inspection="compact"] .eb31-workspace .eb31-side-photos .wall-photo-actions {
  flex-wrap: wrap;
  max-width: 100%;
}

@media (min-width: 900px) {
  [data-eb-ui="3.1"] .page[data-eb31-inspection="compact"] .eb31-workspace > .eb31-inspection-head {
    display: grid;
    grid-template-columns: minmax(240px, 315px) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: clamp(20px, 3vw, 48px);
    row-gap: 12px;
    align-items: center;
  }
}

@media (max-width: 899px) {
  [data-eb-ui="3.1"] .page[data-eb31-inspection="compact"] .eb31-workspace > .eb31-inspection-head {
    display: block;
    padding-bottom: 15px;
  }
  [data-eb-ui="3.1"] .page[data-eb31-inspection="compact"] .eb31-workspace {
    width: 100%;
    margin: 12px auto;
  }
}

@media (max-width: 530px) {
  [data-eb-ui="3.1"] .page[data-eb31-inspection="compact"] .eb31-workspace .eb31-photos-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
