:root {
  --body-min-width: 980px;
  --header-global-height: 112px;
  --action-menu-height: 169px;
  --custom-graph-legend-height: 32px;
  --border-color: #e0e0e0;
  --related-records-color: #ff7759;
  --lookup-color: #47a4ff;
  --action-color: #ffc800;
  --plugin-color: #7eb059;
  --external-color: #a0a0a0;
  --current-border-color: #f72c00;
  --external-fill-color: #ebebeb;
  --graph-header-height: 80px;
  --search-dropdown-width: 200px;
  --category-tree-width: 196px;
}

.kep-chart-detail-blank-space {
  padding: 0px 8px;
}

.kep-chart-label-container {
  padding: 8px 0px;
}

.kep-chart-detail-container {
  border: 1px solid #d8d8d8;
  background-color: #eeeeee;
  padding: 8px;
}

.kep-chart-detail-container svg {
  display: block;
}

.graph-header .search-container {
  margin-right: 6px;
}

.kep-relation-graph-legend {
  height: var(--custom-graph-legend-height);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
}

.kep-relation-graph-legend .legend-color-box {
  width: 28px;
  height: 12px;
}

.kep-relation-graph-legend .legend-text {
  color: #333333;
}

.kep-relation-graph-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.kep-relation-graph-legend .legend-related_records .legend-color-box {
  background-color: var(--related-records-color);
}

.kep-relation-graph-legend .legend-lookup .legend-color-box {
  background-color: var(--lookup-color);
}

.kep-relation-graph-legend .legend-action .legend-color-box {
  background-color: var(--action-color);
}

.kep-relation-graph-legend .legend-plugin_customization .legend-color-box {
  background-color: var(--plugin-color);
}

.kep-relation-graph-legend .legend-external_system .legend-color-box {
  background-color: var(--external-color);
}

#kep-main-relations-graph .node polygon {
  fill: #ffffff;
  stroke: #808080;
}

#kep-main-relations-graph .node text {
  font-family: inherit;
  font-size: 14px;
  fill: #333333;
}

#kep-main-relations-graph .current polygon {
  stroke-width: 2px;
  stroke: var(--current-border-color);
}

#kep-main-relations-graph .node.external polygon {
  fill: var(--external-fill-color);
}

#kep-main-relations-graph .edge path {
  stroke-width: 2px;
}

#kep-main-relations-graph .edge.related_records path {
  stroke: var(--related-records-color);
}

#kep-main-relations-graph .edge.related_records polygon {
  stroke: var(--related-records-color);
  fill: var(--related-records-color);
}

#kep-main-relations-graph .edge.lookup path {
  stroke: var(--lookup-color);
}

#kep-main-relations-graph .edge.lookup polygon {
  stroke: var(--lookup-color);
  fill: var(--lookup-color);
}

#kep-main-relations-graph .edge.action path {
  stroke: var(--action-color);
}

#kep-main-relations-graph .edge.action polygon {
  stroke: var(--action-color);
  fill: var(--action-color);
}

#kep-main-relations-graph .edge.plugin_customization path {
  stroke: var(--plugin-color);
}

#kep-main-relations-graph .edge.plugin_customization polygon {
  stroke: var(--plugin-color);
  fill: var(--plugin-color);
}

#kep-main-relations-graph .edge.external_system path {
  stroke: var(--external-color);
}

#kep_application_relations_graph_view_area {
  width: 100vw;
  font-size: 14px;
}

.category-right-gaia #kep_application_relations_graph_view_area {
  width: calc(100vw - var(--category-tree-width));
}

#kep_application_relations_graph_view_area .graph-header {
  display: flex;
  min-width: var(--body-min-width);
  height: var(--graph-header-height);
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.category-right-gaia #kep_application_relations_graph_view_area .graph-header {
  min-width: calc(var(--body-min-width) - var(--category-tree-width));
}

#kep_application_relations_graph_view_area .kep-relation-graph-legend {
  justify-content: center;
  gap: 16px;
}

.category-right-gaia
  #kep_application_relations_graph_view_area
  .kep-relation-graph-legend {
  margin-right: var(--search-dropdown-width);
}

@media only screen and (max-width: 1148px) {
  #kep_application_relations_graph_view_area .kep-relation-graph-legend {
    margin-right: 0px;
  }
}

@media only screen and (max-width: 1344px) {
  .category-right-gaia
    #kep_application_relations_graph_view_area
    .kep-relation-graph-legend {
    margin-right: 0px;
  }
}

#kep_application_relations_graph_view_area .kep-relations-graph-main {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  overflow: auto;
  height: calc(100vh - 364px);
  min-width: var(--body-min-width);
}

.category-right-gaia
  #kep_application_relations_graph_view_area
  .kep-relations-graph-main {
  min-width: calc(var(--body-min-width) - var(--category-tree-width));
}

.kep-relations-graph-empty {
  display: inline-block;
  padding: 8px;
  font-size: 14px;
}

#kep_application_relations_graph_view_area .kep-relations-graph-main svg {
  display: block;
  min-height: calc(100vh - 364px);
  margin: 0px auto;
}

#kep_application_relations_graph_view_area #kep-search-combobox {
  margin-left: 16px;
  min-width: 248px;
}

#kep-search-combobox {
  --kuc-combobox-menu-max-height: 228px;
}

#kep-search-combobox ul {
  max-width: 600px;
  overflow-y: auto;
}

#kep-search-combobox ul li b {
  pointer-events: none;
}

.zoom-control-container {
  position: fixed;
  display: flex;
}

.zoom-control {
  display: flex;
  position: relative;
  flex-direction: column;
  width: 36px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  user-select: none;
}

.zoom-control-container:hover .zoom-control {
  border-radius: 4px 0 4px 4px;
}

.zoom-btn {
  height: 36px;
  width: 100%;
  border: none;
  background: white;
  font-size: 20px;
  cursor: pointer;
  border-top: 1px solid #eeeeee;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: background-color 0.2s ease;
}

.zoom-btn:first-child {
  border-top: none;
}

.zoom-btn:hover {
  background-color: #f5f5f5;
}

.reset-icon {
  font-size: 16px;
}

.zoom-drag-handle {
  cursor: move;
  user-select: none;
  padding: 8px;
  background: white;
  text-align: center;
  justify-content: center;
  display: none;
  border-radius: 0 4px 4px 0;
  border: 1px solid #dddddd;
  border-left: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.zoom-drag-handle:hover {
  background: #f5f5f5;
}

body.noselect {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

#kep-main-relations-graph .highlighted {
  stroke-width: 4px;
}

#kep-main-relations-graph .highlighted polygon {
  stroke-width: 4px;
}

#kep-main-relations-graph .highlighted path {
  stroke-width: 4px;
}

#kep-main-relations-graph .node text {
  pointer-events: none;
}

.kep-custom-tooltip {
  position: fixed;
  background: #333333;
  color: #ffffff;
  margin: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  pointer-events: none;
  display: none;
  z-index: 9999;
  width: fit-content;
}

.kep-custom-tooltip .edge-icon {
  display: inline-block;
  margin: -4px 4px;
  min-height: 16px;
  width: 16px;
  height: 16px;
}

#kep-main-relations-graph.hovered g {
  opacity: 0.3;
}

#kep-main-relations-graph.hovered .highlighted,
#kep-main-relations-graph.hovered .highlighted g,
#kep-main-relations-graph.hovered .highlighted polygon,
#kep-main-relations-graph.hovered .highlighted path,
#kep-main-relations-graph.hovered .highlighted text {
  opacity: 1;
}

