/* ─── Cards ───────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title { font-size: 13px; font-weight: 600; color: var(--text); }
.card-body  { padding: 16px 20px; }

/* ─── Progress ────────────────────────────────────────────────────────── */
.progress-wrap { width: 90px; }
.progress-bar {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill { height: 100%; border-radius: 3px; }
.fill-green  { background: var(--green); }
.fill-brown  { background: var(--brown); }
.fill-yellow { background: #C8A84B; }

/* ─── Status badges ───────────────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 5px;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; }
.status-active { background: #EAF2EC; color: #3D6248; }
.status-active .status-dot { background: #4E7A5A; }
.status-fallow { background: #F5EDE5; color: #7A4F2E; }
.status-fallow .status-dot { background: #7A4F2E; }
/* Season lifecycle: plan confirmed, waiting for sowing */
.status-awaiting { background: #E6F0F8; color: #1F5F8B; }
.status-awaiting .status-dot { background: #1570A3; }
/* Harvested — season still open until "Закрити сезон" */
.status-inactive { background: #F3EEE3; color: #8A5A12; }
.status-inactive .status-dot { background: #B45309; }
.btn-close-season { padding: 3px 9px; font-size: 11.5px; white-space: nowrap; }
.status-prep   { background: #F5F0E8; color: #8A7040; }
.status-prep   .status-dot { background: #C8A84B; }

/* ─── Tags ────────────────────────────────────────────────────────────── */
.task-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.tag-green { background: var(--green-light); color: var(--green); }
.tag-brown { background: var(--brown-light); color: var(--brown); }
.tag-gray  { background: #F0F0EE; color: var(--text-muted); }

/* ─── Table ───────────────────────────────────────────────────────────── */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
  overflow-y: hidden;
  /* momentum scrolling + a visible hint that there's more off to the side */
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--border); transition: background .1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #FAFAF8; }
tbody td { padding: 12px 16px; font-size: 13px; color: var(--text); vertical-align: middle; }

.field-name { font-weight: 500; }
.field-num {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}
.actions-cell { display: flex; gap: 6px; }
.icon-btn {
  width: 28px; height: 28px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  transition: all .15s;
}
.icon-btn:hover { background: var(--bg); color: var(--text); }
