.scanView_reporte {
  padding: 20px;
  width: 100%;
  box-sizing: border-box;

  .container_reporte {
    width: calc(100% - 2%);
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
   
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .header_reporte {
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    font-size: 15px;
    color: #333;
    text-align: center;
    font-weight: 600;
    letter-spacing: -0.2px;
  }

  .main-content_reporte {
    display: flex;
    flex-direction: column;
    min-height: 420px;
  }

.tabs_reporte {
  display: flex;
  border-bottom: 1px solid #ddd;
  background: #f5f5f7;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;

  &::-webkit-scrollbar {
    height: 6px;
  }
  &::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
  }
}

.tab_reporte {
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  background: #fff;
  border: 1px solid #ddd;
  border-bottom: none;
  border-radius: 10px 10px 0 0;  /* como Example 3 */
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  margin-right: 4px;
  position: relative;

  &:hover {
    background: #f4f4f4;
    border-color: #bbb;
  }

  &.active {
    background: #fff;
    color: #9c27b0;            /* tu color morado */
    border-color: #9c27b0;     /* borde morado */
    font-weight: 600;
    box-shadow: 
      0 -2px 6px rgba(0,0,0,0.05),
      inset 0 -3px 0 #fff;     /* simula borde inferior */
    z-index: 0;
  }
}

/* ============================
   CONTENIDO DEL TAB
   ============================ */

.data-table_reporte {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: start;
  padding: 20px;
  background-color: #f5f5f7;

  text-align: center;
  border: none;
  min-height: 300px;
  animation: fadein 0.2s ease;
}

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

  // ✅ Contenido del tab con fondo igual al tab activo
  .data-table_reporte {
    flex: 1;
    padding: 20px;
    min-height: 0;// Separador entre tabs y contenido

    // Aplicamos fondo azul cuando el tab activo es "pregunta1", "pregunta2", etc.
    // Puedes personalizar esto según necesites


  
  }

  .data-row_reporte {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: background 0.2s ease, transform 0.15s ease;
  }

  .data-row_reporte:hover {
    background: #f1f1f1;
    transform: translateY(-1px);
  }

  .os-name_reporte {
    flex: 1;
    font-size: 15px;
    color: #333;
    word-break: break-word;
  }

  .count-box_reporte {
    background: #ffffff;
    border: 1px solid #0056b3;
    color: #0056b3;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    min-width: 70px;
    border-radius: 6px;
  }

  .total-row_reporte {
    background: #eaf4ff !important;
    font-weight: bold;
    box-shadow: inset 0 1px 0 rgba(0, 86, 179, 0.15);

    

  
  }
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .scanView_reporte .container_reporte {
    width: calc(100% - 16px);
    max-width: none;
    border-radius: 12px;
  }

  .scanView_reporte .tabs_reporte {
    padding: 0;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }

  .scanView_reporte .tab_reporte {
    min-width: 120px;
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 10px 10px 0 0;
  }
}
@media (max-width: 992px) {
  .scanView_reporte {
    padding: 16px;

    .tab_reporte {
      font-size: 14px;
      padding: 12px 18px;
    }

    .data-row_reporte {
      padding: 14px 18px;
    }
  }
}
