/* stylelint-disable unit-allowed-list -- Runtime brand stylesheet uses native CSS units. */

/* Desktop operations. The audited API workflows stay in their original Angular components. */
body.beampay-theme[data-brand='escudix'] app-layout:has(.esc-operations) {
  padding: 0;
  background: #f4f5fa;
}

body.beampay-theme[data-brand='escudix'] app-layout .esc-operations {
  --esc-nav-width: 13.5rem;
  --esc-border: #e0e3ec;

  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 100dvh;
}

body.beampay-theme[data-brand='escudix'] app-layout .esc-operations.esc-is-collapsed {
  --esc-nav-width: 4.5rem;
}

body.beampay-theme[data-brand='escudix'] .esc-operations > header[luiHeader] {
  box-sizing: border-box;
  position: relative;
  width: calc(100% - var(--esc-nav-width));
  margin: 0 0 0 var(--esc-nav-width);
  min-height: 3.5rem;
  padding: 0.625rem 1.75rem;
  background: #fff;
  border-bottom: 1px solid var(--esc-border);
}

body.beampay-theme[data-brand='escudix'] .esc-operations > header[luiHeader]::after {
  display: none;
}

body.beampay-theme[data-brand='escudix'] .esc-operations > header[luiHeader] .l-header-image {
  display: none;
}

body.beampay-theme[data-brand='escudix'] .esc-operations > header[luiHeader] .l-header-title {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 0.875rem;
  color: #222640;
}

body.beampay-theme[data-brand='escudix'] .esc-operations > ._flex {
  gap: 0;
}

body.beampay-theme[data-brand='escudix'] .esc-operations aside.esc-navigation {
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--esc-nav-width);
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 1rem 0.5rem;
  border: 0;
  border-radius: 0;
  background: #222640;
  z-index: 20;
}

body.beampay-theme[data-brand='escudix'] .esc-operations .esc-identity {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.25rem 0.625rem 1.25rem;
  overflow: hidden;
  flex-shrink: 0;
}

body.beampay-theme[data-brand='escudix'] .esc-operations .esc-identity img {
  width: 9.25rem;
  height: 2.4375rem;
  max-width: none;
}

body.beampay-theme[data-brand='escudix'] .esc-operations .esc-identity span {
  font-size: 0.6875rem;
  color: #bfc3d8;
  white-space: nowrap;
}

body.beampay-theme[data-brand='escudix'] .esc-operations .navigation-heading {
  padding: 0 0.5rem 0.75rem;
}

body.beampay-theme[data-brand='escudix'] .esc-operations .navigation-caption {
  font-size: 0.6875rem;
  color: #bfc3d8;
}

body.beampay-theme[data-brand='escudix'] .esc-operations .navigation-sections {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: auto;
  margin: 0;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

body.beampay-theme[data-brand='escudix'] .esc-operations .esc-navigation .sidebar-item {
  display: flex;
  min-height: 2.625rem;
  height: auto;
  flex-shrink: 0;
  margin: 0;
  gap: 0.625rem;
  padding: 0.625rem;
  border: 0;
  border-radius: 0.375rem;
  color: #f4f5fa;
  font: 450 0.875rem / 1.4 var(--lui-font-family);
}

body.beampay-theme[data-brand='escudix'] .esc-operations .esc-navigation .sidebar-item._active,
body.beampay-theme[data-brand='escudix'] .esc-operations .esc-navigation .sidebar-item._active:hover {
  background: #6250d5;
  color: #fff;
}

body.beampay-theme[data-brand='escudix'] .esc-operations .esc-navigation .sidebar-item._active::before {
  display: none;
}

body.beampay-theme[data-brand='escudix'] .esc-operations .esc-navigation .sidebar-item:hover {
  background: #333851;
}

body.beampay-theme[data-brand='escudix'] .esc-operations .navigation-account {
  margin-top: 1rem;
  padding: 0.75rem 0 0;
  border-color: #3c415d;
}

body.beampay-theme[data-brand='escudix'] .esc-operations .navigation-user {
  color: #bfc3d8;
}

body.beampay-theme[data-brand='escudix'] .esc-operations .is-collapsed .esc-identity {
  padding-inline: 0.5rem;
}

body.beampay-theme[data-brand='escudix'] .esc-operations .is-collapsed .esc-identity span {
  display: none;
}

body.beampay-theme[data-brand='escudix'] .esc-operations main.esc-workspace {
  box-sizing: border-box;
  width: calc(100% - var(--esc-nav-width)) !important;
  min-width: 0;
  min-height: calc(100dvh - 3.5rem);
  margin: 0 0 0 var(--esc-nav-width);
  padding: 1.5rem 1.75rem 2.5rem;
  overflow-x: clip;
}

body.beampay-theme[data-brand='escudix'] .esc-operations .esc-workspace-heading {
  margin-bottom: 1.375rem;
}

body.beampay-theme[data-brand='escudix'] .esc-operations .esc-workspace-heading h1 {
  margin: 0 0 0.375rem;
  font: 650 1.875rem / 1.3 var(--lui-font-family);
  letter-spacing: -0.035em;
  color: #222640;
}

body.beampay-theme[data-brand='escudix'] .esc-operations .esc-workspace-heading p {
  margin: 0;
  font: 400 0.875rem / 1.5 var(--lui-font-family);
  color: #5c6378;
}

body.beampay-theme[data-brand='escudix'] .esc-operations nav.esc-object-tabs {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  min-height: 2.75rem;
  margin: 0 0 1.5rem;
  border-bottom: 1px solid var(--esc-border);
}

body.beampay-theme[data-brand='escudix'] .esc-operations .esc-object-tabs a {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.5rem 0 0.75rem;
  border-bottom: 2px solid transparent;
  color: #5c6378;
  text-decoration: none;
  font: 500 0.875rem / 1.4 var(--lui-font-family);
}

body.beampay-theme[data-brand='escudix'] .esc-operations .esc-object-tabs a.is-active {
  color: #6250d5;
  border-bottom-color: #6250d5;
}

body.beampay-theme[data-brand='escudix'] .esc-operations .esc-object-tabs a:hover {
  color: #43349c;
}

body.beampay-theme[data-brand='escudix'] .esc-skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #222640;
  border-radius: 0.375rem;
}

body.beampay-theme[data-brand='escudix'] .esc-skip:focus {
  top: 1rem;
}

/* Data surfaces retain intrinsic widths and all original columns/actions. */
body.beampay-theme[data-brand='escudix'] .esc-operations main table[luiTable] {
  height: auto;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

body.beampay-theme[data-brand='escudix'] .esc-operations main table[luiTable] :is(th[luiTh], td[luiTd]) {
  border: 0;
  border-bottom: 1px solid #e9ebf2;
  padding: 0.75rem;
  vertical-align: middle;
}

body.beampay-theme[data-brand='escudix'] .esc-operations main table[luiTable] th[luiTh] {
  background: #fff;
  color: #5c6378;
  font-weight: 500;
}

body.beampay-theme[data-brand='escudix'] .esc-operations main table[luiTable] td[luiTd] {
  min-height: 3rem;
}

body.beampay-theme[data-brand='escudix'] .esc-operations main table[luiTable] :is(td, th) p {
  font-size: 0.8125rem;
  line-height: 1.5;
}

body.beampay-theme[data-brand='escudix'] .esc-operations main table[luiTable] th p {
  font-size: 0.75rem;
  font-weight: 500;
}

body.beampay-theme[data-brand='escudix'] .esc-operations main table[luiTable] tbody tr:hover td {
  background: #f7f7fc;
}

body.beampay-theme[data-brand='escudix'] .esc-operations main .esc-data-surface {
  border-color: #e0e3ec;
  border-radius: 0.5rem;
  max-height: max(20rem, calc(100dvh - 24rem));
}

body.beampay-theme[data-brand='escudix'] .esc-operations .esc-list-toolbar {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

body.beampay-theme[data-brand='escudix'] .esc-operations .esc-list-total {
  color: #222640;
}

body.beampay-theme[data-brand='escudix'] .esc-operations main lui-badge {
  border-radius: 0.25rem;
  font-weight: 500;
}

/* Existing object records and specialised editors keep their data-specific layouts. */
body.beampay-theme[data-brand='escudix'] .esc-operations main lui-breadcrumb {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
}

body.beampay-theme[data-brand='escudix'] .esc-operations main :is(h2, h3).l-text_headline_big {
  font: 650 1.375rem / 1.4 var(--lui-font-family);
  letter-spacing: -0.02em;
}

body.beampay-theme[data-brand='escudix']
  .esc-operations
  :is(.config-tab-info, .tid-info, .group-info, .campaign-info, .banner-info, .receipt-info) {
  border: 1px solid #e0e3ec;
  border-radius: 0.5rem;
  background: #fff;
  padding: 1.25rem;
  box-shadow: none;
}

body.beampay-theme[data-brand='escudix'] .esc-operations .config-info {
  column-gap: 2rem;
}

body.beampay-theme[data-brand='escudix'] .esc-operations .config-tab-info + .config-tab-info {
  margin-top: 1rem;
}

body.beampay-theme[data-brand='escudix'] .esc-operations :is(.config-tab, button[luiTab]) {
  font: 500 0.8125rem / 1.5 var(--lui-font-family);
}

body.beampay-theme[data-brand='escudix'] .filter-panel {
  padding: 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid #e0e3ec;
  box-shadow: 0 0.75rem 2.5rem rgb(34 38 64 / 12%);
}

body.beampay-theme[data-brand='escudix'] lui-dialog {
  border-radius: 0.75rem;
  border-color: #e0e3ec;
  box-shadow: 0 1.5rem 5rem rgb(34 38 64 / 20%);
}

body.beampay-theme[data-brand='escudix'] lui-dialog .dialog-footer {
  padding-top: 1rem;
  border-top: 1px solid #e0e3ec;
  margin-top: 1rem;
  background: #fff;
}

body.beampay-theme[data-brand='escudix'] lui-dialog .dialog-section {
  padding-block: 1rem;
  border-top: 1px solid #eceef4;
}

body.beampay-theme[data-brand='escudix'] lui-dialog h2 {
  font-size: 1.375rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

body.beampay-theme[data-brand='escudix'] .esc-operations .mobile-nav-toggle {
  display: none;
}

@media (width <= 75rem) {
  body.beampay-theme[data-brand='escudix'] app-layout .esc-operations {
    --esc-nav-width: 12rem;
  }

  body.beampay-theme[data-brand='escudix'] .esc-operations main.esc-workspace {
    padding: 1.25rem;
  }
}

@media (width <= 55rem) {
  body.beampay-theme[data-brand='escudix'] app-layout .esc-operations {
    --esc-nav-width: 4.5rem;
  }

  body.beampay-theme[data-brand='escudix'] .esc-operations .esc-navigation :is(.navigation-label, .navigation-caption, .esc-identity span) {
    display: none;
  }

  body.beampay-theme[data-brand='escudix'] .esc-operations .esc-identity {
    padding-inline: 0.5rem;
  }

  body.beampay-theme[data-brand='escudix'] .esc-operations .navigation-heading {
    justify-content: center;
  }

  body.beampay-theme[data-brand='escudix'] .esc-operations .esc-workspace-heading h1 {
    font-size: 1.5rem;
  }

  body.beampay-theme[data-brand='escudix'] .esc-operations > header[luiHeader] {
    padding-inline: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.beampay-theme[data-brand='escudix'] .esc-operations :is(aside, main) {
    transition: none;
  }
}

body.beampay-theme[data-brand='escudix'] .esc-load-feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid #e4c6c3;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  background: #fff9f8;
}

body.beampay-theme[data-brand='escudix'] .esc-load-feedback h2 {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

body.beampay-theme[data-brand='escudix'] .esc-load-feedback p {
  margin: 0;
  font-size: 0.8125rem;
  color: #5c6378;
}

body.beampay-theme[data-brand='escudix'] .esc-operations [data-load-failed='true'] :is(.table-addon, .esc-list-total) {
  display: none;
}

body.beampay-theme[data-brand='escudix'] .esc-working-views {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

body.beampay-theme[data-brand='escudix'] .esc-working-views button {
  padding: 0.5rem 0.875rem;
  color: #5c6378;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  font: 500 0.8125rem / 1.5 var(--lui-font-family);
  cursor: pointer;
}

body.beampay-theme[data-brand='escudix'] .esc-working-views button[aria-pressed='true'] {
  color: #4934b4;
  border-color: #d9d3f5;
  background: #eeebfa;
}

body.beampay-theme[data-brand='escudix'] .esc-working-views button:hover {
  background: #e9e8f5;
}

body.beampay-theme[data-brand='escudix'] .esc-search-mode {
  min-width: 8.5rem;
  max-width: 11rem;
  padding: 0.5rem;
  border: 1px solid #959bad;
  border-radius: 0.375rem;
  background: #fff;
  color: #222640;
  font: 450 0.8125rem / 1.5 var(--lui-font-family);
}

body.beampay-theme[data-brand='escudix'] .esc-validation {
  color: #b3261e;
  margin: 0.625rem 0;
  font-size: 0.8125rem;
}

body.beampay-theme[data-brand='escudix'] .esc-density-toggle {
  margin-left: auto;
}

body.beampay-theme[data-brand='escudix'] .esc-operations [data-density='compact'] table[luiTable] td[luiTd] {
  padding-block: 0.375rem;
}

body.beampay-theme[data-brand='escudix'] .esc-action-consequence {
  padding: 0.75rem 1rem;
  background: #fff3d6;
  border-radius: 0.375rem;
  color: #654800;
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

body.beampay-theme[data-brand='escudix'] .esc-record-link {
  display: block;
  padding: 0;
  border: 0;
  color: #222640;
  font: 600 0.8125rem / 1.5 var(--lui-font-family);
  background: transparent;
  cursor: pointer;
  text-align: left;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.beampay-theme[data-brand='escudix'] .esc-record-link:hover {
  color: #6250d5;
  text-decoration: underline;
}

body.beampay-theme[data-brand='escudix'] .esc-full-id {
  overflow-wrap: anywhere;
  margin-block: 1rem;
  user-select: all;
}

body.beampay-theme[data-brand='escudix'] .esc-record-subtitle {
  color: #5c6378;
  margin-top: 0.5rem;
}

body.beampay-theme[data-brand='escudix'] .esc-record-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding-block: 1.5rem;
}

body.beampay-theme[data-brand='escudix'] .esc-record-facts dt {
  font-size: 0.75rem;
  color: #5c6378;
  margin-bottom: 0.375rem;
}

body.beampay-theme[data-brand='escudix'] .esc-record-facts dd {
  margin: 0;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

body.beampay-theme[data-brand='escudix'] .esc-peek-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

body.beampay-theme[data-brand='escudix'] .esc-operations [data-column='id'] {
  width: 11rem;
}

body.beampay-theme[data-brand='escudix'] .esc-column-select {
  margin-left: auto;
}

body.beampay-theme[data-brand='escudix'] .esc-column-select + .esc-density-toggle {
  margin-left: 0;
}

body.beampay-theme[data-brand='escudix'] .esc-operations .config-info p {
  margin: 0;
}

body.beampay-theme[data-brand='escudix'] .esc-operations .config-info p + p {
  margin-top: 0.375rem;
}

body.beampay-theme[data-brand='escudix'] .esc-operations .config-info > div {
  padding-block: 0.5rem;
}

body.beampay-theme[data-brand='escudix'] .esc-operations app-configuration-detail > .config-info {
  background: #fff;
  border: 1px solid #e0e3ec;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
}

body.beampay-theme[data-brand='escudix'] .esc-operations table a {
  color: #5142b5;
  text-decoration: none;
}

body.beampay-theme[data-brand='escudix'] .esc-operations table a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
