.truck-photo {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
  background: var(--soft);
}

.photo-row {
  display: flex;
  gap: 7px;
  margin-top: 8px;
}

.photo-picker {
  position: relative;
  flex: 1;
  text-align: center;
  cursor: pointer;
}

.photo-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.delete-photo { color: var(--bad); }

.detail-photo {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 15px;
  margin-bottom: 12px;
  background: var(--soft);
}

.admin-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-tools .secondary { min-height: 44px; }
.admin-panel { margin-top: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-head h3 { margin: 0; }
.admin-panel .primary { margin-top: 13px; }
.admin-panel select { width: 100%; min-height: 42px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.success { color: var(--ok); font-size: 12px; font-weight: 700; }

.history-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.history-filters .field label { margin-top: 0; }
.history-filters input,
.history-filters select { width: 100%; min-height: 42px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.history-filters .secondary { grid-column: 1 / -1; }
.history-list { display: grid; gap: 9px; }
.history-card { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 12px; }
.history-card-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.history-card h3 { font-size: 15px; margin: 0; }
.history-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.history-card .secondary { width: 100%; margin-top: 10px; }
.history-empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.record-detail { margin-top: 12px; }
.record-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; }
.record-meta div { padding: 9px; border-radius: 9px; background: var(--bg); }
.answer-list { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.answer-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px; border-top: 1px solid var(--line); font-size: 12px; }
.answer-row:first-child { border-top: 0; }
.answer-row span:last-child { font-weight: 800; }
.signature-image { display: block; width: 100%; max-height: 160px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

@media (max-width: 420px) {
  .photo-row { flex-direction: column; }
  .delete-photo { width: 100%; }
  .admin-tools { grid-template-columns: 1fr; }
  .history-filters { grid-template-columns: 1fr; }
  .record-meta { grid-template-columns: 1fr; }
}
