.organization-content { padding-bottom: 40px; }
.structure-alert { margin: 0 0 16px; padding: 12px 16px; border: 1px solid #d7e3f1; border-radius: 10px; background: #fff; color: #15365d; font-weight: 700; }
.structure-alert.error { border-color: #f1c8c8; color: #a32727; }
.structure-path { display: grid; grid-template-columns: repeat(8, minmax(120px, 1fr)); gap: 8px; margin: 8px 0 18px; overflow-x: auto; padding: 2px 2px 8px; }
.structure-path > a { min-width: 126px; min-height: 88px; display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #d7e2ef; border-radius: 12px; background: #fff; position: relative; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.structure-path > a:not(:last-child)::after { content: "›"; position: absolute; right: -8px; z-index: 2; color: #1d6ec0; font-size: 20px; font-weight: 800; }
.structure-path > a:hover { transform: translateY(-3px); border-color: #72afe6; box-shadow: 0 9px 20px rgba(13, 75, 132, .12); }
.structure-path > a > i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #e5f1ff; color: #1166b6; font-style: normal; font-weight: 800; flex: 0 0 auto; }
.structure-path > a > span { min-width: 0; flex: 1; }
.structure-path > a > b { color: #1670bf; font-size: 13px; }
.structure-path strong, .structure-path small { display: block; }
.structure-path strong { color: #092d57; font-size: 12px; line-height: 1.25; }
.structure-path small { color: #7b8da3; margin-top: 4px; font-size: 10px; }
.structure-path > a.optional { border-style: dashed; background: #f8fbff; }
.structure-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.structure-summary article { border: 1px solid #d7e2ef; border-top: 3px solid #1671c5; border-radius: 12px; background: #fff; padding: 16px 18px; }
.structure-summary small, .structure-summary span { display: block; color: #74869e; }
.structure-summary small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.structure-summary strong { display: block; margin: 5px 0 3px; color: #082e59; font-size: 26px; }
.structure-summary span { font-size: 11px; }
.structure-navigation { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 13px 16px; border: 1px solid #cfe0f0; border-radius: 12px; background: linear-gradient(100deg, #f7fbff, #fff); }
.structure-navigation > div { display: flex; align-items: center; gap: 11px; }.navigation-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #0c4d86; color: #fff; font-size: 19px; }.structure-navigation p { margin: 0; }.structure-navigation small,.structure-navigation strong { display: block; }.structure-navigation small { color: #1870bd; font-size: 9px; font-weight: 800; letter-spacing: .08em; }.structure-navigation strong { margin-top: 3px; color: #0a315c; font-size: 13px; }.structure-navigation nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }.structure-navigation nav a { padding: 7px 10px; border: 1px solid #d4e2f0; border-radius: 7px; background: #fff; color: #135d9f; text-decoration: none; font-size: 10px; font-weight: 800; }.structure-navigation nav a:hover { border-color: #277cc5; background: #edf6ff; }
.structure-workspace { border: 1px solid #d7e2ef; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 8px 25px rgba(8, 46, 89, .06); }
.structure-workspace > header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #dfe8f2; background: #f8fbff; }
.structure-workspace header small { color: #1870bd; font-weight: 800; letter-spacing: .08em; }
.structure-workspace header h2 { margin: 4px 0 0; color: #082e59; font-size: 18px; }
.structure-legend { display: flex; gap: 16px; color: #61758e; font-size: 11px; }
.structure-tree { padding: 18px 22px 24px; }
.structure-tree article { width: calc(100% - var(--indent, 0px)); margin: 0 0 8px var(--indent, 0px); display: flex; align-items: center; gap: 13px; min-height: 64px; padding: 10px 14px; border: 1px solid #dce6f1; border-left: 3px solid #1770bf; border-radius: 10px; background: #fff; }
.structure-tree article:nth-child(2) { --indent: 24px; }.structure-tree article:nth-child(3) { --indent: 48px; }.structure-tree article:nth-child(4) { --indent: 72px; }.structure-tree article:nth-child(5) { --indent: 96px; }.structure-tree article:nth-child(6) { --indent: 120px; }.structure-tree article:nth-child(7) { --indent: 144px; }.structure-tree article:nth-child(8) { --indent: 168px; }
.tree-node-link { min-width: 0; flex: 1; display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }.tree-node-link > i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: #e6f2ff; color: #1269b8; font-style: normal; font-weight: 800; flex: 0 0 auto; }.tree-node-link > div { min-width: 0; flex: 1; }.tree-node-link > b { opacity: 0; color: #176dbc; font-size: 10px; transition: opacity .18s ease; }.structure-tree article:hover .tree-node-link > b { opacity: 1; }.structure-tree article:hover { border-color: #83b8e5; background: #fafdff; }.structure-tree small, .structure-tree strong, .structure-tree span { display: block; }.structure-tree small { color: #688099; font-size: 10px; text-transform: uppercase; font-weight: 800; }.structure-tree strong { color: #0a315c; margin: 2px 0; }.structure-tree span { color: #778ba2; font-size: 11px; }
.structure-tree article.optional { border-style: dashed; }.structure-tree article.inactive { opacity: .55; }.tree-actions { display: flex; gap: 5px; }.tree-actions form { margin: 0; }.tree-actions button { width: 32px; height: 32px; border: 1px solid #d6e2ef; border-radius: 8px; background: #f8fbff; color: #145b9d; cursor: pointer; }
.structure-dialog { max-width: 760px; }
@media (max-width: 1100px) { .structure-summary { grid-template-columns: repeat(2,1fr); }.structure-path { grid-template-columns: repeat(8, 140px); } }
@media (max-width: 700px) { .structure-summary { grid-template-columns: 1fr; }.structure-tree article { --indent: 0px !important; width: 100%; }.structure-legend { display: none; }.structure-navigation { align-items: flex-start; flex-direction: column; }.structure-navigation nav { justify-content: flex-start; } }

/* Dashboard-inspired hierarchy treatment. */
.structure-summary article{--accent:#1671c5;--soft:#e7f2ff;display:flex;align-items:center;gap:13px;border-top:1px solid #d7e2ef;border-left:3px solid var(--accent);padding:15px 17px;box-shadow:0 5px 16px rgba(12,52,91,.05)}
.structure-summary article>i{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:11px;color:var(--accent);background:var(--soft);font-size:18px;font-style:normal;font-weight:800}.structure-summary article>div{min-width:0}.structure-summary .summary-green{--accent:#159b69;--soft:#e5f6ef}.structure-summary .summary-purple{--accent:#7650c2;--soft:#eee9fa}.structure-summary .summary-amber{--accent:#c78010;--soft:#fff2dc}.structure-summary strong{font-size:24px}
.structure-navigation nav a:nth-child(1){color:#176dcc;background:#e8f2ff}.structure-navigation nav a:nth-child(2){color:#159667;background:#e7f7f0}.structure-navigation nav a:nth-child(3){color:#7450bd;background:#f0ebfa}.structure-navigation nav a:nth-child(4){color:#b67208;background:#fff3df}.structure-navigation nav a:nth-child(5){color:#0b8c9d;background:#e5f7f9}.structure-navigation nav a:nth-child(6){color:#d14d62;background:#fdecef}.structure-navigation nav a:hover{border-color:currentColor;transform:translateY(-1px)}
.structure-workspace>header{padding:17px 20px;border-bottom-color:#194e81;background:linear-gradient(105deg,#082d56,#0b4f88)}.structure-workspace header small{color:#75c2ff}.structure-workspace header h2{color:#fff}.structure-legend{color:#cae5fb}
.structure-tree article{--node:#1770bf;--node-soft:#e6f2ff;border-left-color:var(--node);transition:transform .16s ease,box-shadow .16s ease}.structure-tree .level-2{--node:#159b69;--node-soft:#e5f6ef}.structure-tree .level-3{--node:#0b98a9;--node-soft:#e3f6f8}.structure-tree .level-4{--node:#7650c2;--node-soft:#eee9fa}.structure-tree .level-5{--node:#c78010;--node-soft:#fff2dc}.structure-tree .level-6{--node:#e0692a;--node-soft:#fff0e8}.structure-tree .level-7{--node:#3471c8;--node-soft:#e7effb}.structure-tree .level-8{--node:#d84669;--node-soft:#fde9ef}.tree-node-link>i{background:var(--node-soft);color:var(--node)}.structure-tree article:hover{transform:translateX(3px);border-color:var(--node);box-shadow:0 5px 14px rgba(13,57,99,.07)}
.tree-node-link>i{font-size:12px;letter-spacing:-.02em}.node-record-count{min-width:62px;padding:6px 10px;border:1px solid #d8e4ef;border-radius:9px;background:var(--node-soft);text-align:center;font-style:normal}.node-record-count strong{display:block;margin:0;color:var(--node);font-size:18px;line-height:1}.node-record-count small{display:block;margin-top:3px;color:#70839a;font-size:8px;letter-spacing:.06em}.tree-node-link>b{min-width:44px;text-align:right}
