/* CODSHIPX_ROLE_UX_HISTORY_V58 */

/* =========================================================
   Unified operational notifications
   ========================================================= */

.toast-wrap,
.cx33-toast-wrap{
  position:fixed!important;
  z-index:28000!important;
  top:16px!important;
  right:16px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-end!important;
  gap:10px!important;
  width:min(430px,calc(100vw - 28px))!important;
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  pointer-events:none!important;
}

.toast-wrap:empty,
.cx33-toast-wrap:empty{
  display:none!important;
}

.toast,
.cx33-toast,
.cx40-toast,
.cx58-unified-toast{
  position:relative!important;
  inset:auto!important;
  display:grid!important;
  grid-template-columns:30px minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  width:100%!important;
  min-height:56px!important;
  padding:12px 15px!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:#06090f!important;
  border:1px solid #2a3442!important;
  border-left:4px solid #18c983!important;
  border-radius:15px!important;
  box-shadow:0 18px 48px rgba(0,0,0,.38)!important;
  font-size:12px!important;
  font-weight:850!important;
  line-height:1.45!important;
  opacity:0!important;
  transform:translateY(-9px) scale(.985)!important;
  transition:opacity .32s ease,transform .32s ease!important;
  pointer-events:auto!important;
  cursor:pointer!important;
  overflow:hidden!important;
}

.toast.is-visible,
.cx33-toast.is-visible,
.cx40-toast.is-visible,
.cx58-unified-toast.is-visible{
  opacity:1!important;
  transform:translateY(0) scale(1)!important;
}

.toast.is-leaving,
.cx33-toast.is-leaving,
.cx40-toast.is-leaving,
.cx58-unified-toast.is-leaving{
  opacity:0!important;
  transform:translateY(-9px) scale(.985)!important;
}

.toast::before,
.toast::after,
.cx33-toast::before,
.cx33-toast::after,
.cx40-toast::before,
.cx40-toast::after,
.cx58-unified-toast::before,
.cx58-unified-toast::after{
  display:none!important;
  content:none!important;
}

.toast strong,
.cx33-toast strong,
.cx40-toast strong,
.cx58-unified-toast strong{
  display:grid!important;
  place-items:center!important;
  width:28px!important;
  height:28px!important;
  margin:0!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:#12b977!important;
  border-radius:9px!important;
  font-size:14px!important;
  font-weight:950!important;
}

.toast span,
.cx33-toast span,
.cx40-toast span,
.cx58-unified-toast span{
  display:block!important;
  min-width:0!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}

.toast.error,
.cx33-toast-error,
.cx40-toast.is-error,
.cx58-toast-error{
  border-color:#54212d!important;
  border-left-color:#ef3557!important;
}

.toast.error strong,
.cx33-toast-error strong,
.cx40-toast.is-error strong,
.cx58-toast-error strong{
  background:#e52b4d!important;
}

.toast.warning,
.cx33-toast-warning,
.cx58-toast-warning{
  border-color:#58421d!important;
  border-left-color:#ffad13!important;
}

.toast.warning strong,
.cx33-toast-warning strong,
.cx58-toast-warning strong{
  background:#f59e0b!important;
}

/* =========================================================
   Buttons
   ========================================================= */

.cx25-panel-head button[data-tab="leads"]{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:linear-gradient(135deg,#1468f2,#4b43e9)!important;
  border:1px solid transparent!important;
  box-shadow:0 7px 18px rgba(20,104,242,.20)!important;
  opacity:1!important;
}

button[data-agent-action="end-work"],
.attendance-actions .btn-red{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:linear-gradient(135deg,#d81d43,#f04763)!important;
  border:1px solid #ff7188!important;
  box-shadow:0 8px 20px rgba(216,29,67,.23)!important;
  opacity:1!important;
}

button[data-agent-action="end-work"]:disabled,
.attendance-actions .btn-red:disabled{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:linear-gradient(135deg,#bd2440,#dc4860)!important;
  opacity:.78!important;
}

/* =========================================================
   Strong, readable statuses
   ========================================================= */

.status,
.onb-pill{
  opacity:1!important;
  font-weight:900!important;
  text-transform:capitalize!important;
}

.status-pending,
.onb-pill.warn{
  color:#8f5000!important;
  -webkit-text-fill-color:#8f5000!important;
  background:#fff0c7!important;
  border-color:#ffbd4a!important;
}

.status-opened,
.status-open,
.status-info,
.onb-pill.info{
  color:#075b9d!important;
  -webkit-text-fill-color:#075b9d!important;
  background:#e1f1ff!important;
  border-color:#72bdf3!important;
}

.status-registered{
  color:#5c2fc0!important;
  -webkit-text-fill-color:#5c2fc0!important;
  background:#eee6ff!important;
  border-color:#b59aff!important;
}

.status-completed,
.status-active,
.status-approved,
.onb-pill:not(.warn):not(.bad):not(.info){
  color:#087443!important;
  -webkit-text-fill-color:#087443!important;
  background:#e1f9ed!important;
  border-color:#75d2a4!important;
}

.status-rejected,
.status-banned,
.status-suspended,
.onb-pill.bad{
  color:#b11f42!important;
  -webkit-text-fill-color:#b11f42!important;
  background:#ffe5ec!important;
  border-color:#ef8ca4!important;
}

/* =========================================================
   Professional confirmations
   ========================================================= */

.onb-v16-confirm-shell{
  z-index:29000!important;
  background:rgba(2,8,20,.76)!important;
  backdrop-filter:blur(10px)!important;
}

.onb-v16-confirm-card{
  width:min(500px,calc(100vw - 28px))!important;
  padding:24px!important;
  color:#10213d!important;
  background:linear-gradient(180deg,#fff 0%,#f7faff 100%)!important;
  border:1px solid #d4e1f2!important;
  border-radius:22px!important;
  box-shadow:0 30px 90px rgba(0,0,0,.42)!important;
}

.onb-v16-confirm-card h3{
  color:#10213d!important;
  -webkit-text-fill-color:#10213d!important;
  font-size:20px!important;
  font-weight:950!important;
}

.onb-v16-confirm-card p{
  color:#53657f!important;
  -webkit-text-fill-color:#53657f!important;
  font-size:13px!important;
  line-height:1.65!important;
}

.onb-v16-confirm-icon{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:linear-gradient(135deg,#ef3154,#b91436)!important;
}

.onb-v16-confirm-cancel{
  color:#203550!important;
  -webkit-text-fill-color:#203550!important;
  background:#edf3fb!important;
  border-color:#c8d8ec!important;
}

.onb-v16-confirm-proceed{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:linear-gradient(135deg,#c91f42,#ed4f6d)!important;
  border-color:transparent!important;
}

/* =========================================================
   New-message badge and phone-style preview
   ========================================================= */

.cx33-message-bell{
  position:relative!important;
  overflow:visible!important;
}

.cx33-message-bell strong,
[data-cx34-message-count]{
  display:grid!important;
  place-items:center!important;
  min-width:20px!important;
  height:20px!important;
  padding:0 5px!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:#e52549!important;
  border:2px solid #fff!important;
  border-radius:999px!important;
  box-shadow:0 4px 12px rgba(229,37,73,.34)!important;
  font-size:10px!important;
  font-weight:950!important;
}

.cx58-message-peek{
  position:fixed!important;
  z-index:28500!important;
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr) 22px!important;
  align-items:center!important;
  gap:11px!important;
  padding:11px 12px!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  text-align:left!important;
  background:#06090f!important;
  border:1px solid #27364c!important;
  border-left:4px solid #2d8cff!important;
  border-radius:16px!important;
  box-shadow:0 22px 55px rgba(0,0,0,.40)!important;
  opacity:0!important;
  transform:translateY(-8px) scale(.985)!important;
  transition:opacity .32s ease,transform .32s ease!important;
  cursor:pointer!important;
}

.cx58-message-peek.is-visible{
  opacity:1!important;
  transform:translateY(0) scale(1)!important;
}

.cx58-message-peek.is-leaving{
  opacity:0!important;
  transform:translateY(-8px) scale(.985)!important;
}

.cx58-message-peek-icon{
  display:grid!important;
  place-items:center!important;
  width:42px!important;
  height:42px!important;
  color:#fff!important;
  background:linear-gradient(135deg,#1268ed,#6850f4)!important;
  border-radius:13px!important;
}

.cx58-message-peek-copy strong,
.cx58-message-peek-copy small{
  display:block!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

.cx58-message-peek-copy strong{
  margin-bottom:3px!important;
  font-size:12px!important;
  font-weight:950!important;
}

.cx58-message-peek-copy small{
  max-height:34px!important;
  overflow:hidden!important;
  color:#dce8f8!important;
  -webkit-text-fill-color:#dce8f8!important;
  font-size:10px!important;
  line-height:1.55!important;
}

.cx58-message-peek-count{
  display:grid!important;
  place-items:center!important;
  width:21px!important;
  height:21px!important;
  color:#fff!important;
  background:#e52549!important;
  border-radius:999px!important;
  font-size:10px!important;
  font-weight:950!important;
}

/* =========================================================
   Native Quick Register History
   ========================================================= */

.sidebar a[href*="/admin/quick-register-history"],
.sidebar a[href*="/admin/quick-register/history"]{
  display:none!important;
}

.onb-v58-history-page{
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid #d6e3f3!important;
  border-radius:20px!important;
  box-shadow:0 15px 40px rgba(31,61,111,.08)!important;
}

.onb-v58-history-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  padding:19px 21px!important;
  color:#fff!important;
  background:linear-gradient(135deg,#0d326a,#1f5ea9)!important;
}

.onb-v58-history-head h2,
.onb-v58-history-head p,
.onb-v58-history-head span{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
}

.onb-v58-history-head h2{
  margin:0 0 4px!important;
  font-size:19px!important;
  font-weight:950!important;
}

.onb-v58-history-head p{
  margin:0!important;
  font-size:11px!important;
  color:#dcecff!important;
  -webkit-text-fill-color:#dcecff!important;
}

.onb-v58-history-head > span{
  padding:7px 10px!important;
  background:rgba(255,255,255,.13)!important;
  border:1px solid rgba(255,255,255,.22)!important;
  border-radius:999px!important;
  font-size:11px!important;
  font-weight:900!important;
}

.onb-v58-history-filter{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 230px auto!important;
  gap:10px!important;
  padding:16px!important;
  margin:0!important;
  background:#f7faff!important;
  border-bottom:1px solid #dce7f5!important;
}

.onb-v58-history-filter input,
.onb-v58-history-filter select{
  color:#10213d!important;
  -webkit-text-fill-color:#10213d!important;
  background:#fff!important;
}

.onb-v58-history-filter select,
.onb-v58-history-filter select option,
#onbQuickFilters select,
#onbQuickFilters select option,
#onbSellerFilters select,
#onbSellerFilters select option{
  color-scheme:light!important;
  color:#10213d!important;
  -webkit-text-fill-color:#10213d!important;
  background:#fff!important;
}

.onb-v58-history-table-wrap{
  overflow:auto!important;
  max-height:calc(100vh - 330px)!important;
  background:#fff!important;
}

.onb-v58-history-table{
  width:100%!important;
  min-width:1050px!important;
  border-collapse:collapse!important;
}

.onb-v58-history-table th{
  position:sticky!important;
  z-index:2!important;
  top:0!important;
  padding:12px 14px!important;
  color:#17304f!important;
  -webkit-text-fill-color:#17304f!important;
  background:#eef4fb!important;
  border-bottom:1px solid #d4e1f0!important;
  font-size:10px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.05em!important;
  text-align:left!important;
}

.onb-v58-history-table td{
  padding:13px 14px!important;
  color:#334155!important;
  -webkit-text-fill-color:#334155!important;
  background:#fff!important;
  border-bottom:1px solid #e1e9f3!important;
  vertical-align:top!important;
  font-size:12px!important;
}

.onb-v58-history-table tr:hover td{
  background:#f8fbff!important;
}

.onb-v58-history-table td > strong{
  display:block!important;
  margin-bottom:3px!important;
  color:#10213d!important;
  -webkit-text-fill-color:#10213d!important;
  font-size:13px!important;
  font-weight:950!important;
}

.onb-v58-history-table td > small{
  display:block!important;
  color:#6b7f9b!important;
  -webkit-text-fill-color:#6b7f9b!important;
}

.onb-v58-history-extra{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:4px 10px!important;
  margin-top:7px!important;
  max-width:520px!important;
}

.onb-v58-history-extra span{
  color:#536981!important;
  -webkit-text-fill-color:#536981!important;
  font-size:10px!important;
  line-height:1.45!important;
}

.onb-v58-history-extra b{
  color:#203a5a!important;
  -webkit-text-fill-color:#203a5a!important;
}

.onb-v58-history-extra .is-reject,
.onb-v58-history-extra .is-reject b{
  color:#b42345!important;
  -webkit-text-fill-color:#b42345!important;
}

.onb-v58-view{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:linear-gradient(135deg,#078b52,#15b96c)!important;
  border-color:transparent!important;
  white-space:nowrap!important;
}

.onb-v58-history-empty{
  padding:36px!important;
  text-align:center!important;
  color:#6b7f9b!important;
}

.onb-v58-history-page .pagination{
  padding:13px 16px!important;
  background:#f8fbff!important;
  border-top:1px solid #dce7f5!important;
}

/* =========================================================
   Responsive
   ========================================================= */

@media(max-width:760px){
  .toast-wrap,
  .cx33-toast-wrap{
    top:10px!important;
    right:10px!important;
    width:calc(100vw - 20px)!important;
  }

  .cx58-message-peek{
    left:10px!important;
    right:10px!important;
    width:auto!important;
  }

  .onb-v58-history-filter{
    grid-template-columns:1fr!important;
  }

  .onb-v58-history-head{
    align-items:flex-start!important;
    flex-direction:column!important;
  }
}

