/*
 * layout.css — left-sidebar shell for the Omni dashboard.
 *
 * Ben's page was built as a single scrolling column with a horizontal nav
 * ribbon at the top. layout.js relocates the brand + the Home/Modules nav into
 * a fixed left panel; these rules lay that panel out and restyle the moved nav
 * buttons as a vertical menu. The dashboard content keeps all its own styling.
 */

/* two-column frame: [sidebar][main] */
#eu-root {
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

/* main content column (Ben's .bp) */
#eu-root > .bp {
  flex: 1 1 auto;
  min-width: 0;
  padding: 22px 28px 60px;
  max-width: 1280px;
}

/* ── the left panel ───────────────────────────────────────────── */
.eu-side {
  flex: none;
  width: 248px;
  min-height: 100vh;
  position: sticky;
  top: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  background: var(--color-panel);
  border-right: 1px solid var(--color-border-line);
}

/* brand block: logo on top, title just below */
.eu-side .eu-brand img {
  height: 34px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
}
.eu-side .eu-title {
  margin-top: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--color-fg-muted);
}
.eu-side .eu-tag {
  margin: 6px 0 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--color-fg-muted);
}

/* decent space, then the nav */
.eu-nav {
  margin-top: 26px;
  flex: 1 1 auto;
  overflow-y: auto;
}

/* group labels ("Home", "Modules") that the draws emit as span.rl */
.eu-nav .rl {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-fg-muted);
  margin: 16px 2px 6px;
}
.eu-nav > [data-draw]:first-child .rl { margin-top: 0; }

/* stack the nav buttons full-width */
.eu-nav [data-draw] { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
.eu-nav .nb {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  margin: 2px 0;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.3;
}

/* footer: logout pinned to the bottom */
.eu-side-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--color-border-line); }
.eu-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid var(--color-border-line);
  border-radius: 8px;
  background: transparent;
  color: var(--color-fg-muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.eu-logout:hover { color: #b91c1c; border-color: #fca5a5; background: #fef2f2; }
.eu-logout svg { flex: none; }

/* the content's old brand header is now redundant */
#newnav .hbrand { display: none; }

/* responsive: collapse the sidebar above the content on narrow screens */
@media (max-width: 860px) {
  #eu-root { display: block; }
  .eu-side { width: auto; min-height: 0; position: static; border-right: 0; border-bottom: 1px solid var(--color-border-line); }
  .eu-nav [data-draw] { flex-direction: row; flex-wrap: wrap; }
  .eu-nav .nb { width: auto; }
  #eu-root > .bp { max-width: none; }
}
