.report-canvas-root {
  position: relative;
}

.report-canvas-root:focus {
  outline: none;
}

.report-sheet {
  position: relative;
  background: #e8e8e8;
  padding: 12px;
}

.report-continuous-page {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.report-page {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin: 0 auto 12px;
  position: relative;
  overflow: hidden;
  page-break-after: always;
  box-sizing: border-box;
}

.report-page:last-child {
  page-break-after: auto;
  margin-bottom: 0;
}

.report-band {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.report-band-drop-target {
  outline: 2px dashed var(--mud-palette-primary, #594ae2);
  outline-offset: -2px;
  background-color: color-mix(in srgb, var(--mud-palette-primary, #594ae2) 8%, transparent);
}

.report-shape {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 10pt;
}

.report-shape-arrow {
  position: relative;
}

.report-shape-arrow-head {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #333;
}

.report-band-header {
  border-bottom: 1px dashed #ccc;
}

.report-band-footer {
  border-top: 1px dashed #ccc;
}

.report-band-handle {
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  z-index: 20;
  cursor: ns-resize;
  background: color-mix(in srgb, var(--mud-palette-primary, #0078d7) 25%, transparent);
}

.report-band-handle:hover {
  background: color-mix(in srgb, var(--mud-palette-primary, #0078d7) 55%, transparent);
}

.report-band-handle-header {
  bottom: 0;
}

.report-band-handle-footer {
  top: 0;
}

.report-checkbox {
  user-select: none;
}

.report-band-body {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.report-body-flow {
  width: 100%;
  position: relative;
}

.report-item-abs {
  position: absolute;
  overflow: hidden;
  box-sizing: border-box;
}

.report-item-flow {
  position: relative;
  width: 100%;
  margin-bottom: 2mm;
  box-sizing: border-box;
}

.report-design-mode .report-item-draggable {
  cursor: move;
  user-select: none;
}

.report-design-mode .report-item-draggable.report-item-selected {
  outline: 1px dashed #1e88e5;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
}

.report-table th,
.report-table td {
  border: 1px solid #ccc;
  vertical-align: top;
}

.report-table thead {
  display: table-header-group;
}

.report-table tr {
  page-break-inside: avoid;
}

.report-kv-grid {
  display: grid;
  gap: 1mm 2mm;
  width: 100%;
}

.report-kv-label {
  font-weight: 600;
  opacity: 0.85;
}

.report-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 9999;
  font-size: 48pt;
  color: rgba(180, 180, 180, 0.35);
  transform: rotate(-35deg);
  user-select: none;
}

.report-design-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(0, 120, 215, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 120, 215, 0.08) 1px, transparent 1px);
  z-index: 0;
}

.report-item-selected {
  outline: 2px solid #0078d7;
  outline-offset: 1px;
  z-index: 10;
}

.report-resize-handle {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 8px;
  height: 8px;
  background: #0078d7;
  cursor: se-resize;
  z-index: 2;
}

@media print {
  .report-sheet {
    background: transparent;
    padding: 0;
  }

  .report-no-print {
    display: none !important;
  }

  .report-page {
    box-shadow: none;
    margin: 0;
  }

  .report-continuous-page {
    box-shadow: none;
  }

  * {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
