:root {
  --brand-green: #054a58;
  --brand-green-dark: #043a45;
  --brand-green-soft: #e0eef1;
  --ink: #687080;
  --ink-dark: #4e5666;
  --panel: #eff0f2;
  --panel-hover: #626b7c;
  --white: #ffffff;
  --orbit-gray: #b8bac0;
  --orbit-core: rgba(122, 128, 140, 0.64);
  --shadow: 0 14px 32px rgba(42, 50, 63, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--brand-green);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--brand-green);
  color: var(--ink);
  font-family:
    "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-frame {
  min-height: 100vh;
  min-height: 100svh;
  padding: 28px 30px 0;
  background: var(--brand-green);
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 28px);
  min-height: calc(100svh - 28px);
  overflow: hidden;
  background: var(--white);
  border-radius: 15px 15px 0 0;
}

.topbar {
  position: relative;
  z-index: 40;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 72px;
  height: auto;
  padding: 12px 20px;
  overflow: visible;
  border-bottom: 1px solid #eef1f3;
  background: var(--white);
}

.topbar.topbar--stage-picker {
  z-index: 100;
  align-items: start;
  padding-top: 10px;
  padding-bottom: 10px;
}

.back-button {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  color: #4c5773;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  background: #ffffff;
  border: 1px solid #eeecec;
  border-radius: 8px;
  box-shadow: none;
  transition:
    color 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease;
}

.back-button[hidden] {
  display: none;
}

.stage-combobox {
  grid-column: 2;
  justify-self: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: min(100%, 360px);
  max-width: min(420px, calc(100vw - 280px));
}

.stage-combobox[hidden] {
  display: none;
}

.stage-combobox__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.stage-combobox__eyebrow {
  color: #687080;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.stage-combobox__meta {
  flex: 0 0 auto;
  color: #9aa3b2;
  font-size: 0.72rem;
  font-weight: 500;
}

.stage-combobox__control {
  position: relative;
}

.stage-combobox__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px 9px 14px;
  color: #243041;
  font: inherit;
  text-align: left;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid #dbe1e8;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  cursor: pointer;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease;
}

.stage-combobox__trigger:hover {
  border-color: #c7d0da;
  background: #ffffff;
}

.stage-combobox__trigger:focus-visible {
  outline: 2px solid rgba(5, 74, 88, 0.32);
  outline-offset: 2px;
}

.stage-combobox__trigger[aria-expanded="true"] {
  border-color: #054a58;
  box-shadow: 0 0 0 3px rgba(5, 74, 88, 0.1);
}

.stage-combobox__value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-combobox__chevron {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #687080;
  transition: transform 160ms ease;
}

.stage-combobox__trigger[aria-expanded="true"] .stage-combobox__chevron {
  transform: rotate(180deg);
  color: #054a58;
}

.stage-combobox__panel {
  position: absolute;
  z-index: 120;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  box-shadow:
    0 16px 40px rgba(28, 39, 55, 0.14),
    0 2px 8px rgba(28, 39, 55, 0.06);
  backdrop-filter: blur(10px);
}

.stage-combobox__panel[hidden] {
  display: none;
}

.stage-combobox__search-wrap {
  position: relative;
  padding: 10px 10px 8px;
  border-bottom: 1px solid #eef1f4;
}

.stage-combobox__search-icon {
  position: absolute;
  top: 50%;
  left: 20px;
  width: 14px;
  height: 14px;
  color: #9aa3b2;
  pointer-events: none;
  transform: translateY(calc(-50% + 1px));
}

.stage-combobox__search {
  width: 100%;
  padding: 9px 12px 9px 34px;
  color: #243041;
  font: inherit;
  font-size: 0.84rem;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
}

.stage-combobox__search::placeholder {
  color: #9aa3b2;
}

.stage-combobox__search:focus-visible {
  outline: none;
  background: #ffffff;
  border-color: #054a58;
  box-shadow: 0 0 0 3px rgba(5, 74, 88, 0.1);
}

.stage-combobox__empty {
  margin: 0;
  padding: 14px 14px 6px;
  color: #687080;
  font-size: 0.82rem;
  text-align: center;
}

.stage-combobox__empty[hidden] {
  display: none;
}

.stage-combobox__list {
  max-height: min(320px, 48vh);
  margin: 0;
  padding: 6px;
  overflow: auto;
  list-style: none;
}

.stage-combobox__item {
  margin: 0;
}

.stage-combobox__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  color: #334155;
  font: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background-color 120ms ease,
    color 120ms ease;
}

.stage-combobox__option:hover {
  background: #f4f7f9;
}

.stage-combobox__option.is-active {
  color: #054a58;
  background: #e0eef1;
}

.stage-combobox__option:focus-visible {
  outline: 2px solid rgba(5, 74, 88, 0.32);
  outline-offset: -2px;
}

.stage-combobox__option-index {
  flex: 0 0 auto;
  min-width: 1.6rem;
  color: #9aa3b2;
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stage-combobox__option.is-active .stage-combobox__option-index {
  color: #054a58;
}

.stage-combobox__option-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar.topbar--stage-picker .brand {
  display: none;
}

.back-button:hover {
  color: #2d3446;
  background: #f9f9f9;
  border-color: #dcdfe5;
  transform: none;
}

.topbar-user {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  gap: 2px;
  padding: 5px 8px 5px 6px;
  color: var(--ink-dark);
  background: #f5f8f9;
  border: 1px solid #e4eaec;
  border-radius: 10px;
}

.topbar-user[hidden] {
  display: none;
}

.topbar-user__identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 2px 8px 2px 2px;
}

.topbar-user__mark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--brand-green);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.topbar-user__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.topbar-user__name {
  overflow: hidden;
  color: var(--ink-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 168px;
}

.topbar-user__meta {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 168px;
}

.topbar-user__meta:empty {
  display: none;
}

.topbar-user__rule {
  flex: 0 0 auto;
  width: 1px;
  height: 28px;
  margin: 0 6px 0 4px;
  background: #dce4e6;
}

.topbar-user__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 2px;
}

.topbar-admin,
.topbar-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    color 140ms ease,
    background-color 140ms ease;
}

.topbar-admin svg,
.topbar-logout svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.topbar-admin {
  color: var(--brand-green-dark);
  background: transparent;
}

.topbar-admin:hover {
  background: var(--brand-green-soft);
}

.topbar-admin[hidden] {
  display: none;
}

.topbar-logout {
  color: var(--ink-dark);
  background: transparent;
}

.topbar-logout:hover {
  color: #7f1d1d;
  background: #f8ecec;
}

.brand {
  position: relative;
  display: flex;
  grid-column: 2;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: transform 160ms ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand:focus-visible,
.module-button:focus-visible,
.gerencial-hub:focus-visible,
.sector:focus-visible,
.dashboard-tab:focus-visible,
.back-button:focus-visible,
.dashboard-switch-card:focus-visible,
.tehokas-brand:focus-visible,
.home-tehokas:focus-visible,
.topbar-admin:focus-visible,
.topbar-logout:focus-visible {
  outline: 3px solid rgba(5, 74, 88, 0.35);
  outline-offset: 4px;
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(2.4rem, 4.2vw, 3.2rem);
  margin: 0 auto;
  object-fit: contain;
}

.brand.is-entering .brand-logo {
  animation: brand-logo-in 1100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.brand.is-entering::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: -20%;
  left: 0;
  width: 42%;
  height: 140%;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.08) 65%,
    transparent 100%
  );
  transform: translateX(-160%) skewX(-18deg);
  animation: brand-sheen 980ms cubic-bezier(0.4, 0, 0.2, 1) 280ms both;
}

@keyframes brand-logo-in {
  0% {
    opacity: 0;
    filter: blur(12px) saturate(0.85);
    transform: scale(1.08);
  }

  55% {
    opacity: 1;
    filter: blur(0) saturate(1);
  }

  100% {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: scale(1);
  }
}

@keyframes brand-sheen {
  from {
    opacity: 0;
    transform: translateX(-160%) skewX(-18deg);
  }

  20% {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translateX(280%) skewX(-18deg);
  }
}

#app-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: var(--white);
}

.view {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
}

.view[hidden],
#dashboard-viewer[hidden] {
  display: none !important;
}

.home-view:not([hidden]) {
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 10px clamp(28px, 5vw, 72px) 88px;
}

.supply-view:not([hidden]) {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 12px clamp(16px, 2.5vw, 40px);
}

.dashboard-view:not([hidden]) {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.dashboard-frame {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: 100%;
  border: 0;
  background: var(--white);
}

.dashboard-frame.is-loading {
  opacity: 0.55;
}

.dashboard-embed-status {
  display: grid;
  place-items: center;
  gap: 14px;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  padding: 24px;
  text-align: center;
  color: #4b5565;
  background: #f8fafc;
}

.dashboard-embed-status[hidden] {
  display: none;
}

.dashboard-embed-status p {
  margin: 0;
  max-width: 36ch;
  font-size: 0.95rem;
  line-height: 1.45;
}

.dashboard-embed-retry {
  padding: 8px 16px;
  color: #054a58;
  font-size: 0.88rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid #cfd6de;
  border-radius: 8px;
  cursor: pointer;
}

.dashboard-embed-retry:hover {
  border-color: #054a58;
}

.dashboard-page-nav {
  position: absolute;
  z-index: 6;
  top: 14px;
  right: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: min(100% - 36px, 420px);
}

.dashboard-page-nav[hidden] {
  display: none !important;
}

.dashboard-page-subtitle {
  margin: 0;
  color: #054a58;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: right;
}

.dashboard-page-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.dashboard-page-button {
  min-width: 64px;
  padding: 7px 14px;
  color: #054a58;
  font-size: 0.78rem;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid #cfd6de;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(28, 39, 55, 0.08);
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.dashboard-page-button:hover {
  border-color: #054a58;
}

.dashboard-page-button.is-active,
.dashboard-page-button[aria-current="page"] {
  color: #ffffff;
  background: #215f47;
  border-color: #215f47;
}

.dashboard-switch-card {
  position: absolute;
  z-index: 5;
  bottom: 18px;
  right: 22px;
  top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 188px;
  max-width: min(260px, calc(100% - 44px));
  padding: 12px 14px;
  color: #2a3344;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(28, 39, 55, 0.12);
  backdrop-filter: blur(8px);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.dashboard-switch-card[hidden] {
  display: none;
}

.dashboard-switch-card:hover {
  border-color: #cfd6de;
  box-shadow: 0 14px 32px rgba(28, 39, 55, 0.16);
  transform: translateY(-2px);
}

.dashboard-switch-eyebrow {
  color: #7a8496;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-switch-label {
  color: #054a58;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.app-card.is-viewing-dashboard {
  border-radius: 15px 15px 0 0;
}

.app-card.is-viewing-dashboard .footer {
  display: none;
}

.app-card.is-viewing-dashboard #app-main {
  flex: 1 1 auto;
}

.home-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto 20px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.875rem;
}

.home-notice__text {
  margin: 0;
}

.home-notice__retry {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid #fca5a5;
  background: var(--white);
  color: #991b1b;
  font: inherit;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
}

.home-notice__retry:hover {
  background: #fff1f1;
}

.home-notice[hidden] {
  display: none;
}

.home-layout {
  display: grid;
  grid-template-columns:
    minmax(240px, 1fr)
    minmax(260px, 0.9fr)
    minmax(240px, 1fr);
  grid-template-areas: "home-left home-hub home-right";
  align-items: center;
  justify-content: center;
  gap: clamp(36px, 5.5vw, 80px);
  width: 100%;
  max-width: min(1280px, 100%);
  height: auto;
  margin: 0 auto;
  padding: 0;
}

.home-layout > .module-panel:first-of-type {
  grid-area: home-left;
  justify-self: end;
}

.home-layout > .gerencial-hub {
  grid-area: home-hub;
}

.home-layout > .module-panel:last-of-type {
  grid-area: home-right;
  justify-self: start;
}

.home-tehokas {
  position: absolute;
  z-index: 1;
  bottom: 8px;
  left: 50%;
  display: flex;
  margin: 0;
  line-height: 1;
  transform: translateX(-50%);
  transition: transform 160ms ease;
}

.home-view:has(.home-layout--pending) .home-tehokas {
  visibility: hidden;
}

.home-tehokas:hover {
  transform: translateX(-50%) translateY(-2px);
}

.home-tehokas img {
  display: block;
  width: auto;
  height: clamp(3.35rem, 6vh, 4rem);
  object-fit: contain;
}

.home-layout--pending {
  visibility: hidden;
  pointer-events: none;
}

.home-layout.is-ready {
  visibility: visible;
  pointer-events: auto;
  animation: view-in var(--motion-base, 180ms) var(--motion-ease-out, ease);
}

.home-layout .module-link[href^="#"]:not(.is-hidden):not([hidden]) {
  display: flex;
}

.module-button.is-hidden,
.module-button[hidden] {
  display: none !important;
}

.module-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  height: auto;
  min-height: 0;
  justify-self: center;
  padding: 22px 18px;
  background: var(--panel);
  border-radius: 10px;
}

.module-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 8px 14px;
  overflow: hidden;
  color: #f6f7f8;
  font-size: clamp(0.77rem, 1.25vw, 0.91rem);
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  background: var(--ink);
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(52, 58, 69, 0.05);
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.module-button:hover {
  background: var(--panel-hover);
  box-shadow: 0 7px 14px rgba(54, 62, 76, 0.17);
  transform: translateY(-2px);
}

.module-button:active {
  box-shadow: none;
  transform: translateY(0);
}

.module-link {
  cursor: pointer;
}

.gerencial-hub {
  position: relative;
  display: grid;
  place-items: center;
  align-self: center;
  width: min(250px, 88%);
  aspect-ratio: 1;
  justify-self: center;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  background: #c7c8cb;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(86, 93, 103, 0.03);
  transition:
    box-shadow 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.gerencial-hub:hover {
  background: #bfc1c5;
  box-shadow:
    inset 0 0 0 1px rgba(86, 93, 103, 0.08),
    0 12px 24px rgba(77, 84, 96, 0.18);
  transform: scale(1.025);
}

.hub-watermark {
  position: absolute;
  inset: 16%;
  display: grid;
  place-items: center;
  opacity: 0.22;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hub-watermark img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

.hub-label {
  position: relative;
  z-index: 1;
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.13;
}

.supply-layout {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  justify-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0;
  transform: translateY(12px);
}

.supply-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 340px);
  text-align: center;
}

.smart-emblem {
  width: clamp(140px, 16vw, 200px);
}

.smart-emblem img {
  display: block;
  width: 100%;
  height: auto;
}

.supply-intro h1 {
  margin: 6px 0 0;
  color: #5f6674;
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}

.supply-intro p {
  margin: 0;
  color: #7a8190;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.15;
}

.dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  width: min(100%, 360px);
  margin-top: 24px;
}

.dashboard-tab {
  padding: 8px 12px;
  color: #5f6674;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(154, 160, 168, 0.52);
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.dashboard-tab:hover,
.dashboard-tab:focus-visible {
  color: #ffffff;
  background: #747b88;
  border-color: #747b88;
  transform: translateY(-1px);
}

.supply-divider {
  width: 1px;
  height: min(430px, 52vh);
  background: #9aa0a8;
  opacity: 0.85;
  justify-self: center;
}

.supply-content {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
}

.supply-visual {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
}

.sector {
  --petal-w: 52%;
  --petal-h: 54%;
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: var(--petal-w);
  height: var(--petal-h);
  padding: 0;
  margin: 0;
  overflow: visible;
  color: #2a2e38;
  font-family: inherit;
  font-size: clamp(0.74rem, 1.3vw, 0.96rem);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  border: none;
  background: transparent;
  cursor: pointer;
  pointer-events: none;
  transform-origin: 50% 100%;
  transition: transform 160ms ease;
}

.sector-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  fill: rgba(176, 179, 186, 0.9);
  transition: fill 160ms ease;
}

.sector-shape path {
  pointer-events: fill;
  cursor: pointer;
}

.sector:is(:hover, :has(:hover)) {
  z-index: 4;
}

.sector:is(:hover, :has(:hover)) .sector-shape {
  fill: rgba(154, 158, 168, 0.98);
}

.sector-label {
  position: relative;
  z-index: 1;
  max-width: 8.6em;
  margin-bottom: 48%;
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
  pointer-events: none;
}

.sector-icon {
  position: absolute;
  z-index: 3;
  bottom: 18%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 26%;
  height: 22%;
  color: #1a1d24;
  pointer-events: none;
  transform: translateX(-50%);
}

.sector-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.sector-top {
  transform: translate(-50%, -100%) rotate(0deg);
}

.sector-top:is(:hover, :has(:hover)) {
  transform: translate(-50%, -100%) rotate(0deg) translateY(-3px);
}

.sector-bottom {
  transform: translate(-50%, -100%) rotate(180deg);
}

.sector-bottom:is(:hover, :has(:hover)) {
  transform: translate(-50%, -100%) rotate(180deg) translateY(-3px);
}

.sector-bottom .sector-label {
  transform: rotate(-180deg);
}

.sector-bottom .sector-icon {
  transform: translateX(-50%) rotate(-180deg);
}

.sector-left {
  transform: translate(-50%, -100%) rotate(-120deg);
}

.sector-left:is(:hover, :has(:hover)) {
  transform: translate(-50%, -100%) rotate(-120deg) translateY(-3px);
}

.sector-left .sector-label {
  transform: rotate(120deg);
}

.sector-left .sector-icon {
  transform: translateX(-50%) rotate(120deg);
}

.sector-right {
  transform: translate(-50%, -100%) rotate(120deg);
}

.sector-right:is(:hover, :has(:hover)) {
  transform: translate(-50%, -100%) rotate(120deg) translateY(-3px);
}

.sector-right .sector-label {
  transform: rotate(-120deg);
}

.sector-right .sector-icon {
  transform: translateX(-50%) rotate(-120deg);
}

/* Suprimentos: 2 pétalas alinhadas verticalmente ao centro lógico */
.supply-visual--vertical {
  width: min(100%, 340px);
}

.supply-visual--vertical .sector {
  --petal-w: 48%;
  --petal-h: 50%;
}

.supply-visual--solo {
  width: min(100%, 320px);
  margin-inline: auto;
}

.supply-visual--hex {
  width: min(100%, 500px);
}

.supply-visual--hex .sector {
  --petal-w: 44%;
  --petal-h: 46%;
  transform: translate(-50%, -100%) rotate(var(--angle, 0deg)) translateY(-22px);
}

.supply-visual--hex .sector:is(:hover, :has(:hover)) {
  transform: translate(-50%, -100%) rotate(var(--angle, 0deg)) translateY(-25px);
}

.supply-visual--hex .sector-label {
  max-width: 8.6em;
  margin-bottom: 44%;
  transform: rotate(calc(var(--angle, 0deg) * -1));
}

.supply-visual--hex .sector-icon {
  width: 24%;
  height: 20%;
  bottom: 16%;
  transform: translateX(-50%) rotate(calc(var(--angle, 0deg) * -1));
}

.supply-visual--penta {
  width: min(100%, 520px);
}

.supply-visual--penta .sector {
  --petal-w: 46%;
  --petal-h: 48%;
  transform: translate(-50%, -100%) rotate(var(--angle, 0deg)) translateY(-18px);
}

.supply-visual--penta .sector:is(:hover, :has(:hover)) {
  transform: translate(-50%, -100%) rotate(var(--angle, 0deg)) translateY(-21px);
}

.supply-visual--penta .sector-label {
  max-width: 8.6em;
  margin-bottom: 44%;
  transform: rotate(calc(var(--angle, 0deg) * -1));
}

.supply-visual--penta .sector-icon {
  width: 24%;
  height: 20%;
  bottom: 16%;
  transform: translateX(-50%) rotate(calc(var(--angle, 0deg) * -1));
}

.orbit-core {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 34%;
  height: 34%;
  overflow: hidden;
  pointer-events: none;
  background: rgba(112, 118, 130, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.footer {
  position: relative;
  display: flex;
  flex: 0 0 33px;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  padding: 0 24px 6px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--brand-green);
}

.footer p {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  font-size: clamp(0.47rem, 0.75vw, 0.62rem);
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast {
  position: fixed;
  z-index: 10;
  right: 22px;
  bottom: 22px;
  max-width: min(340px, calc(100vw - 44px));
  padding: 11px 15px;
  color: #ffffff;
  font-size: 0.82rem;
  line-height: 1.35;
  pointer-events: none;
  visibility: hidden;
  background: var(--brand-green-dark);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 9px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.toast.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes view-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .home-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "home-hub home-hub"
      "home-left home-right";
    grid-template-rows: auto auto;
    align-content: center;
    height: auto;
    gap: 24px;
  }

  .gerencial-hub {
    grid-area: home-hub;
    width: min(200px, 54%);
  }

  .home-layout > .module-panel:first-of-type {
    grid-area: home-left;
  }

  .home-layout > .module-panel:last-of-type {
    grid-area: home-right;
  }

  .home-layout .module-panel {
    grid-row: 2;
    height: auto;
    min-height: 0;
    gap: 11px;
  }

  .supply-layout {
    grid-template-columns: 1fr 1px 1fr;
  }

  .supply-visual {
    width: min(100%, 380px);
  }

  .supply-visual--hex {
    width: min(100%, 420px);
  }

  .supply-visual--penta {
    width: min(100%, 440px);
  }

  .supply-divider {
    height: min(340px, 46vh);
  }

  .smart-emblem {
    width: clamp(120px, 14vw, 160px);
  }
}

@media (max-width: 640px) {
  .site-frame {
    padding: 10px 10px 0;
  }

  .app-card {
    min-height: calc(100vh - 10px);
    min-height: calc(100svh - 10px);
    border-radius: 12px 12px 0 0;
  }

  .topbar {
    height: 62px;
    padding: 10px 12px;
  }

  .topbar-user {
    padding: 3px;
  }

  .topbar-user__copy,
  .topbar-user__rule {
    display: none;
  }

  .topbar-admin,
  .topbar-logout {
    padding: 7px 8px;
  }

  .topbar-admin {
    font-size: 0;
    gap: 0;
  }

  .topbar-admin svg {
    width: 16px;
    height: 16px;
  }

  .back-button {
    max-width: 42vw;
    padding: 7px 10px;
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .stage-combobox {
    min-width: 0;
    max-width: min(320px, calc(100vw - 120px));
  }

  .stage-combobox__heading {
    display: none;
  }

  .stage-combobox__trigger {
    min-height: 38px;
    padding: 8px 10px 8px 12px;
  }

  .stage-combobox__value {
    font-size: 0.84rem;
  }

  .stage-combobox__panel {
    position: fixed;
    z-index: 200;
    top: 62px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .dashboard-switch-card {
    top: 12px;
    right: 12px;
    min-width: 0;
    max-width: min(210px, calc(100% - 24px));
    padding: 10px 12px;
  }

  .dashboard-switch-label {
    font-size: 0.82rem;
  }

  .home-view:not([hidden]),
  .supply-view:not([hidden]) {
    display: block;
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    padding: 18px 16px 72px;
  }

  .home-view:not([hidden]) {
    padding-bottom: 28px;
  }

  .home-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: none;
    align-content: start;
    gap: 18px;
    padding: 0;
  }

  .home-tehokas {
    position: static;
    justify-content: center;
    transform: none;
    margin-top: 8px;
  }

  .home-tehokas:hover {
    transform: translateY(-2px);
  }

  .home-tehokas img {
    height: 3.15rem;
  }

  .gerencial-hub {
    grid-column: auto;
    grid-row: auto;
    width: 150px;
  }

  .home-layout .module-panel {
    grid-row: auto;
    max-width: 360px;
    height: auto;
    min-height: 0;
    gap: 11px;
    padding: 17px 14px;
  }

  .module-button {
    min-height: 40px;
    font-size: 0.84rem;
  }

  .supply-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22px;
  }

  .supply-intro {
    width: auto;
  }

  .smart-emblem {
    width: 112px;
  }

  .supply-intro h1 {
    font-size: 1.85rem;
  }

  .supply-intro p {
    font-size: 1.18rem;
  }

  .supply-divider {
    width: min(280px, 80%);
    height: 1px;
  }

  .supply-content {
    width: 100%;
  }

  .supply-visual {
    width: min(100%, 340px);
  }

  .supply-visual--hex {
    width: min(100%, 360px);
  }

  .supply-visual--penta {
    width: min(100%, 380px);
  }

  .footer {
    flex-basis: 36px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .footer p {
    font-size: 0.43rem;
  }
}

@media (max-width: 430px) {
  .home-layout {
    padding-right: 15px;
    padding-left: 15px;
  }

  .supply-visual {
    width: min(100%, 300px);
  }
}

a.nav-link--embed-unavailable {
  opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
