
/* Complemento da tela Registro de Fazendas.
   Usa o mesmo layout mestre já existente em styles.css. */

.farms-toolbar {
  grid-template-columns: minmax(300px, 1fr) 190px 175px 205px auto;
}

.farms-table {
  min-width: 1120px;
}

.col-farm { width: 35%; }
.col-status-farm { width: 12%; }
.col-type { width: 10%; }
.col-phone-farm { width: 14%; }
.col-consultant { width: 18%; }
.col-actions-farm { width: 11%; }

.farm-primary strong,
.farm-primary small {
  display: block;
}

.farm-primary strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.farm-primary small {
  margin-top: 5px;
  color: var(--muted);
}

.code-badge,
.type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.code-badge {
  color: var(--blue-900);
  background: var(--blue-100);
  letter-spacing: .08em;
}

.type-badge {
  color: #22527e;
  background: #edf4fb;
}

.farm-modal-card {
  width: min(860px, calc(100vw - 30px));
}

.code-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.code-control {
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--blue-900);
  background: #f3f8ff;
}

@media (max-width: 1250px) {
  .farms-toolbar {
    grid-template-columns: minmax(260px, 1fr) 170px 155px 180px auto;
  }
}

@media (max-width: 1080px) {
  .farms-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .farms-toolbar .search-box {
    grid-column: 1 / -1;
  }
}


/* Padronização visual com Registro de Usuários */
.farm-code-avatar {
  min-width: 48px;
  width: auto;
  padding: 0 10px;
  letter-spacing: .07em;
  white-space: nowrap;
}

.farm-primary { min-width: 0; }
.farm-primary strong, .farm-primary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.farms-table .row-actions { justify-content: center; }

.field select.control {
  min-height: 48px;
  padding: 0 48px 0 14px;

  border: 1px solid #c9def1;
  border-radius: 13px;

  background-color: #fff;
  color: #173e69;

  font: inherit;

  cursor: pointer;

  transition:
    border-color .18s ease,
    box-shadow .18s ease;
}

.field select.control:hover {
  border-color: #9bcbed;
}

.field select.control:focus {
  outline: none;
  border-color: #3499e7;

  box-shadow:
    0 0 0 4px rgba(42, 145, 226, .13);
}