/* The footer both sides of Movaq share on a laptop or tablet (footnav.js). Each side hands in its own colours; the phone
   keeps its bottom tabs. */
#app .fn { position:relative; z-index:var(--fn-z,45); display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:8px; min-height:62px; margin:0; padding:5px 16px calc(5px + env(safe-area-inset-bottom)); background:var(--fn-surface); border-top:1px solid var(--fn-line); font-size:14px; line-height:1.4; }
#app .fn > div { position:relative; display:flex; align-items:center; gap:8px; min-width:0; }
#app .fn > .fn-mid { justify-content:center; } #app .fn > .fn-right { justify-content:flex-end; }
#app .fn .fn-btn { display:flex; flex-direction:column; align-items:center; justify-content:center; flex:none; gap:1px; min-width:76px; min-height:48px; margin:0; padding:4px 12px; border:0; border-radius:10px; background:none; box-shadow:none; font:inherit; font-size:.76rem; font-weight:700; color:var(--fn-mute); text-decoration:none; white-space:nowrap; cursor:pointer; transform:none; }
#app .fn .fn-btn > span { font-size:1.2rem; line-height:1.2; }
#app .fn .fn-btn b { font-weight:inherit; } #app .fn .fn-btn i { font-style:normal; }
#app .fn .fn-btn:hover, #app .fn .fn-btn[aria-expanded="true"] { background:var(--fn-soft); color:var(--fn-ink); }
#app .fn .fn-btn.on { background:var(--fn-soft); color:var(--fn-brand); box-shadow:inset 0 -3px 0 var(--fn-brand); }
#app .fn .fn-across { border:1px solid var(--fn-line); padding-inline:22px; }
#app .fn .fn-btn:focus-visible, #app .fn .fn-item:focus-visible { outline:3px solid var(--fn-brand); outline-offset:1px; }
/* a button's pages: a see-through panel standing above it; a tap outside closes it */
#app .fn-veil { position:fixed; inset:0; background:rgba(5,10,18,.10); }
#app .fn .fn-menu { position:absolute; bottom:calc(100% + 12px); width:360px; max-width:calc(100vw - 32px); max-height:calc(100vh - 160px); overflow:auto; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0; padding:12px; border-radius:18px; border:1px solid var(--fn-line); background:color-mix(in srgb,var(--fn-surface) 38%,transparent); -webkit-backdrop-filter:blur(7px) saturate(1.4); backdrop-filter:blur(7px) saturate(1.4); box-shadow:0 18px 44px rgba(16,24,40,.24); }
#app .fn .fn-left .fn-menu { left:0; } #app .fn .fn-right .fn-menu { right:0; }
#app .fn .fn-item { display:flex; align-items:center; gap:10px; min-height:46px; margin:0; padding:8px 12px; border-radius:12px; border:1px solid transparent; background:color-mix(in srgb,var(--fn-surface) 64%,transparent); color:var(--fn-ink); font-size:.9rem; font-weight:700; text-align:left; text-decoration:none; position:relative; }
#app .fn .fn-item > span { font-size:1.25rem; line-height:1.2; }
#app .fn .fn-item:hover { background:var(--fn-surface); border-color:var(--fn-line); }
#app .fn .fn-item.on { color:var(--fn-brand); border-color:var(--fn-brand); }
#app .fn .fn-menu .fn-wide { grid-column:1/-1; text-align:center; }
#app .fn .fn-menu .fn-note { grid-column:1/-1; margin:0; font-size:.84rem; color:var(--fn-mute); }
#app .fn .nav-badge { margin-left:auto; padding:0 .45rem; border-radius:99px; background:#dc2626; color:#fff; font-size:.72rem; font-weight:800; }
#app .fn .fn-btn.has-new { position:relative; } #app .fn .fn-btn.has-new::after { content:''; position:absolute; top:6px; right:calc(50% - 18px); width:10px; height:10px; border-radius:50%; background:#dc2626; }
#app .fn [hidden], #app .fn-veil[hidden] { display:none; }

/* in the Trip Desk the footer is the last row of its own screen */
#app .tx .fn { --fn-surface:var(--tx-surface); --fn-ink:var(--tx-ink); --fn-mute:var(--tx-mute); --fn-line:var(--tx-line); --fn-soft:var(--tx-surface-2); --fn-brand:var(--tx-brand); --fn-z:21; }
#app .tx > .fn-veil { z-index:20; }
@media (max-width:699px) { #app .tx .fn, #app .tx > .fn-veil { display:none; } }

/* in the movers screens it stays at the bottom of the window, and what sticks near the bottom stands above it */
#app .frame > .fn { --fn-surface:var(--card,#fff); --fn-ink:var(--ink,#101828); --fn-mute:var(--mute,#667085); --fn-line:var(--line,#e4e7ec); --fn-soft:color-mix(in srgb,var(--ink,#101828) 7%,transparent); --fn-brand:var(--brand,#e8590c); position:fixed; left:0; right:0; bottom:0; box-shadow:0 -8px 20px -14px rgba(0,0,0,.4); }
#app .frame > .fn-veil { z-index:44; }
@media (min-width:601px) {
  #app .frame { padding-bottom:calc(62px + env(safe-area-inset-bottom)); }
  #app .frame .shell { grid-template-columns:minmax(0,1fr); min-height:calc(100vh - 62px); }
  #app .frame .shell main { max-width:none; }
  #app .frame .savebar, #app .frame .mv-foot { bottom:calc(74px + env(safe-area-inset-bottom)); }
  html:has(#app .frame > .fn) #toast { bottom:calc(80px + env(safe-area-inset-bottom)); }
}
@media (min-width:601px) and (max-width:900px) { #app .frame .mv-foot { bottom:calc(62px + env(safe-area-inset-bottom)); } }
@media (min-width:601px) and (max-width:760px) { #app .frame .pb-root .savebar { bottom:calc(70px + env(safe-area-inset-bottom)); } }
@media (max-width:600px) { #app .frame > .fn, #app .frame > .fn-veil { display:none; } }
@media print { #app .fn, #app .fn-veil { display:none !important; } #app .frame { padding-bottom:0; } }
