/* plugins/redmine_issue_full_path/assets/stylesheets/full_path.css */

/* 기본 열 정렬 및 줄 바꿈 지정 */
.issues .full_path,
.issues .full_path_vertical,
.issues .full_path_compact2 {
  text-align: left;
  line-height: 1.4 !important;
  vertical-align: top !important;
  white-space: normal;
}

.issues td.full_path,
.issues td.full_path_vertical,
.issues td.full_path_compact2 {
  padding: 0 !important; /* 컨테이너 자체 패딩 부여를 위해 셀 패딩은 0으로 격리 */
  position: relative;
}

/* 셀 내부 전체 컨테이너 */
.issues .fp-container {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 6px 10px; /* 기본 레드마인/오팔 테마의 표준 셀 패딩 일치 */
  box-sizing: border-box;
}

/* 축소 뷰 (항상 normal flow에 존재하여 셀 높이를 고정해 줌) */
.issues .fp-collapsed-view {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 개별 일감 노드 */
.issues .fp-item {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
}

/* 대괄호 브래킷 스타일 */
.issues .fp-item::before { content: '['; color: #94a3b8; margin-right: 1px; }
.issues .fp-item::after  { content: ']'; color: #94a3b8; margin-left: 1px; }

/* 중간 생략 부호 */
.issues .fp-ellipsis {
  display: block;
  font-size: 9px;
  line-height: 1.2;
  color: #3b82f6; /* 명확하고 산뜻한 파란색 톤 */
  margin: 1px 0;
  font-weight: bold;
}
.issues .fp-ellipsis::before { content: '['; color: #93c5fd; }
.issues .fp-ellipsis::after  { content: ']'; color: #93c5fd; }

/* 호버 시 띄울 절대 좌표 확장 레이어 */
.issues .fp-hover-view {
  display: none;
  position: absolute;
  top: -4px;
  left: -4px;
  background-color: var(--card-bg, #ffffff) !important;
  border: 1px solid var(--border-color, #cbd5e1) !important;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 8px 12px;
  z-index: 1000 !important;
  width: max-content;
  min-width: calc(100% + 8px);
  box-sizing: border-box;
}

/* 텍스트 줄바꿈 방지 */
.issues .fp-hover-view .fp-item {
  white-space: nowrap;
  margin-bottom: 3px;
}
.issues .fp-hover-view .fp-item:last-child {
  margin-bottom: 0;
}

/* 네이티브 CSS 호버 이벤트 트리거 */
.issues td.full_path:hover .fp-hover-view,
.issues td.full_path_vertical:hover .fp-hover-view,
.issues td.full_path_compact2:hover .fp-hover-view {
  display: block;
}

/* 부모 일감 링크 */
.issues .fp-parent-link {
  color: inherit;
  text-decoration: none !important;
}
.issues .fp-parent-link:hover {
  text-decoration: underline !important;
}
