/* ============================================================================
 * agro-mg-dashboard.css — FAZA 14.1 Moja gazdinstva (Dashboard)
 *
 * Spec: docs/design-specs/moja-gazdinstva-dashboard.md
 * BEM root: .agro-mg-dashboard
 *
 * K4 sadrzaj: Hero + Season-coach + Grid container (kartica CSS ide u K5)
 * Tokeni: koristi --agro-* iz custom/css/style.css (FAZA 12 token sistem)
 * ============================================================================ */

/* sr-only utility (visually hidden, screen reader friendly) */
.agro-mg-dashboard .sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* Container */
.agro-mg-dashboard {
  display: flex;
  flex-direction: column;
  gap: var(--agro-space-lg);
  margin: 0 auto;
  max-width: 1280px;
  padding: var(--agro-space-lg) 0;
}

/* ===== Hero ===== */
.agro-mg-dashboard__hero {
  background: linear-gradient(135deg, var(--agro-cream) 0%, var(--agro-sage-50) 100%);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius-card);
  box-shadow: var(--agro-shadow-card);
  overflow: hidden;
  padding: var(--agro-space-xl);
  position: relative;
}

.agro-mg-dashboard__hero::before {
  background: radial-gradient(circle, rgba(76, 175, 80, 0.08) 0%, transparent 70%);
  content: '';
  height: 320px;
  pointer-events: none;
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
}

.agro-mg-dashboard__hero-greeting {
  display: flex;
  flex-wrap: wrap;
  gap: var(--agro-space-md);
  justify-content: space-between;
  margin-bottom: var(--agro-space-lg);
  position: relative;
  z-index: 1;
}

.agro-mg-dashboard__hero-greeting h1 {
  color: var(--agro-text);
  font-family: var(--agro-font-heading);
  font-size: var(--agro-font-size-h1);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 4px 0;
}

.agro-mg-dashboard__hero-subtitle {
  color: var(--agro-text-muted);
  font-size: var(--agro-font-size-sm);
  margin: 0;
}

.agro-mg-dashboard__hero-date {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  font-size: var(--agro-font-size-sm);
  gap: 4px;
  text-align: right;
}

.agro-mg-dashboard__hero-date-text {
  color: var(--agro-text-secondary);
  font-weight: 600;
}

.agro-mg-dashboard__season-pill {
  align-items: center;
  background: var(--agro-amber-50);
  border-radius: var(--agro-radius-pill);
  color: var(--agro-amber-700);
  display: inline-flex;
  font-size: var(--agro-font-size-xs);
  font-weight: 600;
  gap: 4px;
  padding: 4px 10px;
}

/* KPI + Map row */
.agro-mg-dashboard__kpi-map {
  display: grid;
  gap: var(--agro-space-lg);
  grid-template-columns: 1fr 320px;
  margin-bottom: var(--agro-space-lg);
  position: relative;
  z-index: 1;
}

.agro-mg-dashboard__kpi-grid {
  display: grid;
  gap: var(--agro-space-md);
  grid-template-columns: repeat(2, 1fr);
}

.agro-mg-dashboard__overview-tile {
  background: var(--agro-surface-card);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  padding: var(--agro-space-md);
  position: relative;
  transition: all var(--agro-transition);
}

.agro-mg-dashboard__overview-tile:hover {
  box-shadow: var(--agro-shadow-card-hover);
  cursor: pointer;
  transform: translateY(-2px);
}

.agro-mg-dashboard__tile-label {
  color: var(--agro-text-muted);
  font-size: var(--agro-font-size-xs);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.agro-mg-dashboard__tile-value {
  color: var(--agro-text);
  font-family: var(--agro-font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.agro-mg-dashboard__tile-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.agro-mg-dashboard__tile-delta {
  align-items: center;
  display: inline-flex;
  font-size: var(--agro-font-size-xs);
  font-weight: 700;
  gap: 2px;
}

.agro-mg-dashboard__tile-delta--up { color: var(--agro-primary-dark); }
.agro-mg-dashboard__tile-delta--down { color: var(--agro-danger-text, var(--agro-danger)); }
.agro-mg-dashboard__tile-delta--flat { color: var(--agro-text-muted); }

.agro-mg-dashboard__tile-sparkline {
  height: 28px;
  width: 80px;
}

.agro-mg-dashboard__tile-progress {
  background: var(--agro-sage-100);
  border-radius: 3px;
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  position: relative;
}

.agro-mg-dashboard__tile-progress-fill {
  background: var(--agro-primary);
  border-radius: 3px;
  height: 100%;
  transition: width 600ms ease;
}

/* Mini map */
.agro-mg-dashboard__map {
  background: var(--agro-surface-card);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  min-height: 200px;
  padding: var(--agro-space-md);
  position: relative;
}

.agro-mg-dashboard__map-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.agro-mg-dashboard__map-title {
  color: var(--agro-text-muted);
  font-size: var(--agro-font-size-xs);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.agro-mg-dashboard__map-count {
  background: var(--agro-sage-100);
  border-radius: var(--agro-radius-pill);
  color: var(--agro-text-muted);
  font-size: var(--agro-font-size-xs);
  padding: 2px 8px;
}

/* Leaflet mapa container */
.agro-mg-dashboard__map-leaflet {
  background: var(--agro-sage-50);
  border-radius: var(--agro-radius);
  height: 220px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.agro-mg-dashboard__map-leaflet .leaflet-container {
  background: var(--agro-sage-50);
  font-family: inherit;
  height: 100%;
  width: 100%;
}

.agro-mg-dashboard__map-loading {
  align-items: center;
  color: var(--agro-text-muted);
  display: flex;
  font-size: var(--agro-font-size-sm);
  font-style: italic;
  height: 100%;
  justify-content: center;
}

.agro-mg-dashboard__map-empty {
  align-items: center;
  background: var(--agro-sage-50);
  border-radius: var(--agro-radius);
  color: var(--agro-text-muted);
  display: flex;
  flex-direction: column;
  font-size: var(--agro-font-size-sm);
  gap: 8px;
  height: 220px;
  justify-content: center;
  padding: var(--agro-space-md);
  text-align: center;
}

.agro-mg-dashboard__map-empty-icon {
  font-size: 36px;
  opacity: 0.5;
}

.agro-mg-dashboard__map-empty-text {
  margin: 0;
  max-width: 280px;
}

.agro-mg-dashboard__map-error {
  color: var(--agro-danger, #c62828);
  font-size: var(--agro-font-size-sm);
  padding: var(--agro-space-md);
  text-align: center;
}

.agro-mg-dashboard__map-note {
  color: var(--agro-text-muted, #6b7060);
  font-size: var(--agro-font-size-xs, 12px);
  line-height: 1.4;
  margin: var(--agro-space-xs, 6px) 0 0;
  padding: 6px 10px;
  background: var(--agro-surface-muted, #f4f4ef);
  border-left: 3px solid var(--agro-accent, #d97706);
  border-radius: 4px;
}

.agro-mg-dashboard__map-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 14px;
  font-size: var(--agro-font-size-sm, 13px);
  font-weight: 500;
  color: var(--agro-text-on-accent, #fff);
  background: var(--agro-primary, #2e7d32);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.agro-mg-dashboard__map-empty-cta:hover,
.agro-mg-dashboard__map-empty-cta:focus {
  background: var(--agro-primary-dark, #1b5e20);
  color: var(--agro-text-on-accent, #fff);
  text-decoration: none;
}

/* Custom Leaflet pin */
.agro-mg-leaflet-pin {
  background: transparent;
  border: 0;
}

.agro-mg-leaflet-pin__dot {
  background: var(--agro-accent, #d97706);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  display: block;
  height: 16px;
  transition: transform 150ms ease;
  width: 16px;
}

.agro-mg-leaflet-pin:hover .agro-mg-leaflet-pin__dot,
.agro-mg-leaflet-pin:focus-visible .agro-mg-leaflet-pin__dot {
  transform: scale(1.3);
}

.agro-mg-leaflet-pin__muni {
  color: var(--agro-text-muted);
  font-size: 12px;
}

.agro-mg-leaflet-pin__cta {
  background: var(--agro-primary);
  border: 0;
  border-radius: var(--agro-radius-sm, 6px);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  padding: 6px 10px;
  width: 100%;
}

.agro-mg-leaflet-pin__cta:hover { background: var(--agro-primary-dark); }

.leaflet-popup-content {
  font-size: 13px;
  line-height: 1.4;
  margin: 10px 14px !important;
}

.leaflet-popup-content-wrapper {
  border-radius: var(--agro-radius);
}

/* Hero CTA row */
.agro-mg-dashboard__hero-cta {
  display: flex;
  gap: var(--agro-space-sm);
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.agro-mg-dashboard__btn-primary {
  align-items: center;
  background: var(--agro-primary);
  border: 0;
  border-radius: var(--agro-radius);
  box-shadow: var(--agro-shadow-sm);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: var(--agro-font-size-sm);
  font-weight: 600;
  gap: 6px;
  padding: 10px 20px;
  text-decoration: none;
  transition: all var(--agro-transition);
}

.agro-mg-dashboard__btn-primary:hover {
  background: var(--agro-primary-dark);
  box-shadow: var(--agro-shadow-md);
  color: #fff;
  transform: translateY(-1px);
}

/* ===== Season + Coach ===== */
.agro-mg-dashboard__season-coach {
  display: grid;
  gap: var(--agro-space-md);
  grid-template-columns: 60% calc(40% - var(--agro-space-md));
}

.agro-mg-dashboard__season,
.agro-mg-dashboard__coach {
  background: var(--agro-surface-card);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius-card);
  box-shadow: var(--agro-shadow-card);
  padding: var(--agro-space-lg);
}

.agro-mg-dashboard__section-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--agro-space-md);
}

.agro-mg-dashboard__section-title {
  align-items: center;
  color: var(--agro-text);
  display: flex;
  font-family: var(--agro-font-heading);
  font-size: var(--agro-font-size-h3);
  font-weight: 700;
  gap: 8px;
  margin: 0;
}

.agro-mg-dashboard__section-icon {
  align-items: center;
  background: var(--agro-amber-50);
  border-radius: var(--agro-radius-sm);
  color: var(--agro-amber-700);
  display: inline-flex;
  height: 24px;
  justify-content: center;
  padding: 4px;
  width: 24px;
}

/* Sezonski kalendar */
.agro-mg-dashboard__calendar {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(12, 1fr);
  margin-bottom: var(--agro-space-md);
}

.agro-mg-dashboard__month {
  background: var(--agro-cream);
  border-radius: var(--agro-radius-sm);
  color: var(--agro-text-muted);
  font-size: var(--agro-font-size-xs);
  font-weight: 600;
  padding: 10px 4px;
  text-align: center;
  transition: background var(--agro-transition);
}

.agro-mg-dashboard__month--past {
  background: var(--agro-sage-100);
  color: var(--agro-text-secondary);
}

.agro-mg-dashboard__month--current {
  background: var(--agro-primary);
  box-shadow: var(--agro-shadow-sm);
  color: #fff;
  transform: scale(1.05);
}

.agro-mg-dashboard__season-tip {
  background: var(--agro-amber-50);
  border-left: 3px solid var(--agro-wheat);
  border-radius: var(--agro-radius);
  display: flex;
  gap: 12px;
  padding: var(--agro-space-md);
}

.agro-mg-dashboard__season-tip-icon {
  flex-shrink: 0;
  font-size: 24px;
  line-height: 1;
}

.agro-mg-dashboard__season-tip-text {
  color: var(--agro-text-secondary);
  font-size: var(--agro-font-size-sm);
  margin: 0;
}

/* Coach card */
.agro-mg-dashboard__coach-list {
  display: flex;
  flex-direction: column;
  gap: var(--agro-space-sm);
}

.agro-mg-dashboard__coach-item {
  align-items: flex-start;
  background: transparent;
  border: 0;
  border-radius: var(--agro-radius);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  gap: 12px;
  padding: var(--agro-space-sm);
  text-align: left;
  text-decoration: none;
  transition: background var(--agro-transition);
  width: 100%;
}

.agro-mg-dashboard__coach-item:hover {
  background: var(--agro-sage-50);
}

.agro-mg-dashboard__coach-item-icon {
  align-items: center;
  background: var(--agro-primary-bg);
  border-radius: var(--agro-radius-pill);
  color: var(--agro-primary-dark);
  display: inline-flex;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.agro-mg-dashboard__coach-item-text {
  flex: 1;
  min-width: 0;
}

.agro-mg-dashboard__coach-item-title {
  color: var(--agro-text);
  font-size: var(--agro-font-size-sm);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
}

.agro-mg-dashboard__coach-item-why {
  color: var(--agro-text-muted);
  font-size: var(--agro-font-size-xs);
}

.agro-mg-dashboard__coach-item-action {
  align-self: center;
  background: transparent;
  border-radius: var(--agro-radius-sm);
  color: var(--agro-primary-dark);
  flex-shrink: 0;
  font-size: var(--agro-font-size-xs);
  font-weight: 700;
  padding: 4px 10px;
  transition: all var(--agro-transition);
}

.agro-mg-dashboard__coach-item:hover .agro-mg-dashboard__coach-item-action {
  background: var(--agro-primary);
  color: #fff;
}

.agro-mg-dashboard__coach-empty {
  color: var(--agro-text-muted);
  font-size: var(--agro-font-size-sm);
  padding: var(--agro-space-md);
  text-align: center;
}

.agro-mg-dashboard__coach-empty strong {
  color: var(--agro-primary-dark);
  display: block;
  margin-bottom: 4px;
}

/* ===== Grid container (kartice CSS ide u K5) ===== */
.agro-mg-dashboard__grid-section {
  margin-top: var(--agro-space-md);
}

.agro-mg-dashboard__grid-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--agro-space-md);
  justify-content: space-between;
  margin-bottom: var(--agro-space-md);
}

.agro-mg-dashboard__grid-title {
  color: var(--agro-text);
  font-family: var(--agro-font-heading);
  font-size: var(--agro-font-size-h2);
  font-weight: 700;
  margin: 0;
}

.agro-mg-dashboard__grid {
  display: grid;
  gap: var(--agro-space-md);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Empty state (0 entiteta) */
.agro-mg-dashboard__empty {
  background: var(--agro-cream);
  border: 2px dashed var(--agro-border-strong);
  border-radius: var(--agro-radius-card);
  padding: var(--agro-space-xl);
  text-align: center;
}

.agro-mg-dashboard__empty-icon {
  color: var(--agro-primary);
  font-size: 56px;
  line-height: 1;
  margin-bottom: var(--agro-space-md);
}

.agro-mg-dashboard__empty-title {
  color: var(--agro-text);
  font-family: var(--agro-font-heading);
  font-size: var(--agro-font-size-h2);
  font-weight: 700;
  margin: 0 0 8px 0;
}

.agro-mg-dashboard__empty-desc {
  color: var(--agro-text-muted);
  font-size: var(--agro-font-size-sm);
  margin: 0 0 var(--agro-space-md) 0;
}

/* Premium gate */
.agro-mg-dashboard__gate {
  background: var(--agro-cream);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius-card);
  margin: var(--agro-space-lg) 0;
  padding: var(--agro-space-xl);
}

/* ===== Responsive (K8 ce finalizovati) ===== */
@media (max-width: 1100px) {
  .agro-mg-dashboard__kpi-map { grid-template-columns: 1fr; }
  .agro-mg-dashboard__map { display: none; }
}

@media (max-width: 900px) {
  .agro-mg-dashboard__season-coach { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .agro-mg-dashboard { padding: var(--agro-space-md) 0; }
  .agro-mg-dashboard__hero { padding: var(--agro-space-md); }
  .agro-mg-dashboard__hero-greeting { flex-direction: column; align-items: flex-start; }
  .agro-mg-dashboard__hero-date { align-items: flex-start; text-align: left; }
  .agro-mg-dashboard__kpi-grid { gap: var(--agro-space-sm); }
  .agro-mg-dashboard__tile-value { font-size: 22px; }
}

@media (max-width: 480px) {
  .agro-mg-dashboard__kpi-grid { grid-template-columns: 1fr; }
  .agro-mg-dashboard__calendar { grid-template-columns: repeat(6, 1fr); gap: 3px; }
}

/* ===== ENTITY CARD (K5) ===== */
.agro-mg-card {
  background: var(--agro-surface-card);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius-card);
  box-shadow: var(--agro-shadow-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: var(--agro-space-md);
  overflow: hidden;
  padding: var(--agro-space-lg);
  position: relative;
  transition: all var(--agro-transition);
}

.agro-mg-card:hover {
  border-color: var(--agro-border-strong);
  box-shadow: var(--agro-shadow-card-hover);
  transform: translateY(-2px);
}

.agro-mg-card--current {
  border-left: 4px solid var(--agro-primary);
  padding-left: calc(var(--agro-space-lg) - 3px);
}

.agro-mg-card--inactive {
  opacity: 0.65;
}

/* Card header */
.agro-mg-card__header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
}

.agro-mg-card__avatar {
  align-items: center;
  background-color: var(--agro-primary);
  background-position: center;
  background-size: cover;
  border: 2px solid #fff;
  border-radius: var(--agro-radius-pill);
  box-shadow: var(--agro-shadow-sm);
  color: #fff;
  display: flex;
  flex-shrink: 0;
  font-family: var(--agro-font-heading);
  font-size: 22px;
  font-weight: 700;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.agro-mg-card__avatar--firma {
  background-color: var(--agro-soil-700);
}

.agro-mg-card__info {
  flex: 1;
  min-width: 0;
}

.agro-mg-card__name {
  color: var(--agro-text);
  font-family: var(--agro-font-heading);
  font-size: var(--agro-font-size-h3);
  font-weight: 700;
  margin: 0 0 2px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agro-mg-card__meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agro-mg-card__badge {
  border-radius: var(--agro-radius-pill);
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 2px 8px;
}

.agro-mg-card__badge--gazdinstvo {
  background: var(--agro-primary-bg);
  color: var(--agro-primary-dark);
}

.agro-mg-card__badge--firma {
  background: rgba(92, 72, 54, 0.12);
  color: var(--agro-soil-700);
}

.agro-mg-card__location {
  align-items: center;
  color: var(--agro-text-muted);
  display: inline-flex;
  font-size: var(--agro-font-size-xs);
  gap: 2px;
}

.agro-mg-card__location svg {
  flex-shrink: 0;
}

.agro-mg-card__active-badge,
.agro-mg-card__inactive-badge {
  border-radius: var(--agro-radius-sm);
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 4px;
  padding: 2px 6px;
  text-transform: uppercase;
}

.agro-mg-card__active-badge {
  background: var(--agro-primary);
  color: #fff;
}

.agro-mg-card__inactive-badge {
  background: var(--agro-text-muted);
  color: #fff;
}

/* Card KPI strip */
.agro-mg-card__kpi-strip {
  border-bottom: 1px dashed var(--agro-border);
  border-top: 1px dashed var(--agro-border);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  padding: var(--agro-space-sm) 0;
}

.agro-mg-card__kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.agro-mg-card__kpi-label {
  color: var(--agro-text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.agro-mg-card__kpi-row {
  align-items: baseline;
  display: flex;
  gap: 4px;
}

.agro-mg-card__kpi-value {
  color: var(--agro-text);
  font-family: var(--agro-font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.agro-mg-card__kpi-delta {
  font-size: 11px;
  font-weight: 700;
}

.agro-mg-card__kpi-delta--up { color: var(--agro-primary-dark); }
.agro-mg-card__kpi-delta--down { color: var(--agro-danger-text, var(--agro-danger)); }
.agro-mg-card__kpi-delta--flat { color: var(--agro-text-muted); }

.agro-mg-card__sparkline {
  display: block;
  height: 18px;
  margin-top: 2px;
  width: 100%;
}

.agro-mg-card__sparkline svg {
  display: block;
  width: 100%;
}

.agro-mg-card__no-data {
  color: var(--agro-text-muted);
  font-size: 11px;
  font-style: italic;
  margin-top: 2px;
}

/* Card footer */
.agro-mg-card__footer {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  position: relative;
}

.agro-mg-card__btn-open {
  background: var(--agro-primary);
  border: 0;
  border-radius: var(--agro-radius);
  color: #fff;
  cursor: pointer;
  flex: 1;
  font-family: inherit;
  font-size: var(--agro-font-size-sm);
  font-weight: 600;
  padding: 8px;
  transition: background var(--agro-transition);
}

.agro-mg-card__btn-open:hover {
  background: var(--agro-primary-dark);
}

.agro-mg-card__btn-secondary {
  background: var(--agro-cream);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  color: var(--agro-text-secondary);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--agro-font-size-sm);
  font-weight: 600;
  padding: 8px 12px;
  text-decoration: none;
  transition: all var(--agro-transition);
}

.agro-mg-card__btn-secondary:hover {
  background: var(--agro-sage-100);
}

.agro-mg-card__btn-secondary--inactive {
  cursor: default;
  opacity: 0.7;
}

.agro-mg-card__menu-btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--agro-radius);
  color: var(--agro-text-muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 20px;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  transition: all var(--agro-transition);
  width: 36px;
}

.agro-mg-card__menu-btn:hover {
  background: var(--agro-sage-100);
  color: var(--agro-text);
}

/* Card overflow menu */
.agro-mg-card__menu {
  background: var(--agro-surface-card);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  box-shadow: var(--agro-shadow-md);
  list-style: none;
  margin: 0;
  min-width: 180px;
  padding: 4px;
  position: absolute;
  right: var(--agro-space-lg);
  bottom: calc(var(--agro-space-lg) + 44px);
  z-index: var(--agro-z-dropdown);
}

/* Kartica ima overflow:hidden zbog rounded corners; kad je menu otvoren
   preklapamo overflow tako da meni ne bude isečen i podižemo z-index
   da kartica preklopi susede u gridu (slučaj kad je menu pozicija dropdown-down). */
.agro-mg-card.is-menu-open {
  overflow: visible;
  z-index: 5;
}

.agro-mg-card__menu[hidden] {
  display: none;
}

.agro-mg-card__menu li {
  margin: 0;
}

.agro-mg-card__menu a,
.agro-mg-card__menu button {
  background: transparent;
  border: 0;
  border-radius: var(--agro-radius-sm);
  color: var(--agro-text);
  cursor: pointer;
  display: block;
  font-family: inherit;
  font-size: var(--agro-font-size-sm);
  padding: 8px 12px;
  text-align: left;
  text-decoration: none;
  transition: background var(--agro-transition);
  width: 100%;
}

.agro-mg-card__menu a:hover,
.agro-mg-card__menu button:hover {
  background: var(--agro-sage-50);
}

.agro-mg-card__menu-item--danger {
  color: var(--agro-danger) !important;
}

.agro-mg-card__menu-item--danger:hover {
  background: rgba(198, 40, 40, 0.06) !important;
}

/* Add-new tile */
.agro-mg-card--add {
  align-items: center;
  background: var(--agro-surface-alt);
  border: 2px dashed var(--agro-border-strong);
  border-radius: var(--agro-radius-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-family: var(--agro-font-heading);
  justify-content: center;
  min-height: 280px;
  padding: var(--agro-space-lg);
  text-align: center;
  transition: all var(--agro-transition);
}

.agro-mg-card--add:hover {
  background: var(--agro-cream);
  border-color: var(--agro-primary);
  transform: translateY(-2px);
}

.agro-mg-card--add__icon {
  align-items: center;
  background: var(--agro-primary-bg);
  border: 2px dashed var(--agro-primary-light);
  border-radius: var(--agro-radius-pill);
  color: var(--agro-primary);
  display: flex;
  font-size: 36px;
  font-weight: 300;
  height: 72px;
  justify-content: center;
  margin-bottom: 12px;
  width: 72px;
}

.agro-mg-card--add__title {
  color: var(--agro-text);
  font-family: var(--agro-font-heading);
  font-size: var(--agro-font-size-h3);
  font-weight: 700;
  margin-bottom: 4px;
}

.agro-mg-card--add__sub {
  color: var(--agro-text-muted);
  font-family: var(--agro-font-body);
  font-size: var(--agro-font-size-sm);
  font-weight: 400;
}

/* ===== DRILL PANEL (K6) ===== */
.agro-mg-drill-backdrop {
  background: rgba(15, 30, 15, 0.62);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  inset: 0;
  opacity: 1;
  pointer-events: auto;
  position: fixed;
  transition: opacity 200ms ease;
  z-index: calc(var(--agro-z-modal) - 1);
}

.agro-mg-drill-backdrop.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.agro-mg-drill-panel {
  background: var(--agro-surface-card);
  box-shadow: -8px 0 32px rgba(26, 46, 26, 0.18);
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 100vw;
  overflow: hidden;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(0);
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
  width: 600px;
  z-index: var(--agro-z-modal);
}

.agro-mg-drill-panel.is-hidden {
  transform: translateX(100%);
  pointer-events: none;
}

.agro-mg-drill-panel__header {
  background: var(--agro-cream);
  border-bottom: 1px solid var(--agro-border);
  flex-shrink: 0;
  padding: var(--agro-space-lg);
}

.agro-mg-drill-panel__top {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.agro-mg-drill-panel__entity {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 12px;
  min-width: 0;
}

.agro-mg-drill-panel__avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--agro-primary-light), var(--agro-primary));
  border: 2px solid #fff;
  border-radius: var(--agro-radius-pill);
  box-shadow: var(--agro-shadow-sm);
  color: #fff;
  display: flex;
  flex-shrink: 0;
  font-family: var(--agro-font-heading);
  font-size: 18px;
  font-weight: 700;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.agro-mg-drill-panel__name {
  color: var(--agro-text);
  font-family: var(--agro-font-heading);
  font-size: var(--agro-font-size-h2);
  font-weight: 700;
}

.agro-mg-drill-panel__sub {
  color: var(--agro-text-muted);
  display: inline-flex;
  font-size: var(--agro-font-size-xs);
  gap: 8px;
  margin-top: 2px;
}

.agro-mg-drill-panel__close {
  align-items: center;
  background: rgba(0, 0, 0, 0.04);
  border: 0;
  border-radius: var(--agro-radius-pill);
  color: var(--agro-text);
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 22px;
  height: 44px;
  justify-content: center;
  line-height: 1;
  transition: background var(--agro-transition);
  width: 44px;
}

.agro-mg-drill-panel__close:hover {
  background: rgba(0, 0, 0, 0.10);
}

.agro-mg-drill-panel__tabs {
  background: var(--agro-cream);
  border-bottom: 1px solid var(--agro-border);
  display: flex;
  flex-shrink: 0;
  gap: 0;
  overflow-x: auto;
  padding: 0 var(--agro-space-lg);
}

.agro-mg-drill-panel__tab {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--agro-text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--agro-font-size-sm);
  font-weight: 600;
  padding: 14px 18px;
  transition: all var(--agro-transition);
  white-space: nowrap;
}

.agro-mg-drill-panel__tab:hover {
  color: var(--agro-text);
}

.agro-mg-drill-panel__tab.is-active {
  border-bottom-color: var(--agro-primary);
  color: var(--agro-primary-dark);
}

.agro-mg-drill-panel__content {
  flex: 1;
  overflow-y: auto;
  padding: var(--agro-space-lg);
}

.agro-mg-drill-panel__tab-content {
  display: none;
}

.agro-mg-drill-panel__tab-content.is-active {
  display: block;
}

.agro-mg-drill-panel__loading {
  color: var(--agro-text-muted);
  font-size: var(--agro-font-size-sm);
  padding: var(--agro-space-xl);
  text-align: center;
}

.agro-mg-drill-panel__empty {
  color: var(--agro-text-muted);
  font-size: var(--agro-font-size-sm);
  padding: var(--agro-space-xl);
  text-align: center;
}

/* Drill section */
.agro-mg-drill-section {
  margin-bottom: var(--agro-space-lg);
}

.agro-mg-drill-section__title {
  color: var(--agro-text-muted);
  font-family: var(--agro-font-body);
  font-size: var(--agro-font-size-sm);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0 0 var(--agro-space-sm) 0;
  text-transform: uppercase;
}

.agro-mg-drill-section__empty {
  color: var(--agro-text-muted);
  font-size: var(--agro-font-size-sm);
  font-style: italic;
  margin: 0;
  padding: var(--agro-space-md);
  text-align: center;
}

.agro-mg-drill-panel__error {
  background: rgba(198, 40, 40, 0.08);
  border: 1px solid rgba(198, 40, 40, 0.25);
  border-radius: var(--agro-radius);
  color: var(--agro-danger, #c62828);
  font-size: var(--agro-font-size-sm);
  margin: var(--agro-space-md) 0;
  padding: var(--agro-space-md);
  text-align: center;
}

/* Engagement tab */
.agro-mg-drill-engagement-totals {
  background: var(--agro-cream);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  display: grid;
  gap: var(--agro-space-sm);
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: var(--agro-space-md);
  padding: var(--agro-space-md);
}

.agro-mg-drill-eng-total {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.agro-mg-drill-eng-total .num {
  color: var(--agro-primary-dark);
  font-family: var(--agro-font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.agro-mg-drill-eng-total .lbl {
  color: var(--agro-text-muted);
  font-size: 11px;
  letter-spacing: 0.4px;
  margin-top: 4px;
  text-transform: uppercase;
}

.agro-mg-drill-engagement-chart {
  align-items: flex-end;
  background: var(--agro-cream);
  border-radius: var(--agro-radius);
  display: flex;
  gap: 2px;
  height: 70px;
  padding: 6px 8px;
}

.agro-mg-drill-eng-bar {
  background: var(--agro-primary);
  border-radius: 2px 2px 0 0;
  flex: 1 1 auto;
  min-height: 2px;
  transition: opacity var(--agro-transition);
}

.agro-mg-drill-eng-bar:hover {
  background: var(--agro-primary-dark);
  opacity: 0.85;
}

.agro-mg-drill-top-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.agro-mg-drill-top-posts > li {
  margin-bottom: var(--agro-space-sm);
}

.agro-mg-drill-top-post {
  background: #fff;
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  padding: var(--agro-space-sm);
}

.agro-mg-drill-top-post__text {
  color: var(--agro-text);
  font-size: var(--agro-font-size-sm);
  line-height: 1.4;
  margin: 0 0 6px 0;
}

.agro-mg-drill-top-post__meta {
  color: var(--agro-text-muted);
  display: flex;
  font-size: 12px;
  gap: 12px;
}

/* Network tab */
.agro-mg-drill-net-stat {
  align-items: center;
  background: var(--agro-cream);
  border-radius: var(--agro-radius);
  color: var(--agro-text);
  display: flex;
  font-size: var(--agro-font-size-sm);
  gap: 6px;
  margin: 0;
  padding: var(--agro-space-md);
}

.agro-mg-drill-net-stat .num {
  color: var(--agro-primary-dark);
  font-family: var(--agro-font-heading);
  font-size: 22px;
  font-weight: 700;
}

.agro-mg-drill-net-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.agro-mg-drill-net-list > li {
  margin-bottom: 6px;
}

.agro-mg-drill-net-item {
  background: #fff;
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  color: var(--agro-text);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--agro-space-sm) var(--agro-space-md);
  text-decoration: none;
  transition: all var(--agro-transition);
}

.agro-mg-drill-net-item:hover {
  border-color: var(--agro-primary);
  text-decoration: none;
  transform: translateX(2px);
}

.agro-mg-drill-net-item__name {
  color: var(--agro-text);
  font-size: var(--agro-font-size-sm);
  font-weight: 600;
}

.agro-mg-drill-net-item__sub {
  color: var(--agro-text-muted);
  font-size: 12px;
}

/* Health gauge */
.agro-mg-drill-health {
  align-items: center;
  background: var(--agro-cream);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  display: flex;
  gap: var(--agro-space-md);
  padding: var(--agro-space-md);
}

.agro-mg-drill-health__circle {
  flex-shrink: 0;
}

.agro-mg-drill-health__info {
  flex: 1;
}

.agro-mg-drill-health__label {
  color: var(--agro-text-muted);
  font-size: var(--agro-font-size-xs);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.agro-mg-drill-health__missing-label {
  color: var(--agro-text-secondary);
  font-size: var(--agro-font-size-sm);
  margin-bottom: 4px;
}

.agro-mg-drill-health__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.agro-mg-drill-health__chip {
  background: var(--agro-amber-50);
  border-radius: var(--agro-radius-pill);
  color: var(--agro-amber-700);
  font-size: var(--agro-font-size-xs);
  font-weight: 600;
  padding: 2px 8px;
}

.agro-mg-drill-health__full {
  color: var(--agro-primary-dark);
  font-size: var(--agro-font-size-sm);
  font-weight: 600;
}

/* Info grid */
.agro-mg-drill-info-grid {
  display: grid;
  gap: var(--agro-space-sm);
  grid-template-columns: 1fr 1fr;
}

.agro-mg-drill-info-row {
  background: var(--agro-cream);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--agro-space-sm);
}

.agro-mg-drill-info-row__label {
  color: var(--agro-text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.agro-mg-drill-info-row__value {
  color: var(--agro-text);
  font-size: var(--agro-font-size-sm);
  font-weight: 600;
}

.agro-mg-drill-info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.agro-mg-drill-info-chip {
  background: var(--agro-sage-100);
  border-radius: var(--agro-radius-pill);
  color: var(--agro-sage-700);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
}

/* Action list */
.agro-mg-drill-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.agro-mg-drill-actions li {
  margin: 0;
}

.agro-mg-drill-action {
  align-items: center;
  background: var(--agro-surface-card);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  color: var(--agro-text);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: var(--agro-font-size-sm);
  font-weight: 600;
  gap: 12px;
  padding: 14px var(--agro-space-md);
  text-align: left;
  text-decoration: none;
  transition: all var(--agro-transition);
  width: 100%;
}

.agro-mg-drill-action:hover {
  background: var(--agro-cream);
  border-color: var(--agro-primary);
  color: var(--agro-text);
}

.agro-mg-drill-action--danger {
  color: var(--agro-danger);
}

.agro-mg-drill-action--danger:hover {
  background: rgba(198, 40, 40, 0.04);
  border-color: var(--agro-danger);
  color: var(--agro-danger);
}

.agro-mg-drill-action__icon {
  align-items: center;
  background: var(--agro-primary-bg);
  border-radius: var(--agro-radius);
  color: var(--agro-primary-dark);
  display: flex;
  flex-shrink: 0;
  font-size: 16px;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.agro-mg-drill-action--danger .agro-mg-drill-action__icon {
  background: rgba(198, 40, 40, 0.08);
  color: var(--agro-danger);
}

.agro-mg-drill-action__label {
  flex: 1;
}

.agro-mg-drill-action__chevron {
  color: var(--agro-text-muted);
  font-size: 18px;
  margin-left: auto;
}

/* Mobile sheet for drill panel */
@media (max-width: 768px) {
  .agro-mg-drill-panel {
    height: 100vh;
    transform: translateY(0);
    transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
    width: 100vw;
  }
  .agro-mg-drill-panel.is-hidden {
    transform: translateY(100%);
  }
  .agro-mg-drill-info-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== WIZARD (K7) ===== */
.agro-mg-wizard-backdrop {
  background: rgba(15, 30, 15, 0.62);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  inset: 0;
  opacity: 1;
  pointer-events: auto;
  position: fixed;
  transition: opacity 200ms ease;
  z-index: calc(var(--agro-z-modal) - 1);
}

.agro-mg-wizard-backdrop.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.agro-mg-wizard {
  background: var(--agro-surface-card);
  box-shadow: -8px 0 32px rgba(26, 46, 26, 0.18);
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 100vw;
  overflow: hidden;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(0);
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
  width: 600px;
  z-index: var(--agro-z-modal);
}

.agro-mg-wizard.is-hidden {
  transform: translateX(100%);
  pointer-events: none;
}

.agro-mg-wizard__header {
  background: linear-gradient(135deg, var(--agro-cream), var(--agro-sage-50));
  border-bottom: 1px solid var(--agro-border);
  flex-shrink: 0;
  padding: var(--agro-space-lg);
}

.agro-mg-wizard__top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--agro-space-md);
}

.agro-mg-wizard__title {
  color: var(--agro-text);
  font-family: var(--agro-font-heading);
  font-size: var(--agro-font-size-h2);
  font-weight: 700;
}

.agro-mg-wizard__step-text {
  color: var(--agro-text-muted);
  font-size: var(--agro-font-size-sm);
  font-weight: 600;
  margin-top: 4px;
}

.agro-mg-wizard__progress {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(5, 1fr);
}

.agro-mg-wizard__progress-segment {
  background: var(--agro-border);
  border-radius: 2px;
  height: 4px;
  transition: background var(--agro-transition);
}

.agro-mg-wizard__progress-segment.is-done {
  background: var(--agro-primary);
}

.agro-mg-wizard__progress-segment.is-current {
  background: var(--agro-primary-light);
}

/* Form */
.agro-mg-wizard__form {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.agro-mg-wizard__step {
  flex: 1;
  overflow-y: auto;
  padding: var(--agro-space-lg);
}

.agro-mg-wizard__step[hidden] {
  display: none !important;
}

.agro-mg-wizard__step-title {
  color: var(--agro-text);
  font-family: var(--agro-font-heading);
  font-size: var(--agro-font-size-h3);
  font-weight: 700;
  margin: 0 0 var(--agro-space-sm) 0;
}

.agro-mg-wizard__step-hint {
  color: var(--agro-text-muted);
  font-size: var(--agro-font-size-sm);
  margin: 0 0 var(--agro-space-lg) 0;
}

/* Type cards */
.agro-mg-wizard__type-cards {
  display: grid;
  gap: var(--agro-space-md);
  grid-template-columns: 1fr 1fr;
  margin-bottom: var(--agro-space-lg);
}

.agro-mg-wizard__type-card {
  align-items: stretch;
  background: var(--agro-cream);
  border: 2px solid var(--agro-border);
  border-radius: var(--agro-radius-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-family: inherit;
  justify-content: flex-start;
  min-height: 220px;
  padding: var(--agro-space-lg) var(--agro-space-md);
  text-align: center;
  transition: all var(--agro-transition);
  width: 100%;
}

.agro-mg-wizard__type-card:hover {
  border-color: var(--agro-primary);
  box-shadow: var(--agro-shadow-card-hover);
  transform: translateY(-2px);
}

.agro-mg-wizard__type-card.is-selected {
  background: var(--agro-primary-bg);
  border-color: var(--agro-primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.agro-mg-wizard__type-card-icon {
  align-items: center;
  background: var(--agro-primary);
  border-radius: var(--agro-radius-pill);
  color: #fff;
  display: flex;
  flex-shrink: 0;
  font-size: 32px;
  height: 72px;
  justify-content: center;
  margin: 0 auto var(--agro-space-md);
  width: 72px;
}

.agro-mg-wizard__type-card-icon svg {
  height: 36px;
  width: 36px;
  display: block;
}

.agro-mg-wizard__type-card--firma .agro-mg-wizard__type-card-icon {
  background: var(--agro-soil-700);
}

.agro-mg-wizard__type-card-title {
  color: var(--agro-text);
  font-family: var(--agro-font-heading);
  font-size: var(--agro-font-size-h3);
  font-weight: 700;
  margin: 0 0 6px 0;
  width: 100%;
}

.agro-mg-wizard__type-card-desc {
  color: var(--agro-text-muted);
  font-size: var(--agro-font-size-sm);
  line-height: 1.5;
  margin: 0;
  width: 100%;
}

.agro-mg-wizard__info-box {
  background: var(--agro-amber-50);
  border-left: 3px solid var(--agro-wheat);
  border-radius: var(--agro-radius);
  margin-top: var(--agro-space-md);
  padding: var(--agro-space-md);
}

.agro-mg-wizard__info-box strong {
  color: var(--agro-soil-700);
  display: block;
  margin-bottom: 4px;
}

.agro-mg-wizard__info-box p {
  color: var(--agro-text-secondary);
  font-size: var(--agro-font-size-sm);
  margin: 0;
}

/* Form fields */
.agro-mg-wizard__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--agro-space-md);
  position: relative;
}

.agro-mg-wizard__field label {
  color: var(--agro-text);
  font-size: var(--agro-font-size-sm);
  font-weight: 600;
}

.agro-mg-wizard__field input[type="text"],
.agro-mg-wizard__field input[type="number"],
.agro-mg-wizard__field textarea,
.agro-mg-wizard__field select {
  background: var(--agro-surface-input);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  color: var(--agro-text);
  font-family: inherit;
  font-size: var(--agro-font-size);
  padding: 10px 12px;
  transition: border-color var(--agro-transition);
  width: 100%;
}

.agro-mg-wizard__field input:focus,
.agro-mg-wizard__field textarea:focus,
.agro-mg-wizard__field select:focus {
  border-color: var(--agro-primary);
  box-shadow: var(--agro-focus-ring);
  outline: none;
}

.agro-mg-wizard__field textarea {
  min-height: 80px;
  resize: vertical;
}

.agro-mg-wizard__field-error {
  color: var(--agro-danger);
  font-size: var(--agro-font-size-xs);
  font-weight: 600;
}

.agro-mg-wizard__field-hint {
  color: var(--agro-text-muted);
  font-size: var(--agro-font-size-xs);
}

.agro-mg-wizard__field input[aria-invalid="true"] {
  border-color: var(--agro-danger);
}

/* Autocomplete dropdown — uočljiviji accent stil
   - 2px primary border + drop shadow lg umesto subtle 1px
   - Slide-in animacija da privuče pažnju
   - 6px gap od input-a da bude jasno razdvojen */
.agro-mg-wizard__autocomplete {
  background: #fff;
  border: 2px solid var(--agro-primary);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  list-style: none;
  margin: 6px 0 0 0;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  position: absolute;
  top: 100%;
  width: 100%;
  z-index: 10;
  animation: agroAutocompleteSlideIn 180ms ease-out;
}

@keyframes agroAutocompleteSlideIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.agro-mg-wizard__autocomplete[hidden] {
  display: none;
}

/* Header iznad rezultata — kontekst "Predložene opštine" */
.agro-mg-wizard__autocomplete-header {
  align-items: center;
  color: var(--agro-text-muted);
  display: flex;
  font-size: 11px;
  font-weight: 600;
  gap: 6px;
  letter-spacing: 0.04em;
  padding: 6px 10px 4px;
  text-transform: uppercase;
}

.agro-mg-wizard__autocomplete-header svg {
  color: var(--agro-primary);
  flex-shrink: 0;
}

.agro-mg-wizard__autocomplete li {
  align-items: flex-start;
  border-left: 3px solid transparent;
  border-radius: var(--agro-radius-sm);
  cursor: pointer;
  display: flex;
  font-size: 14px;
  gap: 10px;
  padding: 10px 12px;
  transition: background var(--agro-transition), border-left-color var(--agro-transition), padding-left var(--agro-transition);
}

.agro-mg-wizard__autocomplete li:hover,
.agro-mg-wizard__autocomplete li.is-active {
  background: var(--agro-primary-bg, #f0f7f0);
  border-left-color: var(--agro-primary);
  padding-left: 14px;
}

.agro-mg-wizard__autocomplete li:hover .agro-mg-wizard__autocomplete-name,
.agro-mg-wizard__autocomplete li.is-active .agro-mg-wizard__autocomplete-name {
  color: var(--agro-primary-dark, #1b5e20);
  font-weight: 600;
}

/* Pin ikonica levo (vizuelno označava lokaciju) */
.agro-mg-wizard__autocomplete-pin {
  color: var(--agro-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.agro-mg-wizard__autocomplete-content {
  flex: 1;
  min-width: 0;
}

.agro-mg-wizard__autocomplete-name {
  color: var(--agro-text);
  font-weight: 500;
  line-height: 1.3;
  transition: color var(--agro-transition);
}

.agro-mg-wizard__autocomplete li small {
  color: var(--agro-text-muted);
  display: block;
  font-size: 11.5px;
  margin-top: 2px;
}

/* Upload */
.agro-mg-wizard__upload-grid {
  display: grid;
  gap: var(--agro-space-md);
  grid-template-columns: 1fr 1fr;
  margin-bottom: var(--agro-space-md);
}

.agro-mg-wizard__upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agro-mg-wizard__upload input[type="file"][hidden] {
  display: none !important;
}

.agro-mg-wizard__upload-preview {
  cursor: pointer;
  position: relative;
}

.agro-mg-wizard__upload-preview:hover {
  border-color: var(--agro-primary);
}

.agro-mg-wizard__upload-preview.has-image .agro-mg-wizard__upload-icon {
  display: none;
}

.agro-mg-wizard__upload-label {
  color: var(--agro-text-muted);
  font-size: var(--agro-font-size-xs);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.agro-mg-wizard__upload-preview {
  align-items: center;
  background: var(--agro-cream);
  background-position: center;
  background-size: cover;
  border: 2px dashed var(--agro-border-strong);
  color: var(--agro-text-muted);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  justify-content: center;
  padding: 0;
  transition: border-color var(--agro-transition), background var(--agro-transition);
}

.agro-mg-wizard__upload-preview:hover,
.agro-mg-wizard__upload-preview:focus-visible {
  background: var(--agro-sage-50);
  border-color: var(--agro-primary);
  color: var(--agro-primary);
  outline: none;
}

.agro-mg-wizard__upload-preview:focus-visible {
  box-shadow: var(--agro-focus-ring);
}

.agro-mg-wizard__upload-preview--avatar {
  border-radius: var(--agro-radius-pill);
  height: 112px;
  margin: 0 auto;
  width: 112px;
}

.agro-mg-wizard__upload-preview--cover {
  aspect-ratio: 16 / 9;
  border-radius: var(--agro-radius);
  width: 100%;
}

.agro-mg-wizard__upload-icon {
  align-items: center;
  color: inherit;
  display: inline-flex;
  font-size: 28px;
  justify-content: center;
}

.agro-mg-wizard__upload-icon svg {
  display: block;
  height: 32px;
  width: 32px;
}

.agro-mg-wizard__upload-btn {
  background: var(--agro-cream);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  color: var(--agro-text-secondary);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--agro-font-size-sm);
  font-weight: 600;
  padding: 8px;
}

.agro-mg-wizard__upload-btn:hover {
  background: var(--agro-sage-100);
}

.agro-mg-wizard__skip-note {
  color: var(--agro-text-muted);
  font-size: var(--agro-font-size-xs);
  font-style: italic;
  margin: 0;
  text-align: center;
}

/* Summary */
.agro-mg-wizard__summary {
  background: var(--agro-cream);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  padding: var(--agro-space-md);
}

.agro-mg-wizard__summary-empty {
  color: var(--agro-text-muted);
  font-size: var(--agro-font-size-sm);
  font-style: italic;
  margin: 0;
  text-align: center;
}

.agro-mg-wizard__summary-row {
  border-bottom: 1px dashed var(--agro-border);
  display: flex;
  font-size: var(--agro-font-size-sm);
  justify-content: space-between;
  padding: 8px 0;
}

.agro-mg-wizard__summary-row:last-child {
  border-bottom: 0;
}

.agro-mg-wizard__summary-row strong {
  color: var(--agro-text-muted);
  font-weight: 600;
}

.agro-mg-wizard__disclaimer {
  color: var(--agro-text-muted);
  font-size: var(--agro-font-size-xs);
  font-style: italic;
  margin: var(--agro-space-md) 0;
  text-align: center;
}

.agro-mg-wizard__submit-error {
  background: rgba(198, 40, 40, 0.06);
  border: 1px solid var(--agro-danger);
  border-radius: var(--agro-radius);
  color: var(--agro-danger);
  font-size: var(--agro-font-size-sm);
  font-weight: 600;
  padding: 12px;
}

/* Footer */
.agro-mg-wizard__footer {
  background: var(--agro-cream);
  border-top: 1px solid var(--agro-border);
  flex-shrink: 0;
  padding: var(--agro-space-md) var(--agro-space-lg);
}

.agro-mg-wizard__nav-default {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.agro-mg-wizard__nav-default[hidden] {
  display: none !important;
}

.agro-mg-wizard__nav {
  display: flex;
  gap: 8px;
}

/* Inline cancel confirm bar */
.agro-mg-wizard__cancel-confirm {
  align-items: center;
  background: var(--agro-warning-bg, #fff8e1);
  border: 1px solid var(--agro-warning, #f9a825);
  border-radius: var(--agro-radius);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 16px;
}

.agro-mg-wizard__cancel-confirm[hidden] {
  display: none !important;
}

.agro-mg-wizard__cancel-confirm-msg {
  align-items: center;
  color: var(--agro-text);
  display: flex;
  flex: 1 1 220px;
  font-size: var(--agro-font-size-sm);
  font-weight: 600;
  gap: 8px;
  min-width: 0;
}

.agro-mg-wizard__cancel-confirm-icon {
  color: var(--agro-warning, #c87600);
  font-size: 18px;
  line-height: 1;
}

.agro-mg-wizard__cancel-confirm-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.agro-mg-wizard__btn-danger {
  background: var(--agro-danger, #c62828);
  border: 0;
  border-radius: var(--agro-radius);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--agro-font-size-sm);
  font-weight: 600;
  padding: 10px 18px;
  transition: all var(--agro-transition);
}

.agro-mg-wizard__btn-danger:hover {
  background: var(--agro-danger-dark, #a01e1e);
  transform: translateY(-1px);
}

.agro-mg-wizard__btn-danger:focus-visible {
  outline: 2px solid var(--agro-danger, #c62828);
  outline-offset: 2px;
}

.agro-mg-wizard__btn-ghost {
  background: transparent;
  border: 0;
  border-radius: var(--agro-radius);
  color: var(--agro-text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--agro-font-size-sm);
  font-weight: 600;
  padding: 8px 14px;
  transition: background var(--agro-transition);
}

.agro-mg-wizard__btn-ghost:hover {
  background: var(--agro-sage-100);
  color: var(--agro-text-secondary);
}

.agro-mg-wizard__btn-secondary {
  background: transparent;
  border: 1.5px solid var(--agro-primary);
  border-radius: var(--agro-radius);
  color: var(--agro-primary-dark);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--agro-font-size-sm);
  font-weight: 600;
  padding: 10px 18px;
  transition: all var(--agro-transition);
}

.agro-mg-wizard__btn-secondary:hover:not(:disabled) {
  background: var(--agro-primary-bg);
}

.agro-mg-wizard__btn-secondary:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.agro-mg-wizard__btn-primary {
  background: var(--agro-primary);
  border: 0;
  border-radius: var(--agro-radius);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--agro-font-size-sm);
  font-weight: 600;
  padding: 10px 18px;
  transition: all var(--agro-transition);
}

.agro-mg-wizard__btn-primary:hover:not(:disabled) {
  background: var(--agro-primary-dark);
  transform: translateY(-1px);
}

.agro-mg-wizard__btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Confetti (K7 deklaracija, JS K8 trigger) */
.agro-mg-confetti-container {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9001;
  overflow: hidden;
}

.agro-mg-confetti-piece {
  animation: agro-mg-confetti-fall 1.4s ease-out forwards;
  position: absolute;
  top: -10px;
  width: 8px;
  height: 14px;
}

@keyframes agro-mg-confetti-fall {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Mobile sheet for wizard */
@media (max-width: 768px) {
  .agro-mg-wizard {
    height: 100vh;
    transform: translateY(0);
    width: 100vw;
  }
  .agro-mg-wizard.is-hidden {
    transform: translateY(100%);
  }
  .agro-mg-wizard__header {
    padding: var(--agro-space-md);
  }
  .agro-mg-wizard__step {
    padding: var(--agro-space-md);
  }
  .agro-mg-wizard__footer {
    padding: var(--agro-space-sm) var(--agro-space-md);
  }
  .agro-mg-wizard__type-cards {
    grid-template-columns: 1fr;
  }
  .agro-mg-wizard__upload-grid {
    grid-template-columns: 1fr;
  }
  .agro-mg-wizard__nav-default {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .agro-mg-wizard__nav {
    flex: 0 1 auto;
    gap: 6px;
    justify-content: flex-end;
  }
  .agro-mg-wizard__btn-ghost {
    padding: 8px 10px;
  }
  .agro-mg-wizard__btn-secondary,
  .agro-mg-wizard__btn-primary {
    padding: 10px 12px;
  }
  .agro-mg-wizard__cancel-confirm {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    /* FIX: base stil ima justify-content: space-between sto na column-direction
       gura tekst gore a dugmad dole — sa velikim praznim prostorom u sredini
       kad parent footer/sheet odredjuje visinu. Reset na flex-start da elementi
       zauzmu samo onoliko visine koliko im je potrebno. */
    justify-content: flex-start;
    padding: 10px 12px;
  }
  .agro-mg-wizard__cancel-confirm-msg {
    flex: 0 0 auto;
  }
  .agro-mg-wizard__cancel-confirm-actions {
    width: 100%;
    flex: 0 0 auto;
  }
  .agro-mg-wizard__cancel-confirm-actions button {
    flex: 1;
  }
}

/* ============================================================================
 * KC-DRAWER REDIZAJN — Today kartica + Entity Drawer + List row + responsive
 * Spec: docs/PRD_KOMANDNI_CENTAR_DRAWER.md §7.2
 * ============================================================================ */

/* ===== Drawer trigger CTA u hero-u (zameni postojeci +Add) ===== */
.agro-mg-dashboard__btn-primary--drawer {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

/* Hero meta (datum + sezona pill) ispod subtitle-a — kc-drawer redizajn 2026-05-05 */
.agro-mg-dashboard__hero-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.agro-mg-dashboard__hero-meta .agro-mg-dashboard__hero-date-text {
  color: var(--agro-text-secondary);
  font-size: var(--agro-font-size-sm);
  font-weight: 600;
}

.agro-mg-dashboard__btn-primary-icon {
  font-size: 18px;
  line-height: 1;
}

.agro-mg-dashboard__btn-primary-count {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--agro-radius-pill);
  color: var(--agro-text-on-accent, #fff);
  font-size: 12px;
  font-weight: 700;
  margin-left: 2px;
  min-width: 22px;
  padding: 1px 7px;
  text-align: center;
}

/* ===== TODAY kartica (zamena za season-coach 60/40 grid) ===== */
.agro-mg-today {
  background: var(--agro-surface-card);
  border: 1px solid var(--agro-border);
  border-left: 3px solid var(--agro-wheat);
  border-radius: var(--agro-radius-card);
  box-shadow: var(--agro-shadow-card);
  margin-top: var(--agro-space-md);
  padding: var(--agro-space-lg);
  position: relative;
}

.agro-mg-today__header {
  margin-bottom: var(--agro-space-md);
}

.agro-mg-today__title {
  align-items: center;
  color: var(--agro-text);
  display: flex;
  font-family: var(--agro-font-heading);
  font-size: var(--agro-font-size-h3);
  font-weight: 700;
  gap: 10px;
  margin: 0;
}

.agro-mg-today__icon {
  align-items: center;
  background: var(--agro-amber-50);
  border-radius: var(--agro-radius-sm);
  color: var(--agro-amber-700);
  display: inline-flex;
  font-size: 18px;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.agro-mg-today__season {
  background: var(--agro-amber-50);
  border-radius: var(--agro-radius);
  padding: var(--agro-space-md);
}

.agro-mg-today__season-text {
  color: var(--agro-text-secondary);
  font-size: var(--agro-font-size-sm);
  line-height: 1.5;
  margin: 0;
}

.agro-mg-today__divider {
  background: var(--agro-border);
  height: 1px;
  margin: var(--agro-space-md) 0;
}

.agro-mg-today__coach {
  display: flex;
  flex-direction: column;
  gap: var(--agro-space-sm);
}

.agro-mg-today__coach-title {
  align-items: center;
  color: var(--agro-text-muted);
  display: flex;
  font-family: var(--agro-font-body);
  font-size: var(--agro-font-size-sm);
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0.5px;
  margin: 0 0 4px 0;
  text-transform: uppercase;
}

.agro-mg-today__coach-title-icon {
  font-size: 16px;
}

.agro-mg-today__coach-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.agro-mg-today__coach-item {
  margin: 0;
}

.agro-mg-today__coach-btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--agro-radius);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  gap: 12px;
  padding: 10px 12px;
  text-align: left;
  transition: background var(--agro-transition);
  width: 100%;
}

.agro-mg-today__coach-btn:hover {
  background: var(--agro-sage-50);
}

.agro-mg-today__coach-num {
  align-items: center;
  background: var(--agro-primary-bg);
  border-radius: var(--agro-radius-pill);
  color: var(--agro-primary-dark);
  display: inline-flex;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.agro-mg-today__coach-text {
  flex: 1;
  min-width: 0;
}

.agro-mg-today__coach-step-title {
  color: var(--agro-text);
  display: block;
  font-size: var(--agro-font-size-sm);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
}

.agro-mg-today__coach-step-why {
  color: var(--agro-text-muted);
  font-size: var(--agro-font-size-xs);
}

.agro-mg-today__coach-action {
  background: transparent;
  border-radius: var(--agro-radius-sm);
  color: var(--agro-primary-dark);
  flex-shrink: 0;
  font-size: var(--agro-font-size-xs);
  font-weight: 700;
  padding: 4px 10px;
  transition: all var(--agro-transition);
}

.agro-mg-today__coach-btn:hover .agro-mg-today__coach-action {
  background: var(--agro-primary);
  color: #fff;
}

/* ===== ENTITY DRAWER ===== */
.agro-mg-drawer-backdrop {
  background: rgba(15, 30, 15, 0.62);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  inset: 0;
  opacity: 1;
  pointer-events: auto;
  position: fixed;
  transition: opacity 200ms ease;
  z-index: calc(var(--agro-z-modal) - 1);
}

.agro-mg-drawer-backdrop.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.agro-mg-drawer {
  background: var(--agro-surface-card);
  box-shadow: -8px 0 32px rgba(26, 46, 26, 0.18);
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 100vw;
  overflow: hidden;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(0);
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
  width: 360px;
  z-index: var(--agro-z-modal);
}

.agro-mg-drawer.is-hidden {
  transform: translateX(100%);
  pointer-events: none;
}

.agro-mg-drawer__header {
  align-items: flex-start;
  background: var(--agro-cream);
  border-bottom: 1px solid var(--agro-border);
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  justify-content: space-between;
  padding: var(--agro-space-md) var(--agro-space-lg);
}

.agro-mg-drawer__header-text {
  flex: 1;
  min-width: 0;
}

.agro-mg-drawer__title {
  color: var(--agro-text);
  font-family: var(--agro-font-heading);
  font-size: var(--agro-font-size-h3);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.agro-mg-drawer__subtitle {
  color: var(--agro-text-muted);
  font-size: var(--agro-font-size-xs);
  margin: 2px 0 0 0;
}

.agro-mg-drawer__header-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}

.agro-mg-drawer__add-btn {
  align-items: center;
  background: var(--agro-primary);
  border: 0;
  border-radius: var(--agro-radius-pill);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  line-height: 1;
  transition: background var(--agro-transition);
  width: 36px;
}

.agro-mg-drawer__add-btn:hover {
  background: var(--agro-primary-dark);
}

.agro-mg-drawer__close-btn {
  align-items: center;
  background: rgba(0, 0, 0, 0.04);
  border: 0;
  border-radius: var(--agro-radius-pill);
  color: var(--agro-text);
  cursor: pointer;
  display: inline-flex;
  font-size: 22px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  transition: background var(--agro-transition);
  width: 36px;
}

.agro-mg-drawer__close-btn:hover {
  background: rgba(0, 0, 0, 0.10);
}

.agro-mg-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--agro-space-md);
}

.agro-mg-drawer__empty {
  color: var(--agro-text-muted);
  font-size: var(--agro-font-size-sm);
  padding: var(--agro-space-lg);
  text-align: center;
}

.agro-mg-drawer__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Add slot u footer drawer-a */
.agro-mg-drawer__add-slot {
  align-items: center;
  background: var(--agro-surface-alt);
  border: 2px dashed var(--agro-border-strong);
  border-radius: var(--agro-radius);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  gap: 12px;
  margin-top: var(--agro-space-md);
  padding: var(--agro-space-md);
  text-align: left;
  transition: all var(--agro-transition);
  width: 100%;
}

.agro-mg-drawer__add-slot:hover {
  background: var(--agro-cream);
  border-color: var(--agro-primary);
}

.agro-mg-drawer__add-slot-icon {
  align-items: center;
  background: var(--agro-primary-bg);
  border: 2px dashed var(--agro-primary-light);
  border-radius: var(--agro-radius-pill);
  color: var(--agro-primary);
  display: inline-flex;
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 300;
  height: 44px;
  justify-content: center;
  line-height: 1;
  width: 44px;
}

.agro-mg-drawer__add-slot-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.agro-mg-drawer__add-slot-text strong {
  color: var(--agro-text);
  font-family: var(--agro-font-heading);
  font-size: var(--agro-font-size-sm);
  font-weight: 700;
}

.agro-mg-drawer__add-slot-text small {
  color: var(--agro-text-muted);
  font-size: var(--agro-font-size-xs);
  margin-top: 2px;
}

.agro-mg-drawer__limit-hint {
  background: var(--agro-amber-50);
  border-left: 3px solid var(--agro-wheat);
  border-radius: var(--agro-radius);
  color: var(--agro-text-secondary);
  font-size: var(--agro-font-size-xs);
  line-height: 1.5;
  margin-top: var(--agro-space-md);
  padding: var(--agro-space-md);
}

/* ===== LIST ROW (.agro-mg-row) ===== */
.agro-mg-row {
  margin: 0;
}

.agro-mg-row__btn {
  align-items: center;
  background: var(--agro-surface-card);
  border: 1px solid var(--agro-border);
  border-radius: var(--agro-radius);
  color: var(--agro-text);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  gap: 12px;
  padding: 10px 12px;
  text-align: left;
  transition: all var(--agro-transition);
  width: 100%;
}

.agro-mg-row__btn:hover {
  background: var(--agro-sage-50);
  border-color: var(--agro-primary-light);
  transform: translateX(2px);
}

.agro-mg-row--current .agro-mg-row__btn {
  background: var(--agro-primary-bg);
  border-color: var(--agro-primary-light);
  border-left: 3px solid var(--agro-primary);
  padding-left: 9px;
}

.agro-mg-row--inactive {
  opacity: 0.65;
}

.agro-mg-row__avatar {
  align-items: center;
  background-color: var(--agro-primary);
  background-position: center;
  background-size: cover;
  border-radius: var(--agro-radius-pill);
  color: #fff;
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--agro-font-heading);
  font-size: 16px;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.agro-mg-row__avatar--firma {
  background-color: var(--agro-soil-700);
}

.agro-mg-row__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.agro-mg-row__name {
  color: var(--agro-text);
  font-family: var(--agro-font-heading);
  font-size: var(--agro-font-size-sm);
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agro-mg-row__meta {
  align-items: center;
  color: var(--agro-text-muted);
  display: inline-flex;
  flex-wrap: wrap;
  font-size: var(--agro-font-size-xs);
  gap: 4px;
}

.agro-mg-row__sep {
  color: var(--agro-text-muted);
  opacity: 0.5;
}

.agro-mg-row__current-badge {
  align-items: center;
  color: var(--agro-primary);
  display: inline-flex;
  font-weight: 700;
  gap: 3px;
}

.agro-mg-row__inactive-badge {
  background: var(--agro-text-muted);
  border-radius: var(--agro-radius-sm);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 1px 5px;
  text-transform: uppercase;
}

.agro-mg-row__kpi {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-width: 50px;
}

.agro-mg-row__kpi-value {
  color: var(--agro-text);
  font-family: var(--agro-font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.agro-mg-row__kpi-label {
  color: var(--agro-text-muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 3px;
  text-transform: uppercase;
}

.agro-mg-row__chevron {
  color: var(--agro-text-muted);
  flex-shrink: 0;
  font-size: 20px;
  margin-left: 2px;
}

/* ===== Z-INDEX layering — drill panel iznad drawer-a ===== */
.agro-mg-drill-panel {
  z-index: calc(var(--agro-z-modal) + 1);
}

.agro-mg-drill-backdrop {
  z-index: var(--agro-z-modal);
}

/* ===== Touch target ≥44×44 (WCAG 2.1 AA SC 2.5.5) ===== */
@media (hover: none) and (pointer: coarse) {
  .agro-mg-drawer__add-btn,
  .agro-mg-drawer__close-btn {
    height: 44px;
    width: 44px;
  }
}

/* ===== Tablet (768-1100px) — drawer 320px da main ima više daha ===== */
@media (min-width: 769px) and (max-width: 1100px) {
  .agro-mg-drawer {
    width: 320px;
  }
}

/* ===== Mobile bottom-sheet (≤768px) ===== */
@media (max-width: 768px) {
  .agro-mg-drawer {
    bottom: 0;
    height: 90vh;
    max-height: 90vh;
    right: 0;
    top: auto;
    transform: translateY(0);
    transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
    width: 100vw;
    border-radius: var(--agro-radius-card) var(--agro-radius-card) 0 0;
  }
  .agro-mg-drawer.is-hidden {
    transform: translateY(100%);
  }
  .agro-mg-drawer__header {
    padding: var(--agro-space-sm) var(--agro-space-md);
  }
  .agro-mg-drawer__add-btn,
  .agro-mg-drawer__close-btn {
    height: 44px;
    width: 44px;
  }
  /* Drawer trigger CTA full-width na mobile */
  .agro-mg-dashboard__btn-primary--drawer {
    width: 100%;
    justify-content: center;
  }
  /* Today kartica padding kompaktovan */
  .agro-mg-today {
    padding: var(--agro-space-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  .agro-mg-dashboard__overview-tile,
  .agro-mg-dashboard__btn-primary,
  .agro-mg-dashboard__map-pin,
  .agro-mg-dashboard__coach-item,
  .agro-mg-dashboard__tile-progress-fill,
  .agro-mg-card,
  .agro-mg-card__btn-open,
  .agro-mg-card__btn-secondary,
  .agro-mg-card--add,
  .agro-mg-drill-panel,
  .agro-mg-drill-backdrop,
  .agro-mg-drill-panel__close,
  .agro-mg-drill-action,
  .agro-mg-wizard,
  .agro-mg-wizard__type-card,
  .agro-mg-wizard__btn-primary,
  .agro-mg-wizard__progress-segment,
  /* kc-drawer redizajn: drawer + today + row */
  .agro-mg-drawer,
  .agro-mg-drawer-backdrop,
  .agro-mg-drawer__add-btn,
  .agro-mg-drawer__close-btn,
  .agro-mg-drawer__add-slot,
  .agro-mg-row__btn,
  .agro-mg-today__coach-btn,
  .agro-mg-today__coach-action,
  .agro-mg-dashboard__btn-primary--drawer {
    transition: none !important;
  }
  .agro-mg-dashboard__overview-tile:hover,
  .agro-mg-dashboard__btn-primary:hover,
  .agro-mg-dashboard__map-pin:hover,
  .agro-mg-card:hover,
  .agro-mg-card--add:hover,
  .agro-mg-wizard__type-card:hover,
  .agro-mg-wizard__btn-primary:hover,
  /* kc-drawer redizajn */
  .agro-mg-row__btn:hover,
  .agro-mg-drawer__add-btn:hover,
  .agro-mg-drawer__add-slot:hover {
    transform: none !important;
  }
  .agro-mg-confetti-piece {
    animation: none !important;
    display: none !important;
  }
}
