.mobile-blocker {
  display: none;
}

.mobile-blocker__panel {
  width: min(100% - 32px, 420px);
  padding: 26px 22px;
  border: 1px solid rgba(226, 193, 91, 0.42);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #fff8d7 0%, #ffe88d 100%);
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.18);
  text-align: center;
}

.mobile-blocker__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #f4c400;
  color: #111;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
}

.mobile-blocker__panel h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  line-height: 1.1;
}

.mobile-blocker__panel p {
  margin: 0;
  color: #4c4c4c;
  font-size: 1rem;
  line-height: 1.45;
}

.form-section {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 245, 247, 0.96));
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 16px;
}

.project-record-stack {
  padding: 16px 16px 16px;
  display: grid;
  gap: 0;
}

.record-group {
  border: 0.5px solid #111;
  border-top: 0;
  background: #fff;
}

.record-group-title {
  padding: 8px 12px 7px;
  background: #004a60;
  color: #fff;
  font-size: 1.1rem;
  font-family: "Outfit", "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 200;
  line-height: 1.15;
}

.record-grid,
.comments-grid {
  padding: 0;
}

.record-grid {
  grid-template-columns: 2fr 1.55fr 1.3fr;
}

.comments-grid {
  grid-template-columns: 2.8fr 1fr;
  align-items: start;
}

.comments-field textarea {
  min-height: 180px;
  height: 100%;
}

.comments-field {
  height: 100%;
}

.stamp-upload-wrap {
  display: grid;
  justify-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
}

.stamp-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 200px;
  height: 200px;
  border: 0.5px solid #111;
  background: #fff;
  overflow: hidden;
}

.stamp-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.stamp-placeholder {
  color: #49545c;
  font-size: 0.95rem;
  text-align: center;
  padding: 12px;
}

.stamp-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.permit-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 0.95fr) minmax(30rem, 1.75fr);
  align-items: stretch;
  background: #fff;
}

.permit-grid .field {
  min-width: 0;
}

.permit-grid .permit-type-field {
  min-width: 30rem;
}

@media (max-width: 1040px) and (min-width: 641px) {
  .permit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .permit-grid .permit-type-field {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .property-grid {
    grid-template-columns: 2fr 1fr 1.25fr;
  }

  .property-grid > .field:nth-child(1) {
    grid-column: 1 / 3;
  }

  .property-grid > .field:nth-child(2) {
    grid-column: 3 / 4;
  }

  .property-grid > .field:last-child {
    grid-column: 1 / -1;
  }
}

.property-grid {
  grid-template-columns: 2fr 1fr 1.25fr;
  align-items: stretch;
  border: 0.5px solid #111;
  background: #fff;
}

.property-grid .field {
  min-width: 0;
}

.property-address {
  grid-column: span 1;
}

.permit-grid .field:last-child,
.property-grid .field:last-child {
  border-right: 0;
}

.toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  padding: 18px;
  margin-bottom: 0;
}

.project-actions {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  justify-items: start;
}

.project-actions .btn-print,
.project-actions .btn-secondary {
  min-height: 48px;
  padding-inline: 20px;
}

.project-actions-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.toolbar .field {
  margin: 0;
  flex: 1 1 260px;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#individualComponentsSection {
  margin-top: 20px;
  border-color: #256fb0;
  background: linear-gradient(180deg, #b9e1ff 0%, #7fc8ff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    0 10px 24px rgba(37, 111, 176, 0.14);
}

#individualComponentsSection .section-banner {
  background: linear-gradient(180deg, #2a688f 0%, #174663 100%);
}

#individualComponentsSection .toolbar {
  background: transparent;
}

#individualComponentsSection .toolbar select {
  height: 58px;
  min-height: 58px;
}

#individualComponentsSection .toolbar .btn-primary {
  height: 58px;
  min-height: 58px;
}

.sort-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -4px 0 18px;
  padding: 12px 14px;
  border: 1px solid #e2c15b;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff5bf 0%, #f5dd6d 100%);
  color: #5b4500;
  font-size: 0.94rem;
  font-weight: 700;
}

.sort-hint-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 42px;
  height: 38px;
  align-self: center;
}

.sort-hint-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 21px solid transparent;
  border-right: 21px solid transparent;
  border-bottom: 36px solid #a87300;
  transform: translate(-50%, -50%);
}

.sort-hint-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(50% + 2px);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 28px solid #ffe88d;
  transform: translate(-50%, -50%);
}

.sort-hint-icon-inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7b5600;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(4px);
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.35rem;
  padding: 12px 18px;
  font: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-icon-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: 1.55em;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
  transform: translateY(-0.08em);
}

.btn-icon-minus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: 1.55em;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
  transform: translateY(-0.12em);
}

.btn-icon-print {
  display: inline-flex;
  width: 1.53em;
  height: 1.53em;
  margin-right: 10px;
  flex: 0 0 auto;
  object-fit: contain;
  transform: translateY(0.02em);
}

button:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: #e8ecef;
  color: var(--ink);
}

.btn-print {
  background: #daff00;
  color: #004a60;
  border: 0.5px solid #004a60;
}

.btn-save-roc {
  background: linear-gradient(135deg, #245c85, #256fb0);
  color: #fff;
  border: 0.5px solid #0e4464;
}

.btn-danger {
  background: #56215e;
  color: #fff;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  transition: 0.4s;
}

.slider::before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  transition: 0.4s;
}

.switch input:checked + .slider {
  background-color: #2196f3;
}

.switch input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

.switch input:checked + .slider::before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round::before {
  border-radius: 50%;
}

.field-list {
  display: grid;
  gap: 18px;
}

.component-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 0 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 246, 248, 0.95));
  cursor: move;
  overflow: hidden;
}

.component-card.is-dragging {
  opacity: 0.55;
  border-color: var(--accent);
}

.component-dragbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 68px;
  margin: 0 -18px 18px;
  padding: 12px 16px;
  border-bottom: 1px solid #e2c15b;
  background: linear-gradient(180deg, #fff5bf 0%, #f5dd6d 100%);
}

.component-dragbar::before,
.component-dragbar::after {
  content: "";
  position: absolute;
  top: 0;
  width: 44px;
  height: 100%;
  background:
    radial-gradient(circle at 10px 10px, rgba(154, 106, 0, 0.24) 0, rgba(154, 106, 0, 0.24) 3px, transparent 3px),
    radial-gradient(circle at 24px 18px, rgba(154, 106, 0, 0.18) 0, rgba(154, 106, 0, 0.18) 2px, transparent 2px),
    repeating-linear-gradient(135deg, rgba(154, 106, 0, 0.14) 0 4px, transparent 4px 8px);
  opacity: 0.95;
}

.component-dragbar::before {
  left: 0;
  border-right: 1px solid rgba(154, 106, 0, 0.2);
}

.component-dragbar::after {
  right: 0;
  border-left: 1px solid rgba(154, 106, 0, 0.2);
  transform: scaleX(-1);
}

.component-dragbar-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 42px;
  height: 38px;
}

.component-dragbar-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 21px solid transparent;
  border-right: 21px solid transparent;
  border-bottom: 36px solid #a87300;
  transform: translate(-50%, -50%);
}

.component-dragbar-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(50% + 1px);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 28px solid #ffe88d;
  transform: translate(-50%, -50%);
}

.component-dragbar-icon-inner {
  position: relative;
  z-index: 1;
  color: #7b5600;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(4px);
}

.component-dragbar-label {
  position: relative;
  z-index: 1;
  font-family: "Outfit", "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  color: #5b4500;
  font-size: 1.88rem;
  font-weight: 200;
  line-height: 1.3;
  text-align: center;
  max-width: 620px;
}

.component-sort-banner {
  display: block;
  margin: 0 0 18px;
  border: 1px solid #e2c15b;
  border-radius: var(--radius);
}

.component-sort-banner-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.component-sort-banner-subcopy {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding-top: 12px;
  width: fit-content;
  max-width: calc(100% - 60px);
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid rgba(154, 106, 0, 0.28);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  color: #6a5300;
}

.component-head {
  position: relative;
  display: grid;
  grid-template-columns: max-content max-content minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 15px 58px;
  background: #004a60;
  color: #fff;
  overflow: hidden;
}

.component-head.has-mode-toggle {
  min-height: 108px;
  padding-top: 8px;
  padding-bottom: 8px;
  grid-template-columns: max-content max-content auto;
}

.component-head-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 100%;
  grid-column: 1;
}

.component-head::before,
.component-head::after {
  content: "";
  position: absolute;
  top: 0;
  width: 44px;
  height: 100%;
  background:
    radial-gradient(circle at 12px 11px, rgba(219, 239, 231, 0.42) 0, rgba(219, 239, 231, 0.42) 3px, transparent 3px),
    radial-gradient(circle at 28px 21px, rgba(219, 239, 231, 0.28) 0, rgba(219, 239, 231, 0.28) 2px, transparent 2px),
    repeating-linear-gradient(135deg, rgba(214, 236, 227, 0.34) 0 4px, transparent 4px 8px);
  opacity: 0.95;
}

.component-head::before {
  left: 0;
  border-right: 1px solid rgba(214, 236, 227, 0.24);
}

.component-head::after {
  right: 0;
  border-left: 1px solid rgba(214, 236, 227, 0.24);
  transform: scaleX(-1);
}

.component-head h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: #fff;
}

.component-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.96rem;
}

.component-head-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  grid-column: 4;
  justify-self: end;
  margin-left: 0;
}

.component-head.has-mode-toggle .component-head-copy {
  justify-self: end;
}

.component-head.has-mode-toggle .component-head-actions {
  grid-column: 3;
}

.component-head-actions .btn-danger {
  white-space: nowrap;
}

.component-mode-toggle {
  display: grid;
  gap: 7px;
  justify-items: center;
  grid-column: 2;
  justify-self: start;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  flex: 0 0 220px;
  align-self: center;
  padding: 10px 7px;
  border-radius: 0.35rem;
  background: rgba(214, 236, 227, 0.2);
  border: 1px solid rgba(214, 236, 227, 0.28);
  position: relative;
  z-index: 1;
}

.component-mode-toggle-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  min-height: 20px;
  display: flex;
  align-items: center;
  text-align: center;
}

.component-mode-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.component-mode-toggle-text {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
}

.component-mode-toggle .switch {
  width: 54px;
  height: 30px;
  flex: 0 0 auto;
}

.component-mode-toggle .slider {
  background-color: #33b8ff;
  border: 1px solid rgba(17, 17, 17, 0.12);
}

.component-mode-toggle .slider::before {
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 3px;
}

.component-mode-toggle .switch input:checked + .slider {
  background-color: #6a1b9a;
}

.component-mode-toggle .switch input:focus + .slider {
  box-shadow: 0 0 1px #6a1b9a;
}

.component-mode-toggle .switch input:checked + .slider::before {
  transform: translateX(24px);
}

.component-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-width: 0;
  margin: 16px 18px 0;
  border: 0.5px solid #111;
  background: #fff;
}

.component-grid-row {
  display: grid;
  gap: 0;
}

.component-grid-row + .component-grid-row {
  border-top: 0.5px solid #111;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-right: 0.5px solid #111;
  border-bottom: 0.5px solid #111;
  background: #fff;
}

.field-full {
  grid-column: 1 / -1;
}

.field-no-label input,
.field-no-label select,
.field-no-label textarea {
  min-height: 56px;
}

label {
  display: block;
  padding: 7px 8px 6px;
  background: #efefef;
  color: #111;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  border-bottom: 0.5px solid #111;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.component-grid label {
  height: 100%;
}

input,
select,
textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: #fff;
  min-height: 56px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  box-shadow: none;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.component-grid .field-full {
  border-right: 0;
}

.component-grid-row .field:last-child:not(.field-full) {
  border-right: 0;
}

.component-grid-row:last-child .field {
  border-bottom: 0;
}

.component-grid .field-full:last-child {
  border-bottom: 0;
}

.empty-state {
  border: 1px dashed #c2cad2;
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  color: var(--muted);
  background: rgba(244, 246, 248, 0.9);
}

.summary-card {
  padding: 24px;
  position: static;
}

.summary-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 14px;
}

.summary-head-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.summary-head-copy {
  display: grid;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.save-roc-panel {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  padding: 14px 16px;
  width: 100%;
  border: 1px solid rgba(37, 111, 176, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(239, 247, 253, 0.98), rgba(227, 240, 251, 0.96));
}

.save-roc-panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe36c, #f4c400);
  color: #111;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.save-roc-panel__note {
  margin: 0;
  color: #345062;
  font-size: 0.92rem;
  line-height: 1.4;
}

.summary-head h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.print-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.print-sheet {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 420px;
}

.print-render-source {
  position: absolute;
  top: 0;
  left: -99999px;
  width: calc(100% - 44px);
  visibility: hidden;
  pointer-events: none;
}

.print-pages {
  display: grid;
  gap: 18px;
}

.print-page {
  min-height: calc(11in - 1in);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: #fff;
}

.print-page-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.report-page-footer {
  display: none;
}

.report-page-footer-generated {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.5rem;
  line-height: 1.2;
  color: #111;
}

.report-page-footer-generated .report-page-footer-right {
  text-align: right;
  white-space: nowrap;
}

.report-brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding-bottom: 14px;
  margin-bottom: 10px;
  border-bottom: 4px solid #111;
}

.report-brand-block {
  display: flex;
  align-items: end;
  gap: 18px;
}

.report-logo {
  width: 220px;
  height: auto;
  object-fit: contain;
}

.report-brand-contact {
  text-align: right;
  font-size: 0.9rem;
  line-height: 1.35;
}

.report-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.report-title-block {
  min-width: 0;
}

.report-header-side {
  display: grid;
  gap: 0;
}

.report-header h3 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.12;
}

.report-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.project-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.project-report-grid-primary {
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.project-report-grid-secondary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 14px;
}

.report-property-section {
  margin-top: 10px;
  border: 0.5px solid #111;
}

.report-property-title {
  padding: 8px 12px 7px;
  background: #0f5a70;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.report-property-section .project-report-grid-secondary {
  margin-top: 0;
  gap: 0;
}

.report-property-section .project-report-grid-secondary .report-item {
  padding: 0;
  border-radius: 0;
  border: 0.5px solid #111;
  background: #fff;
}

.report-property-section .project-report-grid-secondary .report-item strong {
  margin: 0;
  padding: 6px 8px 4px;
  background: transparent;
  color: #111;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 0;
  white-space: nowrap;
}

.report-property-section .project-report-grid-secondary .report-item div {
  min-height: 42px;
  padding: 0 8px 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.report-permit-display {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  background: #fff;
  color: #111;
  border: 0.5px solid #111;
  border-top: 0;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.report-item-half {
  grid-column: span 3;
}

.report-item-full {
  grid-column: span 6;
}

.report-item-address {
  grid-column: span 3;
}

.report-item-third {
  grid-column: span 1;
}

.report-property-section .project-report-grid-secondary .report-item:last-child {
  grid-column: span 2;
}

.report-item.report-item-compact {
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  border: 0.5px solid #111;
  background: #fff;
}

.report-item.report-item-compact strong {
  display: block;
  margin: 0;
  padding: 8px 10px 7px;
  background: #0f5a70;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-bottom: 0.5px solid #111;
  text-align: center;
}

.report-item-compact div {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  min-height: 40px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.report-section {
  margin-top: 14px;
}

.report-section:first-of-type {
  margin-top: 14px;
}

.report-section h4 {
  position: relative;
  margin: 0;
  padding: 8px 14px 7px;
  background: #0f5a70;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: left;
}

.report-table-head,
.report-table-body {
  display: grid;
  gap: 0;
}

.report-table-cell {
  border: 0.5px solid #111;
}

.report-table-label {
  padding: 7px 8px 6px;
  background: #efefef;
  color: #111;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.report-table-value {
  min-height: 48px;
  padding: 10px 8px;
  background: #fff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
}

.report-notes {
  margin-top: 12px;
  padding: 12px 14px;
  background: #f5f7f8;
  border-radius: var(--radius);
  border: 1px solid #dde3e8;
  white-space: pre-wrap;
}

.report-empty {
  color: var(--muted);
  line-height: 1.6;
}

.report-records {
  margin-top: 18px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.report-records-footer-group {
  break-inside: avoid;
  page-break-inside: avoid;
}

.report-records-heading {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.report-records-subheading {
  margin: 2px 0 18px;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.report-records-note,
.report-records-ack-copy {
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.45;
}

.report-records-note strong,
.report-records-ack-title {
  font-weight: 800;
}

.report-records-ack-title {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.report-drawing-box {
  height: 420px;
  margin: 0 0 10px;
  border: 0.5px solid #111;
  background: #fff;
}

.report-records-drawing-only {
  display: flex;
  flex-direction: column;
}

.report-records-drawing-only .report-drawing-box {
  flex: 1 1 auto;
  min-height: 420px;
}

.report-record-group {
  margin-top: 10px;
  border: 0.5px solid #111;
}

.report-record-group-title {
  padding: 8px 12px 7px;
  background: #0f5a70;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.report-record-grid,
.report-comments-output-grid {
  display: grid;
  gap: 0;
  background: #fff;
}

.report-comments-output-grid {
  grid-template-columns: 2.8fr 1fr;
}

.report-record-item {
  border-right: 0.5px solid #111;
}

.report-record-item:last-child {
  border-right: 0;
}

.report-record-label {
  padding: 6px 8px 2px;
  background: #fff;
  color: #111;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.15;
}

.report-record-value {
  min-height: 52px;
  padding: 0 8px 8px;
  background: #fff;
  color: #111;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.report-record-value-comments {
  min-height: 240px;
  white-space: pre-wrap;
}

.report-record-value-stamp {
  min-height: 240px;
  display: grid;
  place-items: center;
}

.report-stamp-image {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;
  background: #fff;
}

.report-record-label-footer {
  display: block;
  padding: 6px 8px 2px;
  background: transparent;
  color: #111;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.15;
  text-align: left;
}

.report-record-value-footer {
  min-height: 42px;
  padding: 0 8px 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.report-record-item-footer {
  padding: 0;
}

.report-record-item-footer .report-record-value {
  background: #fff;
}

.roc-page .roc-builder {
  --roc-teal: #004a60;
  --roc-teal-deep: #245c85;
  --roc-sea: #54b4b7;
  --roc-coral: #54b4b7;
  --roc-gold: #fbf0d7;
  --roc-sky: #eaf6fb;
  --roc-shadow: 0 28px 64px rgba(10, 33, 42, 0.14);
  display: grid;
  gap: 22px;
}

.roc-page .roc-builder .hero {
  margin-bottom: 0;
}

.roc-page .roc-builder .hero-card {
  position: relative;
  overflow: hidden;
  padding: 28px 30px;
  border: 1px solid rgba(15, 90, 112, 0.12);
  border-radius: 0.55rem;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 240, 215, 0.9) 72%, rgba(227, 243, 243, 0.72) 100%);
  box-shadow: var(--roc-shadow);
}

.roc-page .roc-builder .hero-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 12px;
  background: linear-gradient(180deg, #004a60 0%, #54b4b7 100%);
}

.roc-page .roc-builder .hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(84, 180, 183, 0.14), transparent 24%),
    radial-gradient(circle at bottom left, rgba(36, 92, 133, 0.08), transparent 28%);
  pointer-events: none;
}

.roc-page .roc-builder .hero-card h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.roc-page .roc-builder .panel {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.roc-page .roc-builder .panel > h2,
.roc-page .roc-builder .panel > .panel-intro {
  margin-left: 6px;
  margin-right: 6px;
}

.roc-page .roc-builder .panel > h2 {
  margin-bottom: 8px;
  color: #0a3140;
  font-size: 1.8rem;
}

.roc-page .roc-builder .panel > .panel-intro {
  margin-bottom: 22px;
  max-width: 64ch;
  color: #4c636c;
  font-size: 1rem;
  line-height: 1.6;
}

.roc-page .roc-builder .form-section,
.roc-page .roc-builder .component-card,
.roc-page .roc-builder .component-sort-banner {
  border: 1px solid rgba(15, 90, 112, 0.12);
  border-radius: 0.55rem;
  box-shadow: var(--roc-shadow);
}

.roc-page .roc-builder .form-section,
.roc-page .roc-builder .component-card {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 252, 0.97));
}

.roc-page .roc-builder .section-banner,
.roc-page .roc-builder .record-group-title,
.roc-page .roc-builder .component-head {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--roc-teal-deep), var(--roc-sea)),
    linear-gradient(90deg, rgba(240, 126, 93, 0.28), transparent 50%);
}

.roc-page .roc-builder .section-banner {
  padding: 18px 22px 16px;
  border-top-left-radius: 0.55rem;
  border-top-right-radius: 0.55rem;
}

.roc-page .roc-builder .section-banner::after,
.roc-page .roc-builder .record-group-title::after,
.roc-page .roc-builder .component-head::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 12px;
  background: linear-gradient(180deg, #daff00 0%, #b8df00 100%);
}

.roc-page .roc-builder .project-grid,
.roc-page .roc-builder .component-grid {
  gap: 18px;
  padding: 22px;
  border: 0;
  background: transparent;
}

.roc-page .roc-builder .project-record-stack {
  gap: 16px;
  padding: 0 22px 22px;
}

.roc-page .roc-builder .record-group {
  overflow: hidden;
  border: 1px solid rgba(15, 90, 112, 0.14);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.9);
}

.roc-page .roc-builder .record-group-title {
  padding: 14px 18px 13px 24px;
}

.roc-page .roc-builder .record-grid,
.roc-page .roc-builder .comments-grid {
  padding: 18px;
}

.roc-page .roc-builder .permit-grid,
.roc-page .roc-builder .property-grid {
  background: transparent;
  border: 0;
}

.roc-page .roc-builder .toolbar {
  padding: 22px;
}

.roc-page .roc-builder .field {
  gap: 8px;
  min-width: 0;
  border: 0;
  background: transparent;
}

.roc-page .roc-builder label {
  padding: 0;
  background: transparent;
  border: 0;
  color: #39535d;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-align: left;
  text-transform: uppercase;
}

.roc-page .roc-builder input,
.roc-page .roc-builder select,
.roc-page .roc-builder textarea {
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 90, 112, 0.12);
  border-radius: 0.55rem;
  background: linear-gradient(180deg, #ffffff, #f8fbfc);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.roc-page .roc-builder input:focus,
.roc-page .roc-builder select:focus,
.roc-page .roc-builder textarea:focus {
  outline: none;
  border-color: var(--roc-sea);
  box-shadow:
    0 0 0 4px rgba(31, 129, 147, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.roc-page .roc-builder textarea {
  min-height: 140px;
}

.roc-page .roc-builder .stamp-upload-wrap {
  gap: 14px;
  padding: 6px 0 0;
}

.roc-page .roc-builder .stamp-preview {
  width: min(100%, 220px);
  border: 1px dashed rgba(15, 90, 112, 0.26);
  border-radius: 0.55rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 250, 0.9));
}

.roc-page .roc-builder .stamp-placeholder {
  color: #5b7078;
  font-weight: 600;
}

.roc-page .roc-builder button {
  border-radius: 0.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 28px rgba(10, 33, 42, 0.12);
}

.roc-page .roc-builder .btn-primary {
  background: linear-gradient(135deg, var(--roc-teal-deep), var(--roc-sea));
}

.roc-page .roc-builder .btn-secondary {
  background: linear-gradient(180deg, #fff, #edf5f8);
  color: #0a3140;
}

.roc-page .roc-builder #stampUploadBtn {
  background: linear-gradient(135deg, #004a60, #245c85);
  color: #fff;
}

.roc-page .roc-builder .btn-danger {
  background: linear-gradient(135deg, #56215e, #7b3d84);
}

.roc-page .roc-builder #individualComponentsSection {
  border-color: rgba(86, 33, 94, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 235, 246, 0.98)),
    linear-gradient(90deg, rgba(86, 33, 94, 0.1), transparent 60%);
  box-shadow: var(--roc-shadow);
}

.roc-page .roc-builder #individualComponentsSection .section-banner {
  background:
    linear-gradient(135deg, #6a2c73 0%, #56215e 58%, #421947 100%),
    linear-gradient(90deg, rgba(218, 255, 0, 0.12), transparent 58%);
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
}

.roc-page .roc-builder #individualComponentsSection .section-banner::after {
  width: 12px;
  background: linear-gradient(180deg, #daff00 0%, #efff8b 100%);
}

.roc-page .roc-builder #individualComponentsSection .toolbar {
  background:
    linear-gradient(180deg, rgba(252, 247, 253, 0.95), rgba(244, 235, 246, 0.92));
}

.roc-page .roc-builder #individualComponentsSection select {
  border-color: rgba(86, 33, 94, 0.22);
  background: linear-gradient(180deg, #ffffff, #fbf6fc);
}

.roc-page .roc-builder #individualComponentsSection .btn-primary {
  background: linear-gradient(135deg, #004a60, #245c85);
  border: 0.5px solid #004a60;
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(0, 74, 96, 0.22);
}

.roc-page .roc-builder #individualComponentsSection .btn-primary:hover {
  color: #ffffff;
}

.roc-page .roc-builder .component-sort-banner {
  margin: 0 0 20px;
  position: relative;
  overflow: hidden;
  border-color: rgba(184, 223, 0, 0.78);
  background:
    linear-gradient(180deg, rgba(232, 255, 122, 0.98) 0%, rgba(218, 255, 0, 0.98) 52%, rgba(184, 223, 0, 0.98) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 62%);
  box-shadow:
    0 22px 40px rgba(127, 154, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.roc-page .roc-builder .component-sort-banner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 44px;
  border-top-left-radius: 0.55rem;
  border-bottom-left-radius: 0.55rem;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(184, 223, 0, 0.28) 0 7px,
      rgba(184, 223, 0, 0.02) 7px 14px
    );
  border-right: 1px solid rgba(184, 223, 0, 0.18);
}

.roc-page .roc-builder .component-sort-banner::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 44px;
  border-top-right-radius: 0.55rem;
  border-bottom-right-radius: 0.55rem;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(184, 223, 0, 0.28) 0 7px,
      rgba(184, 223, 0, 0.02) 7px 14px
    );
  border-left: 1px solid rgba(184, 223, 0, 0.18);
}

.roc-page .roc-builder .component-sort-banner-subcopy {
  color: #4a1c51;
  font-weight: 800;
  text-shadow: none;
}

.roc-page .roc-builder .component-dragbar-label {
  color: #3c1642;
  font-weight: 400;
  text-shadow: none;
}

.roc-page .roc-builder .component-dragbar-icon::before {
  border-bottom-color: #56215e;
}

.roc-page .roc-builder .component-dragbar-icon::after {
  border-bottom-color: #efff8b;
}

.roc-page .roc-builder .component-dragbar-icon-inner {
  color: #56215e;
}

#componentSortBanner {
  margin-bottom: 24px !important;
  border-color: rgba(184, 223, 0, 0.78) !important;
  background:
    linear-gradient(180deg, rgba(232, 255, 122, 0.98) 0%, rgba(218, 255, 0, 0.98) 52%, rgba(184, 223, 0, 0.98) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 62%) !important;
  box-shadow:
    0 22px 40px rgba(127, 154, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.36) !important;
}

#componentSortBanner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 44px;
  border-top-left-radius: 0.55rem;
  border-bottom-left-radius: 0.55rem;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(184, 223, 0, 0.28) 0 7px,
      rgba(184, 223, 0, 0.02) 7px 14px
    );
  border-right: 1px solid rgba(184, 223, 0, 0.18);
}

#componentSortBanner::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 44px;
  border-top-right-radius: 0.55rem;
  border-bottom-right-radius: 0.55rem;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(184, 223, 0, 0.28) 0 7px,
      rgba(184, 223, 0, 0.02) 7px 14px
    );
  border-left: 1px solid rgba(184, 223, 0, 0.18);
}

#componentSortBanner .component-dragbar-label {
  color: #3c1642 !important;
  text-shadow: none;
}

#componentSortBanner .component-sort-banner-subcopy {
  color: #4a1c51 !important;
  font-weight: 800;
  text-shadow: none;
}

#componentSortBanner .component-dragbar-icon::before {
  border-bottom-color: #56215e !important;
}

#componentSortBanner .component-dragbar-icon::after {
  border-bottom-color: #efff8b !important;
}

#componentSortBanner .component-dragbar-icon-inner {
  color: #56215e !important;
}

#individualComponentsSection {
  margin-top: 8px;
  border-color: rgba(86, 33, 94, 0.28) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 235, 246, 0.98)),
    linear-gradient(90deg, rgba(86, 33, 94, 0.1), transparent 60%) !important;
}

#individualComponentsSection .section-banner {
  background:
    linear-gradient(135deg, #6a2c73 0%, #56215e 58%, #421947 100%),
    linear-gradient(90deg, rgba(218, 255, 0, 0.12), transparent 58%) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
}

#individualComponentsSection .section-banner::after {
  width: 12px;
  background: linear-gradient(180deg, #daff00 0%, #efff8b 100%) !important;
}

#individualComponentsSection .toolbar {
  background:
    linear-gradient(180deg, rgba(252, 247, 253, 0.95), rgba(244, 235, 246, 0.92)) !important;
}

#individualComponentsSection select {
  border-color: rgba(86, 33, 94, 0.22) !important;
  background: linear-gradient(180deg, #ffffff, #fbf6fc) !important;
}

#individualComponentsSection .btn-primary {
  background: linear-gradient(135deg, #004a60, #245c85) !important;
  border: 0.5px solid #004a60 !important;
  color: #ffffff !important;
  box-shadow: 0 16px 28px rgba(0, 74, 96, 0.22) !important;
}

.roc-page .roc-builder .empty-state {
  border: 1px dashed rgba(15, 90, 112, 0.2);
  border-radius: 0.55rem;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(251, 240, 215, 0.94)),
    linear-gradient(90deg, rgba(84, 180, 183, 0.12), transparent 58%);
  color: #536971;
}

.roc-page .roc-builder .component-sort-banner-main {
  position: relative;
  z-index: 1;
}

.roc-page .roc-builder .component-sort-banner-subcopy {
  position: relative;
  z-index: 1;
}

.roc-page .roc-builder .component-card {
  padding: 0;
}

.roc-page .roc-builder .component-card.is-dragging {
  border-color: rgba(31, 129, 147, 0.5);
}

.roc-page .roc-builder .component-head {
  gap: 16px;
  padding: 18px 22px 18px 28px;
}

.roc-page .roc-builder .component-head p {
  display: none;
}

.roc-page .roc-builder .component-head::after {
  display: none;
}

.roc-page .roc-builder .component-mode-toggle-text {
  white-space: nowrap;
}

.roc-page .roc-builder .component-mode-toggle {
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.roc-page .roc-builder .component-card[data-component-type="basin"] .component-mode-toggle,
.roc-page .roc-builder .component-card[data-component-type="pumpTank"] .component-mode-toggle {
  width: 260px;
  min-width: 260px;
  max-width: 260px;
}

.roc-page .roc-builder .component-card[data-component-type="basin"] .component-head.has-mode-toggle,
.roc-page .roc-builder .component-card[data-component-type="pumpTank"] .component-head.has-mode-toggle {
  grid-template-columns: 10.25rem max-content auto;
}

.roc-page .roc-builder .component-card[data-component-type="basin"] .component-head-copy,
.roc-page .roc-builder .component-card[data-component-type="pumpTank"] .component-head-copy {
  width: 10.25rem;
  min-width: 10.25rem;
  max-width: 10.25rem;
}

.roc-page .roc-builder .component-card[data-component-type="basin"] .component-head h3,
.roc-page .roc-builder .component-card[data-component-type="pumpTank"] .component-head h3 {
  white-space: nowrap;
}

.roc-page .roc-builder .component-grid {
  width: auto;
  margin: 0;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.roc-page .roc-builder .component-card[data-component-type="basin"] .component-grid,
.roc-page .roc-builder .component-card[data-component-type="pumpTank"] .component-grid {
  min-width: 56rem;
}

.roc-page .roc-builder .component-grid-row {
  gap: 0;
}

.roc-page .roc-builder .component-grid-row + .component-grid-row {
  margin-top: 0;
  border-top: 0;
}

.roc-page .roc-builder .component-grid .field {
  display: grid;
  grid-template-rows: 1fr minmax(58px, auto);
  gap: 0;
  overflow: hidden;
  border: 0;
  border-right: 1px solid rgba(0, 74, 96, 0.12);
  border-bottom: 1px solid rgba(0, 74, 96, 0.12);
  border-radius: 0;
  background: #fff;
}

.roc-page .roc-builder .component-grid label {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 10px 10px;
  background: linear-gradient(180deg, rgba(227, 243, 243, 0.95), rgba(251, 240, 215, 0.78));
  border-bottom: 1px solid rgba(0, 74, 96, 0.12);
  color: #36505a;
  font-size: 0.84rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-align: center;
  text-transform: none;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.roc-page .roc-builder .component-grid .field:not(:last-child):not(.field-full) label {
  box-shadow: inset -1px 0 0 rgba(0, 74, 96, 0.12);
}

.roc-page .roc-builder .component-grid input,
.roc-page .roc-builder .component-grid select,
.roc-page .roc-builder .component-grid textarea {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 74, 96, 0.08);
  border-top: 0;
  border-radius: 0;
  background: #fff;
  background-image: linear-gradient(180deg, rgba(248, 251, 252, 0.55), rgba(255, 255, 255, 0.92));
  box-shadow: none;
}

.roc-page .roc-builder .component-grid textarea {
  min-height: 92px;
}

.roc-page .roc-builder .component-grid .field-full {
  grid-template-rows: 52px minmax(92px, auto);
}

.roc-page .roc-builder .component-grid .field-full label {
  min-height: 0;
}

.roc-page .roc-builder .component-grid .field-no-label {
  grid-template-rows: minmax(58px, auto);
}

.roc-page .roc-builder .component-grid-row .field:last-child:not(.field-full) {
  border-right: 0;
}

.roc-page .roc-builder .component-grid-row:last-child .field,
.roc-page .roc-builder .component-grid .field-full:last-child {
  border-bottom: 0;
}

.roc-page .roc-builder .component-grid-row .field:last-child:not(.field-full),
.roc-page .roc-builder .component-grid .field-full,
.roc-page .roc-builder .component-grid-row:last-child .field,
.roc-page .roc-builder .permit-grid .field:last-child,
.roc-page .roc-builder .property-grid .field:last-child {
  border-right: 0;
  border-bottom: 0;
}

@media (max-width: 640px) {
  .mobile-blocker {
    position: static;
    display: grid;
    place-items: center;
    padding: 12px 0 0;
    background: transparent;
    backdrop-filter: none;
  }

  .layout {
    display: block;
  }

  .layout > :not(.mobile-blocker) {
    display: none !important;
  }

  .roc-page .roc-builder {
    gap: 18px;
  }

  .page-shell {
    width: min(100% - 20px, 100%);
    margin: 18px auto 30px;
  }

  .roc-page .roc-builder .hero-card,
  .roc-page .roc-builder .section-banner,
  .roc-page .roc-builder .record-group-title,
  .roc-page .roc-builder .component-head,
  .roc-page .roc-builder .project-grid,
  .roc-page .roc-builder .project-record-stack,
  .roc-page .roc-builder .toolbar,
  .roc-page .roc-builder .component-grid,
  .roc-page .roc-builder .component-sort-banner-subcopy {
    padding-left: 18px;
    padding-right: 18px;
  }

  .roc-page .roc-builder .panel > h2,
  .roc-page .roc-builder .panel > .panel-intro {
    margin-left: 0;
    margin-right: 0;
  }

  .roc-page .roc-builder .hero-card h1 {
    font-size: clamp(2.5rem, 12vw, 3.8rem);
  }

  .roc-page .roc-builder .component-grid {
    margin-left: 18px;
    margin-right: 18px;
  }

  .hero-card,
  .panel,
  .summary-card,
  .print-sheet,
  .component-card {
    padding: 18px;
  }

  .component-grid,
  .project-grid,
  .property-grid,
  .record-grid,
  .comments-grid,
  .project-report-grid,
  .report-table-head,
  .report-table-body,
  .report-record-grid,
  .report-comments-output-grid {
    grid-template-columns: 1fr;
  }

  .report-item-wide {
    grid-column: span 1;
  }

  .report-item-half,
  .report-item-full,
  .report-item-address,
  .report-item-third {
    grid-column: span 1;
  }

  .permit-grid {
    grid-template-columns: 1fr;
  }

  .permit-grid .permit-type-field {
    min-width: 0;
  }

  .project-record-stack {
    padding: 0 16px 16px;
  }

  .hero-card h1 {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .report-brand-row,
  .report-header {
    grid-template-columns: 1fr;
  }

  .report-brand-block {
    align-items: center;
  }

  .report-brand-contact {
    text-align: left;
  }

  .component-head {
    align-items: flex-start;
  }

  .component-head-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .component-mode-toggle {
    justify-items: start;
    min-width: 0;
  }

  .report-record-item {
    border-right: 0;
    border-bottom: 0.5px solid #111;
  }

  .report-record-item:last-child {
    border-bottom: 0;
  }

  .report-drawing-box {
    height: 280px;
  }
}

@media print {
  @page {
    margin: 0.5in;
  }

  body {
    background: #fff;
  }

  .page-shell {
    width: 100%;
    margin: 0;
  }

  .hero,
  .panel,
  .screen-only {
    display: none !important;
  }

  .layout {
    display: block;
  }

  .print-render-source {
    display: none !important;
  }

  .print-sheet {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .print-pages {
    display: block;
  }

  .print-page {
    min-height: calc(11in - 1in);
    padding: 0;
    border: 0;
    box-shadow: none;
    break-after: page;
    page-break-after: always;
  }

  .print-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .report-header {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
    gap: 12px;
    padding-bottom: 8px;
    margin-bottom: 8px;
  }

  .report-brand-row {
    gap: 12px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom-width: 3px;
  }

  .report-logo {
    width: 164px;
  }

  .report-brand-contact {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .report-header h3 {
    font-size: 1.45rem;
    line-height: 1.08;
    white-space: normal;
  }

  .project-report-grid-primary {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .report-item.report-item-compact strong,
  .report-item-compact div {
    white-space: nowrap;
  }

  .report-item.report-item-compact strong {
    font-size: 0.62rem;
    padding: 4px 6px 3px;
  }

  .report-item-compact div {
    font-size: 0.8rem;
    min-height: 24px;
    padding: 4px 6px;
  }

  #reportProjectInfoSecondary {
    margin-bottom: 8px;
  }

  .report-permit-display {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .report-property-title {
    padding: 5px 8px 4px;
    font-size: 0.75rem;
  }

  .report-property-section .project-report-grid-secondary .report-item strong {
    padding: 4px 6px 2px;
    font-size: 0.56rem;
    white-space: nowrap;
  }

  .report-property-section .project-report-grid-secondary .report-item div {
    min-height: 24px;
    padding: 0 6px 5px;
    font-size: 0.8rem;
    font-weight: 600;
  }

  .report-section {
    border: 0.5px solid #111;
    padding-top: 0;
    margin-top: 8px;
  }

  .report-section h4 {
    margin: 0;
    padding: 5px 42px 4px;
    background: #0f5a70;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .report-table-label {
    padding: 4px 5px 3px;
    font-size: 0.56rem;
    border-width: 0.5px;
  }

  .report-table-value {
    min-height: 22px;
    padding: 4px 5px;
    font-size: 0.72rem;
    border-width: 0.5px;
  }

  .summary-card,
  .print-sheet {
    border: 0;
    box-shadow: none;
    padding: 0;
    background: #fff;
  }

  .report-section,
  .report-item,
  .report-notes {
    break-inside: avoid;
  }

  .report-section,
  .report-table,
  .report-table-head,
  .report-table-body,
  .report-notes {
    page-break-inside: avoid;
    break-inside: avoid-page;
  }

  .report-section {
    page-break-before: auto;
    page-break-after: auto;
  }

  .report-records {
    margin-top: 10px;
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  .report-records-footer-group {
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  .report-records-drawing-only {
    flex: 1 1 auto;
    min-height: 0;
  }

  .report-records-drawing-only.report-records-drawing-only-compact {
    min-height: 0;
  }

  .report-records-heading {
    font-size: 0.98rem;
  }

  .report-records-subheading {
    margin: 1px 0 10px;
    font-size: 0.7rem;
  }

  .report-records-note,
  .report-records-ack-copy,
  .report-records-ack-title {
    font-size: 0.62rem;
    line-height: 1.35;
  }

  .report-records-note,
  .report-records-ack-copy {
    margin-bottom: 8px;
  }

  .report-records-ack-title {
    margin-bottom: 2px;
  }

  .report-records-ack-title,
  .report-records-ack-copy {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .report-records-ack-title {
    break-after: avoid-page;
    page-break-after: avoid;
  }

  .report-records-ack-copy {
    break-before: avoid-page;
    page-break-before: avoid;
  }

  .report-record-group {
    margin-top: 6px;
    border-width: 0.5px;
    page-break-inside: avoid;
    break-inside: avoid-page;
  }

  .report-record-group-title {
    padding: 5px 8px 4px;
    font-size: 0.82rem;
  }

  .report-record-label {
    padding: 4px 5px 1px;
    font-size: 0.56rem;
  }

  .report-record-value {
    min-height: 22px;
    padding: 4px 5px;
    font-size: 0.72rem;
  }

  .report-record-value-comments,
  .report-record-value-stamp {
    min-height: 170px;
  }

  .report-drawing-box {
    height: auto;
    margin-bottom: 8px;
  }

  .report-records-drawing-only .report-drawing-box {
    flex: 1 1 auto;
    min-height: 180px;
  }

  .report-stamp-image {
    width: 140px;
    height: 140px;
  }

  .report-record-value-footer {
    min-height: 28px;
    padding: 0 5px 5px;
    font-size: 0.72rem;
  }

  .report-record-label-footer {
    padding: 4px 5px 1px;
    font-size: 0.56rem;
  }

  .report-record-grid,
  .report-comments-output-grid,
  .report-record-item,
  .report-record-item-stamp {
    page-break-inside: avoid;
    break-inside: avoid-page;
  }
}
