/* ── Drop zones ─────────────────────────────────────────── */
.drop-zone,
.odo-drop-zone {
  border: 2px dashed var(--border-hi);
  border-radius: 5px;
  background: var(--bg-card);
  color: var(--txt-muted);
  font-size: var(--fs-base);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.drop-zone       { padding: 18px; }
.drop-zone--tall { padding: 28px 20px; }
.odo-drop-zone   { padding: 10px 18px; min-width: 200px; user-select: none; }

/* ── Table scroll wrapper (mobile horizontal scroll) ──── */
.table-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Shared table columns ────────────────────────────── */
.col-right      { text-align: right; }
.th-sortable    { white-space: nowrap; cursor: pointer; user-select: none; }
.sort-arrow     { font-size: 10px; opacity: 0.7; }

/* ── Mileage year summary table ──────────────────────── */
.sum-input       { width: 120px; text-align: right; padding: 4px 6px; font-size: 13px; border: 1px solid var(--border-hi); border-radius: 4px; background: var(--bg-input); color: var(--txt); font-family: 'Courier Prime', monospace; }
.sum-miles-total { text-align: right; font-weight: 700; font-family: 'Courier Prime', monospace; color: var(--txt); }
.sum-miles-work  { text-align: right; color: var(--accent); font-family: 'Courier Prime', monospace; font-weight: 700; }
.sum-miles-pers  { text-align: right; color: var(--txt-muted); font-family: 'Courier Prime', monospace; }
.sum-miles-pct   { text-align: right; color: var(--txt-dim); font-family: 'Courier Prime', monospace; }

/* ── Document / vendor table action cells ────────────── */
.wo-actions     { white-space: nowrap; }

/* ── Bulk PDF queue items ────────────────────────────── */
.bq-item        { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.bq-icon        { font-size: 14px; color: var(--txt-muted); }
.bq-name        { flex: 1; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--txt); }
.bq-status-err  { font-size: 11px; color: var(--red);     font-weight: 600; font-family: 'Saira Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; }
.bq-status-queue { font-size: 11px; color: var(--txt-dim); font-family: 'Saira Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; }
.bq-status-scan  { font-size: 11px; color: var(--accent);   font-weight: 600; font-family: 'Saira Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Vendors table ───────────────────────────────────── */
.vendor-name-cell { color: var(--txt); }
.vendor-addr      { font-size: 11px; color: var(--txt-muted); }
.vendor-logo-wrap { display: inline-block; margin-left: 8px; }
.vendor-logo-ok   { color: var(--green); font-size: 11px; font-weight: 600; }

/* ── Documents ───────────────────────────────────────── */
.doc-browse-link { color: var(--accent); text-decoration: underline; pointer-events: none; }
.doc-cat-sel     { font-size: 11px; padding: 2px 4px; border: 1px solid var(--border-hi); border-radius: 4px; background: var(--bg-input); cursor: pointer; }

/* ═══════════════════════════════════════════════════════════
   Static utility classes — replaces the Tailwind CDN.
   Only the utilities actually used in index.html are defined;
   values match Tailwind's scale so the markup didn't change.
   Adding a new utility class in HTML requires defining it here.
   ═══════════════════════════════════════════════════════════ */

/* ── Display / layout ── */
.hidden          { display: none; }
.flex            { display: flex; }
.grid            { display: grid; }
.flex-1          { flex: 1 1 0%; }
.flex-none       { flex: none; }
.flex-col        { flex-direction: column; }
.flex-wrap       { flex-wrap: wrap; }
.items-center    { align-items: center; }
.items-end       { align-items: flex-end; }
.items-stretch   { align-items: stretch; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.grid-cols-2     { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-span-2      { grid-column: span 2 / span 2; }
.overflow-y-auto { overflow-y: auto; }

/* ── Gap ── */
.gap-2      { gap: var(--sp-2); }
.gap-3      { gap: var(--sp-3); }
.gap-4      { gap: var(--sp-4); }
.gap-5      { gap: var(--sp-5); }
.gap-\[6px\]  { gap: 6px; }
.gap-\[10px\] { gap: 10px; }
.gap-\[14px\] { gap: 14px; }

/* ── Margin ── */
.m-0        { margin: 0; }
.mx-auto    { margin-left: auto; margin-right: auto; }
.mt-0       { margin-top: 0; }
.mt-1       { margin-top: var(--sp-1); }
.mt-2       { margin-top: var(--sp-2); }
.mt-3       { margin-top: var(--sp-3); }
.mt-4       { margin-top: var(--sp-4); }
.mt-5       { margin-top: var(--sp-5); }
.mt-\[10px\] { margin-top: 10px; }
.mt-\[14px\] { margin-top: 14px; }
.mt-\[18px\] { margin-top: 18px; }
.mb-1       { margin-bottom: var(--sp-1); }
.mb-2       { margin-bottom: var(--sp-2); }
.mb-3       { margin-bottom: var(--sp-3); }
.mb-4       { margin-bottom: var(--sp-4); }
.mb-5       { margin-bottom: var(--sp-5); }
.mb-6       { margin-bottom: var(--sp-6); }
.mb-\[2px\]  { margin-bottom: 2px; }
.mb-\[6px\]  { margin-bottom: 6px; }
.mb-\[10px\] { margin-bottom: 10px; }
.mb-\[14px\] { margin-bottom: 14px; }
.mb-\[18px\] { margin-bottom: 18px; }
.ml-2       { margin-left: var(--sp-2); }
.my-\[14px\] { margin-top: 14px; margin-bottom: 14px; }

/* ── Padding ── */
.p-4        { padding: var(--sp-4); }
.pt-2       { padding-top: var(--sp-2); }
.pt-4       { padding-top: var(--sp-4); }
.pb-2       { padding-bottom: var(--sp-2); }
.pb-3       { padding-bottom: var(--sp-3); }
.pb-\[10px\] { padding-bottom: 10px; }
.px-2       { padding-left: var(--sp-2); padding-right: var(--sp-2); }
.px-5       { padding-left: var(--sp-5); padding-right: var(--sp-5); }
.px-\[18px\] { padding-left: 18px; padding-right: 18px; }
.py-1       { padding-top: var(--sp-1); padding-bottom: var(--sp-1); }
.py-2       { padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
.py-\[10px\] { padding-top: 10px; padding-bottom: 10px; }

/* ── Sizing ── */
.w-4        { width: 16px; }
.h-4        { height: 16px; }
.h-px       { height: 1px; }
.w-auto     { width: auto; }
.w-full     { width: 100%; }
.max-w-panel-sm { max-width: var(--panel-sm); }
.max-w-panel-md { max-width: var(--panel-md); }
.max-w-panel-lg { max-width: var(--panel-lg); }
.max-w-\[280px\] { max-width: 280px; }
.max-w-\[420px\] { max-width: 420px; }
.min-w-\[300px\] { min-width: 300px; }

/* ── Borders ── */
.border          { border-width: 1px; border-style: solid; }
.border-b        { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t        { border-top-width: 1px; border-top-style: solid; }
.border-border-hi { border-color: var(--border-hi); }
.border-border-lo { border-color: var(--border); }
.rounded         { border-radius: var(--radius); }

/* ── Colors ── */
.text-accent       { color: var(--accent); }
.text-text-primary { color: var(--txt); }
.text-text-muted   { color: var(--txt-muted); }
.text-text-dim     { color: var(--txt-dim); }
.bg-surface-card   { background-color: var(--bg-card); }
.bg-surface-input  { background-color: var(--bg-input); }
.bg-border-lo      { background-color: var(--border); }

/* ── Typography ── */
.text-xs        { font-size: 12px; line-height: 16px; }
.text-sm        { font-size: 14px; line-height: 20px; }
.text-\[11px\]  { font-size: 11px; }
.text-\[13px\]  { font-size: 13px; }
.font-medium    { font-weight: 500; }
.font-semibold  { font-weight: 600; }
.font-bold      { font-weight: 700; }
.font-cond      { font-family: 'Saira Condensed', sans-serif; }
.font-mono      { font-family: 'Courier Prime', monospace; }
.tracking-\[0\.8px\] { letter-spacing: 0.8px; }
.tracking-\[1px\]    { letter-spacing: 1px; }
.uppercase      { text-transform: uppercase; }
.underline      { text-decoration-line: underline; }
.no-underline   { text-decoration-line: none; }
.text-center    { text-align: center; }

/* ── Misc ── */
.cursor-pointer      { cursor: pointer; }
.select-none         { user-select: none; -webkit-user-select: none; }
.pointer-events-none { pointer-events: none; }
.shadow-none         { box-shadow: none; }

/* ── Responsive ── */
@media (min-width: 769px) {
  .md\:flex-row { flex-direction: row; }
}
