/* ==========================================================================
   CRIADOR WEB DE ADESIVOS / ETIQUETAS DE PEPTÍDEOS
   Estilos Modernos, Responsivos e Otimizados para Impressão A4
   ========================================================================== */

:root {
  --primary-navy: #041738;
  --secondary-navy: #00285a;
  --accent-green: #3ea508;
  --accent-green-hover: #328606;
  --accent-emerald: #10b981;
  --bg-dark: #0a0f1d;
  --card-bg: #111827;
  --card-bg-light: #1f2937;
  --border-color: #374151;
  --border-focus: #3b82f6;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-sub: #d1d5db;
  --font-family-ui: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-ui);
  background: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ================= HEADER ================= */
.app-header {
  background: linear-gradient(135deg, #06152d 0%, #0c234b 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-container {
  max-width: 1540px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0284c7, #10b981);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.logo-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-version {
  font-size: 0.7rem;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
}

.logo-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-header {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-header:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-header.active {
  background: #2563eb;
  border-color: #3b82f6;
}

.batch-badge {
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  font-weight: bold;
}

/* ================= MAIN CONTAINER ================= */
.main-wrapper {
  max-width: 1540px;
  margin: 1.5rem auto;
  padding: 0 1.25rem 3rem;
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

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

/* ================= CONTROLS COLUMN (LEFT) ================= */
.controls-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.step-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.step-num {
  width: 24px;
  height: 24px;
  background: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

.step-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Peptide Search & Filter */
.search-box-wrap {
  position: relative;
  margin-bottom: 0.75rem;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.4rem;
  background: #1e293b;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background: #243247;
}

/* Category Filter Tags */
.category-filter-bar {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: #374151 transparent;
}

.category-filter-bar::-webkit-scrollbar {
  height: 5px;
}
.category-filter-bar::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 10px;
}

.cat-pill {
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #1f2937;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-pill:hover {
  background: #374151;
  color: #ffffff;
}

.cat-pill.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #3b82f6;
}

/* Peptide Grid / List */
.peptides-grid-wrap {
  max-height: 230px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  background: #0f172a;
  padding: 0.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.4rem;
  scrollbar-width: thin;
}

.peptide-item {
  padding: 0.55rem 0.7rem;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
}

.peptide-item:hover {
  background: #283548;
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.peptide-item.active {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border-color: #60a5fa;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.peptide-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.peptide-cat-sub {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 2px;
}

.peptide-item.active .peptide-cat-sub {
  color: #bfdbfe;
}

/* Direct Peptide Name Edit Field */
.name-edit-wrap {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.name-edit-wrap label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-sub);
  display: flex;
  justify-content: space-between;
}

.input-with-actions {
  display: flex;
  gap: 0.4rem;
}

.text-input-field {
  flex: 1;
  padding: 0.65rem 0.85rem;
  background: #1e293b;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.text-input-field:focus {
  outline: none;
  border-color: #3b82f6;
  background: #223046;
}

.btn-icon-action {
  background: #374151;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-icon-action:hover {
  background: #4b5563;
}

/* ================= STEP 2: DOSAGE CONTROLS ================= */
.unit-toggle-row {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.unit-btn {
  flex: 1;
  padding: 0.55rem 0.3rem;
  background: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.unit-btn:hover {
  background: #374151;
  color: white;
}

.unit-btn.active {
  background: #059669;
  border-color: #10b981;
  color: white;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.25);
}

.dosage-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  max-height: 140px;
  overflow-y: auto;
  padding: 0.25rem 0;
  scrollbar-width: thin;
}

.dose-chip {
  padding: 0.4rem 0.75rem;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dose-chip:hover {
  background: #334155;
  border-color: #10b981;
  color: white;
}

.dose-chip.active {
  background: #10b981;
  border-color: #34d399;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3);
}

.custom-dosage-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.custom-dosage-row .text-input-field {
  font-size: 0.95rem;
}

.select-unit {
  padding: 0.65rem 0.85rem;
  background: #1e293b;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ================= STEP 3: DETAILS & ADVANCED ================= */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control-sm {
  padding: 0.5rem 0.7rem;
  background: #1e293b;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
}

.form-control-sm:focus {
  outline: none;
  border-color: #3b82f6;
  background: #243247;
}

/* Checkbox Toggle */
.checkbox-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.4rem 0;
  cursor: pointer;
  user-select: none;
}

.checkbox-toggle-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #10b981;
  cursor: pointer;
}

.checkbox-toggle-row span {
  font-size: 0.82rem;
  color: var(--text-sub);
}

/* Collapsible Panel */
.collapsible-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: var(--text-sub);
  padding: 0.5rem 0;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  transition: color 0.2s;
}

.collapsible-trigger:hover {
  color: #ffffff;
}

.collapsible-content {
  display: none;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  margin-top: 0.5rem;
}

.collapsible-content.open {
  display: block;
}

.sliders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.range-slider {
  width: 100%;
  accent-color: #3b82f6;
  cursor: pointer;
}

/* ================= RIGHT COLUMN (STICKY PREVIEW) ================= */
.preview-column {
  min-width: 0;
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.preview-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

.preview-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.preview-title-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-title-area h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.tag-live {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.live-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.view-toggle-btns {
  display: flex;
  background: #1e293b;
  border-radius: var(--radius-sm);
  padding: 2px;
}

.btn-view-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-view-toggle.active {
  background: #3b82f6;
  color: white;
}

/* Canvas Viewport */
.canvas-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #060913;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
}

.canvas-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

#stickerCanvas {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  display: block;
}

#sampleCompareImg {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  display: none;
}

.canvas-specs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.65rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Main Action Buttons */
.export-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
}

.btn-primary-action {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-download-png {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-download-png:hover {
  background: linear-gradient(135deg, #047857, #059669);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-download-hd {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-download-hd:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-secondary-action {
  background: #1f2937;
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.15s ease;
}

.btn-secondary-action:hover {
  background: #374151;
  border-color: #4b5563;
}

.btn-full-width {
  grid-column: 1 / -1;
}

.btn-print-sheet {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.btn-print-sheet:hover {
  background: linear-gradient(135deg, #6d28d9, #7c3aed);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

/* ================= MODAL DE IMPRESSÃO FOLHA A4 ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-window {
  background: #111827;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 95%;
  max-width: 1080px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.modal-header {
  padding: 1rem 1.25rem;
  background: #0f172a;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.25rem;
}

@media (max-width: 860px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
}

.modal-controls-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.a4-preview-pane {
  background: #1e293b;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  justify-content: center;
  overflow: auto;
  max-height: 65vh;
}

/* Folha A4 Simulação Visual */
.sheet-a4 {
  width: 210mm;
  min-height: 297mm;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 8mm 6mm;
  display: grid;
  gap: 3mm 3mm;
  align-content: start;
  transform-origin: top center;
}

/* Grids da folha A4 */
.sheet-a4.grid-24 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(8, 1fr);
}

.sheet-a4.grid-18 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(6, 1fr);
}

.sheet-a4.grid-14 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(7, 1fr);
}

.sheet-a4.grid-12 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(6, 1fr);
}

.sheet-sticker-slot {
  position: relative;
  border: 1px dashed #cbd5e1;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}

.sheet-sticker-slot.no-border {
  border: none;
}

.sheet-sticker-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal-footer {
  padding: 0.85rem 1.25rem;
  background: #0f172a;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ================= BATCH QUEUE MODAL ================= */
.batch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.batch-table th,
.batch-table td {
  padding: 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.batch-table th {
  background: #1e293b;
  color: var(--text-muted);
  font-weight: 600;
}

.batch-thumb {
  width: 60px;
  height: 30px;
  border-radius: 3px;
  object-fit: cover;
}

.batch-empty-msg {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}

/* ================= NOTIFICAÇÃO TOAST ================= */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #10b981;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ================= REGRAS DE IMPRESSÃO (CTRL+P / IMPRESSORA) ================= */
@media print {
  body * {
    visibility: hidden;
  }
  
  #printSheetContainer,
  #printSheetContainer * {
    visibility: visible;
  }

  #printSheetContainer {
    position: absolute;
    left: 0;
    top: 0;
    width: 210mm !important;
    min-height: 297mm !important;
    padding: 8mm 6mm !important;
    margin: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  @page {
    size: A4 portrait;
    margin: 0mm;
  }
}
