/*
 * Shared dashboard form-field styling.
 *
 * `.field-input` mirrors the Tailwind input recipe used across the
 * dashboard (rounded-lg border border-slate-300 px-3 py-2 text-sm
 * shadow-sm, primary focus ring) so the shared partials in
 * templates/partials/field_*.html render one consistent control.
 */

.field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155; /* slate-700 */
}

.field-input {
  margin-top: 0.25rem;
  display: block;
  border: 1px solid #cbd5e1; /* slate-300 */
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #0f172a; /* slate-900 */
  background-color: #fff;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.field-input:focus {
  outline: none;
  border-color: #ff6b6b; /* primary */
  box-shadow: 0 0 0 1px #ff6b6b;
}

.field-input::placeholder {
  color: #94a3b8; /* slate-400 */
}

.field-input:disabled {
  background-color: #f1f5f9;
  color: #64748b;
}

.field-help {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #64748b; /* slate-500 */
}

.field-error {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #dc2626; /* red-600 */
}

/* Currency-prefixed numeric input: € sits inside the field. */
.field-currency {
  display: block;
  position: relative;
  margin-top: 0.25rem;
}

.field-currency .field-input {
  margin-top: 0;
  padding-left: 1.75rem;
}

.field-currency::before {
  content: "\20AC"; /* € */
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.875rem;
  color: #64748b;
  pointer-events: none;
}

/* --- flatpickr: recolor to the brand, keep the vendor layout --- */
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #ff6b6b;
  border-color: #ff6b6b;
}

.flatpickr-day.today {
  border-color: #ff6b6b;
}

.flatpickr-day.today:hover {
  background: #ff6b6b;
  border-color: #ff6b6b;
  color: #fff;
}

.flatpickr-day:hover {
  background: #f1f5f9;
  border-color: #f1f5f9;
}

span.flatpickr-weekday {
  color: #64748b;
  font-weight: 600;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-weekdays {
  color: #0f172a;
  fill: #0f172a;
}
