/* ════════════════════════════════════════════════════════════════════════════
   개별종사자정보모듈 (WorkerDetailModule) 표준 스타일시트
   ─────────────────────────────────────────────────────────────────────────────
   ERP 전 페이지 공용 개별 종사자 상세 정보 팝업 및 모달 표준 UI
   ════════════════════════════════════════════════════════════════════════════ */

/* 표준 종사자 링크 Affordance */
.worker-detail-link,
.worker-detail-trigger {
  color: var(--teal, #1b7a8a) !important;
  text-decoration: underline dotted #94a3b8 !important;
  text-underline-offset: 3px !important;
  cursor: pointer !important;
  font-weight: 600;
  transition: color .15s ease, text-decoration-color .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.worker-detail-link:hover,
.worker-detail-trigger:hover {
  color: #0f766e !important;
  text-decoration: underline solid #0f766e !important;
}

/* 모달 오버레이 표준 UI (모달 Fallback 또는 모달 모드 호출 시) */
.worker-detail-modal-overlay,
.wk-worker-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  animation: workerDetailModalFadeIn .18s ease-out;
}

@keyframes workerDetailModalFadeIn {
  from { opacity: 0; transform: scale(.98); }
  to { opacity: 1; transform: scale(1); }
}

.worker-detail-modal-box,
.wk-worker-modal-box {
  width: 1040px;
  max-width: 98vw;
  height: 780px;
  max-height: 94vh;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.worker-detail-modal-head,
.wk-worker-modal-head {
  height: 42px;
  background: #134e4a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  user-select: none;
  flex-shrink: 0;
}

.worker-detail-modal-title,
.wk-worker-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.worker-detail-modal-badge,
.wk-worker-modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #0d9488;
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
}

.worker-detail-modal-info,
.wk-worker-modal-info {
  font-size: 11px;
  color: #99f6e4;
  font-weight: 400;
}

.worker-detail-modal-actions,
.wk-worker-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.worker-detail-modal-close,
.wk-worker-modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}

.worker-detail-modal-close:hover,
.wk-worker-modal-close:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.worker-detail-modal-frame,
.wk-worker-modal-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #f8fafc;
}

@media (max-width: 1060px) {
  .worker-detail-modal-box,
  .wk-worker-modal-box {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
}
