/* Stock Sync IMS — Pending Workflow + Reports V6 */
.pw-v6-success-root{position:fixed;inset:0;z-index:1000000;display:grid;place-items:center;padding:18px;background:rgba(8,28,48,.28);backdrop-filter:blur(5px);opacity:0;transition:opacity .2s ease}.pw-v6-success-root.show{opacity:1}.pw-v6-success-root.leaving{opacity:0}.pw-v6-success-card{width:min(420px,calc(100vw - 32px));padding:28px 24px 22px;border-radius:24px;background:#fff;border:1px solid #d9eee5;box-shadow:0 28px 80px rgba(7,39,61,.25);text-align:center;transform:translateY(12px) scale(.97);transition:transform .22s ease}.pw-v6-success-root.show .pw-v6-success-card{transform:none}.pw-v6-success-check{width:72px;height:72px;margin:0 auto 15px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#17a673,#2ecb8f);color:#fff;font-size:38px;font-weight:900;box-shadow:0 13px 30px rgba(23,166,115,.28)}.pw-v6-success-card h2{margin:0;color:#12334d;font-size:24px}.pw-v6-success-card p{margin:9px 0 18px;color:#617687;line-height:1.5}.pw-v6-success-card button{min-width:120px;border:0;border-radius:12px;padding:11px 18px;background:#117b67;color:#fff;font-weight:800;cursor:pointer}.pw-v6-success-card button:hover{filter:brightness(.95)}
/* Keep the delete confirmation comfortable but less oversized. */
.s84-confirm-modal{max-width:494px!important;padding:20px!important}.s84-confirm-icon{width:58px!important;height:58px!important;font-size:26px!important;margin-bottom:10px!important}.s84-confirm-modal h2{font-size:22px!important}.s84-confirm-message{margin:8px 0 12px!important}.s84-confirm-modal textarea{min-height:76px!important}.s84-modal-actions{margin-top:14px!important}
/* Date columns stay readable without making the full table excessively wide. */
[data-pending-id] td:nth-child(2),[data-pending-id] td:nth-child(3){min-width:145px;white-space:normal}.report-pro-fields #rmp-location{min-width:190px}
[data-theme="dark"] .pw-v6-success-card{background:#152a3d;border-color:#27516a}.pw-v6-success-card h2{color:#12334d}[data-theme="dark"] .pw-v6-success-card h2{color:#f1f7fb}[data-theme="dark"] .pw-v6-success-card p{color:#b8c8d4}
@media(max-width:700px){.pw-v6-success-card{padding:24px 18px}.pw-v6-success-check{width:64px;height:64px}.s84-confirm-modal{max-width:calc(100vw - 20px)!important;padding:17px!important}}

/* =========================================================
   V7 — Pending Create header action button alignment
   Keep Delete Selected and Create Pending equal sized with a clear gap.
   ========================================================= */
.pending-page-head .toolbar > div:last-child{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:18px!important;
  flex-wrap:wrap!important;
}
.pending-page-head .toolbar > div:last-child > .btn,
.pending-page-head .toolbar > div:last-child > .s84-bulk-delete{
  width:190px!important;
  min-width:190px!important;
  height:48px!important;
  min-height:48px!important;
  padding:0 18px!important;
  margin:0!important;
  border-radius:14px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1!important;
  white-space:nowrap!important;
  font-size:14px!important;
  font-weight:800!important;
}
@media(max-width:700px){
  .pending-page-head .toolbar > div:last-child{
    width:100%!important;
    justify-content:stretch!important;
    gap:10px!important;
  }
  .pending-page-head .toolbar > div:last-child > .btn,
  .pending-page-head .toolbar > div:last-child > .s84-bulk-delete{
    flex:1 1 160px!important;
    width:auto!important;
    min-width:0!important;
    height:45px!important;
    min-height:45px!important;
  }
}
