.quotation-template-body {
  min-height: 100vh;
  color: var(--home-ink);
  background:
    radial-gradient(circle at 92% 5%, rgba(15, 118, 110, 0.08), transparent 26rem),
    var(--home-bg);
}

.quotation-template-body main {
  overflow: visible;
}

.quotation-template-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 44px;
}

.quotation-template-hero {
  min-height: 460px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding: clamp(2.75rem, 5vw, 4rem) 0 clamp(2.5rem, 4vw, 3.5rem);
}

.quotation-template-hero-copy {
  min-width: 0;
}

.quotation-template-kicker,
.quotation-template-section-kicker,
.quotation-template-product-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--home-primary-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.quotation-template-kicker {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: #e9f7f3;
}

.quotation-template-kicker::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--home-primary);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.quotation-template-hero h1 {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--home-ink);
  font-size: clamp(2.5rem, 5vw, 4.35rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.quotation-template-hero-description {
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--home-muted);
  font-size: clamp(1.04rem, 2vw, 1.18rem);
  line-height: 1.58;
}

.quotation-template-hero-actions,
.quotation-template-output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quotation-template-hero-actions {
  margin-top: 22px;
}

.quotation-template-output-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 9px 20px rgba(21, 45, 38, 0.13);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.quotation-template-output-button:hover {
  transform: translateY(-2px);
}

.quotation-template-output-button:disabled {
  cursor: wait;
  opacity: 0.62;
  box-shadow: none;
  transform: none;
}

.quotation-template-output-button:focus-visible,
.quotation-template-add-item:focus-visible,
.quotation-template-remove-item:focus-visible,
.quotation-template-register-button:focus-visible,
.quotation-template-bottom-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.32);
  outline-offset: 3px;
}

.quotation-template-output-pdf {
  background: #b4232c;
  box-shadow: 0 10px 24px rgba(180, 35, 44, 0.2);
}

.quotation-template-output-pdf:hover {
  background: #951d25;
  box-shadow: 0 14px 28px rgba(180, 35, 44, 0.26);
}

.quotation-template-output-excel {
  background: #18794e;
  box-shadow: 0 10px 24px rgba(24, 121, 78, 0.2);
}

.quotation-template-output-excel:hover {
  background: #12633f;
  box-shadow: 0 14px 28px rgba(24, 121, 78, 0.26);
}

.quotation-template-button-icon {
  min-width: 33px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 0.61rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.quotation-template-generation-notice {
  margin: 12px 0 0;
  color: #075985;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.45;
}

.quotation-template-hero-notice {
  max-width: 610px;
  padding: 10px 12px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #f0f9ff;
}

.quotation-template-trust-list {
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
}

.quotation-template-trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--home-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.quotation-template-trust-list li::before {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  content: "✓";
  border-radius: 50%;
  color: #ffffff;
  background: var(--home-primary);
  font-size: 0.64rem;
  font-weight: 950;
}

.quotation-template-hero-visual {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.quotation-template-visual-glow {
  position: absolute;
  z-index: -2;
  width: min(100%, 470px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(15, 118, 110, 0.16), rgba(37, 99, 235, 0.06) 52%, transparent 70%);
}

.quotation-template-hero-visual::before,
.quotation-template-hero-visual::after {
  position: absolute;
  z-index: -1;
  content: "";
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 50%;
}

.quotation-template-hero-visual::before {
  width: 90%;
  aspect-ratio: 1;
}

.quotation-template-hero-visual::after {
  width: 70%;
  aspect-ratio: 1;
}

.quotation-template-document {
  width: min(370px, 78%);
  min-height: 370px;
  padding: 22px;
  border: 1px solid rgba(216, 227, 223, 0.9);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 26px 64px rgba(21, 45, 38, 0.15);
}

.quotation-template-document-top,
.quotation-template-document-meta,
.quotation-template-document-table > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quotation-template-document-top {
  min-height: 36px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5ece9;
}

.quotation-template-document-top small {
  padding: 5px 8px;
  border-radius: 999px;
  color: #52665f;
  background: #f1f6f4;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.quotation-template-document-brand {
  position: relative;
  flex: 0 0 90px;
  width: 90px;
  height: 28px;
}

.quotation-template-document-brand::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 28px;
  display: grid;
  place-items: center;
  content: "CP";
  border-radius: 7px;
  color: #ffffff;
  background: var(--home-primary);
  font-size: 0.5rem;
  font-weight: 950;
  letter-spacing: -0.03em;
  box-shadow: 3px 3px 0 rgba(249, 115, 22, 0.72), 6px 6px 0 rgba(37, 99, 235, 0.6);
}

.quotation-template-document-brand::after {
  position: absolute;
  top: 7px;
  right: 0;
  width: 48px;
  height: 5px;
  content: "";
  border-radius: 999px;
  background: #385149;
  box-shadow: 0 9px 0 -1px #b9cac4;
}

.quotation-template-document-heading {
  margin-top: 18px;
}

.quotation-template-document-heading strong {
  display: block;
  color: #1d2c27;
  font-size: 1rem;
  line-height: 1.3;
}

.quotation-template-document-heading span {
  width: 72%;
  height: 4px;
  display: block;
  margin-top: 10px;
  border-radius: 999px;
  background: #dce8e4;
  box-shadow: 0 9px 0 #eef3f1;
}

.quotation-template-document-meta {
  margin-top: 18px;
}

.quotation-template-document-meta span {
  width: 46%;
  height: 34px;
  border: 1px solid #e0e9e6;
  border-radius: 6px;
  background: #f8fbfa;
}

.quotation-template-document-table {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #dce7e3;
  border-radius: 7px;
}

.quotation-template-document-table > div {
  min-height: 38px;
  padding: 0 12px;
  border-top: 1px solid #e7eeeb;
}

.quotation-template-document-table > div:first-child {
  min-height: 32px;
  border-top: 0;
  background: #eff7f4;
}

.quotation-template-document-table span {
  width: 21%;
  height: 6px;
  border-radius: 999px;
  background: #dbe6e2;
}

.quotation-template-document-table span:first-child {
  width: 50%;
}

.quotation-template-document-table-head span {
  height: 5px;
  background: #8bbcaf;
}

.quotation-template-document-signature {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.quotation-template-document-signature span {
  width: 44%;
  height: 1px;
  background: #bfcac6;
}

.quotation-template-format-chip {
  position: absolute;
  min-width: 66px;
  min-height: 66px;
  display: grid;
  place-items: center;
  border: 6px solid #ffffff;
  border-radius: 16px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  box-shadow: 0 18px 34px rgba(21, 45, 38, 0.18);
}

.quotation-template-format-chip-pdf {
  top: 66px;
  right: 2%;
  background: #b4232c;
  transform: rotate(7deg);
}

.quotation-template-format-chip-excel {
  bottom: 68px;
  left: 1%;
  background: #18794e;
  transform: rotate(-7deg);
}

.quotation-template-editor {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--home-border);
  border-radius: 14px;
  background: #eef6f3;
}

.quotation-template-editor-heading,
.quotation-template-section-title,
.quotation-template-output-panel,
.quotation-template-output-copy {
  display: flex;
  align-items: flex-start;
}

.quotation-template-editor-heading {
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.quotation-template-editor-heading h2,
.quotation-template-product-copy h2 {
  margin: 8px 0 0;
  color: var(--home-ink);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.quotation-template-editor-heading > p {
  max-width: 470px;
  margin: 3px 0 0;
  color: var(--home-muted);
  line-height: 1.5;
}

.quotation-template-form {
  display: grid;
  gap: 12px;
}

.quotation-template-panel {
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border: 1px solid var(--home-border);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 9px 28px rgba(21, 45, 38, 0.05);
}

.quotation-template-panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 16px;
}

.quotation-template-panel-heading h3,
.quotation-template-output-panel h3 {
  margin: 1px 0 0;
  color: var(--home-ink);
  font-size: 1.16rem;
  line-height: 1.3;
}

.quotation-template-panel-heading p,
.quotation-template-output-panel p {
  margin: 4px 0 0;
  color: var(--home-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.quotation-template-step {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--home-primary-dark);
  background: #dff2ec;
  font-size: 0.76rem;
  font-weight: 950;
}

.quotation-template-general-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 13px 16px;
}

.quotation-template-field-wide {
  grid-column: 1 / -1;
}

.quotation-template-body .entity-field {
  gap: 5px;
}

.quotation-template-body .entity-field > span {
  color: #33453f;
  font-size: 0.79rem;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.quotation-template-body .entity-field input,
.quotation-template-body .entity-field select,
.quotation-template-body .entity-field textarea {
  min-height: 44px;
  padding: 0.62rem 0.78rem;
  border: 1px solid #cad9d4;
  border-radius: 8px;
  color: var(--home-ink);
  background: #ffffff;
  font-size: 0.94rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.quotation-template-body .entity-field textarea {
  min-height: 76px;
  line-height: 1.5;
  resize: vertical;
}

.quotation-template-body .entity-field input::placeholder,
.quotation-template-body .entity-field textarea::placeholder {
  color: #8a9994;
}

.quotation-template-body .entity-field input:hover,
.quotation-template-body .entity-field select:hover,
.quotation-template-body .entity-field textarea:hover {
  border-color: #9eb9b1;
}

.quotation-template-body .entity-field input:focus,
.quotation-template-body .entity-field select:focus,
.quotation-template-body .entity-field textarea:focus {
  border-color: var(--home-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.quotation-template-section-title {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.quotation-template-section-title .quotation-template-panel-heading {
  margin-bottom: 0;
}

.quotation-template-add-item {
  min-height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid var(--home-primary);
  border-radius: 8px;
  color: #ffffff;
  background: var(--home-primary);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.quotation-template-add-item:hover {
  background: var(--home-primary-dark);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
  transform: translateY(-1px);
}

.quotation-template-add-icon {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
}

.quotation-template-items {
  display: grid;
  gap: 10px;
}

.quotation-template-item {
  padding: 14px;
  border: 1px solid #d7e4df;
  border-radius: 9px;
  background: #fbfdfc;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.quotation-template-item:focus-within {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 8px 24px rgba(21, 45, 38, 0.06);
}

.quotation-template-item-header,
.quotation-template-item-identity {
  display: flex;
  align-items: center;
}

.quotation-template-item-header {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e5ece9;
}

.quotation-template-item-identity {
  gap: 9px;
}

.quotation-template-item-identity strong {
  color: #3c4e48;
  font-size: 0.88rem;
}

.quotation-template-item-number {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  color: var(--home-primary-dark);
  background: #e4f4ef;
  font-size: 0.75rem;
  font-weight: 950;
}

.quotation-template-remove-item {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #9f3340;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 850;
  transition: border-color 160ms ease, background 160ms ease;
}

.quotation-template-remove-item:hover {
  border-color: #f2c8ce;
  background: #fff1f2;
}

.quotation-template-trash-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  display: block;
  filter: invert(20%) sepia(35%) saturate(2600%) hue-rotate(315deg) brightness(88%) contrast(88%);
}

.quotation-template-item-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(110px, 0.42fr) minmax(125px, 0.5fr) minmax(0, 1.15fr);
  gap: 10px;
}

.quotation-template-item-description {
  grid-column: auto;
}

.quotation-template-empty-items {
  margin: 0;
  padding: 18px;
  border: 1px dashed #aabeb7;
  border-radius: 8px;
  color: var(--home-muted);
  background: #f8fbfa;
  text-align: center;
}

.quotation-template-output-panel {
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-color: #1f3932;
  color: #ffffff;
  background: #172c26;
  box-shadow: 0 14px 30px rgba(23, 44, 38, 0.16);
}

.quotation-template-output-copy {
  gap: 13px;
}

.quotation-template-output-panel h3 {
  color: #ffffff;
}

.quotation-template-output-panel p {
  max-width: 470px;
  color: rgba(255, 255, 255, 0.68);
}

.quotation-template-output-panel .quotation-template-generation-notice {
  color: #a7f3d0;
}

.quotation-template-step-light {
  color: #d1fae5;
  background: rgba(52, 211, 153, 0.14);
}

.quotation-template-output-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.quotation-template-confirmed-export {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quotation-template-confirmed-export .quotation-template-output-button {
  min-width: 230px;
}

.quotation-template-product-cta {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.75rem, 3.5vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
  border-radius: 14px;
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 10%, rgba(45, 212, 191, 0.22), transparent 25rem),
    #102820;
  box-shadow: 0 24px 55px rgba(21, 45, 38, 0.16);
}

.quotation-template-product-cta::before {
  position: absolute;
  top: -120px;
  right: 27%;
  width: 230px;
  height: 230px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.quotation-template-product-copy {
  position: relative;
  z-index: 2;
}

.quotation-template-product-badge {
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid rgba(167, 243, 208, 0.2);
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(15, 118, 110, 0.26);
}

.quotation-template-product-copy h2 {
  max-width: 620px;
  color: #ffffff;
}

.quotation-template-product-copy > p {
  max-width: 610px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.03rem;
}

.quotation-template-product-copy ul {
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  list-style: none;
}

.quotation-template-product-copy li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.45;
}

.quotation-template-product-copy li::before {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  margin-top: 1px;
  content: "✓";
  border-radius: 50%;
  color: #d1fae5;
  background: rgba(52, 211, 153, 0.17);
  font-size: 0.67rem;
  font-weight: 950;
}

.quotation-template-register-button {
  width: fit-content;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
  padding: 0 21px;
  border: 0;
  border-radius: 9px;
  color: #102820;
  background: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.quotation-template-register-button:hover {
  color: var(--home-primary-dark);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.quotation-template-register-button span {
  font-size: 1.2rem;
  line-height: 1;
}

.quotation-template-product-copy small {
  max-width: 620px;
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  line-height: 1.5;
}

.quotation-template-product-visual {
  position: relative;
  z-index: 1;
}

.quotation-template-bottom-cta {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 10px;
  background: #eaf6f2;
}

.quotation-template-bottom-cta > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quotation-template-bottom-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  color: #ffffff;
  background: var(--home-primary);
  font-weight: 950;
}

.quotation-template-bottom-cta h2 {
  margin: 0;
  color: var(--home-ink);
  font-size: 1.08rem;
  line-height: 1.3;
}

.quotation-template-bottom-cta p {
  margin: 4px 0 0;
  color: var(--home-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.quotation-template-bottom-button {
  min-height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--home-primary);
  border-radius: 8px;
  color: #ffffff;
  background: var(--home-primary);
  font-size: 0.84rem;
  font-weight: 900;
  transition: background 160ms ease, transform 160ms ease;
}

.quotation-template-bottom-button:hover {
  color: #ffffff;
  background: var(--home-primary-dark);
  transform: translateY(-1px);
}

.quotation-template-body .home-footer {
  margin-top: 0;
}

.quotation-template-export-overlay {
  padding: 18px;
  background: rgba(15, 35, 30, 0.58);
  backdrop-filter: blur(5px);
}

.quotation-template-export-modal {
  width: min(820px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-color: rgba(15, 118, 110, 0.18);
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(15, 35, 30, 0.3);
}

.quotation-template-export-header {
  flex: 0 0 auto;
  align-items: center;
  margin: 0;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #dfe9e5;
  background: linear-gradient(135deg, #ffffff, #f4faf8);
}

.quotation-template-export-header .entity-kicker {
  margin: 0 0 3px;
  color: var(--home-primary);
}

.quotation-template-export-header h2 {
  color: var(--home-ink);
}

.quotation-template-export-header p:last-child {
  max-width: 580px;
  margin: 5px 0 0;
  color: var(--home-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.quotation-template-export-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.quotation-template-export-format {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  color: var(--home-primary-dark);
  background: #e9f7f3;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quotation-template-export-header .entity-icon-button {
  flex: 0 0 auto;
  color: #52665f;
  font-size: 1.25rem;
  line-height: 1;
}

.quotation-template-export-body {
  min-height: 0;
  display: grid;
  gap: 18px;
  padding: 20px 24px;
  overflow-y: auto;
  background: #fbfdfc;
}

.quotation-template-export-sections,
.quotation-template-export-selected,
.quotation-template-export-catalog {
  padding: 17px;
  border: 1px solid #dfe9e5;
  border-radius: 11px;
  background: #ffffff;
}

.quotation-template-export-section-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
}

.quotation-template-export-section-options label {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid #dfe9e5;
  border-radius: 8px;
  color: #2e4840;
  background: #f8fbfa;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
}

.quotation-template-export-section-options input {
  width: 17px;
  height: 17px;
  accent-color: var(--home-primary);
}

.quotation-template-export-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.quotation-template-export-section-heading h3 {
  margin: 0;
  color: var(--home-ink);
  font-size: 0.94rem;
}

.quotation-template-export-section-heading > span {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--home-primary-dark);
  background: #e4f4ef;
  font-size: 0.76rem;
  font-weight: 900;
}

.quotation-template-export-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quotation-template-export-chip {
  max-width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 11px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  color: #21443a;
  background: #edf8f5;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.3;
}

.quotation-template-export-chip > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.quotation-template-export-chip button {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #8d2f3b;
  background: rgba(159, 51, 64, 0.1);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
}

.quotation-template-export-chip button:hover,
.quotation-template-export-chip button:focus-visible {
  color: #ffffff;
  background: #9f3340;
  outline: none;
}

.quotation-template-export-validation {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  background: #fff1f2;
  font-size: 0.86rem;
  font-weight: 750;
}

.quotation-template-export-search > span {
  color: #3c4e48;
  font-size: 0.78rem;
  font-weight: 800;
}

.quotation-template-export-search input:focus {
  border-color: var(--home-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.quotation-template-export-create-item {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px dashed rgba(15, 118, 110, 0.45);
  border-radius: 8px;
  color: var(--home-primary-dark);
  background: #f0faf7;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease;
}

.quotation-template-export-create-item:hover,
.quotation-template-export-create-item:focus-visible {
  border-color: var(--home-primary);
  background: #e4f4ef;
  outline: none;
}

.quotation-template-export-create-item strong {
  overflow-wrap: anywhere;
}

.quotation-template-export-suggestions {
  max-height: 250px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-right: 3px;
  overflow-y: auto;
}

.quotation-template-export-suggestions > button {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e1eae7;
  border-radius: 8px;
  color: var(--home-ink);
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.quotation-template-export-suggestions > button:hover,
.quotation-template-export-suggestions > button:focus-visible {
  border-color: rgba(15, 118, 110, 0.35);
  background: #f0faf7;
  outline: none;
  transform: translateY(-1px);
}

.quotation-template-export-suggestion-add {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #ffffff;
  background: var(--home-primary);
  font-size: 1rem;
  font-weight: 900;
}

.quotation-template-export-suggestions > button > span:last-child {
  min-width: 0;
  display: grid;
}

.quotation-template-export-suggestions strong {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quotation-template-export-suggestions small {
  color: var(--home-muted);
  font-size: 0.72rem;
}

.quotation-template-export-no-results {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 8px;
  color: var(--home-muted);
  background: #f5f8f7;
  font-size: 0.84rem;
  text-align: center;
}

.quotation-template-export-actions {
  flex: 0 0 auto;
  margin: 0;
  padding: 16px 24px;
  border-color: #dfe9e5;
  background: #ffffff;
}

.quotation-template-export-actions .entity-primary-action {
  background: var(--home-primary);
}

.quotation-template-export-actions .entity-primary-action:hover {
  background: var(--home-primary-dark);
}

.quotation-template-export-actions .entity-primary-action:disabled {
  color: #f8faf9;
  background: #91a39d;
}

@media (max-width: 1050px) {
  .quotation-template-hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
    gap: 2rem;
  }

  .quotation-template-document {
    width: min(330px, 78%);
  }

  .quotation-template-product-cta {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.65fr);
  }

  .quotation-template-item-grid {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(105px, 0.35fr));
  }

  .quotation-template-item-description {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .quotation-template-hero {
    grid-template-columns: 1fr;
    padding-bottom: 2.5rem;
  }

  .quotation-template-hero-copy {
    max-width: 760px;
  }

  .quotation-template-hero-visual {
    min-height: 350px;
  }

  .quotation-template-editor-heading {
    display: block;
  }

  .quotation-template-editor-heading > p {
    margin-top: 12px;
  }

  .quotation-template-item-grid {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(120px, 0.34fr));
  }

  .quotation-template-item-description {
    grid-column: 1 / -1;
  }

  .quotation-template-product-cta {
    grid-template-columns: 1fr;
  }

  .quotation-template-product-visual {
    max-width: 620px;
  }
}

@media (max-width: 760px) {
  .quotation-template-page {
    width: min(100% - 24px, 1180px);
    padding-top: 66px;
    padding-bottom: 32px;
  }

  .quotation-template-hero {
    min-height: auto;
    padding-top: 2.75rem;
    padding-bottom: 2.25rem;
  }

  .quotation-template-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }

  .quotation-template-editor {
    padding: 16px;
  }

  .quotation-template-general-grid,
  .quotation-template-item-grid {
    grid-template-columns: 1fr;
  }

  .quotation-template-section-title,
  .quotation-template-output-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .quotation-template-add-item {
    width: 100%;
  }

  .quotation-template-output-actions {
    justify-content: stretch;
  }

  .quotation-template-output-actions .quotation-template-output-button {
    flex: 1 1 190px;
  }

  .quotation-template-confirmed-export,
  .quotation-template-confirmed-export .quotation-template-output-button {
    width: 100%;
  }

  .quotation-template-product-cta {
    padding: 24px 18px;
  }

  .quotation-template-product-copy ul {
    grid-template-columns: 1fr;
  }

  .quotation-template-bottom-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .quotation-template-bottom-button {
    width: 100%;
  }

  .quotation-template-export-overlay {
    align-items: flex-end;
    padding: 8px;
  }

  .quotation-template-export-modal {
    max-height: calc(100vh - 16px);
    border-radius: 14px 14px 9px 9px;
  }

  .quotation-template-export-header,
  .quotation-template-export-body,
  .quotation-template-export-actions {
    padding-right: 16px;
    padding-left: 16px;
  }

  .quotation-template-export-suggestions {
    grid-template-columns: 1fr;
  }
}

/* Dashboard mockup: a flat, intentional composition without a perspective frame. */
.quotation-template-product-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.quotation-template-dashboard {
  width: min(540px, 100%);
  overflow: hidden;
  border-radius: 16px;
  background: #123a31;
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.24);
}

.quotation-template-dashboard-top {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  background: #f8fcfa;
  box-shadow: inset 0 -1px 0 #d9e8e2;
}

.quotation-template-dashboard-dots {
  display: flex;
  gap: 5px;
}

.quotation-template-dashboard-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9eb7ae;
}

.quotation-template-dashboard-dots span:first-child {
  background: #57c5a7;
}

.quotation-template-dashboard-topline {
  width: 105px;
  height: 7px;
  border-radius: 999px;
  background: #d5e6df;
}

.quotation-template-dashboard-status {
  width: 42px;
  height: 8px;
  margin-left: auto;
  border-radius: 999px;
  background: #b7d8cd;
}

.quotation-template-dashboard-layout {
  min-height: 286px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
}

.quotation-template-dashboard-sidebar {
  padding: 18px 13px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #123a31;
}

.quotation-template-dashboard-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #5ee0bb;
  box-shadow: 0 0 0 5px rgba(94, 224, 187, 0.1);
}

.quotation-template-dashboard-nav {
  width: 100%;
  display: grid;
  gap: 13px;
  margin-top: 30px;
}

.quotation-template-dashboard-nav span,
.quotation-template-dashboard-nav-bottom {
  width: 100%;
  height: 7px;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
}

.quotation-template-dashboard-nav span.is-active {
  background: #5ee0bb;
}

.quotation-template-dashboard-nav-bottom {
  width: 24px;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.16);
}

.quotation-template-dashboard-main {
  min-width: 0;
  padding: 20px 18px 18px;
  background: #edf7f3;
}

.quotation-template-dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.quotation-template-dashboard-toolbar span:first-child {
  width: 116px;
  height: 10px;
  border-radius: 999px;
  background: #659d8e;
}

.quotation-template-dashboard-toolbar span:last-child {
  width: 52px;
  height: 22px;
  border-radius: 6px;
  background: #d0e6de;
}

.quotation-template-dashboard-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.quotation-template-dashboard-stat-row div {
  min-height: 59px;
  padding: 12px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 3px 0 #73b9a7, 0 1px 0 rgba(18, 58, 49, 0.04);
}

.quotation-template-dashboard-stat-row span {
  width: 45%;
  height: 6px;
  border-radius: 999px;
  background: #cbded7;
}

.quotation-template-dashboard-stat-row strong {
  width: 72%;
  height: 9px;
  display: block;
  border-radius: 999px;
  background: #659d8e;
}

.quotation-template-dashboard-chart {
  height: 157px;
  margin-top: 14px;
  padding: 15px 15px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(18, 58, 49, 0.06);
}

.quotation-template-dashboard-chart-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.quotation-template-dashboard-chart-heading span:first-child {
  width: 78px;
  height: 8px;
  border-radius: 999px;
  background: #659d8e;
}

.quotation-template-dashboard-chart-heading span:last-child {
  width: 32px;
  height: 8px;
  border-radius: 999px;
  background: #d0e6de;
}

.quotation-template-dashboard-bars {
  height: 103px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 12px;
  padding: 0 10px;
  border-bottom: 1px solid #dce9e4;
}

.quotation-template-dashboard-bars i {
  width: 12%;
  height: 52%;
  display: block;
  border-radius: 4px 4px 0 0;
  background: #5caa98;
}

.quotation-template-dashboard-bars i:nth-child(2) {
  height: 76%;
}

.quotation-template-dashboard-bars i:nth-child(3) {
  height: 43%;
}

.quotation-template-dashboard-bars i:nth-child(4) {
  height: 88%;
}

.quotation-template-dashboard-bars i:nth-child(5) {
  height: 64%;
}

@media (max-width: 860px) {
  .quotation-template-dashboard {
    width: min(620px, 100%);
  }
}

@media (max-width: 520px) {
  .quotation-template-dashboard-layout {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .quotation-template-dashboard-sidebar {
    padding-right: 10px;
    padding-left: 10px;
  }

  .quotation-template-dashboard-main {
    padding: 16px 12px 14px;
  }

  .quotation-template-dashboard-stat-row {
    gap: 6px;
  }

  .quotation-template-dashboard-stat-row div {
    padding: 9px;
  }

  .quotation-template-dashboard-chart {
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (max-width: 520px) {
  .quotation-template-hero-actions,
  .quotation-template-output-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quotation-template-output-button {
    width: 100%;
  }

  .quotation-template-export-header {
    align-items: flex-start;
    padding-top: 17px;
  }

  .quotation-template-export-header-actions {
    flex-direction: column-reverse;
  }

  .quotation-template-export-sections,
  .quotation-template-export-selected,
  .quotation-template-export-catalog {
    padding: 14px;
  }

  .quotation-template-export-section-options {
    grid-template-columns: 1fr;
  }

  .quotation-template-export-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quotation-template-export-actions button {
    width: 100%;
  }

  .quotation-template-trust-list {
    display: grid;
  }

  .quotation-template-hero-visual {
    min-height: 320px;
  }

  .quotation-template-document {
    width: 78%;
    min-height: 315px;
    padding: 16px 14px;
  }

  .quotation-template-document-top {
    gap: 9px;
  }

  .quotation-template-document-top small {
    padding: 4px 6px;
    font-size: 0.56rem;
    letter-spacing: 0;
  }

  .quotation-template-document-brand {
    flex-basis: 72px;
    width: 72px;
  }

  .quotation-template-document-brand::after {
    width: 31px;
  }

  .quotation-template-format-chip {
    min-width: 54px;
    min-height: 54px;
    border-width: 4px;
    border-radius: 12px;
    font-size: 0.63rem;
  }

  .quotation-template-format-chip-pdf {
    top: 46px;
  }

  .quotation-template-format-chip-excel {
    bottom: 44px;
  }

  .quotation-template-document-table > div {
    min-height: 32px;
  }

  .quotation-template-editor {
    margin-right: -12px;
    margin-left: -12px;
    padding: 14px 12px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .quotation-template-panel {
    padding: 16px 14px;
  }

  .quotation-template-item {
    padding: 14px 12px;
  }

  .quotation-template-remove-item span:last-child {
    display: none;
  }

  .quotation-template-register-button {
    width: 100%;
  }

  .quotation-template-bottom-cta > div {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quotation-template-output-button,
  .quotation-template-add-item,
  .quotation-template-register-button,
  .quotation-template-bottom-button {
    transition: none;
  }
}
