/* S4G_ADMIN_LAZY_V23 */



/* =========================================================
   Admin hierarchical category/folder picker
   ========================================================= */

#cpNode.s4g-v83-native-hidden{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
  overflow:hidden !important;
}

#s4gNodeTreeTriggerV83{
  width:100%;
  min-height:58px;
  padding:9px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.025);
  color:var(--text);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  text-align:right;
  cursor:pointer;
}

#s4gNodeTreeTriggerV83 .v83-trigger-text{
  min-width:0;
  flex:1;
  display:grid;
  gap:4px;
}

#s4gNodeTreeTriggerV83 .v83-trigger-title{
  font-size:11px;
  font-weight:900;
  line-height:1.5;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

#s4gNodeTreeTriggerV83 .v83-trigger-path{
  font-size:8px;
  color:var(--muted);
  line-height:1.5;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

#s4gNodeTreeTriggerV83 .v83-trigger-arrow{
  flex:0 0 auto;
  font-size:18px;
  color:var(--muted);
}


#s4gNodeTreeBackdropV83{
  display:none;
  position:fixed;
  inset:0;
  z-index:14000;
  background:rgba(0,0,0,.72);
}

#s4gNodeTreeBackdropV83.show{
  display:block;
}


#s4gNodeTreePanelV83{
  position:absolute;
  left:50%;
  bottom:10px;
  transform:translateX(-50%);
  width:min(calc(100% - 18px),580px);
  max-height:min(88dvh,780px);
  background:var(--panel2);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:0 30px 100px rgba(0,0,0,.72);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  direction:rtl;
}


.s4g-v83-tree-head{
  padding:14px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.s4g-v83-tree-head h3{
  margin:0;
  font-size:16px;
  font-weight:950;
}

.s4g-v83-tree-close{
  width:38px;
  height:38px;
  flex:0 0 38px;
  border:1px solid var(--line);
  border-radius:11px;
  background:rgba(255,255,255,.03);
  color:var(--text);
  font-size:20px;
}


#s4gNodeTreeListV83{
  overflow:auto;
  padding:10px;
  overscroll-behavior:contain;
}


.s4g-v83-tree-empty{
  padding:30px 15px;
  text-align:center;
  color:var(--muted);
  font-size:11px;
}


.s4g-v83-tree-root{
  border:1px solid var(--line);
  border-radius:15px;
  background:rgba(255,255,255,.018);
  margin-bottom:8px;
  overflow:hidden;
}


.s4g-v83-node-wrap{
  min-width:0;
}


.s4g-v83-node-row{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:50px;
  border-bottom:1px solid color-mix(in srgb,var(--line) 72%,transparent);
  padding-inline-start:calc(8px + (var(--v83-depth) * 17px));
  padding-inline-end:8px;
}


.s4g-v83-tree-root > .s4g-v83-node-row{
  min-height:56px;
  background:color-mix(in srgb,var(--accent) 6%,transparent);
}


.s4g-v83-node-select{
  flex:1;
  min-width:0;
  border:0;
  background:transparent;
  color:var(--text);
  padding:7px 4px;
  text-align:right;
  display:flex;
  align-items:center;
  gap:9px;
}


.s4g-v83-radio{
  width:20px;
  height:20px;
  flex:0 0 20px;
  border-radius:50%;
  border:2px solid var(--muted);
  display:grid;
  place-items:center;
}

.s4g-v83-node-select.selected .s4g-v83-radio{
  border-color:var(--accent);
}

.s4g-v83-node-select.selected .s4g-v83-radio:after{
  content:"";
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--accent);
}


.s4g-v83-node-text{
  min-width:0;
  flex:1;
  display:grid;
  gap:3px;
}


.s4g-v83-node-name{
  font-size:11px;
  font-weight:900;
  line-height:1.5;
}


.s4g-v83-node-type{
  font-size:7.5px;
  color:var(--muted);
}


.s4g-v83-node-toggle{
  width:34px;
  height:34px;
  flex:0 0 34px;
  border:0;
  border-radius:9px;
  background:rgba(255,255,255,.035);
  color:var(--muted);
  font-size:16px;
  transition:transform .15s ease;
}

.s4g-v83-node-toggle.closed{
  transform:rotate(90deg);
}


.s4g-v83-children{
  display:block;
}

.s4g-v83-children.closed{
  display:none;
}


.s4g-v83-node-wrap:last-child > .s4g-v83-node-row{
  border-bottom:0;
}


