/* Account and management improvements keep the existing BBZ palette. */
.quote-title {
  font-size: 1.6rem;
  color: #1c3b55;
  margin: 0 0 20px;
}
.quote-account-summary {
  padding: 18px 20px;
  border: 1px solid #d8e5f0;
  border-radius: 12px;
  background: #f4f9fd;
  margin-bottom: 24px;
  display: grid;
  gap: 5px;
  overflow-wrap: anywhere;
}
.quote-account-summary strong {
  color: #1d4f79;
}
.quote-account-summary span {
  font-size: 0.85rem;
  color: #49667f;
}
.quote-account-summary p {
  font-size: 0.78rem;
  margin: 7px 0 0;
}
.quote-account-summary a {
  color: #2d689e;
}
.quote-extra-fields {
  grid-column: 1/-1;
  width: 100%;
  margin-top: 0 !important;
}
.quote-extra-fields small {
  font-size: 0.72rem;
  color: #6a8093;
  line-height: 1.6;
}
.account-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  width: 100%;
  grid-column: 1/-1;
}
.account-page-links a {
  flex: 1 1 130px;
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid #dbe6f0;
  background: #fff;
  border-radius: 10px;
  text-decoration: none;
  color: #315875;
}
.account-page-links strong {
  font-size: 0.8rem;
}
.account-page-links small {
  font-size: 0.68rem;
  color: #6c8295;
  line-height: 1.6;
}
.account-page-links a[aria-current] {
  background: #edf5fc;
  border-color: #91b6d8;
}
.customer-settings-wrap {
  flex-wrap: wrap;
}
.customer-nav-copy {
  display: grid;
  gap: 4px;
}
.customer-nav-copy small {
  font-size: 0.65rem;
  font-weight: 400;
  line-height: 1.6;
  color: #71859a;
}
.customer-nav a {
  align-items: start;
}
.customer-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}
.customer-quick-actions a {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: #fff;
  border: 1px solid #dce7f0;
  border-radius: 12px;
  color: #2d689e;
  text-decoration: none;
}
.customer-quick-actions strong {
  font-size: 0.83rem;
}
.customer-quick-actions small {
  font-size: 0.72rem;
  line-height: 1.7;
  color: #708397;
}
.customer-settings-disclosure {
  margin: 12px 0;
  border: 1px solid #dce6ee;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.customer-settings-disclosure > summary {
  padding: 19px 22px;
  font-weight: 600;
  color: #295473;
  cursor: pointer;
  font-size: 0.93rem;
}
.customer-settings-disclosure > form {
  padding: 0 22px 22px !important;
  border: 0 !important;
  box-shadow: none !important;
}
.customer-settings-disclosure > form > h3 {
  display: none;
}
.settings-helper {
  font-size: 0.8rem !important;
  line-height: 1.8 !important;
  color: #6b8092 !important;
  margin: 8px 0 20px;
}
.customer-contact-history {
  margin-top: 28px;
}
.customer-contact-history h2 {
  font-size: 1.3rem;
}
.customer-contact-history p {
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.remember-device-choice {
  margin: 18px 0;
  padding: 15px;
  border: 1px solid #dce6ef;
  border-radius: 10px;
  background: #f6f9fc;
}
.remember-device-choice label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.8rem;
  color: #375c79;
  font-weight: 600;
  line-height: 1.6;
}
.remember-device-choice input[type="checkbox"] {
  width: 17px !important;
  height: 17px !important;
  flex: 0 0 17px;
  margin-top: 3px;
  accent-color: #2d689e;
}
.remember-device-choice small {
  display: block;
  margin: 7px 0 0 26px;
  font-size: 0.7rem;
  line-height: 1.7;
  color: #72879a;
}
.auth-settings-hint {
  font-size: 0.74rem;
  line-height: 1.8;
  color: #6d8092;
  margin: 15px 0;
}
.admin-workspace-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.admin-workspace-sidebar {
  position: sticky;
  top: 100px;
  padding: 20px 14px;
  border: 1px solid #dce6ef;
  border-radius: 15px;
  background: #fff;
}
.admin-workspace-sidebar nav {
  display: grid;
  gap: 6px;
}
.admin-workspace-sidebar a {
  display: grid;
  gap: 5px;
  padding: 13px 12px;
  text-decoration: none;
  color: #365976;
  border-radius: 9px;
}
.admin-workspace-sidebar strong {
  font-size: 0.8rem;
}
.admin-workspace-sidebar small {
  font-size: 0.68rem;
  line-height: 1.6;
  color: #76899a;
}
.admin-workspace-sidebar a[aria-current] {
  background: #eaf3fb;
  color: #235e91;
}
.admin-workspace-sidebar > p {
  font-size: 0.7rem;
  line-height: 1.8;
  color: #7b8c9c;
  padding: 15px 12px 0;
  border-top: 1px solid #e9eff5;
  margin: 15px 0 0;
}
.admin-workspace-content {
  min-width: 0;
}
.admin-workspace-toggle {
  display: none;
}
.admin-workspace-content .admin-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-workspace-content .admin-stats {
  gap: 10px;
  flex-wrap: wrap;
}
.admin-workspace-content section {
  scroll-margin-top: 110px;
}
.admin-workspace-content [hidden],
.quote-extra-fields[hidden],
.quote-account-summary[hidden] {
  display: none !important;
}
.admin-workspace-content .admin-toolbar {
  flex-wrap: wrap;
  gap: 15px;
}
.admin-workspace-content .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-workspace-content :is(input, select, textarea) {
  max-width: 100%;
}
@media (max-width: 1000px) {
  .admin-workspace-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 18px;
  }
  .admin-workspace-content .admin-product-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .admin-workspace-layout {
    grid-template-columns: 1fr;
  }
  .admin-workspace-sidebar {
    position: static;
    padding: 13px;
  }
  .admin-workspace-toggle {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: #edf5fc;
    color: #285c87;
    font: 600 0.86rem inherit;
    cursor: pointer;
  }
  .admin-workspace-sidebar nav {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
  }
  .admin-workspace-toggle[aria-expanded="true"] + nav {
    display: grid;
  }
  .admin-workspace-sidebar > p {
    display: none;
  }
  .admin-workspace-content .form-grid {
    grid-template-columns: 1fr;
  }
  .customer-quick-actions {
    grid-template-columns: 1fr;
  }
  .customer-quick-actions a {
    padding: 15px;
  }
  .customer-settings-disclosure > summary {
    padding: 17px;
  }
  .customer-settings-disclosure > form {
    padding: 0 17px 20px !important;
  }
  .account-page-links a {
    flex-basis: 120px;
    padding: 11px;
  }
  .account-page-links {
    gap: 6px;
  }
  .account-page-links small {
    font-size: 0.64rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .admin-workspace-sidebar * {
    scroll-behavior: auto;
  }
}

#contact-form .form-field[hidden] {
  display: none !important;
}

.admin-workspace-content > .admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.admin-workspace-content > .admin-stats .admin-stat-card {
  min-width: 0;
  padding: 15px;
}
.admin-workspace-content > .admin-stats .admin-stat-card span {
  font-size: 0.72rem;
}
.admin-workspace-content > .admin-stats .admin-stat-card p {
  font-size: 0.65rem;
}
@media (max-width: 1000px) {
  .admin-workspace-content > .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Only the icon gets a fixed width; menu copy must use the remaining space. */
.customer-nav a > .customer-nav-copy {
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  font-size: inherit;
  text-align: left;
  color: inherit;
  overflow-wrap: normal;
  word-break: normal;
}
.customer-nav a > [aria-hidden] {
  flex: 0 0 20px;
  width: 20px;
}
.customer-nav-copy > span {
  width: auto;
  font-size: inherit;
  line-height: 1.5;
}
.customer-nav-copy small {
  display: block;
  width: auto;
  line-height: 1.6;
  overflow-wrap: normal;
  word-break: normal;
}
