/* ==================== Veyora UI: the shell's look (design language, phase 2) ====================
   The header js/vx-shell.js draws, for both shell types (plan:
   docs/plans/samlpeerceo-feat-design-language.md, phase 2):

     .vx-header--shop   the shop and the agent desk keep the black header of the
                        brand frame (css/brand-frame.css); nothing to add here yet.
     .vx-header--admin  the admin's pages: a white header, the Ask bar in the
                        middle (js/staff-topbar.js), ink icons.

   The bar's layout stays in css/staff-topbar.css; its colours are here, and
   only here. Colours from the tokens (css/veyora-ui.css). Loaded last, after
   the brand frame and the staff bar, so the header is drawn in one place. The
   EU site takes this file as ui-base/veyora-shell.css. */

/* ---------- the admin's header: white, a hairline under it ---------- */
.topbar.vx-header--admin{background:var(--vx-white);color:var(--vx-ink);border-bottom:1px solid var(--vx-hairline);box-shadow:none}

/* Icons: ink, a mist circle on hover. */
.topbar.vx-header--admin .stb-icon,
.topbar.vx-header--admin .icon-btn.stb-icon{color:var(--vx-ink)}
.topbar.vx-header--admin .stb-icon:hover,
.topbar.vx-header--admin .stb-icon[aria-expanded="true"]{background:var(--vx-mist);color:var(--vx-ink)}
.topbar.vx-header--admin .stb-choice,
.topbar.vx-header--admin .stb-choice:hover,
.topbar.vx-header--admin .stb-choice[aria-expanded="true"]{color:var(--vx-ink)}
.topbar.vx-header--admin .stb-round{border-color:var(--vx-hairline);color:var(--vx-ink)}
.topbar.vx-header--admin .stb-round:hover,
.topbar.vx-header--admin .stb-round[aria-expanded="true"]{background:var(--vx-mist);border-color:var(--vx-ink)}
.topbar.vx-header--admin .stb-icon:focus-visible,
.topbar.vx-header--admin .stb-round:focus-visible{outline:2px solid var(--vx-ink);outline-offset:2px}
.topbar.vx-header--admin .stb-caret{color:var(--vx-stone)}
.topbar.vx-header--admin .stb-region-btn .vmode-flag-svg{box-shadow:0 0 0 1px var(--vx-hairline)}

/* The bell: an ink count on the white bar (the US bar's .notif-bell, the EU
   admin's .bell-btn). A critical one keeps its red, set after this file. */
.topbar.vx-header--admin .bell-btn{color:var(--vx-ink)}
.topbar.vx-header--admin .bell-btn:hover{background:var(--vx-mist)}
.topbar.vx-header--admin .bell-badge{background:var(--vx-ink);color:var(--vx-white)}
.topbar.vx-header--admin .badge{background:var(--vx-ink);color:var(--vx-white)}
.topbar.vx-header--admin .icon-btn.notif-bell.has-unread{color:var(--vx-ink)}
.topbar.vx-header--admin .icon-btn.notif-bell.has-unread::after{background:var(--vx-ink);box-shadow:0 0 0 2px var(--vx-white)}

/* The seven places: stone words, the one you are in ink and underlined. */
.topbar.vx-header--admin .stb-tab{color:var(--vx-stone)}
.topbar.vx-header--admin .stb-tab:hover{color:var(--vx-ink)}
.topbar.vx-header--admin .stb-tab.active{color:var(--vx-ink);font-weight:600;border-bottom-color:var(--vx-ink)}
.topbar.vx-header--admin .stb-tab:focus-visible{outline:2px solid var(--vx-ink);outline-offset:-2px}

/* The person: a black circle with their initials. */
.topbar.vx-header--admin .stb-avatar{background:var(--vx-ink);color:var(--vx-white)}
.topbar.vx-header--admin .stb-avatar:hover,
.topbar.vx-header--admin .stb-avatar[aria-expanded="true"]{background:var(--vx-black)}
.topbar.vx-header--admin .stb-avatar:focus-visible{outline:2px solid var(--vx-ink);outline-offset:2px}
/* the quick-create "+": outlined in ink, filled on hover and while its list is open */
.topbar.vx-header--admin .stb-create{background:transparent;border-color:var(--vx-ink);color:var(--vx-ink)}
.topbar.vx-header--admin .stb-create:hover,
.topbar.vx-header--admin .stb-create[aria-expanded="true"]{background:var(--vx-ink);color:var(--vx-white)}
.topbar.vx-header--admin .stb-create:focus-visible{outline:2px solid var(--vx-ink);outline-offset:2px}
.topbar.vx-header--admin .stb-pop kbd.stb-item-code{border-color:var(--vx-admin-line);color:var(--vx-admin-muted)}

/* The Ask bar's key. */
.topbar.vx-header--admin .stb-kbd{border-color:var(--vx-hairline);background:var(--vx-white);color:var(--vx-stone)}

/* The Ask bar: a mist field, the Ask mark at its start, ink words. */
.topbar.vx-header--admin .stb-search-ico{color:var(--vx-ink)}
.topbar.vx-header--admin .stb-search-input{border:1px solid var(--vx-hairline);background:var(--vx-mist);color:var(--vx-ink)}
.topbar.vx-header--admin .stb-search-input::placeholder{color:var(--vx-stone);opacity:1}
.topbar.vx-header--admin .stb-search-input:hover{border-color:var(--vx-stone)}
.topbar.vx-header--admin .stb-search-input:focus{border-color:var(--vx-ink);background:var(--vx-white);box-shadow:0 0 0 3px var(--vx-mist)}
.topbar.vx-header--admin .stb-search-input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;width:14px;height:14px;cursor:pointer;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/14px no-repeat}

/* Its last choice: ask Veyora. */
.topbar.vx-header--admin .stb-opt-ask .stb-opt-title{display:flex;align-items:center;gap:8px}
.topbar.vx-header--admin .stb-opt-ask svg{flex:none;width:16px;height:16px;color:var(--vx-ink)}

/* The clear cross has its own room at the end of the field. */
.topbar.vx-header--admin .stb-search-input{padding-inline-end:64px}
.topbar.vx-header--admin .stb-search-box:focus-within .stb-search-input{padding-inline-end:34px}

/* A smaller computer and a tablet held sideways (901 to 1200 wide): the Ask bar
   keeps its words, narrower, so the places keep their room (Sam, 11 Nov 2026:
   a magnifier with no words is not found). */
@media (min-width:901px){
  /* The places keep their room on every computer; the Ask bar is the one that narrows. */
  .topbar.vx-header--admin .stb-tabs{flex-shrink:0}
}
@media (min-width:901px) and (max-width:1200px){
  .topbar.vx-header--admin .stb-search{flex:0 1 240px;min-width:150px;margin:0 4px;margin-inline-start:auto}
  .topbar.vx-header--admin .stb-search-input{padding-inline-end:14px}
}

/* A phone and a tablet held upright (up to 900 wide): the Ask bar is a full-width
   bar under the top bar, with its words, one tap to open, as on a computer (Sam,
   11 Nov 2026). The header is two rows: the wordmark, the bell and the person,
   then the Ask bar. The page scrolls under the header, so nothing else moves. */
@media (max-width:900px){
  .topbar.vx-header--admin{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:56px auto;align-items:center;
    height:auto;column-gap:4px;row-gap:0;padding-bottom:10px}
  /* The wordmark is its own width: a press on the empty row beside it does not go home. */
  .topbar.vx-header--admin .stb-logo{grid-column:1;grid-row:1;justify-self:start;min-height:44px}
  .topbar.vx-header--admin .stb-side-end{grid-column:2;grid-row:1}
  .topbar.vx-header--admin .stb-search{grid-column:1 / -1;grid-row:2;flex:none;width:100%;margin:0}
  .topbar.vx-header--admin .stb-search-box{max-width:none}
  .topbar.vx-header--admin .stb-search-input{height:44px;padding-inline:40px 14px;font-size:16px}
  .topbar.vx-header--admin .stb-search-box:focus-within .stb-search-input{padding-inline-end:34px}
  .topbar.vx-header--admin .stb-search-ico{inset-inline-start:14px}
}

/* The admin's pages on a computer: the seven places replace the menu at the
   side, which opens from the person's menu (All pages). */
@media (min-width:901px){
  body:not(.vx-all-pages) .app-shell.is-admin.has-spaces > .vsp-side{display:none}
  body:not(.vx-all-pages) .app-shell.is-admin.has-spaces > .app-body,
  body:not(.vx-all-pages) .app-shell.is-admin.has-spaces > .present-bar,
  body:not(.vx-all-pages) .app-shell.is-admin.has-spaces > .acting-bar{margin-left:0;margin-right:0}
}
