.contenedor-censo_P3 {
  color: #fff;
  background-color: #003e79;
  border-radius: 4px;
  padding: 15px;
  font-size: 16px;
}

.pregunta-cuadro_P3 {
  position: relative;
  background-color: #fff;
  border-left: 10px solid #003e79;
  border-radius: 8px;
  padding: 15px;
  font-size: 16px;
  text-align: start;
}

.container_P3 {
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scanView_P3 {
  padding: 20px;
  width: 100%;
  background-color: white;
  border-radius: 10px;

  .mainContent_P3 {
    display: flex;
    min-height: 500px;
  }

  .tabs_P3 {
    width: 230px;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ddd;
  }

  .tab_P3 {
    padding: 12px 16px;
    cursor: pointer;
    color: #555;
    background: none;
    border: none;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
  }

  .tab_P3:hover {
    background-color: #f0f0f0;
    color: #000;
  }

  .active_P3 {
    background-color: #fff;
    color: #0056b3;
    font-weight: 600;
    border-left: 4px solid #0056b3;
  }

  .content_P3 {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
  }

  .tableWrapper_P3 {
    overflow-x: auto;
    flex: 1;
    padding-bottom: 10px;
  }

  .table_P3 {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    min-width: 750px;

    th {
      background: #f1f5f9;
      font-weight: 700;
      padding: 12px 14px;
      color: #003f80;
      border-bottom: 2px solid #e2e8f0;
      text-align: center;
      white-space: nowrap;
    }

    td {
      padding: 10px 12px;
      border-bottom: 1px solid #e5e7eb;
      text-align: center;
      vertical-align: middle;
    }

    tr:last-child td {
      border-bottom: none;
    }

    /* Primera columna */
    .processor_P3 {
      text-align: left;
      font-weight: 600;
      color: #334155;
      max-width: 300px;
    }
  }

  /* ----------- INPUTS ----------- */

  .inputBox_P3 {
    width: 70px;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    font-size: 14px;
    transition: 0.2s ease;
    text-align: center;
  }

  .inputBox_P3:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  }

  /* -------- FILA NORMAL -------- */
  .dataRow_P3 {
    background: #ffffff;

    &:hover {
      background: #f8fafc;
    }
  }

  /* -------- FILA TOTAL -------- */
  .totalRow_P3 {
    background: #e0f0ff !important;
    font-weight: 700;

    .totalCell_P3 {
      color: #004a94;
      font-weight: 800;
    }
  }

  .totalCell_P3 {
    font-weight: 600;
  }

  .consultarBtn_P3 {
    margin-top: 20px;
    background: #0056b3;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    align-self: flex-start;
  }

  .emptyState_P3 {
    color: #888;
    font-style: italic;
    padding: 40px 0;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .scanView_P3 .mainContent_P3 {
    flex-direction: column;
  }

  .scanView_P3 .tabs_P3 {
    width: 100%;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }

  .scanView_P3 .tab_P3 {
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .scanView_P3 .active_P3 {
    border-left: none;
    border-bottom: 3px solid #0056b3;
  }
}
@media (max-width: 1024px) {
  .scanView_P3 .mainContent_P3 {
    flex-direction: column;
  }

  .scanView_P3 .tabs_P3 {
    width: 100%;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
  }

  .scanView_P3 .tab_P3 {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .scanView_P3 .active_P3 {
    border-left: none;
    border-bottom: 3px solid #0056b3;
  }

  .table_P3 {
    min-width: 650px;
  }
}
