html, body {
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

.modal-container {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.modal-left {
  width: 300px;
  padding: 16px;
  overflow-y: auto;
}

.modal-right {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.modal-footer {
  border-top: 1px solid #e5e7eb;
  padding: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.dark .modal-footer {
  border-top-color: rgba(255, 255, 255, 0.05);
}

.relatorio-preview {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #1f2937;
  white-space: normal;
}

.dark .relatorio-preview {
  color: #e2e8f0;
}

@media (max-width: 768px) {
  .modal-body {
    flex-direction: column;
    overflow-y: auto;
  }
  .modal-left {
    width: 100%;
    overflow-y: visible;
  }
  .modal-right {
    overflow-y: visible;
  }
    .relatorio-preview {
    overflow-y: visible;
  }
}

.export-mode {
  max-width: 1600px !important;
  background-color: #ffffff !important;
  padding: 20px !important;
  gap: 16px !important;
}

.export-mode .grid {
  grid-template-columns: repeat(12, 1fr) !important;
}

.export-mode .col-span-1, 
.export-mode .col-span-2, 
.export-mode .col-span-4, 
.export-mode .col-span-6, 
.export-mode .col-span-8, 
.export-mode .col-span-12 {
  grid-column: span 6 !important;
}

.export-mode .col-span-12 {
  grid-column: span 12 !important;
}

.export-mode .min-h-\[450px\],
.export-mode .min-h-\[500px\] {
  min-height: 300px !important;
}

.export-mode .space-y-8 {
  gap: 12px !important;
}


