/* ===== RUBRICAS BUILDER - ESTILOS ESPECÍFICOS ===== */

/* ===== WIZARD PROGRESS ===== */
.wizard-progress {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all var(--transition);
}

.step-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  max-width: 100px;
}

.wizard-step.active .step-number {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.wizard-step.active .step-label {
  color: var(--primary);
  font-weight: 600;
}

.wizard-step.completed .step-number {
  background: var(--success);
  color: white;
}

.wizard-step.completed .step-label {
  color: var(--success);
}

.progress-text {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

/* ===== WIZARD CONTAINER ===== */
.wizard-container {
  max-width: 900px;
  margin: 0 auto;
}

.wizard-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.wizard-content.active {
  display: block;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 16px;
}

.final-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.step-description {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* ===== FORM STYLES ===== */
.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-row .form-input {
  flex: 1;
  min-width: 200px;
}

.form-row .form-select {
  flex: 0.5;
  min-width: 180px;
}

.add-btn {
  flex-shrink: 0;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
}

/* ===== RADIO GROUP ===== */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.radio-item input[type="radio"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.radio-label {
  font-size: 0.95rem;
  color: var(--text);
}

/* ===== TYPES GRID (Overview) ===== */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.type-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}

.type-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.type-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.type-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.type-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.type-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.type-features li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--text);
}

.type-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* ===== BENEFITS GRID ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.benefit-item {
  text-align: center;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  transition: transform var(--transition);
}

.benefit-item:hover {
  transform: translateY(-4px);
}

.benefit-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.benefit-item h4 {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.benefit-item p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== BLOOM LEVELS PREVIEW ===== */
.bloom-levels-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.bloom-level-mini {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 8px;
  background: var(--bloom-color);
  color: var(--bloom-text);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.bloom-level-mini:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.bloom-mini-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.bloom-mini-verbs {
  font-size: 0.75rem;
  opacity: 0.8;
}

.bloom-link {
  margin-top: 12px;
  font-size: 0.9rem;
}

.bloom-link a {
  color: var(--primary);
  font-weight: 500;
}

/* ===== CRITÉRIOS ===== */
.add-criterio-form {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  padding: 20px;
  border-radius: var(--radius);
  margin-top: 24px;
}

.criterios-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.criterio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.criterio-item:hover {
  border-color: var(--primary);
}

.criterio-item .criterio-content {
  flex: 1;
}

.criterio-item .criterio-name {
  font-weight: 600;
  color: var(--text);
}

.criterio-item .criterio-bloom {
  font-size: 0.85rem;
  color: var(--muted);
}

.criterio-item .criterio-actions {
  display: flex;
  gap: 8px;
}

.btn-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove:hover {
  background: var(--danger);
  color: white;
}

/* ===== SUGGESTIONS ===== */
.suggestions-box {
  margin-top: 24px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

.suggestions-box h4 {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 12px;
}

.suggestions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-item {
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.suggestion-item:hover {
  background: var(--primary);
  color: white;
}

/* ===== LEVELS SELECTOR ===== */
.levels-selector {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.level-btn {
  padding: 12px 24px;
  border: 2px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition);
  font-family: inherit;
  font-size: 0.95rem;
}

.level-btn:hover {
  border-color: var(--primary);
}

.level-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ===== NIVEIS CONFIG ===== */
.niveis-config {
  margin-top: 24px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.niveis-config h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text);
}

.niveis-nomes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nivel-nome-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nivel-nome-item label {
  min-width: 80px;
  font-weight: 500;
  font-size: 0.9rem;
}

.nivel-nome-item input {
  flex: 1;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  margin-top: 16px;
}

/* ===== NIVEIS PRESETS ===== */
.niveis-preset-box {
  margin-top: 24px;
}

.niveis-preset-box h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text);
}

.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.preset-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  font-family: inherit;
}

.preset-btn:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.preset-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.preset-btn span:not(.preset-icon) {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.preset-btn small {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== DESCRITORES TABLE ===== */
.descritores-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.descritores-toolbar .btn-sm {
  margin-top: 0;
}

.descritores-table-container {
  overflow-x: auto;
}

.descritores-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.descritores-table th {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 16px 12px;
  text-align: left;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.descritores-table th:first-child {
  background: var(--primary-dark);
  min-width: 150px;
}

.descritores-table td {
  border: 1px solid var(--border);
  padding: 8px;
}

.descritores-table td:first-child {
  background: rgba(102, 126, 234, 0.05);
  font-weight: 600;
  color: var(--text);
}

.descritores-table tr:hover td {
  background: rgba(102, 126, 234, 0.03);
}

.descritores-table textarea {
  width: 100%;
  min-height: 80px;
  border: none;
  background: transparent;
  resize: vertical;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
}

.descritores-table textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
  background: white;
}

/* ===== BLOOM BADGE ===== */
.bloom-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.bloom-badge.recordar { background: #fef3c7; color: #92400e; }
.bloom-badge.compreender { background: #dbeafe; color: #1e40af; }
.bloom-badge.aplicar { background: #d1fae5; color: #065f46; }
.bloom-badge.analisar { background: #fce7f3; color: #9d174d; }
.bloom-badge.avaliar { background: #f3e8ff; color: #7c3aed; }
.bloom-badge.criar { background: #fed7aa; color: #c2410c; }

/* ===== RESUMO SECTION ===== */
.resumo-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.resumo-section:last-child {
  border-bottom: none;
}

.resumo-section h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.resumo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.resumo-label {
  font-weight: 500;
  color: var(--muted);
  min-width: 140px;
}

.resumo-value {
  color: var(--text);
}

.btn-edit {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 0.85rem;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.btn-edit:hover {
  opacity: 1;
}

.resumo-criterios-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resumo-criterio-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 999px;
  font-size: 0.85rem;
}

.resumo-niveis-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.resumo-nivel-tag {
  padding: 8px 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== RUBRICA PREVIEW ===== */
.rubrica-preview {
  overflow-x: auto;
}

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

.rubrica-table th {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 12px;
  text-align: center;
  font-weight: 600;
}

.rubrica-table th:first-child {
  text-align: left;
  background: var(--primary-dark);
}

.rubrica-table td {
  border: 1px solid var(--border);
  padding: 12px;
  font-size: 0.85rem;
  vertical-align: top;
}

.rubrica-table td:first-child {
  background: rgba(102, 126, 234, 0.05);
  font-weight: 600;
}

.rubrica-table tr:nth-child(even) td {
  background: rgba(102, 126, 234, 0.02);
}

/* ===== TEMPLATES ===== */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.template-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  cursor: pointer;
}

.template-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.template-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.template-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.template-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.template-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

.meta-icon {
  font-size: 1rem;
}

.template-criterios {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.criterio-tag {
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--primary);
}

.template-btn {
  width: 100%;
  margin-top: 8px;
}

.template-card-blank {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 300px;
}

.template-card-blank .template-icon {
  margin-bottom: 12px;
}

/* ===== HISTORY ===== */
.history-toolbar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.search-box {
  flex: 1;
  min-width: 200px;
}

.filter-box {
  min-width: 180px;
}

.history-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.history-item {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
}

.history-item:hover {
  border-color: var(--primary);
}

.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.history-item-title {
  font-weight: 600;
  color: var(--text);
  font-size: 1.1rem;
}

.history-item-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.history-tag {
  padding: 4px 10px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--primary);
}

.history-item-date {
  font-size: 0.85rem;
  color: var(--muted);
}

.history-item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.history-item-actions .btn {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--muted);
  margin-bottom: 24px;
}

.empty-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ===== EXPORT ===== */
.export-selector {
  max-width: 600px;
  margin: 0 auto 32px;
}

.export-content {
  max-width: 100%;
}

.export-content.hidden {
  display: none;
}

.export-options {
  margin-top: 32px;
}

.export-options h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text);
}

.export-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.export-buttons .btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
}

.btn-icon {
  font-size: 1.5rem;
}

.export-buttons .btn small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 400;
}

.print-settings {
  margin-top: 24px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.print-settings h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text);
}

.rubrica-export-preview {
  overflow-x: auto;
}

/* ===== CTA SECTION ===== */
.cta-section {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background: var(--surface);
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--text);
}

.modal-close:hover {
  background: var(--danger);
  color: white;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 16px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.toast.hidden {
  opacity: 0;
  pointer-events: none;
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--danger);
}

/* ===== HIDDEN CLASS ===== */
.hidden {
  display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .wizard-steps {
    flex-direction: column;
    gap: 16px;
  }
  
  .wizard-steps::before {
    display: none;
  }
  
  .wizard-step {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
  }
  
  .step-label {
    max-width: none;
  }
  
  .wizard-actions {
    flex-direction: column;
  }
  
  .wizard-actions .btn {
    width: 100%;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .form-row .form-input,
  .form-row .form-select {
    width: 100%;
  }
  
  .types-grid,
  .benefits-grid,
  .templates-grid {
    grid-template-columns: 1fr;
  }
  
  .bloom-levels-preview {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .descritores-table {
    font-size: 0.8rem;
  }
  
  .history-toolbar {
    flex-direction: column;
  }
  
  .export-buttons {
    grid-template-columns: 1fr;
  }
  
  .cta-section {
    flex-direction: column;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  /* Ocultar elementos não essenciais */
  .site-header,
  .nav-menu,
  .theme-toggle,
  .back-to-top,
  .wizard-progress,
  .wizard-actions,
  .final-actions,
  .btn-edit,
  .export-options,
  .print-settings,
  .site-footer,
  .toast,
  .modal-overlay,
  .skip-link {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
    font-size: 11pt;
  }
  
  main {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
    page-break-inside: avoid;
  }
  
  .rubrica-table,
  .rubrica-preview,
  .rubrica-export-preview {
    width: 100%;
    overflow: visible;
  }
  
  .rubrica-table th {
    background: #4c1d95 !important;
    color: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .rubrica-table td {
    border: 1px solid #ccc !important;
    padding: 8px !important;
  }
  
  .rubrica-table td:first-child {
    background: #f5f5f5 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .resumo-section {
    page-break-inside: avoid;
  }
  
  .bloom-badge {
    border: 1px solid currentColor;
    padding: 2px 8px;
  }
  
  /* Forçar cores em impressão */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  /* Orientação paisagem */
  @page {
    margin: 1.5cm;
    size: A4 landscape;
  }
}

/* ===== PRINT FONT SIZES ===== */
body.print-small .rubrica-table,
body.print-small .rubrica-preview {
  font-size: 9pt;
}

body.print-large .rubrica-table,
body.print-large .rubrica-preview {
  font-size: 13pt;
}