/* ===============================
   고객관리 (CRM) 페이지
   PC/모바일 공통 UI
   =============================== */

/* -------- 전체 컨테이너 --------
   PC(901px+): is-customer-open 시 사이드바 패널(420px) — layout.css에서 처리
   모바일: 풀스크린 오버레이
   -------- */
.customer-page {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 7000;
  background: #f5f6f8;
  box-shadow: none;
  flex-direction: column;
  overflow: hidden;
}

.customer-page.open {
  display: flex;
}

/* -------- 고객 수정/신규 패널 (별도 페이지) -------- */
.customer-form-panel {
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: #f5f6f8;
}

.customer-form-panel.is-open {
  display: flex;
}

.customer-form-panel__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  min-height: 44px;
}

.customer-form-panel__back {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #333;
  font-size: 16px;
  cursor: pointer;
}

.customer-form-panel__back:hover {
  background: #f0f0f0;
}

.customer-form-panel__title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

/* -------- 고객 상세 패널 (뷰모드 전용, PC: 우측 탭, 모바일: 풀스크린) -------- */
.customer-detail-panel {
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: #f5f6f8;
}

.customer-detail-panel.is-open {
  display: flex;
}

.customer-detail-panel__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  min-height: 44px;
}

.customer-detail-panel__back {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #333;
  font-size: 16px;
  cursor: pointer;
}

.customer-detail-panel__back:hover {
  background: #f0f0f0;
}

.customer-detail-panel__title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.customer-detail-panel__edit {
  flex-shrink: 0;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #2b6cff;
  background: transparent;
  border: 1px solid #2b6cff;
  border-radius: 6px;
  cursor: pointer;
}

.customer-detail-panel__edit:hover {
  background: rgba(43, 108, 255, 0.08);
}

/* 모바일: 상세/폼 패널 풀스크린 */
@media (max-width: 900px) {
  .customer-detail-panel.is-open,
  .customer-form-panel.is-open {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 7100;
    width: 100%;
    height: 100%;
  }
  .customer-detail-panel.is-open .customer-detail-view {
    flex: 1;
    min-height: 0;
    display: flex !important;
    flex-direction: column;
    /* 모바일에서도 상세 헤더부터 전체 스크롤 */
    overflow-y: auto;
  }
  .customer-form-panel.is-open .customer-form-view {
    flex: 1;
    min-height: 0;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
  }
  /* 취소/저장 아래 비치는 영역 제거 (safe-area + 고객목록 비침 방지) */
  .customer-form-panel.is-open .customer-form__actions {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0));
  }
}


/* -------- 상단 헤더 -------- */
.customer-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  min-height: 44px;
}

.customer-header__back {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #333;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.customer-header__back:hover {
  background: #f0f0f0;
}

.customer-header__title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.customer-detail__edit-phone {
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  cursor: pointer;
}

.customer-detail__edit-phone:hover {
  background: #f3f3f3;
}

/* -------- 메인 컨텐츠 영역 -------- */
.customer-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 고객 상세 열릴 때: 달력 숨겨서 하단 내역이 넓게 보이도록, 전체 스크롤 */
.customer-main.customer-main--detail-open .customer-calendar-wrap {
  display: none;
}

.customer-main.customer-main--detail-open .customer-detail-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  /* 고객 메인 내 상세 뷰에서도 헤더~하단까지 전체 스크롤 */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.customer-main.customer-main--detail-open .customer-detail__body {
  flex: 0 0 auto;
  min-height: 200px;
  overflow: visible;
}

/* -------- 일정 달력 (최상단 단독, Material/Android 스타일) -------- */
.customer-calendar-wrap {
  flex-shrink: 0;
  width: 100%;
  padding: 8px 12px;
  background: var(--customer-calendar-bg, #f5f5f5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.customer-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding: 0 2px;
}

.customer-calendar__nav {
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--customer-calendar-on-surface, #1c1b1f);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
  outline: none;
}

.customer-calendar__nav:hover {
  background: rgba(0, 0, 0, 0.08);
}

.customer-calendar__nav:active {
  background: rgba(0, 0, 0, 0.12);
}

.customer-calendar__title {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--customer-calendar-on-surface, #1c1b1f);
}

.customer-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: 14px repeat(6, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: 260px;
  height: 130px;
  margin: 0 auto;
  font-size: 10px;
  font-weight: 500;
  background: var(--customer-calendar-surface, #fff);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  overflow: hidden;
}

.customer-calendar__weekday {
  text-align: center;
  color: var(--customer-calendar-on-surface-variant, #49454f);
  font-size: 9px;
  font-weight: 500;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.customer-calendar__day {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  color: var(--customer-calendar-on-surface, #1c1b1f);
  transition: background 0.15s ease, color 0.15s ease;
  outline: none;
  font-size: inherit;
  max-height: 100%;
}

.customer-calendar__day:hover {
  background: rgba(0, 0, 0, 0.08);
}

.customer-calendar__day:active {
  background: rgba(0, 0, 0, 0.12);
}

.customer-calendar__day.other-month {
  color: var(--customer-calendar-outline-variant, #cac4d0);
}

.customer-calendar__day.today {
  background: var(--customer-calendar-primary, #2b6cff);
  color: var(--customer-calendar-on-primary, #fff);
  font-weight: 600;
}

.customer-calendar__day.today:hover {
  background: var(--customer-calendar-primary-hover, #1a5ae6);
  color: var(--customer-calendar-on-primary, #fff);
}

.customer-calendar__day.has-schedule {
  position: relative;
}

.customer-calendar__day.has-schedule::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--customer-calendar-primary, #2b6cff);
}

.customer-calendar__day.has-schedule.today::after {
  background: rgba(255, 255, 255, 0.9);
}

.customer-calendar__day.has-schedule.other-month::after {
  background: var(--customer-calendar-outline-variant, #cac4d0);
}

/* -------- 고객 목록 뷰 -------- */
.customer-list-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

/* 카테고리 패널 (재생목록 스타일) */
.customer-categories-panel {
  flex-shrink: 0;
  width: 146px;
  min-width: 113px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #eee;
  overflow: hidden;
}

.customer-categories-panel__header {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  min-width: 0;
}

.customer-categories-panel__title {
  font-size: 11px;
  font-weight: 700;
  color: #333;
  flex-shrink: 0;
}

.customer-categories-panel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  min-width: 0;
}

.customer-categories-panel__bulk-add {
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #2b6cff;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.customer-categories-panel__bulk-add:hover {
  background: rgba(43, 108, 255, 0.1);
}

.customer-categories-panel__bulk-add.hidden {
  display: none;
}

.customer-categories-panel__new {
  padding: 3px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #2b6cff;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.customer-categories-panel__new:hover {
  background: rgba(43, 108, 255, 0.1);
}

.customer-category-create {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  background: #f9f9f9;
}

.customer-category-create.hidden {
  display: none;
}

.customer-category-create__input {
  flex: 1 1 100%;
  min-width: 0;
  width: 100%;
  padding: 6px 10px;
  font-size: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
}

.customer-category-create__save {
  flex-shrink: 0;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #2b6cff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.customer-category-create__save:hover {
  background: #1a5ae6;
}

.customer-category-create__cancel {
  flex-shrink: 0;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #666;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
}

.customer-category-create__cancel:hover {
  background: #f0f0f0;
  color: #333;
}

.customer-categories-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
}

.customer-category-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 11px;
  color: #333;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  border-radius: 6px;
  transition: background 0.15s;
}

.customer-category-item:hover {
  background: #f5f5f5;
}

.customer-category-item.is-active {
  background: rgba(43, 108, 255, 0.12);
  color: #2b6cff;
  font-weight: 600;
}

.customer-category-item__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-category-item__count {
  flex-shrink: 0;
  font-size: 10px;
  color: #888;
  margin-left: 4px;
}

.customer-category-item--folder {
  cursor: default;
}

.customer-category-item--folder:hover {
  background: transparent;
}

.customer-category-item.is-active .customer-category-item__count {
  color: rgba(43, 108, 255, 0.9);
}

.customer-category-item__controls {
  display: none;
}

.customer-category-item__edit,
.customer-category-item__edit-save,
.customer-category-item__edit-cancel,
.customer-category-item__delete {
  display: none;
}

.customer-category-item__edit {
  background: #f5f5f5;
  color: #555;
}

.customer-category-item__edit:hover {
  background: #e9ecff;
  color: #2b6cff;
}

.customer-category-item__edit-save {
  background: #2b6cff;
  color: #fff;
}

.customer-category-item__edit-save:hover {
  background: #1f54d4;
}

.customer-category-item__edit-cancel {
  background: #f5f5f5;
  color: #777;
}

.customer-category-item__edit-cancel:hover {
  background: #eee;
}

.customer-category-item__delete {
  padding: 0 5px;
  color: #bbb;
  font-size: 12px;
}

.customer-category-item__delete:hover {
  background: #fee;
  color: #c00;
}

.customer-category-item__input {
  display: none;
}

.customer-categories-panel__manage {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #2b6cff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
}

.customer-categories-panel__manage:hover {
  background: #1a5ae6;
}

.customer-category-manage-modal {
  position: fixed;
  inset: 0;
  z-index: 3095;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.customer-category-manage-modal.hidden {
  display: none;
}

.customer-category-manage-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.customer-category-manage-modal__panel {
  position: relative;
  width: 100%;
  max-width: 360px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.customer-category-manage-modal__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
}

.customer-category-manage-modal__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.customer-category-manage-modal__close {
  border: none;
  background: transparent;
  font-size: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.customer-category-manage-modal__close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.customer-category-manage-modal__body {
  padding: 10px 14px 14px;
  overflow-y: auto;
}

.customer-category-manage__new-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.customer-category-manage__input {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 12px;
  box-sizing: border-box;
}

.customer-category-manage__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.customer-category-manage-item {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.customer-category-tree-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  color: #374151;
  text-align: left;
}

.customer-category-tree-btn:hover {
  background: #f3f4ff;
  border-color: #e5e7eb;
}

.customer-category-tree-btn.is-selected {
  background: #eef2ff;
  border-color: #4f46e5;
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.4);
}

.customer-category-tree-btn.is-drag-over {
  background: #e5f3ff;
  border-color: #38bdf8;
}

.customer-category-manage-item.is-insert-above::before,
.customer-category-manage-item.is-insert-below::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: #38bdf8;
  border-radius: 999px;
}

.customer-category-manage-item.is-insert-above::before {
  top: -1px;
}

.customer-category-manage-item.is-insert-below::after {
  bottom: -1px;
}

.customer-category-tree-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-category-tree-count {
  flex-shrink: 0;
  font-size: 10px;
  color: #9ca3af;
}

.customer-category-manage__order {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.customer-category-manage__move {
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #9ca3af;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.customer-category-manage__move:hover {
  background: rgba(148, 163, 184, 0.15);
  color: #4b5563;
}

.customer-category-manage__count {
  font-size: 11px;
  color: #999;
}

.customer-category-manage__btn {
  flex-shrink: 0;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  background: #f9fafb;
  color: #374151;
}

.customer-category-manage__btn--primary {
  background: #2b6cff;
  border-color: #2b6cff;
  color: #fff;
}

.customer-category-manage__btn--primary:hover {
  background: #1a5ae6;
  border-color: #1a5ae6;
}

.customer-category-manage__btn--danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.customer-category-manage__btn--danger:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.customer-category-manage__footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef0f4;
  display: flex;
  justify-content: flex-end;
}

.customer-category-manage__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.customer-category-manage__toolbar-left,
.customer-category-manage__toolbar-right {
  display: flex;
  gap: 6px;
  align-items: center;
}

.customer-category-manage__parent {
  min-width: 120px;
  max-width: 160px;
  padding: 4px 6px;
  font-size: 11px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
}

.customer-category-manage__parent:focus {
  outline: none;
  border-color: #2b6cff;
  box-shadow: 0 0 0 1px rgba(43, 108, 255, 0.3);
}

.customer-list-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* -------- 일정 보기(날짜별) 모달 -------- */
.customer-schedule-day-modal {
  position: fixed;
  inset: 0;
  z-index: 3095;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.customer-schedule-day-modal.hidden {
  display: none;
}

.customer-schedule-day-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.customer-schedule-day-modal__panel {
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.customer-schedule-day-modal__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.customer-schedule-day-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.customer-schedule-day-modal__close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 20px;
  color: #666;
  cursor: pointer;
}

.customer-schedule-day-modal__close:hover {
  background: #f0f0f0;
}

.customer-schedule-day-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  min-height: 60px;
}

.customer-schedule-day-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.customer-schedule-day-card:last-child {
  margin-bottom: 0;
}

.customer-schedule-day-card__body {
  margin-bottom: 10px;
}

.customer-schedule-day-card__body:last-child {
  margin-bottom: 0;
}

.customer-schedule-day-card__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.customer-schedule-day-card__btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #f0f0f0;
  color: #333;
}

.customer-schedule-day-card__btn:hover {
  background: #e5e5e5;
}

.customer-schedule-day-card__btn--edit {
  background: #2b6cff;
  color: #fff;
}

.customer-schedule-day-card__btn--edit:hover {
  background: #1a5ae6;
}

.customer-schedule-day-card__btn--delete {
  background: #fff;
  color: #c00;
  border: 1px solid #fcc;
}

.customer-schedule-day-card__btn--delete:hover {
  background: #fee;
}

.customer-schedule-day-empty {
  margin: 0;
  color: #888;
  font-size: 14px;
  text-align: center;
  padding: 12px 0;
}

.customer-schedule-day-row {
  margin-bottom: 14px;
}

.customer-schedule-day-row:last-child {
  margin-bottom: 0;
}

.customer-schedule-day-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #666;
  margin-bottom: 4px;
}

.customer-schedule-day-value {
  margin: 0;
  font-size: 14px;
  color: #333;
  white-space: pre-wrap;
  word-break: break-word;
}

.customer-schedule-day-list {
  margin: 0;
  padding-left: 18px;
}

.customer-schedule-day-list li {
  margin-bottom: 4px;
  font-size: 14px;
  color: #333;
}

.customer-schedule-day-tag {
  display: inline-block;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #2b6cff;
  background: rgba(43, 108, 255, 0.1);
  border-radius: 4px;
  margin-right: 6px;
}

.customer-schedule-day-modal__footer {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #eee;
}

.customer-schedule-day-modal__btn {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #f0f0f0;
  color: #333;
}

.customer-schedule-day-modal__btn:hover {
  background: #e5e5e5;
}

.customer-schedule-day-modal__btn--primary {
  background: #2b6cff;
  color: #fff;
}

.customer-schedule-day-modal__btn--primary:hover {
  background: #1a5ae6;
}

.customer-schedule-day-modal__btn--danger {
  background: #fff;
  color: #c00;
  border: 1px solid #fcc;
}

.customer-schedule-day-modal__btn--danger:hover {
  background: #fee;
}

.customer-schedule-day-modal__delete.hidden {
  display: none !important;
}

/* -------- 일정 편집 모달 -------- */
.customer-schedule-modal {
  position: fixed;
  inset: 0;
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.customer-schedule-modal.hidden {
  display: none;
}

.customer-schedule-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.customer-schedule-modal__panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.customer-schedule-modal__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.customer-schedule-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.customer-schedule-modal__close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 20px;
  color: #666;
  cursor: pointer;
}

.customer-schedule-modal__close:hover {
  background: #f0f0f0;
}

.customer-schedule-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.customer-schedule-form__group {
  margin-bottom: 14px;
}

.customer-schedule-form__group:last-child {
  margin-bottom: 0;
}

.customer-schedule-form__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #666;
  margin-bottom: 6px;
}

.customer-schedule-form__memo,
.customer-schedule-form__input {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
}

.customer-schedule-form__memo {
  resize: vertical;
  min-height: 60px;
}

.customer-schedule-customers {
  min-height: 36px;
  margin-bottom: 8px;
}

.customer-schedule-customer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-bottom: 4px;
  background: #f5f5f5;
  border-radius: 8px;
  font-size: 13px;
}

.customer-schedule-customer-item__label {
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #2b6cff;
  background: rgba(43, 108, 255, 0.1);
  border-radius: 4px;
}

.customer-schedule-customer-item__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-schedule-customer-item__remove {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #888;
  font-size: 16px;
  cursor: pointer;
}

.customer-schedule-customer-item__remove:hover {
  background: #fee;
  color: #c00;
}

.customer-schedule-add-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.customer-schedule-add-select {
  flex: 1;
  min-width: 100px;
  padding: 6px 8px;
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.customer-schedule-add-label {
  width: 90px;
  padding: 6px 8px;
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.customer-schedule-add-btn {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #2b6cff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.customer-schedule-add-btn:hover {
  background: #1a5ae6;
}

.customer-schedule-modal__footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid #eee;
  background: #f9f9f9;
}

.customer-schedule-modal__delete {
  padding: 6px 10px;
  font-size: 12px;
  color: #c00;
  background: transparent;
  border: 1px solid #fcc;
  border-radius: 6px;
  cursor: pointer;
}

.customer-schedule-modal__delete:hover {
  background: #fee;
}

.customer-schedule-modal__actions {
  display: flex;
  gap: 8px;
}

.customer-schedule-modal__cancel,
.customer-schedule-modal__save {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}

.customer-schedule-modal__cancel {
  background: #fff;
  border: 1px solid #ddd;
  color: #555;
}

.customer-schedule-modal__save {
  background: #2b6cff;
  border: none;
  color: #fff;
}

.customer-schedule-modal__save:hover {
  background: #1a5ae6;
}

/* -------- 카테고리 고객 일괄 추가 모달 (고객상세패널 위에 표시) -------- */
.customer-bulk-add-modal {
  position: fixed;
  inset: 0;
  z-index: 7200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.customer-bulk-add-modal.hidden {
  display: none;
}

.customer-bulk-add-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.customer-bulk-add-modal__panel {
  position: relative;
  width: 100%;
  max-width: 360px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.customer-bulk-add-modal__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.customer-bulk-add-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.customer-bulk-add-modal__close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 20px;
  color: #666;
  cursor: pointer;
}

.customer-bulk-add-modal__close:hover {
  background: #f0f0f0;
}

.customer-bulk-add-modal__toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
  font-size: 13px;
}

.customer-bulk-add-modal__check-all {
  cursor: pointer;
  font-weight: 500;
}

.customer-bulk-add-modal__count {
  color: #666;
  font-size: 12px;
}

.customer-bulk-add-modal__list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  max-height: 280px;
}

.customer-bulk-add-modal__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
}

.customer-bulk-add-modal__item:hover {
  background: #f5f5f5;
}

.customer-bulk-add-modal__item input {
  flex-shrink: 0;
}

.customer-bulk-add-modal__item span {
  flex: 1;
  min-width: 0;
}

.customer-bulk-add-modal__footer {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #eee;
}

.customer-bulk-add-modal__cancel,
.customer-bulk-add-modal__submit {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}

.customer-bulk-add-modal__cancel {
  background: #fff;
  border: 1px solid #ddd;
  color: #555;
}

.customer-bulk-add-modal__submit {
  background: #2b6cff;
  border: none;
  color: #fff;
}

.customer-bulk-add-modal__submit:hover {
  background: #1a5ae6;
}

/* -------- 연락기록 추가 모달 (연락이력 전용) -------- */
.customer-add-log-modal {
  position: fixed;
  inset: 0;
  /* 모바일에서 고객 상세 패널(7100) 위에 오도록 충분히 높게 설정 */
  z-index: 7200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.customer-add-log-modal.hidden {
  display: none;
}

.customer-add-log-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.customer-add-log-modal__panel {
  position: relative;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.customer-add-log-modal__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
}

.customer-add-log-modal__title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #111;
}

.customer-add-log-modal__close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 18px;
  color: #666;
  cursor: pointer;
}

.customer-add-log-modal__close:hover {
  background: #f0f0f0;
}

.customer-add-log-modal__body {
  padding: 10px 12px;
}

.customer-add-log-form__group {
  margin-bottom: 10px;
}

.customer-add-log-form__group:last-child {
  margin-bottom: 0;
}

.customer-add-log-form__label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #444;
  margin-bottom: 4px;
}

.customer-add-log-form__input,
.customer-add-log-form__textarea {
  width: 100%;
  padding: 6px 8px;
  font-size: 11px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
}

.customer-add-log-form__textarea {
  min-height: 80px;
  resize: vertical;
}

.customer-add-log-form__asset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.customer-add-log-form__asset-select {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  font-size: 11px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.customer-add-log-form__asset-add {
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #2b6cff;
  background: transparent;
  border: 1px solid rgba(43, 108, 255, 0.5);
  border-radius: 6px;
  cursor: pointer;
}

.customer-add-log-form__asset-add:hover {
  background: rgba(43, 108, 255, 0.1);
}

.customer-add-log-form__group--search {
  margin-top: 4px;
}

.customer-add-log-form__group--search .customer-add-log-form__asset-tags {
  margin-bottom: 8px;
}

.customer-add-log-form__search-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.customer-add-log-form__search-input {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  font-size: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.customer-add-log-form__search-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #2b6cff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.customer-add-log-form__search-btn:hover {
  background: #1a5ae6;
}

.customer-add-log-form__search-results {
  min-height: 0;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 6px;
  background: #fafafa;
}

.customer-add-log-form__search-results.has-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.customer-add-log-form__search-results .mini-card {
  cursor: pointer;
  margin: 0;
}

.customer-add-log-form__search-results .mini-card:hover {
  background: rgba(43, 108, 255, 0.06);
}

.customer-add-log-form__search-empty {
  margin: 0;
  padding: 12px;
  font-size: 12px;
  color: #666;
  text-align: center;
}

.customer-add-log-form__asset-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  min-height: 0;
}

.customer-add-log-form__asset-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 10px;
  background: rgba(43, 108, 255, 0.12);
  color: #2b6cff;
  border-radius: 4px;
}

.customer-add-log-form__asset-tag-remove {
  padding: 0;
  width: 14px;
  height: 14px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
}

.customer-add-log-form__asset-tag-remove:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #333;
}

.customer-add-log-modal__footer {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid #eee;
}

.customer-add-log-modal__cancel,
.customer-add-log-modal__submit {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.customer-add-log-modal__cancel {
  background: #fff;
  border: 1px solid #ddd;
  color: #555;
}

.customer-add-log-modal__submit {
  background: #2b6cff;
  border: none;
  color: #fff;
}

.customer-add-log-modal__submit:hover {
  background: #1a5ae6;
}

.customer-add-btn-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

/* 모바일에서만 보이는 카테고리 열기 버튼 (PC에서는 숨김) */
.customer-mobile-category-toggle {
  display: none;
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #2b6cff;
  background: rgba(43, 108, 255, 0.1);
  border: 1px solid rgba(43, 108, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.customer-mobile-category-toggle:hover {
  background: rgba(43, 108, 255, 0.18);
}

/* 카테고리 드로어 백드롭 (모바일에서 패널 열릴 때만 표시) */
.customer-categories-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3009;
  background: rgba(0, 0, 0, 0.35);
}

.customer-categories-backdrop.hidden {
  display: none !important;
}

.customer-add-btn {
  width: 100%;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #2b6cff;
  border-radius: 8px;
  background: rgba(43, 108, 255, 0.06);
  color: #2b6cff;
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.customer-add-btn:hover {
  background: rgba(43, 108, 255, 0.12);
  border-color: #1a5ae6;
}

.customer-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px 20px;
  -webkit-overflow-scrolling: touch;
}

/* PC 모드: 고객관리 517px 레이아웃 (세로 1열, 그리드 아님) */
@media (min-width: 901px) {
  .customer-list {
    padding: 12px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .customer-card {
    margin-bottom: 0;
    padding: 10px 12px;
  }

  .customer-card__phone {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .customer-card__condition-line {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .customer-card__date {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .customer-card__summary {
    font-size: 11px;
    -webkit-line-clamp: 2;
  }

  .customer-categories-panel {
    width: 162px;
    min-width: 146px;
  }

  .customer-add-btn-wrap {
    padding: 10px 16px;
  }

  .customer-calendar-wrap {
    padding: 10px 14px;
  }

  .customer-calendar {
    max-width: 280px;
    height: 130px;
    font-size: 11px;
  }
}

/* -------- 필터 버튼 -------- */
.customer-filter-wrap {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #eee;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.customer-filter-btn {
  flex-shrink: 0;
  height: 28px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #555;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.customer-filter-btn:hover {
  border-color: #2b6cff;
  color: #2b6cff;
}

.customer-filter-btn.active {
  background: #2b6cff;
  border-color: #2b6cff;
  color: #fff;
}

/* -------- 고객 카드 -------- */
.customer-card {
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 4px;
  border: 1px solid #eee;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.1s;
}

.customer-card.customer-card--detail-open {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.customer-card:hover {
  border-color: #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.customer-card__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.customer-card__star {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}

.customer-card__star:hover {
  transform: scale(1.15);
}

.customer-card__body {
  flex: 1;
  min-width: 0;
}

.customer-card__phone {
  font-weight: 700;
  font-size: 12px;
  color: #111;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.customer-card__type-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 6px;
  background: #f3e8ff;
  color: #6d28d9;
  font-size: 10px;
  font-weight: 700;
}

.customer-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 6px;
  background: #e3f2fd;
  color: #1976d2;
  font-size: 10px;
  font-weight: 700;
}

.customer-card__condition-line {
  font-size: 10px;
  color: #64748b;
  margin-bottom: 2px;
  line-height: 1.2;
  word-break: break-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-card__date {
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
}

.customer-card__note,
.customer-card__summary {
  font-size: 11px;
  color: #555;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.customer-card__actions {
  flex-shrink: 0;
  display: flex;
  gap: 2px;
  align-items: center;
}

.customer-card__action-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.customer-card__call {
  background: #03C75A;
}
.customer-card__call:hover {
  opacity: 0.9;
  color: #fff;
}
.customer-card__sms {
  background: #03C75A;
}
.customer-card__sms:hover {
  opacity: 0.9;
  color: #fff;
}
.customer-card__share {
  width: auto;
  min-width: 26px;
  padding: 0 6px;
  font-size: 11px;
  background: #2b6cff;
}
.customer-card__share:hover {
  background: #1a5ae6;
  color: #fff;
}

/* 네이버 스타일 전화/문자 버튼 (다른 곳에서 사용) */
.customer-action-btn {
  padding: 5px 8px;
  border: none;
  border-radius: 6px;
  background: #03C75A;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.customer-action-btn:hover {
  background: #02b350;
  color: #fff;
}

/* 세부내역서 내 추천 고객 카드 — 더 작게 */
.detailSheet__recommendedCustomersBlock .detailSheet__recommendedCustomerCard,
.detailSheet__recommendedCustomersBlock .customer-card {
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: 8px;
}
.detailSheet__recommendedCustomersBlock .customer-card__row {
  gap: 8px;
}
.detailSheet__recommendedCustomersBlock .customer-card__phone {
  font-size: 11px;
  margin-bottom: 2px;
}
.detailSheet__recommendedCustomersBlock .customer-card__summary {
  font-size: 11px;
  -webkit-line-clamp: 1;
}
.detailSheet__recommendedCustomersBlock .customer-card__actions {
  gap: 2px;
}
.detailSheet__recommendedCustomersBlock .customer-card__action-icon {
  width: 24px;
  height: 24px;
  font-size: 9px;
}
.detailSheet__recommendedCustomersBlock .customer-card__action-icon svg {
  width: 12px;
  height: 12px;
}
.detailSheet__recommendedCustomersBlock .customer-card__share {
  min-width: 24px;
  padding: 0 5px;
  font-size: 10px;
}

/* 세부내역서 추천 고객 없음 문구: 작은 폰트 */
.detailSheet__recommendedCustomersBlock .detailSheet__recommendedCustomerEmpty {
  font-size: 11px;
  color: #777;
}

/* 추천 고객 리스트 접기/펼치기 */
.detailSheet__recommendedCustomersList {
  max-height: none;
  position: relative;
}
.detailSheet__recommendedCustomersList--collapsed {
  /* 대략 2개 카드만 보이도록 높이 축소 */
  max-height: 110px;
  overflow: hidden;
}
.detailSheet__recommendedCustomersList--collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  /* 기본 배경이 흰색이라 옅은 회색 그라데이션으로 변경 */
  background: linear-gradient(
    to bottom,
    rgba(245, 245, 245, 0),
    rgba(230, 230, 230, 1)
  );
  pointer-events: none;
}
.detailSheet__recommendedToggle {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 6px;
  border: none;
  background: transparent;
  color: #555;
  cursor: pointer;
}
.detailSheet__recommendedToggle:hover {
  color: #000;
}

/* -------- 입력 폼 뷰 -------- */
.customer-form-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.customer-form {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  -webkit-overflow-scrolling: touch;
}

.customer-form__group {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.customer-form__group--files {
  margin-bottom: 12px;
}

.customer-form__group--date {
  display: none !important;
}

.customer-form__group--type-category .customer-form__type-block {
  margin-bottom: 10px;
}

.customer-form__label--category {
  margin-top: 4px;
}

.customer-form__files-wrap {
  min-height: 60px;
}

/* 고객 폼 첨부파일: 첨부 버튼 작게 */
.customer-form__files-wrap .detailSheet__gallery-upload {
  padding: 4px 0;
}

.customer-form__files-wrap .detailSheet__gallery-upload-zone {
  padding: 0;
  /* 고객 수정 모드에서는 업로드 버튼만 보이도록
     회색 테두리/배경 제거 */
  border: none;
  background: transparent;
}

.customer-form__files-wrap .detailSheet__gallery-upload-btns {
  gap: 4px;
}

.customer-form__files-wrap .detailSheet__gallery-upload-btn {
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 4px;
}

.customer-form__files-wrap .detailSheet__gallery-upload-btn + .detailSheet__gallery-upload-btn {
  margin-left: 0;
}

.customer-form__group--assets .customer-add-log-form__asset-tags {
  margin-bottom: 8px;
}

.customer-form__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #444;
  margin-bottom: 4px;
}

.customer-form__type-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.customer-form__type-btn {
  padding: 3px 8px;
  font-size: 10px;
  color: #555;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.customer-form__type-btn:hover {
  background: #e8e8e8;
  border-color: #ccc;
  color: #333;
}

.customer-form__type-btn.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.customer-form__input,
.customer-form__input--select,
.customer-form__textarea {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 11px;
  font-family: inherit;
}

.customer-form__input--select {
  cursor: pointer;
  background: #fff;
}

.customer-form__input:focus,
.customer-form__input--select:focus,
.customer-form__textarea:focus {
  outline: none;
  border-color: #2b6cff;
  box-shadow: 0 0 0 2px rgba(43, 108, 255, 0.2);
}

.customer-form__textarea {
  min-height: 80px;
  resize: vertical;
}

.customer-form__section-divider {
  font-size: 11px;
  font-weight: 700;
  color: #666;
  margin: 12px 0 8px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.customer-form__conditions {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.customer-form__conditions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.customer-form__conditions-row .customer-form__label {
  flex: 0 0 100px;
  font-size: 10px;
  margin-bottom: 0;
}

.customer-form__conditions-row span {
  font-size: 10px;
  color: #888;
}

.customer-form__input--short {
  flex: 1;
  min-width: 50px;
  max-width: 100px;
  padding: 5px 6px;
  font-size: 11px;
}

.customer-form__conditions-guide {
  margin: -2px 0 10px 0;
  padding-left: 0;
  font-size: 9px;
  color: #64748b;
  line-height: 1.4;
}

.customer-form__actions {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid #eee;
  background: #fff;
}

.customer-form__submit,
.customer-form__cancel {
  flex: 1;
  height: 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
}

.customer-form__submit {
  border: none;
  background: #2b6cff;
  color: #fff;
}

.customer-form__submit:hover {
  background: #1a5ae6;
}

.customer-form__cancel {
  border: 1px solid #ddd;
  background: #fff;
  color: #555;
}

.customer-form__cancel:hover {
  background: #f5f5f5;
}

/* -------- 고객 상세 뷰 -------- */
.customer-detail-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  /* 상세 헤더(전화/유형/카테고리)부터 요약/연락이력/매물조건까지
     전체가 하나의 스크롤 영역이 되도록 처리 */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.customer-detail__header {
  flex-shrink: 0;
  padding: 10px 14px 12px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.customer-detail__header .customer-detail__section-title {
  margin-bottom: 2px;
  padding-bottom: 0;
}

.customer-detail__phone-row {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 8px;
}

.customer-detail__phone-row .customer-detail__action-icon {
  margin-left: 2px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.customer-detail__phone-row .customer-detail__action-icon:first-of-type {
  margin-left: auto;
}
.customer-detail__phone-row .customer-detail__call {
  background: #03C75A;
}
.customer-detail__phone-row .customer-detail__call:hover {
  opacity: 0.9;
}
.customer-detail__phone-row .customer-detail__sms {
  background: #03C75A;
}
.customer-detail__phone-row .customer-detail__sms:hover {
  opacity: 0.9;
}
.customer-detail__phone-row .customer-detail__share {
  width: auto;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  font-size: 11px;
  background: #2b6cff;
  color: #fff;
}
.customer-detail__phone-row .customer-detail__share:hover {
  background: #1a5ae6;
  color: #fff;
}

.customer-detail__phone-row .customer-detail__delete {
  width: auto;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  font-size: 11px;
  background: transparent;
  color: #dc3545;
  border: 1px solid #dc3545;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.customer-detail__phone-row .customer-detail__delete:hover {
  background: #dc3545;
  color: #fff;
}

.customer-detail__phone {
  font-size: 12px;
  font-weight: 700;
  color: #111;
}

.customer-detail__type-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 11px;
}

.customer-detail__type-label {
  flex-shrink: 0;
  color: #666;
  font-weight: 600;
}

.customer-detail__type-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.customer-detail__type-btn {
  padding: 3px 8px;
  font-size: 10px;
  color: #555;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: default;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  /* 뷰모드에서는 유형 변경을 막기 위해 클릭 비활성화 */
  pointer-events: none;
}

.customer-detail__type-btn:hover {
  background: #e8e8e8;
  border-color: #ccc;
  color: #333;
}

.customer-detail__type-btn.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

/* 뷰모드: 유형 + 카테고리를 하나의 카드처럼 묶기 */
.customer-detail__type-category-wrap {
  margin-bottom: 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.customer-detail__type-category-wrap .customer-detail__category-wrap {
  margin-top: 8px;
}

.customer-detail__star {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.customer-detail__category-wrap {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.customer-detail__category-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.customer-detail__category-row .customer-detail__section-title {
  margin-bottom: 0;
  padding-bottom: 0;
}

.customer-detail__category-row .customer-detail__category-add-wrap {
  margin-left: auto;
  margin-top: 0;
}

.customer-detail__category-list {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-left: 6px;
  margin-top: 0;
  min-height: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.customer-detail__category-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 600;
  color: #2b6cff;
  background: rgba(43, 108, 255, 0.1);
  border-radius: 6px;
}

.customer-detail__category-tag-remove {
  padding: 0;
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #666;
  font-size: 12px;
  line-height: 1;
  cursor: default;
  pointer-events: none;
}

.customer-detail__category-tag-remove:hover {
  background: rgba(0,0,0,0.08);
  color: #c00;
}

.customer-detail__category-add-wrap {
  margin-top: 0;
}

.customer-detail__category-add-select {
  width: 100%;
  max-width: 200px;
  padding: 5px 8px;
  font-size: 11px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
}

.customer-detail__actions-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}


.customer-detail__add-log {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 10px;
  border: 2px solid #2b6cff;
  border-radius: 6px;
  background: transparent;
  color: #2b6cff;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
}

.customer-detail__add-log:hover {
  background: rgba(43, 108, 255, 0.08);
}

.customer-detail__body {
  flex: 0 0 auto;
  padding: 12px 14px;
  padding-bottom: 28px;
}

.customer-detail__footer.detailSheet__footer {
  margin-left: 8px;
  margin-right: 8px;
  width: calc(100% - 16px);
  padding: 10px 14px 12px;
}

.customer-detail__section-title {
  font-size: 11px;
  font-weight: 700;
  color: #555;
  margin-bottom: 6px;
  padding-bottom: 2px;
  letter-spacing: -0.02em;
}

.customer-detail__summary-section {
  margin-bottom: 12px;
}

.customer-detail__summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.customer-detail__summary-row .customer-detail__section-title {
  margin-bottom: 0;
}

.customer-detail__summary-edit {
  flex-shrink: 0;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #2b6cff;
  background: transparent;
  border: 1px solid rgba(43, 108, 255, 0.5);
  border-radius: 6px;
  cursor: pointer;
}

.customer-detail__summary-edit:hover {
  background: rgba(43, 108, 255, 0.08);
}

.customer-detail__summary-text {
  font-size: 12px;
  color: #333;
  line-height: 1.5;
  white-space: pre-wrap;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  min-height: 2.5em;
}

.customer-detail__summary-text.hidden {
  display: none;
}

.customer-detail__summary-edit-wrap {
  margin-top: 4px;
}

.customer-detail__summary-edit-wrap.hidden {
  display: none;
}

.customer-detail__summary-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: vertical;
  min-height: 60px;
}

.customer-detail__summary-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
}

.customer-detail__summary-cancel,
.customer-detail__summary-save {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.customer-detail__summary-cancel {
  background: #f0f0f0;
  border: 1px solid #ddd;
  color: #555;
}

.customer-detail__summary-cancel:hover {
  background: #e5e5e5;
}

.customer-detail__summary-save {
  background: #2b6cff;
  border: none;
  color: #fff;
}

.customer-detail__summary-save:hover {
  background: #1a5ae6;
}

.customer-detail__section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.customer-detail__section-row .customer-detail__section-title {
  margin-bottom: 0;
  padding-bottom: 0;
}

.customer-detail__add-log-btn {
  flex-shrink: 0;
  padding: 4px 10px;
  border: 1px solid #2b6cff;
  border-radius: 6px;
  background: rgba(43, 108, 255, 0.06);
  color: #2b6cff;
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
}

.customer-detail__add-log-btn:hover {
  background: rgba(43, 108, 255, 0.12);
}

/* -------- 매물 조건 (추천 매칭) - 큰 분류 흰색 카드 -------- */
.customer-detail__conditions-wrap {
  margin-bottom: 12px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.customer-detail__conditions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  min-height: 24px;
}

.customer-detail__conditions-row:last-of-type {
  margin-bottom: 8px;
}

.customer-detail__conditions-label {
  flex: 0 0 90px;
  font-size: 10px;
  font-weight: 600;
  color: #475569;
  line-height: 1.3;
}

.customer-detail__conditions-input,
.customer-detail__conditions-select {
  flex: 1;
  min-width: 0;
  padding: 4px 6px;
  font-size: 11px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

/* 뷰모드: 세부내역서처럼 네모칸 없이 값만 오른쪽 정렬 */
.customer-detail__conditions-input:disabled,
.customer-detail__conditions-select:disabled {
  background: transparent;
  border: none;
  border-radius: 0;
  color: #334155;
  font-size: 11px;
  font-weight: 500;
  cursor: default;
  text-align: right;
  padding: 4px 0;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.customer-detail__conditions-select:disabled {
  background-image: none;
}

.customer-detail__conditions-sep {
  flex-shrink: 0;
  font-size: 10px;
  color: #94a3b8;
}

.customer-detail__conditions-guide {
  margin: 2px 0 0 90px;
  font-size: 10px;
  color: #64748b;
  line-height: 1.45;
}

@media (max-width: 480px) {
  .customer-detail__conditions-guide {
    margin-left: 0;
  }
}

.customer-detail__conditions-save {
  display: block;
  margin-top: 2px;
  margin-left: auto;
  min-width: 36px;
  width: max-content;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: #9ca3af;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-sizing: border-box;
}

.customer-detail__conditions-save:hover {
  background: #6b7280;
}

/* -------- 추천매물 (고객 상세 전용) -------- */
.customer-detail__recommended-wrap {
  margin-bottom: 16px;
  min-height: 24px;
}

.customer-detail__recommended-visible,
.customer-detail__recommended-collapsed {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-detail__recommended-collapsed.hidden {
  display: none !important;
}

.customer-detail__recommended-toggle {
  margin-top: 6px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  color: #2b6cff;
  background: transparent;
  border: 1px solid rgba(43, 108, 255, 0.4);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.customer-detail__recommended-toggle:hover {
  background: rgba(43, 108, 255, 0.08);
  color: #1a5ae6;
}

.customer-detail__recommended-asset {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  color: #1976d2;
  background: #e3f2fd;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.customer-detail__recommended-asset:hover {
  background: #bbdefb;
  color: #0d47a1;
}

/* -------- 고객 첨부파일 (최상단, 세부내역서처럼 작게) -------- */
.customer-detail__files-top {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #f5f6f8;
  border-radius: 8px;
  border-bottom: none;
}

.customer-detail__files-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.customer-detail__files-row .customer-detail__section-title--inline {
  margin-bottom: 0;
  padding-bottom: 0;
}

.customer-detail__files-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 8px;
}

.customer-detail__files-wrap .detailSheet__gallery {
  min-height: 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
  flex: 1 1 100%;
  width: 100%;
}

.customer-detail__files-wrap .detailSheet__gallery-track {
  display: flex;
  gap: 6px;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.customer-detail__files-wrap .detailSheet__gallery-thumb {
  width: 56px;
  height: 56px;
  border-radius: 4px;
}

.customer-detail__files-wrap .detailSheet__gallery-compact .detailSheet__gallery-thumb {
  width: 56px;
  height: 56px;
}

.customer-detail__files-wrap .detailSheet__gallery-countbadge {
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  line-height: 18px;
}

.customer-detail__files-wrap .detailSheet__gallery-item {
  flex-shrink: 0;
}

.customer-detail__files-wrap .detailSheet__gallery--empty {
  min-height: 56px;
  font-size: 10px;
}

.customer-detail__files-wrap .detailSheet__gallery--empty::before {
  font-size: 10px;
  letter-spacing: 0.02em;
  justify-content: center;
  padding-left: 0;
  text-align: center;
  white-space: nowrap;
}

.customer-detail__files-wrap .detailSheet__gallery-delete {
  width: 18px;
  height: 18px;
  top: 2px;
  right: 2px;
  font-size: 12px;
}

.customer-detail__files-wrap .detailSheet__gallery-mainbadge,
.customer-detail__files-wrap .detailSheet__gallery-mainbtn {
  font-size: 9px;
  padding: 1px 4px;
}

.customer-detail__files-wrap .detailSheet__gallery-upload {
  padding: 4px 0;
}

.customer-detail__files-wrap .detailSheet__gallery-upload-zone {
  padding: 8px 10px;
  border-width: 1px;
}

.customer-detail__files-wrap .detailSheet__gallery-upload-btns {
  gap: 4px;
}

.customer-detail__files-wrap .detailSheet__gallery-upload-btn {
  padding: 2px 5px;
  font-size: 10px;
  border-radius: 4px;
}

.customer-detail__files-wrap .detailSheet__gallery-upload-btn + .detailSheet__gallery-upload-btn {
  margin-left: 0;
}

.customer-detail__files-save {
  flex-shrink: 0;
  min-width: 36px;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: #9ca3af;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.customer-detail__files-save:hover {
  background: #6b7280;
}

/* -------- 연락 이력 (흰색 카드) -------- */
.customer-detail__timeline-card {
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid #eee;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* -------- 연락 로그 타임라인 -------- */
.customer-timeline {
  position: relative;
  padding-left: 24px;
}

.customer-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e0e0e0;
}

.customer-timeline__item {
  position: relative;
  padding-bottom: 14px;
}

.customer-timeline__item:last-child {
  padding-bottom: 0;
}

.customer-timeline__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.customer-timeline__delete {
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: #f5f5f5;
  color: #888;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.customer-timeline__delete:hover {
  background: #fee;
  color: #c00;
}

.customer-timeline__dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2b6cff;
  border: 3px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.customer-timeline__date {
  font-size: 10px;
  color: #888;
  margin-bottom: 4px;
}

.customer-timeline__summary {
  font-size: 11px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}

.customer-timeline__note {
  font-size: 11px;
  color: #444;
  line-height: 1.55;
  white-space: pre-wrap;
  background: #fafafa;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.customer-timeline__asset-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.customer-timeline__asset-tag {
  margin: 0;
}

/* 연락 이력 매물: 미니카드 (정보 풀 표시, 크기만 약간 축소) */
.customer-timeline__asset-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.customer-timeline__mini-card-wrap {
  flex: 0 0 auto;
}

/* 연락 이력 내 미니카드: 기존 대비 조금만 작게 (썸네일 60px, 폰트 약 92%) */
.customer-timeline__asset-cards .customer-timeline__mini-card-wrap .mini-card {
  font-size: 12px;
}

.customer-timeline__asset-cards .customer-timeline__mini-card-wrap .mini-card .mini-card-thumb,
.customer-timeline__asset-cards .customer-timeline__mini-card-wrap .mini-card .mini-card-thumb-wrap .mini-card-thumb {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
}

.customer-timeline__asset-cards .customer-timeline__mini-card-wrap .mini-card .mini-card-price {
  font-size: 12px;
}

.customer-timeline__asset-cards .customer-timeline__mini-card-wrap .mini-card .mini-card-name {
  font-size: 12px;
}

.customer-timeline__asset-cards .customer-timeline__mini-card-wrap .mini-card .mini-card-shortmemo {
  font-size: 11px;
}

/* 폴백: 상세 조회 실패 시 라벨만 보이는 작은 카드 */
.customer-timeline__mini-card {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 160px;
  padding: 4px 6px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.customer-timeline__mini-card:hover {
  background: #f5f8ff;
  border-color: rgba(43, 108, 255, 0.4);
}

.customer-timeline__mini-card-thumb {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #eee;
  border: 1px solid #e0e0e0;
}

.customer-timeline__mini-card-body {
  flex: 1;
  min-width: 0;
}

.customer-timeline__mini-card-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 빈 목록 -------- */
.customer-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: #888;
}

.customer-empty__icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.customer-empty__text {
  font-size: 12px;
  line-height: 1.5;
}

/* -------- 뷰 전환 (hidden) -------- */
.customer-list-view.hidden,
.customer-form-view.hidden,
.customer-detail-view.hidden {
  display: none !important;
}

/* ===============================
   모바일: 가로폭 좁을 때 대응
   - 카테고리 패널 → 슬라이드 드로어
   - 리스트 영역 전체 가로 사용
   =============================== */
@media (max-width: 768px) {
  .customer-mobile-category-toggle {
    display: inline-flex;
    align-items: center;
  }

  .customer-add-btn {
    flex: 1;
    min-width: 0;
  }

  .customer-categories-backdrop:not(.hidden) {
    display: block;
  }

  /* 카테고리 패널: 화면 밖에 두었다가 열 때만 슬라이드 인 */
  .customer-categories-panel {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    max-width: 85vw;
    min-width: 0;
    z-index: 3010;
    transform: translateX(-100%);
    transition: transform 0.2s ease-out;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
  }

  .customer-categories-panel.is-open {
    transform: translateX(0);
  }

  .customer-list-area {
    width: 100%;
    min-width: 0;
  }

  /* 달력/카드 등 넘침 방지 */
  .customer-calendar-wrap {
    min-width: 0;
    overflow: hidden;
  }

  .customer-list {
    min-width: 0;
  }
}
