:root {
  --navy: #071c2d;
  --navy-2: #0b2a42;
  --cyan: #00d6e6;
  --cyan-2: #34f5ff;
  --ink: #24303d;
  --muted: #64748b;
  --line: #d9e4ee;
  --soft: #f4f8fb;
  --card: #ffffff;
  --success: #12b981;
  --danger: #e11d48;
  --shadow: 0 22px 70px rgba(7, 28, 45, 0.15);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #eef7fb 0%, #ffffff 40%, #e9fbfd 100%);
  color: var(--ink);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 214, 230, 0.25), transparent 35%),
    linear-gradient(135deg, var(--navy), #0f3550);
}

.login-card {
  width: min(440px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.login-card img {
  width: 180px;
  height: 110px;
  object-fit: contain;
  display: block;
  margin-bottom: 12px;
}

.login-card h1,
.topbar h2,
.section-title h3,
.preview-toolbar h3 {
  margin: 0;
}

.login-card p {
  color: var(--muted);
  line-height: 1.55;
}

.account-login-link {
  display: block;
  margin-top: 12px;
  color: #087f8c;
  text-align: center;
  font-weight: 800;
}

label {
  display: grid;
  gap: 7px;
  color: #415166;
  font-weight: 700;
  font-size: 0.86rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border 0.15s, box-shadow 0.15s;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 214, 230, 0.13);
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #007b89;
  outline-offset: 3px;
}

.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.primary-button {
  background: var(--cyan);
  color: #022033;
  box-shadow: 0 12px 24px rgba(0, 214, 230, 0.26);
}

.ghost-button {
  background: #e8f1f6;
  color: var(--navy);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.app {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand-block {
  display: grid;
  gap: 8px;
}

.brand-block img {
  width: 180px;
  height: 110px;
  object-fit: contain;
  background: #fff;
  border-radius: 22px;
  padding: 8px;
}

.brand-block strong {
  font-size: 1.2rem;
}

.brand-block span,
.side-note span {
  color: #b9cad8;
}

.sidebar nav {
  display: grid;
  gap: 10px;
}

.sidebar nav a {
  padding: 13px 15px;
  border-radius: 16px;
  text-decoration: none;
  color: #e7f2f7;
  font-weight: 800;
}

.sidebar nav a.active,
.sidebar nav a:hover {
  background: rgba(0, 214, 230, 0.16);
  color: var(--cyan-2);
}

.side-note {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.workspace {
  padding: 30px;
  display: grid;
  gap: 24px;
}

.app-view.is-view-hidden {
  display: none !important;
}

.topbar,
.preview-toolbar,
.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar {
  padding: 24px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(217, 228, 238, 0.8);
  border-radius: 24px;
  box-shadow: 0 10px 32px rgba(7, 28, 45, 0.08);
  backdrop-filter: blur(12px);
}

.topbar-subtitle {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 14px 40px rgba(7, 28, 45, 0.08);
}

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

.section-title {
  display: grid;
  gap: 2px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.client-loader {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  border: 1px solid #a9eff5;
  border-radius: 20px;
  padding: 16px;
  background: #e8fbfd;
}

.client-loader label {
  min-width: 0;
}

.client-loader input {
  min-width: 0;
}

.client-loader span {
  grid-column: 1 / -1;
  align-self: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.item-builder .wide {
  min-width: 220px;
  grid-column: span 2;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 12px;
}

.checkline input {
  width: auto;
}

.items-shell {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--navy);
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

td small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.remove-item,
.edit-item,
.save-item-edit,
.cancel-item-edit,
.move-item-up,
.move-item-down {
  color: var(--danger);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.edit-item,
.save-item-edit,
.move-item-up,
.move-item-down {
  color: var(--navy);
}

.move-item-up:disabled,
.move-item-down:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.45;
}

.item-row-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 7px;
  margin-top: 9px;
}

.item-line-total {
  display: block;
  margin-top: 7px;
  color: var(--navy);
  font-size: 0.8rem;
}

.item-line-total span,
.discount-note {
  display: block;
  margin-top: 3px;
  color: #0b8e9b;
  font-weight: 900;
}

.price-before {
  color: #8090a3;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  font-weight: 800;
}

.inline-price {
  display: inline !important;
  margin: 0 !important;
}

.item-edit-row {
  background: #f3fcfd;
}

.table-field {
  display: grid;
  gap: 5px;
  min-width: 260px;
}

.table-field.compact {
  min-width: 180px;
  max-width: 220px;
  margin-top: 8px;
}

.item-edit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 9px;
}

.table-field.item-edit-control {
  min-width: 0;
}

.table-field span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.table-field textarea,
.table-field input,
.table-number-input,
.table-select {
  width: 100%;
  min-width: 90px;
  padding: 9px 10px;
  border: 1px solid #b9dce1;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.table-number-input.price-input {
  min-width: 135px;
}

.table-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
}

.table-check input {
  width: auto;
}

.item-inventory-check {
  margin-top: 9px;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.project-routing-control {
  display: grid;
  gap: 5px;
  min-width: 250px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.project-routing-control select {
  min-height: 42px;
}

.project-routing-control small {
  max-width: 280px;
  line-height: 1.35;
}

.project-routing-control.hidden {
  display: none;
}

.email-recipient-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.email-recipient-modal.hidden {
  display: none;
}

.email-recipient-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 24, 39, 0.58);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.email-recipient-card {
  position: relative;
  width: min(100%, 620px);
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(0, 214, 230, 0.45);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(3, 24, 39, 0.28);
}

.email-recipient-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.email-recipient-heading h3,
.email-recipient-context,
.email-recipient-help,
.email-recipient-status {
  margin: 0;
}

.email-recipient-heading h3 {
  color: var(--ink);
  font-size: 1.35rem;
}

.email-recipient-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #e8f1f6;
  color: var(--navy);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.email-recipient-context {
  color: var(--ink);
  font-weight: 800;
}

.email-recipient-help {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.email-recipient-status {
  min-height: 1.35em;
  color: #b42318;
  font-weight: 800;
}

.email-recipient-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

body.email-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .email-recipient-modal {
    align-items: end;
    padding: 12px;
  }

  .email-recipient-card {
    padding: 22px 18px;
    border-radius: 24px 24px 18px 18px;
  }

  .email-recipient-actions > * {
    flex: 1 1 140px;
  }
}

.quote-saved-panel {
  border-left: 10px solid var(--cyan);
  display: grid;
  gap: 18px;
}

.quote-saved-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.quote-saved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quote-saved-actions a {
  text-decoration: none;
  text-align: center;
}

.quote-saved-actions .is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

.quote-saved-note {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 800;
}

.metrics-panel {
  position: sticky;
  top: 26px;
  display: grid;
  gap: 14px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 6px;
}

.metric span {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.82rem;
}

.metric strong {
  font-size: 1.45rem;
}

.metric.highlight {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.metric.highlight strong {
  color: var(--cyan);
}

.mini-alert {
  background: #e8fbfd;
  border: 1px solid #a9eff5;
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 8px;
  color: #284152;
}

.preview-area {
  display: grid;
  gap: 16px;
}

.preview-toolbar {
  padding: 0 4px;
}

.preview-toolbar a {
  margin-left: 10px;
  color: var(--navy);
  font-weight: 900;
}

.quote-preview {
  width: min(1040px, 100%);
  margin: 0 auto;
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

body.public-view .inventory-visibility-label {
  display: none;
}

@media print {
  .inventory-visibility-label {
    display: none !important;
  }
}

.quote-page {
  padding: 0 54px 48px;
  min-height: 1180px;
}

.cover-page {
  position: relative;
  min-height: 1180px;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: #e7e7e7;
}

.cover-image-page {
  min-height: auto;
  aspect-ratio: 1545 / 2000;
  background: #fff;
}

.cover-image-page::before,
.cover-image-page::after {
  display: none;
}

.cover-full-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.cover-quote-number {
  position: absolute;
  z-index: 4;
  left: 32px;
  top: 32px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(7, 28, 45, 0.88);
  color: #fff;
  border: 2px solid rgba(20, 205, 214, 0.88);
  font-weight: 950;
  letter-spacing: 0.08em;
  box-shadow: 0 14px 34px rgba(7, 28, 45, 0.25);
}

.template-image-page {
  position: relative;
  min-height: auto;
  aspect-ratio: 215.9 / 279.4;
  padding: 0;
  background: #fff;
  overflow: hidden;
}

.template-image-page > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.template-page-number {
  position: absolute;
  right: 18px;
  bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(7, 28, 45, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.cover-hotspot {
  position: absolute;
  z-index: 3;
  display: block;
  border-radius: 999px;
}

.cover-hotspot-phone {
  left: 8%;
  bottom: 3.3%;
  width: 24%;
  height: 5.3%;
}

.cover-hotspot-web {
  left: 34%;
  bottom: 3.3%;
  width: 29%;
  height: 5.3%;
}

.cover-hotspot-instagram {
  right: 7%;
  bottom: 3.3%;
  width: 26%;
  height: 5.3%;
}

.cover-page::before {
  content: "";
  position: absolute;
  left: -8%;
  top: 0;
  width: 69%;
  height: 73%;
  background: linear-gradient(135deg, #54e1e3 0%, #43cfd5 72%, #25bac8 100%);
  clip-path: polygon(0 0, 82% 0, 100% 45%, 72% 72%, 0 72%);
}

.cover-page::after {
  content: "";
  position: absolute;
  right: -12%;
  top: -7%;
  width: 58%;
  height: 125%;
  background: #d9d9d9;
  transform: rotate(45deg);
  transform-origin: center;
}

.cover-brand-card,
.cover-title-block,
.cover-photo-stack,
.cover-intro-card,
.cover-client-card,
.cover-contact-bar {
  position: relative;
  z-index: 1;
}

.cover-brand-card {
  position: absolute;
  top: 38px;
  right: 44px;
  width: 330px;
  min-height: 150px;
  display: grid;
  place-items: center;
}

.cover-brand-card img {
  width: 286px;
  height: 138px;
  object-fit: contain;
}

.cover-brand-card img.dark-logo {
  border-radius: 20px;
  object-fit: cover;
}

.cover-photo-stack {
  position: absolute;
  inset: 0;
}

.cover-diamond {
  position: absolute;
  margin: 0;
  overflow: hidden;
  transform: rotate(-45deg);
  border: 16px solid #e1e1e1;
  box-shadow: 0 24px 42px rgba(7, 28, 45, 0.18);
}

.cover-diamond img {
  width: 148%;
  height: 148%;
  object-fit: cover;
  transform: translate(-16%, -16%) rotate(45deg);
}

.cover-diamond-main {
  top: 196px;
  right: 246px;
  width: 300px;
  height: 300px;
  border-radius: 58px 0 58px 0;
}

.cover-diamond-main img {
  object-position: 44% 48%;
}

.cover-diamond-side {
  top: 460px;
  right: 42px;
  width: 292px;
  height: 292px;
  border-radius: 0 54px 0 54px;
}

.cover-diamond-side img {
  object-position: 74% 52%;
}

.cover-diamond-bottom {
  top: 690px;
  right: 226px;
  width: 300px;
  height: 300px;
  border-radius: 54px 0 54px 0;
}

.cover-diamond-bottom img {
  object-position: 23% 60%;
}

.cover-diamond-accent {
  top: 734px;
  right: 72px;
  width: 124px;
  height: 124px;
  border: 0;
  background: #54e1e3;
  box-shadow: none;
}

.cover-title-block {
  position: absolute;
  left: 48px;
  top: 388px;
  width: 520px;
}

.cover-line-dot {
  width: 335px;
  height: 4px;
  margin-bottom: 104px;
  background: rgba(255, 255, 255, 0.95);
  position: relative;
}

.cover-line-dot::after {
  content: "";
  position: absolute;
  right: -10px;
  top: -8px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
}

.cover-title-block .eyebrow {
  color: rgba(7, 28, 45, 0.58);
  font-size: 0.82rem;
}

.cover-title-block h1 {
  margin: 0;
  color: #182535;
  font-size: 4.7rem;
  line-height: 0.96;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  text-shadow: 3px 4px 0 rgba(255, 255, 255, 0.62);
}

.cover-title-block h1 span {
  display: block;
}

.cover-subtitle {
  margin: 0;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(7, 28, 45, 0.26);
}

.cover-summary {
  max-width: 470px;
  margin: 18px 0 0;
  color: #24303d;
  line-height: 1.45;
}

.cover-badges,
.cover-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cover-badges span {
  border: 1px solid rgba(7, 28, 45, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
  color: #071c2d;
  background: rgba(255, 255, 255, 0.56);
  font-weight: 900;
}

.cover-actions a {
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 13px;
  font-weight: 900;
  background: #071c2d;
  color: #fff;
  font-size: 0.82rem;
}

.cover-actions a:first-child {
  background: #fff;
  color: var(--navy);
}

.cover-actions a.payment-link {
  background: var(--cyan);
  color: var(--navy);
}

.cover-intro-card {
  position: absolute;
  left: 48px;
  bottom: 118px;
  width: 470px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 0 28px 28px 0;
  padding: 22px 28px;
  box-shadow: 0 22px 44px rgba(7, 28, 45, 0.1);
}

.cover-intro-card strong {
  display: block;
  margin-bottom: 8px;
  color: #071c2d;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.cover-intro-card p {
  margin: 0 0 16px;
  font-size: 1.03rem;
  line-height: 1.48;
}

.cover-client-card {
  position: absolute;
  z-index: 1;
  left: auto;
  right: 48px;
  bottom: 118px;
  width: 412px;
  border: 1px solid rgba(7, 28, 45, 0.1);
  border-radius: 24px 0 0 24px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  gap: 5px;
  box-shadow: 0 22px 44px rgba(7, 28, 45, 0.1);
}

.cover-client-card span,
.cover-client-card small {
  color: var(--muted);
  font-weight: 800;
}

.cover-client-card strong {
  color: #071c2d;
  font-size: 1.35rem;
  line-height: 1.08;
}

.cover-contact-bar {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 72px;
  padding: 0 78px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 20px;
  background: #54e1e3;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(7, 28, 45, 0.24);
}

.cover-contact-bar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.cover-contact-bar span::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 9px #071c2d;
}

.compact-page {
  padding-top: 40px;
  font-size: 0.92rem;
}

.quote-compact-header {
  margin: 0 0 26px;
  padding: 18px 20px;
  background: linear-gradient(120deg, var(--navy), #113d5e);
  color: #fff;
  display: grid;
  grid-template-columns: 148px 1fr auto;
  gap: 18px;
  align-items: center;
  border-radius: 24px;
  border-bottom: 5px solid var(--cyan);
}

.quote-compact-header img {
  width: 128px;
  height: 82px;
  object-fit: contain;
  background: #fff;
  border-radius: 18px;
  padding: 6px;
}

.quote-compact-header img.dark-logo {
  background: #02080c;
  object-fit: cover;
  padding: 0;
}

.quote-compact-header h1 {
  margin: 2px 0 6px;
  font-size: 1.55rem;
  line-height: 1.05;
}

.quote-compact-header p {
  margin: 0;
  color: #c9dbe6;
}

.quote-compact-header .quote-print-number {
  margin-top: 8px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.quote-hero {
  margin: 0 -54px 42px;
  padding: 30px 54px;
  background:
    linear-gradient(120deg, var(--navy) 0%, #09263d 58%, #113d5e 58%, #113d5e 100%);
  color: #fff;
  display: grid;
  grid-template-columns: 250px 1fr auto;
  gap: 26px;
  align-items: center;
  border-bottom: 6px solid var(--cyan);
}

.quote-hero img {
  width: 210px;
  height: 130px;
  object-fit: contain;
  background: #fff;
  border-radius: 22px;
  padding: 8px;
}

.quote-hero img.dark-logo {
  background: #02080c;
  object-fit: cover;
  padding: 0;
}

.quote-hero h1 {
  margin: 4px 0 10px;
  font-size: 2.2rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.quote-hero .page-pill {
  background: var(--cyan);
  color: var(--navy);
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 900;
}

.quote-summary {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: var(--soft);
  margin-bottom: 22px;
}

.quote-summary h2 {
  margin: 0 0 10px;
}

.quote-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 34px;
}

.compact-info {
  gap: 10px;
  margin-bottom: 22px;
}

.info-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

.info-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.quote-section-heading {
  margin: 32px 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.quote-section-heading::before {
  content: "";
  width: 12px;
  height: 40px;
  border-radius: 999px;
  background: var(--cyan);
}

.quote-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.compact-table th,
.compact-table td {
  padding: 10px 11px;
}

.compact-table td,
.compact-table small {
  font-size: 0.86rem;
}

.item-number {
  color: var(--cyan);
}

.quote-table th:first-child {
  border-top-left-radius: 18px;
}

.quote-table th:last-child {
  border-top-right-radius: 18px;
}

.quote-total {
  margin-top: 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 22px;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 900;
  font-size: 1.1rem;
}

.quote-total strong {
  color: var(--cyan);
  font-size: 2rem;
}

.financial-summary {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.financial-summary > div {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
  display: grid;
  gap: 5px;
}

.financial-summary span {
  color: var(--muted);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.financial-summary strong {
  font-size: 1.2rem;
}

.financial-summary .total-due {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.financial-summary .total-due strong {
  color: var(--cyan);
  font-size: 1.55rem;
}

.financial-summary .discount-summary {
  background: #f2fbfd;
  border-color: #a9eff5;
}

.financial-summary .discount-summary strong {
  color: #0b8e9b;
}

.payment-card {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 18px;
  align-items: center;
  border: 1px solid #a9eff5;
  border-radius: 22px;
  background: #e8fbfd;
  padding: 20px;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.payment-methods .payment-card {
  margin-top: 0;
  grid-template-columns: minmax(0, 1fr) 112px;
  padding: 16px;
}

.bank-payment-card {
  background: #f4f3f1;
  border-color: #c9c6c1;
}

.bank-payment-card > a {
  display: flex;
  justify-content: center;
}

.payment-card img.bank-payment-qr {
  width: 108px;
  height: 193px;
  padding: 0;
  border-radius: 12px;
  object-fit: contain;
  background: #292826;
}

.bank-payment-details {
  display: grid;
  gap: 4px;
  margin: 8px 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.bank-payment-note {
  margin-bottom: 0;
  font-size: 0.76rem;
}

.payment-card img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
}

.compact-payment {
  margin-top: 18px;
  grid-template-columns: 1fr 120px;
  padding: 16px;
}

.compact-payment img {
  width: 112px;
  height: 112px;
}

.online-bank-payment {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #d2cfca;
  border-radius: 16px;
  background: #f7f6f4;
  text-align: left;
}

.online-bank-payment img {
  display: block;
  width: 82px;
  height: 146px;
  border-radius: 10px;
  object-fit: contain;
  background: #292826;
}

.online-bank-payment div {
  display: grid;
  gap: 4px;
}

.online-bank-payment span,
.online-bank-payment small {
  color: #53616c;
  font-size: 0.76rem;
}

.approval-links,
.approval-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.approval-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.approval-approve {
  background: #10c8d2;
  color: #071c2d;
}

.approval-reject {
  background: #ffe8e8;
  color: #a51616;
  border: 1px solid #ffc1c1;
}

.online-approval-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  display: grid;
  gap: 10px;
  background: #f8fbfd;
}

.online-approval-panel strong {
  color: var(--navy);
}

.online-approval-panel small,
.approval-reference {
  color: var(--muted);
  font-weight: 800;
}

.online-approval-panel.is-approved,
.saved-quote-card.is-approved {
  border-color: rgba(16, 200, 210, 0.55);
  background: linear-gradient(135deg, rgba(16, 200, 210, 0.12), #fff 64%);
}

.online-approval-panel.is-rejected,
.saved-quote-card.is-rejected {
  border-color: rgba(213, 67, 67, 0.42);
  background: linear-gradient(135deg, rgba(255, 232, 232, 0.92), #fff 64%);
}

.online-acceptance-signature {
  width: min(100%, 320px);
  max-height: 120px;
  object-fit: contain;
  object-position: left center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

body.acceptance-modal-open {
  overflow: hidden;
}

.public-acceptance-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(7, 28, 45, 0.72);
  backdrop-filter: blur(8px);
}

.public-acceptance-card {
  width: min(820px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(0, 214, 230, 0.35);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(7, 28, 45, 0.35);
}

.public-acceptance-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.public-acceptance-heading h2,
.public-acceptance-heading p,
.public-acceptance-help,
.public-acceptance-terms p {
  margin-top: 0;
}

.public-acceptance-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.public-acceptance-help,
.public-signature-field small,
.public-acceptance-status {
  color: var(--muted);
}

.public-acceptance-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.public-acceptance-email {
  grid-column: 1 / -1;
}

.public-acceptance-terms {
  padding: 18px;
  border: 1px solid #f4d58a;
  border-radius: 18px;
  background: #fffaf0;
}

.public-acceptance-terms > p {
  margin: 10px 0 16px;
  color: #4b5563;
  line-height: 1.6;
}

.public-acceptance-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
}

.public-acceptance-check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
}

.public-signature-field {
  display: grid;
  gap: 9px;
  margin: 20px 0;
}

.public-signature-field > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.public-signature-field button {
  border: 0;
  background: transparent;
  color: #087f8c;
  font-weight: 900;
  cursor: pointer;
}

#public-signature-canvas {
  width: 100%;
  height: 190px;
  border: 2px dashed #9bcbd2;
  border-radius: 16px;
  background: #fff;
  touch-action: none;
  cursor: crosshair;
}

.public-acceptance-card > .primary-button {
  width: 100%;
  justify-content: center;
}

.public-acceptance-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  text-align: center;
  font-weight: 800;
}

@media (max-width: 640px) {
  .public-acceptance-modal {
    align-items: start;
    padding: 10px;
  }

  .public-acceptance-card {
    max-height: none;
    border-radius: 22px;
  }

  .public-acceptance-fields {
    grid-template-columns: 1fr;
  }

  .public-acceptance-email {
    grid-column: auto;
  }

  #public-signature-canvas {
    height: 160px;
  }
}

.link-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.link-buttons a {
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 15px;
  font-weight: 900;
}

.link-buttons a:first-child {
  background: var(--navy);
  color: #fff;
}

.link-buttons a:last-child {
  background: var(--cyan);
  color: var(--navy);
}

.quote-grid-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.quote-note {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: var(--soft);
  line-height: 1.55;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.photo-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.project-contract-fields,
.quote-photo-fields {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid #a9eff5;
  border-radius: 24px;
  background: linear-gradient(145deg, #f4fdfe, #fff);
  display: grid;
  gap: 18px;
}

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

.project-photo-preview figure,
.project-gallery-grid figure,
.online-project-gallery figure {
  margin: 0;
  position: relative;
}

.project-photo-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.project-photo-preview button {
  position: absolute;
  right: 7px;
  bottom: 7px;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(7, 28, 45, 0.88);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.project-page-intro {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-gallery-grid figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--soft);
}

.project-gallery-grid img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.project-gallery-grid figcaption,
.online-project-gallery figcaption {
  padding: 9px 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.project-gallery-empty {
  grid-column: 1 / -1;
  min-height: 520px;
  border: 2px dashed var(--line);
  border-radius: 24px;
  display: grid;
  place-items: center;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.schedule-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.schedule-table table {
  width: 100%;
}

.schedule-table th,
.schedule-table td {
  padding: 10px 12px;
}

.contract-dates {
  margin-bottom: 18px;
}

.contract-acceptance {
  margin-top: 16px;
}

.signature-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.signature-grid > div {
  min-height: 82px;
  padding-top: 46px;
  border-top: 1px solid var(--navy);
  display: grid;
  gap: 5px;
}

.signature-grid span {
  color: var(--muted);
}

.quote-footer {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.catalog-panel,
.templates-panel,
.followups-panel,
.statistics-panel,
.clients-panel,
.checks-panel {
  scroll-margin-top: 24px;
}

.clients-panel p,
.followups-panel p,
.statistics-panel > p {
  color: var(--muted);
  line-height: 1.55;
}

.tracking-summary {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #f2fbfc, #fff);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px)) 1fr;
  gap: 18px;
  align-items: center;
}

.tracking-summary > div {
  display: grid;
  gap: 5px;
}

.tracking-summary span,
.tracking-summary p {
  color: var(--muted);
  margin: 0;
}

.tracking-summary strong {
  color: var(--navy);
  font-size: 1.15rem;
}

#amount-paid[readonly] {
  background: #f3f8fb;
  color: var(--navy);
  cursor: not-allowed;
}

#amount-paid[readonly]::-webkit-outer-spin-button,
#amount-paid[readonly]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.billing-status-control {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f2fbfc);
  display: grid;
  gap: 16px;
}

.billing-status-control > div:first-of-type {
  display: grid;
  gap: 5px;
}

.billing-status-control span {
  color: var(--muted);
  font-weight: 800;
}

.billing-status-control strong {
  color: var(--navy);
  font-size: 1.1rem;
}

.cash-receipts-panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(0, 201, 216, 0.28);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(226, 250, 252, 0.86), #fff);
  display: grid;
  gap: 14px;
}

.cash-receipts-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.receipt-context {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-weight: 800;
}

.receipt-context strong {
  display: block;
  color: var(--navy);
  margin-top: 3px;
}

.compact-title {
  margin-bottom: 0;
}

.receipt-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.receipt-actions span {
  color: var(--muted);
  font-weight: 800;
}

.cash-receipts-list {
  display: grid;
  gap: 10px;
}

.cash-receipt-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.cash-receipt-card strong {
  color: var(--navy);
}

.cash-receipt-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.receipt-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cash-receipt-card button,
.cash-receipt-register-card button {
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  background: #e8f1f6;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.cash-receipt-card button.delete-cash-receipt,
.cash-receipt-register-card button.delete-cash-receipt-register {
  background: #ffe6e6;
  color: #9b1c1c;
}

.cash-receipts-register-panel {
  display: grid;
  gap: 16px;
}

.cash-receipts-register-panel > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.receipt-register-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.receipt-register-summary > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f2fbfc);
}

.receipt-register-summary span {
  display: block;
  color: var(--muted);
  font-weight: 900;
}

.receipt-register-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 1.25rem;
}

.cash-receipts-register-list {
  display: grid;
  gap: 12px;
}

.cash-receipt-register-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.cash-receipt-register-card strong {
  color: var(--navy);
  font-size: 1.02rem;
}

.cash-receipt-register-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.empty-receipts {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  font-weight: 800;
  background: #f9fdfe;
}

.billing-status-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.billing-status-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: #e8f1f6;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.billing-status-actions button.is-active {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--navy);
  box-shadow: 0 8px 18px rgba(0, 201, 216, 0.2);
}

.statistics-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.statistics-filters {
  margin-top: 20px;
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 14px;
}

.statistics-filters label {
  display: grid;
  gap: 7px;
  min-width: 180px;
  color: var(--navy);
  font-weight: 900;
}

.statistics-filters select {
  width: 100%;
}

.statistics-filter-status,
#statistics-filter-status {
  color: var(--muted);
  font-weight: 800;
  padding-bottom: 12px;
}

.statistics-grid article {
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #f2fbfc);
  display: grid;
  align-content: center;
  gap: 10px;
}

.statistics-grid article.warning {
  background: linear-gradient(145deg, #fff, #fff7e8);
  border-color: #f2d394;
}

.statistics-grid span {
  color: var(--muted);
  font-weight: 800;
}

.statistics-grid strong {
  color: var(--navy);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.saved-quotes-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.saved-quotes-tools {
  margin-top: 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.saved-quotes-search {
  display: grid;
  gap: 8px;
  width: min(680px, 100%);
  color: var(--navy);
  font-weight: 900;
}

.saved-quotes-search input {
  width: 100%;
}

.saved-quotes-tools > span,
.saved-quotes-pagination span {
  color: var(--muted);
  font-weight: 900;
}

.saved-quotes-pagination {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.saved-quotes-pagination[hidden] {
  display: none;
}

.saved-quotes-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 18px;
  color: var(--muted);
  background: var(--soft);
}

.saved-quote-card {
  border: 1px solid var(--line);
  border-left-width: 10px;
  border-radius: 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 180px auto;
  gap: 16px;
  align-items: center;
  background: #fff;
}

.saved-quote-card.owner-valeria {
  border-left-color: #10c8d2;
}

.saved-quote-card.owner-daniela {
  border-left-color: #8b5cf6;
}

.saved-quote-card.owner-jaime {
  border-left-color: #0a66d8;
}

.saved-quote-card.owner-other {
  border-left-color: #94a3b8;
}

.saved-quote-card > div {
  display: grid;
  gap: 6px;
}

.saved-quote-card small,
.saved-quote-card span {
  color: var(--muted);
}

.saved-followup-latest {
  margin-top: 5px;
  padding: 11px 13px;
  border-left: 4px solid var(--cyan);
  border-radius: 10px;
  background: #f1fbfc;
}

.saved-followup-latest strong,
.saved-followup-latest span,
.saved-followup-latest small {
  display: block;
}

.saved-followup-history summary {
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
}

.saved-followup-history ol {
  display: grid;
  gap: 8px;
  margin: 9px 0 0;
  padding-left: 22px;
}

.saved-followup-history li span,
.saved-followup-history li small {
  display: block;
}

.saved-quote-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.saved-quote-statuses .tag {
  width: fit-content;
}

.saved-quote-statuses .work-status-tag {
  background: #e8f1f6;
}

.saved-quote-statuses .payment-status-tag {
  background: #e9fbf2;
  color: #176342;
}

.saved-quote-statuses .billing-status-tag {
  background: #fff4d6;
  color: #765300;
}

.saved-quote-statuses .quote-view-tag.is-viewed {
  background: #dcfce7;
  color: #166534;
}

.saved-quote-statuses .quote-view-tag.is-unviewed {
  background: #f1f5f9;
  color: #64748b;
}

.quote-view-reference {
  color: #166534 !important;
  font-weight: 800;
}

.saved-quote-statuses .owner-tag.owner-valeria {
  background: #dffcff;
  color: #06737c;
}

.saved-quote-statuses .owner-tag.owner-daniela {
  background: #f0e8ff;
  color: #5b21b6;
}

.saved-quote-statuses .owner-tag.owner-jaime {
  background: #e6f0ff;
  color: #0750a5;
}

.saved-quote-statuses .owner-tag.owner-other {
  background: #eef2f7;
  color: #475569;
}

.saved-quote-menu {
  position: relative;
  justify-self: end;
  width: min(230px, 100%);
}

.saved-quote-menu summary {
  list-style: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  text-align: center;
  background: #dff3ff;
  color: #075a9c;
  cursor: pointer;
  user-select: none;
}

.saved-quote-menu summary::-webkit-details-marker {
  display: none;
}

.saved-quote-menu summary::after {
  content: " +";
  font-weight: 900;
}

.saved-quote-menu[open] summary::after {
  content: " -";
}

.saved-quote-actions {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: 260px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(7, 28, 45, 0.16);
}

.saved-quote-actions a,
.saved-quote-actions button {
  display: block;
  width: 100%;
  text-decoration: none;
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 900;
  background: #e8f1f6;
  color: var(--navy);
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-align: center;
}

.saved-quote-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.saved-quote-actions .delete-saved-quote {
  background: #ffe8e8;
  color: #a51616;
}

.saved-quote-actions .delete-saved-quote.is-protected {
  background: #eef2f4;
  color: #70808c;
  cursor: not-allowed;
}

.saved-quote-actions .force-delete-saved-quote {
  background: #9f1717;
  color: #fff;
}

.saved-quote-actions .duplicate-saved-quote {
  background: #dff3ff;
  color: #075a9c;
}

.clients-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}

.client-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 10px;
  background: #fff;
}

.client-card strong {
  color: var(--navy);
}

.client-card span,
.client-card small {
  color: var(--muted);
}

.client-card button {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

body.public-view {
  background: #fff;
}

body.public-view .sidebar,
body.public-view .topbar,
body.public-view #quote,
body.public-view .preview-toolbar,
body.public-view .catalog-panel,
body.public-view .templates-panel,
body.public-view .followups-panel,
body.public-view .statistics-panel,
body.public-view .clients-panel,
body.public-view .cash-receipts-register-panel,
body.public-view .checks-panel {
  display: none !important;
}

body.public-view .app,
body.public-view .workspace {
  display: block;
  padding: 0;
}

body.public-view .preview-area {
  padding: 0;
}

body.public-view .quote-preview {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}

body.quote-pdf-only {
  background: #eef4f7;
}

body.quote-pdf-only .app {
  display: block;
}

body.quote-pdf-only .sidebar,
body.quote-pdf-only .topbar,
body.quote-pdf-only .panel-grid[data-app-section="quote"],
body.quote-pdf-only .preview-toolbar {
  display: none !important;
}

body.quote-pdf-only .workspace {
  display: block;
  padding: 22px;
}

body.quote-pdf-only .preview-area {
  display: grid;
  gap: 18px;
  padding: 0;
}

.quote-pdf-only-toolbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  width: min(1040px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(7, 28, 45, 0.12);
  backdrop-filter: blur(12px);
}

.quote-pdf-only-toolbar > div:first-child {
  display: grid;
  gap: 4px;
}

.quote-pdf-only-toolbar span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quote-pdf-only-toolbar strong {
  color: var(--navy);
}

.quote-pdf-only-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 680px) {
  body.quote-pdf-only .workspace {
    padding: 10px;
  }

  .quote-pdf-only-toolbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .quote-pdf-only-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.online-quote {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 214, 230, 0.22), transparent 28%),
    linear-gradient(135deg, #eef9fb 0%, #ffffff 52%, #dff9fb 100%);
  color: var(--ink);
}

.online-hero {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: var(--navy);
}

.online-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.08);
}

.online-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 28, 45, 0.88), rgba(7, 28, 45, 0.46), rgba(7, 28, 45, 0.08));
}

.online-hero-overlay {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 56px;
  color: #fff;
  display: grid;
  gap: 10px;
}

.online-logo {
  width: 100px;
  height: 64px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  padding: 8px;
}

.online-hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 850px;
  overflow-wrap: anywhere;
}

.online-hero p {
  margin: 0;
  color: #d7edf4;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.55;
  max-width: 850px;
}

.online-card {
  width: min(1180px, calc(100% - 36px));
  margin: 22px auto;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(217, 228, 238, 0.9);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 18px 54px rgba(7, 28, 45, 0.1);
}

.online-client-card,
.online-main-grid,
.online-conditions {
  display: grid;
  gap: 16px;
}

.online-client-card {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: -24px;
  position: relative;
  z-index: 2;
}

.online-client-card span,
.online-total-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.82rem;
}

.online-payment-fee-note {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #b9e9ee;
  border-radius: 14px;
  background: #effcfd;
}

.online-payment-fee-note strong {
  color: #07364a;
}

.online-payment-fee-note span {
  color: #52677c;
  font-size: 13px;
  line-height: 1.45;
}

.online-client-card strong {
  display: block;
  margin-top: 5px;
  color: var(--navy);
  font-size: 1.05rem;
}

.online-main-grid {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
}

.online-main-grid .online-card {
  width: 100%;
  margin: 0;
}

.online-card h2 {
  margin: 0 0 18px;
}

.online-items {
  display: grid;
  gap: 12px;
}

.online-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbfd;
}

.online-item span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.online-item > strong {
  display: grid;
  gap: 3px;
  text-align: right;
  min-width: 120px;
}

.online-total-card {
  position: static;
  display: grid;
  gap: 12px;
}

.online-response-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px;
  align-items: start;
}

.online-decision-column,
.online-payment-column {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.online-response-grid .eyebrow { margin: 0; }
.online-response-grid .online-bank-payment { margin: 0; }
.online-response-grid small { overflow-wrap: anywhere; }
.online-payment-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.online-payment-options a {
  border-radius: 16px;
  padding: 14px;
  line-height: 1.45;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.online-contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.online-contact-actions a { font-size: 0.85rem; padding: 10px 14px; }
.online-quote .online-item > div { min-width: 0; overflow-wrap: anywhere; }

.online-total-card .online-total-before {
  color: #8090a3;
  text-decoration: line-through;
  font-size: 1rem;
}

.online-total-card > strong {
  color: var(--navy);
  font-size: 2.4rem;
}

.online-savings {
  color: #0b8e9b !important;
  font-weight: 900 !important;
}

.strong-saving {
  background: #e8fbfd;
  border: 1px solid #a9eff5;
  border-radius: 14px;
  padding: 9px 12px;
}

.online-conditions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.online-warranty-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  border-color: rgba(16, 200, 210, 0.42);
  background: linear-gradient(135deg, rgba(231, 252, 253, 0.98), rgba(255, 255, 255, 0.98));
}

.online-warranty-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--cyan);
  color: var(--navy);
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 214, 230, 0.24);
}

.online-warranty-text {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.65;
  white-space: pre-line;
}

.online-warranty-exclusions {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(123, 92, 0, 0.2);
  border-radius: 18px;
  background: #fff8e6;
}

.online-warranty-exclusions strong,
.online-warranty-exclusions p {
  margin: 0;
}

.online-warranty-exclusions p {
  margin-top: 7px;
  color: #654f14;
  line-height: 1.55;
  white-space: pre-line;
}

@media (max-width: 640px) {
  .online-warranty-card {
    grid-template-columns: 1fr;
  }
}

.online-project-contract {
  display: grid;
  gap: 18px;
}

.online-project-contract h2,
.online-project-contract h3,
.online-project-contract p {
  margin-top: 0;
}

.online-project-dates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.online-project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 20px;
  align-items: start;
}

.online-project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.online-project-gallery figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}

.online-project-gallery img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.online-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 24px auto 0;
  padding: 24px 0 38px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.catalog-tools {
  margin: 16px 0;
}

.catalog-tools input {
  max-width: 620px;
  min-width: min(100%, 360px);
}

.catalog-tools span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.inline-create-form {
  margin: 18px 0 22px;
  padding: 18px;
  border: 1px solid #a9eff5;
  border-radius: 22px;
  background: #f3fcfd;
  display: grid;
  gap: 16px;
}

.inline-status {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.86rem;
}

.rut-import-card {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(220px, 0.8fr) auto;
  align-items: end;
  gap: 14px;
  padding: 16px;
  border: 1px solid #8ed9e2;
  border-radius: 18px;
  background: #e8fbfd;
}

.rut-import-card p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.rut-file-field {
  display: grid;
  gap: 7px;
}

.rut-file-field input {
  width: 100%;
  padding: 10px;
  border: 1px dashed #62bdc9;
  border-radius: 12px;
  background: #fff;
}

.rut-import-card > .inline-status,
.rut-import-preview {
  grid-column: 1 / -1;
}

.rut-import-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.rut-import-preview[hidden] {
  display: none;
}

.rut-import-preview div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.rut-import-preview strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rut-import-preview small {
  color: var(--muted);
  font-weight: 800;
}

.rut-preview-warning,
.rut-import-preview .primary-button {
  grid-column: 1 / -1;
}

.rut-preview-warning:empty {
  display: none;
}

@media (max-width: 900px) {
  .rut-import-card {
    grid-template-columns: 1fr;
  }

  .rut-import-card > *,
  .rut-import-preview {
    grid-column: 1;
  }
}

.catalog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.catalog-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.catalog-card strong {
  color: var(--navy);
}

.catalog-card span,
.catalog-card small {
  color: var(--muted);
}

.catalog-description {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-line;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: #e8f1f6;
  color: var(--navy);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 900;
}

.template-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.template-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  background: var(--soft);
  display: grid;
  gap: 9px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.template-card:hover,
.template-card.is-selected {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: 0 12px 30px rgba(7, 28, 45, 0.12);
}

.template-card.is-selected {
  background: #effdfe;
}

.template-card img {
  display: block;
  width: 100%;
  aspect-ratio: 215.9 / 279.4;
  object-fit: cover;
  object-position: top;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.template-card strong {
  color: var(--navy);
  font-size: 1rem;
}

.template-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.checks-panel li {
  margin-bottom: 8px;
}

@media (max-width: 1200px) {
  .app {
    grid-template-columns: 1fr;
    min-width: 0;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .sidebar {
    position: relative;
    height: auto;
    padding: 16px;
    gap: 14px;
    min-width: 0;
    max-width: 100vw;
  }

  .brand-block {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 12px;
  }

  .brand-block img {
    grid-row: 1 / 3;
    width: 92px;
    height: 58px;
    border-radius: 14px;
  }

  .brand-block strong {
    align-self: end;
  }

  .brand-block span {
    align-self: start;
  }

  .sidebar nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
    width: 100%;
    min-width: 0;
    scrollbar-width: thin;
  }

  .sidebar nav a {
    flex: 0 0 auto;
    padding: 10px 13px;
    white-space: nowrap;
  }

  .side-note {
    display: none;
  }

  .panel-grid,
  .form-grid,
  .form-grid.two,
  .quote-info-grid,
  .quote-grid-two,
  .template-cards,
  .saved-quote-card,
  .statistics-grid,
  .tracking-summary {
    grid-template-columns: 1fr;
  }

  .item-builder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-loader {
    grid-template-columns: 1fr;
  }

  .saved-quote-menu {
    justify-self: stretch;
    width: 100%;
  }

  .saved-quote-actions {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .online-client-card,
  .online-main-grid,
  .online-conditions,
  .online-project-dates,
  .online-project-grid {
    grid-template-columns: 1fr;
  }

  .online-hero-overlay {
    padding: 24px 0 48px;
  }

  .online-response-grid { grid-template-columns: 1fr; }

  .online-total-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .workspace {
    padding: 16px;
  }

  .topbar,
  .preview-toolbar,
  .quote-pdf-only-toolbar,
  .catalog-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-tools input {
    max-width: 100%;
  }

  .saved-quotes-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .saved-quotes-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .saved-quotes-pagination span {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }

  .item-builder {
    grid-template-columns: 1fr;
  }

  .online-hero {
    min-height: 0;
  }

  .online-hero > img {
    min-height: 0;
  }

  .online-payment-options { grid-template-columns: 1fr; }
  .online-quote .online-card { padding: 18px; border-radius: 20px; }
  .online-quote .online-item { flex-direction: column; align-items: stretch; }
  .online-quote .online-item > strong { text-align: left; min-width: 0; }

  .online-client-card {
    margin-top: -24px;
  }

  .online-footer {
    flex-direction: column;
  }

  .quote-page {
    padding: 0 20px 32px;
  }

  .cover-page {
    padding: 0;
    min-height: 980px;
  }

  .cover-image-page {
    min-height: auto;
    aspect-ratio: 1545 / 2000;
    padding: 0;
  }

  .cover-image-page::before,
  .cover-image-page::after {
    display: none;
  }

  .cover-page::before {
    width: 96%;
    height: 60%;
  }

  .cover-page::after {
    right: -55%;
  }

  .cover-brand-card {
    top: 24px;
    right: 20px;
    width: 210px;
    min-height: 96px;
  }

  .cover-brand-card img {
    width: 190px;
    height: 92px;
  }

  .cover-photo-stack {
    opacity: 0.35;
  }

  .cover-diamond-main {
    top: 155px;
    right: -12px;
    width: 200px;
    height: 200px;
  }

  .cover-diamond-side,
  .cover-diamond-bottom,
  .cover-diamond-accent {
    display: none;
  }

  .cover-title-block {
    left: 24px;
    top: 255px;
    width: calc(100% - 48px);
  }

  .cover-line-dot {
    width: 180px;
    margin-bottom: 42px;
  }

  .cover-title-block h1 {
    font-size: 2.7rem;
  }

  .cover-subtitle {
    font-size: 1.05rem;
  }

  .cover-intro-card,
  .cover-client-card {
    left: 24px;
    right: 24px;
    width: auto;
    border-radius: 20px;
  }

  .cover-intro-card {
    bottom: 188px;
  }

  .cover-client-card {
    bottom: 82px;
  }

  .cover-contact-bar {
    grid-template-columns: 1fr;
    min-height: 70px;
    padding: 10px 20px;
    gap: 4px;
    font-size: 0.9rem;
  }

  .cover-contact-bar span::before {
    display: none;
  }

  .quote-compact-header {
    grid-template-columns: 1fr;
  }

  .quote-hero {
    margin: 0 -20px 28px;
    padding: 24px 20px;
    grid-template-columns: 1fr;
  }

  .quote-hero h1 {
    font-size: 1.7rem;
  }

  .payment-card,
  .payment-methods,
  .photo-grid,
  .financial-summary,
  .project-photo-preview,
  .project-gallery-grid,
  .online-project-gallery,
  .signature-grid {
    grid-template-columns: 1fr;
  }

  .project-gallery-grid img {
    height: 260px;
  }
}

@media print {
  @page {
    size: Letter;
    margin: 0;
  }

  body {
    background: #fff;
    font-size: 11px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .quote-page,
  .quote-page * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .login-screen,
  .sidebar,
  .topbar,
  .quote-form,
  .metrics-panel,
  .preview-toolbar,
  .quote-pdf-only-toolbar,
  .catalog-panel,
  .templates-panel,
  .followups-panel,
  .quote-saved-panel,
  .cash-receipts-panel,
  .cash-receipts-register-panel,
  .statistics-panel,
  .clients-panel,
  .checks-panel {
    display: none !important;
  }

  .app-toast {
    display: none !important;
  }

  body:not(.public-view) .workspace > :not(.preview-area) {
    display: none !important;
  }

  .app,
  .workspace,
  .panel-grid,
  .preview-area {
    display: block;
    padding: 0;
  }

  .quote-preview {
    width: 215.9mm;
    max-width: 215.9mm;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }

  .quote-page {
    width: 215.9mm;
    max-width: 215.9mm;
    min-height: auto;
    padding: 0 36px 30px;
    page-break-after: always;
    break-after: page;
    overflow: hidden;
  }

  .cover-page {
    width: 215.9mm;
    height: 279mm;
    min-height: 279mm;
    max-height: 279mm;
    padding: 0 !important;
    background: #e7e7e7;
  }

  .cover-image-page {
    height: 279mm;
    min-height: 279mm;
    max-height: 279mm;
    aspect-ratio: auto;
    background: #fff;
  }

  .cover-image-page::before,
  .cover-image-page::after {
    display: none;
  }

  .cover-full-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
  }

  .cover-quote-number {
    left: 7mm;
    top: 7mm;
    padding: 2.1mm 3.5mm;
    font-size: 10px;
    border-width: 0.5mm;
  }

  .template-image-page {
    width: 215.9mm;
    height: 279mm;
    min-height: 279mm;
    max-height: 279mm;
    aspect-ratio: auto;
    padding: 0 !important;
  }

  .template-image-page > img {
    width: 100%;
    height: 100%;
    object-fit: fill;
  }

  .template-page-number {
    right: 4mm;
    bottom: 3mm;
    padding: 1.5mm 2.5mm;
    font-size: 7px;
  }

  .cover-page::before {
    left: -15mm;
    width: 146mm;
    height: 212mm;
  }

  .cover-page::after {
    right: -31mm;
    top: -22mm;
    width: 118mm;
    height: 345mm;
  }

  .cover-brand-card {
    top: 8mm;
    right: 9mm;
    width: 73mm;
    min-height: 33mm;
  }

  .cover-brand-card img {
    width: 65mm;
    height: 31mm;
  }

  .cover-brand-card img.dark-logo {
    border-radius: 5mm;
  }

  .cover-diamond {
    border-width: 4mm;
  }

  .cover-diamond-main {
    top: 39mm;
    right: 51mm;
    width: 62mm;
    height: 62mm;
    border-radius: 12mm 0 12mm 0;
  }

  .cover-diamond-side {
    top: 88mm;
    right: 7mm;
    width: 60mm;
    height: 60mm;
    border-radius: 0 12mm 0 12mm;
  }

  .cover-diamond-bottom {
    top: 133mm;
    right: 49mm;
    width: 62mm;
    height: 62mm;
    border-radius: 12mm 0 12mm 0;
  }

  .cover-diamond-accent {
    top: 146mm;
    right: 13mm;
    width: 25mm;
    height: 25mm;
  }

  .cover-title-block {
    left: 8mm;
    top: 78mm;
    width: 116mm;
  }

  .cover-line-dot {
    width: 72mm;
    height: 1mm;
    margin-bottom: 24mm;
  }

  .cover-line-dot::after {
    right: -2.5mm;
    top: -2mm;
    width: 5mm;
    height: 5mm;
  }

  .cover-title-block .eyebrow {
    font-size: 8px;
  }

  .cover-title-block h1 {
    font-size: 58px;
    line-height: 0.92;
    text-shadow: 2px 3px 0 rgba(255, 255, 255, 0.68);
  }

  .cover-subtitle {
    font-size: 16px;
  }

  .cover-summary {
    max-width: 86mm;
    margin-top: 8px;
    font-size: 9px;
  }

  .cover-badges {
    gap: 5px;
  }

  .cover-badges span,
  .cover-actions a {
    padding: 5px 7px;
    font-size: 7.8px;
  }

  .cover-intro-card {
    left: 8mm;
    bottom: 27mm;
    width: 82mm;
    border-radius: 0 7mm 7mm 0;
    padding: 8mm 7mm;
  }

  .cover-intro-card strong {
    font-size: 10px;
  }

  .cover-intro-card p {
    margin-bottom: 8px;
    font-size: 9.2px;
    line-height: 1.35;
  }

  .cover-client-card {
    right: 8mm;
    bottom: 27mm;
    width: 84mm;
    left: auto;
    border-radius: 7mm 0 0 7mm;
    padding: 7mm;
  }

  .cover-client-card strong {
    font-size: 13px;
  }

  .cover-client-card span,
  .cover-client-card small {
    font-size: 8px;
  }

  .cover-contact-bar {
    min-height: 16mm;
    padding: 0 14mm;
    gap: 6mm;
    font-size: 11px;
  }

  .cover-contact-bar span::before {
    width: 8mm;
    height: 8mm;
    box-shadow: inset 0 0 0 2.1mm #071c2d;
  }

  .compact-page {
    padding: 14mm 14mm 11mm;
    font-size: 10.5px;
  }

  .quote-compact-header {
    margin-bottom: 14px;
    padding: 12px 14px;
    grid-template-columns: 82px 1fr auto !important;
    gap: 12px;
    border-radius: 16px;
  }

  .quote-compact-header img {
    width: 72px;
    height: 48px;
    border-radius: 10px;
  }

  .quote-compact-header h1 {
    font-size: 17px;
  }

  .quote-compact-header p {
    font-size: 9.5px;
  }

  .quote-compact-header .quote-print-number {
    margin-top: 4px;
    font-size: 10px;
  }

  .page-pill,
  .quote-hero .page-pill {
    padding: 7px 10px !important;
    font-size: 10px;
  }

  .quote-hero {
    margin: 0 -36px 24px;
    padding: 20px 36px;
    grid-template-columns: 220px 1fr auto !important;
  }

  .quote-hero img {
    width: 180px;
    height: 112px;
  }

  .quote-hero h1 {
    font-size: 1.9rem;
  }

  .quote-info-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px;
    margin-bottom: 16px;
  }

  .info-card {
    padding: 9px 10px;
    border-radius: 12px;
  }

  .info-card span {
    font-size: 7.6px;
    margin-bottom: 4px;
  }

  .info-card strong {
    font-size: 10.5px;
  }

  .quote-section-heading {
    margin: 16px 0 10px;
    font-size: 12px;
  }

  .quote-section-heading::before {
    width: 8px;
    height: 24px;
  }

  .quote-table {
    border-radius: 12px;
  }

  th,
  td,
  .compact-table th,
  .compact-table td {
    padding: 6px 7px;
  }

  th {
    font-size: 8.2px;
  }

  td,
  .compact-table td,
  .compact-table small,
  td small {
    font-size: 9.2px;
  }

  .financial-summary {
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .financial-summary > div {
    padding: 9px 10px;
    border-radius: 12px;
  }

  .financial-summary strong,
  .financial-summary .total-due strong {
    font-size: 13px;
  }

  .quote-grid-two,
  .photo-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .payment-card {
    grid-template-columns: 1fr 90px !important;
    padding: 10px;
    border-radius: 14px;
    margin-top: 11px;
  }

  .payment-methods {
    gap: 8px;
    margin-top: 10px;
  }

  .payment-methods .payment-card {
    grid-template-columns: 1fr 116px !important;
    padding: 9px;
  }

  .payment-card h3,
  .quote-note p {
    margin: 0;
  }

  .payment-card img,
  .compact-payment img {
    width: 82px;
    height: 82px;
    border-radius: 10px;
  }

  .payment-card img.bank-payment-qr {
    width: 112px;
    height: 200px;
    padding: 0;
  }

  .bank-payment-details {
    gap: 2px;
    margin: 4px 0;
    font-size: 0.64rem;
  }

  .bank-payment-note {
    font-size: 0.62rem;
  }

  .quote-note {
    padding: 10px;
    border-radius: 12px;
    line-height: 1.38;
  }

  .photo-grid img {
    height: 105px;
    border-radius: 12px;
  }

  .project-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 4mm;
  }

  .project-gallery-grid img {
    height: 86mm;
  }

  .project-gallery-grid figcaption {
    padding: 2mm 3mm;
    font-size: 8px;
  }

  .project-gallery-empty {
    min-height: 190mm;
    border-radius: 5mm;
  }

  .schedule-table {
    border-radius: 12px;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 6px 7px;
    font-size: 8.5px;
  }

  .contract-obligations {
    gap: 8px !important;
  }

  .contract-obligations .quote-note {
    font-size: 9px;
  }

  .contract-acceptance {
    font-size: 9px;
  }

  .signature-grid {
    gap: 12mm;
    margin-top: 8mm;
  }

  .signature-grid > div {
    min-height: 17mm;
    padding-top: 9mm;
  }

  .quote-footer {
    margin-top: 16px;
    padding-top: 9px;
    font-size: 8.5px;
  }

  .quote-page:last-child {
    page-break-after: auto;
    break-after: auto;
  }

  .link-buttons a {
    border: 1px solid var(--line);
  }
}

/* Secondary modules remain reachable from the main navigation. */
.secondary-nav summary { cursor: pointer; padding: 13px 15px; color: #e7f2f7; font-weight: 800; border-radius: 16px; }
.secondary-nav a { display: block; }
.secondary-nav summary:focus-visible { outline: 2px solid var(--cyan-2); outline-offset: -2px; }
@media (max-width: 900px) {
  .sidebar nav { flex-wrap: wrap; overflow-x: visible; }
  .secondary-nav { flex: 1 1 auto; }
}

.integrated-quote-file { grid-column: 1 / -1; min-width: 0; }
.integrated-quote-file > summary { cursor: pointer; font-weight: 800; padding: 10px 0; }
.integrated-quote-content { padding: 16px; border: 1px solid var(--line); border-radius: 16px; overflow-wrap: anywhere; }
.integrated-quote-content section, .integrated-quote-content details { margin-top: 16px; }
.integrated-quote-content li { margin-bottom: 10px; }
/* Keep confirmation and close controls reachable on short mobile screens. */
.email-recipient-card { max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; }
.email-recipient-context, .email-recipient-status { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .email-recipient-card { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
}

.home-section-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-top:1.2rem; }
.home-section-card { display:grid;gap:.4rem;border:1px solid #d8e6f0;border-radius:1rem;padding:1rem;color:#173045;background:#f7fbfd;text-decoration:none; }
.home-section-card strong { font-size:1.05rem; }
.home-section-card span,.sales-chart-note { color:#496176;font-size:.9rem;line-height:1.5; }
.home-sales-kpis { display:flex;gap:.8rem;flex-wrap:wrap;margin:1rem 0; }
.home-sales-kpis span { border-radius:.8rem;padding:.75rem;background:#eef7fb; }
.sales-chart-panel { border:1px solid #d8e6f0;border-radius:1rem;padding:1rem;margin:1rem 0; }
.sales-chart-panel h4 { margin:0;font-size:1.15rem; }
.sales-bar-row { display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,2fr) 3rem;gap:.8rem;align-items:center;margin:.8rem 0; }
.sales-bar-track { height:1rem;background:#e9eff4;border-radius:.5rem;overflow:hidden; }
.sales-bar-fill { height:100%;background:#00b7c7;border-radius:.5rem; }
.sales-bar-row strong { text-align:right; }
@media(max-width:440px) { .home-section-grid {grid-template-columns:1fr;} .sales-bar-row {grid-template-columns:1fr 1.2fr 2rem;gap:.4rem;font-size:.88rem;} }

/* Home suggestions: evidence stays close to the action; global access grid remains. */
.home-insights { margin-top:1.5rem; padding-top:1.5rem; border-top:1px solid #d8e6f0; }
.home-insights[hidden] { display:none; }
.home-insights-header { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; }
.home-insights-header h3 { margin:.2rem 0; }
.home-insights-header p { margin:.3rem 0; color:#496176; }
.home-insights-header button { flex:none; }
.home-insights-status { padding:.8rem 1rem; border-radius:.7rem; background:#edf5fa; color:#29485e; }
.home-insights[data-state="error"] .home-insights-status { background:#fff1e9; color:#7b3319; }
.home-insights-metrics { color:#496176; font-size:.88rem; line-height:1.6; }
.home-insights-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.home-insight-card { padding:1.2rem; border:1px solid #d8e6f0; border-radius:1rem; background:#fff; min-width:0; overflow-wrap:anywhere; }
.home-insight-card[data-state="overdue"] { border-left:4px solid #be543e; }
.home-insight-card[data-state="today"] { border-left:4px solid #3371a5; }
.home-insight-card[data-state="verify"] { border-left:4px solid #bd9146; }
.home-insight-top { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.5rem; color:#486477; font-size:.86rem; }
.home-state { padding:.25rem .6rem; border-radius:1rem; background:#faf2df; color:#735718; font-weight:600; }
.home-state.overdue { background:#fae9e4; color:#923d2e; }
.home-state.today { background:#e8f2fc; color:#245985; }
.home-insight-card h4 { color:#173045; font-size:1.12rem; margin:.85rem 0 .5rem; }
.home-insight-card p { font-size:.93rem; line-height:1.6; color:#496176; margin:.5rem 0; }
.home-insight-action { display:flex; justify-content:space-between; gap:.5rem; text-decoration:none; color:#056c84; font-weight:600; margin-top:1rem; padding:.6rem 0; }
.home-insight-card .home-caveat { color:#735718; background:#fdf9ee; padding:.6rem; border-radius:.5rem; font-size:.86rem; }
.home-insight-card .home-amount-label { font-weight:600; color:#29485e; }
.home-amounts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.4rem; padding:.7rem 0; margin:.3rem 0; border-top:1px solid #e5eef4; border-bottom:1px solid #e5eef4; }
.home-amounts dt { font-size:.75rem; color:#496176; }
.home-amounts dd { font-size:.85rem; font-weight:600; margin:.3rem 0 0; color:#173045; }
.home-evidence,.home-coverage { color:#496176; font-size:.83rem; line-height:1.6; }
.home-evidence { margin-top:.4rem; border-top:1px solid #e5eef4; padding-top:.7rem; }
.home-evidence summary,.home-coverage summary { cursor:pointer; }
.home-evidence ul,.home-coverage ul { padding-left:1.2rem; }
.home-evidence li { margin:.5rem 0; }
.home-coverage { margin-top:1rem; padding:.7rem; border-radius:.6rem; background:#f7fafc; overflow-wrap:anywhere; }
.home-empty { color:#496176; line-height:1.6; }
@media(max-width:760px) { .home-insights-grid { grid-template-columns:1fr; } .home-insights-header { flex-direction:column; } }
@media(max-width:360px) { .home-amounts { grid-template-columns:1fr; gap:.7rem; } .home-insight-card { padding:.85rem; } }

/* Readable Siigo diagnostics; no provider HTML or mutation controls. */
.siigo-error-panel { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.siigo-error-panel[hidden] { display: none; }
.siigo-error-panel h3 { font-size: 1rem; margin: .8rem 0; }
.siigo-error-panel h4 { font-size: .95rem; margin: .6rem 0; }
.siigo-error-panel p { margin: .5rem 0; line-height: 1.5; }
.siigo-error-item { border-top: 1px solid #d7cbb9; padding: .6rem 0; }
.siigo-error-panel ol { padding-left: 1.25rem; margin: .5rem 0; }
.siigo-error-panel li { margin: .35rem 0; }
.siigo-error-panel .siigo-error-notice { font-weight: 600; }
.siigo-error-panel .siigo-error-evidence { font-size: .8rem; }
.siigo-error-panel details { min-width: 0; margin-top: .7rem; }
.siigo-error-panel summary { cursor: pointer; font-weight: 600; padding: .4rem 0; }
.siigo-error-panel pre { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; max-width: 100%; font-size: .75rem; line-height: 1.45; }
.siigo-error-panel button { max-width: 100%; white-space: normal; margin: .5rem 0; }

.template-package{border:1px solid #d2e3e5;padding:16px;margin:16px 0;border-radius:12px}.template-package-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.template-package fieldset{min-width:0}.template-package label{display:block;margin:10px 0}.template-package select,.template-package input[type=number]{max-width:100%;width:100%;min-width:0}.template-package button{margin:4px 0;white-space:normal}.template-package .checkline{display:flex}@media(max-width:600px){.template-package-rows{grid-template-columns:1fr}}

.template-package fieldset{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px;border:1px solid #d2e3e5;border-radius:10px;padding:14px}.template-package fieldset legend{font-weight:700;padding:0 6px}.template-package fieldset label{margin:0}.template-package .package-reference{grid-column:1/-1}.template-package .package-tax-summary{grid-column:1/-1;margin:0;font-size:.85rem;color:#536c70;line-height:1.5}.template-package .needs-review{color:#865010;background:#fff5df;padding:10px;border-radius:6px}.template-package [role=status]:empty{display:none}@media(max-width:420px){.template-package{padding:12px}.template-package fieldset{padding:12px;gap:10px}.template-package-rows{gap:12px}}

.template-tax-warning{display:block;color:#865010;background:#fff5df;padding:8px;border-radius:6px}
.search-picker{position:relative;min-width:0;width:100%;isolation:isolate}.search-picker-list{position:absolute;left:0;right:0;top:calc(100% - 18px);z-index:1000;max-height:min(380px,50vh);overflow:auto;overscroll-behavior:contain;background:#fff;color:#172f39;border:1px solid #b9cdd3;border-radius:12px;box-shadow:0 10px 24px #17323d26;padding:4px}.search-picker-list[hidden]{display:none}.search-picker-option{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:start;padding:12px;border-bottom:1px solid #dce6e9;background:#fff;cursor:pointer;text-align:left;line-height:1.4}.search-picker-option:last-child{border-bottom:0}.search-picker-option:hover{background:#edf6f7}.search-picker-option[aria-selected=true]{background:#dceff1;outline:2px solid #167987;outline-offset:-2px}.search-picker-option[aria-disabled=true]{cursor:wait}.search-picker-copy{min-width:0}.search-picker-title{display:block;font-size:14px;font-weight:650;color:#17313b;overflow-wrap:anywhere;white-space:normal}.search-picker-secondary{display:block;margin-top:4px;font-size:12px;color:#3c5661;overflow-wrap:anywhere;white-space:normal}.search-picker-detail{display:block;margin-top:5px;font-size:11px;color:#52656d;overflow-wrap:anywhere;white-space:normal}.search-picker-price{max-width:110px;text-align:right;font-size:13px;font-weight:650;color:#153f4b;overflow-wrap:anywhere;white-space:normal}.search-picker-status{display:block;min-height:18px;margin-top:5px;font-size:11px;line-height:1.4;color:#52656d;white-space:normal}.search-picker-empty,.search-directory-empty{padding:14px;color:#3c5661;background:#fff;white-space:normal}.client-card,.catalog-card{background:#fff}.client-card strong,.catalog-card strong{overflow-wrap:anywhere;white-space:normal}.client-card span,.catalog-card span{overflow-wrap:anywhere}@media(max-width:420px){.search-picker-option{grid-template-columns:minmax(0,1fr);gap:7px}.search-picker-price{text-align:left;max-width:100%}.search-picker-list{max-height:45vh}}

.search-picker.is-open{z-index:50}

/* Refined gray surface with restrained ElectricAccess cyan lines. */
.search-picker-list{background:#f0f3f5;border:1px solid #1fa9bd;box-shadow:0 10px 24px #17323d26}
.search-picker-option{background:#f0f3f5;border-bottom:1px solid #8ecbd5;border-left:5px solid transparent}
.search-picker-option:hover{background:#e6edf0}
.search-picker-option[aria-selected=true]{background:#dcebf0;border-left-color:#087d95;outline:2px solid #168fa6;outline-offset:-2px}
.search-picker-option[aria-selected=true] .search-picker-title::before{content:'✓ ';font-weight:800}
.search-picker-empty,.search-directory-empty{background:#f0f3f5;border-top:1px solid #8ecbd5}
.client-card,.catalog-card{background:#f0f3f5;border-color:#8ecbd5}
.search-picker-title,.search-picker-price{color:#17313b}

/* Shared navigation: calm hierarchy, readable session identity, keyboard focus. */
@media screen {
  .sidebar {
    padding: 24px 18px;
    gap: 22px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #416376 #102a3b;
    background: linear-gradient(165deg, #173c50 0%, #102a3b 55%, #0c2231 100%);
    border-right: 1px solid #284858;
    font-family: "Segoe UI", system-ui, sans-serif;
  }
  .sidebar .brand-block { gap: 6px; padding: 0 10px; }
  .sidebar .brand-block img {
    width: 156px;
    height: 80px;
    padding: 8px 12px;
    border-radius: 14px;
  }
  .sidebar .brand-block strong { font-size: 1.05rem; letter-spacing: -.025em; }
  .sidebar .brand-block > span { color: #adbfca; font-size: .76rem; line-height: 1.5; }
  .sidebar-user {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 12px;
    border: 1px solid #426172;
    border-radius: 14px;
    background: #ffffff08;
    color: #f4f9fc;
    text-decoration: none;
  }
  .sidebar-user[hidden] { display: none; }
  .sidebar-user:hover { background: #ffffff10; border-color: #72d8da; }
  .sidebar-user-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    height: 38px;
    border-radius: 12px;
    background: #92e1dd;
    color: #123a49;
    font-size: .85rem;
    font-weight: 750;
  }
  .sidebar-user-details { display: grid; gap: 4px; min-width: 0; }
  .sidebar-user-caption { color: #afc5d1; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
  .sidebar-user-name { display: block; color: #fff; font-size: .96rem; line-height: 1.35; overflow-wrap: anywhere; }
  .sidebar-user-role { display: block; color: #a5f3e9; font-size: .78rem; font-weight: 600; }
  .sidebar nav { gap: 5px; }
  .sidebar nav a, .sidebar .secondary-nav summary {
    padding: 11px 13px;
    border-radius: 9px;
    color: #d3e0e8;
    font-size: .87rem;
    font-weight: 550;
    line-height: 1.4;
    transition: background-color .15s, color .15s;
  }
  .sidebar nav > a { border-left: 3px solid transparent; }
  .sidebar nav a:hover, .sidebar .secondary-nav summary:hover { background: #ffffff0d; color: #fff; }
  .sidebar nav a.active {
    background: #80e5de1c;
    color: #a5f3e9;
    border-left-color: #80e5de;
    font-weight: 700;
  }
  .sidebar .secondary-nav {
    border-top: 1px solid #ffffff14;
    margin-top: 8px;
    padding-top: 8px;
  }
  .sidebar .secondary-nav summary { color: #acc3d1; font-size: .76rem; font-weight: 650; letter-spacing: .035em; }
  .sidebar .secondary-nav[open] summary { color: #f2f8fb; margin-bottom: 5px; }
  .sidebar .secondary-nav a { margin: 2px 0 2px 15px; border-left: 1px solid #426172; border-radius: 0 9px 9px 0; }
  .sidebar a:focus-visible, .sidebar summary:focus-visible { outline: 2px solid #a5f3e9; outline-offset: 3px; }
  .sidebar .side-note { padding: 14px 12px; border: 0; border-top: 1px solid #ffffff1f; border-radius: 0; background: transparent; gap: 6px; }
  .sidebar .side-note strong { font-size: .75rem; font-weight: 600; color: #c6d8e2; }
  .sidebar .side-note span { font-size: .74rem; line-height: 1.6; color: #a5bccb; }
}
@media screen and (max-width: 1200px) {
  .sidebar { padding: 16px; gap: 16px; overflow-y: visible; }
  .sidebar .brand-block img { width: 92px; height: 58px; }
  .sidebar-user { padding: 10px 12px; }
  .sidebar nav { display: flex; flex-wrap: wrap; overflow-x: visible; }
  .sidebar nav > a { flex: 1 1 auto; text-align: center; }
  .sidebar .secondary-nav { flex: 1 1 180px; min-width: 0; }
  .sidebar .secondary-nav a { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar nav a, .sidebar .secondary-nav summary { transition: none; }
}

.sales-review-panel { padding: 18px; border: 1px solid #9cd4d6; border-radius: 14px; background: #effafa; }
.sales-review-panel[hidden], .sales-review-panel [hidden] { display: none; }
.sales-review-panel h4 { margin: 0 0 8px; color: #155363; }
.sales-review-panel p { font-size: .9rem; line-height: 1.6; }
.sales-review-tag { background: #e4f6f4; color: #155363; }
@media print { .sales-review-panel { display: none; } }

.home-insights-grid > section { display: grid; align-content: start; gap: 1rem; min-width: 0; }
.home-insights-grid > section > h3 { margin: 0; }

.local-trash-result,.local-trash-help { margin-block: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; overflow-wrap: anywhere; }
.local-trash-help > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.local-trash-help[hidden] { display: none; }
.local-trash-result p { margin-top: 0; }
.local-trash-result[data-outcome="error"],.local-trash-result[data-outcome="uncertain"],.local-trash-result[data-outcome="warning"] { border-color: #b66b18; }
.local-trash-result[hidden],.local-trash-result [hidden] { display: none; }
@media print { .local-trash-result,.local-trash-help { display: none; } }

.quote-startup-fields { min-width:0; margin:0; padding:0; border:0; }
.quote-startup-status { grid-column:1/-1; color:var(--muted); }
.quote-startup-status p { margin:0 0 8px; }
.quote-startup-status button { min-height:44px; }

/* Product thumbnails do not change combobox keys, labels or selection. */
.search-picker-option.has-thumbnail{grid-template-columns:48px minmax(0,1fr) auto;gap:10px}
.search-picker-thumbnail{position:relative;display:grid;place-items:center;width:48px;height:48px;align-self:start;background:var(--card,#fff);border:1px solid var(--line,#b9cdd3);border-radius:6px;overflow:hidden}
.search-picker-thumbnail img{position:absolute;inset:0;width:48px;height:48px;object-fit:contain;background:#fff}
.search-picker-no-photo{font-size:10px;line-height:1.2;text-align:center;color:var(--ink,#17313b)}
@media(max-width:420px){.search-picker-option.has-thumbnail{grid-template-columns:48px minmax(0,1fr)}.search-picker-option.has-thumbnail .search-picker-price{grid-column:2}}
