/* kliklink.my — safe subpage management, ordering and destructive-action styling */
.btn-danger-outline{
  border:1px solid #ecc2ca!important;
  background:#fff7f8!important;
  color:#ad2945!important;
  font-weight:700;
}
.btn-danger-outline:hover{background:#ffecef!important;border-color:#d98c9b!important;}
.kl-sp-link-row{
  gap:10px;
  border-radius:9px;
  padding:12px 8px;
  transition:background .16s,border-color .16s,opacity .16s;
}
.kl-sp-link-row[draggable="true"]{cursor:grab;}
.kl-sp-link-row[draggable="true"]:active{cursor:grabbing;}
.kl-sp-link-row.is-dragging{opacity:.45;background:#f1eaff;}
.kl-sp-link-row.is-drop-target{background:#f8f2ff;outline:2px dashed #8c51ec;outline-offset:-2px;}
.kl-sp-drag-handle{
  width:20px;min-width:20px;height:32px;
  display:grid;place-items:center;
  cursor:grab;color:#9a83be;touch-action:none;
}
.kl-sp-drag-handle svg{width:17px;height:17px;}
.kl-sp-link-row>.kl-sp-link-info{min-width:0;flex:1 1 135px;display:flex;flex-direction:column;gap:4px;}
.kl-sp-link-row>.kl-sp-link-actions{
  display:flex;align-items:center;justify-content:flex-end;
  flex-direction:row;gap:5px;flex:0 0 auto;min-width:0;
  margin-left:auto;
}
.kl-sp-link-actions .icon-button{
  width:31px;height:31px;display:grid;place-items:center;
  padding:6px;border:1px solid #e6ddf6;border-radius:8px;background:white;
}
.kl-sp-link-actions .btn{white-space:nowrap;}
.kl-sp-link-actions .icon-button svg{width:16px;height:16px;}
.kl-sp-link-actions .icon-button:focus-visible,
.kl-sp-btnrow .btn:focus-visible,
.kl-sp-link-row:focus-visible{outline:3px solid #a67af4;outline-offset:2px;}
.kl-sp-link-actions .kl-sp-danger-icon{border-color:#f3d7de;color:#b92e4e;}
.kl-sp-link-actions .kl-sp-danger-icon:hover{background:#fff0f2;border-color:#e3aab8;}
.kl-sp-link-actions .kl-sp-move:disabled{opacity:.28;cursor:not-allowed;}
.kl-sp-sort-hint{font-size:10.5px;color:#8c7ba8;line-height:1.5;margin:12px 0 2px;}
@media (max-width:860px){
  .kl-sp-link-row{flex-wrap:wrap;gap:9px;}
  .kl-sp-link-row>.kl-sp-link-info{flex:1 1 calc(100% - 85px);}
  .kl-sp-link-row>.kl-sp-link-actions{width:100%;justify-content:flex-end;padding-left:25px;}
}
@media (prefers-reduced-motion: reduce){
  .kl-sp-link-row{transition:none;}
}
