/*
100%	FF		45%	73
95%	F2		40%	66
90%	E6		35%	59
85%	D9		30%	4D
80%	CC		25%	40
75%	BF		20%	33
70%	B3		15%	26
65%	A6		10%	1A
60%	99		5%	0D
50%	80		0%	00
*/

/******************************************************
  * Field styles
  ******************************************************/ 

.field {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid rgb(203 213 225); /* slate-300 */
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  background-color: #fff;
  color: rgb(30 41 59); /* slate-800 */
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  height: 35px;
}
.field:hover {
  border-color: #285496;
  color: rgb(30 41 59);
  background-color: #2854961A;
}
.field:focus {
  outline: none;
  border-color: rgb(59 130 246); /* blue-500 */
  box-shadow: 0 0 0 1px rgb(59 130 246);
}

/* Highlights a required field that failed server-side validation on
   redisplay - dedicated class (not a Tailwind utility) so it reliably
   overrides .field's own border-color above regardless of whether the
   Tailwind CDN script has injected its stylesheet yet. */
.field-error {
  border-color: rgb(248 113 113) !important; /* red-400 */
}
.field-error:focus {
  border-color: rgb(239 68 68) !important; /* red-500 */
  box-shadow: 0 0 0 1px rgb(239 68 68) !important;
}
.field-pending {
  border-color: rgb(252 211 77) !important; /* amber-300 */
  background-color: rgb(255 251 235) !important; /* amber-50 */
}

.field::placeholder {
  color: rgb(148 163 184); /* slate-400 */
}

/* Field Button Styles*/

/* Base styling common to all field buttons */
.field-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem; /* 4px */
  border: 1px solid;
  padding: 0.375rem; /* 6px */
  transition: all 0.2s ease-in-out;
}

/* 1. Basic Field Button Styling */
.field-btn--basic {
  border-color: var(--brand-300, #cbd5e1); /* Fallback to light gray if var isn't set */
  color: var(--brand-600, #475569);
  background-color: transparent;
}
.field-btn--basic:hover:not(:disabled) {
  border-color: var(--brand-300, #93c5fd); 
  background-color: var(--brand-50, #f0f9ff);
  color: var(--brand-600, #2563eb);
}
.field-btn--basic:disabled {
  pointer-events: none;
  opacity: 0.5; /* 50% opacity */
}

/* 2. Trash/Delete Modifier Styling */
.field-btn--trash {
  border-color: #cbd5e1; /* border-slate-300 */
  color: #94a3b8; /* text-slate-400 */
  background-color: transparent;
}
.field-btn--trash:hover:not(:disabled) {
  border-color: #fca5a5; /* hover:border-red-300 */
  background-color: #fef2f2; /* hover:bg-red-50 */
  color: #dc2626; /* hover:text-red-600 */
}
.field-btn--trash:disabled {
  pointer-events: none;
  opacity: 0.3; /* 30% opacity */
}

.field-btn--primary {
  border-color: #3670c8;
  color: #FFFFFF;
  background-color: #3670c8;
}
.field-btn--primary:hover {
  border-color: #285496;
  color: #FFFFFF;
  background-color: #285496;
}

/* Icon-only variant */
.field-btn--icon {
  padding: 0.5rem;
}




.lbl {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgb(51 65 85); /* slate-700 */
}

.label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgb(51 65 85); /* slate-700 */
}

/* Formatted-currency echo used by Alpine x-text spans (e.g. the RO editor
   discount field). money-field.js no longer injects these — it formats the
   input value inline instead. tabular-nums so digits don't jitter. */
.money-field-hint {
  display: inline-block;
  margin-left: 0.375rem;
  font-size: 0.6875rem;
  line-height: 1.2;
  color: rgb(100 116 139); /* slate-500 */
  font-variant-numeric: tabular-nums;
}
.money-field-hint:empty {
  display: none;
}

/* Number inputs on the Repair Order screen — hide native spinners at all sizes. */
.field-num::-webkit-outer-spin-button,
.field-num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.field-num {
  -moz-appearance: textfield;
  appearance: textfield;
}