/* Hierarchikus főosztály- és osztálynézet az LSPD arculatában. */
.departments-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 21.6px; padding: 25.2px 27px; border-color: #9a86544d; background: linear-gradient(120deg, #12263f, #0c192b); }
.departments-heading .eyebrow { color: #c7ad78; }
.departments-heading h1 { margin: 9px 0 10.8px; color: #f0f4fb; font: 800 clamp(27px, 2.7vw, 37.8px)/1.25 var(--font-heading); letter-spacing: -.04em; }
.departments-heading p { max-width: 648px; margin: 0; color: #a9bed7; font-size: 13.5px; line-height: 1.8; }
.departments-overview { display: flex; flex-wrap: wrap; gap: 9px; }
.departments-overview > span { display: inline-flex; align-items: center; gap: 8.1px; min-height: 39.6px; padding: 9px 12.6px; border: 1px solid #927c4e59; border-radius: 8.1px; color: #c3d0e4; background: #07142380; font-size: 11px; }
.departments-overview svg { width: 15.3px; height: 15.3px; color: #d1b576; }
.departments-overview strong { color: #edce8d; font-size: 15.3px; }
.departments-hierarchy { margin-top: 28.8px; }
.department-tree, .department-branches, .department-divisions { margin: 0; padding: 0; list-style: none; }
.department-tree-root { min-width: 0; }
.department-bureau { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 279px; padding: 18.9px; border-color: #ac945359; border-top: 3px solid #c9a95f; background: linear-gradient(135deg, #142b46, #0a1a2d); }
.department-bureau > header { display: flex; justify-content: space-between; align-items: center; gap: 8.1px; margin-bottom: 17.1px; }
.department-kind { display: inline-flex; align-items: center; gap: 6.3px; color: #b6a47c; font-size: 9px; font-weight: 650; line-height: 1.7; letter-spacing: .065em; }
.department-kind svg { width: 13.5px; height: 13.5px; }
.department-abbreviation { flex: 0 0 auto; padding: 3.6px 6.3px; border: 1px solid #776b454d; border-radius: 4.5px; color: #dfc68f; background: #aa8a3b10; font-size: 10px; font-weight: 700; letter-spacing: .035em; }
.department-bureau h2, .department-bureau h3 { margin: 0 0 18.9px; color: #eaf2fc; font-size: 18px; line-height: 1.45; font-weight: 750; letter-spacing: -.025em; overflow-wrap: anywhere; }
.department-bureau > .department-leader { margin-top: auto; }
.department-bureau > footer { margin-top: 18px; padding-top: 10.8px; border-top: 1px solid #3f536833; color: #8fa9c7; font-size: 11px; }
.department-root { width: min(100%, 441px); min-height: 0; margin: 0 auto; padding: 22.5px 25.2px; border-color: #bea06080; border-top-color: #e5c477; background: radial-gradient(ellipse at 100% 0, #c9a86612, transparent 70%), linear-gradient(125deg, #173453, #10233b); }
.department-root h2 { margin-bottom: 19.8px; font-size: 23.4px; }
.department-root > header { margin-bottom: 14.4px; }
.department-root::after { content: ''; position: absolute; left: 50%; bottom: -24.3px; width: 1px; height: 23.4px; background: #bda161; }
.department-branches { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 21.6px; margin-top: 46.8px; }
.department-branches::before { content: ''; position: absolute; left: calc((100% - 64.8px) / 8); right: calc((100% - 64.8px) / 8); top: -23.4px; height: 1px; background: #bda161; }
.department-branch { position: relative; min-width: 0; }
.department-branch::before { content: ''; position: absolute; left: 50%; top: -23.4px; height: 23.4px; width: 1px; background: #bda161; }
.department-leader { display: flex; align-items: center; gap: 9.9px; min-width: 0; }
.department-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 38.7px; border: 1px solid #7495bd47; border-radius: 9px; color: #c4ddfb; background: linear-gradient(135deg, #325e8a59, #18375059); font-size: 11.7px; font-weight: 700; }
.department-leader > div { display: grid; min-width: 0; gap: 3px; }
.department-leader > div > span, .department-vacancy span { color: #9aafc9; font-size: 10px; line-height: 1.7; }
.department-leader a, .department-leader strong { display: inline; color: #e5edf9; font-size: 12.6px; line-height: 1.7; font-weight: 650; overflow-wrap: anywhere; }
.department-leader a > svg { display: inline; width: 10.8px; height: 10.8px; margin-left: 5.4px; color: #b8a477; vertical-align: middle; }
.department-leader a:hover { color: #f4d695; }
.department-leader small { color: #cdb986; font-size: 11px; line-height: 1.7; }
.department-divisions { margin: 0 0 0 11.7px; padding: 18.9px 0 0 17.1px; }
.department-division { position: relative; padding-bottom: 13.5px; }
.department-division:last-child { padding-bottom: 0; }
.department-division::before { content: ''; position: absolute; top: -18.9px; left: -17.1px; width: 1px; height: calc(100% + 18.9px); background: #9a865269; }
.department-division:last-child::before { height: 44.1px; }
.department-division::after { content: ''; position: absolute; left: -17.1px; top: 25.2px; width: 17.1px; height: 1px; background: #b49b5d99; }
.department-division > article { min-width: 0; padding: 15.3px 14.4px; border: 1px solid #6f799a45; border-radius: 9px; background: linear-gradient(120deg, #102339, #0a192b); }
.department-division h4 { margin: 6.3px 0 15.3px; color: #dce9fa; font: 700 14.4px/1.55 var(--font-heading); letter-spacing: -.015em; overflow-wrap: anywhere; }
.department-division .department-kind { color: #8cacca; font-size: 8px; }
.department-division .department-avatar { display: none; }
.department-vacancy { display: flex; align-items: center; gap: 8.1px; min-width: 0; }
.department-vacancy > svg { width: 15.3px; height: 15.3px; color: #738ca9; }
.department-vacancy > div { display: grid; gap: 2px; }
.department-vacancy strong { color: #91a8c6; font-size: 11.7px; font-weight: 500; line-height: 1.7; }
.departments-source-note { display: flex; align-items: flex-start; gap: 8.1px; margin: 26.1px 0 0; color: #8ea6c4; font-size: 11px; line-height: 1.9; }
.departments-source-note > svg { width: 14.4px; height: 14.4px; margin-top: 3.6px; color: #b6a16d; }
@container workspace (max-width: 1080px) {
  .department-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25.2px; margin-top: 27px; }
  .department-root::after, .department-branches::before, .department-branch::before { display: none; }
  .department-bureau { min-height: 261px; }
  .department-root { min-height: 0; }
}
@container workspace (max-width: 600px) {
  .department-branches { grid-template-columns: minmax(0, 1fr); gap: 27px; }
  .department-bureau { min-height: 0; }
  .department-bureau > .department-leader { margin-top: 0; }
  .department-root { width: 100%; }
  .department-root::after { display: block; height: 22.5px; bottom: -23.4px; }
  .department-root h2 { font-size: 20.7px; }
  .department-divisions { padding-left: 18px; }
}
@media (max-width: 720px) {
  .departments-heading { padding: 20.7px; gap: 18px; }
  .departments-heading p { font-size: 12.6px; }
  .departments-overview { gap: 7.2px; }
  .departments-overview > span { padding: 7.2px 9.9px; font-size: 11px; }
  .department-root { padding: 20.7px; }
}

.department-edit.secondary-button { justify-content: center; gap: 7.2px; min-height: 34.2px; margin-top: 16.2px; padding: 7.2px 9.9px; border-color: #876f474d; color: #d4bd8e; background: #9b7d3910; font-size: 11px; }
.department-edit.secondary-button:hover { border-color: #c6a76e80; background: #9b7d3925; }
.department-edit > svg { width: 12.6px; height: 12.6px; }
.department-division .department-edit { width: 100%; margin-top: 12.6px; }
.department-edit:disabled { opacity: .4; cursor: not-allowed; }
dialog.admin-dialog.department-dialog { width: min(603px, calc(100% - 32.4px)); }
.department-dialog .admin-dialog-heading p { max-width: 459px; color: #cbb67e; font-size: 12.6px; }
.department-dialog .admin-field > span { font-size: 12.6px; }
.department-dialog .admin-field select { min-height: 46.8px; }
.department-dialog .admin-field small { margin-top: 3.6px; }
@media (max-width: 540px) {
  .department-dialog .admin-dialog-footer { flex-wrap: wrap; }
  .department-dialog .admin-dialog-footer button { flex: 1; white-space: nowrap; }
  .department-dialog .admin-field select { font-size: 12.6px; }
}
