:root {
  color-scheme: light;

  /* SetuPOS brand on Material 3 tokens */
  --md-sys-color-primary: #0973d1;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #d1e4ff;
  --md-sys-color-on-primary-container: #001d36;
  --md-sys-color-secondary: #535f70;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-surface: #fefbff;
  --md-sys-color-on-surface: #1a1c1e;
  --md-sys-color-on-surface-variant: #44474e;
  --md-sys-color-surface-container: #f4f4f6;
  --md-sys-color-surface-container-low: #f7f7f9;
  --md-sys-color-surface-container-high: #eceef0;
  --md-sys-color-outline: #74777f;
  --md-sys-color-outline-variant: #c4c6cf;
  --md-sys-color-error: #ba1a1a;
  --md-sys-color-on-error: #ffffff;
  --md-sys-color-error-container: #ffdad6;
  --md-sys-color-on-error-container: #410002;

  --setu-dialog-backdrop: rgba(15, 23, 42, 0.55);
  --setu-dialog-backdrop-rgb: rgb(15, 23, 42);
  --setu-dialog-backdrop-opacity: 0.55;

  --md-ref-typeface-brand: "Poppins", sans-serif;
  --md-ref-typeface-plain: "Roboto", sans-serif;

  --font-display: "Poppins", sans-serif;
  --font-body: "Nunito", sans-serif;
  --font-ui: "Roboto", sans-serif;
  --font-brand: "Baloo 2", sans-serif;
  --font-accent: "Comfortaa", sans-serif;
  --font-built-with: "Inter", sans-serif;

  --header-height: 70px;
  --footer-height: 52px;
  --drawer-width: 260px;

  --md-sys-shape-corner-extra-large: 28px;
}

md-dialog:not(.warehouse-sub-dialog) {
  --md-sys-color-scrim: var(--setu-dialog-backdrop-rgb);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

*::selection {
  background-color: #1884dc34;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body), sans-serif;
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
  cursor: default;
}

a {
  color: var(--md-sys-color-primary);
  text-decoration: none;
  cursor: pointer;
}

button,
md-filled-button,
md-outlined-button,
md-text-button,
md-filled-tonal-button,
md-icon-button,
md-primary-tab,
md-list-item,
.company-badge,
.drawer-profile-user {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.setu-icon-preload {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

html:not(.setu-icons-ready) .material-symbols-rounded {
  visibility: hidden;
}

html.setu-icons-ready .material-symbols-rounded {
  visibility: visible;
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded", sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.full-width {
  width: 100%;
}

md-filled-button.full-width,
md-outlined-button.full-width {
  display: inline-flex;
  width: 100%;
  max-width: 100%;
}

/* ── App bar ── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: #ffffff;
  box-shadow:
    0 2px 12px rgba(15, 23, 42, 0.04),
    0 1px 4px rgba(15, 23, 42, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 2px rgba(15, 23, 42, 0.02);
}

.app-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 0 24px;
}

.app-header-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  user-select: none;
}

.app-header-logo:hover {
  opacity: 0.88;
}

.app-header-logo img {
  display: block;
  height: 32px;
  width: auto;
  user-select: none;
  pointer-events: none;
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.app-header-actions md-filled-button {
  --md-filled-button-container-height: 36px;
}

.app-header-end {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  min-width: 0;
}

md-text-button.nav-link-active {
  --md-text-button-label-text-color: var(--md-sys-color-primary);
  --md-text-button-hover-label-text-color: var(--md-sys-color-primary);
  --md-text-button-focus-label-text-color: var(--md-sys-color-primary);
  --md-text-button-pressed-label-text-color: var(--md-sys-color-primary);
}

.app-header-logo.nav-link,
.app-header-logo.nav-link-active {
  background: none;
  border: none;
}

/* ── Dashboard drawer layout ── */
.dashboard-page {
  --header-height: 64px;
  flex-direction: column;
  min-height: 100vh;
  background: var(--md-sys-color-surface-container);
}

.dashboard-page .app-header {
  width: 100%;
  flex-shrink: 0;
}

.dashboard-page .app-header-logo img {
  height: 30px;
}

.dashboard-page .app-header-inner {
  max-width: none;
  margin: 0;
  justify-content: space-between;
  padding: 0 24px;
}

.dashboard-page .app-header-end {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.dashboard-page .app-header-end .header-ssl {
  margin: 0;
}

.app-header-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.header-tool-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #5f6368;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.header-tool-btn:hover,
.header-tool-btn:focus-visible {
  background: rgba(95, 99, 104, 0.08);
}

.header-tool-btn:focus-visible {
  outline: 2px solid rgba(9, 115, 209, 0.45);
  outline-offset: 2px;
}

.header-dropdown-wrap.is-header-dropdown-open .header-tool-btn,
.header-dropdown-wrap.is-header-dropdown-closing .header-tool-btn,
.header-tool-btn.is-header-tool-active {
  background: rgba(95, 99, 104, 0.12);
  color: var(--md-sys-color-primary);
}

.header-dropdown-wrap.is-header-dropdown-open .header-tool-btn:hover,
.header-dropdown-wrap.is-header-dropdown-closing .header-tool-btn:hover,
.header-tool-btn.is-header-tool-active:hover {
  background: rgba(95, 99, 104, 0.16);
}

.header-tool-icon-stack {
  position: relative;
  z-index: 1;
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  pointer-events: none;
}

.header-tool-icon-stack .header-tool-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  display: block;
  margin: 0;
  pointer-events: none;
}

.header-tool-btn > .header-tool-icon {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.header-tool-icon-stack .header-tool-icon--filled {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.header-tool-icon-stack .header-tool-icon--outline {
  transition: opacity 0.15s ease;
}

.header-tool-btn .header-tool-icon path {
  transition: stroke 0.15s ease;
}

.header-tool-btn:hover .header-tool-icon--outline path,
.header-tool-btn:focus-visible .header-tool-icon--outline path,
.header-tool-btn:hover .header-tool-icon:not(.header-tool-icon--filled):not(.header-tool-icon--outline) path,
.header-tool-btn:focus-visible .header-tool-icon:not(.header-tool-icon--filled):not(.header-tool-icon--outline) path {
  stroke: #3c4043;
}

.header-dropdown-wrap[data-header-dropdown="devices"].is-header-dropdown-open .header-tool-btn .header-tool-icon path,
.header-dropdown-wrap[data-header-dropdown="devices"].is-header-dropdown-closing .header-tool-btn .header-tool-icon path,
.header-dropdown-wrap[data-header-dropdown="devices"] .header-tool-btn.is-header-tool-active .header-tool-icon path {
  stroke: var(--md-sys-color-primary);
}

.header-dropdown-wrap[data-header-dropdown="devices"].is-header-dropdown-open .header-tool-btn:hover .header-tool-icon path,
.header-dropdown-wrap[data-header-dropdown="devices"].is-header-dropdown-closing .header-tool-btn:hover .header-tool-icon path,
.header-dropdown-wrap[data-header-dropdown="devices"] .header-tool-btn.is-header-tool-active:hover .header-tool-icon path {
  stroke: var(--md-sys-color-primary);
}

.header-dropdown-wrap[data-header-dropdown="notifications"] .header-tool-btn .header-tool-icon--outline path {
  transition: stroke 0.15s ease, opacity 0.15s ease;
}

.header-dropdown-wrap[data-header-dropdown="notifications"] .header-tool-btn:hover .header-tool-icon--outline path,
.header-dropdown-wrap[data-header-dropdown="notifications"] .header-tool-btn:focus-visible .header-tool-icon--outline path {
  stroke: #3c4043;
}

.header-dropdown-wrap[data-header-dropdown="notifications"].is-header-dropdown-open .header-tool-btn .header-tool-icon--outline,
.header-dropdown-wrap[data-header-dropdown="notifications"].is-header-dropdown-closing .header-tool-btn .header-tool-icon--outline,
.header-dropdown-wrap[data-header-dropdown="notifications"] .header-tool-btn.is-header-tool-active .header-tool-icon--outline {
  opacity: 0;
}

.header-dropdown-wrap[data-header-dropdown="notifications"].is-header-dropdown-open .header-tool-btn .header-tool-icon--filled,
.header-dropdown-wrap[data-header-dropdown="notifications"].is-header-dropdown-closing .header-tool-btn .header-tool-icon--filled,
.header-dropdown-wrap[data-header-dropdown="notifications"] .header-tool-btn.is-header-tool-active .header-tool-icon--filled {
  opacity: 1;
}

.header-dropdown-wrap[data-header-dropdown="notifications"].is-header-dropdown-open .header-tool-btn .header-tool-icon--filled path,
.header-dropdown-wrap[data-header-dropdown="notifications"].is-header-dropdown-closing .header-tool-btn .header-tool-icon--filled path,
.header-dropdown-wrap[data-header-dropdown="notifications"] .header-tool-btn.is-header-tool-active .header-tool-icon--filled path {
  fill: var(--md-sys-color-primary);
}

.header-dropdown-wrap {
  position: relative;
  display: inline-flex;
}

.header-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  width: min(320px, calc(100vw - 32px));
  max-height: min(360px, calc(100vh - var(--header-height) - 24px));
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.12),
    0 2px 8px rgba(15, 23, 42, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transform-origin: top right;
  transition:
    opacity 220ms cubic-bezier(0.2, 0, 0, 1),
    transform 220ms cubic-bezier(0.2, 0, 0, 1),
    visibility 0ms linear 220ms;
}

.header-dropdown::before {
  content: "";
  position: absolute;
  bottom: 100%;
  right: 14px;
  border: 6px solid transparent;
  border-bottom-color: #ffffff;
  filter: drop-shadow(0 -1px 0 rgba(15, 23, 42, 0.08));
  opacity: 0;
  transition: opacity 220ms cubic-bezier(0.2, 0, 0, 1);
}

.header-dropdown-wrap.is-header-dropdown-open .header-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition:
    opacity 220ms cubic-bezier(0.2, 0, 0, 1),
    transform 220ms cubic-bezier(0.2, 0, 0, 1),
    visibility 0ms linear 0ms;
}

.header-dropdown-wrap.is-header-dropdown-open .header-dropdown::before {
  opacity: 1;
}

.header-dropdown-head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
}

.header-dropdown-title {
  margin: 0;
  font-family: "Comfortaa", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--md-sys-color-on-surface);
}

.header-dropdown-body {
  padding: 12px 16px 16px;
  overflow-y: auto;
}

.header-dropdown-empty {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #9ca3af;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .header-dropdown {
    transition: none;
    transform: none;
  }

  .header-dropdown::before {
    transition: none;
  }

  .header-dropdown-wrap.is-header-dropdown-open .header-dropdown {
    transform: none;
  }
}

.ssl-badge-wrap {
  position: relative;
  display: inline-flex;
}

/* Hidden toast sits below the badge and was extending page scroll height */
.ssl-badge-wrap:not(.is-ssl-toast-open):not(.is-ssl-toast-closing) {
  overflow: hidden;
}

.ssl-badge-toast {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--md-sys-color-on-surface);
  font-family: var(--font-accent), sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 4px 16px rgba(15, 23, 42, 0.1),
    0 2px 6px rgba(15, 23, 42, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transform-origin: top right;
  transition:
    opacity 220ms cubic-bezier(0.2, 0, 0, 1),
    transform 220ms cubic-bezier(0.2, 0, 0, 1),
    visibility 0ms linear 220ms;
}

.ssl-badge-toast::before {
  content: "";
  position: absolute;
  bottom: 100%;
  right: 20px;
  border: 6px solid transparent;
  border-bottom-color: #ffffff;
  filter: drop-shadow(0 -1px 0 rgba(15, 23, 42, 0.08));
  opacity: 0;
  transition: opacity 220ms cubic-bezier(0.2, 0, 0, 1);
}

.ssl-badge-wrap.is-ssl-toast-open .ssl-badge-toast {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition:
    opacity 220ms cubic-bezier(0.2, 0, 0, 1),
    transform 220ms cubic-bezier(0.2, 0, 0, 1),
    visibility 0ms linear 0ms;
}

.ssl-badge-wrap.is-ssl-toast-open .ssl-badge-toast::before {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ssl-badge-toast {
    transition: none;
    transform: none;
  }

  .ssl-badge-toast::before {
    transition: none;
  }

  .ssl-badge-wrap.is-ssl-toast-open .ssl-badge-toast {
    transform: none;
  }
}

.setu-snackbar-host {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1200;
  pointer-events: none;
}

.setu-snackbar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100vw - 48px));
  padding: 12px 16px;
  border-radius: 12px;
  background: #1e293b;
  color: #f8fafc;
  font-family: var(--font-accent), sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.24),
    0 2px 8px rgba(15, 23, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 260ms cubic-bezier(0.2, 0, 0, 1),
    transform 260ms cubic-bezier(0.2, 0, 0, 1),
    visibility 0ms linear 260ms;
}

.setu-snackbar-icon {
  display: none;
  flex-shrink: 0;
}

.setu-snackbar.is-success .setu-snackbar-icon--success {
  display: inline-flex;
  color: #34d399;
}

.setu-snackbar.is-error .setu-snackbar-icon--error {
  display: inline-flex;
  color: #f87171;
}

.setu-snackbar-message {
  min-width: 0;
}

.setu-snackbar-host.is-setu-snackbar-open .setu-snackbar {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 260ms cubic-bezier(0.2, 0, 0, 1),
    transform 260ms cubic-bezier(0.2, 0, 0, 1),
    visibility 0ms linear 0ms;
}

.setu-snackbar-host.is-setu-snackbar-closing .setu-snackbar {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 220ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 220ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0ms linear 220ms;
}

@media (prefers-reduced-motion: reduce) {
  .setu-snackbar {
    transition: none;
    transform: none;
  }

  .setu-snackbar-host.is-setu-snackbar-open .setu-snackbar,
  .setu-snackbar-host.is-setu-snackbar-closing .setu-snackbar {
    transform: none;
  }
}

.ssl-icon-button {
  --md-filled-tonal-button-container-color: #e8f8f0;
  --md-filled-tonal-button-label-text-color: #0db561;
  --md-filled-tonal-button-container-shape: 999px;
  --md-filled-tonal-button-container-elevation: 0;
  --md-filled-tonal-button-hover-container-elevation: 0;
  --md-filled-tonal-button-focus-container-elevation: 0;
  --md-filled-tonal-button-pressed-container-elevation: 0;
  flex-shrink: 0;
  justify-self: start;
  height: auto;
}

.ssl-button-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
  font-family: "Tilt Warp", sans-serif;
  font-weight: 300;
  letter-spacing: 0.025rem;
  font-size: 0.6875rem;
  color: #0db561;
}

.ssl-button-line {
  display: block;
}

.ssl-icon-button .secure-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.dashboard-page .app-header-end .ssl-icon-button .secure-icon {
  width: 24px;
  height: 24px;
}

.dashboard-page .app-header-end .company-badge {
  justify-self: unset;
}

.app-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--drawer-width);
  height: calc(100vh - var(--header-height));
  z-index: 90;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-right: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    2px 0 12px rgba(15, 23, 42, 0.03),
    1px 0 4px rgba(15, 23, 42, 0.015);
}

.drawer-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: #ffffff;
  overflow: hidden;
}

.drawer-nav-track {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.drawer-nav-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 42px;
  border-radius: 0 4px 4px 0;
  background: var(--md-sys-color-primary);
  pointer-events: none;
  z-index: 2;
  transform: translateY(17px);
  transition: transform 0.2s ease;
}

.drawer-nav-bar.is-instant {
  transition: none;
}

.drawer-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  --md-list-container-color: #ffffff;
  background: #ffffff;
  padding: 8px 0;
}

.drawer-list md-list-item.drawer-nav-item {
  position: relative;
  user-select: none;
  --drawer-nav-index: 0;
  --md-list-item-one-line-container-height: 48px;
  --md-list-item-leading-space: 18px;
  --md-list-item-label-text-font: "Inter", sans-serif;
  --md-list-item-label-text-size: 0.875rem;
  --md-list-item-label-text-weight: 500;
  --md-list-item-label-text-tracking: 0.025em;
  --md-list-item-label-text-color: var(--md-sys-color-on-surface-variant);
}

.drawer-list md-list-item.drawer-nav-item [slot="headline"],
md-list-item.drawer-logout-item [slot="headline"] {
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  user-select: none;
}

.drawer-list md-list-item.drawer-nav-item:not(.nav-link-active) [slot="headline"] {
  color: var(--md-sys-color-on-surface-variant);
}

.drawer-list md-list-item.drawer-nav-item:first-child {
  margin-top: 6px;
}

.drawer-nav-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--md-sys-color-on-surface-variant);
  user-select: none;
}

.drawer-nav-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transform-origin: center;
}

@keyframes drawer-icon-shake {
  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-4.5deg);
  }

  50% {
    transform: rotate(3.25deg);
  }

  75% {
    transform: rotate(-2deg);
  }
}

.drawer-nav-icon-wrap.is-drawer-icon-shake {
  animation: drawer-icon-shake 0.38s ease-out both;
  animation-delay: 0.04s;
}

@media (prefers-reduced-motion: reduce) {
  .drawer-nav-icon-wrap.is-drawer-icon-shake {
    animation: none !important;
  }
}

.drawer-nav-icon-filled {
  display: none;
}

md-list-item.nav-link-active .drawer-nav-icon-wrap {
  color: var(--md-sys-color-primary);
}

md-list-item.nav-link-active .drawer-nav-icon-outline {
  display: none;
}

md-list-item.nav-link-active .drawer-nav-icon-filled {
  display: block;
}

.drawer-list md-list-item.drawer-nav-item.nav-link-active {
  --md-list-item-label-text-color: var(--md-sys-color-primary);
  --md-list-item-leading-icon-color: var(--md-sys-color-primary);
  background-color: #f2f4f7;
}

.drawer-bottom {
  flex-shrink: 0;
  padding: 8px 12px 12px;
  background: #ffffff;
}

.drawer-section-divider {
  display: block;
  margin-bottom: 8px;
}

.drawer-profile-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
  border-radius: 14px;
  background: #f8f9fb;
  border: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.drawer-profile-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease;
}

.drawer-profile-user:hover {
  background: rgba(15, 23, 42, 0.03);
}

.drawer-profile-user:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.35);
  outline-offset: -2px;
}

.drawer-profile-actions {
  --md-list-container-color: transparent;
  background: transparent;
  padding: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.drawer-profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}

.drawer-profile-text {
  min-width: 0;
  flex: 1;
}

.drawer-profile-name {
  margin: 0 0 2px;
  font-family: var(--font-body), sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25;
  color: var(--md-sys-color-on-surface);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-profile-email {
  margin: 0;
  font-family: var(--font-body), sans-serif;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--md-sys-color-on-surface-variant);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-info-card {
  display: block;
  margin-top: 8px;
  --md-elevated-card-container-color: #ffffff;
  --md-elevated-card-container-elevation: 0;
  border-radius: 14px;
  border: none;
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
}

.drawer-info-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
}

.drawer-info-card .footer-subtext {
  font-size: 0.75rem;
  white-space: normal;
  text-align: center;
}

.drawer-info-card .footer-made-in {
  font-size: 0.75rem;
}

.drawer-info-card .company-badge {
  max-width: 100%;
}

md-list-item.drawer-logout-item {
  user-select: none;
  --md-list-item-label-text-color: var(--md-sys-color-error);
  --md-list-item-leading-icon-color: var(--md-sys-color-error);
  --md-list-item-label-text-font: var(--font-body), sans-serif;
  --md-list-item-label-text-weight: 400;
  --md-list-item-label-text-tracking: 0.025em;
}

md-list-item.drawer-logout-item .drawer-nav-icon-logout {
  color: var(--md-sys-color-error);
  width: 20px;
  height: 20px;
}

.dashboard-main {
  flex: 1;
  min-width: 0;
  margin-left: var(--drawer-width);
  display: flex;
  flex-direction: column;
  position: relative;
}

.dashboard-main .page-content {
  flex: 1;
  max-width: none;
  width: 100%;
  padding: 32px 40px 48px;
}

/* ── App footer ── */
.app-footer {
  flex-shrink: 0;
  max-width: 100%;
  overflow-x: clip;
  background: #ffffff;
  border-top: 2px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px 16px 0 0;
  box-shadow:
    0 -2px 12px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.app-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: var(--footer-height);
  padding: 0 24px;
  box-sizing: border-box;
}

.company-badge {
  justify-self: center;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: #f8f9fb;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--md-sys-color-on-surface-variant);
  font: inherit;
  cursor: pointer;
  user-select: none;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.footer-made-in {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display), sans-serif;
  font-weight: 400;
  font-size: calc(0.8125rem + 1px);
}

.footer-ssl {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body), sans-serif;
  font-weight: 700;
  color: #0db561;
}

.footer-ssl-text {
  font-size: calc(0.8125rem + 1px);
  line-height: 1;
  margin-top: 1px;
}

.footer-subtext .secure-icon {
  width: 20px;
  height: 20px;
  margin: 0 5px 0 0;
  vertical-align: middle;
  display: inline-block;
  user-select: none;
  pointer-events: none;
}

.company-badge:hover {
  background: #f1f3f6;
  border-color: rgba(15, 23, 42, 0.1);
}

.company-badge-logo {
  display: block;
  height: 16px;
  width: auto;
  flex-shrink: 0;
  user-select: none;
  pointer-events: none;
}

.company-badge-text {
  font-family: var(--font-display), sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}

.footer-subtext {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--md-sys-color-on-surface-variant);
  white-space: nowrap;
}


.footer-subtext .heart {
  width: 15px;
  height: 15px;
  margin: 0 4px;
  vertical-align: middle;
  display: inline-block;
}

.footer-subtext .flag {
  width: 20px;
  margin: 0 0 0 4px;
  vertical-align: middle;
  display: inline-block;
}

/* ── Layout ── */
.app-layout {
  flex: 1;
}

.page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

/* ── Login split layout ── */
.login-page {
  background: #ffffff;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
}

.login-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #ffffff;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 52% 68% at -2% 48%, rgba(220, 185, 255, 0.17) 0%, transparent 72%),
    radial-gradient(ellipse 48% 62% at 102% 52%, rgba(225, 195, 255, 0.10) 0%, transparent 68%),
    radial-gradient(ellipse 68% 52% at 82% 35%, rgba(180, 210, 255, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 60% 48% at 70% 75%, rgba(200, 225, 255, 0.1) 0%, transparent 68%),
    radial-gradient(ellipse 50% 40% at 28% 18%, rgba(190, 215, 255, 0.08) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.login-panel-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 120px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 64px;
  position: relative;
  z-index: 1;
}

.login-loader,
.dashboard-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 28px;
  padding: 48px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.login-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.dashboard-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--md-sys-color-surface-container);
}

.dashboard-loader-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dashboard-loader-version {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #9ca3af;
  animation: dashboard-loader-version-fade-in 0.36s cubic-bezier(0.2, 0, 0, 1) 0.32s both;
}

@keyframes dashboard-loader-version-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.login-loader-text {
  margin: 0;
  font-family: "Comfortaa", sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(9, 115, 209, 0.62);
  transform-origin: center;
  animation:
    login-loader-enter 0.32s cubic-bezier(0.2, 0, 0, 1) 0.08s both,
    login-loader-text-pulse 1.1s ease-in-out 0.5s infinite;
}

@keyframes login-loader-text-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

.login-loader-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 125px;
  height: 125px;
  animation: login-loader-enter 0.32s cubic-bezier(0.2, 0, 0, 1) both;
}

@keyframes login-loader-enter {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.login-loader-spinner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: login-loader-rotate 2.1s linear infinite;
}

.login-loader-track,
.login-loader-arc {
  fill: none;
  stroke-width: 7;
}

.login-loader-track {
  stroke: rgba(9, 115, 209, 0.07);
}

.login-loader-arc {
  stroke: var(--md-sys-color-primary);
  stroke-linecap: round;
  stroke-dasharray: 66 198;
  stroke-dashoffset: 0;
  animation: login-loader-dash 1.72s ease-in-out infinite;
}

@keyframes login-loader-rotate {
  from {
    transform: rotate(-90deg);
  }

  to {
    transform: rotate(270deg);
  }
}

@keyframes login-loader-dash {
  0% {
    stroke-dasharray: 1 264;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 120 264;
    stroke-dashoffset: -32;
  }

  100% {
    stroke-dasharray: 1 264;
    stroke-dashoffset: -264;
  }
}

.login-loader-icon {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  transform-origin: center;
  animation: login-loader-icon-pulse 1.5s ease-in-out infinite;
}

@keyframes login-loader-icon-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.07);
  }
}

.login-page.is-login-ready .login-loader,
.dashboard-page.is-dashboard-ready .dashboard-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── Dashboard reveal (staggered, one-time after loader) ── */
.dashboard-page:not(.is-dashboard-ready) .app-header,
.dashboard-page:not(.is-dashboard-ready) .app-drawer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.dashboard-page.is-dashboard-ready.is-dashboard-enter .app-header {
  animation: login-enter-fade-down 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.04s;
}

.dashboard-page.is-dashboard-ready.is-dashboard-enter .drawer-list md-list-item.drawer-nav-item {
  animation: login-enter-fade-in-left 0.44s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: calc(0.1s + var(--drawer-nav-index) * 0.06s);
}

.dashboard-page.is-dashboard-ready.is-dashboard-enter .drawer-profile-card {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.44s;
}

.dashboard-page.is-dashboard-ready.is-dashboard-enter .drawer-info-card {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.52s;
}

.dashboard-page.is-dashboard-ready.is-dashboard-enter .portfolio-header .page-title,
.dashboard-page.is-dashboard-ready.is-dashboard-enter .card-wide .page-title,
.dashboard-page.is-dashboard-ready.is-dashboard-enter .workspace-module-head {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.2s;
}

.dashboard-page.is-dashboard-ready.is-dashboard-enter .portfolio-header .subtitle,
.dashboard-page.is-dashboard-ready.is-dashboard-enter .card-wide .subtitle,
.dashboard-page.is-dashboard-ready.is-dashboard-enter .workspace-module-card > .card-content > .subtitle {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.28s;
}

.dashboard-page.is-dashboard-ready.is-dashboard-enter .portfolio-panel {
  animation: login-enter-fade-up 0.52s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.36s;
}

.dashboard-page.is-dashboard-ready.is-dashboard-enter .portfolio-panel-title {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.44s;
}

.dashboard-page.is-dashboard-ready.is-dashboard-enter .portfolio-create-btn {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.52s;
}

.dashboard-page.is-dashboard-ready.is-dashboard-enter .portfolio-empty-visual {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.6s;
}

.dashboard-page.is-dashboard-ready.is-dashboard-enter .portfolio-empty-title {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.68s;
}

.dashboard-page.is-dashboard-ready.is-dashboard-enter .portfolio-empty-text {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.76s;
}

.dashboard-page.is-dashboard-ready.is-dashboard-enter .portfolio-business-card {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
}

.dashboard-page.is-dashboard-ready.is-dashboard-enter .portfolio-business-card:nth-child(1) {
  animation-delay: 0.58s;
}

.dashboard-page.is-dashboard-ready.is-dashboard-enter .portfolio-business-card:nth-child(2) {
  animation-delay: 0.64s;
}

.dashboard-page.is-dashboard-ready.is-dashboard-enter .portfolio-business-card:nth-child(3) {
  animation-delay: 0.7s;
}

.dashboard-page.is-dashboard-ready.is-dashboard-enter .portfolio-business-card:nth-child(4) {
  animation-delay: 0.76s;
}

.dashboard-page.is-dashboard-ready.is-dashboard-enter .portfolio-business-card:nth-child(5) {
  animation-delay: 0.82s;
}

.dashboard-page.is-dashboard-ready.is-dashboard-enter .portfolio-business-card:nth-child(6) {
  animation-delay: 0.88s;
}

.dashboard-page.is-dashboard-ready.is-dashboard-enter .card-wide #settings-form {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.36s;
}

.dashboard-page.is-dashboard-ready.is-dashboard-enter .workspace-warehouse-filter {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.36s;
}

.dashboard-page.is-dashboard-ready.is-dashboard-enter .workspace-module-meta {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.44s;
}

/* ── Workspace open reveal (after portfolio panel loader) ── */
.dashboard-page.is-workspace-enter .app-header {
  animation: login-enter-fade-down 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.04s;
}

.dashboard-page.is-workspace-enter .app-header-center .app-header-business-badge {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.1s;
}

.dashboard-page.is-workspace-enter .drawer-list md-list-item.drawer-nav-item {
  animation: login-enter-fade-in-left 0.44s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: calc(0.1s + var(--drawer-nav-index) * 0.06s);
}

.dashboard-page.is-workspace-enter .drawer-profile-card {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.44s;
}

.dashboard-page.is-workspace-enter .drawer-info-card {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.52s;
}

.dashboard-page.is-workspace-enter .workspace-module-card {
  animation: login-enter-fade-up 0.52s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.18s;
}

.dashboard-page.is-workspace-enter .workspace-module-head {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.24s;
}

.dashboard-page.is-workspace-enter .workspace-module-card > .card-content > .subtitle {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.3s;
}

.dashboard-page.is-workspace-enter .workspace-warehouse-filter {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.36s;
}

.dashboard-page.is-workspace-enter .workspace-module-meta {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.42s;
}

/* ── Workspace exit (return to All Businesses) ── */
.dashboard-page.is-workspace-exit .workspace-module-card {
  animation: login-exit-fade-up 0.38s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.dashboard-page.is-workspace-exit .workspace-module-head,
.dashboard-page.is-workspace-exit .workspace-module-card > .card-content > .subtitle,
.dashboard-page.is-workspace-exit .workspace-warehouse-filter,
.dashboard-page.is-workspace-exit .workspace-module-meta {
  animation: login-exit-fade-up 0.34s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: 0.04s;
}

.dashboard-page.is-workspace-exit .app-header-center .app-header-business-badge,
.dashboard-page.is-workspace-exit .header-business-dropdown-wrap {
  animation: login-exit-fade-up 0.34s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: 0.08s;
}

.dashboard-page.is-workspace-exit .drawer-list md-list-item.drawer-nav-item {
  animation: login-exit-fade-out-left 0.32s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: calc(var(--drawer-nav-index) * 0.03s);
}

.dashboard-page.is-workspace-exit .drawer-profile-card,
.dashboard-page.is-workspace-exit .drawer-info-card {
  animation: login-exit-fade-up 0.34s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: 0.1s;
}

.dashboard-page.is-workspace-exit .app-header {
  animation: login-exit-fade-down 0.36s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: 0.12s;
}

/* Hold chrome and view hidden between workspace exit and portfolio enter */
.dashboard-page.is-portfolio-return-pending #app-view,
.dashboard-page.is-portfolio-return-pending .app-header,
.dashboard-page.is-portfolio-return-pending .app-drawer {
  opacity: 0;
  pointer-events: none;
}

.login-page:not(.is-login-ready) .login-animation,
.login-page:not(.is-login-ready) .login-card {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-animation {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  max-width: 380px;
  min-width: 0;
}

.login-animation dotlottie-player {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 1;
}

.login-tagline {
  margin: 8px 0 0;
  font-family: "Baloo 2", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1.4;
  color: #a3a7ae;
  text-align: center;
}

@keyframes login-enter-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes login-enter-fade-down {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes login-enter-fade-in-left {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes login-exit-fade-up {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes login-exit-fade-down {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes login-exit-fade-out-left {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-18px);
  }
}

.login-page .app-header {
  animation: login-enter-fade-down 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.04s;
}

.login-page.is-login-ready .login-animation dotlottie-player {
  animation: login-enter-fade-in-left 0.56s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.12s;
}

.login-page.is-login-ready .login-tagline {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.28s;
}

.login-page.is-login-ready .login-card {
  animation: login-enter-fade-in-left 0.56s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.18s;
}

.login-page.is-login-ready .login-card .page-title {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.2s;
}

.login-page.is-login-ready .login-card .subtitle {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.28s;
}

.login-page.is-login-ready .login-card .form-stack {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.36s;
}

.login-page.is-login-ready .login-card .form-actions {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.44s;
}

.login-page.is-login-ready .login-card .login-oauth {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.52s;
}

.login-page .app-footer {
  animation: login-enter-fade-up 0.48s cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: 0.6s;
}

@media (prefers-reduced-motion: reduce) {
  .login-page .app-header,
  .login-page.is-login-ready .login-animation dotlottie-player,
  .login-page.is-login-ready .login-tagline,
  .login-page.is-login-ready .login-card,
  .login-page.is-login-ready .login-card .page-title,
  .login-page.is-login-ready .login-card .subtitle,
  .login-page.is-login-ready .login-card .form-stack,
  .login-page.is-login-ready .login-card .form-actions,
  .login-page.is-login-ready .login-card .login-oauth,
  .login-page .app-footer {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .login-page:not(.is-login-ready) .login-animation,
  .login-page:not(.is-login-ready) .login-card {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .login-loader,
  .dashboard-loader {
    display: none !important;
  }

  .login-loader-spinner,
  .login-loader-arc,
  .login-loader-icon,
  .login-loader-ring,
  .login-loader-text,
  .dashboard-loader-version {
    animation: none !important;
  }

  .login-loader-ring,
  .login-loader-text,
  .dashboard-loader-version {
    opacity: 1 !important;
    transform: none !important;
  }

  .dashboard-page:not(.is-dashboard-ready) .app-header,
  .dashboard-page:not(.is-dashboard-ready) .app-drawer {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .dashboard-page.is-dashboard-ready.is-dashboard-enter .app-header,
  .dashboard-page.is-dashboard-ready.is-dashboard-enter .drawer-list md-list-item.drawer-nav-item,
  .dashboard-page.is-dashboard-ready.is-dashboard-enter .drawer-profile-card,
  .dashboard-page.is-dashboard-ready.is-dashboard-enter .drawer-info-card,
  .dashboard-page.is-dashboard-ready.is-dashboard-enter .portfolio-header .page-title,
  .dashboard-page.is-dashboard-ready.is-dashboard-enter .card-wide .page-title,
  .dashboard-page.is-dashboard-ready.is-dashboard-enter .workspace-module-head,
  .dashboard-page.is-dashboard-ready.is-dashboard-enter .portfolio-header .subtitle,
  .dashboard-page.is-dashboard-ready.is-dashboard-enter .card-wide .subtitle,
  .dashboard-page.is-dashboard-ready.is-dashboard-enter .workspace-module-card > .card-content > .subtitle,
  .dashboard-page.is-dashboard-ready.is-dashboard-enter .portfolio-panel,
  .dashboard-page.is-dashboard-ready.is-dashboard-enter .portfolio-panel-title,
  .dashboard-page.is-dashboard-ready.is-dashboard-enter .portfolio-create-btn,
  .dashboard-page.is-dashboard-ready.is-dashboard-enter .portfolio-empty-visual,
  .dashboard-page.is-dashboard-ready.is-dashboard-enter .portfolio-empty-title,
  .dashboard-page.is-dashboard-ready.is-dashboard-enter .portfolio-empty-text,
  .dashboard-page.is-dashboard-ready.is-dashboard-enter .portfolio-business-card,
  .dashboard-page.is-dashboard-ready.is-dashboard-enter .card-wide #settings-form,
  .dashboard-page.is-dashboard-ready.is-dashboard-enter .workspace-warehouse-filter,
  .dashboard-page.is-dashboard-ready.is-dashboard-enter .workspace-module-meta,
  .dashboard-page.is-workspace-enter .app-header,
  .dashboard-page.is-workspace-enter .app-header-center .app-header-business-badge,
  .dashboard-page.is-workspace-enter .drawer-list md-list-item.drawer-nav-item,
  .dashboard-page.is-workspace-enter .drawer-profile-card,
  .dashboard-page.is-workspace-enter .drawer-info-card,
  .dashboard-page.is-workspace-enter .workspace-module-card,
  .dashboard-page.is-workspace-enter .workspace-module-head,
  .dashboard-page.is-workspace-enter .workspace-module-card > .card-content > .subtitle,
  .dashboard-page.is-workspace-enter .workspace-warehouse-filter,
  .dashboard-page.is-workspace-enter .workspace-module-meta,
  .dashboard-page.is-workspace-exit .app-header,
  .dashboard-page.is-workspace-exit .app-header-center .app-header-business-badge,
  .dashboard-page.is-workspace-exit .header-business-dropdown-wrap,
  .dashboard-page.is-workspace-exit .drawer-list md-list-item.drawer-nav-item,
  .dashboard-page.is-workspace-exit .drawer-profile-card,
  .dashboard-page.is-workspace-exit .drawer-info-card,
  .dashboard-page.is-workspace-exit .workspace-module-card,
  .dashboard-page.is-workspace-exit .workspace-module-head,
  .dashboard-page.is-workspace-exit .workspace-module-card > .card-content > .subtitle,
  .dashboard-page.is-workspace-exit .workspace-warehouse-filter,
  .dashboard-page.is-workspace-exit .workspace-module-meta,
  .dashboard-page.is-portfolio-return-pending #app-view,
  .dashboard-page.is-portfolio-return-pending .app-header,
  .dashboard-page.is-portfolio-return-pending .app-drawer,
  .portfolio-panel-loader,
  .portfolio-panel-loader .login-loader-ring,
  .portfolio-panel-loader .login-loader-text {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .portfolio-empty-arrow.is-arrow-enter .portfolio-empty-arrow-path,
  .portfolio-empty-arrow.is-arrow-enter .portfolio-empty-arrow-head {
    animation: none !important;
  }

  .portfolio-empty-arrow:not(.hidden) {
    opacity: 1 !important;
  }

  .portfolio-empty-arrow-head {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .login-page {
    --header-height: 58px;
  }

  .login-page .app-header-logo img {
    height: 28px;
  }

  .login-panel-inner {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    max-width: 440px;
    padding: 20px 36px 32px;
  }

  .login-animation {
    flex: none;
    justify-content: center;
    max-width: 150px;
    margin: 16px 0 24px;
  }

  .login-animation dotlottie-player {
    width: 150px;
    max-width: 150px;
    height: 150px;
  }

  .login-tagline {
    display: none;
  }

  .login-card-clay,
  md-elevated-card.login-card {
    max-width: 100%;
  }

  .login-page.is-login-ready .login-animation dotlottie-player,
  .login-page.is-login-ready .login-card {
    animation-name: login-enter-fade-up;
  }
}

.page-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

/* ── Material cards ── */
md-elevated-card {
  display: block;
  border-radius: 16px;
  border: none;
  --md-elevated-card-container-elevation: 1;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

md-elevated-card.login-card {
  width: 100%;
  max-width: 440px;
  --md-elevated-card-container-color: var(--md-sys-color-surface);
  --md-elevated-card-container-shape: 16px;
  --md-elevated-card-container-elevation: 1;
  background: var(--md-sys-color-surface);
  border: none;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.login-card-clay {
  flex-shrink: 0;
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  background: #ffffff;
  border: none;
  --login-field-hover-tone: #b0b8c4;
  box-shadow:
    0 8px 28px rgba(15, 23, 42, 0.07),
    0 2px 10px rgba(15, 23, 42, 0.04),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -2px 6px rgba(15, 23, 42, 0.032);
  overflow: hidden;
}

.login-card-clay md-outlined-text-field {
  --md-outlined-text-field-container-color: #ffffff;
  --md-outlined-text-field-outline-color: #c4c8d0;
  --md-outlined-text-field-hover-outline-color: var(--login-field-hover-tone);
  --md-outlined-text-field-label-text-color: #90969f;
  --md-outlined-text-field-hover-label-text-color: var(--login-field-hover-tone);
  --md-outlined-text-field-input-text-placeholder-color: #90969f;
}

md-elevated-card.card-wide {
  max-width: 960px;
  --md-elevated-card-container-color: var(--md-sys-color-surface);
  --md-elevated-card-container-elevation: 1;
  background: var(--md-sys-color-surface);
  border: none;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.card-content {
  padding: 32px;
}

.login-card .card-content {
  padding: 40px 36px 36px;
}

.login-card .page-title {
  margin: 0 0 8px;
}

.login-card .subtitle {
  margin: 0 0 32px;
  font-family: "Comfortaa", sans-serif;
}

.login-card .alert {
  margin-bottom: 24px;
}

.login-card .login-form {
  margin: 0;
}

.login-card .form-stack {
  gap: 20px;
}

.password-field-wrap {
  display: block;
  width: 100%;
}

.password-field-wrap md-outlined-text-field {
  display: block;
  width: 100%;
}

.password-toggle-btn {
  --md-icon-button-icon-size: 20px;
  --md-icon-button-state-layer-height: 36px;
  --md-icon-button-state-layer-width: 36px;
  color: var(--md-sys-color-on-surface-variant);
}

.password-toggle-btn.is-toggle-hidden {
  visibility: hidden;
  pointer-events: none;
}

.password-toggle-btn .password-toggle-icon {
  display: block;
}

.password-toggle-btn .password-toggle-icon-hide.hidden,
.password-toggle-btn .password-toggle-icon-show.hidden {
  display: none;
}

.login-card .form-actions {
  margin-top: 28px;
  gap: 16px;
}

.login-card .form-actions md-filled-button {
  --md-filled-button-label-text-font: "Rubik", sans-serif;
  --md-filled-button-label-text-weight: 400;
}

.login-card .login-oauth {
  margin-top: 0;
}

.login-card .login-oauth .divider-row {
  margin: 20px 0;
}

.login-card .login-oauth md-outlined-button {
  --md-outlined-button-outline-color: rgba(15, 23, 42, 0.12);
  --md-outlined-button-hover-outline-color: rgba(15, 23, 42, 0.18);
  --md-outlined-button-focus-outline-color: rgba(15, 23, 42, 0.18);
  --md-outlined-button-pressed-outline-color: rgba(15, 23, 42, 0.18);
  --md-outlined-button-label-text-font: "Rubik", sans-serif;
  --md-outlined-button-label-text-weight: 400;
}

.page-title {
  margin: 0 0 4px;
  font-family: var(--font-display), sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.subtitle {
  margin: 0 0 24px;
  font-family: var(--font-body), sans-serif;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.875rem;
  line-height: 1.43;
}

/* ── Form fields ── */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

md-outlined-text-field {
  width: 100%;
  display: block;
  --md-outlined-text-field-container-shape: 10px;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.divider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.8125rem;
}

.divider-row md-divider {
  flex: 1;
}

/* ── Alerts (M3 containers) ── */
.alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.43;
  margin-bottom: 16px;
}

.alert-error {
  background: var(--md-sys-color-error-container);
  color: var(--md-sys-color-on-error-container);
}

.alert-success {
  background: #e8f5e9;
  color: #1b5e20;
}

/* ── Dashboard cards ── */
md-elevated-card.section-card {
  margin-bottom: 20px;
}

.section-card .card-content {
  padding: 20px 24px;
}

.section-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display), sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.empty-state {
  font-family: var(--font-body), sans-serif;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.875rem;
  margin: 0;
}

.business-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.business-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.business-list li:last-child {
  border-bottom: none;
}

.portfolio-header {
  margin-bottom: 24px;
}

.portfolio-view {
  width: 100%;
}

.portfolio-panel {
  position: relative;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  overflow: visible;
}

.portfolio-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  background: rgba(15, 23, 42, 0.02);
  border-radius: 16px 16px 0 0;
}

.portfolio-panel-title {
  margin: 0;
  font-family: var(--font-display), sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--md-sys-color-on-surface);
}

.portfolio-create-btn {
  flex-shrink: 0;
  --md-filled-button-container-height: 40px;
  --md-filled-button-container-shape: 10px;
  --md-filled-button-label-text-font: "Comfortaa", sans-serif;
  --md-filled-button-label-text-size: 0.875rem;
  --md-filled-button-label-text-weight: 600;
  font-family: "Comfortaa", sans-serif;
}

.portfolio-create-icon {
  width: 18px;
  height: 18px;
}

.portfolio-panel-body {
  position: relative;
  min-height: 240px;
  padding: 24px;
  border-radius: 0 0 16px 16px;
  background: #ffffff;
}

.portfolio-panel.is-portfolio-opening .portfolio-empty,
.portfolio-panel.is-portfolio-opening .portfolio-grid,
.portfolio-panel.is-portfolio-opening .portfolio-empty-arrow {
  visibility: hidden;
  pointer-events: none;
}

.portfolio-panel-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  padding: 32px 24px;
  border-radius: 0 0 16px 16px;
  background: #ffffff;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.portfolio-panel-loader .login-loader-ring {
  width: 96px;
  height: 96px;
}

.portfolio-panel-loader .login-loader-icon {
  width: 26px;
  height: 26px;
}

.portfolio-panel-loader .login-loader-text {
  font-size: 0.8125rem;
}

.portfolio-panel-loader.hidden {
  display: none;
}

.portfolio-empty-arrow {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  z-index: 4;
  overflow: visible;
}

.portfolio-empty-arrow.hidden {
  display: none;
}

.portfolio-empty-arrow:not(.is-arrow-enter):not(.hidden) {
  opacity: 0;
}

.portfolio-empty-arrow.is-arrow-enter {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.portfolio-empty-arrow-path {
  opacity: 1;
  vector-effect: non-scaling-stroke;
}

.portfolio-empty-arrow-head {
  opacity: 0;
  stroke-width: 2.75;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.portfolio-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 32px 24px 40px;
  text-align: center;
}

.portfolio-empty.hidden {
  display: none;
}

.portfolio-empty-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 220px);
  margin-bottom: 8px;
}

.portfolio-empty-illustration {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.portfolio-empty-title {
  margin: 0;
  font-family: var(--font-body), sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--md-sys-color-on-surface);
}

.portfolio-empty-text {
  margin: 6px 0 0;
  max-width: 28rem;
  font-family: var(--font-body), sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--md-sys-color-on-surface-variant);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.portfolio-grid.hidden {
  display: none;
}

.portfolio-business-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 168px;
  padding: 18px;
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.portfolio-business-card md-ripple {
  border-radius: inherit;
}

.portfolio-business-card:hover {
  border-color: rgba(9, 115, 209, 0.35);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.portfolio-business-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.portfolio-business-logo-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(9, 115, 209, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portfolio-business-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.portfolio-business-chevron {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--md-sys-color-on-surface-variant);
}

.portfolio-business-chevron svg {
  width: 18px;
  height: 18px;
}

.portfolio-business-name {
  font-family: var(--font-display), sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-business-alerts {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  font-family: var(--font-body), sans-serif;
  font-size: 0.8125rem;
  color: var(--md-sys-color-on-surface-variant);
}

.portfolio-business-alerts-text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portfolio-business-alerts-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--md-sys-color-on-surface-variant);
  opacity: 0.72;
}

.portfolio-business-alerts-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.portfolio-business-id {
  margin-top: auto;
  font-family: var(--font-ui), sans-serif;
  font-size: 0.75rem;
  color: var(--md-sys-color-on-surface-variant);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.create-business-dialog {
  --md-dialog-container-color: #ffffff;
  --md-dialog-headline-font: "Comfortaa", sans-serif;
  max-width: 500px;
  width: min(500px, calc(100vw - 48px));
  margin: auto;
}

.setu-dialog {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  visibility: hidden;
}

.setu-dialog[hidden] {
  display: flex !important;
}

.setu-dialog.is-open,
.setu-dialog.is-closing {
  pointer-events: auto;
  visibility: visible;
}

.setu-dialog-backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: var(--setu-dialog-backdrop);
  opacity: 0;
  cursor: default;
  transition: opacity 300ms cubic-bezier(0.2, 0, 0, 1);
}

.setu-dialog.is-open .setu-dialog-backdrop {
  opacity: 1;
}

.setu-dialog.is-closing .setu-dialog-backdrop {
  opacity: 0;
  transition-duration: 220ms;
  transition-delay: 75ms;
}

.setu-dialog-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100vw - 48px));
  max-height: min(calc(100vh - 48px), 90vh);
  border-radius: var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large));
  background: #ffffff;
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.16),
    0 8px 16px rgba(15, 23, 42, 0.08);
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 300ms cubic-bezier(0.2, 0, 0, 1),
    transform 300ms cubic-bezier(0.2, 0, 0, 1);
}

.setu-dialog.is-open .setu-dialog-panel {
  opacity: 1;
  transform: scale(1);
}

.setu-dialog.is-closing .setu-dialog-panel {
  opacity: 0;
  transform: scale(0.85);
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(0.3, 0, 0.8, 0.15);
}

.setu-dialog-headline {
  flex-shrink: 0;
  padding: 24px 24px 0;
  font-family: var(--font-accent), sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--md-sys-color-on-surface);
}

.setu-dialog-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 24px;
}

.setu-dialog-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px 20px;
}

.setu-dialog-panel.warehouse-dialog {
  width: calc(100vw - 2rem);
  max-width: 560px;
}

.setu-dialog-panel.warehouse-edit-dialog {
  max-width: 640px;
}

.account-settings-dialog-headline {
  font-family: var(--font-accent), sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.account-settings-dialog-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.account-settings-profile-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.account-settings-profile-card md-ripple {
  border-radius: inherit;
}

.account-settings-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f3f4f6;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.account-settings-profile-text {
  min-width: 0;
  flex: 1;
}

.account-settings-name {
  margin: 0;
  font-family: var(--font-accent), sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--md-sys-color-on-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-settings-email {
  margin: 4px 0 0;
  font-family: var(--font-ui), sans-serif;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--md-sys-color-on-surface-variant);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-settings-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-settings-action-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.account-settings-action-card md-ripple {
  border-radius: inherit;
}

.account-settings-action-card:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.35);
  outline-offset: 2px;
}

.account-settings-action-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(9, 115, 209, 0.08);
  color: #0973d1;
  font-size: 1.25rem;
  user-select: none;
  -webkit-user-select: none;
}

.account-settings-action-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.account-settings-action-label {
  font-family: var(--font-ui), sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--md-sys-color-on-surface);
}

.account-settings-action-value {
  font-family: var(--font-ui), sans-serif;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--md-sys-color-on-surface-variant);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-settings-action-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #9ca3af;
  user-select: none;
  -webkit-user-select: none;
}

.account-settings-action-chevron svg {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.account-settings-form {
  min-width: min(100%, 420px);
}

.create-business-dialog-headline {
  font-family: var(--font-accent), sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.create-business-form {
  min-width: min(100%, 420px);
}

.create-business-currency-wrap {
  position: relative;
  width: 100%;
}

.create-business-currency-wrap md-outlined-select.create-business-currency {
  width: 100%;
  display: block;
  --md-outlined-select-text-field-container-shape: 10px;
  --md-outlined-select-text-field-leading-space: 46px;
}

.create-business-currency-wrap md-outlined-select.create-business-currency::part(field) {
  cursor: pointer;
}

.create-business-currency-wrap .currency-field-leading {
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  height: 28px;
  margin-top: auto;
  margin-bottom: auto;
  z-index: 1;
  pointer-events: none;
}

.create-business-currency-wrap .currency-field-leading.currency-icon-badge {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  font-size: 15px;
}

.create-business-currency-wrap .currency-field-leading.currency-icon-badge--compact {
  font-size: 12px;
  letter-spacing: -0.04em;
}

.create-business-currency-wrap .currency-field-leading.currency-icon-badge--aed {
  font-size: 10px;
}

.create-business-form md-outlined-select.create-business-currency::part(menu) {
  --md-menu-container-color: #ffffff;
}

.currency-icon-badge,
md-select-option > [slot="start"].currency-icon-badge {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  border-radius: 50%;
  background: #e8f2fc;
  border: 1px solid #b8d4f0;
  color: #0973d1;
  font-family: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0;
  user-select: none;
}

.currency-icon-badge--compact {
  font-size: 12px;
  letter-spacing: -0.04em;
}

.currency-icon-badge--aed {
  font-size: 10px;
  letter-spacing: 0;
  font-family: system-ui, "Segoe UI", Tahoma, sans-serif;
}

.create-business-form md-select-option {
  --md-menu-item-leading-space: 12px;
  --md-menu-item-trailing-space: 16px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-ui), sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--md-sys-color-on-surface-variant);
}

.native-select {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: 4px;
  background: #ffffff;
  font-family: var(--font-body), sans-serif;
  font-size: 1rem;
  color: var(--md-sys-color-on-surface);
}

.native-select:focus {
  outline: 2px solid rgba(9, 115, 209, 0.35);
  outline-offset: 1px;
}

.app-header-inner {
  position: relative;
}

.app-header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(48vw, 320px);
  pointer-events: none;
}

.app-header-center .app-header-business-badge {
  pointer-events: auto;
}

.app-header-end--spacer {
  min-width: 0;
}

.app-header-business-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  border: 1px solid rgba(9, 115, 209, 0.18);
  background: rgba(9, 115, 209, 0.06);
  text-decoration: none;
  color: inherit;
}

.header-business-badge-btn {
  position: relative;
  margin: 0;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.header-business-badge-btn:hover,
.header-business-badge-btn:focus-visible {
  background: rgba(9, 115, 209, 0.1);
  border-color: rgba(9, 115, 209, 0.28);
}

.header-business-badge-btn:focus-visible {
  outline: 2px solid rgba(9, 115, 209, 0.45);
  outline-offset: 2px;
}

.header-business-dropdown-wrap.is-header-dropdown-open .header-business-badge-btn,
.header-business-dropdown-wrap.is-header-dropdown-closing .header-business-badge-btn,
.header-business-badge-btn.is-header-business-badge-active {
  background: rgba(9, 115, 209, 0.12);
  border-color: rgba(9, 115, 209, 0.32);
}

.header-business-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-left: 2px;
  color: var(--md-sys-color-primary);
  transition: transform 0.2s ease;
}

.header-business-chevron svg {
  width: 16px;
  height: 16px;
  display: block;
}

.header-business-dropdown-wrap.is-header-dropdown-open .header-business-chevron,
.header-business-dropdown-wrap.is-header-dropdown-closing .header-business-chevron {
  transform: rotate(180deg);
}

.header-business-dropdown-wrap {
  max-width: 100%;
}

.header-business-dropdown-wrap .header-dropdown {
  left: 50%;
  right: auto;
  width: min(300px, calc(100vw - 32px));
  transform: translateX(-50%) translateY(8px) scale(0.96);
  transform-origin: top center;
}

.header-business-dropdown-wrap .header-dropdown::before {
  left: 50%;
  right: auto;
  margin-left: -6px;
}

.header-business-dropdown-wrap.is-header-dropdown-open .header-dropdown {
  transform: translateX(-50%) translateY(0) scale(1);
}

.header-dropdown-body.header-business-list {
  padding: 8px;
}

.header-business-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: min(280px, calc(100vh - var(--header-height) - 120px));
  overflow-y: auto;
}

.header-business-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.15s ease;
}

.header-business-option:hover,
.header-business-option:focus-visible {
  background: rgba(9, 115, 209, 0.06);
}

.header-business-option:focus-visible {
  outline: 2px solid rgba(9, 115, 209, 0.35);
  outline-offset: -2px;
}

.header-business-option.is-active {
  background: rgba(9, 115, 209, 0.08);
}

.header-business-option-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(9, 115, 209, 0.08);
  border: 1px solid rgba(9, 115, 209, 0.12);
}

.header-business-option-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.header-business-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.header-business-option-name {
  font-family: var(--font-body), sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-business-option-id {
  font-family: var(--font-ui), sans-serif;
  font-size: 0.6875rem;
  color: var(--md-sys-color-on-surface-variant);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-business-option-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--md-sys-color-primary);
  opacity: 0;
}

.header-business-option-check svg {
  width: 18px;
  height: 18px;
  display: block;
}

.header-business-option.is-active .header-business-option-check {
  opacity: 1;
}

.header-dropdown-footer {
  padding: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
}

.header-business-all-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: var(--font-body), sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--md-sys-color-primary);
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.15s ease;
}

.header-business-all-btn:hover,
.header-business-all-btn:focus-visible {
  background: rgba(9, 115, 209, 0.06);
}

.header-business-all-btn:focus-visible {
  outline: 2px solid rgba(9, 115, 209, 0.35);
  outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
  .header-business-dropdown-wrap.is-header-dropdown-open .header-dropdown {
    transform: translateX(-50%);
  }

  .header-business-chevron {
    transition: none;
  }
}

.app-header-business-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(9, 115, 209, 0.1);
  border: 1px solid rgba(9, 115, 209, 0.14);
}

.app-header-business-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
}

.app-header-business-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.2;
}

.app-header-business-name {
  font-family: var(--font-body), sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-header-business-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body), sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #15803d;
  white-space: nowrap;
}

.app-header-business-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

md-elevated-card.workspace-module-card {
  --md-elevated-card-container-color: #ffffff;
  --md-elevated-card-container-shape: 16px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
}

.workspace-module-card .card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #ffffff;
  border-radius: inherit;
}

.workspace-module-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.workspace-module-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
  background: rgba(9, 115, 209, 0.08);
  padding: 12px;
}

.workspace-module-kicker {
  margin: 0 0 4px;
  font-family: var(--font-body), sans-serif;
  font-size: 0.8125rem;
  color: var(--md-sys-color-on-surface-variant);
}

.workspace-module-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workspace-warehouse-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}

.workspace-warehouse-note {
  margin: 0;
  font-family: var(--font-body), sans-serif;
  font-size: 0.8125rem;
  color: var(--md-sys-color-on-surface-variant);
}

@media (max-width: 768px) {
  .app-header-center {
    display: none;
  }

  .portfolio-panel-header {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
  }

  .portfolio-create-btn {
    width: 100%;
  }

  .portfolio-empty-arrow {
    display: none;
  }

  .portfolio-panel-body {
    padding: 16px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Loading ── */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.875rem;
}

.loading md-circular-progress {
  --md-circular-progress-size: 40px;
}

@media (max-width: 768px) {
  :root {
    --drawer-width: 240px;
  }

  .dashboard-main .page-content,
  .page-content {
    padding: 24px 16px 40px;
  }

  .app-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 10px;
    padding: 8px 12px;
    min-height: unset;
  }

  .footer-ssl,
  .footer-made-in,
  .company-badge {
    justify-self: unset;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .app-header-inner {
    padding: 0 12px 0 16px;
  }

  .app-header-end {
    gap: 8px;
  }

  .app-footer-inner {
    padding: 8px 12px;
  }

  .company-badge-text {
    font-size: 0.625rem;
  }

  .company-badge-logo {
    height: 14px;
  }

  .footer-subtext {
    font-size: 0.6875rem;
  }

  .footer-ssl-text {
    font-size: calc(0.6875rem + 1px);
  }

  .footer-made-in {
    font-size: calc(0.6875rem + 1px);
  }

  .card-content {
    padding: 24px;
  }
}

@media (max-width: 569px) {
  .login-page {
    --header-height: 52px;
  }

  .login-page .app-header-logo img {
    height: 22px;
  }

  .login-page .app-header-inner {
    padding: 0 12px 0 14px;
  }

  .login-page .app-footer-inner {
    padding: 6px 10px;
    gap: 4px 8px;
    min-height: unset;
  }

  .login-page .footer-subtext,
  .login-page .footer-ssl-text,
  .login-page .footer-made-in {
    font-size: 0.625rem;
  }

  .login-page .company-badge-text {
    font-size: 0.5625rem;
  }

  .login-page .company-badge-logo {
    height: 12px;
  }

  .login-panel-inner {
    max-width: none;
    width: 100%;
    gap: 12px;
    padding: 10px 28px 14px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .login-animation {
    max-width: 150px;
    margin: 12px 0 20px;
  }

  .login-animation dotlottie-player {
    width: 150px;
    max-width: 150px;
    height: 150px;
  }

  .login-card-clay,
  md-elevated-card.login-card {
    border-radius: 14px;
    box-shadow:
      0 4px 16px rgba(15, 23, 42, 0.06),
      0 1px 6px rgba(15, 23, 42, 0.04),
      inset 0 1px 3px rgba(255, 255, 255, 0.9),
      inset 0 -1px 4px rgba(15, 23, 42, 0.028);
  }

  .login-card .card-content {
    padding: 20px 16px 18px;
  }

  .login-card .page-title {
    font-size: 1.0625rem;
    margin-bottom: 4px;
    letter-spacing: -0.015em;
  }

  .login-card .subtitle {
    font-size: 0.8125rem;
    margin-bottom: 20px;
    line-height: 1.35;
  }

  .login-card .alert {
    margin-bottom: 16px;
    font-size: 0.8125rem;
  }

  .login-card .form-stack {
    gap: 12px;
  }

  .login-card .form-actions {
    margin-top: 18px;
    gap: 10px;
  }

  .login-card .login-oauth .divider-row {
    margin: 14px 0;
    font-size: 0.75rem;
    gap: 10px;
  }

  .login-page md-outlined-text-field {
    --md-outlined-text-field-container-height: 48px;
    --md-outlined-text-field-label-text-size: 0.8125rem;
    --md-outlined-text-field-input-text-size: 0.9375rem;
    --md-outlined-text-field-container-shape: 8px;
  }

  .login-card .form-actions md-filled-button {
    --md-filled-button-container-height: 44px;
    --md-filled-button-label-text-size: 0.875rem;
  }

  .login-card .login-oauth md-outlined-button {
    --md-outlined-button-container-height: 44px;
    --md-outlined-button-label-text-size: 0.875rem;
  }

  .login-page .password-toggle-btn {
    --md-icon-button-icon-size: 18px;
    --md-icon-button-state-layer-height: 32px;
    --md-icon-button-state-layer-width: 32px;
  }

  .login-loader,
  .dashboard-loader {
    gap: 16px;
    padding: 20px;
  }

  .login-loader-ring {
    width: 92px;
    height: 92px;
  }

  .login-loader-track,
  .login-loader-arc {
    stroke-width: 6;
  }

  .login-loader-icon {
    width: 24px;
    height: 24px;
  }

  .login-loader-text {
    font-size: 0.8125rem;
  }
}

@media (max-height: 819px) {
  .login-animation {
    max-width: 120px;
    margin-top: 10px;
    margin-bottom: 14px;
  }

  .login-animation dotlottie-player {
    width: 120px;
    max-width: 120px;
    height: 120px;
  }
}

/* Warehouse module */
.warehouse-page {
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
}

.warehouse-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.warehouse-page-head .subtitle {
  margin-bottom: 0;
}

#warehouse-invite-banners-host:empty {
  display: none;
}

.warehouse-list-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.warehouse-list-tabs {
  display: block;
  width: 100%;
  padding-inline: 1.25rem;
  box-sizing: border-box;
  --md-divider-color: rgba(15, 23, 42, 0.08);
  --md-primary-tab-container-color: transparent;
  --md-primary-tab-container-elevation: 0;
  --md-primary-tab-label-text-font: var(--font-body), sans-serif;
  --md-primary-tab-label-text-size: 0.875rem;
  --md-primary-tab-label-text-weight: 500;
  --md-primary-tab-active-label-text-color: #0973d1;
  --md-primary-tab-active-indicator-color: #0973d1;
  --md-primary-tab-inactive-label-text-color: #5f6368;
  --md-primary-tab-hover-label-text-color: #1a1a1a;
  --md-primary-tab-hover-state-layer-color: #0973d1;
  --md-primary-tab-pressed-state-layer-color: #0973d1;
  --md-primary-tab-focus-state-layer-color: #0973d1;
}

.warehouse-list-tabs md-primary-tab {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  --md-primary-tab-container-color: transparent;
}

.warehouse-list-tabs .warehouse-tab-label,
.warehouse-edit-tabs .warehouse-tab-label {
  display: inline-block;
  padding-inline: 10px;
}

.warehouse-list-tabs::part(divider),
.warehouse-edit-tabs::part(divider) {
  --md-divider-color: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.08);
}

.warehouse-list-tab-panels {
  display: block;
}

.warehouse-list-tab-panel {
  display: none;
}

.warehouse-list-tab-panel.is-active {
  display: block;
}

.warehouse-card-list {
  display: flex;
  flex-direction: column;
}

.warehouse-card {
  background: #ffffff;
  border-bottom: 1px solid var(--md-sys-color-outline-variant, #e8eaed);
  transition: background 0.15s ease;
}

.warehouse-card:last-child {
  border-bottom: none;
}

.warehouse-card:hover {
  background: #fafbfc;
}

.warehouse-card:has(.warehouse-card-actions :hover),
.warehouse-card:has(.warehouse-card-actions :focus-visible) {
  background: #ffffff;
}

.warehouse-empty {
  margin: 0;
  padding: 1.5rem 1.25rem;
  font-family: var(--font-body), sans-serif;
  font-size: 0.875rem;
  color: var(--md-sys-color-on-surface-variant, #5f6368);
}

.warehouse-card-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.warehouse-card-logo-wrap {
  flex-shrink: 0;
}

.warehouse-card-logo-wrap .warehouse-logo {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 12px;
}

.warehouse-card-main {
  flex: 1;
  min-width: 0;
}

.warehouse-card-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
}

.warehouse-card-name {
  margin: 0;
  font-family: var(--font-display), sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--md-sys-color-on-surface, #1a1a1a);
}

.warehouse-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.warehouse-card-id {
  font-family: var(--font-body), sans-serif;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--md-sys-color-on-surface-variant, #5f6368);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.warehouse-card-badge {
  flex-shrink: 0;
  font-family: var(--font-body), sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #e8f0fe;
  color: #1a56db;
}

.warehouse-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
  position: relative;
  z-index: 1;
}

.warehouse-card-actions md-outlined-button.warehouse-card-view-btn,
.warehouse-card-actions md-outlined-button.warehouse-card-edit-btn {
  --md-outlined-button-container-shape: 999px;
  --md-outlined-button-container-height: 36px;
  --md-outlined-button-label-text-size: 0.875rem;
  --md-outlined-button-label-text-weight: 500;
  --md-outlined-button-outline-color: var(--md-sys-color-outline-variant, #c8d1dc);
  --md-outlined-button-outline-width: 1px;
  --md-outlined-button-label-text-color: #0973d1;
  --md-outlined-button-container-color: #f8fafc;
  --md-outlined-button-hover-state-layer-color: #0973d1;
  --md-outlined-button-pressed-state-layer-color: #0973d1;
  --md-outlined-button-focus-state-layer-color: #0973d1;
  --md-outlined-button-hover-state-layer-opacity: 0.08;
  --md-outlined-button-pressed-state-layer-opacity: 0.12;
  --md-outlined-button-focus-state-layer-opacity: 0.12;
  flex-shrink: 0;
}

.warehouse-card-actions md-outlined-button.warehouse-card-edit-btn {
  --md-outlined-button-container-color: #ffffff;
}

.warehouse-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
}

.warehouse-logo img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.warehouse-logo--uploaded img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.warehouse-logo-preset--blue { background: #3b82f6; }
.warehouse-logo-preset--green { background: #22c55e; }
.warehouse-logo-preset--red { background: #ef4444; }
.warehouse-logo-preset--purple { background: #a855f7; }
.warehouse-logo-preset--orange { background: #f97316; }
.warehouse-logo-preset--gray { background: #6b7280; }

.warehouse-logo-preset--blue img,
.warehouse-logo-preset--green img,
.warehouse-logo-preset--red img,
.warehouse-logo-preset--purple img,
.warehouse-logo-preset--orange img,
.warehouse-logo-preset--gray img {
  filter: brightness(0) invert(1);
}

.warehouse-invite-banner {
  border: 1px solid #c7d7fe;
  background: #f5f8ff;
}

.warehouse-invite-banners {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.warehouse-invite-banner-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.setu-sub-dialog-overlay[popover] {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: none;
  background: var(--setu-dialog-backdrop);
  opacity: 1;
}

.warehouse-dialog {
  --md-dialog-container-color: #ffffff;
  max-width: 560px;
  width: calc(100vw - 2rem);
}

.warehouse-sub-dialog {
  --md-dialog-scrim-color: transparent;
}

.warehouse-edit-dialog {
  max-width: 640px;
}

.warehouse-edit-body {
  min-height: 12rem;
}

.warehouse-edit-loader {
  min-height: 12rem;
}

.warehouse-edit-content.hidden {
  display: none;
}

.warehouse-edit-tabs {
  width: 100%;
  margin-bottom: 1rem;
  --md-divider-color: rgba(15, 23, 42, 0.08);
  --md-primary-tab-container-color: transparent;
  --md-primary-tab-container-elevation: 0;
  --md-primary-tab-label-text-font: var(--font-body), sans-serif;
  --md-primary-tab-label-text-size: 0.875rem;
  --md-primary-tab-label-text-weight: 500;
  --md-primary-tab-active-label-text-color: #0973d1;
  --md-primary-tab-active-indicator-color: #0973d1;
  --md-primary-tab-inactive-label-text-color: #5f6368;
  --md-primary-tab-hover-label-text-color: #1a1a1a;
  --md-primary-tab-hover-state-layer-color: #0973d1;
  --md-primary-tab-pressed-state-layer-color: #0973d1;
  --md-primary-tab-focus-state-layer-color: #0973d1;
}

.warehouse-edit-tabs md-primary-tab {
  --md-primary-tab-container-color: transparent;
}

.warehouse-tab-panel {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
}

.warehouse-tab-panel.is-active {
  display: flex;
}

.warehouse-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.warehouse-section-head-text {
  flex: 1;
  min-width: 0;
}

.warehouse-section-title {
  margin: 0;
  font-family: var(--font-display), sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--md-sys-color-on-surface, #1a1a1a);
}

.warehouse-section-subtitle {
  margin: 0.25rem 0 0;
  font-family: var(--font-body), sans-serif;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--md-sys-color-on-surface-variant, #5f6368);
}

.warehouse-section-add-btn {
  flex-shrink: 0;
  --md-icon-button-icon-size: 24px;
  color: #0973d1;
}

.warehouse-section-add-btn .warehouse-section-add-icon {
  font-size: 22px;
  line-height: 1;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.warehouse-logo-edit-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.warehouse-logo-library {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.warehouse-logo-preset-btn {
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
}

.warehouse-logo-preset-btn img {
  width: 1.5rem;
  height: 1.5rem;
  filter: brightness(0) invert(1);
}

.warehouse-logo-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.75rem 1rem;
  border: 2px dashed var(--md-sys-color-outline-variant);
  border-radius: 12px;
  background: var(--md-sys-color-surface-container-low);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  text-align: center;
}

.warehouse-logo-dropzone:hover,
.warehouse-logo-dropzone.is-dragover {
  border-color: var(--md-sys-color-primary);
  background: var(--md-sys-color-primary-container);
}

.warehouse-logo-dropzone.has-file {
  border-style: solid;
  border-color: var(--md-sys-color-primary);
}

.warehouse-logo-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.warehouse-logo-dropzone-icon {
  font-size: 2rem;
  color: var(--md-sys-color-primary);
  line-height: 1;
}

.warehouse-logo-dropzone-text {
  font-family: var(--font-ui), sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
}

.warehouse-logo-dropzone-hint {
  font-size: 0.75rem;
  color: var(--md-sys-color-on-surface-variant);
}

.warehouse-logo-dropzone-filename {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--md-sys-color-primary);
  margin-top: 0.25rem;
}

.warehouse-logo-upload-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.warehouse-stack-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.warehouse-stack-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.875rem;
}

.warehouse-stack-tag {
  font-size: 0.6875rem;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: #f3f4f6;
  margin-left: 0.35rem;
}

.warehouse-employee-item {
  align-items: center;
  gap: 0.75rem;
}

.warehouse-employee-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.warehouse-employee-photo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
  user-select: none;
}

.warehouse-employee-info {
  flex: 1;
  min-width: 0;
}

.warehouse-employee-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.warehouse-employee-name {
  font-family: var(--font-display), sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--md-sys-color-on-surface, #1a1a1a);
}

.warehouse-employee-owner-tag {
  background: #e8f0fe;
  color: #1a56db;
  user-select: none;
}

.warehouse-employee-meta {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #5f6368;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warehouse-employee-perms {
  margin: 0.2rem 0 0;
  font-family: var(--font-body), sans-serif;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #80868b;
  user-select: none;
}

.warehouse-employee-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
  margin-left: auto;
}

.warehouse-employee-edit-btn,
.warehouse-employee-remove-btn {
  --md-icon-button-icon-size: 20px;
  --md-icon-button-state-layer-height: 36px;
  --md-icon-button-state-layer-width: 36px;
}

.warehouse-employee-edit-btn {
  color: #0973d1;
}

.warehouse-employee-remove-btn {
  color: #b3261e;
}

.warehouse-employee-action-icon {
  font-size: 20px;
  line-height: 1;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.warehouse-invite-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.warehouse-invite-row md-outlined-text-field {
  flex: 1;
  min-width: 12rem;
}

.warehouse-perm-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.warehouse-perm-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
}

.warehouse-settings-section {
  padding: 1rem;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff5f5;
}

.warehouse-settings-title {
  margin: 0;
  font-family: var(--font-display), sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #991b1b;
}

.warehouse-settings-copy {
  margin: 0.5rem 0 0.85rem;
  font-family: var(--font-body), sans-serif;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #7f1d1d;
}

.warehouse-delete-btn {
  --md-sys-color-primary: #b3261e;
}

.warehouse-settings-section--self-unlink {
  margin-top: 0.75rem;
}

.warehouse-self-unlink-btn {
  --md-sys-color-primary: #b3261e;
}

.warehouse-confirm-dialog {
  max-width: 420px;
}

.warehouse-confirm-message {
  margin: 0;
  font-family: var(--font-body), sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--md-sys-color-on-surface-variant, #5f6368);
}

.warehouse-delete-confirm-btn {
  --md-filled-button-container-color: #b3261e;
  --md-filled-button-label-text-color: #ffffff;
  --md-filled-button-hover-state-layer-color: #ffffff;
  --md-filled-button-pressed-state-layer-color: #ffffff;
  --md-filled-button-focus-state-layer-color: #ffffff;
}

.header-notification-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  font: inherit;
  cursor: pointer;
  border-bottom: 1px solid #eef0f2;
}

.header-notification-unread-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0973d1;
  border: 2px solid #ffffff;
  pointer-events: none;
  z-index: 1;
}

.header-notification-item.is-unread {
  background: #f0f6ff;
}

.header-notification-item:hover {
  background: #f8f9fa;
}

.header-notification-message {
  font-size: 0.875rem;
  line-height: 1.4;
}
