/* BuildInspect shared screen styles. New York controls, Zinc light and graphite dark. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+Hebrew:wght@400;500;600;700&display=swap") screen;

@media screen {
  :root {
    color-scheme: light;
    --background: #ffffff;
    --foreground: #09090b;
    --card: #ffffff;
    --muted: #f4f4f5;
    --accent: #f4f4f5;
    --muted-foreground: #71717a;
    --border: #e4e4e7;
    --primary: #18181b;
    --primary-foreground: #fafafa;
    --primary-hover: #27272a;
    --bi-muted-text: #62626c;
    --bi-font: Inter, "Noto Sans Hebrew", Arial, sans-serif;
    --bi-card-radius: 0.75rem;
    --bi-control-radius: 0.375rem;
    --bi-card-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --bi-positive: #166534;
    --bi-positive-bg: #f0fdf4;
    --bi-danger: #991b1b;
    --bi-danger-bg: #fef2f2;
    --bi-warning: #854d0e;
    --bi-warning-bg: #fffbeb;
    --bi-info: #1e40af;
    --bi-info-bg: #eff6ff;
    --surface: var(--card);
    --text: var(--foreground);
    --line: var(--border);
    --page: var(--background);
    --bi-shell-surface: var(--card);
    --bi-shell-panel: var(--muted);
    --bi-shell-line: var(--border);
    --bi-shell-muted: var(--bi-muted-text);
    --bi-shell-active: var(--accent);
    --bi-shell-accent: var(--primary);
  }

  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) {
    color-scheme: dark;
    --background: #202124;
    --foreground: #f0f1f3;
    --card: #292b30;
    --muted: #32353b;
    --accent: #3e434c;
    --muted-foreground: #b9bdc7;
    --border: #494e57;
    --primary: #505966;
    --primary-foreground: #f7f8fa;
    --primary-hover: #5c6675;
    --bi-input: #24262b;
    --bi-control-border: #757d8b;
    --bi-focus-ring: #becbdf;
    --bi-muted-text: var(--muted-foreground);
    --bi-positive: #86efac;
    --bi-positive-bg: #102017;
    --bi-danger: #fca5a5;
    --bi-danger-bg: #2a1518;
    --bi-warning: #fde68a;
    --bi-warning-bg: #272012;
    --bi-info: #93c5fd;
    --bi-info-bg: #151e32;
    --bi-disposal: #d4b4ff;
    --bi-disposal-bg: #2d233b;
  }
}

@media screen and (max-width:760px) {
  html .bi-web-shell > .bi-sidebar nav :is(a,button,summary) { background:transparent;color:var(--foreground); }
  html .bi-web-shell > .bi-sidebar nav [aria-current=page],
  html .bi-web-shell > .bi-sidebar .bi-project-submenu:has([aria-current=page]) > summary { background:var(--accent);color:var(--foreground); }
  html .bi-web-shell > .bi-sidebar.bi-mobile-menu-open .bi-mobile-menu-close { background:var(--muted);color:var(--foreground); }
  html .bi-web-shell > .bi-sidebar nav .bi-close-project { background:var(--bi-danger-bg);color:var(--bi-danger); }
}

/* Compact web navigation: the same sidebar becomes a modal drawer on phones. */
@media screen {
  .bi-mobile-dock,.bi-mobile-menu-trigger,.bi-mobile-menu-shade,.bi-mobile-menu-close,.bi-submenu-back { display:none; }
  @media (max-width:760px) {
    html .bi-web-shell:has(>.bi-sidebar:not([hidden])) > .bi-mobile-dock {
      position:fixed;z-index:950;inset-inline:0;bottom:0;display:flex;gap:4px;
      padding:4px max(8px,env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
      background:var(--card);border-block-start:1px solid var(--border);
    }
    html .bi-web-shell:has(>.bi-sidebar:not([hidden])) {padding-bottom:calc(62px + env(safe-area-inset-bottom))}
    html .bi-web-shell > .bi-mobile-dock button:not([hidden]) {
      display:flex;flex:1 1 0;min-width:0;min-height:48px;flex-direction:column;
      align-items:center;justify-content:center;gap:3px;padding:3px;border:0;
      background:transparent;color:var(--foreground);font-size:12px;line-height:1.2;
    }
    html .bi-web-shell > .bi-mobile-dock [aria-current=page]:not([hidden]) {background:var(--accent);color:var(--accent-foreground,var(--foreground))}
    .bi-mobile-dock svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
    html .bi-web-shell:has(>.bi-sidebar:not([hidden])) > header { min-height:64px;padding:12px 14px;gap:10px; }
    html .bi-web-shell:has(>.bi-sidebar:not([hidden])) > header.bi-brand-banner { min-height:64px; }
    html .bi-web-shell > header .bi-logo { width:auto;max-width:105px;height:40px;padding:6px; }
    html .bi-web-shell > header .bi-brand-copy strong { font-size:18px; }
    html .bi-web-shell > header .bi-brand-copy span { font-size:11px; }
    html .bi-web-shell > header .bi-surface-toggle { font-size:12px;padding:7px; }
    html .bi-web-shell > .bi-sidebar {
      position:fixed;z-index:1001;inset-block:0;inset-inline-start:0;
      width:min(320px,88vw);height:100dvh;max-height:100dvh;overflow:auto;
      padding:20px 14px calc(20px + env(safe-area-inset-bottom));
      border:0;border-inline-end:1px solid var(--bi-shell-line);background:var(--bi-shell-surface);
      visibility:hidden;pointer-events:none;
    }
    html .bi-web-shell > .bi-sidebar.bi-mobile-menu-open { visibility:visible;pointer-events:auto; }
    html .bi-web-shell > .bi-sidebar.bi-mobile-menu-open .bi-mobile-menu-close { display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin-inline-start:auto;border:1px solid var(--bi-shell-line);border-radius:.5rem;background:var(--bi-shell-panel);color:inherit; }
    .bi-mobile-menu-close svg { width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round; }
    html .bi-web-shell > .bi-sidebar .bi-wordmark,
    html .bi-web-shell > .bi-sidebar .bi-sidebar-context { display:block; }
    html .bi-web-shell > .bi-sidebar nav { display:grid;gap:4px; }
    html .bi-web-shell > .bi-sidebar :is(nav a,nav button,nav summary) { min-height:44px;padding:10px;font-size:14px; }
    html .bi-web-shell > .bi-sidebar .bi-nav-divider { display:block; }
    .bi-web-shell > .bi-mobile-menu-shade:not([hidden]) { display:block;position:fixed;inset:0;z-index:1000;background:rgb(0 0 0 / .55); }
    body.bi-menu-open { overflow:hidden; }
    html .bi-web-shell > .bi-sidebar nav :is(a,button,summary) { width:100%;justify-content:flex-start;text-align:start; }
    html .bi-web-shell > .bi-sidebar .bi-project-submenu > .bi-nav-group { display:none; }
    html .bi-web-shell > .bi-sidebar :is(nav,.bi-nav-group).bi-nav-drill > :not(.bi-nav-in-path) { display:none; }
    html .bi-web-shell > .bi-sidebar .bi-project-submenu.bi-nav-in-path > summary { display:none; }
    html .bi-web-shell > .bi-sidebar .bi-project-submenu.bi-nav-in-path > .bi-submenu-back { display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:10px;border:0;border-bottom:1px solid var(--bi-shell-line);border-radius:0;background:transparent;color:var(--foreground);font-weight:700;text-align:start; }
    html .bi-web-shell > .bi-sidebar .bi-project-submenu.bi-nav-in-path > .bi-nav-group { display:grid;gap:4px;margin:8px 0 0;padding:0;border:0; }
  }
  html .bi-company-home.bi-web-shell #dashboard .bi-session #logout { display:none; }
  .bi-menu-logout { display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:44px;margin-top:20px;padding:9px 10px;border:0;border-top:1px solid var(--bi-shell-line);border-radius:0;background:transparent;color:inherit;text-align:start; }
  .bi-menu-theme { display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:44px;margin-top:8px;padding:9px 10px;border:0;background:transparent;color:inherit;text-align:start; }
  .bi-menu-error { color:var(--bi-danger);font-size:13px; }
  .bi-sidebar .bi-nav-section { min-height:24px;margin:10px 0 2px;padding:9px 10px 0;border-top:1px solid var(--bi-shell-line);color:var(--bi-shell-muted);font-size:12px;font-weight:600; }
  .bi-sidebar .bi-nav-section:first-child { border-top:0;margin-top:0; }
  .bi-sidebar .bi-nav-section:empty { min-height:0;padding:0;margin:10px 0 2px; }
}

/* Existing layout and feature selectors. */
@media screen {
 .bi-desktop-sidebar-toggle,.bi-desktop-flyout { display:none; }
 @media (min-width:761px) {
  html .bi-web-shell.bi-desktop-menu-ready { grid-template-columns:72px minmax(0,1fr); }
  html .bi-web-shell.bi-desktop-menu-ready > .bi-sidebar { z-index:1003;width:244px;box-sizing:border-box;box-shadow:0 8px 22px rgb(0 0 0 / .14); }
  html .bi-web-shell.bi-desktop-menu-ready > .bi-sidebar { display:flex;flex-direction:column;overflow-x:hidden;padding-inline:14px;transition:width 650ms cubic-bezier(.4,0,.2,1); }
  html .bi-web-shell.bi-desktop-menu-ready > .bi-sidebar :is(.bi-wordmark,.bi-sidebar-context,nav,.bi-company-back,.bi-menu-logout,.bi-menu-theme) { width:216px;box-sizing:border-box;flex-shrink:0; }
  html .bi-web-shell.bi-desktop-menu-ready > .bi-sidebar :is(.bi-wordmark,.bi-sidebar-context) { white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:opacity 260ms ease; }
  html .bi-web-shell.bi-desktop-menu-ready > .bi-sidebar nav { display:flex;flex:1 0 auto;flex-direction:column;align-items:stretch; }
  html .bi-web-shell.bi-desktop-menu-ready > .bi-sidebar .bi-nav-section[data-section=management] { margin-top:auto; }
  html .bi-web-shell.bi-desktop-menu-ready.bi-sidebar-collapsed > .bi-sidebar { width:72px;box-shadow:none; }
  html .bi-web-shell > .bi-sidebar nav > :is(a,button,summary),html .bi-web-shell > .bi-sidebar nav > .bi-project-submenu > summary { width:100%;box-sizing:border-box;justify-content:flex-start;text-align:start; }
  html .bi-web-shell.bi-desktop-menu-ready > .bi-sidebar :is(nav a,nav button,nav summary,.bi-company-back,.bi-menu-logout,.bi-menu-theme) { position:relative;height:44px;min-height:44px;flex-shrink:0;white-space:nowrap;overflow:hidden;justify-content:flex-start;gap:10px;padding:10px;transition:color 260ms ease,background-color 160ms ease; }
  html .bi-web-shell.bi-sidebar-collapsed { grid-template-columns:72px minmax(0,1fr); }
  html .bi-web-shell.bi-sidebar-collapsed > .bi-sidebar :is(.bi-wordmark,.bi-sidebar-context) { opacity:0;pointer-events:none; }
  html .bi-web-shell.bi-sidebar-collapsed > .bi-sidebar :is(nav a,nav button,nav summary,.bi-company-back,.bi-menu-logout,.bi-menu-theme) { color:transparent; }
  html .bi-web-shell.bi-sidebar-collapsed > .bi-sidebar :is(nav a,nav button,nav summary,.bi-company-back,.bi-menu-logout,.bi-menu-theme) > svg { color:var(--foreground); }
  html .bi-web-shell.bi-sidebar-collapsed > .bi-sidebar [aria-current=page] > svg { color:var(--bi-shell-accent,var(--primary)); }
  html .bi-web-shell.bi-sidebar-collapsed > .bi-sidebar .bi-nav-section { color:transparent;white-space:nowrap;overflow:hidden; }
  html .bi-web-shell.bi-sidebar-collapsed > .bi-sidebar .bi-project-submenu summary::after { visibility:hidden; }
  html .bi-web-shell.bi-sidebar-collapsed > .bi-sidebar .bi-badge { position:absolute;inset-inline-start:20px;top:0;margin:0;font-size:10px; }
  html .bi-web-shell.bi-menu-keyboard > .bi-sidebar,html .bi-web-shell.bi-menu-keyboard > .bi-sidebar * { transition:none; }
  html .bi-web-shell.bi-desktop-menu-ready .bi-project-submenu > .bi-nav-group { display:none; }
  html .bi-web-shell.bi-desktop-menu-ready .bi-project-submenu > summary::after { content:'◂'; }
  html .bi-web-shell > .bi-sidebar .bi-desktop-sidebar-toggle { display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0 0 12px;border:1px solid var(--bi-shell-line);border-radius:8px;background:var(--bi-shell-panel);color:var(--foreground);cursor:pointer; }
  html .bi-web-shell.bi-sidebar-collapsed .bi-desktop-sidebar-toggle svg { transform:scaleX(-1); }
  html .bi-web-shell > .bi-desktop-flyout:not([hidden]) { display:grid;position:fixed;z-index:1004;max-height:calc(100dvh - 16px);overflow:auto;gap:4px;padding:8px;border:1px solid var(--border);border-radius:10px;background:var(--card);color:var(--foreground);box-shadow:0 12px 28px rgb(0 0 0 / .22); }
  .bi-desktop-flyout-head { display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 8px;border-bottom:1px solid var(--border); }
  html .bi-desktop-flyout :is(.bi-flyout-item,.bi-flyout-back) { display:flex;align-items:center;gap:10px;min-height:44px;padding:9px 10px;border:0;border-radius:8px;background:transparent;color:var(--foreground);font:600 14px/1.4 var(--bi-font,Arial,sans-serif);text-align:start;cursor:pointer; }
  html .bi-desktop-flyout .bi-flyout-item { width:100%; }
  html .bi-desktop-flyout .bi-flyout-item span:not(.bi-badge) { flex:1;overflow-wrap:anywhere; }
  html .bi-desktop-flyout .bi-flyout-branch::after { content:'◂';margin-inline-start:auto; }
  html .bi-desktop-flyout :is(.bi-flyout-item:hover,.bi-flyout-item[aria-current=page],.bi-flyout-back:hover) { background:var(--accent); }
  html .bi-desktop-flyout svg { width:17px;height:17px;flex:0 0 17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round; }
  html :is(.bi-desktop-sidebar-toggle,.bi-desktop-flyout button):focus-visible { outline:3px solid var(--bi-focus-ring,var(--primary));outline-offset:2px; }
  @media (prefers-reduced-motion:reduce) { html .bi-web-shell.bi-desktop-menu-ready > .bi-sidebar,html .bi-web-shell.bi-desktop-menu-ready > .bi-sidebar * { transition:none; } }
 }
}

@media screen and (min-width:761px) {
 html[data-bi-theme] .bi-web-shell .bi-desktop-flyout :is(.bi-flyout-item,.bi-flyout-back) { background:transparent;color:var(--foreground);border-color:transparent; }
 html[data-bi-theme] .bi-web-shell .bi-desktop-flyout :is(.bi-flyout-item:hover,.bi-flyout-item[aria-current=page],.bi-flyout-back:hover) { background:var(--accent); }
 html[data-bi-theme] .bi-web-shell > .bi-sidebar .bi-desktop-sidebar-toggle { background:var(--muted);color:var(--foreground); }
}
.bi-logo{width:clamp(80px,13vw,150px);height:48px;object-fit:contain;border:1px solid #ffffff50;border-radius:8px;padding:4px;background:var(--foreground);margin-inline-end:8px;vertical-align:middle}.bi-project-photo{width:112px;height:68px;object-fit:cover;border:1px solid var(--border);border-radius:8px;padding:3px;vertical-align:middle;margin-inline-end:12px}.bi-brand-banner{min-height:96px;background-position:center;background-size:cover}.bi-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.bi-actions a{color:inherit;border:1px solid var(--border);border-radius:8px;padding:7px 10px;text-decoration:none}.bi-nav-menu{position:relative}.bi-nav-menu>summary{padding:8px 12px;border:1px solid var(--border);border-radius:8px;cursor:pointer;list-style:none}.bi-nav-menu>summary::after{content:' ▾'}.bi-nav-menu>div{position:absolute;inset-inline-start:0;top:100%;z-index:10;min-width:200px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:6px;display:grid;gap:4px;box-shadow:0 8px 18px #10274720}.bi-nav-menu a{display:block;padding:8px;color:inherit}.bi-badge{background:#b42436;color:white;border-radius:99px;padding:2px 7px;margin-inline-start:5px;font-size:.8em}
@media screen{html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]){color-scheme:dark;--surface:var(--card);--text:var(--foreground);--line:var(--border);--page:var(--background)}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) body{background:var(--page);color:var(--text)}html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(section,.surface,.panel,.card,.layer,dialog,nav,header,.library-layout,.document-card,.document-detail,.folder-name,.folder-toggle,.bi-nav-menu>div,.stats>div,.stats>button,.history,.issue-list,.repair-work),html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) #checkFeedback{background-color:var(--surface);color:var(--text);border-color:var(--line)}html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(input,select,textarea){background-color:var(--background);color:var(--text);border-color:var(--line)}html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .primary{background:var(--primary);color:var(--primary-foreground);border-color:var(--primary)}html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(.muted,.no-photo){color:var(--bi-muted-text)}html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) a{color:var(--foreground)}html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .error{color:#ff9b9b}html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(.checked,.stock-good){color:#83e5b6}html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(.faulty,.stock-min){color:#ff939e}html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(.pending,.muted){color:#b7c8be}html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(.closed){color:#9bbfff}html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(.unable,.stock-reserved){color:#ffb665}html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .stock-disposed{color:#d4b4ff}html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .issue{color:var(--foreground)}html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .unable-form{color:#fff}html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) td,html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) th{border-color:var(--line)}
}

.bi-web-shell{display:grid;grid-template-columns:244px minmax(0,1fr);grid-template-rows:auto 1fr;min-height:100vh;align-items:start;--bi-shell-surface:#fff;--bi-shell-panel:var(--muted);--bi-shell-line:var(--border);--bi-shell-muted:var(--bi-muted-text);--bi-shell-active:var(--accent);--bi-shell-accent:var(--primary)}
.bi-web-shell>header{grid-column:2;grid-row:1;min-height:142px;display:flex;align-items:center;justify-content:flex-start;gap:15px;padding:24px 28px;background:var(--card) center/cover;color:white;min-width:0}
.bi-web-shell>header .bi-brand-copy{display:grid;gap:2px}
.bi-web-shell>header .bi-brand-copy span{font-size:13px}
.bi-web-shell>header .bi-logo{width:190px;max-width:38vw;height:62px;margin:0;padding:10px 14px;background:#18181b}
.bi-web-shell>header .bi-header-back{margin-inline-start:auto;color:white}
.bi-web-shell>main,.bi-web-shell>.bi-web-content{grid-column:2;grid-row:2;min-width:0;width:100%;max-width:1450px;margin:0 auto;padding:26px 32px 36px}
.bi-sidebar{grid-column:1;grid-row:1 / -1;position:sticky;top:0;height:100vh;min-width:0;overflow:auto;padding:22px 14px;background:var(--bi-shell-surface);border-inline-end:1px solid var(--bi-shell-line)}
.bi-wordmark{display:block;padding-inline:10px;color:var(--bi-shell-accent);font-size:21px;font-weight:bold;text-decoration:none}
.bi-sidebar-context{margin:22px 10px 10px;color:var(--bi-shell-muted);font-size:13px;overflow-wrap:anywhere}
.bi-sidebar nav,.bi-sidebar .bi-nav-group{display:grid;gap:4px;background:none}
.bi-sidebar :is(nav a,nav button,nav summary){display:flex;align-items:center;gap:10px;min-height:43px;padding:9px 10px;border:0;border-radius:8px;background:none;color:inherit;font:600 14px/1.4 var(--bi-font,Arial,sans-serif);text-align:start;text-decoration:none;cursor:pointer;overflow-wrap:anywhere}
.bi-sidebar nav :is(a,button,summary):hover,.bi-sidebar nav [aria-current=page]{background:var(--bi-shell-active);color:var(--bi-shell-accent)}
.bi-sidebar nav [aria-current=page]{font-weight:700}
.bi-sidebar svg{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.bi-sidebar a:focus-visible,.bi-outline:focus-visible,.bi-metric:focus-visible{outline:3px solid var(--primary);outline-offset:2px}
.bi-sidebar .bi-nav-divider{border:0;border-top:1px solid var(--bi-shell-line);margin:8px 0}
.bi-outline{display:inline-flex;align-items:center;min-height:42px;padding:8px 12px;border:1px solid var(--bi-shell-line,var(--border));border-radius:8px;background:var(--bi-shell-surface,var(--card));color:inherit;font-size:14px;font-weight:bold;text-decoration:none}
.bi-outline:hover{border-color:var(--bi-shell-accent,var(--primary))}
/* Align the sign-in heading and form to the same centered RTL column. */
.bi-company-home:not(.bi-web-shell)>:is(main,header){
  box-sizing:border-box;width:100%;max-width:580px;margin-inline:auto;padding-inline:18px;
}
.bi-company-home:not(.bi-web-shell)>header{
  margin-block:0;padding-block:clamp(24px,6vh,60px) 14px;
  min-height:0;background:transparent!important;color:var(--foreground);
}
.bi-company-home:not(.bi-web-shell)>header .bi-brand-copy{
  display:flex;flex-direction:column;align-items:flex-start;gap:4px;line-height:1.3;
}
.bi-company-home:not(.bi-web-shell)>header .bi-brand-copy span{font-size:.875rem;color:var(--bi-muted-text)}
.bi-company-home:not(.bi-web-shell)>header .bi-logo{display:none}
.bi-company-home:not(.bi-web-shell)>main{margin-block:0 24px}
.bi-company-home .bi-session{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-bottom:16px;color:var(--bi-shell-muted);font-size:13px}
.bi-company-home .bi-session button{min-height:36px;padding:5px 10px}
.bi-page-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:16px}
.bi-page-heading h1,.bi-service-card h2,.bi-service-card p{margin:0}
.bi-service-card{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px}
.bi-company-home .bi-project-card{display:grid;grid-template-columns:minmax(250px,2fr) minmax(0,5fr);align-items:center;gap:20px;margin:0 0 14px;padding:20px;background:var(--bi-shell-surface);border:1px solid var(--bi-shell-line);border-radius:14px}
.bi-project-identity{display:flex;align-items:center;gap:12px;min-width:0;overflow-wrap:anywhere}
.bi-project-identity h2,.bi-service-card h2,.bi-empty-projects h2{font-size:17px;margin:0 0 6px}
.bi-project-frame{width:112px;height:76px;flex-shrink:0;display:grid;place-items:center;border:1px solid var(--bi-shell-line);background:var(--bi-shell-panel);border-radius:9px;padding:3px;font-size:11px;color:var(--bi-shell-muted)}
.bi-project-frame .bi-project-photo{width:100%;height:68px;margin:0;padding:0;border:0;border-radius:6px}
.bi-project-status{display:table;margin:0 0 9px;padding:1px 8px;border-radius:12px;background:#dff3eb;color:#006951;font-size:12px}
.bi-company-metrics{min-width:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.bi-metric{display:grid;align-content:center;gap:2px;text-align:center;min-height:76px;padding:7px 5px;border:1px solid var(--bi-shell-line);border-radius:8px;background:var(--bi-shell-panel);text-decoration:none;color:inherit;font-size:13px}
.bi-metric:hover{border-color:currentColor}
.bi-metric strong{font-size:25px;line-height:1.1}
.bi-company-metrics>.bi-inspection-progress{grid-column:span 2}
.bi-company-metrics>.bi-lifetime{font-size:13px;text-align:center;text-decoration:none;color:inherit}
.bi-inspection-track{display:flex;min-height:23px;overflow:hidden;border-radius:20px;background:var(--bi-shell-line);direction:ltr;align-items:stretch}
.bi-inspection-track span{display:grid;place-items:center;min-width:0;overflow:hidden;color:#fff;font-weight:bold;font-size:11px}
.bi-inspection-track .bi-no-items{color:var(--foreground);width:100%}
.bi-inspection-legend{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 8px;color:var(--bi-shell-muted);font-size:13px}
.bi-closed-projects summary{margin:14px 0;cursor:pointer}
.bi-company-home .bi-empty-projects{padding:28px 24px;text-align:center}
.bi-empty-projects p,.bi-company-home #message:empty{margin:0}
.bi-company-home dialog{width:min(460px,calc(100% - 32px));padding:24px;border:1px solid var(--bi-shell-line);border-radius:14px;color:inherit}
.bi-company-home dialog::backdrop{background:#10274780}
@media screen{
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-web-shell{--bi-shell-surface:var(--surface);--bi-shell-panel:var(--muted);--bi-shell-line:var(--line);--bi-shell-muted:var(--bi-muted-text);--bi-shell-active:var(--accent);--bi-shell-accent:var(--primary)}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-sidebar :is(.bi-wordmark,[aria-current=page]){color:var(--bi-shell-accent)}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-sidebar nav{background:none}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-sidebar nav button:not([aria-current=page]){background:transparent}
}
@media(max-width:1100px){.bi-company-home .bi-project-card{grid-template-columns:1fr}.bi-company-metrics{max-width:none}}
@media(max-width:760px){
  .bi-web-shell{display:flex;flex-direction:column;align-items:stretch}
  .bi-web-shell>header{order:-2;min-height:90px;padding:16px}
  .bi-web-shell>main,.bi-web-shell>.bi-web-content{padding:18px 14px}
  .bi-sidebar{position:static;height:auto;padding:10px 12px;border-inline-end:0;border-bottom:1px solid var(--bi-shell-line)}
  .bi-sidebar .bi-wordmark,.bi-sidebar-context{display:none}
  .bi-sidebar nav{display:flex;flex-wrap:wrap}
  .bi-sidebar .bi-nav-divider{display:none}
  .bi-sidebar :is(nav a,nav button,nav summary){min-height:40px;padding:8px;font-size:13px}
  .bi-company-home .bi-project-card{padding:13px;gap:12px}
  .bi-company-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bi-company-metrics>.bi-inspection-progress{grid-row:2}
}

.bi-project-sidebar nav{padding:0;align-items:stretch}
.bi-project-sidebar .bi-company-back,.bi-tech-nav .bi-company-back{display:flex;align-items:center;gap:8px;padding:10px;text-decoration:none;font-size:13px;font-weight:bold;color:var(--bi-shell-accent,var(--primary))}
.bi-company-back svg,.bi-surface-toggle svg,.bi-tech-nav svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.bi-project-sidebar .bi-sidebar-context{display:block;margin:10px 0 16px;padding:14px;background:var(--bi-shell-panel);border:1px solid var(--bi-shell-line);border-radius:10px;color:inherit;font-size:15px}
.bi-surface-toggle{margin-inline-start:auto;display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border-radius:8px;border:1px solid #ffffff70;color:inherit;text-decoration:none;white-space:nowrap;font-size:13px;font-weight:bold}
.bi-project-sidebar .bi-project-submenu{min-width:0}
.bi-project-sidebar .bi-project-submenu summary{list-style:none}
.bi-project-sidebar .bi-project-submenu summary::after{content:'◂';margin-inline-start:auto}
.bi-project-sidebar .bi-project-submenu[open]>summary::after{content:'▾'}
.bi-project-sidebar .bi-project-submenu:has([aria-current=page])>summary{background:var(--bi-shell-active);color:var(--bi-shell-accent)}
.bi-project-sidebar .bi-project-submenu .bi-nav-group{margin-inline-start:12px;padding-inline-start:8px;border-inline-start:1px solid var(--bi-shell-line)}
.bi-project-sidebar .bi-project-submenu .bi-nav-group :is(a,button,summary){min-height:36px;font-size:13px}
.bi-project-sidebar nav .bi-close-project{border:1px solid #e3a2a6;color:#ad2735;margin-top:10px}
.bi-project-page>.bi-web-content .layout{margin:0}
.bi-project-page .layout:has(#browseTab[aria-current=page]){align-items:start}
.bi-project-page:has(#projectNav) .layout:not(:has(.tree:focus-within)){min-width:0}
.bi-project-page:has(#browseTab:not([aria-current=page])) .layout{grid-template-columns:minmax(0,1fr)}
.bi-project-page:has(#browseTab:not([aria-current=page])) .layout>.tree{display:none}
.bi-project-page .bi-web-content :is(#message,#editorView){margin:0 0 16px}
.bi-project-page #message:empty,.bi-project-page #checkFeedback:empty{display:none}
.bi-project-page #breadcrumbs{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin-bottom:12px;color:var(--bi-muted-text)}
.bi-project-page #breadcrumbs button{overflow-wrap:anywhere;max-width:100%;font-size:13px}
.bi-project-page #projectName{font-size:16px;overflow-wrap:anywhere}
.bi-project-page #editorFrame{height:calc(100vh - 135px);border-radius:10px;display:block}
.bi-location-summary{padding:4px 0 16px}
.bi-location-summary .stats button[aria-pressed=true]{box-shadow:inset 0 0 0 1px currentColor}
.bi-location-list{margin-top:12px;padding-top:2px;border-top:1px solid var(--bi-shell-line,var(--border))}
.place-branch{margin:8px 0}
.place-row{width:100%;min-width:0;display:flex;gap:10px;align-items:center;justify-content:space-between;text-align:start;background:var(--bi-shell-surface,var(--card));border:1px solid var(--bi-shell-line,var(--border));border-radius:9px;padding:9px 10px;list-style:none;color:inherit}
.place-row:hover{border-color:var(--border)}
.place-row::-webkit-details-marker{display:none}
.place-branch summary::after{content:'◂';flex-shrink:0}
.place-branch[open]>summary::after{content:'▾'}
.place-name{min-width:0;display:flex;gap:7px;align-items:center;overflow-wrap:anywhere}
.place-name .icon{flex-shrink:0;margin:0}
.place-name small{display:block;font-weight:400;color:var(--bi-shell-muted,var(--bi-muted-text))}
.place-counts{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px 8px;margin-inline-start:auto;font-size:12px;font-weight:600}
.place-children{margin:6px 10px 8px 0;padding-inline-start:9px;border-inline-start:1px solid var(--bi-shell-line,var(--border))}
.place-children>button,.bi-location-list>button{margin-top:7px}
.bi-item-heading{padding-block:8px}
.bi-item-heading h2,.bi-item-heading p{margin:4px 0}
.bi-item-state{display:inline-block;background:var(--bi-shell-panel,var(--muted));padding:4px 10px;border-radius:14px;font-size:13px;font-weight:700}
.bi-project-page #issueForms:not(:empty){padding:6px 0 12px}
.bi-project-page .issue h3{margin-top:0;padding:8px 10px;border-radius:8px;background:#ff2e3a;color:#111827}
.bi-project-page .issue.unable-form h3{background:#ff9030;color:#111827}
.bi-project-page .issue.unable-form :is(label,summary,small){color:#fff}
.bi-project-page .issue.unable-form .photo-button{color:var(--foreground)}
.bi-project-page .issue.unable-form .photo-button summary{color:var(--foreground)}
.bi-project-page .inspection-field-label{display:block;font-weight:bold;margin:12px 0 5px}
.bi-project-page .photo-button{position:relative}
.bi-project-page #markChecked{background:#00856e;color:#fff}
.bi-project-page #markFaulty{background:#ff2e3a;color:#111827}
.bi-project-page #markUnable{background:#ff9030;color:#111827}
.bi-project-page .photo-button input{display:block;position:absolute;width:1px;height:1px;min-height:0;padding:0;opacity:0}
.bi-project-page .photo-button:focus-within{outline:3px solid var(--primary);outline-offset:2px}
.bi-project-page :is(.bi-warehouse-block,.bi-location-summary,.bi-location-list){min-width:0}
.bi-warehouse-block{padding:12px 0;border-block-start:1px solid var(--bi-shell-line,var(--border))}
.bi-stock-screen>.bi-warehouse-block,.bi-stock-screen #warehouseContent>.bi-warehouse-block,.bi-stock-screen #stockFormArea:not(:empty){background:var(--bi-shell-surface,var(--card));border:1px solid var(--bi-shell-line,var(--border));border-radius:14px;padding:18px;margin:14px 0}
.bi-stock-screen #warehouseContent>.bi-warehouse-block h3{margin:0 0 12px}
.bi-project-page .layout>.panel:has(.bi-stock-screen){background:transparent;border:0;padding:0}
.bi-project-page .panel:has(.bi-stock-screen)>#breadcrumbs{display:none}
.bi-stock-cards{display:grid;gap:9px}
.bi-stock-cards .bi-stock-row{display:grid;grid-template-columns:76px minmax(100px,1.8fr) minmax(68px,1fr) minmax(68px,1fr) minmax(100px,1.6fr) repeat(3,minmax(72px,1fr)) minmax(86px,1fr);align-items:stretch;background:var(--bi-shell-panel,var(--muted));border:1px solid var(--bi-shell-line,var(--border));border-radius:10px;padding:9px}
.bi-stock-cards .bi-stock-row>div{min-width:0;padding:5px 9px;border-inline-end:1px solid var(--bi-shell-line,var(--border));overflow-wrap:anywhere}
.bi-stock-cards .bi-stock-row>div:last-child{border:0}
.bi-stock-cards .bi-stock-row p{margin:4px 0}
.bi-stock-cards .stock-disposed-qty{color:var(--bi-stock-disposed,#7852ad)}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-stock-cards .stock-disposed-qty{color:#d4b4ff}
.bi-stock-cards .bi-stock-row>div:nth-child(n+2):nth-child(-n+8)::before{display:block;font-size:11px;color:var(--bi-shell-muted,var(--bi-muted-text))}
.bi-stock-cards .bi-stock-row>div:nth-child(2)::before{content:'חומר'}
.bi-stock-cards .bi-stock-row>div:nth-child(3)::before{content:'יצרן'}
.bi-stock-cards .bi-stock-row>div:nth-child(4)::before{content:'דגם'}
.bi-stock-cards .bi-stock-row>div:nth-child(5)::before{content:'מאפיינים'}
.bi-stock-cards .bi-stock-row>div:nth-child(6)::before{content:'תקין במלאי'}
.bi-stock-cards .bi-stock-row>div:nth-child(7)::before{content:'פגום במלאי'}
.bi-stock-cards .bi-stock-row>div:nth-child(8)::before{content:'סולק במצטבר'}
.bi-stock-cards .bi-stock-row details summary{padding:7px;border:1px solid var(--bi-shell-line,var(--border));background:var(--bi-shell-surface,var(--card))}
.bi-stock-cards .bi-stock-row details :is(a,button){display:block;width:100%;margin-block:5px;font-size:12px;text-align:start}
.bi-personal-stock-nav button{font-size:13px}
@media(max-width:1120px){
 .bi-stock-cards .bi-stock-row{grid-template-columns:repeat(3,minmax(0,1fr))}
 .bi-stock-cards .bi-stock-row>div{border-block-end:1px solid var(--bi-shell-line,var(--border))}
 .bi-stock-cards .bi-stock-row>div:nth-child(2){grid-column:span 2}
 .bi-stock-cards .bi-stock-row>div:nth-child(9){grid-column:1/-1}
}
.bi-warehouse-tools{padding:6px 0 16px}
.stock-inventory-table .bi-stock-row{display:contents}
.stock-inventory-table .bi-stock-row>div{border-bottom:1px solid var(--bi-shell-line,var(--border));border-inline-end:1px solid var(--bi-shell-line,var(--border));padding:12px;min-width:0;overflow-wrap:anywhere}
.bi-stock-row details summary{padding:5px;border-radius:6px;background:var(--bi-shell-panel,var(--muted));font-size:13px}
.bi-project-tech{display:table;margin-block-start:8px;color:inherit;font-size:13px}
.bi-report-heading{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.bi-report-heading h1{margin:0;line-height:1.25}
.bi-report-heading strong{display:block;margin-top:5px;font-size:17px;overflow-wrap:anywhere}
.bi-report-heading .bi-report-export{display:grid;grid-template-columns:repeat(2,max-content);margin-inline-start:auto}
.report-export-picker{position:relative}
#reportExportToggle{display:inline-flex;align-items:center;justify-content:center;gap:8px}
#reportExportToggle[aria-expanded=true] svg{transform:rotate(180deg)}
#reportExportOptions:not([hidden]){
 position:absolute;inset-block-start:calc(100% + 4px);inset-inline-end:0;z-index:5;
 display:grid;min-width:max(100%,9rem);padding:4px;
 background:var(--card);color:var(--foreground);border:1px solid var(--border);
 border-radius:var(--bi-control-radius,20px);box-shadow:0 5px 16px #0002;
}
#reportExportOptions .bi-report-download{
 display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:44px;
 padding:5px 12px;border-radius:var(--bi-control-radius,20px);color:inherit;text-decoration:none;
}
#reportExportOptions a:is(:hover,:focus-visible){background:var(--muted)}
#reportExportOptions a[aria-disabled=true]{opacity:.55;cursor:default}
.bi-report-export #excelStatus:empty{display:none}
.bi-report-export #refreshReports{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.bi-refresh-icon{width:17px;height:17px;flex:none}
@keyframes bi-refresh-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:no-preference){#refreshReports[aria-busy=true] .bi-refresh-icon{animation:bi-refresh-spin .8s linear infinite}}
.bi-report-summary{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;align-items:start}
.bi-report-summary .bi-report-total{min-height:30px;border-color:transparent;background:none;font-size:13px}
.bi-report-total b{color:var(--metric-color);margin-inline-start:4px}
.bi-report-checked{background:#00856e}.bi-report-pending{background:#62747b}
.bi-progress-branch button{background:transparent;border:0;min-height:32px;padding:3px 6px}
.progress-cell[data-progress-state]{padding:8px;border:1px solid var(--bi-shell-line,var(--border));border-radius:8px;background:var(--muted)}
.progress-cell[data-progress-state=pending]{background:var(--muted)}
.progress-cell[data-progress-state=pending] strong{color:#62747b}
.bi-tech-shell{--bi-shell-line:var(--border);--bi-shell-surface:#fff;--bi-shell-panel:var(--muted);--bi-shell-muted:var(--bi-muted-text);--bi-shell-accent:var(--primary)}
.bi-tech-shell>header{position:sticky;top:0;z-index:3;max-width:720px;margin:auto;padding:10px 14px;justify-content:space-between;gap:8px;background:var(--bi-shell-surface);color:inherit;border-bottom:1px solid var(--bi-shell-line)}
@media (max-width:760px), (hover:none) and (pointer:coarse) {
  .bi-tech-shell:has(#browseView:not([hidden]) #repairForm)>header { position:static; }
}
.bi-tech-shell .bi-surface-toggle{border-color:var(--bi-shell-line)}
.bi-tech-shell>main,.bi-tech-shell>.bi-web-content{max-width:720px;width:100%;margin:0 auto;padding:14px 12px calc(86px + env(safe-area-inset-bottom))}
.bi-tech-shell .layout{display:block}
.bi-tech-shell .layout>.tree,.bi-tech-shell #reportModes{display:none}
.bi-tech-shell .panel{padding:12px}
.bi-tech-shell .stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.bi-tech-shell .stats button{min-width:0;font-size:12px}
.bi-tech-shell .place-row{min-height:62px}
.bi-tech-shell .place-counts{font-size:13px}
.bi-tech-shell>header .bi-surface-toggle{min-height:44px}
.bi-tech-shell #content h2{text-wrap:balance}
.bi-tech-shell #markUnable{flex:1 0 100%}
.bi-tech-shell #issueForms>button{margin:8px 0 0;width:100%}
.bi-tech-shell .photo-button{font-size:13px;vertical-align:top}
.bi-tech-shell details.photo-button{display:inline-block;padding:0}
.bi-tech-shell :is(details.photo-button>summary,details.photo-button>label,label.photo-button){min-height:44px;align-content:center}
.bi-tech-shell label.photo-button{align-items:center}
.bi-tech-shell details.photo-button>:is(summary,label){position:relative;padding:8px 9px;margin:0}
.bi-tech-shell details.photo-button>label{color:var(--foreground);border-block-start:1px solid var(--border);cursor:pointer}
.bi-tech-nav{position:fixed;z-index:5;inset-inline:0;bottom:0;max-width:720px;margin:auto;background:var(--bi-shell-surface);border:1px solid var(--bi-shell-line);padding:4px 8px max(4px,env(safe-area-inset-bottom))}
/* Keep navigation reachable below the form when the landscape keyboard leaves little space. */
@media (orientation: landscape) and (max-height: 240px) and (pointer: coarse) {
  .bi-tech-shell:has(#browseView:not([hidden]) #repairForm) .bi-tech-nav { position: static; }
}
.bi-tech-nav .bi-wordmark,.bi-tech-nav .bi-sidebar-context,.bi-tech-nav .bi-company-back{display:none}
.bi-tech-nav nav{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:3px;padding:0}
.bi-tech-nav :is(button,a){width:100%;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:3px;border:0;border-radius:7px;background:none;color:inherit;text-decoration:none;font:600 12px/1.3 var(--bi-font,Arial,sans-serif)}
.bi-tech-nav [aria-current=page]{background:var(--accent);color:var(--bi-shell-accent)}
.bi-tech-shell .bi-report-export{display:none}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-tech-shell{--bi-shell-surface:var(--surface);--bi-shell-panel:var(--muted);--bi-shell-line:var(--line);--bi-shell-muted:var(--bi-muted-text);--bi-shell-accent:var(--primary)}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-tech-nav [aria-current=page]{background:var(--accent);color:var(--bi-shell-accent)}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-sidebar nav :is(button,a)[aria-current=page]{background:var(--bi-shell-active);color:var(--bi-shell-accent);border-color:transparent}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-location-summary .stats button.checked{color:#83e5b6}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-location-summary .stats button.pending{color:#b7c8be}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-location-summary .stats button.faulty{color:#ff939e}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-location-summary .stats button.closed{color:#9bbfff}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-location-summary .stats button.unable{color:#ffb665}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .chart text{fill:var(--text)}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-report-export a.button:not(.primary){background:transparent;color:var(--text);border-color:var(--line)}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .metrics [data-value=checked]{color:#83e5b6}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .metrics [data-value=pending]{color:#b7c8be}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .metrics [data-value=open]{color:#ff939e}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .metrics :is([data-value=closed],[data-value=resolved]){color:#9bbfff}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(.metrics,.bi-report-total) :is([data-value=unable],[data-value=unableTotal]){color:#ffb665}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(.metrics,.bi-report-total) :is([data-value=opened],[data-value=openedTotal]){color:#d4b4ff}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .progress-cell[data-progress-state]{background:var(--muted)}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .progress-cell[data-progress-state] strong{color:#83e5b6}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .progress-cell[data-progress-state=pending]{background:var(--muted)}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .progress-cell[data-progress-state=pending] strong{color:#b7c8be}
@media(max-width:1100px){.bi-project-page .layout{grid-template-columns:minmax(180px,245px) minmax(0,1fr)}}
@media(max-width:760px){
 .bi-web-shell>header{flex-wrap:wrap}
 .bi-web-shell>header .bi-surface-toggle{white-space:normal}
 .bi-project-sidebar nav{display:flex;align-items:start}
 .bi-project-sidebar .bi-sidebar-context{display:none}
 .bi-project-sidebar .bi-project-submenu .bi-nav-group{min-width:min(100%,240px)}
 .bi-project-page .layout{grid-template-columns:minmax(0,1fr)}
 .bi-report-heading{gap:8px}.bi-report-heading h1{font-size:20px}
 .bi-report-heading .bi-report-export{margin:0}
 .bi-report-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .bi-report-summary>div{grid-column:1/-1}
 .bi-project-page .stock-inventory-table{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 .stock-inventory-table .stock-head{display:none}
 .stock-inventory-table .bi-stock-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--bi-shell-line,var(--border));border-radius:10px}
 .stock-inventory-table .bi-stock-row>div{padding:8px;border-inline-end:0}
 .bi-stock-row>div:nth-child(2){grid-column:span 2}
 .bi-stock-row>div:nth-child(9){grid-column:1/-1;border-bottom:0}
 .bi-stock-row>div:nth-child(n+3):nth-child(-n+8)::before{display:block;font-size:11px;color:var(--bi-shell-muted,var(--bi-muted-text))}
 .bi-stock-row>div:nth-child(3)::before{content:'יצרן'}
 .bi-stock-row>div:nth-child(4)::before{content:'דגם'}
 .bi-stock-row>div:nth-child(5)::before{content:'מאפיינים'}
 .bi-stock-row>div:nth-child(6)::before{content:'תקין במלאי'}
 .bi-stock-row>div:nth-child(7)::before{content:'פגום במלאי'}
 .bi-stock-row>div:nth-child(8)::before{content:'סולק במצטבר'}
}

/* Mobile web workspace: retain controls while keeping reading and touch targets comfortable. */
@media screen and (max-width:760px){
 html .bi-web-shell :is(main,.bi-web-content,.workspace-heading,#workspace,.report-panel,.library-layout){min-width:0;max-width:100%}
 html .bi-web-shell :is(h1,h2,h3,p,label,button,a,summary){overflow-wrap:anywhere}
 html .bi-web-shell :is(input:not([type=checkbox],[type=radio],[type=hidden]),select,button,.action,.button){min-height:44px;max-width:100%}
 html .bi-web-shell .bi-report-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}
 html .bi-web-shell .bi-report-heading .bi-project-frame{width:76px;height:76px;grid-column:2;grid-row:1}
 html .bi-web-shell .bi-report-heading>div:not(.bi-project-frame):not(.bi-report-export){grid-column:1;grid-row:1;min-width:0}
 html .bi-web-shell .bi-report-heading .bi-report-export{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin:0}

 html .bi-web-shell .bi-report-export :is(button,a){width:100%;min-width:0;text-align:center;justify-content:center;white-space:normal}
 html .bi-web-shell .bi-report-export #excelStatus{grid-column:1/-1;min-block-size:0}
 html .bi-web-shell #reportModes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;background:transparent}
 html .bi-web-shell #reportModes [data-mode=dashboard]{grid-column:1/-1}
 html .bi-web-shell #reportModes button{width:100%;min-width:0;white-space:normal}
 html .bi-web-shell #reportModes button[aria-current=page]{background:var(--accent);color:var(--foreground);border-color:var(--bi-control-border,var(--border));box-shadow:inset 0 0 0 1px var(--bi-control-border,var(--border))}
 html .bi-web-shell .filter-grid{grid-template-columns:minmax(0,1fr);gap:10px}
 html .bi-web-shell :is(.table-scroll,.chart-wrap,.pdf-pages){max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
 html .bi-web-shell .workspace-heading{align-items:stretch}
 html .bi-web-shell .workspace-heading .actions{width:100%}
 html .bi-web-shell :is(.workspace-heading .actions,.surface .actions){gap:8px}
 html .bi-web-shell :is(.workspace-heading .actions,.surface .actions) :is(button,.action){max-width:100%;white-space:normal}
 html .bi-web-shell :is(.library-search,.folder-row,.folder-name,.document-detail){min-width:0;max-width:100%}
 html .bi-web-shell .library-search{flex:1 0 100%;width:100%}
 html .bi-web-shell .library-search input{display:block;width:100%}
 html .bi-web-shell .folder-children{margin-inline-start:10px;padding-inline-start:6px}
 html .bi-web-shell dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;padding:16px}
 html .bi-web-shell .stock-inventory-table .bi-stock-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 html .bi-web-shell .bi-stock-cards .bi-stock-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 html .bi-web-shell .stock-inventory-table .bi-stock-row>div:nth-child(2){grid-column:auto}
 html .bi-web-shell .stock-inventory-table .bi-stock-row>div:nth-child(9){grid-column:1/-1}
}

#offlineMediaReminder:not([hidden]){display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 16px;background:var(--surface,var(--card));color:var(--text,var(--foreground));border-block-end:2px solid #c76a00}
#offlineMediaReminder button{margin-inline-start:auto}
#offlineStatus{padding:10px 12px;margin-block-end:12px;border:1px solid var(--bi-shell-line,var(--border));border-radius:8px;background:var(--bi-shell-surface,var(--card));color:var(--text,var(--foreground));font-size:14px;overflow-wrap:anywhere}
.bi-sync-toolbar{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.bi-sync-status{flex:1 1 270px;min-inline-size:0;font-variant-numeric:tabular-nums}
.bi-sync-status::before{content:'';display:inline-block;inline-size:8px;block-size:8px;border-radius:50%;margin-inline-end:7px;background:currentColor}
.bi-sync-status::before{transition:transform 140ms cubic-bezier(.23,1,.32,1)}
#offlineStatus[data-syncing=true] .bi-sync-status::before{transform:scale(1.35)}
@media(prefers-reduced-motion:reduce){.bi-sync-status::before{transition:none}#offlineStatus[data-syncing=true] .bi-sync-status::before{transform:none}}
#offlineStatus[data-connection=online] .bi-sync-status::before{background:#00856e}
#offlineStatus[data-connection=offline] .bi-sync-status::before{background:#b85800}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) #offlineStatus[data-connection=online] .bi-sync-status::before{background:#83e5b6}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) #offlineStatus[data-connection=offline] .bi-sync-status::before{background:#ffb665}
#offlineStatus summary{width:fit-content;min-height:32px;align-content:center;cursor:pointer}
.bi-tech-shell #offlineStatus :is(summary,a,button){min-height:44px}
#offlineStatus a{display:inline-flex;align-items:center;color:var(--bi-shell-accent,var(--primary));font-weight:700}
#excelStatus:not(:empty){flex-basis:100%;color:var(--bi-muted-text);font-size:14px}
.bi-report-export #excelStatus{grid-column:1/-1;min-width:0;min-block-size:1.5em;font-size:14px}
#excelStatus[data-state=error]{color:#a42432}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) #excelStatus[data-state=error]{color:#ff939e}
.bi-progress-table th,.bi-progress-table td{padding-block:6px}
.bi-progress-table .bi-progress-branch button{min-height:32px}
.bi-progress-table .progress-cell{padding-block:4px}
.bi-progress-table .progress-cell .open{font-size:14px}
html:not([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(.bi-stock-row,.place-counts) .checked{color:#007863}
html:not([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(.bi-stock-row,.place-counts) .unable,
html:not([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(.metrics,.bi-report-total) :is([data-value=unable],[data-value=unableTotal]),
html:not([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-company-metrics :is([data-value=unable],[data-value=unableTotal]){color:#a64e00}
.bi-company-metrics [data-value]{color:var(--bi-metric-color)}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-company-metrics [data-value=checked]{color:#83e5b6}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-company-metrics [data-value=pending]{color:#b7c8be}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-company-metrics [data-value=open]{color:#ff939e}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-company-metrics :is([data-value=unable],[data-value=unableTotal]){color:#ffb665}
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-company-metrics [data-value=openedTotal]{color:#d4b4ff}
#workDigest dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:8px}
#workDigest dl>div{padding:10px;border:1px solid var(--bi-shell-line,var(--border));border-radius:8px}
#workDigest dd{margin:4px 0 0;font-weight:700;font-variant-numeric:tabular-nums}

/* Screen components shared by the dashboard, project, library, settings and editor. */
@media screen {
  html body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--bi-font);
  }

  html :is(h1, h2, h3, h4) {
    font-weight: 600;
    letter-spacing: -0.025em;
  }

  html :is(button, input, textarea, select, .button, .action, .bi-outline, .bi-sidebar nav a, .bi-sidebar nav summary, .bi-tech-nav a) {
    font-family: var(--bi-font);
  }

  html :is(.bi-web-shell, .bi-tech-shell) {
    --bi-shell-surface: var(--card);
    --bi-shell-panel: var(--muted);
    --bi-shell-line: var(--border);
    --bi-shell-muted: var(--bi-muted-text);
    --bi-shell-active: var(--accent);
    --bi-shell-accent: var(--primary);
  }

  html :is(.muted, .no-photo, .path, #breadcrumbs, #excelStatus:not([data-state=error])) { color: var(--bi-muted-text); }
  html a:not(:is(.primary, .button, .action, .bi-outline, .bi-sidebar a, .bi-tech-nav a)) { color: inherit; }

  html :is(.bi-web-shell > header, .bi-tech-shell > header, body > header, .bi-sidebar, .bi-tech-nav) {
    background-color: var(--background);
    color: var(--foreground);
    border-color: var(--border);
  }

  html .bi-web-shell > header:not(.bi-brand-banner) { min-height: 4.5rem; }
  html .bi-web-shell > header.bi-brand-banner {
    background-color: #18181b;
    background-blend-mode: luminosity, luminosity;
    color: #fafafa;
  }
  html header .bi-logo { background-color: #18181b; border-color: #ffffff33; }
  html .bi-web-shell > header .bi-header-back { color: inherit; }

  html :is(.surface, .panel, .card, .layer, .report-panel, .document-card, .document-detail, .list-card, .detail, .history,
    dialog, .modal, .editor-card, .mobile-card, .phone-card, .issue,
    .bi-company-home .bi-project-card, .bi-stock-screen > .bi-warehouse-block,
    .bi-stock-screen #warehouseContent > .bi-warehouse-block, .bi-stock-screen #stockFormArea:not(:empty),
    .bi-company-home main > :is(#auth, #change)) {
    background-color: var(--card);
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: var(--bi-card-radius);
    box-shadow: var(--bi-card-shadow);
    padding: 1.5rem;
  }

  html :is(.bi-project-page .layout > .panel:has(.bi-stock-screen)) {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  html :is(dialog, .modal)::backdrop { background: rgb(9 9 11 / 0.55); }
  html :is(.bi-metric, .stats > div, .stats > button, .metrics button, .repair-work, .bi-project-frame) {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--bi-card-radius);
  }
  html :is(.bi-item-state, .progress-cell[data-progress-state], .progress-cell[data-progress-state=pending], .thumb, .no-photo) {
    background: var(--muted);
    border-color: var(--border);
  }

  html :is(button, .button, .action, .btn, .bi-outline, .bi-actions a, .bi-surface-toggle, .photo-button,
    .bi-nav-menu > summary, .bi-stock-row details summary) {
    min-height: 2.25rem;
    border-radius: var(--bi-control-radius);
    border: 1px solid var(--border);
    padding: 0.375rem 0.75rem;
    background-color: transparent;
    color: var(--foreground);
    font: 500 0.875rem/1.25 var(--bi-font);
    transition: background-color 150ms, border-color 150ms;
  }
  html :is(button.primary, .button.primary, .action.primary, .btn.primary, input[type=submit]) {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground);
  }
  html :is(.secondary, .bi-sidebar nav [aria-current=page], .bi-tech-nav [aria-current=page],
    button[aria-selected=true], button[aria-current=page]:not(.primary), .stats button[aria-pressed=true]) {
    background-color: var(--muted);
    color: var(--foreground);
  }

  html :is(.bi-sidebar nav a, .bi-sidebar nav button, .bi-sidebar nav summary, .bi-tech-nav a, .bi-tech-nav button) {
    border-color: transparent;
    font-weight: 500;
  }
  html .bi-brand-banner .bi-surface-toggle { color: inherit; border-color: #ffffff55; }
  html :is(.bi-sidebar, .bi-tech-nav, .bi-company-back, .bi-surface-toggle) svg {
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  html :is(input:not([type=checkbox], [type=radio], [type=range], [type=color], [type=hidden]), select, textarea) {
    min-height: 2.25rem;
    background-color: var(--background);
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: var(--bi-control-radius);
    padding: 0.375rem 0.75rem;
    font: 400 0.875rem/1.25 var(--bi-font);
  }
  html :is(input, textarea)::placeholder { color: var(--bi-muted-text); opacity: 1; }
  html :is(input[type=checkbox], input[type=radio]) { accent-color: var(--primary); }
  html :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible,
  html .bi-project-page .photo-button:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }
  html .bi-brand-banner :focus-visible { outline-color: #fafafa; }
  html .bi-project-page .photo-button input {
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
  }
  html :is(button:disabled, input:disabled, select:disabled, textarea:disabled, .button[aria-disabled=true]) {
    opacity: 0.55;
    cursor: not-allowed;
  }

  html :is(table, .warehouse-table) { border-color: var(--border); }
  html :is(th, td, .warehouse-table > div, .stock-inventory-table .bi-stock-row > div, .bi-stock-cards .bi-stock-row > div) {
    border: 0;
    border-block-end: 1px solid var(--border);
  }
  html :is(th, .stock-head),
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(th, .stock-head),
  html .bi-stock-cards .bi-stock-row > div::before {
    background-color: transparent;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    font-weight: 500;
  }
  html .table-scroll tbody td::before,
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .table-scroll tbody td::before { color: var(--bi-muted-text); }
  html table tr[aria-selected=true] { background-color: var(--accent); }
  html :is(.bi-stock-cards .bi-stock-row, .list-card, .place-row) {
    background-color: var(--card);
    border-color: var(--border);
  }

  html :is(.tag.active, .tag.accepted, .bi-project-status) { color: var(--bi-positive); background: var(--bi-positive-bg); }
  html :is(.tag.blocked, .tag.rejected, .notice-unread, .stock-event-defective, .stock-event-low) { color: var(--bi-danger); background: var(--bi-danger-bg); }
  html :is(.tag.pending, .tag.contractor, .stock-event-transfer) { color: var(--bi-warning); background: var(--bi-warning-bg); }
  html .bi-project-page :is(#markChecked, #markFaulty, #markUnable),
  html .bi-project-sidebar nav .bi-close-project { border-color: currentColor; }
  html .bi-project-page #markChecked { color: var(--bi-positive); background: var(--bi-positive-bg); }
  html :is(.bi-project-page #markFaulty, .bi-project-sidebar nav .bi-close-project) { color: var(--bi-danger); background: var(--bi-danger-bg); }
  html .bi-project-page #markUnable { color: var(--bi-warning); background: var(--bi-warning-bg); }
  html :is(.bi-project-page .issue, .bi-project-page .issue.unable-form) { color: var(--foreground); border-color: var(--border); }
  html .bi-project-page .issue h3 { color: var(--bi-danger); background: var(--bi-danger-bg); }
  html .bi-project-page .issue.unable-form h3 { color: var(--bi-warning); background: var(--bi-warning-bg); }
  html .bi-project-page .issue.unable-form :is(label, summary, small, .photo-button) { color: var(--foreground); }
  html :is(.checked, .stock-good, .metrics [data-value=checked]) { color: var(--bi-positive); }
  html :is(.faulty, .open, .error, .stock-min, .metrics [data-value=open], #excelStatus[data-state=error]) { color: var(--bi-danger); }
  html :is(.unable, .stock-reserved, .metrics :is([data-value=unable], [data-value=unableTotal])) { color: var(--bi-warning); }
  html :is(.closed, .metrics :is([data-value=closed], [data-value=resolved])) { color: var(--bi-info); }
  html :is(.pending, .metrics [data-value=pending]) { color: var(--bi-muted-text); }

  html #offlineStatus { border-radius: var(--bi-card-radius); }
  html #offlineMediaReminder { border-color: var(--border); background: var(--bi-warning-bg); color: var(--bi-warning); }
  html .chart text { font-family: var(--bi-font); fill: var(--foreground); }

  /* The tree editor has an isolated document and still uses its existing selector names. */
  html:has(.workspace .tree-panel) {
    --ink: var(--foreground);
    --line: var(--border);
    --soft: var(--muted);
    --panel: var(--card);
    --accent2: var(--primary-hover);
    --accentSoft: var(--accent);
    --radius: var(--bi-card-radius);
    --shadow: var(--bi-card-shadow);
  }
  html:has(.workspace .tree-panel), html:has(.workspace .tree-panel) body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--bi-font);
  }
  html:has(.workspace .tree-panel) :is(.topbar, .phone, .phone-top, .mobile-head, .mobile-content, .search, .field-row, .modal) {
    background-color: var(--card);
    color: var(--foreground);
    border-color: var(--border);
  }
  html:has(.workspace .tree-panel) .phone { border-color: var(--preview-frame); box-shadow: var(--bi-card-shadow); }
  html:has(.workspace .tree-panel) :is(.node.selected, .btn:not(.primary):hover) { background-color: var(--accent); color: var(--foreground); }
  html:has(.workspace .tree-panel) .btn.primary { background: var(--primary); color: var(--primary-foreground); }

  @media (hover: hover) and (pointer: fine) {
    html :is(button, .button, .action, .btn, .bi-outline, .bi-surface-toggle):not(.primary, .ok, .bad, .skip, :disabled, [aria-disabled=true]):hover,
    html :is(.bi-sidebar nav a, .bi-sidebar nav summary, .place-row, table tbody tr, .bi-stock-cards .bi-stock-row, .bi-metric):hover {
      background-color: var(--accent);
    }
    html :is(button.primary, .button.primary, .action.primary, .btn.primary):not(:disabled, [aria-disabled=true]):hover {
      background-color: var(--primary-hover);
      border-color: var(--primary-hover);
    }
  }

  @media (pointer: coarse) {
    html .bi-tech-shell :is(#markChecked, #markFaulty, #markUnable, .bi-surface-toggle, .photo-button, #offlineStatus button),
    html .bi-tech-nav :is(button, a) { min-height: 2.75rem; }
  }
  @media (max-width: 760px) {
    html :is(.panel, .card, .surface, .report-panel, .bi-company-home .bi-project-card,
      .bi-stock-screen > .bi-warehouse-block, .bi-stock-screen #warehouseContent > .bi-warehouse-block,
      .bi-stock-screen #stockFormArea:not(:empty)) { padding: 1rem; }
    html .bi-project-page .layout > .panel:has(.bi-stock-screen) { padding: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    html :is(button, .button, .action, .btn, .bi-outline, .bi-surface-toggle) { transition: none; }
  }

  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(.bi-web-shell, .bi-tech-shell) {
    --bi-shell-accent: var(--foreground);
  }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(.bi-metric, .bi-project-frame, .stats > div, .stats > button, .metrics button, .repair-work) {
    background-color: var(--muted);
  }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(button, .button, .action, .btn, .bi-outline, .bi-actions a, .photo-button, .bi-nav-menu > summary, .bi-stock-row details summary) {
    border-color: var(--bi-control-border);
  }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(button:not(.primary, .ok, .bad, .skip), .button:not(.primary), .action:not(.primary), .btn:not(.primary), .bi-outline, .photo-button, .bi-nav-menu > summary) {
    background-color: var(--muted);
  }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(input:not([type=checkbox], [type=radio], [type=range], [type=color], [type=hidden], [type=submit], [type=button], [type=reset]), select, textarea) {
    background-color: var(--bi-input);
    color: var(--foreground);
    border-color: var(--bi-control-border);
  }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible,
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-project-page .photo-button:focus-within {
    outline-color: var(--bi-focus-ring);
  }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-sidebar nav :is(button, a, summary),
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-tech-nav nav :is(button, a) {
    border-color: transparent;
  }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-tech-nav button:not([aria-current=page]) { background-color: transparent; }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(.bi-sidebar nav, .bi-tech-nav) [aria-current=page] { background-color: var(--accent); }
  :where(html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark])) .tag {
    background-color: var(--bi-info-bg);
    color: var(--bi-info);
  }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .tag.open {
    background-color: var(--bi-danger-bg);
    color: var(--bi-danger);
  }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(.good, .success, .document-version-current) { color: var(--bi-positive); }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .warning { color: var(--bi-warning); }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-inspection-track .bi-no-items { color: var(--foreground); }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .stock-event-disposal {
    background-color: var(--bi-disposal-bg);
    color: var(--bi-disposal);
    border-color: var(--bi-disposal);
  }
  /* The closure table's disposal column has a legacy inline color. */
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .closure-balances > div:nth-of-type(5n) { color: var(--bi-disposal) !important; }

  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) #browseView > .panel:has(#stockOverview) {
    background-color: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(.bi-stock-cards .bi-stock-row, #stockFormArea .cross-row, #employeeRows .layer, .bi-warehouse-block .list-card) {
    background-color: var(--muted);
  }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-stock-cards .bi-stock-row details summary { background-color: var(--bi-input); }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-stock-cards .bi-stock-row details[open] summary,
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) #warehouseContent button[aria-pressed=true] {
    background-color: var(--accent);
    border-color: var(--bi-control-border);
  }

  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(.library-layout, .library-layout > aside:first-child, .folder-children, .document-version, .document-link, .history-row, .nodes-selection, dialog .node-check) {
    border-color: var(--border);
  }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(#documentList .document-card, .library-layout #documentDetail) { background-color: var(--muted); }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) #documentList .document-card[aria-selected=true],
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(.folder-row[aria-selected=true] .folder-name, .person-list button[aria-selected=true]) {
    background-color: var(--accent);
    border-color: var(--bi-control-border);
    color: var(--foreground);
  }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .library-layout .folder-toggle { background-color: transparent; border-color: transparent; }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(.pdf-pages, .document-preview) {
    background-color: var(--bi-input);
    border-color: var(--border);
  }

  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-project-page .progress { background-color: var(--bi-input); }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-project-page .tree-row .chosen { background-color: var(--accent); border-color: var(--bi-control-border); }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-project-page .icon { background-color: var(--bi-info-bg); color: var(--bi-info); }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-project-page :is(.kind-קומה, .kind-item) { background-color: var(--bi-positive-bg); color: var(--bi-positive); }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-project-page :is(.kind-דירה, .kind-חזית) { background-color: var(--bi-warning-bg); color: var(--bi-warning); }
  html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) .bi-project-page .kind-מערכת { background-color: var(--bi-disposal-bg); color: var(--bi-disposal); }

  @media (hover: hover) and (pointer: fine) {
    html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(button, .button, .action, .btn, .bi-outline, .photo-button, .bi-nav-menu > summary):not(.primary, .ok, .bad, .skip, :disabled, [aria-disabled=true]):hover {
      background-color: var(--accent);
    }
    html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) :is(button.primary, .button.primary, .action.primary, .btn.primary):not(:disabled, [aria-disabled=true]):hover {
      border-color: var(--bi-control-border);
    }
  }
}

/* Additional personal palettes, matched to the approved comparison. */
@media screen {
 html[data-bi-theme=cream] {
  --background:#e9d9ca;--foreground:#242c38;--card:#fbf6ef;--muted:#f2e9df;--accent:#d4deec;--muted-foreground:#515c69;--border:#c5b7aa;--primary:#a73e00;--primary-foreground:#fff;--primary-hover:#8b3500;--bi-muted-text:#515c69;--bi-control-border:#8b786a;--bi-focus-ring:#4d6080;
 }
 html[data-bi-theme=sage] {
  --background:#e9e4dc;--foreground:#25312a;--card:#faf9f6;--muted:#f0eee8;--accent:#dbe3d5;--muted-foreground:#59665b;--border:#c8c9bf;--primary:#526750;--primary-foreground:#fff;--primary-hover:#40563e;--bi-muted-text:#526055;--bi-control-border:#879286;--bi-focus-ring:#526750;
 }
 html[data-bi-theme=ocean] {
  --background:#102c35;--foreground:#f0f5f3;--card:#173b43;--muted:#214a50;--accent:#325e64;--muted-foreground:#c3d4d0;--border:#4e7477;--primary:#a95708;--primary-foreground:#fff;--primary-hover:#8e4907;--bi-input:#102f38;--bi-control-border:#87a6a5;--bi-focus-ring:#c0ded9;--bi-muted-text:#c3d4d0;--surface:var(--card);--text:var(--foreground);--line:var(--border);--page:var(--background);
 }
 html[data-bi-theme=cream] .bi-web-shell > .bi-sidebar {
  --background:#354766;--foreground:#fff;--card:#354766;--muted:#4d6080;--accent:#4d6080;--border:#7a8ba2;--bi-shell-surface:#354766;--bi-shell-panel:#4d6080;--bi-shell-line:#7a8ba2;--bi-shell-muted:#dbe1ea;--bi-shell-active:#4d6080;--bi-shell-accent:#fff;--bi-muted-text:#dbe1ea;--bi-control-border:#9eacc3;color:#fff;
 }
 html[data-bi-theme=cream] .bi-web-shell > .bi-sidebar nav [aria-current=page],html[data-bi-theme=cream] .bi-web-shell > .bi-sidebar .bi-project-submenu:has([aria-current=page])>summary {background:#4d6080;color:#fff}
 html[data-bi-theme=cream] .bi-web-shell > .bi-sidebar .bi-close-project {background:#4a2328;color:#ffc1c5}
}
/* Personal cyan palettes: retain semantic status colors from the existing light and graphite themes. */
@media screen {
 html[data-bi-theme=breeze-light] {
  --bi-card-radius:0.625rem;--bi-control-radius:0.625rem;
  --background:oklch(1 0 0);--foreground:oklch(0.148 0.004 228.8);--card:oklch(1 0 0);--muted:oklch(0.963 0.002 197.1);--accent:oklch(0.963 0.002 197.1);--muted-foreground:oklch(0.50 0.021 213.5);--border:oklch(0.925 0.005 214.3);--primary:oklch(0.52 0.105 223.128);--primary-foreground:oklch(0.984 0.019 200.873);--primary-hover:oklch(0.45 0.085 224.283);--bi-muted-text:oklch(0.50 0.021 213.5);--bi-control-border:oklch(0.65 0.014 214.4);--bi-focus-ring:oklch(0.52 0.105 223.128);
 }
 html[data-bi-theme=breeze-dark] {
  --bi-card-radius:0.625rem;--bi-control-radius:0.625rem;
  --background:oklch(0.148 0.004 228.8);--foreground:oklch(0.987 0.002 197.1);--card:oklch(0.218 0.008 223.9);--muted:oklch(0.275 0.011 216.9);--accent:oklch(0.275 0.011 216.9);--muted-foreground:oklch(0.723 0.014 214.4);--border:oklch(1 0 0 / 20%);--primary:oklch(0.45 0.085 224.283);--primary-foreground:oklch(0.984 0.019 200.873);--primary-hover:oklch(0.52 0.105 223.128);--bi-input:oklch(0.18 0.008 223.9);--bi-control-border:oklch(0.56 0.021 213.5);--bi-focus-ring:oklch(0.865 0.127 207.078);--bi-muted-text:oklch(0.723 0.014 214.4);
 }
 html[data-bi-theme=breeze-light] .bi-web-shell > .bi-sidebar {--background:oklch(0.987 0.002 197.1);}
 html[data-bi-theme=breeze-dark] .bi-web-shell > .bi-sidebar {--background:oklch(0.218 0.008 223.9);}
}


/* Inventory actions and readable alignment. */
@media screen {
 .bi-stock-cards .bi-stock-row > div {text-align:center;}
 .bi-stock-cards .bi-stock-row details :is(a,button) {display:flex;align-items:center;justify-content:center;text-align:center;min-height:36px;}
 .bi-stock-cards .bi-stock-row details a {border:1px solid var(--bi-control-border,var(--border));border-radius:var(--bi-control-radius);padding:6px 8px;text-decoration:none;}
 #minimumForm {display:grid;gap:10px;}
 #minimumForm :is(label,p) {margin:0;}
 #minimumForm button {justify-self:start;margin:4px 0 0;}
 .bi-action-icon {width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;}
 .bi-icon-only {display:inline-flex!important;align-items:center;justify-content:center;min-width:44px;}
 .photo-button :is(summary,label) .bi-action-icon,.photo-button> :is(a,button):not(.bi-icon-only) > .bi-action-icon {margin-inline-end:6px;}
}

@media screen {
 .bi-sidebar nav .bi-submenu-back {display:none;}
 .bi-action-icon {margin-inline-end:6px;}
}

@media screen {
 .bi-legal-links{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 14px;margin-block:32px 16px;padding-block:16px;border-block-start:1px solid var(--border);color:var(--bi-muted-text);font-size:.8rem}
 html .bi-legal-links button{min-height:44px;padding:6px 4px;border:0;background:transparent;color:var(--foreground);text-decoration:underline;text-underline-offset:3px}
 html dialog.bi-legal-dialog{width:min(720px,calc(100vw - 24px));max-height:min(85dvh,900px);overflow:auto;direction:rtl;color:var(--foreground);background:var(--card);border:1px solid var(--border);padding:20px}
 .bi-legal-header{display:flex;gap:12px;justify-content:space-between;align-items:start;position:sticky;top:-20px;z-index:1;background:var(--card);padding-block:8px 12px;border-block-end:1px solid var(--border)}
 .bi-legal-header h2{margin:0;font-size:1.2rem}.bi-legal-content{line-height:1.7;overflow-wrap:anywhere}.bi-legal-content h3{font-size:1rem;margin-block:24px 6px}.bi-legal-content p{margin-block:8px}.bi-legal-warning{padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--muted);font-weight:600}.bi-tech-shell .bi-legal-links{padding-bottom:80px}
}

@media screen {
 .bi-legal-ack h2{font-size:1.2rem;margin:0 0 12px}.bi-legal-ack p{line-height:1.7}.bi-legal-ack-links,.bi-legal-ack-actions{display:flex;flex-wrap:wrap;gap:8px;margin-block:14px}.bi-legal-ack-links button{min-height:44px}.bi-legal-ack .error:empty{display:none}
}

/* Keep closure confirmations clear of the expanding desktop sidebar. */
@media screen and (min-width: 761px) {
  .bi-desktop-menu-ready #projectCloseForm { padding-inline-start: 180px; }
}
#pdfExport .bi-action-icon text { direction: ltr; unicode-bidi: isolate; }
.bi-tech-nav[hidden] { display: none !important; }

/* Compact company registration and project access wizard. Reuses appearance tokens. */
@media screen {
 #usersSection.bi-user-wizard{max-width:680px;margin-inline:auto;padding:24px 28px;border-color:var(--border);background:var(--card)}
 .bi-user-wizard .bi-page-heading{align-items:start;gap:12px;margin-bottom:8px}
 .bi-user-wizard .bi-page-heading h1{font-size:24px;margin:0}
 .bi-user-wizard .bi-page-heading a{font-size:13px;white-space:nowrap}
 .bi-wizard-steps{display:flex;gap:12px;list-style:none;padding:0;margin:22px 0 24px;border-bottom:1px solid var(--border);padding-bottom:22px}
 .bi-wizard-steps li{display:flex;align-items:center;gap:8px;flex:1;color:var(--bi-muted-text);font-size:13px}
 .bi-wizard-steps li:not(:last-child)::after{content:'';height:1px;background:var(--border);flex:1;margin-inline-start:4px}
 .bi-step-number{display:grid;place-items:center;width:28px;height:28px;flex:none;border:1px solid var(--bi-control-border,var(--border));border-radius:50%;font-variant-numeric:tabular-nums}
 .bi-wizard-steps [aria-current=step]{color:var(--foreground);font-weight:700}
 .bi-wizard-steps [aria-current=step] .bi-step-number,.bi-step-complete .bi-step-number{background:var(--primary);color:var(--primary-foreground);border-color:var(--primary)}
 .bi-wizard-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px 20px}
 .bi-wizard-field{min-width:0}.bi-field-wide{grid-column:1/-1}
 .bi-user-wizard label{font-size:14px;margin:0 0 6px}
 html .bi-user-wizard input:not([type=checkbox]),html .bi-user-wizard select{width:100%;min-height:44px}
 .bi-user-wizard input[dir=ltr]{text-align:right}
 .bi-wizard-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:24px;padding-top:16px;border-top:1px solid var(--border);flex-direction:row-reverse}
 html .bi-user-wizard .bi-wizard-actions button{margin:0!important;min-height:44px}
 html .bi-user-wizard .bi-wizard-actions .bi-wizard-cancel{margin-inline-end:auto!important;background:transparent;border-color:transparent;color:var(--bi-muted-text)}
 .bi-wizard-summary{margin:18px 0}.bi-wizard-summary>div{display:flex;justify-content:space-between;gap:24px;border-bottom:1px solid var(--border);padding:12px 0}
 .bi-wizard-summary dt{color:var(--bi-muted-text)}.bi-wizard-summary dd{margin:0;text-align:end;overflow-wrap:anywhere;font-weight:600}
 .bi-wizard-message:empty{display:none}.bi-wizard-message{margin:16px 0;color:var(--bi-danger);overflow-wrap:anywhere}
 #accessSection.bi-wizard-active{background:transparent;border:0;box-shadow:none;padding:0}
 #accessSection.bi-wizard-active>:not(#accessForm){display:none!important}
 #accessForm.bi-user-wizard{max-width:680px;margin-inline:auto;border:1px solid var(--border);border-radius:var(--bi-card-radius);background:var(--card);padding:24px 28px}
 .bi-wizard-heading h2{font-size:24px;margin:0 0 6px}.bi-wizard-heading>p{margin:0}
 .bi-access-step>div:not(.bi-permission-groups){margin-bottom:18px}
 .bi-access-step h3{font-size:16px;margin:22px 0 12px}
 .bi-access-step .section-subheading{font-size:16px;margin:20px 0 4px}
 .bi-wizard-person{padding-bottom:16px;border-bottom:1px solid var(--border);font-weight:600;margin:0 0 20px}
 #accessRoleState{margin:8px 0 0;font-size:13px}
 .bi-restore-role{border:0;background:transparent!important;text-decoration:underline;text-underline-offset:4px;color:var(--bi-muted-text)!important;padding:4px 0!important;margin:0!important;font-size:13px;min-height:36px}
 #rights.bi-permission-groups{display:block;margin-top:8px}
 .bi-permission-groups details{border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent;padding:0}
 .bi-permission-groups details:first-child{border-top:1px solid var(--border)}
 .bi-user-wizard .bi-permission-groups summary{cursor:pointer;min-height:52px;display:flex;align-items:center;gap:10px;font-weight:600;list-style:none;padding:8px 0}
 .bi-permission-groups summary::-webkit-details-marker{display:none}
 .bi-permission-groups summary .muted{margin-inline-start:auto;font-size:13px}
 .bi-permission-groups summary::after{content:'';width:7px;height:7px;border-bottom:1.5px solid currentColor;border-inline-end:1.5px solid currentColor;transform:rotate(45deg);margin:0 4px}
 .bi-permission-groups details[open] summary::after{transform:rotate(225deg)}
 .bi-permission-groups fieldset{border:0;margin:0;padding:0 0 14px;display:grid;grid-template-columns:1fr 1fr;gap:4px 20px;min-width:0}
 .bi-permission-groups label,#zones label{display:flex;align-items:start;gap:10px;font-weight:400;font-size:14px;min-height:44px;margin:0;padding:8px 0;overflow-wrap:anywhere}
 .bi-permission-groups input[type=checkbox],#zones input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:none;margin:3px 0 0;accent-color:var(--primary)}
 .bi-permission-groups label:has(input:disabled){color:var(--bi-muted-text)}
 .bi-permission-groups summary:focus-visible{outline:2px solid var(--bi-focus-ring,var(--foreground));outline-offset:3px}
 .bi-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
 @media(max-width:600px){
  #usersSection.bi-user-wizard,#accessForm.bi-user-wizard{padding:20px 16px}
  .bi-user-wizard .bi-page-heading{display:block}.bi-user-wizard .bi-page-heading a{margin-top:12px}
  .bi-wizard-fields,.bi-permission-groups fieldset{grid-template-columns:1fr}
  .bi-wizard-steps{gap:8px}.bi-wizard-steps li{position:relative;flex-direction:column;text-align:center;gap:6px;font-size:12px}
  .bi-wizard-steps li:not(:last-child)::after{position:absolute;width:calc(100% - 26px);top:14px;right:calc(50% + 20px);margin:0}
  .bi-wizard-actions{gap:6px}.bi-wizard-actions button{padding:8px 10px}
 }
}
/* Compact project membership cards. Shared groups and existing edit wizard. */
@media screen {
 #projectMembers .bi-member-card{padding:0;margin:16px 0;border:1px solid var(--border);border-radius:var(--bi-card-radius);background:var(--card);overflow:clip;color:var(--foreground)}
 .bi-member-identity{padding:18px 20px;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:1px solid var(--border)}.bi-member-identity>div{min-width:0}
 #projectMembers .bi-member-name{font-size:20px;line-height:1.4;margin:0;overflow-wrap:anywhere}
 .bi-member-role{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:4px;font-size:15px}.bi-member-person-type{font-size:13px;color:var(--bi-muted-text);padding-inline-start:8px;border-inline-start:1px solid var(--border)}
 .bi-member-card svg{width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 .bi-member-status{display:inline-flex;align-items:center;gap:4px;font-size:12px;padding:4px 7px;border-radius:6px;white-space:nowrap}.bi-member-status svg{width:14px;height:14px}.bi-member-status.is-active{background:var(--bi-positive-bg);color:var(--bi-positive)}.bi-member-status.is-inactive{background:var(--muted);color:var(--foreground)}
 .bi-member-inactive-note{font-size:13px;margin:0;padding:12px 20px;background:var(--muted);color:var(--foreground)}
 .bi-member-body{display:grid;grid-template-columns:1.15fr 1fr}.bi-member-permissions,.bi-member-scope{padding:16px 20px;min-width:0}.bi-member-scope{border-inline-start:1px solid var(--border)}
 .bi-member-section-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:7px}.bi-member-section-heading h4{font-size:14px;margin:0}.bi-member-section-heading>span{font-size:12px;white-space:nowrap}
 .bi-member-card .muted{color:var(--bi-muted-text)}.bi-member-card .bi-member-summary{margin:0;font-size:14px;line-height:1.55;overflow-wrap:anywhere}.bi-member-card .bi-member-more{margin:6px 0 0;font-size:12px}
 .bi-member-zones,.bi-member-zone-paths{list-style:none;padding:0;margin:0;font-size:14px;overflow-wrap:anywhere}.bi-member-zones li+li,.bi-member-zone-paths li+li{margin-top:4px}.bi-member-card bdi{font-variant-numeric:tabular-nums}
 #projectMembers .bi-member-detail-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:46px;padding:10px 20px;border:0;border-top:1px solid var(--border);border-radius:0;background:transparent;color:var(--foreground);text-align:start;font-size:14px}
 #projectMembers .bi-member-detail-toggle:hover{background:var(--muted)}
 .bi-member-detail-toggle::after{content:'';flex-shrink:0;border-right:1.6px solid;border-bottom:1.6px solid;width:7px;height:7px;transform:rotate(45deg);margin:0 3px 4px}.bi-member-detail-toggle[aria-expanded=true]::after{transform:rotate(225deg);margin-bottom:0}
 .bi-member-full-rights{padding:16px 20px;border-top:1px solid var(--border);background:var(--card)}.bi-member-full-rights>h4{font-size:14px;margin:18px 0 8px}.bi-member-card .bi-member-custom{font-size:13px;margin:0 0 12px}
 .bi-member-scope-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0;padding-bottom:14px;border-bottom:1px solid var(--border)}.bi-member-card dt{font-size:12px;margin-bottom:3px}.bi-member-card dd{margin:0;font-size:14px;overflow-wrap:anywhere}
 .bi-member-right-grid{display:block}.bi-member-permission-row{display:flex;align-items:flex-start;gap:8px;font-size:13px;overflow-wrap:anywhere;min-width:0}.bi-member-right-grid svg{margin-top:2px;width:17px;height:17px}.bi-member-right-grid .is-granted svg{color:var(--bi-positive)}.bi-member-card .bi-member-detail-note{margin:16px 0 0;font-size:12px}
 .bi-member-footer{border-top:1px solid var(--border);padding:12px 20px;display:flex;justify-content:flex-end}
 #projectMembers .bi-member-edit{display:flex;gap:8px;align-items:center;justify-content:center;min-height:44px;font-size:14px}
}
@media screen and (max-width:650px){
 .bi-member-identity{padding:16px;gap:8px}.bi-member-body{grid-template-columns:1fr}.bi-member-permissions,.bi-member-scope{padding:14px 16px}.bi-member-scope{border-inline-start:0;border-top:1px solid var(--border)}
 .bi-member-footer{padding:12px 16px}.bi-member-edit{width:100%}.bi-member-full-rights{padding:16px}.bi-member-right-grid,.bi-member-scope-meta{grid-template-columns:1fr}.bi-member-inactive-note{padding:12px 16px}.bi-member-status{white-space:normal}
 #projectMembers .bi-member-detail-toggle{padding-inline:16px}
}
@media screen and (max-width:360px){.bi-member-identity{flex-wrap:wrap}}

/* Independent permission disclosures within member details. */
@media screen {
.bi-member-permission-group{border:1px solid var(--border);border-radius:8px;background:var(--card);margin-top:8px;overflow:clip}
.bi-member-permission-group>summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:11px 12px;list-style:none;cursor:pointer;font-size:14px}
.bi-member-permission-group>summary::-webkit-details-marker{display:none}
.bi-member-group-title{font-weight:600;flex:1;min-width:0;overflow-wrap:anywhere}
.bi-member-group-count{font-size:12px;color:var(--bi-muted-text);white-space:nowrap;font-variant-numeric:tabular-nums}
.bi-member-permission-group>summary::after{content:'';width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 3px 4px;flex-shrink:0}
.bi-member-permission-group[open]>summary::after{transform:rotate(225deg);margin-bottom:0;margin-top:4px}
.bi-member-permission-group>summary:hover{background:var(--muted)}
.bi-member-permission-group>summary:focus-visible{outline:3px solid var(--ring,var(--primary));outline-offset:-3px}
.bi-member-permission-items{border-top:1px solid var(--border);padding:5px 12px}
.bi-member-permission-row{padding:8px 0}
.bi-member-permission-row+.bi-member-permission-row{border-top:1px solid var(--border)}
}

/* Granted rights first; full list remains available in each group. */
@media screen {
.bi-member-denied-rights{border-top:1px solid var(--border)}
.bi-member-card .bi-member-empty-grants{font-size:13px;color:var(--bi-muted-text);margin:9px 0}
.bi-member-card .bi-member-show-all{display:block;width:100%;min-height:44px;text-align:start;font-size:13px;border:0;border-top:1px solid var(--border);border-radius:0;padding:10px 0;background:transparent;color:var(--foreground);font-weight:600;margin:4px 0 0}
.bi-member-card .bi-member-show-all:hover{background:var(--muted)}
.bi-member-card .bi-member-show-all:focus-visible{outline:3px solid var(--ring,var(--primary));outline-offset:0}
}

/* Full-list controls stay reachable while scrolling their permission group. */
@media screen {
.bi-member-full-list-tools{display:flex;position:sticky;top:0;z-index:2;align-items:center;justify-content:space-between;gap:8px;padding:6px 0;margin:0 0 6px;background:var(--card);border-bottom:1px solid var(--border);box-shadow:0 5px 7px -7px #0008}
.bi-member-full-list-tools>span{font-size:14px;font-weight:600;color:var(--foreground);min-width:0;overflow-wrap:anywhere;flex:1;line-height:1.4}
.bi-member-full-list-tools>.bi-member-hide-top{flex-shrink:0;white-space:nowrap}
.bi-member-card .bi-member-hide-top{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px 10px;font-size:13px;font-weight:600;background:var(--muted);color:var(--foreground);border:1px solid var(--border)}
.bi-member-hide-top::after{content:'';width:7px;height:7px;border-right:1.5px solid;border-bottom:1.5px solid;transform:rotate(225deg);margin:4px 3px 0}
.bi-member-hide-top:focus-visible{outline:3px solid var(--ring,var(--primary));outline-offset:0}
}

/* Compact mobile toolbar; preserve the 44px touch target. */
@media screen and (max-width:650px){
.bi-member-full-list-tools{padding:0;margin-bottom:4px;gap:6px}
.bi-member-full-list-tools>span{font-size:13px;line-height:1.35}
.bi-member-card .bi-member-hide-top{padding:6px 8px;gap:4px;min-height:44px}
}

/* User workflow: feedback, unambiguous zones and optional actions. */
.bi-wizard-message[data-state=success]{color:var(--bi-positive)}
#zones label>bdi{min-width:0;overflow-wrap:anywhere}
.bi-access-additional{margin-top:24px;border-top:1px solid var(--border);padding-top:8px}
.bi-access-additional>summary{min-height:44px;display:list-item;align-content:center;cursor:pointer;font-weight:600;padding:8px 0}
.bi-access-additional>form{margin-top:16px}

/* Warehouse operations: stable cells, readable counts and shared form actions. */
.bi-stock-screen{min-width:0}.bi-stock-screen #stockFormArea:not(:empty){max-width:760px;margin-inline:auto}
.bi-stock-screen :is(button,.button,summary){min-height:44px}
.bi-stock-screen #stockFormArea>h3:focus{outline:none}
.bi-stock-screen .bi-stock-form-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px;padding-top:14px;border-top:1px solid var(--border)}
.bi-stock-screen .bi-stock-form-actions>button{margin:0}
.bi-stock-screen #stockError:empty{display:none}.bi-stock-screen #stockError{margin:14px 0}
.bi-stocktake-list{display:grid;gap:14px;margin:18px 0}.bi-stocktake-item{min-width:0;margin:0;padding:16px;border:1px solid var(--border);border-radius:10px}
.bi-stocktake-item legend{font-weight:600;max-width:100%;padding-inline:6px;overflow-wrap:anywhere}
.bi-stocktake-item label{min-width:0}.bi-stocktake-item label>span{display:block;font-weight:400;margin-top:4px}
html .bi-web-shell .bi-stocktake-item input{font-size:16px;min-height:44px;font-variant-numeric:tabular-nums}
.bi-stock-cards .bi-stock-row :is(b,input){font-variant-numeric:tabular-nums}
.bi-stock-cards .bi-stock-row details :is(a,button){font-size:14px;min-height:44px}
.bi-stock-cards .bi-stock-row .material-photo{font-size:12px;color:var(--muted-foreground)}
@media(max-width:650px){
 html .bi-web-shell .bi-stock-cards .bi-stock-row{grid-template-columns:minmax(60px,1fr) minmax(0,2fr);grid-template-areas:'photo name' 'maker model' 'props props' 'good good' 'bad disposed' 'actions actions'}
 html .bi-web-shell .bi-stock-cards .bi-stock-row>div:nth-child(1){grid-area:photo}
 html .bi-web-shell .bi-stock-cards .bi-stock-row>div:nth-child(2){grid-area:name}
 html .bi-web-shell .bi-stock-cards .bi-stock-row>div:nth-child(3){grid-area:maker}
 html .bi-web-shell .bi-stock-cards .bi-stock-row>div:nth-child(4){grid-area:model}
 html .bi-web-shell .bi-stock-cards .bi-stock-row>div:nth-child(5){grid-area:props}
 html .bi-web-shell .bi-stock-cards .bi-stock-row>div:nth-child(6){grid-area:good}
 html .bi-web-shell .bi-stock-cards .bi-stock-row>div:nth-child(7){grid-area:bad}
 html .bi-web-shell .bi-stock-cards .bi-stock-row>div:nth-child(8){grid-area:disposed}
 html .bi-web-shell .bi-stock-cards .bi-stock-row>div:nth-child(9){grid-area:actions}
 .bi-stocktake-item .grid{grid-template-columns:minmax(0,1fr)}
 .bi-stock-form-actions>button{flex:1 1 140px}
}

/* Lifetime history is distinct from the orange currently-uncheckable status. */
:root { --unable-total:#007f91; }
html:is([data-bi-theme=dark],[data-bi-theme=ocean],[data-bi-theme=breeze-dark],[data-bi-theme=modern-minimal-dark]) { --unable-total:#70d4e8; }
html[data-bi-theme] :is(.metrics,.bi-company-metrics,.bi-report-total) [data-value=unableTotal],
html[data-bi-theme] .bi-report-total[data-value=unableTotal],
html :is(.metrics,.bi-company-metrics,.bi-report-total) [data-value=unableTotal] { color:var(--unable-total); }

/* One alignment for the company overview actions, including narrow screens. */
.bi-company-home #serviceCard { padding:24px;min-height:104px; }
.bi-company-home #serviceWarehouse { min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap; }
.bi-project-identity { padding-inline-end:20px;border-inline-end:1px solid var(--border); }
.bi-project-identity>div:last-child { min-width:0;display:flex;flex-direction:column;align-items:flex-start; }
.bi-project-identity .bi-outline { display:inline-flex;align-items:center;justify-content:center;gap:8px; }
.bi-project-identity .bi-project-status { margin-inline:0; }
@media(max-width:1100px){
 .bi-project-identity { padding-inline-end:0;padding-block-end:16px;border-inline-end:0;border-block-end:1px solid var(--border); }
}
@media(max-width:760px){
 .bi-company-home #serviceCard { padding:16px;gap:8px 12px; }
 .bi-company-home #serviceCard { flex-wrap:nowrap; }
 .bi-company-home #serviceWarehouse { min-height:44px;padding:8px 10px; }
 .bi-project-identity { align-items:start;gap:12px; }
 .bi-project-identity>div:last-child { flex:1; }
 .bi-project-identity .bi-outline { min-height:44px; }
}

/* Inventory keeps one semantic row at every viewport. Only this region scrolls. */
.bi-warehouse-block { min-width:0; }
.bi-stock-table-scroll { max-width:100%;overflow:auto;overscroll-behavior-inline:contain;border:1px solid var(--border);border-radius:8px; }
.bi-stock-table-scroll:focus-visible { outline:3px solid var(--ring,var(--primary));outline-offset:3px; }
html .bi-stock-table { width:100%;min-width:1080px;table-layout:fixed;border-collapse:separate;border-spacing:0;margin:0;font-size:14px; }
.bi-stock-scroll-hint { text-align:start;padding:10px 12px;color:var(--muted-foreground);font-size:13px; }
html .bi-stock-table :is(th,td) { box-sizing:border-box;vertical-align:top;text-align:start;padding:12px;border:0;border-block-end:1px solid var(--border);overflow-wrap:anywhere; }
html .bi-stock-table thead th { background:var(--muted);font-size:13px;font-weight:600; }
html .bi-stock-table th:first-child { position:sticky;inset-inline-start:0;width:140px;z-index:1;background:var(--card);border-inline-end:1px solid var(--border); }
html .bi-stock-table thead th:first-child { background:var(--muted);z-index:2; }
html .bi-stock-table th:nth-child(2) { width:150px; }
html .bi-stock-table th:last-child { width:160px; }
html .bi-stock-table tbody tr:last-child>* { border-block-end:0; }
.bi-stock-table p { margin:6px 0 0;line-height:1.55; }
.bi-stock-table .material-photo { min-height:64px;display:grid;place-items:center;color:var(--muted-foreground);font-size:12px; }
.bi-stock-table .material-photo img { width:64px;height:64px;object-fit:contain; }
.bi-stock-table summary { min-height:44px;display:flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid var(--border);border-radius:6px;cursor:pointer; }
.bi-stock-table summary::after { content:'▾';margin-inline-start:auto; }
.bi-stock-table details[open]>summary::after { content:'▴'; }
.bi-stock-table-actions { display:grid;gap:6px;margin-block-start:8px; }
html .bi-stock-table-actions :is(button,a) { min-height:44px;width:100%;margin:0;display:flex;align-items:center;justify-content:center;white-space:normal;text-align:center; }
@media(max-width:760px){
 html .bi-stock-table { min-width:1040px; }
 html .bi-stock-table th:first-child { width:110px; }
 .bi-stock-table-scroll { scrollbar-width:thin; }
}
/* Inline acknowledgement and compact document navigation. */
.bi-legal-links{display:flex;flex-direction:column;align-items:center;gap:6px;padding-block:12px}
.bi-legal-note{font-size:12px}
.bi-legal-row{display:flex;flex-wrap:nowrap;gap:6px;max-width:100%;overflow-x:auto;padding:2px;scrollbar-width:thin}
html .bi-legal-links .bi-legal-row button{white-space:nowrap;flex:0 0 auto;min-height:44px;font-size:13px;padding:7px 10px}
.bi-onboarding{max-width:540px;margin-inline:auto;text-align:start}
.bi-consent-line{display:flex;align-items:center;gap:10px;padding-block:10px;border-block-end:1px solid var(--border)}
.bi-consent-row{display:flex;align-items:flex-start;gap:10px;min-height:44px;margin:0;padding-block:8px;flex:1}
html .bi-consent-row input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:3px 0 0;accent-color:var(--primary,#2457ff)}
.bi-consent-row span{font-size:14px;line-height:1.55;text-align:start}
.bi-consent-line>button{min-height:44px;flex:0 0 auto}
.bi-media-options{margin-block:18px;padding:12px;border:1px solid var(--border);border-radius:8px}
.bi-media-options legend{font-weight:700;padding-inline:5px;font-size:14px}
.bi-onboarding .bi-legal-ack-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.bi-onboarding .bi-legal-ack-actions button{min-height:44px}
.bi-company-metrics>.bi-lifetime{white-space:normal;overflow-wrap:anywhere;line-height:1.4}
@media(max-width:480px){.bi-legal-row{gap:4px}html .bi-legal-links .bi-legal-row button{font-size:12px;padding-inline:6px}.bi-consent-line{gap:6px}}

.bi-onboarding .bi-consent-row{font-weight:400}
.bi-onboarding .bi-consent-line>button{margin-top:0}
.bi-onboarding .error:empty{display:none}
.bi-company-home.bi-onboarding-active>header .bi-brand-copy{display:flex;flex-direction:column;gap:2px}
html .bi-stock-table-actions a{text-decoration:none}

/* Screen geometry shared by all seven BuildInspect themes. */
@media screen {
  html:root, html:root[data-bi-theme] {
    --bi-card-radius: 24px;
    --bi-inner-radius: 20px;
    --bi-control-radius: 20px;
  }
  /* Local screen styles also set corners, including in the embedded tree editor. */
  @layer bi-shape {
    :where(.surface, .panel, .card, .report-panel, .document-card, .document-detail,
      .list-card, .layer, .detail, .history, .editor-card, .mobile-card, .phone-card, .issue,
      .bi-project-card, .bi-warehouse-block, .bi-service-card, .bi-user-wizard,
      .bi-member-card, .section, .bi-stocktake-item, #stockFormArea:not(:empty),
      #auth, #change, #usersSection, #accessSection, #contractorSection, #offlineStatus, #screen > section) {
      --bi-surface-corner: var(--bi-card-radius);
      border-radius: var(--bi-surface-corner) !important;
      & :where(.surface, .panel, .card, .report-panel, .document-card, .document-detail,
        .list-card, .layer, .detail, .history, .editor-card, .mobile-card, .phone-card, .issue,
        .bi-project-card, .bi-warehouse-block, .bi-user-wizard, .bi-member-card,
        .section, .bi-stocktake-item, #stockFormArea:not(:empty)) {
        --bi-surface-corner: var(--bi-inner-radius);
      }
    }
    :where(dialog, .modal, .bi-desktop-flyout, .bi-nav-menu > div) {
      border-radius: var(--bi-card-radius) !important;
    }
    :where(dialog, .modal) :where(.card, .panel, .section, .layer, .detail, .list-card, .bi-user-wizard) {
      --bi-surface-corner: var(--bi-inner-radius);
    }
    :where(.bi-summary-group, .bi-summary-metric, .bi-metric, .bi-project-frame,
      .bi-stock-row, .bi-stock-table-scroll, .bi-member-permission-group, .repair-work,
      .stats > div, .progress-cell[data-progress-state], .bi-media-options, .bi-legal-warning,
      .bi-sidebar-context, #workDigest dl > div, .context-note, .field-row, .requirement,
      .boundary, .mode-tabs, .summary-cell, .preview-box, .photo-drop, .choice) {
      border-radius: var(--bi-inner-radius) !important;
    }
    :where(button, .btn, .button, .action, .bi-outline, .bi-actions a, .bi-surface-toggle,
      .bi-legal-links a, .photo-button, .bi-sidebar nav a, .bi-tech-nav a, .bi-nav-menu > summary,
      .bi-stock-row details summary, .bi-stock-row details a, .bi-stock-table summary,
      .bi-flyout-item, .bi-flyout-back, .place-row, [role=button],
      input:not([type=checkbox], [type=radio], [type=range], [type=color], [type=hidden], [type=image]),
      textarea, select) {
      border-radius: var(--bi-control-radius) !important;
    }
  }
}

@media screen { .bi-stock-screen .bi-warehouse-block { --bi-surface-corner: var(--bi-card-radius); } }
/* The project and service warehouse use the same RTL identity layout. */
.bi-company-home .bi-project-identity {
 display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;
 align-items:start;justify-items:start;gap:10px 14px;
}
.bi-project-identity>.bi-project-frame {grid-column:1;grid-row:1}
.bi-project-identity>div:nth-child(2) {grid-column:2;grid-row:1;min-width:0}
.bi-project-identity>.bi-outline {grid-column:1/-1;grid-row:2;justify-self:start}
#serviceCard .bi-project-identity {border:0;padding:0;width:100%}
#servicePhotoEdit {font-size:.83rem}
#servicePhoto:not(:has(img))+div #servicePhotoEdit {display:inline-block}
#projectSnapshot:not([hidden]) {display:block;padding:clamp(14px,2vw,24px);margin-block:16px;border:1px solid var(--border);border-radius:24px;background:var(--card);box-sizing:border-box}
.report-app #filterCard {margin-block:16px}
#trendHeading:not([hidden]) {display:flex;align-items:center;justify-content:space-between;gap:12px}
#trendHeading h2 {margin:0}
#filterBody:not([hidden]) {margin-block:12px}
#seriesOptions {display:flex;flex-wrap:wrap;gap:8px 16px;margin-block:12px}
#seriesOptions label[hidden],#filterBody[hidden],#trendCriteria[hidden],#trendPlot[hidden],#trendHeading[hidden] {display:none}
.trend-legend {display:flex;flex-wrap:wrap;gap:8px 18px;padding:0;margin:14px 0 0;list-style:none}
.trend-legend li,.bi-report-download {display:inline-flex;align-items:center;gap:7px}
.trend-legend .series-swatch {width:10px;height:10px;border-radius:3px;flex:none}
html .bi-web-shell .report-app #reportModes:not(:empty) {
 display:flex;align-items:stretch;gap:2px;padding:4px;width:fit-content;max-width:100%;
 box-sizing:border-box;border-radius:20px;background:var(--muted);overflow-x:auto;
}
html .bi-web-shell .report-app #reportModes button {width:auto;flex:1 0 auto;background:transparent;color:var(--foreground);border:1px solid transparent;box-shadow:none}
html .bi-web-shell .report-app #reportModes button[aria-current=page] {background:var(--card);color:var(--foreground);border-color:var(--border);box-shadow:0 1px 3px #0002}
@media(max-width:620px){
 html .bi-web-shell .report-app #reportModes:not(:empty){width:100%}
 html .bi-web-shell .report-app #reportModes button{min-height:44px;font-size:.86rem;padding-inline:8px}
}

#trendPlot .chart {height:clamp(225px,30vw,310px)}

/* Keep the statistics together without a second tinted surface behind the cards. */
.report-app .project-statistics {
 margin-block:16px;
}
.project-statistics #projectSnapshot:not([hidden]) {
 margin:0;background:var(--card);padding:clamp(14px,1.8vw,24px);
}
.project-statistics #projectSnapshot .bi-summary-head {
 border-block-end:1px solid var(--border);padding-block-end:12px;
}
.project-statistics #filterCard {margin-block:14px}
.project-statistics>.report-panel:last-child {margin-block-end:0}
html .bi-legal-links .bi-legal-row a:any-link {
 display:inline-flex;align-items:center;min-height:44px;padding:0 .25em;
 white-space:nowrap;font-size:.875rem;font-weight:700;line-height:1.4;
 color:var(--foreground);text-decoration:underline;text-underline-offset:.18em;
 background:transparent;border:0;box-shadow:none;
}
html .bi-legal-links .bi-legal-row {gap:clamp(6px,2vw,18px)}
html .bi-legal-links .bi-legal-row a:hover {text-decoration-thickness:2px}
html .bi-legal-links .bi-legal-row a:focus-visible {outline:2px solid currentColor;outline-offset:-2px}

#filterButton {display:inline-flex;align-items:center;gap:8px}
.report-app #reportSections > #filterCard {margin:0 0 16px;padding:0;border:0;background:transparent;box-shadow:none}
#comparisonFilters .bi-comparison-controls {grid-template-columns:minmax(0,1fr)}
#trendHeading #filterButton {flex:none;white-space:nowrap}
@media(max-width:620px){
 html .bi-web-shell .report-app #reportModes:not(:empty) {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 html .bi-web-shell .report-app #reportModes [data-mode=dashboard] {grid-column:auto}
}
#reportSections:not(.report-panel) #reportResult {
 display:grid;grid-template-columns:minmax(0,1fr);gap:16px;
}
#reportSections:not(.report-panel) #reportError:empty {display:none}
#reportResult>.dashboard-detail {min-width:0;margin:0}
#reportResult>.dashboard-detail>h2:first-child {margin-block-start:0}
#reportResult>.dashboard-detail>:last-child {margin-block-end:0}
#trendFilterDialog {
 --sheet-gap:clamp(8px,1.4vw,18px);
 position:fixed;inset:var(--sheet-gap) auto var(--sheet-gap) var(--sheet-gap);
 margin:0;padding:0;box-sizing:border-box;width:min(400px,calc(100% - 2 * var(--sheet-gap)));
 height:calc(100dvh - 2 * var(--sheet-gap));max-width:none;max-height:none;
 color:var(--foreground);background:var(--card);border:1px solid var(--border);
 border-radius:var(--bi-card-radius,24px);box-shadow:0 14px 48px #0003;overflow:hidden;
}
#trendFilterDialog[open] {display:grid;grid-template-rows:auto minmax(0,1fr) auto}
#trendFilterDialog::backdrop {background:rgb(18 24 30 / .42)}
html:has(#trendFilterDialog[open]) {overflow:hidden;scrollbar-gutter:stable}
.trend-dialog-header,.trend-dialog-footer {
 display:flex;align-items:center;gap:10px;padding:12px 18px;
}
.trend-dialog-header {justify-content:space-between;border-block-end:1px solid var(--border)}
.trend-dialog-header h2 {margin:0;font-size:1.18rem}
#closeTrendFilter {width:44px;height:44px;padding:0;background:transparent;border-color:transparent;color:inherit}
#trendFilterScroll {min-height:0;overflow:auto;overscroll-behavior:contain;padding-inline:18px}
#trendFilterScroll #filterBody {margin-block:0 16px}
#trendFilterScroll .filter-grid {grid-template-columns:1fr;padding-block:16px;border-color:var(--border)}
#trendFilterScroll .filter-grid:empty {display:none}
#trendFilterScroll #reportFilters {border-block-end:0;padding-block-end:0}
#trendFilterScroll #reportScope {display:none}
#zoneMetrics {min-inline-size:0;margin:14px 0;padding:0;border:0}
#zoneMetrics legend {font-weight:bold;padding:0}
#trendFilterScroll :is(#seriesOptions,#zoneMetrics) {display:grid;grid-template-columns:minmax(0,1fr);gap:0}
#trendFilterScroll :is(#seriesOptions,#zoneMetrics) label:not([hidden]) {
 display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 0;border-bottom:1px solid var(--border);
}
:is(#seriesOptions,#zoneMetrics) input {margin:0}
:is(#seriesOptions,#zoneMetrics) .series-swatch {margin-inline-start:auto}
.trend-dialog-footer {position:relative;z-index:1;background:var(--card);border-block-start:1px solid var(--border);justify-content:space-between}
#finishTrendFilter {margin-inline-start:auto;min-width:100px;min-height:44px}
@media (min-width:320px) and (max-width:600px) {
 #trendFilterScroll .filter-grid {gap:8px;padding-block:8px}
 #trendFilterScroll .filter-grid > label {
  display:grid;grid-template-columns:minmax(5em,auto) minmax(0,1fr);
  align-items:center;column-gap:8px;
 }
 #trendFilterScroll .filter-grid > label > :is(select,input) {margin:0;min-width:0}
 #trendFilterScroll #seriesOptions {margin-block:4px}
 #trendFilterDialog :is(.trend-dialog-header,.trend-dialog-footer) {padding-block:6px}
}
@media(prefers-reduced-motion:no-preference){
 #trendFilterDialog[open] {animation:bi-trend-enter .2s ease-out}
 #trendFilterDialog[open]::backdrop {animation:bi-trend-dim .18s ease-out}
 @keyframes bi-trend-enter {from{opacity:0;transform:translateX(-24px)}}
 @keyframes bi-trend-dim {from{opacity:0}}
}

.bi-structure-title {display:none}
.bi-project-page:has(#browseTab[aria-current=page]) .bi-structure-title {display:block;margin:0 0 14px}
.bi-tree-toolbar {display:flex;align-items:center;gap:5px;white-space:nowrap}
.bi-tree-toolbar h2 {font-size:1.07rem;margin-inline-end:auto}
html .bi-project-page .bi-tree-toolbar button.small {
  display:inline-grid;place-items:center;min-height:44px;min-width:44px;padding:0;border:0;
  background:transparent;color:var(--foreground);box-shadow:none;
}
.bi-tree-toolbar .small>span {
  display:inline-flex;align-items:center;justify-content:center;min-height:28px;
  padding:0 9px;border:1px solid var(--border);border-radius:20px;background:var(--card);line-height:1.2;
}
.bi-tree-toolbar .small:is(:hover,:focus-visible)>span {background:var(--accent);color:var(--accent-foreground,var(--foreground))}
.bi-crumb-arrow {width:.43em;height:.43em;border:solid currentColor;border-width:0 0 1.5px 1.5px;transform:rotate(45deg);flex:none}
.bi-location-summary .bi-summary-metric {width:100%}
.bi-location-summary .bi-summary-metric[aria-pressed=true] {outline:1px solid currentColor}
.bi-sync-dialog {box-sizing:border-box;width:min(30rem,calc(100% - 2rem));max-height:80dvh;overflow:auto;margin:auto;padding:1.25rem;border:1px solid var(--border);border-radius:var(--bi-card-radius,24px);background:var(--card);color:var(--foreground)}
.bi-sync-dialog::backdrop {background:rgb(0 0 0 / .4)}
.bi-sync-dialog h2 {margin:0 0 .75rem}
.bi-sync-dialog #offlineStatus {padding:0;border:0;background:transparent}
.bi-dock-group {display:flex;min-width:0}
.bi-dock-group > :not([hidden]) {flex:1 1 0;min-width:0}
.bi-tech-nav nav:has(.bi-dock-group) {grid-template-columns:minmax(0,1fr) minmax(44px,14%) minmax(0,1fr)}
@media(max-width:760px) {
  html .bi-web-shell:has(>.bi-sidebar:not([hidden])) > .bi-mobile-dock {display:grid;grid-template-columns:minmax(0,1fr) 20% minmax(0,1fr)}
}

/* Modern Minimal personal palettes. */
@media screen {
  html:root[data-bi-theme=modern-minimal-light] {
    --background: oklch(1.0000 0 0);
    --foreground: oklch(0.3211 0 0);
    --card: oklch(1.0000 0 0);
    --primary: oklch(0.6231 0.1880 259.8145);
    --primary-foreground: oklch(1.0000 0 0);
    --secondary: oklch(0.9670 0.0029 264.5419);
    --secondary-foreground: oklch(0.4461 0.0263 256.8018);
    --muted: oklch(0.9846 0.0017 247.8389);
    --muted-foreground: oklch(0.5510 0.0234 264.3637);
    --accent: oklch(0.9514 0.0250 236.8242);
    --accent-foreground: oklch(0.3791 0.1378 265.5222);
    --border: oklch(0.9276 0.0058 264.5313);
    --ring: oklch(0.6231 0.1880 259.8145);
    --bi-input: var(--background);
    --bi-control-border: var(--border);
    --bi-focus-ring: var(--ring);
    --bi-muted-text: var(--muted-foreground);
    --primary-hover: color-mix(in srgb, var(--primary) 90%, var(--foreground));
  }
  html:root[data-bi-theme=modern-minimal-dark] {
    --background: oklch(0.2046 0 0);
    --foreground: oklch(0.9219 0 0);
    --card: oklch(0.2686 0 0);
    --primary: oklch(0.6231 0.1880 259.8145);
    --primary-foreground: oklch(1.0000 0 0);
    --secondary: oklch(0.2686 0 0);
    --secondary-foreground: oklch(0.9219 0 0);
    --muted: oklch(0.2393 0 0);
    --muted-foreground: oklch(0.7155 0 0);
    --accent: oklch(0.3791 0.1378 265.5222);
    --accent-foreground: oklch(0.8823 0.0571 254.1284);
    --border: oklch(0.3715 0 0);
    --ring: oklch(0.6231 0.1880 259.8145);
    --bi-input: var(--background);
    --bi-control-border: var(--border);
    --bi-focus-ring: var(--ring);
    --bi-muted-text: var(--muted-foreground);
    --primary-hover: color-mix(in srgb, var(--primary) 90%, var(--foreground));
  }
}

.bi-level-layout #expandAll,.bi-level-layout #collapseAll,.bi-level-layout .tree-panel [onclick="expandAll()"],.bi-level-layout .tree-footer{display:none}
.bi-level-layout #tree .node{margin-inline-start:0}
.bi-level-layout #tree .node::before{display:none}
.bi-level-layout #tree .bi-level-heading .node{font-weight:700}
.bi-level-layout #tree .bi-level-back{justify-self:start;width:fit-content;max-width:100%;min-height:40px;background:transparent;color:inherit;overflow-wrap:anywhere}
.bi-level-layout #tree .bi-level-back[hidden]{display:none}
.bi-level-layout .bi-level-list{max-height:44dvh;overflow-y:auto;scrollbar-gutter:stable}
.bi-level-layout .bi-level-path{display:block;padding-inline:8px;color:var(--bi-muted-text)}
.bi-level-layout #tree .bi-level-list .tree-row button{min-height:44px}
.bi-level-layout #browseView>.tree{max-height:none;position:static}

.bi-sidebar .bi-menu-theme{display:flex;align-items:center;gap:8px;padding:4px 8px;min-height:40px;color:var(--foreground);font-size:14px}

html .bi-web-shell .bi-sidebar .bi-menu-theme button.bi-mode-options{
  position:relative;isolation:isolate;box-sizing:border-box;display:inline-grid;grid-template-columns:1fr 1fr;
  align-items:center;width:auto;flex:0 0 auto;min-height:32px;margin:0;margin-right:auto;padding:3px;
  background:var(--muted);border:0;border-radius:999px;box-shadow:none;color:var(--foreground);
  font:500 13px/1.25 var(--bi-font);text-align:center;cursor:pointer
}
.bi-mode-options::before{content:"";position:absolute;z-index:-1;top:3px;bottom:3px;left:3px;width:calc(50% - 3px);
  box-sizing:border-box;background:var(--card);border:1px solid var(--border);border-radius:inherit;box-shadow:0 1px 3px #0002}
.bi-mode-options[aria-checked=true]::before{transform:translateX(100%)}
.bi-mode-options span{display:grid;place-items:center;padding-inline:9px;align-self:stretch}
.bi-mode-options[aria-disabled=true]{cursor:progress}
html .bi-sidebar .bi-mode-options:focus-visible{outline:2px solid var(--bi-focus-ring);outline-offset:2px}
@media(min-width:761px){.bi-sidebar-collapsed .bi-menu-theme>:is(span,button){opacity:0;pointer-events:none}}
@media(max-width:760px){html .bi-web-shell .bi-sidebar .bi-menu-theme button.bi-mode-options{min-height:44px}}

.bi-sync-transfer:not([hidden]){display:grid;gap:.35rem;margin-block:.6rem;font-size:.875rem}
.bi-sync-transfer progress{width:100%;accent-color:var(--primary,currentColor)}
@media (prefers-reduced-motion:no-preference){
  :is(#libraryRefresh,#offlineStatus button)[aria-busy=true] .bi-action-icon{animation:bi-refresh-spin .8s linear infinite}
}
