/* PHASE_D2_DASHBOARD_VISIT_ACT_WRITES */
.action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 17px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}
.action-bar-note {
  flex: 1 1 260px;
  color: var(--muted);
  font-size: 12px;
}
.button-danger {
  border-color: var(--danger);
  background: var(--danger);
}
.button-danger:hover { background: #912018; }
.button:disabled {
  cursor: not-allowed;
  opacity: .48;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-field { min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
}
.form-field label small {
  color: var(--muted);
  font-weight: 600;
}
.form-field .control,
.form-field textarea {
  width: 100%;
  min-width: 0;
}
.form-field textarea.control {
  min-height: 94px;
  resize: vertical;
}
.form-section {
  grid-column: 1 / -1;
  margin-top: 5px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}
.form-section h3 { margin: 0 0 3px; font-size: 14px; }
.form-section p { margin: 0; color: var(--muted); font-size: 11.5px; }
.form-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.form-error {
  margin-bottom: 14px;
  padding: 11px 12px;
  border-radius: 11px;
  border: 1px solid #fecdca;
  color: var(--danger);
  background: var(--danger-bg);
  font-size: 12.5px;
}
.form-help {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}
.confirm-box {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}
.confirm-box strong { display: block; margin-bottom: 6px; }
.confirm-box p { margin: 0; color: var(--muted); line-height: 1.5; }
.location-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.inline-value {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--muted);
}
@media (max-width: 720px) {
  .form-grid, .location-row { grid-template-columns: 1fr; }
  .form-field.full, .form-section { grid-column: auto; }
  .form-actions .button { flex: 1 1 150px; }
}
