/* Sprint H.5 — Pending Shoot Requests widget styles. .pshoots-* prefix.
 * Theme-aware via portal :root + .light vars. Mirrors the .stat-card /
 * .chart-card token shape so the widget visually belongs to the
 * operator dashboard. */

.pshoots-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;  /* spacing above charts-row */
}

.pshoots-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.pshoots-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
}

.pshoots-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: color-mix(in oklab, var(--warning, #f59e0b) 18%, transparent);
  color: var(--warning, #f59e0b);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.pshoots-loading,
.pshoots-empty {
  padding: 16px 12px;
  text-align: center;
  color: var(--fg-muted);
  font-size: 14px;
}

.pshoots-error {
  padding: 16px 12px;
  text-align: center;
  color: var(--danger);
  font-size: 14px;
}

.pshoots-retry {
  margin-left: 8px;
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.pshoots-retry:hover {
  background: color-mix(in oklab, var(--danger) 10%, transparent);
}

/* Row list */

.pshoots-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pshoots-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: opacity 150ms ease;
}

.pshoots-row-main {
  min-width: 0;
}

.pshoots-row-when {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}

.pshoots-row-meta {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.pshoots-contact {
  color: var(--fg);
  font-weight: 500;
}

.pshoots-phone {
  color: var(--fg-muted);
}

.pshoots-service {
  color: var(--fg-muted);
}

.pshoots-meta-sep {
  color: var(--fg-subtle, var(--fg-muted));
}

.pshoots-brief {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.4;
  margin-top: 4px;
}

.pshoots-brief-label {
  font-weight: 500;
  color: var(--fg-muted);
}

.pshoots-brief-body {
  color: var(--fg);
}

.pshoots-show-more {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  font-family: inherit;
}

.pshoots-show-more:hover {
  text-decoration: underline;
}

.pshoots-slot-mate {
  margin-top: 6px;
  font-size: 12px;
  color: var(--warning, #f59e0b);
  background: color-mix(in oklab, var(--warning, #f59e0b) 10%, transparent);
  border: 1px solid color-mix(in oklab, var(--warning, #f59e0b) 24%, transparent);
  border-radius: 6px;
  padding: 4px 8px;
  display: inline-block;
}

.pshoots-row-submitted {
  margin-top: 6px;
  font-size: 11px;
  color: var(--fg-subtle, var(--fg-muted));
}

/* Action buttons */

.pshoots-row-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  min-width: 96px;
}

.pshoots-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  transition: background-color 100ms ease, border-color 100ms ease;
}

.pshoots-btn:hover {
  border-color: var(--accent);
}

.pshoots-btn-confirm {
  background: var(--accent);
  color: var(--accent-fg, #ffffff);
  border-color: var(--accent);
}

.pshoots-btn-confirm:hover {
  background: color-mix(in oklab, var(--accent) 88%, black);
}

.pshoots-btn-reject {
  background: transparent;
  color: var(--danger);
  border-color: color-mix(in oklab, var(--danger) 40%, transparent);
}

.pshoots-btn-reject:hover {
  background: color-mix(in oklab, var(--danger) 10%, transparent);
  border-color: var(--danger);
}

/* Mobile responsive — stack action buttons below the row content
 * below 768px, mirroring the Sprint G.2 + Sprint H breakpoint
 * precedent for portal widgets. */
@media (max-width: 768px) {
  .pshoots-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .pshoots-row-actions {
    flex-direction: row;
    min-width: 0;
  }
  .pshoots-btn {
    flex: 1;
  }
}
