/* --- Base Mobile Optimization --- */
@media (max-width: 768px) {
  table {
    border-collapse: separate;
    border-spacing: 0 0.75rem; /* space between rows */
  }

  table thead {
    display: none;
  }

  table tbody tr {
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #ffffff, #f9fafb);
    border-radius: 0.75rem;
    box-shadow: 0 4px 8px rgb(0 0 0 / 0.05);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgb(0 0 0 / 0.08);
  }

  table tbody tr td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.65rem 0;
    border-bottom: 1px dashed #e5e7eb; /* subtle border */
    font-size: 0.92rem;
    line-height: 1.4;
  }

  table tbody tr td:last-child {
    border-bottom: none;
  }

  /* Label before each cell */
  table tbody tr td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #374151; /* gray-700 */
    flex-basis: 45%;
    text-transform: capitalize;
  }

  /* Adjust text alignment for better readability */
  table tbody tr td span,
  table tbody tr td a {
    text-align: right;
  }

  /* Status badges on mobile look better with smaller padding */
  .status-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
  }

  /* Action buttons row spacing */
  td[data-label="Actions"] {
    justify-content: center;
    text-align: center;
    padding-top: 0.75rem;
  }

  /* Optional fade-in for cards when loaded */
  table tbody tr {
    opacity: 0;
    animation: fadeInCard 0.3s ease forwards;
  }

  @keyframes fadeInCard {
    from {
      opacity: 0;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}




        /* Ship Loader Styles */
        .ship-loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: white;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.7s ease-out, visibility 0.7s ease-out; /* Slower transition */
        }
        .mb-logo {
            font-size: 24px;
            font-weight: bold;
            color: var(--color-burgundy); /* Use Burgundy for logo */
            margin-top: 15px;
        }
        .progress-bar {
            width: 200px;
            height: 4px;
            background: #ecf0f1;
            border-radius: 2px;
            margin-top: 20px;
            overflow: hidden;
        }
        .progress {
            height: 100%;
            background: var(--color-burgundy); /* Use Burgundy for progress bar */
            width: 0%;
            transition: width 0.4s ease-out; /* Smooth progress transition */
        }
        .ship-loader.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none; /* Disable interaction when hidden */
        }
        /* Optional: animate the ship */
        .ship-svg {
            animation: float 3s ease-in-out infinite;
        }
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }