.quote-page {
  min-height: calc(100vh - 88px);
  padding: 0 16px 28px;
  background:
    radial-gradient(circle at top left, rgba(243, 220, 255, 0.85), transparent 24%),
    radial-gradient(circle at top right, rgba(245, 214, 230, 0.8), transparent 30%),
    linear-gradient(180deg, #f6f0fb 0%, #fbf7ff 100%);
}

.quote-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.quote-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: #fff;
  border-radius: 0 0 24px 24px;
  min-height: 84px;
  padding: 18px 26px;
  box-shadow: 0 12px 30px rgba(69, 26, 108, 0.08);
}

.quote-page .quote-topbar__title {
  font-family: "DM Sans", sans-serif !important;
  font-style: normal !important;
  font-weight: 700 !important;
  font-size: 28px;
  line-height: 1;
  color: #241137 !important;
  letter-spacing: 0;
}

.quote-topbar__meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.quote-topbar__search {
  width: 440px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(94, 58, 131, 0.14);
  background: #fff;
  color: #8f8b99;
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-size: 15px;
  box-sizing: border-box;
}

.quote-topbar__icon {
  color: #585858 !important;
}

.quote-topbar__icon--alert::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f24d4d;
}

.quote-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(180deg, #6f2a9a 0%, #5c2a8d 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
}

.quote-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 30px 14px;
}

.quote-kicker {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 131, 167, 0.18);
  color: #ff4d82;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.quote-page .quote-title {
  margin: 12px 0 0;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-style: normal !important;
  font-weight: 700 !important;
  font-size: clamp(40px, 3.3vw, 56px);
  line-height: 0.92;
  color: #241137 !important;
  letter-spacing: -0.7px;
}

.quote-status {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #5a2a90;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(50, 19, 88, 0.08);
}

.quote-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4d2aa0;
}

.quote-status--soft {
  background: #f3e8ff;
}

.quote-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0 14px 24px;
}

.quote-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 34px;
  padding: 26px 26px 28px;
  box-shadow: 0 22px 50px rgba(75, 31, 108, 0.10);
}

.quote-page .quote-card__tag {
  color: #ff6d62;
  font-size: 12px;
  letter-spacing: 1.6px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.quote-page .quote-card__title {
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-style: normal !important;
  font-weight: 700 !important;
  font-size: 26px;
  line-height: 1;
  color: #1f1030 !important;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

.quote-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.quote-grid {
  margin-top: 2px;
}

.quote-page .quote-label {
  display: block;
  margin: 0 0 8px;
  color: #5d5a72;
  font-size: 16px;
}

.quote-page .quote-label--tight {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #46395c;
}

.quote-page .quote-field .mud-input-outlined {
  border-radius: 999px;
  background: #fff;
}

.quote-page .quote-field--amount .mud-input-outlined {
  background: #f7f1ff;
}

.quote-money {
  height: 56px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(94, 58, 131, 0.18);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 18px;
  color: #2b1541;
  font-weight: 700;
}

.quote-money--amount {
  background: #f7f1ff;
}

.quote-page .quote-field--textarea .mud-input-outlined {
  border-radius: 22px;
}

.quote-page .quote-validation {
  display: block;
  margin-top: 6px;
  color: #d32f2f;
}

.quote-page .quote-smart {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #45206e;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.quote-page .quote-menu-row {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) 0.8fr 1fr 1fr 1fr 74px;
  gap: 14px;
  align-items: end;
  padding: 16px;
  border-radius: 28px;
  background: rgba(247, 242, 255, 0.95);
  border: 1px solid rgba(101, 53, 145, 0.14);
}

.quote-page .quote-menu-row__field {
  min-width: 0;
}

.quote-menu-row__field--wide {
  min-width: 0;
}

.quote-page .quote-add-btn {
  height: 60px;
  border-radius: 18px !important;
  box-shadow: 0 14px 28px rgba(42, 158, 89, 0.28);
}

.quote-page .quote-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 22px 0 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.quote-page .quote-tabs::-webkit-scrollbar {
  display: none;
}

.quote-page .quote-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 0;
  background: #f4ecfb;
  color: #4a3d61;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
}

.quote-page .quote-tab:focus-visible {
  outline: 2px solid rgba(77, 27, 135, 0.28);
  outline-offset: 2px;
}

.quote-page .quote-tab b {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(93, 37, 146, 0.12);
  font-size: 11px;
}

.quote-page .quote-tab--active {
  background: #4d1b87;
  color: #fff;
}

.quote-page .quote-tab--active b {
  background: rgba(255, 255, 255, 0.2);
}

.quote-page .quote-empty {
  min-height: 300px;
  border-radius: 28px;
  background: rgba(248, 243, 255, 0.98);
  border: 1px solid rgba(103, 54, 145, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #9992a7;
  text-align: center;
}

.quote-page .quote-empty__icon {
  font-size: 46px;
  line-height: 1;
  color: #4d1b87;
}

.quote-page .quote-empty__text {
  max-width: 620px;
  font-size: 17px;
}

.quote-page .quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.quote-page .quote-chip-btn {
  border-radius: 999px !important;
  text-transform: none !important;
  font-weight: 700 !important;
}

.quote-page .quote-totals {
  display: grid;
  gap: 14px;
  max-width: 520px;
  margin-left: auto;
  margin-top: 16px;
}

.quote-page .quote-totals__line,
.quote-page .quote-totals__total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #2a1541;
  font-size: 18px;
}

.quote-page .quote-totals__line strong,
.quote-page .quote-totals__total strong {
  font-size: 18px;
}

.quote-page .quote-totals__total {
  padding: 18px 22px;
  border-radius: 20px;
  background: #f3e8ff;
  font-weight: 800;
}

.quote-page .quote-card--send {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  width: 100%;
  max-width: none;
  padding: 24px 24px 24px;
  align-self: start;
}

.quote-page .quote-email {
  margin-top: 4px;
  color: #3f2a55;
  font-weight: 600;
}

.quote-page .quote-email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  color: #3f2a55;
  font-weight: 600;
}

.quote-page .quote-email-check {
  margin: 0;
}

.quote-page .quote-email-row .mud-checkbox {
  padding: 0;
  margin: 0;
}

.quote-page .quote-footer-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 10px;
  flex-wrap: wrap;
}

.quote-page .quote-submit {
  min-width: 0;
  width: 220px;
  height: 58px;
  border-radius: 999px !important;
  text-transform: none !important;
  font-weight: 800 !important;
  background: #3E1268 !important;
  box-shadow: 0 4px 7.1px 0 rgba(255, 255, 255, 0.50) inset !important;
  border: none !important;
  color: #fff !important;
}

.quote-page .quote-submit.mud-button-outlined {
  background: #3E1268 !important;
  border: 1.5px solid #3E1268 !important;
  color: #fff !important;
}

.quote-page .quote-submit.mud-button-outlined .mud-button-label,
.quote-page .quote-submit.mud-button-outlined .mud-icon-root {
  color: #fff !important;
}

.quote-page .quote-submit.mud-button-outlined:hover {
  background: #5A1E96 !important;
  border-color: #5A1E96 !important;
}

.quote-page .quote-submit.mud-button-filled {
  background: #3E1268 !important;
  color: #fff !important;
}

.quote-page .quote-submit.mud-button-filled:hover {
  background: #5A1E96 !important;
}

@media (max-width: 1280px) {
  .quote-shell {
    max-width: 1040px;
  }

  .quote-topbar {
    min-height: 78px;
    padding: 16px 22px;
  }

  .quote-topbar__search {
    width: 340px;
  }

  .quote-card--send {
    min-height: 0;
  }

  .quote-submit {
    width: auto;
  }

  .quote-menu-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-add-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .quote-page .quote-tabs {
    flex-wrap: wrap;
    overflow: visible;
  }

  .quote-page .quote-card--send {
    position: static;
    min-height: 0;
    width: 100%;
  }

  .quote-page .quote-footer-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .quote-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .quote-topbar__meta {
    flex-wrap: wrap;
  }

  .quote-topbar__search {
    width: 100%;
  }

  .quote-hero {
    flex-direction: column;
    padding: 18px 20px 12px;
  }

  .quote-stack {
    padding: 0 20px 20px;
  }

  .quote-card {
    padding: 22px;
    border-radius: 26px;
  }

  .quote-card--send {
    min-height: 0;
  }

  .quote-footer-actions {
    justify-content: stretch;
    flex-direction: column;
  }

  .quote-submit {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .quote-page {
    padding: 0 10px 18px;
  }

  .quote-topbar__title {
    font-size: 24px;
  }

  .quote-title {
    font-size: 36px;
    display: none;
  }

  .quote-menu-row {
    grid-template-columns: 1fr;
  }

  .quote-empty {
    min-height: 240px;
  }

  .quote-empty__icon {
    font-size: 38px;
  }
}
