/* =========================
   LN EAP Products Table
   Modern + Responsive
   ========================= */

.ln-eap-table{
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 12px !important;
}

/* HEADER desktop pulito */
.ln-eap-table thead tr{
  background: transparent !important;
}

.ln-eap-table thead th{
  background: rgba(255,255,255,.75) !important;
  border: 1px solid rgba(0,0,0,.10) !important;
  padding: 14px 16px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  opacity: .85 !important;
}

/* arrotondamenti header */
.ln-eap-table thead th:first-child{
  border-top-left-radius: 14px !important;
  border-bottom-left-radius: 14px !important;
}
.ln-eap-table thead th:last-child{
  border-top-right-radius: 14px !important;
  border-bottom-right-radius: 14px !important;
}

/* togli le "linee" interne pesanti */
.ln-eap-table thead th + th{
  border-left: 0 !important;
}

/* Righe come "card" */
.ln-eap-table tbody tr{
  background: rgba(255,255,255,.65) !important;
  backdrop-filter: blur(6px);
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.06) !important;
}

/* Celle */
.ln-eap-table td{
  padding: 14px !important;
  vertical-align: middle !important;
  border: 0 !important;
}

/* Prima/ultima cella arrotondate */
.ln-eap-table tbody tr td:first-child{
  border-top-left-radius: 14px !important;
  border-bottom-left-radius: 14px !important;
  width: 110px !important;
}
.ln-eap-table tbody tr td:last-child{
  border-top-right-radius: 14px !important;
  border-bottom-right-radius: 14px !important;
  width: 180px !important;
}

/* Immagine */
.ln-eap-table img{
  width: 86px !important;
  height: 86px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  display: block !important;
}

/* Colonne testuali */
.ln-eap-table td:nth-child(2){
  font-weight: 600 !important;
}
.ln-eap-table td:nth-child(3){
  white-space: nowrap !important;
  font-weight: 600 !important;
}
.ln-eap-table td:nth-child(4){
  white-space: nowrap !important;
  opacity: .85 !important;
}

/* Azioni */
.ln-eap-table td:nth-child(5){
  text-align: right !important;
}

/* Bottoni */
.ln-btn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 14px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important; /* niente alone su tap */
}

.ln-btn:hover{
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.10) !important;
}

.ln-btn.edit{
  background: #2d7ff9 !important;
  color: #fff !important;
  border-color: rgba(45,127,249,.35) !important;
}

.ln-btn.delete{
  background: #e63946 !important;
  color: #fff !important;
  border-color: rgba(230,57,70,.35) !important;
  margin-left: 10px !important;
}

/* =========================
   Responsive: mobile -> card list
   ========================= */
@media (max-width: 768px){

  .ln-eap-table{
    border-spacing: 0 14px !important;
  }

  .ln-eap-table thead{
    display: none !important;
  }

  .ln-eap-table,
  .ln-eap-table tbody,
  .ln-eap-table tr,
  .ln-eap-table td{
    display: block !important;
    width: 100% !important;
  }

  .ln-eap-table tbody tr{
    padding: 14px !important;
    border-radius: 16px !important;
    box-shadow: none !important;              /* NO shadow mobile */
  }
  .ln-eap-table tbody tr:hover{
    box-shadow: none !important;              /* NO shadow hover mobile */
  }

  .ln-eap-table tbody tr td{
    padding: 10px 0 !important;
    text-align: left !important;
  }

  /* label per ogni riga */
  .ln-eap-table tbody tr td:nth-child(2)::before{ content:"Model"; }
  .ln-eap-table tbody tr td:nth-child(3)::before{ content:"Price"; }
  .ln-eap-table tbody tr td:nth-child(4)::before{ content:"Date"; }
  .ln-eap-table tbody tr td:nth-child(5)::before{ content:"Action"; }

  .ln-eap-table tbody tr td:nth-child(n+2)::before{
    display: block !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    opacity: .55 !important;
    text-transform: uppercase !important;
    margin-bottom: 6px !important;
    letter-spacing: .02em !important;
  }

  /* immagine sopra */
  .ln-eap-table tbody tr td:first-child{
    width: 100% !important;
    padding: 0 0 10px 0 !important;
  }

  .ln-eap-table img{
    width: 100% !important;
    height: auto !important;
    max-height: 260px !important;
  }

  /* azioni full-width */
  .ln-eap-table td:nth-child(5){
    text-align: left !important;
    padding-top: 12px !important;
  }

  .ln-btn{
    width: 100% !important;
    box-shadow: none !important;              /* NO shadow bottoni */
  }
  .ln-btn:hover,
  .ln-btn:focus,
  .ln-btn:active{
    transform: none !important;               /* niente "salto" su tap */
    box-shadow: none !important;              /* NO shadow su tap/hover */
    outline: none !important;
  }

  .ln-btn.delete{
    margin-left: 0 !important;
    margin-top: 10px !important;
  }
}
/* =========================
   FIX: un solo "colore card" + niente hover card
   ========================= */

/* Card: un solo background, niente overlay strani */
.ln-eap-table tbody tr{
  background: rgba(255,255,255,.70) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  margin-bottom: 20px !important;
}

/* TD trasparenti: elimina il "doppio colore" */
.ln-eap-table tbody tr td{
  background: transparent !important;
}

/* Disattiva qualsiasi effetto hover sulla riga (desktop + mobile) */
.ln-eap-table tbody tr:hover{
  box-shadow: 0 6px 18px rgba(0,0,0,.06) !important; /* uguale allo stato normale */
  transform: none !important;
  filter: none !important;
}

/* Se avevi blur, può creare aloni: disattivalo */
.ln-eap-table tbody tr{
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}