﻿.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

@media (max-width: 767px) {
  #dashboard table,
  #dashboard thead,
  #dashboard tbody,
  #dashboard th,
  #dashboard td,
  #dashboard tr {
    display: block;
  }
    /* Hide the table headers, we'll use data-labels instead */
    #dashboard thead tr {
      position: absolute;
      top: -9999px;
      left: -9999px;
    }
  /* Style each row as a card */
  #dashboard tr {
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 0.5rem; /* rounded-lg */
    margin-bottom: 1rem;
  }

  #dashboard td:first-child {
    background-color: #f9fafb; /* gray-50 */
    border-bottom: 1px solid #e5e7eb; /* gray-200 */
    font-weight: 700; /* bold */
    color: #1e40af; /* blue-800 to create a header effect */
    /* These lines ensure the corners match the card's rounded border */
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
  }

  #dashboard td {
    border: none;
    border-bottom: 1px solid #f3f4f6; /* gray-100 */
    position: relative;
    padding-left: 50%;
    text-align: right;
    min-height: 2.75rem; /* Ensure consistent height */
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  #dashboard tr td:last-child {
    border-bottom: 0;
  }
  /* Add the data-label text before the cell content */
  #dashboard td:before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    width: 45%;
    padding-right: 0.75rem;
    white-space: nowrap;
    text-align: left;
    font-weight: 600;
    color: #374151; /* gray-700 */
  }
  /* Ensure action buttons are aligned correctly */
  #dashboard td[data-label="Actions"] > div {
    justify-content: flex-end;
    width: 100%;
  }
}
