/*
 * QA1125 — Roofing Price Book product systems.
 *
 * The roofing product specification editor belongs to the workspace Price Book.
 * Keep every rule under the dedicated root so the proposal estimator and the
 * protected Interior Painting estimator retain their existing presentation.
 */

.roofing-price-book-root.hgc-rc-page {
  --roof-book-bg: #071520;
  --roof-book-panel: #0a1a27;
  --roof-book-panel-strong: #0d2030;
  --roof-book-input: #04111b;
  --roof-book-line: #29475a;
  --roof-book-line-strong: #3b6077;
  --roof-book-text: #f4f7f9;
  --roof-book-muted: #9fb1be;
  --roof-book-orange: #ff7a0b;
  --roof-book-orange-soft: rgba(255, 122, 11, 0.1);
  --roof-book-cyan: #28d7dc;
  --roof-book-green: #65dfaa;
  --roof-book-warning: #f1b45c;
  position: relative !important;
  inset: auto !important;
  display: grid;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0;
  padding: 0;
  overflow: visible !important;
  transform: none !important;
  background: transparent !important;
  color: var(--roof-book-text);
  box-sizing: border-box;
  text-shadow: none !important;
  filter: none !important;
}

.roofing-price-book-root.hgc-rc-page *,
.roofing-price-book-root.hgc-rc-page *::before,
.roofing-price-book-root.hgc-rc-page *::after {
  box-sizing: border-box;
  text-shadow: none !important;
}

.roofing-price-book-root.hgc-rc-page :is(
  .roofing-price-book-body,
  .hgc-rc-system
) {
  min-width: 0;
}

/* Price Book ownership and save state */
.roofing-price-book-root.hgc-rc-page :is(
  .roofing-price-book-head,
  .roofing-price-book-toolbar,
  .hgc-rc-system-heading
) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-head {
  margin: 0 0 14px;
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-head :is(h2, h3, h4),
.roofing-price-book-root.hgc-rc-page .hgc-rc-system-heading :is(h3, h4) {
  margin: 0;
  color: var(--roof-book-text);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
  font-weight: 800;
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-head p,
.roofing-price-book-root.hgc-rc-page .hgc-rc-system-heading p {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--roof-book-muted);
  font-size: 13px;
  line-height: 1.55;
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-head > div > p {
  margin: 0 0 4px;
  color: var(--roof-book-orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-head > div > span {
  display: block;
  max-width: 780px;
  margin-top: 5px;
  color: var(--roof-book-muted);
  font-size: 13px;
  line-height: 1.55;
}

.roofing-price-book-root.hgc-rc-page :is(
  .roofing-price-book-source,
  [data-roofing-price-book-source],
  .hgc-rc-price-book-source
) {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #2e6673;
  border-left: 3px solid var(--roof-book-cyan);
  border-radius: 8px;
  background: #08202a;
  color: var(--roof-book-text);
}

.roofing-price-book-root.hgc-rc-page :is(
  .roofing-price-book-source,
  [data-roofing-price-book-source],
  .hgc-rc-price-book-source
) > :is(span, i):first-child {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--roof-book-cyan);
  border-radius: 50%;
  color: var(--roof-book-cyan);
  background: rgba(40, 215, 220, 0.06);
}

.roofing-price-book-root.hgc-rc-page :is(
  .roofing-price-book-source,
  [data-roofing-price-book-source],
  .hgc-rc-price-book-source
) > svg:first-child {
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 1px solid var(--roof-book-cyan);
  border-radius: 50%;
  color: var(--roof-book-cyan);
  background: rgba(40, 215, 220, 0.06);
}

.roofing-price-book-root.hgc-rc-page :is(
  .roofing-price-book-source,
  [data-roofing-price-book-source],
  .hgc-rc-price-book-source
) strong {
  display: block;
  color: var(--roof-book-text);
  font-size: 14px;
  line-height: 1.35;
}

.roofing-price-book-root.hgc-rc-page :is(
  .roofing-price-book-source,
  [data-roofing-price-book-source],
  .hgc-rc-price-book-source
) small {
  display: block;
  margin-top: 2px;
  color: #afd0d6;
  font-size: 11px;
  line-height: 1.45;
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-source > div > span {
  display: block;
  margin-top: 2px;
  color: #a4bdc7;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-toolbar {
  align-items: center;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--roof-book-line);
  border-radius: 8px;
  background: var(--roof-book-panel);
}

.roofing-price-book-root.hgc-rc-page :is(
  .roofing-price-book-status,
  .hgc-rc-autosave
) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  color: var(--roof-book-green);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-status.is-dirty {
  color: var(--roof-book-warning);
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-status.is-dirty svg {
  fill: currentColor;
}

.roofing-price-book-root.hgc-rc-page :is(
  .roofing-price-book-status,
  .hgc-rc-autosave
) svg {
  width: 16px;
  height: 16px;
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-toolbar > div:last-child {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-toolbar > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-toolbar > div:first-child strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--roof-book-text);
  font-size: 12px;
  line-height: 1.35;
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-toolbar > div:first-child span {
  color: var(--roof-book-muted);
  font-size: 10px;
  line-height: 1.45;
}

.roofing-price-book-root.hgc-rc-page :is(
  .roofing-price-book-save,
  [data-roofing-price-book-save]
) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--roof-book-orange);
  border-radius: 6px;
  background: var(--roof-book-orange);
  color: #071018;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.roofing-price-book-root.hgc-rc-page :is(
  .roofing-price-book-save,
  [data-roofing-price-book-save]
):disabled {
  border-color: #415566;
  background: #223340;
  color: #8fa1ae;
  cursor: not-allowed;
}

/* Inline system editor */
.roofing-price-book-root.hgc-rc-page .hgc-rc-system {
  position: relative !important;
  inset: auto !important;
  display: block;
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0;
  padding: 16px;
  overflow: visible !important;
  border: 1px solid var(--roof-book-line);
  border-radius: 10px;
  background: var(--roof-book-bg);
  box-shadow: none !important;
  transform: none !important;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-system-heading {
  margin: 0 0 14px;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-system-heading small {
  display: block;
  margin: 0 0 4px;
  color: var(--roof-book-orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-system > nav {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(130px, 1fr)) !important;
  gap: 7px;
  margin: 0 0 12px;
  padding: 0;
  background: transparent;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-system > nav button {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: start;
  gap: 2px 8px;
  min-width: 0;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid var(--roof-book-line);
  border-radius: 6px;
  background: #06131e;
  color: #dfe8ed;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transform: none;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-system > nav button:hover {
  border-color: var(--roof-book-line-strong);
  background: #0a1b28;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-system > nav button.active {
  border-color: var(--roof-book-orange);
  background: var(--roof-book-orange-soft);
  color: #fff;
  outline: 1px solid var(--roof-book-orange);
  outline-offset: -1px;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-system > nav button .hgc-rc-system-icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--roof-book-orange);
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-system > nav button strong {
  overflow: hidden;
  max-width: 100%;
  color: inherit;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-system > nav button small {
  overflow: hidden;
  max-width: 100%;
  color: #8fa5b4;
  font-size: 9px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-system > nav button.compatible small {
  color: var(--roof-book-green);
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-system > nav button.needs-setup small {
  color: var(--roof-book-warning);
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-system-check {
  position: absolute;
  top: 6px;
  right: 6px;
  color: var(--roof-book-orange);
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-template-actions {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  padding: 11px 12px !important;
  border: 1px solid var(--roof-book-line) !important;
  border-radius: 7px;
  background: var(--roof-book-panel) !important;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-template-actions > div {
  display: grid;
  gap: 2px;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-template-actions strong {
  color: var(--roof-book-text);
  font-size: 13px;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-template-actions span {
  color: var(--roof-book-muted);
  font-size: 11px;
  line-height: 1.45;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-template-actions > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--roof-book-orange);
  border-radius: 6px;
  background: var(--roof-book-orange-soft);
  color: #ff9b45;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-material-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 9px;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-material-heading h5 {
  margin: 0;
  color: var(--roof-book-text);
  font-size: 17px;
  line-height: 1.3;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-material-heading p {
  max-width: 720px;
  margin: 3px 0 0;
  color: var(--roof-book-muted);
  font-size: 11px;
  line-height: 1.5;
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-issue-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #765526;
  border-radius: 999px;
  background: rgba(241, 180, 92, 0.07);
  color: var(--roof-book-warning);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

/* Products are one calm accordion list rather than a dense card wall. */
.roofing-price-book-root.hgc-rc-page .hgc-rc-product-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-card {
  position: relative !important;
  inset: auto !important;
  min-width: 0;
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  overflow: hidden !important;
  border: 1px solid var(--roof-book-line);
  border-radius: 7px;
  background: #06131e;
  box-shadow: none !important;
  transform: none !important;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-card.is-expanded {
  border-color: var(--roof-book-orange);
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-card.is-disabled {
  opacity: 0.72;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-card > header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 0;
  background: var(--roof-book-panel);
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-card.is-expanded > header {
  border-bottom: 1px solid var(--roof-book-line);
  background: var(--roof-book-panel-strong);
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--roof-book-orange);
  border-radius: 50%;
  color: #ff922f;
  background: rgba(255, 122, 11, 0.04);
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-icon svg {
  width: 18px;
  height: 18px;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-card header small {
  display: block;
  color: #ff983b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-card h5 {
  margin: 2px 0;
  color: var(--roof-book-text);
  font-size: 15px;
  line-height: 1.3;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-card header p {
  margin: 0;
  color: var(--roof-book-muted);
  font-size: 11px;
  line-height: 1.4;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-badge {
  padding: 4px 7px;
  border: 1px solid #395b70;
  border-radius: 999px;
  color: #b8c7d0;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-status label {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid #395b70;
  border-radius: 5px;
  color: #d7e1e7;
  font-size: 10px;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-status input,
.roofing-price-book-root.hgc-rc-page .hgc-rc-required-control input {
  width: 16px !important;
  min-height: 16px !important;
  margin: 0;
  padding: 0;
  accent-color: var(--roof-book-orange);
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--roof-book-orange);
  border-radius: 5px;
  background: var(--roof-book-orange-soft);
  color: #ff9c49;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-quick {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(110px, 0.6fr) minmax(190px, 1.25fr) minmax(110px, 0.55fr);
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-top: 1px solid #203948;
  background: #04101a;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-card.is-expanded .hgc-rc-product-quick {
  border-top: 0;
  border-bottom: 1px solid var(--roof-book-line);
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-quick > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-quick > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-quick small {
  color: #8399a8;
  font-size: 9px;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-quick strong {
  overflow: hidden;
  color: #eaf0f4;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-quick .needs-setup {
  color: var(--roof-book-warning);
  font-size: 10px;
  font-weight: 850;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-quick .is-ready {
  color: var(--roof-book-green);
  font-size: 10px;
  font-weight: 850;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-details {
  position: relative !important;
  inset: auto !important;
  display: block;
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0;
  padding: 0;
  overflow: visible !important;
  border: 0;
  background: transparent;
  transform: none !important;
  box-shadow: none !important;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-details[hidden] {
  display: none !important;
}

.roofing-price-book-root.hgc-rc-page :is(
  .hgc-rc-product-identity,
  .hgc-rc-product-specs,
  .hgc-rc-container-editor,
  .hgc-rc-product-meta
) {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 12px !important;
  border: 0 !important;
  border-bottom: 1px solid #253e4f !important;
  background: transparent !important;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-container-editor {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  background: #071722 !important;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-container-editor > header {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 0 0 2px;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-container-editor header strong {
  color: var(--roof-book-text);
  font-size: 12px;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-container-editor header small {
  color: #899eac;
  font-size: 9px;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-card label {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  color: #b7c6cf;
  font-size: 10px;
  font-weight: 800;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-card label > span:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-height: 20px;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-card :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 9px;
  border: 1px solid var(--roof-book-line-strong);
  border-radius: 5px;
  background: var(--roof-book-input);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: none;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-card input[type="number"] {
  color: #ff9638;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-card textarea {
  min-height: 84px;
  resize: vertical;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-application-rate > span:nth-child(2) {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 5px;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-application-rate small {
  color: #8299a8;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.4;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-readonly strong {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 9px;
  border: 1px solid #2b485a;
  border-radius: 5px;
  background: #0a1924;
  color: var(--roof-book-cyan);
  font-size: 14px;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-edited {
  display: inline-block !important;
  margin: 0 !important;
  padding: 1px 5px;
  border: 1px solid var(--roof-book-orange);
  border-radius: 3px;
  color: #ff9b45 !important;
  font-size: 8px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-details > footer {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 9px;
  padding: 11px 12px;
  border-bottom: 1px solid #253e4f;
  background: #071722;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-details > footer > div {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-details > footer small {
  color: #8ba0ae;
  font-size: 9px;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-details > footer strong {
  color: var(--roof-book-text);
  font-size: 14px;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-details > footer > div:last-child strong {
  color: #8ce35a;
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-product-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid #253e4f;
  background: #071722;
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-product-footer > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px 12px;
  border-right: 1px solid #253e4f;
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-product-footer > span:last-child {
  border-right: 0;
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-product-footer small {
  color: #8ba0ae;
  font-size: 9px;
  line-height: 1.35;
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-product-footer strong {
  overflow: hidden;
  color: var(--roof-book-text);
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-required-control {
  display: flex !important;
  align-items: center;
  gap: 7px;
  margin: 10px 12px 5px;
  color: #d4dfe5 !important;
  font-size: 10px;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-required-control span {
  display: inline !important;
  min-height: 0 !important;
}

.roofing-price-book-root.hgc-rc-page :is(
  .hgc-rc-product-warning,
  .hgc-rc-product-ready
) {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 9px 12px;
  font-size: 10px;
  line-height: 1.45;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-warning {
  color: var(--roof-book-warning);
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-ready {
  color: var(--roof-book-green);
}

.roofing-price-book-root.hgc-rc-page :is(
  .hgc-rc-product-warning,
  .hgc-rc-product-ready
) svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-product-reset {
  margin: 0 12px 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff9a43;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-loading {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 260px;
  padding: 32px;
  border: 1px solid var(--roof-book-line);
  border-radius: 10px;
  background: var(--roof-book-bg);
  color: var(--roof-book-text);
  text-align: center;
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-loading svg {
  width: 28px;
  height: 28px;
  color: var(--roof-book-orange);
  animation: roofing-price-book-spin 1s linear infinite;
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-loading strong {
  font-size: 15px;
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-loading span {
  color: var(--roof-book-muted);
  font-size: 11px;
  line-height: 1.45;
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-load-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #765526;
  border-left: 3px solid var(--roof-book-warning);
  border-radius: 7px;
  background: #171308;
  color: #f3c681;
  font-size: 11px;
  line-height: 1.45;
}

.roofing-price-book-root.hgc-rc-page .roofing-price-book-load-warning svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
}

.roofing-price-book-root.hgc-rc-page .hgc-rc-products-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed #3a586b;
  border-radius: 7px;
  background: #06131e;
  color: var(--roof-book-muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

@keyframes roofing-price-book-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Keyboard clarity */
.roofing-price-book-root.hgc-rc-page :is(button, input, select, textarea):focus-visible {
  outline: 2px solid var(--roof-book-cyan) !important;
  outline-offset: 2px;
}

.roofing-price-book-root.hgc-rc-page button:hover,
.roofing-price-book-root.hgc-rc-page button:focus-visible {
  filter: none !important;
  transform: none !important;
}

@media (max-width: 1180px) {
  .roofing-price-book-root.hgc-rc-page .hgc-rc-system > nav {
    grid-template-columns: repeat(3, minmax(140px, 1fr)) !important;
  }

  .roofing-price-book-root.hgc-rc-page .hgc-rc-product-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roofing-price-book-root.hgc-rc-page .hgc-rc-container-editor {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  .roofing-price-book-root.hgc-rc-page :is(
    .roofing-price-book-head,
    .roofing-price-book-toolbar,
    .hgc-rc-system-heading,
    .hgc-rc-template-actions,
    .hgc-rc-material-heading
  ) {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .roofing-price-book-root.hgc-rc-page .roofing-price-book-toolbar > div:last-child {
    justify-content: stretch;
  }

  .roofing-price-book-root.hgc-rc-page :is(
    .roofing-price-book-save,
    [data-roofing-price-book-save],
    .hgc-rc-template-actions > button
  ) {
    width: 100%;
  }

  .roofing-price-book-root.hgc-rc-page .hgc-rc-system > nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .roofing-price-book-root.hgc-rc-page .hgc-rc-product-card > header {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .roofing-price-book-root.hgc-rc-page .hgc-rc-product-status {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 48px;
  }

  .roofing-price-book-root.hgc-rc-page :is(
    .hgc-rc-product-identity,
    .hgc-rc-product-specs,
    .hgc-rc-product-meta
  ) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .roofing-price-book-root.hgc-rc-page .hgc-rc-product-details > footer {
    grid-template-columns: 1fr;
  }

  .roofing-price-book-root.hgc-rc-page .roofing-price-book-product-footer {
    grid-template-columns: 1fr;
  }

  .roofing-price-book-root.hgc-rc-page .roofing-price-book-product-footer > span {
    border-right: 0;
    border-bottom: 1px solid #253e4f;
  }

  .roofing-price-book-root.hgc-rc-page .roofing-price-book-product-footer > span:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 600px) {
  .roofing-price-book-root.hgc-rc-page :is(
    .roofing-price-book-source,
    [data-roofing-price-book-source],
    .hgc-rc-price-book-source
  ) {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .roofing-price-book-root.hgc-rc-page :is(
    .roofing-price-book-source,
    [data-roofing-price-book-source],
    .hgc-rc-price-book-source
  ) > :last-child:not(:nth-child(2)) {
    grid-column: 1 / -1;
  }

  .roofing-price-book-root.hgc-rc-page .hgc-rc-system {
    padding: 12px;
  }

  .roofing-price-book-root.hgc-rc-page .hgc-rc-system > nav,
  .roofing-price-book-root.hgc-rc-page .hgc-rc-product-quick,
  .roofing-price-book-root.hgc-rc-page :is(
    .hgc-rc-product-identity,
    .hgc-rc-product-specs,
    .hgc-rc-container-editor,
    .hgc-rc-product-meta
  ) {
    grid-template-columns: 1fr !important;
  }

  .roofing-price-book-root.hgc-rc-page .hgc-rc-product-status {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    padding-left: 0;
  }

  .roofing-price-book-root.hgc-rc-page .hgc-rc-product-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .roofing-price-book-root.hgc-rc-page .hgc-rc-product-status :is(label, button) {
    width: 100%;
    justify-content: center;
  }

  .roofing-price-book-root.hgc-rc-page .hgc-rc-container-editor > header {
    display: grid;
  }

  .roofing-price-book-root.hgc-rc-page .hgc-rc-application-rate > span:nth-child(2) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .roofing-price-book-root.hgc-rc-page .hgc-rc-system > nav,
  .roofing-price-book-root.hgc-rc-page .hgc-rc-product-status {
    grid-template-columns: 1fr !important;
  }

  .roofing-price-book-root.hgc-rc-page .hgc-rc-product-card > header {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 10px;
  }

  .roofing-price-book-root.hgc-rc-page .hgc-rc-product-icon {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .roofing-price-book-root.hgc-rc-page *,
  .roofing-price-book-root.hgc-rc-page *::before,
  .roofing-price-book-root.hgc-rc-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
