/* ===== Estilo Drive para PrimeFaces DataTable ===== */

/* Linha clicável + hover */
.drive-like tbody > tr { cursor: pointer; }
.drive-like tbody > tr:hover { background: rgba(0,0,0,.03); }
body.dark .drive-like tbody > tr:hover { background: rgba(255,255,255,.06); }

/* Ações só no hover */
.drive-like .row-actions{
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .12s ease, transform .12s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.drive-like tbody > tr:hover .row-actions{
  opacity: 1;
  transform: translateX(0);
}

/* Evita corte dos botões na última célula */
.drive-like tbody > tr > td:last-child { overflow: visible; }

/* Botões encorpados (área de clique maior) */
.drive-like .row-actions .p-button,
.drive-like .row-actions .ui-button{
  padding: .45rem !important;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: .5rem;
}
.drive-like .row-actions .pi{ font-size: 1.05rem; }

/* Touch-friendly */
@media (pointer: coarse){
  .drive-like .row-actions .p-button,
  .drive-like .row-actions .ui-button{
    width: 2.6rem;
    height: 2.6rem;
    padding: .5rem !important;
  }
}

/* Mantém larguras percentuais */
.drive-like .ui-datatable-tablewrapper > table { table-layout: fixed; }

/* Texto com reticências */
.truncate {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
