/* Broker portal sidebar only. html[data-na-broker] is set on /broker/* . */
html[data-na-broker="1"],
html[data-na-broker="1"] body {
  max-width: 100%;
}

html[data-na-broker="1"] .broker-portal-layout__content {
  max-width: 100%;
  overflow-x: hidden;
}

html[data-na-broker="1"] .broker-portal-layout__header {
  position: relative;
  z-index: 40;
  overflow: visible;
}

html[data-na-broker="1"] .chakra-popover__popper,
html[data-na-broker="1"] .chakra-popover__content,
html[data-na-desk] .chakra-popover__popper,
html[data-na-desk] .chakra-popover__content {
  z-index: 2000 !important;
  max-width: calc(100vw - 16px) !important;
}

@media (max-width: 991px) {
  html[data-na-broker="1"] .broker-messages,
  html[data-na-broker="1"] .broker-messages__list,
  html[data-na-broker="1"] .broker-messages__thread {
    width: 100% !important;
    max-width: 100% !important;
  }

  html[data-na-broker="1"] .broker-messages {
    flex-wrap: wrap !important;
  }
}

html[data-na-broker="1"] [data-na-idle-warn] {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1600;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: #0f172a;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.28);
}

html[data-na-broker="1"] [data-na-idle-warn] p {
  margin: 0;
}

html[data-na-broker="1"] [data-na-idle-warn] button {
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  padding: 8px 12px;
  font-weight: 700;
}

html[data-na-broker="1"] [data-na-idle-settings],
html[data-na-desk] [data-na-idle-settings="1"] {
  max-width: none;
  margin: 16px 24px 0;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

html[data-na-desk="developer"] [data-na-idle-settings="1"],
html[data-na-desk="developer-admin"] [data-na-idle-settings="1"] {
  position: fixed;
  top: 76px;
  right: 16px;
  left: 308px;
  z-index: 30;
  margin: 0;
}

@media (max-width: 991px) {
  html[data-na-desk="developer"] [data-na-idle-settings="1"],
  html[data-na-desk="developer-admin"] [data-na-idle-settings="1"] {
    left: 12px;
    right: 12px;
    top: 64px;
  }
}

html[data-na-broker="1"] .ba-portal-digest__cell,
html[data-na-broker="1"] .portal-page__digest-cell {
  cursor: pointer;
}

html[data-na-broker="1"] .ba-portal-digest__cell[data-na-digest-on="1"] {
  box-shadow: inset 0 0 0 2px #fff;
  border-radius: 10px;
}

html[data-na-broker="1"] .portal-page__digest-cell[data-na-digest-on="1"] {
  box-shadow: inset 0 0 0 2px #1e3a5f;
}

html[data-na-broker="1"] [data-na-idle-settings] h2,
html[data-na-desk] [data-na-idle-settings="1"] h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

html[data-na-broker="1"] [data-na-idle-settings] select,
html[data-na-desk] [data-na-idle-settings="1"] select {
  margin-left: 8px;
  min-height: 40px;
}

html[data-na-broker="1"] [data-na-lead-search] {
  box-sizing: border-box;
  width: min(240px, 100%);
  min-height: 40px;
  margin-right: 8px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
}

html[data-na-broker="1"] .brs-sidebar {
  overflow: hidden;
}

html[data-na-broker="1"] .brs-sidebar__nav {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

html[data-na-broker="1"] .brs-nav-item__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-na-broker="1"] .na-desk-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: rgba(15, 23, 42, 0.45);
}

html[data-na-broker="1"] .na-desk-dialog {
  width: min(440px, 100%);
  max-height: calc(100vh - 24px);
  overflow: auto;
  box-sizing: border-box;
  background: #fff;
  color: #1a202c;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

html[data-na-broker="1"] .na-desk-dialog h2 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
}

html[data-na-broker="1"] .na-desk-dialog p,
html[data-na-broker="1"] .na-desk-dialog [data-na-field-error] {
  margin: 0 0 12px;
  color: #4a5568;
  font-size: 0.95rem;
}

html[data-na-broker="1"] .na-desk-dialog [data-na-field-error] {
  color: #c53030;
}

html[data-na-broker="1"] .na-desk-dialog label {
  display: block;
  margin: 10px 0 4px;
  font-size: 0.875rem;
  font-weight: 600;
}

html[data-na-broker="1"] .na-desk-dialog input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 16px;
}

html[data-na-broker="1"] .na-desk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

html[data-na-broker="1"] .na-desk-actions button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

html[data-na-broker="1"] .na-desk-note {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 2100;
  transform: translateX(-50%);
  max-width: calc(100vw - 24px);
  background: #1a365d;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
}

@media (min-width: 640px) {
  html[data-na-broker="1"] .na-desk-backdrop {
    align-items: center;
  }
}

@media (max-width: 768px) {
  html[data-na-broker="1"] .chakra-modal__content {
    max-width: calc(100vw - 16px) !important;
    margin-left: auto;
    margin-right: auto;
  }
}

html[data-na-desk="agent"] .agent-dash__stat {
  cursor: pointer;
  min-height: 44px;
}

html[data-na-tour="1"] .dps-sidebar-exotic {
  position: relative;
  z-index: 2000;
}

html[data-na-list="1"],
html[data-na-list="1"] body {
  max-width: 100%;
  overflow-x: hidden;
}

html[data-na-list="1"] #root,
html[data-na-list="1"] #root * {
  box-sizing: border-box;
  min-width: 0 !important;
  max-width: 100vw !important;
}

/* Search filters scroll inside the rail, clear of the sticky logo. */
.sr-filters-desktop {
  top: 96px !important;
  max-height: calc(100vh - 112px) !important;
  overflow: hidden !important;
  z-index: 4 !important;
}

.sr-filters {
  overflow-y: auto !important;
  max-height: 100% !important;
}

.sr-filters label,
.sr-filters button,
.sr-filters .chakra-checkbox,
.sr-filters .chakra-radio {
  scroll-margin-top: 120px;
  scroll-margin-bottom: 28px;
}

[data-na-geo] {
  position: fixed;
  z-index: 80;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  color: #1a202c;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  max-width: calc(100vw - 16px);
}

[data-na-geo] input {
  margin: 8px;
  min-height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}

[data-na-geo] [data-na-geo-list] {
  overflow: auto;
  padding: 0 6px 8px;
}

[data-na-geo] p {
  margin: 8px 10px 4px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #718096;
}

[data-na-geo] button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

[data-na-geo] button[aria-selected="true"] {
  background: #edf2f7;
}

[data-na-geo] small {
  color: #4a5568;
  font-size: 12px;
}

[data-na-spell] {
  margin: 8px 0 0;
  color: #fff;
  font-size: 14px;
}

[data-na-spell] button {
  min-height: 32px;
  margin-left: 4px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #1a202c;
  font-weight: 700;
  cursor: pointer;
}

[data-na-areas] {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 4px;
}

[data-na-areas] button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #1a202c;
  cursor: pointer;
}

[data-na-areas] button[aria-pressed="true"] {
  background: #e11d48;
  border-color: #e11d48;
  color: #fff;
}

[data-na-places] {
  position: fixed;
  z-index: 80;
  display: flex;
  flex-direction: column;
  max-height: 320px;
  overflow: hidden;
  background: #fff;
  color: #1a202c;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

[data-na-places] input,
[data-na-places] button {
  font: inherit;
}

[data-na-places] input {
  margin: 8px;
  min-height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 12px;
}

[data-na-places] [data-na-places-list] {
  overflow: auto;
  padding: 0 8px 8px;
}

[data-na-places] button {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

div[data-na-photos="1"] {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  background: #111;
  color: #fff;
}

div[data-na-photos="1"] img,
div[data-na-photos="1"] video,
div[data-na-photos="1"] iframe {
  display: block;
  width: 100%;
  max-width: 960px;
  max-height: calc(100vh - 140px);
  margin: 0 auto;
  object-fit: contain;
  background: #000;
}

div[data-na-photos="1"] iframe {
  height: min(540px, calc(100vh - 140px));
  aspect-ratio: 16 / 9;
}

div[data-na-photos="1"] header,
div[data-na-photos="1"] footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 16px;
}

div[data-na-photos="1"] button,
div[data-na-photos="1"] a {
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

[data-na-presentations-nav] {
  min-height: 44px;
}
html[data-na-presentations="1"] .na-sidebar-cat.active:not([data-na-presentations-nav]),
html[data-na-presentations="1"] .na-cat.active:not([data-na-presentations-nav]) {
  background: transparent;
  color: inherit;
  font-weight: 500;
}
html[data-na-presentations="1"] [data-na-presentations-nav].active {
  background: var(--red-light, #fff1f2);
  color: var(--red, #c53030);
  font-weight: 600;
}
html[data-na-presentations="1"] .na-body > :not([data-na-archives]) {
  display: none !important;
}
section[data-na-archives="1"],
section[data-na-archives="1"] h2,
section[data-na-archives="1"] h3,
section[data-na-archives="1"] p,
section[data-na-archives="1"] button,
section[data-na-archives="1"] a,
section[data-na-archives="1"] span {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important;
}
section[data-na-archives="1"] {
  scroll-margin-top: 96px;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 4px 0 8px;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 0.95rem;
  line-height: 1.45;
}
section[data-na-archives="1"] h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
section[data-na-archives="1"] > p {
  margin: 0 0 16px;
  color: #444;
  font-size: 0.95rem;
  font-weight: 400;
}
section[data-na-archives="1"] article + article {
  margin-top: 10px;
}
section[data-na-archives="1"] h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
section[data-na-archives="1"] .na-sitting-toggle {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 12px 16px;
  border: 1px solid #e6e8eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
section[data-na-archives="1"] .na-sitting-toggle:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
section[data-na-archives="1"] .na-sitting-main {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
}
section[data-na-archives="1"] .na-sitting-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}
section[data-na-archives="1"] .na-sitting-count::before {
  content: "· ";
}
section[data-na-archives="1"] .na-sitting-chevron {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  margin-right: 4px;
  border-right: 2px solid #374151;
  border-bottom: 2px solid #374151;
  transform: rotate(45deg);
}
section[data-na-archives="1"] .na-sitting-toggle[aria-expanded="true"] .na-sitting-chevron {
  transform: rotate(-135deg);
}
section[data-na-archives="1"] ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
}
section[data-na-archives="1"] li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 16px;
  border: 1px solid #e6e8eb;
  border-radius: 12px;
  background: #fff;
}
section[data-na-archives="1"] li:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
section[data-na-archives="1"] .na-deck-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
section[data-na-archives="1"] .na-deck-tile[data-na-kind="pdf"] {
  background: #fef2f2;
  color: #b91c1c;
}
section[data-na-archives="1"] .na-deck-tile[data-na-kind="pptx"] {
  background: #fff7ed;
  color: #c2410c;
}
section[data-na-archives="1"] .na-deck-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}
section[data-na-archives="1"] .na-deck-copy {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
section[data-na-archives="1"] .na-deck-name {
  color: #111827;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
}
section[data-na-archives="1"] .na-deck-detail {
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}
section[data-na-archives="1"] .na-deck-meta {
  margin-top: 4px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 500;
}
section[data-na-archives="1"] .na-deck-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}
section[data-na-archives="1"] .na-deck-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
}
section[data-na-archives="1"] .na-deck-preview {
  border: 1px solid #e63329;
  background: #e63329;
  color: #fff !important;
}
section[data-na-archives="1"] .na-deck-download,
section[data-na-archives="1"] .na-deck-share {
  min-width: 44px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #111827 !important;
  font-size: 13px;
}
section[data-na-archives="1"] .na-pres-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
}
section[data-na-archives="1"] .na-pres-search,
section[data-na-archives="1"] select,
section[data-na-archives="1"] .na-pres-clear,
section[data-na-archives="1"] .na-pres-year,
section[data-na-archives="1"] .na-pres-more {
  min-height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 14px;
}
section[data-na-archives="1"] .na-pres-search {
  flex: 1 1 220px;
  padding: 8px 12px;
}
section[data-na-archives="1"] select,
section[data-na-archives="1"] .na-pres-clear,
section[data-na-archives="1"] .na-pres-year,
section[data-na-archives="1"] .na-pres-more {
  padding: 8px 12px;
}
section[data-na-archives="1"] .na-pres-years {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
section[data-na-archives="1"] .na-pres-year.active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}
section[data-na-archives="1"] .na-pres-count,
section[data-na-archives="1"] .na-pres-empty {
  margin: 8px 0;
  color: #4b5563;
  font-size: 14px;
}
.sa-v2-shell-main > [data-na-pres-hidden="1"],
.sa-portal-main > [data-na-pres-hidden="1"],
.sa-portal-main__body > [data-na-pres-hidden="1"] {
  display: none !important;
}
button[data-na-pres-admin-nav="1"] {
  width: 100%;
}
@media (max-width: 720px) {
  section[data-na-archives="1"] li {
    align-items: flex-start;
  }
  section[data-na-archives="1"] .na-deck-actions {
    width: 100%;
    margin-left: 0;
  }
  .na-toolbar {
    max-width: 100%;
  }
  .na-sw {
    min-width: 0;
    flex: 1 1 100%;
  }
  .na-sort-tabs {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
  }
  [class*="NavBar_menuBox"] {
    flex-shrink: 1 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: auto;
  }
  [class*="PublicMegaMenu_panel__"] {
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-width: calc(100vw - 16px) !important;
  }
}
