
/* NUJIZ REORDER PRO V1 */
.reorder-pro[hidden]{display:none!important}
.reorder-pro{
  --rp-bg:#fff;
  --rp-card:#f8f7fc;
  --rp-text:#202437;
  --rp-border:#dedfea;
  color:var(--rp-text)!important;
  padding:24px!important;
  border:1px solid var(--rp-border)!important;
  border-radius:22px!important;
}
html[data-theme="dark"] .reorder-pro{
  --rp-bg:#171c25;
  --rp-card:#202632;
  --rp-text:#f4f5fb;
  --rp-border:#394253;
  background:var(--rp-bg)!important;
}
.reorder-pro .reorder-head h3,
.reorder-pro .reorder-head p,
.reorder-pro .reorder-count strong,
.reorder-pro .reorder-page-label,
.reorder-pro .reorder-status{
  color:var(--rp-text)!important;
  -webkit-text-fill-color:var(--rp-text)!important;
}
.reorder-pro .reorder-count{
  background:var(--rp-card)!important;
  border:1px solid var(--rp-border)!important;
}
.rp-file-info{
  padding:14px;
  border-radius:12px;
  border:1px solid var(--rp-border);
  background:var(--rp-card);
  overflow-wrap:anywhere;
  margin:16px 0;
}
.rp-toolbar,.rp-controls{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.rp-toolbar{margin:18px 0}
.rp-toolbar button,.rp-toolbar select,.rp-controls button{
  padding:9px 12px!important;
  border:1px solid var(--rp-border)!important;
  border-radius:10px!important;
  background:var(--rp-card)!important;
  color:var(--rp-text)!important;
  -webkit-text-fill-color:var(--rp-text)!important;
  font:inherit!important;
  cursor:pointer;
}
.reorder-pro button:disabled{
  opacity:.4!important;
  cursor:not-allowed!important;
}
.reorder-pro .reorder-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))!important;
  gap:16px!important;
  align-items:start;
}
.reorder-pro .reorder-grid[data-size="small"]{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr))!important;
}
.reorder-pro .reorder-grid[data-size="large"]{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr))!important;
}
.reorder-pro .reorder-page-card{
  min-width:0!important;
  width:auto!important;
  max-width:none!important;
  padding:12px!important;
  background:var(--rp-card)!important;
  border:1px solid var(--rp-border)!important;
  border-radius:16px!important;
  color:var(--rp-text)!important;
}
.reorder-pro .reorder-preview{
  background:#fff!important;
  height:auto!important;
  min-height:150px;
  aspect-ratio:3/4;
  display:flex!important;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.reorder-pro .reorder-preview canvas{
  display:block;
  max-width:100%!important;
  max-height:100%!important;
  width:auto!important;
  height:auto!important;
  object-fit:contain;
}
.reorder-pro .reorder-position{
  background:#7046ef!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
.reorder-pro .reorder-handle{
  touch-action:none;
  cursor:grab;
  padding:8px;
}
.reorder-pro .dragging{
  opacity:.6;
  outline:2px solid #8864ff;
}
.rp-controls{
  justify-content:center;
  margin-top:10px;
}
.rp-controls button{
  flex:1;
  padding:8px 4px!important;
  font-size:12px!important;
}
.rp-dialog{
  width:min(900px,94vw);
  max-height:90dvh;
  overflow:auto;
  background:#171c25;
  color:#fff;
  border:1px solid #465063;
  border-radius:18px;
  padding:16px;
}
.rp-dialog::backdrop{background:rgba(0,0,0,.8)}
.rp-dialog canvas{
  display:block;
  max-width:100%;
  height:auto;
  margin:12px auto;
}
.rp-dialog button{
  background:#7046ef;
  color:#fff;
  border:0;
  border-radius:10px;
  padding:12px 20px;
  cursor:pointer;
}
@media(max-width:600px){
  .reorder-pro{padding:12px!important}
  .reorder-pro .reorder-grid,
  .reorder-pro .reorder-grid[data-size="small"]{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
  }
  .reorder-pro .reorder-grid[data-size="large"]{
    grid-template-columns:1fr!important;
  }
  .reorder-pro .reorder-page-card{padding:8px!important}
  .reorder-pro .reorder-actions{
    display:flex!important;
    flex-direction:column!important;
  }
  .reorder-pro .reorder-actions button{
    width:100%!important;
  }
  .rp-controls button{min-height:40px}
}
