/* 성도 차량 데이터 관리: 레이아웃·툴바·모달·페이저는 숙소/부동산 공용 클래스(housing-*, property-*, case-modal, form-grid, pagination)를 쓴다.
   여기에는 표 열 정렬과 모달 폭·안쪽 여백만 둔다. */
.vehicles-table {
  min-width: 760px;
}

.vehicles-table td {
  vertical-align: middle;
}

.vehicles-number {
  font-weight: 700;
  white-space: nowrap;
}

.vehicles-table th,
.vehicles-nowrap {
  white-space: nowrap;
}

.vehicles-count {
  text-align: center;
}

/* 열 폭: 남는 폭이 이동조치 앞에 몰리지 않게 비율로 나눈다 */
.vehicles-table th:nth-child(1) { width: 12%; }
.vehicles-table th:nth-child(2) { width: 11%; }
.vehicles-table th:nth-child(3) { width: 25%; }
.vehicles-table th:nth-child(4) { width: 15%; }
.vehicles-table th:nth-child(5) { width: 20%; }
.vehicles-table th:nth-child(6) { width: 8%; }
.vehicles-table th:nth-child(7) { width: 9%; }

.vehicles-modal {
  width: min(640px, 100%);
}

.vehicles-form {
  padding: var(--space-5);
}

.vehicles-form .error {
  margin: 0 0 var(--space-3);
}

/* ── 화면 안 통일(2026-10-21): .vehicles-view 로만 스코프 ───────────────── */
.vehicles-view .topbar {
  align-items: center;
}

.vehicles-view .topbar > div:first-child {
  flex: 0 0 auto;
}

.vehicles-view .topbar .toolbar,
.vehicles-view .topbar .toolbar .housing-shell-actions,
.vehicles-view .topbar .toolbar .property-import-form {
  align-items: center;
  gap: var(--space-3);
}

.vehicles-view .topbar .toolbar .housing-shell-actions {
  display: contents;
}

.vehicles-view .topbar .toolbar .property-import-form {
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
}

.vehicles-view .topbar .toolbar .compact-action,
.vehicles-view .topbar .toolbar .vehicles-btn {
  box-sizing: border-box;
  height: var(--ctl-h);
  padding: 0 var(--ctl-pad-x);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  border-radius: var(--ctl-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.vehicles-view .topbar .toolbar a.vehicles-btn:hover {
  text-decoration: none;
}

.vehicles-file-pick {
  position: relative;
  overflow: hidden;
}

.vehicles-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.vehicles-view .vehicles-file-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1;
}

/* 검색 줄: 입력·버튼·드롭다운 높이 40px, 글씨 13px, 세로 가운데 */
.vehicles-view .housing-group-toolbar {
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: var(--space-3);
}

.vehicles-view .housing-search-form {
  align-items: center;
}

.vehicles-view .housing-search-form input[type="search"] {
  height: var(--ctl-h);
  min-height: var(--ctl-h);
  box-sizing: border-box;
  font-size: 13px;
}

.vehicles-view .housing-search-form .compact-action {
  height: var(--ctl-h);
  padding: 0 var(--ctl-pad-x);
  font-size: 13px;
  font-weight: 800;
}

.vehicles-view [data-vehicles-page-size] {
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  height: var(--ctl-h);
  box-sizing: border-box;
  padding: 0 32px 0 var(--ctl-pad-x);
  font-size: 13px;
  line-height: 1;
  color: var(--ink);
  background-color: var(--panel);
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.vehicles-view .housing-group-toolbar > .hint {
  margin: 0;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

/* 같은 역할 글씨 통일: 안내문·건수 13px, 표 헤더 12px, 표 본문 13px, 표 안 버튼 12px */
.vehicles-view .panel-head .hint {
  font-size: 13px;
  margin: 4px 0 0;
}

.vehicles-view .panel-head > .hint {
  margin: 0;
  white-space: nowrap;
}

.vehicles-view .panel > .hint {
  font-size: 13px;
}

.vehicles-view .vehicles-table th {
  font-size: 12px;
  font-weight: 800;
}

.vehicles-view .vehicles-table td {
  font-size: 13px;
}

.vehicles-view .vehicles-table .compact-action {
  height: var(--ctl-h-sm);
  padding: 0 var(--ctl-pad-x-sm);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 720px) {
  .vehicles-view .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .vehicles-view .topbar > .toolbar {
    padding-right: 0;
    justify-content: flex-start;
  }

  .vehicles-view .housing-group-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .vehicles-view .topbar .toolbar .property-import-form {
    width: 100%;
  }

  .vehicles-view .vehicles-file-name {
    flex: 1 1 auto;
    min-width: 0;
  }

  .vehicles-view [data-vehicles-page-size] {
    width: 100%;
  }
}

/* 머리말 버튼 줄: 자리가 되면 제목과 같은 줄, 모자라면 통째로 다음 줄(오른쪽 정렬). 오른쪽 112px 는 세션 타이머 자리 */
.vehicles-view .topbar {
  flex-wrap: wrap;
  row-gap: var(--space-4);
}

.vehicles-view .topbar > .toolbar {
  flex: 1 1 auto;
  min-width: min(max-content, 100%);
  padding-right: 112px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.vehicles-view .topbar .toolbar,
.vehicles-view .topbar .toolbar .property-import-form {
  gap: var(--space-2);
}

.vehicles-view [data-vehicles-page-size] {
  border: 1px solid var(--line);
}

@media (max-width: 720px) {
  .vehicles-view .topbar > .toolbar {
    justify-content: flex-start;
    gap: var(--space-2);
  }

  .vehicles-view .topbar .toolbar .compact-action,
  .vehicles-view .topbar .toolbar .vehicles-btn {
    width: auto;
    height: var(--ctl-h);
  }

  .vehicles-view .topbar .toolbar .property-import-form {
    width: 100%;
    gap: var(--space-2);
  }

  .vehicles-view .vehicles-file-name {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }

  .vehicles-view .housing-search-form {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .vehicles-view .housing-search-form .compact-action {
    width: auto;
  }
}

/* 모바일 머리말: 버튼 2열 격자로 폭 통일, 업로드 줄·타이머는 한 줄 전체 */
@media (max-width: 720px) {
  .vehicles-view .topbar > .toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-width: 0;
    padding-right: 0;
  }

  .vehicles-view .topbar .toolbar > .compact-action,
  .vehicles-view .topbar .toolbar > .vehicles-btn,
  .vehicles-view .topbar .toolbar .housing-shell-actions > .compact-action,
  .vehicles-view .topbar .toolbar .housing-shell-actions > .vehicles-btn,
  .vehicles-view .topbar .toolbar [data-app-theme-toggle] {
    width: 100%;
  }

  .vehicles-view .topbar .toolbar .property-import-form,
  .vehicles-view .topbar .toolbar .session-timer {
    grid-column: 1 / -1;
  }

  .vehicles-view .topbar .toolbar .session-timer {
    justify-self: end;
  }

  .vehicles-view .housing-search-form input[type="search"],
  .vehicles-view .housing-search-form .compact-action,
  .vehicles-view [data-vehicles-page-size] {
    height: 44px;
    min-height: 44px;
  }
}

.vehicles-view .vehicles-bot-steps {
  margin: 8px 0 12px;
  padding-left: 20px;
  line-height: 1.7;
}
