.sales-wrap {
  max-width: 1180px;
  margin: auto;
  padding: 28px;
}
/* Staff workspace rhythm. Public selection pages keep their existing layout. */
.sales-wrap {
  color: #193a40;
}
.sales-wrap .sales-heading {
  margin-bottom: 26px;
  gap: 20px;
}
.sales-heading h1 {
  font-size: 32px;
  letter-spacing: -0.035em;
  line-height: 1.2;
}
.sales-heading p {
  margin: 7px 0 0;
}
.sales-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #3d746f;
  margin: 0 0 8px !important;
}
.sales-wrap .sales-nav {
  gap: 6px;
  padding: 6px;
  background: #e7eeef;
  border-radius: 12px;
  margin-bottom: 28px;
  width: fit-content;
  max-width: 100%;
}
.sales-wrap .sales-nav a {
  font-size: 15px;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 22px;
}
.sales-wrap .sales-nav a[aria-current] {
  background: #fff;
  color: #183d40;
  box-shadow: 0 2px 5px #173d4012;
}
.sales-wrap .sales-card {
  border-color: #dbe5e5;
  box-shadow: 0 2px 4px #173d4003;
  padding: 24px;
}
.sales-wrap .sales-card > h2 {
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 8px;
}
.sales-wrap .sales-card > p {
  margin: 8px 0 20px;
}
.sales-wrap .sales-card > .sales-actions {
  margin: 18px 0;
}
.sales-wrap .sales-actions {
  gap: 10px 16px;
}
.sales-wrap .sales-actions:empty {
  display: none;
}
.sales-wrap .sales-actions > a:not(.btn) {
  font-size: 14px;
  color: #17645a;
  padding: 10px 0;
}
.sales-wrap .sales-card > .btn,
.sales-wrap .sales-item > .btn {
  margin: 10px 10px 0 0;
}
.sales-wrap .sales-card > .sales-item {
  margin-top: 16px;
}
.sales-wrap .sales-card > .sales-form {
  margin-top: 18px;
}
.sales-wrap .sales-card > .sales-form + .sales-list {
  margin-top: 22px;
}
.sales-wrap .sales-form > .sales-status:empty {
  display: none;
}
.sales-wrap .sales-search {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin: 20px 0 24px;
  gap: 12px;
}
.sales-wrap .sales-search > button {
  min-width: 90px;
}
.sales-wrap .sales-filters {
  margin: 0 0 22px;
  max-width: 280px;
}
.sales-wrap .sales-item {
  padding: 20px;
  background: #fff;
}
.sales-wrap .sales-item > a:first-child,
.sales-row-heading > a {
  font-size: 17px;
  font-weight: 650;
}
.sales-wrap .sales-item .sales-actions {
  margin-top: 12px;
}
.sales-row-heading,
.sales-choice-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.sales-row-heading > strong {
  font-size: 17px;
}
.sales-choice-row > div {
  flex: 1;
  min-width: 180px;
}
.sales-wrap .sales-project-picker {
  max-height: 470px;
  overflow-y: auto;
  padding: 3px;
}
.sales-wrap .sales-project-picker .sales-item {
  padding: 16px;
}
.sales-wrap .sales-actions button[aria-pressed='true'] {
  background: #183d40;
  color: #fff;
  border-color: #183d40;
}
.sales-wrap .sales-project-nav {
  border-bottom: 1px solid #dbe5e5;
  padding-bottom: 14px;
  gap: 10px;
}
.sales-wrap .sales-project-nav .btn {
  background: transparent;
  border-color: transparent;
}
.sales-wrap .sales-project-nav .btn[aria-pressed='true'] {
  background: #e3efea;
  color: #183d40;
}
.sales-wrap .sales-next-step {
  padding: 18px 20px;
}
.sales-wrap .sales-next-step strong {
  font-size: 18px;
}
.sales-wrap .sales-next-step p {
  margin: 8px 0 14px;
}
.sales-wrap .sales-next-step .btn {
  background: #fff;
  color: #183d40;
  border-color: #c4d6ce;
}
.sales-wrap .sales-quote-builder {
  margin-top: 18px;
}
.sales-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  counter-reset: quote-step;
  list-style: none;
  margin: 0 0 26px;
  padding: 0 0 20px;
  border-bottom: 1px solid #e0e7e5;
}
.sales-steps li {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: #526663;
}
.sales-steps li::before {
  counter-increment: quote-step;
  content: counter(quote-step);
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #edf2ee;
}
.sales-steps li[aria-current] {
  color: #183d40;
  font-weight: 700;
}
.sales-steps li[aria-current]::before {
  background: #183d40;
  color: #fff;
}
.settings-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
#settingsPane .pane-wrap {
  max-width: 1360px;
}
#settingsNav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 0;
  overflow: visible;
  padding: 0;
}
#settingsNav a {
  white-space: normal;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
}
#settingsNav a.active {
  background: #e3efea;
  color: #183d40;
}
.settings-content {
  min-width: 0;
}
.settings-section-title {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 8px;
}
.settings-picker {
  display: none;
}
#cfgPane #configNav {
  flex-wrap: wrap;
  overflow: visible;
}
@media (max-width: 1150px) {
  .settings-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .settings-picker {
    display: grid;
    gap: 8px;
    color: #52647a;
    font-size: 12px;
    font-weight: 600;
  }
  .settings-picker select {
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 1px solid #dce4eb;
    border-radius: 8px;
    color: #14213d;
    font: inherit;
    font-size: 15px;
  }
  #settingsMenu #settingsNav {
    display: none;
  }
}
.sales-wrap.sales-settings {
  padding: 0;
  max-width: none;
}
.sales-settings-heading {
  margin-bottom: 22px;
}
.sales-settings-heading h2 {
  font-size: 24px;
  margin: 0 0 8px;
}
.sales-settings-heading p {
  margin: 0;
}
.sales-brand-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.sales-brand-preview {
  position: sticky;
  top: 20px;
  min-width: 0;
}
.sales-logo-preview {
  padding: 20px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f8f7;
  border: 1px dashed #b8cac5;
  border-radius: 8px;
  margin: 18px 0;
}
.sales-logo-preview img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}
.sales-preview-paper {
  background: #fff;
  border-top: 6px solid #183d40;
  padding: 24px;
  box-shadow: 0 6px 22px #173d4010;
  min-height: 420px;
  overflow-wrap: anywhere;
}
.sales-preview-brand {
  display: grid;
  gap: 12px;
  font-size: 15px;
}
.sales-preview-brand img {
  max-width: 130px;
  max-height: 60px;
  object-fit: contain;
  object-position: left;
}
.sales-preview-contact {
  font-size: 11px;
  white-space: pre-wrap;
  color: #526663;
  line-height: 1.5;
  margin: 10px 0 28px;
}
.sales-preview-paper h3 {
  font-size: 24px;
  margin: 0 0 20px;
}
.sales-preview-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e1e8e3;
  font-size: 11px;
}
.sales-preview-line strong {
  white-space: nowrap;
}
.sales-preview-paper .sales-muted,
.sales-preview-terms {
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  margin: 18px 0;
}
.sales-brand-preview > p.sales-muted {
  font-size: 12px;
  margin: 16px 0;
}
.sales-tax-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
@media (max-width: 1250px) {
  .sales-brand-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sales-brand-preview {
    position: static;
    max-width: 480px;
  }
}
@media (max-width: 700px) {
  .sales-wrap .sales-card {
    padding: 18px;
  }
  .sales-wrap .sales-nav {
    width: 100%;
    gap: 2px;
    justify-content: space-between;
  }
  .sales-wrap .sales-nav a {
    padding: 10px 9px;
    font-size: 14px;
  }
  .sales-wrap .sales-search {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .sales-wrap .sales-search > button {
    min-width: 70px;
  }
  .sales-wrap .sales-item {
    padding: 16px;
  }
  .settings-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  #settingsNav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 0;
  }
  #settingsNav a {
    font-size: 13px;
    background: #fff;
    border: 1px solid #e0e7ed;
    padding: 10px;
  }
  .sales-tax-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
.sales-heading,
.sales-nav,
.sales-actions,
.sales-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sales-match-list {
  display: grid;
  gap: 10px;
}
.sales-match-list:empty {
  display: none;
}
.sales-heading {
  justify-content: space-between;
  margin-bottom: 20px;
}
.sales-heading h1 {
  margin: 0;
}
.sales-nav {
  margin-bottom: 22px;
}
.sales-nav a {
  color: inherit;
  padding: 9px 14px;
  border-radius: 8px;
  text-decoration: none;
}
.sales-nav a[aria-current] {
  background: #163b42;
  color: white;
}
.sales-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.sales-card {
  background: white;
  border: 1px solid #dce3e2;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 18px;
  min-width: 0;
}
.sales-card h2,
.sales-card h3 {
  margin: 0 0 12px;
}
.sales-card summary {
  font-size: 18px;
  font-weight: 650;
  cursor: pointer;
}
.sales-card[open] summary {
  margin-bottom: 18px;
}
.sales-card p,
.sales-card pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sales-muted {
  color: #526663;
  font-size: 14px;
  line-height: 1.55;
}
.sales-form {
  display: grid;
  gap: 14px;
}
.sales-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 550;
}
.sales-form input,
.sales-form select,
.sales-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 11px;
  border: 1px solid #acbfbc;
  border-radius: 7px;
  font: inherit;
  background: white;
  color: #153c42;
}
.sales-form textarea {
  min-height: 100px;
  resize: vertical;
}
.sales-form input[type='checkbox'] {
  width: 20px;
  height: 20px;
}
.sales-form .sales-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
}
.sales-form button {
  justify-self: start;
}
.sales-list {
  display: grid;
  gap: 12px;
}
.sales-item {
  padding: 16px;
  border: 1px solid #dce3e2;
  border-radius: 10px;
  min-width: 0;
}
.sales-item h3 {
  margin-bottom: 7px;
}
.sales-item p {
  margin: 6px 0;
}
.sales-item a {
  color: #17645a;
  overflow-wrap: anywhere;
}
.sales-badge {
  display: inline-block;
  padding: 4px 9px;
  background: #eaf1ee;
  border-radius: 6px;
  font-size: 12px;
  text-transform: capitalize;
}
.sales-alert {
  color: #9d3025;
  background: #fff4ef;
  padding: 12px;
  border-radius: 8px;
  white-space: pre-wrap;
}
.sales-status {
  min-height: 22px;
  color: #266957;
}
.sales-photo {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  background: #f5f7f5;
  border-radius: 8px;
}
.sales-history {
  max-height: 450px;
  overflow: auto;
}
.sales-history article {
  border-left: 2px solid #aec5be;
  padding: 0 0 14px 14px;
  margin: 0 0 0 6px;
}
.sales-history p {
  margin: 5px 0;
}
.sales-link-input {
  font-family: monospace;
  font-size: 13px !important;
}
.sales-public {
  background: #f3f5f1;
  color: #173d40;
  font:
    16px/1.5 system-ui,
    sans-serif;
  margin: 0;
}
.sales-public main {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 22px;
}
.sales-public h1 {
  font-size: 32px;
  line-height: 1.15;
}
.sales-public button {
  font: inherit;
  cursor: pointer;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid #bbc9c4;
  background: #173d40;
  color: white;
}
.sales-public button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.sales-public label {
  font-weight: 500;
}
.sales-public .sales-card {
  box-shadow: 0 4px 20px #173d4006;
}
.sales-public footer {
  font-size: 13px;
  color: #60736d;
  margin-top: 28px;
}
.sales-form input:focus,
.sales-form textarea:focus,
.sales-form select:focus,
.sales-public button:focus-visible {
  outline: 3px solid #9bbba4;
  outline-offset: 2px;
}
.sales-wrap {
  font-size: 16px;
}
.sales-wrap .btn {
  min-height: 44px;
  font-size: 15px;
  white-space: normal;
}
.sales-wrap .sales-form label {
  font-size: 16px;
}
.sales-wrap [hidden] {
  display: none !important;
}
.sales-project-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  border-bottom: 1px solid #dce3e2;
  padding-bottom: 16px;
}
.sales-project-nav button[aria-pressed='true'] {
  background: #173d40;
  color: white;
  border-color: #173d40;
}
.sales-next-step {
  padding: 20px;
  margin-top: 18px;
  border-radius: 10px;
  background: #eef4ed;
  border-left: 4px solid #5c7e55;
}
.sales-next-step strong {
  font-size: 20px;
}
.sales-next-step p {
  color: #425b50;
  line-height: 1.55;
  max-width: 680px;
}
.sales-overview-grid {
  grid-template-columns: 1fr;
}
.sales-quote-customer {
  padding: 16px;
  background: #eef4ed;
  border-radius: 8px;
}
.sales-product-picker .sales-list {
  max-height: 280px;
  overflow-y: auto;
  margin-top: 16px;
}
.sales-catalog-result {
  padding: 14px;
  border: 1px solid #dce3e2;
  border-radius: 8px;
}
.sales-catalog-result p {
  margin: 6px 0;
}
.sales-quote-line {
  border: 1px solid #c5d3cb;
  border-radius: 12px;
  margin: 14px 0;
  padding: 18px;
  background: #fafbf8;
}
.sales-line-fields {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(80px, 110px) minmax(100px, 150px);
  gap: 14px;
  align-items: end;
}
.sales-line-fields label {
  display: grid;
  gap: 7px;
  font-size: 16px;
  min-width: 0;
}
.sales-line-fields input {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #9dafab;
  border-radius: 7px;
  padding: 12px;
  font: inherit;
  color: #173d40;
  background: white;
}
.sales-line-more {
  margin: 14px 0;
  padding: 12px;
  background: transparent;
  border: 0;
}
.sales-line-more summary {
  font-size: 15px;
}
.sales-quote-lines:empty::before {
  content: 'Choose a product above or add a manual item below.';
  display: block;
  padding: 20px 0;
  color: #526663;
}
.sales-import-progress {
  margin: 16px 0;
  padding: 18px;
  background: #eef4ed;
  border-radius: 10px;
}
.sales-import-progress strong {
  font-size: 19px;
}
.sales-wrap a:focus-visible,
.sales-wrap button:focus-visible,
.sales-line-fields input:focus {
  outline: 3px solid #679577;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .sales-wrap {
    padding: 18px 14px;
  }
  .sales-grid {
    grid-template-columns: 1fr;
  }
  .sales-card {
    padding: 17px;
  }
  .sales-heading h1 {
    font-size: 26px;
  }
  .sales-nav {
    gap: 3px;
  }
  .sales-nav a {
    padding: 9px;
  }
  .sales-actions .btn {
    max-width: 100%;
    white-space: normal;
  }
  .sales-public main {
    padding: 22px 14px;
  }
  .sales-line-fields {
    grid-template-columns: 1fr 1fr;
  }
  .sales-line-fields label:first-child {
    grid-column: 1 / -1;
  }
  .sales-project-nav {
    gap: 5px;
  }
  .sales-project-nav .btn {
    padding: 10px;
  }
  .sales-quote-line {
    padding: 12px;
  }
}
