/* The shell of a signed-in Expense page, shared by the Expense UI and the Support App (step 65): the header and its name menu, the chevron,
   the signed-in page and its three areas, the title line and its places menu, the label-and-value rows, the notice and the wide button.
   Moved word for word, in their order, out of src/ui/Ui/wwwroot/ui.css; their comments keep the steps that made them. Loaded after the
   shared look and before a page's own rules. Colours are the look's variables, so dark follows. */
button.wide { width: 100%; min-height: 52px; font-size: 16px; }
.rows {
  display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; padding-top: 12px; margin: 0 0 24px; font-size: 14px;
}
.rows code { font-size: 13px; color: var(--muted); word-break: break-all; }
.notice { margin: 0 0 16px; }
.notice code { font-size: 13px; color: var(--muted); display: block; word-break: break-all; }
/* The user menu (step 43), from tmp/user-menu-reference.html. Colours from the shared look's variables, so dark follows. */
.header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.header h1 { margin: 0; flex: none; }
button.menubutton {
  display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 36px; padding: 0; border: 0; border-radius: 6px;
  background: transparent; color: var(--umber); font-size: 16px; line-height: 24px; font-weight: 400;
}
.menuname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The chevron, the reference's 14px down-pointing stroke drawn with two borders: down when closed, up when open. */
.chevron { flex: none; position: relative; width: 14px; height: 14px; }
.chevron::before {
  content: ""; position: absolute; left: 4px; top: 2.5px; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; border-radius: 0 0 1px 0; transform: rotate(45deg);
}
.menubutton.open .chevron::before { top: 5.5px; transform: rotate(-135deg); }
/* Step 60: the menu's 16px side padding is on each of its lines, not on the menu, so the company list's rows reach both edges. Every line of
   text starts where it started before. Step 61: the menu ends 17px right of the column (its 1px border and a line's 16px padding), so
   Sign out ends on the column's edge, under the end of the name, and the box overhangs the column and a card under it by that much. */
.menu {
  position: absolute; top: calc(100% + 8px); right: -17px; z-index: 1; width: 260px; max-width: 100%;
  background: var(--card); border: 1px solid var(--float-line); border-radius: 0; padding: 16px 0; box-shadow: var(--shadow-menu);
  display: flex; flex-direction: column; gap: 12px;
}
.menu[hidden] { display: none; }
.menu button.out { margin: 4px 16px 0; width: calc(100% - 32px); min-height: 44px; padding: 0 18px; font-size: 14px; }
/* The signed-in page (step 45): the whole window at every width, the card colour to every edge, no ground, no visible border (the
   look's 1px border kept, transparent, so the title sits 41px in, as on the pages before sign-in; fix 01), no rounded corners, at least as tall as the window, 40px padding at the sides and bottom. The header line is the same at every width: 40px above,
   16px under. The pinned-card screens never carry .signedin. */
body:has(> main.signedin) { padding: 0; background: var(--card); }
main.signedin {
  max-width: none; min-height: 100vh; min-height: 100dvh; border-color: transparent; border-radius: 0; padding: 0 40px 40px;
  display: flex; flex-direction: column;
}
.signedin > .top > .header { padding-top: 40px; }
/* The wide layout (step 44, revised in step 45), from 1200px: the main column and the detail pane in the golden ratio, 40px apart,
   with no dividing lines. Below 1200px the page draws no columns. Step 58: the title row in the top and the two panels under it are the
   same two columns, so each line is as wide as its panel. */
@media (min-width: 1200px) {
  .signedin .titles, .signedin > .panels { display: grid; grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr); column-gap: 40px; }
}
/* Places (step 46), from tmp/places-reference.html: the page's title is the navigation. The title line is the first line under the header
   when a company is chosen, at every width; the menu hangs from the title and is never wider than the column. Step 57: the menu starts 13px
   left of the title (its 1px border and a place's 12px padding), so the text in it starts in line with the title's text, and it overhangs the
   column by that much. */
.titleline { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 13px; min-height: 36px; }
/* Step 55, from tmp/open-card-reference.html: the line under a panel's title belongs to the title row, 12px under it, on every place. It is
   drawn in the row's bottom margin, so the row's own box, and the places menu that hangs from it, are where they were. What sits under the
   line sets its own gap: a list of rows none, a sentence 12px, the Orgs drop box 24px, the Orgs tree and its count line 12px. The gaps are
   padding, because from 1200px the column is a block and a margin would fold into the row's. Step 63: the line is drawn in the page's own
   colour, var(--card), so it cannot be seen and the page reads as one sheet. It keeps its height and its place, so nothing moves, and the
   shadow under it (step 58) still shows when the panel is scrolled. */
.titleline::after { content: ""; position: absolute; left: 0; right: 0; bottom: -13px; height: 1px; background: var(--card); }
.top:has(> .titles) + .panels .column > .notice:first-child { padding-top: 12px; }
button.placebutton {
  display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 36px; padding: 0; border: 0; border-radius: 6px;
  background: transparent; color: var(--ink); font-size: 20px; line-height: 28px; font-weight: 400; text-align: left;
}
.placebutton .chevron { color: var(--muted); }
.placebutton.open .chevron::before { top: 5.5px; transform: rotate(-135deg); }
.placemenu {
  position: absolute; top: calc(100% + 8px); left: -13px; z-index: 1; width: 320px; max-width: 100%;
  background: var(--card); border: 1px solid var(--float-line); border-radius: 0; padding: 8px 0; box-shadow: var(--shadow-menu);
  display: flex; flex-direction: column; gap: 2px;
}
.placemenu[hidden] { display: none; }
.placecompany { padding: 6px 12px 4px; font-size: 12px; line-height: 18px; color: var(--muted); }
.placemenu a.place { display: block; padding: 10px 12px; border-radius: 0; text-decoration: none; color: var(--ink); }
.placemenu a.place.on { background: var(--chosen); box-shadow: inset 3px 0 0 var(--umber-dark); }
.placemenu a.place:focus-visible { outline: 2px solid var(--umber-dark); outline-offset: -2px; }
/* Step 56: a place's name in the menu is set as the title above it, and a long one wraps inside the menu. Step 62: 18px on 26px, where the
   title stays 20px on 28px. Chosen by eye: type inside a box reads larger, so the list is set smaller to look the title's size. */
.place .name { display: block; font-size: 18px; line-height: 26px; font-weight: 400; overflow-wrap: anywhere; }
.place .placeline { display: block; font-size: 14px; line-height: 21px; color: var(--muted); }
.paneline { position: relative; margin: 8px 0 13px; min-height: 36px; }
