:root {
  --alo-app-nav-bg: rgba(255, 253, 247, .94);
  --alo-app-nav-border: rgba(48, 76, 56, .18);
  --alo-app-nav-text: #203d2c;
  --alo-app-nav-muted: #65766b;
  --alo-app-nav-active: #eaf4e4;
  --alo-app-nav-shadow: 0 14px 36px rgba(42, 64, 48, .16);
}

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

main,
.app,
.page,
.shell,
.mainShell,
.pageShell,
.appShell {
  width: min(1180px, 100%);
}

button,
a,
input,
select,
textarea {
  font: inherit;
}

button,
.btn,
.qbtn,
.mini,
.back,
.cancel,
.saveBtn,
.submit,
.submitBtn,
.navButton,
.logoutButton {
  min-height: 44px;
}

input,
select,
textarea {
  min-width: 0;
}

table {
  width: 100%;
}

.tableWrap,
.table,
.list,
.feed,
.canvasWrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.actions,
.filterActions,
.nav,
.quick,
.buttons,
.buttonRow {
  gap: 8px;
}

.aloFloatingNavEnabled body {
  padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
}

.aloBottomNav {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 999;
  min-height: 62px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 7px;
  border: 1px solid var(--alo-app-nav-border);
  border-radius: 14px;
  background: var(--alo-app-nav-bg);
  box-shadow: var(--alo-app-nav-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateZ(0);
  transition: transform .22s ease, opacity .22s ease, box-shadow .22s ease;
}

.aloMenuOpen .aloBottomNav {
  transform: translateY(12px) translateZ(0);
  opacity: .22;
  pointer-events: none;
}

.aloGeneratedHeader {
  margin: 10px auto 12px;
  padding: 10px 12px;
}

.aloGeneratedHeaderLogo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: contain;
}

.aloBottomNav a {
  min-width: 0;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 10px;
  color: var(--alo-app-nav-muted);
  text-decoration: none;
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .14s ease, background-color .14s ease, color .14s ease;
}

.aloBottomNav a:active {
  transform: scale(.96);
}

.aloBottomNav a.active {
  background: var(--alo-app-nav-active);
  color: var(--alo-app-nav-text);
}

.aloBottomIcon {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  color: inherit;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.aloFloatingMenuButton {
  position: fixed;
  right: 14px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .64);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 253, 247, .96), rgba(232, 244, 229, .86)),
    #fffdf7;
  color: #203d2c !important;
  box-shadow: 0 18px 44px rgba(42, 64, 48, .20), inset 0 1px 0 rgba(255, 255, 255, .72);
  backdrop-filter: blur(18px) saturate(1.26);
  -webkit-backdrop-filter: blur(18px) saturate(1.26);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
  touch-action: manipulation;
  transition: transform .18s ease;
}

.aloFloatingMenuButton:active {
  transform: scale(.94);
}

.aloFloatingMenuButton[aria-expanded="true"] {
  transform: rotate(90deg);
}

.aloFloatingMenuIcon,
.aloFloatingMenuIcon::before,
.aloFloatingMenuIcon::after {
  width: 22px;
  height: 2px;
  display: block;
  border-radius: 99px;
  background: currentColor;
  transition: transform .22s ease, opacity .18s ease;
}

.aloFloatingMenuIcon {
  position: relative;
}

.aloFloatingMenuIcon::before,
.aloFloatingMenuIcon::after {
  content: "";
  position: absolute;
  left: 0;
}

.aloFloatingMenuIcon::before { top: -7px; }
.aloFloatingMenuIcon::after { top: 7px; }

.aloFloatingMenuButton[aria-expanded="true"] .aloFloatingMenuIcon {
  background: transparent;
}

.aloFloatingMenuButton[aria-expanded="true"] .aloFloatingMenuIcon::before {
  transform: translateY(7px) rotate(45deg);
}

.aloFloatingMenuButton[aria-expanded="true"] .aloFloatingMenuIcon::after {
  transform: translateY(-7px) rotate(-45deg);
}

.aloFloatingMenuOverlay {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(20, 32, 25, .16);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}

.aloFloatingMenuOverlay.open {
  opacity: 1;
  pointer-events: auto;
}

.aloFloatingMenuPanel {
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(82px + env(safe-area-inset-top, 0px));
  bottom: auto;
  z-index: 1095;
  max-height: min(70vh, 560px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .64);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 253, 247, .97), rgba(235, 245, 232, .90)),
    #fffdf7;
  box-shadow: 0 24px 70px rgba(42, 64, 48, .22), inset 0 1px 0 rgba(255, 255, 255, .72);
  backdrop-filter: blur(24px) saturate(1.34);
  -webkit-backdrop-filter: blur(24px) saturate(1.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(.98);
  transform-origin: top right;
  will-change: transform, opacity;
  transition: opacity .18s ease, transform .20s cubic-bezier(.2, .8, .2, 1);
}

.aloFloatingMenuPanel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.aloFloatingMenuTitle {
  margin: 2px 2px 12px;
  color: var(--alo-app-nav-text);
  font-size: 13px;
  font-weight: 950;
}

.aloFloatingMenuGroup {
  display: grid;
  gap: 7px;
}

.aloFloatingMenuGroup + .aloFloatingMenuGroup {
  margin-top: 12px;
}

.aloFloatingMenuLabel {
  color: var(--alo-app-nav-muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.aloFloatingMenuGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.aloFloatingMenuLink {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 12px;
  background: rgba(255, 255, 255, .38);
  color: #203d2c !important;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
  touch-action: manipulation;
  transition: transform .14s ease, background-color .14s ease, color .14s ease;
}

.aloFloatingMenuForm {
  margin: 0;
  min-width: 0;
}

.aloFloatingMenuAction {
  width: 100%;
  cursor: pointer;
}

.aloFloatingMenuAction.danger {
  border-color: rgba(32, 61, 44, .62);
  background: #203d2c;
  color: #fffdf7 !important;
}

.aloUnifiedHeader {
  position: sticky !important;
  top: 10px !important;
  z-index: 80 !important;
  min-height: 62px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
}

.aloUnifiedHeader .aloFloatingMenuButton {
  position: static !important;
  margin-left: auto !important;
  flex: 0 0 auto !important;
  width: 46px !important;
  height: 46px !important;
}

.aloUnifiedHeader .brand,
.aloUnifiedHeader .brandRow {
  width: auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.aloUnifiedHeader .brandTitle {
  color: #203d2c !important;
  font-size: 18px !important;
  line-height: 1.05 !important;
}

.aloUnifiedHeader .brandSub,
.aloUnifiedHeader .navRail,
.aloUnifiedHeader .menuToggle,
.aloUnifiedHeader .nav,
.aloUnifiedHeader .back,
.aloUnifiedHeader > .actions,
.aloUnifiedHeader > .topActions {
  display: none !important;
}

.aloFloatingMenuLink.active {
  background: rgba(234, 244, 228, .82);
  color: #203d2c;
}

.aloFloatingMenuLink:active {
  transform: scale(.97);
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }

  .aloBottomNav {
    display: none;
  }

  .aloFloatingMenuButton {
    right: 22px;
    bottom: 22px;
  }

  .aloFloatingMenuPanel {
    left: auto;
    right: 22px;
    top: 86px;
    bottom: auto;
    width: min(390px, calc(100vw - 44px));
  }
}

@media (max-width: 899px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }

  .aloFloatingMenuButton,
  .aloFloatingMenuPanel,
  .aloFloatingMenuOverlay,
  .aloBottomNav,
  .aloUnifiedHeader {
    transform: translateZ(0);
  }

  .aloFloatingMenuPanel {
    max-height: min(72vh, 520px);
  }

  .aloFloatingMenuLink {
    min-height: 46px;
  }

  button,
  a,
  input,
  select,
  textarea {
    touch-action: manipulation;
  }

  body {
    padding-left: max(0px, env(safe-area-inset-left, 0px));
    padding-right: max(0px, env(safe-area-inset-right, 0px));
  }

  main,
  .app,
  .page,
  .shell,
  .mainShell,
  .pageShell,
  .appShell {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .grid,
  .summary,
  .cards,
  .accountGrid,
  .contact,
  .movement,
  .row,
  .fields,
  .filterFields {
    grid-template-columns: 1fr !important;
  }

  .actions,
  .filterActions,
  .nav,
  .quick,
  .buttons,
  .buttonRow {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .actions > a,
  .actions > button,
  .filterActions > a,
  .filterActions > button,
  .buttons > a,
  .buttons > button,
  .buttonRow > a,
  .buttonRow > button {
    flex: 1 1 140px;
  }

  .card,
  .panel,
  .tapCard,
  .kpi,
  .movement,
  .contact,
  .row,
  .orderCard {
    margin-left: 0;
    margin-right: 0;
  }

  .aloUnifiedHeader {
    top: 8px !important;
    margin-bottom: 12px !important;
  }

  .aloBottomNav {
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    min-height: 60px;
    padding: 6px;
  }

  .aloBottomNav a {
    min-height: 48px;
    font-size: 10px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --alo-app-nav-bg: rgba(15, 23, 42, .94);
    --alo-app-nav-border: rgba(255, 255, 255, .14);
    --alo-app-nav-text: #eaf4e4;
    --alo-app-nav-muted: #aab8af;
    --alo-app-nav-active: rgba(79, 154, 100, .20);
    --alo-app-nav-shadow: 0 16px 40px rgba(0, 0, 0, .42);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .aloBottomNav,
  .aloBottomNav a,
  .aloFloatingMenuButton,
  .aloFloatingMenuPanel,
  .aloFloatingMenuOverlay,
  .aloFloatingMenuLink,
  .aloFloatingMenuIcon,
  .aloFloatingMenuIcon::before,
  .aloFloatingMenuIcon::after {
    transition: none;
  }
}

/* 2026 floating menu refresh */
.aloFloatingMenuButton {
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 24% 20%, rgba(44, 255, 5, .34), transparent 32px),
    linear-gradient(145deg, #004200, #062f0d) !important;
  color: #fff !important;
  box-shadow: 0 18px 42px rgba(0, 66, 0, .28) !important;
}

.aloUnifiedHeader .aloFloatingMenuButton {
  border-radius: 16px !important;
}

.aloFloatingMenuPanel {
  max-height: min(76vh, 720px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  border-color: rgba(255, 255, 255, .72) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(247, 250, 245, .86)),
    rgba(255, 255, 255, .84) !important;
  box-shadow: 0 28px 80px rgba(0, 66, 0, .18) !important;
}

.aloFloatingMenuPanel::-webkit-scrollbar {
  width: 8px;
}

.aloFloatingMenuPanel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0, 66, 0, .18);
}

.aloFloatingMenuTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #004200 !important;
  font-size: 18px !important;
}

.aloFloatingMenuTitle::after {
  content: "menu";
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(44, 255, 5, .18);
  color: #004200;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.aloFloatingMenuGrid {
  gap: 9px !important;
}

.aloFloatingMenuLink {
  min-height: 58px !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  border-color: rgba(0, 66, 0, .12) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .78) !important;
  color: #102114 !important;
  box-shadow: 0 8px 22px rgba(0, 66, 0, .07);
  text-align: left !important;
}

.aloFloatingMenuLink:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 66, 0, .12);
}

.aloFloatingMenuItemIcon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(0, 66, 0, .08);
  color: #004200;
  font-size: 12px;
  font-weight: 950;
}

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

.aloFloatingMenuLink.featured {
  grid-column: 1 / -1;
  background: linear-gradient(145deg, #004200, #062f0d) !important;
  color: #fff !important;
}

.aloFloatingMenuLink.featured .aloFloatingMenuItemIcon {
  background: #26ff00;
  color: #004200;
}

.aloFloatingMenuAction {
  width: 100%;
}

/* Lightweight mobile mode: keep the interface responsive on lower-end phones. */
@media (max-width: 720px) {
  html {
    scroll-behavior: auto !important;
  }

  body {
    background-attachment: scroll !important;
  }

  body::before,
  body::after {
    display: none !important;
  }

  .aloBottomNav,
  .aloFloatingMenuPanel,
  .aloGeneratedHeader,
  .aloUnifiedHeader,
  .topbar,
  .hero,
  .welcome,
  .botInvite,
  .filters,
  .qbtn,
  .dates,
  .field,
  input,
  select,
  textarea,
  .card,
  .kpi,
  .chart,
  .insights,
  .accountCard,
  .canvasWrap,
  .toast,
  .toastWrap,
  .navRail,
  .bottomNav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
  }

  .aloBottomNav,
  .aloFloatingMenuPanel,
  .aloFloatingMenuButton,
  .aloFloatingMenuLink,
  .topbar,
  .hero,
  .welcome,
  .filters,
  .card,
  .canvasWrap,
  .toast {
    box-shadow: 0 6px 18px rgba(42, 64, 48, .10) !important;
  }

  .aloFloatingMenuLink:hover,
  .navButton:hover,
  .btn:hover,
  .qbtn:hover,
  .card:hover {
    transform: none !important;
  }

  .insights li,
  .toast,
  .card,
  .qbtn,
  .btn,
  .aloBottomNav,
  .aloFloatingMenuPanel,
  .aloFloatingMenuLink {
    animation: none !important;
    transition: none !important;
  }

  .canvasWrap {
    height: 238px !important;
  }
}

/* Premium app polish */
:root {
  --alo-premium-green: #184f32;
  --alo-premium-green-strong: #0f3c27;
  --alo-premium-mint: #eef8ef;
  --alo-premium-cream: #fffdf7;
  --alo-premium-line: rgba(24, 79, 50, .13);
  --alo-premium-shadow: 0 18px 48px rgba(24, 79, 50, .14);
}

.aloFloatingMenuButton {
  border: 1px solid rgba(255, 255, 255, .70) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .55), transparent 30px),
    linear-gradient(145deg, #2f8a56, #123c28) !important;
  color: #fffdf7 !important;
  box-shadow: 0 18px 44px rgba(18, 60, 40, .24), inset 0 1px 0 rgba(255, 255, 255, .32) !important;
  gap: 0;
}

.aloFloatingMenuButtonMark {
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  transition: transform .18s ease, opacity .16s ease;
}

.aloFloatingMenuButton .aloFloatingMenuIcon {
  display: none;
}

.aloFloatingMenuButton[aria-expanded="true"] {
  transform: none;
}

.aloFloatingMenuButton[aria-expanded="true"] .aloFloatingMenuButtonMark {
  transform: rotate(45deg) scale(1.02);
}

.aloFloatingMenuPanel {
  padding: 16px !important;
  border-color: rgba(255, 255, 255, .74) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(145deg, rgba(255, 253, 247, .98), rgba(242, 249, 241, .92)),
    rgba(255, 255, 255, .88) !important;
  box-shadow: 0 28px 78px rgba(24, 79, 50, .18), inset 0 1px 0 rgba(255, 255, 255, .72) !important;
}

.aloFloatingMenuTitle {
  display: grid !important;
  gap: 2px;
  align-items: start !important;
  justify-content: start !important;
  margin: 2px 2px 14px !important;
  color: var(--alo-premium-green-strong) !important;
  font-size: 18px !important;
  line-height: 1.08;
}

.aloFloatingMenuTitle::after {
  display: none !important;
  content: none !important;
}

.aloFloatingMenuTitle small {
  color: #6b7b70;
  font-size: 12px;
  font-weight: 800;
}

.aloFloatingMenuLabel {
  color: #6b7b70 !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: .08em;
}

.aloFloatingMenuGrid {
  gap: 10px !important;
}

.aloFloatingMenuLink {
  min-height: 62px !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding: 11px 12px !important;
  border-color: var(--alo-premium-line) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .78) !important;
  color: #15271d !important;
  box-shadow: 0 10px 24px rgba(24, 79, 50, .07) !important;
  text-align: left !important;
}

.aloFloatingMenuLink:hover {
  transform: translateY(-2px);
  border-color: rgba(24, 79, 50, .24) !important;
  background: #ffffff !important;
  box-shadow: 0 16px 34px rgba(24, 79, 50, .13) !important;
}

.aloFloatingMenuLink.active {
  border-color: rgba(47, 138, 86, .26) !important;
  background: linear-gradient(145deg, #eff9ee, #ffffff) !important;
  color: var(--alo-premium-green-strong) !important;
}

.aloFloatingMenuItemIcon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
  background: rgba(47, 138, 86, .10) !important;
  color: var(--alo-premium-green) !important;
  font-size: 18px !important;
}

.aloFloatingMenuLink.featured {
  background: linear-gradient(145deg, #214f36, #0f3c27) !important;
  color: #fffdf7 !important;
}

.aloFloatingMenuLink.featured .aloFloatingMenuItemIcon {
  background: rgba(255, 255, 255, .18) !important;
  color: #fffdf7 !important;
}

.aloFloatingMenuAction.danger {
  background: linear-gradient(145deg, #214f36, #0f3c27) !important;
  color: #fffdf7 !important;
}

.aloBottomNav {
  border-radius: 18px !important;
  background: rgba(255, 253, 247, .90) !important;
  box-shadow: 0 18px 44px rgba(24, 79, 50, .14) !important;
}

.aloBottomNav a {
  border-radius: 14px !important;
}

.aloBottomNav a.active {
  background: linear-gradient(145deg, #eef8ef, #ffffff) !important;
  box-shadow: inset 0 0 0 1px rgba(47, 138, 86, .13);
}

.aloBottomIcon {
  font-size: 18px !important;
}

input,
select,
textarea {
  border-radius: 8px !important;
}

.btn,
.qbtn,
.mini,
.saveBtn,
.submit,
.submitBtn,
.navButton,
.logoutButton,
button[type="submit"] {
  border-radius: 8px;
}

@media (min-width: 721px) {
  .card,
  .panel,
  .tapCard,
  .kpi,
  .movement,
  .contact,
  .orderCard,
  .accountCard,
  .canvasWrap,
  .toast {
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  }

  .card:hover,
  .panel:hover,
  .tapCard:hover,
  .kpi:hover,
  .movement:hover,
  .contact:hover,
  .orderCard:hover,
  .accountCard:hover {
    transform: translateY(-2px);
    box-shadow: var(--alo-premium-shadow);
  }

  tbody tr {
    transition: background-color .14s ease;
  }

  tbody tr:hover {
    background: rgba(47, 138, 86, .06);
  }
}

@media (max-width: 720px) {
  .aloFloatingMenuTitle small {
    font-size: 11px;
  }

  .aloFloatingMenuLink {
    min-height: 58px !important;
    transition: none !important;
  }

  .aloBottomNav,
  .aloFloatingMenuPanel,
  .aloFloatingMenuButton {
    transition: none !important;
  }

  .aloFloatingMenuLink:hover {
    transform: none !important;
    box-shadow: 0 6px 18px rgba(42, 64, 48, .10) !important;
  }

  .aloFloatingMenuButtonMark {
    transition: none !important;
  }
}
