/** tables **/

.table-card {
    background: white;
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;

    overflow-x: auto;
    max-width: 100%;
}

.table-card * {
    max-width: 100%;
    word-wrap: break-word;
}

.table-card h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
}

.table-card table {
    width: 100%;
    border-collapse: collapse;
}

.table-card th, .table-card td {
    text-align: left;
    padding: 10px 20px 10px 0;
    border-bottom: 1px solid #eee;
}

.table-card th.actions {
    font-size:16px;
    color:#000;
}

.table-card th {
    color: #555;
    font-weight: 600;
    font-size: 0.9rem;
}

.table-card tr:hover td {
    background: #f9fafb;
}

.table-card.admin-view {
    margin-top:50px;
}

@media (max-width: 768px) {
  .table-card button,
  .table-card .btn {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
  }

  .table-card td.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .table-card td.actions button {
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
  .table-card button,
  .table-card .btn {
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  .table-card td.actions {
    gap: 4px;
  }
}
