/* 고객 입력 하단 분석 막대 — 선택 필지·건물 · 그려서 넣기 · 필지 선택 */

.customer-analyze-dock {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

body[data-role="customer"].view-input .customer-analyze-dock:not([hidden]),
body[data-role="customer"] #inputView:not(.hidden-view) .customer-analyze-dock:not([hidden]) {
  display: flex;
}

.customer-analyze-dock[hidden] {
  display: none !important;
}

.customer-analyze-dock__selection-row {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
}

.customer-analyze-dock__selection-slot {
  flex: 0 0 auto;
}

.customer-analyze-dock__chips-host {
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
}

.customer-analyze-dock[data-mode="draw"] .customer-analyze-dock__chips-host:empty {
  display: none;
}

.customer-analyze-dock__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  min-width: 0;
}

.customer-analyze-dock__chip-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  min-width: 0;
}

.customer-analyze-dock__chip {
  display: inline-flex;
  align-items: center;
  max-width: 11.5rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid var(--border, #e2e8f0);
  background: #f8fafc;
  color: var(--text, #0f172a);
}

.customer-analyze-dock__chip--parcel {
  border-color: color-mix(in srgb, #2563eb 35%, #e2e8f0);
  background: color-mix(in srgb, #2563eb 8%, #fff);
}

.customer-analyze-dock__chip--building {
  border-color: color-mix(in srgb, #0d9488 40%, #e2e8f0);
  background: color-mix(in srgb, #0d9488 10%, #fff);
}

.customer-analyze-dock__chip--install {
  border-color: color-mix(in srgb, #16a34a 40%, #e2e8f0);
  background: color-mix(in srgb, #16a34a 10%, #fff);
}

.customer-analyze-dock__chip--more {
  font-variant-numeric: tabular-nums;
  color: var(--muted, #64748b);
}

.customer-analyze-dock__empty {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted, #64748b);
}

.customer-analyze-dock__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.customer-analyze-dock[data-mode="draw"] .customer-analyze-dock__actions,
.customer-analyze-dock[data-mode="parcel-pick"] .customer-analyze-dock__actions {
  grid-template-columns: 1fr;
}

.customer-analyze-dock .address-map-draw-toggle[hidden],
.customer-analyze-dock .address-map-parcel-pick-toggle[hidden],
.customer-analyze-dock .address-map-draw-toggle.hidden,
.customer-analyze-dock .address-map-parcel-pick-toggle.hidden {
  display: none !important;
}

.customer-analyze-dock .customer-analyze-dock__action-btn,
.customer-analyze-dock .address-map-draw-toggle,
.customer-analyze-dock .address-map-parcel-pick-toggle {
  width: 100%;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.4rem 0.55rem !important;
  font-size: 0.78rem !important;
  line-height: 1.25;
  white-space: nowrap;
  text-align: center;
  border-radius: 10px !important;
}

.customer-analyze-dock .customer-analyze-dock__pick-btn,
.customer-analyze-dock .address-map-parcel-pick-list-btn {
  margin-left: 0;
  min-height: 2.45rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.74rem;
  border-radius: 10px;
}

.customer-analyze-dock__pick-panel {
  width: 100%;
}

.customer-analyze-dock .staff-parcel-pick-inline.customer-analyze-dock__pick-panel {
  padding: 0.55rem 0.6rem 0.6rem;
  max-height: min(28vh, 13.5rem);
  overflow: auto;
}

.customer-analyze-dock .staff-parcel-pick-inline .staff-parcel-pick-multi {
  max-height: none;
}

body[data-role="customer"] .customer-analyze-dock .staff-parcel-pick-multi-label,
body[data-role="customer"] .customer-analyze-dock .staff-parcel-pick-multi-hint {
  display: none !important;
}

.customer-analyze-dock__install-type {
  width: 100%;
  min-width: 0;
}

.customer-analyze-dock__install-type .install-type-cards {
  gap: 0.4rem;
}

.customer-analyze-dock__install-type .install-type-card {
  flex-direction: row;
  min-height: 2.55rem;
  padding: 0.35rem 0.55rem;
  gap: 0.4rem;
  border-radius: 10px;
  box-shadow: none;
}

.customer-analyze-dock__install-type .install-type-card::before {
  display: none;
}

.customer-analyze-dock__install-type .install-type-card__icon {
  font-size: 1rem;
  line-height: 1;
}

.customer-analyze-dock__install-type .install-type-card__name {
  font-size: 0.82rem;
}

.customer-analyze-dock__install-type .install-type-card__desc {
  display: none;
}

body[data-role="staff"] .customer-analyze-dock__pick-panel {
  display: none !important;
}

body[data-role="customer"] .address-map-toolbar-actions:empty {
  display: none !important;
  margin: 0 !important;
}

body[data-role="staff"].view-input .customer-analyze-dock:not([hidden]),
body[data-role="staff"] #inputView:not(.hidden-view) .customer-analyze-dock:not([hidden]) {
  display: flex !important;
}

body[data-role="customer"].view-input .input-step-controls.customer-input-run-bar,
body[data-role="customer"] #inputView:not(.hidden-view) .input-step-controls.customer-input-run-bar {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: calc(100dvh - 1rem - env(safe-area-inset-bottom, 0px));
  overflow: auto;
}

body[data-role="customer"] #inputView:not(.hidden-view) .input-panel-customer-main {
  padding-bottom: calc(var(--customer-input-run-bar-h, 10.5rem) + env(safe-area-inset-bottom, 0px) + 0.7rem);
}
