/**
 * Organization chart — Structure page (jgen.jsp)
 */

body.sse-brief .sse-structure-page {
  display: block;
  text-align: left;
}

body.sse-brief .sse-structure-page > p:first-child + p {
  display: none;
}

body.sse-brief .sse-org-chart {
  margin-top: 8px;
  padding: 8px 4px 16px;
  overflow-x: auto;
}

body.sse-brief .sse-org-chart__root {
  display: flex;
  justify-content: center;
}

body.sse-brief .sse-org-chart__box {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 12px 14px;
  background: linear-gradient(180deg, #5a9fd4 0%, #4a8fc9 100%);
  border: 1px solid #3d7eb8;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 2px 6px rgba(26, 95, 138, 0.18);
}

body.sse-brief .sse-org-chart__box--root {
  min-width: 260px;
  max-width: 340px;
  min-height: 48px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
}

body.sse-brief .sse-org-chart__connector {
  position: relative;
  height: 28px;
}

body.sse-brief .sse-org-chart__line {
  display: block;
  border-color: #4a5568;
}

body.sse-brief .sse-org-chart__line--down {
  width: 0;
  height: 28px;
  margin: 0 auto;
  border-left: 2px dashed #4a5568;
}

body.sse-brief .sse-org-chart__departments {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

body.sse-brief .sse-org-chart__departments::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(100% / 12);
  right: calc(100% / 12);
  border-top: 2px dashed #4a5568;
}

body.sse-brief .sse-org-chart__dept {
  flex: 1 1 0;
  min-width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.sse-brief .sse-org-chart__line--stem {
  width: 0;
  height: 22px;
  border-left: 2px dashed #4a5568;
}

body.sse-brief .sse-org-chart__dept .sse-org-chart__box {
  width: 100%;
  min-height: 108px;
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 500;
}

@media (max-width: 900px) {
  body.sse-brief .sse-org-chart__departments {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 12px;
    padding-top: 0;
  }

  body.sse-brief .sse-org-chart__departments::before,
  body.sse-brief .sse-org-chart__connector,
  body.sse-brief .sse-org-chart__line--stem {
    display: none;
  }

  body.sse-brief .sse-org-chart__dept {
    flex: 0 1 calc(33.333% - 12px);
    min-width: 140px;
  }

  body.sse-brief .sse-org-chart__dept .sse-org-chart__box {
    min-height: 88px;
  }
}
