:root {
  --bg: #e6eff3;
  --surface: rgba(247, 250, 252, 0.92);
  --surface-strong: #ffffff;
  --ink: #163240;
  --muted: #6b818d;
  --line: rgba(22, 50, 64, 0.1);
  --accent: #6ea6b7;
  --accent-deep: #214b5e;
  --accent-soft: #edf6f8;
  --shadow: 0 30px 80px rgba(24, 49, 62, 0.12);
  --paper-width: 210mm;
  --paper-height: 296.5mm;
  --paper-padding-x: 48px;
  --paper-padding-top: 52px;
  --paper-padding-bottom: 40px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.98), transparent 30%),
    linear-gradient(135deg, #edf4f7 0%, #dce8ee 40%, #ccdde4 100%);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.export-mode {
  background: white;
}

body.export-mode *,
body.export-mode *::before,
body.export-mode *::after {
  animation: none !important;
  transition: none !important;
}

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

.app-shell {
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  padding: 32px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.65);
  background: linear-gradient(180deg, rgba(241, 247, 249, 0.92), rgba(224, 235, 240, 0.9));
  backdrop-filter: blur(20px);
  overflow-y: auto;
}

.brand-block,
.panel,
.preview-toolbar,
.invoice-sheet {
  animation: rise 500ms ease both;
}

.brand-block h1,
.preview-toolbar h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #556f7f;
}

.intro {
  margin: 14px 0 0;
  max-width: 28rem;
  line-height: 1.6;
  color: var(--muted);
}

.panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(24, 49, 62, 0.06);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 1rem;
}

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

.stack-fields {
  display: grid;
  gap: 14px;
}

.field-tip {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--muted);
}

.full-span {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(47, 109, 139, 0.12);
}

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

.item-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 0.8fr 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.ghost-button,
.secondary-button,
.primary-button,
.delete-item {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.ghost-button,
.delete-item,
.secondary-button {
  padding: 10px 14px;
  color: var(--accent-deep);
  background: rgba(47, 109, 139, 0.1);
}

.primary-button {
  padding: 14px 18px;
  color: white;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  box-shadow: 0 14px 26px rgba(24, 63, 84, 0.28);
}

.secondary-button {
  padding: 14px 18px;
}

.ghost-button:hover,
.secondary-button:hover,
.primary-button:hover,
.delete-item:hover {
  transform: translateY(-1px);
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0 10px;
}

.export-status {
  margin: 0;
  padding: 0 4px;
  color: var(--muted);
  line-height: 1.5;
  min-height: 24px;
}

.export-status[data-tone="error"] {
  color: #b0413e;
}

.preview-stage {
  padding: 24px;
  overflow: auto;
}

body.export-mode .sidebar,
body.export-mode .preview-toolbar,
body.export-mode .export-status {
  display: none;
}

body.export-mode .app-shell {
  display: block;
}

body.export-mode .preview-stage {
  padding: 0;
  overflow: visible;
}

body.export-mode .preview-pages {
  gap: 0;
}

.preview-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.toolbar-tip {
  margin: 0;
  max-width: 18rem;
  color: var(--muted);
  text-align: right;
  line-height: 1.5;
}

.invoice-sheet {
  width: min(var(--paper-width), 100%);
  margin: 0 auto;
  padding: calc(var(--paper-padding-top) - 4px) calc(var(--paper-padding-x) + 4px) calc(var(--paper-padding-bottom) + 4px);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(231, 242, 247, 0.92), transparent 24%),
    linear-gradient(180deg, rgba(241, 247, 250, 0.96) 0, rgba(241, 247, 250, 0.32) 180px, rgba(255, 255, 255, 0) 181px),
    var(--surface-strong);
  box-shadow: var(--shadow);
  border: 1px solid rgba(17, 43, 58, 0.05);
}

#invoice-sheet {
  display: none;
}

.preview-pages {
  display: grid;
  gap: 24px;
}

.page-measure {
  position: absolute;
  left: -99999px;
  top: 0;
  width: var(--paper-width);
  visibility: hidden;
  pointer-events: none;
}

.pdf-page {
  width: var(--paper-width);
  min-height: var(--paper-height);
  margin: 0 auto;
  break-inside: avoid;
  page-break-inside: avoid;
}

.pdf-page-preview {
  filter: none;
}

.pdf-page-export .export-sheet {
  border-radius: 0;
  box-shadow: none;
}

.export-sheet {
  min-height: var(--paper-height);
  height: var(--paper-height);
  background: white;
  overflow: hidden;
  box-sizing: border-box;
}

.export-minihead {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: start;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(17, 43, 58, 0.08);
}

.compact-logo-slot {
  width: 246px;
  min-height: 94px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
}

.export-minihead-title {
  margin: 0;
  font-size: 1.68rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #173646;
}

.export-minihead-subtitle {
  margin: 8px 0 0;
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #76909d;
}

.minihead-primary {
  display: grid;
  gap: 6px;
}

.export-minihead-meta {
  display: grid;
  gap: 8px;
  text-align: right;
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 4px;
}

.minihead-meta-label {
  font-weight: 700;
  color: #1d4254;
}

.export-minihead-stack {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.continued-label {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #607786;
}

.page-marker {
  margin-top: 22px;
  text-align: right;
  font-size: 0.76rem;
  color: #8ba2ad;
}

.export-summary-grid,
.export-sheet-footer,
.summary-box,
.summary-notes,
.meta-card,
.logo-slot,
.invoice-header,
.meta-grid,
.facts-grid {
  break-inside: avoid;
  page-break-inside: avoid;
}

.invoice-header {
  display: block;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(17, 43, 58, 0.08);
}

.invoice-header-quotation {
  padding-bottom: 26px;
}

.headline-group {
  display: grid;
  align-content: start;
  gap: 12px;
}

.sheet-title {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  font-weight: 800;
  line-height: 0.9;
  max-width: 8.2ch;
  letter-spacing: -0.05em;
  color: #173646;
}

.sheet-language-en .sheet-title {
  max-width: none;
  font-size: 2.85rem;
  line-height: 0.95;
  letter-spacing: 0.08em;
}

.sheet-language-en .sheet-subtitle:empty {
  display: none;
}

.sheet-subtitle {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #708894;
}

.document-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #86a1ac;
}

.header-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 244px;
  align-items: start;
  gap: 28px;
}

.issue-panel {
  width: 100%;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(84, 132, 152, 0.14);
  background: linear-gradient(180deg, rgba(240, 248, 251, 0.98), rgba(249, 252, 253, 0.98));
  display: grid;
  gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sheet-language-en .issue-panel {
  padding: 16px 18px;
  gap: 10px;
}

.header-contact {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px 20px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 43, 58, 0.08);
}

.header-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.header-contact-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6f8e9b;
  flex: 0 0 auto;
}

.header-contact-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.header-contact span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8aa1ac;
}

.header-contact strong {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #1d4254;
}

.issue-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
}

.issue-row span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7d97a3;
}

.issue-row strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1e4b5f;
}

.sheet-language-en .issue-row span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.sheet-language-en .issue-row strong {
  font-size: 0.9rem;
}

.sheet-language-bi .issue-panel {
  padding: 15px 18px 16px;
}

.sheet-language-bi .issue-row {
  align-items: center;
}

.sheet-language-bi .issue-row span {
  font-size: 0.66rem;
  line-height: 1.24;
  letter-spacing: 0.12em;
}

.sheet-language-bi .issue-row .dual-label {
  gap: 3px;
}

.sheet-language-bi .issue-row .dual-label-secondary {
  font-size: 0.9em;
}

.logo-slot {
  width: 100%;
  min-height: 136px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
}

.logo-slot-primary {
  min-height: 146px;
  align-self: stretch;
}

.brand-logo-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: saturate(0.97) contrast(1.02);
}

.brand-logo-image-primary {
  max-width: 286px;
}

.brand-logo-image-compact {
  max-width: 206px;
}

.logo-placeholder {
  display: grid;
  gap: 8px;
  text-align: center;
}

.logo-tag {
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: #285469;
}

.logo-helper {
  color: #7d95a0;
  font-size: 0.84rem;
}

#logo-image {
  max-width: 100%;
  max-height: 78px;
  object-fit: contain;
}

.meta-grid,
.facts-grid,
.summary-grid,
.sheet-footer {
  margin-top: 32px;
}

.meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(260px, 0.76fr);
  gap: 18px;
}

.sheet-language-en .meta-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 16px;
}

.meta-card,
.summary-box {
  padding: 24px 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(249, 252, 253, 0.98), rgba(244, 249, 251, 0.94));
  border: 1px solid rgba(17, 43, 58, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.meta-label {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #86a0ab;
}

.dual-label {
  display: inline-grid;
  gap: 2px;
}

.dual-label-primary {
  display: block;
}

.dual-label-secondary {
  display: block;
  font-size: 0.84em;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #6f7e88;
}

.meta-value {
  margin: 0;
  font-size: 1.62rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.meta-note {
  margin: 0;
  color: #5d7480;
  line-height: 1.55;
}

.meta-copy {
  display: grid;
  gap: 10px;
}

.buyer-card .meta-label,
.route-card .meta-label {
  margin-bottom: 16px;
}

.route-rows {
  display: grid;
  gap: 14px;
}

.route-rows div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(17, 43, 58, 0.06);
}

.route-rows div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.route-rows span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #88a1ac;
}

.route-rows strong {
  font-size: 0.96rem;
  font-weight: 800;
  color: #1c4658;
}

.sheet-language-en .route-card .meta-label,
.sheet-language-en .buyer-card .meta-label {
  margin-bottom: 14px;
}

.sheet-language-en .route-rows {
  gap: 12px;
}

.sheet-language-en .route-rows div {
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
}

.sheet-language-en .route-rows span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.sheet-language-en .route-rows strong {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sheet-language-bi .meta-grid {
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
  gap: 16px;
}

.sheet-language-bi .route-card .meta-label,
.sheet-language-bi .buyer-card .meta-label {
  margin-bottom: 12px;
}

.sheet-language-bi .route-rows {
  gap: 10px;
}

.sheet-language-bi .route-rows div {
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
}

.sheet-language-bi .route-rows span {
  font-size: 0.66rem;
  line-height: 1.2;
  letter-spacing: 0.12em;
}

.sheet-language-bi .route-rows .dual-label-secondary {
  font-size: 0.92em;
}

.sheet-language-bi .route-rows strong {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 22px;
  padding: 18px 0 4px;
  border-top: 1px solid rgba(17, 43, 58, 0.08);
  border-bottom: 1px solid rgba(17, 43, 58, 0.08);
}

.facts-grid div {
  padding: 16px 0;
  display: grid;
  gap: 10px;
  border-bottom: 1px solid rgba(17, 43, 58, 0.06);
}

.facts-grid div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.facts-grid span {
  color: #8aa2ad;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.facts-grid strong {
  font-size: 1rem;
  font-weight: 800;
}

.table-section {
  margin-top: 34px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 12px;
}

.section-kicker,
.table-currency {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #84a0ac;
}

.section-caption {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: #657d89;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border-top: 1px solid rgba(22, 50, 64, 0.08);
}

th,
td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: #85a0ab;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: rgba(249, 252, 253, 0.98);
}

th .dual-label {
  gap: 3px;
}

th .dual-label-secondary {
  font-size: 0.92em;
  color: #7f8f99;
}

td {
  line-height: 1.55;
  color: #244452;
}

th:first-child,
td:first-child {
  width: 48%;
}

th:nth-child(2),
td:nth-child(2),
th:nth-child(3),
td:nth-child(3),
th:nth-child(4),
td:nth-child(4) {
  width: 17.33%;
}

td:last-child,
th:last-child,
td:nth-last-child(2),
th:nth-last-child(2),
td:nth-last-child(3),
th:nth-last-child(3) {
  text-align: right;
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.summary-notes {
  margin: 18px 0 10px;
}

.compliance-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #6b838e;
}

.compliance-line-quotation {
  display: grid;
  gap: 8px;
}

.compliance-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8ba1ac;
  white-space: nowrap;
}

.compliance-text {
  color: #607782;
}

.compliance-note-line {
  display: block;
  color: #607782;
  line-height: 1.65;
}

.compliance-note-line-secondary {
  color: #6f7e88;
  font-size: 0.94em;
  font-style: italic;
}

.summary-box {
  display: grid;
  gap: 14px;
  background: linear-gradient(180deg, rgba(231, 242, 247, 0.98), rgba(245, 250, 252, 0.98));
  border-color: rgba(89, 142, 162, 0.15);
  align-self: start;
  margin-top: 6px;
}

.summary-title {
  margin: 0 0 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7f9aa6;
}

.summary-box div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(24, 49, 62, 0.07);
}

.summary-box div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.grand-total {
  margin-top: 6px;
  padding-top: 12px;
  font-size: 1.14rem;
  font-weight: 800;
  color: #15394b;
}

.summary-box-inline {
  margin-top: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.summary-box-inline div {
  padding: 12px 0;
  border-bottom: 1px solid rgba(24, 49, 62, 0.08);
}

.summary-box-inline span {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #86a0ab;
}

.sheet-language-en .summary-box-inline {
  margin-top: 16px;
}

.sheet-language-en .summary-box-inline span {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.sheet-language-bi .summary-box-inline span {
  font-size: 0.68rem;
  line-height: 1.2;
  letter-spacing: 0.12em;
}

.sheet-language-bi .summary-box-inline .dual-label {
  gap: 3px;
}

.summary-box-inline strong {
  font-size: 1rem;
  font-weight: 800;
  color: #1d4254;
}

.summary-box-inline .discount-row span {
  color: #9c6d58;
}

.summary-box-inline .discount-row strong {
  color: #c76b44;
}

.summary-box-inline .grand-total {
  margin-top: 2px;
  padding-top: 16px;
  border-top: 0;
}

.summary-box-inline .grand-total span {
  color: #7f99a5;
}

.summary-box-inline .grand-total strong {
  font-size: 1.16rem;
  color: #15394b;
}

.sheet-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 4px;
}

.signature-block {
  padding-top: 10px;
}

.signature-line {
  height: 44px;
  border-bottom: 1px solid var(--line);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  }
}

@media (max-width: 760px) {
  .preview-stage,
  .sidebar {
    padding: 18px;
  }

  .grid-two,
  .facts-grid,
  .meta-grid,
  .summary-grid,
  .sheet-footer,
  .action-row,
  .item-row {
    grid-template-columns: 1fr;
  }

  .preview-toolbar,
  .invoice-header {
    display: grid;
  }

  .header-side {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .toolbar-tip {
    text-align: left;
  }

  .invoice-sheet {
    padding: 26px 20px;
    border-radius: 24px;
  }

  .logo-slot {
    width: 100%;
  }
}

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

  body {
    background: white;
  }

  .sidebar,
  .preview-toolbar,
  .export-status {
    display: none;
  }

  .preview-pages {
    display: block;
  }

  .pdf-page {
    width: var(--paper-width);
    min-height: var(--paper-height);
    margin: 0;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .export-sheet {
    width: var(--paper-width);
    min-height: var(--paper-height);
    height: var(--paper-height);
    border-radius: 0;
    box-shadow: none;
  }
}
