/**
 * END-DP2E — Quote Workspace refinement
 * Visual hierarchy and consultant workflow presentation only
 */

.ed-quote-edit-root {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.ed-quote-edit-root .card-body {
  padding: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

body.ed-quote-edit-view .ed-topbar {
  padding: var(--ed-space-4) var(--ed-space-6) var(--ed-space-2);
}

body.ed-quote-edit-view .ed-page-title {
  font-size: var(--ed-display-sm);
  margin-bottom: 2px;
}

body.ed-quote-edit-view .ed-page-subtitle {
  font-size: var(--ed-text-sm);
}

body.ed-quote-edit-view .ed-content {
  padding-bottom: var(--ed-space-4);
}

/* Breadcrumb */
.ce-quote-breadcrumb {
  margin: 0 0 var(--ed-space-2);
}

.ce-quote-back {
  font-weight: 600 !important;
  font-size: var(--ed-text-sm) !important;
  color: var(--ed-navy) !important;
  letter-spacing: 0.01em;
}

.ce-quote-back:hover {
  color: var(--ed-amber-muted) !important;
}

/* Workspace shell */
.ce-quote-workspace {
  display: flex;
  flex-direction: column;
  gap: var(--ed-space-3);
  min-width: 0;
}

/* Quote identity header */
.ce-quote-identity {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ed-space-4);
  flex-wrap: wrap;
  padding: var(--ed-space-4);
  background: var(--ed-white);
  border: 1px solid var(--ed-border);
  border-top: 3px solid var(--ed-amber);
  border-radius: var(--ed-radius);
  box-shadow: var(--ed-shadow-md);
}

.ce-quote-identity-text {
  min-width: 0;
  flex: 1;
}

.ce-quote-title {
  margin: 0 0 4px;
  font-family: var(--ed-font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ed-navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.ce-quote-meta {
  margin: 0 0 4px;
  font-size: var(--ed-text-sm);
  font-weight: 600;
  color: var(--ed-navy-soft);
  letter-spacing: 0.02em;
}

.ce-quote-context {
  margin: 0 0 6px;
  font-size: var(--ed-text-sm);
  color: var(--ed-text-muted);
}

.ce-quote-responsibility {
  margin: 0 0 6px;
  font-size: var(--ed-text-xs, 12px);
  color: var(--ed-text-muted);
}

.ce-quote-currency {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ed-navy);
  letter-spacing: 0.01em;
}

.ce-quote-currency strong {
  font-size: 14px;
}

.ce-currency-field {
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--ed-navy, #171d26);
  border-radius: 6px;
}

.ce-currency-field > label {
  font-weight: 600;
  color: var(--ed-navy);
}

.ce-status-move {
  font-size: 12px;
  color: var(--ed-text-muted);
  white-space: nowrap;
}
.ce-status-move select {
  margin-left: 6px;
  font: inherit;
}

/* Quote value strip — executive, not overpowering */
.ce-quote-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--ed-space-2);
  flex-wrap: wrap;
  padding: var(--ed-space-2) var(--ed-space-4);
  min-height: 0;
  background: linear-gradient(135deg, var(--ed-navy) 0%, var(--ed-navy-soft) 100%);
  border-radius: var(--ed-radius);
  color: var(--ed-white);
  box-shadow: var(--ed-shadow-sm);
}

.ce-quote-value--pending {
  background: var(--ed-surface);
  border: 1px dashed var(--ed-border);
  color: var(--ed-text-muted);
  box-shadow: none;
}

.ce-quote-value-main {
  display: flex;
  align-items: baseline;
  gap: var(--ed-space-3);
  flex-wrap: wrap;
}

.ce-quote-value-label {
  font-size: var(--ed-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.ce-quote-value--pending .ce-quote-value-label {
  color: var(--ed-text-muted);
  opacity: 1;
}

.ce-quote-value-amount {
  font-family: var(--ed-font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.ce-quote-value--pending .ce-quote-value-amount {
  font-size: var(--ed-text-lg);
  color: var(--ed-text-subtle);
  font-family: var(--ed-font);
}

.ce-quote-value-sub {
  font-size: var(--ed-text-sm);
  opacity: 0.8;
}

.ce-quote-value-hint {
  font-size: var(--ed-text-xs);
  color: var(--ed-text-muted);
}

/* Secondary collapsed sections */
.ce-quote-workspace .ce-quote-secondary.collapsible-section {
  border: 1px solid var(--ed-border-light);
  background: transparent;
  box-shadow: none;
  margin-bottom: 0;
}

.ce-quote-workspace .ce-quote-secondary summary {
  padding: var(--ed-space-2) var(--ed-space-3);
  font-size: var(--ed-text-xs);
  font-weight: 600;
  color: var(--ed-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ce-quote-workspace .ce-quote-secondary[open] summary {
  color: var(--ed-navy-soft);
  border-bottom: 1px solid var(--ed-border-light);
}

.ce-quote-workspace .ce-quote-secondary .collapsible-body {
  background: var(--ed-white);
}

.ce-quote-workspace .ce-quote-secondary .collapsible-body-inner {
  padding-top: var(--ed-space-3);
}

/* Main content panel */
.ce-quote-workspace .ce-panel-primary {
  background: var(--ed-white);
  border: 1px solid var(--ed-border-light);
  border-radius: var(--ed-radius);
  padding: var(--ed-space-4);
  box-shadow: var(--ed-shadow-sm);
}

.ce-section-label {
  margin: 0 0 var(--ed-space-3);
  font-size: var(--ed-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ed-navy-soft);
}

.ce-section-label--grid {
  margin-top: var(--ed-space-4);
  padding-top: var(--ed-space-3);
  border-top: 1px solid var(--ed-border-light);
  margin-bottom: 0;
}

/* Itinerary — trip plan cards */
.ce-itinerary-list {
  display: flex;
  flex-direction: column;
  gap: var(--ed-space-2);
}

.ce-itinerary-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ed-space-3);
  padding: var(--ed-space-3) var(--ed-space-4);
  background: var(--ed-surface);
  border: 1px solid var(--ed-border-light);
  border-left: 3px solid var(--ed-amber);
  border-radius: var(--ed-radius-sm);
}

.ce-itinerary-item-body {
  min-width: 0;
  flex: 1;
}

.ce-itinerary-dates {
  font-size: var(--ed-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ed-amber-muted);
  margin-bottom: 4px;
}

.ce-itinerary-service {
  font-size: var(--ed-text-lg);
  font-weight: 600;
  color: var(--ed-navy);
  line-height: 1.25;
  margin-bottom: 6px;
}

.ce-itinerary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ed-space-2);
  font-size: var(--ed-text-sm);
  color: var(--ed-text-muted);
}

.ce-itinerary-nights {
  font-weight: 600;
  color: var(--ed-navy-soft);
}

.ce-itinerary-unit::before {
  content: "·";
  margin-right: var(--ed-space-2);
  color: var(--ed-text-subtle);
}

.ce-itinerary-remove {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Costing section */
.ce-costing-section {
  margin-top: var(--ed-space-2);
}

.ce-costing-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ed-space-2);
  flex-wrap: wrap;
  margin-bottom: var(--ed-space-2);
  padding-top: var(--ed-space-3);
  border-top: 1px solid var(--ed-border-light);
}

.ce-costing-section-head .ce-section-label--grid {
  margin: 0;
  padding: 0;
  border: none;
}

.ce-costing-head-actions {
  display: flex;
  align-items: center;
  gap: var(--ed-space-3);
  flex-wrap: wrap;
  margin-left: auto;
}

.ce-bulk-discount {
  display: flex;
  align-items: center;
  gap: var(--ed-space-2);
}

.ce-bulk-discount label {
  font-size: var(--ed-text-xs);
  font-weight: 600;
  color: var(--ed-text-muted);
  white-space: nowrap;
}

.ce-bulk-discount input[type="number"] {
  width: 4.25rem;
  padding: 3px 6px;
  font-size: 12px;
  border: 1px solid var(--ed-border-light);
  border-radius: 4px;
  background: var(--ed-surface, #fff);
  color: var(--ed-navy);
}

.ce-quote-workspace .ce-table-costing .ce-col-discount {
  width: 4.75rem;
  text-align: right;
}

.ce-discount-input {
  width: 3.5rem;
  padding: 2px 4px;
  font-size: 12px;
  text-align: right;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--ed-navy);
}

.ce-discount-input:hover,
.ce-discount-input:focus {
  border-color: var(--ed-border-light);
  background: var(--ed-surface, #fff);
  outline: none;
}

.ce-discount-input::placeholder {
  color: var(--ed-text-subtle);
}

.ce-price-from {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--ed-text-muted);
  margin-top: 2px;
}

.ce-commercial-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ce-commercial-toggle-label {
  font-size: var(--ed-text-xs);
  font-weight: 600;
  color: var(--ed-amber-muted);
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}

.ce-commercial-toggle-label:hover {
  color: var(--ed-navy);
}

.ce-commercial-toggle-input:checked + .ce-commercial-toggle-label {
  color: var(--ed-navy-soft);
}

.ce-costing-empty {
  margin-top: var(--ed-space-3);
}

/* Costing grid — primary vs secondary columns */
.ce-costing-section:not(:has(.ce-commercial-toggle-input:checked)) .ce-col-secondary {
  display: none;
}

.ce-quote-workspace .ce-table-costing {
  table-layout: auto;
  width: 100%;
  min-width: 480px;
  font-size: 12px;
}

.ce-quote-workspace .ce-table-costing th,
.ce-quote-workspace .ce-table-costing td {
  padding: 8px 10px;
  overflow-wrap: normal;
  word-break: normal;
  vertical-align: top;
}

.ce-quote-workspace .ce-table-costing th {
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.ce-quote-workspace .ce-table-costing .ce-col-desc { min-width: 140px; word-break: break-word; overflow-wrap: break-word; }
.ce-quote-workspace .ce-table-costing .ce-col-unit { max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.ce-quote-workspace .ce-table-costing .ce-col-primary {
  font-weight: 500;
  color: var(--ed-navy);
}

.ce-quote-workspace .ce-table-costing .ce-col-price {
  font-weight: 600;
}

.ce-quote-workspace .ce-table-costing .ce-col-secondary {
  color: var(--ed-text-muted);
  font-size: 11px;
}

.ce-quote-workspace .ce-table-costing .ce-profit-negative {
  color: var(--ed-text-muted);
  font-weight: 400;
}

.ce-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 calc(-1 * var(--ed-space-1));
  padding: 0 var(--ed-space-1);
}

.ce-quote-workspace .ce-table-costing .ce-num {
  white-space: nowrap;
  font-size: 12px;
}

/* Totals — executive summary */
.ce-quote-workspace .ce-totals--breakdown {
  margin-top: var(--ed-space-3);
  padding: var(--ed-space-2) var(--ed-space-3);
  border: 1px solid var(--ed-border-light);
  border-radius: var(--ed-radius-sm);
  background: var(--ed-ivory);
}

.ce-quote-workspace .ce-totals--executive .ce-total-row {
  padding: 4px 0;
  font-size: var(--ed-text-sm);
}

.ce-quote-workspace .ce-totals--executive .ce-section-label {
  margin-bottom: var(--ed-space-2);
}

.ce-quote-workspace .ce-totals--breakdown .ce-total-grand {
  font-size: var(--ed-text-sm);
  font-weight: 600;
  border-top-width: 1px;
  margin-top: var(--ed-space-1);
  padding-top: var(--ed-space-1);
  color: var(--ed-text-muted);
}

/* Settings integrated with costing — legacy; workspace uses build panel */
.ce-costing-continue {
  margin-top: var(--ed-space-2);
  padding-top: var(--ed-space-2);
  border-top: 1px solid var(--ed-border-light);
}

.ce-panel-settings-integrated {
  margin-top: 0;
  border-radius: var(--ed-radius-sm);
}

.ce-panel-settings-integrated summary {
  font-size: var(--ed-text-xs);
}

/* Workspace — build left / output right */
.ce-layout-workspace {
  gap: var(--ed-space-4);
  min-width: 0;
}

.ce-build-panel {
  padding: var(--ed-space-3) var(--ed-space-4);
  background: var(--ed-white);
  border: 1px solid var(--ed-border-light);
  border-radius: var(--ed-radius);
  box-shadow: var(--ed-shadow-sm);
  position: sticky;
  top: var(--ed-space-2);
  align-self: start;
  max-height: calc(100vh - var(--ed-space-4));
  overflow-y: auto;
  min-width: 0;
}

.ce-build-section {
  margin-bottom: 0;
}

.ce-build-settings .ce-section-label {
  margin-bottom: var(--ed-space-2);
}

.ce-build-panel .ce-settings-build,
.ce-build-panel .ce-reference-items .ce-settings-grid {
  grid-template-columns: 1fr;
}

.ce-build-panel .ce-add-fields {
  grid-template-columns: 1fr;
}

.ce-build-panel .ce-add-contract {
  margin: 0 0 var(--ed-space-3);
}

.ce-output-panel {
  min-width: 0;
}

.ce-output-panel > .ce-section-label:first-child {
  margin-bottom: var(--ed-space-2);
}

.ce-output-panel .ce-costing-section-head {
  padding-top: var(--ed-space-2);
}

@media (max-width: 900px) {
  .ce-build-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .ce-layout-workspace {
    gap: var(--ed-space-3);
  }
}

.ce-quote-workspace .ce-layout-quote {
  gap: var(--ed-space-4);
}

@media (max-width: 900px) {
  .ce-quote-identity {
    flex-direction: column;
  }

  .ce-quote-identity-actions {
    width: 100%;
  }

  .ce-quote-identity-actions .btn {
    flex: 1;
    min-width: 0;
  }

  .ce-quote-title {
    font-size: 24px;
  }

  .ce-quote-value-amount {
    font-size: 22px;
  }

  .ce-itinerary-item {
    flex-direction: column;
  }

  .ce-itinerary-remove {
    align-self: flex-end;
  }
}

/* END-DP2E Final Polish — client view + settings density */

.ce-client-workspace {
  gap: var(--ed-space-2);
  max-width: 720px;
}

.ce-client-workspace .ce-client-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: var(--ed-space-1);
}

.ce-client-header-actions {
  display: flex;
  justify-content: flex-end;
}

.ce-client-context {
  margin: 0;
  font-size: var(--ed-text-sm);
  font-weight: 500;
  color: var(--ed-text-muted);
  letter-spacing: 0.01em;
}

.ce-client-workspace .ce-panel-client {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.ce-client-section-label {
  margin: 0 0 var(--ed-space-2);
  font-size: var(--ed-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ed-navy-soft);
}

.ce-client-section {
  padding-bottom: var(--ed-space-3);
  margin-bottom: var(--ed-space-3);
  border-bottom: 1px solid var(--ed-border-light);
}

.ce-client-section--journey {
  margin-top: 0;
}

.empty-state--client {
  padding: var(--ed-space-2) 0;
  font-size: var(--ed-text-sm);
  color: var(--ed-text-muted);
  font-style: italic;
}

.ce-pricing-empty {
  margin-top: 0;
  padding: var(--ed-space-2) 0 var(--ed-space-3);
  border-bottom: 1px solid var(--ed-border-light);
}

/* Client journey table */
.ce-table-client-journey {
  margin-top: 0;
}

.ce-table-client-journey th {
  padding: 0 0 6px;
  border-bottom: 1px solid var(--ed-border-light);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ed-text-muted);
}

.ce-table-client-journey td {
  padding: 8px 0;
  border-bottom: 1px solid var(--ed-border-light);
  vertical-align: top;
  font-size: var(--ed-text-sm);
}

.ce-table-client-journey tbody tr:last-child td {
  border-bottom: none;
}

.ce-client-when {
  width: 38%;
  color: var(--ed-text-muted);
  font-size: var(--ed-text-sm);
  line-height: 1.4;
  padding-right: var(--ed-space-3);
}

.ce-client-stay {
  line-height: 1.4;
}

.ce-client-stay-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ce-client-stay-lodge {
  font-size: var(--ed-text-sm);
  font-weight: 600;
  color: var(--ed-navy);
  line-height: 1.3;
}

.ce-client-stay-detail {
  font-size: var(--ed-text-xs);
  font-weight: 400;
  color: var(--ed-text-muted);
  line-height: 1.35;
}

.ce-client-included-desc .ce-client-stay-lodge {
  font-size: var(--ed-text-sm);
}

.ce-client-included-desc .ce-client-stay-detail {
  font-size: var(--ed-text-xs);
}

/* Client pricing */
.ce-client-pricing {
  margin-top: 0;
  padding-bottom: var(--ed-space-3);
  margin-bottom: var(--ed-space-3);
  border-bottom: 1px solid var(--ed-border-light);
}

.ce-client-pricing > .ce-client-section-label {
  margin-bottom: var(--ed-space-2);
}

.ce-pricing-group {
  margin-bottom: var(--ed-space-2);
}

.ce-pricing-group--fees {
  margin-top: var(--ed-space-3);
  padding-top: 0;
}

.ce-pricing-group-label {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ed-text-muted);
}

.ce-table-client-pricing th {
  padding: 0 0 4px;
  border-bottom: 1px solid var(--ed-border-light);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ed-text-muted);
}

.ce-table-client-pricing td {
  padding: 6px 0;
  border-bottom: 1px solid var(--ed-border-light);
  vertical-align: top;
}

.ce-table-client-pricing tbody tr:last-child td {
  border-bottom: none;
}

.ce-table-client-pricing .ce-client-experience {
  color: var(--ed-navy);
  font-weight: 500;
  font-size: var(--ed-text-sm);
  line-height: 1.4;
  padding-right: var(--ed-space-3);
}

.ce-table-client-pricing .ce-col-price {
  font-weight: 600;
  color: var(--ed-navy);
  white-space: nowrap;
  width: 28%;
}

/* Client included list — proposal rows without table headers */
.ce-client-included-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ce-client-included-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ed-space-3);
  padding: 8px 0;
  border-bottom: 1px solid var(--ed-border-light);
}

.ce-client-included-row:last-child {
  border-bottom: none;
}

.ce-client-included-desc {
  min-width: 0;
  flex: 1;
}

.ce-client-included-text {
  display: block;
  font-size: var(--ed-text-sm);
  font-weight: 500;
  color: var(--ed-navy);
  line-height: 1.4;
}

.ce-client-included-note {
  display: block;
  margin-top: 2px;
  font-size: var(--ed-text-xs);
  color: var(--ed-text-muted);
  line-height: 1.4;
  font-style: italic;
  white-space: pre-wrap;
}
.ce-client-package-by {
  display: block;
  margin-top: 2px;
  font-size: var(--ed-text-xs);
  font-style: italic;
  color: var(--ed-text-muted);
  line-height: 1.35;
}
.ce-package-includes--client {
  margin-top: 8px;
}
.ce-package-includes--client .ce-package-itin-service {
  font-size: var(--ed-text-xs);
}
.ce-package-includes--client .ce-package-itin-date,
.ce-package-includes--client .ce-package-itin-detail,
.ce-package-includes--client .ce-package-itin-context {
  font-size: 11px;
}

.ce-pricing-group--fees .ce-client-included-text {
  font-weight: 400;
  color: var(--ed-text-muted);
}

.ce-client-included-amount {
  flex-shrink: 0;
  font-size: var(--ed-text-sm);
  font-weight: 600;
  color: var(--ed-navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-top: 1px;
}

/* Client trip summary */
.ce-totals--client-summary {
  margin-top: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.ce-totals--client-summary .ce-client-section-label {
  margin-bottom: var(--ed-space-2);
}

.ce-total-row--client-sub {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--ed-space-3);
  padding: 3px 0;
  font-size: var(--ed-text-sm);
  color: var(--ed-text-muted);
}

.ce-total-row--client-grand {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--ed-space-3);
  padding: var(--ed-space-2) 0 0;
  margin-top: var(--ed-space-2);
  border-top: 1px solid var(--ed-navy-soft);
  font-size: var(--ed-text-base);
  font-weight: 700;
  color: var(--ed-navy);
}

.ce-total-row--client-grand span:last-child {
  font-family: var(--ed-font-display);
  font-size: var(--ed-text-lg);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.ce-calc-error-client {
  margin-bottom: var(--ed-space-2);
  font-size: var(--ed-text-sm);
}

/* Legacy client totals — retained for reference */
.ce-totals--client-compact {
  margin-top: var(--ed-space-3);
  padding: var(--ed-space-2) var(--ed-space-3);
  border: 1px solid var(--ed-border-light);
  border-radius: var(--ed-radius-sm);
  background: var(--ed-ivory);
}

.ce-totals-client-head {
  margin-bottom: 2px;
}

.ce-totals-client-label {
  font-size: var(--ed-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ed-text-muted);
}

.ce-totals--client-compact .ce-total-row--compact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--ed-space-2);
  padding: 2px 0;
  font-size: var(--ed-text-sm);
  font-weight: 600;
  color: var(--ed-navy);
}

/* Quote settings — compressed */
.ce-settings-body {
  padding-top: var(--ed-space-2) !important;
}

.ce-settings-compact .field {
  margin-bottom: var(--ed-space-2);
}

.ce-settings-compact .field label {
  margin-bottom: 2px;
  font-size: var(--ed-text-xs);
}

.ce-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ed-space-2) var(--ed-space-3);
}

.ce-settings-grid .field.full-width,
.ce-settings-grid .ce-fx-slot,
.ce-settings-grid .ce-show-zero-field {
  grid-column: 1 / -1;
}

.ce-show-zero-field {
  margin-bottom: 0 !important;
}

.ce-inline-check {
  display: inline-flex;
  align-items: center;
  gap: var(--ed-space-2);
  font-size: var(--ed-text-sm);
  font-weight: 500;
  color: var(--ed-text-muted);
  cursor: pointer;
}

.ce-inline-check input {
  margin: 0;
}

.ce-fx-note {
  margin: 0;
  padding: var(--ed-space-2) var(--ed-space-3);
  font-size: var(--ed-text-sm);
  color: var(--ed-text-muted);
  background: var(--ed-surface);
  border-radius: var(--ed-radius-sm);
  border: 1px solid var(--ed-border-light);
}

.ce-fx-field .ce-settings-label {
  display: block;
  margin-bottom: var(--ed-space-1);
  font-size: var(--ed-text-xs);
  font-weight: 600;
  color: var(--ed-navy-soft);
}

.ce-fx-field .ce-fx-panel {
  margin-top: 0;
}

.ce-fx-field .ce-fx-panel .field {
  margin-bottom: var(--ed-space-2);
}

/* Add from contract — workflow hierarchy */
.ce-add-contract {
  margin-top: var(--ed-space-3);
  padding-top: var(--ed-space-3);
  border-top: 1px solid var(--ed-border-light);
}

.ce-add-contract-heading {
  margin: 0 0 4px;
  font-family: var(--ed-font-display);
  font-size: var(--ed-text-lg);
  font-weight: 700;
  color: var(--ed-navy);
  letter-spacing: -0.01em;
}

.ce-add-contract-lead {
  margin: 0 0 var(--ed-space-3);
  font-size: var(--ed-text-sm);
  color: var(--ed-text-muted);
  line-height: 1.4;
}

.ce-add-property-field {
  margin-bottom: var(--ed-space-2);
}

.ce-add-property-field label {
  display: block;
  margin-bottom: var(--ed-space-1);
  font-size: var(--ed-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ed-navy-soft);
}

.ce-add-property-select {
  display: block;
  width: 100%;
  padding: var(--ed-space-2) var(--ed-space-3);
  font-size: var(--ed-text-base);
  font-weight: 600;
  color: var(--ed-navy);
  border: 2px solid var(--ed-amber-muted);
  border-radius: var(--ed-radius-sm);
  background: var(--ed-white);
}

.ce-add-property-select:focus {
  outline: none;
  border-color: var(--ed-amber);
  box-shadow: 0 0 0 2px rgba(196, 145, 58, 0.2);
}

.ce-add-dependent {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.ce-add-dependent--active {
  opacity: 1;
  pointer-events: auto;
}

.ce-add-fields .field label {
  font-size: var(--ed-text-xs);
  color: var(--ed-text-muted);
}

#ce-add-product:not(.ce-add-product-select) {
  width: 100%;
  max-width: 100%;
  font-size: var(--ed-text-xs);
}

.ce-add-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ed-space-2);
  margin-top: var(--ed-space-1);
}

.ce-add-actions .ce-btn-preview {
  order: 1;
}

.ce-add-actions .ce-btn-add-line {
  order: 2;
  min-width: 140px;
}

/* Reference items */
.ce-reference-items {
  margin-top: var(--ed-space-3);
}

.ce-reference-hint {
  margin: 0;
  font-size: var(--ed-text-xs);
}

@media (max-width: 640px) {
  .ce-settings-grid {
    grid-template-columns: 1fr;
  }
}

/* END-DP2F — Final refinement: reduce visual weight */

.ce-quote-workspace {
  gap: var(--ed-space-2);
}

/* Section labels — lighter inline headings */
.ce-section-label--inline {
  margin: 0;
  display: inline;
}

.ce-output-zone {
  padding-bottom: var(--ed-space-3);
  margin-bottom: var(--ed-space-3);
  border-bottom: 1px solid var(--ed-border-light);
}

.ce-output-zone:last-of-type,
.ce-output-panel > .ce-costing-section,
.ce-output-panel > .ce-totals--light,
.ce-output-panel > .ce-pricing-summary {
  border-bottom: none;
}

.ce-output-panel .ce-manual-output {
  padding-bottom: var(--ed-space-3);
  margin-bottom: var(--ed-space-3);
  border-bottom: 1px solid var(--ed-border-light);
}

.empty-state--compact {
  padding: var(--ed-space-2) 0;
  font-size: var(--ed-text-sm);
}

/* Build rail — borderless, efficient */
.ce-quote-workspace .ce-build-panel {
  padding: 0 var(--ed-space-3) 0 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-right: 1px solid var(--ed-border-light);
  border-radius: 0;
}

.ce-build-panel .ce-settings-compact .field {
  margin-bottom: 6px;
}

.ce-build-panel .ce-settings-compact .field label {
  margin-bottom: 1px;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.ce-build-panel .ce-settings-build {
  gap: 6px;
}

.ce-build-panel .ce-build-settings .ce-section-label {
  margin-bottom: var(--ed-space-1);
}

.ce-build-panel .ce-add-contract {
  margin: 0 0 var(--ed-space-3);
  padding: 0 0 var(--ed-space-3);
  border-bottom: 1px solid var(--ed-border-light);
}

.ce-build-panel .ce-add-contract-heading {
  font-size: var(--ed-text-sm);
  font-weight: 700;
  font-family: var(--ed-font);
  margin-bottom: var(--ed-space-1);
}

.ce-build-panel .ce-add-property-select {
  font-size: var(--ed-text-sm);
}

.ce-derived-facts {
  margin: 0;
  font-size: var(--ed-text-sm);
  color: var(--ed-navy);
  line-height: 1.35;
}

.ce-derived-facts--miss {
  color: var(--ed-text-muted);
}

.ce-occ-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--ed-space-2);
}

.ce-occ-lead {
  grid-column: 1 / -1;
  margin: 0;
  font-size: var(--ed-text-xs);
  color: var(--ed-text-muted);
}

.ce-itinerary-actions {
  display: flex;
  gap: var(--ed-space-2);
  flex-shrink: 0;
}

.ce-itinerary-notes {
  display: block;
  font-size: var(--ed-text-xs);
  color: var(--ed-text-muted);
  margin-top: 2px;
}

.ce-itinerary-item--editing {
  outline: 1px solid var(--ed-amber-muted);
}

.ce-quote-travel,
.ce-client-dates,
.ce-client-currency {
  margin: 2px 0 0;
  font-size: var(--ed-text-sm);
  color: var(--ed-text-muted);
}

.ce-quote-identity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ed-space-2);
  align-items: center;
  justify-content: flex-end;
}

.ce-life {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  justify-content: stretch;
}
.ce-life li {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 7px 8px;
  border: 1px solid #c5cdd6;
  border-bottom-width: 2px;
  border-radius: 5px 5px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #6a7380;
  background: #eef1f4;
}
.ce-life li:not(:last-child)::after { content: none; }
.ce-life li:nth-child(1) { background: #d8e8f3; color: #3d5a70; border-color: #a9c3d4; }
.ce-life li:nth-child(2) { background: #d4eadc; color: #3d6450; border-color: #a7cbb6; }
.ce-life li:nth-child(3) { background: #efe3c4; color: #6a5528; border-color: #d0b98a; }
.ce-life li:nth-child(4) { background: #e5d8ef; color: #5a4570; border-color: #c4b3d6; }
.ce-life .is-done { opacity: 0.72; }
.ce-life .is-current {
  opacity: 1;
  font-weight: 700;
}
.ce-life li:nth-child(1).is-current {
  background: #bcd7eb;
  color: #234e6e;
  border-color: #7aa3c2;
  box-shadow: inset 0 -2px 0 #4a7fa3;
}
.ce-life li:nth-child(2).is-current {
  background: #b7dfc4;
  color: #1f5a38;
  border-color: #6eae84;
  box-shadow: inset 0 -2px 0 #3e7a58;
}
.ce-life li:nth-child(3).is-current {
  background: #ead59a;
  color: #6a4e12;
  border-color: #c4a45a;
  box-shadow: inset 0 -2px 0 #8a6a28;
}
.ce-life li:nth-child(4).is-current {
  background: #d4c2e6;
  color: #4a2f68;
  border-color: #a78cc0;
  box-shadow: inset 0 -2px 0 #6a4e86;
}
.ce-life .is-ahead {
  opacity: 1;
  font-weight: 500;
  background: #f3f0ea !important;
  color: #8a929c !important;
  border-color: #e5dfd4 !important;
  box-shadow: none;
}
.ce-life--cancelled {
  margin: 0;
  width: 100%;
  text-align: left;
  color: #9f1d1d;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-left: 3px solid #b42318;
  background: #f8eeee;
  border-radius: 0 4px 4px 0;
  text-transform: none;
  letter-spacing: 0;
}

.ce-quote-identity-actions .btn {
  padding: 6px 10px;
  font-size: var(--ed-text-sm);
  font-weight: 500;
  border-width: 1px;
}

.ce-build-panel .ce-reference-items {
  margin-top: var(--ed-space-2);
}

.ce-build-panel .ce-fx-note {
  padding: var(--ed-space-1) var(--ed-space-2);
  font-size: var(--ed-text-xs);
  border: none;
  background: transparent;
  color: var(--ed-text-subtle);
}

/* Output rail — open workspace surface */
.ce-quote-workspace .ce-output-panel {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  min-width: 0;
}

.ce-quote-workspace .ce-output-panel.ce-panel-primary,
.ce-quote-workspace .ce-panel-primary.ce-output-panel {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Compact itinerary rows */
.ce-itinerary-list {
  gap: 0;
}

.ce-itinerary-item--compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ed-space-2);
  padding: 5px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ed-border-light);
  border-radius: 0;
  border-left: none;
}

.ce-itinerary-item--compact:last-child {
  border-bottom: none;
}

.ce-itinerary-item-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  min-width: 0;
  flex: 1;
  line-height: 1.3;
}

.ce-itinerary-item--compact .ce-itinerary-dates {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ed-text-muted);
  white-space: nowrap;
}

.ce-itinerary-item--compact .ce-itinerary-service {
  margin: 0;
  font-size: var(--ed-text-sm);
  font-weight: 600;
  color: var(--ed-navy);
}

.ce-itinerary-item--compact .ce-itinerary-meta {
  margin: 0;
  font-size: var(--ed-text-xs);
  color: var(--ed-text-muted);
  width: 100%;
}

.ce-itinerary-item--compact .ce-itinerary-meta::before {
  display: none;
}

.ce-itinerary-item--compact .ce-itinerary-remove {
  margin: 0;
  flex-shrink: 0;
  font-size: var(--ed-text-xs);
  padding: 0;
}

/* Costing — grouped, lighter tables */
.ce-output-panel .ce-costing-section {
  margin-top: 0;
  padding-top: var(--ed-space-3);
  margin-bottom: var(--ed-space-3);
  border-top: 1px solid var(--ed-border-light);
}

.ce-costing-section-head {
  padding-top: 0;
  border-top: none;
  margin-bottom: var(--ed-space-2);
}

.ce-costing-group {
  margin-bottom: var(--ed-space-2);
}

.ce-costing-group--fees {
  margin-top: var(--ed-space-3);
  padding-top: var(--ed-space-2);
  border-top: 1px dashed var(--ed-border-light);
}

.ce-costing-group-label {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ed-text-muted);
}

.ce-quote-workspace .ce-table-costing th,
.ce-quote-workspace .ce-table-costing td {
  padding: 5px 8px;
}

.ce-quote-workspace .ce-table-costing th {
  border-bottom: 1px solid var(--ed-border-light);
}

.ce-quote-workspace .ce-table-costing tbody tr:last-child td {
  border-bottom: none;
}

/* Totals — light footer strip */
.ce-quote-workspace .ce-totals--light {
  margin-top: 0;
  padding: var(--ed-space-2) 0 0;
  border: none;
  border-top: 1px solid var(--ed-border-light);
  border-radius: 0;
  background: transparent;
}

.ce-totals--light .ce-total-row--sub {
  padding: 2px 0;
  font-size: var(--ed-text-sm);
  color: var(--ed-text-muted);
}

.ce-totals--light .ce-total-row--grand {
  padding: var(--ed-space-1) 0 0;
  margin-top: var(--ed-space-1);
  border-top: 1px dashed var(--ed-border-light);
  font-size: var(--ed-text-base);
  font-weight: 700;
  color: var(--ed-navy);
}

.ce-totals--light .ce-total-row--grand span:last-child {
  font-variant-numeric: tabular-nums;
}

/* Manual reference output */
.ce-manual-output .ce-section-label {
  margin: var(--ed-space-1) 0 var(--ed-space-1);
}

.ce-manual-warn--compact {
  margin: 0 0 var(--ed-space-1);
  padding: 0;
  background: transparent;
  border: none;
  font-size: var(--ed-text-xs);
  color: var(--ed-text-muted);
}

.ce-table-manual th,
.ce-table-manual td {
  padding: 4px 8px;
  font-size: var(--ed-text-sm);
}

/* Secondary collapsibles — minimal chrome */
.ce-quote-workspace .ce-quote-secondary.collapsible-section {
  border: none;
  border-top: 1px solid var(--ed-border-light);
  margin-top: var(--ed-space-2);
}

.ce-quote-workspace .ce-quote-secondary summary {
  padding: var(--ed-space-2) 0;
}

.ce-quote-workspace .ce-quote-secondary[open] summary {
  border-bottom: none;
}

.ce-quote-workspace .ce-quote-secondary .collapsible-body {
  background: transparent;
}

.ce-quote-workspace .ce-quote-secondary .collapsible-body-inner {
  padding: 0 0 var(--ed-space-2);
}

@media (max-width: 900px) {
  .ce-quote-workspace .ce-build-panel {
    border-right: none;
    border-bottom: 1px solid var(--ed-border-light);
    padding: 0 0 var(--ed-space-3);
  }

  .ce-itinerary-item--compact {
    flex-wrap: wrap;
  }

  .ce-itinerary-item--compact .ce-itinerary-meta {
    width: auto;
  }
}

/* Journey-first Quote workspace (approved prototype) */
.ce-quote-workspace--journey {
  position: relative;
  gap: 0;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#step-content:has(.ce-quote-workspace--journey) {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ce-quote-identity--journey {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-end;
  padding: 6px 0 8px;
  background: transparent;
  border: none;
  border-bottom: 0;
  border-radius: 0;
  box-shadow: none;
  flex-shrink: 0;
  gap: 12px 32px;
}
.ce-quote-identity--journey .ce-quote-identity-text {
  grid-column: 1;
}
.ce-quote-identity--journey .ce-quote-total {
  grid-column: 2;
  text-align: right;
  min-width: 12em;
}
.ce-quote-status {
  flex-shrink: 0;
  padding: 0 0 2px;
}
.ce-quote-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 6px 0 8px;
  margin: 0 0 2px;
  border-bottom: 1px solid var(--ed-border);
  flex-shrink: 0;
}
.ce-quote-toolbar .ce-status-move { margin-right: auto; }
.ce-fx-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 28px;
  padding: 8px 0 10px;
  margin: 0 0 4px;
  border-bottom: 1px solid var(--ed-border-light);
  flex-shrink: 0;
  min-width: 0;
}
.ce-fx-strip .ed-currency-field--stacked {
  width: max-content;
  min-width: 8rem;
}
.ce-fx-strip-currency,
.ce-fx-strip-rates,
.ce-pay-mode {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.ce-fx-quiet-label {
  display: block;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  color: var(--ed-text-muted);
}
.ce-fx-strip-pair {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.ce-fx-pair-meta,
.ce-fx-strip-status,
.ce-fx-strip-note,
.ce-fx-strip-pay,
.ce-pay-multi-hint {
  font-size: 12px;
  line-height: 1.3;
  color: var(--ed-text-muted);
}
.ce-fx-override {
  width: 7.25em;
  max-width: 100%;
  margin: 2px 0 0;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--ed-navy);
  background: var(--ed-white);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -moz-appearance: textfield;
  appearance: textfield;
}
.ce-fx-override::-webkit-outer-spin-button,
.ce-fx-override::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ce-fx-override:hover {
  border-color: var(--ed-navy-soft, #3d4f63);
}
.ce-fx-override:focus,
.ce-fx-override:focus-visible {
  outline: none;
  border-color: var(--ed-navy);
  box-shadow: 0 0 0 3px rgba(15, 31, 51, 0.08);
}
.ce-pay-mode .ce-pay-currency {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 4px 0 0;
}
.ce-pay-seg {
  display: inline-flex;
  align-items: stretch;
  margin: 2px 0 0;
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-sm);
  background: var(--ed-white);
  overflow: hidden;
}
.ce-pay-seg-opt {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}
.ce-pay-seg-opt + .ce-pay-seg-opt {
  border-left: 1px solid var(--ed-border);
}
.ce-pay-seg-opt input[type="radio"] {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.ce-pay-seg-opt span {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ed-navy-soft);
  white-space: nowrap;
  user-select: none;
}
.ce-pay-seg-opt:hover span {
  color: var(--ed-navy);
}
.ce-pay-seg-opt:has(input:checked) span {
  background: var(--ed-navy);
  color: #fff;
  font-weight: 600;
}
.ce-pay-seg-opt:has(input:focus-visible) span {
  box-shadow: inset 0 0 0 2px rgba(217, 161, 30, 0.55);
}
.ce-fx-strip-pay {
  flex-basis: 100%;
  font-variant-numeric: tabular-nums;
}
.ce-glance-fx {
  margin-left: 6px;
  font-weight: 500;
  color: var(--ed-text-muted);
}
.ce-quote-eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ed-text-muted);
}
.ce-quote-identity--journey .ce-quote-title {
  font-family: var(--ed-font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 26px;
  margin: 2px 0 4px;
}
.ce-quote-identity--journey .ce-quote-total {
  text-align: right;
  flex-shrink: 0;
}
.ce-quote-total-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ed-text-muted);
}
.ce-quote-total-amount {
  font-family: var(--ed-font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.ce-quote-total-hint { font-size: 11px; color: var(--ed-text-muted); margin-top: 2px; }

.ce-journey-body {
  display: block;
  min-height: 0;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.ce-itinerary-canvas {
  min-width: 0;
  height: 100%;
  padding: 10px 0 8px;
  display: flex;
  flex-direction: column;
  overflow: auto;
  overflow-x: hidden;
}
.ce-itin-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 8px;
}
.ce-itin-head .ce-section-label { margin-bottom: 0; margin-right: auto; }
.ce-itin-lead { margin: 0; font-size: 12px; color: var(--ed-text-muted); }
.ce-itin-head .ce-bulk-discount {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.ce-itin-head .ce-bulk-discount label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--ed-text-muted);
}
.ce-itin-head .ce-bulk-discount input { width: 56px; }

.ce-itinerary-item--card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 28px;
  background: var(--ed-white);
  border: 1px solid var(--ed-border);
  border-left: 3px solid var(--ed-navy);
  border-radius: 8px;
  padding: 10px 14px 8px;
  align-items: start;
  min-width: 0;
}
.ce-itinerary-item--card .ce-itinerary-dates {
  text-transform: none;
  letter-spacing: 0.03em;
  font-size: 11px;
  font-weight: 700;
  color: var(--ed-navy-soft);
  margin-bottom: 2px;
}
.ce-itinerary-item--card .ce-itinerary-service {
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 1px;
  overflow-wrap: anywhere;
  letter-spacing: -0.01em;
}
.ce-itinerary-place {
  display: block;
  font-size: 12px;
  color: var(--ed-text-muted);
  overflow-wrap: anywhere;
}
.ce-package-includes {
  margin-top: 6px;
  min-width: 0;
}
.ce-package-includes-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ed-navy);
  margin-bottom: 4px;
}
.ce-package-itin {
  min-width: 0;
}
.ce-package-itin-date {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ed-navy);
}
.ce-package-itin > .ce-package-itin-date:first-child,
.ce-package-itin-more > .ce-package-itin-date:first-child {
  margin-top: 0;
}
.ce-package-itin-item {
  margin: 1px 0 6px;
  min-width: 0;
}
.ce-package-itin-service {
  font-size: 12px;
  line-height: 1.35;
  color: var(--ed-navy);
  overflow-wrap: anywhere;
}
.ce-package-itin-detail,
.ce-package-itin-context {
  font-size: 11px;
  line-height: 1.3;
  color: var(--ed-text-muted);
}
.ce-package-itin-more {
  margin-top: 2px;
}
.ce-package-itin-more > summary {
  display: inline;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--ed-navy-soft);
  list-style: none;
}
.ce-package-itin-more > summary::-webkit-details-marker {
  display: none;
}
.ce-package-includes-body {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ed-navy-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ce-package-includes-more {
  margin-top: 4px;
}
.ce-package-includes-more > summary {
  display: inline;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--ed-navy-soft);
  list-style: none;
}
.ce-package-includes-more > summary::-webkit-details-marker {
  display: none;
}
.ce-package-includes-more-close {
  display: none;
}
.ce-package-includes-more[open] > summary {
  margin-bottom: 4px;
}
.ce-package-includes-more[open] .ce-package-includes-more-open {
  display: none;
}
.ce-package-includes-more[open] .ce-package-includes-more-close {
  display: inline;
}
.ce-package-includes-body--full {
  max-height: 132px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-width: 0;
  padding-right: 4px;
}
.ce-itinerary-item--card .ce-itinerary-meta {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--ed-navy-soft);
}
.ce-itinerary-item--card .ce-itinerary-item-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
}
.ce-itinerary-glance {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 22px;
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.35;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}
.ce-glance-sto {
  color: #173d4d;
  font-weight: 650;
}
.ce-glance-rack {
  color: var(--ed-text-muted);
  font-weight: 500;
}
.ce-itinerary-item--card .ce-itinerary-actions {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 2px 8px;
  flex-wrap: wrap;
}
.ce-itinerary-item--card .ce-rate-details {
  margin-top: 0;
}
.ce-itinerary-item--card .ce-rate-details summary {
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ed-text-muted);
}
.ce-itinerary-item--card .ce-rate-details summary::before { display: none; }
.ce-itinerary-pay {
  text-align: right;
  min-width: 7.5em;
  flex-shrink: 0;
  padding-top: 2px;
}
.ce-itinerary-pay-label {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ed-text-muted);
  white-space: nowrap;
}
.ce-itinerary-amount {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ce-itinerary-from {
  display: block;
  font-size: 11px;
  color: var(--ed-text-muted);
  margin-top: 2px;
}
.ce-itinerary-disc {
  display: inline-block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ed-amber-muted);
  background: var(--ed-amber-soft);
  padding: 1px 6px;
  border-radius: 99px;
}

.ce-quote-workspace .btn-quiet {
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ed-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.ce-quote-workspace .btn-quiet:hover { color: var(--ed-navy); }
.ce-quote-workspace .ce-add-service-row .btn-ghost {
  width: 100%;
  border: 1px dashed var(--ed-navy);
  background: var(--ed-white);
  color: var(--ed-navy);
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}
.ce-quote-workspace .ce-add-service-row .btn-ghost:hover { background: var(--ed-ivory); }
.ce-add-service-row { margin-top: 8px; }
.ce-itinerary-empty {
  background: var(--ed-white);
  border: 1px dashed var(--ed-border);
  border-radius: 10px;
  padding: 28px 20px 24px;
  text-align: center;
}
.ce-itinerary-empty strong { display: block; font-size: 15px; margin-bottom: 4px; }
.ce-itinerary-empty span { display: block; color: var(--ed-text-muted); font-size: 13px; }
.ce-itinerary-empty .btn { margin-top: 16px; min-width: 168px; }

.ce-journey-rail { display: none; }
.ce-price-summary { font-size: 13px; }
.ce-price-summary--inline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0 0 10px;
  padding: 8px 0 10px;
  border-bottom: 1px solid var(--ed-border);
}
.ce-price-summary--inline .ce-sum-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  margin: 0;
  border: 0;
}
.ce-price-summary--inline .ce-sum-row span:first-child {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--ed-text-muted);
}
.ce-price-summary--inline .ce-sum-row span:last-child {
  font-size: 14px;
  font-weight: 650;
  color: var(--ed-navy);
}
.ce-price-summary--inline .ce-sum-row--grand span:last-child { font-size: 16px; }
.ce-price-summary--inline .ce-sum-row--nett span:last-child {
  font-size: 13px;
  font-weight: 500;
  color: var(--ed-text-muted);
}
.ce-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 4px 0;
  color: var(--ed-navy-soft);
}
.ce-sum-row span:first-child { min-width: 0; overflow-wrap: anywhere; }
.ce-sum-row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.ce-sum-row--grand {
  margin: 8px 0 4px;
  padding: 10px 0 8px;
  border-top: 1px solid var(--ed-border);
  border-bottom: 1px solid var(--ed-border);
  font-weight: 700;
  color: var(--ed-navy);
  align-items: center;
}
.ce-sum-row--grand span:first-child {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ce-sum-row--grand span:last-child {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ed-navy);
}
.ce-sum-row--nett {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ed-text-muted);
  font-weight: 400;
}
.ce-quote-more {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  flex-shrink: 0;
  min-width: 0;
  border-top: 1px solid var(--ed-border);
}
.ce-quote-more > details {
  margin: 0;
  min-width: 0;
  flex: 1 1 200px;
}
.ce-bulk-discount {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ce-bulk-discount label { margin: 0; }
.ce-bulk-discount input { width: 72px; }
.ce-quote-secondary--quiet summary {
  color: var(--ed-text-muted);
  font-weight: 500;
  font-size: 12px;
}
.ce-reference-items--active summary {
  color: var(--ed-navy);
  font-weight: 600;
}
.ce-itinerary-discount {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--ed-text-muted);
}
.ce-itinerary-discount-label { font-weight: 600; }
.ce-itinerary-discount-unit { font-size: 11px; }
.ce-itinerary-discount .ce-discount-input {
  width: 52px;
  padding: 2px 4px;
  font-size: 12px;
  text-align: right;
}
.ce-how-calc {
  min-width: 0;
  max-width: 100%;
}
.ce-how-lead {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--ed-text-muted);
}
.ce-how-service {
  padding: 8px 0 10px;
  border-bottom: 1px solid var(--ed-border-light);
  min-width: 0;
}
.ce-how-service:last-of-type { border-bottom: none; }
.ce-how-service h4 {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ed-navy);
}
.ce-how-meta,
.ce-how-formula {
  margin: 0 0 6px;
  font-size: 12.5px;
  color: var(--ed-navy-soft);
  overflow-wrap: anywhere;
}
.ce-how-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 16px;
  min-width: 0;
}
.ce-how-step,
.ce-how-total {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 12.5px;
  min-width: 0;
}
.ce-how-step span:first-child {
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--ed-text-muted);
}
.ce-how-step span:last-child,
.ce-how-total span:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  color: var(--ed-navy);
}
.ce-how-formula .ce-how-k {
  display: block;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--ed-text-muted);
  margin-bottom: 2px;
}
.ce-how-levy {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ed-text-muted);
}
.ce-how-quote .ce-how-step,
.ce-how-quote .ce-how-total {
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
}
.ce-how-quote .ce-how-step span:first-child,
.ce-how-quote .ce-how-total span:first-child {
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
}
.ce-how-fx {
  font-size: 12px;
  color: var(--ed-text-muted);
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.ce-how-total {
  font-weight: 700;
  color: var(--ed-navy);
  font-size: 14px;
}
.ce-journey-rail .ce-rail-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
}

.ce-journey-composer-overlay {
  position: fixed;
  top: 8px;
  right: 8px;
  bottom: 8px;
  left: calc(var(--ed-sidebar-width, 260px) + 8px);
  background: rgba(15, 31, 51, 0.32);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 8px 12px;
  box-sizing: border-box;
  overflow: visible;
  z-index: 40;
}
.ce-journey-composer-overlay[hidden] { display: none !important; }
.ce-journey-composer {
  width: min(540px, 100%);
  height: auto;
  max-height: 100%;
  background: var(--ed-white);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(15, 31, 51, 0.22);
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: visible;
  align-self: stretch;
  box-sizing: border-box;
}
.ce-composer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px 8px 18px;
  flex-shrink: 0;
}
.ce-composer-title { margin: 0; font-size: 18px; font-weight: 600; }
.ce-composer-lead { margin: 2px 0 0; font-size: 12px; color: var(--ed-text-muted); }
.ce-composer-x {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--ed-ivory);
  color: var(--ed-navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
}
.ce-composer-x:hover { background: var(--ed-ivory-deep, #EDE8DF); }
.ce-composer-types {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 18px 10px;
  flex-shrink: 0;
}
.ce-composer-body {
  flex: 1;
  min-height: 0;
  overflow: visible;
  padding: 0 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ce-composer-body .ce-add-contract,
.ce-composer-body .ce-add-dependent,
.ce-composer-body .ce-add-fields,
.ce-composer-body .ce-add-fields.ce-settings-grid,
.ce-composer-body .ce-add-fields.form-grid {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  gap: 8px;
}
.ce-journey-composer .ce-add-contract {
  margin: 0;
  padding: 0;
  border: 0;
}
.ce-composer-body .ce-add-property-field,
.ce-composer-body .ce-rate-pick,
.ce-composer-body .ce-date-choice,
.ce-composer-body .ce-custom-dates,
.ce-composer-body .ce-composer-hint,
.ce-composer-body #ce-preview-resolution,
.ce-composer-body .ce-add-fields > .field {
  flex-shrink: 0;
}
.ce-composer-static {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.ce-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 18px 14px;
  flex-shrink: 0;
  border-top: 1px solid var(--ed-border);
}
.ce-esc-hint { font-size: 11px; color: var(--ed-text-muted); }
.ce-composer-actions { display: flex; gap: 8px; }
.ce-add-product-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ce-rate-pick {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  overflow: visible;
}
.ce-rate-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: start;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  background: var(--ed-white);
  color: var(--ed-navy);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.ce-rate-trigger:hover:not(:disabled) { border-color: var(--ed-navy-soft); }
.ce-rate-trigger:focus {
  outline: 2px solid var(--ed-navy);
  outline-offset: 1px;
}
.ce-rate-trigger:disabled {
  cursor: default;
  opacity: 0.7;
}
.ce-rate-trigger.is-filled {
  background: var(--ed-ivory);
  border-color: var(--ed-navy-soft);
}
.ce-rate-trigger-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.ce-rate-placeholder {
  font-size: 13px;
  color: var(--ed-text-muted);
}
.ce-rate-chevron {
  font-size: 11px;
  line-height: 1.4;
  color: var(--ed-text-muted);
}
.ce-rate-dropdown {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--ed-white);
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 31, 51, 0.18);
  overflow: hidden;
  box-sizing: border-box;
}
.ce-rate-dropdown[hidden] { display: none !important; }
.ce-rate-search {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid var(--ed-border);
  border-radius: 0;
  font: inherit;
  font-size: 13px;
  background: var(--ed-white);
  color: var(--ed-navy);
  flex-shrink: 0;
}
.ce-rate-search:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--ed-navy);
}
.ce-rate-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
}
.ce-rate-empty {
  margin: 10px 12px;
  font-size: 12.5px;
  color: var(--ed-text-muted);
}
.ce-rate-option {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--ed-border);
  border-radius: 0;
  padding: 6px 10px;
  background: var(--ed-white);
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  flex-shrink: 0;
}
.ce-rate-option:last-child { border-bottom: 0; }
.ce-rate-option:hover { background: var(--ed-ivory); }
.ce-rate-option.is-selected { background: var(--ed-ivory); }
.ce-rate-product { font-size: 13px; font-weight: 600; color: var(--ed-navy); }
.ce-rate-basis { font-size: 12px; color: var(--ed-navy-soft); }
.ce-rate-when { font-size: 12px; color: var(--ed-text-muted); }
.ce-rate-amt { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ce-composer-type {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 99px;
  border: 1px solid var(--ed-border);
  background: var(--ed-white);
  color: var(--ed-navy-soft);
  cursor: pointer;
  font-family: inherit;
}
.ce-composer-type[aria-pressed="true"] {
  background: var(--ed-navy);
  border-color: var(--ed-navy);
  color: #fff;
}
.ce-date-choice { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.ce-date-choice .ce-date-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ed-navy);
  cursor: pointer;
  background: var(--ed-white);
}
.ce-date-choice .ce-date-option:has(input:checked) {
  border-color: var(--ed-navy);
  background: var(--ed-ivory);
}
.ce-date-choice .ce-date-option input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex-shrink: 0;
}
.field label.ce-date-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0;
  font-weight: 500;
  cursor: pointer;
}
.ce-static-commissionable {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.ce-static-commissionable .ce-quote-eyebrow {
  flex: 1 0 100%;
}
.ce-date-option-copy { display: block; min-width: 0; }
.ce-date-option-title { display: block; }
.ce-date-option small,
.ce-date-choice .ce-date-option small {
  display: block;
  color: var(--ed-text-muted);
  font-weight: 400;
  font-size: 12px;
  margin-top: 2px;
}
.ce-custom-dates {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 8px;
  flex-shrink: 0;
}
.ce-custom-dates[hidden] { display: none !important; }
.ce-date-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ed-navy);
  cursor: pointer;
}
.ce-composer-hint {
  margin: 2px 0 0;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--ink-mute);
}
.ce-composer-hint--block {
  display: block;
  grid-column: 1 / -1;
}
.ce-static-supplier-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ce-static-supplier-row .ce-add-property-select {
  flex: 1;
  min-width: 0;
}
.ce-static-supplier-row #ce-btn-add-supplier {
  flex-shrink: 0;
  white-space: nowrap;
}
.ce-manual-prices {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ce-manual-price {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: var(--ed-radius-sm, 4px);
  background: var(--ed-ivory-deep, #EDE8DF);
  color: inherit;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.ce-manual-price:hover {
  background: var(--ed-ivory, #F4F0E8);
}
.ce-manual-price-desc {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ce-manual-price-amt {
  flex-shrink: 0;
  color: var(--ed-text-muted);
}
.ce-saved-packages {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ce-saved-package {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: var(--ed-radius-sm, 4px);
  background: var(--ed-ivory-deep, #EDE8DF);
  color: inherit;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.ce-saved-package:hover {
  background: var(--ed-ivory, #F4F0E8);
}
.ce-saved-package-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ce-saved-package-amt {
  flex-shrink: 0;
  color: var(--ed-text-muted);
}
.ce-package-content textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 72px;
  max-height: 120px;
  resize: vertical;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  padding: 6px 8px;
}
.ce-package-context {
  margin-top: 2px;
}
.ce-static-amounts {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ce-composer-other[hidden],
.ce-composer-static[hidden],
.ce-add-contract[hidden] { display: none !important; }
.ce-itinerary-item--card .ce-itinerary-costing {
  font-size: 11px;
  color: var(--ed-text-muted);
}
.ce-static-error {
  margin: 0;
  font-size: 12px;
  color: #b42318;
}
.ce-static-margin {
  margin: 0;
  font-size: 11px;
  color: var(--ed-text-muted);
}
.ce-composer-type:disabled {
  opacity: 0.45;
  cursor: default;
}

.ce-version-banner {
  flex-shrink: 0;
  margin: 0 0 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--ed-navy);
  background: var(--ed-ivory);
  border-radius: 8px;
}
.ce-version-banner .linkish {
  margin-left: 8px;
  font-weight: 600;
}
.ce-version-saved {
  font-size: 12px;
  color: var(--ed-text-muted);
  align-self: center;
}
.ce-version-history .ce-version-open {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 6px 0;
  font: inherit;
  font-size: 12px;
  color: var(--ed-navy);
  cursor: pointer;
  border-bottom: 1px solid var(--ed-border-light, var(--ed-border));
}
.ce-version-history .ce-version-open:last-child { border-bottom: 0; }
.ce-version-history .ce-version-open:hover { color: var(--ed-navy); }
.ce-version-history .ce-version-open.is-current { font-weight: 600; }
.ce-version-draft-note {
  margin: 0 0 6px;
  font-size: 11px;
  color: var(--ed-text-muted);
}
.ce-quote-workspace--readonly .ce-quote-settings input,
.ce-quote-workspace--readonly .ce-quote-settings select,
.ce-quote-workspace--readonly .ce-bulk-discount,
.ce-quote-workspace--readonly .ce-discount-input,
.ce-quote-workspace--readonly .ce-reference-items input,
.ce-quote-workspace--readonly .ce-reference-items button {
  pointer-events: none;
  opacity: 0.55;
}

@media (max-height: 740px) {
  .ce-composer-head { padding: 8px 14px 4px 16px; }
  .ce-composer-title { font-size: 16px; }
  .ce-composer-types { padding: 0 16px 6px; }
  .ce-composer-body { padding: 0 16px 8px; gap: 8px; }
  .ce-composer-foot { padding: 8px 16px 10px; }
}

@media (max-width: 1366px) {
  .ce-quote-identity--journey .ce-quote-title { font-size: 22px; }
  .ce-quote-total-amount { font-size: 22px; }
  .ce-itinerary-item--card { padding: 9px 12px 7px; gap: 6px 20px; }
}

@media (max-width: 1280px) {
  .ce-itinerary-amount { font-size: 14px; }
  .ce-itinerary-glance { font-size: 12px; gap: 4px 16px; }
  .ce-how-steps,
  .ce-price-summary--inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ce-rate-details {
  margin-top: 6px;
}
.ce-rate-details summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--ed-navy-soft);
  list-style: none;
}
.ce-rate-details summary::-webkit-details-marker { display: none; }
.ce-rate-details summary::before {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 10px;
  font-style: italic;
  font-family: Georgia, serif;
  line-height: 1;
  flex-shrink: 0;
}
.ce-rate-details-body {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--ed-ivory);
  color: var(--ed-navy-soft);
  font-size: 12px;
  line-height: 1.4;
  max-height: 120px;
  overflow: auto;
}
.ce-rate-details-body p { margin: 0 0 6px; }
.ce-rate-details-body p:last-child { margin-bottom: 0; }
.ce-itinerary-item .ce-rate-details { margin-top: 4px; }

.ce-commercial-inspect {
  flex-shrink: 0;
  border-top: 1px solid var(--ed-border);
  background: var(--ed-white);
  min-width: 0;
  max-width: 100%;
}
.ce-commercial-inspect > summary {
  padding: 8px 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ed-navy);
  cursor: pointer;
}
.ce-commercial-inspect[open] {
  max-height: min(280px, 38vh);
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex-shrink: 1;
}
.ce-commercial-inspect-body {
  min-width: 0;
  overflow: auto;
  padding-bottom: 8px;
}
.ce-how-service--selected {
  background: rgba(31, 95, 120, 0.05);
  margin: 0 -8px;
  padding: 8px;
  border-radius: 6px;
}
.ce-commercial-inspect-body {
  min-width: 0;
  overflow: auto;
  padding-bottom: 8px;
}
.ce-commercial-inspect .ce-how-calc {
  overflow-x: hidden;
}
.ce-commercial-inspect .ce-costing-section-head {
  padding-top: 4px;
  border-top: 0;
}

/* Client travel proposal — sendable document, not workspace chrome */
body.ed-proposal-view .ed-sidebar,
body.ed-proposal-view .ed-topbar {
  display: none;
}
body.ed-proposal-view .ed-main {
  max-width: 100%;
}
body.ed-proposal-view .ed-content {
  padding: 16px 24px 48px;
}
body.ed-proposal-view .ce-quote-breadcrumb {
  display: none;
}

.ce-proposal {
  max-width: 720px;
  margin: 0 auto;
  gap: 0;
}
.ce-proposal-tools {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 20px;
}
.ce-proposal-page {
  background: #fff;
  padding: 36px 40px 48px;
  border: 1px solid rgba(15, 31, 51, 0.08);
  border-top: 3px solid var(--ce-proposal-accent, var(--ed-navy));
  --ce-proposal-accent: var(--ed-navy);
}
.ce-proposal-logo {
  display: block;
  max-height: 80px;
  max-width: 240px;
  width: auto;
  height: auto;
  margin: 0 0 16px;
  object-fit: contain;
}
.ce-proposal-company {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--ce-proposal-accent, var(--ed-navy));
}
.ce-proposal-doc {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ce-proposal-accent, var(--ed-navy-soft));
}
.ce-proposal-masthead {
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(15, 31, 51, 0.1);
}
.ce-proposal-kicker {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ce-proposal-accent, var(--ed-navy-soft));
}
.ce-proposal-ident {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ed-text-muted);
}
.ce-proposal-intro {
  margin-bottom: 36px;
}
.ce-proposal-client {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.12;
  color: var(--ed-navy);
  letter-spacing: -0.02em;
}
.ce-proposal-journey {
  margin: 0 0 10px;
  font-family: var(--ed-font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ed-navy);
}
.ce-proposal-dates {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ed-navy-soft);
}
.ce-proposal-travellers,
.ce-proposal-facts {
  margin: 0;
  font-size: 13px;
  color: var(--ed-text-muted);
}
.ce-proposal-section {
  margin: 0 0 32px;
  padding-top: 4px;
}
.ce-proposal-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 28px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(15, 31, 51, 0.08);
}
.ce-proposal-item:last-child {
  border-bottom: 0;
}
.ce-proposal-item-when {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ed-text-muted);
}
.ce-proposal-item-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ed-navy);
}
.ce-proposal-item-meta,
.ce-proposal-item-detail {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ed-text-muted);
}
.ce-proposal-item-price {
  margin: 0;
  align-self: start;
  padding-top: 0;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ed-navy);
  white-space: nowrap;
  text-align: right;
}
.ce-proposal-item:has(.ce-proposal-item-when) .ce-proposal-item-price {
  padding-top: 18px;
}
.ce-proposal-inclusions {
  margin: 8px 0 0;
  padding-left: 16px;
  font-size: 13px;
  color: var(--ed-text-muted);
}
.ce-proposal-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  font-size: 14px;
}
.ce-proposal-invest .ce-proposal-row--total {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 31, 51, 0.16);
  font-size: 20px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--ed-navy);
}
.ce-proposal-pay {
  padding-top: 8px;
}
.ce-proposal-pay .ce-proposal-row {
  padding: 8px 0;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.ce-proposal-pay .ce-proposal-row span:last-child {
  font-weight: 650;
  color: var(--ed-navy);
}
.ce-proposal-copy {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ed-navy-soft);
}
.ce-proposal-disclaimer,
.ce-proposal-contact {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ed-text-muted);
}
.ce-proposal .ce-package-includes--client {
  margin-top: 8px;
}
.ce-proposal-page--preview {
  padding: 14px 16px 16px;
}
.ce-proposal-page--preview .ce-proposal-masthead {
  margin-bottom: 12px;
  padding-bottom: 8px;
}
.ce-proposal-page--preview .ce-proposal-logo {
  max-height: 28px;
  max-width: 110px;
  margin-bottom: 6px;
}
.ce-proposal-page--preview .ce-proposal-company {
  font-size: 10px;
  margin-bottom: 2px;
}
.ce-proposal-page--preview .ce-proposal-doc {
  font-size: 9px;
}
.ce-proposal-page--preview .ce-proposal-intro {
  margin-bottom: 10px;
}
.ce-proposal-page--preview .ce-proposal-client {
  font-size: 15px;
  margin: 0 0 2px;
}
.ce-proposal-page--preview .ce-proposal-journey {
  font-size: 12px;
  margin: 0 0 2px;
}
.ce-proposal-page--preview .ce-proposal-dates,
.ce-proposal-page--preview .ce-proposal-travellers {
  font-size: 11px;
  margin: 0;
}
.ce-proposal-page--preview .ce-proposal-kicker {
  font-size: 9px;
  margin: 0 0 4px;
}
.ce-proposal-page--preview .ce-proposal-section {
  margin-top: 10px;
}
.ce-proposal-page--preview .ce-proposal-item {
  padding: 5px 0;
  gap: 8px;
}
.ce-proposal-page--preview .ce-proposal-item-when {
  font-size: 10px;
  margin: 0;
}
.ce-proposal-page--preview .ce-proposal-item-title {
  font-size: 12px;
  margin: 0;
}
.ce-proposal-page--preview .ce-proposal-item-price {
  font-size: 12px;
  padding-top: 10px;
}
.ce-proposal-page--preview .ce-proposal-invest .ce-proposal-row--total,
.ce-proposal-page--preview .ce-proposal-row--total {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(15, 31, 51, 0.16);
  font-size: 12px;
  font-weight: 650;
  display: flex;
  justify-content: space-between;
}
.ce-proposal-page--preview .ce-proposal-pay .ce-proposal-row {
  padding: 3px 0;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
.ce-proposal-page--preview .ce-proposal-disclaimer {
  margin-top: 10px;
  font-size: 9px;
  line-height: 1.35;
}

@media (max-width: 1366px) {
  .ce-proposal-page {
    padding: 28px 28px 40px;
  }
}
