/* TVS glass controls: frosted pill tab bars with a sliding highlight, and glass buttons, on the
   apps' dark forest green. One file for every app (SHOW TVS, TVS Customer); loaded after each app's
   own CSS so it wins. Works with glass.js, which adds the sliding highlight (.g-ind) to tab bars.
   Canonical copy: tvs-apps/shared/glass.css (copied into each app by its build). */
:root{
  --g-fill:rgba(255,255,255,.055);
  --g-fill-h:rgba(255,255,255,.09);
  --g-edge:rgba(255,255,255,.11);
  --g-edge-h:rgba(255,255,255,.2);
  --g-hi:inset 0 1px 0 rgba(255,255,255,.09);
  --g-drop:0 10px 30px -12px rgba(0,0,0,.55);
  --g-ink:#ece7d8;
  --g-mute:#a3afa6;
  --g-pill:linear-gradient(180deg,rgba(255,255,255,.24),rgba(255,255,255,.11));
  --g-pill-edge:rgba(255,255,255,.3);
  --g-gold:linear-gradient(180deg,rgba(236,220,170,.96),rgba(201,172,102,.94) 60%,rgba(174,143,78,.94));
  --g-gold-ink:#17130a;
  --g-ease:cubic-bezier(.22,1,.36,1);
}

/* ---- tab bars: SHOW TVS .tabs, Customer .cl (page tabs), Customer foreign .tabs (buttons) ---- */
body .tabs,body .cl{
  position:relative;display:flex;align-items:center;gap:2px;padding:4px;
  border:1px solid var(--g-edge);border-radius:999px;overflow:visible;
  background:var(--g-fill);box-shadow:var(--g-hi),var(--g-drop);
  -webkit-backdrop-filter:blur(16px) saturate(140%);backdrop-filter:blur(16px) saturate(140%);
  isolation:isolate;
}
/* one row always; on a narrow phone the bar scrolls sideways instead of wrapping. The vw cap
   matters: without it a phone widens the whole page to fit the bar's natural width. */
body .tabs,body .cl{flex-wrap:nowrap !important;max-width:min(100%,calc(100vw - 32px));min-width:0;flex-shrink:1 !important;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
body .tabs::-webkit-scrollbar,body .cl::-webkit-scrollbar{display:none}
/* a page header laid out by grid would otherwise size its column to the bar's full width */
body .tpbar,body header,body .top{min-width:0;max-width:100%}
@media (max-width:560px){body .cl>a,body .tabs>a,body .tabs>button{padding:7px 12px;font-size:13px;min-height:36px}}
body .tabs>a,body .tabs>button,body .cl>a{
  position:relative;z-index:1;flex:1 0 auto;display:flex;align-items:center;justify-content:center;gap:7px;
  min-height:38px;padding:8px 16px;border:0 !important;border-radius:999px;background:transparent !important;
  color:var(--g-mute);font-weight:600;text-decoration:none;white-space:nowrap;cursor:pointer;
  transition:color .25s var(--g-ease),transform .15s var(--g-ease);
}
body .tabs>a:hover,body .tabs>button:hover,body .cl>a:hover{color:var(--g-ink)}
body .tabs>a:active,body .tabs>button:active,body .cl>a:active{transform:scale(.97)}
body .tabs>a.on,body .tabs>button[aria-selected="true"],body .cl>a.on{color:#fff;font-weight:600}
body .tabs>a:focus-visible,body .tabs>button:focus-visible,body .cl>a:focus-visible{outline:2px solid rgba(230,212,154,.8);outline-offset:1px}
/* the sliding highlight (glass.js); without JS the selected tab gets the same look on its own */
.g-ind{
  position:absolute;z-index:0;top:4px;left:0;width:0;height:calc(100% - 8px);border-radius:999px;pointer-events:none;
  background:var(--g-pill);border:1px solid var(--g-pill-edge);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 6px 16px -6px rgba(0,0,0,.6);
  transition:transform .45s var(--g-ease),width .45s var(--g-ease),height .45s var(--g-ease);
}
html:not(.g-js) body .tabs>a.on,html:not(.g-js) body .tabs>button[aria-selected="true"],html:not(.g-js) body .cl>a.on{
  background:var(--g-pill) !important;box-shadow:inset 0 0 0 1px var(--g-pill-edge),inset 0 1px 0 rgba(255,255,255,.35);
}

/* ---- segmented choices (.seg button groups, .chips) ---- */
body .seg:not(.big){gap:4px;padding:4px;border-radius:999px;background:var(--g-fill);border:1px solid var(--g-edge);box-shadow:var(--g-hi)}
body .seg button,body .chips button{
  border-radius:999px !important;border:1px solid transparent;background:transparent;color:var(--g-mute);
  transition:background-color .25s var(--g-ease),color .25s var(--g-ease),border-color .25s var(--g-ease),transform .15s var(--g-ease);
}
body .seg.big button,body .chips button{background:var(--g-fill);border-color:var(--g-edge);box-shadow:var(--g-hi)}
body .seg button:hover,body .chips button:hover{color:var(--g-ink);background:var(--g-fill-h)}
body .seg button:active,body .chips button:active{transform:scale(.97)}
body .seg button.on,body .seg button[aria-pressed="true"],body .chips button[aria-pressed="true"]{
  background:var(--g-pill);border-color:var(--g-pill-edge);color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 6px 14px -8px rgba(0,0,0,.6);
}

/* ---- buttons ---- */
body .btn,body .filebtn{
  border-radius:999px;border:1px solid var(--g-edge);background:var(--g-fill);color:var(--g-ink);
  box-shadow:var(--g-hi),0 6px 18px -12px rgba(0,0,0,.6);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  transition:background-color .2s var(--g-ease),border-color .2s var(--g-ease),transform .15s var(--g-ease),box-shadow .2s var(--g-ease);
}
body .btn:hover,body .filebtn:hover{background:var(--g-fill-h);border-color:var(--g-edge-h)}
body .btn:active,body .filebtn:active{transform:scale(.97)}
/* the one main action on a screen: gold glass */
body .btn.pri,body button.primary{
  background:var(--g-gold);color:var(--g-gold-ink);border:1px solid rgba(255,244,214,.55);border-radius:999px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),inset 0 -1px 0 rgba(120,90,30,.25),0 8px 20px -10px rgba(201,172,102,.55);
}
body .btn.pri:hover,body button.primary:hover{filter:brightness(1.05)}
body .btn.link,body button.link{background:none;border-color:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;white-space:normal;text-align:left}
body .btn:disabled,body button:disabled{opacity:.5;transform:none}

@media (prefers-reduced-motion:reduce){
  .g-ind,body .tabs>*,body .cl>*,body .btn,body .seg button{transition:none !important}
}
