/* =========================================================
   Digi Idle — float panels resizable (shared)
   ========================================================= */

.float-win.float-resizable{
  position:fixed;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden;
  box-sizing:border-box;
}
.float-win.float-resizable .float-head{
  flex:0 0 auto;
}
.float-win.float-resizable .float-body{
  flex:1 1 auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:auto !important;
}
.float-win.float-resizable.anz-win .float-body{
  overflow:auto !important;
}

/* D-SHOP / D-MARKET: body fixo; listas internas rolam */
.float-win.float-resizable.shop-win .float-body,
.float-win.float-resizable.market-win .float-body,
.float-win.float-resizable.donate-win .float-body{
  overflow:hidden !important;
  display:flex !important;
  flex-direction:column !important;
}
.float-win.float-resizable.shop-win .float-body > .shop-hero,
.float-win.float-resizable.shop-win .float-body > .shop-flash{
  flex-shrink:0;
}
.float-win.float-resizable.shop-win .float-body > .shop-cols{
  flex:1 1 auto !important;
  flex-shrink:1 !important;
  min-height:0 !important;
}
.float-win.float-resizable.market-win .float-body > .mkt-money,
.float-win.float-resizable.market-win .float-body > .mkt-tabs,
.float-win.float-resizable.market-win .float-body > .mkt-banner,
.float-win.float-resizable.market-win .float-body > .shop-flash{
  flex-shrink:0;
}
.float-win.float-resizable.donate-win .float-body > .donate-shell{
  flex:1 1 auto !important;
  flex-shrink:1 !important;
  min-height:0 !important;
}

/* Painéis com grade+ações: não deixar o flex esmagar o conteúdo
   (slots sobre botões). O body rola inteiro. */
.float-win.float-resizable.bag-win .float-body > *,
.float-win.float-resizable.box-win .float-body > *,
.float-win.float-resizable.depot-win .float-body > *,
.float-win.float-resizable.party-win .float-body > *,
.float-win.float-resizable.hunt-win .float-body > *,
.float-win.float-resizable.vip-win .float-body > *,
.float-win.float-resizable.ranking-win .float-body > *,
.float-win.float-resizable.settings-win .float-body > *{
  flex-shrink:0;
}
.float-win.float-resizable.anz-win .float-body > .anz-compact{
  flex-shrink:0;
}
.float-win.float-resizable.anz-win .float-body > .anz-full{
  flex:1 1 auto !important;
  flex-shrink:1 !important;
  min-height:0 !important;
}
.float-win.float-resizable.bag-win:not(.box-win):not(.depot-win) .float-body > .bag-grid{
  flex:1 1 auto !important;
  flex-shrink:1 !important;
  min-height:0 !important;
}
.float-win.float-resizable.box-win .float-body > .box-pool,
.float-win.float-resizable.box-win .float-body > .mon-grid.box-pool,
.float-win.float-resizable.box-win .float-body > .bag-grid.box-pool{
  flex:1 1 auto !important;
  flex-shrink:1 !important;
  min-height:0 !important;
}

.float-win.float-resizable .float-resize{
  position:absolute;
  z-index:6;
  touch-action:none;
}
.float-win.float-resizable .float-resize.edge-n,
.float-win.float-resizable .float-resize.edge-s{
  left:12px;
  right:12px;
  height:8px;
  cursor:ns-resize;
}
.float-win.float-resizable .float-resize.edge-n{ top:0; bottom:auto; }
.float-win.float-resizable .float-resize.edge-s{ bottom:0; top:auto; }

.float-win.float-resizable .float-resize.edge-e,
.float-win.float-resizable .float-resize.edge-w{
  top:28px;
  bottom:12px;
  width:8px;
  cursor:ew-resize;
}
.float-win.float-resizable .float-resize.edge-e{ right:0; left:auto; }
.float-win.float-resizable .float-resize.edge-w{ left:0; right:auto; }

.float-win.float-resizable .float-resize.edge-ne,
.float-win.float-resizable .float-resize.edge-nw,
.float-win.float-resizable .float-resize.edge-se,
.float-win.float-resizable .float-resize.edge-sw{
  width:16px;
  height:16px;
  z-index:7;
}
.float-win.float-resizable .float-resize.edge-se{
  right:2px; bottom:2px; cursor:nwse-resize;
  background:
    linear-gradient(135deg,transparent 45%,rgba(79,214,255,.35) 46% 52%,transparent 53%),
    linear-gradient(135deg,transparent 62%,rgba(255,154,46,.55) 63% 69%,transparent 70%);
  border-radius:0 0 12px 0;
  opacity:.75;
}
.float-win.float-resizable .float-resize.edge-sw{
  left:2px; bottom:2px; cursor:nesw-resize;
  background:
    linear-gradient(225deg,transparent 45%,rgba(79,214,255,.35) 46% 52%,transparent 53%),
    linear-gradient(225deg,transparent 62%,rgba(255,154,46,.55) 63% 69%,transparent 70%);
  border-radius:0 0 0 12px;
  opacity:.65;
}
.float-win.float-resizable .float-resize.edge-ne{
  right:2px; top:2px; cursor:nesw-resize;
  opacity:.45;
}
.float-win.float-resizable .float-resize.edge-nw{
  left:2px; top:2px; cursor:nwse-resize;
  opacity:.45;
}
.float-win.float-resizable .float-resize.edge-se:hover,
.float-win.float-resizable .float-resize.edge-se:active,
.float-win.float-resizable .float-resize.edge-sw:hover,
.float-win.float-resizable .float-resize.edge-sw:active{
  opacity:1;
}

@media (max-width:560px){
  .float-win.float-resizable .float-resize.edge-e,
  .float-win.float-resizable .float-resize.edge-w{ width:14px; }
  .float-win.float-resizable .float-resize.edge-n,
  .float-win.float-resizable .float-resize.edge-s{ height:14px; }
}
