/* Owner «شجرة الأقسام» (2026-10-29). */
.ct-page{display:grid;gap:14px}
.ct-head{display:flex;flex-wrap:wrap;align-items:center;gap:12px;justify-content:space-between}
.ct-tabs{display:flex;flex-wrap:wrap;gap:8px}
.ct-tree{display:grid;gap:6px}
.ct-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;padding:10px 12px;border:1px solid #e6ebf2;border-radius:10px;background:#fff}
.ct-row.ct-group{background:#f6f8fc;font-weight:600}
.ct-row.depth-1{margin-inline-start:22px}
.ct-row.depth-2{margin-inline-start:44px}
.ct-row.depth-3{margin-inline-start:66px}
.ct-label{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;flex:1 1 260px}
.ct-label strong{overflow-wrap:anywhere}
.ct-count{min-width:30px;padding:1px 8px;border-radius:999px;background:#eef1f8;color:#3a4a6b;font-size:12px;text-align:center}
.ct-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.ct-actions .icon-mini{width:30px;height:30px;border:1px solid #d9e0ea;border-radius:8px;background:#fff;cursor:pointer;font:inherit}
.ct-actions .icon-mini:hover{border-color:#4f6bed}
.ct-xtream{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:400;padding:4px 8px;border:1px dashed #cdd5e3;border-radius:8px}
.ct-rename{display:flex;flex-wrap:wrap;gap:6px;align-items:center;width:100%}
.ct-rename-input{flex:1 1 220px;min-width:0}
.ct-works{margin-inline-start:22px;padding:12px;border:1px solid #dfe5ef;border-radius:10px;background:#fbfcfe;display:grid;gap:10px}
.ct-works-tools{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between}
.ct-inline{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.ct-inline input{min-width:0;width:220px;max-width:100%}
.ct-works-list{display:grid;gap:6px}
.ct-work{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:8px 10px;border:1px solid #e9edf3;border-radius:8px;background:#fff}
.ct-work-title{flex:1 1 200px;min-width:0;overflow-wrap:anywhere}
.ct-work-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.ct-target{max-width:220px}
.ct-pager{display:flex;align-items:center;justify-content:center;gap:10px}
@media(max-width:780px){.ct-row.depth-1,.ct-row.depth-2,.ct-row.depth-3,.ct-works{margin-inline-start:10px}.ct-inline input{width:100%}.ct-target{max-width:100%}}
.ct-actions label.ct-xtream{display:inline-flex;flex-direction:row;align-items:center;gap:6px;width:auto;margin:0;white-space:nowrap}
.ct-actions label.ct-xtream input[type=checkbox]{width:16px;height:16px;min-height:0;min-width:0;padding:0;margin:0;box-shadow:none;flex:0 0 auto}
