.exterior-roof-stage {
  padding: 16px;
  margin-bottom: 18px;
  border: 1px solid #aec9ed;
  border-left: 4px solid #0864c9;
  border-radius: 12px;
  background: #eef6ff;
}
.building-report-roof #siteCreateRoofingEstimate,
.building-report-roof #roofMeasurementEditor label[hidden] {
  display: none !important;
}
.exterior-roof-stage h3 {
  margin: 0 0 8px;
}
.exterior-roof-stage small {
  display: block;
  line-height: 1.5;
}
.exterior-roof-stage [role="status"] {
  font-weight: 700;
}
.exterior-envelope-dialog {
  font-family: Arial, Helvetica, sans-serif;
  width: min(1480px, 96vw);
  max-width: 96vw;
  height: 94vh;
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #f3f6fa;
  color: #17263f;
  overflow: hidden;
}
.exterior-envelope-dialog::backdrop {
  background: #14263bc7;
}
.exterior-envelope-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.exterior-envelope-shell > header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: #142941;
  color: white;
  border-bottom: 4px solid #ff7300;
}
.exterior-envelope-shell h2 {
  margin: 5px 0;
}
.exterior-envelope-shell header p {
  margin: 4px 0;
}
.exterior-envelope-shell .eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #7bd5ff;
}
.exterior-envelope-shell header button {
  align-self: flex-start;
  border-radius: 50%;
  background: white;
  color: #17263f;
  font-size: 25px;
  min-width: 44px;
  min-height: 44px;
}
.exterior-envelope-body {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
.exterior-capture,
.exterior-report {
  overflow: auto;
  padding: 20px;
  min-width: 0;
}
.exterior-capture {
  background: white;
  border-right: 1px solid #cbd8e6;
}
.exterior-envelope-shell button {
  cursor: pointer;
  background: #075ad1;
  color: white;
  border: 1px solid #075ad1;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  min-height: 40px;
  line-height: 1.3;
}
.exterior-envelope-shell button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.exterior-envelope-shell button:focus-visible,
.exterior-envelope-shell input:focus-visible,
.exterior-envelope-shell select:focus-visible {
  outline: 3px solid #ff9100;
  outline-offset: 2px;
}
.exterior-envelope-shell input,
.exterior-envelope-shell select {
  max-width: 100%;
  padding: 9px;
  border: 1px solid #a5b9cf;
  border-radius: 6px;
  background: white;
  color: #17263f;
}
.exterior-envelope-shell label {
  display: block;
  font-size: 13px;
  font-weight: 650;
}
.exterior-envelope-shell label > input:not([type="checkbox"]),
.exterior-envelope-shell label > select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 5px 0 12px;
}
.exterior-envelope-shell input[type="checkbox"] {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 8px;
}
.exterior-envelope-shell p,
.exterior-envelope-shell li {
  font-size: 13px;
  line-height: 1.55;
}
.exterior-envelope-shell details {
  margin-bottom: 18px;
}
.exterior-envelope-shell summary {
  font-weight: 800;
  cursor: pointer;
  line-height: 1.4;
}
.exterior-envelope-shell fieldset {
  border: 1px solid #bbccde;
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
}
.exterior-envelope-shell legend {
  text-transform: capitalize;
  font-weight: 750;
}
.exterior-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
.exterior-view {
  border: 1px solid #c7d7e8;
  border-radius: 9px;
  padding: 8px;
  background: #f6faff;
  overflow: hidden;
}
.exterior-view b {
  display: block;
  min-height: 36px;
  font-size: 12px;
}
.exterior-view img {
  max-width: 100%;
  height: 75px;
  object-fit: cover;
}
.exterior-view span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 400;
}
.exterior-view input[type="file"] {
  font-size: 10px;
  padding: 3px !important;
  position: static !important;
  opacity: 1 !important;
}
.exterior-actions,
.exterior-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.exterior-tabs button {
  background: white;
  color: #075ad1;
  text-transform: capitalize;
}
.exterior-tabs button[aria-pressed="true"] {
  background: #075ad1;
  color: white;
}
.exterior-warning {
  background: #fff2e4;
  border-left: 4px solid #ff7300;
  padding: 10px;
}
.exterior-envelope-shell progress {
  width: 100%;
  accent-color: #075ad1;
}
.exterior-envelope-shell .error {
  color: #a21818;
  font-weight: 700;
}
#exteriorSaved {
  font-size: 11px;
  color: #405d48;
}
#exteriorPhotoStage {
  width: 100%;
  background: #e3ebf3;
  position: relative;
  border: 1px solid #bbccde;
  border-radius: 8px;
  overflow: hidden;
}
#exteriorSvg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  touch-action: none;
  user-select: none;
}
#exteriorSvg [data-handle] {
  cursor: grab;
}
#exteriorSvg [data-handle]:active {
  cursor: grabbing;
}
#exteriorEditor {
  padding: 15px;
  background: white;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
  margin: 14px 0;
}
#exteriorTotals {
  padding: 16px;
  background: #eaf3ff;
  border-radius: 8px;
}
#exteriorTotals h3 {
  margin: 0;
}
#exteriorTotals table {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
}
#exteriorTotals td,
#exteriorTotals th {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid #cbd8e6;
}
.exterior-review {
  padding: 18px;
  background: white;
  border: 1px solid #cbd8e6;
  border-radius: 9px;
  margin-top: 16px;
}
.exterior-review label {
  margin-bottom: 15px;
}
.exterior-review small {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 10px;
}
#saveExterior {
  background: #e55b00;
  border-color: #e55b00;
  width: 100%;
}
.exterior-envelope-shell [hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  .exterior-envelope-dialog {
    width: 98vw;
    max-width: 98vw;
    height: 97vh;
    max-height: 97vh;
  }
  .exterior-envelope-shell > header {
    padding: 14px;
  }
  .exterior-envelope-shell h2 {
    font-size: 20px;
  }
  .exterior-envelope-body {
    display: block;
    overflow: auto;
  }
  .exterior-capture,
  .exterior-report {
    overflow: visible;
    padding: 14px;
  }
  .exterior-capture {
    border-right: 0;
    border-bottom: 1px solid #cbd8e6;
  }
  .exterior-view-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .exterior-envelope-shell button {
    min-height: 44px;
  }
  .exterior-report {
    padding-bottom: 40px;
  }
}
