/**
 * Warehouse module — production UI (operations pages + locations).
 * Accents: html[data-wms-accent] (Profile → Design). Default teal.
 */

html {
  --wh-accent: #0f766e;
  --wh-accent-dark: #134e4a;
  --wh-accent-mid: #0d9488;
  --wh-accent-rgb: 15, 118, 110;
  --wh-page-tint: #f0fdfa;
}
html[data-wms-accent="ocean"] {
  --wh-accent: #0369a1;
  --wh-accent-dark: #0c4a6e;
  --wh-accent-mid: #0284c7;
  --wh-accent-rgb: 3, 105, 161;
  --wh-page-tint: #f0f9ff;
}
html[data-wms-accent="forest"] {
  --wh-accent: #15803d;
  --wh-accent-dark: #14532d;
  --wh-accent-mid: #16a34a;
  --wh-accent-rgb: 21, 128, 61;
  --wh-page-tint: #f0fdf4;
}
html[data-wms-accent="slate"] {
  --wh-accent: #475569;
  --wh-accent-dark: #1e293b;
  --wh-accent-mid: #64748b;
  --wh-accent-rgb: 71, 85, 105;
  --wh-page-tint: #f8fafc;
}
html[data-wms-accent="copper"] {
  --wh-accent: #c2410c;
  --wh-accent-dark: #7c2d12;
  --wh-accent-mid: #ea580c;
  --wh-accent-rgb: 194, 65, 12;
  --wh-page-tint: #fff7ed;
}
html[data-wms-accent="wine"] {
  --wh-accent: #9f1239;
  --wh-accent-dark: #4c0519;
  --wh-accent-mid: #be123c;
  --wh-accent-rgb: 159, 18, 57;
  --wh-page-tint: #fff1f2;
}

/* Navigation menu color (Profile → Navigation menu) */
html {
  --wms-nav-bg: #1e293b;
  --wms-nav-bg-deep: #0f172a;
  --wms-nav-text: #cbd5e1;
  --wms-nav-muted: #94a3b8;
  --wms-nav-hover-bg: rgba(148, 163, 184, 0.14);
  --wms-nav-hover-border: rgba(148, 163, 184, 0.28);
  --wms-nav-link-radius: 8px;
  --wms-nav-link-pad-y: 8px;
  --wms-nav-link-pad-x: 10px;
  --wms-nav-gap: 4px;
  --wms-nav-font-size: 0.86rem;
}
html[data-wms-nav-color="ink"] {
  --wms-nav-bg: #0f172a;
  --wms-nav-bg-deep: #020617;
  --wms-nav-hover-bg: rgba(148, 163, 184, 0.12);
  --wms-nav-hover-border: rgba(148, 163, 184, 0.22);
}
html[data-wms-nav-color="graphite"] {
  --wms-nav-bg: #334155;
  --wms-nav-bg-deep: #1e293b;
  --wms-nav-hover-bg: rgba(226, 232, 240, 0.12);
  --wms-nav-hover-border: rgba(226, 232, 240, 0.22);
}
html[data-wms-nav-color="deep-teal"] {
  --wms-nav-bg: #134e4a;
  --wms-nav-bg-deep: #042f2e;
  --wms-nav-hover-bg: rgba(45, 212, 191, 0.14);
  --wms-nav-hover-border: rgba(45, 212, 191, 0.3);
}
html[data-wms-nav-color="deep-ocean"] {
  --wms-nav-bg: #0c4a6e;
  --wms-nav-bg-deep: #082f49;
  --wms-nav-hover-bg: rgba(56, 189, 248, 0.14);
  --wms-nav-hover-border: rgba(56, 189, 248, 0.3);
}
html[data-wms-nav-color="deep-forest"] {
  --wms-nav-bg: #14532d;
  --wms-nav-bg-deep: #052e16;
  --wms-nav-hover-bg: rgba(74, 222, 128, 0.14);
  --wms-nav-hover-border: rgba(74, 222, 128, 0.28);
}
html[data-wms-nav-color="umber"] {
  --wms-nav-bg: #44403c;
  --wms-nav-bg-deep: #1c1917;
  --wms-nav-hover-bg: rgba(251, 191, 36, 0.12);
  --wms-nav-hover-border: rgba(251, 191, 36, 0.28);
}

/* Navigation menu design */
html[data-wms-nav-design="solid"] {
  --wms-nav-link-radius: 10px;
  --wms-nav-link-pad-y: 9px;
}
html[data-wms-nav-design="outline"] {
  --wms-nav-link-radius: 8px;
}
html[data-wms-nav-design="rail"] {
  --wms-nav-link-radius: 0 10px 10px 0;
  --wms-nav-link-pad-x: 12px;
}
html[data-wms-nav-design="compact"] {
  --wms-nav-link-radius: 6px;
  --wms-nav-link-pad-y: 6px;
  --wms-nav-link-pad-x: 8px;
  --wms-nav-gap: 2px;
  --wms-nav-font-size: 0.8rem;
}

/* Font style (Profile → Font style) */
html {
  --wms-font: "Segoe UI", system-ui, -apple-system, sans-serif;
}
html[data-wms-font="modern"] {
  --wms-font: "Outfit", "Segoe UI", system-ui, sans-serif;
}
html[data-wms-font="clean"] {
  --wms-font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
html[data-wms-font="rounded"] {
  --wms-font: "Nunito", "Segoe UI", system-ui, sans-serif;
}
html[data-wms-font="technical"] {
  --wms-font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}

body.dashboard-page,
.wh-workspace-wrap,
#sidebar-content,
.wms-sidebar-shell,
.wms-change-password-modal {
  font-family: var(--wms-font);
}

/* Sidebar shell style (Profile → Sidebar style) */
html[data-wms-sidebar-style="slim"] {
  --app-sidebar-width: 232px;
}
html[data-wms-sidebar-style="floating"] #sidebar-container {
  top: 10px !important;
  left: 10px !important;
  width: calc(var(--app-sidebar-width) - 8px) !important;
  height: calc(100vh - 20px) !important;
  max-height: calc(100vh - 20px) !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28) !important;
  overflow: hidden !important;
}
html[data-wms-sidebar-style="floating"] #sidebar-content {
  min-height: 100% !important;
}
html[data-wms-sidebar-style="floating"] #main-content-area,
html[data-wms-sidebar-style="floating"] #wms-fixed-chrome {
  margin-left: calc(var(--app-sidebar-width) + var(--wms-shell-gap) + 10px);
  width: calc(100% - var(--app-sidebar-width) - var(--wms-shell-gap) - 10px);
}

html[data-wms-sidebar-style="inset"] #sidebar-content .wms-sidebar-shell {
  padding: 14px 12px 20px;
}
html[data-wms-sidebar-style="inset"] #sidebar-content .wms-sidebar-link {
  padding-left: 12px;
  padding-right: 12px;
}
html[data-wms-sidebar-style="inset"] #sidebar-content .wms-sidebar-nav {
  gap: 6px;
}

html[data-wms-sidebar-style="panel"] #sidebar-content .wms-sidebar-shell {
  padding: 12px 10px 18px;
}
html[data-wms-sidebar-style="panel"] #sidebar-content .wms-sidebar-group-panel {
  padding: 6px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
html[data-wms-sidebar-style="panel"] #sidebar-content .wms-sidebar-nav > .wms-sidebar-link,
html[data-wms-sidebar-style="panel"] #sidebar-content .wms-sidebar-nav > a.wms-sidebar-link {
  margin-bottom: 2px;
}

html[data-wms-sidebar-style="slim"] #sidebar-content .wms-sidebar-link {
  font-size: 0.8rem;
  gap: 8px;
  padding: 7px 8px;
}
html[data-wms-sidebar-style="slim"] #sidebar-content .wms-sidebar-link i {
  width: 15px;
  font-size: 0.85em;
}

.wh-page,
.wh-workspace-wrap {
  --wh-surface: #f8fafc;
  --wh-border: #e2e8f0;
  --wh-muted: #64748b;
  max-width: 1320px;
}

/* --- WMS dedicated sidebar (separate from reseller menu logic) --- */
#sidebar-content .wms-sidebar-shell {
  padding: 10px 10px 16px;
  color: #e2e8f0;
  box-sizing: border-box;
}

#sidebar-content .wms-sidebar-head[hidden] {
  display: none !important;
}

#sidebar-content .wms-sidebar-head {
  box-sizing: border-box;
  /* Cancel shell horizontal padding so the logo uses the full sidebar width */
  margin-left: -10px;
  margin-right: -10px;
  width: calc(100% + 20px);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  /* Dark bar + light “mat” under the image so logo text reads on any brand colors */
  background: var(--wms-nav-bg-deep);
  padding: 10px 8px;
  margin-bottom: 10px;
  margin-top: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sidebar-content .wms-sidebar-logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  line-height: 0;
  padding: 14px 12px;
  border-radius: 10px;
  overflow: visible;
}
  box-sizing: border-box;
}

/* Dark: white / yellow / light text on transparent logos (default) */
#sidebar-content .wms-sidebar-logo-slot--dark,
html[data-wms-logo-mat="dark"] #sidebar-content .wms-sidebar-logo-slot {
  background: linear-gradient(180deg, #64748b 0%, #1e293b 100%);
  box-shadow:
    0 3px 14px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* Light: black / navy text in the logo file */
#sidebar-content .wms-sidebar-logo-slot--light,
html[data-wms-logo-mat="light"] #sidebar-content .wms-sidebar-logo-slot {
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.14),
    inset 0 0 0 1px rgba(15, 23, 42, 0.1);
}

html[data-wms-logo-mat="black"] #sidebar-content .wms-sidebar-logo-slot {
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
html[data-wms-logo-mat="white"] #sidebar-content .wms-sidebar-logo-slot {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}
html[data-wms-logo-mat="accent"] #sidebar-content .wms-sidebar-logo-slot {
  background: linear-gradient(135deg, var(--wh-accent-mid) 0%, var(--wh-accent-dark) 100%);
  box-shadow:
    0 4px 16px rgba(var(--wh-accent-rgb), 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

#sidebar-content .wms-sidebar-user-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 104px;
  object-fit: contain;
  object-position: center center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: none;
  transform: scale(var(--wms-logo-zoom, 1));
  transform-origin: center center;
}

html[data-wms-logo-size="s"] #sidebar-content .wms-sidebar-user-logo { max-height: 72px; }
html[data-wms-logo-size="m"] #sidebar-content .wms-sidebar-user-logo { max-height: 104px; }
html[data-wms-logo-size="l"] #sidebar-content .wms-sidebar-user-logo { max-height: 140px; }
html[data-wms-logo-size="xl"] #sidebar-content .wms-sidebar-user-logo { max-height: 176px; }
html[data-wms-logo-size="l"] #sidebar-content .wms-sidebar-logo-slot,
html[data-wms-logo-size="xl"] #sidebar-content .wms-sidebar-logo-slot {
  padding: 16px 12px;
}

/* Dark panel: punch up light text & symbols; thin edge separation */
#sidebar-content .wms-sidebar-logo-slot--dark .wms-sidebar-user-logo,
html[data-wms-logo-mat="dark"] #sidebar-content .wms-sidebar-user-logo,
html[data-wms-logo-mat="black"] #sidebar-content .wms-sidebar-user-logo,
html[data-wms-logo-mat="accent"] #sidebar-content .wms-sidebar-user-logo {
  filter: contrast(1.16) brightness(1.09) saturate(1.06) drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.55));
}

/* Light panel: deepen dark glyphs & icons */
#sidebar-content .wms-sidebar-logo-slot--light .wms-sidebar-user-logo,
html[data-wms-logo-mat="light"] #sidebar-content .wms-sidebar-user-logo,
html[data-wms-logo-mat="white"] #sidebar-content .wms-sidebar-user-logo {
  filter: contrast(1.14) brightness(0.96) saturate(1.04) drop-shadow(0 1px 1px rgba(15, 23, 42, 0.18));
}

html[data-wms-logo-look="crisp"] #sidebar-content .wms-sidebar-user-logo {
  filter: contrast(1.2) brightness(1.08) saturate(1.08) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
html[data-wms-logo-look="bold"] #sidebar-content .wms-sidebar-user-logo {
  filter: contrast(1.35) brightness(1.12) saturate(1.15) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}
html[data-wms-logo-look="soft"] #sidebar-content .wms-sidebar-user-logo {
  filter: contrast(1.05) brightness(1.02) saturate(1) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}
html[data-wms-logo-look="glow"] #sidebar-content .wms-sidebar-user-logo {
  filter: contrast(1.22) brightness(1.14) saturate(1.12)
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.35))
    drop-shadow(0 0 10px rgba(var(--wh-accent-rgb), 0.45));
}

#sidebar-content .wms-sidebar-user-logo[hidden] {
  display: none !important;
}

#sidebar-content .wms-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--wms-nav-gap);
}

#sidebar-content .wms-sidebar-group-label {
  margin-top: 10px;
  margin-bottom: 4px;
  padding: 0 8px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wms-nav-muted);
  font-weight: 700;
}

#sidebar-content .wms-sidebar-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 4px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--wms-nav-muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
#sidebar-content .wms-sidebar-group-toggle:hover,
#sidebar-content .wms-sidebar-group-toggle.is-open {
  color: #e2e8f0;
  background: var(--wms-nav-hover-bg);
  border-color: var(--wms-nav-hover-border);
}
#sidebar-content .wms-sidebar-group-chevron {
  font-size: 0.65rem;
  transition: transform 0.18s ease;
  opacity: 0.85;
}
#sidebar-content .wms-sidebar-group-toggle.is-open .wms-sidebar-group-chevron {
  transform: rotate(180deg);
}
#sidebar-content .wms-sidebar-group-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 2px;
  margin-bottom: 2px;
}
#sidebar-content .wms-sidebar-group-panel[hidden] {
  display: none !important;
}

.wh-flow-nav-legend-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.wh-flow-nav-legend-toggle:hover,
.wh-flow-nav-legend-toggle.is-open {
  color: #0f766e;
  background: rgba(13, 148, 136, 0.08);
}
.wh-flow-nav-legend-toggle i {
  font-size: 0.62rem;
  transition: transform 0.18s ease;
}
.wh-flow-nav-legend-toggle.is-open i {
  transform: rotate(180deg);
}
.wh-flow-nav-group-items {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.wh-flow-nav-group-items[hidden] {
  display: none !important;
}

#sidebar-content .wms-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: var(--wms-nav-link-radius);
  background: transparent;
  color: var(--wms-nav-text);
  text-decoration: none;
  padding: var(--wms-nav-link-pad-y) var(--wms-nav-link-pad-x);
  font-size: var(--wms-nav-font-size);
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-radius 0.15s ease;
}

#sidebar-content button.wms-sidebar-link {
  cursor: pointer;
}

#sidebar-content .wms-sidebar-link:hover {
  background: var(--wms-nav-hover-bg);
  border-color: var(--wms-nav-hover-border);
  color: #f8fafc;
}

#sidebar-content .wms-sidebar-link.active {
  background: linear-gradient(135deg, var(--wh-accent-mid) 0%, var(--wh-accent-dark) 100%);
  border-color: rgba(var(--wh-accent-rgb), 0.38);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

html[data-wms-nav-design="solid"] #sidebar-content .wms-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: transparent;
}
html[data-wms-nav-design="solid"] #sidebar-content .wms-sidebar-link.active {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

html[data-wms-nav-design="outline"] #sidebar-content .wms-sidebar-link {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
html[data-wms-nav-design="outline"] #sidebar-content .wms-sidebar-link:hover {
  border-color: rgba(var(--wh-accent-rgb), 0.45);
  background: transparent;
  color: #fff;
}
html[data-wms-nav-design="outline"] #sidebar-content .wms-sidebar-link.active {
  background: transparent;
  border-color: var(--wh-accent-mid);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(var(--wh-accent-rgb), 0.35);
}

html[data-wms-nav-design="rail"] #sidebar-content .wms-sidebar-link {
  border-left: 3px solid transparent;
  border-radius: 0 10px 10px 0;
}
html[data-wms-nav-design="rail"] #sidebar-content .wms-sidebar-link:hover {
  border-left-color: rgba(var(--wh-accent-rgb), 0.55);
  background: var(--wms-nav-hover-bg);
}
html[data-wms-nav-design="rail"] #sidebar-content .wms-sidebar-link.active {
  border-left: 3px solid #fff;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, rgba(var(--wh-accent-rgb), 0.55) 0%, rgba(var(--wh-accent-rgb), 0.18) 100%);
  box-shadow: none;
}

html[data-wms-nav-design="compact"] #sidebar-content .wms-sidebar-link i {
  width: 16px;
  font-size: 0.85em;
}

#sidebar-content .wms-sidebar-link i {
  width: 18px;
  text-align: center;
}

/* ——— Top pill navigation ——— */
.wh-workspace-wrap .wh-subnav {
  gap: 0.4rem;
  padding: 0.55rem 0.65rem !important;
  background: #fff !important;
  border: 1px solid var(--wh-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  margin-bottom: 1.25rem !important;
}

.wh-workspace-wrap .wh-subnav a {
  color: var(--wh-accent);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wh-workspace-wrap .wh-subnav a:hover {
  background: rgba(15, 118, 110, 0.09);
  border-color: rgba(15, 118, 110, 0.2);
  color: var(--wh-accent-dark);
}

.wh-workspace-wrap .wh-subnav a:focus-visible {
  outline: 2px solid var(--wh-accent);
  outline-offset: 2px;
}

.wh-workspace-wrap .wh-subnav a.active {
  background: linear-gradient(135deg, var(--wh-accent) 0%, var(--wh-accent-dark) 100%);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.35);
}

@media (max-width: 576px) {
  .wh-workspace-wrap .wh-subnav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.35rem;
  }
}

/* ——— Compact hero (module title) ——— */
.wh-page-banner {
  border-radius: 12px !important;
}

.wh-page-banner-bg {
  background: linear-gradient(135deg, var(--wh-accent) 0%, var(--wh-accent-dark) 100%);
}

.wh-page-banner .wh-page-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wh-page-banner .wh-local-badge {
  font-weight: 600;
  font-size: 0.7rem;
  padding: 0.35em 0.65rem;
  letter-spacing: 0.02em;
}

/* ——— Section cards ——— */
.wh-workspace-wrap .wh-section.card {
  border: 1px solid var(--wh-border);
  border-radius: 12px;
  border-left: 4px solid var(--wh-accent);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.wh-workspace-wrap .wh-section.card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

.wh-workspace-wrap .wh-section .card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.wh-workspace-wrap .wh-section .form-label {
  font-weight: 600;
  color: #475569;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wh-workspace-wrap .wh-add-form .btn-primary {
  background: linear-gradient(180deg, var(--wh-accent) 0%, var(--wh-accent-mid) 100%);
  border: none;
  font-weight: 600;
}

.wh-workspace-wrap .wh-add-form .btn-primary:hover {
  background: var(--wh-accent-dark);
}

.wh-workspace-wrap .wh-add-form .form-control:focus,
.wh-workspace-wrap .wh-add-form .form-select:focus {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.15);
}

/* ——— Activity log table ——— */
.wh-workspace-wrap .wh-log {
  font-size: 0.875rem;
}

.wh-workspace-wrap .wh-log thead th {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wh-muted) !important;
  border-bottom-width: 2px;
  white-space: nowrap;
}

.wh-workspace-wrap .wh-log tbody td {
  vertical-align: middle;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.wh-workspace-wrap .wh-section .wh-empty {
  color: #94a3b8;
  font-size: 0.875rem;
  padding: 1rem 0.5rem !important;
  text-align: center;
}

.wh-del {
  border-radius: 8px;
}

/* ——— Locations page (shares theme) ——— */
.wh-locations-page .wh-page-banner-bg {
  background: linear-gradient(135deg, var(--wh-accent) 0%, var(--wh-accent-dark) 100%);
}

.wh-locations-page .wh-locations-card {
  border: 1px solid var(--wh-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  padding: 1.25rem 1.35rem;
}

.wh-locations-page .wh-locations-card .ttl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--wh-muted);
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.wh-locations-page #whList .list-group-item {
  border-radius: 8px;
  margin-bottom: 0.35rem;
  border: 1px solid var(--wh-border);
}

/* ——— Dashboard (overview) ——— */
.wh-dash-page {
  --wh-dash-radius: 14px;
}

.wh-dash-page.wh-workspace-wrap {
  max-width: 1320px;
}

.wh-dash-hero {
  border-radius: var(--wh-dash-radius) !important;
  overflow: hidden;
  border: none !important;
  background: linear-gradient(135deg, var(--wh-accent) 0%, var(--wh-accent-dark) 100%) !important;
  box-shadow: 0 10px 32px rgba(19, 78, 74, 0.28);
}

.wh-dash-hero .wh-dash-hero-lead {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.wh-dash-page .wh-dash-stat {
  border-radius: var(--wh-dash-radius);
  border: 1px solid var(--wh-border);
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wh-dash-page .wh-dash-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.wh-dash-page .wh-dash-stat-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.wh-dash-page .wh-dash-stat-icon.wh-a1 {
  background: rgba(245, 158, 11, 0.12);
  color: #c2410c;
}
.wh-dash-page .wh-dash-stat-icon.wh-a2 {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}
.wh-dash-page .wh-dash-stat-icon.wh-a3 {
  background: rgba(15, 118, 110, 0.14);
  color: var(--wh-accent-dark);
}
.wh-dash-page .wh-dash-stat-icon.wh-a4 {
  background: rgba(99, 102, 241, 0.14);
  color: #4338ca;
}

.wh-dash-page .wh-dash-stat-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wh-muted);
  margin-bottom: 0.15rem;
}

.wh-dash-page .wh-dash-stat-val {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.15;
}

.wh-dash-page .wh-dash-stat-note {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

.wh-dash-page .wh-dash-panel {
  border-radius: var(--wh-dash-radius);
  border: 1px solid var(--wh-border);
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.wh-dash-page .wh-dash-panel .card-header {
  border-bottom: 1px solid #f1f5f9;
  padding: 1rem 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.wh-dash-page .wh-dash-panel.wh-dash-panel-muted {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.wh-dash-page .wh-op-tile {
  display: block;
  border-radius: 12px;
  border: 1px solid var(--wh-border);
  background: #fff;
  padding: 1rem 1rem 0.95rem;
  height: 100%;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.wh-dash-page .wh-op-tile:hover {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.09);
  transform: translateY(-2px);
  color: inherit;
}

.wh-dash-page .wh-op-tile .wh-op-ico {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 118, 110, 0.1);
  color: var(--wh-accent-dark);
  flex-shrink: 0;
  font-size: 1.05rem;
}

.wh-dash-page .wh-op-tile .wh-op-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  margin-top: 0.65rem;
  letter-spacing: -0.01em;
}

.wh-dash-page .wh-op-tile .wh-op-desc {
  font-size: 0.75rem;
  color: var(--wh-muted);
  margin: 0.2rem 0 0;
  line-height: 1.35;
}

.wh-dash-page .wh-recent-table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wh-muted);
  font-weight: 700;
  border-bottom-width: 2px;
}

.wh-dash-page .wh-recent-table tbody td {
  vertical-align: middle;
  font-size: 0.875rem;
}

.wh-badge-soft {
  font-weight: 600;
  font-size: 0.72rem;
}

/* ——— WMS lifecycle nav (grouped pills) ——— */
.wh-workspace-wrap .wh-subnav.wh-subnav-flow {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0.45rem 0.55rem;
  padding: 0.62rem 0.72rem !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%) !important;
  border-color: #dbe8ee !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

/* Hidden on inner pages unless body.wms-show-top-flow-nav (Overview + Inbox) */
body:not(.wms-show-top-flow-nav) .wh-workspace-wrap .wh-subnav.wh-subnav-flow,
body:not(.wms-show-top-flow-nav) nav.wh-subnav.wh-subnav-flow {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wh-flow-nav-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.24rem 0.26rem;
  padding: 0.3rem 0.4rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  flex: 1 1 300px;
  min-width: 280px;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wh-flow-nav-legend {
  display: inline-flex;
  align-items: center;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #334155;
  background: #e2e8f0;
  border-radius: 999px;
  padding: 0.17rem 0.42rem;
  margin-right: 0.2rem;
  white-space: nowrap;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wh-flow-nav-sep {
  display: none;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow button.wh-flow-nav-link-btn {
  color: #0f172a;
  text-decoration: none;
  padding: 0.3rem 0.54rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  background: #f8fafc;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-profile-logo-block,
.wms-top-profile-panel .wms-top-profile-logo-block {
  padding: 0.65rem 0.85rem 0.75rem;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-profile-logo-label,
.wms-top-profile-panel .wms-top-profile-logo-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-profile-logo-hint,
.wms-top-profile-panel .wms-top-profile-logo-hint {
  margin: 0.28rem 0 0.45rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #64748b;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-profile-logo-mat,
.wms-top-profile-panel .wms-top-profile-logo-mat {
  margin-bottom: 0.45rem;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-profile-logo-mat-label,
.wms-top-profile-panel .wms-top-profile-logo-mat-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.28rem;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-profile-logo-mat-btns,
.wms-top-profile-panel .wms-top-profile-logo-mat-btns {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-profile-logo-mat-btn,
.wms-top-profile-panel .wms-top-profile-logo-mat-btn {
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.62rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  cursor: pointer;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-profile-logo-mat-btn.is-active,
.wms-top-profile-panel .wms-top-profile-logo-mat-btn.is-active {
  border-color: rgba(var(--wh-accent-rgb), 0.45);
  background: rgba(var(--wh-accent-rgb), 0.12);
  color: var(--wh-accent-dark);
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-profile-logo-mat-hint,
.wms-top-profile-panel .wms-top-profile-logo-mat-hint {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #64748b;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-profile-logo-row,
.wms-top-profile-panel .wms-top-profile-logo-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-profile-logo-preview,
.wms-top-profile-panel .wms-top-profile-logo-preview {
  max-height: 40px;
  max-width: 160px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  transform: scale(var(--wms-logo-zoom, 1));
  transform-origin: center center;
}

.wms-top-profile-logo-zoom-row,
.wms-design-sheet .wms-top-profile-logo-zoom-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.wms-top-profile-logo-zoom-range,
.wms-design-sheet .wms-top-profile-logo-zoom-range {
  flex: 1 1 auto;
  min-width: 0;
  accent-color: var(--wh-accent, #0f766e);
  cursor: pointer;
}

.wms-top-profile-logo-zoom-val,
.wms-design-sheet .wms-top-profile-logo-zoom-val {
  flex: 0 0 auto;
  min-width: 2.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  text-align: right;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-profile-logo-preview[hidden],
.wms-top-profile-panel .wms-top-profile-logo-preview[hidden] {
  display: none !important;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-profile-logo-actions,
.wms-top-profile-panel .wms-top-profile-logo-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-profile-logo-input,
.wms-top-profile-panel .wms-top-profile-logo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-profile-logo-btn,
.wms-top-profile-panel .wms-top-profile-logo-btn {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.32rem 0.62rem;
  border-radius: 8px;
  border: 1px solid rgba(var(--wh-accent-rgb), 0.35);
  background: rgba(var(--wh-accent-rgb), 0.12);
  color: var(--wh-accent-dark);
  cursor: pointer;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-profile-logo-btn--ghost,
.wms-top-profile-panel .wms-top-profile-logo-btn--ghost {
  background: #fff;
  border-color: #e2e8f0;
  color: #475569;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-profile-logo-btn:hover {
  background: rgba(15, 118, 110, 0.18);
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-profile-logo-btn--ghost:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-profile-logo-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-profile-logo-err {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #b91c1c;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-profile-logo-err[hidden] {
  display: none !important;
}

/* Profile + Sign out (right side) */
.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-session-actions,
#wms-fixed-chrome nav.wh-subnav-flow .wms-top-session-actions,
nav.wh-subnav-flow > .wms-top-session-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  flex: 0 0 auto;
  order: 99;
  position: relative;
  z-index: 50;
}

/* SPA shell: top nav lives outside .wh-workspace-wrap */
#wms-fixed-chrome nav.wh-subnav-flow {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0.45rem 0.55rem;
  padding: 0.62rem 0.72rem !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%) !important;
  border: 1px solid #dbe8ee !important;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.65rem;
  overflow: visible;
}

#wms-fixed-chrome nav.wh-subnav-flow .wh-flow-nav-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.24rem 0.26rem;
  padding: 0.3rem 0.4rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  flex: 1 1 300px;
  min-width: 280px;
}

#wms-fixed-chrome nav.wh-subnav-flow .wms-top-session-actions {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
  align-self: center;
}

#wms-fixed-chrome nav.wh-subnav-flow .wms-top-profile-wrap {
  position: relative;
}

.wms-desk-session-bar .wms-top-profile-panel,
.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-profile-panel,
#wms-fixed-chrome nav.wh-subnav-flow .wms-top-profile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(380px, calc(100vw - 1.5rem));
  min-width: 320px;
  max-width: min(380px, calc(100vw - 1.5rem));
  max-height: min(82vh, 680px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 18px 44px rgba(15, 23, 42, 0.14);
  z-index: 1200;
  box-sizing: border-box;
}

.wms-desk-session-bar .wms-top-profile-panel[hidden],
.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-profile-panel[hidden],
#wms-fixed-chrome nav.wh-subnav-flow .wms-top-profile-panel[hidden] {
  display: none !important;
}

.wms-top-session-actions .wms-top-session-toggles {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex-shrink: 0;
}

.wms-top-session-actions .wms-top-toolbar-icon-btn {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  padding: 0;
  justify-content: center;
  gap: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  color: #0f172a;
}

.wms-top-session-actions .wms-top-toolbar-icon-btn i {
  font-size: 0.82rem;
  margin: 0;
  opacity: 0.95;
}

.wms-top-session-actions .wms-top-toolbar-icon-btn.is-active {
  background: linear-gradient(135deg, var(--wh-accent) 0%, var(--wh-accent-dark) 100%);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(var(--wh-accent-rgb), 0.35);
}

.wms-top-inbox-notify-btn {
  position: relative;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wms-top-inbox-notify-btn:hover {
  color: var(--wh-accent-dark);
  border-color: rgba(var(--wh-accent-rgb), 0.35);
}

.wms-top-inbox-notify-btn[data-wms-inbox-has-notify="1"] {
  color: var(--wh-accent-dark);
}

.wms-top-inbox-notify-badge {
  position: absolute;
  top: -0.28rem;
  right: -0.28rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.05rem;
  text-align: center;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.22);
  pointer-events: none;
}

.wms-top-inbox-notify-badge[hidden] {
  display: none !important;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-session-toggles,
.wms-desk-session-bar .wms-top-session-toggles {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex-shrink: 0;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-toolbar-icon-btn,
.wms-desk-session-bar .wms-top-toolbar-icon-btn {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  padding: 0;
  justify-content: center;
  gap: 0;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-toolbar-icon-btn i,
.wms-desk-session-bar .wms-top-toolbar-icon-btn i {
  font-size: 0.82rem;
  margin: 0;
  opacity: 0.95;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-toolbar-icon-btn.is-active,
.wms-desk-session-bar .wms-top-toolbar-icon-btn.is-active {
  background: linear-gradient(135deg, var(--wh-accent) 0%, var(--wh-accent-dark) 100%);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(var(--wh-accent-rgb), 0.35);
}

.wms-desk-session-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.65rem;
  position: relative;
  z-index: 60;
}

/* Dashboard + Inbox use Profile & design in the top nav bar only */
body.wms-show-top-flow-nav #header-container .wms-desk-session-bar {
  display: none !important;
}

.wms-desk-session-bar .wms-top-session-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}

.wms-desk-session-bar .wms-top-profile-wrap {
  position: relative;
}

/* Profile trigger button */
.wms-top-session-actions .wms-top-profile-btn {
  gap: 0.42rem;
  padding: 0.34rem 0.62rem 0.34rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.wms-top-session-actions .wms-top-profile-btn.is-open {
  background: rgba(var(--wh-accent-rgb), 0.1);
  border-color: rgba(var(--wh-accent-rgb), 0.32);
  color: var(--wh-accent-dark);
  box-shadow: 0 0 0 3px rgba(var(--wh-accent-rgb), 0.12);
}

.wms-top-profile-btn-avatar {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--wh-accent) 0%, var(--wh-accent-dark) 100%);
  color: #fff;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.wms-top-profile-btn-chevron {
  font-size: 0.62rem;
  opacity: 0.55;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.wms-top-profile-btn.is-open .wms-top-profile-btn-chevron {
  transform: rotate(180deg);
  opacity: 0.85;
}

/* Profile panel — header */
.wms-top-profile-head {
  flex: 0 0 auto;
  padding: 0.95rem 1rem 0.85rem;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(var(--wh-accent-rgb), 0.16) 0%, rgba(var(--wh-accent-rgb), 0) 58%),
    linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid #eef2f7;
}

.wms-top-profile-head-main {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
}

.wms-top-profile-avatar {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--wh-accent) 0%, var(--wh-accent-dark) 100%);
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(var(--wh-accent-rgb), 0.28);
}

.wms-top-profile-identity {
  min-width: 0;
  flex: 1 1 auto;
}

.wms-top-profile-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: #0f172a;
  line-height: 1.25;
  word-break: break-word;
}

.wms-top-profile-email {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 0.18rem;
  word-break: break-word;
}

.wms-top-profile-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.55rem 0.65rem 0.65rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.wms-top-profile-section--name {
  margin-bottom: 0.65rem;
}

.wms-top-profile-name-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.wms-top-profile-name-input {
  flex: 1 1 140px;
  min-width: 0;
  font-size: 0.82rem;
}

.wms-top-profile-name-save {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
}

.wms-top-profile-name-msg {
  flex: 1 1 100%;
  font-size: 0.72rem;
  margin-top: 0.15rem;
}

.wms-top-profile-name-msg.is-ok {
  color: #15803d;
}

.wms-top-profile-name-msg.is-err {
  color: #b91c1c;
}

.wms-top-profile-section {
  margin-bottom: 0.55rem;
}

.wms-top-profile-section:last-child {
  margin-bottom: 0;
}

.wms-top-profile-section-label {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 0 0.2rem 0.38rem;
}

.wms-top-profile-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.38rem;
}

.wms-top-profile-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.52rem 0.58rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid #e8eef4;
  background: #f8fafc;
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

.wms-top-profile-link:nth-child(3) {
  grid-column: 1 / -1;
}

.wms-top-profile-link:hover {
  background: #fff;
  border-color: rgba(var(--wh-accent-rgb), 0.35);
  color: var(--wh-accent-dark);
  transform: translateY(-1px);
}

.wms-top-profile-link-icon {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(var(--wh-accent-rgb), 0.12);
  color: var(--wh-accent-dark);
  font-size: 0.72rem;
}

.wms-top-profile-link-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

button.wms-top-profile-link {
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: left;
  margin: 0;
}

.wms-top-profile-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.58rem 0.68rem;
  border: 1px solid #e8eef4;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.wms-top-profile-section-toggle:hover {
  background: #f8fafc;
  border-color: rgba(var(--wh-accent-rgb), 0.28);
}

.wms-top-profile-section-toggle.is-open {
  background: rgba(var(--wh-accent-rgb), 0.08);
  border-color: rgba(var(--wh-accent-rgb), 0.32);
  color: var(--wh-accent-dark);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

.wms-top-profile-section-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-width: 0;
}

.wms-top-profile-section-toggle-label i {
  width: 1.35rem;
  text-align: center;
  color: var(--wh-accent);
}

.wms-top-profile-section-chevron {
  font-size: 0.62rem;
  opacity: 0.55;
  transition: transform 0.18s ease;
}

.wms-top-profile-section-toggle.is-open .wms-top-profile-section-chevron {
  transform: rotate(180deg);
}

.wms-top-profile-section-body {
  padding: 0.55rem 0.65rem 0.7rem;
  border: 1px solid rgba(var(--wh-accent-rgb), 0.22);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fbfdff;
}

.wms-top-profile-section-body[hidden] {
  display: none !important;
}

.wms-top-profile-design {
  padding: 0;
  border: 0;
}

.wms-top-profile-design-label,
.wms-top-profile-panel .wms-top-profile-design-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.wms-top-profile-design-hint,
.wms-top-profile-panel .wms-top-profile-design-hint {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.35;
  margin: 0 0 0.55rem;
}

.wms-top-profile-accent-swatches,
.wms-top-profile-panel .wms-top-profile-accent-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.wms-top-profile-accent-btn,
.wms-top-profile-panel .wms-top-profile-accent-btn {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  border: 2px solid #e2e8f0;
  padding: 0;
  cursor: pointer;
  background: var(--swatch, #0f766e);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.wms-top-profile-accent-btn:hover,
.wms-top-profile-panel .wms-top-profile-accent-btn:hover {
  transform: scale(1.06);
}

.wms-top-profile-accent-btn.is-active,
.wms-top-profile-panel .wms-top-profile-accent-btn.is-active {
  border-color: #0f172a;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(var(--wh-accent-rgb), 0.55);
}

.wms-top-profile-accent-btn:focus-visible,
.wms-top-profile-panel .wms-top-profile-accent-btn:focus-visible {
  outline: 2px solid var(--wh-accent);
  outline-offset: 2px;
}

.wms-top-profile-design-sub,
.wms-top-profile-panel .wms-top-profile-design-sub {
  margin-top: 0.7rem;
}

.wms-top-profile-design-sub:first-child,
.wms-top-profile-panel .wms-top-profile-design-sub:first-child {
  margin-top: 0;
}

.wms-top-profile-design-chips,
.wms-top-profile-panel .wms-top-profile-design-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.wms-top-profile-design-chip,
.wms-top-profile-panel .wms-top-profile-design-chip {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.wms-top-profile-design-chip:hover,
.wms-top-profile-panel .wms-top-profile-design-chip:hover {
  border-color: rgba(var(--wh-accent-rgb), 0.4);
  color: var(--wh-accent-dark);
}

.wms-top-profile-design-chip.is-active,
.wms-top-profile-panel .wms-top-profile-design-chip.is-active {
  background: rgba(var(--wh-accent-rgb), 0.12);
  border-color: rgba(var(--wh-accent-rgb), 0.45);
  color: var(--wh-accent-dark);
}

.wms-top-profile-footer {
  flex: 0 0 auto;
  padding: 0.62rem 0.75rem 0.75rem;
  border-top: 1px solid #eef2f7;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.wms-top-profile-design-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.58rem 0.75rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--wh-accent) 0%, var(--wh-accent-dark) 100%);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(var(--wh-accent-rgb), 0.28);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.wms-top-profile-design-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(var(--wh-accent-rgb), 0.34);
}

.wms-top-profile-signout-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.45rem;
  padding: 0.52rem 0.75rem;
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: 12px;
  background: #fff5f5;
  color: #b91c1c;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.wms-top-profile-signout-btn:hover {
  background: #fee2e2;
  border-color: rgba(248, 113, 113, 0.55);
  color: #991b1b;
}

.wms-top-profile-wrap {
  position: relative;
}

/* Design sheet — above Bootstrap modals/backdrops + chat FAB so clicks always reach controls */
.wms-design-sheet {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  grid-template-columns: 1fr min(380px, 100vw);
  grid-template-rows: 1fr;
  pointer-events: auto;
}
.wms-design-sheet[hidden] {
  display: none !important;
  pointer-events: none !important;
}
/* Left column only — must NOT overlap the panel or it steals every click */
.wms-design-sheet__backdrop {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 0;
  background: rgba(15, 23, 42, 0.42);
  cursor: pointer;
}
.wms-design-sheet__panel {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  overflow: auto;
  background: #fff;
  color: #0f172a;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.2);
  padding: 1rem 0 1.5rem;
  font-family: var(--wms-font, "Segoe UI", system-ui, sans-serif);
  pointer-events: auto;
}
.wms-design-sheet__head {
  padding: 0 1rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.wms-design-sheet__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}
.wms-design-sheet__close {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 8px;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.wms-design-sheet .wms-top-profile-design,
.wms-design-sheet .wms-top-profile-logo-block {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}
.wms-design-sheet .wms-top-profile-design-label,
.wms-design-sheet .wms-top-profile-logo-label,
.wms-design-sheet .wms-top-profile-logo-mat-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
  display: block;
}
.wms-design-sheet .wms-top-profile-design-hint,
.wms-design-sheet .wms-top-profile-logo-hint,
.wms-design-sheet .wms-top-profile-logo-mat-hint {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.35;
  margin: 0 0 0.55rem;
}
.wms-design-sheet .wms-top-profile-design-sub { margin-top: 0.7rem; }
.wms-design-sheet .wms-top-profile-design-sub:first-child { margin-top: 0; }
.wms-design-sheet .wms-top-profile-accent-swatches,
.wms-design-sheet .wms-top-profile-design-chips,
.wms-design-sheet .wms-top-profile-logo-mat-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.wms-design-sheet .wms-top-profile-accent-btn {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  border: 2px solid #e2e8f0;
  padding: 0;
  cursor: pointer;
  background: var(--swatch, #0f766e);
}
.wms-design-sheet .wms-top-profile-accent-btn.is-active {
  border-color: #0f172a;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(var(--wh-accent-rgb), 0.55);
}
.wms-design-sheet .wms-top-profile-design-chip,
.wms-design-sheet .wms-top-profile-logo-mat-btn {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
}
.wms-design-sheet .wms-top-profile-design-chip.is-active,
.wms-design-sheet .wms-top-profile-logo-mat-btn.is-active {
  background: rgba(var(--wh-accent-rgb), 0.12);
  border-color: rgba(var(--wh-accent-rgb), 0.45);
  color: var(--wh-accent-dark);
}
.wms-design-sheet .wms-top-profile-logo-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.45rem;
}
.wms-design-sheet .wms-top-profile-logo-preview {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  transform: scale(var(--wms-logo-zoom, 1));
  transform-origin: center center;
}
.wms-design-sheet .wms-top-profile-logo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.wms-design-sheet .wms-top-profile-logo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.wms-design-sheet .wms-top-profile-logo-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.wms-design-sheet .wms-top-profile-logo-err {
  color: #b91c1c;
  font-size: 0.75rem;
  margin-top: 0.4rem;
}

.wms-top-profile-panel .wms-top-profile-logo-btn:hover,
.wh-workspace-wrap .wh-subnav.wh-subnav-flow .wms-top-profile-logo-btn:hover {
  background: rgba(var(--wh-accent-rgb), 0.18);
}

/* WMS desk — change password modal (injected by wms-flow-nav.js) */
.wms-change-password-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.wms-change-password-modal[hidden] {
  display: none !important;
}

.wms-change-password-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}

.wms-change-password-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
  padding: 1.25rem 1.35rem 1.15rem;
  color: #0f172a;
  max-height: min(90vh, 520px);
  overflow: auto;
}

.wms-change-password-modal__title {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #042f2e;
}

.wms-change-password-modal__lead {
  margin: 0 0 0.65rem 0;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.5;
}

.wms-change-password-modal__hint {
  margin: 0 0 1rem 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
}

.wms-change-password-modal__micro {
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
  margin-top: 0.15rem;
}

.wms-change-password-modal__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
}

.wms-change-password-modal__input {
  font: inherit;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(var(--wh-accent-rgb), 0.28);
  background: var(--wh-page-tint);
  color: #0f172a;
}

.wms-change-password-modal__input:focus {
  outline: 2px solid rgba(var(--wh-accent-rgb), 0.35);
  border-color: var(--wh-accent-mid);
  background: #fff;
}

.wms-change-password-modal__err {
  font-size: 0.78rem;
  color: #b91c1c;
  margin-bottom: 0.65rem;
}

.wms-change-password-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.wms-change-password-modal__btn {
  flex: 1 1 auto;
  min-width: 6rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
}

.wms-change-password-modal__btn--primary {
  border: none;
  background: linear-gradient(135deg, var(--wh-accent-mid) 0%, var(--wh-accent) 100%);
  color: #fff;
}

.wms-change-password-modal__btn--primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 1200px) {
  .wh-workspace-wrap .wh-subnav.wh-subnav-flow .wh-flow-nav-group {
    justify-content: flex-start;
  }
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow button.wh-flow-nav-link-btn:hover {
  background: rgba(15, 118, 110, 0.11);
  border-color: rgba(15, 118, 110, 0.24);
  color: #0f766e;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow button.wh-flow-nav-link-btn:focus-visible {
  outline: 2px solid var(--wh-accent);
  outline-offset: 2px;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow button.wh-flow-nav-link-btn.active {
  background: linear-gradient(135deg, var(--wh-accent) 0%, var(--wh-accent-dark) 100%);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.35);
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow a {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.3rem 0.54rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #0f172a;
  border: 1px solid transparent;
  background: #f8fafc;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow a:hover {
  background: rgba(15, 118, 110, 0.11);
  border-color: rgba(15, 118, 110, 0.24);
  color: #0f766e;
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow a.active {
  background: linear-gradient(135deg, var(--wh-accent) 0%, var(--wh-accent-dark) 100%);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.35);
}

.wh-workspace-wrap .wh-subnav.wh-subnav-flow a i,
.wh-workspace-wrap .wh-subnav.wh-subnav-flow button.wh-flow-nav-link-btn i {
  font-size: 0.78rem;
  opacity: 0.92;
}

dialog.wms-partner-dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: min(460px, calc(100vw - 2rem));
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
}

dialog.wms-partner-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.wms-partner-dialog-inner {
  padding: 1.25rem 1.35rem 1.35rem;
}

.wms-partner-dialog-head .btn-close {
  flex-shrink: 0;
}

