/* Layout for the Supplier Platform and the team panel: sidebar on wide screens, scrolling tab strip on phones. */
body.panel { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #fff; padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.side .brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.1rem; padding: 4px 10px 4px; color: #fff; text-decoration: none; }
.side .sub { font-size: .82rem; opacity: .7; padding: 0 10px 16px 36px; }
.side a.nav { display: flex; justify-content: space-between; align-items: center; color: #dbe9eb; text-decoration: none; padding: 9px 10px; border-radius: 8px; font-weight: 600; }
.side a.nav:hover { background: rgba(255,255,255,.08); }
.side a.nav[aria-current="page"] { background: var(--teal); color: #fff; }
.side a.nav .count { background: var(--amber); color: #1d1300; border-radius: 99px; font-size: .75rem; padding: 0 .5em; min-width: 1.6em; text-align: center; }
.side .foot { margin-top: auto; padding: 12px 10px 0; font-size: .85rem; opacity: .85; }
.side .foot button { background: none; border: 0; color: #fff; font: 600 .9rem "Barlow", sans-serif; padding: 6px 0; cursor: pointer; text-decoration: underline; }
.drop { width: 18px; height: 18px; border-radius: 50% 50% 50% 0; background: var(--water); transform: rotate(-45deg); display: inline-block; flex: none; }
.content { padding: 28px clamp(16px, 3vw, 40px) 60px; max-width: 1180px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.page-head h1 { margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem; text-decoration: none; color: var(--ink); display: block; }
a.tile:hover { border-color: var(--teal); }
.tile b { display: block; font-size: 1.6rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tile span { color: var(--ink-soft); font-size: .9rem; }
.tile.alert { border-color: var(--amber); background: var(--amber-wash); }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.filters .field { margin: 0; min-width: 160px; }
.doc-row { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--line); }
.doc-row:first-of-type { border-top: 0; }
.doc-row .meta { font-size: .85rem; color: var(--ink-soft); }
.subject { margin-bottom: 1.2rem; }
.temp-pass { font-size: 1.6rem; font-weight: 700; letter-spacing: .06em; background: var(--mist); border-radius: var(--r-sm); padding: .4rem .8rem; display: inline-block; font-variant-numeric: tabular-nums; user-select: all; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(480px, 100%); }
.auth-card .brand-big { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.4rem; margin-bottom: 1rem; }
.preview { max-width: 100%; max-height: 42vh; object-fit: contain; border-radius: var(--r-sm); border: 1px solid var(--line); display: block; margin: 0 auto 1rem; }
.json { white-space: pre-wrap; font-size: .82rem; background: var(--mist); padding: .5rem; border-radius: 6px; margin: .3rem 0 0; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  body.panel { grid-template-columns: 1fr; }
  .side { position: sticky; z-index: 600; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 8px; gap: 4px; }
  .side .brand { padding-right: 12px; } .side .sub { display: none; }
  .side a.nav { white-space: nowrap; padding: 8px 10px; }
  .side .foot { margin: 0; padding: 0 0 0 8px; white-space: nowrap; }
  .content { padding-top: 18px; }
}
.loading-note { padding: 24px; }
