/* Farm Flow v0.9.23 – Superadmin farm management */

.ff923-feature-hidden,
.ff923-superadmin-only.hidden {
  display: none !important;
}

.ff923-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border-radius: 27px;
  background: linear-gradient(135deg, #173c58 0%, #244873 58%, #395d93 100%);
  color: #fff;
  box-shadow: 0 18px 44px rgba(23, 60, 88, .18);
}

.ff923-hero .eyebrow,
.ff923-hero h2,
.ff923-hero p {
  color: #fff !important;
}

.ff923-hero h2 {
  max-width: 800px;
  margin: 4px 0 9px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1;
  letter-spacing: -.04em;
}

.ff923-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(239, 246, 252, .9) !important;
}

.ff923-hero-shield {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 25px;
  background: rgba(255,255,255,.1);
  font-size: 44px;
}

.ff923-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin: 16px 0;
}

.ff923-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  padding: 17px;
  border: 1px solid #d7e3ed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20,48,68,.055);
}

.ff923-metric small {
  display: block;
  color: #668197;
  font-weight: 800;
}

.ff923-metric strong {
  display: block;
  margin-top: 5px;
  color: #173c58;
  font-size: 28px;
}

.ff923-metric > span {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: #eaf2f8;
  font-size: 21px;
}

.ff923-inactive-warning {
  margin-bottom: 16px;
  padding: 15px 17px;
  border: 1px solid #e6b4a9;
  border-radius: 17px;
  background: #fff2ef;
  color: #84382d;
}

.ff923-farm-list {
  display: grid;
  gap: 17px;
}

.ff923-farm-card {
  overflow: hidden;
  border: 1px solid #d6e3ed;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(20, 48, 68, .075);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.ff923-farm-card.is-inactive {
  border-color: #e3b9b0;
  box-shadow: 0 14px 34px rgba(126, 50, 43, .07);
}

.ff923-farm-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 22px 15px;
}

.ff923-farm-title {
  display: flex;
  min-width: 0;
  gap: 14px;
}

.ff923-farm-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border-radius: 15px;
  background: linear-gradient(135deg, #173c58, #39689a);
  color: #fff;
  font-size: 21px;
  font-weight: 950;
}

.ff923-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ff923-title-line h3 {
  margin: 0;
  color: #173c58;
  font-size: 23px;
}

.ff923-farm-title p {
  margin: 5px 0 0;
  color: #657e91;
}

.ff923-current,
.ff923-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
}

.ff923-current {
  background: #eaf2fb;
  color: #28547d;
}

.ff923-status.is-active {
  background: #e5f7ed;
  color: #176742;
}

.ff923-status.is-inactive {
  background: #fff0ed;
  color: #a13f32;
}

.ff923-farm-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 16px;
}

.ff923-farm-facts span {
  padding: 6px 9px;
  border: 1px solid #dbe6ef;
  border-radius: 999px;
  background: #f7fafe;
  color: #61798b;
  font-size: 11px;
}

.ff923-status-box {
  margin: 0 22px;
  padding: 15px;
  border: 1px solid #d8e4ed;
  border-radius: 17px;
  background: #f7fbfe;
}

.ff923-status-box.is-inactive {
  border-color: #ecc1b8;
  background: #fff6f4;
}

.ff923-master-switch {
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
}

.ff923-master-switch > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ff923-switch-track {
  flex: 0 0 auto;
  position: relative;
  width: 49px;
  height: 28px;
  border-radius: 999px;
  background: #bdcbd5;
  transition: background .18s ease;
}

.ff923-switch-track span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(20,48,68,.2);
  transition: transform .18s ease;
}

.ff923-master-switch > input:checked + .ff923-switch-track {
  background: #39ba7d;
}

.ff923-master-switch > input:checked + .ff923-switch-track span {
  transform: translateX(21px);
}

.ff923-master-switch strong,
.ff923-master-switch small {
  display: block;
}

.ff923-master-switch strong {
  color: #173c58;
}

.ff923-master-switch small {
  margin-top: 3px;
  color: #687f91;
}

.ff923-module-section {
  padding: 20px 22px;
}

.ff923-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.ff923-section-title small,
.ff923-section-title strong {
  display: block;
}

.ff923-section-title small {
  color: #667f92;
  font-weight: 850;
}

.ff923-section-title strong {
  color: #173c58;
  font-size: 19px;
}

.ff923-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ff923-feature {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid #d6e3ed;
  border-radius: 17px;
  background: #f7fafe;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, opacity .18s ease;
}

.ff923-feature.is-enabled {
  border-color: #afd6c3;
  background: #f0faf5;
}

.ff923-feature.is-disabled {
  opacity: .68;
  background: #f7f8f9;
}

.ff923-feature > input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.ff923-feature-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: #fff;
  font-size: 21px;
  box-shadow: 0 6px 15px rgba(20,48,68,.07);
}

.ff923-feature-copy {
  min-width: 0;
}

.ff923-feature-copy strong,
.ff923-feature-copy small {
  display: block;
}

.ff923-feature-copy strong {
  color: #173c58;
}

.ff923-feature-copy small {
  margin-top: 4px;
  color: #6c8496;
  line-height: 1.35;
}

.ff923-feature-state {
  position: relative;
  z-index: 1;
  padding: 6px 8px;
  border-radius: 999px;
  background: #dfe7ed;
  color: #5d7180;
  font-size: 10px;
  font-weight: 950;
}

.ff923-feature.is-enabled .ff923-feature-state {
  background: #cbefdc;
  color: #176742;
}

.ff923-note {
  display: block;
  padding: 0 22px 20px;
  color: #173c58;
  font-weight: 850;
}

.ff923-note textarea {
  width: 100%;
  margin-top: 7px;
  resize: vertical;
}

.ff923-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 14px 22px;
  border-top: 1px solid #dce6ee;
  background: #f8fbfd;
}

.ff923-card-footer small {
  margin-right: auto;
  color: #728899;
}

@media (max-width: 1000px) {
  .ff923-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ff923-hero,
  .ff923-farm-card-head,
  .ff923-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .ff923-hero-shield {
    width: 65px;
    height: 65px;
    font-size: 31px;
  }

  .ff923-feature-grid {
    grid-template-columns: 1fr;
  }

  .ff923-card-footer .btn {
    width: 100%;
  }

  .ff923-card-footer small {
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .ff923-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .ff923-metric {
    min-height: 90px;
  }

  .ff923-farm-card-head,
  .ff923-module-section,
  .ff923-note {
    padding-left: 15px;
    padding-right: 15px;
  }

  .ff923-status-box {
    margin-left: 15px;
    margin-right: 15px;
  }

  .ff923-farm-facts {
    padding-left: 15px;
    padding-right: 15px;
  }

  .ff923-feature {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ff923-feature-state {
    grid-column: 2;
    justify-self: start;
  }
}
