/* my_photos.css - Unified design with verification flow */

:root {
  --color-border-soft: #e2e8f0;
  --color-info-bg: #f8fafc;
}

/* Table Design */
.table-standard {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

/* Ensure horizontal scrolling for the table wrapper */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-standard th {
  background: #f8fafc;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  color: var(--color-text-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--color-border-soft);
}

.table-standard td {
  padding: 1.5rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border-soft);
}

.table-standard tr:hover {
  background: #f8fafc;
}

.order-thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--color-border-soft);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Badges */
.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge.success {
  background: #dcfce7;
  color: #166534;
}

.badge.info {
  background: #dbeafe;
  color: #1e40af;
}

.badge.warning {
  background: #fef3c7;
  color: #92400e;
}

/* Tooltip */
.photo-tooltip-container {
  position: relative;
}

.tooltip-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border-soft);
  z-index: 50;
  width: 220px;
}

.photo-tooltip-container:hover .tooltip-content {
  display: block;
}

/* Actions Group (Desktop & Base) */
.actions-group {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
}

.actions-group .button {
  white-space: nowrap;
  margin: 0 !important;
  width: auto !important;
  min-width: max-content;
  flex-shrink: 0;
}

/* Ensure the actions column doesn't squeeze its content */
.table-standard td[data-label="Actions"] {
  min-width: 250px;
  white-space: nowrap;
  text-align: right;
}

.table-standard th:last-child {
  text-align: right;
  min-width: 250px;
}

/* Mobile */
@media screen and (max-width: 768px) {

  .table-standard {
    min-width: auto;
  }

  .table-standard,
  .table-standard thead,
  .table-standard tbody,
  .table-standard tr,
  .table-standard td {
    display: block;
    width: 100%;
  }

  .table-standard thead {
    display: none;
  }

  .table-standard tr {
    padding: 1.5rem;
    border-bottom: 2px solid var(--color-border-soft);
  }

  .table-standard td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.75rem 0;
    border: none;
    text-align: right;
  }

  .table-standard td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    flex: 0 0 auto;
    margin-right: 1rem;
  }

  /* Target the content specifically if needed */
  .table-standard td>*:not(::before) {
    flex: 1 1 0%;
    min-width: 0;
    text-align: right;
    display: block;
    word-break: break-word;
  }

  .actions-group {
    flex-wrap: wrap;
    margin-top: 0.5rem;
    width: 100%;
  }

  .actions-group .button {
    flex: 1 1 auto;
    text-align: center;
    width: 100%;
  }

  .order-thumbnail {
    margin-left: auto;
  }

  /* Specific fix for labels and values overlapping */
  .table-standard td {
    gap: 1rem;
  }
}