/* hiq_ux.css — 운영자 UX 개선 공통 스타일 (2026-05-22) */

/* [1] flag 상태별 색상 배지 — 리스트의 "상태" 셀에 적용 */
.hiq-flag-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  min-width: 42px;
  text-align: center;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.hiq-flag-P { background: #FFD54F; color: #5D4037; }  /* 진행중 */
.hiq-flag-T { background: #81C784; color: #1B5E20; }  /* 완료 */
.hiq-flag-R { background: #FFB74D; color: #6D4C41; }  /* 대기 */
.hiq-flag-C { background: #BDBDBD; color: #424242; }  /* 픽업취소 */
.hiq-flag-B { background: #90CAF9; color: #0D47A1; }  /* 검수 */
.hiq-flag-Q { background: #CE93D8; color: #4A148C; }  /* 접수대기 */
.hiq-flag-S { background: #F48FB1; color: #880E4F; }  /* 기타 */
.hiq-flag-empty { background: #ECEFF1; color: #607D8B; }

/* [9] 일괄 작업 로딩 오버레이 */
.hiq-loading-overlay {
  position: fixed; top:0; left:0; right:0; bottom:0;
  background: rgba(255,255,255,0.75);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #333;
  font-weight: 500;
}
.hiq-loading-overlay::before {
  content: ''; width: 36px; height: 36px;
  border: 4px solid #ddd; border-top-color: #5a4427;
  border-radius: 50%;
  animation: hiqSpin 0.8s linear infinite;
  margin-right: 14px;
}
@keyframes hiqSpin { to { transform: rotate(360deg); } }

/* [3] 작업 상세 prev/next + 액션 버튼 통일 스타일 */
.hiq-pn-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  vertical-align: middle;
}
/* 액션 라인 — 좌측(수리/픽업폼인쇄) ↔ 우측(prev/next + 부품등록)
   본문 .line_block 이 1110px 기준으로 잡혀 있어 액션바도 동일 고정 폭으로 우측 끝을 정렬 */
.hiq-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
  clear: both;
  width: 1110px;
  max-width: 1110px;
  box-sizing: border-box;
}
.hiq-action-left,
.hiq-action-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.hiq-pn-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 14px;
  border: 1px solid #BDBDBD;
  border-radius: 4px;
  background: #FAFAFA;
  color: #5a4427;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  vertical-align: middle;
}
button.hiq-pn-btn { margin: 0; }
.hiq-pn-btn:hover {
  background: #5a4427;
  color: #fff;
  border-color: #5a4427;
}
.hiq-pn-btn.hiq-pn-disabled {
  color: #BDBDBD;
  background: #F5F5F5;
  border-color: #E0E0E0;
  cursor: not-allowed;
  pointer-events: none;
}
.hiq-pn-arrow {
  font-size: 14px;
  line-height: 1;
}
.hiq-pn-spacer {
  display: inline-block;
  width: 14px;
}

/* prev/next 호버 카드 — 버튼 아래 떠오르는 작업 미리보기 */
.hiq-pn-card {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  margin-top: 6px;
  z-index: 1000;
  background: #fff;
  border: 1px solid #B0BEC5;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  padding: 10px 14px;
  min-width: 260px;
  max-width: 340px;
  color: #333;
  text-align: left;
  white-space: normal;
  cursor: default;
}
.hiq-pn-btn[data-pn="next"] .hiq-pn-card { left: auto; right: 0; }
.hiq-pn-btn:hover .hiq-pn-card { display: block; }
.hiq-pn-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid #ECEFF1;
}
.hiq-pn-card-code {
  font-weight: 700;
  font-size: 13px;
  color: #5a4427;
}
.hiq-pn-card-row {
  display: flex;
  font-size: 12px;
  padding: 2px 0;
  color: #455A64;
}
.hiq-pn-card-label {
  flex: 0 0 56px;
  color: #90A4AE;
  font-size: 11px;
}
.hiq-pn-card-val {
  color: #263238;
  word-break: break-all;
}

/* [12] 빠른 상태 변경 드롭다운 — 제거됨 (2026-05-23). 정합성 회귀 우려로 환원. */

/* [8] 인쇄 미리보기 모달 */
.hiq-print-modal-mask {
  position: fixed; top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.5); z-index: 99990;
  display: flex; align-items: center; justify-content: center;
}
.hiq-print-modal {
  background: white; border-radius: 6px;
  width: 80%; max-width: 900px; max-height: 90vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.hiq-print-modal-header {
  padding: 12px 16px; background: #5a4427; color: white;
  display: flex; justify-content: space-between; align-items: center;
}
.hiq-print-modal-body {
  flex: 1; overflow: auto; padding: 0;
}
.hiq-print-modal-body iframe { width: 100%; height: 60vh; border: 0; }
.hiq-print-modal-footer {
  padding: 10px 16px; background: #FAFAFA;
  border-top: 1px solid #E0E0E0;
  text-align: right;
}
.hiq-print-modal-footer button {
  margin-left: 6px; padding: 6px 16px;
  border-radius: 3px; border: 1px solid #ccc;
  background: white; cursor: pointer;
}
.hiq-print-modal-footer button.primary {
  background: #5a4427; color: white; border-color: #5a4427;
}

/* [15] 메뉴 단축키 hint + 키 트리거 시 깜빡임 */
.hiq-mk {
  display: inline-block;
  margin-left: 4px;
  font-size: 9px;
  color: #B0BEC5;
  font-weight: 400;
  vertical-align: super;
  letter-spacing: 0;
}
.left_menu .hiq-mk { color: #90A4AE; }
.hiq-menu-flash {
  background: #FFF59D !important;
  transition: background 0.2s;
}

/* [16] 하단 단축키 안내바 — 화면 고정 가능, 기본은 일반 footer flow */
.hiq-shortcut-footer {
  font-size: 11px;
  color: #78909C;
  text-align: center;
  padding: 8px 12px;
  border-top: 1px dashed #ECEFF1;
  background: #FAFAFA;
  margin-top: 30px;
  letter-spacing: 0.2px;
}
.hiq-shortcut-footer kbd {
  display: inline-block;
  padding: 1px 6px;
  margin: 0 1px;
  font-family: inherit;
  font-size: 10px;
  color: #455A64;
  background: #fff;
  border: 1px solid #CFD8DC;
  border-bottom-width: 2px;
  border-radius: 3px;
  line-height: 1.4;
}
.hiq-shortcut-footer .sep {
  display: inline-block;
  width: 16px;
  text-align: center;
  color: #B0BEC5;
}

/* [17] list 0건 안내 행 */
.hiq-empty-row td {
  padding: 36px 10px !important;
  color: #78909C;
  text-align: center;
  background: #FAFAFA;
}
.hiq-empty-row .hiq-empty-title {
  font-size: 14px; color: #455A64; font-weight: 500; margin-bottom: 6px;
}
.hiq-empty-row .hiq-empty-sub {
  font-size: 11px; color: #B0BEC5;
}
