/* ============================================================
   Fruition — Design System CSS
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --color-bg: #F5F2EC;
  --color-sidebar: #1C3A2A;
  --color-sidebar-accent: #A8C89A;
  --color-sidebar-text: rgba(168,200,154,0.55);
  --color-card: #FFFFFF;
  --color-card-border: rgba(28,58,42,0.10);
  --color-text-primary: #2C2A1E;
  --color-text-muted: #8A8678;
  --color-green-dark: #1C3A2A;
  --color-green-mid: #3B6D11;
  --color-green-light: #EAF3DE;
  --color-amber: #EF9F27;
  --color-amber-bg: #FAEEDA;
  --color-red: #E24B4A;
  --color-red-bg: #FCEBEB;
  --color-blue: #378ADD;
  --color-blue-bg: #E6F1FB;
  --font-display: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --radius-card: 12px;
  --radius-btn: 8px;
}

/* --- Global Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  background: var(--color-bg);
  font-family: var(--font-body);
  color: var(--color-text-primary);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* --- Layout --- */
.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 200px;
  flex-shrink: 0;
  background: var(--color-sidebar);
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px 0 16px;
  z-index: 100;
}

.main-content {
  margin-left: 200px;
  flex: 1;
  padding: 28px;
  min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar-logo {
  padding: 0 16px 20px;
  border-bottom: 0.5px solid rgba(168,200,154,0.1);
  margin-bottom: 16px;
}

.sidebar-logo-text {
  font-family: var(--font-display);
  color: var(--color-sidebar-accent);
  font-size: 22px;
  line-height: 1;
}

.sidebar-farm-name {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(168,200,154,0.35);
  margin-top: 4px;
}

.nav-section {
  margin-bottom: 4px;
}

.nav-section + .nav-section {
  margin-top: 12px;
}

.nav-section-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(168,200,154,0.35);
  padding: 0 16px;
  margin-bottom: 4px;
  display: block;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  margin: 0 8px 1px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(168,200,154,0.08);
  color: rgba(255,255,255,0.75);
}

.nav-item.active {
  background: rgba(168,200,154,0.12);
  color: var(--color-sidebar-accent);
}

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}

.sidebar-bottom {
  margin-top: auto;
  padding: 16px 16px 0;
  border-top: 0.5px solid rgba(168,200,154,0.1);
}

.sidebar-user {
  font-size: 12px;
  color: rgba(168,200,154,0.55);
}

.sidebar-logout {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(168,200,154,0.4);
  text-decoration: none;
}

.sidebar-logout:hover {
  color: var(--color-sidebar-accent);
}

/* --- Page Header --- */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-header-left {}

.page-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--color-green-dark);
  line-height: 1.2;
}

.page-subtitle {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.88;
}

.btn:active {
  opacity: 0.75;
}

.btn-primary {
  background: var(--color-green-dark);
  color: var(--color-sidebar-accent);
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  font-size: 13px;
}

.btn-secondary {
  background: transparent;
  color: var(--color-green-dark);
  border: 0.5px solid var(--color-green-dark);
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  font-size: 13px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-danger {
  background: var(--color-red);
  color: white;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  font-size: 13px;
}

.btn-icon {
  padding: 8px;
  border-radius: var(--radius-btn);
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
}

.btn-icon:hover {
  background: var(--color-green-light);
  color: var(--color-green-dark);
}

/* --- Cards --- */
.card {
  background: var(--color-card);
  border: 0.5px solid var(--color-card-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px 12px;
  border-bottom: 0.5px solid rgba(28,58,42,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.card-link {
  font-size: 12px;
  color: var(--color-green-mid);
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

.card-body {
  padding: 16px 20px;
}

.card-row {
  padding: 12px 20px;
  border-bottom: 0.5px solid rgba(28,58,42,0.05);
  display: flex;
  align-items: center;
}

.card-row:last-child {
  border-bottom: none;
}

/* --- Status Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.badge-good,
.badge-active {
  background: #EAF3DE;
  color: #27500A;
}

.badge-warning {
  background: #FAEEDA;
  color: #633806;
}

.badge-urgent,
.badge-expired,
.badge-contaminated {
  background: #FCEBEB;
  color: #791F1F;
}

.badge-info,
.badge-colonizing {
  background: #E6F1FB;
  color: #0C447C;
}

.badge-muted,
.badge-retired,
.badge-spent {
  background: #F0EFEB;
  color: #666460;
}

.badge-fruiting {
  background: #FAEEDA;
  color: #633806;
}

.badge-colonized {
  background: #EAF3DE;
  color: #27500A;
}

.badge-inoculating {
  background: #E1F5EE;
  color: #085041;
}

.badge-ready {
  background: #EAF3DE;
  color: #27500A;
}

.badge-auto {
  background: #E6F1FB;
  color: #0C447C;
  font-size: 9px;
  letter-spacing: 0.3px;
}

/* --- Culture Card Left Border --- */
.culture-border {
  width: 3px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 0;
}

.culture-border-good    { background: #639922; }
.culture-border-warning { background: #EF9F27; }
.culture-border-expired { background: #E24B4A; }
.culture-border-retired { background: #888780; }

/* --- Strain Color Dots --- */
.strain-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* --- Stat Tiles --- */
.stat-tile {
  background: white;
  border-radius: 12px;
  border: 0.5px solid var(--color-card-border);
  padding: 16px;
}

.stat-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 22px;
  font-weight: 500;
  color: var(--color-green-dark);
  line-height: 1;
}

.stat-sub {
  font-size: 11px;
  color: var(--color-green-mid);
  margin-top: 4px;
}

/* --- Section Headers --- */
.section-header {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  background: white;
  border: 0.5px solid var(--color-card-border);
  border-radius: var(--radius-btn);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-primary);
  width: 100%;
  display: block;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-green-mid);
  outline: none;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.form-error {
  font-size: 11px;
  color: var(--color-red);
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* --- Grid Layouts --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.gap-12 { gap: 12px; }
.gap-8  { gap: 8px; }

/* --- Attention Rows --- */
.attention-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}

.attention-pip {
  width: 3px;
  height: 32px;
  border-radius: 0;
  flex-shrink: 0;
}

.attention-pip-urgent  { background: #E24B4A; }
.attention-pip-warning { background: #EF9F27; }
.attention-pip-info    { background: #639922; }

.attention-content {
  flex: 1;
}

.attention-title {
  font-size: 13px;
  font-weight: 500;
}

.attention-sub {
  font-size: 11px;
  color: var(--color-text-muted);
}

.attention-action {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-green-mid);
  text-decoration: none;
  white-space: nowrap;
}

/* --- Pipeline Strip --- */
.pipeline-strip {
  display: flex;
  gap: 1px;
  background: var(--color-card-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 24px;
}

.pipeline-stage {
  flex: 1;
  background: white;
  padding: 14px 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.pipeline-stage:hover {
  background: #FAFAF8;
}

.pipeline-stage.active {
  background: var(--color-green-light);
}

.pipeline-stage-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.pipeline-stage-count {
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 2px;
}

.pipeline-stage-blocks {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* Stage colors */
.stage-inoculating { color: #1D9E75; }
.stage-colonizing  { color: #378ADD; }
.stage-colonized   { color: #639922; }
.stage-fruiting    { color: #BA7517; }
.stage-spent       { color: #888780; }

/* --- Quick Action Buttons --- */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.quick-action-btn {
  background: white;
  border-radius: 12px;
  border: 0.5px solid var(--color-card-border);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text-primary);
  display: block;
  transition: box-shadow 0.15s;
}

.quick-action-btn:hover {
  box-shadow: 0 2px 8px rgba(28,58,42,0.08);
}

.quick-action-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-action-label {
  font-size: 11px;
  font-weight: 500;
}

.icon-bg-green { background: #EAF3DE; }
.icon-bg-amber { background: #FAEEDA; }
.icon-bg-teal  { background: #E1F5EE; }

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 0.5px solid var(--color-card-border);
  margin-bottom: 20px;
}

.tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
}

.tab:hover {
  color: var(--color-text-primary);
}

.tab.active {
  color: var(--color-green-dark);
  border-bottom-color: var(--color-green-dark);
}

/* --- Table --- */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead th {
  padding: 10px 12px;
  text-align: left;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
  border-bottom: 0.5px solid var(--color-card-border);
}

tbody td {
  padding: 12px 12px;
  border-bottom: 0.5px solid rgba(28,58,42,0.05);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(28,58,42,0.02);
}

/* --- Flash Messages --- */
.flash {
  padding: 12px 16px;
  border-radius: var(--radius-btn);
  margin-bottom: 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.flash-success { background: var(--color-green-light); color: #27500A; }
.flash-error   { background: var(--color-red-bg); color: #791F1F; }
.flash-warning { background: var(--color-amber-bg); color: #633806; }
.flash-info    { background: var(--color-blue-bg); color: #0C447C; }

/* --- Wizard --- */
.wizard-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.wizard-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-card-border);
}

.wizard-step-dot.active {
  background: var(--color-green-dark);
  width: 24px;
  border-radius: 4px;
}

.wizard-step-dot.done {
  background: var(--color-green-mid);
}

.wizard-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-green-dark);
  margin-bottom: 4px;
}

.wizard-subtitle {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 0.5px solid var(--color-card-border);
}

/* --- Freshness Bar --- */
.freshness-bar {
  height: 3px;
  border-radius: 2px;
  background: var(--color-card-border);
  overflow: hidden;
  margin-top: 6px;
}

.freshness-fill {
  height: 100%;
  border-radius: 2px;
}

.freshness-green { background: #639922; }
.freshness-amber { background: #EF9F27; }
.freshness-red   { background: #E24B4A; }

/* --- Utilities --- */
.flex            { display: flex; }
.flex-col        { display: flex; flex-direction: column; }
.items-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4           { gap: 4px; }
.gap-6           { gap: 6px; }
.gap-8           { gap: 8px; }
.gap-12          { gap: 12px; }
.gap-16          { gap: 16px; }
.gap-20          { gap: 20px; }
.mt-4            { margin-top: 4px; }
.mt-8            { margin-top: 8px; }
.mt-12           { margin-top: 12px; }
.mt-16           { margin-top: 16px; }
.mt-20           { margin-top: 20px; }
.mt-24           { margin-top: 24px; }
.mb-4            { margin-bottom: 4px; }
.mb-8            { margin-bottom: 8px; }
.mb-12           { margin-bottom: 12px; }
.mb-16           { margin-bottom: 16px; }
.mb-20           { margin-bottom: 20px; }
.mb-24           { margin-bottom: 24px; }
.text-muted      { color: var(--color-text-muted); font-size: 12px; }
.text-sm         { font-size: 12px; }
.text-xs         { font-size: 11px; }
.font-medium     { font-weight: 500; }
.w-full          { width: 100%; }
.hidden          { display: none; }

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.empty-state-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  opacity: 0.3;
}

/* --- Mobile --- */
@media (max-width: 767px) {
  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding: 0 0 80px;
  }

  .mobile-top-bar {
    background: var(--color-sidebar);
    padding: 12px 20px 20px;
    margin-bottom: 0;
  }

  .mobile-greeting {
    font-family: var(--font-display);
    color: var(--color-sidebar-accent);
    font-size: 22px;
    line-height: 1.2;
  }

  .mobile-subtitle {
    font-size: 12px;
    color: rgba(168,200,154,0.55);
    margin-top: 2px;
  }

  .mobile-main {
    padding: 16px;
  }

  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 0.5px solid var(--color-card-border);
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 0 16px;
    z-index: 200;
  }

  .bottom-nav::-webkit-scrollbar {
    display: none;
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    flex: 0 0 auto;
    min-width: 68px;
    padding: 0 6px;
  }

  .bottom-nav-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .bottom-nav-item.active .bottom-nav-icon {
    background: #EAF3DE;
  }

  .bottom-nav-label {
    font-size: 9px;
    letter-spacing: 0.3px;
    color: var(--color-text-muted);
  }

  .bottom-nav-item.active .bottom-nav-label {
    color: var(--color-green-dark);
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
  }

  .pipeline-strip {
    flex-direction: column;
    gap: 0;
  }

  .quick-actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .desktop-only {
    display: none;
  }
}

@media (min-width: 768px) {
  .mobile-top-bar,
  .bottom-nav {
    display: none;
  }

  .mobile-only {
    display: none;
  }
}

/* --- Kanban --- */
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.kanban-column {
  background: #F8F7F3;
  border-radius: var(--radius-card);
  padding: 12px;
}

.kanban-column-header {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kanban-count {
  background: var(--color-card-border);
  color: var(--color-text-muted);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
}

.kanban-card {
  background: white;
  border: 0.5px solid var(--color-card-border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
}

.kanban-card-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

.kanban-card-meta {
  font-size: 11px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* --- Priority Badges --- */
.priority-urgent { background: #FCEBEB; color: #791F1F; }
.priority-high   { background: #FAEEDA; color: #633806; }
.priority-medium { background: #EAF3DE; color: #27500A; }
.priority-low    { background: #F0EFEB; color: #666460; }

/* --- Task Checkbox --- */
.task-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 0.5px solid rgba(28,58,42,0.05);
}

.task-checkbox:last-child {
  border-bottom: none;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-green-dark);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Recipe Card --- */
.recipe-card {
  background: white;
  border: 1.5px solid var(--color-card-border);
  border-radius: var(--radius-card);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.recipe-card:hover {
  border-color: var(--color-green-mid);
}

.recipe-card.selected {
  border-color: var(--color-green-dark);
  background: var(--color-green-light);
}

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-btn {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 0.5px solid var(--color-card-border);
  background: white;
  cursor: pointer;
  color: var(--color-text-muted);
}

.filter-btn.active {
  background: var(--color-green-dark);
  color: var(--color-sidebar-accent);
  border-color: var(--color-green-dark);
}

/* --- Lineage Chain --- */
.lineage-chain {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.lineage-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.lineage-node-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  border: 1.5px solid;
}

.lineage-node-label {
  font-size: 9px;
  color: var(--color-text-muted);
  margin-top: 4px;
  text-align: center;
}

.lineage-node-name {
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  margin-top: 2px;
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lineage-arrow {
  width: 24px;
  height: 1px;
  background: var(--color-card-border);
  flex-shrink: 0;
  margin-bottom: 20px;
}

.lineage-node.has-record .lineage-node-dot {
  border-color: var(--color-green-mid);
  background: var(--color-green-light);
  color: var(--color-green-dark);
}

.lineage-node.no-record .lineage-node-dot {
  border-color: var(--color-card-border);
  background: white;
  color: var(--color-text-muted);
}

/* ============================================================
   Dashboard Component Styles
   ============================================================ */

/* --- Page Wrapper --- */
.page-wrapper {
  /* Provides a max-width on very wide screens */
  max-width: 1280px;
}

@media (max-width: 767px) {
  .page-wrapper {
    padding: 16px 16px 0;
  }
}

/* --- Greeting Sub --- */
.greeting-sub {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.attn-text-urgent {
  color: var(--color-red);
  font-weight: 500;
}

.attn-text-warn {
  color: var(--color-amber);
  font-weight: 500;
}

/* --- Card Head (header row inside a card) --- */
.card-head {
  padding: 14px 20px;
  border-bottom: 0.5px solid rgba(28,58,42,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Pipeline strip nested inside a card needs no extra margin or outer radius */
.card > .pipeline-strip {
  margin-bottom: 0;
  border-radius: 0 0 calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px);
}

/* --- Button Text --- */
.btn-text {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-green-mid);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-text:hover {
  color: var(--color-green-dark);
  text-decoration: underline;
}

/* --- Quick Action Cards --- */
.quick-action-card {
  background: var(--color-card);
  border: 0.5px solid var(--color-card-border);
  border-radius: var(--radius-card);
  padding: 16px 12px;
  text-align: center;
  text-decoration: none;
  color: var(--color-text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: box-shadow 0.15s;
}

.quick-action-card:hover {
  box-shadow: 0 3px 12px rgba(28,58,42,0.10);
}

.quick-action-card .quick-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  margin: 0 auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-action-card .quick-action-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
}

/* --- Alert Rows --- */
.alert-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
}

.alert-row-divider {
  border-bottom: 0.5px solid rgba(28,58,42,0.05);
}

/* --- Harvest Rows (clickable table rows) --- */
.harvest-row {
  cursor: pointer;
}

.harvest-row:hover td {
  background: rgba(28,58,42,0.025);
}

/* --- Task Rows --- */
.task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
}

.task-row-divider {
  border-bottom: 0.5px solid rgba(28,58,42,0.05);
}

.task-row-text {
  flex: 1;
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-done {
  text-decoration: line-through;
  color: var(--color-text-muted);
}
