/* Partner Hub test copy: only what the shared shell (nr-shell.css) does not already give. Tokens come from the shell.
   Sizes and spacing below are taken from the schedule site's own stylesheet (schedule-dop r35b11 app.css), so the
   sign-in page, tables, headings and empty boxes match the other Next Round sites. */

.test-flag { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; margin-right: 16px; white-space: nowrap; }

/* The Portal tab: the real portal fills the sheet edge to edge. */
.sheet.sheet-portal { padding: 0; overflow: hidden; display: flex; min-height: 0; }
#portal-frame { border: 0; width: 100%; height: calc(100vh - var(--top-h) - 10px); height: calc(100dvh - var(--top-h) - 10px); min-height: 480px; display: block; background: #f3f3f3; color-scheme: light; }   /* the portal's own page ground; the portal has no dark mode */

/* Top left: the company's logo (or its name until a logo file exists), "Powered by Next Round" under it. */
.side .brand a { display: block; text-decoration: none; border-radius: 8px; }
.side .brand .nr-mark-link { display: none; }   /* the Next Round mark shows on the folded rail (and on phones when a company has no logo) */
.side .brand .co-brand { display: block; }
.side .brand-row { justify-content: center; }   /* the logo block is centered; the fold icon sits in the "Trade-ins" row below */
.side .brand { min-width: 0; margin: 0 auto; text-align: center; }
/* The logo always keeps the same box (6px all round, 8px corners) whether or not a plate shows behind it, so light and
   dark lay out identically; only the plate color changes. */
.side .brand .co-logo { display: block; max-width: 168px; max-height: 56px; width: auto; height: auto; margin: 0 auto; padding: 6px; border-radius: 8px; box-sizing: content-box; }
.side .brand .co-name { display: block; font: 600 18px/1.2 var(--font-head); letter-spacing: -0.02em; color: var(--ink); overflow-wrap: anywhere; }
/* The official "Powered by Next Round" artwork (two files from Cavin, Nov 12, 2026), shown whole and unedited. */
.side .powered { padding: 0 8px; margin: -4px 0 6px; display: flex; justify-content: center; }
.side .powered-logo { width: 144px; height: auto; display: block; }   /* 75% of the first size (192px), centered under the company logo */
/* Each company logo is tagged for the ground it was drawn for: tan (dark lettering) or green (light lettering).
   When the sidebar is the other ground, the logo sits on a small plate of its own ground; when they match, no plate.
   The two plate colors are written out (tan #FAF8F3, dark green #1E3B33) because the shell's tokens swap in dark mode
   and a plate must keep its own color in both. */
:root[data-theme="dark"] .side .brand .co-logo[data-ground="tan"] { background: #FAF8F3; }
:root[data-theme="light"] .side .brand .co-logo[data-ground="green"] { background: #1E3B33; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .side .brand .co-logo[data-ground="tan"] { background: #FAF8F3; } }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .side .brand .co-logo[data-ground="green"] { background: #1E3B33; } }
:root[data-theme="dark"] .powered-logo { content: url("brand/powered-by-next-round-dark.png"); }
:root[data-theme="dark"] .signin-logo { content: url("shell/logo-dark.png"); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .powered-logo { content: url("brand/powered-by-next-round-dark.png"); }
  :root:not([data-theme="light"]) .signin-logo { content: url("shell/logo-dark.png"); }
}
/* Folded rail and the phone top row: the company's logo stays, small; the Next Round mark shows only when the
   company has no logo file. The wide "Powered by" artwork does not fit there (the portal's own header carries it). */
@media (min-width: 701px) {
  html[data-side="rail"] .side .powered, html[data-side="rail"] .side .co-name { display: none; }
  /* folded: logo, Next Round mark and fold icon in one centered column with even 12px steps */
  html[data-side="rail"] .side .brand-row { margin-bottom: -2px; }   /* the fold icon is 18px inside a 44px button: its own 13px of air is the step */
  html[data-side="rail"] .side .brand { display: flex; flex-direction: column; align-items: center; gap: 12px; }
  html[data-side="rail"] .side .brand .nr-mark-link { display: block; }
  html[data-side="rail"] .side .brand .co-logo { max-width: 36px; max-height: 36px; }
  html[data-side="rail"] .side .brand .co-logo[data-ground] { padding: 4px !important; border-radius: 6px !important; }   /* beats the full-size box above: 36 + 4 + 4 = the rail's 44px */
  html[data-side="rail"] .side .brand img.mark { margin: 0; }   /* the Next Round mark stays, under the company logo */
}
@media (max-width: 700px) {
  .side .powered, .side .co-name { display: none; }
  .side .brand .co-logo { max-width: 96px; max-height: 32px; }
  .side .brand .co-logo[data-ground] { padding: 2px !important; border-radius: 6px !important; }   /* beats the full-size plate padding above */
  .side .brand:has(.co-logo) img.mark { display: none; }
  .side .brand:not(:has(.co-logo)) .nr-mark-link { display: block; }
}

/* Page content: the schedule site's headings, data table and empty box. */
.sheet h1 { font-size: 24px; margin: 0 0 4px; }
.sheet h2 { font-size: 20px; margin: 28px 0 10px; }
.sheet .muted { margin: 0 0 20px; }
.state { margin: 0; padding: 40px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink2); text-align: center; }
.state a { color: inherit; }



@media (max-width: 899px) { .test-flag { margin-right: 8px; } }
/* Phones: the signed-in name stays on one line; the test label gives way first. */
.topbar .who { white-space: nowrap; min-width: 0; }
.topbar .who strong, .topbar .who small { overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
@media (max-width: 480px) { .topbar .test-flag { display: none; } .state { padding: 24px 16px; } }
@media (max-width: 700px) { #portal-frame { height: calc(100vh - 160px); height: calc(100dvh - 160px); } }

/* Sign-in page: the same layout as the schedule site's sign-in (a plain column near the top, no card). */
.signin[hidden], .app[hidden] { display: none; }
.signin { min-height: calc(100vh - 34px); min-height: calc(100dvh - 34px); display: flex; align-items: flex-start; justify-content: center; padding: 72px 16px 40px; }
.signin-card { width: 100%; max-width: 420px; }
.signin-logo { width: 156px; height: auto; display: block; margin-bottom: 40px; }
.signin-card h1 { font-size: 28px; margin: 0; }
.signin-lede { color: var(--ink2); font-size: 15px; line-height: 1.5; margin: 8px 0 28px; }
.signin-card label { display: block; font-size: 13px; color: var(--ink2); margin: 0 0 6px; }
.signin-card input { width: 100%; min-height: 44px; font-size: 16px; padding: 0 12px; margin-bottom: 18px; }
.signin-card button { width: 100%; justify-content: center; min-height: 44px; font-size: 15px; margin-top: 4px; }
.signin-card button:disabled { cursor: not-allowed; }
.signin-error { min-height: 20px; margin: 10px 0 0; font-size: 13px; font-weight: 500; color: var(--ink); }
.signin-help { margin: 14px 0 0; font-size: 13px; color: var(--ink2); }
.signin-help a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.signin-help .test-flag { margin: 0; display: inline-block; }

/* Sub-links under Portal: the portal's own quote lists and account settings, pressed from our sidebar. */
.side a.nav.sub { padding-left: 24px; }
/* The gap before Account Settings: a group break with no label (a short line on the folded rail, like the others). */
.side .grp.grp-gap { padding: 10px 8px 0; min-height: 0; }
.side .nav-note { margin: 0; padding: 0 8px; font-size: 12px; color: var(--ink2); }
.side .nav-note:empty { display: none; }
@media (min-width: 701px) { html[data-side="rail"] .side a.nav.sub { padding-left: 0; } html[data-side="rail"] .side .nav-note { display: none; } }
@media (max-width: 700px) { .side a.nav.sub { padding-left: 8px; } }
/* The fold button: icon only, in the "Trade-ins" label row, at the right edge of the sidebar, under the
   Powered by logo (Cavin, Nov 12, 2026). Same button, same shell script; no words. */
.side .grp-row { display: flex; align-items: flex-end; justify-content: space-between; }
.side .grp-row .grp { flex: 1; }
.side .nr-fold.fold-mini { width: 32px; height: 32px; min-height: 32px; margin: 0 0 0 4px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; }
.side .nr-fold.fold-mini svg { width: 16px; height: 16px; }
@media (min-width: 701px) {
  /* folded: the icon sits where the row was, centered on the rail, above the short divider line */
  html[data-side="rail"] .side .grp-row { flex-direction: column-reverse; align-items: center; }
  html[data-side="rail"] .side .grp-row .grp { flex: none; }
  html[data-side="rail"] .side .nr-fold.fold-mini { width: 44px; height: 44px; min-height: 44px; margin: 0; }
  html[data-side="rail"] .side .nr-fold.fold-mini svg { width: 18px; height: 18px; }
}
/* Folded rail: the active link keeps its own fill under the mouse. In the shared shell the rail's hover fill wins over
   the active fill while the icon keeps the active color, so the icon vanished (seen by Cavin, Nov 12, 2026). */
@media (min-width: 701px) and (hover: hover) { html[data-side="rail"] .side a.nav.on:hover { background: var(--ink); } }
/* Phones have no folding (one top row), as on the other sites: the fold icon and its label row are not shown. */
@media (max-width: 700px) { .side .grp-row, .side .nr-fold.fold-mini { display: none; } }
