:root {
  --bg: #111827;
  --bg-deep: #0f1724;
  --rail: #263241;
  --panel: #1f2937;
  --panel-2: #263241;
  --field: #151c2b;
  --border: #374151;
  --border-soft: rgba(148, 163, 184, 0.18);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --danger: #ef4444;
  --shadow: 0 18px 36px rgba(0, 0, 0, 0.32), 0 2px 0 rgba(255, 255, 255, 0.03) inset;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Aptos", "Segoe UI", Tahoma, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(55, 65, 81, 0.42), transparent 34rem),
    linear-gradient(180deg, #151c2b 0%, var(--bg) 38%, var(--bg-deep) 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.side-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 88px;
  padding: 20px 16px;
  background: var(--rail);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 20;
}

.rail-icon,
.rail-action {
  width: 56px;
  min-height: 56px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: rgba(17, 24, 39, 0.28);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  font-weight: 800;
}

.rail-icon {
  font-size: 22px;
}

.rail-action {
  min-height: 48px;
  border-radius: 10px;
  background: var(--accent);
  color: #111827;
  border-color: rgba(249, 115, 22, 0.65);
}

.rail-spacer {
  flex: 1;
}

.rail-version {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
}

.shell {
  width: calc(100% - 88px);
  max-width: none;
  margin-left: 88px;
  padding: 22px 28px 36px;
}

.hero {
  min-height: 92px;
  padding: 18px 18px 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(31, 41, 55, 0.84);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--text);
}

.hero p {
  margin: 0;
  max-width: 880px;
  color: var(--muted);
  font-size: 16px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.card {
  background: rgba(31, 41, 55, 0.9);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow-wrap: anywhere;
}

.grid > *,
.admin-overview > *,
.report-designer > *,
.ui-builder > * {
  min-width: 0;
}

.card h2,
.card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.15;
  color: var(--accent);
}

.card h3 {
  font-size: 18px;
}

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

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.row.spread {
  justify-content: space-between;
}

.row.right,
.pdf-toolbar-actions {
  justify-content: flex-end;
}

label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}

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

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--text);
  border-radius: 8px;
  border: 1px solid #4b5563;
  background: var(--field);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

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

button {
  min-height: auto;
  padding: 5px 15px;
  border-radius: 7px;
  border: 1px solid rgba(249, 115, 22, 0.55);
  background: var(--accent);
  color: #111827;
  cursor: pointer;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: 0 10px 18px rgba(249, 115, 22, 0.16);
}

button:hover {
  background: var(--accent-hover);
}

.card > button,
.stack > button,
label + button {
  justify-self: end;
  align-self: end;
}

button.secondary {
  background: var(--panel-2);
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

button.secondary:hover {
  background: #303b4b;
}

button.warn {
  background: #b91c1c;
  color: #fff;
  border-color: rgba(248, 113, 113, 0.5);
  box-shadow: none;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.multi-user-field {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
}

.multi-user-trigger {
  width: 100%;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  text-align: left;
  font-weight: 400;
  color: var(--text);
  border-color: #4b5563;
  background: var(--field);
}

.multi-user-trigger:hover {
  background: #172033;
}

.multi-user-caret {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  flex: 0 0 auto;
}

.multi-user-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 232px;
  overflow: auto;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #111827;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
}

.multi-user-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--text);
  line-height: 1.15;
}

.multi-user-option:hover {
  background: rgba(249, 115, 22, 0.1);
}

.multi-user-option input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.multi-user-option em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: rgba(17, 24, 39, 0.38);
  color: var(--text);
  font-size: 13px;
}

.toast-region {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 3000;
  width: min(390px, calc(100vw - 28px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.96);
  color: var(--text);
  padding: 12px 14px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
  animation: toast-in 160ms ease-out;
}

.toast strong {
  display: block;
  margin-bottom: 2px;
}

.toast-error {
  border-left-color: #ef4444;
  background: rgba(127, 29, 29, 0.96);
  border-color: rgba(248, 113, 113, 0.45);
}

.toast-info {
  border-left-color: #22c55e;
  background: rgba(20, 83, 45, 0.96);
  border-color: rgba(74, 222, 128, 0.45);
}

.toast-success {
  border-left-color: #22c55e;
  background: rgba(20, 83, 45, 0.96);
  border-color: rgba(74, 222, 128, 0.45);
}

.toast-warning {
  border-left-color: #f97316;
  background: rgba(124, 45, 18, 0.96);
  border-color: rgba(251, 146, 60, 0.5);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2850;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.28);
}

.message-badge {
  min-width: 20px;
  min-height: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

.message-panel {
  position: fixed;
  right: 18px;
  bottom: 74px;
  z-index: 2850;
  width: min(460px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 110px));
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #1f2937;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.46);
  padding: 16px;
}

.message-panel textarea {
  min-height: 82px;
}

.message-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.message-item {
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.42);
}

.message-item.unread {
  border-color: rgba(249, 115, 22, 0.75);
  background: rgba(249, 115, 22, 0.08);
}

.status {
  min-height: 20px;
  font-size: 13px;
  color: var(--muted);
}

.danger {
  color: #fca5a5;
}

.list {
  display: grid;
  gap: 10px;
  max-height: 60vh;
  overflow: auto;
}

.list-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px;
  cursor: pointer;
  background: var(--panel-2);
  box-shadow: none;
}

.list-item.active {
  border-color: var(--accent);
  background: #2b3645;
  box-shadow: none;
}

.list-item h4 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--text);
}

.list-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: Consolas, "Courier New", monospace;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.table th,
.table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table th {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--accent);
}

.click-row {
  cursor: pointer;
}

.click-row:hover td {
  background: rgba(249, 115, 22, 0.07);
}

.empty {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: rgba(17, 24, 39, 0.35);
  color: var(--muted);
}

.admin-dashboard {
  grid-template-columns: minmax(420px, 1fr) minmax(520px, 2fr) !important;
  align-items: start;
}

.admin-overview {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) repeat(2, minmax(320px, 1fr));
  gap: 16px;
  align-items: start;
  margin-top: 18px;
}

.admin-command-grid {
  grid-template-columns: minmax(360px, 1fr) minmax(300px, 0.8fr) !important;
  align-items: start;
  margin-bottom: 18px;
}

.admin-workflow-section {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 0 4px;
}

.section-heading h2 {
  margin: 0;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
}

.admin-workflow-grid {
  display: grid;
  gap: 16px;
  align-items: start;
}

.accounts-grid {
  grid-template-columns: minmax(320px, 0.65fr) minmax(520px, 1.35fr);
}

.operations-card {
  min-height: auto;
}

.operations-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.security-lockout-list {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.28);
}

.security-lockout-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border-soft);
}

.security-lockout-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.security-lockout-row small {
  color: var(--muted);
}

.summary-card {
  grid-row: span 2;
}

.audit-card {
  grid-column: 1 / -1;
}

.audit-filter-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(170px, 0.85fr) minmax(170px, 0.85fr) minmax(180px, 1fr);
  gap: 10px;
  align-items: end;
}

.audit-search-field {
  grid-column: span 2;
}

.full-width-card {
  margin-top: 16px;
}

.audit-list-scroll {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.audit-item {
  width: 100%;
  min-height: auto;
  padding: 11px 12px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  color: var(--text);
  background: rgba(17, 24, 39, 0.35);
  border-color: var(--border);
  box-shadow: none;
}

.audit-item:hover,
.audit-item.active {
  background: var(--panel-2);
  border-color: rgba(249, 115, 22, 0.7);
}

.audit-item span:first-child {
  display: grid;
  gap: 4px;
}

.audit-item small {
  color: var(--muted);
  font-weight: 500;
}

.detail-json {
  max-height: 46vh;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.42);
  white-space: pre-wrap;
}

.flyout-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(2, 6, 23, 0.35);
}

.flyout {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(560px, calc(100vw - 52px));
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(31, 41, 55, 0.98);
  border-left: 1px solid var(--border);
  box-shadow: -24px 0 50px rgba(0, 0, 0, 0.38);
}

.flyout-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.flyout-header h2 {
  margin: 0 0 4px;
  color: var(--accent);
}

.flyout-body {
  overflow: auto;
  padding: 16px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.detail-grid {
  display: grid;
  gap: 10px;
}

.detail-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.3);
}

.detail-item span {
  color: var(--muted);
  font-size: 12px;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.38);
  backdrop-filter: blur(3px);
}

.loading-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: min(360px, calc(100vw - 40px));
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(31, 41, 55, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.loading-card strong,
.loading-card span {
  display: block;
}

.loading-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: payload-spin 0.8s linear infinite;
}

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

.change-list,
.mini-list {
  display: grid;
  gap: 10px;
}

.change-row,
.mini-list-row {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.26);
}

.change-row span,
.mini-list-row span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.ui-builder {
  display: grid;
  grid-template-columns: minmax(150px, 0.38fr) minmax(520px, 1.62fr);
  gap: 14px;
  align-items: start;
}

.ui-card-list,
.field-list {
  display: grid;
  gap: 10px;
}

.ui-card-button {
  width: 100%;
  text-align: left;
  background: var(--panel-2);
  color: var(--text);
  box-shadow: none;
}

.ui-card-button:hover,
.ui-card-button.active:hover {
  background: #2b3645;
  box-shadow: none;
}

.ui-card-button.active {
  border-color: var(--accent);
  background: rgba(31, 41, 55, 0.92);
  box-shadow: none;
}

.role-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.24);
}

.role-panel legend {
  padding: 0 6px;
  color: var(--accent);
  font-weight: 800;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.24);
}

.field-row.active {
  border-color: rgba(249, 115, 22, 0.72);
  background: rgba(249, 115, 22, 0.08);
}

.ui-field-editor {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.ui-wysiwyg-preview {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  align-items: stretch;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.05);
  min-height: 520px;
  resize: vertical;
  overflow: hidden;
}

.ui-wysiwyg-preview > .card {
  align-self: stretch;
  width: 100%;
  min-height: 0;
}

.ui-preview-fields {
  grid-template-columns: repeat(2, max-content);
  justify-content: start;
}

.ui-layout-canvas,
.custom-card-layout {
  position: relative;
  min-height: var(--card-canvas-height, 240px);
  height: auto;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.16);
}

.ui-wysiwyg-preview .ui-layout-canvas {
  height: auto;
  min-height: var(--card-canvas-height, 240px);
}

.system-card-layout {
  min-height: var(--card-canvas-height, 240px);
}

.system-photo-field {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 100%;
}

.system-field-stack {
  display: grid;
  gap: 10px;
  align-content: start;
  height: 100%;
  min-height: 0;
  overflow: auto;
}

.documents-layout .document-list,
.documents-layout .document-groups,
.uploads-layout .upload-list,
.uploads-layout .flight-log-panel,
.custom-field-positioned > .flight-log-panel {
  max-height: 100%;
  overflow: auto;
}

.dashboard-layout .metric-card,
.report-export-layout button {
  height: 100%;
}

.ui-layout-field,
.custom-field-positioned {
  position: absolute;
  left: var(--layout-x, 0%);
  top: calc(var(--layout-y, 0) * 4.8px);
  width: var(--layout-w, 42%);
  min-height: max(48px, calc(var(--layout-h, 18) * 4.8px));
  height: auto;
  min-width: 110px;
  overflow: visible;
}

.ui-layout-field {
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: move;
  touch-action: none;
}

.ui-layout-field:hover,
.ui-layout-field:focus-within {
  border-color: rgba(249, 115, 22, 0.55);
  background: rgba(31, 41, 55, 0.28);
}

.ui-layout-field label,
.custom-field-positioned label {
  min-height: inherit;
  grid-template-rows: auto minmax(0, 1fr);
}

.ui-layout-field input,
.ui-layout-field select,
.ui-layout-field textarea,
.custom-field-positioned input,
.custom-field-positioned select,
.custom-field-positioned textarea {
  width: 100%;
  min-height: 36px;
  padding: 8px 12px;
}

.ui-layout-field textarea,
.custom-field-positioned textarea {
  min-height: calc((var(--layout-h, 18) * 4.8px) - 32px);
  height: auto;
}

.ui-layout-resize {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border: 1px solid #111827;
  border-radius: 4px;
  background: var(--accent);
  cursor: nwse-resize;
  opacity: 0;
  transition: opacity 120ms ease;
}

.ui-layout-field:hover .ui-layout-resize,
.ui-layout-field:focus-within .ui-layout-resize {
  opacity: 1;
}

.ui-canvas-resize {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 16px;
  height: 16px;
  border: 1px solid #111827;
  border-radius: 5px;
  background: var(--accent);
  cursor: ns-resize;
  opacity: 0.78;
  z-index: 5;
}

.ui-layout-canvas:hover .ui-canvas-resize {
  opacity: 1;
}

.save-indicator {
  min-height: 22px;
  color: #86efac;
  font-weight: 800;
}

.save-indicator.saved::before {
  content: "Saved: ";
}

.report-designer {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(420px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.report-preview {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.2);
}

.report-preview-band {
  display: grid;
  gap: 6px;
  padding: 22px;
  color: #fff;
  background: var(--accent);
}

.report-preview-band strong {
  font-size: 22px;
}

.report-classification-banner {
  min-height: 24px;
  padding: 5px 12px;
  color: #111827;
  background: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.report-classification-banner:empty {
  display: none;
}

.report-classification-banner.bottom {
  border-top: 1px solid #cbd5e1;
}

.report-preview-body {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.report-layout-designer {
  resize: vertical;
  min-height: 560px;
}

.report-section-canvas {
  display: grid;
  gap: 18px;
  min-height: 620px;
  padding: 18px 22px 32px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  overflow: auto;
}

.report-layout-section {
  position: absolute;
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 118px;
  min-height: 54px;
  padding: 10px;
  border: 1px solid #fb923c;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  color: #111827;
  cursor: move;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  touch-action: none;
  overflow: hidden;
}

.report-layout-section.disabled {
  opacity: 0.48;
  border-style: dashed;
  background: rgba(226, 232, 240, 0.92);
}

.report-layout-section span {
  color: #475569;
  font-size: 12px;
}

.report-flow-section {
  display: grid;
  gap: 8px;
  padding-top: 9px;
  border-top: 3px solid var(--accent);
  color: #111827;
}

.report-flow-section.disabled {
  opacity: 0.48;
}

.report-section-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  padding-bottom: 2px;
}

.report-section-title strong {
  color: var(--accent);
  font-size: 18px;
}

.report-section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.report-section-actions button {
  padding: 3px 10px;
  font-size: 12px;
}

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

.report-section-control {
  display: grid;
  grid-template-columns: auto minmax(104px, max-content) minmax(220px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.22);
}

.report-section-control.dragging {
  opacity: 0.45;
}

.report-section-control.drag-over {
  border-color: var(--accent);
  background: rgba(249, 115, 22, 0.12);
}

.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 30px;
  color: var(--muted);
  cursor: grab;
  font-weight: 800;
  letter-spacing: -2px;
}

.report-section-control .inline-check {
  margin: 0;
}

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

.report-custom-cards {
  grid-column: 3;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  background: rgba(17, 24, 39, 0.24);
}

.report-custom-cards legend {
  padding: 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.report-custom-cards-empty {
  grid-column: 3;
}

.report-section-sample {
  display: grid;
  gap: 5px;
  font-size: 13px;
}

.report-section-sample div {
  display: grid;
  grid-template-columns: minmax(130px, 0.26fr) minmax(0, 1fr);
  gap: 14px;
}

.report-section-sample span {
  color: #111827;
}

.report-section-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #111827;
}

.report-section-toggle {
  color: #111827;
}

.preview-line {
  min-height: 26px;
  padding-bottom: 8px;
  border-bottom: 1px solid #cbd5e1;
  color: #334155;
}

.preview-line.strong {
  color: #111827;
  font-weight: 900;
}

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

.login-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 30% 12%, rgba(249, 115, 22, 0.14), transparent 24rem),
    linear-gradient(180deg, #151c2b 0%, var(--bg) 52%, var(--bg-deep) 100%);
}

.login-card {
  width: min(440px, 100%);
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(31, 41, 55, 0.94);
  box-shadow: var(--shadow);
}

.login-card h1,
.login-card p {
  margin: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
}

.modal-card {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 22px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.login-logo,
.rail-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-logo svg {
  width: 78px;
  height: 78px;
}

.rail-logo,
.rail-logo svg {
  width: 56px;
  height: 56px;
}

.side-rail button.rail-icon {
  background: rgba(17, 24, 39, 0.28);
  color: var(--text);
  border-color: var(--border);
  padding: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.side-rail button.rail-action {
  background: var(--accent);
  color: #111827;
  border-color: rgba(249, 115, 22, 0.65);
  padding: 0 10px;
}

.rail-admin-icon {
  width: 22px;
  height: 22px;
}

.rail-cases {
  display: grid;
  gap: 8px;
  width: 100%;
  justify-items: center;
}

.rail-case {
  width: 56px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.48);
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

.rail-case.active {
  border-color: var(--accent);
  color: var(--accent);
}

.payload-hero h1 {
  font-size: 24px;
}

#homeView {
  display: grid;
  gap: 16px;
}

#homeView.hidden {
  display: none !important;
}

.dashboard-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.search-results,
.assigned-case-list,
.inventory-list,
.document-list,
.document-groups,
.upload-list {
  display: grid;
  gap: 10px;
}

.flight-log-panel {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.flight-log-table {
  display: grid;
  gap: 6px;
}

.flight-log-section {
  gap: 8px;
}

.flight-log-head,
.flight-log-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(145px, 0.56fr) minmax(360px, 2.35fr) minmax(96px, max-content);
  gap: 12px;
  align-items: center;
}

.flight-log-head {
  padding: 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.flight-log-row {
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 12px;
  border-color: var(--border);
  background: var(--panel-2);
  box-shadow: none;
  cursor: pointer;
}

.flight-log-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-row-actions {
  display: flex;
  justify-content: flex-end;
  min-width: 96px;
  overflow: visible !important;
  text-overflow: clip !important;
}

.flight-row-actions button {
  white-space: nowrap;
}

.metadata-log-table {
  display: grid;
  gap: 6px;
}

.metadata-log-head,
.metadata-log-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.68fr) minmax(140px, 0.44fr) minmax(360px, 2fr) minmax(96px, max-content);
  gap: 12px;
  align-items: center;
}

.metadata-log-head {
  padding: 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.metadata-log-row {
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 12px;
  background: var(--panel-2);
  box-shadow: none;
  cursor: pointer;
}

.metadata-log-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metadata-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-2);
}

.metadata-table,
.metadata-log-cards {
  display: grid;
  gap: 8px;
}

.metadata-table-head,
.metadata-table-row {
  display: grid;
  gap: 10px;
  align-items: start;
}

.metadata-inventory-table .metadata-table-head,
.metadata-inventory-table .metadata-table-row {
  grid-template-columns: 1fr 1.3fr 0.8fr 1.3fr 0.5fr;
}

.metadata-table-head {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.metadata-table-row {
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.metadata-table-row span,
.metadata-log-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.metadata-log-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.metadata-log-collapse {
  display: block;
}

.metadata-log-summary {
  display: grid;
  grid-template-columns: 16px minmax(130px, 0.8fr) minmax(180px, 1.6fr) auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.metadata-log-summary::-webkit-details-marker {
  display: none;
}

.metadata-log-summary::before {
  content: "▸";
  color: var(--accent);
  font-size: 13px;
  grid-column: 1;
}

.metadata-log-summary strong {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metadata-log-summary-location {
  grid-column: 3;
  min-width: 0;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metadata-log-summary .small {
  justify-self: end;
  white-space: nowrap;
}

.metadata-log-collapse[open] .metadata-log-summary {
  margin-bottom: 10px;
}

.metadata-log-collapse[open] .metadata-log-summary::before {
  content: "▾";
}

.flight-flyout {
  width: min(680px, calc(100vw - 52px));
}

.flight-map-card {
  display: grid;
  gap: 10px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.flight-map {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0f172a;
}

.flight-map-large {
  min-height: min(78vh, 820px);
}

.flight-map-interactive {
  min-height: min(74vh, 780px);
  background: #1f2937;
}

.flight-map-loading {
  display: grid;
  min-height: inherit;
  place-items: center;
  color: var(--muted);
}

.flight-map-canvas {
  position: relative;
  max-width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
}

.flight-map-tile {
  position: absolute;
  width: 256px;
  height: 256px;
  user-select: none;
}

.flight-map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9));
  pointer-events: none;
}

.flight-map-legend,
.flight-map-attribution {
  position: absolute;
  z-index: 3;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.86);
  color: #e5e7eb;
  font-size: 12px;
}

.flight-map-legend {
  left: 10px;
  bottom: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
}

.flight-map-attribution {
  right: 8px;
  bottom: 8px;
  padding: 4px 7px;
  color: #bfdbfe;
}

.start-dot,
.end-dot,
.path-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
}

.start-dot {
  background: #22c55e;
}

.end-dot {
  background: #ef4444;
}

.path-dot {
  width: 18px;
  height: 5px;
  border-radius: 999px;
  background: #f97316;
}

.flight-map-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flight-map-modal-card {
  width: min(96vw, 1500px);
  height: min(92vh, 980px);
  max-height: 92vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
}

.maplibregl-ctrl button {
  min-width: 29px;
  min-height: 29px;
  box-shadow: none;
}

.search-hit {
  display: grid;
  gap: 3px;
  width: 100%;
  text-align: left;
  color: var(--text);
  background: var(--panel-2);
  border-color: var(--border);
  box-shadow: none;
}

.search-hit span,
.small {
  font-size: 12px;
}

.assigned-case-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  text-align: left;
  color: var(--text);
  background: var(--panel-2);
  border-color: var(--border);
  box-shadow: none;
}

.assigned-case-row span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.assigned-case-row strong,
.assigned-case-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assigned-case-row em,
.assigned-case-meta {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.assigned-case-meta {
  flex: 0 0 auto;
}

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

.metric-tile,
.metric-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
}

.metric-tile span,
.mini-grid span {
  display: grid;
  gap: 5px;
  color: var(--muted);
}

.metric-tile strong {
  display: block;
  margin-top: 4px;
  font-size: 32px;
  line-height: 1;
}

.inventory-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.inventory-row span {
  color: var(--accent);
  font-weight: 900;
}

.case-title-row,
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.case-title-row {
  margin-bottom: 12px;
}

.case-title-row h1,
.section-heading h2 {
  margin: 0;
}

.case-title-row p {
  margin: 2px 0 0;
}

.subsection {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

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

.mini-grid b {
  color: var(--text);
  font-size: 20px;
}

.thumb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.thumb-wrap {
  position: relative;
  width: 84px;
  height: 84px;
}

.thumb {
  width: 84px;
  height: 84px;
  min-height: 84px;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #0b1220;
  border-color: var(--border);
  box-shadow: none;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-delete {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 999px;
  background: #b91c1c;
  color: #fff;
  border-color: rgba(248, 113, 113, 0.75);
  box-shadow: none;
  font-size: 13px;
}

.photo-modal-card {
  width: min(1100px, 96vw);
  max-height: 94vh;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.photo-modal-card img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  background: #0b1220;
}

.document-row,
.upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.document-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--text);
  background: var(--field);
  border-color: var(--border);
  box-shadow: none;
}

.document-group-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.document-arrow {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--muted);
  transition: transform 120ms ease;
}

.document-arrow.open {
  transform: rotate(90deg);
}

.template-group,
.template-list {
  display: grid;
  gap: 8px;
}

.template-list {
  padding: 8px 0 8px 14px;
  border-left: 2px solid var(--border);
}

.template-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.2);
}

.button-link {
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 7px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.button-link.secondary {
  background: var(--panel-2);
  color: var(--text);
}

.inline-check {
  display: inline-flex;
  align-items: center;
  grid-auto-flow: column;
  justify-content: flex-start;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  min-height: auto;
  padding: 0;
  white-space: normal;
  line-height: 1.2;
}

.inline-check input[type="checkbox"],
.inline-check input[type="radio"] {
  flex: 0 0 auto;
  width: 14px;
  min-width: 14px;
  max-width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
  background: initial;
}

.danger-border {
  color: #fca5a5 !important;
  border-color: rgba(239, 68, 68, 0.62) !important;
}

.pdf-editor-card {
  width: min(1600px, calc(100vw - 20px));
  height: calc(100vh - 40px);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
}

.pdf-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 0;
}

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

.signature-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.5);
}

.pdf-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 560px;
  align-self: stretch;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #262626;
}

.pdf-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #262626;
}

.pdf-overlay {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.pdf-overlay.placing {
  pointer-events: auto;
  outline: 2px dashed rgba(249, 115, 22, 0.72);
  background: rgba(249, 115, 22, 0.035);
}

.pdf-draft {
  position: absolute;
  min-width: 80px;
  min-height: 28px;
  padding: 3px 5px;
  border: 2px dashed var(--accent);
  background: rgba(255, 255, 255, 0.88);
  color: #111827;
  cursor: move;
  touch-action: none;
  user-select: none;
  pointer-events: auto;
  font-size: 12px;
  line-height: 1.15;
}

.pdf-draft-signature {
  padding: 3px;
}

.pdf-draft img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.pdf-resize-handle {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid #111827;
  background: var(--accent);
  cursor: nwse-resize;
}

.soft-card {
  box-shadow: none;
  background: rgba(17, 24, 39, 0.22);
}

.signature-pad {
  width: 100%;
  height: 160px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  touch-action: none;
}

.annotation-list {
  display: grid;
  gap: 8px;
}

.annotation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.2);
}

.pdf-form-fields {
  display: grid;
  gap: 10px;
  max-height: 34vh;
  overflow: auto;
  padding-right: 4px;
}

.pdf-field-row {
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.2);
}

.custom-check {
  align-self: start;
  justify-self: start;
  color: var(--muted);
}

.custom-check-group,
.custom-radio {
  display: grid;
  align-self: start;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.check-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 16px;
}

.custom-upload-field {
  display: grid;
  gap: 8px;
}

[data-custom-card] .grid.two {
  grid-template-columns: repeat(2, max-content);
  justify-content: start;
  align-items: start;
}

[data-custom-card] label:has(textarea),
[data-custom-card] .custom-upload-field {
  width: min(100%, 760px);
  grid-column: span 2;
}

[data-custom-card] textarea {
  width: min(100%, 760px);
}

[data-custom-card] input,
[data-custom-card] select {
  width: auto;
  min-width: 220px;
  max-width: 760px;
}

.ui-layout-field .inline-check input[type="checkbox"],
.ui-layout-field .inline-check input[type="radio"],
.custom-field-positioned .inline-check input[type="checkbox"],
.custom-field-positioned .inline-check input[type="radio"],
[data-custom-card] .inline-check input[type="checkbox"],
[data-custom-card] .inline-check input[type="radio"] {
  width: 14px;
  min-width: 14px;
  max-width: 14px;
  height: 14px;
  min-height: 14px;
  padding: 0;
}

[data-custom-card] .check-list input[type="checkbox"] {
  min-width: 14px;
}

[data-custom-card] select {
  min-width: max-content;
}

@media (max-width: 980px) {
  .side-rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: 52px;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    padding: 10px 8px;
    gap: 8px;
  }

  .rail-spacer {
    display: block;
  }

  .rail-icon,
  .rail-action {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 12px;
    padding: 0 6px;
    font-size: 14px;
  }

  .rail-logo,
  .rail-logo svg {
    width: 36px;
    height: 36px;
  }

  .rail-version {
    display: block;
    font-size: 11px;
  }

  .rail-case {
    width: 36px;
    min-height: 36px;
    padding: 0 4px;
    border-radius: 12px;
  }

  .shell {
    width: calc(100% - 52px);
    margin-left: 52px;
    padding: 12px;
  }

  .hero {
    flex-direction: column;
  }

  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .search-row,
  .metric-stack,
  .mini-grid,
  .document-row,
  .upload-row,
  .template-row,
  .admin-overview,
  .admin-dashboard,
  .admin-workflow-grid,
  .audit-filter-grid,
  .audit-layout,
  .ui-builder,
  .report-designer,
  .field-row,
  .annotation-row {
    grid-template-columns: 1fr;
  }

  .summary-card,
  .audit-card {
    grid-row: auto;
    grid-column: auto;
  }

  .pdf-toolbar {
    display: grid;
  }

  .pdf-stage,
  .pdf-stage iframe {
    min-height: 56vh;
    height: 56vh;
  }
}
