:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #334155;
  background: #f4f6f8;
  --cq-page: #f4f6f8;
  --cq-surface: #ffffff;
  --cq-soft: #f8fafc;
  --cq-muted: #eef2f7;
  --cq-text: #0f172a;
  --cq-body: #334155;
  --cq-subtle: #64748b;
  --cq-border: #d8e0eb;
  --cq-border-soft: #e6edf5;
  --cq-primary: #172554;
  --cq-primary-hover: #1e3a8a;
  --cq-blue: #1d4ed8;
  --cq-blue-soft: #eff6ff;
  --cq-success: #047857;
  --cq-success-soft: #ecfdf5;
  --cq-warning: #c2410c;
  --cq-warning-soft: #fff7ed;
  --cq-danger: #b42318;
  --cq-danger-soft: #fef3f2;
  --cq-radius: 10px;
  --cq-radius-lg: 12px;
  --cq-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  --cq-focus: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--cq-page);
  color: var(--cq-body);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  border: 1px solid #cbd5e1;
  border-radius: var(--cq-radius);
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  min-height: 36px;
  padding: 8px 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

button {
  align-items: center;
  background: #fff;
  color: var(--cq-text);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 6px;
  justify-content: center;
  white-space: nowrap;
}

input,
select,
textarea {
  background: #fff;
  color: var(--cq-text);
  min-width: 0;
  width: 100%;
}

textarea {
  min-height: 76px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

button:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #94a3b8;
}

button:focus-visible,
input:focus,
select:focus,
textarea:focus {
  border-color: #2563eb;
  box-shadow: var(--cq-focus);
  outline: none;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.cq-boot-screen {
  align-items: center;
  color: var(--cq-subtle);
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 100vh;
}

.cq-spinner {
  animation: cq-spin 0.75s linear infinite;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  border-top-color: var(--cq-primary);
  height: 20px;
  width: 20px;
}

@keyframes cq-spin {
  to { transform: rotate(360deg); }
}

.cq-topbar {
  align-items: center;
  background: var(--cq-primary);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.15);
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 58px;
  padding: 9px 22px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.cq-brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.cq-brand-mark {
  align-items: center;
  background: #fff;
  border-radius: 8px;
  color: var(--cq-primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  letter-spacing: 0.08em;
  width: 58px;
}

.cq-brand-title {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.cq-brand-subtitle {
  color: #cbd5e1;
  font-size: 11px;
  margin-top: 1px;
}

.cq-topbar-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.cq-account {
  color: #e2e8f0;
  font-size: 12px;
  margin-right: 4px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cq-topbar-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  min-height: 34px;
  padding: 6px 11px;
  text-decoration: none;
}

.cq-topbar-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.45);
}

.cq-shell {
  display: grid;
  gap: 12px;
  grid-template-columns: 304px minmax(0, 1fr);
  height: calc(100vh - 58px);
  padding: 12px;
}

.cq-sidebar,
.cq-editor-shell {
  background: var(--cq-surface);
  border: 1px solid var(--cq-border);
  border-radius: var(--cq-radius-lg);
  box-shadow: var(--cq-shadow);
  min-height: 0;
}

.cq-sidebar {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cq-sidebar-head {
  border-bottom: 1px solid var(--cq-border-soft);
  padding: 13px;
}

.cq-sidebar-title-row,
.cq-panel-heading,
.cq-editor-heading,
.cq-editor-actions,
.cq-sidebar-pager,
.cq-catalog-heading,
.cq-catalog-pager {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.cq-sidebar-title {
  color: var(--cq-text);
  font-size: 16px;
  font-weight: 900;
}

.cq-sidebar-user {
  color: var(--cq-subtle);
  font-size: 11px;
  margin-top: 2px;
}

.cq-new-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 11px;
}

.cq-new-grid button {
  min-height: 34px;
  padding: 6px 5px;
}

.cq-primary-button,
button.cq-primary-button {
  background: var(--cq-primary);
  border-color: var(--cq-primary);
  color: #fff;
}

.cq-primary-button:hover:not(:disabled),
button.cq-primary-button:hover:not(:disabled) {
  background: var(--cq-primary-hover);
  border-color: var(--cq-primary-hover);
}

.cq-danger-button {
  color: var(--cq-danger);
}

.cq-search-box {
  margin-top: 10px;
  position: relative;
}

.cq-search-box input {
  padding-right: 34px;
}

.cq-search-clear {
  border: 0;
  border-radius: 6px;
  color: var(--cq-subtle);
  min-height: 26px;
  min-width: 26px;
  padding: 2px;
  position: absolute;
  right: 5px;
  top: 5px;
}

.cq-status-tabs {
  background: var(--cq-soft);
  border-bottom: 1px solid var(--cq-border-soft);
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px 12px;
}

.cq-status-tab {
  background: transparent;
  border-color: transparent;
  min-height: 32px;
}

.cq-status-tab.is-active {
  background: #fff;
  border-color: var(--cq-border);
  color: var(--cq-primary);
  box-shadow: var(--cq-shadow);
}

.cq-quote-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
}

.cq-quote-card {
  background: #fff;
  border: 1px solid var(--cq-border-soft);
  border-radius: 9px;
  cursor: pointer;
  margin-bottom: 7px;
  padding: 10px;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.cq-quote-card:hover {
  background: #f8fbff;
  border-color: #b9c8dc;
}

.cq-quote-card.is-active {
  background: #f4f7ff;
  border-color: #6b86ca;
  box-shadow: inset 3px 0 0 var(--cq-primary);
}

.cq-quote-card-top,
.cq-quote-card-meta,
.cq-quote-card-bottom {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.cq-quote-card-no {
  color: var(--cq-primary);
  font-size: 11px;
  font-weight: 900;
}

.cq-quote-card-title {
  color: var(--cq-text);
  font-size: 13px;
  font-weight: 900;
  margin: 5px 0 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cq-quote-card-meta,
.cq-quote-card-bottom {
  color: var(--cq-subtle);
  font-size: 11px;
}

.cq-quote-card-customer {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cq-quote-card-amount {
  color: var(--cq-danger);
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 900;
}

.cq-sidebar-pager {
  align-items: center;
  border-top: 1px solid var(--cq-border-soft);
  color: var(--cq-subtle);
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  padding: 8px 12px;
}

.cq-sidebar-pager button,
.cq-catalog-pager button {
  min-height: 30px;
  padding: 5px 9px;
}

.cq-editor-shell {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cq-editor-top {
  align-items: flex-start;
  border-bottom: 1px solid var(--cq-border-soft);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 12px 14px;
}

.cq-editor-heading {
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
}

.cq-editor-title {
  color: var(--cq-text);
  font-size: 16px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cq-editor-meta {
  color: var(--cq-subtle);
  font-size: 11px;
  margin-top: 2px;
}

.cq-editor-actions {
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cq-editor-actions button {
  min-height: 33px;
  padding: 6px 10px;
}

.cq-save-state {
  align-items: center;
  background: var(--cq-soft);
  border: 1px solid var(--cq-border-soft);
  border-radius: 999px;
  color: var(--cq-subtle);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  min-height: 30px;
  padding: 5px 10px;
}

.cq-save-state.is-saved {
  background: var(--cq-success-soft);
  border-color: #a7f3d0;
  color: var(--cq-success);
}

.cq-save-state.is-dirty,
.cq-save-state.is-saving {
  background: var(--cq-warning-soft);
  border-color: #fed7aa;
  color: var(--cq-warning);
}

.cq-save-state.is-error,
.cq-save-state.is-conflict {
  background: var(--cq-danger-soft);
  border-color: #fecaca;
  color: var(--cq-danger);
}

.cq-editor-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.cq-section {
  background: #fff;
  border: 1px solid var(--cq-border);
  border-radius: var(--cq-radius);
  box-shadow: var(--cq-shadow);
  margin-bottom: 10px;
}

.cq-section-head {
  align-items: center;
  background: var(--cq-soft);
  border-bottom: 1px solid var(--cq-border-soft);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 40px;
  padding: 7px 11px;
}

.cq-section-title {
  color: var(--cq-text);
  font-size: 13px;
  font-weight: 900;
}

.cq-section-note {
  color: var(--cq-subtle);
  font-size: 11px;
}

.cq-section-body {
  padding: 11px;
}

.cq-meta-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 1.1fr 1fr 1fr;
}

.cq-field {
  min-width: 0;
}

.cq-field label,
.cq-field-label {
  color: #475569;
  display: block;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 4px;
}

.cq-field-title {
  grid-column: span 2;
}

.cq-field-address {
  grid-column: span 3;
}

.cq-field-note {
  grid-column: span 3;
}

.cq-conflict {
  align-items: center;
  background: var(--cq-danger-soft);
  border: 1px solid #fecaca;
  border-radius: var(--cq-radius);
  color: #7f1d1d;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 10px 12px;
}

.cq-conflict strong {
  color: #991b1b;
  display: block;
}

.cq-conflict-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.cq-line-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cq-line-toolbar button {
  min-height: 31px;
  padding: 5px 9px;
}

.cq-table-wrap {
  overflow-x: auto;
}

.cq-lines-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1420px;
  table-layout: fixed;
  width: 100%;
}

.cq-lines-table th,
.cq-lines-table td {
  border-bottom: 1px solid var(--cq-border-soft);
  border-right: 1px solid var(--cq-border-soft);
  padding: 6px;
  text-align: left;
  vertical-align: top;
}

.cq-lines-table th:last-child,
.cq-lines-table td:last-child {
  border-right: 0;
}

.cq-lines-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  position: sticky;
  top: 0;
  white-space: nowrap;
  z-index: 2;
}

.cq-lines-table tbody tr:hover {
  background: #f8fbff;
}

.cq-lines-table input,
.cq-lines-table textarea {
  border-color: transparent;
  border-radius: 6px;
  min-height: 31px;
  padding: 6px 7px;
}

.cq-lines-table textarea {
  min-height: 50px;
  resize: vertical;
}

.cq-lines-table input:hover,
.cq-lines-table textarea:hover {
  border-color: #d8e0eb;
}

.cq-col-index { width: 48px; }
.cq-col-category { width: 104px; }
.cq-col-brand { width: 104px; }
.cq-col-model { width: 222px; }
.cq-col-spec { width: 220px; }
.cq-col-quantity { width: 76px; }
.cq-col-reference { width: 130px; }
.cq-col-quoted { width: 110px; }
.cq-col-subtotal { width: 112px; }
.cq-col-remark { width: 176px; }
.cq-col-actions { width: 142px; }

.cq-row-index {
  color: var(--cq-subtle);
  font-size: 12px;
  font-weight: 900;
  padding-top: 8px;
  text-align: center;
}

.cq-model-stack {
  display: grid;
  gap: 4px;
}

.cq-secondary-input {
  color: #64748b;
  font-size: 11px !important;
}

.cq-source-label,
.cq-status-label,
.cq-change-label {
  border: 1px solid var(--cq-border);
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  padding: 3px 7px;
  white-space: nowrap;
}

.cq-source-label {
  background: var(--cq-blue-soft);
  border-color: #bfdbfe;
  color: var(--cq-blue);
  margin-top: 4px;
}

.cq-source-label.is-manual {
  background: #f8fafc;
  border-color: var(--cq-border);
  color: var(--cq-subtle);
}

.cq-change-label {
  background: var(--cq-warning-soft);
  border-color: #fed7aa;
  color: var(--cq-warning);
  margin-top: 5px;
}

.cq-reference-price {
  color: var(--cq-text);
  font-size: 13px;
  font-weight: 900;
  padding: 7px 2px 0;
}

.cq-reference-current {
  color: var(--cq-warning);
  font-size: 10px;
  line-height: 1.3;
  margin-top: 3px;
}

.cq-reference-update {
  color: var(--cq-blue);
  font-size: 10px;
  margin-top: 4px;
  min-height: 25px;
  padding: 3px 7px;
}

.cq-subtotal {
  color: var(--cq-danger);
  font-size: 13px;
  font-weight: 900;
  padding-top: 8px;
  text-align: right;
}

.cq-row-actions {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cq-row-actions button {
  border-radius: 6px;
  font-size: 11px;
  min-height: 28px;
  padding: 3px;
}

.cq-lines-empty,
.cq-list-empty,
.cq-empty-editor {
  color: var(--cq-subtle);
  text-align: center;
}

.cq-lines-empty {
  padding: 34px 12px !important;
}

.cq-list-empty {
  padding: 34px 12px;
}

.cq-empty-editor {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

.cq-empty-editor strong {
  color: var(--cq-text);
  font-size: 18px;
  margin-bottom: 5px;
}

.cq-quote-summary {
  align-items: center;
  background: var(--cq-soft);
  border-top: 1px solid var(--cq-border-soft);
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  padding: 10px 12px;
}

.cq-summary-item {
  color: var(--cq-subtle);
  font-size: 12px;
}

.cq-summary-item strong {
  color: var(--cq-text);
  font-size: 14px;
  margin-left: 5px;
}

.cq-summary-total strong {
  color: var(--cq-danger);
  font-size: 20px;
}

.cq-login-page {
  min-height: 100vh;
}

.cq-login-header {
  background: var(--cq-primary);
  color: #fff;
  padding: 15px 22px;
}

.cq-login-header strong {
  font-size: 17px;
}

.cq-login-wrap {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 58px);
  padding: 26px;
}

.cq-login-card {
  background: #fff;
  border: 1px solid var(--cq-border);
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  max-width: 460px;
  padding: 24px;
  width: 100%;
}

.cq-login-card h1 {
  color: var(--cq-text);
  font-size: 22px;
  margin: 0 0 5px;
}

.cq-login-card p {
  color: var(--cq-subtle);
  margin: 0;
}

.cq-login-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.cq-login-error {
  background: var(--cq-danger-soft);
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  font-weight: 800;
  padding: 9px 10px;
}

.cq-toast {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  max-width: min(420px, calc(100vw - 32px));
  padding: 10px 14px;
  position: fixed;
  right: 22px;
  top: 18px;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 300;
}

.cq-toast.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.cq-toast.is-success { background: #0f766e; }
.cq-toast.is-error { background: #991b1b; }

.cq-modal-backdrop {
  align-items: center;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 200;
}

.cq-modal {
  background: #fff;
  border: 1px solid var(--cq-border);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  max-width: 1120px;
  overflow: hidden;
  width: 100%;
}

.cq-modal-head {
  align-items: center;
  border-bottom: 1px solid var(--cq-border-soft);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.cq-modal-title {
  color: var(--cq-text);
  font-size: 16px;
  font-weight: 900;
}

.cq-modal-close {
  min-height: 32px;
  min-width: 32px;
  padding: 4px 8px;
}

/* 独立四则运算工具：不属于报价数据，不参与自动保存。 */
.cq-calculator {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  bottom: 20px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.24);
  color: var(--cq-text);
  overflow: hidden;
  position: fixed;
  right: 20px;
  touch-action: none;
  width: 304px;
  z-index: 180;
}

.cq-calculator:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.24), 0 18px 44px rgba(15, 23, 42, 0.24);
  outline: none;
}

.cq-calculator-head {
  align-items: center;
  background: var(--cq-primary);
  color: #fff;
  cursor: grab;
  display: flex;
  gap: 8px;
  min-height: 40px;
  padding: 7px 8px 7px 12px;
  user-select: none;
}

.cq-calculator-head:active {
  cursor: grabbing;
}

.cq-calculator-head > span {
  font-size: 13px;
  font-weight: 950;
}

.cq-calculator-head > small {
  color: #cbd5e1;
  flex: 1 1 auto;
  font-size: 10px;
  font-weight: 700;
}

.cq-calculator-head button {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  min-height: 26px;
  min-width: 28px;
  padding: 1px 5px 3px;
}

.cq-calculator-head button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.58);
}

.cq-calculator-display {
  background: #f8fafc;
  border-bottom: 1px solid var(--cq-border-soft);
  color: var(--cq-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1.25;
  min-height: 58px;
  overflow-wrap: anywhere;
  padding: 15px 14px 7px;
  text-align: right;
}

.cq-calculator-expression {
  background: #f8fafc;
  color: var(--cq-subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  min-height: 25px;
  overflow: hidden;
  padding: 0 14px 8px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cq-calculator-expression[data-calculator-error] {
  color: var(--cq-danger);
  text-align: left;
}

.cq-calculator-keys {
  background: #fff;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 9px;
}

.cq-calculator-keys button {
  border-radius: 8px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  min-height: 42px;
  padding: 5px;
}

.cq-calculator-keys .cq-calculator-utility {
  background: #f8fafc;
  color: #475569;
}

.cq-calculator-keys .cq-calculator-operator {
  background: #e8eef9;
  border-color: #b9c8e2;
  color: var(--cq-primary);
}

.cq-calculator-keys .cq-calculator-operator:hover:not(:disabled) {
  background: #dbe7fa;
  border-color: #93acd5;
}

.cq-calculator-keys .cq-calculator-equals {
  background: var(--cq-primary);
  border-color: var(--cq-primary);
  color: #fff;
  grid-row: span 2;
}

.cq-calculator-keys .cq-calculator-equals:hover:not(:disabled) {
  background: var(--cq-primary-hover);
  border-color: var(--cq-primary-hover);
}

.cq-calculator-keys .cq-calculator-zero {
  grid-column: span 2;
}

.cq-catalog-tools {
  align-items: center;
  background: var(--cq-soft);
  border-bottom: 1px solid var(--cq-border-soft);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 14px;
}

.cq-catalog-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 10px 14px;
}

.cq-catalog-table {
  border-collapse: collapse;
  width: 100%;
}

.cq-catalog-table th,
.cq-catalog-table td {
  border-bottom: 1px solid var(--cq-border-soft);
  padding: 8px;
  text-align: left;
  vertical-align: middle;
}

.cq-catalog-table th {
  background: var(--cq-soft);
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  position: sticky;
  top: 0;
  z-index: 1;
}

.cq-catalog-model {
  color: var(--cq-text);
  font-weight: 900;
}

.cq-catalog-spec {
  color: var(--cq-subtle);
  font-size: 11px;
  margin-top: 2px;
}

.cq-catalog-price {
  color: var(--cq-danger);
  font-weight: 900;
  white-space: nowrap;
}

.cq-catalog-pager {
  border-top: 1px solid var(--cq-border-soft);
  color: var(--cq-subtle);
  font-size: 12px;
  padding: 9px 14px;
}

.cq-modal-loading,
.cq-modal-empty {
  color: var(--cq-subtle);
  padding: 42px 18px;
  text-align: center;
}

.cq-small-muted {
  color: var(--cq-subtle);
  font-size: 11px;
}

.cq-hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .cq-shell {
    grid-template-columns: 270px minmax(0, 1fr);
  }

  .cq-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cq-field-title,
  .cq-field-address,
  .cq-field-note {
    grid-column: span 3;
  }
}

@media (max-width: 860px) {
  .cq-topbar {
    align-items: flex-start;
    padding: 9px 12px;
  }

  .cq-brand-subtitle,
  .cq-account,
  .cq-admin-link {
    display: none;
  }

  .cq-shell {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 58px);
    padding: 8px;
  }

  .cq-sidebar {
    max-height: 410px;
    min-height: 290px;
  }

  .cq-editor-shell {
    min-height: 720px;
  }

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

  .cq-field-title,
  .cq-field-address,
  .cq-field-note {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .cq-brand-mark {
    display: none;
  }

  .cq-topbar-actions {
    gap: 5px;
  }

  .cq-topbar-button {
    min-height: 32px;
    padding: 5px 8px;
  }

  .cq-editor-top {
    align-items: stretch;
    flex-direction: column;
  }

  .cq-editor-actions {
    justify-content: flex-start;
  }

  .cq-meta-grid {
    grid-template-columns: 1fr;
  }

  .cq-field-title,
  .cq-field-address,
  .cq-field-note {
    grid-column: span 1;
  }

  .cq-conflict {
    align-items: stretch;
    flex-direction: column;
  }

  .cq-conflict-actions {
    flex-wrap: wrap;
  }

  .cq-quote-summary {
    align-items: flex-end;
    flex-direction: column;
    gap: 3px;
  }

  .cq-modal-backdrop {
    padding: 8px;
  }

  .cq-catalog-tools {
    grid-template-columns: 1fr;
  }
}

/* Compact quote sheet ----------------------------------------------------- */

.cq-shell {
  gap: 10px;
  grid-template-columns: 280px minmax(0, 1fr);
  padding: 10px;
}

.cq-shell.is-sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.cq-shell.is-sidebar-collapsed .cq-sidebar {
  display: none;
}

.cq-sidebar,
.cq-editor-shell {
  border-radius: 10px;
}

.cq-sidebar-head {
  padding: 11px;
}

.cq-new-quote-button {
  margin-top: 9px;
  width: 100%;
}

.cq-quote-list {
  padding: 7px;
}

.cq-quote-card {
  margin-bottom: 6px;
  padding: 8px 9px;
}

.cq-editor-top {
  align-items: center;
  min-height: 52px;
  padding: 8px 11px;
}

.cq-editor-actions {
  gap: 6px;
}

.cq-editor-actions button {
  min-height: 30px;
  padding: 5px 9px;
}

.cq-save-state {
  min-height: 28px;
  padding: 4px 9px;
}

.cq-editor-scroll {
  background: #f4f6f8;
  padding: 9px;
}

.cq-sheet-head,
.cq-sheet-grid-section {
  background: #fff;
  border: 1px solid var(--cq-border);
  box-shadow: var(--cq-shadow);
}

.cq-sheet-head {
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  padding: 8px;
}

.cq-sheet-title-input {
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--cq-border-soft);
  border-radius: 0;
  color: var(--cq-text);
  font-size: 18px;
  font-weight: 900;
  height: 42px;
  letter-spacing: 0.02em;
  min-height: 42px;
  padding: 5px 10px 8px;
  text-align: center;
}

.cq-sheet-title-input:hover {
  background: #fbfdff;
}

.cq-sheet-title-input:focus {
  background: #fff;
  box-shadow: inset 0 -2px 0 #2563eb;
}

.cq-sheet-meta-grid {
  display: grid;
  gap: 6px;
  grid-template-areas: "customer customer order-note quote-date";
  grid-template-columns: minmax(160px, 0.7fr) minmax(180px, 0.8fr) minmax(320px, 1.5fr) minmax(180px, 0.8fr);
  padding-top: 7px;
}

.cq-sheet-meta-customer {
  grid-area: customer;
}

.cq-sheet-meta-order-note {
  grid-area: order-note;
}

.cq-sheet-meta-date {
  grid-area: quote-date;
}

.cq-sheet-meta-field {
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--cq-border-soft);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
}

.cq-sheet-meta-field > span {
  align-items: center;
  background: #f8fafc;
  color: #475569;
  display: flex;
  font-size: 11px;
  font-weight: 900;
  padding: 0 8px;
  white-space: nowrap;
}

.cq-sheet-meta-field input,
.cq-sheet-meta-field select {
  background: #fff;
  border: 0;
  border-left: 1px solid var(--cq-border-soft);
  border-radius: 0;
  box-shadow: none;
  height: 34px;
  min-height: 34px;
  padding: 6px 8px;
}

.cq-sheet-meta-field input:focus,
.cq-sheet-meta-field select:focus {
  box-shadow: inset 0 0 0 2px #2563eb;
}

.cq-sheet-more {
  border-top: 1px solid var(--cq-border-soft);
  margin-top: 7px;
  padding-top: 5px;
}

.cq-sheet-more > summary {
  color: var(--cq-subtle);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  list-style-position: inside;
  min-height: 24px;
  padding: 3px 2px;
  user-select: none;
}

.cq-sheet-more > summary:hover {
  color: var(--cq-primary);
}

.cq-sheet-more-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(160px, 0.7fr) minmax(180px, 0.8fr) minmax(320px, 1.5fr) minmax(180px, 0.8fr);
  padding-top: 5px;
}

.cq-sheet-grid-section {
  border-radius: 8px;
  overflow: hidden;
}

.cq-sheet-toolbar {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid var(--cq-border-soft);
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-height: 42px;
  padding: 5px 7px;
}

.cq-sheet-toolbar-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cq-sheet-toolbar button,
.cq-format-tools select {
  border-radius: 6px;
  font-size: 11px;
  min-height: 30px;
  padding: 4px 8px;
}

.cq-format-tools {
  flex: 0 0 auto;
}

.cq-format-tools label {
  align-items: center;
  color: #475569;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 5px;
  white-space: nowrap;
}

.cq-format-tools select {
  height: 30px;
  padding: 3px 24px 3px 7px;
  width: 76px;
}

.cq-format-bold {
  font-weight: 950;
  min-width: 48px;
}

.cq-format-bold.is-active {
  background: var(--cq-blue-soft);
  border-color: #93c5fd;
  color: var(--cq-blue);
  box-shadow: inset 0 0 0 1px #bfdbfe;
}

.cq-format-bold.is-mixed {
  border-style: dashed;
}

.cq-formula-bar {
  align-items: stretch;
  background: #fff;
  border-bottom: 1px solid var(--cq-border);
  display: grid;
  grid-template-columns: 112px 34px minmax(0, 1fr);
  min-height: 36px;
}

.cq-compatibility-region {
  background: #fff;
  border-bottom: 1px solid var(--cq-border);
}

.cq-compatibility-bar {
  align-items: center;
  background: #f8fafc;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 38px;
  padding: 5px 8px;
}

.cq-compatibility-badge {
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  padding: 5px 7px;
  white-space: nowrap;
}

.cq-compatibility-summary {
  color: #475569;
  font-size: 10px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cq-compatibility-actions {
  display: flex;
  gap: 5px;
}

.cq-compatibility-actions button {
  background: #fff;
  font-size: 10px;
  min-height: 27px;
  padding: 3px 7px;
}

.cq-compatibility-bar.is-risk .cq-compatibility-badge,
.cq-compatibility-check.is-risk span {
  color: #b42318;
}

.cq-compatibility-bar.is-pending .cq-compatibility-badge,
.cq-compatibility-check.is-pending span {
  color: #c2410c;
}

.cq-compatibility-bar.is-warn .cq-compatibility-badge,
.cq-compatibility-check.is-warn span {
  color: #a16207;
}

.cq-compatibility-bar.is-ok .cq-compatibility-badge,
.cq-compatibility-check.is-ok span {
  color: #15803d;
}

.cq-compatibility-bar.has-error {
  background: #fff7ed;
}

.cq-compatibility-details {
  background: #f8fafc;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 8px 7px;
}

.cq-compatibility-check {
  align-items: baseline;
  background: #fff;
  border: 1px solid var(--cq-border-soft);
  display: grid;
  gap: 6px;
  grid-template-columns: 74px minmax(0, 1fr);
  min-height: 32px;
  padding: 6px 8px;
}

.cq-compatibility-check span {
  font-size: 10px;
  font-weight: 950;
}

.cq-compatibility-check strong {
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.cq-formula-name,
.cq-formula-label {
  align-items: center;
  border-right: 1px solid var(--cq-border-soft);
  display: flex;
  min-width: 0;
}

.cq-formula-name {
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
  padding: 0 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cq-formula-label {
  color: var(--cq-subtle);
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: italic;
  justify-content: center;
}

.cq-formula-bar input,
.cq-formula-bar textarea {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: 35px;
  min-height: 35px;
  padding: 6px 9px;
  resize: none;
}

.cq-formula-bar input:focus,
.cq-formula-bar textarea:focus {
  box-shadow: inset 0 0 0 2px #2563eb;
}

.cq-table-wrap {
  background: #fff;
  max-height: calc(100vh - 350px);
  min-height: 260px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.cq-lines-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 960px;
  table-layout: fixed;
  width: 100%;
}

.cq-lines-table th,
.cq-lines-table td {
  border-bottom: 1px solid var(--cq-border-soft);
  border-right: 1px solid var(--cq-border-soft);
  padding: 0;
  text-align: left;
  vertical-align: middle;
}

.cq-lines-table th:last-child,
.cq-lines-table td:last-child {
  border-right: 0;
}

.cq-lines-table th {
  background: var(--cq-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  height: 34px;
  padding: 5px 7px;
  position: sticky;
  top: 0;
  white-space: nowrap;
  z-index: 4;
}

.cq-lines-table tbody tr {
  --cq-row-height: 37px;
  background: #fff;
  height: var(--cq-row-height);
}

.cq-lines-table tbody tr:nth-child(even) {
  background: #fbfcfe;
}

.cq-lines-table tbody tr:hover td {
  background: #f8fbff;
}

.cq-lines-table tbody tr.is-selected td {
  background: #eff6ff;
}

.cq-lines-table tbody tr.is-selected .cq-row-index {
  color: var(--cq-blue);
}

.cq-lines-table tbody tr.has-formula-error td {
  border-bottom-color: #fecaca;
}

.cq-lines-table .cq-sheet-cell {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--cq-text);
  font-size: 12px;
  height: var(--cq-row-height, 37px);
  min-height: var(--cq-row-height, 37px);
  padding: 6px 8px;
  width: 100%;
}

.cq-lines-table .cq-sheet-cell:hover {
  background: rgba(255, 255, 255, 0.72);
}

.cq-lines-table .cq-sheet-cell:focus {
  background: #fff;
  box-shadow: inset 0 0 0 2px #2563eb;
  position: relative;
  z-index: 3;
}

.cq-lines-table textarea.cq-multiline-cell {
  line-height: 1.35;
  max-height: max(120px, var(--cq-row-height, 37px));
  overflow: auto;
  resize: none;
  white-space: pre-wrap;
}

.cq-lines-table textarea.cq-remark-cell { resize: none; }

.cq-lines-table .cq-sheet-cell.is-error {
  background: #fff1f2;
  color: var(--cq-danger);
  box-shadow: inset 0 0 0 1px #fca5a5;
}

.cq-lines-table .cq-sheet-cell.is-error:focus {
  box-shadow: inset 0 0 0 2px var(--cq-danger);
}

.cq-col-select { width: 34px; }
.cq-col-index { width: 42px; }
.cq-col-category { width: 92px; }
.cq-col-line { width: 360px; }
.cq-col-quantity { width: 74px; }
.cq-col-price { width: 112px; }
.cq-col-total { width: 112px; }
.cq-col-remark { width: 160px; }

.cq-row-select,
.cq-row-index {
  background: #f8fafc;
  text-align: center !important;
}

.cq-row-select input,
.cq-lines-table thead input[data-select-all] {
  accent-color: var(--cq-blue);
  border-radius: 4px;
  height: 16px;
  margin: 0;
  min-height: 16px;
  padding: 0;
  vertical-align: middle;
  width: 16px;
}

.cq-lines-table thead input[data-select-all] {
  accent-color: #fff;
}

.cq-row-index {
  color: var(--cq-subtle);
  font-size: 11px;
  font-weight: 900;
  padding: 0 !important;
}

.cq-line-text-cell,
.cq-price-cell {
  height: var(--cq-row-height, 37px);
  position: relative;
}

.cq-line-text-cell {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  height: auto;
  min-height: var(--cq-row-height, 37px);
}

.cq-remark-table-cell {
  background: #fff;
  padding: 0 !important;
  position: relative;
  vertical-align: top !important;
}

.cq-lines-table tbody tr:nth-child(even) .cq-remark-table-cell {
  background: #fbfcfe;
}

.cq-remark-table-cell.is-merged {
  border-left: 1px solid #bfdbfe;
}

.cq-remark-editor {
  align-content: start;
  display: grid;
  min-height: var(--cq-remark-span-height, var(--cq-row-height, 37px));
  position: relative;
}

.cq-remark-editor.has-image {
  height: var(--cq-remark-span-height, var(--cq-row-height, 120px));
  min-height: var(--cq-remark-span-height, var(--cq-row-height, 120px));
  overflow: hidden;
}

.cq-remark-table-cell.is-merged:not(.has-image) .cq-remark-editor {
  align-content: center;
  height: var(--cq-remark-span-height, var(--cq-row-height, 37px));
}

.cq-remark-editor .cq-remark-cell {
  min-height: 36px;
}

.cq-remark-empty-actions,
.cq-remark-image-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px 6px 6px;
}

.cq-remark-empty-actions {
  bottom: 4px;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  position: absolute;
  right: 4px;
  transition: opacity 120ms ease;
  z-index: 2;
}

.cq-remark-table-cell:hover .cq-remark-empty-actions,
.cq-remark-table-cell:focus-within .cq-remark-empty-actions {
  opacity: 1;
  pointer-events: auto;
}

.cq-remark-empty-actions button,
.cq-remark-image-actions button,
.cq-remark-image-actions a {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-color: #cbd5e1;
  border-radius: 5px;
  color: #1d4ed8;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  min-height: 24px;
  padding: 3px 6px;
  text-decoration: none;
}

.cq-remark-image-actions button.cq-danger-text {
  color: var(--cq-danger);
}

.cq-remark-image-wrap {
  height: 100%;
  min-height: 0;
  padding: 3px;
  position: relative;
}

.cq-remark-image-preview {
  background: #fff;
  border: 1px solid var(--cq-border);
  border-radius: 6px;
  display: block;
  height: 100%;
  min-height: 30px;
  overflow: hidden;
  padding: 2px;
  width: 100%;
}

.cq-remark-image-preview img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.cq-remark-image-actions {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 7px;
  bottom: 7px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  opacity: 0;
  padding: 3px;
  pointer-events: none;
  position: absolute;
  right: 7px;
  transition: opacity 120ms ease;
  z-index: 3;
}

.cq-remark-image-wrap:hover .cq-remark-image-actions,
.cq-remark-image-wrap:focus-within .cq-remark-image-actions {
  opacity: 1;
  pointer-events: auto;
}

.cq-remark-image-fallback {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  color: #64748b;
  display: none;
  flex-direction: column;
  font-size: 10px;
  font-weight: 700;
  gap: 5px;
  height: 100%;
  justify-content: center;
  min-height: 48px;
  padding: 8px;
  text-align: center;
}

.cq-remark-image-fallback.is-visible { display: flex; }

.cq-remark-image-fallback a {
  color: #1d4ed8;
  font-weight: 900;
}

.cq-remark-select-handle {
  background: #2563eb;
  border: 0;
  border-radius: 0;
  bottom: 0;
  cursor: cell;
  left: 0;
  min-height: 0;
  opacity: 0.18;
  padding: 0;
  position: absolute;
  top: 0;
  transition: opacity 100ms ease, width 100ms ease;
  width: 10px;
  z-index: 5;
}

.cq-remark-table-cell:hover .cq-remark-select-handle,
.cq-remark-select-handle:focus,
.cq-remark-dragging .cq-remark-select-handle {
  opacity: 0.55;
  width: 13px;
}

body.cq-remark-dragging,
body.cq-remark-dragging * {
  cursor: cell !important;
  user-select: none !important;
}

.cq-image-preview-modal {
  max-width: min(92vw, 1080px);
}

.cq-image-preview-body {
  align-items: center;
  background: #f8fafc;
  display: flex;
  height: min(72vh, 720px);
  justify-content: center;
  max-height: calc(100vh - 130px);
  min-height: 360px;
  padding: 18px;
}

.cq-image-preview-body img {
  display: block;
  height: 100%;
  max-height: 76vh;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.cq-image-preview-fallback {
  align-items: center;
  color: #64748b;
  display: none;
  flex-direction: column;
  font-size: 13px;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  min-height: 220px;
  text-align: center;
}

.cq-image-preview-fallback.is-visible { display: flex; }

.cq-image-preview-fallback a {
  color: #1d4ed8;
  font-weight: 900;
}

.cq-visually-hidden {
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  clip: rect(0 0 0 0) !important;
}

.cq-line-text-cell .cq-sheet-cell {
  min-width: 0;
  padding-right: 8px;
  scrollbar-width: none;
}

.cq-line-text-cell .cq-sheet-cell::-webkit-scrollbar {
  display: none;
}

.cq-catalog-mark {
  background: var(--cq-blue-soft);
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: var(--cq-blue);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  padding: 3px 5px;
  pointer-events: none;
  align-self: start;
  flex: 0 0 auto;
  margin: 10px 6px 0 2px;
  position: static;
}

.cq-number-cell {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.cq-price-cell .cq-sheet-cell {
  padding-bottom: 12px;
}

.cq-price-hint {
  bottom: 2px;
  color: var(--cq-subtle);
  font-size: 9px;
  left: 7px;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  right: 4px;
  white-space: nowrap;
}

.cq-price-hint.is-changed {
  color: var(--cq-warning);
  font-weight: 800;
  pointer-events: auto;
}

.cq-price-hint button {
  border-radius: 4px;
  color: var(--cq-warning);
  font-size: 9px;
  line-height: 1;
  margin-left: 2px;
  min-height: 15px;
  padding: 0 3px;
}

.cq-subtotal-cell {
  color: var(--cq-danger) !important;
  font-weight: 900;
}

.cq-lines-table tfoot td {
  background: #fff;
  border-bottom: 0;
  border-top: 2px solid var(--cq-primary);
  color: var(--cq-text);
  font-size: 12px;
  font-weight: 800;
  height: 38px;
  padding: 0 7px;
  position: sticky;
  bottom: 0;
  z-index: 3;
}

.cq-sheet-footer-input {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: 35px;
  min-height: 35px;
  padding: 5px 6px;
}

.cq-sheet-footer-input:focus {
  background: #fff;
  box-shadow: inset 0 0 0 2px #2563eb;
}

.cq-sheet-footer-note {
  min-width: 280px;
}

.cq-sheet-count {
  color: var(--cq-subtle) !important;
  font-size: 11px !important;
  padding-left: 12px !important;
  text-align: left !important;
  white-space: nowrap;
}

.cq-total-label {
  color: #475569 !important;
  text-align: right !important;
}

.cq-total-value {
  color: var(--cq-danger) !important;
  font-size: 16px !important;
  font-variant-numeric: tabular-nums;
  font-weight: 950 !important;
  text-align: right !important;
  white-space: nowrap;
}

.cq-lines-empty {
  height: 180px;
  padding: 40px 12px !important;
}

.cq-sheet-footnote {
  background: #f8fafc;
  border-top: 1px solid var(--cq-border-soft);
  color: var(--cq-subtle);
  font-size: 10px;
  padding: 5px 8px;
}

@media (max-width: 1200px) {
  .cq-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .cq-shell.is-sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }

  .cq-sheet-meta-grid {
    grid-template-areas:
      "customer quote-date"
      "order-note order-note";
    grid-template-columns: minmax(240px, 1.4fr) minmax(180px, 0.8fr);
  }

  .cq-sheet-meta-order-note {
    grid-column: auto;
  }

  .cq-sheet-more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cq-sheet-meta-address {
    grid-column: span 2;
  }

  .cq-lines-table {
    min-width: 920px;
  }

  .cq-col-line { width: 320px; }
  .cq-col-remark { width: 140px; }
}

@media (max-width: 900px) {
  .cq-shell {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 58px);
    padding: 7px;
  }

  .cq-sidebar {
    max-height: 330px;
    min-height: 260px;
  }

  .cq-editor-shell {
    min-height: 720px;
  }

  .cq-sheet-meta-grid,
  .cq-sheet-more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cq-sheet-meta-grid {
    grid-template-areas:
      "customer quote-date"
      "order-note order-note";
  }

  .cq-sheet-meta-address {
    grid-column: span 2;
  }

  .cq-sheet-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .cq-format-tools {
    border-top: 1px solid var(--cq-border-soft);
    padding-top: 5px;
    width: 100%;
  }

  .cq-table-wrap {
    max-height: 520px;
  }
}

@media (max-width: 600px) {
  .cq-editor-scroll {
    padding: 6px;
  }

  .cq-sheet-head {
    padding: 6px;
  }

  .cq-sheet-title-input {
    font-size: 16px;
  }

  .cq-sheet-meta-grid,
  .cq-sheet-more-grid {
    grid-template-columns: 1fr;
  }

  .cq-sheet-meta-grid {
    grid-template-areas:
      "customer"
      "order-note"
      "quote-date";
  }

  .cq-sheet-meta-address {
    grid-column: span 1;
  }

  .cq-sheet-toolbar-group {
    width: 100%;
  }

  .cq-sheet-toolbar button {
    flex: 1 1 auto;
  }

  .cq-format-tools label {
    flex: 1 1 auto;
  }

  .cq-formula-bar {
    grid-template-columns: 82px 30px minmax(0, 1fr);
  }

  .cq-lines-table {
    min-width: 820px;
  }

  .cq-col-line { width: 280px; }
  .cq-col-remark { width: 120px; }

  .cq-sheet-footnote {
    display: none;
  }
}

/* Workspace, collaboration and multi-sheet controls -------------------- */

.cq-scope-tabs {
  background: #eef2f7;
  border: 1px solid var(--cq-border-soft);
  border-radius: 7px;
  display: grid;
  gap: 3px;
  grid-template-columns: 1fr 1fr;
  margin-top: 9px;
  padding: 3px;
}

.cq-scope-tabs button {
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  min-height: 30px;
  padding: 4px 8px;
}

.cq-scope-tabs button.is-active {
  background: #fff;
  color: var(--cq-primary);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.cq-quote-card-title {
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.35;
  margin-top: 0;
}

.cq-quote-card-heading {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.cq-quote-card-heading .cq-quote-card-title {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
}

.cq-quote-card-heading .cq-quote-card-no {
  flex: 0 1 auto;
  font-size: 9px;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cq-quote-card-summary {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  margin-top: 5px;
  min-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cq-archive-owner-head {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid var(--cq-border-soft);
  display: flex;
  gap: 8px;
  min-height: 40px;
  padding: 6px 10px;
}

.cq-archive-owner-head button {
  background: #fff;
  border-color: var(--cq-border);
  color: var(--cq-primary);
  font-size: 10px;
  min-height: 28px;
  padding: 4px 7px;
}

.cq-archive-owner-head strong {
  color: var(--cq-text);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cq-archive-owner-list {
  display: grid;
  gap: 7px;
}

.cq-archive-owner {
  align-items: center;
  background: #fff;
  border: 1px solid var(--cq-border-soft);
  border-radius: 9px;
  color: var(--cq-text);
  display: grid;
  gap: 9px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-height: 54px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.cq-archive-owner:hover,
.cq-archive-owner:focus-visible {
  background: #f8fbff;
  border-color: #9fb2d0;
}

.cq-archive-owner-avatar {
  align-items: center;
  background: var(--cq-blue-soft);
  border-radius: 8px;
  color: var(--cq-blue);
  display: flex;
  font-size: 14px;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.cq-archive-owner-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cq-archive-owner-copy strong,
.cq-archive-owner-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cq-archive-owner-copy strong {
  font-size: 12px;
}

.cq-archive-owner-copy small {
  color: var(--cq-subtle);
  font-size: 9px;
  margin-top: 2px;
}

.cq-archive-owner-count {
  background: #eef2f7;
  border-radius: 999px;
  color: #475569;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 7px;
}

.cq-quote-card-info {
  align-items: center;
  border-top: 1px solid var(--cq-border-soft);
  color: var(--cq-subtle);
  display: flex;
  flex-wrap: wrap;
  font-size: 10px;
  gap: 3px 8px;
  margin-top: 6px;
  padding-top: 6px;
}

.cq-quote-card-info .cq-quote-card-no {
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 900;
}

.cq-quote-card-info .cq-quote-card-amount {
  color: var(--cq-danger);
  font-size: 11px;
  margin-left: auto;
}

.cq-sheet-tabs-bar {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid var(--cq-border);
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  min-height: 45px;
  padding: 6px 10px;
}

.cq-sheet-tabs {
  align-items: center;
  display: flex;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: thin;
}

.cq-sheet-tab {
  align-items: center;
  background: #fff;
  border: 1px solid var(--cq-border);
  border-radius: 6px 6px 2px 2px;
  color: #475569;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
  max-width: 180px;
  min-height: 31px;
  padding: 4px 9px;
}

.cq-sheet-tab span {
  font-size: 11px;
  font-weight: 850;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cq-sheet-tab small {
  background: #e2e8f0;
  border-radius: 999px;
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  line-height: 17px;
  min-width: 17px;
  text-align: center;
}

.cq-sheet-tab.is-active {
  background: var(--cq-primary);
  border-color: var(--cq-primary);
  color: #fff;
}

.cq-sheet-tab.is-active small {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.cq-sheet-tab-actions,
.cq-zoom-tools {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
}

.cq-sheet-tab-actions button,
.cq-zoom-tools button,
.cq-zoom-tools select {
  border-radius: 5px;
  font-size: 10px;
  min-height: 29px;
  padding: 3px 7px;
}

.cq-zoom-tools {
  background: #fff;
  border: 1px solid var(--cq-border-soft);
  border-radius: 6px;
  padding: 2px;
}

.cq-zoom-tools button {
  border: 0;
  font-size: 15px;
  min-width: 28px;
  padding: 0;
}

.cq-zoom-tools select {
  border: 0;
  color: #334155;
  font-weight: 850;
  min-width: 68px;
  padding-left: 5px;
}

.cq-access-notice {
  align-items: center;
  border: 1px solid;
  border-radius: 7px;
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  min-height: 37px;
  padding: 6px 10px;
}

.cq-access-notice strong {
  flex: 0 0 auto;
  font-size: 11px;
}

.cq-access-notice span {
  font-size: 11px;
  line-height: 1.45;
}

.cq-access-notice.is-readonly {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}

.cq-access-notice.is-granted {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.cq-access-notice.is-pending {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.cq-sheet-canvas {
  transform-origin: left top;
  zoom: var(--cq-sheet-zoom, 1);
}

.cq-sheet-canvas input:disabled,
.cq-sheet-canvas select:disabled {
  color: #334155;
  cursor: default;
  opacity: 1;
  -webkit-text-fill-color: #334155;
}

.cq-component-input {
  font-weight: 800;
}

.cq-inline-catalog {
  background: #fff;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.24);
  max-height: min(420px, calc(100vh - 20px));
  min-width: 420px;
  overflow: hidden;
  position: fixed;
  z-index: 1300;
}

.cq-inline-head {
  align-items: center;
  background: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
  color: #1d4ed8;
  display: flex;
  font-size: 11px;
  font-weight: 900;
  justify-content: space-between;
  min-height: 34px;
  padding: 5px 8px;
}

.cq-inline-head button {
  background: transparent;
  border: 0;
  color: #64748b;
  font-size: 10px;
  min-height: 24px;
  padding: 2px 5px;
}

.cq-inline-results {
  max-height: 360px;
  overflow-y: auto;
}

.cq-inline-results > button {
  align-items: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--cq-border-soft);
  border-radius: 0;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 48px;
  padding: 7px 10px;
  text-align: left;
  width: 100%;
}

.cq-inline-results > button:hover {
  background: #f8fbff;
}

.cq-inline-results > button span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cq-inline-results > button strong {
  color: #0f172a;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cq-inline-results > button small {
  color: #64748b;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cq-inline-results > button em {
  color: var(--cq-danger);
  flex: 0 0 auto;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.cq-inline-empty {
  color: var(--cq-subtle);
  font-size: 11px;
  padding: 18px 12px;
  text-align: center;
}

.cq-grant-modal {
  max-width: 760px;
}

.cq-grant-body {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  padding: 14px;
}

.cq-grant-body section {
  border: 1px solid var(--cq-border-soft);
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
}

.cq-grant-body h3 {
  background: #f8fafc;
  border-bottom: 1px solid var(--cq-border-soft);
  font-size: 12px;
  margin: 0;
  padding: 9px 10px;
}

.cq-grant-section-head {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid var(--cq-border-soft);
  display: flex;
  justify-content: space-between;
}

.cq-grant-section-head h3 {
  border-bottom: 0;
  flex: 1 1 auto;
}

.cq-grant-section-head label {
  align-items: center;
  color: #475569;
  display: flex;
  font-size: 10px;
  font-weight: 800;
  gap: 5px;
  padding: 7px 10px;
}

.cq-grant-section-head input,
.cq-request-row input {
  accent-color: var(--cq-blue);
  height: 16px;
  margin: 0;
  min-height: 16px;
  width: 16px;
}

.cq-request-list {
  max-height: 310px;
  overflow-y: auto;
}

.cq-request-row {
  align-items: center;
  border-bottom: 1px solid var(--cq-border-soft);
  cursor: pointer;
  display: grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 52px;
  padding: 8px 10px;
}

.cq-request-row:hover {
  background: #f8fbff;
}

.cq-request-row span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cq-request-row strong {
  color: var(--cq-text);
  font-size: 12px;
}

.cq-request-row small {
  color: #64748b;
  font-size: 10px;
}

.cq-request-actions {
  align-items: center;
  background: #f8fafc;
  border-top: 1px solid var(--cq-border-soft);
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  padding: 8px 10px;
}

.cq-request-actions button {
  font-size: 10px;
  min-height: 30px;
  padding: 4px 9px;
}

.cq-grant-search {
  border-radius: 6px;
  margin: 9px;
  min-height: 35px;
  width: calc(100% - 18px);
}

.cq-grant-row,
.cq-candidate-list > button {
  align-items: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--cq-border-soft);
  border-radius: 0;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-height: 48px;
  padding: 7px 9px;
  text-align: left;
  width: 100%;
}

.cq-grant-row > div,
.cq-candidate-list > button > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cq-grant-row strong,
.cq-candidate-list strong {
  font-size: 12px;
}

.cq-grant-row span,
.cq-candidate-list small {
  color: #64748b;
  font-size: 10px;
}

.cq-candidate-list {
  max-height: 310px;
  overflow-y: auto;
}

.cq-candidate-list > button:hover:not(:disabled) {
  background: #f8fbff;
}

.cq-candidate-list em {
  color: #1d4ed8;
  flex: 0 0 auto;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 1200px) {
  .cq-sheet-tabs-bar {
    grid-template-columns: minmax(180px, 1fr) auto;
  }

  .cq-zoom-tools {
    grid-column: 2;
    justify-self: end;
  }

  .cq-sheet-tab-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .cq-sheet-tabs-bar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .cq-sheet-tab-actions,
  .cq-zoom-tools {
    grid-column: 1;
    justify-content: flex-start;
    justify-self: stretch;
  }

  .cq-grant-body {
    grid-template-columns: 1fr;
  }

  .cq-compatibility-bar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .cq-compatibility-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .cq-compatibility-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cq-calculator {
    bottom: 8px;
    max-width: calc(100vw - 16px);
    right: 8px;
    width: 304px;
  }

  .cq-inline-catalog {
    left: 8px !important;
    min-width: 0;
    right: 8px;
    width: auto !important;
  }

  .cq-sheet-tab-actions button {
    flex: 1 1 auto;
  }

  .cq-access-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

/* 客户报价快照：与编辑区完全分离，避免内部目录和参考价进入分享画面。 */
.cq-client-snapshot-backdrop {
  align-items: flex-start;
  background: #f8fafc;
  overflow: auto;
}

.cq-client-snapshot-modal {
  max-width: 1220px;
}

.cq-client-snapshot-modal-head {
  flex: 0 0 auto;
}

.cq-client-snapshot-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.cq-client-snapshot-paper {
  background: #fff;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 24px;
}

.cq-client-snapshot-heading {
  border-bottom: 2px solid var(--cq-primary);
  margin-bottom: 16px;
  padding: 0 4px 11px;
  text-align: center;
}

.cq-client-snapshot-heading h1 {
  color: var(--cq-text);
  font-size: 23px;
  font-weight: 950;
  letter-spacing: 0.04em;
  margin: 0;
}

.cq-client-snapshot-heading p {
  color: var(--cq-subtle);
  font-size: 12px;
  font-weight: 700;
  margin: 6px 0 0;
}

.cq-client-snapshot-meta {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 14px;
}

.cq-client-snapshot-meta > div {
  border: 1px solid var(--cq-border-soft);
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  min-width: 0;
}

.cq-client-snapshot-meta dt {
  align-items: center;
  background: #f8fafc;
  border-right: 1px solid var(--cq-border-soft);
  color: #475569;
  display: flex;
  font-size: 11px;
  font-weight: 900;
  padding: 7px 8px;
}

.cq-client-snapshot-meta dd {
  color: var(--cq-text);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 7px 9px;
  white-space: pre-wrap;
}

.cq-client-snapshot-table-wrap {
  border: 1px solid var(--cq-border);
  overflow: auto;
}

.cq-client-snapshot-table {
  border-collapse: collapse;
  color: var(--cq-text);
  min-width: 890px;
  table-layout: fixed;
  width: 100%;
}

.cq-client-snapshot-table th,
.cq-client-snapshot-table td {
  border: 1px solid var(--cq-border-soft);
  padding: 8px 9px;
  text-align: left;
  vertical-align: middle;
}

.cq-client-snapshot-table thead th {
  background: var(--cq-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.cq-client-snapshot-table tbody tr:nth-child(even) td {
  background: #fbfcfe;
}

.cq-client-snapshot-table tbody td {
  font-size: 13px;
  line-height: 1.45;
}

.cq-client-snapshot-index {
  color: #64748b;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  text-align: center !important;
}

.cq-client-snapshot-model,
.cq-client-snapshot-remark-copy {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.cq-client-snapshot-number,
.cq-client-snapshot-money {
  font-variant-numeric: tabular-nums;
  text-align: right !important;
  white-space: nowrap;
}

.cq-client-snapshot-money.is-total,
.cq-client-snapshot-total-value {
  color: var(--cq-danger);
  font-weight: 950;
}

.cq-client-snapshot-remark {
  min-width: 0;
  text-align: center !important;
}

.cq-client-snapshot-remark.has-image {
  padding: 5px;
}

.cq-client-snapshot-remark.is-merged {
  vertical-align: middle;
}

.cq-client-snapshot-image-wrap {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 80px;
  position: relative;
  width: 100%;
}

.cq-client-snapshot-image-wrap img {
  display: block;
  max-height: 220px;
  max-width: 100%;
  object-fit: contain;
}

.cq-client-snapshot-image-fallback {
  color: var(--cq-subtle);
  display: none;
  font-size: 11px;
  padding: 10px 4px;
}

.cq-client-snapshot-image-fallback.is-visible {
  display: block;
}

.cq-client-snapshot-empty {
  color: #94a3b8;
}

.cq-client-snapshot-empty-lines {
  color: var(--cq-subtle);
  padding: 38px 12px !important;
  text-align: center !important;
}

.cq-client-snapshot-table tfoot td {
  background: #f8fafc;
  border-top: 2px solid var(--cq-primary);
  font-size: 12px;
}

.cq-client-snapshot-count {
  color: var(--cq-subtle);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  text-align: left !important;
  white-space: nowrap;
}

.cq-client-snapshot-footer-note {
  font-weight: 750;
  text-align: center !important;
  white-space: pre-wrap;
}

.cq-client-snapshot-total-label {
  color: #475569;
  font-weight: 900;
  text-align: right !important;
}

.cq-client-snapshot-total-value {
  font-size: 17px !important;
  font-variant-numeric: tabular-nums;
  text-align: right !important;
  white-space: nowrap;
}

.cq-client-col-index { width: 54px; }
.cq-client-col-category { width: 100px; }
.cq-client-col-model { width: 34%; }
.cq-client-col-quantity { width: 76px; }
.cq-client-col-price { width: 112px; }
.cq-client-col-total { width: 118px; }
.cq-client-col-remark { width: 19%; }

@media (max-width: 760px) {
  .cq-client-snapshot-backdrop {
    padding: 8px;
  }

  .cq-client-snapshot-paper {
    padding: 14px;
  }

  .cq-client-snapshot-heading h1 {
    font-size: 19px;
  }

  .cq-client-snapshot-meta {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    margin: 10mm;
  }

  body.cq-client-snapshot-printing > * {
    display: none !important;
  }

  #cloud-quote-calculator {
    display: none !important;
  }

  body.cq-client-snapshot-printing > #cloud-quote-modal,
  body.cq-client-snapshot-printing .cq-client-snapshot-backdrop,
  body.cq-client-snapshot-printing .cq-client-snapshot-modal,
  body.cq-client-snapshot-printing .cq-client-snapshot-paper {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    position: static !important;
  }

  body.cq-client-snapshot-printing .cq-client-snapshot-backdrop,
  body.cq-client-snapshot-printing .cq-client-snapshot-modal,
  body.cq-client-snapshot-printing .cq-client-snapshot-paper {
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  body.cq-client-snapshot-printing .cq-client-snapshot-modal-head {
    display: none !important;
  }

  body.cq-client-snapshot-printing .cq-client-snapshot-table-wrap {
    overflow: visible !important;
  }

  body.cq-client-snapshot-printing .cq-client-snapshot-table th,
  body.cq-client-snapshot-printing .cq-client-snapshot-table td {
    break-inside: avoid;
  }
}
