body {
  /* 좌측 여백 제거 + 상하 여백 제거로 세로 전체 채움 */
  padding: 0 20px 0 0;
  background: #f5f5f5;
}

.list-container {
  max-width: 1;
  /* 가운데 정렬 해제하여 좌측 정렬 */
  margin: 0;
}

.list-layout {
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
  /* 헤더 영역 제외하여 리스트 영역 높이 계산 */
  min-height: calc(100vh - 60px);
}

.list-sidebar {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  /* 상단바 아래 고정, 가시높이 전부 사용 */
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow: auto;
}

.list-content {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 24px;
  min-height: 400px;
}

.collapsible-filters {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.filter-collapse-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f3f4f6;
}

.filter-collapse-title {
  font-weight: 700;
  color: #374151;
  font-size: 15px;
}

.filter-collapse-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  color: #1f2937;
  transition: all 0.15s ease;
}

.filter-collapse-toggle:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.filter-collapse-icon {
  transition: transform 0.2s ease;
}

.filter-collapse[data-collapsed="true"] .filter-collapse-icon {
  transform: rotate(180deg);
}

.filter-collapse-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-collapse[data-collapsed="true"] .filter-collapse-body {
  display: none;
}

.filter-collapse[data-collapsed="true"] .area-settings-btn {
  display: none;
}

@media (min-width: 1200px) {
  .collapsible-filters {
    padding: 0;
    border: none;
    background: transparent;
  }

  .filter-collapse-header {
    display: none;
  }

  .filter-collapse-body {
    display: flex !important;
  }
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-primary-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.sidebar-primary-actions.single {
  justify-content: stretch;
}

.sidebar-primary-actions .refresh-btn {
  flex: 1;
  white-space: nowrap;
}

.list-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e0e0e0;
}

.list-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  justify-content: flex-end;
}

.list-header-actions button {
  min-width: 120px;
}

.list-header h1 {
  margin: 0;
  font-size: 26px;
  color: #333;
}

.refresh-btn {
  padding: 8px 16px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.bulk-action-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.bulk-history-btn {
  padding: 10px 16px;
  background: #0D47A1;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s ease;
  flex: 1;
}

.bulk-history-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

.bulk-history-btn:not([disabled]):hover {
  background: #0b3c88;
}

.bulk-clear-btn {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #374151;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.bulk-clear-btn:hover {
  border-color: #9ca3af;
  color: #0D47A1;
}

.refresh-btn:hover {
  background: #0056b3;
}

.search-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-filter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  flex-shrink: 0;
}

.category-filter-buttons,
.area-filter-buttons {
  display: grid;
  gap: 6px;
}

.category-filter-buttons {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.area-filter-buttons {
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

.category-filter-buttons button,
.area-filter-buttons button {
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f8fafc;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}

.category-filter-buttons button:hover,
.area-filter-buttons button:hover {
  border-color: #0D47A1;
  /* 짙은 파랑 */
  color: #0D47A1;
}

.category-filter-buttons button.active,
.area-filter-buttons button.active {
  background: #0D47A1;
  /* 짙은 파랑 */
  border-color: #0D47A1;
  color: #fff;
  box-shadow: 0 2px 8px rgba(13, 71, 161, 0.25);
}

.category-filter-buttons .placeholder {
  visibility: hidden;
  pointer-events: none;
}

.filter-panel {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.filter-panel-title {
  margin: 0;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  border-bottom: 1px solid #e5e7eb;
  background: #eef2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.area-settings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.area-settings-btn:hover {
  background: #e5e7eb;
  color: #374151;
}

.area-settings-btn:active {
  background: #d1d5db;
}

.area-settings-btn svg {
  transition: transform 0.3s ease;
}

.area-settings-btn:hover svg {
  transform: rotate(45deg);
}

.filter-panel-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-box input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.equipment-list {
  display: grid;
  gap: 12px;
}

.equipment-item {
  display: block;
  padding: 20px 50px 20px 90px;
  /* 좌측 썸네일 공간 + 우측 구분 라벨 공간 */
  margin-left: 35px;
  /* 체크박스 공간 확보 */
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  position: relative;
  overflow: visible;
}

/* 썸네일 영역 (좌측 배경) */
.equipment-thumb-area {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 75px;
  background: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid #e0e0e0;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.equipment-thumb-area.equipment-thumb-empty {
  background: linear-gradient(135deg, #e8eef5 0%, #f5f7fa 100%);
}

.equipment-thumb-area.equipment-thumb-empty::before {
  content: '';
  width: 28px;
  height: 28px;
  background: #c8d4e0;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.5;
}

.equipment-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.equipment-item.readonly {
  color: #9ca3af;
}

.equipment-item.readonly .info-value,
.equipment-item.readonly .info-inline-label,
.equipment-item.readonly .info-inline-value,
.equipment-item.readonly .equipment-status,
.equipment-item.readonly .info-inline,
.equipment-item.readonly .info-inline-list {
  color: inherit;
}

.equipment-item.readonly .status-badge {
  filter: grayscale(0.4);
  opacity: 0.7;
}

.readonly-label {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.equipment-select {
  position: absolute;
  top: 50%;
  left: -42px;
  transform: translateY(-50%);
  /* 카드 왼쪽 마진 공간에 배치, 세로 중앙 정렬 */
  right: auto;
  z-index: 3;
  background: transparent;
  border-radius: 4px;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.equipment-select input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #0D47A1;
  cursor: pointer;
}

.equipment-thumbnail {
  width: 70px;
  height: 90px;
  border-radius: 6px;
  object-fit: cover;
  object-position: center;
  border: 1px solid #e0e0e0;
  background: #f5f5f5;
  cursor: default;
  flex-shrink: 0;
}

/* 썸네일 확대 기능 제거에 따라 hover 효과 비활성화 */
.equipment-thumbnail-placeholder {
  width: 70px;
  height: 90px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 13px;
  flex-shrink: 0;
}

.equipment-item:hover {
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
  transform: translateY(-2px);
}

.equipment-item.selected {
  border: 3px solid #0D47A1;
  box-shadow: none;
  background: #f0f5ff;
  transition: none;
}

.equipment-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 새로운 설비 카드 스타일 (이력 카드 참고) */
.equipment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.equipment-model {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
}

.equipment-serial {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.equipment-status {
  margin-left: auto;
  flex-shrink: 0;
}

.equipment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 4px;
}

.equipment-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #4b5563;
}

.equipment-meta-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #9ca3af;
}

.equipment-meta-item .meta-label {
  color: #9ca3af;
  font-weight: 500;
}

.equipment-meta-item .meta-value {
  font-weight: 600;
  color: #374151;
}

.equipment-meta-item.calibration-warning .meta-value {
  color: #dc2626;
  font-weight: 700;
}

/* 읽기전용 라벨 */
.readonly-label {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

/* 기존 스타일 유지 (하위 호환) */
.info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-item.model-item {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.info-item.model-item .info-value {
  flex-shrink: 0;
}

.info-item.model-item .info-value {
  font-size: 20px;
}

.info-value {
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

.info-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.info-headline .model-wrapper {
  flex: 1;
  min-width: 0;
}

.info-inline-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4px 12px;
}

.info-inline {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #333;
  gap: 2px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-inline-label {
  color: #666;
  font-weight: 500;
  font-size: 13px;
}

.info-inline-label::after {
  content: ' : ';
  color: #b0b0b0;
  margin-left: 2px;
  margin-right: 2px;
}

.info-inline-value {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state h2 {
  margin: 0 0 10px 0;
  color: #666;
}

.view-filter {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.view-filter-label {
  font-size: 14px;
  font-weight: 600;
  color: #444;
}

.view-filter-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.view-filter-buttons button {
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f8fafc;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}

.view-filter-buttons button:hover {
  border-color: #0d6efd;
  color: #0d6efd;
}

.view-filter-buttons button.active {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.25);
}

.info-inline-value.calibration-elapsed {
  font-size: 16px;
  font-weight: 700;
  color: #b91c1c;
}

@media (max-width: 1200px) {
  .list-layout {
    grid-template-columns: 1fr;
  }

  .list-sidebar {
    position: static;
    height: auto;
    /* 모바일/좁은 화면에서는 자동 높이 */
    overflow: visible;
  }

  .list-header-actions {
    justify-content: flex-start;
  }

  /* 사이드바가 상단으로 올라갔을 때 버튼을 가로로 배치 */
  .category-filter-buttons {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .category-filter-buttons .category-filter-btn[data-category="all"] {
    grid-column: 1 / -1;
    /* 전체 버튼은 여전히 한 줄 차지 */
  }

  .view-filter-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Category badge styles */
.category-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  background: #6c757d;
  /* default gray */
}

.category-badge.cmm {
  background: #0D47A1;
}

/* 짙은 파랑 */
.category-badge.vmm {
  background: #037c62;
}

/* 바다색 */
.category-badge.form {
  background: #8B4513;
}

/* 갈색 */
.category-badge.others {
  background: #6c757d;
}

/* 회색 */
/* Category index label (diary style) */
.category-index-label {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  z-index: 1;
  border-radius: 0 6px 6px 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.category-index-label.cmm {
  background: #0D47A1;
}

.category-index-label.vmm {
  background: #037c62;
}

.category-index-label.form {
  background: #8B4513;
}

.category-index-label.others {
  background: #6c757d;
}

/* Status badge styles */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  letter-spacing: 0.2px;
}

.status-badge.normal {
  background: #27811e;
}

/* 녹색 - 정상 */
.status-badge.partial_fault {
  background: #b48305;
  color: #fff;
}

/* 짙은노랑 - 부분고장 */
.status-badge.unusable {
  background: #a72330;
}

/* 빨강 - 사용불가 */
.status-badge.outbound {
  background: #007bff;
}

/* 파랑 - 반출중 */
.status-badge.sold {
  background: #000000;
}

/* 검정 - 판매됨 */

/* Mobile Optimizations */
@media (max-width: 768px) {
  body {
    padding: 0 10px 0 0;
    /* Reduce right padding */
  }

  .list-layout {
    gap: 16px;
  }

  .list-sidebar {
    padding: 16px;
  }

  .list-content {
    padding: 8px;
    /* 모바일에서 패딩 축소 */
  }

  .equipment-list {
    gap: 8px;
    /* 모바일에서 카드 간격 축소 */
  }

  /* 모바일에서는 버튼을 다시 2열로 배치 (너무 작아지는 것 방지) */
  .category-filter-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view-filter-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .equipment-item {
    padding: 15px 5px 15px 65px;
    /* Reduce padding for mobile */
    margin-left: 0;
    /* 체크박스 숨김으로 왼쪽 마진 제거 */
    display: block;
    /* Ensure block display */
  }

  .equipment-thumb-area {
    width: 60px;
    left: 0;
  }

  .equipment-select {
    display: none;
    /* 모바일에서 체크박스 숨기기 */
  }

  .equipment-thumbnail,
  .equipment-thumbnail-placeholder {
    width: 60px;
    height: 80px;
  }

  .category-index-label {
    width: 30px;
    font-size: 12px;
  }

  .info-headline {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 8px;
  }

  .equipment-status {
    width: 100%;
    justify-content: flex-start;
    margin-top: 4px;
  }

  .info-value {
    font-size: 16px;
  }

  .info-item.model-item .info-value {
    font-size: 18px;
  }

  .info-inline-list {
    grid-template-columns: 1fr;
    /* Stack inline items */
    gap: 2px;
  }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content-inner {
  background: white;
  padding: 24px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-content-inner h2 {
  margin: 0 0 16px 0;
  font-size: 22px;
  color: #333;
}

.modal-content-inner>p {
  margin: 0 0 16px 0;
  color: #666;
  font-size: 16px;
}

.modal-content-inner label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.modal-content-inner label.required>span {
  font-weight: 600;
}

.modal-content-inner label>span {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.modal-content-inner input[type="text"],
.modal-content-inner input[type="date"],
.modal-content-inner select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  font-family: Pretendard;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.modal-content-inner input[type="text"]:focus,
.modal-content-inner input[type="date"]:focus,
.modal-content-inner select:focus {
  outline: none;
  border-color: #007bff;
}

.error-text {
  color: #dc2626;
  font-size: 14px;
  margin-top: 4px;
  display: none;
}

.error-text:not(:empty) {
  display: block;
}

#newEquipmentError {
  color: #dc2626;
  font-size: 14px;
  display: none;
  margin-bottom: 16px;
}

#newEquipmentError:not(:empty) {
  display: block;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.modal-actions button {
  padding: 8px 16px;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

/* New form layout */
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .row-2 {
    grid-template-columns: 1fr;
  }
}

/* Region radio as square buttons */
.region-group,
.choice-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 640px) {

  .region-group,
  .choice-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 380px) {

  .region-group,
  .choice-group {
    grid-template-columns: 1fr;
  }
}

.region-option,
.choice-option {
  position: relative;
  width: 100%;
}

.region-option input,
.choice-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.region-option span,
.choice-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #333;
  width: 100%;
  text-align: center;
  user-select: none;
  transition: all .15s ease;
  box-sizing: border-box;
}

.region-option span:hover,
.choice-option span:hover {
  border-color: #0d6efd;
}

.region-option input:checked+span,
.choice-option input:checked+span {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

/* Middle/Minor evenly split */
.location-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 560px) {
  .location-subgrid {
    grid-template-columns: 1fr;
  }
}

/* Prevent grid children overflow */
.row-2>* {
  min-width: 0;
}

.location-subgrid>* {
  min-width: 0;
}

.sub-label {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

#newEquipmentCancel {
  background: #6c757d;
}

#newEquipmentCancel:hover {
  background: #5a6268;
}

#newEquipmentConfirm {
  background: #28a745;
}

#newEquipmentConfirm:hover {
  background: #218838;
}

/* 지역 표시 설정 모달 */
.area-settings-modal {
  max-width: 400px;
}

.area-settings-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.area-setting-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 0 !important;
  flex-direction: row !important;
}

.area-setting-option:hover {
  border-color: #0D47A1;
  background: #f0f4ff;
}

.area-setting-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0D47A1;
  cursor: pointer;
  flex-shrink: 0;
}

.area-setting-option input[type="checkbox"]:checked+span {
  color: #0D47A1;
  font-weight: 600;
}

.area-setting-option span {
  font-size: 15px;
  color: #374151;
  font-weight: 500;
}

#areaSettingsCancel {
  background: #6c757d;
}

#areaSettingsCancel:hover {
  background: #5a6268;
}

#areaSettingsConfirm {
  background: #0D47A1;
}

#areaSettingsConfirm:hover {
  background: #0b3c88;
}

#btnAssetMgmt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #1a237e;
  /* 짙은 남색 */
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(26, 35, 126, 0.2);
}

#btnAssetMgmt:hover {
  background-color: #0d47a1;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(26, 35, 126, 0.3);
}

#btnAssetMgmt:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(26, 35, 126, 0.2);
}

/* 설비 카드 반응형: 화면 크기에 따라 특정 라벨 숨김 */
@media (max-width: 1000px) {
  /* 위치 라벨 숨김 (네 번째 equipment-meta-item) */
  .equipment-meta-item:nth-child(4) {
    display: none;
  }
}

@media (max-width: 800px) {
  /* 설치일 라벨 숨김 (두 번째 equipment-meta-item) */
  .equipment-meta-item:nth-child(2) {
    display: none;
  }
}

@media (max-width: 600px) {
  /* Code No 숨김 (첫 번째 equipment-meta-item) */
  .equipment-meta-item:nth-child(1) {
    display: none;
  }
}
