/* BDS-01 Prototype: the places of the parts (js/slots.js) and the edges of the shell (lead's file, 20 Nov 2026).
   1 the row of tabs of a screen: it wraps onto more lines, it never slides   2 the area a part is drawn in
   3 the top bar: eight tabs on one line where they fit, on a second line where they do not; on a phone the row slides by
     finger and an arrow at each end says that there is more   4 page bars that take a second line instead of losing their end
   5 strips that keep one line: an arrow at each end   6 a person's picture in an avatar   7 pages outside the sign-in
   Colours only from the variables of app.css and one.css. */

/* ---------- 1 the row of tabs ---------- */
.sl-tabs{--sl-h:36px;display:flex;flex-wrap:wrap;align-items:stretch;gap:0 4px;min-width:0;padding:0 24px;background-color:var(--surface);
  background-image:repeating-linear-gradient(to bottom,transparent 0,transparent calc(var(--sl-h) - 1px),var(--line) calc(var(--sl-h) - 1px),var(--line) var(--sl-h))}
.sl-tabs[hidden]{display:none}
.sl-tab{display:inline-flex;align-items:center;gap:6px;flex:none;height:var(--sl-h);padding:0 12px;border:0;border-radius:6px 6px 0 0;background:none;font:inherit;font-size:14px;line-height:1.2;color:var(--ink-2);white-space:nowrap;cursor:pointer;text-decoration:none}
.sl-tab:hover{color:var(--ink);box-shadow:inset 0 -3px 0 var(--line-2)}
.sl-tab[aria-selected="true"]{color:var(--ink);font-weight:700;box-shadow:inset 0 -3px 0 var(--orange);cursor:default}
.sl-tab:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
/* the bold of the chosen tab is given its room in every tab, so choosing one never moves the others */
.sl-l{display:inline-grid}
.sl-l::after{content:attr(data-t);grid-area:1/1;height:0;overflow:hidden;visibility:hidden;font-weight:700}
.sl-go{width:10px;height:10px;flex:none;color:var(--muted)}
.sl-tab:hover .sl-go{color:var(--ink-2)}
@media (max-width:760px){
  .sl-tabs{--sl-h:44px;padding:0 8px;gap:0}
  .sl-tab{padding:0 10px}
}

/* ---------- 2 the area a part is drawn in ---------- */
.sl-host{min-width:0;position:relative}
.sl-host[hidden]{display:none}
.sl-part{min-width:0;min-height:100%}
.sl-host[aria-busy="true"]{min-height:120px}
.sl-host[aria-busy="true"]::before{content:"";position:absolute;left:0;top:0;width:28%;height:2px;background:var(--orange);opacity:0;animation:sl-wait 1.1s ease-in-out .25s infinite alternate}
@keyframes sl-wait{from{opacity:1;transform:translateX(0)}to{opacity:1;transform:translateX(257%)}}

/* ---------- 3 the top bar ---------- */
.top .ct{background:#0087FF;color:#FFFFFF;font-weight:700;font-size:12px;border-radius:9px;padding:0 6px;line-height:18px}
.top .vt-more{display:none}
@media (min-width:761px){
  /* main.js measures the bar: when its entries do not fit on one line, the tabs take a line of their own (and wrap there if they must) */
  .top.two{flex-wrap:wrap;height:auto;align-content:flex-start;row-gap:0}
  .top.two .appid{align-self:auto;height:44px}
  .top.two .vtabs{order:9;flex:1 0 calc(100% + 24px);flex-wrap:wrap;align-self:auto;margin:0 -12px;padding:0 6px;box-shadow:inset 0 1px 0 rgba(255,255,255,.14)}
  .top.two .vtabs a{height:34px}
}
@media (max-width:760px){
  /* the row slides by finger; an arrow at an end says that there is more that way and brings it in */
  .top .vt-more:not([hidden]){display:grid}
  .top .vt-more{position:absolute;bottom:0;z-index:2;width:38px;height:40px;place-items:center;padding:0;border:0;color:#fff;cursor:pointer}
  .top .vt-more svg{width:14px;height:14px}
  .top .vt-more.l{left:0;background:linear-gradient(to right,var(--navy) 62%,rgba(12,24,68,0))}
  .top .vt-more.r{right:0;background:linear-gradient(to left,var(--navy) 62%,rgba(12,24,68,0))}
  .top .vt-more.r svg{transform:scaleX(-1)}
  .top .vt-more:focus-visible{outline:2px solid #fff;outline-offset:-3px}
}

/* ---------- 4 page bars: a second line instead of an end that is cut off (desktop; each screen has its own phone rules) ---------- */
@media (min-width:761px){
  .g.v-sheet .pbar.pbar,.g.kb .pbar.pbar,.g.gm .pbar.pbar,.g.v-dash .pbar.pbar,.g.v-clients .pbar.pbar,.g.v-stages .pbar.pbar{height:auto;min-height:56px;flex-wrap:wrap;row-gap:6px;padding-top:8px;padding-bottom:8px}
  .g.v-clients .pbar.pbar h1{min-width:0;overflow:hidden;text-overflow:ellipsis}
}

/* ---------- 5 strips that keep one line ---------- */
.sl-strip{scrollbar-width:none}
.sl-strip::-webkit-scrollbar{display:none}
.sl-arrow{flex:none;display:grid;place-items:center;width:26px;padding:0;border:0;background:var(--surface);color:var(--ink-2);cursor:pointer}
.sl-arrow[hidden]{display:none}
.sl-arrow svg{width:11px;height:11px}
.sl-arrow.l{box-shadow:inset -1px 0 0 var(--line)}
.sl-arrow.r{box-shadow:inset 1px 0 0 var(--line),inset -1px 0 0 var(--line)}
.sl-arrow.r svg{transform:scaleX(-1)}
.sl-arrow:hover{color:var(--ink);background:var(--bg)}
.sl-arrow:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}

/* ---------- 6 a person's picture: over the initials, which stay when the picture does not arrive ---------- */
.av.pic{position:relative;overflow:hidden}
.av.pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}

/* ---------- 7 outside the sign-in: #/portal/<token>, #/shared/<token> ---------- */
#outside{position:fixed;inset:0;overflow:auto;background:var(--bg);color:var(--ink)}
#outside[hidden]{display:none}
body[data-outside] .top,body[data-outside] #main,body[data-outside] #signin{display:none}
