/* USEmbroidery OMS - Metis theme integration
   Keep this file SMALL: Metis template CSS lives in /wwwroot/metis/assets/main-*.css
*/

/* ===== USEMB Brand (Logo + Neutral Grey Accent) ===== */
:root {
  --usemb-accent: #7B7B7B;
  --usemb-accent-hover: #8B8B8B;
  --usemb-accent-active: #6B6B6B;
  --usemb-accent-rgb: 123, 123, 123;
  --usemb-accent-subtle: rgba(172, 172, 172, 0.22);
}



/* Ensure accent overrides apply in both themes (removes default purple/blue) */
html[data-bs-theme="dark"], html[data-bs-theme="light"]{
    --bs-primary: var(--usemb-accent);
    --bs-primary-rgb: var(--usemb-accent-rgb);

    /* Bootstrap 5.3 derived vars (Metis ships these precomputed in purple)
       Override them so hover/focus states never fall back to purple. */
    --bs-primary-text-emphasis: var(--usemb-accent-active);
    --bs-primary-bg-subtle: rgba(var(--usemb-accent-rgb), 0.14);
    --bs-primary-border-subtle: rgba(var(--usemb-accent-rgb), 0.28);

    --bs-link-color: var(--usemb-accent);
    --bs-link-hover-color: var(--usemb-accent-hover);
    --bs-focus-ring-color: rgba(var(--usemb-accent-rgb), .25);
}

[data-bs-theme="dark"] {
  --usemb-accent: #ACACAC;
  --usemb-accent-hover: #C0C0C0;
  --usemb-accent-active: #9A9A9A;
  --usemb-accent-rgb: 172, 172, 172;
  --usemb-accent-subtle: rgba(172, 172, 172, 0.20);
}

:root {
  --bs-primary: var(--usemb-accent);
  --bs-primary-rgb: var(--usemb-accent-rgb);
  --bs-link-color: var(--usemb-accent);
  --bs-link-hover-color: var(--usemb-accent-hover);
}

/* Primary utilities */
.bg-primary { background-color: var(--usemb-accent) !important; }
.text-primary { color: var(--usemb-accent) !important; }
.border-primary { border-color: var(--usemb-accent) !important; }
.bg-primary-subtle { background-color: var(--usemb-accent-subtle) !important; }
.text-primary-emphasis { color: var(--usemb-accent-active) !important; }

/* Buttons */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--usemb-accent);
  --bs-btn-border-color: var(--usemb-accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--usemb-accent-hover);
  --bs-btn-hover-border-color: var(--usemb-accent-hover);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--usemb-accent-active);
  --bs-btn-active-border-color: var(--usemb-accent-active);
}

/* Extra safety: force hover/active backgrounds (some Metis rules set colors directly) */
.btn-primary{
  background-color: var(--usemb-accent) !important;
  border-color: var(--usemb-accent) !important;
}
.btn-primary:hover,
.btn-primary:focus{
  background-color: var(--usemb-accent-hover) !important;
  border-color: var(--usemb-accent-hover) !important;
}
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle{
  background-color: var(--usemb-accent-active) !important;
  border-color: var(--usemb-accent-active) !important;
}

[data-bs-theme="dark"] .btn-primary {
  --bs-btn-color: #0b1220;
  --bs-btn-hover-color: #0b1220;
  --bs-btn-active-color: #0b1220;
}

[data-bs-theme="dark"] .btn-primary,
[data-bs-theme="dark"] .btn-primary:hover,
[data-bs-theme="dark"] .btn-primary:focus,
[data-bs-theme="dark"] .btn-primary:active{
  color: #0b1220 !important;
}

.btn-outline-primary {
  --bs-btn-color: var(--usemb-accent);
  --bs-btn-border-color: var(--usemb-accent);
  --bs-btn-hover-bg: var(--usemb-accent);
  --bs-btn-hover-border-color: var(--usemb-accent);
  --bs-btn-hover-color: #fff;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus{
  background-color: var(--usemb-accent) !important;
  border-color: var(--usemb-accent) !important;
}

[data-bs-theme="dark"] .btn-outline-primary {
  --bs-btn-hover-color: #0b1220;
}

.form-check-input:checked {
  background-color: var(--usemb-accent) !important;
  border-color: var(--usemb-accent) !important;
}

.page-link {
  color: var(--usemb-accent);
}
.page-item.active .page-link {
  background-color: var(--usemb-accent);
  border-color: var(--usemb-accent);
  color: #fff;
}
[data-bs-theme="dark"] .page-item.active .page-link {
  color: #0b1220;
}

/* Badges that assume white text (dark theme uses light primary) */
[data-bs-theme="dark"] .badge.bg-primary,
[data-bs-theme="dark"] .text-bg-primary,
[data-bs-theme="dark"] .badge.text-bg-primary {
  color: #0b1220 !important;
}

/* Stats icon in cards (theme uses hard-coded purple) */
.stats-card .stats-icon.bg-primary {
  background: var(--usemb-accent-subtle) !important;
  color: var(--usemb-accent) !important;
}

/* Sidebar active items (keep subtle highlight) */
#admin-sidebar .nav-link.active {
  background: var(--usemb-accent-subtle) !important;
  color: var(--usemb-accent) !important;
}

/* Brand logo swap (light vs dark) */
.brand-logo .brand-logo-dark,
.brand-logo .brand-circle-dark { display: none; }
[data-bs-theme="dark"] .brand-logo .brand-logo-dark,
[data-bs-theme="dark"] .brand-logo .brand-circle-dark { display: inline-block; }
[data-bs-theme="dark"] .brand-logo .brand-logo-light,
[data-bs-theme="dark"] .brand-logo .brand-circle-light { display: none; }

.brand-logo-img { height: 30px; width: auto; max-width: 170px; }
.brand-circle-img { height: 34px; width: 34px; object-fit: contain; }

/* On very small screens, prefer circle logo */
@media (max-width: 576px) {
  .brand-logo-img { display: none; }
  .brand-circle-img { display: inline-block; }
}
@media (min-width: 577px) {
  .brand-circle-img { display: none; }
}

/* Auth + Print logo sizes */
.login-logo-sm { height: 40px; width: auto; max-width: 200px; }
.print-logo { height: 34px; width: auto; max-width: 240px; }



html, body { height: 100%; }

/* Map legacy custom classes to Metis/Bootstrap look so existing pages render "Metis-like" without rewriting every view */
.usemb-card{
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 1rem;
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.06);
}

.table-usemb{
  border-color: var(--bs-border-color-translucent);
}
.table-usemb thead th{
  font-weight: 600;
  color: var(--bs-body-color);
  border-bottom-width: 1px;
}
.table-usemb tbody td{
  vertical-align: middle;
}

.btn-usemb{
  /* Make it a proper Bootstrap button variant so .btn:hover doesn't override it */
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bs-primary);
  --bs-btn-active-border-color: var(--bs-primary);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--bs-primary);
  --bs-btn-disabled-border-color: var(--bs-primary);
}
.btn-usemb:hover{
  filter: brightness(.96);
}

.badge-soft{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: rgba(var(--bs-primary-rgb), .12);
  border: 1px solid rgba(var(--bs-primary-rgb), .22);
  color: var(--bs-primary);
  font-weight: 600;
}

.badge-soft.badge-success{
  background: rgba(var(--bs-success-rgb), .12);
  border-color: rgba(var(--bs-success-rgb), .22);
  color: var(--bs-success);
}
.badge-soft.badge-warning{
  background: rgba(var(--bs-warning-rgb), .12);
  border-color: rgba(var(--bs-warning-rgb), .22);
  color: var(--bs-warning);
}
.badge-soft.badge-danger{
  background: rgba(var(--bs-danger-rgb), .12);
  border-color: rgba(var(--bs-danger-rgb), .22);
  color: var(--bs-danger);
}


.badge-soft.badge-info{
  background: rgba(var(--bs-info-rgb), .18);
  color: rgba(var(--bs-info-rgb), 1);
  border: 1px solid rgba(var(--bs-info-rgb), .25);
}
.badge-soft.badge-secondary{
  background: rgba(var(--bs-secondary-rgb), .18);
  color: rgba(var(--bs-secondary-rgb), 1);
  border: 1px solid rgba(var(--bs-secondary-rgb), .25);
}
/* DataTables: make it look closer to Metis */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select{
  border-radius: .75rem;
}
.dataTables_wrapper .pagination .page-link{
  border-radius: .6rem;
}

/* File preview cards created by site.js */
.file-preview-card{
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 1rem;
  background: var(--bs-body-bg);
  padding: .75rem;
}


/* Search box + filter bar (Metis-like) */
.search-box{ position: relative; }
.search-box .search-icon{
  position:absolute;
  left:.75rem;
  top:50%;
  transform:translateY(-50%);
  opacity:.65;
}
.search-box input.form-control{
  padding-left: 2.25rem;
  min-width: 220px;
}

.usemb-filterbar{
  display:flex;
  align-items:center;
  gap:.6rem;
  flex-wrap:wrap;
}

/* Keep Choices.js wrappers aligned in filter bars */
.usemb-filterbar .choices{ margin: 0 !important; }
.usemb-filterbar .choices__inner{ display:flex; align-items:center; }
.usemb-filterbar .choices__list--single{ display:flex; align-items:center; }
.usemb-filterbar .form-control,
.usemb-filterbar .form-select,
.usemb-filterbar .choices__inner{
  border-radius: .9rem;
}
.usemb-filterbar .form-control{
  min-width: 220px;
}

/* Metis-thin controls for filter bars */
.usemb-filterbar .form-control,
.usemb-filterbar .form-select{
  min-height: 32px;
  padding-top: .25rem;
  padding-bottom: .25rem;
  font-size: .875rem;
}
.usemb-filterbar .choices__inner{
  min-height: 32px;
  padding-top: .15rem;
  padding-bottom: .15rem;
  font-size: .875rem;
}
.search-box input.form-control.form-control-sm{
  min-height: 32px;
}

/* Choices.js dark theme overrides */
.choices__inner{
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: .9rem;
  min-height: 38px;
  padding-top: .25rem;
  padding-bottom: .25rem;
}
.choices__list--dropdown,
.choices__list[aria-expanded]{
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: .9rem;
  z-index: 1065; /* above modals/backdrops */
}
.choices__item,
.choices__input{
  color: var(--bs-body-color);
}
.choices__placeholder{ opacity: .65; }
.choices__list--dropdown .choices__item--selectable.is-highlighted{
  background: rgba(var(--bs-primary-rgb), .14);
}

/* Tables: keep headers dark (avoid .table-light turning white) */
.table thead th{
  background: rgba(255,255,255,.04);
  border-bottom-color: var(--bs-border-color-translucent);
}
.table tbody tr{
  border-color: var(--bs-border-color-translucent);
}

/* Metis-like toasts */
#toastContainer{ z-index: 1095; }
.usemb-toast{
  background: rgba(18, 22, 30, .96);
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 1rem;
  box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.35);
}
.usemb-toast .toast-body{ color: rgba(255,255,255,.92); font-weight: 600; }
.usemb-toast.usemb-toast-success{ border-left: 4px solid var(--bs-success); }
.usemb-toast.usemb-toast-danger{ border-left: 4px solid var(--bs-danger); }
.usemb-toast.usemb-toast-warning{ border-left: 4px solid var(--bs-warning); }
.usemb-toast.usemb-toast-info{ border-left: 4px solid var(--bs-info); }

/* Make action dots button match Metis */
.btn-soft-secondary{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.btn-soft-secondary:hover{
  background: rgba(255,255,255,.10);
}


/* ===== Metis-style dropdowns inside tables (prevent clipping) ===== */
.table-responsive {
  overflow-x: auto;
  overflow-y: visible;
}
.table-responsive .dropdown-menu {
  z-index: 1085; /* above cards/table */
}

/* Action dropdown menus inside grids: show all options without an internal scrollbar */
.table-responsive .dropdown-menu.usemb-actions-menu {
  max-height: none !important;
  overflow-y: visible !important;
  overflow-x: visible !important;
}

/* When an action menu opens near the bottom of a scrollable table, add some breathing room */
.table-responsive.usemb-dropdown-pad {
  padding-bottom: 260px;
}

/* ===== Choices.js: Metis-like dropdowns (theme-aware) ===== */
.choices__list--dropdown, .choices__list[aria-expanded] {
  border-radius: 12px;
  overflow: hidden;
}

/* Default (light): use normal body colors */
[data-bs-theme="light"] .choices__list--dropdown .choices__item--selectable{
  background: transparent;
  color: var(--bs-body-color);
  padding: .55rem .75rem;
}
[data-bs-theme="light"] .choices__item.choices__placeholder,
[data-bs-theme="light"] .choices__list--dropdown .choices__placeholder{
  color: rgba(var(--bs-body-color-rgb), .6) !important;
  background: transparent !important;
}
[data-bs-theme="light"] .choices__list--dropdown .choices__item--selectable.is-selected{
  background: rgba(0,0,0,.04) !important;
  color: var(--bs-body-color) !important;
}
[data-bs-theme="light"] .choices__list--dropdown .choices__item--selectable.is-highlighted{
  background: rgba(var(--bs-primary-rgb), .14) !important;
  color: var(--bs-body-color) !important;
}

/* Dark theme: slightly brighter items */
[data-bs-theme="dark"] .choices__list--dropdown .choices__item--selectable{
  background: transparent;
  color: rgba(255,255,255,.9);
  padding: .55rem .75rem;
}
[data-bs-theme="dark"] .choices__item.choices__placeholder,
[data-bs-theme="dark"] .choices__list--dropdown .choices__placeholder{
  color: rgba(255,255,255,.55) !important;
  background: transparent !important;
}
[data-bs-theme="dark"] .choices__list--dropdown .choices__item--selectable.is-selected{
  background: rgba(255,255,255,.06) !important;
  color: rgba(255,255,255,.95) !important;
}
[data-bs-theme="dark"] .choices__list--dropdown .choices__item--selectable.is-highlighted{
  background: rgba(var(--bs-primary-rgb), .15) !important;
  color: #fff !important;
}

/* Trigger pill in filter bars: keep height aligned with inputs */
.usemb-filterbar .choices[data-type*="select-one"] .choices__inner{
  min-height: 32px;
  border-radius: 999px !important;
}
.usemb-filterbar .choices[data-type*="select-one"] .choices__list--single{
  padding: 4px 34px 4px 14px;
}


/* Global loading overlay (used on Save/Delete/AJAX) */
.loading-screen{
  position: fixed;
  top: 14px;
  right: 18px;
  left: auto;
  bottom: auto;
  display: none;
  align-items: flex-start;
  justify-content: flex-end;
  background: transparent;
  backdrop-filter: none;
  z-index: 2000;
  pointer-events: none;
}
.loading-screen.show{
  display: flex;
}
.loading-spinner{
  min-width: 210px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(15,23,42,0.14);
  display:flex;
  align-items:center;
  gap:.75rem;
}
.loading-spinner::after{content:"Working…"; font-size:.92rem; font-weight:600; color:#0f172a;}

/* Dark mode support (body.dark) */
body.dark .loading-screen{
  background: transparent;
}
body.dark .loading-spinner{
  background: rgba(6,14,34,0.96);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 12px 34px rgba(2,6,23,0.45);
}
body.dark .loading-spinner::after{ color: rgba(255,255,255,.92); }
.loading-spinner.usemb-logo-loader-ref::after{content:none;display:none;}
.loading-spinner.usemb-logo-loader-ref{
  min-width:188px;
  min-height:74px;
  padding:14px 18px;
  border-radius:16px;
  display:flex;
  align-items:center;
  gap:13px;
}
.usemb-loader-logo-ring-ref{
  width:46px;
  height:46px;
  min-width:46px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f4f7ff;
  border:1px solid #dce7ff;
  box-shadow:0 0 0 6px rgba(79,134,247,.10);
  animation:usembLogoPulse 1.05s ease-in-out infinite;
}
.usemb-loader-logo-ref{width:32px;height:32px;object-fit:contain;}
.usemb-loader-logo-dark-ref{display:none;}
.usemb-loader-copy-ref{display:flex;flex-direction:column;gap:2px;line-height:1.1;}
.usemb-loader-copy-ref strong{font-size:13px;font-weight:800;color:#111827;letter-spacing:0;}
.usemb-loader-copy-ref span{font-size:11px;font-weight:600;color:#647084;letter-spacing:0;}
body.dark .usemb-loader-logo-ring-ref{background:#09111f;border-color:#263448;box-shadow:0 0 0 6px rgba(79,134,247,.16);}
body.dark .usemb-loader-logo-light-ref{display:none;}
body.dark .usemb-loader-logo-dark-ref{display:block;}
body.dark .usemb-loader-copy-ref strong{color:#fff;}
body.dark .usemb-loader-copy-ref span{color:#9fb0c6;}
@keyframes usembLogoPulse{
  0%,100%{transform:scale(1);}
  50%{transform:scale(1.04);}
}

/* =========================
   Multi-file uploader (preview)
   ========================= */
[data-mfu-wrapper] .mfu-list{
  display: grid;
  gap: .5rem;
}

.mfu-item{
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: .6rem .75rem .5rem;
  background: rgba(255,255,255,.03);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

[data-bs-theme="light"] .mfu-item{
  border-color: rgba(0,0,0,.08);
  background: rgba(0,0,0,.02);
}

.mfu-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.mfu-left{
  min-width: 0;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: .6rem;
  align-items: center;
}

.mfu-icon{ opacity: .85; }

.mfu-name{
  min-width: 0;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mfu-meta{
  font-size: .8rem;
  opacity: .7;
}

.mfu-remove{
  border: 0;
  background: transparent;
  padding: .15rem .25rem;
  border-radius: 8px;
  color: rgba(255,255,255,.75);
}

[data-bs-theme="light"] .mfu-remove{ color: rgba(0,0,0,.55); }

.mfu-remove:hover{
  background: rgba(var(--bs-danger-rgb), .12);
  color: var(--bs-danger);
}

.mfu-progress{
  margin-top: .45rem;
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
}

[data-bs-theme="light"] .mfu-progress{ background: rgba(0,0,0,.08); }

.mfu-progress-bar{
  height: 100%;
  width: 0%;
  background: rgba(var(--bs-primary-rgb), .9);
  border-radius: 999px;
  animation: mfuFill 0.65s ease forwards;
}

.mfu-item.mfu-done .mfu-progress{ opacity: .35; }

@keyframes mfuFill{
  from { width: 0%; }
  to { width: 100%; }
}




/* Auth pages: center card and logo */
.auth-page-wrapper{
    min-height: 100vh;
}
.auth-page-wrapper .auth-page-content{
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}



/* Hover color for primary links (avoid default purple/blue hover) */
a.text-primary:hover,
a.link-primary:hover,
.text-primary:hover,
.link-primary:hover{
  color: var(--bs-link-hover-color) !important;
}

/* Global link colors (prevents browser default purple for visited/hover) */
a,
a:visited{
  color: var(--bs-link-color);
}
a:hover,
a:focus{
  color: var(--bs-link-hover-color);
}


.usemb-hover-preview{
  position:absolute;
  z-index:1085;
  width:220px;
  padding:8px;
  border-radius:14px;
  background:rgba(15,23,42,.96);
  border:1px solid rgba(148,163,184,.35);
  box-shadow:0 18px 40px rgba(0,0,0,.35);
  pointer-events:none;
}
.usemb-hover-preview img{
  display:block;
  width:100%;
  height:auto;
  max-height:180px;
  object-fit:contain;
  border-radius:10px;
  background:#0b1220;
}


/* USEMB Order Chat UI */
.order-chat-modal .modal-content{border-radius:1.25rem;overflow:hidden}
.order-chat-shell{display:flex;flex-direction:column;min-height:62vh;max-height:62vh;background:linear-gradient(180deg, rgba(9,18,46,.88) 0%, rgba(5,10,28,.96) 100%)}
.order-chat-scroll{flex:1;overflow:auto;padding:1rem 1rem 1.25rem;background:radial-gradient(circle at top, rgba(26,39,77,.45), transparent 38%), linear-gradient(180deg, rgba(8,15,36,.88), rgba(5,10,24,.98));}
.order-chat-scroll::-webkit-scrollbar{width:8px}
.order-chat-scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);border-radius:999px}
.order-chat-empty{display:flex;align-items:center;justify-content:center;height:100%;color:#95a2c0;font-size:.95rem}
.order-chat-row{display:flex;margin-bottom:.85rem}
.order-chat-row.self{justify-content:flex-end}
.order-chat-row.other{justify-content:flex-start}
.order-chat-bubble{max-width:min(70%, 420px);padding:.8rem .95rem;border-radius:1.1rem;position:relative;box-shadow:0 .35rem 1rem rgba(0,0,0,.16);word-break:break-word}
.order-chat-row.self .order-chat-bubble{background:linear-gradient(135deg, #6d5efc 0%, #8c6bff 100%);color:#fff;border-bottom-right-radius:.35rem}
.order-chat-row.other .order-chat-bubble{background:#18274d;color:#edf2ff;border:1px solid rgba(255,255,255,.06);border-bottom-left-radius:.35rem}
.order-chat-row.role-admin .order-chat-bubble{background:linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);color:#fff;}
.order-chat-row.role-sales .order-chat-bubble{background:linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);color:#fff;}
.order-chat-row.role-client .order-chat-bubble{background:#1f2a44;color:#eef2ff;border:1px solid rgba(255,255,255,.06);}
.order-chat-row.role-vendor .order-chat-bubble{background:#1b4332;color:#f0fff6;border:1px solid rgba(255,255,255,.06);}
.order-chat-row.other.role-admin .order-chat-bubble,.order-chat-row.other.role-sales .order-chat-bubble{border:none;}
.order-chat-row .order-chat-bubble a{color:inherit;}
.order-chat-meta .role-badge{display:inline-flex;align-items:center;justify-content:center;padding:2px 8px;border-radius:999px;font-size:.68rem;font-weight:700;margin-right:6px;background:rgba(255,255,255,.14);color:inherit;}
.order-chat-meta{font-size:.72rem;margin-bottom:.45rem;opacity:.78;font-weight:600}
.order-chat-text{white-space:pre-wrap;line-height:1.45;font-size:.95rem}
.order-chat-attachment{margin-top:.65rem}
.order-chat-attachment img{display:block;max-width:220px;max-height:220px;border-radius:.9rem;object-fit:cover;border:1px solid rgba(255,255,255,.12);background:#0c1736}
.order-chat-file-link{display:inline-flex;align-items:center;gap:.5rem;padding:.55rem .75rem;border-radius:.8rem;background:rgba(255,255,255,.08);color:inherit;text-decoration:none}
.order-chat-composer{border-top:1px solid rgba(255,255,255,.08);padding:1rem;background:rgba(4,10,28,.96)}
.order-chat-preview{display:none;align-items:center;gap:.75rem;padding:.55rem .7rem;margin-bottom:.85rem;border:1px solid rgba(255,255,255,.08);border-radius:.9rem;background:rgba(255,255,255,.03)}
.order-chat-preview.is-visible{display:flex}
.order-chat-preview img{width:48px;height:48px;object-fit:cover;border-radius:.75rem;border:1px solid rgba(255,255,255,.12)}
.order-chat-preview-name{flex:1;min-width:0;color:#dbe4ff;font-size:.85rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.order-chat-preview-remove{border:0;background:transparent;color:#b8c4e4;font-size:1rem;padding:0 .25rem}
.order-chat-compose-row{display:flex;align-items:flex-end;gap:.75rem}
.order-chat-attach-btn{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:.9rem;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:#dfe6ff;cursor:pointer;flex:0 0 42px}
.order-chat-attach-btn:hover{background:rgba(255,255,255,.08)}
.order-chat-textarea{min-height:48px;max-height:120px;resize:none;border-radius:1rem!important;background:rgba(255,255,255,.04)!important;border:1px solid rgba(255,255,255,.1)!important;color:#fff!important;padding:.85rem 1rem!important}
.order-chat-textarea::placeholder{color:#9fb0d6!important}
.order-chat-send{min-width:96px;border-radius:1rem!important}
.order-chat-send[disabled]{opacity:.7}
.order-chat-badge-zero{background:rgba(255,255,255,.15)!important;color:#fff!important}
.invoice-row-image-preview{cursor:pointer;position:relative}
.invoice-row-image-preview .placeholder{font-size:.68rem;line-height:1.1;text-align:center;color:#7182ab;padding:0 .25rem}
.invoice-row-image-preview .overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(9,16,34,.06);color:#35415c;font-size:.68rem;font-weight:600;opacity:0;transition:.15s ease}
.invoice-row-image-preview:hover .overlay{opacity:1}

/* Global autocomplete search */
.usemb-global-search-wrap{position:relative}
.usemb-global-search-panel{
  position:absolute;
  top:calc(100% + .55rem);
  left:0;
  right:0;
  z-index:1200;
  border:1px solid var(--bs-border-color-translucent);
  border-radius:1rem;
  box-shadow:0 18px 50px rgba(15,23,42,.18);
  background:var(--bs-body-bg);
  overflow:hidden;
}
.usemb-global-search-state{
  padding:.9rem 1rem;
  color:var(--bs-secondary-color);
  border-bottom:1px solid var(--bs-border-color-translucent);
}
.usemb-global-search-results{max-height:420px;overflow:auto;padding:.35rem}
.usemb-global-search-group{
  padding:.55rem .7rem .25rem;
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--bs-secondary-color);
}
.usemb-global-search-item{
  width:100%;
  border:0;
  background:transparent;
  text-align:left;
  padding:.8rem .85rem;
  border-radius:.85rem;
  display:block;
  color:inherit;
}
.usemb-global-search-item:hover,
.usemb-global-search-item.is-active{background:rgba(var(--bs-primary-rgb), .10)}
.usemb-global-search-item-top{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.2rem}
.usemb-global-search-kicker{
  display:inline-flex;align-items:center;padding:.18rem .5rem;border-radius:999px;
  background:rgba(var(--bs-primary-rgb), .12);color:var(--bs-primary);font-size:.72rem;font-weight:700;
}
.usemb-global-search-context{font-size:.82rem;font-weight:600;color:var(--bs-secondary-color)}
.usemb-global-search-item-title{font-weight:700;line-height:1.35}
.usemb-global-search-item-subtitle{margin-top:.2rem;font-size:.84rem;color:var(--bs-secondary-color)}
.usemb-global-search-item mark{padding:0 .15rem;border-radius:.35rem;background:rgba(255,193,7,.25);color:inherit}
[data-bs-theme="dark"] .usemb-global-search-panel{background:#0f172a;border-color:rgba(255,255,255,.08);box-shadow:0 18px 50px rgba(0,0,0,.45)}
[data-bs-theme="dark"] .usemb-global-search-state,
[data-bs-theme="dark"] .usemb-global-search-group,
[data-bs-theme="dark"] .usemb-global-search-context,
[data-bs-theme="dark"] .usemb-global-search-item-subtitle{color:rgba(255,255,255,.68)}

/* Theme-safe cards, modals and buttons */
.card-dark,
.usemb-modal{background:var(--bs-body-bg);color:var(--bs-body-color);border:1px solid var(--bs-border-color-translucent)}
.card-dark .card-title,
.usemb-modal .modal-title{color:inherit}
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .usemb-modal,
[data-bs-theme="dark"] .card-dark{
  background:#0f172a;
  color:#e5edf8;
  border-color:rgba(255,255,255,.08);
}
[data-bs-theme="light"] .modal-content,
[data-bs-theme="light"] .usemb-modal,
[data-bs-theme="light"] .card-dark{
  background:#fff;
  color:#1f2937;
  border-color:rgba(15,23,42,.08);
}
[data-bs-theme="light"] .btn-outline-light{
  color:#1f2937 !important;
  border-color:rgba(15,23,42,.14) !important;
  background:#fff !important;
}
[data-bs-theme="light"] .btn-outline-light:hover,
[data-bs-theme="light"] .btn-outline-light:focus{
  color:#111827 !important;
  background:#f8fafc !important;
  border-color:rgba(15,23,42,.22) !important;
}
[data-bs-theme="light"] .btn-outline-secondary{
  color:#344054;
  border-color:rgba(15,23,42,.14);
}
[data-bs-theme="light"] .btn-outline-secondary:hover,
[data-bs-theme="light"] .btn-outline-secondary:focus{
  color:#111827;
  background:#f8fafc;
  border-color:rgba(15,23,42,.22);
}
html[data-bs-theme="dark"] .swal2-popup{
  background:#0f172a;
  color:#e5edf8;
}
html[data-bs-theme="dark"] .swal2-input,
html[data-bs-theme="dark"] .swal2-textarea,
html[data-bs-theme="dark"] .swal2-file,
html[data-bs-theme="dark"] .swal2-select{
  background:#111827;
  color:#e5edf8;
  border:1px solid rgba(255,255,255,.08);
}
html[data-bs-theme="light"] .swal2-input,
html[data-bs-theme="light"] .swal2-textarea,
html[data-bs-theme="light"] .swal2-file,
html[data-bs-theme="light"] .swal2-select{
  background:#fff;
  color:#111827;
  border:1px solid rgba(15,23,42,.12);
}


[data-bs-theme="light"] .order-chat-shell{background:linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);}
[data-bs-theme="light"] .order-chat-scroll{background:linear-gradient(180deg, #ffffff, #f8fafc);}
[data-bs-theme="light"] .order-chat-empty{color:#667085;}
[data-bs-theme="light"] .order-chat-row.other .order-chat-bubble{background:#ffffff;color:#101828;border:1px solid rgba(15,23,42,.08);}
[data-bs-theme="light"] .order-chat-row.self .order-chat-bubble{color:#fff;}
[data-bs-theme="light"] .order-chat-preview{background:rgba(15,23,42,.03);border-color:rgba(15,23,42,.08);}
[data-bs-theme="light"] .order-chat-preview-name{color:#344054;}
[data-bs-theme="light"] .order-chat-composer{background:#fff;border-top-color:rgba(15,23,42,.08);}
[data-bs-theme="light"] .order-chat-attach-btn{background:#fff;color:#344054;border-color:rgba(15,23,42,.12);}
[data-bs-theme="light"] .order-chat-attach-btn:hover{background:#f8fafc;}
[data-bs-theme="light"] .order-chat-textarea{background:#fff !important;color:#111827 !important;border-color:rgba(15,23,42,.12) !important;}
[data-bs-theme="light"] .order-chat-textarea::placeholder{color:#98a2b3 !important;}
[data-bs-theme="light"] .btn-outline-info{color:#0c6bca;border-color:rgba(13,110,253,.3);}
[data-bs-theme="light"] .btn-outline-info:hover,
[data-bs-theme="light"] .btn-outline-info:focus{color:#fff;background:#0d6efd;border-color:#0d6efd;}
[data-bs-theme="light"] .btn-outline-success{color:#13795b;border-color:rgba(25,135,84,.28);}
[data-bs-theme="light"] .btn-outline-success:hover,
[data-bs-theme="light"] .btn-outline-success:focus{color:#fff;background:#198754;border-color:#198754;}
[data-bs-theme="light"] .btn-outline-danger{color:#b42318;border-color:rgba(220,53,69,.25);}
[data-bs-theme="light"] .btn-outline-danger:hover,
[data-bs-theme="light"] .btn-outline-danger:focus{color:#fff;background:#dc3545;border-color:#dc3545;}

/* Notifications */
.usemb-notification-wrap { position: relative; }
.usemb-notification-trigger { position: relative; width: 40px; height: 40px; min-width: 40px; border-radius: 999px; padding: 0; display:inline-flex; align-items:center; justify-content:center; overflow: visible; }
.usemb-notification-badge {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  line-height: 1;
  font-weight: 800;
  background: #ef4444;
  color: #fff;
  box-shadow: 0 0 0 2px var(--bs-body-bg), 0 8px 18px rgba(239,68,68,.35);
}

.usemb-notification-trigger .bi { font-size: 1rem; }
html[data-bs-theme='light'] .usemb-notification-badge { box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(239,68,68,.25); }
.usemb-notification-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, calc(100vw - 24px));
  max-height: 70vh;
  overflow: hidden;
  z-index: 1080;
  border-radius: 18px;
  background: var(--bs-body-bg);
  border: 1px solid rgba(var(--bs-body-color-rgb), .08);
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}
.usemb-notification-panel-head,
.usemb-notification-panel-foot {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(var(--bs-body-color-rgb), .08);
}
.usemb-notification-panel-foot { border-top: 1px solid rgba(var(--bs-body-color-rgb), .08); border-bottom: 0; }
.usemb-notification-panel-title { font-size: 1.2rem; font-weight: 700; }
.usemb-notification-panel-subtitle { color: var(--bs-secondary-color); font-size: .875rem; margin-top: 2px; }
.usemb-notification-viewall-link { font-size: .875rem; text-decoration: none; }
.usemb-notification-list { max-height: 52vh; overflow: auto; padding: 10px; }
.usemb-notification-list-page { max-height: none; padding: 14px; }
.usemb-notification-empty {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--bs-secondary-color);
}
.usemb-notification-empty i { font-size: 2rem; }
.usemb-notification-item {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) 14px;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: background-color .16s ease, transform .16s ease;
  margin-bottom: 8px;
}
.usemb-notification-item:hover { background: rgba(var(--bs-primary-rgb), .08); transform: translateY(-1px); }
.usemb-notification-item.is-unread { background: rgba(var(--bs-primary-rgb), .10); }
.usemb-notification-item.is-read { background: rgba(var(--bs-body-color-rgb), .04); }
.usemb-notification-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), .25), rgba(var(--bs-info-rgb), .18));
  color: var(--bs-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.usemb-notification-body { min-width: 0; }
.usemb-notification-topline {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}
.usemb-notification-title { font-weight: 700; }
.usemb-notification-time { font-size: .8rem; color: var(--bs-secondary-color); white-space: nowrap; }
.usemb-notification-message { color: var(--bs-secondary-color); line-height: 1.35; }
.usemb-notification-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.usemb-notification-pill {
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(var(--bs-primary-rgb), .12);
  color: var(--bs-primary);
  text-transform: capitalize;
}
.usemb-notification-ref { font-size: .78rem; color: var(--bs-secondary-color); }
.usemb-notification-dot-wrap { display: flex; align-items: center; justify-content: center; padding-top: 8px; }
.usemb-notification-dot {
  width: 10px; height: 10px; border-radius: 999px; background: var(--bs-primary); box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), .12);
}
.usemb-notification-toast-stack {
  position: fixed;
  top: 88px;
  right: 20px;
  z-index: 2005;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.usemb-notification-toast {
  min-width: 280px;
  max-width: 360px;
  border-radius: 16px;
  border: 1px solid rgba(var(--bs-body-color-rgb), .08);
  background: var(--bs-body-bg);
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: auto;
}
.usemb-notification-toast.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.usemb-notification-toast-link { display: block; padding: 14px 16px; color: inherit; text-decoration: none; border-left: 4px solid rgba(var(--bs-primary-rgb), .75); border-radius: inherit; }
.usemb-notification-toast-title { font-weight: 700; margin-bottom: 3px; }
.usemb-notification-toast-message { color: var(--bs-secondary-color); font-size: .92rem; }
.usemb-notifications-card { border-radius: 22px; }
html[data-bs-theme='light'] .usemb-notification-panel,
html[data-bs-theme='light'] .usemb-notification-toast { box-shadow: 0 20px 45px rgba(15, 23, 42, .14); }
@media (max-width: 991.98px) {
  .usemb-notification-panel { right: -70px; width: min(420px, calc(100vw - 18px)); }
  .usemb-notification-toast-stack { right: 10px; left: 10px; top: 74px; }
  .usemb-notification-toast { min-width: auto; max-width: none; }
}


@media (max-width: 991.98px) {
  .admin-header .navbar .container-fluid{flex-wrap:wrap;row-gap:.75rem;}
  .admin-header .search-container{order:3;flex:1 0 100%;width:100%;margin:.25rem 0 0 0!important;}
  .admin-header .search-container .usemb-global-search-wrap{width:100%;}
  .admin-header .search-container .form-control{min-height:42px;}
  .admin-header .navbar-brand{margin-right:auto;}
}

[data-bs-theme="light"] .order-chat-row.role-client .order-chat-bubble{background:#ffffff;color:#0f172a;border:1px solid rgba(15,23,42,.1);}
[data-bs-theme="light"] .order-chat-row.role-vendor .order-chat-bubble{background:#ecfdf5;color:#14532d;border:1px solid rgba(20,83,45,.15);}
[data-bs-theme="light"] .order-chat-row.role-admin .order-chat-bubble{color:#fff;}
[data-bs-theme="light"] .order-chat-row.role-sales .order-chat-bubble{color:#fff;}


/* Invoice quick add row */
.invoice-quick-add-row > td{background:rgba(var(--bs-primary-rgb),.08)!important;vertical-align:top;border-color:rgba(var(--bs-body-color-rgb),.08)!important; color:var(--bs-body-color)!important;}
.invoice-quick-meta{display:flex;flex-direction:column;gap:.3rem;}
.invoice-quick-kicker{font-size:.72rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--bs-secondary-color);}
.invoice-quick-title{font-weight:700;color:var(--bs-body-color);}
.invoice-quick-help{font-size:.8rem;color:var(--bs-secondary-color); line-height:1.35;}
.invoice-quick-stack{display:flex;flex-direction:column;gap:.55rem;}
.invoice-quick-inline-actions{display:flex;gap:.5rem;flex-wrap:wrap;}
.invoice-generate-table .form-control,.invoice-generate-table .form-select{min-height:42px;}
.invoice-generate-table textarea.form-control{min-height:76px;resize:vertical;}
.invoice-generate-table .invoice-row-image-preview{background:rgba(var(--bs-body-color-rgb),.04)!important;border-color:rgba(var(--bs-body-color-rgb),.1)!important;color:var(--bs-secondary-color);}
.invoice-generate-table .invoice-row-image-preview .overlay{position:absolute;inset:auto 0 0 0;padding:.25rem .4rem;font-size:.7rem;text-align:center;background:rgba(2,6,23,.65);color:#fff;opacity:0;transition:opacity .15s ease;}
.invoice-generate-table .invoice-row-image-preview:hover .overlay{opacity:1;}
html[data-bs-theme="light"] .invoice-quick-add-row > td{background:rgba(15,23,42,.05)!important;}
html[data-bs-theme="dark"] .invoice-quick-add-row .form-control, html[data-bs-theme="dark"] .invoice-quick-add-row .form-select{background:rgba(2,6,23,.88)!important;color:#f8fafc!important;border-color:rgba(255,255,255,.12)!important;}
html[data-bs-theme="dark"] .invoice-quick-add-row .invoice-quick-help{color:rgba(255,255,255,.72)!important;}
html[data-bs-theme="light"] .invoice-generate-table .invoice-row-image-preview{background:#fff!important;}
.usemb-notification-badge{top:-7px;right:-8px;min-width:21px;height:21px;padding:0 6px;font-size:.70rem;border:2px solid var(--bs-body-bg);}

/* ===== USEMB ORDERS PAGE FIX (V3 Round 26) ===== 
   Status badge dark backgrounds with colorful text
   Copy icon styling consistency
   Billing price formatting like order number
   Badge sizing standardization
*/

/* Status badges: black background with colorful text in dark mode */
[data-bs-theme="dark"] .badge.bg-success-subtle {
  background: #000 !important;
  color: #10b981 !important;
}
[data-bs-theme="dark"] .badge.bg-secondary-subtle {
  background: #000 !important;
  color: #9ca3af !important;
}
[data-bs-theme="dark"] .badge.bg-warning-subtle {
  background: #000 !important;
  color: #f59e0b !important;
}
[data-bs-theme="dark"] .badge.bg-info-subtle {
  background: #000 !important;
  color: #06b6d4 !important;
}
[data-bs-theme="dark"] .badge.bg-primary-subtle {
  background: #000 !important;
  color: #3b82f6 !important;
}
[data-bs-theme="dark"] .badge.bg-danger-subtle {
  background: #000 !important;
  color: #ef4444 !important;
}

/* Copy icon styling: consistent across dashboard and orders */
.usemb-copy-email-btn-ref,
.usemb-copy-order-id-btn-ref {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
  margin-left: 6px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #4f86f7 !important;
  cursor: pointer !important;
  transition: background 0.14s ease, color 0.14s ease !important;
  font-size: 0 !important;
  vertical-align: middle !important;
}

.usemb-copy-email-btn-ref:hover,
.usemb-copy-order-id-btn-ref:hover {
  background: rgba(79, 134, 247, 0.12) !important;
  color: #4f86f7 !important;
}

.usemb-copy-email-btn-ref i,
.usemb-copy-order-id-btn-ref i {
  font-size: 14px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Billing price styling: match order number (not bold, centered) */
.usemb-billing-price-ref {
  display: inline-block !important;
  font-weight: 400 !important;
  color: inherit !important;
  text-align: center !important;
  width: 100% !important;
  margin: 3px 0 !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
}

/* Badge sizing standardization */
.badge.rounded-pill {
  min-width: 80px !important;
  height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 12px !important;
  font-size: 9px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
}

/* Order number cell: copy icon on ORDER NUMBER, not ID */
.usemb-order-number-ref {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-weight: 600 !important;
}

.usemb-order-id-ref {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 11px !important;
  color: inherit !important;
  margin-top: 2px !important;
}

.usemb-order-id-ref span {
  color: var(--bs-secondary-color) !important;
}

.usemb-order-has-unread td:first-child,
.usemb-order-has-unread .fw-semibold:first-child,
tr.usemb-order-has-unread td:first-child{font-weight:800!important;}
tr.usemb-order-has-unread{box-shadow: inset 3px 0 0 rgba(var(--bs-primary-rgb), .85);}
.usemb-order-has-unread .js-order-chat{box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), .22), 0 10px 24px rgba(var(--bs-primary-rgb), .10);}
.usemb-silent-refresh .dataTables_processing{display:none!important;opacity:0!important;}
#filePreviewImageWrap{position:relative; overflow:auto; max-height:75vh;}
#filePreviewImage{transition: transform .12s ease; transform-origin:center center; cursor: zoom-in;}
.file-preview-toolbar{display:flex; align-items:center; gap:.5rem; flex-wrap:wrap;}
.file-preview-toolbar .btn{min-width:42px;}
.invoice-attachments-list{display:grid; gap:.55rem;}
.invoice-attachment-row{display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.75rem .9rem; border:1px solid rgba(var(--bs-body-color-rgb), .08); border-radius:14px; background:rgba(var(--bs-body-color-rgb), .03);}
.invoice-attachment-meta{min-width:0;}
.invoice-attachment-name{font-weight:700; word-break:break-word;}
.invoice-attachment-sub{font-size:.84rem; color:var(--bs-secondary-color);}


.usemb-order-has-notification > td,
tr[data-has-unread-notification="1"] > td {
  font-weight: 700 !important;
  background: rgba(13, 202, 240, .10) !important;
}
.usemb-order-has-notification,
tr[data-has-unread-notification="1"] {
  box-shadow: inset 4px 0 0 rgba(13, 202, 240, .95);
}
.usemb-order-has-notification:hover > td,
tr[data-has-unread-notification="1"]:hover > td {
  background: rgba(13, 202, 240, .14) !important;
}
.usemb-order-has-notification-text {
  font-weight: 800 !important;
  text-decoration: none;
}
.usemb-order-has-notification-text::after { content: ""; display:inline-block; width:.45rem; height:.45rem; border-radius:999px; background:#0dcaf0; margin-left:.45rem; vertical-align:middle; }


.choices__inner,
.choices__list--single,
.choices__list--dropdown,
.choices__list[aria-expanded],
.choices__list--dropdown .choices__item,
.choices__list[aria-expanded] .choices__item{
  color: var(--bs-body-color) !important;
}
.choices__inner{
  background: var(--bs-body-bg) !important;
  border-color: rgba(var(--bs-body-color-rgb), .12) !important;
}
.choices__list--dropdown,
.choices__list[aria-expanded]{
  background: var(--bs-body-bg) !important;
  border-color: rgba(var(--bs-body-color-rgb), .12) !important;
}
.choices__input,
.choices__input--cloned,
.choices__list--dropdown .choices__input,
.choices__list[aria-expanded] .choices__input{
  background: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
  border-bottom-color: rgba(var(--bs-body-color-rgb), .12) !important;
}
.choices__input::placeholder,
.choices__input--cloned::placeholder{
  color: var(--bs-secondary-color) !important;
  opacity: 1;
}
.choices__input,
.choices__input--cloned,
.choices__list--dropdown .choices__input,
.choices__list[aria-expanded] .choices__input{
  min-height: 36px !important;
  line-height: 1.45 !important;
  padding-top: .45rem !important;
  padding-bottom: .45rem !important;
  margin-bottom: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
}
.choices[data-type*="select-one"] .choices__inner,
.choices[data-type*="select-multiple"] .choices__inner{
  min-height: 42px !important;
  padding-top: .15rem !important;
  padding-bottom: .15rem !important;
}
.choices__list--single{
  padding-top: .35rem !important;
  padding-bottom: .35rem !important;
}
.choices__item--choice.is-highlighted{
  background: rgba(var(--bs-primary-rgb), .12) !important;
  color: var(--bs-body-color) !important;
}


/* Legacy order chat hidden (feature retained in code but removed from UI) */
.js-order-chat,
#orderChatModal,
#clientOrderChatModal,
#salesOrderChatModal,
.order-chat-modal{display:none !important;}

/* Messenger module */
.usemb-messenger-page{height:calc(100vh - 120px);min-height:620px;overflow:hidden;}
.usemb-messenger-shell{display:grid;grid-template-columns:360px minmax(0,1fr);gap:18px;height:100%;min-height:0;}
.usemb-messenger-sidebar,.usemb-messenger-main{background:rgba(10,22,49,.75);border:1px solid rgba(255,255,255,.08);border-radius:24px;backdrop-filter:blur(10px);box-shadow:0 20px 50px rgba(3,10,28,.25);overflow:hidden;}
.usemb-messenger-sidebar{display:flex;flex-direction:column;min-height:0;}
.usemb-messenger-sidebar-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:22px 20px 12px;}
.usemb-messenger-title{font-size:1.5rem;font-weight:800;margin:0;}
.usemb-messenger-subtitle{font-size:.9rem;color:rgba(255,255,255,.62);}
.usemb-btn-new{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:88px;height:48px;padding:0 18px;border:none;border-radius:18px;background:linear-gradient(135deg, #1d78ff, #23b7d9);color:#fff;font-weight:700;box-shadow:0 14px 30px rgba(13,110,253,.22);transition:.14s ease;}
.usemb-btn-new:hover{transform:translateY(-1px);box-shadow:0 18px 34px rgba(13,110,253,.28);}
.usemb-btn-new:focus-visible{outline:2px solid rgba(255,255,255,.3);outline-offset:2px;}
.usemb-messenger-search{position:relative;padding:0 16px 14px;}
.usemb-messenger-search i{position:absolute;left:30px;top:23px;transform:translateY(-50%);color:rgba(255,255,255,.45);z-index:2;pointer-events:none;line-height:1;}
.usemb-messenger-search .form-control{padding-left:42px;padding-right:16px;border-radius:18px;background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.08);color:#fff;min-height:46px;}
.usemb-messenger-search .form-control::placeholder{color:rgba(255,255,255,.42);}
.usemb-messenger-thread-list{padding:0 12px 14px;overflow:auto;display:flex;flex-direction:column;gap:10px;min-height:0;}
.usemb-thread-item{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px;border-radius:18px;text-decoration:none;color:inherit;background:rgba(255,255,255,.03);border:1px solid transparent;transition:background .12s ease,border-color .12s ease,transform .12s ease;will-change:transform;}
.usemb-thread-item:hover{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.08);transform:translateY(-1px);}
.usemb-thread-item.is-active{background:linear-gradient(135deg, rgba(var(--bs-primary-rgb), .22), rgba(11,198,227,.08));border-color:rgba(var(--bs-primary-rgb), .35);box-shadow:0 12px 32px rgba(13,110,253,.15);}
.usemb-thread-item.is-unread{background:linear-gradient(135deg, rgba(29,120,255,.14), rgba(35,183,217,.05));border-color:rgba(35,183,217,.18);}
.usemb-thread-item.is-unread .usemb-thread-name,.usemb-thread-item.is-unread .usemb-thread-preview{font-weight:800;color:#f8fbff;}
.usemb-thread-item.is-unread .usemb-thread-time{color:rgba(255,255,255,.84);font-weight:700;}
.usemb-thread-main{display:flex;gap:12px;min-width:0;flex:1;}
.usemb-thread-actions{position:relative;display:flex;align-items:flex-start;justify-content:flex-end;min-width:34px;}
.usemb-thread-action-btn{width:34px;height:34px;border-radius:12px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);color:#dfeaff;display:grid;place-items:center;opacity:.88;transition:.14s ease;flex-shrink:0;}
.usemb-thread-action-btn:hover,.usemb-thread-action-btn:focus-visible{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.15);color:#fff;outline:none;}
.usemb-thread-action-menu{position:absolute;top:38px;right:0;min-width:178px;padding:8px;border-radius:14px;background:#0e1730;border:1px solid rgba(255,255,255,.10);box-shadow:0 18px 38px rgba(0,0,0,.28);display:none;z-index:8;}
.usemb-thread-action-menu.is-open{display:block;}
.usemb-thread-action-item{width:100%;text-align:left;padding:10px 12px;border:0;background:transparent;color:#e9f0ff;border-radius:10px;font-size:.9rem;}
.usemb-thread-action-item:hover{background:rgba(255,255,255,.06);}
.usemb-thread-action-item.danger{color:#ffb4b4;}
.usemb-thread-action-item.danger:hover{background:rgba(239,68,68,.14);}
.usemb-thread-avatar{width:48px;height:48px;min-width:48px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg, #2b86ff, #23b7d9);color:#fff;font-weight:800;letter-spacing:.02em;}
.usemb-thread-avatar.lg{width:54px;height:54px;min-width:54px;font-size:1rem;border-radius:18px;}

.usemb-thread-avatar-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;}
.usemb-thread-avatar-wrap.lg{width:54px;height:54px;min-width:54px;}
.usemb-presence-dot{position:absolute;right:-2px;bottom:-2px;width:13px;height:13px;border-radius:999px;border:2px solid rgba(10,22,49,.95);background:#94a3b8;box-shadow:0 0 0 2px rgba(255,255,255,.06);}
.usemb-presence-dot.lg{width:15px;height:15px;right:-3px;bottom:-3px;}
.usemb-presence-dot.is-online,.usemb-online-dot.is-online{background:#22c55e;}
.usemb-presence-dot.is-offline,.usemb-online-dot.is-offline{background:#94a3b8;}
.usemb-thread-status,.usemb-messenger-header-status{display:inline-flex;align-items:center;gap:6px;font-size:.76rem;color:rgba(255,255,255,.58);margin-top:4px;}
.usemb-thread-status.is-online,.usemb-messenger-header-status.is-online{color:rgba(74,222,128,.95);}
.usemb-thread-status.is-offline,.usemb-messenger-header-status.is-offline{color:rgba(203,213,225,.72);}
.usemb-online-dot{width:8px;height:8px;border-radius:999px;background:#94a3b8;display:inline-block;flex:0 0 auto;}
.usemb-thread-status.is-online .usemb-online-dot,.usemb-messenger-header-status.is-online .usemb-online-dot{background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.14);}
.usemb-thread-status.is-offline .usemb-online-dot,.usemb-messenger-header-status.is-offline .usemb-online-dot{background:#94a3b8;}
[data-bs-theme="light"] .usemb-presence-dot{border-color:#fff;box-shadow:0 0 0 2px rgba(15,23,42,.08);}
[data-bs-theme="light"] .usemb-thread-status,[data-bs-theme="light"] .usemb-messenger-header-status{color:#64748b;}
[data-bs-theme="light"] .usemb-thread-status.is-online,[data-bs-theme="light"] .usemb-messenger-header-status.is-online{color:#15803d;}
.usemb-thread-content{min-width:0;flex:1;}
.usemb-thread-top,.usemb-thread-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.usemb-thread-name{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.usemb-thread-time{font-size:.78rem;color:rgba(255,255,255,.52);white-space:nowrap;}
.usemb-thread-preview{font-size:.88rem;color:rgba(255,255,255,.66);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.usemb-thread-role{font-size:.78rem;color:rgba(11,198,227,.9);margin-top:4px;}
.usemb-thread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 8px;border-radius:999px;background:#ef4444;color:#fff;font-size:.74rem;font-weight:700;}
.usemb-messenger-empty-list,.usemb-message-blank{min-height:220px;display:grid;place-items:center;text-align:center;color:rgba(255,255,255,.68);padding:24px;}
.usemb-message-blank{flex:1;}
.usemb-messenger-empty-list i,.usemb-message-blank-icon{font-size:2rem;margin-bottom:8px;}
.usemb-messenger-main{display:flex;flex-direction:column;min-width:0;min-height:0;}
#messageWorkspace{display:flex;flex-direction:column;flex:1;min-height:0;}
.usemb-messenger-header{display:flex;align-items:center;gap:14px;padding:20px 22px;border-bottom:1px solid rgba(255,255,255,.07);}
.usemb-messenger-header-name{font-size:1.08rem;font-weight:800;}
.usemb-messenger-header-role{font-size:.84rem;color:rgba(255,255,255,.56);}
.usemb-messenger-body{flex:1;min-height:0;overflow:auto;padding:24px 22px;background:linear-gradient(180deg, rgba(255,255,255,.01), rgba(255,255,255,.03));scroll-behavior:smooth;}
.usemb-message-empty{padding:22px;text-align:center;color:rgba(255,255,255,.6);}
.usemb-bubble-row{display:flex;margin-bottom:16px;}
.usemb-bubble-row.self{justify-content:flex-end;}
.usemb-bubble{position:relative;max-width:min(72%, 780px);padding:13px 14px;border-radius:20px;box-shadow:0 16px 30px rgba(2,8,23,.12);}
.usemb-bubble.has-tools{padding-right:54px;}
.usemb-bubble.other{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);color:#f7faff;}
.usemb-bubble.self{background:linear-gradient(135deg, #0c63e7, #0b55d1 52%, #1570ef 100%);border:1px solid rgba(255,255,255,.08);color:#fff;}
.usemb-bubble.is-deleted{opacity:.84;}
.usemb-bubble.is-deleted .usemb-bubble-text{font-style:italic;opacity:.88;}
.usemb-bubble-meta{font-size:.75rem;opacity:.88;margin-bottom:6px;}
.usemb-bubble.self .usemb-bubble-meta,.usemb-bubble.self .usemb-bubble-status{color:rgba(255,255,255,.9);}
.usemb-bubble.other .usemb-bubble-meta,.usemb-bubble.other .usemb-bubble-status{color:rgba(255,255,255,.72);}
.usemb-bubble-text{white-space:pre-wrap;line-height:1.5;word-break:break-word;}
.usemb-bubble-status{display:flex;align-items:center;justify-content:flex-end;gap:6px;text-align:right;font-size:.73rem;margin-top:8px;}
.usemb-message-ticks{font-weight:900;letter-spacing:-.18em;margin-right:2px;color:rgba(255,255,255,.85);}
.usemb-message-ticks.seen,.usemb-bubble-status.seen .usemb-message-ticks{color:#7dd3fc;}
.usemb-bubble-attachment{display:block;margin-top:10px;border-radius:16px;overflow:hidden;text-decoration:none;}
.usemb-bubble-attachment.image img{display:block;max-width:260px;max-height:260px;object-fit:cover;border-radius:16px;border:1px solid rgba(255,255,255,.08);}
.usemb-bubble-attachment.file{padding:12px 14px;background:rgba(255,255,255,.08);color:inherit;border:1px solid rgba(255,255,255,.08);display:inline-flex;align-items:center;gap:10px;}
.usemb-attachment-wrap{position:relative;display:inline-block;max-width:100%;}
.usemb-attachment-wrap audio{display:block;max-width:280px;width:280px;margin-top:10px;}
.usemb-attachment-actions{display:flex;gap:6px;justify-content:flex-end;margin-top:6px;}
.usemb-attachment-actions a,.usemb-attachment-actions button{width:30px;height:30px;border-radius:10px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.08);color:inherit;display:grid;place-items:center;text-decoration:none;padding:0;}
.usemb-attachment-actions a:hover,.usemb-attachment-actions button:hover{background:rgba(255,255,255,.14);}
.usemb-compose-attach.is-recording{background:rgba(239,68,68,.25);border-color:rgba(239,68,68,.55);color:#fecaca;animation:usembRecordPulse 1.1s ease-in-out infinite;}
@keyframes usembRecordPulse{0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,.35);}50%{box-shadow:0 0 0 8px rgba(239,68,68,0);}}
.usemb-bubble-tools{position:absolute;top:10px;right:10px;z-index:3;}
.usemb-bubble-menu-btn{width:32px;height:32px;border-radius:10px;border:1px solid rgba(255,255,255,.12);background:rgba(9,16,34,.42);color:#fff;display:grid;place-items:center;opacity:.92;transition:.12s ease;}
.usemb-bubble:hover .usemb-bubble-menu-btn,.usemb-bubble-tools:hover .usemb-bubble-menu-btn{opacity:1;background:rgba(9,16,34,.56);}
.usemb-bubble.is-deleted .usemb-bubble-menu-btn{opacity:1;}
.usemb-bubble-menu{position:absolute;top:38px;right:0;min-width:190px;padding:8px;border-radius:14px;background:#0e1730;border:1px solid rgba(255,255,255,.10);box-shadow:0 18px 38px rgba(0,0,0,.28);display:none;z-index:9;}
.usemb-bubble-menu.is-open{display:block;}
.usemb-bubble-menu-item{width:100%;text-align:left;padding:10px 12px;border:0;background:transparent;color:#e9f0ff;border-radius:10px;font-size:.9rem;}
.usemb-bubble-menu-item:hover{background:rgba(255,255,255,.06);}
.usemb-bubble-menu-item.danger{color:#ffb4b4;}
.usemb-bubble-menu-item.danger:hover{background:rgba(239,68,68,.14);}
.usemb-messenger-composer{padding:16px 18px 18px;border-top:1px solid rgba(255,255,255,.07);background:rgba(9,16,34,.76);}
.usemb-compose-preview{display:none;align-items:center;gap:12px;padding:10px 12px;margin-bottom:10px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);}
.usemb-compose-preview.is-visible{display:flex;}
.usemb-compose-preview img{width:52px;height:52px;object-fit:cover;border-radius:14px;background:rgba(255,255,255,.05);}
.usemb-compose-preview-name{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.usemb-compose-preview-remove{width:36px;height:36px;border-radius:12px;border:none;background:rgba(255,255,255,.08);color:#fff;}
.usemb-compose-row{display:flex;align-items:flex-end;gap:12px;}
.usemb-btn-send{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:118px;height:48px;padding:0 22px;border:none;border-radius:16px;background:linear-gradient(135deg, #1d78ff, #23b7d9);color:#fff;font-weight:700;box-shadow:0 12px 26px rgba(13,110,253,.18);transition:.14s ease;}
.usemb-btn-send:hover{transform:translateY(-1px);box-shadow:0 16px 30px rgba(13,110,253,.22);}
.usemb-btn-send:disabled{opacity:.7;cursor:not-allowed;transform:none;box-shadow:none;}
.usemb-compose-attach{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);cursor:pointer;}
.usemb-compose-row textarea.form-control{min-height:48px;max-height:160px;border-radius:18px;background:rgba(255,255,255,.05)!important;border-color:rgba(255,255,255,.08)!important;color:#fff!important;resize:none;}
.usemb-compose-row textarea.form-control::placeholder{color:rgba(255,255,255,.42)!important;}
.usemb-newchat-modal{background:#091226;border:1px solid rgba(255,255,255,.08);border-radius:24px;color:#fff;}
.usemb-newchat-results{display:flex;flex-direction:column;gap:10px;max-height:340px;overflow:auto;}
.usemb-newchat-item{display:flex;gap:12px;align-items:center;width:100%;padding:12px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);color:#fff;transition:.18s ease;}
.usemb-newchat-item:hover{background:rgba(255,255,255,.06);}
@media (max-width: 991.98px){
  .usemb-messenger-shell{grid-template-columns:1fr;min-height:auto;}
  .usemb-messenger-sidebar{min-height:280px;}
  .usemb-bubble{max-width:100%;}
}
[data-bs-theme="light"] .usemb-messenger-sidebar,[data-bs-theme="light"] .usemb-messenger-main{background:#fff;border-color:rgba(15,23,42,.08);box-shadow:0 18px 40px rgba(15,23,42,.08);}
[data-bs-theme="light"] .usemb-messenger-subtitle,[data-bs-theme="light"] .usemb-thread-time,[data-bs-theme="light"] .usemb-thread-preview,[data-bs-theme="light"] .usemb-message-empty,[data-bs-theme="light"] .usemb-message-blank,[data-bs-theme="light"] .usemb-messenger-header-role{color:#667085;}
[data-bs-theme="light"] .usemb-thread-item{background:#f8fafc;}
[data-bs-theme="light"] .usemb-thread-item:hover{background:#f1f5f9;border-color:rgba(15,23,42,.08);}
[data-bs-theme="light"] .usemb-thread-item.is-active{background:linear-gradient(135deg, rgba(13,110,253,.13), rgba(11,198,227,.08));}
[data-bs-theme="light"] .usemb-thread-item.is-unread{background:linear-gradient(135deg, rgba(13,110,253,.10), rgba(11,198,227,.05));border-color:rgba(13,110,253,.18);}
[data-bs-theme="light"] .usemb-thread-item.is-unread .usemb-thread-name,[data-bs-theme="light"] .usemb-thread-item.is-unread .usemb-thread-preview{color:#0f172a;}
[data-bs-theme="light"] .usemb-thread-action-menu{background:#fff;border-color:rgba(15,23,42,.08);box-shadow:0 18px 38px rgba(15,23,42,.12);}
[data-bs-theme="light"] .usemb-thread-action-item{color:#0f172a;}
[data-bs-theme="light"] .usemb-thread-action-item:hover{background:#f8fafc;}
[data-bs-theme="light"] .usemb-thread-action-item.danger{color:#b42318;}
[data-bs-theme="light"] .usemb-thread-action-btn{background:rgba(15,23,42,.08);color:#344054;border-color:rgba(15,23,42,.08);}
[data-bs-theme="light"] .usemb-messenger-search .form-control,[data-bs-theme="light"] .usemb-compose-row textarea.form-control{background:#fff!important;color:#0f172a!important;border-color:rgba(15,23,42,.12)!important;}
[data-bs-theme="light"] .usemb-messenger-search i{color:#98a2b3;}
[data-bs-theme="light"] .usemb-btn-new,[data-bs-theme="light"] .usemb-btn-send{color:#fff;}
[data-bs-theme="light"] .usemb-bubble.other{background:#fff;color:#0f172a;border-color:rgba(15,23,42,.08);}
[data-bs-theme="light"] .usemb-bubble.self{color:#fff;}
[data-bs-theme="light"] .usemb-bubble.other .usemb-bubble-meta,.usemb-bubble.other .usemb-bubble-status{color:#667085;}
[data-bs-theme="light"] .usemb-messenger-body{background:linear-gradient(180deg, #ffffff, #f8fafc);}
[data-bs-theme="light"] .usemb-messenger-composer{background:#fff;border-top-color:rgba(15,23,42,.08);}
[data-bs-theme="light"] .usemb-compose-attach,[data-bs-theme="light"] .usemb-compose-preview,[data-bs-theme="light"] .usemb-newchat-modal,[data-bs-theme="light"] .usemb-newchat-item{background:#fff;color:#0f172a;border-color:rgba(15,23,42,.08);}
[data-bs-theme="light"] .usemb-bubble-menu{background:#fff;border-color:rgba(15,23,42,.08);box-shadow:0 18px 38px rgba(15,23,42,.12);}
[data-bs-theme="light"] .usemb-bubble-menu-item{color:#0f172a;}
[data-bs-theme="light"] .usemb-bubble-menu-item:hover{background:#f8fafc;}
[data-bs-theme="light"] .usemb-bubble-menu-item.danger{color:#b42318;}
[data-bs-theme="light"] .usemb-bubble-menu-btn{background:rgba(15,23,42,.08);color:#344054;}


/* Fix Choices.js dropdown search input vertical clipping on create/edit order forms */
.choices__list--dropdown .choices__input,
.choices__list[aria-expanded] .choices__input,
.choices__list--dropdown .choices__input--cloned,
.choices__list[aria-expanded] .choices__input--cloned{
  width:calc(100% - 16px)!important;
  min-height:44px!important;
  height:44px!important;
  line-height:22px!important;
  padding:10px 12px!important;
  margin:8px!important;
  font-size:.95rem!important;
  border-radius:12px!important;
  box-sizing:border-box!important;
  overflow:visible!important;
  appearance:auto!important;
  -webkit-appearance:auto!important;
}
.choices__list--dropdown,
.choices__list[aria-expanded]{
  overflow:visible!important;
}

.nav-link{position:relative;}
.nav-unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;margin-left:auto;border-radius:999px;background:#ef4444;color:#fff;font-size:.72rem;font-weight:800;line-height:1;box-shadow:0 0 0 2px rgba(239,68,68,.18);}

.vendor-admin-note{background:linear-gradient(135deg,rgba(245,158,11,.22),rgba(245,158,11,.08))!important;color:#fff8e6!important;}
[data-bs-theme="light"] .vendor-admin-note{color:#3f2a04!important;}

/* Messenger refinements: WhatsApp-like compact ticks, audio bubbles, and attachment preview */
.usemb-bubble{padding:9px 12px 7px;border-radius:18px;}
.usemb-bubble.has-tools{padding-right:44px;}
.usemb-bubble-meta{font-size:.72rem;margin-bottom:4px;}
.usemb-bubble-text{line-height:1.38;}
.usemb-bubble-status{display:flex;align-items:center;justify-content:flex-end;gap:0;text-align:right;font-size:.72rem;margin-top:2px;line-height:1;min-height:12px;}
.usemb-message-ticks{display:inline-block;font-weight:900;letter-spacing:-.22em;margin-right:4px;color:rgba(255,255,255,.78);font-size:.88rem;line-height:1;}
.usemb-message-ticks.sent,.usemb-message-ticks.delivered{color:rgba(226,232,240,.82);}
.usemb-message-ticks.seen,.usemb-bubble-status.seen .usemb-message-ticks{color:#7dd3fc;}
.usemb-voice-wrap{display:block;width:min(340px,100%);max-width:100%;}
.usemb-voice-message{display:flex;align-items:center;gap:9px;min-width:250px;max-width:340px;padding:6px 8px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.10);}
.usemb-bubble.other .usemb-voice-message{background:rgba(255,255,255,.08);}
.usemb-voice-message audio{display:none!important;}
.usemb-voice-play{width:34px;height:34px;min-width:34px;border-radius:999px;border:0;background:rgba(255,255,255,.22);color:#fff;display:grid;place-items:center;padding:0;line-height:1;}
.usemb-voice-play i{font-size:1.15rem;line-height:1;}
.usemb-voice-bars{flex:1;min-width:90px;height:28px;display:flex;align-items:center;gap:2px;overflow:hidden;}
.usemb-voice-bars span{display:block;width:3px;border-radius:999px;background:rgba(255,255,255,.68);opacity:.86;}
.usemb-voice-bars span:nth-child(1){height:8px}.usemb-voice-bars span:nth-child(2){height:13px}.usemb-voice-bars span:nth-child(3){height:18px}.usemb-voice-bars span:nth-child(4){height:11px}.usemb-voice-bars span:nth-child(5){height:23px}.usemb-voice-bars span:nth-child(6){height:15px}.usemb-voice-bars span:nth-child(7){height:9px}.usemb-voice-bars span:nth-child(8){height:20px}.usemb-voice-bars span:nth-child(9){height:14px}.usemb-voice-bars span:nth-child(10){height:24px}.usemb-voice-bars span:nth-child(11){height:16px}.usemb-voice-bars span:nth-child(12){height:10px}.usemb-voice-bars span:nth-child(13){height:19px}.usemb-voice-bars span:nth-child(14){height:12px}.usemb-voice-bars span:nth-child(15){height:17px}.usemb-voice-bars span:nth-child(16){height:9px}
.usemb-voice-message.is-playing .usemb-voice-bars span{animation:usembVoicePulse .9s ease-in-out infinite alternate;}
.usemb-voice-message.is-playing .usemb-voice-bars span:nth-child(2n){animation-delay:.12s;}
.usemb-voice-message.is-playing .usemb-voice-bars span:nth-child(3n){animation-delay:.24s;}
@keyframes usembVoicePulse{from{opacity:.45;transform:scaleY(.72);}to{opacity:1;transform:scaleY(1.08);}}
.usemb-voice-duration{font-size:.72rem;color:rgba(255,255,255,.86);white-space:nowrap;min-width:34px;text-align:right;}
.usemb-voice-actions{display:flex;align-items:center;gap:4px;margin-left:1px;}
.usemb-voice-actions a,.usemb-voice-actions button{width:26px;height:26px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.12);color:inherit;display:grid;place-items:center;text-decoration:none;padding:0;font-size:.82rem;}
.usemb-voice-actions a:hover,.usemb-voice-actions button:hover{background:rgba(255,255,255,.20);}
.usemb-compose-preview{padding:8px 10px;margin-bottom:8px;min-height:48px;}
.usemb-compose-preview:not(.has-image)::before{content:'🎙️';width:38px;height:38px;min-width:38px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.08);}
.usemb-compose-preview:not(.is-audio):not(.has-image)::before{content:'📎';}
.usemb-compose-preview img{width:42px;height:42px;border-radius:12px;}
.usemb-compose-row{align-items:flex-end;gap:10px;}
.usemb-compose-attach{width:44px;height:44px;border-radius:14px;}
.usemb-btn-send{height:44px;min-width:110px;border-radius:14px;}
.usemb-compose-row textarea.form-control{min-height:44px;max-height:120px;border-radius:16px;padding-top:10px;padding-bottom:10px;}
[data-bs-theme="light"] .usemb-voice-message{background:rgba(15,23,42,.06);border-color:rgba(15,23,42,.08);}
[data-bs-theme="light"] .usemb-bubble.self .usemb-voice-message{background:rgba(255,255,255,.16);}
[data-bs-theme="light"] .usemb-bubble.other .usemb-voice-play,[data-bs-theme="light"] .usemb-bubble.other .usemb-voice-actions a,[data-bs-theme="light"] .usemb-bubble.other .usemb-voice-actions button{background:rgba(15,23,42,.08);color:#0f172a;}
[data-bs-theme="light"] .usemb-bubble.other .usemb-voice-bars span{background:rgba(15,23,42,.55);}
[data-bs-theme="light"] .usemb-bubble.other .usemb-voice-duration{color:#475467;}



/* Messages UI refresh - WhatsApp inspired compact layout */
.usemb-messenger-body{background:linear-gradient(180deg, rgba(4,11,28,.82), rgba(4,11,28,.92));}
.usemb-bubble-row{display:flex;margin-bottom:10px;}
.usemb-bubble-row.self{justify-content:flex-end;}
.usemb-bubble{position:relative;max-width:min(62%, 540px);padding:8px 11px 7px;border-radius:16px;box-shadow:0 10px 24px rgba(2,8,23,.16);}
.usemb-bubble.has-tools{padding-right:42px;}
.usemb-bubble.other{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);color:#f8fbff;border-top-left-radius:6px;}
.usemb-bubble.self{background:linear-gradient(135deg,#155eef,#1d4ed8 70%,#1d64f2 100%);border:1px solid rgba(255,255,255,.06);color:#fff;border-top-right-radius:6px;}
.usemb-bubble-meta{display:none;}
.usemb-bubble-text{white-space:pre-wrap;line-height:1.38;word-break:break-word;font-size:.95rem;padding-right:4px;}
.usemb-bubble-reply{padding:7px 9px;margin:0 0 6px;border-radius:10px;background:rgba(3,10,24,.22);border-left:3px solid rgba(255,255,255,.52);}
.usemb-bubble-reply-name{font-size:.73rem;font-weight:700;margin-bottom:1px;color:rgba(255,255,255,.96);}
.usemb-bubble.other .usemb-bubble-reply-name{color:#b6d4ff;}
.usemb-bubble-reply-text{font-size:.77rem;line-height:1.28;opacity:.9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.usemb-bubble-footer{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:3px;line-height:1;}
.usemb-bubble-time{font-size:.72rem;opacity:.78;}
.usemb-bubble-status{display:inline-flex;align-items:center;gap:0;font-size:.75rem;margin:0;min-height:unset;}
.usemb-message-ticks{font-size:.88rem;letter-spacing:-1px;line-height:1;color:rgba(255,255,255,.88);}
.usemb-message-ticks.delivered,.usemb-bubble-status.delivered .usemb-message-ticks{color:#d6f4ff;}
.usemb-message-ticks.seen,.usemb-bubble-status.seen .usemb-message-ticks{color:#53d8ff;}
.usemb-bubble-attachment{display:block;margin-top:6px;border-radius:14px;overflow:hidden;text-decoration:none;}
.usemb-bubble-attachment.image img{display:block;max-width:240px;max-height:240px;object-fit:cover;border-radius:14px;border:1px solid rgba(255,255,255,.08);}
.usemb-bubble-attachment.file{padding:11px 12px;background:rgba(255,255,255,.08);color:inherit;border:1px solid rgba(255,255,255,.08);display:inline-flex;align-items:center;gap:10px;}
.usemb-bubble-tools{position:absolute;top:6px;right:6px;z-index:5;}
.usemb-bubble-menu-btn{width:24px;height:24px;border-radius:999px;border:none;background:rgba(0,0,0,.22);color:#fff;display:grid;place-items:center;opacity:0;pointer-events:none;transform:translateY(-2px);transition:.14s ease;font-size:.8rem;}
.usemb-bubble:hover .usemb-bubble-menu-btn,.usemb-bubble-tools:hover .usemb-bubble-menu-btn{opacity:1;pointer-events:auto;transform:none;}
.usemb-bubble.is-deleted .usemb-bubble-menu-btn{opacity:.75;pointer-events:auto;}
.usemb-bubble-menu{position:absolute;top:28px;right:0;min-width:150px;padding:6px;border-radius:12px;background:#101a30;border:1px solid rgba(255,255,255,.10);box-shadow:0 18px 38px rgba(0,0,0,.28);display:none;z-index:9;}
.usemb-bubble-menu.is-open{display:block;}
.usemb-bubble-menu-item{width:100%;text-align:left;padding:9px 10px;border:0;background:transparent;color:#edf5ff;border-radius:9px;font-size:.88rem;}
.usemb-bubble-menu-item:hover{background:rgba(255,255,255,.06);}
.usemb-bubble-menu-item.danger{color:#ffb4b4;}
.usemb-bubble-menu-item.danger:hover{background:rgba(239,68,68,.14);}
.usemb-voice-wrap{margin-top:4px;}
.usemb-voice-message{display:flex;align-items:center;gap:10px;min-width:240px;max-width:320px;padding:8px 10px;border-radius:18px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.10);}
.usemb-bubble.other .usemb-voice-message{background:rgba(255,255,255,.07);}
.usemb-voice-message audio{display:none!important;}
.usemb-voice-play{width:34px;height:34px;min-width:34px;border-radius:999px;border:none;background:rgba(255,255,255,.18);color:#fff;display:grid;place-items:center;font-size:1rem;}
.usemb-voice-main{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1;}
.usemb-voice-bars{display:flex;align-items:flex-end;gap:2px;height:18px;overflow:hidden;}
.usemb-voice-bars span{display:block;width:3px;height:7px;border-radius:999px;background:rgba(255,255,255,.82);opacity:.92;}
.usemb-voice-bars span:nth-child(3n){height:16px}
.usemb-voice-bars span:nth-child(4n){height:12px}
.usemb-voice-bars span:nth-child(5n){height:9px}
.usemb-voice-message.is-playing .usemb-voice-bars span{animation:usembVoicePulse .9s ease-in-out infinite alternate;}
.usemb-voice-message.is-playing .usemb-voice-bars span:nth-child(2n){animation-delay:.12s;}
.usemb-voice-message.is-playing .usemb-voice-bars span:nth-child(3n){animation-delay:.24s;}
.usemb-voice-meta-row{display:flex;align-items:center;justify-content:flex-start;}
.usemb-voice-duration{font-size:.71rem;opacity:.82;}
.usemb-reply-preview{display:none;align-items:flex-start;gap:10px;padding:8px 10px;margin-bottom:8px;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);}
.usemb-reply-preview.is-visible{display:flex;}
.usemb-reply-preview-bar{width:4px;align-self:stretch;border-radius:999px;background:#53d8ff;}
.usemb-reply-preview-content{flex:1;min-width:0;}
.usemb-reply-preview-name{font-size:.78rem;font-weight:700;line-height:1.2;}
.usemb-reply-preview-text{font-size:.78rem;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.usemb-reply-preview-remove{width:28px;height:28px;border-radius:999px;border:none;background:rgba(255,255,255,.08);color:#fff;display:grid;place-items:center;}
.usemb-compose-preview{padding:8px 10px;margin-bottom:8px;min-height:48px;border-radius:14px;}
.usemb-compose-preview img{width:42px;height:42px;border-radius:12px;}
.usemb-compose-row textarea.form-control{min-height:44px;max-height:110px;border-radius:999px;padding:10px 18px;resize:none;overflow-y:auto;}
.usemb-btn-send{border-radius:999px;padding:0 20px;min-height:44px;}
[data-bs-theme="light"] .usemb-bubble.other{background:#fff;color:#0f172a;border-color:rgba(15,23,42,.08);}
[data-bs-theme="light"] .usemb-bubble.self{color:#fff;}
[data-bs-theme="light"] .usemb-bubble-reply{background:rgba(15,23,42,.05);border-left-color:#1d4ed8;}
[data-bs-theme="light"] .usemb-bubble-menu{background:#fff;border-color:rgba(15,23,42,.08);box-shadow:0 18px 38px rgba(15,23,42,.12);}
[data-bs-theme="light"] .usemb-bubble-menu-item{color:#0f172a;}
[data-bs-theme="light"] .usemb-bubble-menu-item:hover{background:#f8fafc;}
[data-bs-theme="light"] .usemb-bubble-menu-item.danger{color:#b42318;}
[data-bs-theme="light"] .usemb-bubble-menu-btn{background:rgba(15,23,42,.08);color:#344054;}
[data-bs-theme="light"] .usemb-voice-message{background:rgba(15,23,42,.06);border-color:rgba(15,23,42,.08);}
[data-bs-theme="light"] .usemb-bubble.self .usemb-voice-message{background:rgba(255,255,255,.18);}
[data-bs-theme="light"] .usemb-bubble.other .usemb-voice-play{background:rgba(15,23,42,.08);color:#0f172a;}
[data-bs-theme="light"] .usemb-bubble.other .usemb-voice-bars span{background:rgba(15,23,42,.55);}
[data-bs-theme="light"] .usemb-bubble.other .usemb-voice-duration{color:#475467;}
[data-bs-theme="light"] .usemb-reply-preview,[data-bs-theme="light"] .usemb-compose-preview{background:#fff;color:#0f172a;border-color:rgba(15,23,42,.08);}
@media (max-width: 991.98px){
  .usemb-bubble{max-width:88%;}
  .usemb-voice-message{min-width:210px;max-width:100%;}
}


/* Final message UI polish: visible WhatsApp-like ticks, softer outgoing bubble, stable menu */
.usemb-bubble.self{
  background:linear-gradient(135deg,#2d8cff,#2f80ed 58%,#46a3ff 100%) !important;
  border-color:rgba(255,255,255,.14) !important;
}
.usemb-bubble.self .usemb-voice-message{
  background:rgba(255,255,255,.20) !important;
}
.usemb-bubble-status{
  margin-left:4px !important;
}
.usemb-message-ticks{
  display:inline-flex !important;
  align-items:center !important;
  font-size:1.02rem !important;
  letter-spacing:0 !important;
  line-height:1 !important;
  margin-right:0 !important;
  color:rgba(255,255,255,.92) !important;
}
.usemb-message-ticks i{
  line-height:1 !important;
  font-weight:900 !important;
  -webkit-text-stroke:.25px currentColor;
}
.usemb-message-ticks.seen,
.usemb-bubble-status.seen .usemb-message-ticks{
  color:#034ea2 !important;
  text-shadow:0 1px 0 rgba(255,255,255,.22);
}
.usemb-message-ticks.delivered,
.usemb-bubble-status.delivered .usemb-message-ticks{
  color:#eaf7ff !important;
}
.usemb-bubble-menu.is-open{
  display:block !important;
  z-index:30 !important;
}
.usemb-bubble.has-tools{
  padding-right:38px !important;
}


/* Modal/dropdown + message refresh glitch fixes */
#generateInvoiceModal.usemb-dropdown-open .modal-content{
  min-height:min(820px, calc(100vh - 24px)) !important;
}
#generateInvoiceModal .modal-content{
  transition:min-height .16s ease;
}
.usemb-thread-action-menu.is-open,
.usemb-bubble-menu.is-open{
  display:block !important;
  z-index:40 !important;
}
.usemb-bubble.self{
  background:linear-gradient(135deg,#2f8ff7,#388df3 58%,#54adff 100%) !important;
}
.usemb-message-ticks.seen,
.usemb-bubble-status.seen .usemb-message-ticks{
  color:#003f8f !important;
  text-shadow:0 1px 0 rgba(255,255,255,.28);
}


/* WhatsApp-style compact message ticks */
.usemb-bubble-footer{
  align-items:flex-end !important;
  gap:3px !important;
}
.usemb-bubble-time{
  font-size:.72rem !important;
  line-height:1 !important;
}
.usemb-bubble-status{
  display:inline-flex !important;
  align-items:center !important;
  min-height:12px !important;
  margin-left:2px !important;
  line-height:1 !important;
}
.usemb-message-ticks{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:18px !important;
  height:12px !important;
  line-height:1 !important;
  margin:0 !important;
  padding:0 !important;
  letter-spacing:0 !important;
  vertical-align:-1px !important;
}
.usemb-message-ticks .wa-single-tick{
  font-size:13px !important;
  line-height:12px !important;
  font-weight:800 !important;
  color:rgba(255,255,255,.72) !important;
}
.usemb-message-ticks .wa-double-tick{
  width:18px !important;
  height:12px !important;
  display:block !important;
  overflow:visible !important;
}
.usemb-message-ticks .wa-double-tick path{
  fill:none !important;
  stroke:rgba(255,255,255,.72) !important;
  stroke-width:1.75 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}
.usemb-message-ticks.delivered .wa-double-tick path,
.usemb-bubble-status.delivered .usemb-message-ticks .wa-double-tick path{
  stroke:rgba(255,255,255,.72) !important;
}
.usemb-message-ticks.seen .wa-double-tick path,
.usemb-bubble-status.seen .usemb-message-ticks .wa-double-tick path{
  stroke:#53bdeb !important;
}
.usemb-bubble.self{
  background:linear-gradient(135deg,#0f5138,#115c40 60%,#126846 100%) !important;
}


/* Invoice generate summary chips */
.invoice-generate-summary,
.advance-payment-summary{
  display:flex !important;
  align-items:center !important;
  gap:.6rem !important;
  flex-wrap:wrap !important;
  margin:.75rem 0 1rem !important;
}
.invoice-generate-summary .summary-chip,
.advance-payment-summary .pill{
  display:inline-flex !important;
  align-items:center !important;
  gap:.35rem !important;
  border:1px solid rgba(148,163,184,.25) !important;
  border-radius:999px !important;
  padding:.42rem .7rem !important;
  background:rgba(15,23,42,.45) !important;
  color:#cbd5e1 !important;
  font-size:.86rem !important;
  line-height:1.1 !important;
}
.invoice-generate-summary .summary-chip strong,
.advance-payment-summary .pill strong{
  color:#fff !important;
  font-weight:800 !important;
}
.invoice-generate-summary .summary-chip.amount strong{
  color:#38bdf8 !important;
}
.invoice-attachments-list .invoice-attachment-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  padding:.65rem .75rem;
  border:1px solid rgba(148,163,184,.18);
  border-radius:.75rem;
  margin-top:.6rem;
  background:rgba(15,23,42,.35);
}
.invoice-attachment-meta{min-width:0;}
.invoice-attachment-name{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:360px;}
.invoice-attachment-sub{font-size:.78rem;color:#94a3b8;}


/* Invoice filter dropdown should stay below modal but above its own cards */
.invoice-header-filter-card{z-index:20 !important;}
.invoice-header-filter-card .choices.is-open{z-index:30 !important;}
.invoice-header-filter-card .choices__list--dropdown,
.invoice-header-filter-card .choices__list[aria-expanded]{z-index:40 !important;}
.modal.show{z-index:1055;}
.modal-backdrop.show{z-index:1050;}

/* Messenger image preview, reply jump, profile modal, typing indicator */
.usemb-clickable-profile{cursor:pointer;}
.usemb-typing-status{display:none;align-items:center;gap:3px;color:#22c55e;font-size:.82rem;font-weight:700;margin-top:2px;}
.usemb-typing-status.is-visible{display:flex;}
.usemb-typing-status span{width:4px;height:4px;border-radius:50%;background:currentColor;animation:usembTypingDot 1s infinite ease-in-out;}
.usemb-typing-status span:nth-child(2){animation-delay:.15s}.usemb-typing-status span:nth-child(3){animation-delay:.3s}
@keyframes usembTypingDot{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.usemb-bubble-reply[data-reply-target]{cursor:pointer;}
.usemb-bubble-reply[data-reply-target]:hover{filter:brightness(1.08);}
.usemb-reply-target-flash .usemb-bubble{animation:usembReplyFlash 1.6s ease-in-out;}
@keyframes usembReplyFlash{0%,100%{box-shadow:0 0 0 rgba(56,189,248,0)}20%,70%{box-shadow:0 0 0 4px rgba(56,189,248,.35),0 0 24px rgba(56,189,248,.25)}}
.usemb-image-preview-modal .modal-content{background:#05070b;color:#fff;border:0;border-radius:0;}
.usemb-image-preview-topbar{height:58px;display:flex;align-items:center;gap:14px;padding:0 18px;background:rgba(3,7,18,.88);border-bottom:1px solid rgba(148,163,184,.2);}
.usemb-image-back,.usemb-image-preview-download{border:0;background:rgba(15,23,42,.9);color:#fff;border-radius:999px;min-width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;text-decoration:none;}
.usemb-image-back:hover,.usemb-image-preview-download:hover{background:rgba(30,41,59,.98);color:#fff;}
.usemb-image-preview-title{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;}
.usemb-image-preview-stage{height:calc(100vh - 58px);display:flex;align-items:center;justify-content:center;padding:18px;background:#020617;}
.usemb-image-preview-stage img{max-width:100%;max-height:100%;object-fit:contain;border-radius:12px;box-shadow:0 20px 70px rgba(0,0,0,.45);}
.usemb-user-info-modal .modal-content{background:#0f172a;color:#e5e7eb;border:1px solid rgba(148,163,184,.22);border-radius:20px;}
.usemb-profile-info-grid{display:grid;gap:10px;}
.usemb-profile-info-row{display:flex;gap:12px;align-items:flex-start;padding:10px 12px;border:1px solid rgba(148,163,184,.18);border-radius:14px;background:rgba(15,23,42,.55);}
.usemb-profile-info-icon{width:30px;height:30px;border-radius:999px;background:rgba(14,165,233,.16);color:#38bdf8;display:flex;align-items:center;justify-content:center;flex:0 0 auto;}
.usemb-profile-info-label{font-size:.75rem;color:#94a3b8;}
.usemb-profile-info-value{font-weight:700;color:#f8fafc;word-break:break-word;}

/* USEMB V6 instant temp upload UI */
body.admin-layout.usemb-white-shell [data-mfu-wrapper] .mfu-item.mfu-uploading,
[data-mfu-wrapper] .mfu-item.mfu-uploading{
  border-color: rgba(80,143,255,.55)!important;
  box-shadow: 0 10px 24px rgba(80,143,255,.12)!important;
}
body.admin-layout.usemb-white-shell [data-mfu-wrapper] .mfu-item.mfu-error,
[data-mfu-wrapper] .mfu-item.mfu-error{
  border-color: rgba(239,68,68,.55)!important;
  background: rgba(239,68,68,.08)!important;
}
body.admin-layout.usemb-white-shell [data-mfu-wrapper] .mfu-text,
[data-mfu-wrapper] .mfu-text{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  gap:2px!important;
}
body.admin-layout.usemb-white-shell [data-mfu-wrapper] .mfu-progress-bar,
[data-mfu-wrapper] .mfu-progress-bar{
  width:0;
  transition: width .18s ease!important;
}
body.admin-layout.usemb-white-shell [data-mfu-wrapper] .mfu-uploading .mfu-progress,
[data-mfu-wrapper] .mfu-uploading .mfu-progress{
  opacity:1!important;
}
body.admin-layout.usemb-white-shell [data-mfu-wrapper] .mfu-done .mfu-progress-bar,
[data-mfu-wrapper] .mfu-done .mfu-progress-bar{
  width:100%!important;
}
body.admin-layout.usemb-white-shell [data-mfu-wrapper] .mfu-uploading .mfu-icon,
[data-mfu-wrapper] .mfu-uploading .mfu-icon{
  color:#60a5fa!important;
  animation: usembUploadIconPulse 1s ease-in-out infinite!important;
}
body.admin-layout.usemb-white-shell [data-mfu-wrapper] .mfu-error .mfu-icon,
[data-mfu-wrapper] .mfu-error .mfu-icon,
body.admin-layout.usemb-white-shell [data-mfu-wrapper] .mfu-error .mfu-meta,
[data-mfu-wrapper] .mfu-error .mfu-meta{
  color:#fb7185!important;
}
@keyframes usembUploadIconPulse{
  0%,100%{opacity:.72; transform:translateY(0);}
  50%{opacity:1; transform:translateY(-1px);}
}


/* =========================================================
   USEMB V7 — no raw load flash, stable instant-upload progress, native select popup polish
   ========================================================= */
body.admin-layout.usemb-white-shell:not(.usemb-layout-ready){
  background:#07101d!important;
  overflow:hidden!important;
}
body.admin-layout.usemb-white-shell:not(.usemb-layout-ready) > *:not(#loading-screen):not(script):not(style){
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell,
html[data-usemb-theme="blue"] body.admin-layout.usemb-white-shell,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell{
  color-scheme: dark!important;
}
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell select,
html[data-usemb-theme="blue"] body.admin-layout.usemb-white-shell select,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell select,
body.admin-layout.usemb-white-shell[data-bs-theme="dark"] select{
  color-scheme: dark!important;
}
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell select option,
html[data-usemb-theme="blue"] body.admin-layout.usemb-white-shell select option,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell select option,
body.admin-layout.usemb-white-shell .form-select option{
  background-color:#101827!important;
  color:#eaf2ff!important;
}
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell select option:hover,
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell select option:focus,
html[data-usemb-theme="blue"] body.admin-layout.usemb-white-shell select option:hover,
html[data-usemb-theme="blue"] body.admin-layout.usemb-white-shell select option:focus,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell select option:hover,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell select option:focus{
  background-color:#17243a!important;
  color:#ffffff!important;
}
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell select option:checked,
html[data-usemb-theme="blue"] body.admin-layout.usemb-white-shell select option:checked,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell select option:checked{
  background:#20345a!important;
  background-color:#20345a!important;
  color:#ffffff!important;
}
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell select option,
html[data-bs-theme="light"] body.admin-layout.usemb-white-shell select option{
  background-color:#ffffff!important;
  color:#0f172a!important;
}
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell select option:hover,
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell select option:focus,
html[data-bs-theme="light"] body.admin-layout.usemb-white-shell select option:hover,
html[data-bs-theme="light"] body.admin-layout.usemb-white-shell select option:focus{
  background-color:#eef5ff!important;
  color:#0f172a!important;
}
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell select option:checked,
html[data-bs-theme="light"] body.admin-layout.usemb-white-shell select option:checked{
  background:#dbeafe!important;
  background-color:#dbeafe!important;
  color:#0f172a!important;
}
body.admin-layout.usemb-white-shell [data-mfu-wrapper] .mfu-item{
  animation:none!important;
  transform:none!important;
  transition:border-color .16s ease, background-color .16s ease, box-shadow .16s ease!important;
}
body.admin-layout.usemb-white-shell [data-mfu-wrapper] .mfu-item.mfu-uploading{
  border-color:rgba(79,134,247,.55)!important;
  box-shadow:0 0 0 1px rgba(79,134,247,.10) inset!important;
}
body.admin-layout.usemb-white-shell [data-mfu-wrapper] .mfu-progress{
  height:6px!important;
  margin-top:10px!important;
  overflow:hidden!important;
  background:#09111f!important;
  border-radius:999px!important;
}
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell [data-mfu-wrapper] .mfu-progress,
html[data-bs-theme="light"] body.admin-layout.usemb-white-shell [data-mfu-wrapper] .mfu-progress{
  background:#e5edf8!important;
}
body.admin-layout.usemb-white-shell [data-mfu-wrapper] .mfu-progress-bar{
  position:relative!important;
  height:100%!important;
  min-width:8px!important;
  border-radius:999px!important;
  overflow:hidden!important;
  animation:none!important;
  transition:width .24s ease!important;
  background:linear-gradient(90deg,#4f86f7 0%,#22c7e2 55%,#6ea4ff 100%)!important;
}
body.admin-layout.usemb-white-shell [data-mfu-wrapper] .mfu-item.mfu-uploading .mfu-progress-bar::after{
  content:""!important;
  position:absolute!important;
  top:0!important;
  bottom:0!important;
  left:-45%!important;
  width:45%!important;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent)!important;
  animation:usembMfuBarShimmer 1.05s linear infinite!important;
}
body.admin-layout.usemb-white-shell [data-mfu-wrapper] .mfu-item.mfu-uploading .mfu-icon{
  animation:usembMfuSoftPulse 1.15s ease-in-out infinite!important;
}
body.admin-layout.usemb-white-shell [data-mfu-wrapper] .mfu-item.mfu-uploading .mfu-meta{
  color:#8eb1ff!important;
}
body.admin-layout.usemb-white-shell [data-mfu-wrapper] .mfu-item.mfu-done .mfu-progress{
  opacity:.55!important;
}
@keyframes usembMfuBarShimmer{0%{left:-45%;}100%{left:110%;}}
@keyframes usembMfuSoftPulse{0%,100%{transform:scale(1);opacity:.82;}50%{transform:scale(1.04);opacity:1;}}


/* =========================================================
   USEMB V8 — thicker upload progress, dark dropdown visibility, blue mode retired
   ========================================================= */
body.admin-layout.usemb-white-shell [data-mfu-wrapper] .mfu-progress,
[data-mfu-wrapper] .mfu-progress{
  height:12px!important;
  margin-top:12px!important;
  border-radius:999px!important;
  overflow:hidden!important;
  background:#07101d!important;
  border:1px solid rgba(96,165,250,.20)!important;
  box-shadow:inset 0 1px 4px rgba(0,0,0,.45)!important;
}
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell [data-mfu-wrapper] .mfu-progress,
html[data-bs-theme="light"] body.admin-layout.usemb-white-shell [data-mfu-wrapper] .mfu-progress,
body.admin-layout.usemb-white-shell.theme-light [data-mfu-wrapper] .mfu-progress{
  background:#e9f1fb!important;
  border-color:#d7e3f3!important;
  box-shadow:inset 0 1px 3px rgba(15,23,42,.08)!important;
}
body.admin-layout.usemb-white-shell [data-mfu-wrapper] .mfu-progress-bar,
[data-mfu-wrapper] .mfu-progress-bar{
  height:100%!important;
  min-width:14px!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#4f86f7 0%,#22c7e2 48%,#75a7ff 100%)!important;
  box-shadow:0 0 14px rgba(79,134,247,.38)!important;
  transition:width .22s ease-out!important;
}
body.admin-layout.usemb-white-shell [data-mfu-wrapper] .mfu-item.mfu-uploading .mfu-progress-bar::after,
[data-mfu-wrapper] .mfu-item.mfu-uploading .mfu-progress-bar::after{
  content:""!important;
  position:absolute!important;
  top:0!important;
  bottom:0!important;
  left:-45%!important;
  width:45%!important;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent)!important;
  animation:usembMfuBarShimmerV8 .85s linear infinite!important;
}
@keyframes usembMfuBarShimmerV8{0%{left:-45%;}100%{left:120%;}}

/* Dark-mode native select/option and Choices.js dropdowns. */
html[data-usemb-theme="blue"]{color-scheme:dark!important;}
html[data-usemb-theme="blue"] body.admin-layout.usemb-white-shell{background:#07101d!important;}
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell select,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell select,
body.admin-layout.usemb-white-shell.theme-dark select{
  color-scheme:dark!important;
  background-color:#101827!important;
  color:#eaf2ff!important;
}
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell select option,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell select option,
body.admin-layout.usemb-white-shell.theme-dark select option{
  background:#101827!important;
  color:#eaf2ff!important;
  -webkit-text-fill-color:#eaf2ff!important;
}
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell select option:hover,
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell select option:focus,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell select option:hover,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell select option:focus,
body.admin-layout.usemb-white-shell.theme-dark select option:hover,
body.admin-layout.usemb-white-shell.theme-dark select option:focus{
  background:#1b2b46!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  box-shadow:0 0 0 100vmax #1b2b46 inset!important;
}
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell select option:checked,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell select option:checked,
body.admin-layout.usemb-white-shell.theme-dark select option:checked{
  background:#22385d!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  box-shadow:0 0 0 100vmax #22385d inset!important;
}
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell .choices__list--dropdown,
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell .choices__list[aria-expanded],
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell .choices__list--dropdown,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell .choices__list[aria-expanded],
body.admin-layout.usemb-white-shell.theme-dark .choices__list--dropdown,
body.admin-layout.usemb-white-shell.theme-dark .choices__list[aria-expanded]{
  background:#101827!important;
  border-color:#263448!important;
  box-shadow:0 18px 46px rgba(0,0,0,.38)!important;
}
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell .choices__list--dropdown .choices__item,
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell .choices__list[aria-expanded] .choices__item,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell .choices__list--dropdown .choices__item,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell .choices__list[aria-expanded] .choices__item,
body.admin-layout.usemb-white-shell.theme-dark .choices__list--dropdown .choices__item,
body.admin-layout.usemb-white-shell.theme-dark .choices__list[aria-expanded] .choices__item{
  background:#101827!important;
  color:#eaf2ff!important;
}
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell .choices__list--dropdown .choices__item--selectable.is-highlighted,
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell .choices__list[aria-expanded] .choices__item--selectable.is-highlighted,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell .choices__list--dropdown .choices__item--selectable.is-highlighted,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell .choices__list[aria-expanded] .choices__item--selectable.is-highlighted,
body.admin-layout.usemb-white-shell.theme-dark .choices__list--dropdown .choices__item--selectable.is-highlighted,
body.admin-layout.usemb-white-shell.theme-dark .choices__list[aria-expanded] .choices__item--selectable.is-highlighted{
  background:#1b2b46!important;
  color:#ffffff!important;
}
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell .choices__list--dropdown .choices__item.is-selected,
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell .choices__list[aria-expanded] .choices__item.is-selected,
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell .choices__list--dropdown .choices__item[aria-selected="true"],
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell .choices__list[aria-expanded] .choices__item[aria-selected="true"],
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell .choices__list--dropdown .choices__item.is-selected,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell .choices__list[aria-expanded] .choices__item.is-selected,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell .choices__list--dropdown .choices__item[aria-selected="true"],
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell .choices__list[aria-expanded] .choices__item[aria-selected="true"],
body.admin-layout.usemb-white-shell.theme-dark .choices__list--dropdown .choices__item.is-selected,
body.admin-layout.usemb-white-shell.theme-dark .choices__list[aria-expanded] .choices__item.is-selected,
body.admin-layout.usemb-white-shell.theme-dark .choices__list--dropdown .choices__item[aria-selected="true"],
body.admin-layout.usemb-white-shell.theme-dark .choices__list[aria-expanded] .choices__item[aria-selected="true"]{
  background:#22385d!important;
  color:#ffffff!important;
}


/* Toast validation polish for order create forms */
.usemb-toast{
  min-width: 320px;
  max-width: 460px;
  overflow: hidden;
}
.usemb-toast.usemb-toast-danger{
  background: linear-gradient(135deg, rgba(127,29,29,.98), rgba(69,10,10,.98));
  border-color: rgba(248,113,113,.45);
  border-left-color: #f43f5e;
}
.usemb-toast.usemb-toast-success{
  background: linear-gradient(135deg, rgba(20,83,45,.98), rgba(5,46,22,.98));
  border-color: rgba(74,222,128,.45);
  border-left-color: #22c55e;
}
html[data-bs-theme='light'] .usemb-toast.usemb-toast-danger,
html[data-usemb-theme='light'] .usemb-toast.usemb-toast-danger{
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  border-color: rgba(225,29,72,.28);
  border-left-color: #e11d48;
  box-shadow: 0 18px 45px rgba(127,29,29,.16);
}
html[data-bs-theme='light'] .usemb-toast.usemb-toast-success,
html[data-usemb-theme='light'] .usemb-toast.usemb-toast-success{
  background: linear-gradient(135deg, #ecfdf5, #dcfce7);
  border-color: rgba(22,163,74,.25);
  border-left-color: #16a34a;
  box-shadow: 0 18px 45px rgba(22,101,52,.14);
}
html[data-bs-theme='light'] .usemb-toast .toast-body,
html[data-usemb-theme='light'] .usemb-toast .toast-body{
  color: #111827;
}

/* V17 toast-validation focus polish */
.usemb-validation-focus,
.choices.usemb-validation-focus .choices__inner{
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.22), 0 0 0 1px rgba(239,68,68,.45) inset !important;
  outline: none !important;
}
.usemb-toast{
  transform: translateX(8px);
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
}
.usemb-toast.show{
  opacity: 1;
  transform: translateX(0);
}
.usemb-toast.usemb-toast-danger{
  background: linear-gradient(135deg, #3b0b14, #7f1d1d) !important;
  border: 1px solid rgba(248,113,113,.45) !important;
  border-left: 5px solid #ef4444 !important;
  color: #fff !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.35) !important;
}
html[data-usemb-theme='light'] .usemb-toast.usemb-toast-danger,
html[data-bs-theme='light'] .usemb-toast.usemb-toast-danger{
  background: #fff5f5 !important;
  border: 1px solid #fecaca !important;
  border-left: 5px solid #ef4444 !important;
  color: #991b1b !important;
  box-shadow: 0 18px 45px rgba(15,23,42,.16) !important;
}
.usemb-toast.usemb-toast-danger .toast-body{
  color: inherit !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  padding: 14px 16px !important;
}


/* USEMB auth theme sync v21 */
html[data-usemb-theme="dark"],
html[data-usemb-theme="dark"] body.usemb-auth-shell{
  background:#07101d!important;
  background-color:#07101d!important;
  color:#eaf2ff!important;
}

html[data-usemb-theme="dark"] body.usemb-auth-shell .auth-page-wrapper{
  background:
    radial-gradient(circle at 50% 42%, rgba(79,134,247,.14), transparent 32%),
    linear-gradient(135deg,#07101d 0%,#0b1422 100%)!important;
}

html[data-usemb-theme="dark"] body.usemb-auth-shell .auth-page-content,
html[data-usemb-theme="dark"] body.usemb-auth-shell .container,
html[data-usemb-theme="dark"] body.usemb-auth-shell .row{
  background:transparent!important;
}

html[data-usemb-theme="dark"] body.usemb-auth-shell .card{
  background:#101827!important;
  color:#eaf2ff!important;
  border-color:#27364d!important;
  box-shadow:0 26px 75px rgba(0,0,0,.42)!important;
}

html[data-usemb-theme="dark"] body.usemb-auth-shell :is(h1,h2,h3,h4,h5,h6,label,.fw-semibold,.fw-bold){
  color:#ffffff!important;
}

html[data-usemb-theme="dark"] body.usemb-auth-shell :is(.text-muted,small,.small){
  color:#9fb0c6!important;
}

html[data-usemb-theme="dark"] body.usemb-auth-shell :is(.form-control,.form-select){
  background:#0b1220!important;
  color:#f8fbff!important;
  border-color:#27364d!important;
  box-shadow:none!important;
}

html[data-usemb-theme="dark"] body.usemb-auth-shell :is(.form-control,.form-select):focus{
  border-color:#4f86f7!important;
  box-shadow:0 0 0 .18rem rgba(79,134,247,.22)!important;
}

html[data-usemb-theme="dark"] body.usemb-auth-shell :is(.form-control,.form-select)::placeholder{
  color:#7f8da6!important;
  opacity:1!important;
}

html[data-usemb-theme="dark"] body.usemb-auth-shell .form-check-input{
  background-color:#0b1220!important;
  border-color:#33435c!important;
}

html[data-usemb-theme="dark"] body.usemb-auth-shell .form-check-input:checked{
  background-color:#4f86f7!important;
  border-color:#4f86f7!important;
}

html[data-usemb-theme="dark"] body.usemb-auth-shell a{
  color:#8fb5ff!important;
}

html[data-usemb-theme="dark"] body.usemb-auth-shell a:hover,
html[data-usemb-theme="dark"] body.usemb-auth-shell a:focus{
  color:#b8d0ff!important;
}

html[data-usemb-theme="dark"] body.usemb-auth-shell .brand-logo-light{ display:none!important; }
html[data-usemb-theme="dark"] body.usemb-auth-shell .brand-logo-dark{ display:inline-block!important; }
html[data-usemb-theme="light"] body.usemb-auth-shell .brand-logo-light{ display:inline-block!important; }
html[data-usemb-theme="light"] body.usemb-auth-shell .brand-logo-dark{ display:none!important; }

body.usemb-auth-shell .auth-password-field{
  position:relative;
}

body.usemb-auth-shell .auth-password-field .form-control{
  padding-right:3rem!important;
}

body.usemb-auth-shell .auth-password-toggle{
  position:absolute;
  top:50%;
  right:.42rem;
  transform:translateY(-50%);
  width:2.15rem;
  height:2.15rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:.65rem;
  background:transparent;
  color:#667085;
  cursor:pointer;
  transition:background .16s ease,color .16s ease,transform .16s ease;
  z-index:3;
}

body.usemb-auth-shell .auth-password-toggle:hover,
body.usemb-auth-shell .auth-password-toggle:focus{
  background:rgba(79,134,247,.12);
  color:#4f86f7;
  outline:0;
}

html[data-usemb-theme="dark"] body.usemb-auth-shell .auth-password-toggle{
  color:#9fb0c6!important;
}

html[data-usemb-theme="dark"] body.usemb-auth-shell .auth-password-toggle:hover,
html[data-usemb-theme="dark"] body.usemb-auth-shell .auth-password-toggle:focus{
  background:rgba(79,134,247,.18)!important;
  color:#ffffff!important;
}

html[data-usemb-theme="dark"] body.usemb-auth-shell :is(.alert-warning,.alert){
  background:#221a08!important;
  color:#fde68a!important;
  border-color:rgba(245,158,11,.35)!important;
}

html[data-usemb-theme="dark"] body.usemb-auth-shell .text-danger{
  color:#fb7185!important;
}

body.usemb-auth-shell .btn-primary:hover,
body.usemb-auth-shell .btn-primary:focus{
  filter:brightness(.97);
  transform:translateY(-1px);
}

/* USEMB V33: drag/drop upload + smoother uploader feedback */
[data-mfu-wrapper].mfu-drop-zone,
.usemb-upload-zone-ref.mfu-drop-zone{
  position: relative;
}
[data-mfu-wrapper].mfu-drop-zone.mfu-drag-over,
.usemb-upload-zone-ref.mfu-drop-zone.mfu-drag-over{
  border-color: #4f83ff !important;
  background: rgba(79, 131, 255, .10) !important;
  box-shadow: 0 0 0 3px rgba(79, 131, 255, .16), inset 0 0 0 1px rgba(79, 131, 255, .35) !important;
}
[data-mfu-wrapper].mfu-drop-zone.mfu-drag-over::after,
.usemb-upload-zone-ref.mfu-drop-zone.mfu-drag-over::after{
  content: "Drop files to upload";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(79, 131, 255, .75);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
  background: rgba(7, 16, 29, .86);
  color: #eaf2ff;
  font-weight: 900;
  letter-spacing: .01em;
}
[data-bs-theme="light"] [data-mfu-wrapper].mfu-drop-zone.mfu-drag-over::after,
[data-bs-theme="light"] .usemb-upload-zone-ref.mfu-drop-zone.mfu-drag-over::after{
  background: rgba(255, 255, 255, .92);
  color: #102a56;
}


/* USEMB V38: robust drag/drop upload zones across admin/client/vendor */
[data-mfu-wrapper].mfu-drop-zone,
.usemb-upload-zone-ref.mfu-drop-zone,
[data-mfu-wrapper].mfu-drop-zone .usemb-upload-trigger-ref,
.usemb-upload-zone-ref.mfu-drop-zone .usemb-upload-trigger-ref{
  cursor: pointer;
}
[data-mfu-wrapper].mfu-drop-zone.mfu-drag-over,
.usemb-upload-zone-ref.mfu-drop-zone.mfu-drag-over{
  outline: 2px solid rgba(79, 131, 255, .75) !important;
  outline-offset: 3px !important;
}
[data-mfu-wrapper].mfu-drop-zone.mfu-drag-over .usemb-upload-trigger-ref,
.usemb-upload-zone-ref.mfu-drop-zone.mfu-drag-over .usemb-upload-trigger-ref{
  border-color: rgba(96, 165, 250, .95) !important;
  background: rgba(37, 99, 235, .14) !important;
}


/* USEMB V50: premium split login redesign */
body.usemb-auth-shell .auth-page-wrapper{
  padding:32px 14px 18px!important;
}
body.usemb-auth-shell .auth-page-content{
  padding:0!important;
}
body.usemb-auth-shell .usemb-login-page,
body.usemb-auth-shell .usemb-login-container{
  width:100%;
}
body.usemb-auth-shell .usemb-login-container{
  max-width:1220px;
}
body.usemb-auth-shell .usemb-login-shell{
  border-radius:32px;
  padding:0;
}
body.usemb-auth-shell .usemb-login-stage{
  display:grid;
  grid-template-columns:minmax(0, 1.03fr) minmax(0, .97fr);
  gap:28px;
  align-items:stretch;
  border-radius:32px;
  padding:38px;
  min-height:760px;
  position:relative;
  overflow:hidden;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(214,220,234,.75);
  box-shadow:0 22px 68px rgba(31,41,55,.08);
  backdrop-filter:blur(14px);
}
body.usemb-auth-shell .usemb-login-hero,
body.usemb-auth-shell .usemb-login-panel{
  position:relative;
  min-width:0;
}
body.usemb-auth-shell .usemb-login-hero{
  border-radius:28px;
  padding:42px 44px 34px;
  overflow:hidden;
  border:1px solid rgba(225,231,242,.88);
  background:linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(247,249,255,.92) 100%);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  isolation:isolate;
}
body.usemb-auth-shell .usemb-login-hero::before{
  content:"";
  position:absolute;
  inset:58px 76px auto auto;
  width:260px;
  height:260px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(57,111,255,.08), rgba(57,111,255,.03) 58%, transparent 73%);
  z-index:-1;
}
body.usemb-auth-shell .usemb-login-hero::after{
  content:"";
  position:absolute;
  left:-8%;
  right:-8%;
  bottom:-24px;
  height:260px;
  background:
    radial-gradient(150% 85% at 50% 100%, transparent 62%, rgba(68,126,255,.14) 62.5%, transparent 63.2%) 0 0/100% 34px repeat-y,
    radial-gradient(150% 85% at 50% 100%, transparent 72%, rgba(68,126,255,.09) 72.4%, transparent 73.1%) 0 14px/100% 34px repeat-y;
  opacity:.9;
  pointer-events:none;
}
body.usemb-auth-shell .usemb-login-dots{
  width:56px;
  height:56px;
  display:block;
  border-radius:16px;
  background-image:radial-gradient(circle, rgba(77,126,235,.44) 1.7px, transparent 1.7px);
  background-size:16px 16px;
  opacity:.55;
}
body.usemb-auth-shell .usemb-login-hero-inner{
  display:flex;
  flex:1;
  flex-direction:column;
  justify-content:center;
  gap:22px;
  padding-top:28px;
}
body.usemb-auth-shell .usemb-login-brand{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
}
body.usemb-auth-shell .usemb-login-logo{
  max-width:min(100%, 270px);
  max-height:78px;
  object-fit:contain;
}
body.usemb-auth-shell .usemb-login-copy{
  max-width:360px;
}
body.usemb-auth-shell .usemb-login-hero-title{
  margin:0 0 12px;
  font-size:3rem;
  line-height:1.05;
  font-weight:800;
  letter-spacing:-.04em;
  color:#11214d;
}
body.usemb-auth-shell .usemb-login-hero-title span{
  color:#2f7cff;
}
body.usemb-auth-shell .usemb-login-hero-text{
  margin:0;
  font-size:1.22rem;
  line-height:1.75;
  color:#5e6c84;
}
body.usemb-auth-shell .usemb-login-wave{
  display:block;
  width:100%;
  height:110px;
}
body.usemb-auth-shell .usemb-login-panel{
  display:flex;
  align-items:center;
  justify-content:center;
}
body.usemb-auth-shell .usemb-login-card{
  width:100%;
  max-width:575px;
  border-radius:28px;
  padding:52px 44px 36px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(229,233,241,.92);
  box-shadow:0 18px 50px rgba(17,24,39,.08);
}
body.usemb-auth-shell .usemb-login-head{
  margin-bottom:30px;
}
body.usemb-auth-shell .usemb-login-title{
  margin:0 0 10px;
  font-size:2.2rem;
  line-height:1.16;
  font-weight:800;
  letter-spacing:-.03em;
  color:#101828;
}
body.usemb-auth-shell .usemb-login-subtitle{
  margin:0;
  font-size:1.02rem;
  color:#6b7280;
}
body.usemb-auth-shell .usemb-login-form{
  display:flex;
  flex-direction:column;
  gap:20px;
}
body.usemb-auth-shell .usemb-field-group{
  display:flex;
  flex-direction:column;
  gap:9px;
}
body.usemb-auth-shell .usemb-field-group .form-label{
  font-weight:700;
  font-size:.98rem;
  color:#1f2937;
  margin:0;
}
body.usemb-auth-shell .usemb-input-shell{
  position:relative;
}
body.usemb-auth-shell .usemb-input-shell .form-control{
  min-height:64px;
  border-radius:16px!important;
  padding:17px 18px 17px 52px!important;
  font-size:1.03rem;
  border:1px solid rgba(211,218,232,.98)!important;
  background:rgba(255,255,255,.95)!important;
}
body.usemb-auth-shell .usemb-input-shell .form-control:focus{
  border-color:#468cff!important;
  box-shadow:0 0 0 .2rem rgba(70,140,255,.16)!important;
}
body.usemb-auth-shell .usemb-input-icon{
  position:absolute;
  left:18px;
  top:50%;
  transform:translateY(-50%);
  font-size:1.16rem;
  color:#6b7280;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  z-index:2;
}
body.usemb-auth-shell .usemb-input-shell-password .form-control{
  padding-right:56px!important;
}
body.usemb-auth-shell .usemb-login-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:-2px;
}
body.usemb-auth-shell .usemb-login-meta .form-check{
  display:flex;
  align-items:center;
  gap:.62rem;
  margin:0;
}
body.usemb-auth-shell .usemb-login-meta .form-check-input{
  margin:0;
}
body.usemb-auth-shell .usemb-login-meta .form-check-label,
body.usemb-auth-shell .usemb-login-link{
  font-size:.96rem;
  color:#667085;
  text-decoration:none;
}
body.usemb-auth-shell .usemb-login-link:hover,
body.usemb-auth-shell .usemb-login-link:focus{
  color:#2f7cff;
}
body.usemb-auth-shell .usemb-login-submit{
  min-height:66px;
  border:0!important;
  border-radius:16px!important;
  font-size:1.18rem;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.28rem;
  background:linear-gradient(135deg, #5ca6ff 0%, #2f7cff 46%, #2563eb 100%)!important;
  box-shadow:0 14px 32px rgba(47,124,255,.28);
}
body.usemb-auth-shell .usemb-login-submit:hover,
body.usemb-auth-shell .usemb-login-submit:focus{
  background:linear-gradient(135deg, #4d98ff 0%, #2874fb 48%, #1f57de 100%)!important;
  box-shadow:0 18px 40px rgba(47,124,255,.34);
}
body.usemb-auth-shell .usemb-login-divider{
  display:flex;
  align-items:center;
  gap:14px;
  margin:28px 0 22px;
  color:#80889a;
  font-size:1rem;
}
body.usemb-auth-shell .usemb-login-divider::before,
body.usemb-auth-shell .usemb-login-divider::after{
  content:"";
  flex:1;
  height:1px;
  background:rgba(203,213,225,.92);
}
body.usemb-auth-shell .usemb-login-divider span{
  white-space:nowrap;
}
body.usemb-auth-shell .usemb-login-socials{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}
body.usemb-auth-shell .usemb-social-btn{
  min-height:72px;
  border-radius:16px;
  border:1px solid rgba(216,223,235,.98);
  background:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.7rem;
  font-size:1.35rem;
  font-weight:700;
  color:#1f2937;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
body.usemb-auth-shell .usemb-social-btn:hover,
body.usemb-auth-shell .usemb-social-btn:focus{
  transform:translateY(-1px);
  border-color:#b9cbef;
  box-shadow:0 10px 24px rgba(15,23,42,.08);
}
body.usemb-auth-shell .usemb-social-google{
  font-weight:800;
  background:linear-gradient(135deg,#ea4335 0 24%, #fbbc05 24% 48%, #34a853 48% 72%, #4285f4 72% 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  font-size:2rem;
  line-height:1;
}
body.usemb-auth-shell .usemb-social-microsoft{
  width:28px;
  height:28px;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:3px;
}
body.usemb-auth-shell .usemb-social-microsoft span:nth-child(1){background:#f25022}
body.usemb-auth-shell .usemb-social-microsoft span:nth-child(2){background:#7fba00}
body.usemb-auth-shell .usemb-social-microsoft span:nth-child(3){background:#00a4ef}
body.usemb-auth-shell .usemb-social-microsoft span:nth-child(4){background:#ffb900}
body.usemb-auth-shell .usemb-social-microsoft span{border-radius:2px;}
body.usemb-auth-shell .usemb-social-btn-sso{
  font-size:1.05rem;
}
body.usemb-auth-shell .usemb-social-sso{
  font-size:1.5rem;
  color:#475467;
}
body.usemb-auth-shell .usemb-login-register{
  margin-top:24px;
  text-align:center;
  font-size:1rem;
  color:#6b7280;
}
body.usemb-auth-shell .usemb-login-register a{
  text-decoration:none;
  margin-left:.28rem;
  font-weight:700;
}
body.usemb-auth-shell .usemb-login-footer{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:18px;
  padding:18px 12px 4px;
  font-size:.96rem;
  color:#7b8190;
}
body.usemb-auth-shell .usemb-login-footer a{
  color:inherit;
  text-decoration:none;
}
body.usemb-auth-shell .usemb-login-footer a:hover,
body.usemb-auth-shell .usemb-login-footer a:focus{
  color:#2f7cff;
}
body.usemb-auth-shell .usemb-login-footer-divider{
  width:1px;
  height:18px;
  background:rgba(203,213,225,.95);
}

html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-stage{
  background:rgba(6,12,25,.78);
  border-color:rgba(34,47,74,.9);
  box-shadow:0 22px 70px rgba(0,0,0,.38);
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-hero{
  background:linear-gradient(180deg, rgba(6,18,44,.94) 0%, rgba(4,11,31,.96) 100%);
  border-color:rgba(39,54,77,.94);
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-hero::before{
  background:radial-gradient(circle, rgba(38,104,255,.24), rgba(38,104,255,.08) 58%, transparent 74%);
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-hero::after{
  background:
    radial-gradient(150% 85% at 50% 100%, transparent 62%, rgba(74,122,255,.12) 62.6%, transparent 63.25%) 0 0/100% 34px repeat-y,
    radial-gradient(150% 85% at 50% 100%, transparent 72%, rgba(74,122,255,.08) 72.4%, transparent 73.1%) 0 14px/100% 34px repeat-y;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-dots{
  background-image:radial-gradient(circle, rgba(123,169,255,.65) 1.7px, transparent 1.7px);
  opacity:.62;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-hero-title{
  color:#ffffff;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-hero-text{
  color:#c9d4e9;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-card{
  background:rgba(7,15,30,.9);
  border-color:rgba(34,47,74,.95);
  box-shadow:0 18px 50px rgba(0,0,0,.32);
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-title{
  color:#ffffff;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-subtitle,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-field-group .form-label,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-register,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-meta .form-check-label,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-link,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-footer{
  color:#b5c2da!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-input-shell .form-control{
  background:rgba(13,23,41,.94)!important;
  border-color:rgba(38,56,85,.96)!important;
  color:#f8fbff!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-input-shell .form-control::placeholder{
  color:#7f8da6!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-input-icon{
  color:#8ca0c2;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-divider{
  color:#9db0cd;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-divider::before,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-divider::after,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-footer-divider{
  background:rgba(44,61,90,.96);
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-social-btn{
  background:rgba(10,19,36,.94);
  border-color:rgba(37,52,79,.96);
  color:#eef2ff;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-social-btn:hover,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-social-btn:focus{
  border-color:rgba(78,122,208,.92);
  box-shadow:0 12px 26px rgba(0,0,0,.24);
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-social-sso{
  color:#dbe5fb;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .auth-password-toggle{
  color:#a5b4cf!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-footer a{
  color:#b5c2da!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-footer a:hover,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-footer a:focus{
  color:#dce8ff!important;
}

@media (max-width: 1199.98px){
  body.usemb-auth-shell .usemb-login-stage{
    min-height:720px;
    gap:22px;
    padding:28px;
  }
  body.usemb-auth-shell .usemb-login-hero{
    padding:34px;
  }
  body.usemb-auth-shell .usemb-login-card{
    padding:42px 34px 32px;
  }
  body.usemb-auth-shell .usemb-login-hero-title{
    font-size:2.5rem;
  }
}
@media (max-width: 991.98px){
  body.usemb-auth-shell .auth-page-wrapper{
    align-items:flex-start!important;
  }
  body.usemb-auth-shell .usemb-login-stage{
    grid-template-columns:1fr;
    min-height:unset;
  }
  body.usemb-auth-shell .usemb-login-hero{
    min-height:320px;
  }
  body.usemb-auth-shell .usemb-login-panel{
    align-items:stretch;
  }
  body.usemb-auth-shell .usemb-login-card{
    max-width:none;
  }
}
@media (max-width: 767.98px){
  body.usemb-auth-shell .auth-page-wrapper{
    padding:18px 10px 10px!important;
  }
  body.usemb-auth-shell .usemb-login-stage{
    padding:14px;
    gap:14px;
    border-radius:24px;
  }
  body.usemb-auth-shell .usemb-login-hero,
  body.usemb-auth-shell .usemb-login-card{
    border-radius:22px;
  }
  body.usemb-auth-shell .usemb-login-hero{
    padding:24px 22px 28px;
    min-height:280px;
  }
  body.usemb-auth-shell .usemb-login-card{
    padding:28px 20px 24px;
  }
  body.usemb-auth-shell .usemb-login-hero-title{
    font-size:2rem;
  }
  body.usemb-auth-shell .usemb-login-hero-text,
  body.usemb-auth-shell .usemb-login-subtitle{
    font-size:.95rem;
  }
  body.usemb-auth-shell .usemb-login-title{
    font-size:1.7rem;
  }
  body.usemb-auth-shell .usemb-input-shell .form-control,
  body.usemb-auth-shell .usemb-login-submit{
    min-height:58px;
  }
  body.usemb-auth-shell .usemb-login-socials{
    grid-template-columns:1fr;
  }
  body.usemb-auth-shell .usemb-login-meta{
    flex-direction:column;
    align-items:flex-start;
  }
  body.usemb-auth-shell .usemb-login-footer{
    gap:10px;
    font-size:.88rem;
  }
}


/* USEMB V51: auth pages refined to match approved mockup */
body.usemb-auth-shell,
body.usemb-auth-shell input,
body.usemb-auth-shell select,
body.usemb-auth-shell textarea,
body.usemb-auth-shell button{
  font-family:"Poppins",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;
}
body.usemb-auth-shell .auth-page-wrapper{
  padding:28px 14px 16px!important;
}
body.usemb-auth-shell .usemb-login-container{
  max-width:1210px;
}
body.usemb-auth-shell .usemb-login-container-wide{
  max-width:1360px;
}
body.usemb-auth-shell .usemb-login-stage{
  grid-template-columns:minmax(0, 1.06fr) minmax(0, .94fr);
  gap:22px;
  min-height:710px;
  padding:30px;
  border-radius:30px;
  background:#f6f7fb;
  border:1px solid #dfe5f0;
  box-shadow:0 18px 54px rgba(15,23,42,.08);
}
body.usemb-auth-shell .usemb-auth-stage{ min-height:680px; }
body.usemb-auth-shell .usemb-auth-stage-register{ min-height:auto; }
body.usemb-auth-shell .usemb-login-hero{
  border-radius:24px;
  padding:38px 36px 24px;
  border:1px solid #dfe5f0;
  background:linear-gradient(180deg,#ffffff 0%, #f8faff 100%);
}
body.usemb-auth-shell .usemb-login-hero::before{
  inset:78px 92px auto auto;
  width:260px;
  height:260px;
  background:radial-gradient(circle, rgba(50,92,192,.08), rgba(50,92,192,.03) 56%, transparent 70%);
}
body.usemb-auth-shell .usemb-login-hero::after{
  left:-10%;
  right:-10%;
  bottom:-18px;
  height:245px;
  background:
    radial-gradient(165% 80% at 50% 100%, transparent 64%, rgba(66,110,214,.12) 64.4%, transparent 65%) 0 0/100% 28px repeat-y,
    radial-gradient(165% 80% at 50% 100%, transparent 74%, rgba(66,110,214,.08) 74.3%, transparent 75%) 0 12px/100% 28px repeat-y;
}
body.usemb-auth-shell .usemb-login-dots{
  width:52px;
  height:52px;
  background-size:14px 14px;
  background-image:radial-gradient(circle, rgba(106,141,224,.55) 1.4px, transparent 1.4px);
  opacity:.75;
}
body.usemb-auth-shell .usemb-login-hero-inner{
  padding-top:18px;
  justify-content:center;
}
body.usemb-auth-shell .usemb-login-logo{
  max-width:250px;
  max-height:74px;
}
body.usemb-auth-shell .usemb-login-copy{
  max-width:375px;
}
body.usemb-auth-shell .usemb-login-hero-title{
  font-size:3.05rem;
  margin-bottom:14px;
  color:#172554;
}
body.usemb-auth-shell .usemb-login-hero-title span{ color:#3b82f6; }
body.usemb-auth-shell .usemb-login-hero-text{
  font-size:1.14rem;
  line-height:1.7;
  color:#667085;
}
body.usemb-auth-shell .usemb-login-wave{ height:100px; }
body.usemb-auth-shell .usemb-login-card{
  max-width:540px;
  border-radius:24px;
  padding:44px 36px 30px;
  background:#ffffff;
  border:1px solid #dfe5f0;
  box-shadow:none;
}
body.usemb-auth-shell .usemb-auth-card{ max-width:620px; }
body.usemb-auth-shell .usemb-auth-card-register{ max-width:700px; }
body.usemb-auth-shell .usemb-login-head{ margin-bottom:24px; }
body.usemb-auth-shell .usemb-login-title{
  font-size:2rem;
  font-weight:800;
  color:#111827;
}
body.usemb-auth-shell .usemb-login-subtitle{
  font-size:.96rem;
  line-height:1.6;
  color:#6b7280;
}
body.usemb-auth-shell .usemb-login-form,
body.usemb-auth-shell .usemb-auth-form{
  gap:18px;
}
body.usemb-auth-shell .usemb-field-group{ gap:8px; }
body.usemb-auth-shell .usemb-field-group .form-label,
body.usemb-auth-shell .usemb-auth-section-title,
body.usemb-auth-shell .usemb-auth-switch-card .fw-semibold{
  font-size:.95rem;
  font-weight:700;
  color:#374151;
}
body.usemb-auth-shell .usemb-input-shell .form-control,
body.usemb-auth-shell .usemb-auth-card .form-select,
body.usemb-auth-shell .usemb-auth-card textarea.form-control{
  min-height:58px;
  border-radius:15px!important;
  padding:16px 18px 16px 46px!important;
  font-size:.96rem;
  color:#111827!important;
  border:1px solid #ccd6e4!important;
  background:#f8fbff!important;
}
body.usemb-auth-shell .usemb-auth-card textarea.form-control{
  min-height:120px;
  padding-left:18px!important;
  resize:vertical;
}
body.usemb-auth-shell .usemb-auth-card .form-select{ padding-left:18px!important; }
body.usemb-auth-shell .usemb-input-shell .form-control:focus,
body.usemb-auth-shell .usemb-auth-card .form-select:focus,
body.usemb-auth-shell .usemb-auth-card textarea.form-control:focus{
  border-color:#b8c8e4!important;
  box-shadow:0 0 0 .18rem rgba(148,163,184,.18)!important;
}
body.usemb-auth-shell .usemb-input-icon{
  left:16px;
  font-size:1rem;
  color:#7a8699;
}
body.usemb-auth-shell .auth-password-toggle{
  right:.55rem;
  width:2rem;
  height:2rem;
  color:#7a8699;
}
body.usemb-auth-shell .usemb-login-meta{
  padding-top:2px;
}
body.usemb-auth-shell .usemb-login-meta .form-check{
  gap:.55rem;
}
body.usemb-auth-shell .usemb-login-meta .form-check-input,
body.usemb-auth-shell .usemb-auth-switch-card .form-check-input{
  appearance:none;
  -webkit-appearance:none;
  width:18px;
  min-width:18px;
  height:18px;
  margin:0;
  border-radius:5px!important;
  border:1.5px solid #9ca3af!important;
  background:#fff!important;
  box-shadow:none!important;
  cursor:pointer;
  background-position:center;
  background-repeat:no-repeat;
  background-size:11px 11px;
}
body.usemb-auth-shell .usemb-login-meta .form-check-input:checked,
body.usemb-auth-shell .usemb-auth-switch-card .form-check-input:checked{
  background-color:#3b82f6!important;
  border-color:#3b82f6!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.2 11.2 3.4 8.4l-1.1 1.1 3.9 3.9 7-7-1.1-1.1z'/%3E%3C/svg%3E")!important;
}
body.usemb-auth-shell .usemb-login-meta .form-check-label,
body.usemb-auth-shell .usemb-login-link{
  font-size:.92rem;
}
body.usemb-auth-shell .usemb-login-submit{
  min-height:56px;
  border-radius:15px!important;
  font-size:1rem;
  background:linear-gradient(90deg,#5ea0f5 0%, #3b82f6 100%)!important;
  box-shadow:none!important;
}
body.usemb-auth-shell .usemb-login-submit:hover,
body.usemb-auth-shell .usemb-login-submit:focus{
  transform:none;
  filter:none;
  background:linear-gradient(90deg,#4d94ef 0%, #2f76ef 100%)!important;
}
body.usemb-auth-shell .usemb-login-register{
  margin-top:22px;
  font-size:.94rem;
  color:#6b7280;
}
body.usemb-auth-shell .usemb-auth-inline-note{
  padding:14px 16px;
  border-radius:14px;
  background:#f8fbff;
  border:1px solid #d7e2ef;
  color:#5f6b7c;
  font-size:.92rem;
  line-height:1.6;
}
body.usemb-auth-shell .usemb-auth-inline-note-soft{
  background:#fbfcfe;
}
body.usemb-auth-shell .usemb-auth-inline-note-warning{
  border-color:#f3dfaa;
  background:#fff9eb;
}
body.usemb-auth-shell .usemb-auth-switch-card{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  border:1px solid #d9e2ef;
  border-radius:16px;
  background:#fbfcff;
}
body.usemb-auth-shell .usemb-auth-section-block{
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:20px;
  border:1px solid #d9e2ef;
  border-radius:18px;
  background:#fbfcff;
}
body.usemb-auth-shell .usemb-auth-section-head{
  display:flex;
  flex-direction:column;
  gap:4px;
}
body.usemb-auth-shell .usemb-auth-section-head-gap{ margin-top:4px; }
body.usemb-auth-shell .usemb-auth-section-text,
body.usemb-auth-shell .usemb-auth-card .text-muted,
body.usemb-auth-shell .usemb-auth-card .small{
  color:#6b7280!important;
}
body.usemb-auth-shell .usemb-auth-upload-wrap{
  border-radius:15px;
}
body.usemb-auth-shell .usemb-auth-card .mfu-list{
  margin-top:10px;
}
body.usemb-auth-shell .usemb-login-footer{
  padding-top:16px;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell,
html[data-usemb-theme="dark"] body.usemb-auth-shell .auth-page-wrapper{
  background:#07111d!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-stage{
  background:#08111d;
  border-color:#1c2a3d;
  box-shadow:0 18px 54px rgba(0,0,0,.34);
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-hero,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-card{
  background:#0b1420;
  border-color:#1c2a3d;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-hero::before{
  background:radial-gradient(circle, rgba(255,255,255,.05), rgba(255,255,255,.01) 58%, transparent 72%);
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-hero::after{
  background:
    radial-gradient(165% 80% at 50% 100%, transparent 64%, rgba(255,255,255,.05) 64.4%, transparent 65%) 0 0/100% 28px repeat-y,
    radial-gradient(165% 80% at 50% 100%, transparent 74%, rgba(255,255,255,.03) 74.3%, transparent 75%) 0 12px/100% 28px repeat-y;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-dots{
  background-image:radial-gradient(circle, rgba(163,174,194,.45) 1.4px, transparent 1.4px);
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-hero-title,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-title,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-field-group .form-label,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-auth-section-title,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-auth-switch-card .fw-semibold{
  color:#ffffff!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-hero-title span{
  color:#ffffff!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-hero-text,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-subtitle,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-auth-section-text,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-register,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-meta .form-check-label,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-link,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-auth-inline-note,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-auth-card .text-muted,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-auth-card .small,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-footer{
  color:#b7c2d4!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-input-shell .form-control,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-auth-card .form-select,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-auth-card textarea.form-control{
  background:#162338!important;
  border-color:#27364d!important;
  color:#f8fbff!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-input-shell .form-control:focus,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-auth-card .form-select:focus,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-auth-card textarea.form-control:focus{
  border-color:#394b66!important;
  box-shadow:0 0 0 .18rem rgba(148,163,184,.14)!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-input-icon,
html[data-usemb-theme="dark"] body.usemb-auth-shell .auth-password-toggle{
  color:#9daac1!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-meta .form-check-input,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-auth-switch-card .form-check-input{
  background:#101a29!important;
  border-color:#6b7280!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-meta .form-check-input:checked,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-auth-switch-card .form-check-input:checked{
  background-color:#dbe2ea!important;
  border-color:#dbe2ea!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2307111d' d='M6.2 11.2 3.4 8.4l-1.1 1.1 3.9 3.9 7-7-1.1-1.1z'/%3E%3C/svg%3E")!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-submit{
  background:linear-gradient(90deg,#1f2937 0%, #111827 100%)!important;
  color:#ffffff!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-submit:hover,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-submit:focus{
  background:linear-gradient(90deg,#273243 0%, #161e2b 100%)!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-auth-inline-note,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-auth-section-block,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-auth-switch-card{
  background:#0f1a2b;
  border-color:#223046;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-auth-inline-note-warning{
  background:#251f13;
  border-color:#55482a;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-footer-divider{
  background:rgba(131,146,168,.35);
}
@media (max-width: 991.98px){
  body.usemb-auth-shell .usemb-login-stage{ grid-template-columns:1fr; min-height:auto; }
  body.usemb-auth-shell .usemb-login-card,
  body.usemb-auth-shell .usemb-auth-card,
  body.usemb-auth-shell .usemb-auth-card-register{ max-width:none; }
}
@media (max-width: 767.98px){
  body.usemb-auth-shell .auth-page-wrapper{ padding:14px 8px 10px!important; }
  body.usemb-auth-shell .usemb-login-stage{ padding:16px; gap:16px; border-radius:24px; }
  body.usemb-auth-shell .usemb-login-hero,
  body.usemb-auth-shell .usemb-login-card{ border-radius:20px; }
  body.usemb-auth-shell .usemb-login-hero{ padding:26px 22px 22px; }
  body.usemb-auth-shell .usemb-login-card{ padding:28px 20px 24px; }
  body.usemb-auth-shell .usemb-login-hero-title{ font-size:2.35rem; }
  body.usemb-auth-shell .usemb-login-title{ font-size:1.65rem; }
  body.usemb-auth-shell .usemb-login-meta{ flex-direction:column; align-items:flex-start; }
  body.usemb-auth-shell .usemb-login-footer{ gap:10px; font-size:.84rem; }
  body.usemb-auth-shell .usemb-auth-switch-card{ flex-direction:column; }
}


/* USEMB V52: auth layout closer to provided mock, single background box + right sign-in card */
body.usemb-auth-shell .usemb-login-stage{
  position:relative;
  grid-template-columns:minmax(0, 1.1fr) minmax(420px, .9fr);
  gap:24px;
  min-height:690px;
  padding:30px 34px 26px;
  border-radius:28px;
  background:#f8f9fe;
  border:1px solid #dde4f0;
  box-shadow:0 18px 52px rgba(15,23,42,.06);
  overflow:hidden;
}
body.usemb-auth-shell .usemb-login-stage::before{
  content:"";
  position:absolute;
  left:90px;
  top:86px;
  width:360px;
  height:360px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(132,154,217,.18), rgba(132,154,217,.08) 56%, rgba(132,154,217,0) 72%);
  pointer-events:none;
}
body.usemb-auth-shell .usemb-login-stage::after{
  content:"";
  position:absolute;
  left:-2%;
  bottom:-26px;
  width:55%;
  height:280px;
  pointer-events:none;
  background:
    radial-gradient(170% 80% at 50% 100%, transparent 65%, rgba(104,143,231,.18) 65.4%, transparent 66.1%) 0 0/100% 32px repeat-y,
    radial-gradient(170% 80% at 50% 100%, transparent 74%, rgba(104,143,231,.12) 74.35%, transparent 75.05%) 0 12px/100% 32px repeat-y,
    radial-gradient(170% 80% at 50% 100%, transparent 82%, rgba(104,143,231,.08) 82.25%, transparent 83%) 0 24px/100% 32px repeat-y;
  opacity:.95;
}
body.usemb-auth-shell .usemb-login-hero{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  padding:22px 12px 24px 8px;
  background:transparent;
  border:0;
  box-shadow:none;
  min-height:auto;
}
body.usemb-auth-shell .usemb-login-hero::before,
body.usemb-auth-shell .usemb-login-hero::after{
  display:none;
}
body.usemb-auth-shell .usemb-login-dots{
  margin-left:18px;
  margin-top:10px;
  width:58px;
  height:58px;
  opacity:.78;
}
body.usemb-auth-shell .usemb-login-hero-inner{
  padding-top:92px;
  padding-left:18px;
  gap:26px;
  justify-content:flex-start;
}
body.usemb-auth-shell .usemb-login-copy{
  max-width:390px;
}
body.usemb-auth-shell .usemb-login-logo{
  max-width:262px;
  max-height:78px;
}
body.usemb-auth-shell .usemb-login-hero-title{
  font-size:3rem;
  letter-spacing:-.045em;
  margin-bottom:16px;
  color:#1e2f6d;
}
body.usemb-auth-shell .usemb-login-hero-title span{
  color:#4b83ff;
}
body.usemb-auth-shell .usemb-login-hero-text{
  font-size:1rem;
  line-height:1.72;
  color:#6b7280;
  max-width:320px;
}
body.usemb-auth-shell .usemb-login-wave{ display:none; }
body.usemb-auth-shell .usemb-login-panel{
  align-items:center;
  justify-content:center;
  position:relative;
  z-index:1;
}
body.usemb-auth-shell .usemb-login-card{
  max-width:510px;
  width:100%;
  border-radius:26px;
  padding:42px 40px 32px;
  background:#ffffff;
  border:1px solid #dde4f0;
  box-shadow:0 12px 30px rgba(15,23,42,.04);
}
body.usemb-auth-shell .usemb-login-title{
  font-size:2rem;
  letter-spacing:-.03em;
}
body.usemb-auth-shell .usemb-login-subtitle{
  max-width:330px;
  margin:0 auto;
}
body.usemb-auth-shell .usemb-input-shell .form-control,
body.usemb-auth-shell .usemb-auth-card .form-select,
body.usemb-auth-shell .usemb-auth-card textarea.form-control{
  background:#ffffff!important;
  border-color:#d8e0eb!important;
}
body.usemb-auth-shell .usemb-login-meta{
  margin-top:2px;
  gap:14px;
}
body.usemb-auth-shell .usemb-remember-switch{
  display:flex;
  align-items:center;
  gap:.68rem;
  margin:0;
}
body.usemb-auth-shell .usemb-remember-switch .form-check-input{
  width:42px;
  min-width:42px;
  height:24px;
  margin:0;
  border-radius:999px!important;
  cursor:pointer;
  border:1px solid #c7d2e3!important;
  background-color:#dbe5f1!important;
  background-repeat:no-repeat!important;
  background-position:left 3px center!important;
  background-size:18px 18px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='8' fill='white'/%3E%3C/svg%3E")!important;
  transition:all .18s ease!important;
  appearance:none;
  -webkit-appearance:none;
  box-shadow:none!important;
}
body.usemb-auth-shell .usemb-remember-switch .form-check-input:checked{
  border-color:#4f7cff!important;
  background-color:#4f7cff!important;
  background-position:right 3px center!important;
}
body.usemb-auth-shell .usemb-remember-switch .form-check-label{
  margin:0;
}
body.usemb-auth-shell .usemb-login-submit{
  min-height:56px;
  background:linear-gradient(90deg,#61a6ff 0%, #3b82f6 58%, #4f7cff 100%)!important;
  color:#fff!important;
}
body.usemb-auth-shell .usemb-login-submit:hover,
body.usemb-auth-shell .usemb-login-submit:focus{
  background:linear-gradient(90deg,#579eff 0%, #347bf1 58%, #4774f7 100%)!important;
}
body.usemb-auth-shell .usemb-login-footer{
  position:relative;
  z-index:1;
}

html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-stage{
  background:#07111d;
  border-color:#1b2a3f;
  box-shadow:0 18px 52px rgba(0,0,0,.28);
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-stage::before{
  background:radial-gradient(circle, rgba(124,58,237,.22), rgba(124,58,237,.08) 56%, rgba(124,58,237,0) 72%);
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-stage::after{
  background:
    radial-gradient(170% 80% at 50% 100%, transparent 65%, rgba(124,58,237,.12) 65.4%, transparent 66.1%) 0 0/100% 32px repeat-y,
    radial-gradient(170% 80% at 50% 100%, transparent 74%, rgba(124,58,237,.08) 74.35%, transparent 75.05%) 0 12px/100% 32px repeat-y,
    radial-gradient(170% 80% at 50% 100%, transparent 82%, rgba(124,58,237,.05) 82.25%, transparent 83%) 0 24px/100% 32px repeat-y;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-dots{
  background-image:radial-gradient(circle, rgba(167,139,250,.55) 1.4px, transparent 1.4px);
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-card{
  background:#07111d;
  border-color:#23324a;
  box-shadow:none;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-hero-title{ color:#ffffff; }
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-hero-title span{ color:#a78bfa!important; }
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-input-shell .form-control,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-auth-card .form-select,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-auth-card textarea.form-control{
  background:#22314c!important;
  border-color:#2b3b55!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-remember-switch .form-check-input{
  border-color:#5f6880!important;
  background-color:#6b7280!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-remember-switch .form-check-input:checked{
  border-color:#8b5cf6!important;
  background-color:#8b5cf6!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-submit{
  background:linear-gradient(90deg,#7c3aed 0%, #8b5cf6 55%, #a855f7 100%)!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-submit:hover,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-submit:focus{
  background:linear-gradient(90deg,#7034dd 0%, #7e4df0 55%, #9847ef 100%)!important;
}

@media (max-width: 1199.98px){
  body.usemb-auth-shell .usemb-login-stage{
    grid-template-columns:minmax(0,1fr) minmax(380px,.88fr);
    padding:24px 24px 22px;
  }
  body.usemb-auth-shell .usemb-login-hero-inner{
    padding-top:72px;
  }
}
@media (max-width: 991.98px){
  body.usemb-auth-shell .usemb-login-stage{
    grid-template-columns:1fr;
  }
  body.usemb-auth-shell .usemb-login-stage::before{
    left:50%;
    transform:translateX(-50%);
    top:58px;
  }
  body.usemb-auth-shell .usemb-login-stage::after{
    width:100%;
    left:0;
    bottom:32%;
    opacity:.35;
  }
  body.usemb-auth-shell .usemb-login-hero{
    padding-bottom:12px;
  }
  body.usemb-auth-shell .usemb-login-hero-inner{
    padding-top:46px;
  }
}
@media (max-width: 767.98px){
  body.usemb-auth-shell .usemb-login-stage{
    padding:18px 16px 18px;
    border-radius:24px;
  }
  body.usemb-auth-shell .usemb-login-card{
    padding:28px 22px 24px;
    border-radius:22px;
  }
  body.usemb-auth-shell .usemb-login-hero-title{
    font-size:2.3rem;
  }
  body.usemb-auth-shell .usemb-login-meta{
    flex-direction:column;
    align-items:flex-start;
  }
}


/* USEMB V53: auth toggle/button/colors final polish
   - one consistent auth layout in light/dark
   - no check icon inside Remember Me switch
   - primary auth buttons use the same blue theme as dashboard action buttons
*/
body.usemb-auth-shell .usemb-login-stage{
  grid-template-columns:minmax(0, 1.1fr) minmax(420px, .9fr)!important;
  gap:24px!important;
}
body.usemb-auth-shell .usemb-login-hero{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.usemb-auth-shell .usemb-login-hero::before,
body.usemb-auth-shell .usemb-login-hero::after{
  display:none!important;
}
body.usemb-auth-shell .usemb-login-card{
  box-shadow:0 18px 46px rgba(15,23,42,.06)!important;
}

/* Keep the toggle as a clean round switch. No tick/check glyph. */
body.usemb-auth-shell .usemb-remember-switch .form-check-input,
body.usemb-auth-shell .usemb-remember-switch .form-check-input:checked,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-remember-switch .form-check-input,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-remember-switch .form-check-input:checked{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:42px!important;
  min-width:42px!important;
  height:24px!important;
  border-radius:999px!important;
  box-shadow:none!important;
  background-repeat:no-repeat!important;
  background-size:18px 18px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='8' fill='white'/%3E%3C/svg%3E")!important;
}
body.usemb-auth-shell .usemb-remember-switch .form-check-input{
  background-color:#d7deea!important;
  border:1px solid #c6d0df!important;
  background-position:left 3px center!important;
}
body.usemb-auth-shell .usemb-remember-switch .form-check-input:checked{
  background-color:#4f7cff!important;
  border-color:#4f7cff!important;
  background-position:right 3px center!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-remember-switch .form-check-input{
  background-color:#334155!important;
  border-color:#435169!important;
  background-position:left 3px center!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-remember-switch .form-check-input:checked{
  background-color:#4f7cff!important;
  border-color:#4f7cff!important;
  background-position:right 3px center!important;
}

/* Dashboard-style blue primary button in both modes. */
body.usemb-auth-shell .usemb-login-submit,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-submit{
  background:linear-gradient(90deg,#5b9cff 0%, #4f7cff 100%)!important;
  color:#ffffff!important;
  box-shadow:0 12px 28px rgba(79,124,255,.22)!important;
}
body.usemb-auth-shell .usemb-login-submit:hover,
body.usemb-auth-shell .usemb-login-submit:focus,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-submit:hover,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-submit:focus{
  background:linear-gradient(90deg,#4f90f5 0%, #456ff2 100%)!important;
  color:#ffffff!important;
  box-shadow:0 14px 32px rgba(79,124,255,.26)!important;
}

/* Dark mode: same layout as light mode, only dark surfaces/colors. */
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-stage{
  background:#07111d!important;
  border-color:#20304a!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-stage::before{
  background:radial-gradient(circle, rgba(79,124,255,.16), rgba(79,124,255,.055) 56%, rgba(79,124,255,0) 72%)!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-stage::after{
  background:
    radial-gradient(170% 80% at 50% 100%, transparent 65%, rgba(79,124,255,.085) 65.4%, transparent 66.1%) 0 0/100% 32px repeat-y,
    radial-gradient(170% 80% at 50% 100%, transparent 74%, rgba(79,124,255,.055) 74.35%, transparent 75.05%) 0 12px/100% 32px repeat-y,
    radial-gradient(170% 80% at 50% 100%, transparent 82%, rgba(79,124,255,.035) 82.25%, transparent 83%) 0 24px/100% 32px repeat-y!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-hero{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-card{
  background:#07111d!important;
  border-color:#23324a!important;
  box-shadow:0 18px 46px rgba(0,0,0,.18)!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-hero-title{
  color:#ffffff!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-hero-title span{
  color:#6ea0ff!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-dots{
  background-image:radial-gradient(circle, rgba(110,160,255,.50) 1.4px, transparent 1.4px)!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-link,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-register a,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-footer a{
  color:#9fbcff!important;
}
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-link:hover,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-register a:hover,
html[data-usemb-theme="dark"] body.usemb-auth-shell .usemb-login-footer a:hover{
  color:#c4d6ff!important;
}


/* USEMB V54: distinguish new pending vendor files from already approved deliverables */
body.admin-layout .usemb-v48-attachment-card.usemb-gmail-deliverable-tile-ref.is-pending-review{
  border-color:#f59e0b!important;
  background:linear-gradient(180deg, rgba(245,158,11,.10), rgba(245,158,11,.04))!important;
  box-shadow:0 0 0 1px rgba(245,158,11,.22), 0 10px 26px rgba(245,158,11,.08)!important;
}
body.admin-layout .usemb-v48-attachment-card.usemb-gmail-deliverable-tile-ref.is-approved-release{
  border-color:rgba(34,197,94,.42)!important;
  background:linear-gradient(180deg, rgba(34,197,94,.075), rgba(34,197,94,.025))!important;
}
body.admin-layout .usemb-v48-attachment-card.usemb-gmail-deliverable-tile-ref.is-held-release{
  border-color:rgba(244,63,94,.48)!important;
  background:linear-gradient(180deg, rgba(244,63,94,.09), rgba(244,63,94,.025))!important;
}
body.admin-layout .usemb-release-status-pill{
  position:absolute;
  top:8px;
  right:8px;
  z-index:4;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  max-width:calc(100% - 44px);
  padding:4px 8px;
  border-radius:999px;
  font-size:10px;
  line-height:1;
  font-weight:800;
  letter-spacing:.02em;
  white-space:nowrap;
  pointer-events:none;
  backdrop-filter:blur(8px);
}
body.admin-layout .usemb-release-status-pill.is-pending-review{
  color:#92400e;
  background:rgba(255,247,237,.94);
  border:1px solid rgba(245,158,11,.46);
}
body.admin-layout .usemb-release-status-pill.is-approved-release{
  color:#047857;
  background:rgba(236,253,245,.94);
  border:1px solid rgba(34,197,94,.38);
}
body.admin-layout .usemb-release-status-pill.is-held-release{
  color:#be123c;
  background:rgba(255,241,242,.94);
  border:1px solid rgba(244,63,94,.38);
}
html[data-usemb-theme="dark"] body.admin-layout .usemb-release-status-pill.is-pending-review{
  color:#fbbf24;
  background:rgba(68,45,13,.88);
  border-color:rgba(245,158,11,.42);
}
html[data-usemb-theme="dark"] body.admin-layout .usemb-release-status-pill.is-approved-release{
  color:#86efac;
  background:rgba(8,47,35,.88);
  border-color:rgba(34,197,94,.32);
}
html[data-usemb-theme="dark"] body.admin-layout .usemb-release-status-pill.is-held-release{
  color:#fda4af;
  background:rgba(76,5,25,.88);
  border-color:rgba(244,63,94,.32);
}
body.admin-layout .usemb-message-empty.is-error{
  color:#f43f5e!important;
}


/* USEMB V56: invoice dropdown overlap + messages older-page loader */
.usemb-invoice-table-card-ref,
.usemb-invoice-table-card-ref .card-body,
.usemb-invoice-table-card-ref .table-responsive,
#invoiceHeadersTable,
#invoiceHeadersTable tbody,
#invoiceHeadersTable tr,
#invoiceHeadersTable td{
  overflow:visible!important;
}
.usemb-invoice-table-card-ref{
  position:relative;
  z-index:20;
}
#invoiceHeadersTable .invoice-actions-dropdown{
  position:relative;
}
#invoiceHeadersTable .invoice-actions-menu,
#invoiceHeadersTable .invoice-actions-dropdown .dropdown-menu.show{
  z-index:9999!important;
  min-width:190px;
}
.usemb-messenger-body.is-loading-older::before{
  content:"Loading older messages...";
  position:sticky;
  top:8px;
  z-index:5;
  display:block;
  width:max-content;
  max-width:calc(100% - 24px);
  margin:0 auto 8px;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  background:rgba(15,23,42,.82);
  color:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
}
html[data-usemb-theme="light"] .usemb-messenger-body.is-loading-older::before{
  background:rgba(255,255,255,.92);
  color:#0f172a;
  border:1px solid rgba(148,163,184,.35);
}


/* USEMB V57: harden invoice action dropdown overflow on customer + vendor invoices */
.usemb-invoice-table-card-ref,
.usemb-invoice-table-card-ref > .card-body,
.usemb-invoice-table-card-ref .card-body,
.usemb-invoice-table-card-ref .table-responsive,
.usemb-invoice-table-card-ref table,
.usemb-invoice-table-card-ref thead,
.usemb-invoice-table-card-ref tbody,
.usemb-invoice-table-card-ref tr,
.usemb-invoice-table-card-ref td{
  overflow:visible!important;
}
.usemb-invoice-table-card-ref{
  position:relative!important;
  z-index:30!important;
}
.usemb-invoice-table-card-ref .invoice-actions-dropdown{
  position:relative!important;
}
.usemb-invoice-table-card-ref .invoice-actions-menu,
.usemb-invoice-table-card-ref .invoice-actions-dropdown .dropdown-menu.show{
  z-index:10000!important;
  min-width:190px;
}


/* USEMB V58: portal invoice dropdown menu so customer/vendor invoice actions never clip inside grids */
.usemb-dropdown-portal-menu{
  position:fixed!important;
  z-index:20000!important;
  transform:none!important;
  will-change:top,left;
}
.usemb-dropdown-portal-menu.show{
  display:block!important;
}

/* USEMB V59: invoice detail server-side orders pagination */
.usemb-invoice-detail-orders-card-ref .card-header{
  padding:1rem 1.15rem;
}
.usemb-invoice-detail-page-size-ref .form-select{
  min-width:120px;
}
.usemb-invoice-detail-pager-ref .btn.disabled,
.usemb-invoice-detail-pager-ref .btn:disabled{
  pointer-events:none;
  opacity:.55;
}
html[data-usemb-theme="dark"] .usemb-invoice-detail-pager-ref{
  border-color:rgba(148,163,184,.18)!important;
}


/* USEMB V60: invoice detail pagination compact UI */
.usemb-invoice-detail-pager-ref{
  padding:14px 16px!important;
}
.usemb-invoice-detail-pager-pages-ref{
  gap:7px!important;
}
.usemb-invoice-detail-pager-ref .btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  width:auto!important;
  max-width:none!important;
  min-width:34px!important;
  height:32px!important;
  padding:0 .82rem!important;
  border-radius:9px!important;
  line-height:1!important;
  font-size:13px!important;
  font-weight:800!important;
}
.usemb-invoice-detail-pager-ref .usemb-pager-page-ref{
  width:34px!important;
  min-width:34px!important;
  padding:0!important;
}
.usemb-invoice-detail-pager-ref .usemb-pager-page-ref.active,
.usemb-invoice-detail-pager-ref .usemb-pager-page-ref.btn-primary{
  background:#4f7cff!important;
  border-color:#4f7cff!important;
  color:#fff!important;
}
.usemb-invoice-detail-pager-ref .btn-outline-secondary{
  background:transparent!important;
}
html[data-usemb-theme="dark"] .usemb-invoice-detail-pager-ref .btn-outline-secondary{
  border-color:rgba(148,163,184,.25)!important;
  color:#eaf2ff!important;
}
html[data-usemb-theme="light"] .usemb-invoice-detail-pager-ref .btn-outline-secondary{
  border-color:#d8e0eb!important;
  color:#1f2937!important;
}


/* USEMB V61: fast invoice details ajax pager UI */
.usemb-invoice-detail-pager-ref .usemb-invoice-detail-pager-pages-ref,
.usemb-invoice-modal-pager-ref .usemb-invoice-modal-pager-pages-ref{
  gap:7px!important;
}
.usemb-invoice-detail-pager-ref .usemb-pager-page-ref,
.usemb-invoice-modal-pager-ref .usemb-pager-page-ref{
  width:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  height:32px!important;
  padding:0!important;
  border-radius:8px!important;
  flex:0 0 34px!important;
}
.usemb-invoice-detail-pager-ref .usemb-pager-nav-ref,
.usemb-invoice-modal-pager-ref .usemb-pager-nav-ref{
  width:auto!important;
  min-width:78px!important;
  max-width:none!important;
  height:32px!important;
  padding:0 .82rem!important;
  border-radius:8px!important;
  flex:0 0 auto!important;
}
.usemb-invoice-detail-pager-ref .btn,
.usemb-invoice-modal-pager-ref .btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1!important;
  font-size:13px!important;
  font-weight:800!important;
  box-shadow:none!important;
}
.usemb-invoice-detail-pager-ref .active,
.usemb-invoice-modal-pager-ref .active{
  background:#4f7cff!important;
  border-color:#4f7cff!important;
  color:#fff!important;
}
#invoiceDetailOrderRows.is-loading,
#invoiceDetailRows.is-loading{
  opacity:.55;
  pointer-events:none;
}
.usemb-invoice-modal-pager-ref .form-select{
  min-width:108px;
  height:32px;
  padding-top:2px;
  padding-bottom:2px;
}
html[data-usemb-theme="dark"] .usemb-invoice-modal-pager-ref,
html[data-usemb-theme="dark"] .usemb-invoice-detail-pager-ref{
  border-color:rgba(148,163,184,.18)!important;
}


/* USEMB V62: invoice details modal scroll fix */
#invoiceDetailsModal{
  --bs-modal-margin: 1rem;
}
#invoiceDetailsModal .modal-dialog{
  height: calc(100vh - 2rem)!important;
  max-height: calc(100vh - 2rem)!important;
  display:flex!important;
  align-items:stretch!important;
}
#invoiceDetailsModal .modal-content,
#invoiceDetailsModal .usemb-invoice-modal-ref{
  max-height: calc(100vh - 2rem)!important;
  height:100%!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
#invoiceDetailsModal .modal-header{
  flex:0 0 auto!important;
}
#invoiceDetailsModal .usemb-invoice-details-modal-body-ref{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-bottom:18px!important;
}
#invoiceDetailsModal .usemb-invoice-modal-orders-wrap-ref{
  max-height:none!important;
  overflow:visible!important;
}
#invoiceDetailsModal #invoiceDetailRows.is-loading{
  opacity:1!important;
}
#invoiceDetailsModal .usemb-invoice-modal-pager-ref{
  position:sticky;
  bottom:0;
  z-index:4;
  padding:10px 0 0;
  backdrop-filter: blur(10px);
}
html[data-usemb-theme="dark"] #invoiceDetailsModal .usemb-invoice-modal-pager-ref{
  background:linear-gradient(to bottom, rgba(15,23,42,0), rgba(15,23,42,.96) 35%);
}
html[data-usemb-theme="light"] #invoiceDetailsModal .usemb-invoice-modal-pager-ref{
  background:linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.96) 35%);
}


/* USEMB V63: force visible scroll on invoice details modal */
#invoiceDetailsModal.modal{
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
}
#invoiceDetailsModal .modal-dialog{
  margin-top:1rem!important;
  margin-bottom:1rem!important;
  max-height:calc(100vh - 2rem)!important;
}
#invoiceDetailsModal .modal-content.usemb-invoice-modal-ref{
  max-height:calc(100vh - 2rem)!important;
  overflow:hidden!important;
}
#invoiceDetailsModal .modal-body.usemb-invoice-details-modal-body-ref{
  display:block!important;
  max-height:calc(100vh - 150px)!important;
  overflow-y:scroll!important;
  overflow-x:hidden!important;
  scrollbar-width:thin!important;
  overscroll-behavior:contain!important;
}
#invoiceDetailsModal .modal-body.usemb-invoice-details-modal-body-ref::-webkit-scrollbar{
  width:10px!important;
}
#invoiceDetailsModal .modal-body.usemb-invoice-details-modal-body-ref::-webkit-scrollbar-track{
  background:rgba(148,163,184,.12)!important;
  border-radius:999px!important;
}
#invoiceDetailsModal .modal-body.usemb-invoice-details-modal-body-ref::-webkit-scrollbar-thumb{
  background:rgba(148,163,184,.55)!important;
  border-radius:999px!important;
}
#invoiceDetailsModal .modal-body.usemb-invoice-details-modal-body-ref::-webkit-scrollbar-thumb:hover{
  background:rgba(148,163,184,.75)!important;
}


/* USEMB V67: portal urgent badge polish */
.usemb-client-page .usemb-urgent-badge,
.usemb-client-page .usemb-detail-urgent-badge-ref,
.usemb-vendor-page .usemb-urgent-badge,
.usemb-vendor-page .usemb-detail-urgent-badge-ref,
.usemb-sales-page .usemb-urgent-badge,
.usemb-sales-page .usemb-detail-urgent-badge-ref{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:20px!important;
  min-width:auto!important;
  padding:0 9px!important;
  margin-left:7px!important;
  border-radius:999px!important;
  border:1px solid rgba(244,63,94,.36)!important;
  background:rgba(244,63,94,.12)!important;
  color:#fb7185!important;
  font-size:10px!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:.015em!important;
  vertical-align:middle!important;
  box-shadow:none!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
.usemb-client-page .usemb-order-title-line,
.usemb-vendor-page .usemb-order-title-line,
.usemb-sales-page .usemb-order-title-line{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  flex-wrap:wrap!important;
}
.usemb-client-page .usemb-order-title-line .usemb-urgent-badge,
.usemb-client-page .usemb-order-title-line .usemb-detail-urgent-badge-ref,
.usemb-vendor-page .usemb-order-title-line .usemb-urgent-badge,
.usemb-vendor-page .usemb-order-title-line .usemb-detail-urgent-badge-ref,
.usemb-sales-page .usemb-order-title-line .usemb-urgent-badge,
.usemb-sales-page .usemb-order-title-line .usemb-detail-urgent-badge-ref{
  margin-left:0!important;
}
html[data-usemb-theme="light"] .usemb-client-page .usemb-urgent-badge,
html[data-usemb-theme="light"] .usemb-client-page .usemb-detail-urgent-badge-ref,
html[data-usemb-theme="light"] .usemb-vendor-page .usemb-urgent-badge,
html[data-usemb-theme="light"] .usemb-vendor-page .usemb-detail-urgent-badge-ref,
html[data-usemb-theme="light"] .usemb-sales-page .usemb-urgent-badge,
html[data-usemb-theme="light"] .usemb-sales-page .usemb-detail-urgent-badge-ref{
  background:#fff1f2!important;
  border-color:#fecdd3!important;
  color:#e11d48!important;
}


/* USEMB V69: delivered file upload batches */
.usemb-v69-deliverable-batch-ref{
  margin-top:14px!important;
}
.usemb-v69-deliverable-batch-ref:first-child{
  margin-top:0!important;
}
.usemb-v69-deliverable-batch-head-ref{
  align-items:flex-start!important;
  gap:14px!important;
}
.usemb-v69-batch-right-ref{
  margin-left:auto;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
  min-width:min(100%, 520px);
}
.usemb-v69-batch-time-ref{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.01em;
  color:#93a4bd;
  line-height:1.2;
  text-align:right;
}
.usemb-v69-batch-time-ref::before{
  content:"\F293";
  font-family:"bootstrap-icons";
  font-size:12px;
  opacity:.9;
}
.usemb-v69-batch-actions-ref{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:wrap!important;
  gap:8px!important;
}
.usemb-gmail-qc-btn-ref.is-download{
  border:1px solid rgba(59,130,246,.45)!important;
  background:rgba(59,130,246,.10)!important;
  color:#9ec5ff!important;
  text-decoration:none!important;
}
.usemb-gmail-qc-btn-ref.is-download:hover{
  background:rgba(59,130,246,.18)!important;
  border-color:rgba(59,130,246,.68)!important;
  color:#fff!important;
}
html[data-usemb-theme="light"] .usemb-v69-batch-time-ref{
  color:#64748b;
}
html[data-usemb-theme="light"] .usemb-gmail-qc-btn-ref.is-download{
  background:#eff6ff!important;
  border-color:#bfdbfe!important;
  color:#1d4ed8!important;
}
html[data-usemb-theme="light"] .usemb-gmail-qc-btn-ref.is-download:hover{
  background:#dbeafe!important;
  border-color:#93c5fd!important;
  color:#1e40af!important;
}
@media (max-width: 768px){
  .usemb-v69-deliverable-batch-head-ref{
    flex-direction:column!important;
  }
  .usemb-v69-batch-right-ref{
    width:100%;
    align-items:flex-start;
  }
  .usemb-v69-batch-time-ref{
    text-align:left;
  }
  .usemb-v69-batch-actions-ref{
    justify-content:flex-start!important;
  }
}


/* USEMB V70: delivered batch header spacing/date size polish */
body.admin-layout.route-admin-orders-details .usemb-v69-batch-time-ref,
body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-v69-batch-time-ref{
  font-size:12px!important;
  font-weight:800!important;
  letter-spacing:.01em!important;
  line-height:1.2!important;
  color:#eaf2ff!important;
}
body.admin-layout.route-admin-orders-details .usemb-v69-batch-time-ref::before,
body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-v69-batch-time-ref::before{
  font-size:12px!important;
}
body.admin-layout.route-admin-orders-details .usemb-v69-batch-actions-ref,
body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-v69-batch-actions-ref{
  margin-top:10px!important;
}
html[data-usemb-theme="light"] body.admin-layout.route-admin-orders-details .usemb-v69-batch-time-ref,
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-v69-batch-time-ref{
  color:#475569!important;
}


/* USEMB V72: delivered batch Download all button icon-only */
body.admin-layout.route-admin-orders-details .usemb-v72-download-all-icon-ref,
body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-v72-download-all-icon-ref{
  width:32px!important;
  min-width:32px!important;
  max-width:32px!important;
  height:30px!important;
  padding:0!important;
  justify-content:center!important;
  gap:0!important;
}
body.admin-layout.route-admin-orders-details .usemb-v72-download-all-icon-ref i,
body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-v72-download-all-icon-ref i{
  margin:0!important;
  font-size:14px!important;
  line-height:1!important;
}


/* USEMB V73: preserve multiline descriptions + clickable quotation info */
.usemb-order-description-lines-ref,
.usemb-gmail-body-ref,
.usemb-gmail-private-note-ref span,
.usemb-comment-text-ref{
  white-space:pre-wrap!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
.usemb-quotation-link-ref{
  border:0!important;
  cursor:pointer!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  line-height:1!important;
  text-decoration:none!important;
}
.usemb-quotation-link-ref:hover{
  filter:brightness(1.08);
  text-decoration:underline!important;
}
.usemb-quotation-info-modal-ref{
  text-align:left;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.usemb-quotation-info-row-ref{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  border-bottom:1px solid rgba(148,163,184,.18);
  padding-bottom:8px;
}
.usemb-quotation-info-row-ref span{
  color:#64748b;
  font-weight:700;
  font-size:12px;
}
.usemb-quotation-info-row-ref strong{
  text-align:right;
  font-size:13px;
}
.usemb-quotation-info-label-ref{
  margin-top:6px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.02em;
  color:#64748b;
  text-transform:uppercase;
}
.usemb-quotation-note-box-ref{
  width:100%;
  min-height:88px;
  max-height:320px;
  overflow:auto;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.24);
  background:rgba(15,23,42,.05);
  color:inherit;
  font-weight:600;
  line-height:1.55;
}
html[data-usemb-theme="dark"] .usemb-quotation-note-box-ref{
  background:rgba(15,23,42,.74);
  border-color:rgba(148,163,184,.20);
  color:#eaf2ff;
}


/* USEMB V74: Admin Orders grid quotation text link */
.usemb-grid-quotation-link-ref{
  border:0!important;
  background:transparent!important;
  padding:0!important;
  margin:3px 0 0!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:3px!important;
  font:inherit!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1.25!important;
  cursor:pointer!important;
  text-align:left!important;
}
.usemb-grid-quotation-link-ref:hover{
  text-decoration:underline!important;
  filter:brightness(1.12);
}
.usemb-grid-quotation-link-ref:focus-visible{
  outline:2px solid rgba(79,124,255,.55)!important;
  outline-offset:2px!important;
  border-radius:6px!important;
}


/* USEMB V77: dropdown close polish, global modal scroll, invoice image card, batch download position */
body.admin-layout .modal.show,
body.admin-layout.usemb-white-shell .modal.show{
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
}
body.admin-layout .modal.show .modal-dialog,
body.admin-layout.usemb-white-shell .modal.show .modal-dialog{
  max-height:calc(100vh - 1.5rem)!important;
  margin-top:.75rem!important;
  margin-bottom:.75rem!important;
}
body.admin-layout .modal.show .modal-content,
body.admin-layout.usemb-white-shell .modal.show .modal-content{
  max-height:calc(100vh - 1.5rem)!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
body.admin-layout .modal.show .modal-header,
body.admin-layout .modal.show .modal-footer,
body.admin-layout.usemb-white-shell .modal.show .modal-header,
body.admin-layout.usemb-white-shell .modal.show .modal-footer{
  flex:0 0 auto!important;
}
body.admin-layout .modal.show .modal-body,
body.admin-layout.usemb-white-shell .modal.show .modal-body{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-width:thin!important;
}
body.admin-layout .modal.show .modal-body::-webkit-scrollbar,
body.admin-layout.usemb-white-shell .modal.show .modal-body::-webkit-scrollbar{
  width:10px!important;
}
body.admin-layout .modal.show .modal-body::-webkit-scrollbar-thumb,
body.admin-layout.usemb-white-shell .modal.show .modal-body::-webkit-scrollbar-thumb{
  background:rgba(148,163,184,.55)!important;
  border-radius:999px!important;
}
body.admin-layout .modal.show .modal-body::-webkit-scrollbar-track,
body.admin-layout.usemb-white-shell .modal.show .modal-body::-webkit-scrollbar-track{
  background:rgba(148,163,184,.12)!important;
  border-radius:999px!important;
}
.usemb-v77-invoice-image-card-ref{
  width:min(190px,100%);
  margin:18px 0 4px 70px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:16px;
  background:rgba(15,23,42,.26);
  padding:10px;
  box-shadow:0 12px 28px rgba(2,6,23,.10);
}
.usemb-v77-invoice-image-head-ref{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
}
.usemb-v77-invoice-image-head-ref strong{
  display:block;
  font-size:12px;
  font-weight:900;
  color:#eaf2ff;
}
.usemb-v77-invoice-image-head-ref span{
  display:block;
  font-size:10px;
  font-weight:700;
  color:#8fa3bd;
  margin-top:1px;
}
.usemb-v77-invoice-image-thumb-ref{
  display:block;
  width:100%;
  height:96px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(59,130,246,.35);
  background:rgba(2,6,23,.42);
}
.usemb-v77-invoice-image-thumb-ref img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.usemb-v77-invoice-image-thumb-ref:hover{
  border-color:rgba(79,124,255,.78);
  box-shadow:0 0 0 3px rgba(79,124,255,.14);
}
body.admin-layout.route-admin-orders-details .usemb-v69-batch-actions-ref,
body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-v69-batch-actions-ref{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
}
body.admin-layout.route-admin-orders-details .usemb-v69-batch-actions-ref .usemb-v72-download-all-icon-ref,
body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-v69-batch-actions-ref .usemb-v72-download-all-icon-ref{
  order:-20!important;
  margin-right:4px!important;
}
html[data-usemb-theme="light"] .usemb-v77-invoice-image-card-ref{
  background:rgba(255,255,255,.78);
  border-color:rgba(148,163,184,.32);
}
html[data-usemb-theme="light"] .usemb-v77-invoice-image-head-ref strong{
  color:#0f172a;
}
html[data-usemb-theme="light"] .usemb-v77-invoice-image-head-ref span{
  color:#64748b;
}
@media (max-width: 768px){
  .usemb-v77-invoice-image-card-ref{
    margin-left:0;
    width:170px;
  }
}


/* USEMB V77: SweetAlert modal scroll safety */
.swal2-container .swal2-popup{
  max-height:calc(100vh - 1.5rem)!important;
  overflow:hidden!important;
}
.swal2-container .swal2-html-container{
  max-height:calc(100vh - 220px)!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-width:thin!important;
}
.swal2-container .swal2-html-container::-webkit-scrollbar{
  width:10px!important;
}
.swal2-container .swal2-html-container::-webkit-scrollbar-thumb{
  background:rgba(148,163,184,.55)!important;
  border-radius:999px!important;
}


/* USEMB V78: move invoice image into order header + reliable form-modal scrolling */
body.admin-layout.route-admin-orders-details .usemb-gmail-thread-title-ref,
body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-gmail-thread-title-ref{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:18px!important;
  min-height:86px!important;
}
body.admin-layout.route-admin-orders-details .usemb-v77-invoice-image-card-ref,
body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-v77-invoice-image-card-ref{
  display:none!important;
}
.usemb-v78-invoice-image-header-slot-ref{
  flex:0 0 122px;
  width:122px;
  min-height:70px;
  margin-left:auto;
  border:1px solid rgba(148,163,184,.24);
  border-radius:12px;
  background:rgba(15,23,42,.30);
  padding:7px;
  box-shadow:0 10px 22px rgba(2,6,23,.12);
}
.usemb-v78-invoice-image-label-ref{
  font-size:10px;
  font-weight:900;
  color:#eaf2ff;
  line-height:1.1;
  margin-bottom:5px;
  white-space:nowrap;
}
.usemb-v78-invoice-image-thumb-ref{
  display:block;
  width:100%;
  height:46px;
  border-radius:9px;
  overflow:hidden;
  border:1px solid rgba(59,130,246,.36);
  background:rgba(2,6,23,.42);
}
.usemb-v78-invoice-image-thumb-ref img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.usemb-v78-invoice-image-thumb-ref:hover{
  border-color:rgba(79,124,255,.82);
  box-shadow:0 0 0 3px rgba(79,124,255,.13);
}
html[data-usemb-theme="light"] .usemb-v78-invoice-image-header-slot-ref{
  background:rgba(255,255,255,.82);
  border-color:rgba(148,163,184,.32);
}
html[data-usemb-theme="light"] .usemb-v78-invoice-image-label-ref{
  color:#0f172a;
}
body.admin-layout .modal.show .modal-content > form,
body.admin-layout.usemb-white-shell .modal.show .modal-content > form{
  flex:1 1 auto!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
body.admin-layout #createUserModal.modal.show .modal-dialog,
body.admin-layout #editUserModal.modal.show .modal-dialog,
body.admin-layout.usemb-white-shell #createUserModal.modal.show .modal-dialog,
body.admin-layout.usemb-white-shell #editUserModal.modal.show .modal-dialog{
  max-height:calc(100vh - 1rem)!important;
  margin-top:.5rem!important;
  margin-bottom:.5rem!important;
  align-items:stretch!important;
}
body.admin-layout #createUserModal.modal.show .modal-content,
body.admin-layout #editUserModal.modal.show .modal-content,
body.admin-layout.usemb-white-shell #createUserModal.modal.show .modal-content,
body.admin-layout.usemb-white-shell #editUserModal.modal.show .modal-content{
  max-height:calc(100vh - 1rem)!important;
}
body.admin-layout #createUserModal.modal.show .modal-body,
body.admin-layout #editUserModal.modal.show .modal-body,
body.admin-layout.usemb-white-shell #createUserModal.modal.show .modal-body,
body.admin-layout.usemb-white-shell #editUserModal.modal.show .modal-body{
  max-height:calc(100vh - 178px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-bottom:18px!important;
}
body.admin-layout #createUserModal.modal.show .modal-footer,
body.admin-layout #editUserModal.modal.show .modal-footer,
body.admin-layout.usemb-white-shell #createUserModal.modal.show .modal-footer,
body.admin-layout.usemb-white-shell #editUserModal.modal.show .modal-footer{
  position:sticky!important;
  bottom:0!important;
  z-index:3!important;
  background:inherit!important;
  border-top:1px solid rgba(148,163,184,.18)!important;
}
@media (max-width: 768px){
  body.admin-layout.route-admin-orders-details .usemb-gmail-thread-title-ref,
  body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-gmail-thread-title-ref{
    align-items:flex-start!important;
    gap:10px!important;
  }
  .usemb-v78-invoice-image-header-slot-ref{
    flex-basis:104px;
    width:104px;
    padding:6px;
  }
  .usemb-v78-invoice-image-thumb-ref{
    height:40px;
  }
}


/* USEMB V79: Users modal dark border visibility + primary footer buttons */
body.admin-layout.usemb-white-shell #createUserModal .modal-dialog,
body.admin-layout.usemb-white-shell #editUserModal .modal-dialog,
body.admin-layout #createUserModal .modal-dialog,
body.admin-layout #editUserModal .modal-dialog{
  max-width: 1040px!important;
}
body.admin-layout.usemb-white-shell #createUserModal .modal-content.usemb-users-modal-ref,
body.admin-layout.usemb-white-shell #editUserModal .modal-content.usemb-users-modal-ref,
body.admin-layout #createUserModal .modal-content.usemb-users-modal-ref,
body.admin-layout #editUserModal .modal-content.usemb-users-modal-ref{
  border:1px solid rgba(96,165,250,.34)!important;
  border-radius:20px!important;
  background:#0f172a!important;
  box-shadow:0 32px 95px rgba(0,0,0,.62), 0 0 0 1px rgba(148,163,184,.10), inset 0 1px 0 rgba(255,255,255,.05)!important;
  overflow:hidden!important;
}
body.admin-layout.usemb-white-shell #createUserModal .modal-header,
body.admin-layout.usemb-white-shell #editUserModal .modal-header,
body.admin-layout #createUserModal .modal-header,
body.admin-layout #editUserModal .modal-header{
  border-bottom:1px solid rgba(148,163,184,.24)!important;
  background:linear-gradient(180deg, rgba(30,41,59,.50), rgba(15,23,42,.96))!important;
}
body.admin-layout.usemb-white-shell #createUserModal .modal-footer,
body.admin-layout.usemb-white-shell #editUserModal .modal-footer,
body.admin-layout #createUserModal .modal-footer,
body.admin-layout #editUserModal .modal-footer{
  border-top:1px solid rgba(148,163,184,.24)!important;
  background:rgba(15,23,42,.98)!important;
  box-shadow:0 -14px 32px rgba(2,6,23,.34)!important;
}
body.admin-layout.usemb-white-shell #createUserModal .modal-body,
body.admin-layout.usemb-white-shell #editUserModal .modal-body,
body.admin-layout #createUserModal .modal-body,
body.admin-layout #editUserModal .modal-body{
  background:#0f172a!important;
}

body.admin-layout.usemb-white-shell #createUserModal .modal-backdrop.show,
body.admin-layout.usemb-white-shell #editUserModal .modal-backdrop.show,
body.admin-layout #createUserModal.modal.show ~ .modal-backdrop.show,
body.admin-layout #editUserModal.modal.show ~ .modal-backdrop.show{
  opacity:.70!important;
  background:#020617!important;
}
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell #createUserModal .modal-content.usemb-users-modal-ref,
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell #editUserModal .modal-content.usemb-users-modal-ref{
  background:#fff!important;
  border-color:rgba(148,163,184,.32)!important;
  box-shadow:0 30px 90px rgba(15,23,42,.22), 0 0 0 1px rgba(15,23,42,.05)!important;
}
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell #createUserModal .modal-header,
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell #editUserModal .modal-header{
  background:#fff!important;
  border-bottom-color:#e5e7ec!important;
}
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell #createUserModal .modal-body,
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell #editUserModal .modal-body,
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell #createUserModal .modal-footer,
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell #editUserModal .modal-footer{
  background:#fff!important;
}

/* USEMB V79: darker modal backdrop only in dark theme */
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell .modal-backdrop.show,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell .modal-backdrop.show,
html[data-usemb-theme="dark"] body.admin-layout .modal-backdrop.show,
html[data-bs-theme="dark"] body.admin-layout .modal-backdrop.show{
  opacity:.72!important;
  background:#020617!important;
}
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell .modal-backdrop.show,
html[data-bs-theme="light"] body.admin-layout.usemb-white-shell .modal-backdrop.show{
  opacity:.48!important;
  background:#000!important;
}


/* USEMB V81: Users modal buttons use existing Orders/top-action button rules */
body.admin-layout #createUserModal .usemb-form-actions-ref,
body.admin-layout #editUserModal .usemb-form-actions-ref,
body.admin-layout.usemb-white-shell #createUserModal .usemb-form-actions-ref,
body.admin-layout.usemb-white-shell #editUserModal .usemb-form-actions-ref{
  height:38px!important;
  min-height:38px!important;
  padding:4px!important;
  gap:0!important;
  border-radius:14px!important;
}
body.admin-layout #createUserModal .usemb-form-actions-ref .btn,
body.admin-layout #editUserModal .usemb-form-actions-ref .btn,
body.admin-layout.usemb-white-shell #createUserModal .usemb-form-actions-ref .btn,
body.admin-layout.usemb-white-shell #editUserModal .usemb-form-actions-ref .btn{
  height:30px!important;
  min-height:30px!important;
  min-width:124px!important;
  padding:0 16px!important;
  margin:0!important;
  border-radius:10px!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:600!important;
  box-shadow:none!important;
  transform:none!important;
}
body.admin-layout #createUserModal .usemb-form-actions-ref .btn + .btn,
body.admin-layout #editUserModal .usemb-form-actions-ref .btn + .btn,
body.admin-layout.usemb-white-shell #createUserModal .usemb-form-actions-ref .btn + .btn,
body.admin-layout.usemb-white-shell #editUserModal .usemb-form-actions-ref .btn + .btn{
  margin-left:2px!important;
}
body.admin-layout #createUserModal .usemb-form-actions-ref .btn-primary,
body.admin-layout #editUserModal .usemb-form-actions-ref .btn-primary,
body.admin-layout.usemb-white-shell #createUserModal .usemb-form-actions-ref .btn-primary,
body.admin-layout.usemb-white-shell #editUserModal .usemb-form-actions-ref .btn-primary,
body.admin-layout #createUserModal .usemb-form-actions-ref button[type="submit"],
body.admin-layout #editUserModal .usemb-form-actions-ref button[type="submit"],
body.admin-layout.usemb-white-shell #createUserModal .usemb-form-actions-ref button[type="submit"],
body.admin-layout.usemb-white-shell #editUserModal .usemb-form-actions-ref button[type="submit"]{
  background:var(--usemb-action-blue, #4F86F7)!important;
  background-image:none!important;
  border-color:transparent!important;
  color:#fff!important;
  border-radius:10px!important;
  box-shadow:none!important;
}


/* USEMB V82: Assign modal dropdown room, attachment keyboard preview, linkified messages, clickable rows, sales submitted status */
body.admin-layout #assignModal .modal-dialog,
body.admin-layout.usemb-white-shell #assignModal .modal-dialog{
  max-width:640px!important;
}
body.admin-layout #assignModal .modal-content,
body.admin-layout.usemb-white-shell #assignModal .modal-content{
  min-height:min(540px, calc(100vh - 32px))!important;
  overflow:visible!important;
}
body.admin-layout #assignModal .modal-body,
body.admin-layout.usemb-white-shell #assignModal .modal-body{
  min-height:360px!important;
  overflow:visible!important;
}
body.admin-layout #assignModal .choices,
body.admin-layout.usemb-white-shell #assignModal .choices{
  position:relative!important;
  z-index:2050!important;
}
body.admin-layout #assignModal .choices.is-open,
body.admin-layout.usemb-white-shell #assignModal .choices.is-open{
  z-index:2060!important;
}
body.admin-layout #assignModal .choices__list--dropdown,
body.admin-layout #assignModal .choices__list[aria-expanded],
body.admin-layout.usemb-white-shell #assignModal .choices__list--dropdown,
body.admin-layout.usemb-white-shell #assignModal .choices__list[aria-expanded]{
  z-index:2070!important;
  max-height:300px!important;
  overflow-y:auto!important;
}
.usemb-message-link-ref{
  color:#93c5fd!important;
  text-decoration:underline!important;
  text-underline-offset:2px;
  word-break:break-all;
}
.usemb-message-link-ref:hover{
  color:#bfdbfe!important;
}
#ordersTable tbody tr.order-row,
#ordersTable tbody tr[data-href],
body.admin-layout #ordersTable tbody tr,
body.admin-layout.usemb-white-shell #ordersTable tbody tr{
  cursor:pointer;
}
#ordersTable tbody tr.order-row:hover,
#ordersTable tbody tr[data-href]:hover,
body.admin-layout #ordersTable tbody tr:hover,
body.admin-layout.usemb-white-shell #ordersTable tbody tr:hover{
  background:rgba(79,124,255,.075)!important;
}
#ordersTable tbody tr.order-row:hover td,
#ordersTable tbody tr[data-href]:hover td,
body.admin-layout #ordersTable tbody tr:hover td,
body.admin-layout.usemb-white-shell #ordersTable tbody tr:hover td{
  background:transparent!important;
}
.badge-soft.badge-submitted,
.badge.badge-soft.badge-submitted{
  color:#fbbf24!important;
  border-color:rgba(251,191,36,.38)!important;
  background:rgba(251,191,36,.12)!important;
}
.badge-soft.badge-submitted::before{
  background:#f59e0b!important;
}


/* USEMB V83: assign modal top z-index/dropdown space + readable badges/toasts */
body.usemb-assign-modal-open-v83 .admin-header,
body.usemb-assign-modal-open-v83 .usemb-detail-actions-sticky-ref,
body.usemb-assign-modal-open-v83 .usemb-ui-actionbar-ref{
  z-index:1000!important;
}
body.usemb-assign-modal-open-v83 .modal-backdrop.show{
  z-index:3040!important;
  opacity:.76!important;
  background:#020617!important;
}
#assignModal.usemb-assign-modal-v83{
  z-index:3050!important;
}
#assignModal.usemb-assign-modal-v83 .usemb-assign-dialog-v83{
  max-width:900px!important;
  width:min(900px, calc(100vw - 44px))!important;
}
#assignModal.usemb-assign-modal-v83 .usemb-assign-content-v83{
  min-height:min(600px, calc(100vh - 34px))!important;
  max-height:none!important;
  overflow:visible!important;
  border-radius:18px!important;
}
#assignModal.usemb-assign-modal-v83.is-choice-open-v83 .usemb-assign-content-v83{
  min-height:min(680px, calc(100vh - 22px))!important;
}
#assignModal.usemb-assign-modal-v83 .modal-body{
  min-height:420px!important;
  overflow:visible!important;
}
#assignModal.usemb-assign-modal-v83 .modal-header,
#assignModal.usemb-assign-modal-v83 .modal-footer{
  flex:0 0 auto!important;
}
#assignModal.usemb-assign-modal-v83 .choices{
  position:relative!important;
  z-index:3060!important;
}
#assignModal.usemb-assign-modal-v83 .choices.is-open{
  z-index:3075!important;
}
#assignModal.usemb-assign-modal-v83 .choices__list--dropdown,
#assignModal.usemb-assign-modal-v83 .choices__list[aria-expanded]{
  z-index:3090!important;
  max-height:360px!important;
  overflow-y:auto!important;
}
#notificationBellBtn,
.btn-usemb-header-mail,
.usemb-notification-trigger{
  position:relative!important;
  overflow:visible!important;
}
body.admin-layout.usemb-white-shell .usemb-notification-badge,
.usemb-notification-badge{
  min-width:24px!important;
  height:24px!important;
  padding:0 6px!important;
  border-radius:999px!important;
  right:-8px!important;
  top:-9px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:-.02em!important;
  background:#ff3b5c!important;
  color:#fff!important;
  border:2px solid #0b1220!important;
  box-shadow:0 8px 20px rgba(255,59,92,.35), 0 0 0 1px rgba(255,255,255,.12)!important;
  z-index:5!important;
}
body.admin-layout.usemb-white-shell .usemb-message-nav-badge:not(.d-none),
body.admin-layout.usemb-white-shell .usemb-header-message-badge:not(.d-none),
.usemb-message-nav-badge:not(.d-none),
.usemb-header-message-badge:not(.d-none){
  display:inline-flex!important;
}
body.admin-layout.usemb-white-shell .usemb-message-nav-badge.d-none,
body.admin-layout.usemb-white-shell .usemb-header-message-badge.d-none,
.usemb-message-nav-badge.d-none,
.usemb-header-message-badge.d-none{
  display:none!important;
}
.usemb-notification-toast-stack{
  position:fixed!important;
  top:92px!important;
  right:22px!important;
  z-index:99999!important;
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  pointer-events:none!important;
}
.usemb-notification-toast{
  min-width:300px!important;
  max-width:380px!important;
  border-radius:18px!important;
  border:1px solid rgba(96,165,250,.28)!important;
  background:#0f172a!important;
  color:#eaf2ff!important;
  box-shadow:0 24px 70px rgba(0,0,0,.48), 0 0 0 1px rgba(255,255,255,.06)!important;
  opacity:0!important;
  transform:translateX(26px) scale(.98)!important;
  transition:opacity .22s ease, transform .22s ease!important;
  pointer-events:auto!important;
  overflow:hidden!important;
}
.usemb-notification-toast.is-visible{
  opacity:1!important;
  transform:translateX(0) scale(1)!important;
}
.usemb-notification-toast-link{
  display:block!important;
  padding:14px 16px!important;
  color:inherit!important;
  text-decoration:none!important;
  border-left:4px solid #4f86f7!important;
}
.usemb-notification-toast-title{
  color:#fff!important;
  font-size:14px!important;
  font-weight:900!important;
  margin-bottom:3px!important;
}
.usemb-notification-toast-message{
  color:#b8c7dd!important;
  font-size:13px!important;
  font-weight:650!important;
}
html[data-usemb-theme="light"] .usemb-notification-toast,
html[data-bs-theme="light"] .usemb-notification-toast{
  background:#fff!important;
  color:#0f172a!important;
  border-color:rgba(15,23,42,.12)!important;
  box-shadow:0 22px 55px rgba(15,23,42,.22)!important;
}
html[data-usemb-theme="light"] .usemb-notification-toast-title,
html[data-bs-theme="light"] .usemb-notification-toast-title{
  color:#0f172a!important;
}
html[data-usemb-theme="light"] .usemb-notification-toast-message,
html[data-bs-theme="light"] .usemb-notification-toast-message{
  color:#475569!important;
}
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell .usemb-notification-badge,
html[data-bs-theme="light"] body.admin-layout.usemb-white-shell .usemb-notification-badge{
  border-color:#fff!important;
}
@media (max-width: 768px){
  #assignModal.usemb-assign-modal-v83 .usemb-assign-dialog-v83{
    width:calc(100vw - 18px)!important;
  }
  #assignModal.usemb-assign-modal-v83 .usemb-assign-content-v83{
    min-height:min(620px, calc(100vh - 18px))!important;
  }
  .usemb-notification-toast-stack{
    left:12px!important;
    right:12px!important;
    top:76px!important;
  }
  .usemb-notification-toast{
    min-width:0!important;
    max-width:none!important;
    width:100%!important;
  }
}


/* USEMB V84: New conversation modal UI + focus-friendly search + Ctrl/Shift Enter line breaks */
body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal{
  z-index:3060!important;
}
body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .modal-dialog{
  width:min(920px, calc(100vw - 36px))!important;
  max-width:920px!important;
}
body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .usemb-newchat-modal{
  background:#0f172a!important;
  color:#eaf2ff!important;
  border:1px solid rgba(96,165,250,.28)!important;
  border-radius:22px!important;
  overflow:hidden!important;
  box-shadow:0 28px 85px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06)!important;
}
body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .modal-header{
  min-height:78px!important;
  padding:18px 22px!important;
  border-bottom:1px solid #263448!important;
  background:linear-gradient(180deg, rgba(30,41,59,.58), rgba(15,23,42,.98))!important;
}
body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .modal-title{
  color:#fff!important;
  font-size:22px!important;
  font-weight:900!important;
  letter-spacing:-.03em!important;
}
body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .small.text-muted{
  color:#b8c7dd!important;
  font-weight:650!important;
}
body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .btn-close{
  filter:invert(1) grayscale(1)!important;
  opacity:.82!important;
}
body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .modal-body{
  padding:18px 22px 22px!important;
  max-height:min(70vh, 620px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .usemb-messenger-search{
  padding:0!important;
  margin:0 0 16px!important;
  border:0!important;
  position:relative!important;
}
body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .usemb-messenger-search i{
  left:16px!important;
  color:#93a4bc!important;
}
body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal #newConversationSearch{
  height:46px!important;
  border-radius:13px!important;
  border:1px solid #2b3a50!important;
  background:#101827!important;
  color:#eaf2ff!important;
  padding-left:44px!important;
  font-size:13px!important;
  font-weight:700!important;
}
body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal #newConversationSearch:focus{
  border-color:#4f86f7!important;
  box-shadow:0 0 0 3px rgba(79,134,247,.18)!important;
}
body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .usemb-newchat-results{
  display:grid!important;
  grid-template-columns:repeat(2, minmax(0, 1fr))!important;
  gap:10px!important;
  max-height:none!important;
  overflow:visible!important;
  padding-top:2px!important;
}
body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .usemb-newchat-item{
  width:100%!important;
  min-height:82px!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  padding:13px!important;
  border-radius:16px!important;
  border:1px solid #263448!important;
  background:#101827!important;
  color:#eaf2ff!important;
  text-align:left!important;
  box-shadow:none!important;
  transition:background .16s ease, border-color .16s ease, transform .16s ease!important;
}
body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .usemb-newchat-item:hover,
body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .usemb-newchat-item:focus{
  background:#142033!important;
  border-color:#4f86f7!important;
  transform:translateY(-1px)!important;
  outline:0!important;
}
body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .usemb-newchat-item .usemb-thread-avatar{
  width:46px!important;
  height:46px!important;
  border-radius:13px!important;
  background:#4f86f7!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:900!important;
}
body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .usemb-newchat-item .fw-semibold{
  color:#fff!important;
  font-size:14px!important;
  font-weight:900!important;
  margin-bottom:2px!important;
}
body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .usemb-newchat-item .small.text-muted{
  color:#b8c7dd!important;
  font-size:12px!important;
  font-weight:650!important;
}
body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .usemb-thread-status{
  margin-top:4px!important;
  font-size:11px!important;
}
body.admin-layout.usemb-white-shell.route-public-messages-index .usemb-compose-row textarea.form-control{
  white-space:pre-wrap!important;
}
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .usemb-newchat-modal,
html[data-bs-theme="light"] body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .usemb-newchat-modal{
  background:#fff!important;
  color:#0f172a!important;
  border-color:rgba(15,23,42,.12)!important;
  box-shadow:0 26px 75px rgba(15,23,42,.22)!important;
}
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .modal-header,
html[data-bs-theme="light"] body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .modal-header{
  background:#fff!important;
  border-bottom-color:#e5eaf2!important;
}
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .modal-title,
html[data-bs-theme="light"] body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .modal-title,
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .usemb-newchat-item .fw-semibold,
html[data-bs-theme="light"] body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .usemb-newchat-item .fw-semibold{
  color:#0f172a!important;
}
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .small.text-muted,
html[data-bs-theme="light"] body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .small.text-muted,
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .usemb-newchat-item .small.text-muted,
html[data-bs-theme="light"] body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .usemb-newchat-item .small.text-muted{
  color:#64748b!important;
}
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal #newConversationSearch,
html[data-bs-theme="light"] body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal #newConversationSearch,
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .usemb-newchat-item,
html[data-bs-theme="light"] body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .usemb-newchat-item{
  background:#f8fafc!important;
  border-color:#dce5f2!important;
  color:#0f172a!important;
}
html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .usemb-newchat-item:hover,
html[data-bs-theme="light"] body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .usemb-newchat-item:hover{
  background:#eef4ff!important;
  border-color:#4f86f7!important;
}
@media (max-width: 760px){
  body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .modal-dialog{
    width:calc(100vw - 18px)!important;
  }
  body.admin-layout.usemb-white-shell.route-public-messages-index #newConversationModal .usemb-newchat-results{
    grid-template-columns:1fr!important;
  }
}


/* USEMB V85: Order detail action buttons must stay under search/notification overlays */
body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-gmail-detail-toolbar-ref,
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-gmail-detail-toolbar-ref,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-gmail-detail-toolbar-ref,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-gmail-detail-toolbar-ref,
body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-detail-toolbar-ref,
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-detail-toolbar-ref,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-detail-toolbar-ref,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-detail-toolbar-ref,
body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-detail-actions-sticky-ref,
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-detail-actions-sticky-ref,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-detail-actions-sticky-ref,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-detail-actions-sticky-ref{
  z-index:20!important;
}
body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-gmail-detail-toolbar-ref .usemb-ui-actionbar-ref,
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-gmail-detail-toolbar-ref .usemb-ui-actionbar-ref,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-gmail-detail-toolbar-ref .usemb-ui-actionbar-ref,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-gmail-detail-toolbar-ref .usemb-ui-actionbar-ref,
body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-detail-toolbar-ref .usemb-ui-actionbar-ref,
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-detail-toolbar-ref .usemb-ui-actionbar-ref,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-detail-toolbar-ref .usemb-ui-actionbar-ref,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-detail-toolbar-ref .usemb-ui-actionbar-ref{
  z-index:auto!important;
}
body.admin-layout.usemb-white-shell .usemb-global-search-panel{
  z-index:8500!important;
}
body.admin-layout.usemb-white-shell .usemb-notification-panel{
  z-index:8600!important;
}
body.admin-layout.usemb-white-shell .usemb-notification-wrap,
body.admin-layout.usemb-white-shell .usemb-global-search-wrap{
  z-index:8700!important;
}
body.usemb-assign-modal-open-v83 .admin-header,
body.usemb-assign-modal-open-v83 .usemb-detail-actions-sticky-ref,
body.usemb-assign-modal-open-v83 .usemb-ui-actionbar-ref{
  z-index:1000!important;
}


/* USEMB V86: Admin mobile responsive shell + invoice salesperson column */
.invoice-salesperson-name-ref{
  min-width:120px;
}
@media (max-width: 1199.98px){
  body.admin-layout.usemb-white-shell{
    overflow-x:hidden!important;
  }
  body.admin-layout.usemb-white-shell .hamburger-menu{
    display:inline-flex!important;
    position:fixed!important;
    top:18px!important;
    left:16px!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    border:1px solid #263448!important;
    border-radius:12px!important;
    background:#101827!important;
    color:#eaf2ff!important;
    align-items:center!important;
    justify-content:center!important;
    z-index:8905!important;
    box-shadow:0 12px 28px rgba(0,0,0,.28)!important;
  }
  body.admin-layout.usemb-white-shell .hamburger-menu i{
    font-size:24px!important;
    line-height:1!important;
  }
  html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell .hamburger-menu,
  html[data-bs-theme="light"] body.admin-layout.usemb-white-shell .hamburger-menu{
    background:#fff!important;
    color:#0f172a!important;
    border-color:#dce5f2!important;
    box-shadow:0 12px 28px rgba(15,23,42,.16)!important;
  }
  body.admin-layout.usemb-white-shell .admin-sidebar{
    transform:translateX(-110%)!important;
    transition:transform .22s ease!important;
    z-index:8910!important;
    width:min(285px, 86vw)!important;
    max-width:86vw!important;
    box-shadow:0 24px 70px rgba(0,0,0,.42)!important;
  }
  body.admin-layout.usemb-white-shell.sidebar-open .admin-sidebar{
    transform:translateX(0)!important;
  }
  body.admin-layout.usemb-white-shell.sidebar-open::before{
    content:""!important;
    position:fixed!important;
    inset:0!important;
    background:rgba(2,6,23,.62)!important;
    z-index:8900!important;
    pointer-events:auto!important;
  }
  body.admin-layout.usemb-white-shell .admin-header{
    left:0!important;
    width:100%!important;
    z-index:1045!important;
  }
  body.admin-layout.usemb-white-shell .admin-header .navbar,
  body.admin-layout.usemb-white-shell .admin-header .container-fluid{
    min-height:74px!important;
  }
  body.admin-layout.usemb-white-shell .admin-header .navbar .container-fluid{
    padding-left:68px!important;
    padding-right:14px!important;
    gap:8px!important;
    flex-wrap:nowrap!important;
  }
  body.admin-layout.usemb-white-shell .admin-header .navbar-brand,
  body.admin-layout.usemb-white-shell .usemb-header-title-wrap,
  body.admin-layout.usemb-white-shell .usemb-page-title-wrap{
    min-width:0!important;
  }
  body.admin-layout.usemb-white-shell .admin-main{
    margin-left:0!important;
    width:100%!important;
    padding-top:74px!important;
  }
  body.admin-layout.usemb-white-shell .admin-main > .container-fluid{
    padding:16px 12px 22px!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }
  body.admin-layout.usemb-white-shell .usemb-page-actions-only-ref,
  body.admin-layout.usemb-white-shell .usemb-page-head-ref,
  body.admin-layout.usemb-white-shell .usemb-dashboard-head-ref{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:10px!important;
  }
  body.admin-layout.usemb-white-shell .usemb-ui-actionbar-ref,
  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref,
  body.admin-layout.usemb-white-shell .usemb-form-actions-ref{
    width:100%!important;
    max-width:100%!important;
    justify-content:flex-start!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body.admin-layout.usemb-white-shell .usemb-ui-actionbar-ref .btn,
  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar .btn,
  body.admin-layout.usemb-white-shell .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-ui-action-btn-ref,
  body.admin-layout.usemb-white-shell .usemb-ui-action-primary-ref{
    flex:0 0 auto!important;
  }
  body.admin-layout.usemb-white-shell .card,
  body.admin-layout.usemb-white-shell .usemb-card,
  body.admin-layout.usemb-white-shell .usemb-gmail-thread-card-ref,
  body.admin-layout.usemb-white-shell .usemb-invoice-table-card-ref,
  body.admin-layout.usemb-white-shell .usemb-invoice-section-card-ref{
    border-radius:16px!important;
  }
  body.admin-layout.usemb-white-shell .table-responsive{
    width:100%!important;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body.admin-layout.usemb-white-shell table.table{
    min-width:760px!important;
  }
  body.admin-layout.usemb-white-shell #invoiceHeadersTable{
    min-width:1080px!important;
  }
  body.admin-layout.usemb-white-shell #invoiceGenerateTable{
    min-width:980px!important;
  }
  body.admin-layout.usemb-white-shell .invoice-header-filter-row > [class*="col-"],
  body.admin-layout.usemb-white-shell .invoice-header-filter-row .col-xl-1,
  body.admin-layout.usemb-white-shell .invoice-header-filter-row .col-xl-2,
  body.admin-layout.usemb-white-shell .invoice-header-filter-row .col-xl-3{
    width:100%!important;
    flex:0 0 100%!important;
    max-width:100%!important;
  }
  body.admin-layout.usemb-white-shell .usemb-messenger-search.invoice-grid-search{
    max-width:100%!important;
    width:100%!important;
  }
  body.admin-layout.usemb-white-shell .modal-dialog{
    max-width:calc(100vw - 18px)!important;
    width:calc(100vw - 18px)!important;
    margin:9px auto!important;
  }
  body.admin-layout.usemb-white-shell .modal-content{
    max-height:calc(100vh - 18px)!important;
  }
  body.admin-layout.usemb-white-shell .modal-body{
    max-height:calc(100vh - 150px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
  body.admin-layout.usemb-white-shell #assignModal .modal-dialog,
  body.admin-layout.usemb-white-shell #generateInvoiceModal .modal-dialog,
  body.admin-layout.usemb-white-shell #invoiceDetailsModal .modal-dialog{
    max-width:calc(100vw - 18px)!important;
    width:calc(100vw - 18px)!important;
  }
  body.admin-layout.usemb-white-shell #assignModal.usemb-assign-modal-v83 .usemb-assign-content-v83{
    min-height:min(620px, calc(100vh - 18px))!important;
  }
}
@media (max-width: 767.98px){
  body.admin-layout.usemb-white-shell .admin-header .navbar .container-fluid{
    padding-left:64px!important;
    padding-right:8px!important;
  }
  body.admin-layout.usemb-white-shell .admin-main > .container-fluid{
    padding:12px 8px 20px!important;
  }
  body.admin-layout.usemb-white-shell .usemb-invoice-kpi-row-ref > [class*="col-"],
  body.admin-layout.usemb-white-shell .row.g-3 > [class*="col-"]{
    width:100%!important;
    flex:0 0 100%!important;
    max-width:100%!important;
  }
  body.admin-layout.usemb-white-shell .usemb-ui-actionbar-ref,
  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref{
    height:auto!important;
    min-height:0!important;
    padding:6px!important;
    gap:6px!important;
  }
  body.admin-layout.usemb-white-shell .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-ui-action-btn-ref,
  body.admin-layout.usemb-white-shell .usemb-ui-action-primary-ref{
    min-width:max-content!important;
  }
  body.admin-layout.usemb-white-shell .usemb-gmail-thread-title-ref,
  body.admin-layout.usemb-white-shell .usemb-gmail-title-meta-ref{
    flex-direction:column!important;
    align-items:flex-start!important;
  }
  body.admin-layout.usemb-white-shell .usemb-v78-invoice-image-header-slot-ref{
    margin-left:0!important;
    width:160px!important;
  }
  body.admin-layout.usemb-white-shell .invoice-generate-summary,
  body.admin-layout.usemb-white-shell .invoice-quick-add-grid-ref{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
}


/* USEMB V87: mobile browser desktop-mode shell must still use full-width content */
@media (pointer: coarse), (hover: none){
  body.admin-layout.usemb-white-shell{
    overflow-x:hidden!important;
  }
  body.admin-layout.usemb-white-shell .hamburger-menu{
    display:inline-flex!important;
    position:fixed!important;
    top:18px!important;
    left:16px!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    border:1px solid #263448!important;
    border-radius:12px!important;
    background:#101827!important;
    color:#eaf2ff!important;
    align-items:center!important;
    justify-content:center!important;
    z-index:8905!important;
    box-shadow:0 12px 28px rgba(0,0,0,.28)!important;
  }
  body.admin-layout.usemb-white-shell .hamburger-menu i{
    font-size:24px!important;
    line-height:1!important;
  }
  html[data-usemb-theme="light"] body.admin-layout.usemb-white-shell .hamburger-menu,
  html[data-bs-theme="light"] body.admin-layout.usemb-white-shell .hamburger-menu{
    background:#fff!important;
    color:#0f172a!important;
    border-color:#dce5f2!important;
    box-shadow:0 12px 28px rgba(15,23,42,.16)!important;
  }
  body.admin-layout.usemb-white-shell .admin-sidebar{
    transform:translateX(-110%)!important;
    transition:transform .22s ease!important;
    z-index:8910!important;
    width:min(285px, 86vw)!important;
    max-width:86vw!important;
    box-shadow:0 24px 70px rgba(0,0,0,.42)!important;
  }
  body.admin-layout.usemb-white-shell.sidebar-open .admin-sidebar{
    transform:translateX(0)!important;
  }
  body.admin-layout.usemb-white-shell.sidebar-open::before{
    content:""!important;
    position:fixed!important;
    inset:0!important;
    background:rgba(2,6,23,.62)!important;
    z-index:8900!important;
    pointer-events:auto!important;
  }
  body.admin-layout.usemb-white-shell .admin-header{
    left:0!important;
    width:100%!important;
    max-width:100%!important;
  }
  body.admin-layout.usemb-white-shell .admin-header .navbar .container-fluid{
    padding-left:68px!important;
    padding-right:14px!important;
    max-width:100%!important;
    width:100%!important;
  }
  body.admin-layout.usemb-white-shell .admin-main{
    margin-left:0!important;
    width:100%!important;
    max-width:100%!important;
    padding-top:74px!important;
  }
  body.admin-layout.usemb-white-shell .admin-main > .container-fluid{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:16px 12px 22px!important;
    overflow-x:hidden!important;
  }
  body.admin-layout.usemb-white-shell .usemb-dashboard-ref,
  body.admin-layout.usemb-white-shell .usemb-orders-page-ref,
  body.admin-layout.usemb-white-shell .usemb-orders-ref,
  body.admin-layout.usemb-white-shell .usemb-invoice-page-ref,
  body.admin-layout.usemb-white-shell .usemb-users-page-ref,
  body.admin-layout.usemb-white-shell .usemb-messages-page-ref,
  body.admin-layout.usemb-white-shell .usemb-page-shell-ref{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref,
  body.admin-layout.usemb-white-shell .usemb-ui-actionbar-ref,
  body.admin-layout.usemb-white-shell .usemb-form-actions-ref{
    width:100%!important;
    max-width:100%!important;
    justify-content:flex-start!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar > *,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref > *,
  body.admin-layout.usemb-white-shell .usemb-ui-actionbar-ref > *,
  body.admin-layout.usemb-white-shell .usemb-form-actions-ref > *{
    flex:0 0 auto!important;
  }
  body.admin-layout.usemb-white-shell .table-responsive{
    width:100%!important;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body.admin-layout.usemb-white-shell table.table{
    min-width:760px!important;
  }
  body.admin-layout.usemb-white-shell #ordersTable{
    min-width:980px!important;
  }
  body.admin-layout.usemb-white-shell #invoiceHeadersTable{
    min-width:1080px!important;
  }
}


/* USEMB V88: Force full-width admin shell on mobile browser desktop-site mode */
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell{
  overflow-x:hidden!important;
}
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .hamburger-menu{
  display:inline-flex!important;
  position:fixed!important;
  top:18px!important;
  left:16px!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  border:1px solid #263448!important;
  border-radius:12px!important;
  background:#101827!important;
  color:#eaf2ff!important;
  align-items:center!important;
  justify-content:center!important;
  z-index:8905!important;
  box-shadow:0 12px 28px rgba(0,0,0,.28)!important;
}
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .hamburger-menu i{
  font-size:24px!important;
  line-height:1!important;
}
html.usemb-touch-shell-v88[data-usemb-theme="light"] body.admin-layout.usemb-white-shell .hamburger-menu,
html.usemb-touch-shell-v88[data-bs-theme="light"] body.admin-layout.usemb-white-shell .hamburger-menu{
  background:#fff!important;
  color:#0f172a!important;
  border-color:#dce5f2!important;
  box-shadow:0 12px 28px rgba(15,23,42,.16)!important;
}
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .admin-sidebar{
  transform:translateX(-110%)!important;
  transition:transform .22s ease!important;
  z-index:8910!important;
  width:min(285px, 86vw)!important;
  max-width:86vw!important;
  box-shadow:0 24px 70px rgba(0,0,0,.42)!important;
}
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.sidebar-open .admin-sidebar{
  transform:translateX(0)!important;
}
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.sidebar-open::before{
  content:""!important;
  position:fixed!important;
  inset:0!important;
  background:rgba(2,6,23,.62)!important;
  z-index:8900!important;
  pointer-events:auto!important;
}
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .admin-header{
  left:0!important;
  width:100%!important;
  max-width:100%!important;
}
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .admin-header .navbar .container-fluid{
  padding-left:68px!important;
  padding-right:14px!important;
  max-width:100%!important;
  width:100%!important;
}
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .admin-main{
  margin-left:0!important;
  width:100%!important;
  max-width:100%!important;
  padding-top:74px!important;
}
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .admin-main > .container-fluid{
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:16px 12px 22px!important;
  overflow-x:hidden!important;
}
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-dashboard-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-dashboard-v3-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-orders-page-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-orders-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-invoice-page-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-users-page-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-messages-page-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-page-shell-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-table-shell-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-orders-table-card-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-dashboard-cards-ref{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
}
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-ui-actionbar-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-form-actions-ref{
  width:100%!important;
  max-width:100%!important;
  justify-content:flex-start!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  -webkit-overflow-scrolling:touch!important;
}
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar > *,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref > *,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-ui-actionbar-ref > *,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-form-actions-ref > *{
  flex:0 0 auto!important;
}
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .table-responsive{
  width:100%!important;
  overflow-x:auto!important;
  -webkit-overflow-scrolling:touch!important;
}
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell table.table{
  min-width:760px!important;
}
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell #ordersTable{
  min-width:980px!important;
}
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell #invoiceHeadersTable{
  min-width:1080px!important;
}


/* USEMB V89: Orders All/page-size fix support, restore Date column, mobile detail More menu + login responsive */
body.admin-layout.usemb-white-shell.route-admin-orders-index #ordersTable th:nth-child(9),
body.admin-layout.usemb-white-shell.route-admin-orders-index #ordersTable td:nth-child(9),
body.admin-layout.usemb-white-shell.route-admin-orders-index .usemb-orders-table-ref th:nth-child(9),
body.admin-layout.usemb-white-shell.route-admin-orders-index .usemb-orders-table-ref td:nth-child(9){
  display:table-cell!important;
}
body.admin-layout.usemb-white-shell.route-admin-orders-index #ordersTable th:last-child,
body.admin-layout.usemb-white-shell.route-admin-orders-index #ordersTable td:last-child{
  display:table-cell!important;
  min-width:132px!important;
  width:132px!important;
}
body.admin-layout.usemb-white-shell.route-admin-orders-index .usemb-date-cell-ref{
  min-width:112px!important;
}
body.admin-layout.usemb-white-shell.route-admin-orders-index #ordersTable{
  min-width:1160px!important;
}

html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-detail-more-menu-ref.show,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-detail-more-menu-ref.show,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-detail-more-menu-ref.show,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-detail-more-menu-ref.show{
  position:fixed!important;
  top:92px!important;
  right:12px!important;
  left:auto!important;
  transform:none!important;
  z-index:99950!important;
  display:block!important;
  max-height:calc(100vh - 112px)!important;
  overflow-y:auto!important;
}
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-detail-actions-sticky-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-detail-actions-sticky-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-detail-actions-sticky-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-detail-actions-sticky-ref{
  overflow:visible!important;
}
@media (max-width: 767.98px){
  body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-detail-more-menu-ref.show,
  body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-detail-more-menu-ref.show,
  body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-detail-more-menu-ref.show,
  body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-detail-more-menu-ref.show{
    position:fixed!important;
    top:86px!important;
    right:10px!important;
    left:auto!important;
    transform:none!important;
    z-index:99950!important;
    display:block!important;
    min-width:220px!important;
    max-width:calc(100vw - 20px)!important;
    max-height:calc(100vh - 104px)!important;
    overflow-y:auto!important;
  }
}

@media (max-width: 767.98px){
  body.usemb-auth-shell .auth-page-wrapper{
    min-height:100vh!important;
    padding:10px!important;
    align-items:flex-start!important;
    overflow-x:hidden!important;
  }
  body.usemb-auth-shell .auth-page-content,
  body.usemb-auth-shell .usemb-login-page,
  body.usemb-auth-shell .usemb-login-container{
    width:100%!important;
    max-width:100%!important;
    padding:0!important;
    margin:0!important;
  }
  body.usemb-auth-shell .usemb-login-stage{
    display:flex!important;
    flex-direction:column!important;
    grid-template-columns:1fr!important;
    min-height:0!important;
    padding:10px!important;
    gap:10px!important;
    border-radius:18px!important;
    overflow:visible!important;
  }
  body.usemb-auth-shell .usemb-login-hero{
    min-height:0!important;
    padding:18px 16px!important;
    border-radius:16px!important;
  }
  body.usemb-auth-shell .usemb-login-hero-inner{
    padding-top:0!important;
    gap:10px!important;
  }
  body.usemb-auth-shell .usemb-login-logo{
    max-width:170px!important;
    max-height:54px!important;
  }
  body.usemb-auth-shell .usemb-login-dots,
  body.usemb-auth-shell .usemb-login-wave{
    display:none!important;
  }
  body.usemb-auth-shell .usemb-login-hero-title{
    font-size:1.75rem!important;
    margin-bottom:6px!important;
  }
  body.usemb-auth-shell .usemb-login-hero-text{
    font-size:.9rem!important;
    line-height:1.45!important;
  }
  body.usemb-auth-shell .usemb-login-panel{
    display:block!important;
  }
  body.usemb-auth-shell .usemb-login-card{
    max-width:100%!important;
    padding:20px 14px 16px!important;
    border-radius:16px!important;
  }
  body.usemb-auth-shell .usemb-login-head{
    margin-bottom:18px!important;
  }
  body.usemb-auth-shell .usemb-login-title{
    font-size:1.45rem!important;
  }
  body.usemb-auth-shell .usemb-login-form{
    gap:14px!important;
  }
  body.usemb-auth-shell .usemb-input-shell .form-control,
  body.usemb-auth-shell .usemb-login-submit{
    min-height:50px!important;
    border-radius:12px!important;
  }
  body.usemb-auth-shell .usemb-login-meta{
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
  }
  body.usemb-auth-shell .usemb-login-meta .form-check-label,
  body.usemb-auth-shell .usemb-login-link{
    font-size:.82rem!important;
  }
  body.usemb-auth-shell .usemb-login-register{
    margin-top:14px!important;
    font-size:.88rem!important;
  }
  body.usemb-auth-shell .usemb-login-footer{
    padding:10px 4px 0!important;
    gap:8px!important;
    font-size:.75rem!important;
  }
}


/* USEMB V90: mobile Order Details More menu opens directly under the More button */
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-detail-toolbar-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-detail-toolbar-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-detail-toolbar-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-detail-toolbar-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-ui-actionbar-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-ui-actionbar-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-ui-actionbar-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-ui-actionbar-ref{
  overflow:visible!important;
}
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-detail-more-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-detail-more-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-detail-more-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-detail-more-ref{
  position:relative!important;
}
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-detail-more-ref .usemb-detail-more-menu-ref.show,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-detail-more-ref .usemb-detail-more-menu-ref.show,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-detail-more-ref .usemb-detail-more-menu-ref.show,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-detail-more-ref .usemb-detail-more-menu-ref.show{
  position:absolute!important;
  top:calc(100% + 8px)!important;
  left:0!important;
  right:auto!important;
  transform:none!important;
  z-index:99950!important;
  display:block!important;
  min-width:220px!important;
  max-width:calc(100vw - 24px)!important;
  max-height:calc(100vh - 120px)!important;
  overflow-y:auto!important;
}
@media (max-width: 767.98px){
  body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-detail-toolbar-ref,
  body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-detail-toolbar-ref,
  body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-detail-toolbar-ref,
  body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-detail-toolbar-ref,
  body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-ui-actionbar-ref,
  body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-ui-actionbar-ref,
  body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-ui-actionbar-ref,
  body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-ui-actionbar-ref{
    overflow:visible!important;
  }
  body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-detail-more-ref,
  body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-detail-more-ref,
  body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-detail-more-ref,
  body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-detail-more-ref{
    position:relative!important;
  }
  body.admin-layout.usemb-white-shell.route-admin-orders-details .usemb-detail-more-ref .usemb-detail-more-menu-ref.show,
  body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-detail-more-ref .usemb-detail-more-menu-ref.show,
  body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-detail-more-ref .usemb-detail-more-menu-ref.show,
  body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-detail-more-ref .usemb-detail-more-menu-ref.show{
    position:absolute!important;
    top:calc(100% + 8px)!important;
    left:0!important;
    right:auto!important;
    transform:none!important;
    z-index:99950!important;
    display:block!important;
    min-width:220px!important;
    max-width:calc(100vw - 24px)!important;
    max-height:calc(100vh - 120px)!important;
    overflow-y:auto!important;
  }
}


/* USEMB V91: force Orders Date column visible */
body.admin-layout.usemb-white-shell.route-admin-orders-index #ordersTable th.usemb-orders-date-head-ref,
body.admin-layout.usemb-white-shell.route-admin-orders-index #ordersTable td.usemb-orders-date-col-ref,
body.admin-layout.usemb-white-shell.route-admin-orders-index .usemb-orders-table-ref th.usemb-orders-date-head-ref,
body.admin-layout.usemb-white-shell.route-admin-orders-index .usemb-orders-table-ref td.usemb-orders-date-col-ref{
  display:table-cell!important;
  visibility:visible!important;
  width:142px!important;
  min-width:142px!important;
  max-width:160px!important;
}
body.admin-layout.usemb-white-shell.route-admin-orders-index #ordersTable td.usemb-orders-date-col-ref .usemb-date-cell-ref{
  min-width:118px!important;
}
body.admin-layout.usemb-white-shell.route-admin-orders-index #ordersTable{
  min-width:1240px!important;
}


/* USEMB V95: unify portal Order Details attachments with Admin style + invoice switches */
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-gmail-message-ref > .usemb-gmail-attachments-section-ref,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-gmail-message-ref > .usemb-gmail-attachments-section-ref,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-gmail-message-ref > .usemb-gmail-attachments-section-ref{
  margin-left:80px!important;
  margin-right:24px!important;
}
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-gmail-attachments-section-ref,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-gmail-attachments-section-ref,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-gmail-attachments-section-ref{
  margin-top:8px!important;
  margin-bottom:10px!important;
}
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-gmail-attachments-title-ref,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-gmail-attachments-title-ref,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-gmail-attachments-title-ref{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  font-size:13px!important;
  font-weight:800!important;
  color:#0f172a!important;
  margin-bottom:10px!important;
}
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-gmail-attachment-grid-ref,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-gmail-attachment-grid-ref,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-gmail-attachment-grid-ref{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(166px,166px))!important;
  gap:12px!important;
  align-items:start!important;
}
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-gmail-attachment-tile-ref,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-gmail-attachment-tile-ref,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-gmail-attachment-tile-ref{
  position:relative!important;
  width:166px!important;
  height:96px!important;
  overflow:hidden!important;
  border-radius:14px!important;
  background:#09111f!important;
  border:1px solid #263448!important;
  box-shadow:none!important;
}
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-gmail-attachment-tile-ref img,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-gmail-attachment-tile-ref img,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-gmail-attachment-tile-ref img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
  transition:transform .22s ease, filter .22s ease!important;
}
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-gmail-attachment-tile-ref:hover img,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-gmail-attachment-tile-ref:hover img,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-gmail-attachment-tile-ref:hover img{
  transform:scale(1.04)!important;
  filter:brightness(.62)!important;
}
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-gmail-attachment-overlay-ref,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-gmail-attachment-overlay-ref,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-gmail-attachment-overlay-ref{
  position:absolute!important;
  inset:0!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-end!important;
  padding:9px 10px!important;
  background:linear-gradient(180deg,rgba(17,24,39,.12) 0%,rgba(17,24,39,.70) 100%)!important;
  opacity:0!important;
  transition:opacity .18s ease!important;
  color:#fff!important;
}
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-gmail-attachment-tile-ref:hover .usemb-gmail-attachment-overlay-ref,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-gmail-attachment-tile-ref:hover .usemb-gmail-attachment-overlay-ref,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-gmail-attachment-tile-ref:hover .usemb-gmail-attachment-overlay-ref{
  opacity:1!important;
}
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-gmail-delivered-section-ref,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-gmail-delivered-section-ref,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-gmail-delivered-section-ref{
  max-width:1000px!important;
  padding:14px!important;
  border:1px solid #263448!important;
  border-radius:16px!important;
  background:#101827!important;
}
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-gmail-delivered-head-ref,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-gmail-delivered-head-ref,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-gmail-delivered-head-ref{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:14px!important;
  margin-bottom:10px!important;
}
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-gmail-delivered-head-ref strong,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-gmail-delivered-head-ref strong,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-gmail-delivered-head-ref strong{
  display:block!important;
  font-size:13px!important;
  font-weight:800!important;
  color:#eaf2ff!important;
}
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-gmail-delivered-head-ref span,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-gmail-delivered-head-ref span,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-gmail-delivered-head-ref span{
  font-size:11px!important;
  color:#eaf2ff!important;
}
.usemb-invoice-portal-th-inner-ref{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  white-space:nowrap!important;
}
.usemb-invoice-portal-switch-ref{
  min-height:26px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding-left:0!important;
}
.usemb-invoice-portal-switch-ref .form-check-input,
.usemb-invoice-portal-checkall-ref{
  cursor:pointer!important;
  margin:0!important;
  box-shadow:none!important;
}
.usemb-invoice-portal-switch-ref .form-check-input{
  width:42px!important;
  height:22px!important;
}
.usemb-invoice-portal-checkall-ref{
  width:17px!important;
  height:17px!important;
}
@media(max-width:768px){
  body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-gmail-message-ref > .usemb-gmail-attachments-section-ref,
  body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-gmail-message-ref > .usemb-gmail-attachments-section-ref,
  body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-gmail-message-ref > .usemb-gmail-attachments-section-ref{margin-left:14px!important;margin-right:14px!important;}
  body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-gmail-attachment-grid-ref,
  body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-gmail-attachment-grid-ref,
  body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-gmail-attachment-grid-ref{grid-template-columns:repeat(auto-fill,minmax(142px,142px))!important;}
  body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-gmail-attachment-tile-ref,
  body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-gmail-attachment-tile-ref,
  body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-gmail-attachment-tile-ref{width:142px!important;height:86px!important;}
}


/* USEMB V96: Admin-style delivered files on all portals + clean invoice show toggle */
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-v96-portal-deliverable-batch-ref,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-v96-portal-deliverable-batch-ref,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-v96-portal-deliverable-batch-ref{
  width:min(100%, 1040px)!important;
  max-width:1040px!important;
  border:1px solid rgba(148,163,184,.26)!important;
  border-radius:18px!important;
  padding:14px!important;
  background:rgba(15,23,42,.18)!important;
  overflow:hidden!important;
}
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-attachment-grid-ref,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-attachment-grid-ref,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-attachment-grid-ref{
  display:grid!important;
  grid-template-columns:repeat(auto-fill, minmax(190px, 190px))!important;
  gap:12px!important;
  align-items:start!important;
}
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-card,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-card,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-card{
  width:190px!important;
  min-width:190px!important;
  max-width:190px!important;
  height:156px!important;
  border-radius:14px!important;
}
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-preview,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-preview,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-preview{
  height:112px!important;
}
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-bar,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-bar,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-bar{
  height:44px!important;
  min-height:44px!important;
}
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-right-ref,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-right-ref,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-right-ref{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
}
.usemb-invoice-portal-toggle-ref{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:48px!important;
  height:26px!important;
  margin:0!important;
  cursor:pointer!important;
}
.usemb-invoice-portal-toggle-ref input{
  position:absolute!important;
  opacity:0!important;
  width:1px!important;
  height:1px!important;
  pointer-events:none!important;
}
.usemb-invoice-portal-toggle-track-ref{
  position:relative!important;
  display:block!important;
  width:42px!important;
  height:22px!important;
  border-radius:999px!important;
  border:1px solid rgba(148,163,184,.38)!important;
  background:rgba(148,163,184,.22)!important;
  transition:background .16s ease,border-color .16s ease!important;
}
.usemb-invoice-portal-toggle-knob-ref{
  position:absolute!important;
  top:3px!important;
  left:3px!important;
  width:14px!important;
  height:14px!important;
  border-radius:50%!important;
  background:#9aa7b8!important;
  box-shadow:0 2px 7px rgba(0,0,0,.22)!important;
  transition:transform .16s ease,background .16s ease!important;
}
.usemb-invoice-portal-toggle-ref input:checked + .usemb-invoice-portal-toggle-track-ref{
  background:rgba(59,130,246,.88)!important;
  border-color:rgba(96,165,250,.95)!important;
}
.usemb-invoice-portal-toggle-ref input:checked + .usemb-invoice-portal-toggle-track-ref .usemb-invoice-portal-toggle-knob-ref{
  transform:translateX(20px)!important;
  background:#fff!important;
}
.usemb-invoice-portal-checkall-wrap-ref{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:18px!important;
  height:18px!important;
  margin:0!important;
  cursor:pointer!important;
}
.usemb-invoice-portal-checkall-wrap-ref input{
  position:absolute!important;
  opacity:0!important;
  width:1px!important;
  height:1px!important;
  pointer-events:none!important;
}
.usemb-invoice-portal-checkall-box-ref{
  width:17px!important;
  height:17px!important;
  border-radius:5px!important;
  border:1px solid rgba(148,163,184,.55)!important;
  background:rgba(15,23,42,.25)!important;
  position:relative!important;
}
.usemb-invoice-portal-checkall-wrap-ref input:checked + .usemb-invoice-portal-checkall-box-ref{
  background:#3b82f6!important;
  border-color:#60a5fa!important;
}
.usemb-invoice-portal-checkall-wrap-ref input:checked + .usemb-invoice-portal-checkall-box-ref:after{
  content:""!important;
  position:absolute!important;
  left:5px!important;
  top:2px!important;
  width:5px!important;
  height:9px!important;
  border:solid #fff!important;
  border-width:0 2px 2px 0!important;
  transform:rotate(45deg)!important;
}
@media(max-width:768px){
  body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-v96-portal-deliverable-batch-ref,
  body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-v96-portal-deliverable-batch-ref,
  body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-v96-portal-deliverable-batch-ref{
    padding:12px!important;
    border-radius:16px!important;
  }
  body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-attachment-grid-ref,
  body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-attachment-grid-ref,
  body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-attachment-grid-ref{
    grid-template-columns:repeat(auto-fill, minmax(156px, 156px))!important;
  }
  body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-card,
  body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-card,
  body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-card{
    width:156px!important;
    min-width:156px!important;
    max-width:156px!important;
  }
}


/* USEMB V98: hard-fix portal delivered files to Admin-style cards regardless body/layout classes */
.usemb-v96-portal-deliverable-batch-ref{
  width:min(100%,1040px)!important;
  max-width:1040px!important;
  border:1px solid rgba(148,163,184,.26)!important;
  border-radius:18px!important;
  padding:14px!important;
  background:rgba(15,23,42,.18)!important;
  overflow:visible!important;
  margin-top:14px!important;
}
.usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref,
.usemb-v96-portal-deliverable-batch-ref .usemb-v69-deliverable-batch-head-ref{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin-bottom:12px!important;
}
.usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref strong{
  display:block!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:1.15!important;
  color:var(--bs-body-color,#eaf2ff)!important;
}
.usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref span{
  display:block!important;
  margin-top:4px!important;
  font-size:12px!important;
  font-weight:700!important;
  color:rgba(226,232,240,.8)!important;
}
.usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref{
  font-size:12px!important;
  font-weight:900!important;
  color:var(--bs-body-color,#eaf2ff)!important;
  white-space:nowrap!important;
  text-align:right!important;
}
.usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-right-ref{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  flex-wrap:wrap!important;
}
.usemb-v96-portal-deliverable-batch-ref .usemb-gmail-attachment-grid-ref{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(190px,190px))!important;
  gap:12px!important;
  align-items:start!important;
  overflow:visible!important;
}
.usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-card,
.usemb-v96-portal-deliverable-batch-ref .usemb-gmail-attachment-tile-ref{
  width:190px!important;
  min-width:190px!important;
  max-width:190px!important;
  height:156px!important;
  min-height:156px!important;
  max-height:156px!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  border:1px solid rgba(59,130,246,.34)!important;
  border-radius:14px!important;
  background:rgba(15,23,42,.48)!important;
  box-shadow:none!important;
  position:relative!important;
  cursor:pointer!important;
}
.usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-preview{
  height:112px!important;
  min-height:112px!important;
  max-height:112px!important;
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  position:relative!important;
  background:rgba(2,6,23,.22)!important;
}
.usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-img{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  display:block!important;
  object-fit:cover!important;
}
.usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-preview{
  width:100%!important;
  height:100%!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  color:#ff4b74!important;
  text-align:center!important;
}
.usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-preview i{
  width:46px!important;
  height:46px!important;
  border-radius:14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:rgba(30,41,59,.76)!important;
  font-size:26px!important;
  line-height:1!important;
  color:#ff4b74!important;
}
.usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-preview span{
  display:block!important;
  margin:0!important;
  font-size:10px!important;
  font-weight:900!important;
  letter-spacing:.02em!important;
  color:#fff!important;
}
.usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-bar{
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  padding:7px 8px!important;
  background:rgba(30,41,59,.86)!important;
  border-top:1px solid rgba(148,163,184,.16)!important;
  overflow:hidden!important;
}
.usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-badge{
  width:26px!important;
  height:26px!important;
  min-width:26px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:8px!important;
  background:#ef4444!important;
  color:#fff!important;
  font-size:15px!important;
  line-height:1!important;
}
.usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-name{
  flex:1 1 auto!important;
  min-width:0!important;
  display:block!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1.1!important;
  color:#fff!important;
  margin:0!important;
}
.usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-actions{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  flex:0 0 auto!important;
}
.usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action{
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  border:0!important;
  border-radius:7px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:rgba(15,23,42,.52)!important;
  color:#eaf2ff!important;
  text-decoration:none!important;
  padding:0!important;
  font-size:13px!important;
  line-height:1!important;
}
.usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action:hover{
  background:rgba(59,130,246,.28)!important;
  color:#fff!important;
}
.usemb-v96-portal-deliverable-batch-ref .usemb-release-status-pill{
  position:absolute!important;
  left:8px!important;
  bottom:8px!important;
  max-width:calc(100% - 16px)!important;
  display:inline-flex!important;
  align-items:center!important;
  border-radius:7px!important;
  padding:3px 7px!important;
  font-size:10px!important;
  font-weight:900!important;
  line-height:1!important;
  color:#fff!important;
  background:rgba(15,23,42,.78)!important;
  opacity:0!important;
  pointer-events:none!important;
  transform:translateY(4px)!important;
  transition:opacity .14s ease, transform .14s ease!important;
}
.usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-card:hover .usemb-release-status-pill,
.usemb-v96-portal-deliverable-batch-ref .usemb-gmail-attachment-tile-ref:hover .usemb-release-status-pill{
  opacity:1!important;
  transform:translateY(0)!important;
}
.usemb-v96-portal-deliverable-batch-ref .usemb-v48-hover-meta{
  position:absolute!important;
  left:10px!important;
  right:10px!important;
  bottom:10px!important;
  z-index:4!important;
  display:none!important;
  padding:8px!important;
  border-radius:10px!important;
  background:rgba(2,6,23,.82)!important;
  color:#fff!important;
  box-shadow:0 12px 28px rgba(0,0,0,.28)!important;
}
.usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-card:hover .usemb-v48-hover-meta,
.usemb-v96-portal-deliverable-batch-ref .usemb-gmail-attachment-tile-ref:hover .usemb-v48-hover-meta{
  display:block!important;
}
.usemb-v96-portal-deliverable-batch-ref .usemb-v48-hover-meta span,
.usemb-v96-portal-deliverable-batch-ref .usemb-v48-hover-meta em{
  display:block!important;
  font-size:10px!important;
  font-weight:800!important;
  line-height:1.25!important;
  color:#fff!important;
  margin:0 0 2px!important;
}
.usemb-v96-portal-deliverable-batch-ref .usemb-v48-hover-meta em{
  font-style:normal!important;
  color:#93c5fd!important;
  margin-bottom:0!important;
}
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref,
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref,
body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref{
  background:#fff!important;
  border-color:#dbe5f2!important;
}
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref strong,
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref strong,
body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref strong{
  color:#0f172a!important;
}
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref span,
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref span,
body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref span{
  color:#64748b!important;
}
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref,
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref,
body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref{
  color:#0f172a!important;
}
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-card,
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-attachment-tile-ref,
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-card,
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-attachment-tile-ref,
body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-card,
body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-attachment-tile-ref{
  background:#f8fafc!important;
  border-color:#cfe0f7!important;
}
@media(max-width:768px){
  .usemb-v96-portal-deliverable-batch-ref{
    padding:12px!important;
    border-radius:16px!important;
  }
  .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-attachment-grid-ref{
    grid-template-columns:repeat(auto-fill,minmax(156px,156px))!important;
  }
  .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-card,
  .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-attachment-tile-ref{
    width:156px!important;
    min-width:156px!important;
    max-width:156px!important;
  }
}


/* USEMB V99: portal Download All buttons + original attachments match delivered cards + dark/light contrast */
.usemb-v99-download-all-ref{
  width:auto!important;
  min-width:128px!important;
  max-width:none!important;
  height:32px!important;
  padding:0 12px!important;
  border-radius:10px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  color:#eaf2ff!important;
  background:rgba(15,23,42,.52)!important;
  border:1px solid rgba(148,163,184,.28)!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
.usemb-v99-download-all-ref i{
  margin:0!important;
  font-size:14px!important;
  line-height:1!important;
}
.usemb-v99-download-all-ref span{
  display:inline!important;
  margin:0!important;
  color:inherit!important;
}
.usemb-v99-download-all-ref:hover{
  background:rgba(59,130,246,.28)!important;
  border-color:rgba(96,165,250,.42)!important;
  color:#fff!important;
}
.usemb-v69-batch-time-ref{
  color:#eaf2ff!important;
  background:transparent!important;
  text-shadow:none!important;
}
html[data-bs-theme="light"] .usemb-v69-batch-time-ref,
html[data-usemb-theme="light"] .usemb-v69-batch-time-ref,
body.usemb-white-shell .usemb-v69-batch-time-ref{
  color:#0f172a!important;
}
html[data-bs-theme="light"] .usemb-v99-download-all-ref,
html[data-usemb-theme="light"] .usemb-v99-download-all-ref,
body.usemb-white-shell .usemb-v99-download-all-ref{
  background:#fff!important;
  color:#0f172a!important;
  border-color:#d7e2f1!important;
}
html[data-bs-theme="light"] .usemb-v99-download-all-ref:hover,
html[data-usemb-theme="light"] .usemb-v99-download-all-ref:hover,
body.usemb-white-shell .usemb-v99-download-all-ref:hover{
  background:#eef5ff!important;
  color:#0f172a!important;
  border-color:#93c5fd!important;
}

/* Original/reference attachments: same visual card system as delivered tiles */
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-grid-ref{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(190px,190px))!important;
  gap:12px!important;
  align-items:start!important;
  overflow:visible!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-tile-ref{
  width:190px!important;
  min-width:190px!important;
  max-width:190px!important;
  height:156px!important;
  min-height:156px!important;
  max-height:156px!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  border:1px solid rgba(59,130,246,.34)!important;
  border-radius:14px!important;
  background:rgba(15,23,42,.48)!important;
  box-shadow:none!important;
  position:relative!important;
  cursor:pointer!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-tile-ref > img{
  width:100%!important;
  height:112px!important;
  min-height:112px!important;
  max-height:112px!important;
  display:block!important;
  object-fit:cover!important;
  border-radius:0!important;
  background:rgba(2,6,23,.22)!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-file-icon-ref{
  width:100%!important;
  height:112px!important;
  min-height:112px!important;
  max-height:112px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  color:#ff4b74!important;
  text-align:center!important;
  background:rgba(2,6,23,.22)!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-file-icon-ref i{
  width:46px!important;
  height:46px!important;
  border-radius:14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:rgba(30,41,59,.76)!important;
  font-size:26px!important;
  line-height:1!important;
  color:#ff4b74!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-file-icon-ref span{
  display:block!important;
  margin:0!important;
  font-size:10px!important;
  font-weight:900!important;
  letter-spacing:.02em!important;
  color:#fff!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-fold-ref{
  display:none!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref{
  position:static!important;
  inset:auto!important;
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  padding:7px 8px!important;
  background:rgba(30,41,59,.86)!important;
  border-top:1px solid rgba(148,163,184,.16)!important;
  overflow:hidden!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  pointer-events:auto!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref:before{
  content:"\F42A"!important;
  font-family:"bootstrap-icons"!important;
  width:26px!important;
  height:26px!important;
  min-width:26px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:8px!important;
  background:#ef4444!important;
  color:#fff!important;
  font-size:15px!important;
  line-height:1!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref strong{
  flex:1 1 auto!important;
  min-width:0!important;
  display:block!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1.1!important;
  color:#fff!important;
  margin:0!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref > span{
  display:none!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-actions-ref{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  flex:0 0 auto!important;
  opacity:1!important;
  visibility:visible!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref{
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  border:0!important;
  border-radius:7px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:rgba(15,23,42,.52)!important;
  color:#eaf2ff!important;
  text-decoration:none!important;
  padding:0!important;
  font-size:13px!important;
  line-height:1!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref:hover{
  background:rgba(59,130,246,.28)!important;
  color:#fff!important;
}
html[data-bs-theme="light"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-tile-ref,
html[data-usemb-theme="light"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-tile-ref,
body.usemb-white-shell .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-tile-ref{
  background:#f8fafc!important;
  border-color:#cfe0f7!important;
}
html[data-bs-theme="light"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-file-icon-ref,
html[data-usemb-theme="light"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-file-icon-ref,
body.usemb-white-shell .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-file-icon-ref{
}
@media(max-width:768px){
  .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-grid-ref{
    grid-template-columns:repeat(auto-fill,minmax(156px,156px))!important;
  }
  .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-tile-ref{
    width:156px!important;
    min-width:156px!important;
    max-width:156px!important;
  }
}



/* USEMB V100: final portal attachment color contrast for dark/light modes */
html[data-usemb-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref,
html[data-bs-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref,
body.usemb-dark-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref,
body.admin-layout.usemb-dark-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref,
html[data-usemb-theme="blue"] .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref{
  color:#f8fafc!important;
  background:transparent!important;
  text-shadow:none!important;
}
html[data-usemb-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref::before,
html[data-bs-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref::before,
body.usemb-dark-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref::before,
html[data-usemb-theme="blue"] .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref::before{
  color:#f8fafc!important;
  opacity:.9!important;
}
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref,
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref,
body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref{
  background:#ffffff!important;
  border-color:#dbe5f2!important;
  box-shadow:none!important;
}
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref strong,
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref strong,
body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref strong,
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref span,
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref span,
body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref span,
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref,
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref,
body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref{
  color:#0f172a!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref::before,
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref::before,
body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref::before{
  color:#0f172a!important;
  opacity:.85!important;
}
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref,
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref,
body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref{
  background:#ffffff!important;
  border-color:#cbd5e1!important;
  color:#0f172a!important;
  opacity:1!important;
}
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref i,
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref i,
body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref i,
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref span,
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref span,
body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref span{
  color:#0f172a!important;
  opacity:1!important;
}
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-card,
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-card,
body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-card,
html[data-usemb-theme="light"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-tile-ref,
html[data-bs-theme="light"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-tile-ref,
body.usemb-white-shell .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-tile-ref{
  background:#f8fafc!important;
  border-color:#cbd5e1!important;
}
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-bar,
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-bar,
body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-bar,
html[data-usemb-theme="light"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref,
html[data-bs-theme="light"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref,
body.usemb-white-shell .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref{
  background:#ffffff!important;
  border-top:1px solid #dbe5f2!important;
}
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-name,
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-name,
body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-name,
html[data-usemb-theme="light"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref strong,
html[data-bs-theme="light"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref strong,
body.usemb-white-shell .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref strong{
  color:#0f172a!important;
  opacity:1!important;
}
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action,
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action,
body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action,
html[data-usemb-theme="light"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref,
html[data-bs-theme="light"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref,
body.usemb-white-shell .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref{
  background:#f1f5f9!important;
  color:#0f172a!important;
}
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action:hover,
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action:hover,
body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action:hover,
html[data-usemb-theme="light"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref:hover,
html[data-bs-theme="light"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref:hover,
body.usemb-white-shell .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref:hover{
  background:#dbeafe!important;
  color:#0f172a!important;
}



/* USEMB V100B: dark mode wins after generic light/body fallback rules */
html[data-usemb-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref,
html[data-bs-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref,
html[data-usemb-theme="blue"] .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref,
body.usemb-dark-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref{
  color:#f8fafc!important;
}
html[data-usemb-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref::before,
html[data-bs-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref::before,
html[data-usemb-theme="blue"] .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref::before,
body.usemb-dark-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref::before{
  color:#f8fafc!important;
}
html[data-usemb-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref strong,
html[data-bs-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref strong,
html[data-usemb-theme="blue"] .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref strong,
body.usemb-dark-shell .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref strong{
  color:#f8fafc!important;
}
html[data-usemb-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref span,
html[data-bs-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref span,
html[data-usemb-theme="blue"] .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref span,
body.usemb-dark-shell .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref span{
  color:rgba(226,232,240,.88)!important;
}
html[data-usemb-theme="dark"] .usemb-v99-download-all-ref,
html[data-bs-theme="dark"] .usemb-v99-download-all-ref,
html[data-usemb-theme="blue"] .usemb-v99-download-all-ref,
body.usemb-dark-shell .usemb-v99-download-all-ref{
  background:rgba(15,23,42,.52)!important;
  color:#f8fafc!important;
  border-color:rgba(148,163,184,.32)!important;
}
html[data-usemb-theme="dark"] .usemb-v99-download-all-ref i,
html[data-bs-theme="dark"] .usemb-v99-download-all-ref i,
html[data-usemb-theme="blue"] .usemb-v99-download-all-ref i,
body.usemb-dark-shell .usemb-v99-download-all-ref i,
html[data-usemb-theme="dark"] .usemb-v99-download-all-ref span,
html[data-bs-theme="dark"] .usemb-v99-download-all-ref span,
html[data-usemb-theme="blue"] .usemb-v99-download-all-ref span,
body.usemb-dark-shell .usemb-v99-download-all-ref span{
  color:#f8fafc!important;
}



/* USEMB V101: fix portal attachment contrast regression exactly for dark/light themes */
html[data-usemb-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-bar,
html[data-bs-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-bar,
html[data-usemb-theme="blue"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-bar,
html[data-usemb-theme="dark"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref,
html[data-bs-theme="dark"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref,
html[data-usemb-theme="blue"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref{
  background:rgba(30,41,59,.88)!important;
  border-top:1px solid rgba(148,163,184,.16)!important;
}
html[data-usemb-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-name,
html[data-bs-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-name,
html[data-usemb-theme="blue"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-name,
html[data-usemb-theme="dark"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref strong,
html[data-bs-theme="dark"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref strong,
html[data-usemb-theme="blue"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref strong{
  color:#ffffff!important;
  opacity:1!important;
}
html[data-usemb-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action,
html[data-bs-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action,
html[data-usemb-theme="blue"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action,
html[data-usemb-theme="dark"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref,
html[data-bs-theme="dark"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref,
html[data-usemb-theme="blue"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref{
  background:rgba(15,23,42,.55)!important;
  color:#ffffff!important;
}
html[data-usemb-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action i,
html[data-bs-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action i,
html[data-usemb-theme="blue"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action i,
html[data-usemb-theme="dark"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref i,
html[data-bs-theme="dark"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref i,
html[data-usemb-theme="blue"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref i{
  color:#ffffff!important;
}
html[data-usemb-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref,
html[data-bs-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref,
html[data-usemb-theme="blue"] .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref{
  background:rgba(15,23,42,.55)!important;
  border-color:rgba(148,163,184,.32)!important;
  color:#ffffff!important;
  opacity:1!important;
}
html[data-usemb-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref i,
html[data-bs-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref i,
html[data-usemb-theme="blue"] .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref i,
html[data-usemb-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref span,
html[data-bs-theme="dark"] .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref span,
html[data-usemb-theme="blue"] .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref span{
  color:#ffffff!important;
  opacity:1!important;
}
html[data-usemb-theme="light"] .usemb-gmail-attachments-title-ref,
html[data-bs-theme="light"] .usemb-gmail-attachments-title-ref,
html[data-usemb-theme="light"] .usemb-gmail-attachments-title-ref i,
html[data-bs-theme="light"] .usemb-gmail-attachments-title-ref i{
  color:#0f172a!important;
  opacity:1!important;
}
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref,
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref{
  background:#ffffff!important;
  border-color:#cbd5e1!important;
  color:#0f172a!important;
  opacity:1!important;
}
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref i,
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref i,
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref span,
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref span{
  color:#0f172a!important;
  opacity:1!important;
}
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-bar,
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-bar,
html[data-usemb-theme="light"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref,
html[data-bs-theme="light"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref{
  background:#ffffff!important;
  border-top:1px solid #dbe5f2!important;
}
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-name,
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-name,
html[data-usemb-theme="light"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref strong,
html[data-bs-theme="light"] .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref strong{
  color:#0f172a!important;
  opacity:1!important;
}
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref,
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref,
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref::before,
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-v69-batch-time-ref::before,
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref strong,
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref strong,
html[data-usemb-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref span,
html[data-bs-theme="light"] .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref span{
  color:#0f172a!important;
  opacity:1!important;
}



/* USEMB V102: final hard color overrides for portal attachment cards */
html[data-usemb-theme="dark"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-tile-ref,
html[data-bs-theme="dark"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-tile-ref,
html[data-usemb-theme="blue"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-tile-ref,
html[data-usemb-theme="dark"] body.usemb-white-shell .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-tile-ref,
html[data-bs-theme="dark"] body.usemb-white-shell .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-tile-ref,
html[data-usemb-theme="blue"] body.usemb-white-shell .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-tile-ref{
  background:#0f172a!important;
  border-color:rgba(59,130,246,.45)!important;
}
html[data-usemb-theme="dark"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref,
html[data-bs-theme="dark"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref,
html[data-usemb-theme="blue"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref,
html[data-usemb-theme="dark"] body.usemb-white-shell .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref,
html[data-bs-theme="dark"] body.usemb-white-shell .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref,
html[data-usemb-theme="blue"] body.usemb-white-shell .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref{
  position:static!important;
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  padding:7px 8px!important;
  background:#1e293b!important;
  border-top:1px solid rgba(148,163,184,.18)!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  pointer-events:auto!important;
}
html[data-usemb-theme="dark"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref strong,
html[data-bs-theme="dark"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref strong,
html[data-usemb-theme="blue"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref strong,
html[data-usemb-theme="dark"] body.usemb-white-shell .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref strong,
html[data-bs-theme="dark"] body.usemb-white-shell .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref strong,
html[data-usemb-theme="blue"] body.usemb-white-shell .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref strong{
  color:#ffffff!important;
  opacity:1!important;
}
html[data-usemb-theme="dark"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref > span,
html[data-bs-theme="dark"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref > span,
html[data-usemb-theme="blue"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref > span{
  color:rgba(226,232,240,.84)!important;
}
html[data-usemb-theme="dark"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref,
html[data-bs-theme="dark"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref,
html[data-usemb-theme="blue"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref{
  background:#0f172a!important;
  color:#ffffff!important;
}
html[data-usemb-theme="dark"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref i,
html[data-bs-theme="dark"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref i,
html[data-usemb-theme="blue"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref i{
  color:#ffffff!important;
}

/* Delivered cards dark bottom bar must stay dark, never white */
html[data-usemb-theme="dark"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-bar,
html[data-bs-theme="dark"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-bar,
html[data-usemb-theme="blue"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-bar,
html[data-usemb-theme="dark"] body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-bar,
html[data-bs-theme="dark"] body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-bar,
html[data-usemb-theme="blue"] body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-bar{
  background:#1e293b!important;
  border-top:1px solid rgba(148,163,184,.18)!important;
}
html[data-usemb-theme="dark"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-name,
html[data-bs-theme="dark"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-name,
html[data-usemb-theme="blue"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-name,
html[data-usemb-theme="dark"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action,
html[data-bs-theme="dark"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action,
html[data-usemb-theme="blue"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action,
html[data-usemb-theme="dark"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action i,
html[data-bs-theme="dark"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action i,
html[data-usemb-theme="blue"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action i{
  color:#ffffff!important;
}
html[data-usemb-theme="dark"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action,
html[data-bs-theme="dark"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action,
html[data-usemb-theme="blue"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action{
  background:#0f172a!important;
}

/* White mode readability: attachment(s), Download All, and bars are black/white */
html[data-usemb-theme="light"] body .usemb-gmail-attachments-title-ref,
html[data-bs-theme="light"] body .usemb-gmail-attachments-title-ref,
html[data-usemb-theme="light"] body.usemb-white-shell .usemb-gmail-attachments-title-ref,
html[data-bs-theme="light"] body.usemb-white-shell .usemb-gmail-attachments-title-ref,
html[data-usemb-theme="light"] body .usemb-gmail-attachments-title-ref i,
html[data-bs-theme="light"] body .usemb-gmail-attachments-title-ref i,
html[data-usemb-theme="light"] body.usemb-white-shell .usemb-gmail-attachments-title-ref i,
html[data-bs-theme="light"] body.usemb-white-shell .usemb-gmail-attachments-title-ref i{
  color:#0f172a!important;
  opacity:1!important;
}
html[data-usemb-theme="light"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref,
html[data-bs-theme="light"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref,
html[data-usemb-theme="light"] body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref,
html[data-bs-theme="light"] body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref{
  background:#ffffff!important;
  border-color:#cbd5e1!important;
  color:#0f172a!important;
  opacity:1!important;
}
html[data-usemb-theme="light"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref i,
html[data-bs-theme="light"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref i,
html[data-usemb-theme="light"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref span,
html[data-bs-theme="light"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref span,
html[data-usemb-theme="light"] body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref i,
html[data-bs-theme="light"] body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref i,
html[data-usemb-theme="light"] body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref span,
html[data-bs-theme="light"] body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref span{
  color:#0f172a!important;
  opacity:1!important;
}
html[data-usemb-theme="light"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-bar,
html[data-bs-theme="light"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-bar,
html[data-usemb-theme="light"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref,
html[data-bs-theme="light"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref{
  background:#ffffff!important;
  border-top:1px solid #dbe5f2!important;
}
html[data-usemb-theme="light"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-name,
html[data-bs-theme="light"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-name,
html[data-usemb-theme="light"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref strong,
html[data-bs-theme="light"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref strong{
  color:#0f172a!important;
  opacity:1!important;
}
html[data-usemb-theme="light"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action,
html[data-bs-theme="light"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action,
html[data-usemb-theme="light"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref,
html[data-bs-theme="light"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref{
  background:#f1f5f9!important;
  color:#0f172a!important;
}
html[data-usemb-theme="light"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action i,
html[data-bs-theme="light"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-file-action i,
html[data-usemb-theme="light"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref i,
html[data-bs-theme="light"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref i{
  color:#0f172a!important;
}
html[data-usemb-theme="dark"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-bar,
html[data-bs-theme="dark"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-bar,
html[data-usemb-theme="blue"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v48-attachment-bar,
html[data-usemb-theme="dark"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref,
html[data-bs-theme="dark"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref,
html[data-usemb-theme="blue"] body .usemb-gmail-message-content-ref .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref{
  background:#1e293b!important;
  border-top:1px solid rgba(148,163,184,.18)!important;
}
html[data-usemb-theme="light"] body .usemb-gmail-attachments-title-ref,
html[data-bs-theme="light"] body .usemb-gmail-attachments-title-ref,
html[data-usemb-theme="light"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref,
html[data-bs-theme="light"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref,
html[data-usemb-theme="light"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref i,
html[data-bs-theme="light"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref i,
html[data-usemb-theme="light"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref span,
html[data-bs-theme="light"] body .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref span{
  color:#0f172a!important;
  opacity:1!important;
}



/* USEMB V104: original/top attachments same card UI as delivered files, without forcing preview backgrounds */
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-grid-ref{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(190px,190px))!important;
  gap:12px!important;
  align-items:start!important;
  overflow:visible!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-tile-ref{
  width:190px!important;
  min-width:190px!important;
  max-width:190px!important;
  height:156px!important;
  min-height:156px!important;
  max-height:156px!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  border:1px solid rgba(59,130,246,.42)!important;
  border-radius:14px!important;
  background:rgba(15,23,42,.48)!important;
  box-shadow:none!important;
  position:relative!important;
  cursor:pointer!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-tile-ref > img{
  width:100%!important;
  height:112px!important;
  min-height:112px!important;
  max-height:112px!important;
  display:block!important;
  object-fit:cover!important;
  border-radius:0!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-file-icon-ref{
  width:100%!important;
  height:112px!important;
  min-height:112px!important;
  max-height:112px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  color:#ff4b74!important;
  text-align:center!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-file-icon-ref i{
  width:46px!important;
  height:46px!important;
  border-radius:14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#1e293b!important;
  font-size:26px!important;
  line-height:1!important;
  color:#ff4b74!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-file-icon-ref span{
  display:block!important;
  margin:0!important;
  font-size:10px!important;
  font-weight:900!important;
  letter-spacing:.02em!important;
  color:#ffffff!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-fold-ref{
  display:none!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref{
  position:static!important;
  inset:auto!important;
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  padding:7px 8px!important;
  background:#1e293b!important;
  border-top:1px solid rgba(148,163,184,.18)!important;
  overflow:hidden!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  pointer-events:auto!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref:before{
  content:"\F42A"!important;
  font-family:"bootstrap-icons"!important;
  width:26px!important;
  height:26px!important;
  min-width:26px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:8px!important;
  background:#ef4444!important;
  color:#ffffff!important;
  font-size:15px!important;
  line-height:1!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref strong{
  flex:1 1 auto!important;
  min-width:0!important;
  display:block!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1.1!important;
  color:#ffffff!important;
  margin:0!important;
  opacity:1!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref > span{
  display:none!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-actions-ref{
  position:static!important;
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  flex:0 0 auto!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref{
  position:static!important;
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  border:0!important;
  border-radius:7px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#0f172a!important;
  color:#ffffff!important;
  text-decoration:none!important;
  padding:0!important;
  font-size:13px!important;
  line-height:1!important;
  opacity:1!important;
  visibility:visible!important;
}
.usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref i{
  color:#ffffff!important;
}

/* Light theme only for top/original attachment bottom bar */
html[data-usemb-theme="light"] body .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-tile-ref,
html[data-bs-theme="light"] body .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-tile-ref,
body.usemb-white-shell .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-tile-ref{
  background:#f8fafc!important;
  border-color:#cbd5e1!important;
}
html[data-usemb-theme="light"] body .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref,
html[data-bs-theme="light"] body .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref,
body.usemb-white-shell .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref{
  background:#ffffff!important;
  border-top:1px solid #dbe5f2!important;
}
html[data-usemb-theme="light"] body .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref strong,
html[data-bs-theme="light"] body .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref strong,
body.usemb-white-shell .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-overlay-ref strong{
  color:#0f172a!important;
}
html[data-usemb-theme="light"] body .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref,
html[data-bs-theme="light"] body .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref,
body.usemb-white-shell .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref{
  background:#f1f5f9!important;
  color:#0f172a!important;
}
html[data-usemb-theme="light"] body .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref i,
html[data-bs-theme="light"] body .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref i,
body.usemb-white-shell .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-action-ref i{
  color:#0f172a!important;
}
@media(max-width:768px){
  .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-grid-ref{
    grid-template-columns:repeat(auto-fill,minmax(156px,156px))!important;
  }
  .usemb-gmail-message-content-ref > .usemb-gmail-attachments-section-ref:not(.usemb-gmail-delivered-section-ref) .usemb-gmail-attachment-tile-ref{
    width:156px!important;
    min-width:156px!important;
    max-width:156px!important;
  }
}



/* USEMB V105: exact top/original attachment cards like delivered cards */
.usemb-v105-original-files-section-ref .usemb-gmail-attachment-grid-ref{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(190px,190px))!important;
  gap:12px!important;
  align-items:start!important;
  overflow:visible!important;
}
.usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref{
  width:190px!important;
  min-width:190px!important;
  max-width:190px!important;
  height:156px!important;
  min-height:156px!important;
  max-height:156px!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  border:1px solid rgba(59,130,246,.42)!important;
  border-radius:14px!important;
  background:rgba(15,23,42,.48)!important;
  box-shadow:none!important;
  position:relative!important;
  cursor:pointer!important;
}
.usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref > img{
  position:static!important;
  inset:auto!important;
  width:100%!important;
  height:112px!important;
  min-height:112px!important;
  max-height:112px!important;
  flex:0 0 112px!important;
  display:block!important;
  object-fit:cover!important;
  border-radius:0!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
}
.usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref .usemb-gmail-file-icon-ref{
  position:static!important;
  width:100%!important;
  height:112px!important;
  min-height:112px!important;
  max-height:112px!important;
  flex:0 0 112px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  margin:0!important;
  padding:0!important;
  text-align:center!important;
}
.usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref .usemb-gmail-file-icon-ref i{
  width:46px!important;
  height:46px!important;
  border-radius:14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#1e293b!important;
  color:#ff4b74!important;
  font-size:26px!important;
  line-height:1!important;
}
.usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref .usemb-gmail-file-icon-ref span{
  display:block!important;
  margin:0!important;
  color:#ffffff!important;
  font-size:10px!important;
  font-weight:900!important;
  line-height:1!important;
}
.usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref .usemb-gmail-attachment-fold-ref{
  display:none!important;
}
.usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref{
  position:static!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  width:100%!important;
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  flex:0 0 44px!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  padding:7px 8px!important;
  margin:0!important;
  background:#1e293b!important;
  border-top:1px solid rgba(148,163,184,.18)!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  pointer-events:auto!important;
  overflow:hidden!important;
}
.usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref::before{
  content:"\F42A"!important;
  font-family:"bootstrap-icons"!important;
  width:26px!important;
  height:26px!important;
  min-width:26px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:8px!important;
  background:#ef4444!important;
  color:#ffffff!important;
  font-size:15px!important;
  line-height:1!important;
}
.usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref strong{
  flex:1 1 auto!important;
  min-width:0!important;
  display:block!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:#ffffff!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1.1!important;
  margin:0!important;
  opacity:1!important;
}
.usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref > span{
  display:none!important;
}
.usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref .usemb-gmail-attachment-actions-ref{
  position:static!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  margin:0 0 0 auto!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:5px!important;
  flex:0 0 auto!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  pointer-events:auto!important;
}
.usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref .usemb-gmail-attachment-action-ref{
  position:static!important;
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  border:0!important;
  border-radius:7px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#0f172a!important;
  color:#ffffff!important;
  text-decoration:none!important;
  padding:0!important;
  margin:0!important;
  font-size:13px!important;
  line-height:1!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
}
.usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref .usemb-gmail-attachment-action-ref i{
  color:#ffffff!important;
  line-height:1!important;
}
@media(max-width:768px){
  .usemb-v105-original-files-section-ref .usemb-gmail-attachment-grid-ref{
    grid-template-columns:repeat(auto-fill,minmax(156px,156px))!important;
  }
  .usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref{
    width:156px!important;
    min-width:156px!important;
    max-width:156px!important;
  }
}



/* USEMB V105: light mode only - delivered box white and small labels black */
body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref,
html[data-usemb-theme="light"] body .usemb-v96-portal-deliverable-batch-ref,
html[data-bs-theme="light"] body .usemb-v96-portal-deliverable-batch-ref{
  background:#ffffff!important;
}
body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref strong,
body.usemb-white-shell .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref span,
body.usemb-white-shell .usemb-gmail-attachments-title-ref,
body.usemb-white-shell .usemb-gmail-attachments-title-ref i,
html[data-usemb-theme="light"] body .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref strong,
html[data-usemb-theme="light"] body .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref span,
html[data-usemb-theme="light"] body .usemb-gmail-attachments-title-ref,
html[data-usemb-theme="light"] body .usemb-gmail-attachments-title-ref i,
html[data-bs-theme="light"] body .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref strong,
html[data-bs-theme="light"] body .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref span,
html[data-bs-theme="light"] body .usemb-gmail-attachments-title-ref,
html[data-bs-theme="light"] body .usemb-gmail-attachments-title-ref i{
  color:#0f172a!important;
  opacity:1!important;
}
body.usemb-white-shell .usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref,
html[data-usemb-theme="light"] body .usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref,
html[data-bs-theme="light"] body .usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref{
  background:#f8fafc!important;
  border-color:#cbd5e1!important;
}
body.usemb-white-shell .usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref,
html[data-usemb-theme="light"] body .usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref,
html[data-bs-theme="light"] body .usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref{
  background:#ffffff!important;
  border-top:1px solid #dbe5f2!important;
}
body.usemb-white-shell .usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref strong,
html[data-usemb-theme="light"] body .usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref strong,
html[data-bs-theme="light"] body .usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref strong{
  color:#0f172a!important;
}
body.usemb-white-shell .usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref .usemb-gmail-attachment-action-ref,
body.usemb-white-shell .usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref .usemb-gmail-attachment-action-ref i,
html[data-usemb-theme="light"] body .usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref .usemb-gmail-attachment-action-ref,
html[data-usemb-theme="light"] body .usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref .usemb-gmail-attachment-action-ref i,
html[data-bs-theme="light"] body .usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref .usemb-gmail-attachment-action-ref,
html[data-bs-theme="light"] body .usemb-v105-original-files-section-ref .usemb-v105-original-file-card-ref .usemb-gmail-attachment-action-ref i{
  background:#f1f5f9!important;
  color:#0f172a!important;
}



/* USEMB V106: final cleaned portal attachment UI after removing conflicting old CSS */
body.admin-layout.route-client-orders-details .usemb-v105-original-files-section-ref .usemb-gmail-attachment-grid-ref,
body.admin-layout.route-sales-orders-details .usemb-v105-original-files-section-ref .usemb-gmail-attachment-grid-ref,
body.admin-layout.route-vendor-orders-details .usemb-v105-original-files-section-ref .usemb-gmail-attachment-grid-ref{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(190px,190px))!important;
  gap:12px!important;
  align-items:start!important;
  overflow:visible!important;
}
body.admin-layout.route-client-orders-details .usemb-v105-original-file-card-ref,
body.admin-layout.route-sales-orders-details .usemb-v105-original-file-card-ref,
body.admin-layout.route-vendor-orders-details .usemb-v105-original-file-card-ref{
  width:190px!important;
  min-width:190px!important;
  max-width:190px!important;
  height:156px!important;
  min-height:156px!important;
  max-height:156px!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  border:1px solid rgba(59,130,246,.42)!important;
  border-radius:14px!important;
  background:rgba(15,23,42,.48)!important;
  box-shadow:none!important;
  position:relative!important;
  cursor:pointer!important;
}
body.admin-layout.route-client-orders-details .usemb-v105-original-file-card-ref > img,
body.admin-layout.route-sales-orders-details .usemb-v105-original-file-card-ref > img,
body.admin-layout.route-vendor-orders-details .usemb-v105-original-file-card-ref > img{
  position:static!important;
  inset:auto!important;
  width:100%!important;
  height:112px!important;
  min-height:112px!important;
  max-height:112px!important;
  flex:0 0 112px!important;
  display:block!important;
  object-fit:cover!important;
  border-radius:0!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
}
body.admin-layout.route-client-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-file-icon-ref,
body.admin-layout.route-sales-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-file-icon-ref,
body.admin-layout.route-vendor-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-file-icon-ref{
  position:static!important;
  width:100%!important;
  height:112px!important;
  min-height:112px!important;
  max-height:112px!important;
  flex:0 0 112px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  margin:0!important;
  padding:0!important;
  text-align:center!important;
}
body.admin-layout.route-client-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-file-icon-ref i,
body.admin-layout.route-sales-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-file-icon-ref i,
body.admin-layout.route-vendor-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-file-icon-ref i{
  width:46px!important;
  height:46px!important;
  border-radius:14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#1e293b!important;
  color:#ff4b74!important;
  font-size:26px!important;
  line-height:1!important;
}
body.admin-layout.route-client-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-file-icon-ref span,
body.admin-layout.route-sales-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-file-icon-ref span,
body.admin-layout.route-vendor-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-file-icon-ref span{
  display:block!important;
  margin:0!important;
  color:#ffffff!important;
  font-size:10px!important;
  font-weight:900!important;
  line-height:1!important;
}
body.admin-layout.route-client-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-fold-ref,
body.admin-layout.route-sales-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-fold-ref,
body.admin-layout.route-vendor-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-fold-ref{
  display:none!important;
}
body.admin-layout.route-client-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref,
body.admin-layout.route-sales-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref,
body.admin-layout.route-vendor-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref{
  position:static!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  width:100%!important;
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  flex:0 0 44px!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  padding:7px 8px!important;
  margin:0!important;
  background:#1e293b!important;
  border-top:1px solid rgba(148,163,184,.18)!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  pointer-events:auto!important;
  overflow:hidden!important;
}
body.admin-layout.route-client-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref::before,
body.admin-layout.route-sales-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref::before,
body.admin-layout.route-vendor-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref::before{
  content:"\F42A"!important;
  font-family:"bootstrap-icons"!important;
  width:26px!important;
  height:26px!important;
  min-width:26px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:8px!important;
  background:#ef4444!important;
  color:#ffffff!important;
  font-size:15px!important;
  line-height:1!important;
}
body.admin-layout.route-client-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref strong,
body.admin-layout.route-sales-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref strong,
body.admin-layout.route-vendor-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref strong{
  flex:1 1 auto!important;
  min-width:0!important;
  display:block!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:#ffffff!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1.1!important;
  margin:0!important;
  opacity:1!important;
}
body.admin-layout.route-client-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref > span,
body.admin-layout.route-sales-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref > span,
body.admin-layout.route-vendor-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref > span{
  display:none!important;
}
body.admin-layout.route-client-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-actions-ref,
body.admin-layout.route-sales-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-actions-ref,
body.admin-layout.route-vendor-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-actions-ref{
  position:static!important;
  inset:auto!important;
  margin:0 0 0 auto!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:5px!important;
  flex:0 0 auto!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  pointer-events:auto!important;
}
body.admin-layout.route-client-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-action-ref,
body.admin-layout.route-sales-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-action-ref,
body.admin-layout.route-vendor-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-action-ref{
  position:static!important;
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  border:0!important;
  border-radius:7px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#0f172a!important;
  color:#ffffff!important;
  text-decoration:none!important;
  padding:0!important;
  margin:0!important;
  font-size:13px!important;
  line-height:1!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
}
body.admin-layout.route-client-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-action-ref i,
body.admin-layout.route-sales-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-action-ref i,
body.admin-layout.route-vendor-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-action-ref i{
  color:#ffffff!important;
  line-height:1!important;
}

/* white mode only */
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-v96-portal-deliverable-batch-ref,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-v96-portal-deliverable-batch-ref,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-v96-portal-deliverable-batch-ref{
  background:#ffffff!important;
}
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-gmail-attachments-title-ref,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-gmail-attachments-title-ref,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-gmail-attachments-title-ref,
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-gmail-attachments-title-ref i,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-gmail-attachments-title-ref i,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-gmail-attachments-title-ref i,
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref strong,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref strong,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref strong,
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref span,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref span,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-gmail-delivered-head-ref span,
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref,
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref i,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref i,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref i,
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref span,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref span,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-v96-portal-deliverable-batch-ref .usemb-v99-download-all-ref span{
  color:#0f172a!important;
  opacity:1!important;
}
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-v105-original-file-card-ref,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-v105-original-file-card-ref,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-v105-original-file-card-ref{
  background:#f8fafc!important;
  border-color:#cbd5e1!important;
}
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref{
  background:#ffffff!important;
  border-top:1px solid #dbe5f2!important;
}
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref strong,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref strong,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-overlay-ref strong,
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-action-ref,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-action-ref,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-action-ref,
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-action-ref i,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-action-ref i,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-action-ref i{
  color:#0f172a!important;
  opacity:1!important;
}
body.admin-layout.usemb-white-shell.route-client-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-action-ref,
body.admin-layout.usemb-white-shell.route-sales-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-action-ref,
body.admin-layout.usemb-white-shell.route-vendor-orders-details .usemb-v105-original-file-card-ref .usemb-gmail-attachment-action-ref{
  background:#f1f5f9!important;
}
@media(max-width:768px){
  body.admin-layout.route-client-orders-details .usemb-v105-original-files-section-ref .usemb-gmail-attachment-grid-ref,
  body.admin-layout.route-sales-orders-details .usemb-v105-original-files-section-ref .usemb-gmail-attachment-grid-ref,
  body.admin-layout.route-vendor-orders-details .usemb-v105-original-files-section-ref .usemb-gmail-attachment-grid-ref{
    grid-template-columns:repeat(auto-fill,minmax(156px,156px))!important;
  }
  body.admin-layout.route-client-orders-details .usemb-v105-original-file-card-ref,
  body.admin-layout.route-sales-orders-details .usemb-v105-original-file-card-ref,
  body.admin-layout.route-vendor-orders-details .usemb-v105-original-file-card-ref{
    width:156px!important;
    min-width:156px!important;
    max-width:156px!important;
  }
}


body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref{
  --usemb-v106-title:#0f172a;
  --usemb-v106-muted:#64748b;
  --usemb-v106-card-bg:#ffffff;
  --usemb-v106-card-border:rgba(37,99,235,.32);
  --usemb-v106-card-hover-shadow:0 14px 28px rgba(15,23,42,.12);
  --usemb-v106-preview-bg:#f8fafc;
  --usemb-v106-file-preview-bg:linear-gradient(135deg,#f8fafc,#eef2ff);
  --usemb-v106-file-preview-text:#0f172a;
  --usemb-v106-file-icon-bg:#e5e7eb;
  --usemb-v106-bar-bg:#f1f5f9;
  --usemb-v106-bar-border:rgba(15,23,42,.10);
  --usemb-v106-bar-text:#0f172a;
  --usemb-v106-action-bg:rgba(15,23,42,.06);
  --usemb-v106-action-text:#0f172a;
  --usemb-v106-action-hover-bg:rgba(15,23,42,.12);
  --usemb-v106-action-hover-text:#0f172a;
  --usemb-v106-delivered-bg:#ffffff;
  --usemb-v106-delivered-border:#dbe5f2;
  --usemb-v106-download-bg:#ffffff;
  --usemb-v106-download-text:#0f172a;
  --usemb-v106-download-border:#cbd5e1;
  --usemb-v106-download-hover-bg:#eef5ff;
  --usemb-v106-download-hover-text:#0f172a;
  --usemb-v106-download-hover-border:#93c5fd;
}

html[data-usemb-theme="dark"] body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref,
html[data-bs-theme="dark"] body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref,
html[data-usemb-theme="blue"] body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref,
body.usemb-dark-shell.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref{
  --usemb-v106-title:#f8fafc;
  --usemb-v106-muted:rgba(226,232,240,.78);
  --usemb-v106-card-bg:#0b1322;
  --usemb-v106-card-border:rgba(59,130,246,.48);
  --usemb-v106-card-hover-shadow:0 14px 28px rgba(0,0,0,.22);
  --usemb-v106-preview-bg:#07101d;
  --usemb-v106-file-preview-bg:linear-gradient(135deg,#101827,#0b1220);
  --usemb-v106-file-preview-text:#f8fafc;
  --usemb-v106-file-icon-bg:#1f2937;
  --usemb-v106-bar-bg:#1f2937;
  --usemb-v106-bar-border:rgba(148,163,184,.16);
  --usemb-v106-bar-text:#f8fafc;
  --usemb-v106-action-bg:rgba(255,255,255,.06);
  --usemb-v106-action-text:#f8fafc;
  --usemb-v106-action-hover-bg:rgba(255,255,255,.14);
  --usemb-v106-action-hover-text:#ffffff;
  --usemb-v106-delivered-bg:#101827;
  --usemb-v106-delivered-border:#263448;
  --usemb-v106-download-bg:rgba(15,23,42,.52);
  --usemb-v106-download-text:#f8fafc;
  --usemb-v106-download-border:rgba(148,163,184,.32);
  --usemb-v106-download-hover-bg:rgba(59,130,246,.28);
  --usemb-v106-download-hover-text:#ffffff;
  --usemb-v106-download-hover-border:rgba(96,165,250,.42);
}


/* USEMB V106: one Admin attachment UI for Admin/Client/Sales/Vendor Order Details.
   Portals now use the same v48 attachment-card HTML/classes; this block only prevents older portal CSS from overriding it. */
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref{
  --usemb-v106-att-card-bg: var(--usemb-v106-card-bg);
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-gmail-attachments-section-ref{
  margin-top:10px!important;
  margin-bottom:12px!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-gmail-attachments-title-ref{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin:0 0 10px!important;
  font-size:13px!important;
  line-height:1.2!important;
  font-weight:850!important;
  color:var(--usemb-v106-title)!important;
  opacity:1!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-gmail-attachments-title-ref i{
  color:var(--usemb-v106-title)!important;
  opacity:1!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-gmail-attachment-grid-ref{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(188px,188px))!important;
  gap:14px!important;
  align-items:start!important;
  overflow:visible!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-attachment-card.usemb-gmail-attachment-tile-ref{
  width:188px!important;
  height:154px!important;
  min-width:188px!important;
  max-width:188px!important;
  min-height:154px!important;
  max-height:154px!important;
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  border-radius:16px!important;
  border:1px solid var(--usemb-v106-card-border)!important;
  background:var(--usemb-v106-card-bg)!important;
  box-shadow:none!important;
  cursor:pointer!important;
  transform:none!important;
  isolation:isolate!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-attachment-card.usemb-gmail-attachment-tile-ref:hover{
  border-color:rgba(96,165,250,.85)!important;
  box-shadow:var(--usemb-v106-card-hover-shadow)!important;
  transform:none!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-attachment-preview{
  position:relative!important;
  display:block!important;
  flex:1 1 auto!important;
  height:106px!important;
  min-height:106px!important;
  max-height:106px!important;
  overflow:hidden!important;
  background:var(--usemb-v106-preview-bg)!important;
  border-radius:16px 16px 0 0!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-attachment-preview > img.usemb-v48-attachment-img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  min-height:0!important;
  object-fit:cover!important;
  object-position:center!important;
  display:block!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:var(--usemb-v106-preview-bg)!important;
  transform:none!important;
  filter:none!important;
  transition:filter .16s ease!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-attachment-card:hover .usemb-v48-attachment-preview > img.usemb-v48-attachment-img{
  filter:brightness(.70)!important;
  transform:none!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-file-preview{
  position:absolute!important;
  inset:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  background:var(--usemb-v106-file-preview-bg)!important;
  color:var(--usemb-v106-file-preview-text)!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-file-preview i{
  width:48px!important;
  height:52px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:14px!important;
  background:var(--usemb-v106-file-icon-bg)!important;
  color:#ff4d6d!important;
  font-size:26px!important;
  line-height:1!important;
  box-shadow:none!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-file-preview span{
  display:block!important;
  margin:0!important;
  color:var(--usemb-v106-file-preview-text)!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:.02em!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-hover-meta{
  position:absolute!important;
  top:8px!important;
  left:8px!important;
  right:8px!important;
  bottom:auto!important;
  z-index:6!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:3px!important;
  width:auto!important;
  max-width:none!important;
  padding:7px 9px!important;
  border-radius:12px!important;
  background:rgba(3,7,18,.74)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  color:#fff!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:none!important;
  transition:opacity .12s ease, visibility .12s ease!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-attachment-card:hover .usemb-v48-hover-meta{
  opacity:1!important;
  visibility:visible!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-gmail-deliverable-tile-ref.usemb-v48-attachment-card .usemb-v48-hover-meta{
  top:30px!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-hover-meta span,
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-hover-meta em{
  display:block!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:rgba(255,255,255,.94)!important;
  font-size:10px!important;
  line-height:1.25!important;
  font-weight:750!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-style:normal!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-hover-meta em{
  margin-top:3px!important;
  padding:2px 7px!important;
  border-radius:999px!important;
  background:rgba(59,130,246,.22)!important;
  color:#dbeafe!important;
  font-size:8px!important;
  font-weight:900!important;
  text-transform:none!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-attachment-bar{
  position:relative!important;
  z-index:7!important;
  flex:0 0 48px!important;
  height:48px!important;
  min-height:48px!important;
  max-height:48px!important;
  display:grid!important;
  grid-template-columns:26px minmax(0,1fr) 58px!important;
  align-items:center!important;
  gap:8px!important;
  padding:8px 9px!important;
  background:var(--usemb-v106-bar-bg)!important;
  border-top:1px solid var(--usemb-v106-bar-border)!important;
  color:var(--usemb-v106-bar-text)!important;
  pointer-events:auto!important;
  cursor:default!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-file-badge{
  width:26px!important;
  height:26px!important;
  min-width:26px!important;
  border-radius:8px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#ef4444!important;
  color:#fff!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-file-badge i{
  font-size:15px!important;
  line-height:1!important;
  color:#fff!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-file-name{
  min-width:0!important;
  display:block!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:var(--usemb-v106-bar-text)!important;
  font-size:11.5px!important;
  line-height:1.15!important;
  font-weight:850!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-file-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:5px!important;
  min-width:58px!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-file-actions form{
  display:inline-flex!important;
  margin:0!important;
  padding:0!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-file-action{
  width:26px!important;
  height:26px!important;
  min-width:26px!important;
  border:0!important;
  border-radius:8px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  margin:0!important;
  background:var(--usemb-v106-action-bg)!important;
  color:var(--usemb-v106-action-text)!important;
  text-decoration:none!important;
  box-shadow:none!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  cursor:pointer!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-file-action:hover{
  background:var(--usemb-v106-action-hover-bg)!important;
  color:var(--usemb-v106-action-hover-text)!important;
  transform:none!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-file-action.is-danger{
  background:rgba(239,68,68,.15)!important;
  color:#fb7185!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-file-action.is-danger:hover{
  background:#ef4444!important;
  color:#fff!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-file-action i{
  font-size:15px!important;
  line-height:1!important;
  pointer-events:none!important;
  color:inherit!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-attachment-card .usemb-gmail-attachment-fold-ref,
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-attachment-card .usemb-gmail-attachment-overlay-ref,
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-attachment-card .usemb-gmail-attachment-footer-ref,
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-attachment-card .usemb-gmail-attachment-actions-ref,
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-attachment-card .js-file-preview{
  display:none!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-attachment-card .usemb-deliverable-check-ref{
  position:absolute!important;
  top:8px!important;
  left:8px!important;
  z-index:10!important;
  width:14px!important;
  height:14px!important;
  margin:0!important;
  cursor:pointer!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-gmail-delivered-section-ref{
  max-width:1000px!important;
  padding:14px!important;
  border:1px solid var(--usemb-v106-delivered-border)!important;
  border-radius:16px!important;
  background:var(--usemb-v106-delivered-bg)!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-gmail-delivered-head-ref{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:14px!important;
  margin:0 0 10px!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-gmail-delivered-head-ref strong{
  display:block!important;
  margin:0!important;
  font-size:13px!important;
  line-height:1.2!important;
  font-weight:850!important;
  color:var(--usemb-v106-title)!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-gmail-delivered-head-ref span{
  display:block!important;
  margin-top:3px!important;
  font-size:11px!important;
  line-height:1.2!important;
  color:var(--usemb-v106-muted)!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v69-batch-right-ref{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  min-width:0!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v69-batch-time-ref{
  color:var(--usemb-v106-title)!important;
  background:transparent!important;
  text-shadow:none!important;
  white-space:nowrap!important;
  opacity:1!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v99-download-all-ref{
  width:auto!important;
  min-width:118px!important;
  max-width:none!important;
  height:30px!important;
  padding:0 11px!important;
  border-radius:10px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  color:var(--usemb-v106-download-text)!important;
  background:var(--usemb-v106-download-bg)!important;
  border:1px solid var(--usemb-v106-download-border)!important;
  font-size:11px!important;
  font-weight:850!important;
  line-height:1!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  opacity:1!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v99-download-all-ref i,
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v99-download-all-ref span{
  display:inline!important;
  margin:0!important;
  color:inherit!important;
  opacity:1!important;
}
body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v99-download-all-ref:hover{
  background:var(--usemb-v106-download-hover-bg)!important;
  color:var(--usemb-v106-download-hover-text)!important;
  border-color:var(--usemb-v106-download-hover-border)!important;
}
@media (max-width:767.98px){
  body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-gmail-attachment-grid-ref{
    grid-template-columns:repeat(auto-fill,minmax(172px,172px))!important;
    gap:12px!important;
  }
  body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-attachment-card.usemb-gmail-attachment-tile-ref{
    width:172px!important;
    min-width:172px!important;
    max-width:172px!important;
    height:150px!important;
    min-height:150px!important;
  }
  body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-attachment-preview{
    height:102px!important;
    min-height:102px!important;
    max-height:102px!important;
  }
  body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-attachment-bar{
    grid-template-columns:25px minmax(0,1fr) 56px!important;
    height:48px!important;
    min-height:48px!important;
    padding:8px!important;
    gap:7px!important;
  }
  body.admin-layout:is(.route-admin-orders-details,.route-client-orders-details,.route-sales-orders-details,.route-vendor-orders-details) .usemb-gmail-thread-card-ref .usemb-v48-file-name{font-size:11px!important;}
}

/* =========================================================
   USEMB V119 MOBILE NO-CUT GUARANTEE
   Desktop untouched. This block only activates on real mobile/touch
   shell or mobile widths, and forces form/action/footer controls to
   wrap inside the viewport instead of being clipped by max-content bars.
   ========================================================= */
@media (max-width: 991.98px){
  html, body{
    max-width:100%!important;
    overflow-x:hidden!important;
  }

  body.admin-layout.usemb-white-shell .admin-main,
  body.admin-layout.usemb-white-shell .admin-main > .container-fluid,
  body.admin-layout.usemb-white-shell .usemb-form-page-ref,
  body.admin-layout.usemb-white-shell .usemb-page-shell-ref,
  body.admin-layout.usemb-white-shell .usemb-orders-page-ref,
  body.admin-layout.usemb-white-shell .usemb-dashboard-ref,
  body.admin-layout.usemb-white-shell .usemb-dashboard-v3-ref,
  body.admin-layout.usemb-white-shell .usemb-invoice-page-ref,
  body.admin-layout.usemb-white-shell .usemb-users-page-ref,
  body.admin-layout.usemb-white-shell .usemb-messages-page-ref{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:hidden!important;
  }

  body.admin-layout.usemb-white-shell .usemb-form-card-ref,
  body.admin-layout.usemb-white-shell .usemb-form-card-body-ref,
  body.admin-layout.usemb-white-shell .card,
  body.admin-layout.usemb-white-shell .card-body,
  body.admin-layout.usemb-white-shell .modal-content,
  body.admin-layout.usemb-white-shell .modal-body{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:visible!important;
  }

  body.admin-layout.usemb-white-shell .usemb-modern-form-ref.row,
  body.admin-layout.usemb-white-shell form.row{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    --bs-gutter-x:0!important;
  }

  body.admin-layout.usemb-white-shell .usemb-modern-form-ref > [class*="col-"],
  body.admin-layout.usemb-white-shell form.row > [class*="col-"]{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    flex:0 0 100%!important;
    padding-left:0!important;
    padding-right:0!important;
  }

  body.admin-layout.usemb-white-shell input,
  body.admin-layout.usemb-white-shell textarea,
  body.admin-layout.usemb-white-shell select,
  body.admin-layout.usemb-white-shell .form-control,
  body.admin-layout.usemb-white-shell .form-select,
  body.admin-layout.usemb-white-shell .choices,
  body.admin-layout.usemb-white-shell .choices__inner{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }

  body.admin-layout.usemb-white-shell textarea.form-control{
    resize:vertical!important;
  }

  body.admin-layout.usemb-white-shell .usemb-upload-zone-ref,
  body.admin-layout.usemb-white-shell .usemb-upload-trigger-ref,
  body.admin-layout.usemb-white-shell .usemb-upload-copy-ref,
  body.admin-layout.usemb-white-shell .mfu-list,
  body.admin-layout.usemb-white-shell .mfu-item,
  body.admin-layout.usemb-white-shell .mfu-file-row{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }

  body.admin-layout.usemb-white-shell .usemb-upload-trigger-ref{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:12px!important;
    text-align:left!important;
  }

  body.admin-layout.usemb-white-shell .usemb-upload-copy-ref strong,
  body.admin-layout.usemb-white-shell .usemb-upload-copy-ref small,
  body.admin-layout.usemb-white-shell .text-muted,
  body.admin-layout.usemb-white-shell small{
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    white-space:normal!important;
  }

  body.admin-layout.usemb-white-shell .usemb-upload-cta-ref,
  body.admin-layout.usemb-white-shell label.usemb-upload-trigger-ref .usemb-upload-cta-ref{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:44px!important;
    min-height:44px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    white-space:normal!important;
    text-align:center!important;
  }

  /* Key fix: action bars were max-content + fixed-height + overflow hidden.
     On mobile they must become full-width stacked buttons, otherwise the
     submit button sits outside the viewport and gets clipped. */
  body.admin-layout.usemb-white-shell .usemb-form-actions-ref,
  body.admin-layout.usemb-white-shell .modal-footer,
  body.admin-layout.usemb-white-shell .usemb-modal-footer-ref{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    margin:14px 0 0 0!important;
    padding:8px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:8px!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }

  body.admin-layout.usemb-white-shell .usemb-form-actions-ref .btn,
  body.admin-layout.usemb-white-shell .usemb-form-actions-ref a.btn,
  body.admin-layout.usemb-white-shell .usemb-form-actions-ref button.btn,
  body.admin-layout.usemb-white-shell .modal-footer .btn,
  body.admin-layout.usemb-white-shell .usemb-modal-footer-ref .btn{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:44px!important;
    padding:10px 14px!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    white-space:normal!important;
    text-align:center!important;
    flex:0 0 auto!important;
    box-sizing:border-box!important;
  }

  body.admin-layout.usemb-white-shell .usemb-form-actions-ref button[type="submit"],
  body.admin-layout.usemb-white-shell .usemb-form-actions-ref .btn-primary,
  body.admin-layout.usemb-white-shell .usemb-form-actions-ref .btn-success{
    order:1!important;
  }
  body.admin-layout.usemb-white-shell .usemb-form-actions-ref .btn-outline-secondary,
  body.admin-layout.usemb-white-shell .usemb-form-actions-ref a.btn:not(.btn-primary):not(.btn-success){
    order:2!important;
  }

  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref,
  body.admin-layout.usemb-white-shell .usemb-ui-actionbar-ref,
  body.admin-layout.usemb-white-shell .usemb-filter-actions-ref,
  body.admin-layout.usemb-white-shell .usemb-page-actions-ref,
  body.admin-layout.usemb-white-shell .dt-actions,
  body.admin-layout.usemb-white-shell .dataTables_wrapper .row{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    flex-wrap:wrap!important;
    overflow:visible!important;
    gap:8px!important;
  }

  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar > *,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref > *,
  body.admin-layout.usemb-white-shell .usemb-ui-actionbar-ref > *,
  body.admin-layout.usemb-white-shell .usemb-filter-actions-ref > *,
  body.admin-layout.usemb-white-shell .usemb-page-actions-ref > *{
    max-width:100%!important;
    min-width:0!important;
    flex:1 1 auto!important;
    white-space:normal!important;
  }

  body.admin-layout.usemb-white-shell .table-responsive{
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    -webkit-overflow-scrolling:touch!important;
  }

  body.admin-layout.usemb-white-shell .swal2-actions{
    width:100%!important;
    max-width:100%!important;
    flex-direction:column!important;
    gap:8px!important;
  }
  body.admin-layout.usemb-white-shell .swal2-actions .swal2-styled{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
  }
}

html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-form-actions-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .modal-footer,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-modal-footer-ref{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  margin:14px 0 0 0!important;
  padding:8px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:8px!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-form-actions-ref .btn,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .modal-footer .btn,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-modal-footer-ref .btn{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:44px!important;
  padding:10px 14px!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:normal!important;
  text-align:center!important;
  flex:0 0 auto!important;
  box-sizing:border-box!important;
}
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-form-actions-ref button[type="submit"],
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-form-actions-ref .btn-primary,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-form-actions-ref .btn-success{order:1!important;}
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-form-actions-ref .btn-outline-secondary,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-form-actions-ref a.btn:not(.btn-primary):not(.btn-success){order:2!important;}

html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-form-card-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-form-card-body-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-modern-form-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-upload-zone-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-upload-trigger-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-upload-copy-ref,
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-upload-cta-ref{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-upload-trigger-ref{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:12px!important;
}
html.usemb-touch-shell-v88 body.admin-layout.usemb-white-shell .usemb-upload-cta-ref{
  height:44px!important;
  min-height:44px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}


/* USEMB V124: remove stray native/caret arrows over previews, cards and icon-only dropdowns */
#filePreviewModal .dropdown-toggle::after,
#filePreviewModal [data-bs-toggle="dropdown"]::after,
.usemb-thread-action-btn::after,
.usemb-order-card-ref .dropdown-toggle::after,
.usemb-order-card-ref [data-bs-toggle="dropdown"]::after,
.invoice-action-icon.dropdown-toggle::after,
.invoice-action-icon[data-bs-toggle="dropdown"]::after,
.usemb-file-card-ref .dropdown-toggle::after,
.usemb-file-card-ref [data-bs-toggle="dropdown"]::after,
.usemb-original-file-card-ref .dropdown-toggle::after,
.usemb-original-file-card-ref [data-bs-toggle="dropdown"]::after,
.usemb-v105-original-file-card-ref .dropdown-toggle::after,
.usemb-v105-original-file-card-ref [data-bs-toggle="dropdown"]::after {
  display:none!important;
  content:none!important;
  border:0!important;
}
#filePreviewModal .modal-content,
#filePreviewModal .modal-body,
#filePreviewImageWrap,
.usemb-messenger-panel,
.usemb-messenger-list,
.usemb-thread-item,
.usemb-thread-card {
  isolation:isolate;
}

/* USEMB V125: force order-detail info caret/dropdown behind modals/dialogs.
   Old order-detail CSS gave .usemb-gmail-overview-menu-ref z-index:12000, so the tiny
   caret and info card could sit above Bootstrap modals, file preview and SweetAlert dialogs. */
body.admin-layout.usemb-white-shell .usemb-gmail-overview-dropdown-ref,
body.admin-layout .usemb-gmail-overview-dropdown-ref{
  z-index:20!important;
}
body.admin-layout.usemb-white-shell .usemb-gmail-overview-dropdown-ref .dropdown-menu,
body.admin-layout.usemb-white-shell .usemb-gmail-overview-menu-ref.show,
body.admin-layout .usemb-gmail-overview-dropdown-ref .dropdown-menu,
body.admin-layout .usemb-gmail-overview-menu-ref.show{
  z-index:1040!important;
}
body.admin-layout .modal-backdrop.show{z-index:1050!important;}
body.admin-layout .modal.show{z-index:1060!important;}
body.admin-layout .swal2-container{z-index:30000!important;}

/* When any real overlay is open, close/hide background order-info caret/menu completely. */
html:has(body.admin-layout .modal.show) body.admin-layout .usemb-gmail-overview-menu-ref.show,
html:has(body.admin-layout .modal.show) body.admin-layout .usemb-gmail-overview-dropdown-ref.show .usemb-gmail-overview-menu-ref,
html:has(body.admin-layout .modal.show) body.admin-layout .usemb-gmail-overview-dropdown-ref .dropdown-menu.show,
html:has(.swal2-container.swal2-backdrop-show) body.admin-layout .usemb-gmail-overview-menu-ref.show,
html:has(.swal2-container.swal2-backdrop-show) body.admin-layout .usemb-gmail-overview-dropdown-ref.show .usemb-gmail-overview-menu-ref,
html:has(.swal2-container.swal2-backdrop-show) body.admin-layout .usemb-gmail-overview-dropdown-ref .dropdown-menu.show,
body.admin-layout.swal2-shown .usemb-gmail-overview-menu-ref.show,
body.admin-layout.swal2-shown .usemb-gmail-overview-dropdown-ref .dropdown-menu.show{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
html:has(body.admin-layout .modal.show) body.admin-layout .usemb-gmail-overview-btn-ref,
html:has(body.admin-layout .modal.show) body.admin-layout .usemb-gmail-details-btn-ref,
html:has(.swal2-container.swal2-backdrop-show) body.admin-layout .usemb-gmail-overview-btn-ref,
html:has(.swal2-container.swal2-backdrop-show) body.admin-layout .usemb-gmail-details-btn-ref,
body.admin-layout.swal2-shown .usemb-gmail-overview-btn-ref,
body.admin-layout.swal2-shown .usemb-gmail-details-btn-ref{
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}

/* Also remove the Bootstrap generated small triangle on these tiny background caret buttons. */
body.admin-layout .usemb-gmail-overview-btn-ref::after,
body.admin-layout .usemb-gmail-details-btn-ref::after,
body.admin-layout .usemb-gmail-overview-dropdown-ref > .dropdown-toggle::after{
  display:none!important;
  content:none!important;
  border:0!important;
}

/* V127 mobile orders filters: stack every filter on its own row so controls never squeeze/cut on phones. */
@media (max-width: 767.98px) {
  .usemb-orders-toolbar-ref.usemb-filterbar,
  .usemb-orders-toolbar-ref {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    align-items: stretch !important;
    width: 100% !important;
    overflow: visible !important;
  }

  .usemb-orders-toolbar-main-ref {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .usemb-orders-search-box-ref,
  .usemb-orders-inline-filter-ref,
  .usemb-orders-inline-vendor-ref,
  .usemb-orders-inline-working-ref,
  .usemb-orders-toolbar-side-ref,
  .usemb-orders-filter-toggle-ref {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .usemb-orders-search-box-ref input,
  .usemb-orders-inline-filter-ref select,
  .usemb-orders-toolbar-side-ref select,
  #vendorFilter,
  #pageSizeFilter {
    width: 100% !important;
    max-width: none !important;
  }

  .usemb-orders-inline-working-ref .usemb-orders-switch-ref {
    width: 100% !important;
    min-height: 44px !important;
    justify-content: flex-start !important;
  }

  .usemb-orders-filter-toggle-ref {
    justify-content: center !important;
    min-height: 42px !important;
  }
}

/* USEMB V128: Mobile Orders filters final fix.
   Some phones open the portal with a desktop-width viewport, so the normal
   max-width media query may not run. Target the touch-shell class too and
   force every order filter control onto its own full-width line. */
@media (max-width: 991.98px) {
  body.admin-layout.route-admin-orders-index .usemb-orders-toolbar-ref,
  body.admin-layout.route-admin-orders-index .usemb-orders-toolbar-main-ref,
  body.admin-layout.route-sales-orders-index .usemb-orders-toolbar-ref,
  body.admin-layout.route-sales-orders-index .usemb-orders-toolbar-main-ref,
  body.admin-layout.route-client-orders-index .usemb-orders-toolbar-ref,
  body.admin-layout.route-client-orders-index .usemb-orders-toolbar-main-ref,
  body.admin-layout.route-vendor-orders-index .usemb-orders-toolbar-ref,
  body.admin-layout.route-vendor-orders-index .usemb-orders-toolbar-main-ref {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  body.admin-layout.route-admin-orders-index .usemb-orders-toolbar-main-ref > *,
  body.admin-layout.route-admin-orders-index .usemb-orders-toolbar-side-ref,
  body.admin-layout.route-sales-orders-index .usemb-orders-toolbar-main-ref > *,
  body.admin-layout.route-sales-orders-index .usemb-orders-toolbar-side-ref,
  body.admin-layout.route-client-orders-index .usemb-orders-toolbar-main-ref > *,
  body.admin-layout.route-client-orders-index .usemb-orders-toolbar-side-ref,
  body.admin-layout.route-vendor-orders-index .usemb-orders-toolbar-main-ref > *,
  body.admin-layout.route-vendor-orders-index .usemb-orders-toolbar-side-ref {
    display: flex !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  body.admin-layout.route-admin-orders-index .usemb-orders-search-box-ref,
  body.admin-layout.route-admin-orders-index .usemb-orders-inline-filter-ref,
  body.admin-layout.route-admin-orders-index .usemb-orders-inline-vendor-ref,
  body.admin-layout.route-admin-orders-index .usemb-orders-inline-working-ref,
  body.admin-layout.route-admin-orders-index .usemb-orders-filter-toggle-ref,
  body.admin-layout.route-admin-orders-index .usemb-orders-toolbar-side-ref,
  body.admin-layout.route-sales-orders-index .usemb-orders-search-box-ref,
  body.admin-layout.route-sales-orders-index .usemb-orders-inline-filter-ref,
  body.admin-layout.route-sales-orders-index .usemb-orders-inline-vendor-ref,
  body.admin-layout.route-sales-orders-index .usemb-orders-inline-working-ref,
  body.admin-layout.route-sales-orders-index .usemb-orders-filter-toggle-ref,
  body.admin-layout.route-sales-orders-index .usemb-orders-toolbar-side-ref,
  body.admin-layout.route-client-orders-index .usemb-orders-search-box-ref,
  body.admin-layout.route-client-orders-index .usemb-orders-inline-filter-ref,
  body.admin-layout.route-client-orders-index .usemb-orders-inline-vendor-ref,
  body.admin-layout.route-client-orders-index .usemb-orders-inline-working-ref,
  body.admin-layout.route-client-orders-index .usemb-orders-filter-toggle-ref,
  body.admin-layout.route-client-orders-index .usemb-orders-toolbar-side-ref,
  body.admin-layout.route-vendor-orders-index .usemb-orders-search-box-ref,
  body.admin-layout.route-vendor-orders-index .usemb-orders-inline-filter-ref,
  body.admin-layout.route-vendor-orders-index .usemb-orders-inline-vendor-ref,
  body.admin-layout.route-vendor-orders-index .usemb-orders-inline-working-ref,
  body.admin-layout.route-vendor-orders-index .usemb-orders-filter-toggle-ref,
  body.admin-layout.route-vendor-orders-index .usemb-orders-toolbar-side-ref {
    height: auto !important;
    min-height: 46px !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body.admin-layout.route-admin-orders-index .usemb-orders-search-box-ref input,
  body.admin-layout.route-admin-orders-index .usemb-orders-inline-filter-ref select,
  body.admin-layout.route-admin-orders-index .usemb-orders-toolbar-side-ref select,
  body.admin-layout.route-admin-orders-index #ordersSearch,
  body.admin-layout.route-admin-orders-index #vendorFilter,
  body.admin-layout.route-admin-orders-index #pageSizeFilter,
  body.admin-layout.route-sales-orders-index .usemb-orders-search-box-ref input,
  body.admin-layout.route-sales-orders-index .usemb-orders-inline-filter-ref select,
  body.admin-layout.route-sales-orders-index .usemb-orders-toolbar-side-ref select,
  body.admin-layout.route-sales-orders-index #ordersSearch,
  body.admin-layout.route-sales-orders-index #vendorFilter,
  body.admin-layout.route-sales-orders-index #pageSizeFilter,
  body.admin-layout.route-client-orders-index .usemb-orders-search-box-ref input,
  body.admin-layout.route-client-orders-index .usemb-orders-inline-filter-ref select,
  body.admin-layout.route-client-orders-index .usemb-orders-toolbar-side-ref select,
  body.admin-layout.route-client-orders-index #ordersSearch,
  body.admin-layout.route-client-orders-index #vendorFilter,
  body.admin-layout.route-client-orders-index #pageSizeFilter,
  body.admin-layout.route-vendor-orders-index .usemb-orders-search-box-ref input,
  body.admin-layout.route-vendor-orders-index .usemb-orders-inline-filter-ref select,
  body.admin-layout.route-vendor-orders-index .usemb-orders-toolbar-side-ref select,
  body.admin-layout.route-vendor-orders-index #ordersSearch,
  body.admin-layout.route-vendor-orders-index #vendorFilter,
  body.admin-layout.route-vendor-orders-index #pageSizeFilter {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    box-sizing: border-box !important;
  }

  body.admin-layout.route-admin-orders-index .usemb-orders-inline-working-ref .form-check,
  body.admin-layout.route-admin-orders-index .usemb-orders-inline-working-ref .usemb-orders-switch-ref,
  body.admin-layout.route-sales-orders-index .usemb-orders-inline-working-ref .form-check,
  body.admin-layout.route-sales-orders-index .usemb-orders-inline-working-ref .usemb-orders-switch-ref,
  body.admin-layout.route-client-orders-index .usemb-orders-inline-working-ref .form-check,
  body.admin-layout.route-client-orders-index .usemb-orders-inline-working-ref .usemb-orders-switch-ref,
  body.admin-layout.route-vendor-orders-index .usemb-orders-inline-working-ref .form-check,
  body.admin-layout.route-vendor-orders-index .usemb-orders-inline-working-ref .usemb-orders-switch-ref {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding-left: 14px !important;
    box-sizing: border-box !important;
  }

  body.admin-layout.route-admin-orders-index .usemb-orders-filter-toggle-ref,
  body.admin-layout.route-sales-orders-index .usemb-orders-filter-toggle-ref,
  body.admin-layout.route-client-orders-index .usemb-orders-filter-toggle-ref,
  body.admin-layout.route-vendor-orders-index .usemb-orders-filter-toggle-ref {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Same rule without relying on viewport width, for Android/Chrome desktop-site style sessions. */
html.usemb-touch-shell-v88 body.admin-layout.route-admin-orders-index .usemb-orders-toolbar-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-admin-orders-index .usemb-orders-toolbar-main-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-sales-orders-index .usemb-orders-toolbar-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-sales-orders-index .usemb-orders-toolbar-main-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-client-orders-index .usemb-orders-toolbar-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-client-orders-index .usemb-orders-toolbar-main-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-vendor-orders-index .usemb-orders-toolbar-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-vendor-orders-index .usemb-orders-toolbar-main-ref {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}
html.usemb-touch-shell-v88 body.admin-layout.route-admin-orders-index .usemb-orders-toolbar-main-ref > *,
html.usemb-touch-shell-v88 body.admin-layout.route-admin-orders-index .usemb-orders-toolbar-side-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-sales-orders-index .usemb-orders-toolbar-main-ref > *,
html.usemb-touch-shell-v88 body.admin-layout.route-sales-orders-index .usemb-orders-toolbar-side-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-client-orders-index .usemb-orders-toolbar-main-ref > *,
html.usemb-touch-shell-v88 body.admin-layout.route-client-orders-index .usemb-orders-toolbar-side-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-vendor-orders-index .usemb-orders-toolbar-main-ref > *,
html.usemb-touch-shell-v88 body.admin-layout.route-vendor-orders-index .usemb-orders-toolbar-side-ref {
  display: flex !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
html.usemb-touch-shell-v88 body.admin-layout.route-admin-orders-index .usemb-orders-search-box-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-admin-orders-index .usemb-orders-inline-filter-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-admin-orders-index .usemb-orders-inline-vendor-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-admin-orders-index .usemb-orders-inline-working-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-admin-orders-index .usemb-orders-filter-toggle-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-admin-orders-index .usemb-orders-toolbar-side-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-sales-orders-index .usemb-orders-search-box-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-sales-orders-index .usemb-orders-inline-filter-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-sales-orders-index .usemb-orders-inline-vendor-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-sales-orders-index .usemb-orders-inline-working-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-sales-orders-index .usemb-orders-filter-toggle-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-sales-orders-index .usemb-orders-toolbar-side-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-client-orders-index .usemb-orders-search-box-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-client-orders-index .usemb-orders-inline-filter-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-client-orders-index .usemb-orders-inline-vendor-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-client-orders-index .usemb-orders-inline-working-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-client-orders-index .usemb-orders-filter-toggle-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-client-orders-index .usemb-orders-toolbar-side-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-vendor-orders-index .usemb-orders-search-box-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-vendor-orders-index .usemb-orders-inline-filter-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-vendor-orders-index .usemb-orders-inline-vendor-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-vendor-orders-index .usemb-orders-inline-working-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-vendor-orders-index .usemb-orders-filter-toggle-ref,
html.usemb-touch-shell-v88 body.admin-layout.route-vendor-orders-index .usemb-orders-toolbar-side-ref {
  height: auto !important;
  min-height: 46px !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}
html.usemb-touch-shell-v88 body.admin-layout.route-admin-orders-index #ordersSearch,
html.usemb-touch-shell-v88 body.admin-layout.route-admin-orders-index #vendorFilter,
html.usemb-touch-shell-v88 body.admin-layout.route-admin-orders-index #pageSizeFilter,
html.usemb-touch-shell-v88 body.admin-layout.route-sales-orders-index #ordersSearch,
html.usemb-touch-shell-v88 body.admin-layout.route-sales-orders-index #vendorFilter,
html.usemb-touch-shell-v88 body.admin-layout.route-sales-orders-index #pageSizeFilter,
html.usemb-touch-shell-v88 body.admin-layout.route-client-orders-index #ordersSearch,
html.usemb-touch-shell-v88 body.admin-layout.route-client-orders-index #vendorFilter,
html.usemb-touch-shell-v88 body.admin-layout.route-client-orders-index #pageSizeFilter,
html.usemb-touch-shell-v88 body.admin-layout.route-vendor-orders-index #ordersSearch,
html.usemb-touch-shell-v88 body.admin-layout.route-vendor-orders-index #vendorFilter,
html.usemb-touch-shell-v88 body.admin-layout.route-vendor-orders-index #pageSizeFilter {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 46px !important;
  box-sizing: border-box !important;
}

/* ========================================================================== 
   V129 - FINAL mobile orders filters + header title/icon no-overlap fix
   Reason: some Android/Chrome sessions render with a wide desktop CSS viewport,
   so earlier max-width-only/touch-class-only rules were not winning. This block
   targets the real order toolbar classes with higher specificity and a wider
   mobile/tablet breakpoint, while leaving normal desktop width untouched.
========================================================================== */
@media (max-width: 1200px), (hover: none) and (pointer: coarse) {
  body.admin-layout .admin-header .container-fluid {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  body.admin-layout .admin-header .usemb-header-title,
  body.admin-layout .admin-header .usemb-dashboard-header-title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 230px) !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }

  body.admin-layout .admin-header .usemb-header-title h1,
  body.admin-layout .admin-header .usemb-dashboard-header-title h1,
  body.admin-layout .admin-header .usemb-header-title p,
  body.admin-layout .admin-header .usemb-dashboard-header-title p {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.admin-layout .admin-header .d-flex.align-items-center.gap-2 {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    min-width: max-content !important;
    max-width: max-content !important;
    gap: 7px !important;
    z-index: 7 !important;
  }

  body.admin-layout .admin-header .d-flex.align-items-center.gap-2 .btn,
  body.admin-layout .admin-header .d-flex.align-items-center.gap-2 button,
  body.admin-layout .admin-header .usemb-notification-trigger {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
  }

  body.admin-layout .usemb-orders-panel-ref .usemb-orders-toolbar-ref,
  body.admin-layout .usemb-orders-panel-ref .usemb-filterbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  body.admin-layout .usemb-orders-panel-ref .usemb-orders-toolbar-main-ref {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  body.admin-layout .usemb-orders-panel-ref .usemb-orders-toolbar-main-ref > *,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-toolbar-side-ref,
  body.admin-layout .usemb-orders-panel-ref .search-box.usemb-orders-search-box-ref,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-filter-ref,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-vendor-ref,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-filter-toggle-ref {
    display: flex !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  body.admin-layout .usemb-orders-panel-ref #ordersSearch,
  body.admin-layout .usemb-orders-panel-ref #vendorFilter,
  body.admin-layout .usemb-orders-panel-ref #pageSizeFilter,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-toolbar-main-ref input,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-toolbar-main-ref select,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-toolbar-side-ref select {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    box-sizing: border-box !important;
  }

  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .form-check,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .usemb-orders-switch-ref {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding-left: 14px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .form-check-label,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref label {
    min-width: 0 !important;
    max-width: calc(100% - 58px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.admin-layout .usemb-orders-panel-ref .usemb-orders-filter-toggle-ref {
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
  }

  body.admin-layout .usemb-orders-panel-ref .usemb-orders-table-wrap-ref,
  body.admin-layout .usemb-orders-panel-ref .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
  }
}

@media (max-width: 420px) {
  body.admin-layout .admin-header .usemb-header-title,
  body.admin-layout .admin-header .usemb-dashboard-header-title {
    max-width: calc(100vw - 215px) !important;
  }

  body.admin-layout .admin-header .usemb-header-title h1,
  body.admin-layout .admin-header .usemb-dashboard-header-title h1 {
    font-size: 24px !important;
    line-height: 1.05 !important;
  }

  body.admin-layout .admin-header .usemb-header-title p,
  body.admin-layout .admin-header .usemb-dashboard-header-title p {
    font-size: 14px !important;
    line-height: 1.1 !important;
  }
}

/* ========================================================================== 
   V130 - Mobile Working Only switch alignment fix
   Mobile/touch only: keep WORKING ONLY text on left and switch on right.
   Desktop remains unchanged.
========================================================================== */
@media (max-width: 1200px), (hover: none) and (pointer: coarse) {
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .form-check,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .form-switch,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .usemb-orders-switch-ref,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .form-check,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .form-switch,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .usemb-orders-switch-ref {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .form-check-label,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref label,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .form-check-label,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref label {
    order: 1 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 70px) !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .form-check-input,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref input[type="checkbox"],
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .form-check-input,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref input[type="checkbox"] {
    order: 2 !important;
    position: static !important;
    float: none !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    margin-left: auto !important;
    transform: none !important;
  }
}

/* ========================================================================== 
   USEMB V131 - Final mobile audit: header overlays, notification panel,
   dashboard actions, orders filters, attendance/forms/tables.
   Mobile/touch only. Desktop remains unchanged.
========================================================================== */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  html.usemb-touch-shell-v88,
  html.usemb-touch-shell-v88 body,
  body.admin-layout {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* Keep mobile header as a real 3-part layout: menu | title | icons. */
  body.admin-layout .admin-header,
  body.admin-layout .admin-header .navbar,
  body.admin-layout .admin-header .container-fluid,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header .navbar,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header .container-fluid {
    overflow: visible !important;
    max-width: 100vw !important;
    min-width: 0 !important;
  }

  body.admin-layout .admin-header .container-fluid,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header .container-fluid {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) max-content !important;
    align-items: center !important;
    gap: 10px !important;
  }

  body.admin-layout .admin-header .usemb-header-title,
  body.admin-layout .admin-header .usemb-dashboard-header-title,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header .usemb-header-title,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header .usemb-dashboard-header-title {
    grid-column: 2 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.admin-layout .admin-header .usemb-header-title h1,
  body.admin-layout .admin-header .usemb-dashboard-header-title h1,
  body.admin-layout .admin-header .usemb-header-title p,
  body.admin-layout .admin-header .usemb-dashboard-header-title p,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header .usemb-header-title h1,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header .usemb-dashboard-header-title h1,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header .usemb-header-title p,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header .usemb-dashboard-header-title p {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.admin-layout .admin-header .usemb-header-title h1,
  body.admin-layout .admin-header .usemb-dashboard-header-title h1,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header .usemb-header-title h1,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header .usemb-dashboard-header-title h1 {
    font-size: clamp(22px, 6vw, 30px) !important;
    line-height: 1.05 !important;
  }

  body.admin-layout .admin-header .usemb-header-title p,
  body.admin-layout .admin-header .usemb-dashboard-header-title p,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header .usemb-header-title p,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header .usemb-dashboard-header-title p {
    font-size: clamp(13px, 3.8vw, 16px) !important;
    line-height: 1.15 !important;
  }

  body.admin-layout .admin-header .d-flex.align-items-center.gap-2,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header .d-flex.align-items-center.gap-2 {
    grid-column: 3 !important;
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    width: max-content !important;
    max-width: max-content !important;
    min-width: max-content !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
    z-index: 2500 !important;
  }

  body.admin-layout .admin-header .d-flex.align-items-center.gap-2 .btn,
  body.admin-layout .admin-header .d-flex.align-items-center.gap-2 button,
  body.admin-layout .admin-header .usemb-notification-trigger,
  body.admin-layout .admin-header #notificationBellBtn,
  body.admin-layout .admin-header .btn-usemb-header-mail,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header .d-flex.align-items-center.gap-2 .btn,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header .d-flex.align-items-center.gap-2 button,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header .usemb-notification-trigger,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header #notificationBellBtn,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header .btn-usemb-header-mail {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    flex: 0 0 48px !important;
    overflow: visible !important;
  }

  /* Notification/mail panels must open above the page, not behind content. */
  .usemb-notification-wrap,
  html.usemb-touch-shell-v88 .usemb-notification-wrap {
    position: static !important;
    overflow: visible !important;
  }

  .usemb-notification-panel,
  .usemb-notification-panel.show,
  .usemb-notification-wrap .dropdown-menu.show,
  html.usemb-touch-shell-v88 .usemb-notification-panel,
  html.usemb-touch-shell-v88 .usemb-notification-panel.show,
  html.usemb-touch-shell-v88 .usemb-notification-wrap .dropdown-menu.show {
    position: fixed !important;
    top: 82px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 105px) !important;
    z-index: 2147483000 !important;
    transform: none !important;
    overflow: hidden !important;
  }

  .usemb-notification-list,
  html.usemb-touch-shell-v88 .usemb-notification-list {
    max-height: calc(100vh - 245px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .usemb-notification-toast-stack,
  html.usemb-touch-shell-v88 .usemb-notification-toast-stack {
    z-index: 2147482500 !important;
  }

  /* Dashboard/top action buttons: keep web button style, just wrap cleanly. */
  body.admin-layout .usemb-dashboard-actionbar,
  body.admin-layout .usemb-page-actions-ref,
  body.admin-layout .usemb-ui-actionbar-ref,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-dashboard-actionbar,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-page-actions-ref,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-ui-actionbar-ref {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  body.admin-layout .usemb-dashboard-actionbar .btn,
  body.admin-layout .usemb-page-actions-ref .btn,
  body.admin-layout .usemb-ui-actionbar-ref .btn,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-dashboard-actionbar .btn,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-page-actions-ref .btn,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-ui-actionbar-ref .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    flex: 1 1 150px !important;
    min-width: 145px !important;
    max-width: 100% !important;
    height: 46px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Orders filters: every control gets its own safe mobile row. */
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-toolbar-ref,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-toolbar-main-ref,
  body.admin-layout .usemb-orders-panel-ref .usemb-filterbar,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .usemb-orders-toolbar-ref,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .usemb-orders-toolbar-main-ref,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .usemb-filterbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 10px !important;
    overflow: visible !important;
  }

  body.admin-layout .usemb-orders-panel-ref .usemb-orders-toolbar-main-ref > *,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-toolbar-side-ref,
  body.admin-layout .usemb-orders-panel-ref .search-box,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-search-box-ref,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-filter-ref,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-vendor-ref,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-filter-toggle-ref,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .usemb-orders-toolbar-main-ref > *,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .usemb-orders-toolbar-side-ref,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .search-box,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .usemb-orders-search-box-ref,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-filter-ref,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-vendor-ref,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .usemb-orders-filter-toggle-ref {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 52px !important;
    margin: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  body.admin-layout .usemb-orders-panel-ref .form-control,
  body.admin-layout .usemb-orders-panel-ref .form-select,
  body.admin-layout .usemb-orders-panel-ref input,
  body.admin-layout .usemb-orders-panel-ref select,
  body.admin-layout .usemb-orders-panel-ref .choices,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .form-control,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .form-select,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref input,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref select,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .choices {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 52px !important;
  }

  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .form-check,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .form-switch,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .usemb-orders-switch-ref,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .form-check,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .form-switch,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .usemb-orders-switch-ref {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 52px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref label,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .form-check-label,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref label,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .form-check-label {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 70px) !important;
    text-align: left !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref input[type="checkbox"],
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .form-check-input,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref input[type="checkbox"],
  html.usemb-touch-shell-v88 body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .form-check-input {
    position: static !important;
    float: none !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    transform: none !important;
  }

  /* Sales attendance and other admin forms: no cut controls on mobile. */
  body.admin-layout.route-admin-salesattendance-index .usemb-attendance-page-ref,
  body.admin-layout.route-admin-salesattendance-index .usemb-attendance-kpi-grid-ref,
  body.admin-layout.route-admin-salesattendance-index .usemb-attendance-filter-form-ref,
  body.admin-layout.route-admin-salesattendance-index .usemb-attendance-manual-form-ref,
  body.admin-layout.route-admin-salesattendance-index .usemb-attendance-content-grid-ref,
  html.usemb-touch-shell-v88 body.admin-layout.route-admin-salesattendance-index .usemb-attendance-page-ref,
  html.usemb-touch-shell-v88 body.admin-layout.route-admin-salesattendance-index .usemb-attendance-kpi-grid-ref,
  html.usemb-touch-shell-v88 body.admin-layout.route-admin-salesattendance-index .usemb-attendance-filter-form-ref,
  html.usemb-touch-shell-v88 body.admin-layout.route-admin-salesattendance-index .usemb-attendance-manual-form-ref,
  html.usemb-touch-shell-v88 body.admin-layout.route-admin-salesattendance-index .usemb-attendance-content-grid-ref {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 12px !important;
    overflow: visible !important;
  }

  body.admin-layout.route-admin-salesattendance-index .usemb-attendance-filter-panel-ref,
  body.admin-layout.route-admin-salesattendance-index .usemb-attendance-manual-panel-ref,
  body.admin-layout.route-admin-salesattendance-index .usemb-attendance-current-panel-ref,
  body.admin-layout.route-admin-salesattendance-index .usemb-attendance-sheet-panel-ref,
  body.admin-layout.route-admin-salesattendance-index .usemb-attendance-shift-card-ref,
  html.usemb-touch-shell-v88 body.admin-layout.route-admin-salesattendance-index .usemb-attendance-filter-panel-ref,
  html.usemb-touch-shell-v88 body.admin-layout.route-admin-salesattendance-index .usemb-attendance-manual-panel-ref,
  html.usemb-touch-shell-v88 body.admin-layout.route-admin-salesattendance-index .usemb-attendance-current-panel-ref,
  html.usemb-touch-shell-v88 body.admin-layout.route-admin-salesattendance-index .usemb-attendance-sheet-panel-ref,
  html.usemb-touch-shell-v88 body.admin-layout.route-admin-salesattendance-index .usemb-attendance-shift-card-ref {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  body.admin-layout.route-admin-salesattendance-index .usemb-attendance-actions-ref,
  body.admin-layout.route-admin-salesattendance-index .usemb-attendance-manual-actions-ref,
  html.usemb-touch-shell-v88 body.admin-layout.route-admin-salesattendance-index .usemb-attendance-actions-ref,
  html.usemb-touch-shell-v88 body.admin-layout.route-admin-salesattendance-index .usemb-attendance-manual-actions-ref {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: stretch !important;
  }

  body.admin-layout.route-admin-salesattendance-index .usemb-ui-action-btn-ref,
  html.usemb-touch-shell-v88 body.admin-layout.route-admin-salesattendance-index .usemb-ui-action-btn-ref {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.admin-layout.route-admin-salesattendance-index .usemb-attendance-sheet-scroll-ref,
  body.admin-layout.route-admin-salesattendance-index .table-responsive,
  body.admin-layout.route-admin-salesattendance-index .usemb-attendance-table-wrap-ref,
  html.usemb-touch-shell-v88 body.admin-layout.route-admin-salesattendance-index .usemb-attendance-sheet-scroll-ref,
  html.usemb-touch-shell-v88 body.admin-layout.route-admin-salesattendance-index .table-responsive,
  html.usemb-touch-shell-v88 body.admin-layout.route-admin-salesattendance-index .usemb-attendance-table-wrap-ref {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Global panels/forms/tables safety net for all remaining screens. */
  body.admin-layout .admin-main > .container-fluid,
  body.admin-layout .card,
  body.admin-layout .modal-content,
  body.admin-layout .usemb-card-ref,
  body.admin-layout .usemb-table-card-ref,
  body.admin-layout .usemb-page-shell-ref,
  body.admin-layout .usemb-form-panel-ref,
  html.usemb-touch-shell-v88 body.admin-layout .admin-main > .container-fluid,
  html.usemb-touch-shell-v88 body.admin-layout .card,
  html.usemb-touch-shell-v88 body.admin-layout .modal-content,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-card-ref,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-table-card-ref,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-page-shell-ref,
  html.usemb-touch-shell-v88 body.admin-layout .usemb-form-panel-ref {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }

  body.admin-layout .modal-dialog,
  html.usemb-touch-shell-v88 body.admin-layout .modal-dialog {
    width: calc(100vw - 22px) !important;
    max-width: calc(100vw - 22px) !important;
    margin: 10px auto !important;
  }

  body.admin-layout .row,
  body.admin-layout [class*="col-"] ,
  html.usemb-touch-shell-v88 body.admin-layout .row,
  html.usemb-touch-shell-v88 body.admin-layout [class*="col-"] {
    min-width: 0 !important;
  }

  body.admin-layout .table-responsive,
  body.admin-layout .dataTables_wrapper,
  html.usemb-touch-shell-v88 body.admin-layout .table-responsive,
  html.usemb-touch-shell-v88 body.admin-layout .dataTables_wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

@media (max-width: 430px) {
  body.admin-layout .admin-header .container-fluid,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header .container-fluid {
    grid-template-columns: 50px minmax(0, 1fr) max-content !important;
    gap: 7px !important;
  }

  body.admin-layout .admin-header .d-flex.align-items-center.gap-2,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header .d-flex.align-items-center.gap-2 {
    gap: 6px !important;
  }

  body.admin-layout .admin-header .d-flex.align-items-center.gap-2 .btn,
  body.admin-layout .admin-header .d-flex.align-items-center.gap-2 button,
  body.admin-layout .admin-header .usemb-notification-trigger,
  body.admin-layout .admin-header #notificationBellBtn,
  body.admin-layout .admin-header .btn-usemb-header-mail,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header .d-flex.align-items-center.gap-2 .btn,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header .d-flex.align-items-center.gap-2 button,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header .usemb-notification-trigger,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header #notificationBellBtn,
  html.usemb-touch-shell-v88 body.admin-layout .admin-header .btn-usemb-header-mail {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    flex-basis: 44px !important;
  }
}


/* USEMB V132 MOBILE RESPONSIVE FINAL PATCH START */
@media (max-width: 900px), (pointer: coarse), (hover: none) {
  html,
  html body,
  body.admin-layout.usemb-white-shell {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  body.admin-layout.usemb-white-shell .admin-header {
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow: visible !important;
    z-index: 1065 !important;
  }

  body.admin-layout.usemb-white-shell .admin-header .navbar,
  body.admin-layout.usemb-white-shell .admin-header .container-fluid {
    min-height: 74px !important;
    overflow: visible !important;
  }

  body.admin-layout.usemb-white-shell .admin-header .navbar .container-fluid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    padding-left: 92px !important;
    padding-right: 10px !important;
    flex-wrap: nowrap !important;
  }

  body.admin-layout.usemb-white-shell .admin-header .navbar-brand,
  body.admin-layout.usemb-white-shell .admin-header .search-container,
  body.admin-layout.usemb-white-shell .admin-header #btnThemeToggle,
  body.admin-layout.usemb-white-shell .admin-header #btnFullscreen,
  body.admin-layout.usemb-white-shell .admin-header .usemb-header-user-menu,
  body.admin-layout.usemb-white-shell .admin-header .usemb-back-portal-btn {
    display: none !important;
  }

  body.admin-layout.usemb-white-shell .admin-header .usemb-header-title,
  body.admin-layout.usemb-white-shell .admin-header .usemb-dashboard-header-title {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.admin-layout.usemb-white-shell .admin-header .usemb-header-title-copy-ref,
  body.admin-layout.usemb-white-shell .admin-header .usemb-header-title h1,
  body.admin-layout.usemb-white-shell .admin-header .usemb-dashboard-header-title h1,
  body.admin-layout.usemb-white-shell .admin-header .usemb-header-title p,
  body.admin-layout.usemb-white-shell .admin-header .usemb-dashboard-header-title p {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.admin-layout.usemb-white-shell .admin-header .usemb-header-title h1,
  body.admin-layout.usemb-white-shell .admin-header .usemb-dashboard-header-title h1 {
    font-size: clamp(21px, 5.6vw, 29px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.045em !important;
  }

  body.admin-layout.usemb-white-shell .admin-header .usemb-header-title p,
  body.admin-layout.usemb-white-shell .admin-header .usemb-dashboard-header-title p {
    font-size: clamp(12px, 3.65vw, 15px) !important;
    line-height: 1.15 !important;
    margin-top: 5px !important;
  }

  body.admin-layout.usemb-white-shell .admin-header .d-flex.align-items-center.gap-2 {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    width: auto !important;
    max-width: max-content !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    z-index: 2400 !important;
  }

  body.admin-layout.usemb-white-shell .admin-header #btnHeaderSearch,
  body.admin-layout.usemb-white-shell .admin-header #notificationBellBtn,
  body.admin-layout.usemb-white-shell .admin-header .usemb-notification-trigger,
  body.admin-layout.usemb-white-shell .admin-header .btn-usemb-header-mail {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    overflow: visible !important;
  }

  body.admin-layout.usemb-white-shell .admin-header #btnHeaderSearch i,
  body.admin-layout.usemb-white-shell .admin-header #notificationBellBtn i,
  body.admin-layout.usemb-white-shell .admin-header .btn-usemb-header-mail i {
    font-size: 18px !important;
    line-height: 1 !important;
  }

  body.admin-layout.usemb-white-shell .hamburger-menu {
    top: 16px !important;
    left: 18px !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 14px !important;
    z-index: 8905 !important;
  }

  body.admin-layout.usemb-white-shell .usemb-notification-badge {
    min-width: 21px !important;
    height: 21px !important;
    padding: 0 6px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    top: -8px !important;
    right: -7px !important;
    z-index: 8 !important;
  }

  body.admin-layout.usemb-white-shell .usemb-notification-wrap {
    position: static !important;
    overflow: visible !important;
  }

  body.admin-layout.usemb-white-shell .usemb-notification-panel {
    position: fixed !important;
    top: 82px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 105px) !important;
    transform: none !important;
    overflow: hidden !important;
    z-index: 2147483000 !important;
    border-radius: 18px !important;
  }

  body.admin-layout.usemb-white-shell .usemb-notification-panel-head,
  body.admin-layout.usemb-white-shell .usemb-notification-panel-foot {
    padding: 14px 14px !important;
  }

  body.admin-layout.usemb-white-shell .usemb-notification-panel-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  body.admin-layout.usemb-white-shell .usemb-notification-panel-title {
    font-size: 18px !important;
    line-height: 1.1 !important;
  }

  body.admin-layout.usemb-white-shell .usemb-notification-viewall-link {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: 12px !important;
  }

  body.admin-layout.usemb-white-shell .usemb-notification-list {
    max-height: calc(100vh - 245px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 10px !important;
  }

  body.admin-layout.usemb-white-shell .usemb-notification-item {
    grid-template-columns: 38px minmax(0, 1fr) 10px !important;
    gap: 10px !important;
    padding: 10px !important;
    border-radius: 15px !important;
  }

  body.admin-layout.usemb-white-shell .usemb-notification-avatar {
    width: 38px !important;
    height: 38px !important;
    border-radius: 13px !important;
  }

  body.admin-layout.usemb-white-shell .usemb-notification-topline {
    display: block !important;
  }

  body.admin-layout.usemb-white-shell .usemb-notification-title,
  body.admin-layout.usemb-white-shell .usemb-notification-message,
  body.admin-layout.usemb-white-shell .usemb-notification-ref {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  body.admin-layout.usemb-white-shell .usemb-notification-panel-foot .btn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
  }

  body.admin-layout.usemb-white-shell .admin-main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 74px !important;
  }

  body.admin-layout.usemb-white-shell .admin-main > .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 14px 12px 22px !important;
    overflow-x: hidden !important;
  }

  body.admin-layout.usemb-white-shell .usemb-page-actions-only-ref,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-row-ref,
  body.admin-layout.usemb-white-shell .usemb-client-page-actions {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    display: block !important;
    overflow: visible !important;
  }

  body.admin-layout.usemb-white-shell .usemb-page-head-spacer-ref {
    display: none !important;
  }

  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar,
  body.admin-layout.usemb-white-shell .usemb-ui-actionbar-ref,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref,
  body.admin-layout.usemb-white-shell .usemb-invoice-actionbar-ref,
  body.admin-layout.usemb-white-shell .usemb-client-actionbar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-invoice-actionbar-ref .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-client-actionbar .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-ui-actionbar-ref .usemb-ui-action-btn-ref {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    flex: 1 1 155px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 46px !important;
    height: 46px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    border-radius: 14px !important;
    border: 1px solid #dce5f2 !important;
    background: #fff !important;
    color: #111827 !important;
    box-shadow: 0 10px 26px rgba(15,23,42,.12) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
    white-space: normal !important;
    text-align: center !important;
    overflow: hidden !important;
  }

  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar .usemb-dash-action + .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref .usemb-dash-action + .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-invoice-actionbar-ref .usemb-dash-action + .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-client-actionbar .usemb-dash-action + .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-ui-actionbar-ref .usemb-ui-action-btn-ref + .usemb-ui-action-btn-ref {
    margin-left: 0 !important;
  }

  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar .usemb-dash-action-primary,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref .usemb-dash-action-primary,
  body.admin-layout.usemb-white-shell .usemb-invoice-actionbar-ref .usemb-dash-action-primary,
  body.admin-layout.usemb-white-shell .usemb-client-actionbar .usemb-dash-action-primary,
  body.admin-layout.usemb-white-shell .usemb-ui-actionbar-ref .usemb-ui-action-primary-ref {
    background: #4f86f7 !important;
    border-color: #4f86f7 !important;
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(79,134,247,.30) !important;
  }

  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar .usemb-dash-action i,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref .usemb-dash-action i,
  body.admin-layout.usemb-white-shell .usemb-invoice-actionbar-ref .usemb-dash-action i,
  body.admin-layout.usemb-white-shell .usemb-client-actionbar .usemb-dash-action i,
  body.admin-layout.usemb-white-shell .usemb-ui-actionbar-ref .usemb-ui-action-btn-ref i {
    flex: 0 0 auto !important;
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 1 !important;
  }

  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar .usemb-dash-action span,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref .usemb-dash-action span,
  body.admin-layout.usemb-white-shell .usemb-invoice-actionbar-ref .usemb-dash-action span,
  body.admin-layout.usemb-white-shell .usemb-client-actionbar .usemb-dash-action span,
  body.admin-layout.usemb-white-shell .usemb-ui-actionbar-ref .usemb-ui-action-btn-ref span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.admin-layout.usemb-white-shell .usemb-security-page-ref,
  body.admin-layout.usemb-white-shell .usemb-security-card-ref,
  body.admin-layout.usemb-white-shell .usemb-action-permission-card-ref {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  body.admin-layout.usemb-white-shell .usemb-security-card-ref {
    padding: 14px !important;
    border-radius: 16px !important;
  }

  body.admin-layout.usemb-white-shell .usemb-security-section-head-ref,
  body.admin-layout.usemb-white-shell .usemb-action-permission-head-ref {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
  }

  body.admin-layout.usemb-white-shell .usemb-security-section-head-ref h2 {
    font-size: 20px !important;
  }

  body.admin-layout.usemb-white-shell .usemb-security-user-form-ref,
  body.admin-layout.usemb-white-shell .usemb-action-permission-grid-ref {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.admin-layout.usemb-white-shell .usemb-security-user-hint-ref {
    height: auto !important;
    min-height: 42px !important;
    align-items: flex-start !important;
    padding: 11px 13px !important;
  }

  body.admin-layout.usemb-white-shell .usemb-security-actionbar-ref,
  body.admin-layout.usemb-white-shell .usemb-action-permission-buttons-ref {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
  }

  body.admin-layout.usemb-white-shell .usemb-security-actionbar-ref .btn,
  body.admin-layout.usemb-white-shell .usemb-action-permission-buttons-ref .btn {
    flex: 1 1 120px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 38px !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
  }

  body.admin-layout.usemb-white-shell .usemb-permission-table-ref {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: visible !important;
  }

  body.admin-layout.usemb-white-shell .usemb-permission-grid-ref {
    display: grid !important;
    grid-template-columns: minmax(96px, 1fr) repeat(4, 43px) !important;
    gap: 6px !important;
    align-items: center !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.admin-layout.usemb-white-shell .usemb-permission-head-ref {
    padding: 0 8px 8px !important;
    font-size: 9px !important;
    letter-spacing: 0 !important;
  }

  body.admin-layout.usemb-white-shell .usemb-permission-row-ref {
    padding: 10px 8px !important;
    border-radius: 13px !important;
  }

  body.admin-layout.usemb-white-shell .usemb-permission-page-title-ref {
    font-size: 12px !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere !important;
  }

  body.admin-layout.usemb-white-shell .usemb-permission-page-key-ref {
    font-size: 10px !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere !important;
  }

  body.admin-layout.usemb-white-shell .usemb-permission-check-ref {
    justify-content: center !important;
  }

  body.admin-layout.usemb-white-shell .usemb-action-permission-head-ref {
    padding: 12px !important;
  }

  body.admin-layout.usemb-white-shell .usemb-action-permission-item-ref {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    padding: 10px !important;
  }

  body.admin-layout.usemb-white-shell .usemb-action-permission-item-title-ref,
  body.admin-layout.usemb-white-shell .usemb-action-permission-item-key-ref {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  body.admin-layout.usemb-white-shell .usemb-action-allow-ref {
    flex: 0 0 auto !important;
  }

  body.admin-layout.usemb-white-shell .usemb-security-save-ref {
    position: sticky !important;
    bottom: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    border-radius: 16px !important;
    background: #fff !important;
    border: 1px solid #dce5f2 !important;
    box-shadow: 0 14px 38px rgba(15,23,42,.12) !important;
    z-index: 20 !important;
  }

  body.admin-layout.usemb-white-shell .usemb-security-save-ref .btn {
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
  }
}

@media (max-width: 430px) {
  body.admin-layout.usemb-white-shell .admin-header .navbar .container-fluid {
    padding-left: 78px !important;
    padding-right: 8px !important;
    gap: 5px !important;
  }

  body.admin-layout.usemb-white-shell .hamburger-menu {
    left: 18px !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  body.admin-layout.usemb-white-shell .admin-header #btnHeaderSearch,
  body.admin-layout.usemb-white-shell .admin-header #notificationBellBtn,
  body.admin-layout.usemb-white-shell .admin-header .usemb-notification-trigger,
  body.admin-layout.usemb-white-shell .admin-header .btn-usemb-header-mail {
    flex-basis: 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    border-radius: 11px !important;
  }

  body.admin-layout.usemb-white-shell .admin-header .d-flex.align-items-center.gap-2 {
    gap: 5px !important;
  }

  body.admin-layout.usemb-white-shell .admin-header .usemb-header-title h1,
  body.admin-layout.usemb-white-shell .admin-header .usemb-dashboard-header-title h1 {
    font-size: clamp(20px, 5.45vw, 24px) !important;
  }

  body.admin-layout.usemb-white-shell .admin-header .usemb-header-title p,
  body.admin-layout.usemb-white-shell .admin-header .usemb-dashboard-header-title p {
    font-size: 12px !important;
  }

  body.admin-layout.usemb-white-shell .admin-main > .container-fluid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  body.admin-layout.usemb-white-shell .usemb-notification-panel {
    left: 10px !important;
    right: 10px !important;
    max-width: calc(100vw - 20px) !important;
  }

  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-invoice-actionbar-ref .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-client-actionbar .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-ui-actionbar-ref .usemb-ui-action-btn-ref {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
}
/* USEMB V132 MOBILE RESPONSIVE FINAL PATCH END */
/* USEMB V133 RESPONSIVE HEADER + ACTIONBAR REAL FIX START
   Fixes reported mobile/header problems and desktop zoom collapsed-sidebar canvas. */
@media (max-width: 1240px) and (min-width: 901px) {
  body.admin-layout.usemb-white-shell .admin-sidebar {
    transform: translateX(-100%) !important;
  }

  body.admin-layout.usemb-white-shell .hamburger-menu {
    display: inline-flex !important;
    position: fixed !important;
    top: 24px !important;
    left: 22px !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    z-index: 8905 !important;
  }

  body.admin-layout.usemb-white-shell .admin-header,
  body.admin-layout.usemb-white-shell.route-admin-dashboard-index .admin-header,
  body.admin-layout.usemb-white-shell.route-admin-orders-index .admin-header,
  body.admin-layout.usemb-white-shell.route-public-messages-index .admin-header,
  body.admin-layout.usemb-white-shell.route-public-notifications-index .admin-header {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.admin-layout.usemb-white-shell .admin-header .container-fluid,
  body.admin-layout.usemb-white-shell.route-admin-dashboard-index .admin-header .container-fluid,
  body.admin-layout.usemb-white-shell.route-admin-orders-index .admin-header .container-fluid,
  body.admin-layout.usemb-white-shell.route-public-messages-index .admin-header .container-fluid,
  body.admin-layout.usemb-white-shell.route-public-notifications-index .admin-header .container-fluid {
    padding-left: 108px !important;
    padding-right: 28px !important;
    max-width: none !important;
    width: 100% !important;
  }

  body.admin-layout.usemb-white-shell .admin-main,
  body.admin-layout.usemb-white-shell.route-admin-dashboard-index .admin-main,
  body.admin-layout.usemb-white-shell.route-admin-orders-index .admin-main,
  body.admin-layout.usemb-white-shell.route-public-messages-index .admin-main,
  body.admin-layout.usemb-white-shell.route-public-notifications-index .admin-main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.admin-layout.usemb-white-shell .admin-main > .container-fluid,
  body.admin-layout.usemb-white-shell.route-admin-dashboard-index .admin-main > .container-fluid,
  body.admin-layout.usemb-white-shell.route-admin-orders-index .admin-main > .container-fluid,
  body.admin-layout.usemb-white-shell.route-public-messages-index .admin-main > .container-fluid,
  body.admin-layout.usemb-white-shell.route-public-notifications-index .admin-main > .container-fluid {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
  }

  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-row-ref,
  body.admin-layout.usemb-white-shell .usemb-page-actions-only-ref,
  body.admin-layout.usemb-white-shell .usemb-users-page-head-ref,
  body.admin-layout.usemb-white-shell .usemb-invoice-page-actions-ref {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 0 19px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref,
  body.admin-layout.usemb-white-shell .usemb-invoice-actionbar-ref,
  body.admin-layout.usemb-white-shell .usemb-users-actionbar-ref,
  body.admin-layout.usemb-white-shell .usemb-client-actionbar {
    width: max-content !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 38px !important;
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-invoice-actionbar-ref .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-users-actionbar-ref .usemb-ui-action-btn-ref,
  body.admin-layout.usemb-white-shell .usemb-client-actionbar .usemb-dash-action {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 132px !important;
    max-width: none !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 18px !important;
    margin: 0 !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

@media (max-width: 900px), (pointer: coarse), (hover: none) {
  html,
  body,
  body.admin-layout.usemb-white-shell {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  body.admin-layout.usemb-white-shell .admin-wrapper {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  body.admin-layout.usemb-white-shell .admin-header,
  body.admin-layout.usemb-white-shell.route-admin-dashboard-index .admin-header,
  body.admin-layout.usemb-white-shell.route-admin-orders-index .admin-header,
  body.admin-layout.usemb-white-shell.route-public-messages-index .admin-header,
  body.admin-layout.usemb-white-shell.route-public-notifications-index .admin-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 78px !important;
    min-height: 78px !important;
    overflow: visible !important;
    z-index: 3500 !important;
  }

  body.admin-layout.usemb-white-shell .admin-header .navbar,
  body.admin-layout.usemb-white-shell .admin-header .container-fluid,
  body.admin-layout.usemb-white-shell.route-admin-dashboard-index .admin-header .navbar,
  body.admin-layout.usemb-white-shell.route-admin-dashboard-index .admin-header .container-fluid,
  body.admin-layout.usemb-white-shell.route-admin-orders-index .admin-header .navbar,
  body.admin-layout.usemb-white-shell.route-admin-orders-index .admin-header .container-fluid,
  body.admin-layout.usemb-white-shell.route-public-messages-index .admin-header .navbar,
  body.admin-layout.usemb-white-shell.route-public-messages-index .admin-header .container-fluid,
  body.admin-layout.usemb-white-shell.route-public-notifications-index .admin-header .navbar,
  body.admin-layout.usemb-white-shell.route-public-notifications-index .admin-header .container-fluid {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 78px !important;
    min-height: 78px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    display: block !important;
  }

  body.admin-layout.usemb-white-shell .hamburger-menu {
    display: inline-flex !important;
    position: fixed !important;
    top: 15px !important;
    left: 16px !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 14px !important;
    z-index: 8905 !important;
  }

  body.admin-layout.usemb-white-shell .admin-header .usemb-header-title,
  body.admin-layout.usemb-white-shell .admin-header .usemb-dashboard-header-title,
  body.admin-layout.usemb-white-shell.route-admin-dashboard-index .admin-header .usemb-header-title,
  body.admin-layout.usemb-white-shell.route-admin-orders-index .admin-header .usemb-header-title,
  body.admin-layout.usemb-white-shell.route-public-messages-index .admin-header .usemb-header-title,
  body.admin-layout.usemb-white-shell.route-public-notifications-index .admin-header .usemb-header-title {
    display: block !important;
    position: fixed !important;
    left: 86px !important;
    right: 144px !important;
    top: 16px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    z-index: 3510 !important;
  }

  body.admin-layout.usemb-white-shell .admin-header .usemb-header-title-copy-ref,
  body.admin-layout.usemb-white-shell .admin-header .usemb-header-title h1,
  body.admin-layout.usemb-white-shell .admin-header .usemb-dashboard-header-title h1,
  body.admin-layout.usemb-white-shell .admin-header .usemb-header-title p,
  body.admin-layout.usemb-white-shell .admin-header .usemb-dashboard-header-title p {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.admin-layout.usemb-white-shell .admin-header .usemb-header-title h1,
  body.admin-layout.usemb-white-shell .admin-header .usemb-dashboard-header-title h1 {
    font-size: clamp(21px, 5.4vw, 28px) !important;
    line-height: 1.05 !important;
    margin: 0 !important;
  }

  body.admin-layout.usemb-white-shell .admin-header .usemb-header-title p,
  body.admin-layout.usemb-white-shell .admin-header .usemb-dashboard-header-title p {
    font-size: clamp(12px, 3.4vw, 14px) !important;
    line-height: 1.12 !important;
    margin: 5px 0 0 !important;
  }

  body.admin-layout.usemb-white-shell .admin-header .navbar-brand,
  body.admin-layout.usemb-white-shell .admin-header .search-container,
  body.admin-layout.usemb-white-shell .admin-header #btnThemeToggle,
  body.admin-layout.usemb-white-shell .admin-header #btnFullscreen,
  body.admin-layout.usemb-white-shell .admin-header .usemb-header-user-menu,
  body.admin-layout.usemb-white-shell .admin-header .usemb-back-portal-btn {
    display: none !important;
  }

  body.admin-layout.usemb-white-shell .admin-header .usemb-header-actions-ref,
  body.admin-layout.usemb-white-shell .admin-header .navbar > .container-fluid > .d-flex.align-items-center.gap-2,
  body.admin-layout.usemb-white-shell.route-admin-dashboard-index .admin-header .navbar > .container-fluid > .d-flex.align-items-center.gap-2,
  body.admin-layout.usemb-white-shell.route-admin-orders-index .admin-header .navbar > .container-fluid > .d-flex.align-items-center.gap-2,
  body.admin-layout.usemb-white-shell.route-public-messages-index .admin-header .navbar > .container-fluid > .d-flex.align-items-center.gap-2,
  body.admin-layout.usemb-white-shell.route-public-notifications-index .admin-header .navbar > .container-fluid > .d-flex.align-items-center.gap-2 {
    position: fixed !important;
    top: 16px !important;
    right: 10px !important;
    width: 124px !important;
    max-width: 124px !important;
    min-width: 124px !important;
    height: 44px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    z-index: 3520 !important;
  }

  body.admin-layout.usemb-white-shell .admin-header .usemb-header-actions-ref:before,
  body.admin-layout.usemb-white-shell .admin-header .navbar > .container-fluid > .d-flex.align-items-center.gap-2:before,
  body.admin-layout.usemb-white-shell.route-admin-dashboard-index .admin-header .navbar > .container-fluid > .d-flex.align-items-center.gap-2:before,
  body.admin-layout.usemb-white-shell.route-admin-orders-index .admin-header .navbar > .container-fluid > .d-flex.align-items-center.gap-2:before {
    display: none !important;
    content: none !important;
  }

  body.admin-layout.usemb-white-shell .admin-header #btnHeaderSearch,
  body.admin-layout.usemb-white-shell .admin-header #notificationBellBtn,
  body.admin-layout.usemb-white-shell .admin-header .usemb-notification-trigger,
  body.admin-layout.usemb-white-shell .admin-header .btn-usemb-header-mail {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 11px !important;
    border: 0 !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
  }

  body.admin-layout.usemb-white-shell .admin-header #btnHeaderSearch,
  body.admin-layout.usemb-white-shell .admin-header .btn-usemb-header-mail {
    background: #000 !important;
    color: #fff !important;
  }

  body.admin-layout.usemb-white-shell .admin-header #notificationBellBtn,
  body.admin-layout.usemb-white-shell .admin-header .usemb-notification-trigger {
    background: #4f86f7 !important;
    color: #fff !important;
  }

  body.admin-layout.usemb-white-shell .admin-header #btnHeaderSearch i,
  body.admin-layout.usemb-white-shell .admin-header #notificationBellBtn i,
  body.admin-layout.usemb-white-shell .admin-header .btn-usemb-header-mail i {
    font-size: 18px !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  body.admin-layout.usemb-white-shell .usemb-notification-badge,
  body.admin-layout.usemb-white-shell .usemb-message-nav-badge,
  body.admin-layout.usemb-white-shell .usemb-header-message-badge {
    display: inline-flex !important;
    position: absolute !important;
    top: -8px !important;
    right: -7px !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
  }

  body.admin-layout.usemb-white-shell .usemb-notification-badge.d-none,
  body.admin-layout.usemb-white-shell .usemb-message-nav-badge.d-none,
  body.admin-layout.usemb-white-shell .usemb-header-message-badge.d-none {
    display: none !important;
  }

  body.admin-layout.usemb-white-shell .usemb-notification-wrap {
    position: static !important;
    overflow: visible !important;
  }

  body.admin-layout.usemb-white-shell .usemb-notification-panel,
  body.admin-layout.usemb-white-shell .usemb-notification-panel.show {
    position: fixed !important;
    top: 84px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 104px) !important;
    transform: none !important;
    overflow: hidden !important;
    z-index: 2147483000 !important;
    border-radius: 18px !important;
  }

  body.admin-layout.usemb-white-shell .admin-main,
  body.admin-layout.usemb-white-shell.route-admin-dashboard-index .admin-main,
  body.admin-layout.usemb-white-shell.route-admin-orders-index .admin-main,
  body.admin-layout.usemb-white-shell.route-public-messages-index .admin-main,
  body.admin-layout.usemb-white-shell.route-public-notifications-index .admin-main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 78px !important;
    overflow-x: hidden !important;
  }

  body.admin-layout.usemb-white-shell .admin-main > .container-fluid,
  body.admin-layout.usemb-white-shell.route-admin-dashboard-index .admin-main > .container-fluid,
  body.admin-layout.usemb-white-shell.route-admin-orders-index .admin-main > .container-fluid,
  body.admin-layout.usemb-white-shell.route-public-messages-index .admin-main > .container-fluid,
  body.admin-layout.usemb-white-shell.route-public-notifications-index .admin-main > .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 14px 12px 22px !important;
    overflow-x: hidden !important;
  }

  body.admin-layout.usemb-white-shell .usemb-page-actions-only-ref,
  body.admin-layout.usemb-white-shell .usemb-users-page-head-ref,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-row-ref,
  body.admin-layout.usemb-white-shell .usemb-invoice-page-actions-ref,
  body.admin-layout.usemb-white-shell .usemb-client-page-actions {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  body.admin-layout.usemb-white-shell .usemb-page-head-spacer-ref {
    display: none !important;
  }

  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref,
  body.admin-layout.usemb-white-shell .usemb-invoice-actionbar-ref,
  body.admin-layout.usemb-white-shell .usemb-users-actionbar-ref,
  body.admin-layout.usemb-white-shell .usemb-client-actionbar,
  body.admin-layout.usemb-white-shell .usemb-form-actionbar-ref {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-invoice-actionbar-ref .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-users-actionbar-ref .usemb-ui-action-btn-ref,
  body.admin-layout.usemb-white-shell .usemb-client-actionbar .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-form-actionbar-ref .usemb-ui-action-btn-ref,
  body.admin-layout.usemb-white-shell .usemb-form-actionbar-ref .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 8px !important;
    margin: 0 !important;
    border-radius: 13px !important;
    border: 1px solid #dce5f2 !important;
    background: #fff !important;
    color: #111827 !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .10) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    text-align: center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar .usemb-dash-action:first-child,
  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar .usemb-dash-action:last-child,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref .usemb-dash-action:first-child,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref .usemb-dash-action:last-child,
  body.admin-layout.usemb-white-shell .usemb-invoice-actionbar-ref .usemb-dash-action:first-child,
  body.admin-layout.usemb-white-shell .usemb-invoice-actionbar-ref .usemb-dash-action:last-child {
    border-radius: 13px !important;
  }

  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar .usemb-dash-action + .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref .usemb-dash-action + .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-invoice-actionbar-ref .usemb-dash-action + .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-users-actionbar-ref .usemb-ui-action-btn-ref + .usemb-ui-action-btn-ref,
  body.admin-layout.usemb-white-shell .usemb-client-actionbar .usemb-dash-action + .usemb-dash-action {
    margin-left: 0 !important;
  }

  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar .usemb-dash-action-primary,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref .usemb-dash-action-primary,
  body.admin-layout.usemb-white-shell .usemb-invoice-actionbar-ref .usemb-dash-action-primary,
  body.admin-layout.usemb-white-shell .usemb-users-actionbar-ref .usemb-ui-action-primary-ref,
  body.admin-layout.usemb-white-shell .usemb-client-actionbar .usemb-dash-action-primary {
    background: #4f86f7 !important;
    border-color: #4f86f7 !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(79, 134, 247, .28) !important;
  }

  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar .usemb-dash-action i,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref .usemb-dash-action i,
  body.admin-layout.usemb-white-shell .usemb-invoice-actionbar-ref .usemb-dash-action i,
  body.admin-layout.usemb-white-shell .usemb-users-actionbar-ref .usemb-ui-action-btn-ref i,
  body.admin-layout.usemb-white-shell .usemb-client-actionbar .usemb-dash-action i {
    flex: 0 0 auto !important;
    width: 14px !important;
    height: 14px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar .usemb-dash-action span,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref .usemb-dash-action span,
  body.admin-layout.usemb-white-shell .usemb-invoice-actionbar-ref .usemb-dash-action span,
  body.admin-layout.usemb-white-shell .usemb-users-actionbar-ref .usemb-ui-action-btn-ref span,
  body.admin-layout.usemb-white-shell .usemb-client-actionbar .usemb-dash-action span {
    display: inline-block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.admin-layout.usemb-white-shell .usemb-detail-action-group-ref {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 2px !important;
  }

  body.admin-layout.usemb-white-shell .usemb-detail-action-group-ref .usemb-ui-action-btn-ref,
  body.admin-layout.usemb-white-shell .usemb-detail-action-group-ref .btn {
    flex: 0 0 auto !important;
    min-width: 112px !important;
  }
}

@media (max-width: 430px) {
  body.admin-layout.usemb-white-shell .admin-header .usemb-header-title,
  body.admin-layout.usemb-white-shell .admin-header .usemb-dashboard-header-title,
  body.admin-layout.usemb-white-shell.route-admin-dashboard-index .admin-header .usemb-header-title,
  body.admin-layout.usemb-white-shell.route-admin-orders-index .admin-header .usemb-header-title {
    left: 84px !important;
    right: 138px !important;
    top: 17px !important;
  }

  body.admin-layout.usemb-white-shell .admin-header .usemb-header-title h1,
  body.admin-layout.usemb-white-shell .admin-header .usemb-dashboard-header-title h1 {
    font-size: clamp(20px, 5.1vw, 24px) !important;
  }

  body.admin-layout.usemb-white-shell .admin-header .usemb-header-title p,
  body.admin-layout.usemb-white-shell .admin-header .usemb-dashboard-header-title p {
    font-size: 12px !important;
  }

  body.admin-layout.usemb-white-shell .admin-header .usemb-header-actions-ref,
  body.admin-layout.usemb-white-shell .admin-header .navbar > .container-fluid > .d-flex.align-items-center.gap-2 {
    right: 8px !important;
    width: 122px !important;
    max-width: 122px !important;
    min-width: 122px !important;
    gap: 4px !important;
  }

  body.admin-layout.usemb-white-shell .admin-header #btnHeaderSearch,
  body.admin-layout.usemb-white-shell .admin-header #notificationBellBtn,
  body.admin-layout.usemb-white-shell .admin-header .usemb-notification-trigger,
  body.admin-layout.usemb-white-shell .admin-header .btn-usemb-header-mail {
    flex-basis: 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
  }

  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref,
  body.admin-layout.usemb-white-shell .usemb-invoice-actionbar-ref,
  body.admin-layout.usemb-white-shell .usemb-users-actionbar-ref,
  body.admin-layout.usemb-white-shell .usemb-client-actionbar {
    gap: 7px !important;
  }

  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-invoice-actionbar-ref .usemb-dash-action,
  body.admin-layout.usemb-white-shell .usemb-users-actionbar-ref .usemb-ui-action-btn-ref,
  body.admin-layout.usemb-white-shell .usemb-client-actionbar .usemb-dash-action {
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 6px !important;
    font-size: 10.5px !important;
    border-radius: 12px !important;
  }

  body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar .usemb-dash-action i,
  body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref .usemb-dash-action i,
  body.admin-layout.usemb-white-shell .usemb-invoice-actionbar-ref .usemb-dash-action i,
  body.admin-layout.usemb-white-shell .usemb-users-actionbar-ref .usemb-ui-action-btn-ref i,
  body.admin-layout.usemb-white-shell .usemb-client-actionbar .usemb-dash-action i {
    width: 13px !important;
    height: 13px !important;
    font-size: 13px !important;
  }
}

html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar .usemb-dash-action,
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref .usemb-dash-action,
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell .usemb-invoice-actionbar-ref .usemb-dash-action,
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell .usemb-users-actionbar-ref .usemb-ui-action-btn-ref,
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell .usemb-client-actionbar .usemb-dash-action,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar .usemb-dash-action,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref .usemb-dash-action,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell .usemb-invoice-actionbar-ref .usemb-dash-action,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell .usemb-users-actionbar-ref .usemb-ui-action-btn-ref,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell .usemb-client-actionbar .usemb-dash-action {
  background: #09111f !important;
  border-color: #263448 !important;
  color: #f8fbff !important;
  box-shadow: none !important;
}

html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar .usemb-dash-action-primary,
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref .usemb-dash-action-primary,
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell .usemb-invoice-actionbar-ref .usemb-dash-action-primary,
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell .usemb-users-actionbar-ref .usemb-ui-action-primary-ref,
html[data-usemb-theme="dark"] body.admin-layout.usemb-white-shell .usemb-client-actionbar .usemb-dash-action-primary,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell .usemb-dashboard-actionbar .usemb-dash-action-primary,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell .usemb-orders-actionbar-ref .usemb-dash-action-primary,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell .usemb-invoice-actionbar-ref .usemb-dash-action-primary,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell .usemb-users-actionbar-ref .usemb-ui-action-primary-ref,
html[data-bs-theme="dark"] body.admin-layout.usemb-white-shell .usemb-client-actionbar .usemb-dash-action-primary {
  background: #4f86f7 !important;
  border-color: #4f86f7 !important;
  color: #fff !important;
}
/* USEMB V133 RESPONSIVE HEADER + ACTIONBAR REAL FIX END */

/* USEMB V134 MOBILE FILTERS / CLEAR SEARCH / DETAIL ACTIONS START */
.usemb-clearable-search-wrap {
  position: relative !important;
  width: 100%;
}

.usemb-clearable-search-wrap > input:not([type="checkbox"]):not([type="radio"]) {
  padding-right: 2.65rem !important;
}

.usemb-clearable-search-wrap > .usemb-input-clear-btn-ref {
  position: absolute !important;
  right: .64rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(148, 163, 184, .16) !important;
  color: inherit !important;
  opacity: .78 !important;
  line-height: 1 !important;
  z-index: 6 !important;
  cursor: pointer !important;
}

.usemb-clearable-search-wrap.has-value > .usemb-input-clear-btn-ref {
  display: inline-flex !important;
}

.usemb-clearable-search-wrap > .usemb-input-clear-btn-ref:hover,
.usemb-clearable-search-wrap > .usemb-input-clear-btn-ref:focus-visible {
  opacity: 1 !important;
  background: rgba(79, 134, 247, .18) !important;
  outline: none !important;
}

.usemb-clearable-search-wrap > .usemb-input-clear-btn-ref i {
  font-size: 12px !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.search-box.usemb-clearable-search-wrap > .usemb-input-clear-btn-ref,
.usemb-messenger-search.usemb-clearable-search-wrap > .usemb-input-clear-btn-ref {
  right: .72rem !important;
}

@media (max-width: 1200px), (hover: none) and (pointer: coarse) {
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref,
  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .usemb-orders-switch-ref {
    overflow: visible !important;
  }

  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .usemb-orders-switch-ref {
    width: 100% !important;
    height: 100% !important;
    min-height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-direction: row !important;
    gap: 12px !important;
    padding: 0 14px !important;
    margin: 0 !important;
  }

  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .form-check-label {
    order: 1 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    transform: none !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 72px) !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: left !important;
  }

  body.admin-layout .usemb-orders-panel-ref .usemb-orders-inline-working-ref .form-check-input {
    order: 2 !important;
    flex: 0 0 auto !important;
    float: none !important;
    margin: 0 !important;
    margin-left: 12px !important;
    position: static !important;
  }
}

@media (max-width: 767.98px) {
  body.admin-layout[class*="-orders-details"] .usemb-v69-batch-right-ref,
  body.admin-layout[class*="-orders-details"] .usemb-gmail-delivered-actions-ref,
  body.admin-layout[class*="-orders-details"] .usemb-v69-batch-actions-ref {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 48px !important;
    min-width: 42px !important;
    align-items: flex-end !important;
  }

  body.admin-layout[class*="-orders-details"] .usemb-gmail-delivered-actions-ref,
  body.admin-layout[class*="-orders-details"] .usemb-v69-batch-actions-ref {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  body.admin-layout[class*="-orders-details"] .usemb-v69-batch-actions-ref form,
  body.admin-layout[class*="-orders-details"] .usemb-gmail-delivered-actions-ref form {
    display: inline-flex !important;
    margin: 0 !important;
    width: auto !important;
  }

  body.admin-layout[class*="-orders-details"] .usemb-v69-batch-actions-ref .usemb-gmail-qc-btn-ref,
  body.admin-layout[class*="-orders-details"] .usemb-gmail-delivered-actions-ref .usemb-gmail-qc-btn-ref {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
    white-space: nowrap !important;
    text-indent: 0 !important;
  }

  body.admin-layout[class*="-orders-details"] .usemb-v69-batch-actions-ref .usemb-gmail-qc-btn-ref span,
  body.admin-layout[class*="-orders-details"] .usemb-gmail-delivered-actions-ref .usemb-gmail-qc-btn-ref span {
    display: none !important;
  }

  body.admin-layout[class*="-orders-details"] .usemb-v69-batch-actions-ref .usemb-gmail-qc-btn-ref i,
  body.admin-layout[class*="-orders-details"] .usemb-gmail-delivered-actions-ref .usemb-gmail-qc-btn-ref i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    font-size: 17px !important;
    line-height: 1 !important;
    text-indent: 0 !important;
  }
}
/* USEMB V134 MOBILE FILTERS / CLEAR SEARCH / DETAIL ACTIONS END */


/* USEMB V165: Trashbox + message alert polish */
.usemb-trashbox-v165-ref .table,
.usemb-trashbox-v165-ref .dataTable {
  width: 100% !important;
}
.usemb-dash-action-danger,
.usemb-trash-empty-btn-ref {
  border-color: rgba(244, 63, 94, .48) !important;
  color: #ff6b8a !important;
  background: rgba(244, 63, 94, .08) !important;
}
.usemb-dash-action-danger:hover,
.usemb-trash-empty-btn-ref:hover {
  background: rgba(244, 63, 94, .16) !important;
  border-color: rgba(244, 63, 94, .72) !important;
}
.usemb-message-alert-v165 {
  border-radius: 22px !important;
}
@media (max-width: 767.98px) {
  .usemb-trashbox-v165-ref .usemb-dashboard-actionbar {
    flex-wrap: wrap;
  }
  .usemb-trashbox-v165-ref .usemb-ui-action-btn-ref {
    width: 100%;
    justify-content: center;
  }
}
.swal2-popup.usemb-message-alert-v165 {
  background: #111827 !important;
  color: #f8fafc !important;
  border: 1px solid rgba(96, 165, 250, .35) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45) !important;
}
.swal2-popup.usemb-message-alert-v165 .swal2-html-container,
.swal2-popup.usemb-message-alert-v165 .swal2-title {
  color: #f8fafc !important;
}

/* USEMB V166: Orders Trashbox UI cleanup */
body.admin-layout.route-admin-orders-trash .usemb-trashbox-v166-ref{
  width:100%!important;
  max-width:100%!important;
  padding:0!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-topbar-v166-ref{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin:0 0 16px!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-actions-v166-ref{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-btn-v166-ref{
  height:40px!important;
  min-height:40px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  padding:0 15px!important;
  border-radius:13px!important;
  border:1px solid #263448!important;
  background:#101827!important;
  color:#eef6ff!important;
  font-weight:900!important;
  font-size:13px!important;
  line-height:1!important;
  text-decoration:none!important;
  box-shadow:none!important;
  white-space:nowrap!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-btn-v166-ref:hover{
  transform:none!important;
  background:#162033!important;
  border-color:#3b82f6!important;
  color:#fff!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-danger-v166-ref{
  color:#ff7691!important;
  border-color:rgba(244,63,94,.45)!important;
  background:rgba(244,63,94,.10)!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-danger-v166-ref:hover{
  color:#fff!important;
  border-color:rgba(244,63,94,.75)!important;
  background:rgba(244,63,94,.20)!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-note-v166-ref{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  color:#9fb0c6!important;
  font-size:13px!important;
  font-weight:700!important;
  min-width:0!important;
  text-align:right!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-note-v166-ref i{color:#60a5fa!important;}
body.admin-layout.route-admin-orders-trash .usemb-trash-panel-v166-ref{
  border:1px solid #263448!important;
  border-radius:20px!important;
  background:#101827!important;
  box-shadow:none!important;
  padding:18px!important;
  overflow:hidden!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-panel-head-v166-ref{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0 0 14px!important;
  padding:0 0 14px!important;
  border-bottom:1px solid #263448!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-panel-head-v166-ref h5{
  margin:0!important;
  color:#f8fafc!important;
  font-size:18px!important;
  font-weight:900!important;
  letter-spacing:-.01em!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-panel-head-v166-ref span{
  display:block!important;
  margin-top:3px!important;
  color:#9fb0c6!important;
  font-size:12px!important;
  font-weight:700!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-toolbar-v166-ref{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  width:100%!important;
  margin:0 0 12px!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-toolbar-main-v166-ref{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex:1 1 auto!important;
  min-width:0!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-search-v166-ref{
  width:360px!important;
  max-width:38vw!important;
  min-width:260px!important;
  flex:0 1 360px!important;
  position:relative!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-select-v166-ref{
  width:260px!important;
  flex:0 0 260px!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-page-size-v166-ref{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex:0 0 auto!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-page-size-v166-ref label{
  color:#dbeafe!important;
  font-size:13px!important;
  font-weight:800!important;
  margin:0!important;
  white-space:nowrap!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-page-size-v166-ref select{
  width:116px!important;
  min-width:116px!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-search-v166-ref .form-control,
body.admin-layout.route-admin-orders-trash .usemb-trash-select-v166-ref .form-select,
body.admin-layout.route-admin-orders-trash .usemb-trash-page-size-v166-ref .form-select,
body.admin-layout.route-admin-orders-trash .usemb-trash-advanced-v166-ref .form-control,
body.admin-layout.route-admin-orders-trash .usemb-trash-advanced-v166-ref .form-select{
  height:42px!important;
  min-height:42px!important;
  border-radius:13px!important;
  border:1px solid #263448!important;
  background:#0b1322!important;
  color:#eef6ff!important;
  font-size:13px!important;
  font-weight:700!important;
  box-shadow:none!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-search-v166-ref .form-control{
  padding-left:42px!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-search-v166-ref .search-icon{
  position:absolute!important;
  left:15px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  color:#c7d7ee!important;
  font-size:16px!important;
  z-index:2!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-filter-toggle-v166-ref{
  height:42px!important;
  min-height:42px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  padding:0 14px!important;
  border-radius:13px!important;
  border:1px solid #2c3d54!important;
  background:#0b1322!important;
  color:#eef6ff!important;
  font-weight:900!important;
  font-size:13px!important;
  line-height:1!important;
  white-space:nowrap!important;
  box-shadow:none!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-filter-toggle-v166-ref:hover,
body.admin-layout.route-admin-orders-trash .usemb-trash-filter-toggle-v166-ref.is-active{
  background:#162033!important;
  border-color:#3b82f6!important;
  color:#fff!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-filter-toggle-v166-ref .usemb-orders-filter-chevron-ref{
  transition:transform .16s ease!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-filter-toggle-v166-ref.is-active .usemb-orders-filter-chevron-ref{
  transform:rotate(180deg)!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-advanced-v166-ref{
  display:none!important;
  width:100%!important;
  margin:0 0 14px!important;
  padding:14px!important;
  border:1px solid #263448!important;
  border-radius:16px!important;
  background:#0b1322!important;
  box-shadow:none!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-advanced-v166-ref.is-open{
  display:block!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-advanced-title-v166-ref{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin:0 0 10px!important;
  color:#dbeafe!important;
  font-size:13px!important;
  font-weight:900!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-advanced-grid-v166-ref{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:flex-end!important;
  gap:10px 12px!important;
  width:100%!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-advanced-v166-ref .usemb-orders-field-ref{
  flex:0 0 auto!important;
  width:190px!important;
  min-width:190px!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-advanced-v166-ref .usemb-orders-field-ref:has(#trashFromDateFilter),
body.admin-layout.route-admin-orders-trash .usemb-trash-advanced-v166-ref .usemb-orders-field-ref:has(#trashToDateFilter){
  width:170px!important;
  min-width:170px!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-advanced-v166-ref .usemb-orders-reset-field-ref{
  width:auto!important;
  min-width:138px!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-advanced-v166-ref label{
  display:block!important;
  margin:0 0 5px!important;
  color:#9fb0c6!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1.1!important;
  text-transform:uppercase!important;
  letter-spacing:.02em!important;
}
body.admin-layout.route-admin-orders-trash .usemb-orders-reset-btn-ref{
  height:42px!important;
  min-height:42px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:0 14px!important;
  border-radius:13px!important;
  border:1px solid #263448!important;
  background:#101827!important;
  color:#eef6ff!important;
  font-size:13px!important;
  font-weight:900!important;
  line-height:1!important;
  box-shadow:none!important;
  white-space:nowrap!important;
}
body.admin-layout.route-admin-orders-trash .usemb-orders-reset-btn-ref:hover{
  background:#162033!important;
  border-color:#60a5fa!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-table-wrap-v166-ref{
  margin-top:8px!important;
  border:1px solid #263448!important;
  border-radius:16px!important;
  background:#0b1322!important;
  overflow:auto!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-orders-table-v166-ref{
  margin:0!important;
  table-layout:auto!important;
  min-width:1180px!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-orders-table-v166-ref thead th{
  padding:14px 16px!important;
  color:#eaf2ff!important;
  font-size:12px!important;
  font-weight:950!important;
  line-height:1!important;
  text-transform:uppercase!important;
  border-bottom:1px solid #263448!important;
  background:#0f1728!important;
  white-space:nowrap!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-orders-table-v166-ref tbody td{
  padding:16px!important;
  vertical-align:middle!important;
  border-bottom:1px solid #263448!important;
  color:#eef6ff!important;
  font-size:13px!important;
  font-weight:700!important;
  white-space:normal!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-orders-table-v166-ref tbody tr:hover td{
  background:#111e32!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-orders-table-v166-ref .usemb-order-number-ref{
  display:inline-block!important;
  white-space:nowrap!important;
  color:#fff!important;
  font-weight:950!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-orders-table-v166-ref .usemb-order-project-ref,
body.admin-layout.route-admin-orders-trash .usemb-trash-orders-table-v166-ref .usemb-order-id-ref,
body.admin-layout.route-admin-orders-trash .usemb-trash-orders-table-v166-ref .usemb-customer-email-ref,
body.admin-layout.route-admin-orders-trash .usemb-trash-orders-table-v166-ref .usemb-assigned-sub-ref{
  margin-top:3px!important;
  color:#9fb0c6!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.3!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-row-actions-v166-ref{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:8px!important;
  white-space:nowrap!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-row-btn-v166-ref{
  height:34px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  padding:0 11px!important;
  border-radius:11px!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1!important;
  border:1px solid transparent!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-restore-row-v166-ref{
  color:#86efac!important;
  background:rgba(34,197,94,.12)!important;
  border-color:rgba(34,197,94,.35)!important;
}
body.admin-layout.route-admin-orders-trash .usemb-trash-delete-row-v166-ref{
  color:#fb7185!important;
  background:rgba(244,63,94,.10)!important;
  border-color:rgba(244,63,94,.35)!important;
}
body.admin-layout.route-admin-orders-trash .dataTables_info{
  color:#9fb0c6!important;
  font-size:12px!important;
  font-weight:800!important;
  padding-top:14px!important;
}
body.admin-layout.route-admin-orders-trash .dataTables_paginate{
  padding-top:10px!important;
}
body.admin-layout.route-admin-orders-trash .dataTables_paginate .paginate_button .page-link{
  min-width:40px!important;
  height:36px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:11px!important;
  border:1px solid #263448!important;
  background:#0b1322!important;
  color:#eaf2ff!important;
  font-size:12px!important;
  font-weight:900!important;
  box-shadow:none!important;
}
body.admin-layout.route-admin-orders-trash .dataTables_paginate .paginate_button.active .page-link{
  background:#4f83f1!important;
  border-color:#4f83f1!important;
  color:#fff!important;
}
html[data-usemb-theme="light"] body.admin-layout.route-admin-orders-trash .usemb-trash-panel-v166-ref,
html[data-usemb-theme="light"] body.admin-layout.route-admin-orders-trash .usemb-trash-btn-v166-ref,
html[data-usemb-theme="light"] body.admin-layout.route-admin-orders-trash .usemb-orders-reset-btn-ref{
  background:#ffffff!important;
  border-color:#dbe5f4!important;
  color:#132238!important;
}
html[data-usemb-theme="light"] body.admin-layout.route-admin-orders-trash .usemb-trash-panel-head-v166-ref{border-color:#dbe5f4!important;}
html[data-usemb-theme="light"] body.admin-layout.route-admin-orders-trash .usemb-trash-panel-head-v166-ref h5{color:#0f172a!important;}
html[data-usemb-theme="light"] body.admin-layout.route-admin-orders-trash .usemb-trash-panel-head-v166-ref span,
html[data-usemb-theme="light"] body.admin-layout.route-admin-orders-trash .usemb-trash-note-v166-ref{color:#64748b!important;}
html[data-usemb-theme="light"] body.admin-layout.route-admin-orders-trash .usemb-trash-search-v166-ref .form-control,
html[data-usemb-theme="light"] body.admin-layout.route-admin-orders-trash .usemb-trash-select-v166-ref .form-select,
html[data-usemb-theme="light"] body.admin-layout.route-admin-orders-trash .usemb-trash-page-size-v166-ref .form-select,
html[data-usemb-theme="light"] body.admin-layout.route-admin-orders-trash .usemb-trash-advanced-v166-ref .form-control,
html[data-usemb-theme="light"] body.admin-layout.route-admin-orders-trash .usemb-trash-advanced-v166-ref .form-select,
html[data-usemb-theme="light"] body.admin-layout.route-admin-orders-trash .usemb-trash-filter-toggle-v166-ref{
  background:#f8fafc!important;
  border-color:#dbe5f4!important;
  color:#132238!important;
}
html[data-usemb-theme="light"] body.admin-layout.route-admin-orders-trash .usemb-trash-advanced-v166-ref,
html[data-usemb-theme="light"] body.admin-layout.route-admin-orders-trash .usemb-trash-table-wrap-v166-ref{
  background:#ffffff!important;
  border-color:#dbe5f4!important;
}
html[data-usemb-theme="light"] body.admin-layout.route-admin-orders-trash .usemb-trash-orders-table-v166-ref thead th{
  background:#f8fafc!important;
  color:#0f172a!important;
  border-color:#dbe5f4!important;
}
html[data-usemb-theme="light"] body.admin-layout.route-admin-orders-trash .usemb-trash-orders-table-v166-ref tbody td{
  color:#0f172a!important;
  border-color:#e5edf8!important;
}
html[data-usemb-theme="light"] body.admin-layout.route-admin-orders-trash .usemb-trash-orders-table-v166-ref tbody tr:hover td{background:#f8fafc!important;}
@media (max-width: 1199.98px){
  body.admin-layout.route-admin-orders-trash .usemb-trash-search-v166-ref{max-width:none!important;flex:1 1 320px!important;width:auto!important;}
  body.admin-layout.route-admin-orders-trash .usemb-trash-select-v166-ref{flex:0 0 220px!important;width:220px!important;}
}
@media (max-width: 767.98px){
  body.admin-layout.route-admin-orders-trash .usemb-trash-topbar-v166-ref,
  body.admin-layout.route-admin-orders-trash .usemb-trash-toolbar-v166-ref{
    flex-direction:column!important;
    align-items:stretch!important;
  }
  body.admin-layout.route-admin-orders-trash .usemb-trash-actions-v166-ref,
  body.admin-layout.route-admin-orders-trash .usemb-trash-toolbar-main-v166-ref{
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
  }
  body.admin-layout.route-admin-orders-trash .usemb-trash-btn-v166-ref,
  body.admin-layout.route-admin-orders-trash .usemb-trash-search-v166-ref,
  body.admin-layout.route-admin-orders-trash .usemb-trash-select-v166-ref,
  body.admin-layout.route-admin-orders-trash .usemb-trash-filter-toggle-v166-ref,
  body.admin-layout.route-admin-orders-trash .usemb-trash-page-size-v166-ref select{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    flex:auto!important;
  }
  body.admin-layout.route-admin-orders-trash .usemb-trash-note-v166-ref{
    justify-content:flex-start!important;
    text-align:left!important;
  }
  body.admin-layout.route-admin-orders-trash .usemb-trash-page-size-v166-ref{
    justify-content:space-between!important;
    width:100%!important;
  }
  body.admin-layout.route-admin-orders-trash .usemb-trash-advanced-grid-v166-ref{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
  body.admin-layout.route-admin-orders-trash .usemb-trash-advanced-v166-ref .usemb-orders-field-ref,
  body.admin-layout.route-admin-orders-trash .usemb-trash-advanced-v166-ref .usemb-orders-field-ref:has(#trashFromDateFilter),
  body.admin-layout.route-admin-orders-trash .usemb-trash-advanced-v166-ref .usemb-orders-field-ref:has(#trashToDateFilter){
    width:100%!important;
    min-width:0!important;
  }
}
/* USEMB V166 END */

/* USEMB V167: stable file preview fit, vector previews, and sidebar trashbox placement */
#filePreviewModal .modal-dialog{
  width:min(96vw,1320px)!important;
  max-width:min(96vw,1320px)!important;
  margin:14px auto!important;
}
#filePreviewModal .modal-content{
  max-height:calc(var(--usemb-preview-vh,100vh) - 28px)!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
#filePreviewModal .modal-header,
#filePreviewModal .modal-footer,
#filePreviewModal .file-preview-toolbar{
  flex:0 0 auto!important;
}
#filePreviewModal .modal-body{
  flex:1 1 auto!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
#filePreviewImageWrap{
  flex:1 1 auto!important;
  height:auto!important;
  min-height:280px!important;
  max-height:none!important;
  width:100%!important;
  box-sizing:border-box!important;
  padding:22px 22px 46px!important;
  overflow:hidden!important;
  border-radius:14px!important;
}
#filePreviewFrameWrap{
  flex:1 1 auto!important;
  height:auto!important;
  min-height:62vh!important;
  max-height:none!important;
}
#filePreviewFrame{
  width:100%!important;
  height:100%!important;
  min-height:62vh!important;
  background:#fff!important;
}
#filePreviewImage{
  max-width:none!important;
  max-height:none!important;
  will-change:transform!important;
  backface-visibility:hidden!important;
  transform-origin:center center!important;
}
.usemb-sidebar-bottom-action-ref{
  flex:0 0 auto!important;
  padding:10px 16px 0!important;
}
.usemb-sidebar-trash-link-v167-ref{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  min-height:44px!important;
  padding:10px 14px!important;
  border-radius:14px!important;
  color:var(--usemb-sidebar-link-color,#e7eefc)!important;
  text-decoration:none!important;
  font-weight:800!important;
  border:1px solid rgba(148,163,184,.18)!important;
  background:rgba(15,23,42,.28)!important;
}
.usemb-sidebar-trash-link-v167-ref:hover,
.usemb-sidebar-trash-link-v167-ref.active{
  background:rgba(79,134,247,.18)!important;
  color:#fff!important;
  border-color:rgba(79,134,247,.45)!important;
}
html[data-usemb-theme="light"] .usemb-sidebar-trash-link-v167-ref,
body.usemb-white-shell .usemb-sidebar-trash-link-v167-ref{
  color:#111827!important;
  background:#fff!important;
  border-color:#e5e7eb!important;
}
html[data-usemb-theme="light"] .usemb-sidebar-trash-link-v167-ref:hover,
html[data-usemb-theme="light"] .usemb-sidebar-trash-link-v167-ref.active,
body.usemb-white-shell .usemb-sidebar-trash-link-v167-ref:hover,
body.usemb-white-shell .usemb-sidebar-trash-link-v167-ref.active{
  background:#eff6ff!important;
  color:#0f172a!important;
  border-color:#93c5fd!important;
}
@media (max-width:767.98px){
  #filePreviewModal .modal-dialog{
    width:100vw!important;
    max-width:100vw!important;
    margin:0!important;
  }
  #filePreviewModal .modal-content{
    min-height:var(--usemb-preview-vh,100vh)!important;
    max-height:var(--usemb-preview-vh,100vh)!important;
    border-radius:0!important;
  }
  #filePreviewModal .modal-header{
    min-height:58px!important;
  }
  #filePreviewModal .modal-title{
    max-width:calc(100vw - 86px)!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  #filePreviewModal .modal-body{
    padding:12px 16px!important;
  }
  #filePreviewModal .file-preview-toolbar{
    display:flex!important;
    gap:10px!important;
    overflow-x:auto!important;
    padding-bottom:4px!important;
    margin-bottom:12px!important;
  }
  #filePreviewImageWrap{
    min-height:240px!important;
    padding:18px 18px 42px!important;
  }
  #filePreviewFrameWrap,
  #filePreviewFrame{
    min-height:52vh!important;
  }
  .usemb-sidebar-bottom-action-ref{
    padding:8px 24px 10px!important;
  }
}

/* V168: shared preview message overlay for generated PDF/AI/EPS previews */
.file-preview-image-message {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: min(520px, calc(100% - 48px));
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(120, 150, 190, .35);
    background: rgba(9, 17, 31, .92);
    color: #f8fafc;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
    z-index: 4;
    pointer-events: none;
}

html[data-bs-theme="light"] .file-preview-image-message,
html[data-usemb-theme="light"] .file-preview-image-message {
    background: rgba(255, 255, 255, .96);
    color: #0f172a;
}

/* USEMB V171: Gmail-style full-page preview and plain sidebar Trashbox link */
.usemb-sidebar-trash-nav-v171-ref{
  flex:0 0 auto!important;
  padding:0 16px 10px!important;
}
.usemb-sidebar-trash-nav-v171-ref .usemb-sidebar-trash-link-v171-ref{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  min-height:42px!important;
  padding:10px 12px!important;
  border:0!important;
  border-radius:12px!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--usemb-sidebar-link-color,#e7eefc)!important;
  text-decoration:none!important;
  font-weight:800!important;
  line-height:1.1!important;
}
.usemb-sidebar-trash-nav-v171-ref .usemb-sidebar-trash-link-v171-ref i{
  width:20px!important;
  min-width:20px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:16px!important;
}
.usemb-sidebar-trash-nav-v171-ref .usemb-sidebar-trash-link-v171-ref:hover,
.usemb-sidebar-trash-nav-v171-ref .usemb-sidebar-trash-link-v171-ref.active{
  background:rgba(79,134,247,.16)!important;
  color:#fff!important;
}
html[data-usemb-theme="light"] .usemb-sidebar-trash-nav-v171-ref .usemb-sidebar-trash-link-v171-ref,
body.usemb-white-shell .usemb-sidebar-trash-nav-v171-ref .usemb-sidebar-trash-link-v171-ref{
  color:#111827!important;
  background:transparent!important;
}
html[data-usemb-theme="light"] .usemb-sidebar-trash-nav-v171-ref .usemb-sidebar-trash-link-v171-ref:hover,
html[data-usemb-theme="light"] .usemb-sidebar-trash-nav-v171-ref .usemb-sidebar-trash-link-v171-ref.active,
body.usemb-white-shell .usemb-sidebar-trash-nav-v171-ref .usemb-sidebar-trash-link-v171-ref:hover,
body.usemb-white-shell .usemb-sidebar-trash-nav-v171-ref .usemb-sidebar-trash-link-v171-ref.active{
  color:#111827!important;
  background:#f3f4f6!important;
}
.usemb-sidebar-trash-nav-v171-ref .usemb-sidebar-trash-link-v167-ref,
.usemb-sidebar-bottom-action-ref .usemb-sidebar-trash-link-v171-ref{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

#filePreviewModal.usemb-gmail-preview-modal-v171{
  --usemb-gmail-preview-bg:rgba(3,7,18,.92);
  --usemb-gmail-preview-bar:rgba(13,20,33,.94);
  --usemb-gmail-preview-border:rgba(148,163,184,.20);
  --usemb-gmail-preview-text:#f8fafc;
  --usemb-gmail-preview-muted:#cbd5e1;
  padding:0!important;
}
#filePreviewModal.usemb-gmail-preview-modal-v171 .modal-dialog{
  width:100vw!important;
  max-width:100vw!important;
  height:var(--usemb-preview-vh,100vh)!important;
  max-height:var(--usemb-preview-vh,100vh)!important;
  margin:0!important;
}
#filePreviewModal.usemb-gmail-preview-modal-v171 .modal-content{
  width:100vw!important;
  height:var(--usemb-preview-vh,100vh)!important;
  max-height:var(--usemb-preview-vh,100vh)!important;
  border:0!important;
  border-radius:0!important;
  background:var(--usemb-gmail-preview-bg)!important;
  color:var(--usemb-gmail-preview-text)!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  box-shadow:none!important;
}
#filePreviewModal.usemb-gmail-preview-modal-v171 .usemb-gmail-preview-topbar-v171{
  height:58px!important;
  min-height:58px!important;
  padding:0 18px!important;
  border-bottom:1px solid var(--usemb-gmail-preview-border)!important;
  background:var(--usemb-gmail-preview-bar)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  flex:0 0 auto!important;
}
#filePreviewModal.usemb-gmail-preview-modal-v171 .usemb-gmail-preview-title-wrap-v171{
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  min-width:0!important;
}
#filePreviewModal.usemb-gmail-preview-modal-v171 #filePreviewTitle{
  margin:0!important;
  max-width:min(65vw,900px)!important;
  color:var(--usemb-gmail-preview-text)!important;
  font-size:16px!important;
  line-height:1.2!important;
  font-weight:800!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
#filePreviewModal.usemb-gmail-preview-modal-v171 .usemb-gmail-preview-actions-v171{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex:0 0 auto!important;
}
#filePreviewModal.usemb-gmail-preview-modal-v171 .usemb-gmail-preview-icon-btn-v171,
#filePreviewModal.usemb-gmail-preview-modal-v171 .usemb-gmail-preview-close-left-v171{
  width:38px!important;
  height:38px!important;
  border-radius:50%!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:#e5e7eb!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-decoration:none!important;
  cursor:pointer!important;
  box-shadow:none!important;
}
#filePreviewModal.usemb-gmail-preview-modal-v171 .usemb-gmail-preview-icon-btn-v171:hover,
#filePreviewModal.usemb-gmail-preview-modal-v171 .usemb-gmail-preview-close-left-v171:hover{
  background:rgba(255,255,255,.10)!important;
  color:#fff!important;
}
#filePreviewModal.usemb-gmail-preview-modal-v171 .usemb-gmail-preview-body-v171{
  flex:1 1 auto!important;
  min-height:0!important;
  padding:0!important;
  position:relative!important;
  display:flex!important;
  align-items:stretch!important;
  justify-content:center!important;
  overflow:hidden!important;
  background:rgba(2,6,14,.80)!important;
}
#filePreviewModal.usemb-gmail-preview-modal-v171 #filePreviewImageWrap.usemb-gmail-preview-stage-v171{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  padding:34px 54px 76px!important;
  box-sizing:border-box!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  overflow:hidden!important;
}
#filePreviewModal.usemb-gmail-preview-modal-v171 #filePreviewImage{
  border:0!important;
  border-radius:0!important;
  box-shadow:0 2px 22px rgba(0,0,0,.28)!important;
  background:transparent!important;
  will-change:transform!important;
  backface-visibility:hidden!important;
}
#filePreviewModal.usemb-gmail-preview-modal-v171 .usemb-gmail-preview-frame-wrap-v171{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  padding:16px 52px 74px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  display:block!important;
}
#filePreviewModal.usemb-gmail-preview-modal-v171 .usemb-gmail-preview-frame-wrap-v171.d-none{
  display:none!important;
}
#filePreviewModal.usemb-gmail-preview-modal-v171 #filePreviewFrame{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  border:0!important;
  border-radius:4px!important;
  background:#fff!important;
  display:block!important;
}
#filePreviewModal.usemb-gmail-preview-modal-v171 .usemb-gmail-preview-zoom-bar-v171{
  position:absolute!important;
  left:50%!important;
  bottom:18px!important;
  transform:translateX(-50%)!important;
  z-index:4!important;
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  padding:6px!important;
  border-radius:999px!important;
  background:rgba(15,23,42,.82)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:0 12px 38px rgba(0,0,0,.28)!important;
  margin:0!important;
}
#filePreviewModal.usemb-gmail-preview-modal-v171 .usemb-gmail-preview-zoom-bar-v171.d-none{
  display:none!important;
}
#filePreviewModal.usemb-gmail-preview-modal-v171 .usemb-gmail-preview-zoom-bar-v171 .btn{
  width:36px!important;
  height:34px!important;
  min-width:36px!important;
  padding:0!important;
  border-radius:999px!important;
  background:transparent!important;
  color:#f8fafc!important;
  border:0!important;
  box-shadow:none!important;
}
#filePreviewModal.usemb-gmail-preview-modal-v171 .usemb-gmail-preview-zoom-bar-v171 .btn:hover{
  background:rgba(255,255,255,.12)!important;
}
#filePreviewModal.usemb-gmail-preview-modal-v171 .file-preview-image-message{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  max-width:min(520px,86vw)!important;
  padding:14px 18px!important;
  border-radius:14px!important;
  background:rgba(15,23,42,.88)!important;
  border:1px solid rgba(148,163,184,.28)!important;
  color:#e5e7eb!important;
  font-weight:700!important;
  text-align:center!important;
}
.modal-backdrop.show{
  opacity:.82!important;
}
@media (max-width:767.98px){
  #filePreviewModal.usemb-gmail-preview-modal-v171 .usemb-gmail-preview-topbar-v171{
    height:56px!important;
    min-height:56px!important;
    padding:0 10px!important;
  }
  #filePreviewModal.usemb-gmail-preview-modal-v171 #filePreviewTitle{
    max-width:calc(100vw - 140px)!important;
    font-size:15px!important;
  }
  #filePreviewModal.usemb-gmail-preview-modal-v171 #filePreviewImageWrap.usemb-gmail-preview-stage-v171{
    padding:22px 18px 82px!important;
  }
  #filePreviewModal.usemb-gmail-preview-modal-v171 .usemb-gmail-preview-frame-wrap-v171{
    padding:10px 0 74px!important;
  }
  #filePreviewModal.usemb-gmail-preview-modal-v171 #filePreviewFrame{
    border-radius:0!important;
  }
  #filePreviewModal.usemb-gmail-preview-modal-v171 .usemb-gmail-preview-zoom-bar-v171{
    bottom:14px!important;
    max-width:calc(100vw - 28px)!important;
    overflow-x:auto!important;
  }
  .usemb-sidebar-trash-nav-v171-ref{
    padding:0 22px 8px!important;
  }
}
/* USEMB V171 END */

/* USEMB V172: true Gmail-style overlay preview + Trashbox nav active polish */
html.usemb-file-preview-open-v172,
body.usemb-file-preview-open-v172{
  overflow:hidden!important;
}
#filePreviewModal.usemb-gmail-preview-overlay-v172{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:var(--usemb-preview-vh,100vh)!important;
  z-index:2147483000!important;
  background:rgba(2,6,14,.94)!important;
  color:#f8fafc!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  box-shadow:none!important;
}
#filePreviewModal.usemb-gmail-preview-overlay-v172.d-none{
  display:none!important;
}
#filePreviewModal.usemb-gmail-preview-overlay-v172 .usemb-gmail-preview-topbar-v172{
  height:56px!important;
  min-height:56px!important;
  flex:0 0 56px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  padding:0 18px!important;
  background:rgba(12,18,30,.94)!important;
  border-bottom:1px solid rgba(148,163,184,.18)!important;
}
#filePreviewModal.usemb-gmail-preview-overlay-v172 .usemb-gmail-preview-left-v172,
#filePreviewModal.usemb-gmail-preview-overlay-v172 .usemb-gmail-preview-actions-v172{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
}
#filePreviewModal.usemb-gmail-preview-overlay-v172 .usemb-gmail-preview-title-v172{
  margin:0!important;
  color:#f8fafc!important;
  font-size:15px!important;
  font-weight:800!important;
  line-height:1.2!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  max-width:calc(100vw - 150px)!important;
}
#filePreviewModal.usemb-gmail-preview-overlay-v172 .usemb-gmail-preview-close-v172,
#filePreviewModal.usemb-gmail-preview-overlay-v172 .usemb-gmail-preview-icon-v172{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  border:0!important;
  outline:0!important;
  border-radius:999px!important;
  background:transparent!important;
  color:#e5e7eb!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-decoration:none!important;
  box-shadow:none!important;
  cursor:pointer!important;
  padding:0!important;
}
#filePreviewModal.usemb-gmail-preview-overlay-v172 .usemb-gmail-preview-close-v172:hover,
#filePreviewModal.usemb-gmail-preview-overlay-v172 .usemb-gmail-preview-icon-v172:hover{
  background:rgba(255,255,255,.12)!important;
  color:#fff!important;
}
#filePreviewModal.usemb-gmail-preview-overlay-v172 .usemb-gmail-preview-body-v172{
  flex:1 1 auto!important;
  min-height:0!important;
  position:relative!important;
  display:flex!important;
  align-items:stretch!important;
  justify-content:center!important;
  overflow:hidden!important;
  background:rgba(2,6,14,.82)!important;
}
#filePreviewModal.usemb-gmail-preview-overlay-v172 #filePreviewImageWrap.usemb-gmail-preview-stage-v172{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  padding:34px 54px 72px!important;
  box-sizing:border-box!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  overflow:hidden!important;
}
#filePreviewModal.usemb-gmail-preview-overlay-v172 #filePreviewImage{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:0 2px 22px rgba(0,0,0,.32)!important;
  will-change:transform!important;
  backface-visibility:hidden!important;
}
#filePreviewModal.usemb-gmail-preview-overlay-v172 .usemb-gmail-preview-frame-wrap-v172{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  padding:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  display:block!important;
}
#filePreviewModal.usemb-gmail-preview-overlay-v172 .usemb-gmail-preview-frame-wrap-v172.d-none{
  display:none!important;
}
#filePreviewModal.usemb-gmail-preview-overlay-v172 #filePreviewFrame{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  display:block!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
}
#filePreviewModal.usemb-gmail-preview-overlay-v172 .usemb-gmail-preview-zoom-bar-v172{
  position:absolute!important;
  left:50%!important;
  bottom:18px!important;
  transform:translateX(-50%)!important;
  z-index:10!important;
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  padding:6px!important;
  margin:0!important;
  border-radius:999px!important;
  background:rgba(15,23,42,.86)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  box-shadow:0 12px 38px rgba(0,0,0,.30)!important;
}
#filePreviewModal.usemb-gmail-preview-overlay-v172 .usemb-gmail-preview-zoom-bar-v172.d-none{
  display:none!important;
}
#filePreviewModal.usemb-gmail-preview-overlay-v172 .usemb-gmail-preview-zoom-bar-v172 .btn{
  width:36px!important;
  height:34px!important;
  min-width:36px!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  color:#f8fafc!important;
  box-shadow:none!important;
}
#filePreviewModal.usemb-gmail-preview-overlay-v172 .usemb-gmail-preview-zoom-bar-v172 .btn:hover{
  background:rgba(255,255,255,.12)!important;
}
#filePreviewModal.usemb-gmail-preview-overlay-v172 .file-preview-image-message{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  max-width:min(520px,86vw)!important;
  padding:14px 18px!important;
  border-radius:14px!important;
  background:rgba(15,23,42,.88)!important;
  border:1px solid rgba(148,163,184,.28)!important;
  color:#e5e7eb!important;
  font-weight:700!important;
  text-align:center!important;
}
@media (max-width:767.98px){
  #filePreviewModal.usemb-gmail-preview-overlay-v172 .usemb-gmail-preview-topbar-v172{
    height:54px!important;
    min-height:54px!important;
    flex-basis:54px!important;
    padding:0 8px!important;
  }
  #filePreviewModal.usemb-gmail-preview-overlay-v172 .usemb-gmail-preview-title-v172{
    max-width:calc(100vw - 112px)!important;
    font-size:14px!important;
  }
  #filePreviewModal.usemb-gmail-preview-overlay-v172 #filePreviewImageWrap.usemb-gmail-preview-stage-v172{
    padding:18px 12px 78px!important;
  }
  #filePreviewModal.usemb-gmail-preview-overlay-v172 .usemb-gmail-preview-zoom-bar-v172{
    bottom:14px!important;
    max-width:calc(100vw - 24px)!important;
    overflow-x:auto!important;
  }
}
/* Make Trashbox exactly like normal sidebar nav links and keep it active only on Trash route */
.admin-sidebar .usemb-sidebar-trash-nav-v172-ref{
  flex:0 0 auto!important;
  padding:0!important;
  margin:0!important;
}
.admin-sidebar .usemb-sidebar-trash-nav-v172-ref .usemb-sidebar-trash-link-v172-ref{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
  min-height:42px!important;
  padding:10px 12px!important;
  border:0!important;
  border-radius:12px!important;
  background:transparent!important;
  box-shadow:none!important;
  color:inherit!important;
  text-decoration:none!important;
}
.admin-sidebar .usemb-sidebar-trash-nav-v172-ref .usemb-sidebar-trash-link-v172-ref i{
  width:20px!important;
  min-width:20px!important;
  margin:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.admin-sidebar .usemb-sidebar-trash-nav-v172-ref .usemb-sidebar-trash-link-v172-ref span{
  margin:0!important;
}
.admin-sidebar .usemb-sidebar-trash-nav-v172-ref .usemb-sidebar-trash-link-v172-ref.active,
.admin-sidebar .usemb-sidebar-trash-nav-v172-ref .usemb-sidebar-trash-link-v172-ref:hover{
  background:var(--usemb-sidebar-active-bg, rgba(79,134,247,.16))!important;
  color:var(--usemb-sidebar-active-color, #fff)!important;
}
body.admin-layout.route-admin-orders-trash .sidebar-nav a[asp-action="Index"],
body.admin-layout.route-admin-orders-trash .sidebar-nav .nav-link.active[href$="/Admin/Orders"]{
  background:transparent!important;
}
body.admin-layout.route-admin-orders-trash .usemb-topbar-actions,
body.admin-layout.route-admin-orders-trash .admin-top-actions,
body.admin-layout.route-admin-orders-trash .page-top-actions,
body.admin-layout.route-admin-orders-trash .topbar-actions,
body.admin-layout.route-admin-orders-trash .header-actions,
body.admin-layout.route-admin-orders-trash .usemb-header-actions-ref{
  margin-left:auto!important;
  justify-content:flex-end!important;
  align-items:center!important;
}
/* USEMB V172 END */

/* USEMB V173: hard reset preview overlay + Trashbox sidebar/header fixes */
html.usemb-gmail-preview-open-v173,
body.usemb-gmail-preview-open-v173{
  overflow:hidden!important;
}
#usembGmailPreviewV173,
#usembGmailPreviewV173 *{
  box-sizing:border-box!important;
}
#usembGmailPreviewV173.usemb-gmail-preview-v173{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  z-index:2147483600!important;
  background:rgba(0,0,0,.78)!important;
  color:#f8fafc!important;
  display:flex!important;
  flex-direction:column!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
#usembGmailPreviewV173.d-none{
  display:none!important;
}
#usembGmailPreviewV173 .usemb-gmail-preview-v173-top{
  flex:0 0 56px!important;
  height:56px!important;
  min-height:56px!important;
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  padding:0 16px!important;
  background:rgba(18,24,36,.96)!important;
  border:0!important;
  border-bottom:1px solid rgba(255,255,255,.12)!important;
}
#usembGmailPreviewV173 .usemb-gmail-preview-v173-close,
#usembGmailPreviewV173 .usemb-gmail-preview-v173-action{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  color:#f8fafc!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-decoration:none!important;
  box-shadow:none!important;
  outline:0!important;
  cursor:pointer!important;
  padding:0!important;
}
#usembGmailPreviewV173 .usemb-gmail-preview-v173-close:hover,
#usembGmailPreviewV173 .usemb-gmail-preview-v173-action:hover{
  background:rgba(255,255,255,.13)!important;
}
#usembGmailPreviewV173 .usemb-gmail-preview-v173-title{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:15px!important;
  font-weight:800!important;
  line-height:1.2!important;
  color:#f8fafc!important;
}
#usembGmailPreviewV173 .usemb-gmail-preview-v173-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:4px!important;
}
#usembGmailPreviewV173 .usemb-gmail-preview-v173-stage{
  position:relative!important;
  flex:1 1 auto!important;
  min-height:0!important;
  width:100%!important;
  height:auto!important;
  background:rgba(10,16,28,.82)!important;
  overflow:hidden!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  cursor:default!important;
  touch-action:none!important;
}
#usembGmailPreviewV173 .usemb-gmail-preview-v173-stage.can-pan{
  cursor:grab!important;
}
#usembGmailPreviewV173 .usemb-gmail-preview-v173-stage.is-dragging{
  cursor:grabbing!important;
}
#usembGmailPreviewV173 #usembGmailPreviewV173Image{
  display:none!important;
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  max-width:none!important;
  max-height:none!important;
  width:auto!important;
  height:auto!important;
  transform-origin:center center!important;
  user-select:none!important;
  -webkit-user-drag:none!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:0 3px 28px rgba(0,0,0,.30)!important;
  will-change:transform!important;
}
#usembGmailPreviewV173 #usembGmailPreviewV173Image.is-active{
  display:block!important;
}
#usembGmailPreviewV173 #usembGmailPreviewV173Frame{
  display:none!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  border:0!important;
  margin:0!important;
  padding:0!important;
  background:#fff!important;
}
#usembGmailPreviewV173 #usembGmailPreviewV173Frame.is-active{
  display:block!important;
}
#usembGmailPreviewV173 .usemb-gmail-preview-v173-loading{
  display:none!important;
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  z-index:5!important;
  padding:14px 18px!important;
  max-width:min(520px,88vw)!important;
  border-radius:14px!important;
  background:rgba(15,23,42,.90)!important;
  border:1px solid rgba(148,163,184,.25)!important;
  color:#f8fafc!important;
  text-align:center!important;
  font-weight:700!important;
  box-shadow:0 12px 38px rgba(0,0,0,.28)!important;
}
#usembGmailPreviewV173 .usemb-gmail-preview-v173-loading.is-visible{
  display:block!important;
}
#usembGmailPreviewV173 .usemb-gmail-preview-v173-zoom{
  position:absolute!important;
  left:50%!important;
  bottom:18px!important;
  transform:translateX(-50%)!important;
  z-index:6!important;
  display:flex!important;
  align-items:center!important;
  gap:3px!important;
  padding:6px!important;
  border-radius:999px!important;
  background:rgba(18,24,36,.88)!important;
  border:1px solid rgba(255,255,255,.16)!important;
  box-shadow:0 14px 38px rgba(0,0,0,.28)!important;
}
#usembGmailPreviewV173 .usemb-gmail-preview-v173-zoom.d-none{
  display:none!important;
}
#usembGmailPreviewV173 .usemb-gmail-preview-v173-zoom button{
  width:36px!important;
  height:34px!important;
  min-width:36px!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  color:#f8fafc!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  cursor:pointer!important;
  box-shadow:none!important;
  outline:0!important;
  padding:0!important;
}
#usembGmailPreviewV173 .usemb-gmail-preview-v173-zoom button:hover{
  background:rgba(255,255,255,.13)!important;
}
/* Keep the old modal completely out of the way once V173 is active. */
html.usemb-gmail-preview-open-v173 #filePreviewModal,
body.usemb-gmail-preview-open-v173 #filePreviewModal{
  display:none!important;
  pointer-events:none!important;
}
/* Trashbox is now a real sidebar nav item; spacing and active are the same as all other links. */
body.admin-layout.route-admin-orders-trash #admin-sidebar .nav-link[href*="/Admin/Orders"]:not([href*="/Trash"]),
body.admin-layout.route-admin-orders-trash #admin-sidebar .nav-link[href$="/Admin/Orders"]{
  background:transparent!important;
  color:inherit!important;
}
body.admin-layout.route-admin-orders-trash #admin-sidebar .nav-link[href*="/Admin/Orders/Trash"]{
  background:var(--usemb-accent-subtle, rgba(79,134,247,.16))!important;
  color:var(--usemb-accent, #4f86f7)!important;
}
body.admin-layout.route-admin-orders-trash #admin-sidebar .nav-link i,
body.admin-layout.route-admin-orders-trash #admin-sidebar .nav-link span{
  vertical-align:middle!important;
}
/* Trash page header icons must stay at the far right, not in the center. */
body.admin-layout.route-admin-orders-trash .admin-header .navbar,
body.admin-layout.route-admin-orders-trash .admin-header .container-fluid{
  width:100%!important;
  max-width:none!important;
}
body.admin-layout.route-admin-orders-trash .admin-header .container-fluid{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
}
body.admin-layout.route-admin-orders-trash .admin-header .usemb-header-title,
body.admin-layout.route-admin-orders-trash .admin-header .usemb-dashboard-header-title{
  flex:1 1 auto!important;
  min-width:0!important;
  max-width:none!important;
}
body.admin-layout.route-admin-orders-trash .admin-header .usemb-header-actions-ref,
body.admin-layout.route-admin-orders-trash .admin-header .navbar > .container-fluid > .d-flex.align-items-center.gap-2{
  margin-left:auto!important;
  justify-content:flex-end!important;
  align-items:center!important;
  flex:0 0 auto!important;
}
@media (max-width:767.98px){
  #usembGmailPreviewV173 .usemb-gmail-preview-v173-top{
    height:54px!important;
    min-height:54px!important;
    grid-template-columns:42px minmax(0,1fr) auto!important;
    padding:0 8px!important;
    gap:6px!important;
  }
  #usembGmailPreviewV173 .usemb-gmail-preview-v173-close,
  #usembGmailPreviewV173 .usemb-gmail-preview-v173-action{
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
  }
  #usembGmailPreviewV173 .usemb-gmail-preview-v173-title{
    font-size:14px!important;
  }
  #usembGmailPreviewV173 .usemb-gmail-preview-v173-stage{
    align-items:center!important;
  }
  #usembGmailPreviewV173 .usemb-gmail-preview-v173-zoom{
    bottom:12px!important;
  }
}
/* USEMB V173 END */

/* USEMB V174: final force fixes for preview + trash navigation/header */
html.usemb-gmail-preview-open-v174,
body.usemb-gmail-preview-open-v174{
  overflow:hidden!important;
}
#usembGmailPreviewV174,
#usembGmailPreviewV174 *{
  box-sizing:border-box!important;
}
#usembGmailPreviewV174.usemb-gmail-preview-v174{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  z-index:2147483647!important;
  background:rgba(0,0,0,.82)!important;
  color:#f8fafc!important;
  display:flex!important;
  flex-direction:column!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
#usembGmailPreviewV174.d-none{
  display:none!important;
}
#usembGmailPreviewV174 .usemb-gmail-preview-v174-top{
  height:56px!important;
  min-height:56px!important;
  flex:0 0 56px!important;
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  padding:0 16px!important;
  background:rgba(17,24,39,.96)!important;
  border-bottom:1px solid rgba(255,255,255,.14)!important;
}
#usembGmailPreviewV174 .usemb-gmail-preview-v174-title{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:15px!important;
  font-weight:800!important;
  color:#f8fafc!important;
}
#usembGmailPreviewV174 .usemb-gmail-preview-v174-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
}
#usembGmailPreviewV174 .usemb-gmail-preview-v174-icon{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  color:#fff!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-decoration:none!important;
  box-shadow:none!important;
  outline:0!important;
  cursor:pointer!important;
}
#usembGmailPreviewV174 .usemb-gmail-preview-v174-icon:hover{
  background:rgba(255,255,255,.14)!important;
}
#usembGmailPreviewV174 .usemb-gmail-preview-v174-stage{
  position:relative!important;
  flex:1 1 auto!important;
  min-height:0!important;
  width:100%!important;
  background:rgba(9,17,31,.72)!important;
  overflow:hidden!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  touch-action:none!important;
  cursor:default!important;
}
#usembGmailPreviewV174 .usemb-gmail-preview-v174-stage.can-pan{
  cursor:grab!important;
}
#usembGmailPreviewV174 .usemb-gmail-preview-v174-stage.is-dragging{
  cursor:grabbing!important;
}
#usembGmailPreviewV174 #usembGmailPreviewV174Image{
  display:none!important;
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  max-width:none!important;
  max-height:none!important;
  width:auto!important;
  height:auto!important;
  transform-origin:center center!important;
  user-select:none!important;
  -webkit-user-drag:none!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:0 8px 40px rgba(0,0,0,.34)!important;
}
#usembGmailPreviewV174 #usembGmailPreviewV174Image.is-active{
  display:block!important;
}
#usembGmailPreviewV174 #usembGmailPreviewV174Frame{
  display:none!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  border:0!important;
  margin:0!important;
  padding:0!important;
  background:#fff!important;
}
#usembGmailPreviewV174 #usembGmailPreviewV174Frame.is-active{
  display:block!important;
}
#usembGmailPreviewV174 .usemb-gmail-preview-v174-loading{
  display:none!important;
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  z-index:5!important;
  padding:14px 18px!important;
  border:1px solid rgba(148,163,184,.28)!important;
  border-radius:14px!important;
  background:rgba(15,23,42,.92)!important;
  color:#f8fafc!important;
  font-weight:800!important;
  text-align:center!important;
  max-width:min(520px,88vw)!important;
  box-shadow:0 12px 38px rgba(0,0,0,.32)!important;
}
#usembGmailPreviewV174 .usemb-gmail-preview-v174-loading.is-visible{
  display:block!important;
}
#usembGmailPreviewV174 .usemb-gmail-preview-v174-zoom{
  position:absolute!important;
  left:50%!important;
  bottom:18px!important;
  transform:translateX(-50%)!important;
  z-index:6!important;
  display:flex!important;
  align-items:center!important;
  gap:3px!important;
  padding:6px!important;
  border-radius:999px!important;
  background:rgba(17,24,39,.88)!important;
  border:1px solid rgba(255,255,255,.16)!important;
  box-shadow:0 14px 38px rgba(0,0,0,.28)!important;
}
#usembGmailPreviewV174 .usemb-gmail-preview-v174-zoom.d-none{
  display:none!important;
}
#usembGmailPreviewV174 .usemb-gmail-preview-v174-zoom button{
  width:36px!important;
  height:34px!important;
  min-width:36px!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  color:#fff!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  cursor:pointer!important;
  padding:0!important;
  box-shadow:none!important;
  outline:0!important;
}
#usembGmailPreviewV174 .usemb-gmail-preview-v174-zoom button:hover{
  background:rgba(255,255,255,.14)!important;
}
html.usemb-gmail-preview-open-v174 #filePreviewModal,
body.usemb-gmail-preview-open-v174 #filePreviewModal,
html.usemb-gmail-preview-open-v174 #usembGmailPreviewV173,
body.usemb-gmail-preview-open-v174 #usembGmailPreviewV173{
  display:none!important;
  pointer-events:none!important;
}
@media (max-width:767.98px){
  #usembGmailPreviewV174 .usemb-gmail-preview-v174-top{
    height:54px!important;
    min-height:54px!important;
    flex-basis:54px!important;
    grid-template-columns:42px minmax(0,1fr) auto!important;
    padding:0 8px!important;
    gap:6px!important;
  }
  #usembGmailPreviewV174 .usemb-gmail-preview-v174-icon{
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
  }
  #usembGmailPreviewV174 .usemb-gmail-preview-v174-title{
    font-size:14px!important;
  }
  #usembGmailPreviewV174 .usemb-gmail-preview-v174-zoom{
    bottom:12px!important;
  }
}
/* Sidebar active state must match exact current route. */
body.admin-layout:not(.route-admin-orders-trash) #admin-sidebar a.nav-link[href*="/Admin/Orders/Trash"],
body.admin-layout:not(.route-admin-orders-trash) #admin-sidebar a.nav-link[href*="/admin/orders/trash"]{
  background:transparent!important;
  color:var(--bs-nav-link-color, inherit)!important;
}
body.admin-layout.route-admin-orders-trash #admin-sidebar a.nav-link[href$="/Admin/Orders"],
body.admin-layout.route-admin-orders-trash #admin-sidebar a.nav-link[href$="/admin/orders"]{
  background:transparent!important;
  color:var(--bs-nav-link-color, inherit)!important;
}
body.admin-layout.route-admin-orders-trash #admin-sidebar a.nav-link[href*="/Admin/Orders/Trash"],
body.admin-layout.route-admin-orders-trash #admin-sidebar a.nav-link[href*="/admin/orders/trash"]{
  background:var(--usemb-accent-subtle, rgba(79,134,247,.16))!important;
  color:var(--usemb-accent, #4f86f7)!important;
}
/* Trashbox header action icons: force far-right alignment on the page header. */
body.admin-layout.route-admin-orders-trash .admin-header .container-fluid{
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  max-width:none!important;
  position:relative!important;
}
body.admin-layout.route-admin-orders-trash .admin-header .usemb-header-title{
  flex:1 1 auto!important;
  min-width:0!important;
  margin-right:auto!important;
}
body.admin-layout.route-admin-orders-trash .admin-header .search-container,
body.admin-layout.route-admin-orders-trash .admin-header .navbar-brand{
  flex:0 0 auto!important;
}
body.admin-layout.route-admin-orders-trash .admin-header .usemb-header-actions-ref{
  margin-left:auto!important;
  margin-right:0!important;
  justify-content:flex-end!important;
  align-items:center!important;
  flex:0 0 auto!important;
  position:absolute!important;
  right:24px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  z-index:5!important;
}
/* USEMB V174 END */


/* USEMB V175 HARD FINAL: active sidebar, header actions, and Gmail-style preview. */
body.admin-layout .admin-header .navbar > .container-fluid,
body.admin-layout .admin-header .container-fluid{
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  max-width:none!important;
}
body.admin-layout .admin-header .usemb-header-title,
body.admin-layout .admin-header .usemb-dashboard-header-title{
  flex:0 1 auto!important;
  min-width:0!important;
}
body.admin-layout .admin-header .search-container{
  flex:1 1 auto!important;
  min-width:0!important;
}
body.admin-layout .admin-header .usemb-header-actions-ref{
  margin-left:auto!important;
  margin-right:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  position:static!important;
  right:auto!important;
  left:auto!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;
  z-index:20!important;
}
body.admin-layout:not(.route-admin-orders-trash) #admin-sidebar a.nav-link[href*="orders/trash" i],
body.admin-layout:not(.route-admin-orders-trash) .sidebar-nav a.nav-link[href*="orders/trash" i]{
  background:transparent!important;
  background-color:transparent!important;
  color:inherit!important;
  box-shadow:none!important;
}
body.admin-layout:not(.route-admin-orders-trash) #admin-sidebar a.nav-link[href*="orders/trash" i] i,
body.admin-layout:not(.route-admin-orders-trash) #admin-sidebar a.nav-link[href*="orders/trash" i] span,
body.admin-layout:not(.route-admin-orders-trash) .sidebar-nav a.nav-link[href*="orders/trash" i] i,
body.admin-layout:not(.route-admin-orders-trash) .sidebar-nav a.nav-link[href*="orders/trash" i] span{
  color:inherit!important;
}
body.admin-layout.route-admin-orders-trash #admin-sidebar a.nav-link[href$="/admin/orders" i],
body.admin-layout.route-admin-orders-trash #admin-sidebar a.nav-link[href$="/Admin/Orders"],
body.admin-layout.route-admin-orders-trash .sidebar-nav a.nav-link[href$="/admin/orders" i],
body.admin-layout.route-admin-orders-trash .sidebar-nav a.nav-link[href$="/Admin/Orders"]{
  background:transparent!important;
  background-color:transparent!important;
  color:inherit!important;
  box-shadow:none!important;
}
body.admin-layout.route-admin-orders-trash #admin-sidebar a.nav-link[href*="orders/trash" i],
body.admin-layout.route-admin-orders-trash .sidebar-nav a.nav-link[href*="orders/trash" i]{
  background:var(--usemb-accent-subtle, rgba(79,134,247,.16))!important;
  color:var(--usemb-accent, #4f86f7)!important;
}
html.usemb-file-preview-open-v175,
body.usemb-file-preview-open-v175{
  overflow:hidden!important;
}
#usembFilePreviewV175,
#usembFilePreviewV175 *{
  box-sizing:border-box!important;
}
#usembFilePreviewV175.usemb-file-preview-v175{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  z-index:2147483647!important;
  display:flex!important;
  flex-direction:column!important;
  background:rgba(0,0,0,.86)!important;
  color:#f8fafc!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
#usembFilePreviewV175.d-none{ display:none!important; }
#usembFilePreviewV175 .usemb-file-preview-v175-topbar{
  height:58px!important;
  flex:0 0 58px!important;
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr) 48px!important;
  align-items:center!important;
  gap:10px!important;
  padding:0 18px!important;
  background:rgba(18,18,18,.96)!important;
  border-bottom:1px solid rgba(255,255,255,.12)!important;
}
#usembFilePreviewV175 .usemb-file-preview-v175-title{
  min-width:0!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
  font-size:15px!important;
  font-weight:700!important;
  color:#fff!important;
}
#usembFilePreviewV175 .usemb-file-preview-v175-icon{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  border:0!important;
  border-radius:999px!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  color:#fff!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-decoration:none!important;
  cursor:pointer!important;
  box-shadow:none!important;
  outline:0!important;
}
#usembFilePreviewV175 .usemb-file-preview-v175-icon:hover{ background:rgba(255,255,255,.15)!important; }
#usembFilePreviewV175 .usemb-file-preview-v175-stage{
  position:relative!important;
  flex:1 1 auto!important;
  min-height:0!important;
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  background:rgba(0,0,0,.72)!important;
  padding:20px!important;
  touch-action:none!important;
}
#usembFilePreviewV175 .usemb-file-preview-v175-stage.can-pan{ cursor:grab!important; }
#usembFilePreviewV175 .usemb-file-preview-v175-stage.is-dragging{ cursor:grabbing!important; }
#usembFilePreviewV175 .usemb-file-preview-v175-image{
  display:none!important;
  max-width:calc(100vw - 70px)!important;
  max-height:calc(100dvh - 128px)!important;
  width:auto!important;
  height:auto!important;
  object-fit:contain!important;
  transform-origin:center center!important;
  user-select:none!important;
  -webkit-user-drag:none!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:0 14px 50px rgba(0,0,0,.35)!important;
}
#usembFilePreviewV175 .usemb-file-preview-v175-image.is-active{ display:block!important; }
#usembFilePreviewV175 .usemb-file-preview-v175-frame{
  display:none!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
}
#usembFilePreviewV175 .usemb-file-preview-v175-frame.is-active{ display:block!important; }
#usembFilePreviewV175 .usemb-file-preview-v175-loading{
  display:none!important;
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  padding:14px 18px!important;
  border-radius:14px!important;
  border:1px solid rgba(255,255,255,.16)!important;
  background:rgba(15,23,42,.92)!important;
  color:#f8fafc!important;
  font-weight:800!important;
  max-width:min(520px,90vw)!important;
  text-align:center!important;
  z-index:6!important;
}
#usembFilePreviewV175 .usemb-file-preview-v175-loading.is-visible{ display:block!important; }
#usembFilePreviewV175 .usemb-file-preview-v175-zoom{
  position:absolute!important;
  left:50%!important;
  bottom:22px!important;
  transform:translateX(-50%)!important;
  z-index:8!important;
  display:flex!important;
  align-items:center!important;
  gap:2px!important;
  padding:6px!important;
  border-radius:999px!important;
  background:rgba(18,18,18,.82)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  box-shadow:0 14px 40px rgba(0,0,0,.35)!important;
}
#usembFilePreviewV175 .usemb-file-preview-v175-zoom.d-none{ display:none!important; }
#usembFilePreviewV175 .usemb-file-preview-v175-zoom button{
  width:38px!important;
  height:34px!important;
  min-width:38px!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  color:#fff!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  cursor:pointer!important;
  box-shadow:none!important;
  outline:0!important;
}
#usembFilePreviewV175 .usemb-file-preview-v175-zoom button:hover{ background:rgba(255,255,255,.16)!important; }
html.usemb-file-preview-open-v175 #filePreviewModal,
body.usemb-file-preview-open-v175 #filePreviewModal,
html.usemb-file-preview-open-v175 #usembGmailPreviewV173,
body.usemb-file-preview-open-v175 #usembGmailPreviewV173,
html.usemb-file-preview-open-v175 #usembGmailPreviewV174,
body.usemb-file-preview-open-v175 #usembGmailPreviewV174{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
@media (max-width:767.98px){
  #usembFilePreviewV175 .usemb-file-preview-v175-topbar{
    height:54px!important;
    flex-basis:54px!important;
    grid-template-columns:42px minmax(0,1fr) 42px!important;
    padding:0 8px!important;
    gap:6px!important;
  }
  #usembFilePreviewV175 .usemb-file-preview-v175-icon{width:40px!important;height:40px!important;min-width:40px!important;}
  #usembFilePreviewV175 .usemb-file-preview-v175-title{font-size:14px!important;}
  #usembFilePreviewV175 .usemb-file-preview-v175-stage{padding:12px!important;}
  #usembFilePreviewV175 .usemb-file-preview-v175-image{max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 116px)!important;}
  #usembFilePreviewV175 .usemb-file-preview-v175-zoom{bottom:14px!important;}
}
/* USEMB V175 HARD FINAL END */

/* USEMB V176: preview reset marker. New preview uses inline styles to avoid old modal CSS conflicts. */
html body #usembHardPreviewV176 { font-family: inherit; }
/* USEMB V176 END */
