/* ============================================================
   PR304 — Project Photos + Specs Tab CSS
   Build marker: pr304-photos:2026-06-18
============================================================ */

/* ── Shared action / summary bar ─────────────────────────────────────────── */
.pr304-action-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.pr304-summary-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
}

.pr304-summary-count {
  font-weight: 700;
  color: #1A1A2E;
}

.pr304-summary-ok {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 11px;
}

.pr304-summary-warn {
  background: #fff3e0;
  color: #e65100;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 11px;
}

.pr304-summary-info {
  background: #e3f2fd;
  color: #1565c0;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 11px;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.pr304-empty-state {
  text-align: center;
  padding: 36px 20px;
  color: #aaa;
}

.pr304-empty-icon {
  font-size: 36px;
  margin-bottom: 10px;
  opacity: 0.4;
}

.pr304-empty-text {
  font-size: 14px;
  font-weight: 700;
  color: #555;
  margin-bottom: 5px;
}

.pr304-empty-sub {
  font-size: 12px;
  color: #888;
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── Feedback banner ─────────────────────────────────────────────────────── */
.pr304-feedback {
  background: #f0f7ff;
  border-left: 3px solid #3498db;
  border-radius: 3px;
  padding: 8px 12px;
  font-size: 12px;
  color: #1a3a5c;
  margin-bottom: 10px;
  line-height: 1.5;
}

.pr304-feedback-lily {
  border-left-color: #FF6B00;
  background: #fff9f3;
  color: #333;
}

/* ══════════════════════════════════════════════════════════════════════════
   PHOTOS
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Phase filter bar ────────────────────────────────────────────────────── */
.pr304-filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pr304-filter-pill {
  padding: 4px 12px;
  border: 1.5px solid #ccc;
  border-radius: 14px;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}

.pr304-filter-pill:hover {
  background: #f5f5f5;
}

.pr304-filter-pill.pr304-filter-active {
  background: #FF6B00;
  border-color: #FF6B00;
  color: #fff;
}

/* ── Photo grid ──────────────────────────────────────────────────────────── */
.pr304-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.pr304-photo-card {
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
  outline: none;
}

.pr304-photo-card:hover,
.pr304-photo-card:focus {
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
  border-color: #FF6B00;
}

.pr304-photo-card.pr304-needs-caption {
  border-color: #FF6B00;
}

.pr304-photo-thumb-wrap {
  position: relative;
  height: 160px;
  background: #f4f4f4;
}

.pr304-photo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pr304-caption-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,107,0,0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 3px 0;
  letter-spacing: 0.03em;
}

.pr304-photo-info {
  padding: 6px 8px 7px;
}

.pr304-photo-label {
  font-size: 11px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pr304-photo-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}

.pr304-phase-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pr304-phase-name {
  font-size: 10px;
  color: #666;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pr304-photo-date {
  font-size: 10px;
  color: #aaa;
  white-space: nowrap;
}

.pr304-photo-caption {
  font-size: 10px;
  color: #555;
  line-height: 1.4;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Lightbox ────────────────────────────────────────────────────────────── */
.pr304-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  outline: none;
}

.pr304-lb-inner {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 1040px;
  width: 96vw;
  max-height: 92vh;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  min-height: 0;
}

.pr304-lb-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
  padding: 0;
  font-family: inherit;
}

.pr304-lb-close:hover {
  color: #333;
}

.pr304-lb-stage {
  display: flex;
  align-items: center;
  background: #111;
  min-height: 320px;
  flex: 1;
  overflow: hidden;
}

.pr304-lb-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 280px;
}

.pr304-lb-img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 4px;
}

.pr304-lb-prev,
.pr304-lb-next {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 20px;
  padding: 20px 14px;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
  flex-shrink: 0;
}

.pr304-lb-prev:hover,
.pr304-lb-next:hover {
  background: rgba(255,255,255,0.2);
}

.pr304-lb-prev:disabled,
.pr304-lb-next:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.pr304-lb-meta {
  padding: 14px 20px 18px;
  overflow-y: auto;
}

.pr304-lb-counter {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 4px;
}

.pr304-lb-label {
  font-size: 15px;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 6px;
}

.pr304-lb-phase-badge {
  display: inline-block;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 10px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pr304-lb-date {
  font-size: 11px;
  color: #888;
  margin-bottom: 10px;
}

.pr304-lb-lily {
  background: #fff9f3;
  border-left: 3px solid #FF6B00;
  border-radius: 3px;
  padding: 7px 10px;
  font-size: 12px;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.5;
}

.pr304-lb-lily-label {
  color: #FF6B00;
  margin-right: 4px;
}

.pr304-lb-lily-advisory {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 3px;
}

.pr304-lb-caption-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pr304-lb-caption-label {
  font-size: 11px;
  font-weight: 700;
  color: #555;
}

.pr304-lb-caption-input {
  width: 100%;
  border: 1.5px solid #ddd;
  border-radius: 5px;
  padding: 7px 10px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.pr304-lb-caption-input:focus {
  outline: none;
  border-color: #FF6B00;
}

.pr304-lb-caption-save {
  align-self: flex-start;
  background: #FF6B00;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.pr304-lb-caption-save:hover {
  background: #e05a00;
}

.pr304-lb-caption-saved {
  font-size: 12px;
  color: #2e7d32;
  font-weight: 600;
  align-self: center;
}

/* ══════════════════════════════════════════════════════════════════════════
   SPECS
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Specs table ─────────────────────────────────────────────────────────── */
.pr304-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 8px;
}

.pr304-spec-table th {
  text-align: left;
  font-weight: 700;
  background: #f4f4f4;
  padding: 7px 10px;
  border-bottom: 2px solid #e0e0e0;
  color: #1A1A2E;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.pr304-spec-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

.pr304-spec-table tr:hover td {
  background: #fafafa;
}

.pr304-spec-section-cell {
  max-width: 320px;
}

.pr304-spec-section {
  font-weight: 600;
  color: #1A1A2E;
  font-size: 12px;
  margin-bottom: 2px;
}

.pr304-spec-desc {
  font-size: 11px;
  color: #666;
  line-height: 1.4;
  margin-top: 2px;
}

.pr304-spec-conflict-note {
  font-size: 11px;
  color: #e65100;
  line-height: 1.4;
  margin-top: 4px;
  background: #fff3e0;
  padding: 4px 7px;
  border-radius: 3px;
  border-left: 2px solid #FF6B00;
}

.pr304-no-date {
  color: #ccc;
}

.pr304-spec-actions-cell {
  white-space: nowrap;
  text-align: right;
}

.pr304-spec-action-btn {
  background: none;
  border: 1.5px solid #ddd;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  cursor: pointer;
  color: #555;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}

.pr304-spec-action-btn:hover {
  border-color: #FF6B00;
  color: #FF6B00;
}

/* ── Status badges ───────────────────────────────────────────────────────── */
.pr304-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pr304-badge--ok      { background: #e8f5e9; color: #2e7d32; }
.pr304-badge--warn    { background: #fff3e0; color: #e65100; }
.pr304-badge--draft   { background: #e3f2fd; color: #1565c0; }
.pr304-badge--muted   { background: #f5f5f5; color: #999;    }

/* ── Add spec form ───────────────────────────────────────────────────────── */
.pr304-add-spec-form {
  background: #fafafa;
  border: 1.5px solid #e0e0e0;
  border-radius: 7px;
  padding: 16px;
  margin-bottom: 14px;
}

.pr304-form-title {
  font-size: 13px;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 12px;
}

.pr304-form-row {
  margin-bottom: 10px;
}

.pr304-form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pr304-form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #555;
  margin-bottom: 4px;
}

.pr304-req {
  color: #FF6B00;
}

.pr304-form-input {
  width: 100%;
  border: 1.5px solid #ddd;
  border-radius: 5px;
  padding: 7px 10px;
  font-size: 12px;
  font-family: inherit;
  box-sizing: border-box;
  background: #fff;
  transition: border-color 0.15s;
}

.pr304-form-input:focus {
  outline: none;
  border-color: #FF6B00;
}

.pr304-form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.pr304-form-cancel-btn {
  background: none;
  border: 1.5px solid #ddd;
  border-radius: 5px;
  padding: 7px 14px;
  font-size: 12px;
  cursor: pointer;
  color: #555;
  font-family: inherit;
}

.pr304-form-cancel-btn:hover {
  border-color: #999;
}

.pr304-form-error {
  color: #c0392b;
  font-size: 11px;
  margin-top: 8px;
}

/* ── Edit modal ──────────────────────────────────────────────────────────── */
.pr304-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

.pr304-modal {
  background: #fff;
  border-radius: 10px;
  padding: 22px 24px;
  max-width: 560px;
  width: 96vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}

.pr304-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.pr304-modal-header strong {
  font-size: 14px;
  color: #1A1A2E;
}

.pr304-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #aaa;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-family: inherit;
}

.pr304-modal-close:hover { color: #333; }

.pr304-modal-delete-btn {
  background: none;
  border: 1.5px solid #e0e0e0;
  border-radius: 5px;
  padding: 7px 14px;
  font-size: 12px;
  cursor: pointer;
  color: #c0392b;
  font-family: inherit;
}

.pr304-modal-delete-btn:hover {
  border-color: #c0392b;
  background: #fce4ec;
}

/* ── Lily draft panel ────────────────────────────────────────────────────── */
.pr304-lily-draft-panel {
  background: #fff9f3;
  border: 1.5px solid #FF6B00;
  border-radius: 7px;
  padding: 16px;
  margin-bottom: 14px;
}

.pr304-lily-draft-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.pr304-lily-draft-header strong {
  font-size: 13px;
  color: #FF6B00;
}

.pr304-lily-draft-close {
  background: none;
  border: none;
  font-size: 13px;
  color: #aaa;
  cursor: pointer;
  font-family: inherit;
}

.pr304-lily-draft-advisory {
  font-size: 11px;
  color: #888;
  font-style: italic;
  margin-bottom: 12px;
  padding: 6px 10px;
  background: #fff;
  border-radius: 4px;
  border-left: 2px solid #FF6B00;
}

.pr304-lily-draft-result {
  margin-top: 12px;
  background: #fff;
  border-radius: 6px;
  padding: 14px;
  border: 1px solid #f0e0d0;
}

.pr304-lily-draft-result-header {
  font-size: 13px;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 8px;
}

.pr304-lily-draft-advisory-banner {
  font-size: 11px;
  color: #e65100;
  background: #fff3e0;
  padding: 5px 9px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.pr304-lily-draft-body {
  font-size: 12px;
  color: #333;
  line-height: 1.6;
}

/* ── Download buttons ───────────────────────────────────────────────────── */
.pr304-lb-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1A1A2E;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  text-decoration: none;
  margin-top: 4px;
}

.pr304-lb-download:hover {
  background: #2e2e4e;
}

.pr304-lb-download svg {
  flex-shrink: 0;
}

/* Download All button in grid toolbar */
.pr304-dl-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #1A1A2E;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.pr304-dl-all:hover {
  background: #2e2e4e;
}

.pr304-dl-all:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pr304-dl-all svg {
  flex-shrink: 0;
}
