
/* NUVYTRAX - Panel premium de información del vehículo */
/* Exclusivo para PC y laptop */

@media (min-width: 1100px) {

  #nuvy-detalle-vehiculo {
    box-sizing: border-box !important;
    background: linear-gradient(
      145deg,
      #061426 0%,
      #091f37 65%,
      #061426 100%
    ) !important;
    border: 1px solid #00cfff !important;
    border-radius: 12px !important;
    box-shadow: 0 0 18px rgba(0, 207, 255, .15) !important;
    color: #f2f8ff !important;
  }

  #nuvy-detalle-vehiculo .nuvy-detalle-titulo {
    color: #00d9ff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #17445d !important;
  }

  #nuvy-detalle-vehiculo .nuvy-detalle-contenido {
    display: grid !important;
    grid-template-columns: 150px repeat(4, minmax(0, 1fr));
    gap: 12px 14px !important;
    align-items: center !important;
    padding: 14px !important;
    box-sizing: border-box !important;
  }

  /* Fotografía a la izquierda */
  #nuvy-detalle-vehiculo .nuvy-detalle-contenido > img {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 150px !important;
    height: 100px !important;
    object-fit: cover !important;
    border: 1px solid #00d9ff !important;
    border-radius: 9px !important;
  }

  /* Datos del vehículo */
  #nuvy-detalle-vehiculo .nuvy-dato-vehiculo {
    min-width: 0;
    color: #f2f8ff !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    overflow-wrap: anywhere;
  }

  #nuvy-detalle-vehiculo .nuvy-dato-vehiculo strong {
    display: block !important;
    color: #85a9c5 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    margin-bottom: 3px !important;
  }

  #nuvy-detalle-vehiculo .nuvy-dato-vehiculo span {
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
  }

  /* Primera fila: Unidad, Estado, Placas, Velocidad */
  #nuvy-detalle-vehiculo .nuvy-dato-vehiculo:nth-of-type(1) {
    grid-column: 2;
    grid-row: 1;
  }

  #nuvy-detalle-vehiculo .nuvy-dato-vehiculo:nth-of-type(2) {
    grid-column: 3;
    grid-row: 1;
  }

  #nuvy-detalle-vehiculo .nuvy-dato-vehiculo:nth-of-type(3) {
    grid-column: 4;
    grid-row: 1;
  }

  #nuvy-detalle-vehiculo .nuvy-dato-vehiculo:nth-of-type(4) {
    grid-column: 5;
    grid-row: 1;
  }

  /* Segunda fila: Última posición y Ubicación */
  #nuvy-detalle-vehiculo .nuvy-dato-vehiculo:nth-of-type(5) {
    grid-column: 2 / 4;
    grid-row: 2;
  }

  #nuvy-detalle-vehiculo .nuvy-dato-vehiculo:nth-of-type(6) {
    grid-column: 4 / 6;
    grid-row: 2;
  }

  /* Estado y alertas */
  #nuvy-detalle-vehiculo .nuvy-estado-alertas {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 8px !important;
    padding-top: 12px !important;
    border-top: 1px solid #17445d !important;
  }

}

@media (min-width:1100px) { #nuvy-detalle-vehiculo .nuvy-detalle-contenido:not(:has(.nuvy-dato-vehiculo)) { display:block !important; } }

/* NUVYTRAX - DISTRIBUCION COMPACTA APROBADA */
/* Solo escritorio. Conserva el espacio del mapa. */

@media (min-width: 1100px) {

  #nuvy-detalle-vehiculo {
    height: 100px !important;
    min-height: 0 !important;
    max-height: 100px !important;
    overflow: hidden !important;
  }

  #nuvy-detalle-vehiculo .nuvy-detalle-titulo {
    padding: 3px 10px !important;
    font-size: 13px !important;
    line-height: 13px !important;
  }

  #nuvy-detalle-vehiculo .nuvy-detalle-contenido:has(.nuvy-dato-vehiculo) {
    display: grid !important;
    grid-template-columns: 75px repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(3, auto) !important;
    gap: 2px 8px !important;
    padding: 3px 8px !important;
    min-height: 0 !important;
    align-items: center !important;
  }

  #nuvy-detalle-vehiculo .nuvy-detalle-contenido > img {
    grid-column: 1 !important;
    grid-row: 1 / 4 !important;
    width: 75px !important;
    height: 48px !important;
  }

  #nuvy-detalle-vehiculo .nuvy-dato-vehiculo {
    display: block !important;
    line-height: 1.15 !important;
    min-width: 0 !important;
  }

  #nuvy-detalle-vehiculo .nuvy-dato-vehiculo strong,
  #nuvy-detalle-vehiculo .nuvy-dato-vehiculo span {
    display: inline !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
    margin: 0 !important;
  }

  #nuvy-detalle-vehiculo .nuvy-dato-vehiculo:nth-of-type(1) {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  #nuvy-detalle-vehiculo .nuvy-dato-vehiculo:nth-of-type(2) {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }

  #nuvy-detalle-vehiculo .nuvy-dato-vehiculo:nth-of-type(3) {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  #nuvy-detalle-vehiculo .nuvy-dato-vehiculo:nth-of-type(4) {
    grid-column: 3 !important;
    grid-row: 2 !important;
  }

  #nuvy-detalle-vehiculo .nuvy-dato-vehiculo:nth-of-type(5) {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }

  #nuvy-detalle-vehiculo .nuvy-dato-vehiculo:nth-of-type(6) {
    grid-column: 3 !important;
    grid-row: 3 !important;
  }

  #nuvy-detalle-vehiculo .nuvy-estado-alertas {
    grid-column: 1 / -1 !important;
    grid-row: 4 !important;
    padding-top: 2px !important;
    margin-top: 0 !important;
    gap: 3px !important;
  }

  #nuvy-detalle-vehiculo .nuvy-estado-alertas > strong {
    width: auto !important;
    font-size: 12px !important;
  }

  #nuvy-detalle-vehiculo .nuvy-estado-alertas > span {
    padding: 1px 4px !important;
    font-size: 12px !important;
  }
}
