/* /Layout/MainLayout.razor.rz.scp.css */
/* The hamburger drives BOTH the mobile off-canvas drawer (<768px) and the desktop collapsible sidebar
   (>=768px), so it's visible on every width. (The .app-sidebar--drawer / .app-sidebar-backdrop behaviour
   itself lives in the shared design system, media-gated to <768px.) */
.sidebar-toggle[b-ytbd1g486r] {
    display: inline-flex;
    align-items: center;
}

/* Desktop only: collapse the sidebar out of the flow so the content spans the full width. On mobile the
   sidebar is an off-canvas drawer instead (governed by .is-open), so this must not apply there. */
@media (min-width: 768px) {
    .app-sidebar.is-collapsed[b-ytbd1g486r] {
        display: none;
    }
}

/* Status bar — a thin, fixed footer that bookends the dark top bar and stays put while content scrolls. */
.app-statusbar[b-ytbd1g486r] {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    height: 24px;
    padding: 0 0.85rem;
    background: var(--topbar);
    color: #cbd5e1;
    font-size: 0.68rem;
    line-height: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;   /* hard stop: never let items run off-screen */
}
.app-statusbar__group[b-ytbd1g486r] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 0;
}
/* Long values (company / roles / user) shrink and ellipsis instead of pushing the bar past the edge. */
.app-statusbar__trunc[b-ytbd1g486r] { flex-shrink: 1; }
.app-statusbar__trunc .app-statusbar__text[b-ytbd1g486r] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.app-statusbar__group > i[b-ytbd1g486r] {
    font-size: 0.72rem;
    opacity: 0.85;
}
.app-statusbar__spacer[b-ytbd1g486r] { flex: 1 1 auto; }
.app-statusbar__brand[b-ytbd1g486r] { color: #fff; font-weight: 600; letter-spacing: 0.02em; }
.app-statusbar__dot[b-ytbd1g486r] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
    flex-shrink: 0;
}
/* On phones, drop the optional items (roles) that would crowd the 24px bar. */
@media (max-width: 575.98px) {
    .app-statusbar[b-ytbd1g486r] { gap: 0.6rem; }
    .app-statusbar__optional[b-ytbd1g486r] { display: none; }
}
/* /Pages/Admin/AdminPageHeader.razor.rz.scp.css */
/* Nexus-style ribbon header — ported from components/PageHeader.module.css. Sticks to the top of
   the scrolling content pane and bleeds to its edges so it reads as a band, not a card. */
.admin-header[b-lbhpnt3miu] {
    position: sticky;
    top: -1rem;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    min-height: 40px;
    margin: -1rem -1rem 1rem;
    padding: 0.3rem 1rem;
    background: var(--surface, #fff);
    border-bottom: 1px solid var(--border, #dee2e6);
}

.admin-header-titles[b-lbhpnt3miu] {
    min-width: 0;
}

.admin-header-title[b-lbhpnt3miu] {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--heading, #212529);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-header-subtitle[b-lbhpnt3miu] {
    margin: 0;
    color: var(--muted, #6c757d);
    font-size: 0.65rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-header-actions[b-lbhpnt3miu] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex-shrink: 0;
    margin-left: auto;
}
/* /Pages/Dashboard.razor.rz.scp.css */
/* Dashboard — bespoke, component-scoped styles. No utility-class framework:
   semantic class names, CSS grid layout, design tokens from index.css (:root). */

.page[b-4z7sl3c1pq] { display: flex; flex-direction: column; gap: 1.25rem; }

.header[b-4z7sl3c1pq] { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.title[b-4z7sl3c1pq] { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; margin: 0; color: var(--heading); }
.subtitle[b-4z7sl3c1pq] { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.82rem; }

/* ---- KPI tiles ---- */
.kpis[b-4z7sl3c1pq] { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.kpi[b-4z7sl3c1pq] {
  position: relative; display: flex; align-items: center; gap: 0.9rem;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1.2rem;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  transition: transform .14s ease, box-shadow .14s ease; overflow: hidden;
}
.kpi[b-4z7sl3c1pq]::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent, var(--primary)); opacity: .9; }
.kpi:hover[b-4z7sl3c1pq] { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,24,40,.10), 0 2px 6px rgba(16,24,40,.06); }
.kpiIcon[b-4z7sl3c1pq] { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 13px; font-size: 1.35rem; color: var(--accent); background: var(--accent-soft); }
.kpiMeta[b-4z7sl3c1pq] { min-width: 0; }
.kpiValue[b-4z7sl3c1pq] { font-size: 1.75rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--heading); font-variant-numeric: tabular-nums; }
.kpiLabel[b-4z7sl3c1pq] { margin-top: 0.35rem; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; color: var(--muted); }

/* ---- Panels ---- */
.grid2[b-4z7sl3c1pq] { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1rem; }
@media (max-width: 992px) { .grid2[b-4z7sl3c1pq] { grid-template-columns: 1fr; } }

.panel[b-4z7sl3c1pq] { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06); }
.panelHead[b-4z7sl3c1pq] { display: flex; align-items: center; justify-content: space-between; padding: 0.95rem 1.2rem; border-bottom: 1px solid var(--border); }
.panelTitle[b-4z7sl3c1pq] { font-weight: 600; color: var(--heading); font-size: 0.98rem; }
.panelHint[b-4z7sl3c1pq] { font-size: 0.78rem; color: var(--muted); }
.panelBody[b-4z7sl3c1pq] { padding: 1.2rem; }
.empty[b-4z7sl3c1pq] { color: var(--muted); font-size: 0.875rem; text-align: center; padding: 2.5rem 0; }

/* ---- Trend chart ---- */
.chart[b-4z7sl3c1pq] { display: flex; align-items: flex-end; gap: 0.4rem; height: 210px; }
.bar[b-4z7sl3c1pq] { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.35rem; cursor: default; }
.barVal[b-4z7sl3c1pq] { font-size: 0.72rem; font-weight: 600; color: #475569; opacity: 0; transition: opacity .12s; }
.bar:hover .barVal[b-4z7sl3c1pq] { opacity: 1; }
.barFill[b-4z7sl3c1pq] { width: 100%; max-width: 28px; min-height: 3px; border-radius: 7px 7px 0 0; background: linear-gradient(180deg, var(--primary-d) 0%, var(--primary) 100%); transition: height .35s cubic-bezier(.4,0,.2,1), filter .12s; }
.bar:hover .barFill[b-4z7sl3c1pq] { filter: brightness(1.08); }
.barDate[b-4z7sl3c1pq] { font-size: 0.62rem; color: var(--muted); white-space: nowrap; }

/* ---- Accuracy meters ---- */
.meter[b-4z7sl3c1pq] { margin-bottom: 1.15rem; }
.meter:last-child[b-4z7sl3c1pq] { margin-bottom: 0; }
.meterTop[b-4z7sl3c1pq] { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; }
.meterLabel[b-4z7sl3c1pq] { font-size: 0.875rem; color: #374151; }
.meterVal[b-4z7sl3c1pq] { font-size: 0.95rem; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
.track[b-4z7sl3c1pq] { height: 9px; background: #eef1f6; border-radius: 50rem; overflow: hidden; }
.fill[b-4z7sl3c1pq] { height: 100%; border-radius: 50rem; transition: width .5s cubic-bezier(.4,0,.2,1); }

/* ---- Status breakdown ---- */
.segbar[b-4z7sl3c1pq] { display: flex; height: 24px; border-radius: 8px; overflow: hidden; background: #eef1f6; }
.seg[b-4z7sl3c1pq] { transition: flex-grow .4s ease; min-width: 2px; }
.seg:not(:last-child)[b-4z7sl3c1pq] { box-shadow: 1px 0 0 rgba(255,255,255,.6); }
.legend[b-4z7sl3c1pq] { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 1rem; }
.legendItem[b-4z7sl3c1pq] { display: flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; color: #475569; }
.dot[b-4z7sl3c1pq] { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.legendCount[b-4z7sl3c1pq] { font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }

/* ---- Business "My work" view ---- */
.cta[b-4z7sl3c1pq] {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none;
  background: var(--primary); color: #fff; border: none; border-radius: 10px;
  padding: 0.55rem 0.95rem; font-size: 0.85rem; font-weight: 600;
  box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  transition: filter .12s ease, transform .12s ease;
}
.cta:hover[b-4z7sl3c1pq] { filter: brightness(1.06); transform: translateY(-1px); }

/* KPI tiles that are links (business view) — inherit the tile look, no underline. */
.kpi--link[b-4z7sl3c1pq] { text-decoration: none; color: inherit; cursor: pointer; }

.panelLink[b-4z7sl3c1pq] { text-decoration: none; color: var(--primary); font-weight: 600; }
.panelLink:hover[b-4z7sl3c1pq] { text-decoration: underline; }

/* Recent uploads list */
.docList[b-4z7sl3c1pq] { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.docItem[b-4z7sl3c1pq] { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.docItem:last-child[b-4z7sl3c1pq] { border-bottom: none; }
.docIcon[b-4z7sl3c1pq] { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 9px; background: #eef1f6; color: #5a6673; font-size: 1rem; }
.docMain[b-4z7sl3c1pq] { min-width: 0; flex: 1; }
.docName[b-4z7sl3c1pq] { font-size: 0.85rem; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.docSub[b-4z7sl3c1pq] { font-size: 0.72rem; color: var(--muted); margin-top: 0.1rem; }
.docItem .badge[b-4z7sl3c1pq] { flex-shrink: 0; }

/* ---- Mobile density: more data per screen, KPIs two-up, tighter panels ---- */
@media (max-width: 575.98px) {
  .page[b-4z7sl3c1pq] { gap: 0.85rem; }
  .kpis[b-4z7sl3c1pq] { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .kpi[b-4z7sl3c1pq] { padding: 0.7rem 0.75rem; gap: 0.6rem; border-radius: 12px; }
  .kpiIcon[b-4z7sl3c1pq] { width: 36px; height: 36px; font-size: 1.05rem; border-radius: 10px; }
  .kpiValue[b-4z7sl3c1pq] { font-size: 1.35rem; }
  .kpiLabel[b-4z7sl3c1pq] { font-size: 0.6rem; margin-top: 0.2rem; }
  .panelHead[b-4z7sl3c1pq] { padding: 0.6rem 0.8rem; }
  .panelBody[b-4z7sl3c1pq] { padding: 0.8rem; }
  .chart[b-4z7sl3c1pq] { height: 150px; }
  .grid2[b-4z7sl3c1pq] { gap: 0.6rem; }
}
