/* =========================================
   Toolbar / Action Bar (�������)
   ========================================= */
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* gap-4 */
  align-items: center;
  flex-shrink: 0;

  /* --- ���: ��Ѻ���ᶺ价ҧ��� --- */
  margin-left: 0.1rem; /* ��Ѻ�͡�һ���ҳ 24px ���͡ѹ Hover ��ҹ����ⴹ�Ѵ */
  /* -------------------------------- */
}

@media (min-width: 768px) {
  .toolbar {
    flex-direction: row;
  }
}

/* �������ͧ������е�ǡ�ͧ */
.search-group {
  display: flex;
  gap: 0.5rem; /* gap-2 */
  width: 100%;
  flex: 1; /* flex-1 */
}

@media (min-width: 768px) {
  .search-group {
    width: auto;
  }
}

/* ���ͧ���� */
.search-box {
  position: relative;
  flex: 1; /* flex-1 �����״��������鹷�� */
  max-width: 350px; /* ������÷Ѵ���: �ӡѴ�������ҧ�٧�ش (��Ѻ����Ţ 300px ������ŧ�����˭���������ͧ���) */
  border-radius: 0.75rem; /* rounded-xl */
  display: flex; /* ���ͨѴ input ������ */
  overflow: hidden; /* �ѹ input �� */
}

.search-icon {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3rem; /* ��˹��������ҧ��鹷���ʴ��� icon �������Ѵ��觡�ҧ�� */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af; /* text-gray-400 */
  font-size: 1.25rem;
  pointer-events: none;
  transform: none; /* ¡��ԡ translateY ������ flex �Ѵ��觡�ҧ᷹ */
}

.search-box input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  /* ����¹ padding-left �� 3rem ���������������ͤ͹������Դ��ͤ����Թ� */
  padding: 0.75rem 1rem 0.75rem 3rem;
  font-size: 0.875rem; /* text-sm */
  font-weight: 500; /* font-medium */
  font-family: "Anuphan";
  color: var(--dark-text);
}

.search-box input::placeholder {
  color: #9ca3af;
}

/* Focus State (Optional: ������������ҡ�����) */
.search-box:focus-within {
  box-shadow: 0 0 0 2px var(--primary-orange);
}

/* ���ͧ������͡ (Filter) */
.filter-box {
  position: relative;
  width: 10rem; /* w-40 (40 * 0.25rem = 10rem) */
  flex-shrink: 0;
  border-radius: 0.75rem; /* rounded-xl */
  overflow: hidden;
}

.filter-box:focus-within {
  box-shadow: 0 0 0 2px var(--primary-orange);
}

/* global_command_toolbar.css */

.filter-box select {
  width: 100%;
  /* height: 100%;  <-- ź��÷Ѵ����͡ ���ͤ���������� �����������٧�״��� padding */
  background: transparent;
  border: none;
  outline: none;

  /* --- ��䢨ش��� (�Ӥѭ) --- */
  /* ��Ѻ Padding ��-��ҧ ����� 0.75rem ��ҡѺ .search-box input */
  /* ��Ѻ Padding ����� 2.5rem �������ͷ������ͤ͹�١�� */
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  /* ------------------------ */

  font-size: 0.875rem;
  font-weight: 500;
  font-family: "Anuphan";
  cursor: pointer;
  color: var(--dark-text);

  /* Style �������Ѻ�ͤ͹ */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1em;
}

/* CI alignment: search field beside Global-Btn has no gray border. */
#global-command-toolbar-placeholder .search-box,
#global-command-toolbar-placeholder .search-box.glass-panel,
.toolbar .search-box,
.toolbar .search-box.glass-panel {
  border: none !important;
  border-color: transparent !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
}

#global-command-toolbar-placeholder .search-box:focus-within,
.toolbar .search-box:focus-within {
  box-shadow:
    0 0 0 3px rgba(252, 91, 8, 0.18),
    0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Compact content-header toolbar for the reference shell. */
html body.app-body .toolbar {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-left: 0 !important;
}

html body.app-body #global-command-toolbar-placeholder {
  min-width: 0;
}

html body.app-body #global-command-toolbar-placeholder .search-group,
html body.app-body .toolbar .search-group {
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
}

html body.app-body #global-command-toolbar-placeholder .search-box,
html body.app-body #global-command-toolbar-placeholder .search-box.glass-panel,
html body.app-body .toolbar .search-box,
html body.app-body .toolbar .search-box.glass-panel {
  height: 40px !important;
  max-width: 320px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(70, 69, 69, 0.1) !important;
  background: #ffffff !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body.app-body .search-icon {
  width: 40px !important;
  font-size: 1rem !important;
}

html body.app-body .search-box input {
  min-height: 40px !important;
  padding: 0 12px 0 40px !important;
  font-size: 0.86rem !important;
  font-weight: 500 !important;
}

html body.app-body .filter-box {
  height: 40px !important;
  width: 150px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(70, 69, 69, 0.1) !important;
  background: #ffffff !important;
}

html body.app-body .filter-box select {
  height: 40px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  font-size: 0.84rem !important;
}

html body.app-body #global-quick-menu-placeholder {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
}

html
  body.app-body
  #global-quick-menu-placeholder
  :is(button, .global-btn, .quick-action-btn) {
  min-height: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  padding: 0 13px !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

@media (max-width: 767px) {
  html body.app-body .toolbar {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  html body.app-body #global-command-toolbar-placeholder .search-box,
  html body.app-body .toolbar .search-box {
    max-width: none !important;
  }
}

/* Search icon vertical alignment lock for every shared command bar. */
html
  body.app-body
  :is(#global-command-toolbar-placeholder, .toolbar)
  .search-box {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
}

html
  body.app-body
  :is(#global-command-toolbar-placeholder, .toolbar)
  .search-icon {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  line-height: 1 !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
}

html
  body.app-body
  :is(#global-command-toolbar-placeholder, .toolbar)
  .search-icon
  :is(
    i,
    svg,
    .material-icons,
    .material-icons-round,
    .material-symbols-outlined
  ) {
  width: 18px !important;
  height: 18px !important;
  font-size: 18px !important;
  line-height: 1 !important;
  display: block !important;
}

html
  body.app-body
  :is(#global-command-toolbar-placeholder, .toolbar)
  .search-box
  input {
  height: 40px !important;
  line-height: 40px !important;
  padding-left: 42px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Command bar must live in normal flow under navinfo, never as a bottom dock. */
html body.app-body .content-area > #navinfo-placeholder {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: none !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  padding: 0 24px 14px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body.app-body :is(.toolbar-section.page-command-bar, .page-command-bar) {
  position: static !important;
  inset: auto !important;
  inset-block-start: auto !important;
  inset-block-end: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  z-index: auto !important;
  width: 100% !important;
  max-width: none !important;
  transform: none !important;
  flex: 0 0 auto !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

html body.app-body .content-area > #synto-main-content-panel {
}

html
  body.app-body
  :is(.toolbar-section.page-command-bar, .page-command-bar)
  > .toolbar {
  position: static !important;
  inset: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  width: 100% !important;
}

html
  body.app-body
  :is(#global-command-toolbar-placeholder, #global-quick-menu-placeholder) {
  position: static !important;
  inset: auto !important;
  transform: none !important;
}

/* Shared command/content flow inside the single white main content frame. */
html body.app-body #synto-main-content-panel {
  display: block !important;
  background: var(--synto-shell-surface, #ffffff) !important;
  overflow: visible !important;
}

html
  body.app-body
  #synto-main-content-panel
  > :is(.toolbar-section.page-command-bar, .page-command-bar) {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 18px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

html
  body.app-body
  #synto-main-content-panel
  > :is(#synto-dashboard-view-host, #synto-list-view-host) {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

/* Source-of-truth shell: transparent navinfo, then one white main content card. */
html body.app-body,
:root {
  --synto-page-edge-gap: clamp(12px, 1.35vw, 20px);
  --synto-main-card-padding: clamp(16px, 1.45vw, 22px);
  --synto-shell-main-radius: 18px;
  --synto-shell-main-shadow: 0 12px 28px -24px rgba(51, 51, 51, 0.28);
  --synto-navinfo-browser-gap: clamp(18px, 2vw, 28px);

  /* GLOBAL NAVINFO STANDARD (Source of Truth: /admin/dashboard.php) */
  --synto-navinfo-width: 100%;
  --synto-navinfo-max-width: none;
  --synto-navinfo-min-width: 0;
  --synto-navinfo-height: auto;
  --synto-navinfo-min-height: 0;
  --synto-navinfo-padding-bottom: 14px;
}

html body.app-body,
html body.app-body .main-layout,
html body.app-body .content-area,
html body.app-body :is(.dashboard-container, .content-row, .main-column) {
  max-width: none !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
}

html body .content-area {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding-right: var(--synto-page-edge-gap) !important;
  box-sizing: border-box !important;
}

html body .content-area > #navinfo-placeholder,
html body .content-area > #navinfo-placeholder.page-navinfo,
html body #navinfo-placeholder,
html body #navinfo-placeholder.page-navinfo {
  order: 1 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  width: var(--synto-navinfo-width, 100%) !important;
  max-width: var(--synto-navinfo-max-width, none) !important;
  min-width: var(--synto-navinfo-min-width, 0) !important;
  height: var(--synto-navinfo-height, auto) !important;
  min-height: var(--synto-navinfo-min-height, 0) !important;
  margin: 0 !important;
  padding: 0 0 var(--synto-navinfo-padding-bottom, 14px) !important;
  background: rgba(245, 245, 245, 0.88) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* 2. KPI-COMMON: MUST BE DIRECTLY UNDER NAVINFO (Free scrolling, not fixed/sticky) */
html
  body
  .content-area
  > :is(
    #kpi-component-placeholder,
    #kpi-grid-container,
    .kpi-common,
    .stats-grid,
    .owner-kpi-grid,
    .section-kpis
  ) {
  order: 2 !important;
  position: static !important;
  top: auto !important;
  bottom: auto !important;
}

/* 3. Revenue Ticker: MUST BE DIRECTLY UNDER KPI / NAVINFO (Free scrolling, not fixed/sticky) */
html
  body
  .content-area
  > :is(.realtime-ticker-card, .ticker-panel, .real-time-alert-bar) {
  order: 3 !important;
  position: static !important;
  top: auto !important;
  bottom: auto !important;
}

/* 4. Main Content Frame: MUST BE AT BOTTOM OF TOP LEVEL */
html
  body
  .content-area
  > :is(#defaultDashboardView, .dashboard-container, .main-content) {
  order: 4 !important;
}

html
  body.app-body
  #navinfo-placeholder
  :is(.management-header, .navinfo-shell, .glass-panel, .header-card) {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body.app-body #navinfo-placeholder .header-content {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 16px !important;
  padding: 0 !important;
}

html body.app-body #navinfo-placeholder :is(.user-profile, .navbar-right-user) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html body.app-body #navinfo-placeholder #notification-wrapper,
html body.app-body #navinfo-placeholder .notification-container,
html body.app-body #navinfo-placeholder #notificationButton,
html body.app-body #navinfo-placeholder .user-avatar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
}

html body.app-body #navinfo-placeholder .user-avatar {
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #fc5b08 !important;
}

html body.app-body #navinfo-placeholder .user-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

html body.app-body .main-column {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  gap: 0 !important;
}

html body.app-body #synto-main-content-panel {
  order: 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: var(--synto-main-card-padding) !important;
  background: var(--synto-shell-surface, #ffffff) !important;
  border: 1px solid var(--synto-shell-border, rgba(70, 69, 69, 0.08)) !important;
  border-radius: var(--synto-shell-main-radius) !important;
  box-shadow: var(--synto-shell-main-shadow) !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

html
  body.app-body
  #synto-main-content-panel
  > :is(.toolbar-section.page-command-bar, .page-command-bar) {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 18px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  z-index: auto !important;
}

html
  body.app-body
  #synto-main-content-panel
  > :is(.toolbar-section.page-command-bar, .page-command-bar)
  > .toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  width: 100% !important;
  min-width: 0 !important;
}

html
  body.app-body
  #synto-main-content-panel
  :is(#global-command-toolbar-placeholder, .page-search) {
  flex: 1 1 auto !important;
  min-width: 220px !important;
}

html
  body.app-body
  #synto-main-content-panel
  :is(#global-quick-menu-placeholder, .global-btn-container) {
  flex: 0 1 auto !important;
  min-width: 0 !important;
}

html
  body.app-body
  #synto-main-content-panel
  > :is(#synto-dashboard-view-host, #synto-list-view-host) {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
}

html body.app-body #synto-main-content-panel > #synto-list-view-host[hidden] {
  display: none !important;
}

html
  body.app-body
  #synto-main-content-panel
  > #synto-list-view-host:not([hidden]) {
  display: block !important;
}

@media (max-width: 900px) {
  html body.app-body .content-area {
    padding-right: 0 !important;
  }

  html
    body.app-body
    #synto-main-content-panel
    > :is(.toolbar-section.page-command-bar, .page-command-bar)
    > .toolbar {
    flex-wrap: wrap !important;
    align-items: stretch !important;
  }

  html
    body.app-body
    #synto-main-content-panel
    :is(#global-command-toolbar-placeholder, .page-search),
  html
    body.app-body
    #synto-main-content-panel
    :is(#global-quick-menu-placeholder, .global-btn-container) {
    flex: 1 1 100% !important;
    min-width: 0 !important;
  }
}

/* Right edge alignment lock: navinfo shares content width, main card reaches page edge. */
html body.app-body {
  --synto-page-edge-gap: clamp(12px, 1.35vw, 20px);
  --synto-main-card-padding: clamp(16px, 1.45vw, 22px);
  --synto-shell-main-radius: 18px;
}

html body.app-body,
html body.app-body .main-layout,
html body.app-body .page-wrapper,
html body.app-body .content-area {
  overflow-x: hidden !important;
}

html body.app-body .content-area {
  box-sizing: border-box !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
}

html body.app-body .content-area > #navinfo-placeholder {
  box-sizing: border-box !important;
  width: var(--synto-navinfo-width, 100%) !important;
  max-width: var(--synto-navinfo-max-width, none) !important;
  min-width: var(--synto-navinfo-min-width, 0) !important;
  height: var(--synto-navinfo-height, auto) !important;
  min-height: var(--synto-navinfo-min-height, 0) !important;
  margin: 0 !important;
  padding: 0 var(--synto-page-edge-gap)
    var(--synto-navinfo-padding-bottom, 14px) 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body.app-body .content-area > #navinfo-placeholder .header-content,
html body.app-body .content-area > #navinfo-placeholder .navinfo-content,
html body.app-body .content-area > #navinfo-placeholder .navinfo-inner {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

html
  body.app-body
  #navinfo-placeholder
  :is(.user-profile, .navbar-right-user, .header-user, .user-area) {
  margin-left: auto !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
  position: static !important;
  right: auto !important;
  max-width: 100% !important;
}

html
  body.app-body
  #navinfo-placeholder
  :is(.user-info, .header-user-meta, .user-details) {
  min-width: 0 !important;
  max-width: min(46vw, 360px) !important;
}

html
  body.app-body
  #navinfo-placeholder
  :is(.user-avatar, .avatar, .avatar-wrapper) {
  flex: 0 0 auto !important;
}

html body.app-body #synto-main-content-panel {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-right: 0 !important;
  border-right: 0 !important;
  border-radius: var(--synto-shell-main-radius) 0 0
    var(--synto-shell-main-radius) !important;
  padding: var(--synto-main-card-padding) !important;
  overflow: visible !important;
}

html
  body.app-body
  #synto-main-content-panel
  > :is(
    .toolbar-section,
    .global-command-toolbar,
    .dashboard-toolbar,
    .content-toolbar
  ) {
  margin-top: 0 !important;
}

html
  body.app-body:not(.synto-right-sidebar-expanded)
  :is(
    .right-sidebar,
    .side-panel-right,
    .content-right-panel,
    .dashboard-right-rail
  ) {
  width: 0 !important;
  min-width: 0 !important;
  flex-basis: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

@media (max-width: 900px) {
  html body.app-body {
    --synto-page-edge-gap: clamp(12px, 3vw, 16px);
    --synto-main-card-padding: clamp(14px, 4vw, 18px);
    --synto-shell-main-radius: 14px;
  }

  html body.app-body .content-area {
    padding-right: 0 !important;
  }

  html body.app-body .content-area > #navinfo-placeholder {
    padding-right: var(--synto-page-edge-gap) !important;
  }
}

/* Final navinfo parity lock: navinfo content stays inset, main card keeps the right edge. */
html body.app-body .main-layout {
  gap: 0 !important;
}

html body.app-body .main-layout > .content-area,
html body.app-body .content-area {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
}

html body.app-body #navinfo-placeholder.page-navinfo,
html body.app-body .content-area #navinfo-placeholder {
  width: var(--synto-navinfo-width, 100%) !important;
  max-width: var(--synto-navinfo-max-width, none) !important;
  min-width: var(--synto-navinfo-min-width, 0) !important;
  height: var(--synto-navinfo-height, auto) !important;
  min-height: var(--synto-navinfo-min-height, 0) !important;
  margin: 0 !important;
  padding: 0 var(--synto-page-edge-gap, clamp(12px, 1.35vw, 20px))
    var(--synto-navinfo-padding-bottom, 14px) 0 !important;
  box-sizing: border-box !important;
  background: rgba(245, 245, 245, 0.88) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  transform: none !important;
}

html
  body.app-body
  #navinfo-placeholder.page-navinfo
  :is(.header-content, .navinfo-content, .navinfo-inner),
html
  body.app-body
  .content-area
  #navinfo-placeholder
  :is(.header-content, .navinfo-content, .navinfo-inner) {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

html
  body.app-body
  #navinfo-placeholder.page-navinfo
  :is(.user-profile, .navbar-right-user, .header-user, .user-area),
html
  body.app-body
  .content-area
  #navinfo-placeholder
  :is(.user-profile, .navbar-right-user, .header-user, .user-area) {
  margin-left: auto !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
  position: static !important;
  right: auto !important;
  max-width: 100% !important;
}

html body.app-body #synto-main-content-panel {
  margin-right: 0 !important;
  border-right: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

html
  body.app-body:not(.synto-right-sidebar-expanded)
  .main-layout
  > .right-sidebar {
  display: block !important;
  width: 0 !important;
  max-width: 0 !important;
  min-width: 0 !important;
  flex: 0 0 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* Navinfo browser-edge breathing room lock. */
html body.app-body {
  --synto-navinfo-browser-gap: clamp(18px, 2vw, 28px);
}

html
  body.app-body
  :is(.content-area, .main-column, .dashboard-container)
  > #navinfo-placeholder,
html body.app-body #navinfo-placeholder.page-navinfo {
  box-sizing: border-box !important;
  width: var(--synto-navinfo-width, 100%) !important;
  max-width: var(--synto-navinfo-max-width, none) !important;
  min-width: var(--synto-navinfo-min-width, 0) !important;
  height: var(--synto-navinfo-height, auto) !important;
  min-height: var(--synto-navinfo-min-height, 0) !important;
  margin-right: 0 !important;
  padding-right: var(--synto-navinfo-browser-gap) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html
  body.app-body
  #navinfo-placeholder.page-navinfo
  :is(.management-header, .navinfo-shell, .header-content),
html
  body.app-body
  :is(.content-area, .main-column, .dashboard-container)
  > #navinfo-placeholder
  :is(.management-header, .navinfo-shell, .header-content) {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
}

html
  body.app-body
  #navinfo-placeholder.page-navinfo
  :is(.user-profile, .navbar-right-user, .header-user, .user-area),
html
  body.app-body
  :is(.content-area, .main-column, .dashboard-container)
  > #navinfo-placeholder
  :is(.user-profile, .navbar-right-user, .header-user, .user-area) {
  margin-left: auto !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
  position: static !important;
  right: auto !important;
  transform: none !important;
}

html
  body.app-body
  #navinfo-placeholder.page-navinfo
  :is(.user-avatar, .avatar-large, #userAvatar),
html
  body.app-body
  :is(.content-area, .main-column, .dashboard-container)
  > #navinfo-placeholder
  :is(.user-avatar, .avatar-large, #userAvatar) {
  margin-right: 0 !important;
  flex: 0 0 auto !important;
}

@media (max-width: 768px) {
  html body.app-body {
    --synto-navinfo-browser-gap: clamp(16px, 4vw, 22px);
  }

  html body.app-body #navinfo-placeholder.page-navinfo,
  html
    body.app-body
    :is(.content-area, .main-column, .dashboard-container)
    > #navinfo-placeholder {
    padding-right: var(--synto-navinfo-browser-gap) !important;
  }
}

/* Main content right bleed lock: white panel extends past the browser edge. */
html body.app-body {
  --synto-main-card-right-bleed: clamp(18px, 2vw, 28px);
}

html body.app-body,
html body.app-body .main-layout {
  overflow-x: hidden !important;
}

html body.app-body .content-area,
html body.app-body .main-column,
html body.app-body :is(.dashboard-container, #defaultDashboardView) {
  overflow-x: visible !important;
}

html body.app-body #synto-main-content-panel {
  width: calc(100% + var(--synto-main-card-right-bleed)) !important;
  max-width: none !important;
  margin-right: calc(var(--synto-main-card-right-bleed) * -1) !important;
  border-right: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  padding-right: calc(
    var(--synto-main-card-padding, clamp(16px, 1.45vw, 22px)) +
      var(--synto-main-card-right-bleed)
  ) !important;
  overflow: visible !important;
}

html
  body.app-body
  #synto-main-content-panel
  > :is(
    .toolbar-section,
    .global-command-toolbar,
    .dashboard-toolbar,
    .content-toolbar,
    #synto-dashboard-view-host,
    #synto-list-view-host
  ) {
  max-width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 768px) {
  html body.app-body {
    --synto-main-card-right-bleed: clamp(16px, 4vw, 24px);
  }
}

/* Parent-shell right edge lock: no negative margin, no page-shell gap. */
html body.app-body {
  --synto-main-card-right-bleed: 0px;
}

html body.app-body,
html body.app-body .main-layout {
  overflow-x: hidden !important;
}

html body.app-body .main-layout {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  gap: 0 !important;
  column-gap: 0 !important;
  padding-right: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
}

html body.app-body .main-layout > .content-area,
html body.app-body .content-area {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
  justify-self: stretch !important;
  overflow-x: hidden !important;
}

html
  body.app-body
  .content-area
  :is(.dashboard-container, #defaultDashboardView),
html body.app-body .content-area .main-column {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
  justify-content: flex-start !important;
  overflow-x: hidden !important;
}

html body.app-body #synto-main-content-panel {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-right: 0 !important;
  padding-right: var(
    --synto-main-card-padding,
    clamp(16px, 1.45vw, 22px)
  ) !important;
  border-right: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  transform: none !important;
  overflow: visible !important;
}

html
  body.app-body:not(.synto-right-sidebar-expanded)
  .main-layout
  > .right-sidebar,
html
  body.app-body:not(.synto-right-sidebar-expanded)
  :is(
    .right-sidebar,
    .side-panel-right,
    .content-right-panel,
    .dashboard-right-rail
  ) {
  width: 0 !important;
  max-width: 0 !important;
  min-width: 0 !important;
  flex: 0 0 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

html body.app-body #navinfo-placeholder.page-navinfo,
html body.app-body .content-area #navinfo-placeholder {
  padding-right: var(
    --synto-navinfo-browser-gap,
    clamp(18px, 2vw, 28px)
  ) !important;
}

/* Navinfo contained-content lock: title, description, and user area stay inside the content edge. */
html body.app-body #navinfo-placeholder.page-navinfo,
html body.app-body .content-area #navinfo-placeholder {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: var(
    --synto-navinfo-browser-gap,
    clamp(18px, 2vw, 28px)
  ) !important;
  overflow-x: hidden !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html
  body.app-body
  #navinfo-placeholder.page-navinfo
  :is(.management-header, .navinfo-shell, .header-content),
html
  body.app-body
  .content-area
  #navinfo-placeholder
  :is(.management-header, .navinfo-shell, .header-content) {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

html
  body.app-body
  #navinfo-placeholder.page-navinfo
  :is(
    #dynamic-header-container,
    .header-title-group,
    .project-info,
    .page-title-group
  ),
html
  body.app-body
  .content-area
  #navinfo-placeholder
  :is(
    #dynamic-header-container,
    .header-title-group,
    .project-info,
    .page-title-group
  ) {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

html
  body.app-body
  #navinfo-placeholder.page-navinfo
  :is(
    #dynamic-header-container,
    .header-title-group,
    .project-info,
    .page-title-group
  )
  :is(h1, h2, h3, p, span, div),
html
  body.app-body
  .content-area
  #navinfo-placeholder
  :is(
    #dynamic-header-container,
    .header-title-group,
    .project-info,
    .page-title-group
  )
  :is(h1, h2, h3, p, span, div) {
  max-width: 100% !important;
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

html
  body.app-body
  #navinfo-placeholder.page-navinfo
  :is(
    .page-description,
    .header-description,
    .project-description,
    .navinfo-description,
    p
  ),
html
  body.app-body
  .content-area
  #navinfo-placeholder
  :is(
    .page-description,
    .header-description,
    .project-description,
    .navinfo-description,
    p
  ) {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

html
  body.app-body
  #navinfo-placeholder.page-navinfo
  :is(.user-profile, .navbar-right-user, .header-user, .user-area),
html
  body.app-body
  .content-area
  #navinfo-placeholder
  :is(.user-profile, .navbar-right-user, .header-user, .user-area) {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: min(48vw, 420px) !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
  position: static !important;
  right: auto !important;
  transform: none !important;
}

html
  body.app-body
  #navinfo-placeholder.page-navinfo
  :is(.user-info, .header-user-meta, .user-details),
html
  body.app-body
  .content-area
  #navinfo-placeholder
  :is(.user-info, .header-user-meta, .user-details) {
  min-width: 0 !important;
  max-width: 100% !important;
}

html
  body.app-body
  #navinfo-placeholder.page-navinfo
  :is(.name, .user-name, .role, .user-role),
html
  body.app-body
  .content-area
  #navinfo-placeholder
  :is(.name, .user-name, .role, .user-role) {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  html
    body.app-body
    #navinfo-placeholder.page-navinfo
    :is(.management-header, .navinfo-shell, .header-content),
  html
    body.app-body
    .content-area
    #navinfo-placeholder
    :is(.management-header, .navinfo-shell, .header-content) {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  html
    body.app-body
    #navinfo-placeholder.page-navinfo
    :is(.user-profile, .navbar-right-user, .header-user, .user-area),
  html
    body.app-body
    .content-area
    #navinfo-placeholder
    :is(.user-profile, .navbar-right-user, .header-user, .user-area) {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-end !important;
  }
}

/* Main-column navinfo hard containment lock. */
html body.app-body .content-area .main-column > #navinfo-placeholder,
html
  body.app-body
  .content-area
  .main-column
  > #navinfo-placeholder.page-navinfo {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 var(--synto-navinfo-browser-gap, clamp(18px, 2vw, 28px)) 14px 0 !important;
  overflow-x: hidden !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

html
  body.app-body
  .content-area
  .main-column
  > #navinfo-placeholder
  > .management-header,
html
  body.app-body
  .content-area
  .main-column
  > #navinfo-placeholder
  .navinfo-shell {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html
  body.app-body
  .content-area
  .main-column
  > #navinfo-placeholder
  .header-content {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, max-content) !important;
  align-items: center !important;
  gap: clamp(10px, 1.2vw, 18px) !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

html
  body.app-body
  .content-area
  .main-column
  > #navinfo-placeholder
  :is(
    #dynamic-header-container,
    .header-title-group,
    .project-info,
    .page-title-group,
    .navinfo-left
  ) {
  grid-column: 1 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  margin-left: 0 !important;
}

html
  body.app-body
  .content-area
  .main-column
  > #navinfo-placeholder
  .navinfo-segmented-switch {
  grid-column: 2 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  justify-self: center !important;
}

html
  body.app-body
  .content-area
  .main-column
  > #navinfo-placeholder
  :is(.user-profile, .navbar-right-user, .header-user, .user-area) {
  grid-column: 3 !important;
  min-width: 0 !important;
  max-width: min(38vw, 420px) !important;
  justify-self: end !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  right: auto !important;
  transform: none !important;
}

html
  body.app-body
  .content-area
  .main-column
  > #navinfo-placeholder
  :is(
    #dynamic-header-container,
    .header-title-group,
    .project-info,
    .page-title-group
  )
  :is(h1, h2, h3, p, span, div) {
  max-width: 100% !important;
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

html
  body.app-body
  .content-area
  .main-column
  > #navinfo-placeholder
  :is(
    .page-description,
    .header-description,
    .project-description,
    .navinfo-description,
    p
  ) {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

html
  body.app-body
  .content-area
  .main-column
  > #navinfo-placeholder
  :is(.user-info, .header-user-meta, .user-details) {
  min-width: 0 !important;
  max-width: 100% !important;
}

html
  body.app-body
  .content-area
  .main-column
  > #navinfo-placeholder
  :is(.name, .user-name, .role, .user-role) {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 1100px) {
  html
    body.app-body
    .content-area
    .main-column
    > #navinfo-placeholder
    .header-content {
    grid-template-columns: minmax(0, 1fr) minmax(0, max-content) !important;
  }

  html
    body.app-body
    .content-area
    .main-column
    > #navinfo-placeholder
    .navinfo-segmented-switch {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
  }

  html
    body.app-body
    .content-area
    .main-column
    > #navinfo-placeholder
    :is(.user-profile, .navbar-right-user, .header-user, .user-area) {
    grid-column: 2 !important;
    max-width: min(44vw, 380px) !important;
  }
}

@media (max-width: 768px) {
  html
    body.app-body
    .content-area
    .main-column
    > #navinfo-placeholder
    .header-content {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
  }

  html
    body.app-body
    .content-area
    .main-column
    > #navinfo-placeholder
    :is(
      #dynamic-header-container,
      .header-title-group,
      .project-info,
      .page-title-group
    ),
  html
    body.app-body
    .content-area
    .main-column
    > #navinfo-placeholder
    .navinfo-segmented-switch,
  html
    body.app-body
    .content-area
    .main-column
    > #navinfo-placeholder
    :is(.user-profile, .navbar-right-user, .header-user, .user-area) {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  html
    body.app-body
    .content-area
    .main-column
    > #navinfo-placeholder
    :is(.user-profile, .navbar-right-user, .header-user, .user-area) {
    justify-self: stretch !important;
    justify-content: flex-end !important;
  }
}
/* Stable shared navinfo: transparent row before the main content card. */
html body.app-body .content-area .main-column > #synto-shared-content-shell,
html body.app-body .content-area .main-column > .synto-shared-content-shell,
html body.app-body #synto-shared-content-shell:has(> #navinfo-placeholder) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.app-body .content-area:has(#synto-shared-content-shell),
html body.app-body .content-area:has(#navinfo-placeholder),
html body.app-body #defaultDashboardView:has(#synto-shared-content-shell),
html body.app-body #defaultDashboardView:has(#navinfo-placeholder),
html body.app-body .dashboard-container:has(#synto-shared-content-shell),
html body.app-body .dashboard-container:has(#navinfo-placeholder),
html body.app-body .content-row:has(#synto-shared-content-shell),
html body.app-body .content-row:has(#navinfo-placeholder),
html body.app-body .main-column:has(> #synto-shared-content-shell),
html body.app-body .main-column:has(> #navinfo-placeholder) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.app-body .content-area .main-column > #synto-shared-content-shell {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
  position: static;
  transform: none;
  overflow: visible;
  box-sizing: border-box;
}

html body.app-body #navinfo-placeholder.synto-navinfo-standard,
html
  body.app-body
  .content-area
  .main-column
  > #synto-shared-content-shell
  > #navinfo-placeholder {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 var(--synto-navinfo-browser-gap, clamp(18px, 2vw, 28px)) 14px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  position: static;
  transform: none;
  box-sizing: border-box;
}

html body.app-body #navinfo-placeholder.synto-navinfo-standard,
html body.app-body #navinfo-placeholder.synto-navinfo-standard > *,
html
  body.app-body
  #navinfo-placeholder.synto-navinfo-standard
  :is(
    .management-header,
    .navinfo-shell,
    .header-content,
    .navinfo-left,
    .navinfo-center,
    .navinfo-right,
    .glass-panel,
    .header-card
  ) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html
  body.app-body
  #navinfo-placeholder.synto-navinfo-standard
  :is(.management-header, .navinfo-shell, .glass-panel, .header-card) {
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html body.app-body #navinfo-placeholder.synto-navinfo-standard .header-content {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  min-width: 0;
  height: auto;
}

html
  body.app-body
  #navinfo-placeholder.synto-navinfo-standard
  :is(
    #dynamic-header-container,
    .header-title-group,
    .project-info,
    .page-title-group
  ) {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

html
  body.app-body
  #navinfo-placeholder
  :is(.navinfo-left, .navinfo-center, .navinfo-right) {
  min-width: 0;
  box-sizing: border-box;
}

html body.app-body #navinfo-placeholder .navinfo-left {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 0 !important;
}

html body.app-body #navinfo-placeholder .navinfo-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

html body.app-body #navinfo-placeholder .navinfo-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

html body.app-body #navinfo-placeholder.synto-navinfo-standard .header-text {
  min-width: 0;
  max-width: 100%;
}

html
  body.app-body
  #navinfo-placeholder.synto-navinfo-standard
  .header-text
  :is(h1, h2, h3, p),
html
  body.app-body
  #navinfo-placeholder.synto-navinfo-standard
  :is(
    #dynamic-header-container,
    .header-title-group,
    .project-info,
    .page-title-group
  )
  :is(h1, h2, h3, p) {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

html
  body.app-body
  #navinfo-placeholder.synto-navinfo-standard
  .navinfo-segmented-switch {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  max-width: max-content;
  flex: 0 0 auto;
  align-self: center;
}

html
  body.app-body
  #navinfo-placeholder.synto-navinfo-standard
  .navinfo-segment-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}

html
  body.app-body
  #navinfo-placeholder.synto-navinfo-standard
  :is(.user-profile, .navbar-right-user, .header-user, .user-area) {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(38vw, 420px);
  margin-left: auto;
  position: static;
  right: auto;
}

@media (max-width: 900px) {
  html
    body.app-body
    #navinfo-placeholder.synto-navinfo-standard
    .header-content {
    flex-wrap: wrap;
  }

  html
    body.app-body
    #navinfo-placeholder.synto-navinfo-standard
    :is(
      #dynamic-header-container,
      .header-title-group,
      .project-info,
      .page-title-group
    ) {
    flex-basis: min(100%, 520px);
  }
}

@media (max-width: 640px) {
  html body.app-body #navinfo-placeholder.synto-navinfo-standard {
    padding-right: 0;
  }

  html
    body.app-body
    #navinfo-placeholder.synto-navinfo-standard
    .header-content {
    align-items: flex-start;
  }

  html
    body.app-body
    #navinfo-placeholder.synto-navinfo-standard
    .navinfo-segmented-switch,
  html
    body.app-body
    #navinfo-placeholder.synto-navinfo-standard
    :is(.user-profile, .navbar-right-user, .header-user, .user-area) {
    max-width: 100%;
    margin-left: 0;
  }
}

/* ======================================================================
   GLOBAL COMMAND TOOLBAR — OUTER FRAME REMOVAL
   Shared override for every page using the command toolbar / global menu.
   The wrapper remains in the DOM for JS/layout compatibility, but it no
   longer paints a card, panel, border, shadow, or glass frame.
   ====================================================================== */

html
  body
  :is(
    .global_command_toolbar,
    .global-command-toolbar,
    .toolbar-section:has(
      #global-command-toolbar-placeholder,
      #global-quick-menu-placeholder
    ),
    .page-command-bar:has(
      #global-command-toolbar-placeholder,
      #global-quick-menu-placeholder
    )
  ) {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  transform: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body :is(.global_command_toolbar, .global-command-toolbar) > .toolbar,
html
  body
  :is(.toolbar-section, .page-command-bar):has(
    #global-command-toolbar-placeholder,
    #global-quick-menu-placeholder
  )
  > .toolbar {
  position: static !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* Placeholder / group wrappers are layout hooks only — never visual cards. */
html
  body
  :is(
    #global-command-toolbar-placeholder,
    #global-quick-menu-placeholder,
    .global-btn-container
  ) {
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* The legacy "glass" wrapper is retained for DOM/JS compatibility only. */
html body .quick-menu-glass {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  background-color: initial !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body .quick-menu-glass .quick-menu-label {
  padding: 0 4px 0 0 !important;
}

html body #global-command-toolbar-placeholder,
html body #global-quick-menu-placeholder {
  position: static !important;
  inset: auto !important;
  transform: none !important;
}

@media (max-width: 900px) {
  html
    body
    :is(
      .global_command_toolbar,
      .global-command-toolbar,
      .toolbar-section:has(
        #global-command-toolbar-placeholder,
        #global-quick-menu-placeholder
      ),
      .page-command-bar:has(
        #global-command-toolbar-placeholder,
        #global-quick-menu-placeholder
      )
    ) {
    margin-bottom: 12px !important;
  }
}

/* VER.DEV — Red Area display boundary only.
   Confine the KPI-common and Revenue Ticker display strictly within the red frame area.
   Do not modify, reflow, or alter anything else. */
@media (min-width: 769px) {
  html
    body.app-body
    :is(
      .content-area > #kpi-component-placeholder,
      .content-area > #kpi-grid-container,
      .content-area > .kpi-common,
      .content-area > .stats-grid,
      .content-area > .owner-kpi-grid,
      .content-area > .section-kpis,
      .content-area
        :is(#kpi-component-placeholder, #kpi-grid-container, .kpi-common):not(
          #synto-main-content-panel *
        )
    ) {
    max-width: calc(
      100% - var(--synto-navinfo-browser-gap, clamp(18px, 2vw, 28px))
    ) !important;
    width: calc(
      100% - var(--synto-navinfo-browser-gap, clamp(18px, 2vw, 28px))
    ) !important;
    box-sizing: border-box !important;
    margin-right: var(
      --synto-navinfo-browser-gap,
      clamp(18px, 2vw, 28px)
    ) !important;
    clip-path: none !important;
  }
}

/* Remove outer main-content panel box frame for Dashboard pages (individual section cards float on background) */
html
  body:is(
    .company-dashboard-page,
    .booking-command-center-page,
    [class*="dashboard"]
  )
  #synto-main-content-panel,
html
  body.app-body
  :is(
    .company-dashboard-page,
    .booking-command-center-page,
    [class*="dashboard"]
  )
  #synto-main-content-panel,
html body #defaultDashboardView #synto-main-content-panel,
html body .dashboard-container #synto-main-content-panel,
html body.app-body #synto-main-content-panel,
html body.app-body .main-content-panel,
html body.app-body .synto-main-content-card-wrapper {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 0 !important;
}

html
  body.app-body
  :is(#defaultDashboardView, .dashboard-container, .main-content) {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html body.app-body .main-column > .toolbar-section.page-command-bar,
html body.app-body .main-column > .toolbar-section,
html body.app-body #synto-main-content-panel > .toolbar-section,
html body.app-body .toolbar-section.page-command-bar {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 0 16px 0 !important;
  margin: 0 !important;
}

html body.app-body .main-column > .toolbar-section + .charts-area,
html body.app-body .main-column > .charts-area,
html body.app-body #synto-main-content-panel > .charts-area,
html body.app-body .charts-area {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

