:root {
  --bg: #fbfcff;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --line: rgba(0, 10, 94, 0.12);
  --line-strong: rgba(0, 10, 94, 0.24);
  --text: #000a5e;
  --muted: #667085;
  --accent: #e31b23;
  --accent-strong: #b1141a;
  --accent-soft: rgba(227, 27, 35, 0.08);
  --success: #0e5e49;
  --warning-bg: #fff3bf;
  --warning-text: #775800;
  --shadow: 0 30px 80px rgba(0, 10, 94, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(227, 27, 35, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(249, 212, 35, 0.18), transparent 22%),
    linear-gradient(180deg, #fbfcff 0%, #f6f8fc 100%);
  font-family: "Manrope", sans-serif;
}

body {
  min-height: 100vh;
}

body.modal-open {
  overflow: hidden;
}

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

.hidden {
  display: none !important;
}

.page-shell {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

.section-tag {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
}

.app-panel h2,
.app-panel h3 {
  margin: 0;
  font-family: "Newsreader", serif;
  line-height: 1;
}

.muted,
.record-meta,
.record-timestamp {
  color: var(--muted);
}

.app-panel {
  padding: clamp(18px, 3vw, 32px);
  max-width: 1440px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.card,
.notice {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card {
  padding: clamp(18px, 2.2vw, 24px);
}

.auth-card {
  width: min(100%, 520px);
  margin: auto;
  align-self: center;
}

#publicShareSection {
  width: min(100%, 580px);
}

#publicShareSection .section-tag {
  text-align: center;
}

.public-share-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 10, 94, 0.1);
  border-radius: calc(var(--radius-md) + 2px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(227, 27, 35, 0.04)),
    linear-gradient(180deg, rgba(249, 212, 35, 0.12), rgba(255, 255, 255, 0.88));
}

.public-share-brand-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(0, 10, 94, 0.06);
}

.public-share-brand-copy {
  display: grid;
  gap: 6px;
}

.public-share-brand-name,
.public-share-brand-meta {
  margin: 0;
}

.public-share-brand-name {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  color: #1f3f78;
}

.public-share-brand-meta {
  font-size: 14px;
  line-height: 1.55;
  color: #44556f;
}

.public-share-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

#publicSharePinInput {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-align: center;
}

.stack {
  display: flex;
  flex-direction: column;
}

.gap-md {
  gap: 16px;
}

.gap-lg {
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

fieldset.field {
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.field span {
  font-size: 14px;
  font-weight: 700;
}

.field-hint {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
}

.report-form-input-cell input,
.report-form-input-cell textarea,
.report-form-input-cell select {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.report-form-input-cell.is-invalid input.field-error {
  border-color: #d82424;
  background: rgba(216, 36, 36, 0.08);
  box-shadow: 0 0 0 3px rgba(216, 36, 36, 0.12);
}

.field textarea {
  min-height: 52px;
  height: 52px;
  resize: none;
  overflow: hidden;
  line-height: 1.5;
}

.remember-login-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.remember-login-option input {
  margin: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.section-block,
.subsection-block {
  grid-column: 1 / -1;
}

.section-block {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.section-block:first-child {
  padding-top: 0;
  border-top: 0;
}

.section-copy-text,
.subsection-block p {
  margin: 0;
}

.subsection-block {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(249, 212, 35, 0.16);
}

.subsection-block h4 {
  margin: 0 0 4px;
  font-family: "Newsreader", serif;
  font-size: 24px;
}

.subsection-split {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 14px 16px 12px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(227, 27, 35, 0.05);
}

.subsection-split h5 {
  margin: 0 0 4px;
  font-family: "Newsreader", serif;
  font-size: 24px;
  line-height: 1;
}

.subsection-split p {
  margin: 0;
}

.subsection-card {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid rgba(0, 10, 94, 0.14);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(251, 252, 255, 0.98), rgba(249, 212, 35, 0.08));
}

.subsection-card-header {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(0, 10, 94, 0.18);
}

.subsection-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.subsection-badge {
  flex: 0 0 auto;
  min-width: 44px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fffced;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.subsection-card-title {
  margin: 0 0 4px;
  font-family: "Newsreader", serif;
  font-size: 28px;
  line-height: 1;
}

.subsection-grid {
  gap: 16px;
}

.repeater-field {
  display: grid;
  gap: 14px;
}

.repeater-field.full {
  grid-column: 1 / -1;
}

.repeater-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 10, 94, 0.12);
  border-radius: var(--radius-md);
  background: rgba(249, 212, 35, 0.12);
}

.repeater-title {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.repeater-add-button,
.repeater-remove-button {
  white-space: nowrap;
}

.repeater-add-button {
  background: #d7e7f6;
  color: #1f3f78;
  border: 1px solid rgba(31, 63, 120, 0.18);
}

.repeater-add-button:hover {
  background: #c8def3;
}

.repeater-list {
  display: grid;
  gap: 14px;
}

.repeater-card {
  padding: 18px;
  border: 1px solid rgba(0, 10, 94, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
}

.repeater-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.repeater-card-title {
  font-family: "Newsreader", serif;
  font-size: 28px;
  line-height: 1;
}

.repeater-grid {
  gap: 16px;
}

.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-choice {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
}

.option-choice input {
  margin: 0;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  accent-color: var(--accent);
}

.option-choice span {
  white-space: nowrap;
  min-width: 0;
  line-height: 1.35;
}

.option-choice:has(input:checked) {
  border-color: var(--accent);
  background: rgba(198, 31, 50, 0.1);
  color: var(--accent-strong);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.btn:disabled:hover {
  transform: none;
}

.btn.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff7f1;
}

.btn.secondary {
  background: #ffd54f;
  color: var(--text);
}

.btn.secondary.assign-record-button {
  background: #1f3f78;
  color: #ffffff;
  border: 1px solid #1f3f78;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.topbar-actions,
.tabs,
.record-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tabs {
  margin-bottom: 20px;
  width: 100%;
  min-width: 0;
}

.tab {
  border: 0;
  background: rgba(248, 250, 252, 0.9);
  color: var(--muted);
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  background: var(--text);
  color: #fffced;
}

.content-grid {
  display: block;
}

.content-main {
  min-width: 0;
}

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

.history-admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.section-copy {
  margin: 10px 0 0;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.6;
}

.history-search-row {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 14px;
  align-items: end;
}

.logs-range-row {
  grid-template-columns: minmax(180px, 1.1fr) minmax(220px, 1.3fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
}

.logs-range-row .btn {
  white-space: nowrap;
}

.user-create-form {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(220px, 1.4fr) minmax(180px, 1fr) minmax(160px, 0.8fr) auto;
  gap: 14px;
  align-items: end;
}

.history-search-field {
  max-width: 460px;
}

.history-date-field input {
  min-height: 52px;
  cursor: pointer;
}

.history-date-field input::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

.history-date-picker {
  position: relative;
  min-height: 52px;
  cursor: pointer;
}

.history-date-picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.history-date-display {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 48px 14px 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 700;
  pointer-events: none;
}

.history-date-picker:focus-visible .history-date-display {
  outline: 2px solid rgba(0, 10, 94, 0.35);
  outline-offset: 2px;
}

.history-date-picker::after {
  content: "📅";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
}

.form-workspace {
  display: grid;
  gap: 20px;
}

.section-quick-nav-host {
  display: none;
  min-width: 0;
}

#appSection.form-screen-active > .section-quick-nav-host {
  display: block;
}

.form-layout {
  display: grid;
  gap: 20px;
}

.section-quick-nav {
  position: sticky;
  top: 16px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 243, 0.92);
  backdrop-filter: blur(12px);
  min-width: 0;
}

.quick-nav-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease;
}

.quick-nav-button:hover {
  transform: translateY(-1px);
}

.quick-nav-button.active {
  background: var(--text);
  color: #fffced;
  border-color: var(--text);
}

.form-section-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 20px 40px rgba(16, 32, 79, 0.06);
  scroll-margin-top: 96px;
}

#customerForm {
  padding-bottom: 112px;
}

@media (min-width: 1101px) {
  #appSection.form-screen-active #formTab {
    margin-left: calc(min(25vw, 320px) + 28px);
  }

  #appSection.form-screen-active > .section-quick-nav-host > .section-quick-nav {
    position: fixed;
    left: 0;
    top: calc(env(safe-area-inset-top, 0px) + 16px);
    bottom: 16px;
    width: min(25vw, 320px);
    height: auto;
    display: grid;
    gap: 10px;
    align-content: start;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 18px;
    z-index: 30;
    border-left: 0;
    border-radius: 0 20px 20px 0;
    box-shadow: 0 26px 60px rgba(16, 32, 79, 0.16);
  }

  #appSection.form-screen-active > .section-quick-nav-host > .section-quick-nav .quick-nav-button {
    width: 100%;
    border-radius: 16px;
    text-align: left;
    white-space: normal;
    line-height: 1.35;
  }
}

.form-floating-actions {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 16px);
  right: calc(env(safe-area-inset-right, 0px) + 24px);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 48px rgba(16, 32, 79, 0.18);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.form-floating-actions .btn {
  min-width: 130px;
  white-space: nowrap;
}

.report-form-section {
  display: grid;
  gap: 10px;
}

.report-form-section-bar {
  margin: 0;
}

.report-form-section-body {
  display: grid;
  gap: 12px;
}

.report-form-subsection {
  display: block;
}

.report-form-table {
  display: grid;
  gap: 1px;
  background: #dbe4ef;
  border: 1px solid #dbe4ef;
}

.report-form-row {
  display: grid;
  grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
  background: #dbe4ef;
}

.report-form-row-full {
  grid-template-columns: 1fr;
}

.report-form-label-cell,
.report-form-input-cell {
  min-width: 0;
  padding: 12px 14px;
  background: #fff;
}

.report-form-label-cell {
  background: #d7e7f6;
}

.report-form-label-cell span {
  display: block;
  color: #1f3f78;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.report-form-label-cell .field-hint {
  margin-top: 4px;
  color: #687587;
  font-size: 12px;
  font-style: italic;
}

.report-form-input-cell input,
.report-form-input-cell select,
.report-form-input-cell textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px solid rgba(0, 10, 94, 0.28);
  background: transparent;
  border-radius: 0;
  padding: 8px 2px 7px;
  color: var(--text);
}

.report-form-input-cell select {
  padding-right: 28px;
}

.report-form-input-cell textarea {
  min-height: 44px;
  height: 44px;
}

.report-form-input-cell strong {
  display: block;
  white-space: pre-line;
  line-height: 1.6;
  overflow-wrap: anywhere;
  color: #1c2a42;
  font-size: 15px;
  font-weight: 600;
}

.inline-pair-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.inline-pair-field {
  display: grid;
  gap: 6px;
}

.inline-pair-field span {
  display: block;
  color: #1f3f78;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.report-form-row-caption .report-form-caption-cell {
  padding: 12px 14px;
  background: #edf4fb;
}

.report-form-caption-cell strong {
  display: block;
  color: #1f3f78;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.report-form-caption-cell small {
  display: block;
  margin-top: 4px;
  color: #687587;
  font-size: 12px;
  line-height: 1.45;
  font-style: italic;
}

.report-form-repeater .report-form-input-cell {
  display: grid;
  gap: 12px;
}

.report-form-repeater-row {
  align-items: center;
}

.report-form-repeater-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.report-form-repeater-list {
  display: grid;
  gap: 12px;
}

.report-form-repeater-item {
  padding: 14px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #f9fbff;
}

.report-form-repeater-item .repeater-card-title {
  font-size: 22px;
  color: #1f3f78;
}

.report-form-repeater-item-title {
  margin: 0 0 14px;
  color: #1f3f78;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.report-form-repeater-item .repeater-card-head {
  margin-bottom: 12px;
}

.report-form-repeater-item .report-form-table {
  border-radius: 12px;
  overflow: hidden;
}

.print-declaration {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1.5px solid rgba(31, 63, 120, 0.24);
}

.print-declaration-text {
  margin: 0;
  color: #1c2a42;
  font-size: 15px;
  line-height: 1.7;
}

.print-signature-block {
  margin-top: 28px;
  text-align: right;
  padding-right: 24px;
}

.print-date-line {
  margin: 0;
  color: #1c2a42;
  font-size: 15px;
  line-height: 1.6;
}

.print-signature-note {
  margin: 10px 0 0;
  color: #687587;
  font-size: 15px;
  font-style: italic;
}

.print-preview-root {
  position: fixed;
  left: -99999px;
  top: 0;
  width: 210mm;
  margin: 0 auto;
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
}

.print-preview-page {
  box-sizing: border-box;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 10mm 9mm 12mm;
  background: #ffffff;
  position: relative;
}

.print-preview-page-body {
  height: calc(297mm - 10mm - 12mm - 10mm);
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 8px;
}

.print-preview-page-footer {
  position: absolute;
  left: 9mm;
  right: 9mm;
  bottom: 5mm;
  display: block;
  align-items: center;
  min-height: 10px;
}

.print-preview-page-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 36mm);
  color: #4d5c72;
  font-size: 5pt;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.print-preview-page-number {
  display: block;
  width: fit-content;
  margin-left: auto;
  color: #4d5c72;
  font-size: 9.5px;
  line-height: 1;
}

.print-company-header {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 10px;
  text-align: center;
}

.print-company-logo {
  width: 86px;
  height: auto;
  object-fit: contain;
}

.print-company-copy {
  display: grid;
  gap: 3px;
}

.print-company-name,
.print-company-meta {
  margin: 0;
  color: #1f3f78;
}

.print-company-name {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.print-company-meta {
  font-size: 9.5px;
  line-height: 1.4;
}

.print-preview-root .report-hero {
  padding: 0 0 10px;
}

.print-preview-root .report-title {
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.print-preview-root .report-subtitle {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.print-preview-root .print-company-header {
  gap: 6px;
  margin-bottom: 8px;
}

.print-preview-root .print-company-logo {
  width: 74px;
}

.print-preview-root .print-company-name {
  font-size: 11px;
}

.print-preview-root .print-company-meta {
  font-size: 8.8px;
}

.print-preview-root .report-divider {
  height: 1px;
  margin-bottom: 10px;
}

.print-preview-root .report-form-section-bar,
.print-preview-root .print-preview-section-header {
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.print-preview-root .report-form-table {
  gap: 0.8px;
  border-width: 0.8px;
}

.print-preview-root .report-form-row {
  grid-template-columns: minmax(150px, 31%) minmax(0, 1fr);
}

.print-preview-root .report-form-row-full {
  grid-template-columns: 1fr;
}

.print-preview-root .report-form-label-cell,
.print-preview-root .report-form-input-cell,
.print-preview-root .report-form-caption-cell {
  padding: 6px 8px;
}

.print-preview-root .report-form-label-cell span,
.print-preview-root .report-form-caption-cell strong,
.print-preview-root .report-form-input-cell strong {
  font-size: 10.5px;
  line-height: 1.35;
}

.print-preview-root .report-form-label-cell .field-hint,
.print-preview-root .report-form-caption-cell small,
.print-preview-root .inline-pair-field span {
  margin-top: 2px;
  font-size: 8.5px;
  line-height: 1.25;
}

.print-preview-root .inline-pair-inputs {
  gap: 10px;
}

.print-preview-root .print-declaration {
  margin-top: 14px;
  padding-top: 10px;
}

.print-preview-root .print-declaration-text,
.print-preview-root .print-date-line,
.print-preview-root .print-signature-note {
  font-size: 10.5px;
  line-height: 1.45;
}

.print-preview-root .print-signature-block {
  margin-top: 16px;
  padding-right: 18px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid rgba(227, 27, 35, 0.16);
}

.summary-card strong {
  display: block;
  font-size: 28px;
  margin-top: 8px;
}

.records {
  min-height: 120px;
}

.record {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.record-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.record h4 {
  margin: 0 0 6px;
  font-size: 20px;
}

.record-meta,
.record-timestamp,
.empty-state {
  margin: 0;
  color: var(--muted);
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.record-grid article {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.user-management-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.user-role-card {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.user-role-card > span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.user-role-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.user-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.user-status-badge.active {
  color: #0e5e49;
  background: rgba(14, 94, 73, 0.12);
}

.user-status-badge.inactive {
  color: #8b1e25;
  background: rgba(227, 27, 35, 0.12);
}

.user-role-actions select {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.record-grid span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.record-grid strong {
  display: block;
  white-space: pre-line;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.view-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.view-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 10, 94, 0.42);
  backdrop-filter: blur(6px);
}

.view-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  max-height: min(88vh, 960px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 243, 0.98);
  box-shadow: 0 30px 90px rgba(0, 10, 94, 0.28);
}

.assign-dialog {
  width: min(100%, 640px);
}

.share-access-dialog {
  width: min(100%, 980px);
  max-height: min(84vh, 820px);
}

.view-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 10, 94, 0.08);
  background: rgba(255, 255, 255, 0.94);
}

.view-dialog-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.record-link-button {
  white-space: nowrap;
}

.record-copy-link-button {
  white-space: nowrap;
}

.share-access-status {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.82);
  color: var(--text);
  font-weight: 700;
  line-height: 1.55;
}

.share-access-status.warning {
  background: rgba(255, 243, 191, 0.92);
  border-color: rgba(119, 88, 0, 0.18);
  color: var(--warning-text);
}

.share-access-status.loading {
  background: rgba(215, 231, 246, 0.92);
  border-color: rgba(31, 63, 120, 0.18);
  color: #1f3f78;
}

.share-access-status.success {
  background: rgba(14, 94, 73, 0.08);
  border-color: rgba(14, 94, 73, 0.18);
  color: var(--success);
}

.share-access-body {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.92fr);
  gap: 16px;
  overflow: hidden;
  padding: 16px 18px 18px;
  background: #eef3f9;
}

.share-access-main,
.share-access-side {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}

.share-access-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.share-access-field-wide {
  grid-column: 1 / -1;
}

.share-access-form-grid .field {
  gap: 6px;
}

.share-access-form-grid .field span {
  font-size: 13px;
}

.share-access-form-grid .field input,
.share-access-form-grid .field select {
  min-height: 46px;
  padding: 12px 14px;
}

.share-qr-panel {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
}

.share-qr-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  border-radius: 18px;
  background: #fffdf8;
  border: 1px solid rgba(0, 10, 94, 0.08);
  box-shadow: 0 16px 36px rgba(16, 32, 79, 0.08);
}

.share-qr-image {
  display: block;
  width: min(100%, 148px);
  aspect-ratio: 1;
}

.share-qr-copy {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.share-qr-copy .muted {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.share-access-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.share-access-card {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.share-access-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.share-access-card strong {
  display: block;
  line-height: 1.45;
  font-size: 14px;
}

.share-access-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.share-access-actions .btn {
  width: 100%;
  min-width: 0;
}

.view-dialog-icon-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.print-language-field {
  display: grid;
  gap: 4px;
  min-width: 220px;
}

.print-language-field span {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.print-language-field select {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.view-dialog-body {
  overflow: auto;
  padding: 18px 24px 24px;
  background: #eef3f9;
}

.view-dialog-body.share-access-body {
  overflow: hidden;
  padding: 16px 18px 18px;
}

.assign-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.assign-user-checklist {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding: 4px;
  justify-items: stretch;
}

.assign-user-option {
  display: grid;
  grid-template-columns: 18px auto;
  align-items: start;
  justify-content: start;
  column-gap: 8px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  text-align: left;
}

.assign-user-option input {
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.assign-user-option span {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: rgba(0, 10, 94, 0.32);
}

.icon-btn span {
  font-size: 18px;
  line-height: 1;
}

.topbar-icon-btn {
  width: 48px;
  height: 48px;
}

.topbar-icon-btn span {
  font-size: 24px;
}


.view-modal.is-fullscreen,
.view-modal:fullscreen {
  padding: 0;
}

.view-modal.is-fullscreen .view-dialog,
.view-modal:fullscreen .view-dialog {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  border: 0;
}

.view-modal.is-fullscreen .view-dialog-body,
.view-modal:fullscreen .view-dialog-body {
  flex: 1;
  padding: 20px 24px 24px;
}

.report-sheet {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 32px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 10, 94, 0.1);
}

.report-hero {
  text-align: center;
  padding: 4px 0 18px;
}

.report-title {
  margin: 0;
  color: #1f3f78;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.report-subtitle {
  margin: 8px 0 0;
  color: #687587;
  font-size: 18px;
  font-style: italic;
  letter-spacing: 0.06em;
}

.report-divider {
  height: 2px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, rgba(31, 63, 120, 0), rgba(31, 63, 120, 0.52), rgba(31, 63, 120, 0));
}

.report-section-stack {
  display: grid;
  gap: 16px;
}

.print-only {
  display: none;
}

.report-section {
  display: grid;
  gap: 10px;
}

.report-section-bar {
  padding: 10px 14px;
  background: #233f72;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.report-section-body {
  display: grid;
  gap: 12px;
}

.report-subsection {
  display: block;
}

.report-table {
  display: grid;
  gap: 1px;
  background: #dbe4ef;
  border: 1px solid #dbe4ef;
}

.report-row {
  display: grid;
  grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
  background: #dbe4ef;
}

.report-row-full {
  grid-template-columns: 1fr;
}

.report-row-caption .report-caption-cell {
  padding: 12px 14px;
  background: #edf4fb;
}

.report-caption-cell strong {
  display: block;
  color: #1f3f78;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.subsection-code {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.subsection-title-text {
  text-transform: uppercase;
}

.report-caption-cell small {
  display: block;
  margin-top: 4px;
  color: #687587;
  font-size: 12px;
  line-height: 1.45;
  font-style: italic;
}

.report-label-cell,
.report-value-cell {
  min-width: 0;
  padding: 12px 14px;
  background: #fff;
}

.report-label-cell {
  background: #d7e7f6;
}

.report-label-cell span {
  display: block;
  color: #1f3f78;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.report-label-cell small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: #687587;
  font-style: italic;
}

.report-value-cell strong {
  display: block;
  white-space: pre-line;
  line-height: 1.6;
  overflow-wrap: anywhere;
  color: #1c2a42;
  font-size: 15px;
}

.report-repeater {
  display: grid;
  gap: 1px;
  background: #dbe4ef;
  border: 1px solid #dbe4ef;
}

.report-repeater-list {
  display: grid;
  gap: 12px;
  padding: 4px 0;
}

.report-repeater-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #f9fbff;
}

.report-repeater-item-title {
  margin: 0 0 14px;
  color: #1f3f78;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.report-empty-value {
  display: block;
  color: #687587;
}

.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(420px, calc(100vw - 32px));
  z-index: 1400;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 48px rgba(0, 10, 94, 0.18);
}

.message-indicator {
  display: none;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
}

.message-text {
  min-width: 0;
}

.notice.info {
  background: rgba(255, 255, 255, 0.72);
}

.notice.loading {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(227, 27, 35, 0.16);
}

.notice.loading .message-indicator {
  display: inline-block;
  border: 2px solid rgba(0, 10, 94, 0.16);
  border-top-color: var(--accent);
  animation: spin 0.75s linear infinite;
}

.notice.warning {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.section-copy,
.muted {
  color: var(--muted);
}

form.is-busy {
  cursor: progress;
}

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

@media (max-width: 1080px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar > div:first-child,
  .section-heading > div:first-child,
  .record-head > div:first-child {
    min-width: 0;
  }

  .form-section-card {
    padding: 20px;
  }

  .summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .record-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 900px) {
  .app-panel {
    min-height: auto;
  }

  .topbar,
  .section-heading,
  .record-head,
  .repeater-header,
  .repeater-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions,
  .record-actions {
    width: 100%;
  }

  .tabs,
  .section-quick-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .tab,
  .quick-nav-button {
    flex: 0 0 auto;
  }

  .section-quick-nav {
    top: 12px;
  }

  .form-section-card {
    scroll-margin-top: 84px;
  }

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

  .user-management-grid {
    grid-template-columns: 1fr;
  }

  .share-access-grid {
    grid-template-columns: 1fr;
  }

  .share-access-body {
    grid-template-columns: 1fr;
  }

  .share-access-form-grid,
  .share-access-actions {
    grid-template-columns: 1fr;
  }

  .user-role-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .user-create-form {
    grid-template-columns: 1fr;
  }

  .view-dialog {
    width: min(100%, 1000px);
  }

  .view-dialog-header {
    flex-direction: column;
    align-items: stretch;
  }

  .view-dialog-actions {
    width: 100%;
  }

  .print-language-field {
    min-width: 0;
    width: 100%;
  }

  .view-dialog-icon-actions {
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
  }

  .report-sheet {
    padding: 24px;
  }

  .report-form-row,
  .report-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-form-repeater-row {
    align-items: stretch;
  }
}

@media (max-width: 1100px) {
  #appSection.form-screen-active #customerForm {
    padding-bottom: 128px;
  }

  #appSection.public-share-active.form-screen-active > .section-quick-nav-host {
    display: none;
  }

  #appSection.form-screen-active > .section-quick-nav-host > .section-quick-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    top: auto;
    z-index: 29;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(16, 32, 79, 0.18);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  #appSection.form-screen-active > .section-quick-nav-host > .section-quick-nav .quick-nav-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .notice {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .app-panel {
    padding: 20px;
  }

  .card,
  .form-section-card,
  .repeater-card,
  .repeater-header,
  .record,
  .summary-card {
    padding: 16px;
  }

  .section-quick-nav,
  .report-form-section-bar {
    position: static;
  }

  .auth-card {
    width: 100%;
  }

  .topbar-actions .btn,
  .record-actions .btn,
  .section-heading .btn,
  #submitFormButton,
  #exitFormButton {
    width: 100%;
  }

  .history-admin-actions {
    width: 100%;
    justify-content: stretch;
  }

  #customerForm {
    padding-bottom: 32px;
  }

  .form-floating-actions {
    top: calc(env(safe-area-inset-top, 0px) + 16px);
    right: calc(env(safe-area-inset-right, 0px) + 16px);
    left: auto;
    bottom: auto;
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
    max-width: min(180px, calc(100vw - 32px));
  }

  .form-floating-actions .btn {
    min-width: 0;
    width: 100%;
    flex: none;
  }

  .tabs,
  .section-quick-nav {
    gap: 8px;
    margin-left: -4px;
    margin-right: -4px;
    padding: 10px 4px 6px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .tab,
  .quick-nav-button {
    padding: 10px 12px;
    font-size: 14px;
  }

  .option-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .option-choice {
    width: 100%;
    min-height: 44px;
    align-items: center;
    border-radius: 18px;
    padding: 12px 16px;
  }

  .option-choice span {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.35;
  }

  .section-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .section-label,
  .subsection-card-title,
  .repeater-card-title,
  .subsection-block h4,
  .subsection-split h5 {
    font-size: 24px;
  }

  .field input,
  .field select,
  .field textarea,
  .btn {
    padding: 13px 14px;
  }

  .report-form-label-cell,
  .report-form-input-cell {
    padding: 12px;
  }

  .report-form-label-cell span {
    font-size: 14px;
  }

  .inline-pair-inputs {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .record-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .history-search-field {
    max-width: none;
  }

  .history-search-row {
    grid-template-columns: 1fr;
  }

  .record-grid article {
    padding: 10px;
  }

  .section-copy {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.55;
  }

  .view-modal {
    padding: 12px;
  }

  .view-dialog {
    max-height: 92vh;
    border-radius: 22px;
  }

  .share-access-dialog {
    max-height: 92vh;
  }

  .view-dialog-header,
  .view-dialog-body,
  .report-sheet,
  .report-repeater-item {
    padding: 16px;
  }

  .view-dialog-actions .btn {
    width: 100%;
  }

  .view-dialog-actions .icon-btn {
    width: 44px;
  }

  .assign-dialog-actions {
    flex-direction: column-reverse;
  }

  .assign-dialog-actions .btn {
    width: 100%;
  }

  .share-access-body {
    gap: 14px;
    overflow: auto;
  }

  .report-title {
    font-size: 24px;
  }

  .report-subtitle {
    font-size: 14px;
  }

  .report-section-bar {
    font-size: 13px;
    line-height: 1.4;
  }

  .report-form-section-bar {
    font-size: 13px;
    line-height: 1.4;
  }

  .report-label-cell,
  .report-value-cell {
    padding: 12px;
  }
}

@media (max-width: 520px) {
  .app-panel {
    padding: 14px;
  }

  .public-share-brand {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px;
  }

  .public-share-brand-logo {
    width: 78px;
    height: 78px;
  }

  .public-share-brand-name {
    font-size: 15px;
  }

  .public-share-brand-meta {
    font-size: 13px;
  }

  .topbar,
  .tabs,
  .tab-panel {
    margin-bottom: 16px;
  }

  .section-tag {
    margin-bottom: 8px;
    letter-spacing: 0.12em;
  }

  .card,
  .form-section-card,
  .subsection-card,
  .repeater-card,
  .repeater-header,
  .record,
  .summary-card,
  .notice {
    padding: 14px;
    border-radius: 20px;
  }

  .section-quick-nav {
    top: 8px;
  }

  .section-badge,
  .subsection-badge {
    min-width: 36px;
    width: 36px;
    height: 36px;
    padding: 0 8px;
  }

  .section-label,
  .repeater-card-title {
    font-size: 22px;
  }

  .option-group {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .option-choice {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 12px;
  }

  .report-form-repeater-item {
    padding: 12px;
  }

  .record-grid strong,
  .field-hint,
  .section-subtitle,
  .muted,
  .record-meta,
  .record-timestamp {
    font-size: 13px;
  }
}

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

  html,
  body {
    background: #ffffff;
    margin: 0;
    padding: 0;
    width: auto;
    min-height: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.printing-record-view .page-shell,
  body.printing-record-view .app-panel {
    display: block;
    width: auto;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  body.printing-record-view #printPreviewRoot {
    position: static;
    display: block;
    width: 100%;
    max-width: 210mm;
    left: auto;
    top: auto;
    visibility: visible;
    pointer-events: auto;
    z-index: auto;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
  }

  body.printing-record-view .app-panel > :not(#printPreviewRoot) {
    display: none !important;
  }

  body.printing-record-view .print-preview-page {
    width: 210mm;
    height: 297mm;
    min-height: 297mm;
    margin: 0 auto;
    break-after: page;
    page-break-after: always;
  }

  body.printing-record-view .print-preview-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  body.printing-record-view .print-preview-page-body {
    height: calc(297mm - 10mm - 12mm - 10mm);
    min-height: calc(297mm - 10mm - 12mm - 10mm);
    overflow: hidden;
  }
}
