@font-face {
  font-display: swap;
  font-family: Salesforce Sans;
  font-weight: 400;
  src: url(https://a.sfdcstatic.com/shared/fonts/salesforce-sans/SalesforceSans-Regular.woff2) format('woff2'),
    url(https://a.sfdcstatic.com/shared/fonts/salesforce-sans/SalesforceSans-Regular.woff) format('woff');
}

@font-face {
  font-display: swap;
  font-family: Salesforce Sans;
  font-style: italic;
  font-weight: 400;
  src: url(https://a.sfdcstatic.com/shared/fonts/salesforce-sans/SalesforceSans-Italic.woff2) format('woff2'),
    url(https://a.sfdcstatic.com/shared/fonts/salesforce-sans/SalesforceSans-Italic.woff) format('woff');
}

@font-face {
  font-display: swap;
  font-family: Salesforce Sans;
  font-weight: 700;
  src: url(https://a.sfdcstatic.com/shared/fonts/salesforce-sans/SalesforceSans-Bold.woff2) format('woff2'),
    url(https://a.sfdcstatic.com/shared/fonts/salesforce-sans/SalesforceSans-Bold.woff) format('woff');
}

@font-face {
  font-display: swap;
  font-family: Salesforce Icons;
  font-weight: 700;
  src: url(https://a.sfdcstatic.com/shared/fonts/salesforce-icons/salesforce-icons.woff2) format('woff2'),
    url(https://a.sfdcstatic.com/shared/fonts/salesforce-icons/salesforce-icons.woff) format('woff');
}

@font-face {
  font-display: swap;
  font-family: ITC Avant Garde;
  font-weight: 500;
  src: url(https://a.sfdcstatic.com/shared/fonts/avant-garde/AvantGardeForSalesforceW05-Dm.woff2) format('woff2'),
    url(https://a.sfdcstatic.com/shared/fonts/avant-garde/AvantGardeForSalesforceW05-Dm.woff) format('woff');
  unicode-range: u+0000-007f, u+0080-00ff, u+0100-017f, u+0180-024f, u+1e??,
    u+2c60-2c7f;
}

:root {
  --dac-g-font-display: "ITC Avant Garde", system-ui, -apple-system,
    blinkmacsystemfont, "Segoe UI", roboto, "Helvetica Neue", arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --dac-g-font-sans: "Salesforce Sans", system-ui, -apple-system,
    blinkmacsystemfont, "Segoe UI", roboto, "Helvetica Neue", arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

  --dac-nav-h: 64px;
  --dac-nav-h--desktop: 96px;
}

/* css reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  font: inherit;
  /* Get rid of all font sizes and heights */
}

html {
  color-scheme: light;
  /* dark; Default light*/
  hanging-punctuation: first last;
  /* Not supported in Chrome */
  min-block-size: 100vh;
  background-color: var(--slds-g-color-palette-neutral-100);
}

body {
  font-family: var(--dac-g-font-sans);
}

/* Media responsive */
img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

p {
  max-width: 75ch;
  text-wrap: pretty;
  /* Prevents orphans on lines */
}

@media (prefers-reduced-motion: no-preference) {
  :has(:target) {
    scroll-behavior: smooth;
    scroll-padding-top: 3rem;
  }
}

.container {
  margin: 0 auto;
  padding-inline: 24px;
  inline-size: 100%;
}

@media screen and (min-width: 1280px) {
  .container {
    padding-inline: 48px;
    max-inline-size: 1280px;
  }
}

.navbar {
  position: fixed;
  inset-inline-start: 0;
  inset-block-start: 0;
  z-index: 12;
  inline-size: 100%;
  background-color: var(--slds-g-color-palette-neutral-100);
}

.navbar__nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;

  block-size: var(--dac-nav-h);
}

@media screen and (min-width: 1280px) {
  .navbar__nav {
    block-size: var(--dac-nav-h--desktop);
  }
}

@keyframes rotate-squeeze-pause {
  0% {
    transform: rotate(0deg) scale(1);
  }

  30% {
    transform: rotate(360deg) scale(1);
  }

  50% {
    transform: rotate(360deg) scale(0.9, 1.1);
  }

  70% {
    transform: rotate(360deg) scale(1);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

.navbar__logo {
  inline-size: 48px;
  block-size: auto;
  animation: rotate-squeeze-pause 6s ease-in-out infinite;
}

.navbar__product {
  font-family: var(--dac-g-font-display);
  flex: 1 1 auto;
}

/* Scenario picker hosted in the fixed header (Ticket 017): uses the empty right
   side of the bar so the panel below can start with the controls, not a title. */
.navbar__scenario {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-inline-size: 0;
}

.navbar__scenario-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #706e6b;
  white-space: nowrap;
}

.navbar__scenario-select {
  inline-size: auto;
  max-inline-size: 320px;
  min-inline-size: 180px;
}

.navbar__scenario .config-status {
  max-inline-size: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
}

.body {
  position: relative;
  inline-size: 100%;
  margin-block-start: var(--dac-nav-h);
  padding-block: 24px 48px;
  background-color: var(--slds-g-color-brand-base-95);
  min-block-size: calc(100vh - var(--dac-nav-h));
}

@media screen and (min-width: 1280px) {
  .body {
    margin-block-start: var(--dac-nav-h--desktop);
    min-block-size: calc(100vh - var(--dac-nav-h--desktop));
  }
}

.app-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-list__item {
  background-color: var(--slds-g-color-palette-neutral-100);
  border-radius: 12px;
  padding: 16px;
}

.app-list__item-details {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.app-list__item-link {
  flex: 1 1 auto;
}

.app-list__item-img {
  inline-size: 48px;
  block-size: auto;
  border-radius: 8px;
}

.app-list__item-btns {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.app-list__item--hidden {
  display: none;
}

.app-list__item[show-qr='false'] .app-list__item-qrcode-link {
  display: none;
}

.app-list__item[show-qr='true'] .app-list__item-qrcode-link {
  display: block;
}

.app-list__item-qrcode {
  inline-size: 120px;
  block-size: auto;
  margin-block-start: 16px;
  margin-inline: auto;
}

.app-list__item:hover {
  background-color: var(--slds-g-color-brand-base-90);
}

.app-list__item a:hover {
  text-decoration: none;
}

.login-form {
  display: flex;
  flex-direction: column;
  background-color: var(--slds-g-color-palette-neutral-100);
  padding: 16px;
  gap: 16px;
  border-radius: 8px;
  max-inline-size: 320px;
  margin: 0 auto;
  border: 1px solid var(--slds-g-color-neutral-base-80);
}

.login-form label {
  display: flex;
  flex-direction: column;
}

.login-form input {
  font-size: 16px;
  /* prevent zooming in on ios */
}

.login-form__error {
  color: var(--slds-g-color-error-base-40);
}

.search {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-block-end: 32px;
  align-items: flex-end;
}

.search__title {
  flex: 1 1 100%;
  margin-block-end: 8px;
  text-align: center;
}

.search input,
.search button {
  block-size: 48px;
}

.search input {
  min-inline-size: 260px;
  max-inline-size: 320px;
  font-size: 16px;
}

.page-404-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  block-size: calc(100vh - var(--dac-nav-h) - var(--dac-nav-h));
}

.page-404-wrapper h2 {
  margin-block-end: 24px;
}

.page-404-wrapper p:last-child {
  margin-block-start: 24px;
}

@media screen and (min-width: 1280px) {
  .page-404-wrapper {
    block-size: calc(100vh - var(--dac-nav-h--desktop) - var(--dac-nav-h--desktop));
  }
}