/* Bell Ford Hang Tag Generator - styles */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #1a1a1a;
  background: #f5f5f7;
}

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.page.wide {
  max-width: 1100px;
}

.header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.header h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.muted { color: #6b6b70; }
.small { font-size: 13px; }
.mono { font-family: "SF Mono", Menlo, Consolas, monospace; }

.flash {
  background: #fef2f2;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #fecaca;
  margin-bottom: 16px;
  font-size: 13px;
}

/* Upload page */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 60px 24px;
  background: #fff;
  border: 2px dashed #d4d4d8;
  border-radius: 12px;
  cursor: pointer;
  transition: all 120ms ease;
  text-align: center;
}
.dropzone:hover { border-color: #a1a1aa; background: #fafafa; }
.dropzone.drag-over { border-color: #2563eb; background: #eff6ff; }
.dropzone.has-file { border-color: #16a34a; background: #f0fdf4; }
.dropzone input[type="file"] { display: none; }
.dz-icon { font-size: 28px; color: #71717a; }
.dz-title { font-size: 16px; font-weight: 500; }
.dz-title code { font-family: "SF Mono", Menlo, monospace; font-size: 14px; background: #f4f4f5; padding: 2px 6px; border-radius: 4px; }

.help { margin-top: 32px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid #d4d4d8;
  background: #fff;
  color: #1a1a1a;
  cursor: pointer;
  text-decoration: none;
  transition: all 120ms ease;
  font-family: inherit;
}
.btn:hover { background: #fafafa; }
.btn.primary {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}
.btn.primary:hover { background: #333; }
.btn.primary:disabled {
  background: #d4d4d8;
  border-color: #d4d4d8;
  color: #fff;
  cursor: not-allowed;
}
.btn.ghost { background: transparent; border-color: transparent; color: #6b6b70; }
.btn.ghost:hover { background: #ececef; color: #1a1a1a; }

#uploadForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#submitBtn { align-self: center; min-width: 160px; padding: 10px 24px; }

/* Picker toolbar */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.toolbar input[type="search"] {
  flex: 1;
  min-width: 200px;
  padding: 8px 12px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}
.toolbar input[type="search"]:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Vehicle table */
.table-wrap {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  overflow: hidden;
}

table.vehicles {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.vehicles th {
  text-align: left;
  font-weight: 500;
  color: #71717a;
  font-size: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #e4e4e7;
  background: #fafafa;
}
table.vehicles td {
  padding: 10px 14px;
  border-bottom: 1px solid #f4f4f5;
}
table.vehicles tr:last-child td { border-bottom: none; }
table.vehicles tr.row { cursor: pointer; }
table.vehicles tr.row:hover { background: #fafafa; }
table.vehicles tr.row:has(.row-check:checked) { background: #eff6ff; }

.col-check { width: 36px; }
.col-stock { width: 90px; font-weight: 500; }
.col-date { width: 110px; }
.col-price { width: 90px; text-align: right; font-weight: 500; }
th.col-price { text-align: right; }

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #1a1a1a;
}
