* {
  box-sizing: border-box;
}

@font-face {
  font-display: block;
  font-family: "fontello-amg";
  font-style: normal;
  font-weight: 400;
  src: url("../assets/fontello-amg.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --shell-header-bg: var(--amg-color-white);
  --shell-footer-bg: var(--amg-color-white);
  --shell-menu-bg: var(--amg-color-white);
  --shell-control-bg: var(--amg-color-white);
  --shell-control-hover: var(--amg-color-surface);
  --shell-test-alert-bg: #b00020;
  --shell-test-alert-fg: #ffffff;
  --shell-shadow: 0 16px 30px rgba(34, 31, 31, 0.14);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --amg-color-surface: var(--amg-color-dark-surface);
  --amg-color-white: var(--amg-color-dark-panel);
  --amg-color-text-primary: var(--amg-color-dark-text-primary);
  --amg-color-text-secondary: var(--amg-color-dark-text-secondary);
  --amg-color-border: var(--amg-color-dark-border);
  --shell-header-bg: var(--amg-color-dark-header);
  --shell-footer-bg: var(--amg-color-dark-panel);
  --shell-menu-bg: var(--amg-color-dark-panel);
  --shell-control-bg: #221F1F;
  --shell-control-hover: rgba(255, 255, 255, 0.08);
  --shell-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
}

body {
  background: var(--amg-color-surface);
  color: var(--amg-color-text-primary);
  font-family: var(--amg-font-family);
  margin: 0;
  min-height: 100vh;
  padding: 72px 0 44px;
}

button,
input,
select {
  font: inherit;
}

button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--amg-color-accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

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

.app-header,
.app-footer {
  align-items: center;
  border-color: var(--amg-color-border);
  display: flex;
  left: 0;
  position: fixed;
  right: 0;
  z-index: 10;
}

.app-header {
  background: var(--shell-header-bg);
  border-bottom: 1px solid var(--amg-color-border);
  gap: 24px;
  height: 72px;
  padding: 0 24px;
  top: 0;
}

.brand-link {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 132px;
}

.brand-logo {
  display: block;
  height: 42px;
  width: auto;
}

.main-navigation {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
}

.main-nav-link {
  align-items: center;
  border-bottom: 3px solid transparent;
  color: var(--amg-color-text-primary);
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  min-height: 72px;
  padding: 0 4px;
  text-decoration: none;
}

.main-nav-link.is-active {
  border-bottom-color: var(--amg-color-accent);
  color: var(--amg-color-text-primary);
}

.nav-icon,
.control-icon,
.button-icon,
.module-icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.header-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.date-time {
  color: var(--amg-color-text-secondary);
  font-size: 0.9rem;
  min-width: 118px;
  text-align: right;
}

.user-menu {
  position: relative;
}

.option-icon {
  align-items: center;
  display: inline-flex;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.amg-button {
  align-items: center;
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: cover;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  line-height: 1.7em;
  min-height: 38px;
  padding: 0.3em 1.1em;
  text-decoration: none;
  transition: all 200ms ease;
}

.amg-button-primary {
  background: var(--amg-color-primary);
  border-color: var(--amg-color-primary);
  color: #FFFFFF;
}

.amg-button-primary:hover,
.amg-button-primary:focus-visible {
  background: var(--amg-color-primary-dark);
  border-color: var(--amg-color-primary-dark);
}

.amg-button-secondary {
  background: var(--shell-control-bg);
  border-color: var(--amg-color-border);
  color: var(--amg-color-primary);
}

.amg-button-secondary:hover,
.amg-button-secondary:focus-visible {
  background: var(--shell-control-hover);
  border-color: var(--amg-color-primary);
}

.amg-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.button-icon svg,
.nav-icon svg,
.control-icon svg {
  display: block;
  height: 18px;
  width: 18px;
}

.button-spinner {
  animation: spin 800ms linear infinite;
  border: 2px solid currentColor;
  border-right-color: transparent;
  display: inline-block;
  height: 14px;
  width: 14px;
}

.user-button {
  white-space: nowrap;
}

.user-menu-panel {
  background: var(--shell-menu-bg);
  border: 2px solid var(--amg-color-primary);
  border-radius: 16px;
  box-shadow: 0 18px 34px rgba(0, 99, 170, 0.18);
  display: grid;
  gap: 8px;
  min-width: 280px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: 48px;
}

.menu-action {
  justify-content: flex-start;
  padding-right: 22px;
  padding-left: 22px;
  width: 100%;
}

.menu-preferences {
  border-top: 1px solid var(--amg-color-border);
  display: grid;
  gap: 6px;
  padding-top: 8px;
}

.menu-button-grid {
  display: grid;
  gap: 4px;
}

.language-button-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-button-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preference-action {
  align-items: center;
  background: var(--shell-control-bg);
  color: var(--amg-color-text-primary);
  flex-direction: column;
  font-size: 0.66rem;
  gap: 4px;
  justify-content: center;
  line-height: 1.15;
  min-height: 58px;
  padding: 7px 4px;
  text-align: center;
}

.preference-action:hover,
.preference-action:focus-visible,
.preference-action[aria-checked="true"] {
  background: var(--shell-control-hover);
  border-color: var(--amg-color-primary);
  color: var(--amg-color-primary);
}

.flag-icon {
  border: 1px solid rgba(34, 31, 31, 0.16);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(34, 31, 31, 0.12);
  display: block;
  height: 18px;
  overflow: hidden;
  position: relative;
  width: 28px;
}

.flag-us {
  background: repeating-linear-gradient(
    to bottom,
    #b22234 0,
    #b22234 7.69%,
    #ffffff 7.69%,
    #ffffff 15.38%
  );
}

.flag-us::before {
  background: #3c3b6e;
  content: "";
  height: 54%;
  left: 0;
  position: absolute;
  top: 0;
  width: 46%;
}

.flag-us::after {
  color: rgba(255, 255, 255, 0.9);
  content: "\2022\2022\2022";
  font-size: 4px;
  left: 2px;
  letter-spacing: 1px;
  line-height: 1;
  position: absolute;
  top: 2px;
}

.flag-br {
  background: #009b3a;
}

.flag-br::before {
  background: #ffdf00;
  clip-path: polygon(50% 8%, 94% 50%, 50% 92%, 6% 50%);
  content: "";
  inset: 3px 4px;
  position: absolute;
}

.flag-br::after {
  background: #002776;
  border-radius: 50%;
  content: "";
  height: 7px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
}

.flag-es {
  background: linear-gradient(
    to bottom,
    #aa151b 0,
    #aa151b 25%,
    #f1bf00 25%,
    #f1bf00 75%,
    #aa151b 75%,
    #aa151b 100%
  );
}

.preference-action .option-icon {
  color: var(--amg-color-primary);
}

.preference-action .option-icon svg {
  height: 20px;
  width: 20px;
}

.local-profiles-panel {
  border-top: 1px solid var(--amg-color-border);
  display: grid;
  gap: 6px;
  padding-top: 8px;
}

.menu-section-label {
  color: var(--amg-color-text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 0 4px;
  text-transform: uppercase;
}

.local-profiles-list {
  display: grid;
  gap: 4px;
}

.grid-search {
  background: var(--shell-control-bg);
  border: 1px solid var(--amg-color-border);
  color: var(--amg-color-text-primary);
  min-height: 42px;
  padding: 0 12px;
  width: 100%;
}

.data-grid {
  border-collapse: collapse;
  margin-top: 12px;
  width: 100%;
}

.data-grid th,
.data-grid td {
  border-bottom: 1px solid var(--amg-color-border);
  padding: 10px;
  text-align: left;
}

.data-grid th button {
  background: transparent;
  border: 0;
  color: var(--amg-color-primary);
  cursor: pointer;
  font-weight: 700;
  padding: 0;
}

.app-main {
  min-height: calc(100vh - 116px);
  padding: 48px 24px;
}

.brand-introduction {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(33, 67, 150, 0.94) 0%, rgba(34, 115, 186, 0.88) 45%, rgba(34, 115, 186, 0.62) 100%),
    url("https://brand.amg-nv.com/wp-content/uploads/2023/07/AMG-placeholder.jpg");
  background-position: center;
  background-size: cover;
  color: #FFFFFF;
  display: flex;
  margin: -48px -24px 0;
  min-height: calc(100vh - 116px);
  padding: 64px 24px;
}

.brand-introduction-row {
  display: grid;
  grid-template-columns: 3fr 2fr;
  margin: 0 auto;
  max-width: 1120px;
  width: 80%;
}

.brand-introduction-content {
  align-content: center;
  display: grid;
  justify-items: start;
}

.brand-introduction-logo {
  display: block;
  filter: brightness(0) invert(1);
  height: 79px;
  margin-bottom: 28px;
  width: 161px;
}

.brand-introduction h1 {
  color: #FFFFFF;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 16px;
}

.brand-introduction p {
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

.module-home {
  margin: 0 auto;
  max-width: 1120px;
  text-align: center;
}

.module-home h1 {
  font-size: 2rem;
  margin: 0;
}

.home-subtitle,
.empty-state {
  color: var(--amg-color-text-secondary);
}

.module-grid {
  display: flex;
  flex-wrap: wrap;
  column-gap: 5.5%;
  justify-content: center;
  margin: 32px auto 0;
  max-width: 1080px;
  row-gap: 25px;
  width: 80%;
}

.module-link {
  background: transparent;
  border: 0;
  color: #FFFFFF;
  cursor: pointer;
  display: block;
  font-family: var(--amg-font-family);
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.2em;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: center;
  text-transform: uppercase;
  width: 47.25%;
}

.module-link:hover,
.module-link:focus-visible {
  outline: none;
}

.et_pb_text_50.et_pb_text {
  color: #ffffff !important;
}

.et_pb_text_50 {
  font-family: "Figtree", Helvetica, Arial, Lucida, sans-serif;
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.5em;
  background-image: url(https://brand.amg-nv.com/wp-content/uploads/2023/07/AMG-placeholder.jpg);
  background-size: cover;
  background-position: 50%;
  background-repeat: no-repeat;
  height: 180px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.page-link .et_pb_text_inner{width:100%;text-align:center;padding:10px;background-size:contain;background-repeat:repeat;background-image:url(https://brand.amg-nv.com/wp-content/uploads/2023/07/blue-glass.png);display:flex;align-items:center;justify-content:center;transition:all .3s ease-in-out;height:65px}
.page-link:hover .et_pb_text_inner,.page-link-hover .et_pb_text_inner{padding:15px;height:100%}
.page-link .et_pb_text_inner:after{content:"\e802"!important;font-family:"fontello-amg"!important;margin-left:0.3em}
.page-link .et_pb_text_inner p{color:currentColor;margin:0;padding:0}
.module-link .et_pb_text_inner{position:relative;z-index:2}
.module-link[data-has-icon="true"]{background-image:none;background-color:#cfd0d4}
.module-link[data-visual-variant="loading-schedule-color"]{background-color:#d8f1ff;background-image:url("/assets/agendamento-carregamento.png");background-position:center;background-size:cover}
.module-link[data-visual-variant="mes-quimicos-color"]{background-color:#d8f1ff;background-image:url("/assets/mes-quimicos.png");background-position:center;background-size:cover}
.module-link[data-visual-variant="check-list-color"]{background-color:#d8f1ff;background-image:url("/assets/check-list.png");background-position:center;background-size:cover}
.module-link[data-visual-variant="configurador-color"]{background-color:#d8f1ff;background-image:url("/assets/configurador.png");background-position:center;background-size:cover}
.module-link[data-visual-variant="pis-color"]{background-color:#d8f1ff;background-image:url("/assets/pis.png");background-position:center;background-size:cover}
.module-link[data-visual-variant="loading-schedule-color"]::before,.module-link[data-visual-variant="mes-quimicos-color"]::before,.module-link[data-visual-variant="check-list-color"]::before,.module-link[data-visual-variant="configurador-color"]::before,.module-link[data-visual-variant="pis-color"]::before{background:rgba(255,255,255,0.18);content:"";inset:0;pointer-events:none;position:absolute;z-index:1}
.module-visual-icon{align-items:center;background:rgba(255,255,255,0.62);border:1px solid rgba(255,255,255,0.88);box-shadow:0 0 0 1px rgba(122,126,133,0.12) inset;color:#c7c9ce;display:inline-flex;height:clamp(54px,38%,68px);justify-content:center;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:clamp(112px,28%,148px);z-index:1}
.module-visual-icon svg{height:38px;width:38px}

.app-footer {
  background: var(--shell-footer-bg);
  border-top: 1px solid var(--amg-color-border);
  bottom: 0;
  color: var(--amg-color-text-secondary);
  font-size: 0.84rem;
  height: 44px;
  justify-content: space-between;
  padding: 0 24px;
}

.environment-alert {
  display: none;
}

html[data-app-environment="sandbox"] .app-footer {
  background: var(--shell-test-alert-bg);
  border-top-color: var(--shell-test-alert-bg);
  color: var(--shell-test-alert-fg);
}

html[data-app-environment="sandbox"] .footer-brand,
html[data-app-environment="sandbox"] .environment-alert {
  color: var(--shell-test-alert-fg);
}

html[data-app-environment="sandbox"] .environment-alert {
  display: block;
  font-size: 0.84rem;
  font-weight: 900;
  left: 50%;
  letter-spacing: 0;
  line-height: 1;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.footer-brand {
  color: var(--amg-color-text-primary);
  font-weight: 700;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 920px) {
  body {
    padding-top: 128px;
  }

  .app-header {
    align-content: center;
    flex-wrap: wrap;
    height: 128px;
    padding: 10px 14px;
  }

  .brand-link {
    min-width: 112px;
  }

  .main-navigation {
    order: 3;
    width: 100%;
  }

  .main-nav-link {
    min-height: 38px;
  }

  .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 720px) {
  body {
    padding-top: 156px;
  }

  .app-header {
    height: 156px;
  }

  .date-time {
    display: none;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    width: calc(100% - 126px);
  }

  .module-grid {
    width: 100%;
  }

  .brand-introduction-row {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .module-link {
    width: 100%;
  }
}

@media (max-width: 460px) {
  body {
    padding-top: 184px;
  }

  .app-header {
    height: 184px;
  }

  .brand-link,
  .header-actions,
  .main-navigation {
    width: 100%;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .user-menu,
  .user-button {
    flex: 1 1 100%;
    width: 100%;
  }

  .user-button {
    width: 100%;
  }

  .user-menu-panel {
    left: 0;
    min-width: 100%;
    right: auto;
  }

  html[data-app-environment="sandbox"] .app-footer {
    justify-content: center;
  }

  html[data-app-environment="sandbox"] .app-footer > :not(.environment-alert) {
    display: none;
  }
}
