/* Bartender Order Card - Clickable Link */
.order-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.order-card-link:hover .order-card {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.order-card-link:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Order Card Styling */
.order-card {
  background: var(--color-surface);
  border-radius: 4px;
  padding: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 8px;
}

.order-table-name {
  font-size: 14px;
  font-weight: 600;
}

.order-time {
  font-size: 11px;
  color: var(--color-text-muted);
}

.order-status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.order-status-badge[data-status="pending_verification"] {
  background: #fef3c7;
  color: #92400e;
}

.order-status-badge[data-status="verified"] {
  background: #d1e7f0;
  color: #0c4a6e;
}

.order-status-badge[data-status="flagged"] {
  background: #fee2e2;
  color: #991b1b;
}

.order-status-badge[data-status="confirmed"] {
  background: #d1f4eb;
  color: #0f766e;
}

.order-status-badge[data-status="preparing"] {
  background: #fdf0e6;
  color: #7c2d12;
}

.order-status-badge[data-status="ready"] {
  background: #d1e7f0;
  color: #164e63;
}

.order-status-badge[data-status="delivered"] {
  background: #e5e7eb;
  color: #374151;
}

.order-status-badge[data-status="cancelled"] {
  background: #fecaca;
  color: #991b1b;
}

.order-items {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  margin-bottom: 8px;
}

.order-items li {
  display: flex;
  gap: 4px;
  padding: 2px 0;
}

.order-items li.unavailable {
  opacity: 0.5;
  text-decoration: line-through;
}

.qty {
  font-weight: 600;
  min-width: 25px;
}

.order-item-variant {
  color: var(--color-text-muted);
  font-size: 10px;
}

.order-notes {
  font-size: 11px;
  color: var(--color-text-muted);
  padding: 8px;
  background: var(--color-bg);
  border-radius: 3px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.order-card-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Button Styles */
.btn-verify,
.btn-advance,
.btn-flag-toggle,
.btn-flag-submit {
  padding: 8px 12px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}

.btn-verify {
  background: #10b981;
  color: white;
}

.btn-verify:hover {
  background: #059669;
}

.btn-advance {
  background: var(--color-primary);
  color: white;
}

.btn-advance:hover {
  background: var(--color-primary-hover);
}

.btn-flag-toggle {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-flag-toggle:hover {
  background: var(--color-border);
}

.btn-flag-submit {
  background: var(--color-secondary);
  color: white;
  width: 100%;
  margin-top: 6px;
}

.btn-flag-submit:hover {
  opacity: 0.9;
}

/* Flag Details Styling */
.flag-details {
  width: 100%;
}

.flag-details summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  user-select: none;
}

.flag-details summary:hover {
  background: var(--color-border);
}

.flag-details[open] summary {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.flag-items-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0;
  max-height: 120px;
  overflow-y: auto;
  padding: 0 4px;
}

.flag-item-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  font-size: 11px;
  cursor: pointer;
  border-radius: 2px;
  user-select: none;
}

.flag-item-label:hover {
  background: var(--color-border);
}

.flag-item-label input[type="checkbox"] {
  cursor: pointer;
  margin: 0;
}

.verify-form {
  width: 100%;
  margin: 0;
}

.verify-form input[type="submit"] {
  width: 100%;
}

.flag-form {
  width: 100%;
  margin: 0;
}
