.quotes-module {
  color: #0F2542;
}

.quote-heading {
  margin-bottom: 12px;
}

.quote-list-heading {
  align-items: flex-end;
}

.eyebrow {
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quote-tabs {
  min-height: 58px;
  display: flex;
  align-items: flex-end;
  gap: 28px;
  margin: 0 0 18px;
  border-bottom: 1px solid #CBD8E5;
}

.quote-tab {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  color: #2C4361;
  font-size: 16px;
  font-weight: 800;
}

.quote-tab.active {
  border-bottom-color: var(--color-accent);
  color: #007F86;
}

.quote-primary-action {
  min-height: 46px;
  padding-inline: 18px;
  font-size: 16px;
}

.quote-list-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 12px;
  border: 1px solid #D4E1ED;
  border-radius: 8px;
  background: #FFFFFF;
}

.quote-list-summary > div {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
}

.quote-list-summary > div + div {
  border-left: 1px solid #DFE8F1;
}

.quote-list-summary span {
  color: #53677F;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.quote-list-summary strong {
  color: #0F2542;
  font-size: 24px;
  line-height: 1;
}

.quote-list-summary > div:nth-child(2) strong {
  color: #95630D;
}

.quote-list-summary > div:nth-child(3) strong {
  color: #11714F;
}

.quote-filter-panel {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 180px 140px auto auto;
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #D4E1ED;
  border-radius: 8px;
  background: #FFFFFF;
}

.quote-search-control {
  position: relative;
  display: block;
}

.quote-search-control svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 20px;
  height: 20px;
  color: #6F8196;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transform: translateY(-50%);
  pointer-events: none;
}

.quote-search-control input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #CBD8E5;
  border-radius: 7px;
  padding: 10px 12px 10px 44px;
  color: #0F2542;
  background: #FFFFFF;
  font: inherit;
}

.quote-search-control input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 157, 165, 0.14);
  outline: none;
}

.quote-clear-filter {
  color: #007F86;
  font-weight: 800;
}

.quote-table-panel,
.quote-catalog-panel {
  border: 1px solid #D4E1ED;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 10px 28px rgba(15, 37, 66, 0.06);
}

.quote-list-results {
  min-height: 58px;
  border-bottom: 1px solid #D4E1ED;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.quote-list-results strong,
.quote-list-results span {
  display: block;
}

.quote-list-results strong {
  font-size: 16px;
}

.quote-list-results span {
  margin-top: 2px;
  color: #6A7C91;
  font-size: 13px;
}

.quote-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.quote-table th,
.quote-table td {
  border-bottom: 1px solid #DFE8F1;
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
}

.quote-table th {
  background: #EFF4F8;
  color: #53677F;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.quote-table td {
  font-size: 15px;
}

.quote-table tbody tr:hover {
  background: #F8FBFC;
}

.quote-table th:last-child,
.quote-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 1;
  width: 148px;
  min-width: 148px;
  background: #FFFFFF;
  box-shadow: -8px 0 12px -12px rgba(15, 37, 66, 0.5);
}

.quote-table th:last-child {
  z-index: 2;
  background: #EFF4F8;
}

.quote-table tbody tr:hover td:last-child {
  background: #F8FBFC;
}

.quote-table small,
.quote-number + small {
  display: block;
  margin-top: 2px;
  color: #5F7187;
  font-size: 13px;
}

.quote-number {
  color: #008E99;
  font-weight: 900;
  white-space: nowrap;
}

.quote-client-link {
  display: block;
  max-width: 280px;
  overflow: hidden;
  color: #0F2542;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-client-link:hover,
.quote-number:hover {
  color: #006F76;
  text-decoration: underline;
}

.quote-table-date,
.quote-advisor {
  color: #38536F;
  white-space: nowrap;
}

.quote-list-amount {
  color: #0F2542;
  white-space: nowrap;
}

.quote-table th:first-child,
.quote-table td:first-child {
  min-width: 150px;
}

.quote-status {
  min-height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  font-size: 13px;
  font-weight: 900;
}

.quote-status.accepted {
  background: rgba(21, 150, 106, 0.13);
  color: #11714F;
}

.quote-status.sent {
  background: rgba(38, 99, 235, 0.12);
  color: #2454B6;
}

.quote-status.draft {
  background: rgba(217, 145, 24, 0.15);
  color: #95630D;
}

.quote-status.declined {
  background: rgba(200, 72, 72, 0.12);
  color: #C84848;
}

.quote-row-action {
  min-height: 36px;
  border: 1px solid #B9DDE8;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  background: #E9F9FC;
  color: #007F86;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
}

.quote-row-action:hover {
  border-color: var(--color-accent);
}

.quote-row-action.warn {
  border-color: #E8C58E;
  background: #FFF7EA;
  color: #B46200;
}

.quote-row-action.positive {
  border-color: #B8DCCB;
  background: #EAF8F1;
  color: #147A58;
}

.quote-row-action.danger {
  border-color: #E7B8B8;
  background: #FFF0F0;
  color: #B13A3A;
}

.quote-row-action svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.quote-row-actions {
  min-width: 116px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quote-row-actions form {
  display: contents;
  margin: 0;
}

.quote-row-icon {
  width: 34px;
  height: 34px;
  border: 1px solid #CBD8E5;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: #FFFFFF;
  color: #38536F;
  cursor: pointer;
}

.quote-row-icon:hover {
  border-color: #00A7B0;
  color: #008890;
  background: #F0FBFC;
}

.quote-row-icon.danger:hover {
  border-color: #D68B8B;
  color: #B13A3A;
  background: #FFF4F4;
}

.quote-row-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.quote-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  color: #53677F;
  font-weight: 800;
}

.quote-pagination a {
  min-height: 36px;
  border: 1px solid #CBD8E5;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  background: #FFFFFF;
  color: #007F86;
}

@media (max-width: 900px) {
  .quote-filter-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  }

  .quote-search-control {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .quote-list-heading {
    align-items: stretch;
  }

  .quote-list-heading .quote-primary-action {
    width: 100%;
  }

  .quote-list-summary > div {
    min-height: 62px;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 11px 12px;
  }

  .quote-list-summary span {
    font-size: 11px;
  }

  .quote-list-summary strong {
    font-size: 21px;
  }

  .quote-filter-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .quote-filter-submit,
  .quote-clear-filter {
    justify-content: center;
    text-align: center;
  }
}

.quote-catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
}

.quote-eyebrow {
  display: block;
  color: #008E99;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-catalog-header h2 {
  margin: 4px 0 4px;
  font-size: 28px;
  line-height: 1.15;
}

.quote-catalog-header p {
  margin: 0;
  color: #53677F;
  font-size: 16px;
}

.quote-catalog-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 0 24px 18px;
}

.quote-catalog-summary article {
  min-height: 84px;
  border: 1px solid #CBD8E5;
  border-left-width: 3px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: #FFFFFF;
}

.quote-catalog-summary article > span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
}

.quote-catalog-summary svg,
.catalog-name svg,
.quote-section-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.quote-catalog-summary small {
  display: block;
  color: #53677F;
  font-size: 14px;
  font-weight: 800;
}

.quote-catalog-summary strong {
  display: block;
  color: #0F2542;
  font-size: 24px;
  line-height: 1.1;
}

.quote-catalog-summary .blue {
  border-left-color: #2980FF;
}

.quote-catalog-summary .blue > span {
  background: #EAF3FF;
  color: #2980FF;
}

.quote-catalog-summary .purple {
  border-left-color: #7C58CA;
}

.quote-catalog-summary .purple > span {
  background: #F1EBFF;
  color: #7C58CA;
}

.quote-catalog-summary .orange {
  border-left-color: #F27A2A;
}

.quote-catalog-summary .orange > span {
  background: #FFF0E6;
  color: #F27A2A;
}

.quote-catalog-summary .green {
  border-left-color: #20A66A;
}

.quote-catalog-summary .green > span {
  background: #EAF8F1;
  color: #20A66A;
}

.quote-catalog-summary .slate {
  border-left-color: #6F8196;
}

.quote-catalog-summary .slate > span {
  background: #EEF3F6;
  color: #6F8196;
}

.quote-catalog-filter {
  margin: 0 24px 16px;
  grid-template-columns: minmax(280px, 1fr) 210px 210px auto auto;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.quote-select-stack {
  display: grid;
  gap: 4px;
}

.quote-select-stack small {
  color: #53677F;
  font-size: 12px;
  font-weight: 900;
}

.catalog-name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.catalog-name i,
.quote-line-kind,
.quote-section-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  color: #008E99;
  background: #EAF8FA;
  font-style: normal;
}

.catalog-name i.product {
  color: #F27A2A;
  background: #FFF0E6;
}

.catalog-name strong,
.catalog-name small {
  display: block;
}

.catalog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.catalog-actions form {
  margin: 0;
}

.quote-builder-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  gap: 16px;
  align-items: start;
}

.quote-builder-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.quote-builder-card,
.quote-summary-card {
  min-width: 0;
  border: 1px solid #D4E1ED;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 10px 28px rgba(15, 37, 66, 0.06);
}

.quote-builder-card {
  padding: 16px;
}

.quote-builder-card-head {
  display: grid;
  grid-template-columns: 42px 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.quote-builder-card-head h2,
.quote-summary-card h2 {
  margin: 0;
  color: #0F2542;
  font-size: 20px;
  line-height: 1.2;
}

.quote-builder-card-head p {
  margin: 2px 0 0;
  color: #53677F;
  font-size: 14px;
}

.quote-step-number {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  background: #00A7B0;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 900;
}

.quote-builder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quote-builder-grid .span-2 {
  grid-column: span 2;
}

.quote-customer-field {
  min-width: 0;
}

.quote-customer-picker,
.quote-customer-search {
  position: relative;
  min-width: 0;
}

.quote-customer-search > svg {
  position: absolute;
  z-index: 1;
  top: 11px;
  left: 12px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #64748B;
  stroke-width: 2;
  pointer-events: none;
}

.quote-customer-search .input {
  width: 100%;
  padding-left: 38px;
}

.quote-customer-results {
  position: absolute;
  z-index: 35;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  max-height: 276px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #CBD8E4;
  border-radius: 6px;
  background: #FFFFFF;
  box-shadow: 0 14px 30px rgb(15 37 66 / 16%);
}

.quote-customer-option,
.quote-customer-selected {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.quote-customer-option {
  padding: 8px;
  border: 0;
  border-radius: 5px;
  color: #142A47;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.quote-customer-option:hover,
.quote-customer-option.active {
  background: #EAF7F7;
}

.quote-customer-option strong,
.quote-customer-option small,
.quote-customer-selected strong,
.quote-customer-selected small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-customer-option strong,
.quote-customer-selected strong {
  font-size: 13px;
}

.quote-customer-option small,
.quote-customer-selected small {
  margin-top: 2px;
  color: #61738A;
  font-size: 11px;
}

.quote-customer-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #007F86;
  background: #DFF4F2;
  font-size: 13px;
  font-weight: 800;
}

.quote-customer-selected {
  min-height: 40px;
  padding: 4px 7px;
  border: 1px solid #A9D9DA;
  border-radius: 6px;
  background: #F3FBFB;
}

.quote-customer-selected button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: #52657C;
  background: transparent;
  cursor: pointer;
}

.quote-customer-selected button:hover {
  color: #B42338;
  background: #FDECEE;
}

.quote-customer-selected button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.quote-customer-state {
  padding: 12px;
  color: #61738A;
  font-size: 12px;
  text-align: center;
}

.quote-builder-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  margin-bottom: 14px;
}

.quote-builder-lines {
  max-width: 100%;
  overflow-x: auto;
}

.quote-builder-line-head,
.quote-builder-line {
  display: grid;
  grid-template-columns: minmax(250px, 1.35fr) 82px 118px 104px 96px 108px;
  gap: 8px;
  align-items: center;
  min-width: 770px;
}

.quote-builder-line-head {
  min-height: 38px;
  border-radius: 7px;
  padding: 0 10px;
  background: #EFF4F8;
  color: #53677F;
  font-size: 13px;
  font-weight: 900;
}

.quote-builder-line {
  padding: 10px;
  border-bottom: 1px solid #DFE8F1;
}

.quote-builder-line:last-child {
  border-bottom: 0;
}

.quote-line-description {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.quote-line-description .quote-line-kind {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.quote-builder-line strong {
  color: #0F2542;
  text-align: right;
  white-space: nowrap;
}

.quote-builder-summary {
  position: sticky;
  top: 84px;
  min-width: 0;
}

.quote-summary-card {
  overflow: hidden;
}

.quote-summary-card header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 18px;
  background: #F6FBFC;
  border-bottom: 1px solid #DFE8F1;
}

.quote-summary-card small {
  color: #53677F;
  font-weight: 900;
}

.quote-summary-card h2 span {
  min-height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 3px 9px;
  background: #EEF3F6;
  color: #53677F;
  font-size: 12px;
  font-weight: 900;
}

.quote-summary-meta,
.quote-summary-totals {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 18px;
}

.quote-summary-meta {
  border-bottom: 1px solid #DFE8F1;
}

.quote-summary-meta div,
.quote-summary-totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quote-summary-meta dt,
.quote-summary-totals dt {
  color: #53677F;
  font-weight: 800;
}

.quote-summary-meta dd,
.quote-summary-totals dd {
  margin: 0;
  color: #0F2542;
  font-weight: 900;
  text-align: right;
}

.quote-summary-totals dd[data-quote-discount] {
  color: #15966A;
}

.quote-summary-grand {
  margin: 4px -18px -18px;
  padding: 18px;
  background: #EEF8FA;
}

.quote-summary-grand dd {
  color: #00A7B0;
  font-size: 28px;
}

.quote-summary-grand small {
  margin-right: 6px;
  color: #0F2542;
  font-size: 15px;
}

.quote-summary-note {
  margin: 18px;
  border: 1px solid #C7B9F4;
  border-radius: 8px;
  padding: 14px;
  background: #FBF8FF;
}

.quote-summary-note strong,
.quote-summary-note a {
  color: #007F86;
  font-weight: 900;
}

.quote-summary-note p {
  margin: 4px 0 8px;
  color: #2C4361;
}

.quote-builder-actions {
  grid-column: 1 / -1;
  border: 1px solid #D4E1ED;
  border-radius: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px;
  background: #FFFFFF;
  box-shadow: 0 10px 28px rgba(15, 37, 66, 0.06);
}

.proposal-logo {
  max-width: 180px;
  max-height: 72px;
  object-fit: contain;
  margin-bottom: 10px;
}

.quote-catalog-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.quote-catalog-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 25, 45, 0.52);
}

.quote-catalog-dialog {
  position: relative;
  z-index: 1;
  width: min(700px, calc(100vw - 32px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid #D4E1ED;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 24px 70px rgba(8, 25, 45, 0.25);
}

.quote-catalog-dialog > header {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid #DFE8F1;
}

.quote-catalog-dialog h2 {
  margin: 0;
  font-size: 22px;
}

.quote-catalog-dialog p {
  margin: 2px 0 0;
  color: #53677F;
}

.quote-modal-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: #EAF8FA;
  color: #007F86;
}

.quote-modal-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.quote-modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid #CBD8E5;
  border-radius: 7px;
  background: #FFFFFF;
  color: #53677F;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
}

.quote-catalog-form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px 12px;
  padding: 18px;
}

.quote-catalog-form-grid .catalog-col-4 { grid-column: span 4; }
.quote-catalog-form-grid .catalog-col-8 { grid-column: span 8; }
.quote-catalog-form-grid .catalog-col-12 { grid-column: 1 / -1; }

.quote-catalog-form-grid .form-label em {
  color: #D84848;
  font-style: normal;
}

.quote-catalog-form-grid .form-label small {
  color: #718198;
  font-weight: 600;
}

.catalog-field-counter {
  align-self: flex-end;
  margin-top: -4px;
  color: #718198;
  font-size: 11px;
}

.catalog-sheet-field {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(280px, 1.28fr);
  gap: 12px;
}

.catalog-sheet-dropzone {
  min-height: 92px;
  border: 1px dashed #A9CBD5;
  border-radius: 7px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 12px;
  color: #28425F;
  background: #FBFDFE;
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.catalog-sheet-field:not(:has(.catalog-sheet-card:not([hidden]))) .catalog-sheet-dropzone {
  grid-column: 1 / -1;
}

.catalog-sheet-dropzone:hover,
.catalog-sheet-dropzone.is-dragging {
  border-color: #009CA6;
  background: #EFFAFA;
}

.catalog-sheet-dropzone svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #009CA6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.catalog-sheet-dropzone span,
.catalog-sheet-dropzone small {
  color: #63778F;
  font-size: 11px;
}

.catalog-sheet-card {
  min-height: 92px;
  border: 1px solid #D9E4EE;
  border-radius: 7px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.catalog-sheet-file-icon {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #D13C3C;
  background: #FFF0F0;
}

.catalog-sheet-file-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.catalog-sheet-summary {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.catalog-sheet-summary a {
  overflow: hidden;
  color: #173455;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-sheet-summary small { color: #687A90; }
.catalog-sheet-error { grid-column: 1 / -1; margin: -5px 0 0; color: #B62F2F; font-size: 12px; font-weight: 700; }

.catalog-active-line {
  padding-top: 2px;
  align-items: flex-start;
}

.catalog-active-line > span { display: grid; gap: 2px; }
.catalog-active-line small { color: #718198; font-weight: 500; }

.quote-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 18px 18px;
  border-top: 1px solid #E7EDF3;
  padding-top: 14px;
}

/* Product editor: compact catalog-specific composition. */
.quote-catalog-modal:not(.quote-category-modal) .quote-catalog-dialog > header {
  grid-template-columns: 54px 1fr auto;
  gap: 14px;
  padding: 18px 22px;
}

.quote-catalog-modal:not(.quote-category-modal) .quote-catalog-dialog h2 { font-size: 20px; }
.quote-catalog-modal:not(.quote-category-modal) .quote-catalog-dialog p { font-size: 12px; }

.quote-catalog-modal:not(.quote-category-modal) .quote-modal-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.quote-catalog-modal:not(.quote-category-modal) .quote-modal-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.quote-catalog-modal:not(.quote-category-modal) .quote-modal-close { width: 36px; height: 36px; }

.quote-catalog-modal:not(.quote-category-modal) .quote-catalog-form-grid {
  gap: 15px 14px;
  padding: 16px 22px 18px;
}

.quote-catalog-form-grid .catalog-half { grid-column: span 6; }
.quote-catalog-form-grid .catalog-quarter { grid-column: span 3; }
.quote-catalog-form-grid .form-group {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 6px;
  margin-bottom: 0;
}

.quote-catalog-form-grid .form-group > .form-label { margin-bottom: 0; }
.quote-catalog-form-grid .input,
.quote-catalog-form-grid .select { min-height: 40px; height: 40px; font-size: 13px; }

.catalog-icon-control,
.catalog-affix-control {
  min-width: 0;
  height: 40px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  border: 1px solid #CBD8E5;
  border-radius: 7px;
  overflow: hidden;
  background: #FFFFFF;
}

.catalog-icon-control svg {
  width: 17px;
  height: 17px;
  align-self: center;
  justify-self: center;
  fill: none;
  stroke: #009CA6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.catalog-icon-control .select,
.catalog-affix-control .input {
  min-width: 0;
  height: 38px;
  min-height: 38px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.catalog-icon-control:focus-within,
.catalog-affix-control:focus-within {
  border-color: #00A5AF;
  box-shadow: 0 0 0 2px rgba(0, 165, 175, 0.12);
}

.catalog-affix-control b {
  display: grid;
  place-items: center;
  border-right: 1px solid #DFE8F1;
  color: #61758D;
  background: #F3F6F9;
  font-size: 11px;
}

.catalog-affix-control.suffix { grid-template-columns: minmax(0, 1fr) 34px; }
.catalog-affix-control.suffix b { border: 0; border-left: 1px solid #DFE8F1; }
.catalog-sheet-label { margin-bottom: -8px; color: #142E50; font-size: 12px; font-weight: 800; }
.catalog-sheet-label small { color: #718198; font-weight: 600; }
.quote-catalog-modal:not(.quote-category-modal) .catalog-sheet-field { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quote-catalog-modal:not(.quote-category-modal) .catalog-sheet-dropzone,
.quote-catalog-modal:not(.quote-category-modal) .catalog-sheet-card { min-height: 72px; }
.quote-catalog-modal:not(.quote-category-modal) .catalog-sheet-card { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 9px 10px; }
.quote-catalog-modal:not(.quote-category-modal) .catalog-sheet-file-icon { width: 34px; height: 40px; }

.quote-catalog-modal:not(.quote-category-modal) .quote-modal-actions {
  justify-content: space-between;
  padding: 14px 22px 16px;
}

.catalog-active-line { margin-right: auto; padding-top: 0; }
.catalog-modal-buttons { display: flex; gap: 9px; }
.catalog-modal-buttons .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

.quote-category-modal {
  z-index: 1010;
}

.quote-category-dialog {
  width: min(620px, calc(100vw - 32px));
}

.quote-category-form {
  padding: 18px 18px 12px;
}

.quote-category-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.quote-category-entry .btn {
  white-space: nowrap;
}

.quote-category-feedback {
  margin: 10px 0 0;
  padding: 9px 11px;
  border-radius: 6px;
  color: #087568;
  background: #EAF8F4;
  font-size: 13px;
  font-weight: 700;
}

.quote-category-feedback.is-error {
  color: #A33131;
  background: #FFF0F0;
}

.quote-category-list {
  max-height: min(360px, calc(100vh - 330px));
  overflow-y: auto;
  margin: 0 18px 14px;
  border: 1px solid #D9E4EE;
  border-radius: 7px;
}

.quote-category-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 11px 9px 14px;
  border-bottom: 1px solid #E3EAF1;
}

.quote-category-row:last-child {
  border-bottom: 0;
}

.quote-category-row > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.quote-category-row strong {
  overflow: hidden;
  color: #142E50;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-category-row small {
  color: #687A90;
}

.quote-category-row > div {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.quote-category-row .icon-action {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.quote-category-row .icon-action svg {
  width: 16px;
  height: 16px;
}

.quote-category-empty {
  min-height: 94px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #687A90;
  text-align: center;
}

.quote-catalog-insert {
  margin-bottom: 14px;
}

.quote-editor {
  min-width: 0;
  padding: 2px 0 18px;
}

.quote-editor-breadcrumbs {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 5px;
  color: #5D7088;
  font-size: 13px;
  font-weight: 800;
}

.quote-editor-breadcrumbs a,
.quote-editor-breadcrumbs strong {
  display: inline-flex;
  align-items: center;
}

.quote-editor-breadcrumbs a:hover,
.quote-editor-breadcrumbs strong {
  color: #008C94;
}

.quote-editor-breadcrumbs svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.quote-editor-hero {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 14px;
}

.quote-editor-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.quote-editor-title h1 {
  margin: 0;
  color: #102A4C;
  font-size: 26px;
  line-height: 1.15;
}

.quote-editor-title span {
  min-height: 28px;
  border: 1px solid #FFD0AE;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  background: #FFF3E9;
  color: #C85F17;
  font-size: 12px;
  font-weight: 900;
}

.quote-editor-title span.is-status {
  border-color: #C8E1F7;
  background: #EAF3FF;
  color: #2459B8;
}

.quote-editor-hero p {
  margin: 5px 0 0;
  color: #5D7088;
  font-size: 14px;
}

.quote-editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.quote-editor-actions .btn {
  min-height: 40px;
  padding: 8px 13px;
  font-size: 13px;
  white-space: nowrap;
}

.quote-editor .btn-icon,
.quote-editor-section-icon svg,
.quote-editor-add-row svg,
.quote-editor-line-actions svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.quote-editor-actions .quote-editor-save {
  background: #00A3AB;
}

.quote-editor-actions .quote-editor-send {
  background: #087F7E;
}

.quote-editor-form {
  display: grid;
  gap: 14px;
}

.quote-editor-overview,
.quote-editor-panel,
.quote-editor-footer {
  min-width: 0;
  border: 1px solid #D2DFEB;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 7px 20px rgba(15, 37, 66, 0.05);
}

.quote-editor-overview {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  overflow: visible;
}

.quote-editor-brand {
  min-width: 0;
  border-right: 1px solid #D9E4EE;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px 20px;
}

.quote-editor-brand img {
  width: min(190px, 100%);
  height: 72px;
  display: block;
  margin-bottom: 7px;
  object-fit: contain;
  object-position: left center;
}

.quote-editor-wordmark {
  margin-bottom: 8px;
  color: #102A4C;
  font-size: 23px;
}

.quote-editor-brand p,
.quote-editor-brand small {
  margin: 0;
  overflow-wrap: anywhere;
}

.quote-editor-brand p {
  color: #53677F;
  font-size: 12px;
}

.quote-editor-brand p strong {
  color: #102A4C;
}

.quote-editor-brand small {
  margin-top: 3px;
  color: #63758A;
  font-size: 11px;
}

.quote-editor-overview-fields {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px 12px;
  align-content: center;
  padding: 15px 18px;
}

.quote-view-overview {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(210px, 0.85fr) minmax(430px, 1.65fr);
  align-items: stretch;
  padding: 15px 18px;
}

.quote-view-customer {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
  border-right: 1px solid #D9E4EE;
  padding-right: 20px;
}

.quote-view-customer small,
.quote-view-facts dt {
  color: #64758A;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-view-customer h2 {
  margin: 0;
  color: #102A4C;
  font-size: 18px;
  line-height: 1.25;
}

.quote-view-customer p {
  margin: 0;
  color: #5D7088;
  font-size: 12px;
}

.quote-view-facts {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 12px 20px;
  align-content: center;
  margin: 0;
  padding-left: 22px;
}

.quote-view-facts div {
  min-width: 0;
}

.quote-view-facts dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: #17304F;
  font-size: 13px;
  font-weight: 850;
}

.quote-editor-field {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.quote-editor-field > span:first-child,
.quote-editor-notes label > span {
  color: #53677F;
  font-size: 11px;
  font-weight: 900;
}

.quote-editor-field .input,
.quote-editor-field .select {
  width: 100%;
  min-width: 0;
  min-height: 39px;
  padding: 8px 11px;
  border-color: #C8D7E5;
  border-radius: 6px;
  color: #17304F;
  font-size: 13px;
}

.quote-editor-field input[readonly] {
  background: #F8FAFC;
}

.quote-editor-client {
  grid-column: span 2;
}

.quote-editor-client-control {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
}

.quote-editor-client-control > .input {
  border-radius: 6px 0 0 6px;
}

.quote-editor-client-control > button {
  border: 1px solid #B8D6DF;
  border-left: 0;
  border-radius: 0 6px 6px 0;
  display: grid;
  place-items: center;
  padding: 0;
  background: #EAF8FA;
  color: #008A92;
  cursor: pointer;
}

.quote-editor-client-control > button:hover,
.quote-editor-client-control > button[aria-expanded="true"] {
  background: #DDF3F5;
}

.quote-editor-client-control > button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.quote-editor-customer-popover {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  min-width: 320px;
  border: 1px solid #C7D8E5;
  border-radius: 7px;
  display: block;
  padding: 7px;
  background: #FFFFFF;
  box-shadow: 0 16px 36px rgba(15, 37, 66, 0.18);
}

.quote-editor-customer-popover[hidden] {
  display: none;
}

.quote-editor-panel > header {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid #DDE7EF;
}

.quote-editor-panel > header h2 {
  margin: 0;
  color: #102A4C;
  font-size: 17px;
  line-height: 1.2;
}

.quote-editor-section-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  background: #E9F8F9;
  color: #0098A1;
}

.quote-editor-section-icon svg {
  width: 17px;
  height: 17px;
}

.quote-editor-count {
  min-height: 26px;
  border: 1px solid #D7E2EC;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 3px 10px;
  background: #F6F9FB;
  color: #64758A;
  font-size: 12px;
}

.quote-editor-lines {
  min-width: 0;
  overflow-x: auto;
  padding: 0 14px;
}

.quote-editor-line-head,
.quote-editor-line {
  display: grid;
  grid-template-columns: 56px minmax(260px, 1.5fr) 72px 134px 96px 96px 116px 64px;
  gap: 9px;
  align-items: center;
  min-width: 1010px;
}

.quote-editor-line-head {
  min-height: 39px;
  padding: 0 8px;
  background: #EFF4F8;
  color: #53677F;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-editor-line {
  min-height: 54px;
  padding: 7px 8px;
  border-bottom: 1px solid #E0E8F0;
}

.quote-view-line-head,
.quote-view-line {
  display: grid;
  grid-template-columns: 42px minmax(260px, 1.5fr) 72px 134px 104px 104px 116px;
  gap: 10px;
  align-items: center;
  min-width: 890px;
}

.quote-view-line-head {
  min-height: 39px;
  padding: 0 10px;
  background: #EFF4F8;
  color: #53677F;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-view-line {
  min-height: 49px;
  padding: 8px 10px;
  border-bottom: 1px solid #E0E8F0;
  color: #304864;
  font-size: 12px;
}

.quote-view-line > span:first-child {
  color: #718298;
  font-weight: 800;
}

.quote-view-line > strong:first-of-type {
  color: #17304F;
  font-size: 13px;
}

.quote-view-line > span:nth-child(n + 3),
.quote-view-line > strong:last-child {
  text-align: right;
  white-space: nowrap;
}

.quote-view-line > strong:last-child {
  color: #102A4C;
}

.quote-view-empty {
  margin: 0;
  padding: 18px 10px;
  color: #64758A;
  font-size: 13px;
}

.quote-editor-line.is-dragging {
  opacity: 0.55;
  background: #F1FAFA;
}

.quote-editor-line .input,
.quote-editor-line .select {
  min-width: 0;
  min-height: 36px;
  padding: 7px 9px;
  border-color: #C9D8E5;
  border-radius: 6px;
  color: #17304F;
  font-size: 12px;
}

.quote-editor-line > strong {
  color: #102A4C;
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.quote-editor-line-index {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 5px;
  color: #5D7088;
  font-size: 12px;
}

.quote-editor-drag {
  width: 22px;
  height: 30px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #7A8DA4;
  cursor: grab;
  font-size: 15px;
  letter-spacing: 0;
}

.quote-editor-drag:active {
  cursor: grabbing;
}

.quote-editor-money-input {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border: 1px solid #C9D8E5;
  border-radius: 6px;
  background: #FFFFFF;
}

.quote-editor-money-input b {
  padding-left: 9px;
  color: #667991;
  font-size: 11px;
}

.quote-editor-money-input .input {
  border: 0;
  box-shadow: none;
  text-align: right;
}

.quote-editor-line-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.quote-editor-line-actions button {
  width: 28px;
  height: 32px;
  border: 1px solid #C8D8E5;
  border-radius: 6px;
  display: grid;
  place-items: center;
  padding: 0;
  background: #FFFFFF;
  color: #526A83;
  cursor: pointer;
}

.quote-editor-line-actions button:hover {
  border-color: #7EC7CC;
  color: #008B94;
  background: #F0FBFC;
}

.quote-editor-line-actions button.danger {
  border-color: #FFD0D0;
  color: #D34949;
  background: #FFF8F8;
}

.quote-editor-line-actions svg {
  width: 15px;
  height: 15px;
}

.quote-editor-add-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(190px, 0.45fr);
  gap: 8px;
  margin: 10px 14px;
}

.quote-editor-add-row > button,
.quote-editor-catalog-add {
  min-height: 40px;
  border: 1px dashed #83CAD0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 12px;
  background: #FBFEFE;
  color: #008A92;
  font-size: 12px;
  font-weight: 900;
}

.quote-editor-add-row > button {
  cursor: pointer;
}

.quote-editor-add-row svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.quote-editor-catalog-add select {
  max-width: 360px;
  border: 0;
  padding: 0 24px 0 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.quote-editor-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(135px, 1fr)) minmax(230px, 1.25fr);
  margin: 0 14px 14px;
  border-top: 1px solid #DCE6EE;
  padding-top: 10px;
}

.quote-editor-totals dl {
  min-width: 0;
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 6px 18px;
  border-right: 1px solid #DCE6EE;
}

.quote-editor-totals dt {
  color: #60738B;
  font-size: 11px;
  font-weight: 800;
}

.quote-editor-totals dd {
  margin: 0;
  color: #102A4C;
  font-size: 15px;
  font-weight: 900;
}

.quote-editor-totals .quote-editor-grand-total {
  border: 1px solid #C5E4E6;
  border-radius: 7px;
  padding: 9px 14px;
  background: #EDF9FA;
}

.quote-editor-grand-total dd {
  color: #00A0A8;
  font-size: 23px;
}

.quote-editor-grand-total dd span {
  margin-right: 5px;
  font-size: 13px;
}

.quote-editor-grand-total small {
  display: block;
  overflow: hidden;
  color: #60738B;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-editor-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.quote-editor-notes > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px 14px;
}

.quote-editor-notes label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.quote-editor-notes .textarea {
  min-height: 74px;
  resize: vertical;
  border-color: #C9D8E5;
  border-radius: 6px;
  padding: 9px 10px;
  color: #17304F;
  font-size: 12px;
  line-height: 1.45;
}

.quote-view-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  padding: 4px 14px 10px;
}

.quote-view-notes article {
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid #E4EBF2;
}

.quote-view-notes article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.quote-view-notes small {
  display: block;
  margin-bottom: 4px;
  color: #60738B;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-view-notes p {
  margin: 0;
  color: #263D59;
  font-size: 12px;
  line-height: 1.45;
}

.quote-editor-payment-table {
  display: grid;
  gap: 6px;
  padding: 12px 14px 14px;
}

.quote-editor-payment-head,
.quote-editor-payment-row {
  display: grid;
  grid-template-columns: minmax(105px, 0.7fr) repeat(2, minmax(125px, 1fr));
  gap: 10px;
  align-items: center;
}

.quote-editor-payment-head {
  color: #60738B;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-editor-payment-row strong {
  color: #183250;
  font-size: 12px;
}

.quote-editor-payment-row > span {
  display: grid;
  gap: 4px;
}

.quote-editor-payment-row .input {
  width: 100%;
  min-width: 0;
  min-height: 33px;
  border-color: #C9D8E5;
  border-radius: 6px;
  padding: 6px 9px;
  background: #FAFCFD;
  color: #28415F;
  font-size: 11px;
}

.quote-view-payment-value,
.quote-view-payment-empty {
  min-width: 0;
  display: block;
  overflow-wrap: anywhere;
  color: #28415F;
  font-size: 11px;
  line-height: 1.35;
}

.quote-view-payment-value small {
  margin-right: 4px;
  color: #72839A;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-view-payment-empty {
  color: #91A0B1;
}

.quote-editor-payment-empty {
  margin: 8px 0;
  color: #60738B;
  font-size: 12px;
}

.quote-editor-footer {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 10px 18px;
  color: #008A92;
  font-size: 12px;
}

.quote-editor-tracking {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: hidden;
  border: 1px solid #C9D8E5;
  border-radius: 8px;
  padding: 0;
  color: #102A4C;
  background: #FFFFFF;
  box-shadow: 0 22px 70px rgba(8, 25, 45, 0.28);
}

.quote-editor-tracking[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.quote-editor-tracking::backdrop {
  background: rgba(8, 25, 45, 0.48);
}

.quote-editor-tracking > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #DDE7EF;
}

.quote-editor-tracking h2,
.quote-editor-tracking p {
  margin: 0;
}

.quote-editor-tracking header small {
  color: #60738B;
  font-weight: 800;
}

.quote-editor-tracking-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px !important;
  color: #60738B;
  font-size: 12px;
  font-weight: 700;
}

.quote-editor-tracking-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #E7F7F5;
  color: #08766F;
}

.quote-editor-tracking header button {
  width: 34px;
  height: 34px;
  border: 1px solid #C9D8E5;
  border-radius: 6px;
  background: #FFFFFF;
  color: #526A83;
  cursor: pointer;
  font-size: 20px;
}

.quote-editor-timeline {
  display: grid;
  gap: 0;
  overflow-y: auto;
  padding: 8px 18px;
}

.quote-editor-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
}

.quote-editor-timeline article:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 46px;
  bottom: -2px;
  left: 18px;
  width: 1px;
  background: #D9E5EC;
}

.quote-editor-event-icon {
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: #E7F7F8;
  color: #008F98;
}

.quote-editor-event-icon svg,
.quote-editor-timeline-empty svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quote-editor-event.is-accepted .quote-editor-event-icon,
.quote-editor-event.is-receivable-created .quote-editor-event-icon {
  background: #E6F6EE;
  color: #087B58;
}

.quote-editor-event.is-sent .quote-editor-event-icon,
.quote-editor-event.is-viewed .quote-editor-event-icon {
  background: #EAF1FF;
  color: #2865C7;
}

.quote-editor-event.is-send-failed .quote-editor-event-icon {
  background: #FCEBEC;
  color: #C53C43;
}

.quote-editor-event-content {
  min-width: 0;
  padding-bottom: 3px;
}

.quote-editor-event-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.quote-editor-event-heading time {
  flex: 0 0 auto;
  color: #60738B;
  font-size: 12px;
}

.quote-editor-event-content p {
  margin-top: 3px;
  color: #344E68;
  font-size: 13px;
  line-height: 1.45;
}

.quote-editor-event-content small {
  display: block;
  margin-top: 5px;
  color: #71849A;
  font-size: 11px;
}

.quote-editor-timeline-empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 34px 18px;
  color: #60738B;
  text-align: center;
}

.quote-editor-timeline-empty svg {
  width: 28px;
  height: 28px;
  color: #00A0A8;
}

.quote-editor-timeline-empty p {
  color: #71849A;
  font-size: 12px;
}

.quote-editor-tracking > footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 18px 18px;
  border-top: 1px solid #DDE7EF;
}

.quote-whatsapp-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: hidden;
  border: 1px solid #C9D8E5;
  border-radius: 8px;
  padding: 0;
  color: #102A4C;
  background: #FFFFFF;
  box-shadow: 0 22px 70px rgba(8, 25, 45, 0.28);
}

.quote-whatsapp-dialog[open] {
  display: block;
}

.quote-whatsapp-dialog::backdrop {
  background: rgba(8, 25, 45, 0.48);
}

.quote-whatsapp-dialog form {
  display: grid;
  max-height: calc(100vh - 42px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  margin: 0;
}

.quote-whatsapp-dialog form > header,
.quote-whatsapp-dialog form > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
}

.quote-whatsapp-dialog form > header {
  border-bottom: 1px solid #DDE7EF;
}

.quote-whatsapp-dialog form > footer {
  justify-content: flex-end;
  border-top: 1px solid #DDE7EF;
}

.quote-whatsapp-dialog-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.quote-whatsapp-dialog-heading h2,
.quote-whatsapp-dialog-heading p {
  margin: 0;
}

.quote-whatsapp-dialog-heading small,
.quote-whatsapp-recipients > header small {
  color: #008F98;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.quote-whatsapp-dialog-heading p {
  margin-top: 3px;
  color: #60738B;
  font-size: 12px;
}

.quote-whatsapp-dialog-icon,
.quote-whatsapp-attachment > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #E7F7F8;
  color: #008F98;
}

.quote-whatsapp-dialog-icon svg,
.quote-whatsapp-attachment svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quote-whatsapp-dialog form > header > button {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid #C9D8E5;
  border-radius: 6px;
  background: #FFFFFF;
  color: #526A83;
  cursor: pointer;
  font-size: 20px;
}

.quote-whatsapp-dialog-body {
  display: grid;
  gap: 16px;
  overflow-y: auto;
  padding: 18px;
}

.quote-whatsapp-recipients {
  display: grid;
  gap: 9px;
}

.quote-whatsapp-recipients > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.quote-whatsapp-recipients > header div {
  display: grid;
  gap: 1px;
}

.quote-whatsapp-recipients > header > span {
  color: #08766F;
  font-size: 12px;
  font-weight: 800;
}

.quote-whatsapp-recipient-search {
  position: relative;
  display: block;
}

.quote-whatsapp-recipient-search svg {
  position: absolute;
  top: 50%;
  left: 11px;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  fill: none;
  stroke: #60738B;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.quote-whatsapp-recipient-search input {
  width: 100%;
  height: 38px;
  border: 1px solid #C9D8E5;
  border-radius: 6px;
  padding: 7px 10px 7px 36px;
  color: #17283B;
  background: #FFFFFF;
  font: inherit;
  font-size: 13px;
}

.quote-whatsapp-recipient-search input:focus {
  border-color: #00A0A8;
  outline: 2px solid rgba(0, 160, 168, 0.14);
}

.quote-whatsapp-recipient-list {
  display: grid;
  max-height: 190px;
  overflow-y: auto;
  border: 1px solid #D5E2EB;
  border-radius: 6px;
}

.quote-whatsapp-recipient-option {
  display: grid;
  grid-template-columns: 18px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 7px 10px;
  cursor: pointer;
}

.quote-whatsapp-recipient-option + .quote-whatsapp-recipient-option {
  border-top: 1px solid #E3EBF1;
}

.quote-whatsapp-recipient-option:has(input:checked) {
  background: #F0FAFA;
}

.quote-whatsapp-recipient-option.is-disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.quote-whatsapp-recipient-option[hidden] {
  display: none;
}

.quote-whatsapp-recipient-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #009BA3;
}

.quote-whatsapp-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #173A61;
  color: #FFFFFF;
  font-weight: 800;
}

.quote-whatsapp-recipient-option .quote-whatsapp-avatar {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.quote-whatsapp-recipient-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.quote-whatsapp-recipient-copy strong,
.quote-whatsapp-recipient-copy small {
  overflow-wrap: anywhere;
}

.quote-whatsapp-recipient-copy small {
  color: #60738B;
  font-size: 11px;
}

.quote-whatsapp-recipient-state {
  color: #60738B;
  font-size: 11px;
  font-weight: 700;
}

.quote-whatsapp-recipient-option:has(input:checked) .quote-whatsapp-recipient-state {
  color: #08766F;
}

.quote-whatsapp-recipient-empty {
  margin: 0;
  padding: 18px;
  color: #60738B;
  font-size: 12px;
  text-align: center;
}

.quote-whatsapp-message {
  display: grid;
  gap: 6px;
  color: #102A4C;
  font-size: 12px;
  font-weight: 800;
}

.quote-whatsapp-message textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  border: 1px solid #B9CBD9;
  border-radius: 6px;
  padding: 11px 12px;
  color: #17283B;
  background: #FFFFFF;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.quote-whatsapp-message textarea:focus {
  border-color: #00A0A8;
  outline: 2px solid rgba(0, 160, 168, 0.14);
}

.quote-whatsapp-message > small {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  color: #71849A;
  font-size: 11px;
  font-weight: 500;
}

.quote-whatsapp-message > small b {
  color: #08766F;
}

.quote-whatsapp-attachment {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid #D5E2EB;
  border-radius: 6px;
  padding: 10px;
  background: #F8FBFD;
}

.quote-whatsapp-attachment div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.quote-whatsapp-attachment strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-whatsapp-attachment small {
  color: #60738B;
  font-size: 11px;
}

.quote-whatsapp-attachment em {
  border-radius: 999px;
  padding: 3px 8px;
  color: #087B58;
  background: #E6F6EE;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.quote-whatsapp-warning {
  margin: 0;
  border-left: 3px solid #C98A10;
  padding: 8px 10px;
  color: #7A530C;
  background: #FFF8E8;
  font-size: 12px;
}

.quote-whatsapp-warning[hidden] {
  display: none;
}

@media (max-width: 560px) {
  .quote-catalog-form-grid .catalog-col-4,
  .quote-catalog-form-grid .catalog-col-8,
  .quote-catalog-form-grid .catalog-col-12,
  .quote-catalog-form-grid .catalog-half,
  .quote-catalog-form-grid .catalog-quarter {
    grid-column: 1 / -1;
  }

  .catalog-sheet-field {
    grid-template-columns: 1fr;
  }

  .quote-catalog-modal:not(.quote-category-modal) .quote-modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-modal-buttons { justify-content: flex-end; }

  .quote-category-entry {
    grid-template-columns: 1fr 1fr;
  }

  .quote-category-entry .input {
    grid-column: 1 / -1;
  }

  .quote-category-entry .btn {
    justify-content: center;
  }

  .quote-category-entry:has([data-category-cancel-edit][hidden]) [data-category-submit] {
    grid-column: 1 / -1;
  }

  .quote-whatsapp-dialog form > header,
  .quote-whatsapp-dialog form > footer,
  .quote-whatsapp-dialog-body {
    padding: 14px;
  }

  .quote-whatsapp-dialog form > footer .btn {
    flex: 1 1 auto;
  }

  .quote-whatsapp-recipient-option {
    grid-template-columns: 18px 34px minmax(0, 1fr);
  }

  .quote-whatsapp-recipient-state {
    display: none;
  }

  .quote-whatsapp-message > small {
    flex-wrap: wrap;
  }
}

.quote-editor-tracking footer form {
  margin: 0;
}

@media (max-width: 1380px) {
  .quote-editor-hero {
    align-items: start;
  }

  .quote-editor-actions {
    max-width: 720px;
  }

  .quote-editor-overview {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .quote-editor-brand {
    padding-inline: 15px;
  }

}

@media (max-width: 1100px) {
  .quote-editor-hero {
    grid-template-columns: 1fr;
  }

  .quote-editor-actions {
    max-width: none;
    justify-content: flex-start;
  }

  .quote-editor-overview {
    grid-template-columns: 1fr;
  }

  .quote-editor-brand {
    border-right: 0;
    border-bottom: 1px solid #D9E4EE;
  }

  .quote-editor-brand img {
    height: 58px;
  }

  .quote-editor-totals {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 8px 0;
  }
}

@media (max-width: 760px) {
  .quote-editor-title h1 {
    font-size: 22px;
  }

  .quote-editor-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-editor-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .quote-editor-overview-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-view-overview {
    grid-template-columns: 1fr;
  }

  .quote-view-customer {
    border-right: 0;
    border-bottom: 1px solid #D9E4EE;
    padding: 0 0 12px;
  }

  .quote-view-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px 0 0;
  }

  .quote-editor-client {
    grid-column: span 2;
  }

  .quote-editor-add-row,
  .quote-editor-notes > div,
  .quote-editor-bottom-grid {
    grid-template-columns: 1fr;
  }

  .quote-view-notes article:nth-last-child(-n + 2) {
    border-bottom: 1px solid #E4EBF2;
  }

  .quote-view-notes article:last-child {
    border-bottom: 0;
  }

  .quote-editor-totals {
    grid-template-columns: 1fr;
  }

  .quote-editor-totals dl {
    border-right: 0;
    border-bottom: 1px solid #DCE6EE;
  }

  .quote-editor-payment-table {
    overflow-x: auto;
  }

  .quote-editor-payment-head,
  .quote-editor-payment-row {
    min-width: 620px;
  }

  .quote-editor-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .quote-editor-actions,
  .quote-editor-overview-fields {
    grid-template-columns: 1fr;
  }

  .quote-view-facts {
    grid-template-columns: 1fr;
  }

  .quote-editor-client {
    grid-column: auto;
  }

  .quote-editor-customer-popover {
    min-width: 0;
  }
}

.quote-proposal-page {
  min-height: 100vh;
  background: #EDF3F8;
  color: #0F2542;
}

.quote-proposal-sheet {
  width: min(960px, calc(100vw - 32px));
  margin: 32px auto;
  border: 1px solid #D4E1ED;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 18px 48px rgba(15, 37, 66, 0.12);
  padding: 34px;
}

.quote-proposal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 2px solid #E2EBF3;
}

.quote-proposal-head > div:first-child {
  display: grid;
  gap: 4px;
}

.proposal-mark {
  margin-bottom: 8px;
}

.quote-proposal-head strong {
  font-size: 20px;
}

.quote-proposal-head small,
.quote-proposal-head p {
  color: #53677F;
}

.quote-proposal-head p {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-proposal-head h1 {
  margin: 2px 0 8px;
  font-size: 28px;
}

.quote-proposal-client {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.quote-proposal-client > div {
  min-height: 86px;
  border: 1px solid #D4E1ED;
  border-radius: 8px;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 14px;
  background: #F8FBFC;
}

.quote-proposal-client small,
.quote-proposal-client span {
  color: #53677F;
}

.quote-proposal-client small {
  font-weight: 900;
  text-transform: uppercase;
}

.quote-proposal-section h2,
.quote-proposal-notes h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.quote-proposal-table {
  width: 100%;
  border-collapse: collapse;
}

.quote-proposal-table th,
.quote-proposal-table td {
  border-bottom: 1px solid #DFE8F1;
  padding: 11px 10px;
  text-align: left;
}

.quote-proposal-table th {
  background: #EFF4F8;
  color: #53677F;
  font-size: 13px;
  text-transform: uppercase;
}

.quote-proposal-totals {
  display: flex;
  justify-content: flex-end;
  margin: 18px 0;
}

.quote-proposal-totals dl {
  width: min(360px, 100%);
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  background: #EEF8FA;
}

.quote-proposal-totals div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.quote-proposal-totals dd {
  margin: 0;
  font-weight: 900;
}

.proposal-grand-total {
  border-top: 1px solid #C8E5E8;
  padding-top: 9px;
  font-size: 22px;
}

.quote-proposal-notes {
  display: grid;
  gap: 12px;
}

.quote-proposal-notes article {
  border-top: 1px solid #DFE8F1;
  padding-top: 12px;
}

.quote-proposal-notes p {
  margin: 0;
  line-height: 1.6;
}

.quote-proposal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

@media print {
  .no-print {
    display: none !important;
  }

  body.quote-proposal-page {
    background: #FFFFFF;
  }

  .quote-proposal-sheet {
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}
