/* Readable grey text: Tailwind's gray-400/slate-400 is about 2.5:1 on white, below the 4.5:1 accessibility
   minimum, so on light backgrounds use the 500 shades instead. Inside dark panels keep the lighter grey,
   which is the readable one there. (Unlayered rules win over Tailwind's @layer utilities.) */
.text-gray-400 { color: #6b7280; }
.text-slate-400 { color: #64748b; }
:is(.bg-slate-800, .bg-slate-900, .bg-black, .bg-blue-600, .bg-blue-700, .bg-\[\#0054A6\]) .text-gray-400,
.text-gray-400:is(.bg-slate-800, .bg-slate-900, .bg-black, .bg-blue-600, .bg-blue-700, .bg-\[\#0054A6\]) { color: #9ca3af; }
:is(.bg-slate-800, .bg-slate-900, .bg-black, .bg-blue-600, .bg-blue-700, .bg-\[\#0054A6\]) .text-slate-400,
.text-slate-400:is(.bg-slate-800, .bg-slate-900, .bg-black, .bg-blue-600, .bg-blue-700, .bg-\[\#0054A6\]) { color: #94a3b8; }

/* Year picker: about 5 rows visible (48 px each), the rest scrolls inside the list */
.year-picker { position: relative; }
.year-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; cursor: pointer; }
.year-btn.is-empty #year-btn-text { color: #6b7280; }
.year-btn[aria-expanded="true"] { border-color: #0054A6; }
.year-btn .fa-chevron-down { color: #6b7280; font-size: .8em; }
.year-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; max-height: 240px; overflow-y: auto;
             overscroll-behavior: contain; margin: 0; padding: 0; list-style: none; background: #fff;
             border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 10px 25px rgba(0, 0, 0, .12); }
.year-list:focus { outline: 2px solid #3b82f6; outline-offset: 2px; }
.year-list li { padding: 12px 16px; line-height: 24px; cursor: pointer; }
.year-list li.is-active, .year-list li:hover { background: #eff6ff; }
.year-list li[aria-selected="true"] { font-weight: 700; color: #0054A6; }

/* Valid input: green border and a tick inside the field (right side) */
input.field-ok { border-color: #16a34a; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%2316a34a'/%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px 20px; }
input.field-ok:focus { outline: none; box-shadow: 0 0 0 3px rgba(22, 163, 74, .15); }
/* Hint colours missing from the prebuilt Tailwind CSS */
.text-green-700 { color: #15803d; }
.text-amber-700 { color: #b45309; }

/* Review page case header: status/title | arrival time | call button; on phones the arrival time gets its own line */
.status-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.status-main { flex: 1 1 auto; min-width: 0; }
.status-eta { order: 2; }
.status-call { order: 3; flex: none; }
@media (max-width: 640px) {
  .status-card { padding: 20px; }
  .status-head { gap: 14px 12px; }
  .status-main { flex: 1 1 0; }                         /* title shrinks so the call button stays beside it */
  .status-main h1 { font-size: 24px; line-height: 1.2; }
  .status-call { order: 2; width: 48px; height: 48px; font-size: 18px; }
  .status-eta { order: 3; flex: 1 1 100%; }
  .status-eta > div { display: flex; width: 100%; padding: 10px 14px 10px 10px !important; }
  /* update time under "~6 min 1,8 km", aligned with the text, no divider */
  .status-eta #tracking-updated { flex: 1 1 100%; border-left: 0 !important; padding: 0 0 0 58px !important; margin-top: -6px; }
}
