/* ========== CAMPANHAS - ADMIN USERS ========== */

/* ========== FIX: BOTÕES PRIMÁRIOS VISÍVEIS ========== */

/* Todos os botões primários devem ter cor azul visível */
.btn-primary {
  background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3) !important;
  border: none !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1557b0 0%, #0d47a1 100%) !important;
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.4) !important;
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3) !important;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.campaign-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: var(--border-radius-lg, 12px);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.campaign-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.campaign-card.campaign-archived {
  opacity: 0.7;
}

.campaign-card-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
  background: linear-gradient(to bottom, #fafafa, #ffffff);
}

.campaign-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.campaign-title h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color, #202124);
  margin: 0;
  line-height: 1.4;
}

.campaign-description {
  font-size: 14px;
  color: var(--text-muted, #5f6368);
  margin: 8px 0 0;
  line-height: 1.5;
}

.campaign-card-body {
  padding: 20px;
}

.campaign-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.campaign-info .info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted, #5f6368);
}

.campaign-info .info-item i {
  width: 16px;
  color: var(--primary, #1a73e8);
}

.campaign-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--gray-50, #f8f9fa);
  border-radius: var(--border-radius, 8px);
}

.stat-item {
  text-align: center;
}

.stat-item .stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary, #1a73e8);
  line-height: 1.2;
}

.stat-item.stat-warning .stat-value {
  color: var(--warning, #f9ab00);
}

.stat-item.stat-success .stat-value {
  color: var(--success, #1e8e3e);
}

.stat-item .stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted, #5f6368);
  margin-top: 4px;
  line-height: 1.3;
}

.campaign-card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color, #e0e0e0);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.campaign-nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.campaign-card-footer .action-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

/* ========== MODAL ATRIBUIR CUPONS ========== */

.modal-large {
  max-width: 800px;
}

.assign-instructions {
  background: var(--info-light, #e8f0fe);
  border-left: 4px solid var(--info, #1967d2);
  padding: 12px 16px;
  margin-bottom: 24px;
  border-radius: var(--border-radius, 8px);
}

.assign-instructions p {
  margin: 0;
  font-size: 14px;
  color: var(--text-color, #202124);
}

.assign-instructions i {
  color: var(--info, #1967d2);
  margin-right: 8px;
}

.children-selector {
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: var(--border-radius, 8px);
  overflow: hidden;
}

.selector-header {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: var(--gray-50, #f8f9fa);
  border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.selector-header .form-control {
  flex: 1;
  margin: 0;
}

.children-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 8px;
}

/* Nova lista manual de atribuição */
.children-list-manual {
  max-height: 400px;
  overflow-y: auto;
  padding: 12px;
  background: white;
}

.child-assignment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: var(--border-radius, 8px);
  border: 1px solid var(--border-color, #e0e0e0);
  background: white;
  transition: all 0.2s ease;
}

.child-assignment-item:hover {
  background: var(--gray-50, #f8f9fa);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.child-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.child-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.child-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary, #1a73e8);
  flex-shrink: 0;
}

.child-name {
  font-weight: 500;
  color: var(--text-color, #202124);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.child-class-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted, #5f6368);
  padding: 4px 10px;
  background: var(--gray-50, #f8f9fa);
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.child-class-badge i {
  font-size: 11px;
}

.child-coupon-input {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.coupon-input {
  width: 140px;
  padding: 8px 12px;
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: var(--border-radius, 8px);
  font-size: 13px;
  font-family: 'Courier New', monospace;
  transition: all 0.2s ease;
}

.coupon-input:focus {
  outline: none;
  border-color: var(--primary, #1a73e8);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.coupon-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  background: var(--gray-100, #dadce0);
  color: var(--text-muted, #5f6368);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  transition: all 0.2s ease;
}

.coupon-count.has-coupons {
  background: var(--primary, #1a73e8);
  color: white;
}

/* Manter estilos antigos para compatibilidade */
.child-checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--border-radius, 8px);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.child-checkbox-item:hover {
  background: var(--gray-50, #f8f9fa);
  border-color: var(--border-color, #e0e0e0);
}

.child-checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary, #1a73e8);
}

.child-checkbox-item .child-class {
  font-size: 13px;
  color: var(--text-muted, #5f6368);
  padding: 4px 8px;
  background: var(--gray-50, #f8f9fa);
  border-radius: 4px;
}

.selected-count {
  padding: 12px;
  background: var(--gray-50, #f8f9fa);
  border-top: 1px solid var(--border-color, #e0e0e0);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted, #5f6368);
  text-align: center;
}

/* Resumo de atribuição */
.assignment-summary {
  padding: 16px;
  background: linear-gradient(135deg, var(--primary-light, #e8f0fe) 0%, #f0f4ff 100%);
  border-top: 2px solid var(--primary, #1a73e8);
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
}

.assignment-summary span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-color, #202124);
}

.assignment-summary i {
  color: var(--primary, #1a73e8);
  font-size: 16px;
}

.assignment-summary strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary, #1a73e8);
}

.coupon-preview {
  margin-top: 16px;
  border: 2px solid var(--primary-light, #e8f0fe);
  border-radius: var(--border-radius-lg, 12px);
  overflow: hidden;
}

.preview-header {
  background: var(--primary-light, #e8f0fe);
  color: var(--primary, #1a73e8);
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-content {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.preview-stat {
  text-align: center;
}

.preview-stat .stat-value {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary, #1a73e8);
  line-height: 1;
}

.preview-stat .stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted, #5f6368);
  margin-top: 6px;
}

.preview-stat.preview-total .stat-value {
  color: var(--success, #1e8e3e);
  font-size: 36px;
}

.preview-multiply,
.preview-equals {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-light, #80868b);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ========== BADGES ========== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.badge-success {
  background: var(--success-light, #e6f4ea);
  color: var(--success, #1e8e3e);
}

.badge-warning {
  background: var(--warning-light, #fef7e0);
  color: var(--warning, #f9ab00);
}

.badge-secondary {
  background: var(--gray-100, #dadce0);
  color: var(--text-muted, #5f6368);
}

/* ========== BOTÕES PEQUENOS ========== */

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-sm i {
  font-size: 12px;
}

/* Toggle Ativar/Desativar */
.btn-toggle-active {
  background: #34a853;
  color: #fff;
  border: none;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-toggle-active:hover {
  background: #2d9249;
  transform: translateY(-1px);
}

.btn-toggle-inactive {
  background: #9aa0a6;
  color: #fff;
  border: none;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-toggle-inactive:hover {
  background: #34a853;
  transform: translateY(-1px);
}

/* Badge warning */
.badge-warning {
  background: #fff3cd;
  color: #856404;
}

.btn-edit {
  background: var(--warning, #f9ab00);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-edit:hover {
  background: #e09700;
  transform: translateY(-1px);
}

/* ========== MODAL DETALHES DA CAMPANHA ========== */

.campaign-details-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--gray-50, #f8f9fa);
  border-radius: var(--border-radius, 8px);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--primary, #1a73e8);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
}

.stat-card.stat-warning {
  background: rgba(249, 171, 0, 0.1);
}

.stat-card.stat-warning:hover {
  border-color: var(--warning, #f9ab00);
}

.stat-card.stat-success {
  background: rgba(30, 142, 62, 0.1);
}

.stat-card.stat-success:hover {
  border-color: var(--success, #1e8e3e);
}

.stat-icon {
  font-size: 32px;
  color: var(--primary, #1a73e8);
  opacity: 0.8;
}

.stat-card.stat-warning .stat-icon {
  color: var(--warning, #f9ab00);
}

.stat-card.stat-success .stat-icon {
  color: var(--success, #1e8e3e);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-info .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-color, #202124);
  line-height: 1;
}

.stat-info .stat-label {
  font-size: 13px;
  color: var(--text-muted, #5f6368);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Seção de Cupons Pagos */
.paid-coupons-section {
  margin-top: 24px;
}

.paid-coupons-section h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color, #202124);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color, #e0e0e0);
}

.paid-coupons-section h4 i {
  color: var(--success, #1e8e3e);
}

/* Tabela de Cupons Pagos */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--border-radius, 8px);
  border: 1px solid var(--border-color, #e0e0e0);
}

.paid-coupons-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.paid-coupons-table thead {
  background: linear-gradient(to bottom, #f8f9fa, #f0f2f5);
}

.paid-coupons-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color, #202124);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-color, #e0e0e0);
}

.paid-coupons-table th i {
  margin-right: 6px;
  color: var(--primary, #1a73e8);
  font-size: 12px;
}

.paid-coupons-table tbody tr {
  transition: background-color 0.2s ease;
}

.paid-coupons-table tbody tr:hover {
  background-color: var(--gray-50, #f8f9fa);
}

.paid-coupons-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-color, #202124);
  border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.paid-coupons-table tbody tr:last-child td {
  border-bottom: none;
}

.coupon-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--primary, #1a73e8);
  color: #ffffff;
  border-radius: 4px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  font-size: 13px;
}

.paid-coupons-table td code {
  background: var(--gray-50, #f8f9fa);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--text-muted, #5f6368);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--gray-50, #f8f9fa);
  border-radius: var(--border-radius, 8px);
  border: 2px dashed var(--border-color, #e0e0e0);
}

.empty-state i {
  font-size: 64px;
  color: var(--text-light, #80868b);
  opacity: 0.4;
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted, #5f6368);
  margin: 12px 0 8px;
}

.empty-state small {
  font-size: 14px;
  color: var(--text-light, #80868b);
}

/* ========== RESPONSIVO ========== */

@media (max-width: 768px) {
  .campaigns-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .campaign-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
  }

  .stat-item .stat-value {
    font-size: 20px;
  }

  .stat-item .stat-label {
    font-size: 11px;
  }

  .campaign-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .campaign-card-footer .action-buttons {
    margin-left: 0;
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .preview-content {
    flex-direction: column;
    gap: 12px;
  }

  .preview-multiply,
  .preview-equals {
    transform: rotate(90deg);
  }

  /* Modal de Detalhes - Responsivo */
  .campaign-details-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-icon {
    font-size: 28px;
  }

  .stat-info .stat-value {
    font-size: 24px;
  }

  .paid-coupons-table th,
  .paid-coupons-table td {
    padding: 10px 8px;
    font-size: 12px;
  }

  .paid-coupons-table th i {
    display: none;
  }

  .coupon-badge {
    font-size: 11px;
    padding: 3px 8px;
  }
}

@media (max-width: 480px) {
  .campaign-card-header {
    padding: 16px;
  }

  .campaign-card-body {
    padding: 16px;
  }

  .campaign-title {
    flex-direction: column;
  }

  .btn-sm {
    width: 100%;
    justify-content: center;
  }
}

/* ========== ABAS DE ATRIBUIÇÃO (SEAMLESS) ========== */

.assign-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-color, #e0e0e0);
  padding-bottom: 0;
}

.assign-tab {
  flex: 1;
  padding: 14px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted, #666);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  bottom: -2px;
}

.assign-tab i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.assign-tab:hover {
  color: var(--primary, #1a73e8);
  background: rgba(26, 115, 232, 0.05);
}

.assign-tab:hover i {
  transform: scale(1.1);
}

.assign-tab.active {
  color: var(--primary, #1a73e8);
  border-bottom-color: var(--primary, #1a73e8);
  font-weight: 600;
}

.assign-tab.active i {
  transform: scale(1.05);
}

.assign-tab-content {
  display: none;
  animation: fadeInSlide 0.3s ease-in-out;
}

.assign-tab-content.active {
  display: block;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-assignment-item .user-role-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.coupon-count {
  transition: all 0.3s ease;
}

.coupon-count.has-coupons {
  animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@media (max-width: 768px) {
  .assign-tabs {
    flex-direction: column;
    gap: 0;
    border-bottom: none;
  }
  
  .assign-tab {
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    border-left: 3px solid transparent;
    justify-content: flex-start;
    padding-left: 20px;
    bottom: 0;
  }
  
  .assign-tab.active {
    border-bottom-color: var(--border-color, #e0e0e0);
    border-left-color: var(--primary, #1a73e8);
    background: rgba(26, 115, 232, 0.05);
  }
}

/* ========== BOTÃO ENTREGAS ========== */

.btn-delivery {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

.btn-delivery:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.btn-delivery:active {
  transform: translateY(0);
}

/* ========== MODAL DE ENTREGA — LAYOUT ========== */

.modal-xl {
  max-width: 960px;
  width: 95vw;
}

.delivery-modal-header {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
}

.delivery-modal-header h3 {
  color: #ffffff;
}

.delivery-modal-header .btn-close {
  color: #ffffff;
  opacity: 0.8;
}

.delivery-modal-header .btn-close:hover {
  opacity: 1;
}

/* Loading & Error */
.delivery-loading,
.delivery-error {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted, #5f6368);
}

.delivery-loading i,
.delivery-error i {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.delivery-loading i {
  color: var(--primary, #1a73e8);
}

.delivery-error i {
  color: var(--danger, #d93025);
}

.delivery-loading p,
.delivery-error p {
  font-size: 16px;
  margin-bottom: 16px;
}

/* ========== ESTATÍSTICAS DE ENTREGA ========== */

.delivery-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.delivery-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 10px;
  background: var(--gray-50, #f8f9fa);
  border: 1px solid var(--border-color, #e0e0e0);
  transition: all 0.2s ease;
}

.delivery-stat-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.delivery-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.delivery-stat-total .delivery-stat-icon {
  background: rgba(26, 115, 232, 0.12);
  color: #1a73e8;
}

.delivery-stat-delivered .delivery-stat-icon {
  background: rgba(30, 142, 62, 0.12);
  color: #1e8e3e;
}

.delivery-stat-pending .delivery-stat-icon {
  background: rgba(249, 171, 0, 0.12);
  color: #f9ab00;
}

.delivery-stat-progress .delivery-stat-icon {
  background: rgba(136, 71, 240, 0.12);
  color: #8847f0;
}

.delivery-stat-info {
  display: flex;
  flex-direction: column;
}

.delivery-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-color, #202124);
  line-height: 1;
}

.delivery-stat-label {
  font-size: 12px;
  color: var(--text-muted, #5f6368);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ========== BARRA DE PROGRESSO ========== */

.delivery-progress-bar {
  height: 6px;
  background: var(--gray-100, #dadce0);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 20px;
}

.delivery-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1e8e3e, #34d058);
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== TOOLBAR (FILTROS + BUSCA) ========== */

.delivery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.delivery-filters {
  display: flex;
  gap: 6px;
}

.delivery-filter-btn {
  padding: 8px 14px;
  border: 1px solid var(--border-color, #e0e0e0);
  background: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted, #5f6368);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.delivery-filter-btn:hover {
  background: var(--gray-50, #f8f9fa);
  border-color: var(--primary, #1a73e8);
  color: var(--primary, #1a73e8);
}

.delivery-filter-btn.active {
  background: var(--primary, #1a73e8);
  border-color: var(--primary, #1a73e8);
  color: #ffffff;
}

.delivery-search {
  position: relative;
  flex: 1;
  max-width: 320px;
  min-width: 200px;
}

.delivery-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted, #5f6368);
  font-size: 14px;
}

.delivery-search input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.2s ease;
  background: white;
}

.delivery-search input:focus {
  outline: none;
  border-color: var(--primary, #1a73e8);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* ========== LISTA DE ENTREGAS ========== */

.delivery-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.delivery-list::-webkit-scrollbar {
  width: 6px;
}

.delivery-list::-webkit-scrollbar-track {
  background: transparent;
}

.delivery-list::-webkit-scrollbar-thumb {
  background: var(--gray-100, #dadce0);
  border-radius: 3px;
}

.delivery-list::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted, #5f6368);
}

.delivery-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted, #5f6368);
}

.delivery-empty i {
  font-size: 48px;
  opacity: 0.3;
  display: block;
  margin-bottom: 12px;
}

.delivery-empty p {
  font-size: 15px;
}

/* ========== CARD DE ENTREGA ========== */

.delivery-card {
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 10px;
  background: white;
  transition: all 0.2s ease;
  border-left: 4px solid var(--warning, #f9ab00);
}

.delivery-card:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.delivery-card-delivered {
  border-left-color: #1e8e3e;
  background: rgba(30, 142, 62, 0.02);
}

.delivery-card-pending {
  border-left-color: #f9ab00;
}

/* Body do card */
.delivery-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Topo: cupom + sabor + status badge */
.delivery-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.delivery-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.delivery-flavor-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color, #202124);
  padding: 3px 10px;
  background: rgba(249, 115, 22, 0.08);
  border-radius: 6px;
}

.delivery-flavor-tag i {
  color: #f97316;
  font-size: 13px;
}

/* Status badge horizontal */
.delivery-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.delivery-status-badge.delivered {
  color: #1e8e3e;
  background: rgba(30, 142, 62, 0.1);
}

.delivery-status-badge.pending {
  color: #f9ab00;
  background: rgba(249, 171, 0, 0.1);
}

/* Detalhes */
.delivery-card-details {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.delivery-detail {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.delivery-detail > i {
  color: var(--text-muted, #5f6368);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

.delivery-detail small {
  display: block;
  font-size: 11px;
  color: var(--text-muted, #5f6368);
  line-height: 1.2;
}

.delivery-detail strong {
  display: block;
  font-size: 13px;
  color: var(--text-color, #202124);
  font-weight: 600;
  line-height: 1.3;
}

.delivery-class-tag {
  display: inline-block;
  font-size: 10px;
  padding: 1px 6px;
  background: var(--primary-light, #e8f0fe);
  color: var(--primary, #1a73e8);
  border-radius: 4px;
  font-weight: 500;
  margin-top: 2px;
}

/* Ações */
.delivery-card-actions {
  display: flex;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color, #e0e0e0);
}

.delivery-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.delivery-action-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.delivery-btn-deliver {
  background: linear-gradient(135deg, #1e8e3e, #137333);
  color: #ffffff;
}

.delivery-btn-deliver:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(30, 142, 62, 0.35);
}

.delivery-btn-undo {
  background: var(--gray-100, #dadce0);
  color: var(--text-color, #202124);
}

.delivery-btn-undo:hover:not(:disabled) {
  background: var(--gray-200, #c5c8cc);
  transform: translateY(-1px);
}

.delivery-btn-reassign {
  background: rgba(26, 115, 232, 0.1);
  color: var(--primary, #1a73e8);
}

.delivery-btn-reassign:hover:not(:disabled) {
  background: rgba(26, 115, 232, 0.2);
  transform: translateY(-1px);
}

/* Footer da entrega */
.delivery-modal-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color, #e0e0e0);
}

/* ========== MODAL DE REATRIBUIÇÃO ========== */

.reassign-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.reassign-modal-content {
  max-width: 520px;
  z-index: 1;
}

.reassign-modal-header {
  background: linear-gradient(135deg, #1a73e8, #1557b0);
  color: #ffffff;
}

.reassign-modal-header h3 {
  color: #ffffff;
}

.reassign-modal-header .btn-close {
  color: #ffffff;
  opacity: 0.8;
}

.reassign-modal-header .btn-close:hover {
  opacity: 1;
}

.reassign-current {
  background: var(--gray-50, #f8f9fa);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 0;
}

.reassign-current h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color, #202124);
  margin: 0 0 14px;
}

.reassign-current h4 i {
  color: var(--primary, #1a73e8);
}

.reassign-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.reassign-info-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.reassign-info-item > i {
  color: var(--text-muted, #5f6368);
  margin-top: 2px;
  font-size: 14px;
}

.reassign-info-item small {
  display: block;
  font-size: 11px;
  color: var(--text-muted, #5f6368);
}

.reassign-info-item strong {
  display: block;
  font-size: 14px;
  color: var(--text-color, #202124);
}

/* Seta de transferência */
.reassign-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 0;
  color: var(--primary, #1a73e8);
}

.reassign-arrow i {
  font-size: 24px;
  animation: bounceDown 1.5s ease-in-out infinite;
}

.reassign-arrow span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #5f6368);
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Novo cupom */
.reassign-new {
  margin-bottom: 16px;
}

.reassign-new .form-control {
  font-size: 18px;
  font-family: 'Courier New', monospace;
  text-align: center;
  padding: 12px;
  letter-spacing: 2px;
}

/* Aviso */
.reassign-warning {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(249, 171, 0, 0.08);
  border: 1px solid rgba(249, 171, 0, 0.3);
  border-radius: 10px;
  margin-bottom: 16px;
}

.reassign-warning > i {
  color: #f9ab00;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.reassign-warning strong {
  color: #e09700;
}

.reassign-warning div {
  font-size: 13px;
  color: var(--text-color, #202124);
  line-height: 1.5;
}

/* ========== RESPONSIVO — ENTREGAS ========== */

@media (max-width: 768px) {
  .modal-xl {
    max-width: 100%;
    width: 100%;
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
  }

  .delivery-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .delivery-stat-card {
    padding: 12px;
  }

  .delivery-stat-value {
    font-size: 18px;
  }

  .delivery-toolbar {
    flex-direction: column;
    gap: 10px;
  }

  .delivery-filters {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .delivery-filter-btn {
    white-space: nowrap;
    font-size: 12px;
    padding: 7px 10px;
  }

  .delivery-search {
    max-width: 100%;
  }

  .delivery-card-body {
    padding: 10px 12px;
  }

  .delivery-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .delivery-card-details {
    flex-direction: column;
    gap: 8px;
  }

  .delivery-card-actions {
    flex-wrap: wrap;
  }

  .delivery-action-btn {
    flex: 1;
    justify-content: center;
  }

  .delivery-list {
    max-height: none;
  }

  .reassign-info-grid {
    grid-template-columns: 1fr;
  }

  .reassign-modal-content {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .delivery-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .delivery-stat-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .delivery-stat-value {
    font-size: 16px;
  }

  .delivery-filter-btn span {
    display: none;
  }
}

/* ========== VENDA LIVRE — OPEN SALES SECTION ========== */

.campaign-open-sales-section {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
}

.open-sales-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.open-sales-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.open-sales-label i {
  color: var(--primary);
}

.open-sales-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border: 2px solid #d1d5db;
  border-radius: 20px;
  background: var(--white);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.open-sales-btn i {
  font-size: 1.1rem;
}

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

.open-sales-btn.active {
  border-color: #22c55e;
  color: #16a34a;
  background: #f0fdf4;
}

.open-sales-btn.active i {
  color: #22c55e;
}

.open-sales-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.open-sales-url {
  flex: 1;
  padding: 0.4rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: monospace;
  background: var(--white);
  color: var(--text-secondary);
  cursor: text;
}

.open-sales-url:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-copy-link {
  padding: 0.4rem 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-link:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Orders button */
.btn-orders {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-orders:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(124, 58, 237, 0.3);
}

/* Badge info for venda livre */
.badge-info {
  background: #e0e7ff;
  color: #4338ca;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

/* Manual sale button */
.btn-manual-sale {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-manual-sale:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(5, 150, 105, 0.3);
}

/* Qty buttons for manual sale modal */
.qty-btn-admin {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary, #1a73e8);
  background: white;
  color: var(--primary, #1a73e8);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn-admin:hover {
  background: var(--primary, #1a73e8);
  color: white;
}

/* ========== BOTAO GRAFICOS ========== */

.btn-charts {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-charts:hover:not(:disabled) {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.35);
}

.btn-charts:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ========== MODAL DE GRAFICOS — HEADER ========== */

.charts-modal-header {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
}

.charts-modal-header h3 {
  color: #ffffff;
}

.charts-modal-header .btn-close {
  color: #ffffff;
  opacity: 0.8;
}

.charts-modal-header .btn-close:hover {
  opacity: 1;
}

/* ========== STATS GRID ========== */

.charts-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.charts-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 10px;
  background: var(--gray-50, #f8f9fa);
  border: 1px solid var(--border-color, #e0e0e0);
  transition: all 0.2s ease;
}

.charts-stat-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.charts-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.charts-stat-icon-total {
  background: rgba(26, 115, 232, 0.12);
  color: #1a73e8;
}

.charts-stat-icon-paid {
  background: rgba(30, 142, 62, 0.12);
  color: #1e8e3e;
}

.charts-stat-icon-pending {
  background: rgba(249, 171, 0, 0.12);
  color: #f9ab00;
}

.charts-stat-icon-revenue {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}

.charts-stat-icon-progress {
  background: rgba(136, 71, 240, 0.12);
  color: #8847f0;
}

.charts-stat-info {
  display: flex;
  flex-direction: column;
}

.charts-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-color, #202124);
  line-height: 1.1;
}

.charts-stat-label {
  font-size: 11px;
  color: var(--text-muted, #5f6368);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 500;
}

/* ========== BARRA DE PROGRESSO GLOBAL ========== */

.charts-progress-bar {
  height: 6px;
  background: var(--gray-100, #dadce0);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 24px;
}

.charts-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1e8e3e, #34d058);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== GRID DE GRAFICOS ========== */

.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.chart-container {
  background: white;
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 12px;
  padding: 20px;
  transition: box-shadow 0.2s ease;
}

.chart-container:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.chart-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color, #202124);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-50, #f8f9fa);
}

.chart-title i {
  color: #6366f1;
  font-size: 16px;
}

.chart-wrapper {
  position: relative;
  height: 320px;
}

.chart-wrapper-doughnut {
  height: 280px;
}

/* ========== RANKING / TABELA ========== */

.charts-ranking-section {
  margin-top: 24px;
}

.charts-ranking-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color, #e0e0e0);
}

.charts-ranking-table thead {
  background: linear-gradient(to bottom, #f8f9fa, #f0f2f5);
}

.charts-ranking-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-color, #202124);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 2px solid var(--border-color, #e0e0e0);
}

.charts-ranking-table th i {
  margin-right: 4px;
  color: #6366f1;
  font-size: 11px;
}

.charts-ranking-table tbody tr {
  transition: background-color 0.15s ease;
}

.charts-ranking-table tbody tr:hover {
  background-color: rgba(99, 102, 241, 0.04);
}

.charts-ranking-table td {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-color, #202124);
  border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.charts-ranking-table tbody tr:last-child td {
  border-bottom: none;
}

.ranking-position {
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-muted, #5f6368);
  width: 40px;
}

.ranking-name {
  max-width: 200px;
}

.ranking-class-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--gray-50, #f8f9fa);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-muted, #5f6368);
  font-weight: 500;
}

.ranking-paid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: rgba(30, 142, 62, 0.12);
  color: #1e8e3e;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
}

.ranking-pending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: rgba(249, 171, 0, 0.12);
  color: #e09700;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
}

.ranking-value {
  color: #059669;
  font-size: 13px;
}

.ranking-progress-bar {
  width: 80px;
  height: 6px;
  background: var(--gray-100, #dadce0);
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
}

.ranking-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1e8e3e, #34d058);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.ranking-pct {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted, #5f6368);
  margin-left: 6px;
}

/* ========== EMPTY STATE GRAFICOS ========== */

.charts-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--gray-50, #f8f9fa);
  border-radius: 12px;
  border: 2px dashed var(--border-color, #e0e0e0);
}

.charts-empty i {
  font-size: 56px;
  color: var(--text-light, #80868b);
  opacity: 0.3;
  margin-bottom: 16px;
  display: block;
}

.charts-empty p {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted, #5f6368);
  margin: 8px 0 4px;
}

.charts-empty small {
  font-size: 13px;
  color: var(--text-light, #80868b);
}

/* ========== RESPONSIVO — GRAFICOS ========== */

@media (max-width: 1024px) {
  .charts-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .charts-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .charts-stat-card {
    padding: 12px;
  }

  .charts-stat-value {
    font-size: 16px;
  }

  .charts-stat-icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .charts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .chart-wrapper {
    height: 260px;
  }

  .chart-wrapper-doughnut {
    height: 240px;
  }

  .charts-ranking-table th,
  .charts-ranking-table td {
    padding: 8px 6px;
    font-size: 11px;
  }

  .charts-ranking-table th i {
    display: none;
  }

  .ranking-progress-bar {
    width: 50px;
  }

  .ranking-name {
    max-width: 120px;
  }
}

@media (max-width: 480px) {
  .charts-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .charts-stat-card:last-child {
    grid-column: 1 / -1;
  }

  .chart-container {
    padding: 12px;
  }

  .chart-wrapper {
    height: 220px;
  }
}
