.wudm-wrap{display:grid;gap:20px;max-width:760px}.wudm-card h3,.wudm-card h4{text-transform:none}.wudm-card p{margin:0 0 12px}.wudm-card{background:#fff;border:1px solid #ddd;border-radius:12px;padding:20px;box-shadow:0 2px 8px rgba(0,0,0,.04)}.wudm-form{display:grid;gap:12px}.wudm-form input,.wudm-form select{width:100%;padding:10px;border:1px solid #ccc;border-radius:8px}.wudm-form button,.wudm-logout,.wudm-open-modal,.wudm-tab-btn,.wudm-view-btn{display:inline-block;padding:10px 14px;border:none;border-radius:8px;text-decoration:none;cursor:pointer}.wudm-form button,.wudm-open-modal,.wudm-view-btn{background:#2271b1;color:#fff}.wudm-logout{background:#444;color:#fff;margin-top:8px}.wudm-notice,.wudm-error{padding:10px 12px;border-radius:8px;margin-bottom:12px}.wudm-notice{background:#e8f7e8;color:#1d5b1d}.wudm-error{background:#fde8e8;color:#8a1f1f}.wudm-user-head{display:flex;gap:16px;align-items:center;margin-bottom:16px}.wudm-avatar{width:96px;height:96px;min-width:96px;max-width:96px;border-radius:50%;object-fit:cover;border:1px solid #ccc;display:block;flex:0 0 auto}.wudm-user-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.wudm-checkbox{display:flex;align-items:center;gap:8px}.wudm-entry-card{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.wudm-entry-actions{display:flex;flex-wrap:wrap;gap:12px}.wudm-modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.45);opacity:0;visibility:hidden;pointer-events:none;transition:.2s;z-index:2147483646}.wudm-modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;opacity:0;visibility:hidden;pointer-events:none;z-index:2147483647}.wudm-modal.is-open,.wudm-modal-backdrop.is-open{opacity:1;visibility:visible;pointer-events:auto}.wudm-modal-dialog{width:min(100%,860px);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 8px 40px rgba(0,0,0,.2)}.wudm-modal-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 16px 0 16px}.wudm-modal-body{padding:16px}.wudm-modal-close{background:#f1f1f1;color:#222;font-size:26px;line-height:1;padding:4px 12px}.wudm-modal-tabs{display:flex;flex-wrap:wrap;gap:10px}.wudm-tab-btn{background:#f1f1f1;color:#222}.wudm-tab-btn.is-active{background:#2271b1;color:#fff}.wudm-tab-panel{display:none}.wudm-tab-panel.is-active{display:block}.wudm-help-card{border-style:dashed}.wudm-auto-open-shell{position:relative;z-index:1}.wudm-auto-open-shell::before{content:"";position:fixed;inset:0;background:rgba(255,255,255,.6);z-index:9997;pointer-events:none;opacity:0;visibility:hidden;transition:.2s}.wudm-auto-open-shell.wudm-gate-active::before{opacity:1;visibility:visible}.wudm-auto-open-shell .wudm-entry-card{opacity:1}.wudm-auto-open-shell.wudm-gate-active .wudm-entry-card{opacity:.55}.wudm-auto-open-shell .wudm-modal.is-open~.wudm-entry-card,.wudm-auto-open-shell .wudm-entry-card.is-active{opacity:1}.wudm-summary-head{margin-bottom:0}.wudm-summary-meta{flex:1}.wudm-view-btn{margin-left:auto}.wudm-modal-open{overflow:hidden}@media (max-width:640px){.wudm-modal{padding:12px}.wudm-modal-header{align-items:flex-start;flex-direction:column}.wudm-user-head{align-items:flex-start;flex-direction:column}.wudm-view-btn{margin-left:0}}
.wudm-form-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:-4px}.wudm-text-link{background:none;border:none;padding:0;color:#2271b1;text-decoration:underline;cursor:pointer;font:inherit}.wudm-flash-message{transition:opacity .25s ease}
.wudm-wrap.wudm-popup-shell{max-width:420px;gap:0;margin-top:0;margin-bottom:0}.wudm-wrap.wudm-popup-shell>*{margin-top:0;margin-bottom:0}.wudm-entry-card--guest,.wudm-logged-summary{background:transparent;border:none;box-shadow:none;padding:0}.wudm-entry-actions--text,.wudm-entry-actions--stacked{display:flex;gap:4px;flex-direction:column;align-items:flex-start}.wudm-entry-actions--text{flex-direction:row;gap:18px}.wudm-entry-link,.wudm-entry-link:hover,.wudm-entry-link:focus{background:none !important;border:none !important;box-shadow:none !important;color:#0563b1 !important;padding:0 !important;text-decoration:underline;font-weight:700;cursor:pointer;font-size:16px;line-height:1}.wudm-summary-meta h3{margin:0 0 2px;font-size:17px;line-height:1.05;color:#d40000;font-weight:900;text-transform:uppercase}.wudm-summary-meta p{display:none}.wudm-avatar--small{width:52px;height:52px;min-width:52px;max-width:52px;border-radius:50%;object-fit:cover;aspect-ratio:1/1;display:block;flex:0 0 auto}.wudm-required{color:#d63638;font-weight:700}.wudm-checkbox{display:none}.wudm-user-head{gap:10px;margin:0}.wudm-card.wudm-profile-card .wudm-avatar,.wudm-logged-summary .wudm-avatar,.wudm-logged-summary .wudm-avatar--small{border-radius:50%;aspect-ratio:1/1;object-fit:cover;display:block}.wudm-entry-card--guest .wudm-user-head,.wudm-logged-summary .wudm-user-head{display:flex;align-items:center;justify-content:space-between;flex-direction:row-reverse;gap:10px;margin:0;min-height:52px}.wudm-summary-meta,.wudm-summary-meta--guest{flex:1;min-width:0}.wudm-entry-actions--stacked{flex-direction:row;flex-wrap:wrap;gap:18px;align-items:center}.wudm-logged-summary .wudm-entry-link{font-size:14px;font-weight:700}.wudm-avatar--guest{opacity:.18;filter:grayscale(100%);border:2px solid #444;background:#f3f3f3}.wudm-entry-card--guest,.wudm-logged-summary{border:none;padding:4px 0;margin:0}.wudm-wrap.wudm-popup-shell .wudm-notice,.wudm-wrap.wudm-popup-shell .wudm-error{margin-bottom:6px}@media (max-width:768px){.wudm-wrap.wudm-popup-shell{max-width:100%}.wudm-summary-meta h3{font-size:15px}.wudm-entry-link,.wudm-entry-link:hover,.wudm-entry-link:focus,.wudm-logged-summary .wudm-entry-link{font-size:13px}.wudm-avatar--small{width:44px;height:44px}.wudm-entry-card--guest,.wudm-logged-summary{padding:2px 0}.wudm-entry-card--guest .wudm-user-head,.wudm-logged-summary .wudm-user-head{gap:8px;min-height:44px}.wudm-entry-actions--text,.wudm-entry-actions--stacked{gap:12px}}@media (max-width:640px){.wudm-entry-actions--text,.wudm-entry-actions--stacked{gap:10px}.wudm-summary-meta h3{font-size:14px}.wudm-entry-link,.wudm-entry-link:hover,.wudm-entry-link:focus,.wudm-logged-summary .wudm-entry-link{font-size:12px}.wudm-avatar--small{width:40px;height:40px}.wudm-entry-card--guest,.wudm-logged-summary{padding:0}}


/* ===== Modal hardening + compact mobile layout ===== */
.wudm-modal,
.wudm-modal *{box-sizing:border-box}

.wudm-modal,
.wudm-modal-backdrop{
  font-family:Arial,sans-serif;
}

.wudm-modal{
  align-items:center;
}

.wudm-modal-dialog{
  width:min(100%,760px);
  max-width:760px;
  max-height:min(90vh,900px);
  margin:0 auto;
  background:#fff;
  color:#1f2937;
  border:1px solid #d9d9d9;
  border-radius:16px;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

.wudm-modal-header,
.wudm-modal-body,
.wudm-modal .wudm-card,
.wudm-modal .wudm-form,
.wudm-modal .wudm-user-head,
.wudm-modal .wudm-user-details{
  max-width:100%;
}

.wudm-modal-header{
  padding:14px 14px 0 14px;
}

.wudm-modal-header h3,
.wudm-modal .wudm-card h3,
.wudm-modal .wudm-card h4{
  margin:0;
  color:#1f2937;
  font-weight:700;
  line-height:1.25;
}

.wudm-modal .wudm-card h3{font-size:18px;margin-bottom:8px}
.wudm-modal .wudm-card h4{font-size:16px;margin:0 0 8px}

.wudm-modal .wudm-card p,
.wudm-modal .wudm-card label,
.wudm-modal .wudm-user-details,
.wudm-modal .wudm-user-details div{
  color:#374151;
  font-size:14px;
  line-height:1.45;
}

.wudm-modal .wudm-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:14px;
  box-shadow:none;
  padding:16px;
}

.wudm-modal .wudm-profile-card{
  padding:16px;
}

.wudm-modal .wudm-user-head{
  gap:12px;
  align-items:flex-start;
  margin-bottom:12px;
}

.wudm-modal .wudm-avatar{
  width:68px;
  height:68px;
  min-width:68px;
}

.wudm-modal .wudm-user-head h3{
  margin:0 0 4px;
  font-size:16px;
  line-height:1.2;
  word-break:break-word;
}

.wudm-modal .wudm-user-head p{
  margin:0 0 6px;
  font-size:13px;
  line-height:1.4;
  word-break:break-word;
}

.wudm-modal .wudm-user-details{
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:8px 14px;
}

.wudm-modal .wudm-form{
  gap:10px;
}

.wudm-modal .wudm-form label{
  display:block;
  margin:0;
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.02em;
}

.wudm-modal .wudm-form input,
.wudm-modal .wudm-form select,
.wudm-modal .wudm-form textarea,
.wudm-modal .wudm-form button,
.wudm-modal .wudm-logout,
.wudm-modal .wudm-modal-close,
.wudm-modal .wudm-tab-btn{
  font-family:Arial,sans-serif;
}

.wudm-modal .wudm-form input,
.wudm-modal .wudm-form select,
.wudm-modal .wudm-form textarea{
  width:100%;
  min-height:42px;
  padding:10px 12px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  background:#fff;
  color:#111827;
  font-size:14px;
  line-height:1.35;
  box-shadow:none;
  outline:none;
}

.wudm-modal .wudm-form input[type="file"]{
  padding:8px 10px;
}

.wudm-modal .wudm-form button,
.wudm-modal .wudm-logout,
.wudm-modal .wudm-modal-close,
.wudm-modal .wudm-tab-btn{
  border-radius:8px;
}

.wudm-modal .wudm-form button{
  min-height:40px;
  padding:10px 14px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.04em;
}

.wudm-modal .wudm-logout{
  margin-top:4px;
  padding:8px 12px;
  font-size:12px;
  line-height:1.2;
}

.wudm-modal .wudm-modal-close{
  min-width:36px;
  min-height:36px;
  padding:4px 10px;
  font-size:22px;
}

.wudm-modal .wudm-modal-tabs{
  gap:8px;
}

.wudm-modal .wudm-tab-btn{
  padding:8px 12px;
  font-size:13px;
  font-weight:600;
  line-height:1.2;
}

.wudm-modal hr{
  margin:12px 0;
  border:0;
  border-top:1px solid #e5e7eb;
}

@media (max-width:768px){
  .wudm-modal{
    padding:10px;
    align-items:flex-start;
  }

  .wudm-modal-dialog{
    width:min(100%,520px);
    max-height:calc(100vh - 20px);
    border-radius:14px;
  }

  .wudm-modal-header{
    padding:12px 12px 0 12px;
  }

  .wudm-modal-body{
    padding:12px;
  }

  .wudm-modal .wudm-card,
  .wudm-modal .wudm-profile-card{
    padding:12px;
  }

  .wudm-modal .wudm-modal-tabs{
    gap:6px;
  }

  .wudm-modal .wudm-tab-btn{
    padding:7px 10px;
    font-size:12px;
  }

  .wudm-modal .wudm-user-head{
    gap:10px;
  }

  .wudm-modal .wudm-avatar{
    width:58px;
    height:58px;
    min-width:58px;
  }

  .wudm-modal .wudm-user-head h3{
    font-size:15px;
  }

  .wudm-modal .wudm-user-head p,
  .wudm-modal .wudm-card p,
  .wudm-modal .wudm-card label,
  .wudm-modal .wudm-user-details,
  .wudm-modal .wudm-user-details div{
    font-size:13px;
  }

  .wudm-modal .wudm-form{
    gap:8px;
  }

  .wudm-modal .wudm-form label{
    font-size:11px;
  }

  .wudm-modal .wudm-form input,
  .wudm-modal .wudm-form select,
  .wudm-modal .wudm-form textarea{
    min-height:38px;
    padding:8px 10px;
    font-size:13px;
  }

  .wudm-modal .wudm-form input[type="file"]{
    min-height:auto;
    padding:7px 8px;
  }

  .wudm-modal .wudm-form button{
    min-height:36px;
    padding:8px 12px;
    font-size:12px;
  }

  .wudm-modal .wudm-logout{
    padding:7px 10px;
    font-size:11px;
  }
}

@media (max-width:480px){
  .wudm-modal{
    padding:8px;
  }

  .wudm-modal-dialog{
    width:100%;
    max-height:calc(100vh - 16px);
    border-radius:12px;
  }

  .wudm-modal-header{
    padding:10px 10px 0 10px;
    gap:8px;
  }

  .wudm-modal-body{
    padding:10px;
  }

  .wudm-modal .wudm-card,
  .wudm-modal .wudm-profile-card{
    padding:10px;
    border-radius:10px;
  }

  .wudm-modal .wudm-user-head{
    gap:8px;
    margin-bottom:10px;
  }

  .wudm-modal .wudm-avatar{
    width:50px;
    height:50px;
    min-width:50px;
  }

  .wudm-modal .wudm-user-head h3{
    font-size:14px;
  }

  .wudm-modal .wudm-user-head p,
  .wudm-modal .wudm-card p,
  .wudm-modal .wudm-card label,
  .wudm-modal .wudm-user-details,
  .wudm-modal .wudm-user-details div{
    font-size:12px;
    line-height:1.35;
  }

  .wudm-modal .wudm-user-details{
    grid-template-columns:1fr;
    gap:6px;
  }

  .wudm-modal .wudm-form label{
    font-size:10px;
  }

  .wudm-modal .wudm-form input,
  .wudm-modal .wudm-form select,
  .wudm-modal .wudm-form textarea{
    min-height:34px;
    padding:7px 9px;
    font-size:12px;
    border-radius:7px;
  }

  .wudm-modal .wudm-form button,
  .wudm-modal .wudm-tab-btn{
    font-size:11px;
  }

  .wudm-modal .wudm-modal-close{
    min-width:32px;
    min-height:32px;
    font-size:20px;
  }

  .wudm-modal .wudm-tab-btn{
    padding:6px 8px;
  }

  .wudm-modal .wudm-logout{
    font-size:10px;
  }
}


.wudm-google-login-wrap{margin-top:14px}.wudm-google-divider{position:relative;text-align:center;margin:2px 0 12px}.wudm-google-divider:before{content:"";position:absolute;left:0;right:0;top:50%;border-top:1px solid #d7d7d7}.wudm-google-divider span{position:relative;display:inline-block;background:#fff;padding:0 10px;color:#6b7280;font-size:12px;font-weight:600;text-transform:uppercase}.wudm-google-btn{display:flex;justify-content:center;min-height:44px}.wudm-google-login-form{display:none}.wudm-google-help{margin-top:10px!important;font-size:12px!important;line-height:1.45;color:#4b5563}.wudm-modal .wudm-google-help{margin-bottom:0}


.wudm-auto-open-shell{--wudm-popup-bg-image:none;}
.wudm-auto-open-shell::before{background:linear-gradient(rgba(10,18,26,.60),rgba(10,18,26,.60)),var(--wudm-popup-bg-image) center center/cover no-repeat,rgba(10,18,26,.94)!important;background-attachment:scroll!important;will-change:opacity,background;}
.wudm-auto-open-shell.wudm-gate-active::before,.wudm-auto-open-shell.wudm-gate-active.wudm-has-page-bg::before{opacity:1;visibility:visible;pointer-events:auto;}
.wudm-auto-open-shell.wudm-gate-active .wudm-entry-card{opacity:0;visibility:hidden;}
.wudm-auto-open-shell.wudm-gate-active .wudm-modal.is-open~.wudm-entry-card,.wudm-auto-open-shell .wudm-entry-card.is-active{opacity:1;visibility:visible;}

/* ===== Dashboard Sub Admin mode ===== */
.wudm-subadmin-mode-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:2px 0 4px;
  padding:3px 8px;
  border-radius:999px;
  background:#078b2f;
  color:#fff;
  font-size:10px;
  line-height:1;
  font-weight:900;
  letter-spacing:.8px;
  text-transform:uppercase;
}
.wudm-dashboard-master-update,
.wudm-dashboard-master-add{
  font-weight:900 !important;
}
.wudm-dashboard-master-update{
  color:#d40000 !important;
}
.wudm-dashboard-master-add{
  color:#078b2f !important;
}

.wudm-dashboard-master-topup-slot{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  margin-left:4px;
}
.wudm-dashboard-master-topup-slot:empty{
  display:none!important;
}
.wudm-subadmin-profile-section{
  display:grid;
  gap:10px;
}
.wudm-subadmin-active-card{
  display:grid;
  gap:6px;
  padding:12px;
  border:1px solid #7acb8c;
  border-radius:10px;
  background:#effcf2;
  color:#14532d;
}
.wudm-subadmin-active-card strong{
  font-size:16px;
  color:#14532d;
}
.wudm-subadmin-active-card span{
  width:max-content;
  max-width:100%;
  padding:4px 9px;
  border-radius:999px;
  background:#078b2f;
  color:#fff;
  font-size:11px;
  font-weight:900;
  letter-spacing:.5px;
}
.wudm-subadmin-active-card small{
  color:#365b42;
  line-height:1.45;
}
.wudm-subadmin-toggle-form{
  margin-top:2px;
}
.wudm-subadmin-toggle-off{
  background:#d40000 !important;
  color:#fff !important;
  border-color:#d40000 !important;
  font-weight:900 !important;
}
.wudm-subadmin-inactive-card{
  border-color:#ffb4b4;
  background:#fff3f3;
  color:#7a1111;
}
.wudm-subadmin-inactive-card strong{
  color:#7a1111;
}
.wudm-subadmin-inactive-card span{
  background:#d40000;
  color:#fff;
}
.wudm-subadmin-inactive-card small{
  color:#6f2a2a;
}


/* ===== Sub Admin ADD NEW FORMAT / TOPUP OPEN-CANCEL stable controls ===== */
.wudm-logged-summary .wudm-entry-actions--stacked{
  width:100%;
  max-width:100%;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:wrap!important;
  align-items:center;
  justify-content:center;
  gap:5px;
  row-gap:5px;
  overflow:visible!important;
}
.wudm-logged-summary .wudm-dashboard-master-update,
.wudm-logged-summary .wudm-dashboard-master-update:hover,
.wudm-logged-summary .wudm-dashboard-master-update:focus,
.wudm-logged-summary .wudm-dashboard-master-add,
.wudm-logged-summary .wudm-dashboard-master-add:hover,
.wudm-logged-summary .wudm-dashboard-master-add:focus{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  min-height:22px!important;
  height:22px!important;
  padding:0 8px!important;
  border:0!important;
  border-radius:999px!important;
  box-shadow:0 5px 12px rgba(0,0,0,.16)!important;
  color:#fff!important;
  text-decoration:none!important;
  font-size:9px!important;
  line-height:1!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  vertical-align:middle!important;
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  translate:none!important;
  transition:background-color .12s ease, box-shadow .12s ease!important;
}
.wudm-logged-summary .wudm-dashboard-master-update,
.wudm-logged-summary .wudm-dashboard-master-update:hover,
.wudm-logged-summary .wudm-dashboard-master-update:focus{
  flex:0 0 64px!important;
  min-width:64px!important;
  background:#d40000!important;
}
.wudm-logged-summary .wudm-dashboard-master-add,
.wudm-logged-summary .wudm-dashboard-master-add:hover,
.wudm-logged-summary .wudm-dashboard-master-add:focus{
  flex:0 1 132px!important;
  min-width:122px!important;
  background:#078b2f!important;
}
.wudm-dashboard-master-topup-slot{
  flex:0 0 100%;
  width:100%;
  min-height:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  align-content:center;
  gap:5px;
  margin:2px 0 0!important;
  padding:0!important;
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  translate:none!important;
  overflow:visible!important;
  z-index:3;
}
.wudm-dashboard-master-topup-slot:empty{
  display:none!important;
}
.wudm-dashboard-master-topup-slot button,
.wudm-dashboard-master-topup-slot a,
.wudm-dashboard-master-topup-slot [role=button]{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  flex:1 1 calc(50% - 5px)!important;
  min-width:82px!important;
  max-width:135px!important;
  min-height:22px!important;
  height:22px!important;
  margin:0!important;
  padding:0 6px!important;
  border:0!important;
  border-radius:999px!important;
  box-shadow:0 5px 12px rgba(0,0,0,.16)!important;
  color:#fff!important;
  cursor:pointer!important;
  font-size:8.5px!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:0!important;
  text-decoration:none!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  translate:none!important;
  transition:background-color .12s ease, box-shadow .12s ease!important;
  pointer-events:auto!important;
  user-select:none!important;
  -webkit-tap-highlight-color:transparent;
}
.wudm-dashboard-master-topup-slot button:hover,
.wudm-dashboard-master-topup-slot button:focus,
.wudm-dashboard-master-topup-slot a:hover,
.wudm-dashboard-master-topup-slot a:focus,
.wudm-dashboard-master-topup-slot [role=button]:hover,
.wudm-dashboard-master-topup-slot [role=button]:focus{
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  translate:none!important;
  outline:none!important;
}
.wudm-dashboard-master-topup-slot [data-wudm-subadmin-topup-action="format-edit"]{
  background:#0b2a6f!important;
}
.wudm-dashboard-master-topup-slot [data-wudm-subadmin-topup-action="seo-edit"]{
  background:#7a1fd1!important;
}
.wudm-dashboard-master-topup-slot [data-wudm-subadmin-topup-action="dept-form-edit"]{
  background:#0aa87b!important;
}
.wudm-dashboard-master-topup-slot [data-wudm-subadmin-topup-action="page-edit"]{
  background:#ff8a00!important;
}
.wudm-dashboard-master-topup-slot [data-wudm-subadmin-topup-action="open"]{
  background:#078b2f!important;
}
.wudm-dashboard-master-topup-slot [data-wudm-subadmin-topup-action="cancel"]{
  background:#d40000!important;
}
@media (max-width:640px){
  .wudm-logged-summary .wudm-dashboard-master-update,
  .wudm-logged-summary .wudm-dashboard-master-update:hover,
  .wudm-logged-summary .wudm-dashboard-master-update:focus,
  .wudm-logged-summary .wudm-dashboard-master-add,
  .wudm-logged-summary .wudm-dashboard-master-add:hover,
  .wudm-logged-summary .wudm-dashboard-master-add:focus,
  .wudm-dashboard-master-topup-slot button,
  .wudm-dashboard-master-topup-slot a,
  .wudm-dashboard-master-topup-slot [role=button]{
    height:21px!important;
    min-height:21px!important;
    line-height:21px!important;
    font-size:9px!important;
    padding:0 8px!important;
  }
}


/* ===== Sub Admin compact MENU beside UPDATE ===== */
.wudm-logged-summary,
.wudm-logged-summary .wudm-user-head,
.wudm-logged-summary .wudm-summary-meta,
.wudm-logged-summary .wudm-card{
  overflow:visible!important;
}
.wudm-logged-summary .wudm-summary-meta{
  position:relative!important;
}
.wudm-dashboard-master-menu-wrap{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  overflow:visible!important;
  z-index:50!important;
}
.wudm-logged-summary .wudm-dashboard-master-menu,
.wudm-logged-summary .wudm-dashboard-master-menu:hover,
.wudm-logged-summary .wudm-dashboard-master-menu:focus{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  flex:0 0 58px!important;
  min-width:58px!important;
  height:22px!important;
  min-height:22px!important;
  padding:0 8px!important;
  border:0!important;
  border-radius:999px!important;
  background:#0b2a6f!important;
  color:#fff!important;
  box-shadow:0 5px 12px rgba(0,0,0,.16)!important;
  text-decoration:none!important;
  font-size:9px!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  translate:none!important;
}
.wudm-dashboard-master-menu-panel{
  position:fixed!important;
  top:var(--wudm-subadmin-menu-top, 112px)!important;
  left:var(--wudm-subadmin-menu-left, auto)!important;
  right:var(--wudm-subadmin-menu-right, 12px)!important;
  bottom:auto!important;
  display:none!important;
  width:var(--wudm-subadmin-menu-width, min(260px, calc(100vw - 18px)))!important;
  max-width:calc(100vw - 18px)!important;
  max-height:var(--wudm-subadmin-menu-max-height, calc(100vh - 126px))!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:8px!important;
  border-radius:12px!important;
  border:1px solid rgba(11,42,111,.22)!important;
  background:#ffffff!important;
  color:#0b1220!important;
  box-shadow:0 18px 42px rgba(0,0,0,.28)!important;
  z-index:2147483647!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:6px!important;
  isolation:isolate!important;
  pointer-events:auto!important;
}
.wudm-dashboard-master-menu-wrap.is-open .wudm-dashboard-master-menu-panel,
.wudm-dashboard-master-menu-panel.is-open{
  display:flex!important;
}
body.wudm-subadmin-menu-open .wudm-dashboard-master-menu-panel.is-open{
  display:flex!important;
  z-index:2147483647!important;
}
.wudm-dashboard-master-menu-panel::before{
  content:"SUB ADMIN MENU";
  display:block;
  margin:0 0 2px;
  padding:4px 6px;
  border-radius:7px;
  background:#fff3f3;
  color:#d40000;
  font-size:9px;
  font-weight:900;
  line-height:1;
  text-align:center;
  letter-spacing:.4px;
}
.wudm-dashboard-master-menu-panel .wudm-dashboard-master-add,
.wudm-dashboard-master-menu-panel .wudm-dashboard-master-add:hover,
.wudm-dashboard-master-menu-panel .wudm-dashboard-master-add:focus{
  width:100%!important;
  max-width:100%!important;
  flex:0 0 auto!important;
  min-width:0!important;
  height:24px!important;
  min-height:24px!important;
  padding:0 8px!important;
  font-size:9px!important;
  background:#078b2f!important;
  color:#fff!important;
}
.wudm-dashboard-master-menu-panel .wudm-dashboard-master-topup-slot{
  width:100%!important;
  flex:0 0 auto!important;
  margin:0!important;
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
}
.wudm-dashboard-master-menu-panel .wudm-dashboard-master-topup-slot:empty{
  display:none!important;
}
.wudm-dashboard-master-menu-panel .wudm-dashboard-master-topup-slot button,
.wudm-dashboard-master-menu-panel .wudm-dashboard-master-topup-slot a,
.wudm-dashboard-master-menu-panel .wudm-dashboard-master-topup-slot [role=button]{
  width:100%!important;
  max-width:100%!important;
  flex:0 0 auto!important;
  min-width:0!important;
  height:24px!important;
  min-height:24px!important;
  font-size:8.5px!important;
  padding:0 8px!important;
}
@media (max-width:640px){
  .wudm-dashboard-master-menu-panel{
    width:min(230px, calc(100vw - 12px))!important;
    max-width:calc(100vw - 12px)!important;
    transform:none!important;
  }
}

/* WUDM Format Fill Guide persistent sub-admin setup */
.wudm-ffg-popup{position:fixed;left:160px;top:205px;width:360px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);display:none;flex-direction:column;z-index:2147483646;background:#f8fbff;border:1px solid #0d3b88;border-radius:12px;box-shadow:0 18px 50px rgba(0,0,0,.26);overflow:hidden;font-family:Arial,sans-serif}.wudm-ffg-popup.is-open{display:flex}.wudm-ffg-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:#123d8c;color:#fff;cursor:move;user-select:none}.wudm-ffg-head strong{font-size:13px;letter-spacing:.3px}.wudm-ffg-close{width:28px;height:28px;border:0;border-radius:50%;background:#e11d2e;color:#fff;font-size:20px;font-weight:900;line-height:1;cursor:pointer}.wudm-ffg-body{padding:10px 12px;overflow:auto}.wudm-ffg-help{padding:9px 10px;margin-bottom:10px;background:#fff3c4;border-radius:8px;color:#312505;font-size:11px;font-weight:800;line-height:1.45}.wudm-ffg-selected{padding:8px 10px;margin-bottom:10px;background:#dff8ea;border-radius:8px;color:#086537;font-size:11px;font-weight:900}.wudm-ffg-label{display:block;margin:8px 0 6px;color:#102a43;font-size:12px;font-weight:900}.wudm-ffg-entry-row{display:flex;align-items:center;gap:6px;margin-bottom:8px}.wudm-ffg-entry-input{flex:1;min-width:0;padding:8px 10px;border:1px solid #f0b400;border-radius:8px;background:#fffbe6;color:#111;font-size:13px;font-weight:800;box-sizing:border-box}.wudm-ffg-remove-entry{width:30px;height:30px;border:0;border-radius:8px;background:#dc1717;color:#fff;font-size:18px;font-weight:900;cursor:pointer}.wudm-ffg-add{border:0;border-radius:999px;background:#143b87;color:#fff;padding:7px 12px;font-size:12px;font-weight:900;cursor:pointer}.wudm-ffg-note{margin:10px 0;padding:8px 10px;border-radius:8px;background:#fff5cd;color:#5d4900;font-size:11px;font-weight:800}.wudm-ffg-saved{margin-top:10px;padding:9px;border:1px dashed #b8c1d1;border-radius:9px;background:#f5f8ff}.wudm-ffg-saved strong{display:block;margin-bottom:7px;color:#10315f;font-size:11px}.wudm-ffg-line-chip{display:block;width:100%;margin:5px 0;padding:7px 9px;border:1px solid #9bd7b0;border-radius:7px;background:#e8fbef;color:#0a5d2a;text-align:left;font-size:11px;font-weight:900;cursor:pointer}.wudm-ffg-empty{padding:8px;color:#697386;font-size:11px;font-weight:700}.wudm-ffg-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-top:1px solid #dde5f1;background:#edf4ff}.wudm-ffg-save{border:0;border-radius:999px;background:#008c35;color:#fff;padding:8px 13px;font-size:12px;font-weight:900;cursor:pointer}.wudm-ffg-status{min-width:0;color:#08752d;font-size:11px;font-weight:900}.wudm-ffg-status.is-bad{color:#c51616}.wudm-ffg-hint{position:fixed;z-index:2147483645;min-width:190px;max-width:300px;padding:9px;border:1px solid #0d3b88;border-radius:10px;background:#fffef4;box-shadow:0 12px 30px rgba(0,0,0,.22);font-family:Arial,sans-serif}.wudm-ffg-hint-title{margin-bottom:4px;color:#123d8c;font-size:11px;font-weight:900;letter-spacing:.3px}.wudm-ffg-hint-line{margin-bottom:6px;color:#08752d;font-size:10px;font-weight:900}.wudm-ffg-hint-list{display:flex;flex-direction:column;gap:6px}.wudm-ffg-hint-list button{border:1px solid #f0b400;border-radius:7px;background:#fffbe6;color:#111;padding:7px 9px;text-align:left;font-size:12px;font-weight:800;cursor:default}

/* Format Fill Guide delete + clean button/background patch */
.wudm-ffg-open-btn,
.wudm-dashboard-master-topup-slot .wudm-ffg-open-btn{
  background:linear-gradient(135deg,#0b2a6f,#078b2f)!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.48)!important;
  box-shadow:0 0 0 2px rgba(255,255,255,.20),0 6px 16px rgba(7,139,47,.28)!important;
  text-shadow:0 1px 2px rgba(0,0,0,.35)!important;
}
.wudm-ffg-help,
.wudm-ffg-note{
  background:#eef5ff!important;
  color:#123d8c!important;
}
.wudm-ffg-entry-input{
  background:#fff!important;
  border-color:#b7c5d8!important;
}
.wudm-ffg-entry-input:focus{
  border-color:#078b2f!important;
  box-shadow:0 0 0 2px rgba(7,139,47,.12)!important;
  outline:0!important;
}
.wudm-ffg-line-row{
  display:grid!important;
  grid-template-columns:1fr 66px!important;
  gap:6px!important;
  margin:5px 0!important;
  align-items:stretch!important;
}
.wudm-ffg-line-row .wudm-ffg-line-chip{
  margin:0!important;
}
.wudm-ffg-delete-line{
  min-height:32px!important;
  border:0!important;
  border-radius:7px!important;
  background:#dc1717!important;
  color:#fff!important;
  font-size:10px!important;
  font-weight:900!important;
  cursor:pointer!important;
}
.wudm-ffg-delete-line:hover{
  filter:brightness(1.08)!important;
  transform:translateY(-1px)!important;
}


/* ===== Sub Admin MENU Format Fill Guide visibility fix =====
   Panel body में move होने के बाद भी dashboard-added buttons full width visible रहेंगे. */
.wudm-dashboard-master-menu-panel{
  width:var(--wudm-subadmin-menu-width, min(260px, calc(100vw - 18px)))!important;
  max-height:var(--wudm-subadmin-menu-max-height, calc(100vh - 126px))!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
.wudm-dashboard-master-menu-panel .sdSubAdminTopupDock{
  width:100%!important;
  max-width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:6px!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}
.wudm-dashboard-master-menu-panel .sdSubAdminTopupDock[hidden]{
  display:none!important;
}
.wudm-dashboard-master-menu-panel .sdSubAdminTopupDock button,
.wudm-dashboard-master-menu-panel .sdSubAdminTopupDock a,
.wudm-dashboard-master-menu-panel .sdSubAdminTopupDock [role=button]{
  width:100%!important;
  max-width:100%!important;
  flex:0 0 auto!important;
  min-width:0!important;
  height:25px!important;
  min-height:25px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  font-size:8.8px!important;
  font-weight:950!important;
  line-height:1!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.wudm-dashboard-master-menu-panel .sdSubAdminTopupFillGuideBtn,
.wudm-dashboard-master-menu-panel [data-sd-subadmin-format-fill-guide="1"]{
  display:flex!important;
  background:linear-gradient(135deg,#0b2a6f,#078b2f)!important;
  color:#fff!important;
}


/* ===== Sub Admin WORD FILE ADD button ===== */
.wudm-dashboard-master-word-add[hidden]{
  display:none!important;
}
.wudm-dashboard-master-menu-panel .wudm-dashboard-master-word-add,
.wudm-dashboard-master-menu-panel .wudm-dashboard-master-word-add:hover,
.wudm-dashboard-master-menu-panel .wudm-dashboard-master-word-add:focus{
  width:100%!important;
  max-width:100%!important;
  flex:0 0 auto!important;
  min-width:0!important;
  height:24px!important;
  min-height:24px!important;
  padding:0 8px!important;
  border:0!important;
  border-radius:999px!important;
  background:linear-gradient(135deg,#8b1fc7,#245bff)!important;
  color:#fff!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.15px!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  box-shadow:0 5px 14px rgba(36,91,255,.24)!important;
}
