/* ============================================================
   PR312 — Lily Integration CSS
   Build marker: pr312-lily-integration:2026-06-17

   Shared Lily bar styles for all new modules (PR304–PR311).
   Visually matches tr303-lily-bar from job_readiness_engine.css.
============================================================ */

/* ── Base Lily bar ───────────────────────────────────────────────────────── */
.pr312-lily-bar {
  background: #fff9f3;
  border-left: 4px solid #FF6B00;
  border-radius: 4px;
  padding: 10px 14px;
  margin: 0 0 14px;
  font-family: 'Barlow', 'Inter', sans-serif;
}

.pr312-lily-bar-main {
  font-size: 13px;
  color: #222;
  line-height: 1.5;
  margin-bottom: 4px;
}

.pr312-lily-label {
  color: #FF6B00;
  font-weight: 700;
  margin-right: 4px;
}

.pr312-lily-text {
  color: #333;
}

.pr312-lily-disclaimer {
  font-size: 11px;
  color: #888;
  font-style: italic;
  line-height: 1.4;
  border-top: 1px solid #f0e0d0;
  padding-top: 5px;
  margin-top: 5px;
}

/* ── Module-specific accent overrides (subtle, same base) ────────────────── */
.pr312-lily-bar--inspection {
  border-left-color: #e55a00;
}
.pr312-lily-bar--payapp {
  border-left-color: #FF6B00;
}
.pr312-lily-bar--compliance {
  border-left-color: #c0392b;
}
.pr312-lily-bar--compliance .pr312-lily-label {
  color: #c0392b;
}

/* ── Action feedback banner ──────────────────────────────────────────────── */
.pr312-action-feedback {
  background: #f0f7ff;
  border-left: 3px solid #3498db;
  border-radius: 3px;
  padding: 8px 12px;
  font-size: 12px;
  color: #1a3a5c;
  margin: 6px 0 8px;
  line-height: 1.5;
}

/* ── Shared module button ────────────────────────────────────────────────── */
.pr312-module-btn {
  margin-right: 8px;
  margin-bottom: 8px;
}

/* ── Photo grid ──────────────────────────────────────────────────────────── */
.pr312-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin: 8px 0 16px;
}

.pr312-photo-tile {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.pr312-photo-tile.pr312-photo-needs-caption {
  border-color: #FF6B00;
}

.pr312-photo-placeholder {
  height: 72px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pr312-photo-label {
  font-size: 11px;
  color: #333;
  padding: 5px 6px 4px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pr312-photo-caption-badge {
  font-size: 10px;
  background: #FF6B00;
  color: #fff;
  padding: 2px 6px;
  text-align: center;
}

.pr312-empty {
  color: #aaa;
  font-size: 13px;
  margin: 8px 0;
}

/* ── Shared table styles ─────────────────────────────────────────────────── */
.pr312-spec-table,
.pr312-check-table,
.pr312-payapp-table,
.pr312-daily-table,
.pr312-compliance-table,
.pr312-comms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 8px 0 16px;
}

.pr312-spec-table th,
.pr312-check-table th,
.pr312-payapp-table th,
.pr312-daily-table th,
.pr312-compliance-table th,
.pr312-comms-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;
}

.pr312-spec-table td,
.pr312-check-table td,
.pr312-payapp-table td,
.pr312-daily-table td,
.pr312-compliance-table td,
.pr312-comms-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
  vertical-align: middle;
}

.pr312-spec-table tr:hover td,
.pr312-payapp-table tr:hover td,
.pr312-daily-table tr:hover td,
.pr312-compliance-table tr:hover td,
.pr312-comms-table tr:hover td {
  background: #fafafa;
}

/* ── Checklist icon column ───────────────────────────────────────────────── */
.pr312-check-icon {
  width: 24px;
  font-size: 16px;
  color: #27ae60;
  text-align: center;
}

.pr312-check-label.pr312-check-done {
  color: #aaa;
  text-decoration: line-through;
}

/* ── Daily report missing row ────────────────────────────────────────────── */
.pr312-daily-missing td {
  background: #fff8f3;
  color: #c0392b;
}

/* ── Closeout progress bar ───────────────────────────────────────────────── */
.pr312-closeout-progress {
  margin: 8px 0 14px;
}

.pr312-progress-bar {
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 5px;
}

.pr312-progress-fill {
  height: 100%;
  background: #FF6B00;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.pr312-progress-label {
  font-size: 12px;
  color: #555;
}

/* ── Status badges ───────────────────────────────────────────────────────── */
.pr312-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;
}

.pr312-badge--ok {
  background: #e8f5e9;
  color: #2e7d32;
}

.pr312-badge--warn {
  background: #fff3e0;
  color: #e65100;
}

.pr312-badge--open {
  background: #e3f2fd;
  color: #1565c0;
}

.pr312-badge--error {
  background: #fce4ec;
  color: #b71c1c;
}
