/* public/css/mobile/op-rouv.css — DCM ROUV: the deployment list, the deployment screen, the Photos &
   Videos strip, Choose from Media, the add / edit sheet, and the ROUV tag on a Media tile.
   Tokens only (--dcm-*), readable in light and body.dark-mode. Nothing here changes dcm.css. */

/* ---------- list ---------- */

.dcm-rouv-list { display: flex; flex-direction: column; gap: 10px; }

.dcm-rouv-row__when { font-weight: 400; color: var(--dcm-muted); }
.dcm-rouv-row__held { color: var(--dcm-warning); font-weight: 600; }

/* Waiting-to-send and not-sent chips: a list row, a media tile and the deployment screen share them. */
.dcm-rouv-chip {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
}
.dcm-rouv-chip--pending { background: var(--dcm-warning-wash); color: var(--dcm-warning); }
.dcm-rouv-chip--live { background: var(--dcm-success-wash); color: var(--dcm-success); }
.dcm-rouv-chip--attention { background: var(--dcm-danger-wash); color: var(--dcm-danger); cursor: pointer; }

/* ---------- deployment screen ---------- */

/* The reused Pattern Details and Scene Map modals live here; it takes no space of its own. */
.dcm-rouv-runtime { display: contents; }

.dcm-rouv-when { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.dcm-rouv-status { margin: 0 0 12px; }

/* Recorded by someone else: sits on the page gradient, so it carries its own surface. */
.dcm-rouv-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 10px 12px;
  background: var(--dcm-surface);
  color: var(--dcm-text);
  border: 1px solid var(--dcm-border);
  border-left: 4px solid var(--dcm-info);
  border-radius: 10px;
}
.dcm-rouv-banner__text { flex: 1 1 200px; min-width: 0; font-size: 14px; }

/* The dive-log section buttons keep the dive-log look (operations-dive-logs.css); only the spacing
   around them is set here so they sit in a DCM column. */
.dcm-rouv-sections { margin: 0 0 16px; }
.dcm-rouv-sections .dive-log-body { padding: 12px; }
.dcm-rouv-sections .section-buttons { margin-bottom: 0; }

/* The read-only notice inside the Pattern Details / Scene Map modals. */
.dcm-rouv-modal-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--dcm-text);
  background: var(--dcm-info-wash);
  border-left: 4px solid var(--dcm-info);
  border-radius: 8px;
}

/* ---------- Photos & Videos strip ---------- */

.dcm-rouv-strip { margin: 0 0 16px; }
.dcm-rouv-strip__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.dcm-rouv-strip__footer { margin: 12px 0 0; }

/* A tile's own waiting-link chip sits under the type line. */
.dcm-det__media-tile .dcm-rouv-chip { margin: 0 6px 6px; }

/* ROUV tag on a Media tile: top-right, so it never covers the category badge at top-left. Opaque, so it
   reads on any photo. */
.dcm-det__media-badge--rouv {
  left: auto;
  right: 6px;
  color: var(--dcm-orange);
  background: var(--dcm-surface);
  border: 1px solid var(--dcm-orange);
}

/* ---------- Choose from Media ---------- */

.dcm-rouv-pick__list { display: flex; flex-direction: column; gap: 8px; }

.dcm-rouv-pick__row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 10px;
  color: var(--dcm-text);
  background: var(--dcm-surface);
  border: 1px solid var(--dcm-border);
  border-radius: 10px;
  cursor: pointer;
}
.dcm-rouv-pick__row input[type="checkbox"] { flex: none; width: 22px; height: 22px; }
.dcm-rouv-pick__row:active { background: var(--dcm-surface-2); }

.dcm-rouv-pick__thumb {
  flex: none;
  width: 44px;
  height: 44px;
  aspect-ratio: auto;
  border-radius: 8px;
  background-color: var(--dcm-surface-2);
}

.dcm-rouv-pick__text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.dcm-rouv-pick__name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dcm-rouv-pick__type { font-size: 12px; color: var(--dcm-muted); }

/* ---------- Start / End Deployment ---------- */

.dcm-rouv-clock { margin: 0 0 12px; }
.dcm-rouv-clock__btn { width: 100%; min-height: 48px; }
