/*
 * Gateway B2B Command Center Pro
 * Theme 1.3.17 — agent dashboard hotfix and client navigation polish.
 */

:root {
  --pfs-pro-accent: #267b6b;
  --pfs-pro-accent-rgb: 38, 123, 107;
  --pfs-pro-accent-strong: #145e52;
  --pfs-pro-accent-soft: #edf7f4;
  --pfs-pro-bg: #f5f7fa;
  --pfs-pro-surface: #ffffff;
  --pfs-pro-surface-alt: #f9fafc;
  --pfs-pro-border: #e2e7ee;
  --pfs-pro-border-strong: #d5dce6;
  --pfs-pro-text: #142039;
  --pfs-pro-muted: #718097;
  --pfs-pro-muted-strong: #526079;
  --pfs-pro-success: #16835f;
  --pfs-pro-success-soft: #eaf8f2;
  --pfs-pro-warning: #b36b09;
  --pfs-pro-warning-soft: #fff5e5;
  --pfs-pro-danger: #c93f4c;
  --pfs-pro-danger-soft: #fff0f2;
  --pfs-pro-info: #436bce;
  --pfs-pro-info-soft: #eef2ff;
  --pfs-pro-purple: #7d4dcc;
  --pfs-pro-purple-soft: #f5efff;
  --pfs-pro-shadow-xs: 0 1px 2px rgba(20, 32, 57, .04);
  --pfs-pro-shadow-sm: 0 8px 24px rgba(20, 32, 57, .06);
  --pfs-pro-shadow-md: 0 18px 48px rgba(20, 32, 57, .10);
  --pfs-pro-radius-sm: 10px;
  --pfs-pro-radius: 16px;
  --pfs-pro-radius-lg: 22px;
  --pfs-pro-header-height: 78px;
  --pfs-pro-sidebar-width: 282px;
  --pfs-pro-sidebar-collapsed: 86px;
  --pfs-pro-font: "Proxima Nova", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.pfs-b2b-pro {
  background: var(--pfs-pro-bg) !important;
  color: var(--pfs-pro-text);
  font-family: var(--pfs-pro-font) !important;
  font-size: 14px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.pfs-b2b-pro *,
body.pfs-b2b-pro *::before,
body.pfs-b2b-pro *::after {
  box-sizing: border-box;
}

body.pfs-b2b-pro a {
  text-underline-offset: 2px;
}

body.pfs-b2b-pro button,
body.pfs-b2b-pro input,
body.pfs-b2b-pro select,
body.pfs-b2b-pro textarea {
  font: inherit;
}

body.pfs-b2b-pro :focus-visible {
  outline: 3px solid rgba(var(--pfs-pro-accent-rgb), .28) !important;
  outline-offset: 2px;
}

.pfs-pro-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  pointer-events: none;
}

.pfs-pro-muted {
  color: var(--pfs-pro-muted);
}

.pfs-pro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 4px;
  color: var(--pfs-pro-accent-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Authoritative navigation — removes legacy icon/position collisions
   -------------------------------------------------------------------------- */

body.pfs-b2b-pro .pfs-pro-nav-source {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

body.pfs-b2b-pro .pfs-pro-sidebar {
  display: flex !important;
  flex-direction: column !important;
  width: var(--pfs-pro-sidebar-width) !important;
  min-width: var(--pfs-pro-sidebar-width) !important;
  max-width: var(--pfs-pro-sidebar-width) !important;
  min-height: calc(100vh - var(--pfs-pro-header-height));
  padding: 16px 12px 14px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  background: rgba(255, 255, 255, .97) !important;
  border-inline-end: 1px solid var(--pfs-pro-border) !important;
  scrollbar-width: thin;
  scrollbar-color: #c3cbd7 transparent;
  transition: width .22s ease, min-width .22s ease, max-width .22s ease, transform .22s ease;
}

body.pfs-b2b-pro .pfs-pro-sidebar::-webkit-scrollbar {
  width: 7px;
}

body.pfs-b2b-pro .pfs-pro-sidebar::-webkit-scrollbar-thumb {
  background: #c3cbd7;
  border: 2px solid #fff;
  border-radius: 99px;
}

.pfs-pro-navigation {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 17px;
  min-height: 0;
  margin: 0;
  padding: 2px 0 0;
}

.pfs-pro-nav-group {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
}

.pfs-pro-nav-heading {
  margin: 0;
  padding: 0 12px 5px;
  color: #98a2b3;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .13em;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

.pfs-pro-nav-list {
  display: grid;
  gap: 4px;
}

body.pfs-b2b-pro .pfs-pro-nav-link,
body.pfs-b2b-pro .pfs-pro-nav-link:visited {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) 18px !important;
  grid-template-rows: auto !important;
  align-items: center !important;
  gap: 0 10px !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  color: var(--pfs-pro-muted-strong) !important;
  text-decoration: none !important;
  border: 1px solid transparent !important;
  border-radius: 13px !important;
  background: transparent !important;
  box-shadow: none !important;
  isolation: isolate;
  overflow: visible !important;
  transform: none !important;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease !important;
}

body.pfs-b2b-pro .pfs-pro-nav-link::before,
body.pfs-b2b-pro .pfs-pro-nav-link::after {
  content: none !important;
  display: none !important;
}

body.pfs-b2b-pro .pfs-pro-nav-link:hover {
  color: var(--pfs-pro-text) !important;
  background: #f6f8fa !important;
  border-color: #edf0f4 !important;
  transform: translateX(2px) !important;
}

html[dir="rtl"] body.pfs-b2b-pro .pfs-pro-nav-link:hover {
  transform: translateX(-2px) !important;
}

body.pfs-b2b-pro .pfs-pro-nav-link.is-active {
  color: var(--pfs-pro-accent-strong) !important;
  background: linear-gradient(135deg, rgba(var(--pfs-pro-accent-rgb), .115), rgba(var(--pfs-pro-accent-rgb), .045)) !important;
  border-color: rgba(var(--pfs-pro-accent-rgb), .16) !important;
  box-shadow: inset 3px 0 0 var(--pfs-pro-accent) !important;
}

html[dir="rtl"] body.pfs-b2b-pro .pfs-pro-nav-link.is-active {
  box-shadow: inset -3px 0 0 var(--pfs-pro-accent) !important;
}

.pfs-pro-nav-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  color: #6f7d91;
  border-radius: 11px;
  background: #f3f5f8;
}

.pfs-pro-nav-link.is-active .pfs-pro-nav-icon {
  color: var(--pfs-pro-accent-strong);
  background: rgba(var(--pfs-pro-accent-rgb), .12);
}

.pfs-pro-nav-icon > svg {
  position: static !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  transform: none !important;
}

.pfs-pro-nav-copy {
  display: grid !important;
  min-width: 0;
  gap: 2px;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2;
}

.pfs-pro-nav-copy strong {
  display: block;
  min-width: 0;
  margin: 0 !important;
  color: inherit !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
  letter-spacing: -.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pfs-pro-nav-copy small {
  display: block;
  min-width: 0;
  margin: 0 !important;
  color: #8a96a8 !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pfs-pro-nav-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: #b0b8c5;
}

.pfs-pro-nav-chevron .pfs-pro-icon {
  width: 16px;
  height: 16px;
}

.pfs-pro-nav-link.is-active .pfs-pro-nav-chevron {
  color: var(--pfs-pro-accent);
}

.pfs-pro-nav-badge {
  position: absolute;
  inset-inline-end: 31px;
  top: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border: 2px solid #fff;
  border-radius: 99px;
  background: var(--pfs-pro-danger);
}

.pfs-pro-sidebar-collapse {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 8px);
  min-height: 40px;
  margin: auto 4px 0;
  padding: 8px 12px;
  color: var(--pfs-pro-muted);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--pfs-pro-border);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
}

.pfs-pro-sidebar-collapse:hover {
  color: var(--pfs-pro-text);
  border-color: var(--pfs-pro-border-strong);
  background: var(--pfs-pro-surface-alt);
}

.pfs-pro-sidebar-collapse .pfs-pro-icon {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}

html[dir="rtl"] .pfs-pro-sidebar-collapse .pfs-pro-icon {
  transform: rotate(0);
}

body.pfs-pro-nav-collapsed .pfs-pro-sidebar {
  width: var(--pfs-pro-sidebar-collapsed) !important;
  min-width: var(--pfs-pro-sidebar-collapsed) !important;
  max-width: var(--pfs-pro-sidebar-collapsed) !important;
}

body.pfs-pro-nav-collapsed .pfs-pro-nav-heading,
body.pfs-pro-nav-collapsed .pfs-pro-nav-copy,
body.pfs-pro-nav-collapsed .pfs-pro-nav-chevron,
body.pfs-pro-nav-collapsed .pfs-pro-sidebar-collapse span {
  display: none !important;
}

body.pfs-pro-nav-collapsed .pfs-pro-nav-link {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  min-height: 52px !important;
  padding: 5px !important;
}

body.pfs-pro-nav-collapsed .pfs-pro-nav-link:hover {
  transform: none !important;
}

body.pfs-pro-nav-collapsed .pfs-pro-nav-badge {
  inset-inline-end: 3px;
  top: 1px;
}

body.pfs-pro-nav-collapsed .pfs-pro-sidebar-collapse {
  width: 48px;
  margin-inline: auto;
  padding: 8px;
}

body.pfs-pro-nav-collapsed .pfs-pro-sidebar-collapse .pfs-pro-icon {
  transform: rotate(0);
}

html[dir="rtl"] body.pfs-pro-nav-collapsed .pfs-pro-sidebar-collapse .pfs-pro-icon {
  transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   Header and global command search
   -------------------------------------------------------------------------- */

body.pfs-b2b-pro .pfs-pro-header {
  z-index: 900 !important;
  min-height: var(--pfs-pro-header-height) !important;
  background: rgba(255, 255, 255, .96) !important;
  border-bottom: 1px solid var(--pfs-pro-border) !important;
  box-shadow: 0 1px 0 rgba(20, 32, 57, .02) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.pfs-pro-search {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: min(430px, 34vw) !important;
  min-width: 270px;
  margin: 0 !important;
}

body.pfs-b2b-pro .pfs-pro-search input[type="search"],
body.pfs-b2b-pro .pfs-pro-search input[type="text"] {
  width: 100% !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 70px 0 42px !important;
  color: var(--pfs-pro-text) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 44px !important;
  border: 1px solid var(--pfs-pro-border) !important;
  border-radius: 13px !important;
  background: #fafbfc !important;
  box-shadow: inset 0 1px 2px rgba(20, 32, 57, .025) !important;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease !important;
}

html[dir="rtl"] body.pfs-b2b-pro .pfs-pro-search input[type="search"],
html[dir="rtl"] body.pfs-b2b-pro .pfs-pro-search input[type="text"] {
  padding: 0 42px 0 70px !important;
}

body.pfs-b2b-pro .pfs-pro-search input:focus {
  border-color: rgba(var(--pfs-pro-accent-rgb), .5) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(var(--pfs-pro-accent-rgb), .09) !important;
  outline: none !important;
}

.pfs-pro-search-icon {
  position: absolute;
  z-index: 2;
  inset-inline-start: 14px;
  top: 50%;
  display: inline-flex;
  color: #8995a8;
  transform: translateY(-50%);
  pointer-events: none;
}

.pfs-pro-search-icon .pfs-pro-icon {
  width: 18px;
  height: 18px;
}

.pfs-pro-search-shortcut {
  position: absolute;
  z-index: 2;
  inset-inline-end: 10px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 43px;
  height: 25px;
  padding: 0 7px;
  color: #8d98aa;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid var(--pfs-pro-border);
  border-radius: 7px;
  background: #fff;
  transform: translateY(-50%);
  pointer-events: none;
}

.pfs-pro-search-results {
  position: absolute;
  z-index: 1500;
  top: calc(100% + 10px);
  inset-inline: 0;
  max-height: min(570px, calc(100vh - 110px));
  padding: 8px;
  overflow: auto;
  color: var(--pfs-pro-text);
  border: 1px solid var(--pfs-pro-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--pfs-pro-shadow-md);
}

.pfs-pro-search-results[hidden] {
  display: none !important;
}

.pfs-pro-search-query {
  padding: 10px 12px 8px;
  color: var(--pfs-pro-muted);
  font-size: 11px;
  border-bottom: 1px solid #f0f2f5;
}

.pfs-pro-search-group {
  display: grid;
  gap: 3px;
  padding: 8px 0;
}

.pfs-pro-search-group + .pfs-pro-search-group {
  border-top: 1px solid #eef1f5;
}

.pfs-pro-search-group h3 {
  margin: 0;
  padding: 2px 10px 5px;
  color: #99a3b2;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.pfs-pro-search-result {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 7px 9px;
  color: var(--pfs-pro-text);
  text-align: start;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.pfs-pro-search-result:hover,
.pfs-pro-search-result:focus-visible {
  background: #f5f7fa;
}

.pfs-pro-search-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--pfs-pro-accent-strong);
  border-radius: 10px;
  background: var(--pfs-pro-accent-soft);
}

.pfs-pro-search-result-icon .pfs-pro-icon {
  width: 18px;
  height: 18px;
}

.pfs-pro-search-result-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.pfs-pro-search-result-copy strong {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pfs-pro-search-result-copy small {
  overflow: hidden;
  color: var(--pfs-pro-muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pfs-pro-search-result > .pfs-pro-icon {
  width: 15px;
  color: #adb6c4;
}

.pfs-pro-search-loading,
.pfs-pro-search-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 100px;
  padding: 20px;
  color: var(--pfs-pro-muted);
  text-align: center;
}

.pfs-pro-search-empty {
  flex-direction: column;
}

.pfs-pro-search-empty > .pfs-pro-icon {
  width: 26px;
  height: 26px;
  color: #9ca7b7;
}

.pfs-pro-search-empty strong {
  color: var(--pfs-pro-text);
  font-size: 13px;
}

.pfs-pro-search-empty span {
  max-width: 300px;
  font-size: 11px;
}

.pfs-pro-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #dde2e9;
  border-top-color: var(--pfs-pro-accent);
  border-radius: 50%;
  animation: pfsProSpin .7s linear infinite;
}

.pfs-pro-header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: 8px;
}

.pfs-pro-header-button,
.pfs-pro-mobile-nav-toggle,
.pfs-pro-icon-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pfs-pro-muted-strong);
  border: 1px solid var(--pfs-pro-border);
  background: #fff;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.pfs-pro-header-button:hover,
.pfs-pro-mobile-nav-toggle:hover,
.pfs-pro-icon-button:hover {
  color: var(--pfs-pro-accent-strong);
  border-color: rgba(var(--pfs-pro-accent-rgb), .28);
  background: var(--pfs-pro-accent-soft);
}

.pfs-pro-notification-button {
  position: relative;
  width: 43px;
  height: 43px;
  border-radius: 12px;
}

.pfs-pro-notification-button .pfs-pro-icon {
  width: 19px;
  height: 19px;
}

.pfs-pro-notification-badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border: 2px solid #fff;
  border-radius: 99px;
  background: var(--pfs-pro-danger);
  box-shadow: 0 2px 5px rgba(201, 63, 76, .24);
}

.pfs-pro-profile-button {
  min-width: 156px;
  min-height: 48px;
  gap: 9px;
  padding: 5px 10px 5px 6px;
  text-align: start;
  border-radius: 14px;
}

html[dir="rtl"] .pfs-pro-profile-button {
  padding: 5px 6px 5px 10px;
}

.pfs-pro-avatar,
.pfs-pro-mini-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--pfs-pro-accent), var(--pfs-pro-accent-strong));
}

.pfs-pro-avatar.is-large {
  width: 48px;
  height: 48px;
  font-size: 15px;
  border-radius: 14px;
}

.pfs-pro-profile-copy {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 1px;
}

.pfs-pro-profile-copy strong {
  max-width: 110px;
  overflow: hidden;
  color: var(--pfs-pro-text);
  font-size: 11.5px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pfs-pro-profile-copy small {
  max-width: 110px;
  overflow: hidden;
  color: var(--pfs-pro-muted);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pfs-pro-profile-button > .pfs-pro-icon {
  width: 15px;
  height: 15px;
}

.pfs-pro-mobile-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-inline: 6px;
  border-radius: 12px;
}

.pfs-pro-nav-overlay {
  display: none;
}

/* --------------------------------------------------------------------------
   Header popovers
   -------------------------------------------------------------------------- */

.pfs-pro-popover {
  position: fixed;
  z-index: 1700;
  width: min(390px, calc(100vw - 32px));
  color: var(--pfs-pro-text);
  border: 1px solid var(--pfs-pro-border);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--pfs-pro-shadow-md);
  overflow: hidden;
  transform-origin: top right;
  animation: pfsProPopover .16s ease both;
}

.pfs-pro-popover[hidden] {
  display: none !important;
}

.pfs-pro-popover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #eef1f5;
}

.pfs-pro-popover-head h3 {
  margin: 0;
  color: var(--pfs-pro-text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.pfs-pro-icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
}

.pfs-pro-icon-button .pfs-pro-icon {
  width: 17px;
  height: 17px;
}

.pfs-pro-notification-list {
  max-height: min(530px, calc(100vh - 150px));
  overflow: auto;
}

.pfs-pro-notification-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  color: var(--pfs-pro-text) !important;
  text-decoration: none !important;
  border-bottom: 1px solid #f0f2f5;
}

.pfs-pro-notification-item:hover {
  background: #f8fafb;
}

.pfs-pro-notification-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--pfs-pro-warning);
  border-radius: 12px;
  background: var(--pfs-pro-warning-soft);
}

.pfs-pro-notification-icon.is-risk {
  color: var(--pfs-pro-danger);
  background: var(--pfs-pro-danger-soft);
}

.pfs-pro-notification-icon .pfs-pro-icon {
  width: 19px;
  height: 19px;
}

.pfs-pro-notification-item > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.pfs-pro-notification-item strong {
  font-size: 12.5px;
  font-weight: 750;
}

.pfs-pro-notification-item small {
  color: var(--pfs-pro-muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.pfs-pro-notification-item b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  height: 27px;
  padding: 0 7px;
  color: var(--pfs-pro-danger);
  font-size: 11px;
  border-radius: 99px;
  background: var(--pfs-pro-danger-soft);
}

.pfs-pro-notification-clear,
.pfs-pro-notification-panel .pfs-pro-empty-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 28px;
  color: var(--pfs-pro-muted);
  text-align: center;
}

.pfs-pro-notification-clear > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  color: var(--pfs-pro-success);
  border-radius: 16px;
  background: var(--pfs-pro-success-soft);
}

.pfs-pro-notification-clear strong {
  color: var(--pfs-pro-text);
  font-size: 15px;
}

.pfs-pro-notification-clear p {
  max-width: 270px;
  margin: 5px 0 0;
  font-size: 11px;
}

.pfs-pro-profile-panel {
  width: min(330px, calc(100vw - 32px));
  padding: 8px;
}

.pfs-pro-profile-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #eef1f5;
}

.pfs-pro-profile-summary > div {
  display: grid;
  gap: 2px;
}

.pfs-pro-profile-summary strong {
  font-size: 14px;
}

.pfs-pro-profile-summary span:not(.pfs-pro-avatar) {
  color: var(--pfs-pro-muted);
  font-size: 10.5px;
}

.pfs-pro-popover-action {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  padding: 8px 10px;
  color: var(--pfs-pro-text) !important;
  text-align: start;
  text-decoration: none !important;
  border: 0;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
}

.pfs-pro-popover-action:hover {
  background: #f5f7fa;
}

.pfs-pro-popover-action > .pfs-pro-icon {
  width: 19px;
  height: 19px;
  margin: auto;
  color: var(--pfs-pro-accent-strong);
}

.pfs-pro-popover-action > span {
  display: grid;
  gap: 1px;
}

.pfs-pro-popover-action strong {
  font-size: 12px;
}

.pfs-pro-popover-action small {
  color: var(--pfs-pro-muted);
  font-size: 10px;
}

/* --------------------------------------------------------------------------
   Dashboard host and layout
   -------------------------------------------------------------------------- */

body.pfs-b2b-pro .pfs-pro-dashboard-host {
  min-width: 0 !important;
  padding: 0 !important;
  background: var(--pfs-pro-bg) !important;
}

body.pfs-b2b-pro .pfs-pro-legacy-dashboard {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.pfs-pro-command-center {
  width: 100%;
  max-width: 1640px;
  min-width: 0;
  margin: 0 auto;
  padding: 30px clamp(20px, 2.2vw, 38px) 42px;
  color: var(--pfs-pro-text);
}

.pfs-pro-command-center h1,
.pfs-pro-command-center h2,
.pfs-pro-command-center h3,
.pfs-pro-command-center p {
  font-family: var(--pfs-pro-font) !important;
}

.pfs-pro-dashboard-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  margin: 0 0 22px;
}

.pfs-pro-welcome h1,
.pfs-pro-dashboard-toolbar h1 {
  margin: 0 !important;
  color: var(--pfs-pro-text) !important;
  font-size: clamp(26px, 2.2vw, 34px) !important;
  font-weight: 850 !important;
  letter-spacing: -.035em !important;
  line-height: 1.12 !important;
}

.pfs-pro-welcome p,
.pfs-pro-dashboard-toolbar > div:first-child > p {
  max-width: 720px;
  margin: 7px 0 0 !important;
  color: var(--pfs-pro-muted) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.pfs-pro-welcome-mark {
  display: inline-block;
  margin-inline-start: 8px;
  color: #e8ab32;
  font-size: .75em;
  vertical-align: top;
  transform: translateY(3px);
}

.pfs-pro-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.pfs-pro-period-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--pfs-pro-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--pfs-pro-shadow-xs);
}

.pfs-pro-period-tabs button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--pfs-pro-muted-strong);
  font-size: 11px;
  font-weight: 750;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}

.pfs-pro-period-tabs button:hover {
  color: var(--pfs-pro-text);
  background: #f5f7fa;
}

.pfs-pro-period-tabs button.is-active {
  color: #fff;
  background: var(--pfs-pro-text);
  box-shadow: 0 5px 12px rgba(20, 32, 57, .15);
}

.pfs-pro-secondary-button,
.pfs-pro-primary-button,
.pfs-pro-text-button,
.pfs-pro-full-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--pfs-pro-muted-strong);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none !important;
  border: 1px solid var(--pfs-pro-border);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.pfs-pro-secondary-button {
  min-height: 42px;
  padding: 0 12px;
}

.pfs-pro-secondary-button:hover,
.pfs-pro-text-button:hover {
  color: var(--pfs-pro-accent-strong);
  border-color: rgba(var(--pfs-pro-accent-rgb), .28);
  background: var(--pfs-pro-accent-soft);
}

.pfs-pro-secondary-button .pfs-pro-icon,
.pfs-pro-primary-button .pfs-pro-icon,
.pfs-pro-text-button .pfs-pro-icon,
.pfs-pro-full-button .pfs-pro-icon {
  width: 16px;
  height: 16px;
}

.pfs-pro-primary-button {
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  border-color: var(--pfs-pro-accent);
  background: var(--pfs-pro-accent);
  box-shadow: 0 8px 18px rgba(var(--pfs-pro-accent-rgb), .2);
}

.pfs-pro-primary-button:hover {
  color: #fff;
  border-color: var(--pfs-pro-accent-strong);
  background: var(--pfs-pro-accent-strong);
  transform: translateY(-1px);
}

.pfs-pro-secondary-button.is-spinning .pfs-pro-icon,
.pfs-pro-primary-button.is-loading .pfs-pro-icon {
  animation: pfsProSpin .75s linear infinite;
}

.pfs-pro-section {
  margin: 0 0 16px;
}

.pfs-pro-section-heading,
.pfs-pro-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.pfs-pro-section-heading {
  align-items: flex-end;
  margin: 0 0 12px;
}

.pfs-pro-section-heading h2,
.pfs-pro-card-head h2 {
  margin: 0 !important;
  color: var(--pfs-pro-text) !important;
  font-size: 18px !important;
  font-weight: 820 !important;
  letter-spacing: -.02em !important;
  line-height: 1.2 !important;
}

.pfs-pro-card-head p {
  margin: 4px 0 0 !important;
  color: var(--pfs-pro-muted) !important;
  font-size: 10.5px !important;
  line-height: 1.45 !important;
}

.pfs-pro-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  color: var(--pfs-pro-success);
  font-size: 9.5px;
  font-weight: 750;
  border: 1px solid #ceeadd;
  border-radius: 99px;
  background: var(--pfs-pro-success-soft);
}

.pfs-pro-live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pfs-pro-success);
  box-shadow: 0 0 0 4px rgba(22, 131, 95, .09);
}

.pfs-pro-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.pfs-pro-kpi,
.pfs-pro-skeleton-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 152px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--pfs-pro-border);
  border-radius: var(--pfs-pro-radius);
  background: #fff;
  box-shadow: var(--pfs-pro-shadow-xs);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.pfs-pro-kpi::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--pfs-pro-accent-rgb), .09), transparent 70%);
  pointer-events: none;
}

html[dir="rtl"] .pfs-pro-kpi::after {
  right: auto;
  left: -34px;
}

.pfs-pro-kpi:hover {
  border-color: rgba(var(--pfs-pro-accent-rgb), .2);
  box-shadow: var(--pfs-pro-shadow-sm);
  transform: translateY(-2px);
}

.pfs-pro-kpi-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: auto;
}

.pfs-pro-kpi-icon,
.pfs-pro-icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: var(--pfs-pro-accent-strong);
  border: 1px solid rgba(var(--pfs-pro-accent-rgb), .1);
  border-radius: 11px;
  background: var(--pfs-pro-accent-soft);
}

.pfs-pro-kpi:nth-child(2) .pfs-pro-kpi-icon {
  color: var(--pfs-pro-info);
  border-color: #dce4ff;
  background: var(--pfs-pro-info-soft);
}

.pfs-pro-kpi:nth-child(3) .pfs-pro-kpi-icon {
  color: var(--pfs-pro-purple);
  border-color: #e8dafe;
  background: var(--pfs-pro-purple-soft);
}

.pfs-pro-kpi:nth-child(4) .pfs-pro-kpi-icon {
  color: var(--pfs-pro-warning);
  border-color: #f6dfb9;
  background: var(--pfs-pro-warning-soft);
}

.pfs-pro-kpi-icon .pfs-pro-icon,
.pfs-pro-icon-tile .pfs-pro-icon {
  width: 19px;
  height: 19px;
}

.pfs-pro-kpi-label {
  color: var(--pfs-pro-muted-strong);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.pfs-pro-kpi-value {
  display: block;
  margin: 17px 0 7px;
  overflow: hidden;
  color: var(--pfs-pro-text);
  font-size: clamp(22px, 1.75vw, 28px);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pfs-pro-kpi-note {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--pfs-pro-muted);
  font-size: 10px;
  font-weight: 650;
}

.pfs-pro-kpi-note .pfs-pro-icon {
  width: 12px;
  height: 12px;
}

.pfs-pro-kpi-note.is-positive {
  color: var(--pfs-pro-success);
}

.pfs-pro-kpi-note.is-negative {
  color: var(--pfs-pro-danger);
}

.pfs-pro-exposure-strip {
  display: grid;
  grid-template-columns: 1.15fr repeat(4, minmax(0, 1fr));
  align-items: center;
  min-height: 86px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--pfs-pro-border);
  border-radius: var(--pfs-pro-radius);
  background: linear-gradient(105deg, #fff, #fbfcfd);
  box-shadow: var(--pfs-pro-shadow-xs);
}

.pfs-pro-exposure-intro {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 8px 12px;
}

.pfs-pro-exposure-intro > div {
  display: grid;
  gap: 1px;
}

.pfs-pro-exposure-intro strong {
  font-size: 13px;
  font-weight: 800;
}

.pfs-pro-exposure-item {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 8px 15px;
  border-inline-start: 1px solid #e9edf2;
}

.pfs-pro-exposure-item > span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--pfs-pro-muted);
  font-size: 9.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pfs-pro-exposure-item > span .pfs-pro-icon {
  width: 14px;
  height: 14px;
  color: #8793a4;
}

.pfs-pro-exposure-item strong {
  overflow: hidden;
  color: var(--pfs-pro-text);
  font-size: 14px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pfs-pro-dashboard-grid {
  display: grid;
  gap: 14px;
  margin: 0 0 14px;
}

.pfs-pro-dashboard-grid.is-priority {
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .85fr);
}

.pfs-pro-dashboard-grid.is-records {
  grid-template-columns: minmax(0, 1.7fr) minmax(330px, .8fr);
}

.pfs-pro-dashboard-grid.is-bottom,
.pfs-pro-dashboard-grid.is-client {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pfs-pro-card {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--pfs-pro-border);
  border-radius: var(--pfs-pro-radius);
  background: #fff;
  box-shadow: var(--pfs-pro-shadow-xs);
}

.pfs-pro-count-orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 43px;
  height: 43px;
  padding: 0 10px;
  color: var(--pfs-pro-success);
  font-size: 14px;
  font-weight: 850;
  border: 1px solid #d3ebdf;
  border-radius: 14px;
  background: var(--pfs-pro-success-soft);
}

.pfs-pro-count-orb.has-items {
  color: var(--pfs-pro-danger);
  border-color: #f3d3d8;
  background: var(--pfs-pro-danger-soft);
}

.pfs-pro-action-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 15px;
}

.pfs-pro-action-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 65px;
  padding: 8px 9px;
  color: var(--pfs-pro-text);
  text-align: start;
  border: 1px solid #edf0f4;
  border-radius: 12px;
  background: #fbfcfd;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.pfs-pro-action-item:hover {
  border-color: rgba(var(--pfs-pro-accent-rgb), .2);
  background: #fff;
  transform: translateY(-1px);
}

.pfs-pro-action-item.has-items {
  border-color: #f1ddd0;
  background: #fffcf7;
}

.pfs-pro-action-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--pfs-pro-warning);
  border-radius: 10px;
  background: var(--pfs-pro-warning-soft);
}

.pfs-pro-action-indicator.is-risk {
  color: var(--pfs-pro-danger);
  background: var(--pfs-pro-danger-soft);
}

.pfs-pro-action-indicator .pfs-pro-icon {
  width: 17px;
  height: 17px;
}

.pfs-pro-action-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.pfs-pro-action-copy strong {
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pfs-pro-action-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--pfs-pro-muted);
  font-size: 9.5px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pfs-pro-action-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  color: var(--pfs-pro-muted-strong);
  font-size: 10px;
  font-weight: 800;
  border-radius: 9px;
  background: #eef1f5;
}

.pfs-pro-action-item.has-items .pfs-pro-action-count {
  color: var(--pfs-pro-danger);
  background: var(--pfs-pro-danger-soft);
}

.pfs-pro-action-item > .pfs-pro-icon {
  width: 14px;
  height: 14px;
  color: #adb6c4;
}

.pfs-pro-all-clear {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 128px;
  margin-top: 15px;
  padding: 20px;
  border: 1px solid #dcefe5;
  border-radius: 14px;
  background: linear-gradient(135deg, #f6fcf9, #fbfefd);
}

.pfs-pro-all-clear-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  color: var(--pfs-pro-success);
  border-radius: 16px;
  background: #e5f6ee;
}

.pfs-pro-all-clear-icon .pfs-pro-icon {
  width: 25px;
  height: 25px;
}

.pfs-pro-all-clear strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.pfs-pro-all-clear p {
  margin: 4px 0 0 !important;
  color: var(--pfs-pro-muted) !important;
  font-size: 10.5px !important;
}

.pfs-pro-trend-total {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.pfs-pro-trend-total span {
  color: var(--pfs-pro-muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.pfs-pro-trend-total strong {
  color: var(--pfs-pro-text);
  font-size: 15px;
  font-weight: 850;
}

.pfs-pro-chart {
  margin-top: 13px;
  color: var(--pfs-pro-accent);
}

.pfs-pro-chart svg {
  display: block;
  width: 100%;
  height: 170px;
  overflow: visible;
}

.pfs-pro-chart-area {
  fill: url(#pfsProArea);
  stroke: none;
}

.pfs-pro-chart-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 5px rgba(var(--pfs-pro-accent-rgb), .14));
}

.pfs-pro-chart circle {
  fill: #fff;
  stroke: currentColor;
  stroke-width: 2.5;
}

.pfs-pro-chart-labels {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  margin-top: -2px;
}

.pfs-pro-chart-labels span {
  display: grid;
  justify-items: center;
  min-width: 0;
  gap: 2px;
}

.pfs-pro-chart-labels strong {
  color: var(--pfs-pro-muted-strong);
  font-size: 9px;
}

.pfs-pro-chart-labels small {
  max-width: 100%;
  overflow: hidden;
  color: var(--pfs-pro-muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pfs-pro-text-button {
  min-height: 34px;
  padding: 0 10px;
  border-color: transparent;
  background: transparent;
}

.pfs-pro-text-button .pfs-pro-icon {
  width: 14px;
}

.pfs-pro-table-wrap {
  margin: 15px -19px -19px;
  overflow: auto;
  border-top: 1px solid #edf0f4;
  border-radius: 0 0 var(--pfs-pro-radius) var(--pfs-pro-radius);
}

.pfs-pro-table {
  width: 100%;
  min-width: 850px;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse !important;
  background: transparent !important;
}

.pfs-pro-table th,
.pfs-pro-table td {
  padding: 12px 13px !important;
  text-align: start !important;
  vertical-align: middle !important;
  border: 0 !important;
  border-bottom: 1px solid #edf0f4 !important;
  background: transparent !important;
}

.pfs-pro-table th {
  color: #7f8b9d !important;
  font-size: 8.5px !important;
  font-weight: 800 !important;
  letter-spacing: .075em !important;
  line-height: 1.25 !important;
  text-transform: uppercase !important;
  background: #fafbfd !important;
  white-space: nowrap;
}

.pfs-pro-table td {
  color: var(--pfs-pro-muted-strong) !important;
  font-size: 10.5px !important;
  font-weight: 550 !important;
  line-height: 1.35 !important;
}

.pfs-pro-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.pfs-pro-table tbody tr:hover td {
  background: #fbfcfd !important;
}

.pfs-pro-customer-name {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 150px;
}

.pfs-pro-mini-avatar {
  width: 32px;
  height: 32px;
  color: var(--pfs-pro-accent-strong);
  font-size: 9px;
  border-radius: 10px;
  background: var(--pfs-pro-accent-soft);
}

.pfs-pro-customer-name strong {
  color: var(--pfs-pro-text);
  font-size: 11px;
  font-weight: 780;
}

.pfs-pro-status,
.pfs-pro-native-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  color: var(--pfs-pro-muted-strong);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .045em;
  line-height: 1.2;
  text-transform: uppercase;
  border: 1px solid #e2e6ec;
  border-radius: 99px;
  background: #f5f7f9;
  white-space: nowrap;
}

.pfs-pro-status.is-success,
.pfs-pro-native-status.is-success {
  color: var(--pfs-pro-success);
  border-color: #cfe8db;
  background: var(--pfs-pro-success-soft);
}

.pfs-pro-status.is-warning,
.pfs-pro-native-status.is-warning {
  color: var(--pfs-pro-warning);
  border-color: #f2d8ae;
  background: var(--pfs-pro-warning-soft);
}

.pfs-pro-status.is-danger,
.pfs-pro-native-status.is-danger {
  color: var(--pfs-pro-danger);
  border-color: #f0ced4;
  background: var(--pfs-pro-danger-soft);
}

.pfs-pro-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--pfs-pro-muted);
  border: 1px solid var(--pfs-pro-border);
  border-radius: 9px;
  background: #fff;
}

.pfs-pro-row-action:hover {
  color: var(--pfs-pro-accent-strong);
  border-color: rgba(var(--pfs-pro-accent-rgb), .25);
  background: var(--pfs-pro-accent-soft);
}

.pfs-pro-row-action .pfs-pro-icon {
  width: 14px;
  height: 14px;
}

.pfs-pro-order-list {
  display: grid;
  margin: 13px -19px -19px;
  border-top: 1px solid #edf0f4;
}

.pfs-pro-order-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto auto 14px;
  align-items: center;
  gap: 9px;
  min-height: 68px;
  padding: 9px 14px;
  color: var(--pfs-pro-text) !important;
  text-decoration: none !important;
  border-bottom: 1px solid #edf0f4;
}

.pfs-pro-order-row:last-child {
  border-bottom: 0;
}

.pfs-pro-order-row:hover {
  background: #fbfcfd;
}

.pfs-pro-order-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--pfs-pro-info);
  border-radius: 10px;
  background: var(--pfs-pro-info-soft);
}

.pfs-pro-order-icon .pfs-pro-icon {
  width: 17px;
  height: 17px;
}

.pfs-pro-order-copy,
.pfs-pro-order-meta {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.pfs-pro-order-copy strong {
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pfs-pro-order-copy small,
.pfs-pro-order-meta small {
  overflow: hidden;
  color: var(--pfs-pro-muted);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pfs-pro-order-meta {
  justify-items: end;
}

.pfs-pro-order-meta strong {
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.pfs-pro-order-row > .pfs-pro-icon {
  width: 14px;
  height: 14px;
  color: #afb8c5;
}

.pfs-pro-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: 25px;
  color: var(--pfs-pro-muted);
  text-align: center;
}

.pfs-pro-empty-state > .pfs-pro-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  color: #9ba7b7;
}

.pfs-pro-empty-state strong {
  color: var(--pfs-pro-text);
  font-size: 13px;
}

.pfs-pro-empty-state p {
  max-width: 290px;
  margin: 4px 0 0 !important;
  font-size: 10px !important;
}

.pfs-pro-ticket-op-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}

.pfs-pro-ticket-op {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 70px;
  padding: 11px;
  border: 1px solid #edf0f4;
  border-radius: 12px;
  background: #fbfcfd;
}

.pfs-pro-ticket-op-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: var(--pfs-pro-muted-strong);
  border-radius: 11px;
  background: #eef1f5;
}

.pfs-pro-ticket-op-icon.is-success {
  color: var(--pfs-pro-success);
  background: var(--pfs-pro-success-soft);
}

.pfs-pro-ticket-op-icon.is-brand {
  color: var(--pfs-pro-accent-strong);
  background: var(--pfs-pro-accent-soft);
}

.pfs-pro-ticket-op-icon.is-danger {
  color: var(--pfs-pro-danger);
  background: var(--pfs-pro-danger-soft);
}

.pfs-pro-ticket-op-icon .pfs-pro-icon {
  width: 18px;
  height: 18px;
}

.pfs-pro-ticket-op > div {
  display: grid;
  gap: 2px;
}

.pfs-pro-ticket-op strong {
  color: var(--pfs-pro-text);
  font-size: 16px;
  font-weight: 850;
}

.pfs-pro-ticket-op span:not(.pfs-pro-ticket-op-icon) {
  color: var(--pfs-pro-muted);
  font-size: 9.5px;
  font-weight: 650;
}

.pfs-pro-health-score {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: var(--pfs-pro-warning);
  font-size: 9px;
  font-weight: 800;
  border: 1px solid #f0d7b0;
  border-radius: 99px;
  background: var(--pfs-pro-warning-soft);
}

.pfs-pro-health-score.is-ready {
  color: var(--pfs-pro-success);
  border-color: #cee9dc;
  background: var(--pfs-pro-success-soft);
}

.pfs-pro-health-list {
  display: grid;
  margin: 13px -19px 0;
  border-top: 1px solid #edf0f4;
}

.pfs-pro-health-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 18px;
  border-bottom: 1px solid #edf0f4;
}

.pfs-pro-health-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pfs-pro-warning);
  box-shadow: 0 0 0 4px var(--pfs-pro-warning-soft);
}

.pfs-pro-health-dot.is-ready {
  background: var(--pfs-pro-success);
  box-shadow: 0 0 0 4px var(--pfs-pro-success-soft);
}

.pfs-pro-health-dot.is-risk {
  background: var(--pfs-pro-danger);
  box-shadow: 0 0 0 4px var(--pfs-pro-danger-soft);
}

.pfs-pro-health-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.pfs-pro-health-copy strong {
  font-size: 10.5px;
  font-weight: 750;
}

.pfs-pro-health-copy small {
  overflow: hidden;
  color: var(--pfs-pro-muted);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pfs-pro-full-button {
  width: 100%;
  min-height: 42px;
  margin-top: 13px;
  padding: 0 12px;
}

.pfs-pro-full-button span {
  flex: 1 1 auto;
  text-align: start;
}

.pfs-pro-quick-actions {
  margin-top: 14px;
  padding: 19px;
  border: 1px solid var(--pfs-pro-border);
  border-radius: var(--pfs-pro-radius);
  background: #fff;
  box-shadow: var(--pfs-pro-shadow-xs);
}

.pfs-pro-quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.pfs-pro-quick-action {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 72px;
  padding: 10px;
  color: var(--pfs-pro-text) !important;
  text-decoration: none !important;
  border: 1px solid #e9edf2;
  border-radius: 13px;
  background: #fbfcfd;
  box-shadow: none !important;
  overflow: hidden;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.pfs-pro-quick-action::before,
.pfs-pro-quick-action::after {
  content: none !important;
  display: none !important;
}

.pfs-pro-quick-action:hover {
  border-color: rgba(var(--pfs-pro-accent-rgb), .22);
  background: #fff;
  box-shadow: var(--pfs-pro-shadow-sm) !important;
  transform: translateY(-2px);
}

.pfs-pro-quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--pfs-pro-accent-strong);
  border-radius: 11px;
  background: var(--pfs-pro-accent-soft);
}

.pfs-pro-quick-action:nth-child(2) .pfs-pro-quick-icon {
  color: var(--pfs-pro-info);
  background: var(--pfs-pro-info-soft);
}

.pfs-pro-quick-action:nth-child(3) .pfs-pro-quick-icon {
  color: var(--pfs-pro-purple);
  background: var(--pfs-pro-purple-soft);
}

.pfs-pro-quick-action:nth-child(4) .pfs-pro-quick-icon {
  color: var(--pfs-pro-warning);
  background: var(--pfs-pro-warning-soft);
}

.pfs-pro-quick-action:nth-child(5) .pfs-pro-quick-icon {
  color: var(--pfs-pro-success);
  background: var(--pfs-pro-success-soft);
}

.pfs-pro-quick-action:nth-child(6) .pfs-pro-quick-icon {
  color: var(--pfs-pro-danger);
  background: var(--pfs-pro-danger-soft);
}

.pfs-pro-quick-icon .pfs-pro-icon {
  width: 18px;
  height: 18px;
}

.pfs-pro-quick-action > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.pfs-pro-quick-action strong {
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pfs-pro-quick-action small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--pfs-pro-muted);
  font-size: 8.5px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pfs-pro-quick-action > .pfs-pro-icon {
  width: 14px;
  height: 14px;
  color: #afb8c5;
}

/* Client dashboard */

.pfs-pro-client-account {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 112px;
  margin: 0 0 16px;
  padding: 18px 21px;
  overflow: hidden;
  color: #fff;
  border-radius: var(--pfs-pro-radius-lg);
  background: linear-gradient(120deg, var(--pfs-pro-text), #263858 72%, var(--pfs-pro-accent-strong));
  box-shadow: 0 16px 36px rgba(20, 32, 57, .16);
}

.pfs-pro-client-account::after {
  content: "";
  position: absolute;
  inset-inline-end: -40px;
  top: -90px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(255, 255, 255, .025), 0 0 0 70px rgba(255, 255, 255, .018);
}

.pfs-pro-client-account-copy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 13px;
}

.pfs-pro-icon-tile.is-brand {
  width: 48px;
  height: 48px;
  color: #fff;
  border-color: rgba(255, 255, 255, .15);
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
}

.pfs-pro-client-account .pfs-pro-eyebrow {
  color: rgba(255, 255, 255, .64);
}

.pfs-pro-client-account h2 {
  margin: 0 0 5px !important;
  color: #fff !important;
  font-size: 21px !important;
  font-weight: 850 !important;
  letter-spacing: -.025em !important;
}

.pfs-pro-client-account .pfs-pro-status {
  color: #c9f7e8;
  border-color: rgba(176, 247, 222, .28);
  background: rgba(29, 171, 123, .16);
}

.pfs-pro-client-account-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  min-width: min(580px, 55%);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(8px);
}

.pfs-pro-client-account-metrics > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 16px;
}

.pfs-pro-client-account-metrics > div + div {
  border-inline-start: 1px solid rgba(255, 255, 255, .1);
}

.pfs-pro-client-account-metrics span {
  color: rgba(255, 255, 255, .62);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.pfs-pro-client-account-metrics strong {
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 830;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Personal preferences dialog
   -------------------------------------------------------------------------- */

body.pfs-pro-dialog-open {
  overflow: hidden;
}

.pfs-pro-dialog-layer {
  position: fixed;
  z-index: 2200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(11, 20, 36, .48);
  backdrop-filter: blur(5px);
}

.pfs-pro-dialog-layer[hidden] {
  display: none !important;
}

.pfs-pro-dialog {
  width: min(620px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  color: var(--pfs-pro-text);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(10, 19, 34, .28);
  animation: pfsProDialog .2s ease both;
}

.pfs-pro-dialog-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 22px 17px;
  border-bottom: 1px solid var(--pfs-pro-border);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.pfs-pro-dialog-head h2 {
  margin: 0 !important;
  color: var(--pfs-pro-text) !important;
  font-size: 21px !important;
  font-weight: 850 !important;
  letter-spacing: -.025em !important;
}

.pfs-pro-dialog-head p {
  margin: 4px 0 0 !important;
  color: var(--pfs-pro-muted) !important;
  font-size: 11px !important;
}

.pfs-pro-preferences-form {
  padding: 18px 22px 22px;
}

.pfs-pro-preferences-form fieldset {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.pfs-pro-preferences-form legend {
  width: 100%;
  margin: 0 0 7px;
  color: var(--pfs-pro-text);
  font-size: 12px;
  font-weight: 800;
}

.pfs-pro-choice,
.pfs-pro-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--pfs-pro-border);
  border-radius: 12px;
  background: #fbfcfd;
  cursor: pointer;
}

.pfs-pro-choice:hover,
.pfs-pro-toggle-row:hover {
  border-color: rgba(var(--pfs-pro-accent-rgb), .22);
  background: #fff;
}

.pfs-pro-choice > span,
.pfs-pro-toggle-row > span {
  display: grid;
  flex: 1 1 auto;
  gap: 2px;
}

.pfs-pro-choice strong,
.pfs-pro-toggle-row strong {
  font-size: 11.5px;
  font-weight: 780;
}

.pfs-pro-choice small,
.pfs-pro-toggle-row small {
  color: var(--pfs-pro-muted);
  font-size: 9.5px;
}

.pfs-pro-choice input {
  width: 17px;
  height: 17px;
  accent-color: var(--pfs-pro-accent);
}

.pfs-pro-toggle-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.pfs-pro-toggle-row i {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 39px;
  height: 23px;
  border-radius: 99px;
  background: #d8dee7;
  transition: background-color .18s ease;
}

.pfs-pro-toggle-row i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(20, 32, 57, .19);
  transition: transform .18s ease;
}

.pfs-pro-toggle-row input:checked + i {
  background: var(--pfs-pro-accent);
}

.pfs-pro-toggle-row input:checked + i::after {
  transform: translateX(16px);
}

html[dir="rtl"] .pfs-pro-toggle-row i::after {
  left: auto;
  right: 3px;
}

html[dir="rtl"] .pfs-pro-toggle-row input:checked + i::after {
  transform: translateX(-16px);
}

.pfs-pro-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 4px;
}

/* --------------------------------------------------------------------------
   Native portal pages: client, orders, tickets, finance and forms
   -------------------------------------------------------------------------- */

body.pfs-b2b-pro .pfs-pro-native-table-wrap {
  width: 100%;
  margin: 14px 0;
  overflow-x: auto;
  border: 1px solid var(--pfs-pro-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--pfs-pro-shadow-xs);
}

body.pfs-b2b-pro table.pfs-pro-enhanced-table {
  width: 100% !important;
  min-width: 720px;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  background: #fff !important;
}

body.pfs-b2b-pro table.pfs-pro-enhanced-table thead {
  position: sticky;
  z-index: 2;
  top: 0;
}

body.pfs-b2b-pro table.pfs-pro-enhanced-table th {
  padding: 12px 14px !important;
  color: #778499 !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  line-height: 1.3 !important;
  text-align: start !important;
  text-transform: uppercase !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pfs-pro-border) !important;
  background: #f9fafc !important;
  white-space: nowrap;
}

body.pfs-b2b-pro table.pfs-pro-enhanced-table td {
  padding: 13px 14px !important;
  color: var(--pfs-pro-muted-strong) !important;
  font-size: 11.5px !important;
  font-weight: 530 !important;
  line-height: 1.45 !important;
  text-align: start !important;
  vertical-align: middle !important;
  border: 0 !important;
  border-bottom: 1px solid #edf0f4 !important;
  background: transparent !important;
}

body.pfs-b2b-pro table.pfs-pro-enhanced-table tbody tr:hover td {
  background: #fbfcfd !important;
}

body.pfs-b2b-pro table.pfs-pro-enhanced-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

body.pfs-b2b-pro .pfs-pro-enhanced-form {
  --field-height: 44px;
}

body.pfs-b2b-pro .pfs-pro-native-field:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.pfs-b2b-pro select.pfs-pro-native-field,
body.pfs-b2b-pro textarea.pfs-pro-native-field {
  min-height: 44px !important;
  padding: 9px 12px !important;
  color: var(--pfs-pro-text) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  border: 1px solid var(--pfs-pro-border-strong) !important;
  border-radius: 11px !important;
  background: #fff !important;
  box-shadow: inset 0 1px 2px rgba(20, 32, 57, .025) !important;
}

body.pfs-b2b-pro textarea.pfs-pro-native-field {
  min-height: 105px !important;
  resize: vertical;
}

body.pfs-b2b-pro .pfs-pro-native-field:focus {
  border-color: rgba(var(--pfs-pro-accent-rgb), .54) !important;
  box-shadow: 0 0 0 4px rgba(var(--pfs-pro-accent-rgb), .085) !important;
  outline: none !important;
}

body.pfs-b2b-pro .pfs-pro-native-card {
  border: 1px solid var(--pfs-pro-border) !important;
  border-radius: 15px !important;
  background: #fff !important;
  box-shadow: var(--pfs-pro-shadow-xs) !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

body.pfs-b2b-pro .pfs-pro-native-card:hover {
  border-color: rgba(var(--pfs-pro-accent-rgb), .18) !important;
  box-shadow: var(--pfs-pro-shadow-sm) !important;
  transform: translateY(-1px);
}

/* Remove legacy Quick Action pseudo blocks and accidental duplicate menu icons. */
body.pfs-b2b-pro [class*="quick-action"]::before,
body.pfs-b2b-pro [class*="quick-action"]::after,
body.pfs-b2b-pro .quick-actions a::before,
body.pfs-b2b-pro .quick-actions button::before {
  content: none !important;
  display: none !important;
}

body.pfs-b2b-pro .pfs-pro-sidebar > svg,
body.pfs-b2b-pro .pfs-pro-sidebar > .menu-icon,
body.pfs-b2b-pro .pfs-pro-sidebar .pfs-pro-navigation + svg {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Loading, errors and toasts
   -------------------------------------------------------------------------- */

.pfs-pro-skeleton-card,
.pfs-pro-skeleton-wide {
  overflow: hidden;
  border: 1px solid var(--pfs-pro-border);
  background: #fff;
}

.pfs-pro-skeleton-card span,
.pfs-pro-skeleton-card strong,
.pfs-pro-skeleton-card small,
.pfs-pro-skeleton-wide span,
.pfs-pro-title-skeleton {
  display: block;
  border-radius: 7px;
  background: linear-gradient(90deg, #eef1f5 25%, #f8f9fb 45%, #eef1f5 65%);
  background-size: 220% 100%;
  animation: pfsProShimmer 1.2s ease infinite;
}

.pfs-pro-skeleton-card span {
  width: 42%;
  height: 12px;
}

.pfs-pro-skeleton-card strong {
  width: 70%;
  height: 28px;
  margin-top: 34px;
}

.pfs-pro-skeleton-card small {
  width: 54%;
  height: 9px;
  margin-top: 10px;
}

.pfs-pro-skeleton-wide {
  height: 250px;
  margin-top: 14px;
  padding: 20px;
  border-radius: var(--pfs-pro-radius);
}

.pfs-pro-skeleton-wide span {
  width: 30%;
  height: 18px;
}

.pfs-pro-title-skeleton {
  display: inline-block;
  width: 90px;
  height: 24px;
  margin-inline-start: 8px;
  vertical-align: middle;
}

.pfs-pro-dashboard-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 420px;
  padding: 40px;
  color: var(--pfs-pro-text);
  text-align: start;
  border: 1px solid var(--pfs-pro-border);
  border-radius: var(--pfs-pro-radius-lg);
  background: #fff;
}

.pfs-pro-dashboard-error > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: var(--pfs-pro-danger);
  border-radius: 20px;
  background: var(--pfs-pro-danger-soft);
}

.pfs-pro-dashboard-error > span .pfs-pro-icon {
  width: 30px;
  height: 30px;
}

.pfs-pro-dashboard-error h1 {
  margin: 0 0 5px !important;
  font-size: 22px !important;
}

.pfs-pro-dashboard-error p {
  max-width: 480px;
  margin: 0 0 15px !important;
  color: var(--pfs-pro-muted) !important;
}

.pfs-pro-toast-region {
  position: fixed;
  z-index: 2600;
  inset-inline-end: 20px;
  bottom: 20px;
  display: grid;
  gap: 9px;
  width: min(390px, calc(100vw - 40px));
}

.pfs-pro-toast {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: var(--pfs-pro-text);
  border: 1px solid var(--pfs-pro-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--pfs-pro-shadow-md);
  animation: pfsProToast .22s ease both;
}

.pfs-pro-toast.is-leaving {
  animation: pfsProToastOut .22s ease both;
}

.pfs-pro-toast > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--pfs-pro-info);
  border-radius: 11px;
  background: var(--pfs-pro-info-soft);
}

.pfs-pro-toast.is-success > span {
  color: var(--pfs-pro-success);
  background: var(--pfs-pro-success-soft);
}

.pfs-pro-toast.is-error > span {
  color: var(--pfs-pro-danger);
  background: var(--pfs-pro-danger-soft);
}

.pfs-pro-toast > div {
  display: grid;
  gap: 2px;
}

.pfs-pro-toast strong {
  font-size: 12px;
}

.pfs-pro-toast p {
  margin: 0 !important;
  color: var(--pfs-pro-muted) !important;
  font-size: 10px !important;
}

.pfs-pro-toast button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--pfs-pro-muted);
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.pfs-pro-toast button:hover {
  color: var(--pfs-pro-text);
  background: #f1f3f6;
}

.pfs-pro-toast button .pfs-pro-icon {
  width: 15px;
  height: 15px;
}

/* Compact density */
body.pfs-pro-density-compact .pfs-pro-command-center {
  padding-top: 22px;
}

body.pfs-pro-density-compact .pfs-pro-kpi,
body.pfs-pro-density-compact .pfs-pro-skeleton-card {
  min-height: 132px;
  padding: 15px;
}

body.pfs-pro-density-compact .pfs-pro-card,
body.pfs-pro-density-compact .pfs-pro-quick-actions {
  padding: 16px;
}

body.pfs-pro-density-compact .pfs-pro-table-wrap,
body.pfs-pro-density-compact .pfs-pro-order-list,
body.pfs-pro-density-compact .pfs-pro-health-list {
  margin-inline: -16px;
  margin-bottom: -16px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1440px) {
  :root {
    --pfs-pro-sidebar-width: 258px;
  }

  .pfs-pro-command-center {
    padding-inline: 24px;
  }

  .pfs-pro-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pfs-pro-exposure-strip {
    grid-template-columns: 1fr repeat(4, minmax(0, 1fr));
  }

  .pfs-pro-exposure-intro {
    padding-inline: 8px;
  }

  .pfs-pro-exposure-item {
    padding-inline: 10px;
  }
}

@media (max-width: 1260px) {
  .pfs-pro-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pfs-pro-dashboard-grid.is-priority,
  .pfs-pro-dashboard-grid.is-records {
    grid-template-columns: minmax(0, 1fr);
  }

  .pfs-pro-exposure-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pfs-pro-exposure-intro {
    grid-column: 1 / -1;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9edf2;
  }

  .pfs-pro-exposure-item:nth-child(2) {
    border-inline-start: 0;
  }

  .pfs-pro-search {
    width: min(360px, 31vw) !important;
  }

  .pfs-pro-profile-copy {
    display: none;
  }

  .pfs-pro-profile-button {
    min-width: 46px;
    width: 46px;
    padding: 4px;
  }

  .pfs-pro-profile-button > .pfs-pro-icon {
    display: none;
  }
}

@media (max-width: 1100px) {
  :root {
    --pfs-pro-sidebar-width: 286px;
  }

  body.pfs-b2b-pro .pfs-pro-sidebar {
    position: fixed !important;
    z-index: 1800 !important;
    top: 0 !important;
    bottom: 0 !important;
    inset-inline-start: 0 !important;
    width: var(--pfs-pro-sidebar-width) !important;
    min-width: var(--pfs-pro-sidebar-width) !important;
    max-width: var(--pfs-pro-sidebar-width) !important;
    min-height: 100vh !important;
    padding-top: 18px !important;
    box-shadow: 18px 0 50px rgba(20, 32, 57, .18);
    transform: translateX(-105%);
  }

  html[dir="rtl"] body.pfs-b2b-pro .pfs-pro-sidebar {
    transform: translateX(105%);
  }

  body.pfs-pro-nav-open .pfs-pro-sidebar,
  html[dir="rtl"] body.pfs-pro-nav-open .pfs-pro-sidebar {
    transform: translateX(0);
  }

  body.pfs-pro-nav-collapsed .pfs-pro-sidebar {
    width: var(--pfs-pro-sidebar-width) !important;
    min-width: var(--pfs-pro-sidebar-width) !important;
    max-width: var(--pfs-pro-sidebar-width) !important;
  }

  body.pfs-pro-nav-collapsed .pfs-pro-nav-heading,
  body.pfs-pro-nav-collapsed .pfs-pro-nav-copy,
  body.pfs-pro-nav-collapsed .pfs-pro-nav-chevron,
  body.pfs-pro-nav-collapsed .pfs-pro-sidebar-collapse span {
    display: initial !important;
  }

  body.pfs-pro-nav-collapsed .pfs-pro-nav-link {
    grid-template-columns: 40px minmax(0, 1fr) 18px !important;
    justify-items: stretch !important;
    min-height: 58px !important;
    padding: 8px 10px !important;
  }

  .pfs-pro-mobile-nav-toggle {
    display: inline-flex;
  }

  .pfs-pro-nav-overlay {
    position: fixed;
    z-index: 1750;
    inset: 0;
    display: block;
    visibility: hidden;
    border: 0;
    background: rgba(11, 20, 36, .42);
    opacity: 0;
    pointer-events: none;
    transition: visibility .2s ease, opacity .2s ease;
  }

  body.pfs-pro-nav-open .pfs-pro-nav-overlay {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .pfs-pro-sidebar-collapse {
    display: none;
  }

  .pfs-pro-command-center {
    padding: 24px 20px 36px;
  }

  .pfs-pro-client-account {
    align-items: flex-start;
    flex-direction: column;
  }

  .pfs-pro-client-account-metrics {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 820px) {
  .pfs-pro-search {
    width: min(290px, 43vw) !important;
    min-width: 170px;
  }

  .pfs-pro-search-shortcut {
    display: none;
  }

  body.pfs-b2b-pro .pfs-pro-search input[type="search"],
  body.pfs-b2b-pro .pfs-pro-search input[type="text"] {
    padding-inline-end: 12px !important;
  }

  .pfs-pro-dashboard-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .pfs-pro-toolbar-actions {
    justify-content: flex-start;
  }

  .pfs-pro-period-tabs {
    flex: 1 1 auto;
  }

  .pfs-pro-period-tabs button {
    flex: 1 1 auto;
  }

  .pfs-pro-dashboard-grid.is-bottom,
  .pfs-pro-dashboard-grid.is-client {
    grid-template-columns: minmax(0, 1fr);
  }

  .pfs-pro-action-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .pfs-pro-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pfs-pro-client-account-metrics {
    grid-template-columns: 1fr;
  }

  .pfs-pro-client-account-metrics > div + div {
    border-inline-start: 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }

  .pfs-pro-order-row {
    grid-template-columns: 34px minmax(0, 1fr) auto 14px;
  }

  .pfs-pro-order-row .pfs-pro-status {
    display: none;
  }
}

@media (max-width: 620px) {
  body.pfs-b2b-pro .pfs-pro-header {
    min-height: 66px !important;
  }

  .pfs-pro-search {
    flex: 1 1 auto;
    width: auto !important;
  }

  .pfs-pro-search input {
    min-width: 0 !important;
  }

  .pfs-pro-notification-button {
    width: 40px;
    height: 40px;
  }

  .pfs-pro-profile-button {
    display: none;
  }

  .pfs-pro-command-center {
    padding: 20px 13px 30px;
  }

  .pfs-pro-welcome h1,
  .pfs-pro-dashboard-toolbar h1 {
    font-size: 25px !important;
  }

  .pfs-pro-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr auto auto;
  }

  .pfs-pro-period-tabs {
    grid-column: 1 / -1;
    order: 2;
  }

  .pfs-pro-kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pfs-pro-kpi,
  .pfs-pro-skeleton-card {
    min-height: 132px;
  }

  .pfs-pro-exposure-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pfs-pro-exposure-item:nth-child(4) {
    border-inline-start: 0;
  }

  .pfs-pro-exposure-item:nth-child(n+4) {
    border-top: 1px solid #e9edf2;
  }

  .pfs-pro-card,
  .pfs-pro-quick-actions {
    padding: 15px;
  }

  .pfs-pro-table-wrap,
  .pfs-pro-order-list,
  .pfs-pro-health-list {
    margin-inline: -15px;
    margin-bottom: -15px;
  }

  .pfs-pro-ticket-op-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pfs-pro-quick-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pfs-pro-quick-action {
    min-height: 68px;
  }

  .pfs-pro-client-account {
    padding: 17px;
    border-radius: 17px;
  }

  .pfs-pro-chart svg {
    height: 145px;
  }

  .pfs-pro-chart-labels small {
    display: none;
  }

  .pfs-pro-dialog-layer {
    align-items: end;
    padding: 0;
  }

  .pfs-pro-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }

  .pfs-pro-dialog-head,
  .pfs-pro-preferences-form {
    padding-inline: 17px;
  }

  .pfs-pro-popover {
    position: fixed !important;
    inset-inline: 12px !important;
    width: auto !important;
  }

  .pfs-pro-notification-panel,
  .pfs-pro-profile-panel {
    top: 72px !important;
  }

  body.pfs-b2b-pro table.pfs-pro-enhanced-table {
    min-width: 0;
  }

  body.pfs-b2b-pro table.pfs-pro-enhanced-table thead {
    display: none;
  }

  body.pfs-b2b-pro table.pfs-pro-enhanced-table,
  body.pfs-b2b-pro table.pfs-pro-enhanced-table tbody,
  body.pfs-b2b-pro table.pfs-pro-enhanced-table tr,
  body.pfs-b2b-pro table.pfs-pro-enhanced-table td {
    display: block;
    width: 100%;
  }

  body.pfs-b2b-pro table.pfs-pro-enhanced-table tr {
    padding: 10px 12px;
    border-bottom: 1px solid var(--pfs-pro-border);
  }

  body.pfs-b2b-pro table.pfs-pro-enhanced-table td {
    display: grid;
    grid-template-columns: minmax(105px, .8fr) minmax(0, 1.2fr);
    gap: 12px;
    padding: 6px 0 !important;
    border: 0 !important;
  }

  body.pfs-b2b-pro table.pfs-pro-enhanced-table td::before {
    content: attr(data-label);
    color: var(--pfs-pro-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
  }
}

@media print {
  .pfs-pro-navigation,
  .pfs-pro-header-tools,
  .pfs-pro-mobile-nav-toggle,
  .pfs-pro-nav-overlay,
  .pfs-pro-toolbar-actions,
  .pfs-pro-quick-actions,
  .pfs-pro-popover,
  .pfs-pro-toast-region {
    display: none !important;
  }

  .pfs-pro-command-center {
    max-width: none;
    padding: 0;
  }

  .pfs-pro-card,
  .pfs-pro-kpi,
  .pfs-pro-exposure-strip {
    box-shadow: none;
    break-inside: avoid;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.pfs-b2b-pro *,
  body.pfs-b2b-pro *::before,
  body.pfs-b2b-pro *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media (forced-colors: active) {
  .pfs-pro-nav-link.is-active,
  .pfs-pro-kpi,
  .pfs-pro-card,
  .pfs-pro-quick-action,
  .pfs-pro-client-account {
    border: 1px solid CanvasText !important;
  }

  .pfs-pro-status,
  .pfs-pro-native-status {
    border: 1px solid currentColor !important;
  }
}

@keyframes pfsProSpin {
  to { transform: rotate(360deg); }
}

@keyframes pfsProShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@keyframes pfsProPopover {
  from { opacity: 0; transform: translateY(-5px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pfsProDialog {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pfsProToast {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pfsProToastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(8px); }
}
