/* styles-additions-v12.css
   ============================================================
   Phase A: Outbox view + email card styles.
   Utility-grade, intentionally undecorated. Phase C (v13) layers
   the pastel palette, mini-radar, and polish on top of these
   class hooks.
   ============================================================ */

/* ----- Outbox container ----- */

.ob-wrap {
  padding: 16px 0 24px 0;
}

.ob-help {
  font-size: 12px;
  color: var(--ds-text-muted, #888);
  padding: 0 12px 12px;
  letter-spacing: 0.02em;
}

.ob-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 12px;
}

/* ----- Empty state ----- */

.ob-empty {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed rgba(0,0,0,0.15);
  border-radius: 12px;
  margin: 16px 12px;
  background: rgba(255,255,255,0.4);
}

.ob-empty-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ds-text, #2a2a2a);
}

.ob-empty-sub {
  font-size: 13px;
  color: var(--ds-text-muted, #777);
  line-height: 1.5;
}

.ob-empty-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  font-family: var(--ds-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  margin: 0 2px;
}

/* ----- Card ----- */

.ob-card {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 12px 14px;
  background: var(--ds-card-bg, #faf6ee);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  user-select: none;
}

.ob-card:hover {
  border-color: rgba(0,0,0,0.18);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.ob-card.ob-dragging {
  opacity: 0.5;
  transform: scale(0.98);
}

.ob-card.ob-card-drop-above {
  border-top: 3px solid var(--ds-accent, #4a90e2);
  padding-top: 10px;  /* compensate for thicker border */
}

/* ----- Drag handle ----- */

.ob-drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  font-size: 18px;
  color: rgba(0,0,0,0.25);
  cursor: grab;
  flex-shrink: 0;
  transition: color 0.15s;
}

.ob-card:hover .ob-drag-handle {
  color: rgba(0,0,0,0.55);
}

.ob-drag-handle:active {
  cursor: grabbing;
}

/* ----- Card body ----- */

.ob-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ob-card-row1 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.ob-card-row2 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
}

.ob-card-recipient {
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-text, #2a2a2a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
}

.ob-card-company {
  font-weight: 400;
  color: var(--ds-text-muted, #777);
}

.ob-card-spacer {
  flex: 1;
}

.ob-card-time {
  font-size: 11px;
  color: var(--ds-text-muted, #999);
  white-space: nowrap;
  flex-shrink: 0;
}

.ob-card-subject {
  font-size: 13px;
  color: var(--ds-text, #2a2a2a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.ob-card-no-subject {
  color: var(--ds-text-muted, #999);
  font-style: italic;
}

.ob-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ob-card-attach,
.ob-card-followup {
  font-size: 11px;
  color: var(--ds-text-muted, #777);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,0.04);
  white-space: nowrap;
}

/* ----- Status pills (utility colors; pastels in v13) ----- */

.ob-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  font-family: var(--ds-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
}

.ob-status-draft {
  background: rgba(120,120,120,0.15);
  color: #555;
}

.ob-status-queued {
  background: rgba(200,140,40,0.18);
  color: #8a5d10;
}

.ob-status-failed {
  background: rgba(200,40,40,0.18);
  color: #a02525;
}

.ob-status-default {
  background: rgba(0,0,0,0.06);
  color: #555;
}

/* ----- Fallback for missing card module ----- */

.ob-card-fallback {
  padding: 12px;
  border: 1px dashed #c00;
  background: #ffeeee;
  border-radius: 6px;
  font-size: 12px;
  color: #800;
}
