/**
 * PR245 — Lily Daily Report Engine
 * TradeRail Portal — Daily Report Draft Styles
 */

/* ============================================================
   Lily draft banner
   ============================================================ */

.lily-draft-banner {
  border-left: 4px solid #7C3AED;
  background: #f5f0ff;
  padding: 12px 16px;
  border-radius: 6px;
}

.lily-draft-banner-text {
  font-size: 14px;
  color: #5B21B6;
  line-height: 1.5;
}

/* ============================================================
   Lily source chip — inline badge for field provenance
   ============================================================ */

.lily-source-chip {
  display: inline-block;
  background: #ede9fe;
  color: #7C3AED;
  font-size: 11px;
  border-radius: 4px;
  padding: 2px 6px;
  font-weight: 500;
  vertical-align: middle;
  line-height: 1.4;
}

/* ============================================================
   Lily work completed field — dashed purple border
   ============================================================ */

.lily-work-completed-field {
  border: 2px dashed #7C3AED;
  border-radius: 4px;
  padding: 8px 10px;
  background: #faf8ff;
}

/* ============================================================
   Lily missing field — amber indicator
   ============================================================ */

.lily-missing-field {
  border: 2px solid #D97706;
  background: #fffbeb;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  color: #92400e;
  display: inline-block;
}

/* ============================================================
   Lily draft warning — amber text
   ============================================================ */

.lily-draft-warning {
  color: #B45309;
  font-size: 12px;
  line-height: 1.5;
  padding: 2px 0;
}

.lily-draft-warning::before {
  content: "! ";
  font-weight: 700;
}

/* ============================================================
   Daily draft panel — full panel container
   ============================================================ */

.daily-draft-panel {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* ============================================================
   Crew row — worker + clock times
   ============================================================ */

.daily-draft-crew-row {
  display: flex;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
  color: #374151;
  gap: 8px;
}

.daily-draft-crew-row:last-child {
  border-bottom: none;
}

/* ============================================================
   Section header — bold label
   ============================================================ */

.daily-draft-section-header {
  font-weight: 700;
  font-size: 13px;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px 0;
}

/* ============================================================
   Draft with Lily button
   ============================================================ */

.lily-btn-draft {
  display: inline-block;
  background: #FF6B00;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  line-height: 1;
}

.lily-btn-draft:hover {
  background: #e05f00;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.35);
  color: #ffffff;
  text-decoration: none;
}

.lily-btn-draft:active {
  background: #cc5500;
}

.lily-btn-draft[disabled],
.lily-btn-draft:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

/* ============================================================
   Draft status chip — badge variants
   ============================================================ */

.draft-status-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

/* draft_ready — purple */
.draft-status-draft-ready {
  background: #ede9fe;
  color: #6d28d9;
}

/* submitted — green */
.draft-status-submitted {
  background: #d1fae5;
  color: #065f46;
}

/* none — gray */
.draft-status-none {
  background: #f3f4f6;
  color: #6b7280;
}

/* ============================================================
   Utility helpers used inside panel
   ============================================================ */

.lily-insight-bar {
  border-left: 4px solid #7C3AED;
  background: #f5f0ff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: #5B21B6;
  margin-top: 12px;
}

.lily-insight-bar strong {
  font-weight: 700;
}
