/* =====================================================
   PAYROLL LIST – Responsive Card → Table
===================================================== */

.payroll-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

/* Header chỉ desktop */
.payroll-header {
  display: none;
}

/* ================= MOBILE CARD ================= */

.payroll-item {
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  cursor: pointer;
  transition: transform .05s ease, box-shadow .1s ease;
}

.payroll-item:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.payroll-label {
  font-size: 12px;
  color: #777;
  margin-bottom: 2px;
}

.payroll-amount {
  font-weight: 700;
  font-size: 16px;
  color: #2e7d32;
}

/* ================= DESKTOP TABLE ================= */

@media (min-width: 1024px) {

  .payroll-header {
    display: grid;
    grid-template-columns: 1fr 180px;
    padding: 10px 12px;
    font-weight: 700;
    font-size: 13px;
    color: #555;
    border-bottom: 2px solid #ddd;
  }

  .payroll-item {
    display: grid;
    grid-template-columns: 1fr 180px;
    align-items: center;
    padding: 12px;
    border-radius: 0;
    border-bottom: 1px solid #eee;
    box-shadow: none;
  }

  .payroll-label {
    display: none;
  }

  .payroll-amount {
    text-align: right;
  }
}
