/* =========================================================
   SWC PMO · diary.css — Sprint 9
   Cards do RDO (grid) e rows largas (obs, lições, RFI).
========================================================= */

.diary-modal { width: min(820px, 96vw); }

/* ── Grid de RDOs (cards quadrados) ──────────────── */
.diary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.diary-card {
  background: #161b27;
  border: 1px solid #252d3d;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.diary-card__hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(96, 165, 250, .06);
  border-bottom: 1px solid rgba(96, 165, 250, .15);
}
.diary-card__date {
  font-size: 14px;
  font-weight: 800;
  color: #f1f5f9;
}
.diary-card__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.diary-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
}
.diary-card__bd {
  padding: 12px 14px;
  flex: 1;
  font-size: 12.5px;
  line-height: 1.55;
  color: #cbd5e1;
}
.diary-card__bd p { margin: 0 0 8px; }
.diary-card__bd strong { color: #f1f5f9; font-weight: 700; }
.diary-card__ft {
  padding: 8px 12px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  background: rgba(0, 0, 0, .15);
  border-top: 1px solid rgba(255, 255, 255, .04);
}

/* ── Lista (obs, lições, RFI) ─────────────────────── */
.diary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.diary-row {
  background: #161b27;
  border: 1px solid #252d3d;
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
  transition: .15s;
}
.diary-row:hover { border-color: rgba(251, 191, 36, .25); }
.diary-row--done { opacity: .55; }
.diary-row__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.diary-row__head strong {
  font-size: 14px;
  font-weight: 800;
  color: #f1f5f9;
}
.diary-row__chips { display: flex; gap: 4px; flex-wrap: wrap; }
.diary-row__body {
  font-size: 12.5px;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 6px 0;
}
.diary-row__body strong { color: #f1f5f9; }
.diary-row__meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .04);
}
.diary-row__meta small {
  font-size: 11px;
  color: #8892a4;
}
.diary-row__acts {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
}

.diary-tag {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 4px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  color: #a78bfa;
  background: rgba(167, 139, 250, .08);
  border: 1px solid rgba(167, 139, 250, .22);
}

/* ── Fotos no card de RDO (grid mini) ────────── */
.diary-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 4px;
  margin: 10px 0 6px;
}
.diary-photo {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  transition: .15s;
}
.diary-photo:hover { border-color: rgba(251,191,36,.4); transform: scale(1.04); }
.diary-photo img { width: 100%; height: 100%; object-fit: cover; }
.diary-photo span { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 24px; }

/* ── Uploader no modal de RDO ───────────────── */
.rdo-photos-field {
  border: 1px solid rgba(255,255,255,.08);
  border-left: 3px solid #fbbf24;
  border-radius: 10px;
  padding: 10px 14px 12px;
  background: rgba(255,255,255,.02);
  margin-top: 4px;
}
.rdo-photos-field legend {
  padding: 0 8px;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rdo-photos-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin: 8px 0;
  min-height: 12px;
}
.rdo-photos-empty {
  grid-column: 1 / -1;
  color: #6b7280;
  font-size: 12px;
  font-style: italic;
  padding: 6px 0;
}
.rdo-photo-item {
  display: grid;
  grid-template-columns: 36px 1fr 24px;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 5px 8px;
}
.rdo-photo-item img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
}
.rdo-photo-doc {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.rdo-photo-meta { min-width: 0; }
.rdo-photo-meta a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rdo-photo-meta a:hover { color: #fbbf24; }
.rdo-photo-meta small { color: #6b7280; font-size: 10.5px; }
.rdo-photo-rm {
  width: 24px; height: 24px;
  border: 1px solid rgba(248,113,113,.3);
  background: rgba(248,113,113,.08);
  color: #f87171;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}
.rdo-photo-rm:hover { background: rgba(248,113,113,.18); }

.rdo-photos-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.rdo-photos-hint { font-size: 11px; color: #6b7280; }
.rdo-photos-status { font-size: 11.5px; margin-top: 6px; }
