:root {
  --wsc-primary: #00a0df;
  --wsc-primary-dark: #0089c1;
  --wsc-accent: #ffb600;
  --wsc-dark: #1a1a1a;
  --wsc-muted: #6c757d;
  --wsc-bg: #f5f7fa;
  --wsc-surface: #fff;
  --wsc-border: #e2e8f0;
  --wsc-shadow: 0 1px 3px rgb(0 0 0 / 6%);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

html {
  position: relative;
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-select:focus, .form-check-input:focus {
  box-shadow: 0 0 0 .2rem rgb(0 160 223 / 16%);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--wsc-surface);
  color: var(--wsc-dark);
  font-family: var(--font-sans);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--wsc-dark);
  font-family: var(--font-display);
  font-weight: 600;
}

h1,
h2 {
  margin-bottom: 1.5rem;
}

a {
  color: var(--wsc-primary);
}

a:hover {
  color: var(--wsc-primary-dark);
}

.page-container {
  position: relative;
  min-height: 100vh;
  padding: 2rem 2rem 3rem;
}

[data-page-loader-content] {
  display: contents;
}

.page-loading-overlay {
  position: absolute;
  z-index: 1020;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgb(255 255 255 / 78%);
  cursor: wait;
}

.page-loading-overlay.is-visible {
  display: flex;
}

.page-loading-dialog {
  display: flex;
  min-width: 12rem;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  border: 1px solid var(--wsc-border);
  background: var(--wsc-surface);
  padding: 1rem 1.25rem;
  box-shadow: 0 .5rem 1.5rem rgb(0 0 0 / 12%);
  color: var(--wsc-dark);
  font-weight: 600;
}

.page-loading-spinner {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border: .2rem solid rgb(0 160 223 / 20%);
  border-top-color: var(--wsc-primary);
  border-radius: 50%;
  animation: page-loading-spin .75s linear infinite;
}

@keyframes page-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loading-spinner {
    animation-duration: 1.5s;
  }
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h2,
.page-header h3 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.page-header hr {
  margin: 0;
  border-top: 2px solid var(--wsc-border);
  opacity: 1;
}

.card,
.quotation-editor-section,
.quotation-editor-dialog-card,
.quotation-wallchart-tile,
.reporting-option {
  border-color: var(--wsc-border);
  border-radius: 0;
  box-shadow: var(--wsc-shadow);
}

.card-header {
  padding: .85rem 1rem;
  border-bottom: 2px solid var(--wsc-border);
  background: #f8f9fa;
  color: var(--wsc-dark);
  font-family: var(--font-display);
  font-weight: 600;
}

.form-label {
  color: #333;
  font-weight: 600;
}

.form-control,
.form-select {
  border: 1px solid var(--wsc-border);
  border-radius: 0;
  box-shadow: var(--wsc-shadow);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--wsc-primary);
}

.btn {
  border-radius: 0;
  font-weight: 500;
}

.btn-primary {
  border-color: var(--wsc-primary);
  background: var(--wsc-primary);
  box-shadow: 0 2px 4px rgb(0 160 223 / 20%);
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--wsc-primary-dark);
  background: var(--wsc-primary-dark);
}

.btn-outline-primary {
  border-color: var(--wsc-primary);
  color: var(--wsc-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  border-color: var(--wsc-primary);
  background: var(--wsc-primary);
  color: #fff;
}

.table-responsive {
  border: 1px solid var(--wsc-border);
  background: #fff;
  box-shadow: var(--wsc-shadow);
}

.table {
  margin-bottom: 0;
  color: var(--wsc-dark);
  box-shadow: var(--wsc-shadow);
}

.table > thead,
.table > .table-dark {
  --bs-table-bg: #f8f9fa;
  --bs-table-color: var(--wsc-dark);
  --bs-table-border-color: var(--wsc-border);
}

.table thead th {
  border-bottom: 2px solid var(--wsc-border);
  background: #f8f9fa;
  color: var(--wsc-dark);
  font-weight: 600;
  vertical-align: middle;
}

.table tbody tr:hover > * {
  --bs-table-bg-state: #f8f9fa;
}

.table-bordered > :not(caption) > * {
  border-color: var(--wsc-border);
}

.nav-tabs {
  border-bottom-color: var(--wsc-border);
}

.nav-tabs .nav-link {
  border-radius: 0;
  color: #555;
  font-weight: 600;
}

.nav-tabs .nav-link.active {
  border-color: var(--wsc-border) var(--wsc-border) #fff;
  color: var(--wsc-primary);
}

.alert,
.badge {
  border-radius: 0;
}

.text-muted {
  color: var(--wsc-muted) !important;
}

.home-container {
  width: min(100%, 1100px);
  margin: 0 auto;
}

.welcome-panel {
  position: relative;
  display: flex;
  min-height: 220px;
  align-items: center;
  gap: 1.5rem;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--wsc-border);
  background: linear-gradient(120deg, rgb(0 160 223 / 7%), #fff 55%);
  padding: 2.5rem 3rem;
  box-shadow: var(--wsc-shadow);
}

.welcome-panel-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--wsc-primary);
}

.welcome-panel h1 {
  margin: .35rem 0 .75rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.welcome-panel p {
  margin: 0;
  color: var(--wsc-muted);
  font-size: 1.05rem;
}

.welcome-eyebrow {
  color: var(--wsc-primary);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.customer-info {
  border: 1px solid var(--wsc-border);
  background: #fff;
  box-shadow: var(--wsc-shadow);
}

.customer-info-title {
  border-bottom: 2px solid var(--wsc-border);
  background: #f8f9fa;
  padding: 1rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.customer-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-item {
  display: flex;
  min-height: 78px;
  flex-direction: column;
  gap: .3rem;
  border-bottom: 1px solid var(--wsc-border);
  padding: 1rem 1.25rem;
  color: #555;
}

.detail-item:nth-child(odd) {
  border-right: 1px solid var(--wsc-border);
}

.detail-label {
  color: var(--wsc-dark);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rounded,
.rounded-1,
.rounded-2,
.rounded-3 {
  border-radius: 0 !important;
}

.quotation-readiness-pending {
  position: relative;
  color: #6c757d;
  background-color: #e9ecef;
  border-color: #ced4da;
  cursor: not-allowed;
}

.quotation-readiness-pending [data-quotation-readiness-label] {
  opacity: 0.35;
}

.quotation-readiness-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -0.5rem 0 0 -0.5rem;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.quotation-setup-stepper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.quotation-step-total {
  margin-left: auto;
  font-weight: 700;
  color: var(--wsc-primary);
  white-space: nowrap;
}

.quotation-step-button {
  border: 1px solid var(--wsc-border);
  border-radius: 0;
  background: #f8f9fa;
  color: #495057;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

.quotation-step-button.active {
  background: var(--wsc-primary);
  color: #fff;
  border-color: var(--wsc-primary);
}

.quotation-step-button.completed {
  border-color: #198754;
  color: #198754;
}

.quotation-step-panel {
  transition: opacity 0.15s ease-in-out;
}

.quotation-step-panel.d-none {
  opacity: 0;
}

.quotation-customer-section {
  min-width: 0;
}

.quotation-customer-section > legend {
  width: auto;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--wsc-border);
  color: var(--wsc-dark);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.quotation-setup-summary {
  font-size: 0.95rem;
}

.quotation-products-tabs .nav-link {
  cursor: pointer;
}

.quotation-wallchart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.quotation-product-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.quotation-product-group-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  color: inherit;
  text-align: left;
  background: #fff;
  border: 1px solid var(--wsc-border);
}

.quotation-product-group-card:hover,
.quotation-product-group-card:focus-visible,
.quotation-product-group-card.is-selected {
  border-color: var(--wsc-primary);
  box-shadow: 0 0 0 .2rem rgb(0 160 223 / 12%);
}

.quotation-product-group-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: #f3f6f8;
}

.quotation-product-group-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quotation-product-group-title {
  padding: 0.65rem 0.75rem;
  font-weight: 600;
  flex: 0 0 auto;
}

.product-group-thumbnail-preview {
  width: 56px;
  height: 40px;
  margin-right: 0.5rem;
  object-fit: cover;
  vertical-align: middle;
}

.quotation-wallchart-tile {
  border: 1px solid var(--wsc-border);
  border-radius: 0;
  background: #fff;
  padding: 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.quotation-wallchart-tile:hover,
.quotation-wallchart-tile:focus-visible {
  border-color: var(--wsc-primary);
  box-shadow: 0 0 0 .2rem rgb(0 160 223 / 12%);
}

.quotation-wallchart-tile-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quotation-wallchart-image-frame {
  width: 164px;
  height: 164px;
  max-width: 100%;
}

.quotation-wallchart-tile-title {
  font-weight: 600;
}

.quotation-wallchart-tile-subtitle {
  font-size: 0.85rem;
  color: #6c757d;
}

.quotation-editor-section {
  border: 1px solid var(--wsc-border);
  border-radius: 0;
  background: #fff;
  padding: 1rem;
}

.quotation-editor-section h3,
.quotation-editor-dialog h3 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.quotation-image-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f8f9fa;
  border: 1px solid var(--wsc-border);
}

.quotation-image-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  display: none;
  width: 2rem;
  height: 2rem;
  margin: -1rem 0 0 -1rem;
  border: .2rem solid rgb(0 160 223 / 20%);
  border-top-color: var(--wsc-primary);
  border-radius: 50%;
  animation: quotation-image-spin 0.75s linear infinite;
}

.quotation-image-frame.is-loading .quotation-image-spinner {
  display: block;
}

.quotation-image-frame.is-loading img {
  visibility: hidden;
}

.quotation-image-frame.is-unavailable img {
  display: none;
}

.quotation-image-unavailable {
  display: none;
  max-width: 24rem;
  padding: 1.5rem;
  color: #6c3229;
  font-size: 0.9375rem;
  line-height: 1.45;
  text-align: center;
}

.quotation-image-unavailable.is-visible {
  display: grid;
  gap: 0.5rem;
}

.quotation-image-unavailable strong {
  font-weight: 600;
}

.quotation-product-drawing-frame {
  width: 100%;
  min-height: 260px;
  max-height: 420px;
}

.quotation-product-drawing-trigger {
  padding: 0;
  color: inherit;
  cursor: zoom-in;
}

.quotation-product-drawing-trigger:disabled {
  cursor: default;
}

.quotation-product-drawing-trigger:hover,
.quotation-product-drawing-trigger:focus-visible {
  border-color: var(--wsc-primary);
  box-shadow: 0 0 0 .2rem rgb(0 160 223 / 18%);
  outline: 0;
}

.quotation-product-drawing {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.quotation-product-drawing-dialog {
  width: min(1400px, calc(100vw - 2rem));
  height: calc(100vh - 2rem);
  max-width: none;
  max-height: none;
  border: 0;
  background: #fff;
  padding: 0;
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 30%);
}

.quotation-product-drawing-dialog::backdrop {
  background: rgb(0 0 0 / 65%);
}

.quotation-product-drawing-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--wsc-border);
  padding: 1rem 1.25rem;
}

.quotation-product-drawing-dialog-body {
  display: flex;
  height: calc(100% - 65px);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
}

.quotation-product-drawing-dialog-body img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quotation-designer {
  --designer-blue: #4ca8d9;
  --designer-pale-blue: #e9f4fa;
  --designer-border: #e5e2e0;
  color: #232222;
  container-type: inline-size;
}

.quotation-designer-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 396px;
  align-items: start;
  border: 1px solid var(--designer-border);
  background: #fff;
}

.quotation-designer-preview {
  position: sticky;
  top: 1rem;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 3rem);
}

.quotation-designer-product-heading h2 {
  margin: .5rem 0 .75rem;
  font-size: clamp(1.25rem, 2vw, 1.875rem);
  line-height: 1.3;
}

.quotation-designer-product-heading p,
.quotation-designer-section-help,
.quotation-designer-menu-help {
  color: #5f5e5d;
  font-size: .875rem;
  line-height: 1.6;
}

.quotation-designer-eyebrow {
  display: block;
  color: #5f5e5d;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.quotation-designer .quotation-product-drawing-frame {
  height: clamp(300px, 42vw, 580px);
  min-height: 0;
  max-height: none;
  margin-top: 1rem;
  padding: 1.5rem;
  border-color: transparent;
  background: #fafafa;
}

.quotation-designer .quotation-product-drawing {
  height: 100%;
  max-height: none;
  mix-blend-mode: multiply;
}

.quotation-designer-preview-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  margin: 1rem 0;
  color: #5f5e5d;
  font-size: .75rem;
}

.quotation-designer-preview-caption span:first-child {
  color: #232222;
  font-weight: 600;
}

.quotation-designer-preview-details {
  padding-top: 1rem;
  border-top: 1px solid var(--designer-border);
  font-size: .875rem;
  font-weight: 600;
}

.quotation-designer-preview-status {
  margin: .5rem 0 0;
  color: #5f5e5d;
  font-size: .75rem;
}

.quotation-designer-sidebar {
  min-width: 0;
  min-height: 690px;
  border-left: 1px solid var(--designer-border);
}

.quotation-designer-price-header {
  display: grid;
  gap: .5rem;
  padding: 1.5rem;
  background: var(--designer-pale-blue);
  text-align: center;
}

.quotation-designer-price {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.quotation-designer-price.is-stale {
  color: #5f5e5d;
}

.quotation-designer-price-caption {
  min-height: 1.125rem;
  color: #5f5e5d;
  font-size: .75rem;
}

.quotation-designer-header-actions {
  display: flex;
  gap: .75rem;
  margin-top: .5rem;
}

.quotation-designer-header-actions .btn {
  flex: 1;
}

.quotation-designer .btn {
  border-radius: .375rem;
  font-size: .8125rem;
  font-weight: 600;
}

.quotation-designer .quotation-designer-primary {
  border: 1px solid var(--designer-blue);
  background: var(--designer-blue);
  color: #132a3b;
}

.quotation-designer .quotation-designer-primary:hover {
  border-color: #69b6e0;
  background: #69b6e0;
}

.quotation-designer .quotation-designer-outline {
  border: 1px solid #92908f;
  background: #fff;
  color: #232222;
}

.quotation-designer .quotation-designer-outline:hover {
  background: #f5f5f7;
}

.quotation-designer-menu-heading {
  margin: 0;
  padding: 1.5rem;
  border-bottom: 1px solid var(--designer-border);
  font-size: 1.25rem;
  font-weight: 700;
}

.quotation-designer-menu {
  padding: 0 .75rem;
}

.quotation-designer-menu-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem .5rem;
  border: 0;
  border-bottom: 1px solid var(--designer-border);
  background: #fff;
  color: inherit;
  text-align: left;
}

.quotation-designer-menu-item::after {
  width: .45rem;
  height: .45rem;
  flex-shrink: 0;
  margin-left: .25rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.quotation-designer-menu-item:hover {
  background: #fafafa;
}

.quotation-designer-menu-item:focus-visible,
.quotation-designer .btn:focus-visible {
  outline: 3px solid #1c85bd;
  outline-offset: -3px;
}

.quotation-designer-menu-number {
  color: #5f5e5d;
  font-size: .6875rem;
  font-weight: 600;
}

.quotation-designer-menu-description {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: .375rem;
}

.quotation-designer-menu-title {
  font-size: .9375rem;
  font-weight: 500;
}

.quotation-designer-menu-summary {
  overflow: hidden;
  color: #5f5e5d;
  font-size: .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quotation-designer-tag {
  flex-shrink: 0;
  padding: .2rem .5rem;
  border-radius: .25rem;
  background: #f0f0f1;
  color: #484646;
  font-size: .625rem;
  font-weight: 600;
}

.quotation-designer-tag.is-invalid {
  background: #f8e8e8;
  color: #841212;
}

.quotation-designer-menu-help {
  margin: 0;
  padding: 1.5rem;
  font-size: .75rem;
}

.quotation-designer-section-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: 1.25rem .75rem;
  border-block: 1px solid var(--designer-border);
  text-align: center;
}

.quotation-designer-section-nav h3 {
  margin: .375rem 0 0;
  outline: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.quotation-designer-arrow {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  padding: 0;
  background: var(--designer-pale-blue);
  font-size: 1.25rem !important;
}

.quotation-designer-sheet-body {
  min-height: 340px;
  padding: 1.5rem;
}

.quotation-designer-sheet-footer {
  display: grid;
  gap: .75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--designer-border);
}

.quotation-designer-dimension {
  margin-top: 1.5rem;
}

.quotation-designer .form-control,
.quotation-designer .form-select {
  min-height: 2.75rem;
  border-color: #adaba9;
  border-radius: .375rem;
  font-size: .875rem;
}

.quotation-designer .input-group .form-control {
  border-radius: .375rem 0 0 .375rem;
}

.quotation-designer .input-group-text {
  border-color: #adaba9;
  border-radius: 0 .375rem .375rem 0;
  background: #fafafa;
  color: #5f5e5d;
  font-size: .8125rem;
}

.quotation-designer .form-label,
.quotation-designer-field-heading {
  margin-bottom: .75rem;
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 600;
}

.quotation-designer .form-text {
  font-size: .75rem;
}

.quotation-designer-option + .quotation-designer-option {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--designer-border);
}

.quotation-designer-frame-heading {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.quotation-designer-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.quotation-designer .quotation-designer-choice {
  position: relative;
  min-height: 4.5rem;
  padding: 1rem .75rem 1rem 2rem;
  border: 1px solid #adaba9;
  background: #fff;
  color: #232222;
  font-weight: 400;
  overflow-wrap: anywhere;
  text-align: left;
  white-space: normal;
}

.quotation-designer-choice::before {
  position: absolute;
  top: calc(50% - .375rem);
  left: .75rem;
  width: .75rem;
  height: .75rem;
  border: 1px solid #787776;
  border-radius: 50%;
  content: "";
}

.quotation-designer .quotation-designer-choice.active {
  border-color: #166894;
  background: var(--designer-pale-blue);
  box-shadow: inset 0 0 0 1px #166894;
}

.quotation-designer-choice.active::before {
  border: 3px solid #166894;
  background: #fff;
}

.quotation-designer-review-summary dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: .75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--designer-border);
  font-size: .8125rem;
}

.quotation-designer-review-summary dt {
  font-weight: 500;
}

.quotation-designer-review-group {
  margin: 1.25rem 0 .75rem;
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 600;
}

.quotation-designer-review-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.quotation-designer-price-adjustments {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--designer-border);
}

.quotation-designer-glazing {
  font-size: .75rem;
}

.quotation-designer-glazing td,
.quotation-designer-glazing th {
  padding: .75rem .25rem;
}

.quotation-designer-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 20rem;
  color: #5f5e5d;
}

@media (max-width: 1199.98px) {
  .quotation-designer-workspace {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .quotation-designer-preview {
    padding: 1.25rem;
  }
}

@container (max-width: 760px) {
  .quotation-designer-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .quotation-designer-preview {
    position: static;
  }

  .quotation-designer .quotation-product-drawing-frame {
    height: 320px;
  }

  .quotation-designer-sidebar {
    min-height: 0;
    border-top: 1px solid var(--designer-border);
    border-left: 0;
  }

  .quotation-designer-menu,
  .quotation-designer-sheet-body,
  .quotation-designer-sheet-footer {
    max-width: 640px;
    margin-inline: auto;
  }
}

@media (max-width: 575.98px) {
  .quotation-designer-product-heading p {
    display: none;
  }

  .quotation-designer-preview,
  .quotation-designer-sheet-body,
  .quotation-designer-price-header {
    padding: 1rem;
  }

  .quotation-designer .quotation-product-drawing-frame {
    height: 260px;
    padding: .75rem;
  }
}

.quotation-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.quotation-product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgb(33 37 41 / 22%);
  background: #fff;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 0.35rem 0.85rem rgb(33 37 41 / 12%);
}

.quotation-product-card:hover {
  border-color: var(--wsc-primary);
  box-shadow: 0 0.5rem 1rem rgb(33 37 41 / 18%), 0 0 0 .2rem rgb(0 160 223 / 12%);
}

.quotation-product-thumbnail-frame {
  width: 200px;
  height: 200px;
  max-width: 100%;
}

.quotation-product-title {
  width: 100%;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.quotation-product-location {
  color: #6c757d;
  font-size: 0.875rem;
}

.quotation-product-price {
  font-weight: 600;
}

.quotation-product-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.quotation-product-card:hover .quotation-product-actions,
.quotation-product-card:focus-within .quotation-product-actions {
  opacity: 1;
}

@media (max-width: 575.98px), (hover: none) {
  .quotation-product-actions {
    opacity: 1;
  }
}

.quotation-product-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes quotation-image-spin {
  to {
    transform: rotate(360deg);
  }
}

.quotation-editor-dialog {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgb(0 0 0 / 45%);
}

.quotation-editor-dialog-card {
  width: min(720px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  border-radius: 0;
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 20%);
}

.reporting-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.reporting-option {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 1px solid var(--wsc-border);
  border-radius: 0;
  color: inherit;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
}

.reporting-option:hover,
.reporting-option:focus-visible {
  border-color: var(--wsc-primary);
  color: inherit;
  box-shadow: 0 0 0 .2rem rgb(0 160 223 / 12%);
}

.reporting-option-icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border-radius: 0;
  background: var(--wsc-primary);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}

.reporting-option-title {
  color: var(--wsc-primary);
  font-size: 1.25rem;
  font-weight: 700;
}

.reporting-option-description {
  color: #6c757d;
}

.quotation-report-page {
  margin: 0;
  background: #f1f3f5;
}

.quotation-report-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
}

.quotation-report {
  width: min(210mm, calc(100% - 2rem));
  min-height: 297mm;
  margin: 0 auto 2rem;
  background: #fff;
  padding: 12mm;
  box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 12%);
}

.quotation-report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: 3px solid #212529;
}

.quotation-report-header h1 {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: 0.1em;
}

.quotation-report-logo {
  width: 160px;
  height: 70px;
  object-fit: contain;
  object-position: right center;
}

.quotation-report-label,
.quotation-report-product-heading {
  font-weight: 700;
}

.quotation-report-reference {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  border-block: 1px solid #212529;
  padding: 0.75rem 0;
}

.quotation-report-reference h2 {
  width: 100%;
  margin: 0;
  font-size: 1.2rem;
  text-align: center;
}

.quotation-report-product {
  break-inside: avoid;
  border-bottom: 1px solid #adb5bd;
  padding: 1rem 0;
}

.quotation-report-product-grid {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(220px, 1.5fr) minmax(220px, 1.5fr);
  gap: 1rem;
  align-items: start;
}

.quotation-report-product-grid > :last-child:nth-child(2) {
  grid-column: span 2;
}

.quotation-report-item-price {
  align-self: end;
  text-align: right;
}

.quotation-report-product-details {
  font-size: 8px;
}

.quotation-report-drawing img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.quotation-report-extras {
  break-inside: avoid;
  margin-top: 1rem;
}

.quotation-report-extras h2 {
  font-size: 1rem;
}

.quotation-report-extras .table {
  font-size: 0.8rem;
}

.quotation-report-totals {
  width: min(360px, 100%);
  margin: 1.5rem 0 0 auto;
}

.quotation-report-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.25rem 0;
}

.quotation-report-grand-total {
  border-block: 2px solid #212529;
  font-size: 1.1rem;
}

.pricing-info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: #0d6efd;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.pricing-info-button:hover,
.pricing-info-button:focus-visible {
  background: #0d6efd;
  color: #fff;
}

@media (max-width: 575.98px) {
  .quotation-editor-section {
    padding: 0.75rem;
  }

  .quotation-product-drawing-frame {
    min-height: 200px;
  }

  .reporting-options,
  .quotation-report-product-grid {
    grid-template-columns: 1fr;
  }

  .quotation-report-product-grid > :last-child:nth-child(2) {
    grid-column: auto;
  }
}

@media (max-width: 767.98px) {
  .page-container {
    padding: 1.5rem 1rem 2rem;
  }

  .page-header h2,
  .page-header h3 {
    font-size: 1.5rem;
  }

  .welcome-panel {
    min-height: 180px;
    padding: 2rem 1.5rem;
  }

  .customer-details {
    grid-template-columns: 1fr;
  }

  .detail-item:nth-child(odd) {
    border-right: 0;
  }
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  .quotation-report-page {
    background: #fff;
  }

  .quotation-report-actions {
    display: none;
  }

  .quotation-report {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 10mm;
    box-shadow: none;
  }
}