:root {
  --lz-red: #c62828;
  --lz-red-soft: #fff5f5;
  --lz-border: #e8eaed;
  --lz-text: #1a1a2e;
  --lz-muted: #64748b;
  --lz-bg: #f1f4f9;
  --lz-card: #ffffff;
  --lz-radius: 12px;
  --lz-radius-sm: 8px;
  --lz-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.04);
  --sidebar-w: 280px;
  --panel-w: 300px;
  --ops-bg: #eef6fc;
  --eng-bg: #f3f4f6;
  --safety-bg: #fff7ed;
  --workforce-bg: #ecfdf3;
  --accounts-bg: #f0f9ff;
  --enterprise-bg: #eef2ff;
  --admin-bg: #f8fafc;
  --core-bg: #f8fafc;
  --hr-bg: #fdf2f8;
  --commercial-bg: #eff6ff;
  --costing-bg: #fffbeb;
  --claims-bg: #fdf4ff;
  --projects-bg: #f0fdfa;
  --ops-accent: #0284c7;
  --eng-accent: #475569;
  --safety-accent: #ea580c;
  --workforce-accent: #16a34a;
  --accounts-accent: #0369a1;
  --admin-accent: #475569;
  --core-accent: #64748b;
  --hr-accent: #db2777;
  --commercial-accent: #2563eb;
  --costing-accent: #b45309;
  --claims-accent: #a21caf;
  --projects-accent: #0d9488;
  --enterprise-accent: #3730a3;
}
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: var(--lz-bg);
  color: var(--lz-text);
  font-size: 14px;
  line-height: 1.5;
}
.hidden { display: none !important; }
.dashboard-status-panel,
.hosted-error-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--lz-bg);
}
.dashboard-status-card,
.hosted-error-card {
  background: var(--lz-card);
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius);
  padding: 28px 24px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--lz-shadow);
}
.dashboard-status-card h2,
.hosted-error-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--lz-red);
}
.dashboard-status-card p,
.hosted-error-card p {
  margin: 0 0 16px;
  color: var(--lz-text);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.dashboard-status-actions,
.hosted-error-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.dashboard-status-banner {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: var(--lz-radius-sm);
  background: var(--lz-red-soft);
  color: var(--lz-text);
  font-size: 13px;
  line-height: 1.45;
}
.legacy-modules-notice {
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: var(--lz-radius-sm);
  background: var(--lz-surface-muted, #f4f4f5);
  color: var(--lz-text-muted, #52525b);
  font-size: 12px;
  line-height: 1.4;
}
.nav-link--gas-missing {
  opacity: 0.85;
}
.gas-link-missing,
.register-backend-notice {
  display: block;
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: var(--lz-radius-sm);
  background: var(--lz-surface-muted, #f4f4f5);
  color: var(--lz-text-muted, #52525b);
  font-size: 12px;
  line-height: 1.45;
}
a { color: var(--lz-red); }
.lz-brand-logo-wrap {
  display: block;
  background: transparent;
}
.lz-brand-logo {
  height: 38px;
  width: auto;
  max-width: min(220px, 100%);
  object-fit: contain;
  display: block;
  background: transparent;
  mix-blend-mode: multiply;
}
.lz-brand-logo--sidebar { margin-bottom: 2px; }
/* TODO: Replace LOGO_URL asset with transparent PNG/SVG if file still has white background. */
.lz-brand-logo--login { height: 56px; margin: 0 auto 20px; }
.lz-brand-logo-fallback {
  font-weight: 800;
  color: var(--lz-red);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.login-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  background: var(--lz-card);
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius);
  padding: 36px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--lz-shadow);
}
.login-card h1 { margin: 0 0 8px; font-size: 22px; color: var(--lz-red); }
.login-card p { margin: 0 0 12px; color: var(--lz-muted); font-size: 14px; }
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--lz-radius-sm);
  border: 1px solid var(--lz-border);
  background: var(--lz-card);
  color: var(--lz-text);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--lz-red); color: #fff; border-color: var(--lz-red); }
.btn-block { display: block; width: 100%; margin-top: 10px; }
.app-shell { display: flex; min-height: 100vh; position: relative; }
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: #fafbfc;
  border-right: 1px solid var(--lz-border);
  display: flex;
  flex-direction: column;
  padding: 20px 14px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 120;
}
.sidebar-head {
  flex-shrink: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--lz-border);
  margin-bottom: 14px;
}
#sidebarLogo {
  width: 100%;
}
.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  padding: 11px 12px;
  background: var(--lz-card);
  border: 1px solid var(--lz-border);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.sidebar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lz-red-soft);
  color: var(--lz-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.sidebar-user-meta { min-width: 0; flex: 1; }
.sidebar-user-meta b {
  display: block;
  color: var(--lz-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-role {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--lz-red-soft);
  color: var(--lz-red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sidebar-email {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: var(--lz-muted);
  word-break: break-all;
  line-height: 1.35;
}
.sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  margin-right: -2px;
}
.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
.nav-group {
  margin-bottom: 14px;
  border-radius: 10px;
  padding: 10px 8px 8px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.nav-group--ops { background: var(--ops-bg); --group-accent: var(--ops-accent); }
.nav-group--eng { background: var(--eng-bg); --group-accent: var(--eng-accent); }
.nav-group--safety { background: var(--safety-bg); --group-accent: var(--safety-accent); }
.nav-group--workforce { background: var(--workforce-bg); --group-accent: var(--workforce-accent); }
.nav-group--accounts { background: var(--accounts-bg); --group-accent: var(--accounts-accent); }
.nav-group--enterprise { background: var(--enterprise-bg); --group-accent: var(--enterprise-accent); }
.nav-group--admin { background: var(--admin-bg); --group-accent: var(--admin-accent); }
.nav-group--core { background: var(--core-bg); --group-accent: var(--core-accent); }
.nav-group--portal-back {
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--lz-border);
}
.nav-group--portal-back .nav-link {
  font-weight: 600;
}
.nav-group--hr { background: var(--hr-bg); --group-accent: var(--hr-accent); }
.nav-group--commercial { background: var(--commercial-bg); --group-accent: var(--commercial-accent); }
.nav-group--costing { background: var(--costing-bg); --group-accent: var(--costing-accent); }
.nav-group--claims { background: var(--claims-bg); --group-accent: var(--claims-accent); }
.nav-group--projects { background: var(--projects-bg); --group-accent: var(--projects-accent); }
.nav-group-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lz-muted);
  margin-bottom: 6px;
  padding: 0 6px 2px;
}
.nav-group-title::before {
  content: '';
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--group-accent, #64748b);
  flex-shrink: 0;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--lz-radius-sm);
  color: var(--lz-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 3px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.78);
  color: var(--lz-red);
}
.nav-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.nav-link svg { flex-shrink: 0; color: #475569; stroke-width: 1.75; }
.nav-link:hover svg { color: var(--lz-red); }
.nav-empty { font-size: 12px; color: var(--lz-muted); padding: 8px 10px; }
.sidebar-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--lz-border);
  font-size: 11px;
  color: var(--lz-muted);
}
.sidebar-foot a {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.sidebar-version {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.sidebar-version-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}
.sidebar-version-value {
  font-size: 11px;
  font-weight: 700;
  color: var(--lz-text);
  font-variant-numeric: tabular-nums;
}
.sidebar-collapse-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px dashed var(--lz-border);
  border-radius: 8px;
  background: transparent;
  color: var(--lz-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.sidebar-collapse-btn:hover { background: rgba(15, 23, 42, 0.04); color: var(--lz-text); }
.sidebar-collapse-icon { font-size: 14px; line-height: 1; }
.lz-panel-toggle--legacy { display: none !important; }
.lz-quick-modules-wrap { display: none !important; }
.lz-float-sidebar-toggle {
  position: fixed;
  top: 50vh;
  left: calc(var(--sidebar-w) - 20px);
  transform: translateY(-50%);
  z-index: 1500;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid var(--lz-red);
  border-radius: 50%;
  background: #fff;
  color: var(--lz-red);
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: left 0.22s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.lz-float-sidebar-toggle .lz-sidebar-toggle-icon {
  display: block;
  transition: transform 0.22s ease;
}
.lz-float-sidebar-toggle.is-collapsed .lz-sidebar-toggle-icon {
  transform: rotate(180deg);
}
.lz-float-sidebar-toggle:hover {
  background: var(--lz-red);
  color: #fff;
  box-shadow: 0 4px 16px rgba(198, 40, 40, 0.28);
}
.lz-float-refbar-toggle {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 28px;
  min-height: 56px;
  border: 2px solid var(--lz-red);
  border-radius: 8px 0 0 8px;
  border-right: 0;
  padding: 8px 4px;
  background: var(--lz-red);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(198, 40, 40, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lz-float-refbar-toggle.is-collapsed { opacity: 1; }
.lz-float-refbar-toggle:hover {
  background: #b71c1c;
  border-color: #b71c1c;
  color: #fff;
}
.lz-contract-lock-banner {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: var(--lz-radius-sm);
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
}
@media (max-width: 900px) {
  .lz-float-sidebar-toggle {
    top: 50vh;
    bottom: auto;
    left: calc(var(--sidebar-w) - 20px);
    transform: translateY(-50%);
  }
  .lz-float-refbar-toggle { top: auto; bottom: 16px; transform: none; }
}
.nav-link-label { flex: 1; min-width: 0; }
.app-shell.sidebar-collapsed { --sidebar-w: 72px; }
.app-shell.sidebar-collapsed .sidebar-head h2,
.app-shell.sidebar-collapsed .sidebar-head .feed-meta,
.app-shell.sidebar-collapsed .sidebar-user-card,
.app-shell.sidebar-collapsed .nav-group-title,
.app-shell.sidebar-collapsed .nav-link-label,
.app-shell.sidebar-collapsed .sidebar-version,
.app-shell.sidebar-collapsed .sidebar-collapse-btn .nav-link-label { display: none; }
.app-shell.sidebar-collapsed .lz-brand-title { display: none; }
.app-shell.sidebar-collapsed .sidebar-brand-panel .lz-brand-title--digital { display: inline-flex; }
.app-shell.sidebar-collapsed .lz-brand-title-cluster { display: none; }
.app-shell.sidebar-collapsed .sidebar { padding: 14px 8px; }
.app-shell.sidebar-collapsed .nav-link { justify-content: center; padding: 10px 8px; }
.app-shell.sidebar-collapsed .sidebar-collapse-icon { transform: rotate(180deg); display: inline-block; }
.app-shell.sidebar-collapsed .sidebar-collapse-btn { justify-content: center; padding: 8px; }
.app-shell.sidebar-collapsed .lz-brand-logo { height: 30px; margin: 0 auto; }
.app-shell.sidebar-collapsed .sidebar-head { padding-bottom: 10px; }
.app-shell.sidebar-collapsed .lz-brand-home { display: flex; justify-content: center; }
.app-shell.sidebar-collapsed .sidebar-brand-row { flex-direction: column; gap: 6px; }
.app-shell.sidebar-collapsed .sidebar-brand-panel { display: flex; justify-content: center; }
.app-shell.sidebar-collapsed .sidebar-brand-row--with-title { justify-content: center; }
.app-shell.sidebar-collapsed .sidebar-brand-row--with-title > .lz-brand-home { display: none; }
.app-shell.sidebar-collapsed .lz-brand-home .lz-brand-logo-wrap { display: none; }
.app-shell.sidebar-collapsed .lz-brand-title-block {
  align-items: center;
  margin-left: 0;
  width: 100%;
}
.app-shell.sidebar-collapsed .lz-brand-title-block .lz-brand-title--digital {
  border-left: none;
  padding: 4px 0 2px;
  font-size: 11px;
  letter-spacing: 0.14em;
  background: none;
}
.app-shell.sidebar-collapsed .lz-brand-title-block .lz-brand-title--digital::before {
  display: none;
}
.app-shell.sidebar-collapsed .lz-connection-status {
  justify-content: center;
}
.app-shell.sidebar-collapsed .lz-connection-status-label {
  font-size: 9px;
}
.sidebar-brand-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-brand-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sidebar-brand-row--with-title {
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  min-height: 44px;
}
.sidebar-brand-row--with-title .lz-brand-home {
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100% - 112px);
}
.sidebar-brand-row--portal-stack {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
}
.sidebar-brand-row--portal-stack .lz-brand-home {
  flex: 0 0 auto;
  max-width: none;
}
.sidebar-brand-row--dash-header {
  align-items: center;
  gap: 12px;
  min-height: 0;
}
.sidebar-brand-row--dash-header .lz-brand-home {
  flex: 0 0 auto;
  max-width: none;
}
.sidebar-brand-panel--dash-header .lz-brand-title-block {
  margin-left: 0;
  align-items: center;
}
.sidebar-brand-panel--dash-header .lz-brand-title--lzos-stack {
  padding-top: 5px;
  padding-bottom: 5px;
}
.nav-group--portal-launchers .nav-group-title,
.nav-group--portal-launchers .nav-group-title-text {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
}
.nav-group--portal-launchers .nav-group-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-link--portal.lz-portal-nav-tile {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 10px;
  padding: 8px 10px;
  margin-bottom: 0;
  border: 1px solid #e8edf2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.lz-portal-launcher-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 16px;
  line-height: 1;
}
.lz-portal-launcher-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.lz-portal-launcher-code {
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #94a3b8;
  text-transform: uppercase;
}
.lz-portal-launcher-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lz-portal-launcher-go {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1;
}
.nav-link--portal.lz-portal-nav-tile.lz-portal-chip--safety .lz-portal-launcher-mark { background: #ecfdf5; border-color: #bbf7d0; }
.nav-link--portal.lz-portal-nav-tile.lz-portal-chip--ops .lz-portal-launcher-mark { background: #fffbeb; border-color: #fde68a; }
.nav-link--portal.lz-portal-nav-tile.lz-portal-chip--core .lz-portal-launcher-mark { background: #f8fafc; border-color: #e2e8f0; }
.nav-link--portal.lz-portal-nav-tile.lz-portal-chip--hr .lz-portal-launcher-mark { background: #fdf2f8; border-color: #fbcfe8; }
.nav-link--portal.lz-portal-nav-tile.lz-portal-chip--accounts .lz-portal-launcher-mark { background: #ecfdf5; border-color: #a7f3d0; }
.nav-link--portal.lz-portal-nav-tile.lz-portal-chip--commercial .lz-portal-launcher-mark { background: #fff7ed; border-color: #fed7aa; }
.nav-link--portal.lz-portal-nav-tile.lz-portal-chip--enterprise .lz-portal-launcher-mark { background: #f1f5f9; border-color: #cbd5e1; }
.nav-link--portal.lz-portal-nav-tile:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.nav-link--portal.lz-portal-nav-tile.nav-link--active {
  border-color: var(--lz-red);
  box-shadow: 0 0 0 1px rgba(198, 40, 40, 0.15);
}
.lz-portal-nav-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 4px 2px;
  border-radius: 8px;
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.lz-portal-nav-tile.lz-portal-chip--safety .lz-portal-nav-code { color: #0f766e; background: #ecfdf5; border-color: #bbf7d0; }
.lz-portal-nav-tile.lz-portal-chip--ops .lz-portal-nav-code { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.lz-portal-nav-tile.lz-portal-chip--core .lz-portal-nav-code { color: #475569; background: #f8fafc; border-color: #e2e8f0; }
.lz-portal-nav-tile.lz-portal-chip--hr .lz-portal-nav-code { color: #be123c; background: #fdf2f8; border-color: #fbcfe8; }
.lz-portal-nav-tile.lz-portal-chip--accounts .lz-portal-nav-code { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.lz-portal-nav-tile.lz-portal-chip--commercial .lz-portal-nav-code { color: #7c2d12; background: #fff7ed; border-color: #fed7aa; }
.lz-portal-nav-tile.lz-portal-chip--enterprise .lz-portal-nav-code { color: #334155; background: #f1f5f9; border-color: #cbd5e1; }
.lz-portal-nav-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lz-portal-nav-body .nav-link-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lz-portal-nav-meta {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lz-portal-nav-ext {
  font-size: 12px;
  color: #94a3b8;
  opacity: 0.85;
}
.app-shell.sidebar-collapsed .nav-link--portal.lz-portal-nav-tile {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 8px 4px;
}
.app-shell.sidebar-collapsed .lz-portal-launcher-text,
.app-shell.sidebar-collapsed .lz-portal-launcher-go {
  display: none;
}
.app-shell.sidebar-collapsed .lz-portal-launcher-mark {
  width: 100%;
  height: 30px;
  font-size: 14px;
}
.app-shell.sidebar-collapsed .nav-link--portal .lz-portal-nav-body,
.app-shell.sidebar-collapsed .nav-link--portal .lz-portal-nav-ext {
  display: none;
}
.app-shell.sidebar-collapsed .lz-portal-nav-code {
  min-height: 28px;
  width: 100%;
  font-size: 9px;
}
.sidebar-brand-panel--portal .lz-brand-title-block {
  margin-left: auto;
  align-items: flex-end;
  width: auto;
}
.lz-brand-title-cluster {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}
.lz-brand-title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  flex-shrink: 0;
  gap: 3px;
  min-width: 0;
}
.lz-brand-title-cluster .lz-brand-title,
.lz-brand-title-block .lz-brand-title {
  margin-left: 0;
}
.lz-connection-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  padding: 0;
  min-height: 16px;
}
.lz-connection-status-label {
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
  color: #94a3b8;
  line-height: 1;
  letter-spacing: 0.02em;
  user-select: none;
}
.lz-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #cbd5e1;
}
.lz-status-dot--active {
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: lz-status-pulse 2s infinite;
}
@keyframes lz-status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .lz-status-dot--active {
    animation: none;
  }
}
.lz-brand-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
  text-transform: uppercase;
}
.lz-brand-title--digital {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 7px 0 7px 14px;
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: #475569;
  border-left: 1px solid rgba(100, 116, 139, 0.35);
  background: linear-gradient(90deg, rgba(241, 245, 249, 0.9) 0%, transparent 100%);
  text-shadow: none;
  animation: none;
}
.lz-brand-title--digital::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 18%;
  bottom: 18%;
  width: 2px;
  border-radius: 1px;
  background: var(--lz-red);
  box-shadow: 0 0 6px rgba(198, 40, 40, 0.55);
  animation: lz-brand-digital-beam 2.6s ease-in-out infinite;
}
.lz-brand-title--digital::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 0;
  bottom: 5px;
  height: 1px;
  background: linear-gradient(90deg, rgba(198, 40, 40, 0.5) 0%, rgba(14, 165, 233, 0.35) 55%, transparent 100%);
  background-size: 200% 100%;
  animation: lz-brand-digital-scan 3.5s linear infinite;
  opacity: 0.85;
  pointer-events: none;
}
@keyframes lz-brand-digital-beam {
  0%, 100% { opacity: 0.55; box-shadow: 0 0 4px rgba(198, 40, 40, 0.35); }
  50% { opacity: 1; box-shadow: 0 0 10px rgba(198, 40, 40, 0.75); }
}
@keyframes lz-brand-digital-scan {
  0% { background-position: 100% 0; opacity: 0.35; }
  50% { opacity: 0.9; }
  100% { background-position: -100% 0; opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .lz-brand-title--digital::before,
  .lz-brand-title--digital::after {
    animation: none;
  }
  .lz-brand-portal-live {
    animation: none;
  }
}
.lz-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.lz-brand-title-block--portal {
  margin-left: auto;
  align-items: flex-end;
  width: auto;
}
.lz-brand-title-block--portal .lz-brand-title {
  margin-left: 0;
}
.lz-brand-title--portal-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  padding-top: 7px;
  padding-bottom: 7px;
  min-width: 0;
  white-space: normal;
}
.lz-brand-portal-platform {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: #94a3b8;
  text-transform: uppercase;
  line-height: 1.15;
  user-select: none;
}
.lz-brand-portal-code-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.lz-brand-title--portal-stack .lz-brand-portal-code {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.36em;
  line-height: 1.1;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  text-shadow: none;
}
.lz-brand-platform {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: #94a3b8;
  text-transform: uppercase;
  line-height: 1;
  user-select: none;
}
.lz-brand-portal-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lz-brand-portal-code {
  font-size: 13px;
  letter-spacing: 0.36em;
  padding-top: 5px;
  padding-bottom: 5px;
}
.lz-brand-portal-live {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lz-red);
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.18), 0 0 8px rgba(198, 40, 40, 0.65);
  animation: lz-brand-active-pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}
@keyframes lz-brand-active-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1); }
}
body.lz-app--wsh .lz-brand-portal-code { color: #0f766e; }
body.lz-app--sys .lz-brand-portal-code { color: #334155; }
body.lz-app--hod .lz-brand-portal-code { color: #6d28d9; }
body.lz-app--ug .lz-brand-portal-code { color: #b45309; }
body.lz-app--ag .lz-brand-portal-code { color: #0369a1; }
body.lz-app--hr .lz-brand-portal-code { color: #be123c; }
body.lz-app--fm .lz-brand-portal-code { color: #047857; }
body.lz-app--qu .lz-brand-portal-code { color: #7c2d12; }
body.lz-app--lzos .lz-brand-lzos-code { color: #b91c1c; }
.lz-brand-title--lzos-stack .lz-brand-portal-platform {
  letter-spacing: 0.28em;
}
.lz-brand-title--lzos-only {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
}
.lz-brand-title--lzos-only .lz-brand-portal-code {
  font-size: 14px;
  letter-spacing: 0.36em;
}
.app-shell.sidebar-collapsed .lz-brand-stack {
  align-items: center;
  gap: 2px;
}
.app-shell.sidebar-collapsed .lz-brand-title--portal-stack {
  align-items: center;
  padding-top: 5px;
  padding-bottom: 5px;
}
.app-shell.sidebar-collapsed .sidebar-brand-row--portal-stack {
  align-items: center;
}
.app-shell.sidebar-collapsed .lz-brand-portal-platform {
  display: none;
}
.app-shell.sidebar-collapsed .lz-brand-platform {
  display: none;
}
.app-shell.sidebar-collapsed .lz-brand-portal-row {
  flex-direction: column;
  gap: 4px;
}
.sidebar-brand-row--logo-only {
  justify-content: center;
}
.lz-brand-logo--compact {
  height: 36px;
  width: auto;
  max-width: 140px;
}
.login-card .sidebar-brand-row--logo-only {
  margin-bottom: 12px;
}
.login-card .lz-brand-home {
  display: inline-flex;
  justify-content: center;
}
.lz-all-apps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--lz-border);
  background: linear-gradient(145deg, #fff 0%, var(--core-bg) 100%);
  color: var(--admin-accent);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
}
.lz-all-apps-btn:hover {
  color: var(--lz-red);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}
.lz-all-apps-btn.is-active {
  color: #fff;
  background: var(--admin-accent);
  border-color: var(--admin-accent);
}
.lz-all-apps-btn.is-active svg { stroke: #fff; }
.lz-mobile-all-apps-btn { display: none; }
.lz-brand-home { display: block; text-decoration: none; flex: 1; min-width: 0; }
.sidebar-brand-row--with-title .lz-brand-home,
.sidebar-brand-row--logo-only .lz-brand-home {
  flex: 0 0 auto;
  min-width: 0;
}
.lz-header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lz-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--lz-red-soft);
  color: var(--lz-red);
  font-weight: 700;
}
.lz-avatar--photo { object-fit: cover; background: #e2e8f0; }
.lz-avatar-md { width: 36px; height: 36px; font-size: 14px; }
.lz-avatar-xl { width: 88px; height: 88px; font-size: 28px; }
.lz-user-menu { position: relative; }
.lz-user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  border: 1px solid var(--lz-border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}
.lz-user-menu-trigger:hover { border-color: #cbd5e1; background: #fafbfc; }
.lz-user-menu-chevron { font-size: 11px; color: var(--lz-muted); line-height: 1; }
.lz-user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--lz-border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  padding: 6px;
  z-index: 1200;
}
.lz-user-menu-head {
  padding: 10px 12px 8px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 4px;
}
.lz-user-menu-head strong { display: block; font-size: 14px; color: var(--lz-text); }
.lz-user-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--lz-text);
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.lz-user-menu-item:hover { background: #f8fafc; color: var(--lz-red); }
.lz-user-menu-item--disabled { opacity: 0.45; cursor: not-allowed; }
.lz-user-menu-item--danger { color: #b91c1c; }
.lz-user-menu-divider { height: 1px; background: #f1f5f9; margin: 4px 0; }
.lz-right-panel { position: relative; }
.lz-right-panel-toggle {
  position: absolute;
  top: 10px;
  left: -14px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--lz-border);
  background: #fff;
  color: var(--lz-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--lz-shadow);
}
.lz-right-panel-toggle:hover { color: var(--lz-red); border-color: #cbd5e1; }
.app-shell.right-panel-collapsed .right-panel,
.app-shell.right-panel-collapsed .sch-board-sidebar {
  width: 0;
  min-width: 0;
  padding: 0;
  border-left: 0;
  overflow: visible;
}
.app-shell.right-panel-collapsed .right-panel .section-card,
.app-shell.right-panel-collapsed .sch-board-sidebar .section-card,
.app-shell.right-panel-collapsed .right-panel .panel-section,
.app-shell.right-panel-collapsed .sch-board-sidebar .panel-section {
  display: none;
}
.app-shell.right-panel-collapsed .lz-right-panel-toggle {
  left: auto;
  right: 8px;
  position: fixed;
  top: 72px;
}
.lz-profile-card { padding-top: 20px; }
.lz-profile-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.lz-profile-hero-meta h3 { margin: 0 0 4px; font-size: 20px; color: var(--lz-text); }
.lz-profile-tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.lz-profile-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--lz-border);
  background: var(--lz-card);
  color: var(--lz-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.lz-profile-tab:hover { border-color: #cbd5e1; background: #f8fafc; }
.lz-profile-tab.is-active {
  border-color: var(--lz-red);
  color: var(--lz-red);
  background: #fff5f5;
}
.lz-profile-unlinked {
  padding: 10px 12px;
  border-radius: var(--lz-radius-sm);
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.lz-profile-payslip-actions { white-space: nowrap; }
.lz-profile-payslip-table { margin-top: 8px; }
.lz-profile-leave-overview { margin-bottom: 16px; }
.lz-profile-leave-overview h4 { margin: 0 0 10px; font-size: 14px; }
.lz-profile-leave-submitted {
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.lz-profile-leave-form { margin-top: 16px; }
.lz-leave-plan-host { margin: 14px 0; }
.lz-leave-day-table { margin-top: 8px; }
.lz-leave-day-table .pg-search-input { min-width: 120px; padding: 4px 8px; font-size: 13px; }
.lz-leave-excluded-note { margin: 10px 0 0; font-size: 12px; color: #64748b; }
.lz-leave-total-row { margin: 12px 0 0; font-size: 15px; }
.form-grid-full { grid-column: 1 / -1; }
.lz-drive-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: var(--lz-radius-sm);
  background: #f8fafc;
  border: 1px dashed var(--lz-border);
}
.hosted-badge { display: none !important; }
.dashboard-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.main-header {
  background: var(--lz-card);
  border-bottom: 1px solid var(--lz-border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--lz-shadow);
}
.main-header-title h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.main-header-title p { margin: 4px 0 0; font-size: 12px; color: var(--lz-muted); }
.profile-block { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lz-red-soft);
  color: var(--lz-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.profile-meta .name { font-weight: 700; font-size: 14px; }
.profile-meta .email { color: var(--lz-muted); font-size: 11px; margin-top: 2px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.badge-tier { background: var(--lz-red-soft); color: var(--lz-red); }
.badge-dept { background: #e0f2fe; color: #0369a1; }
.hosted-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lz-muted);
  border: 1px solid var(--lz-border);
  border-radius: 999px;
  padding: 4px 10px;
  background: #f8fafc;
}
.gas-url-banner {
  background: #fffbeb;
  border-bottom: 1px solid #fcd34d;
  padding: 10px 16px;
}
.gas-url-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #92400e;
}
.gas-url-input {
  flex: 1;
  min-width: 200px;
  padding: 8px 10px;
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-sm);
  font-size: 12px;
}
.dashboard-grid { display: flex; flex: 1; min-height: 0; }
.main-content { flex: 1; min-width: 0; padding: 22px 24px; overflow-y: auto; }
.activity-panel {
  width: var(--panel-w);
  flex-shrink: 0;
  background: var(--lz-card);
  border-left: 1px solid var(--lz-border);
  padding: 20px 18px;
  overflow-y: auto;
}
.right-panel {
  width: var(--panel-w);
  flex-shrink: 0;
  border-left: 1px solid var(--lz-border);
  background: #fafbfc;
  padding: 16px 14px;
  overflow-y: auto;
}
.dashboard-grid--command .main-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Dashboard command centre + follow-up bar */
.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.dash-kpi-link { text-decoration: none; color: inherit; }
.dash-kpi-link:hover .dash-kpi { border-color: var(--lz-red-soft); }
.dash-kpi {
  background: #f8fafc;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  padding: 12px 14px;
}
.dash-kpi strong { display: block; font-size: 22px; color: var(--lz-red); margin-top: 4px; }
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.dash-kpi-grid--compact { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.dash-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.dash-section-sub { margin: 0 0 8px; font-size: 12px; color: var(--lz-muted); }
.dash-view-all { margin-top: 6px; }
.skel-kpi { min-height: 64px; }

.lz-followup-panel .af-tab-row { flex-wrap: wrap; margin-bottom: 10px; }
.af-tab-count {
  display: inline-block;
  min-width: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 10px;
  margin-left: 2px;
}
.pg-filter-btn.is-active .af-tab-count { background: rgba(255, 255, 255, 0.25); }

.af-item-list { list-style: none; margin: 0; padding: 0; }
.af-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.af-item:last-child { border-bottom: 0; }
.af-item-main { flex: 1; min-width: 0; }
.af-item-title { display: block; font-size: 12px; line-height: 1.35; }
.af-item-sub { display: block; margin-top: 2px; }
.af-item-meta { display: block; font-size: 10px; color: var(--lz-muted); margin-top: 4px; }
.af-module-tag { text-transform: uppercase; letter-spacing: 0.03em; color: var(--group-accent, var(--lz-muted)); }
.af-item-action { flex-shrink: 0; }
.af-priority--urgent .af-item-title { color: #b91c1c; }
.af-priority--high .af-item-title { color: #c2410c; }
.af-module-strip { margin-bottom: 12px; }
.af-module-followup { margin-bottom: 12px; }
.af-panel-head { position: sticky; top: 0; z-index: 1; }

.panel-section { margin-bottom: 12px; }
.panel-section .panel-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--lz-text); }
.ops-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ops-stat { background: #fafbfc; border: 1px solid var(--lz-border); border-radius: var(--lz-radius-sm); padding: 12px; text-align: center; }
.ops-value { display: block; font-size: 22px; font-weight: 800; color: var(--lz-red); }
.ops-label { display: block; font-size: 11px; color: var(--lz-muted); margin-top: 4px; }
.intel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.intel-card { background: #fafbfc; border: 1px solid var(--lz-border); border-radius: var(--lz-radius-sm); padding: 10px; }
.intel-value { display: block; font-size: 18px; font-weight: 800; color: var(--lz-text); }
.intel-label { display: block; font-size: 11px; color: var(--lz-muted); }
.login-error { color: var(--lz-red); font-size: 13px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th, .data-table td { border-bottom: 1px solid var(--lz-border); padding: 8px 10px; text-align: left; }
.data-table th { background: #fafbfc; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; }
.form-grid input, .form-grid textarea { padding: 8px 10px; border: 1px solid var(--lz-border); border-radius: var(--lz-radius-sm); font: inherit; }
.checkbox-row { flex-direction: row !important; align-items: center; gap: 8px !important; }
.pg-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.pg-filter-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-filter-btn {
  padding: 6px 12px;
  border: 1px solid var(--lz-border);
  border-radius: 999px;
  background: var(--lz-card);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--lz-text);
}
.pg-filter-btn.is-active {
  background: var(--lz-red);
  border-color: var(--lz-red);
  color: #fff;
}
.pg-search-input {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  padding: 8px 12px;
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-sm);
  font: inherit;
}
.pg-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.pg-status--NEW { background: #dbeafe; color: #1d4ed8; }
.pg-status--ACTIVE { background: #dcfce7; color: #15803d; }
.pg-status--COMPLETED { background: #e0e7ff; color: #4338ca; }
.pg-status--SUPERSEDED { background: #f3f4f6; color: #6b7280; }
.pg-status--CANCELLED { background: #fee2e2; color: #b91c1c; }
.pg-status--CONTRACT_PENDING { background: #fef3c7; color: #b45309; }
.pg-status--REVIEW_REQUIRED { background: #ffedd5; color: #c2410c; }
.pg-status--INVOICE_SENT { background: #e0f2fe; color: #0369a1; }
.pg-tab-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pg-tab-btn {
  border: 1px solid var(--lz-border, #ddd);
  background: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
}
.pg-tab-btn.is-active {
  background: var(--lz-red, #c62828);
  border-color: var(--lz-red, #c62828);
  color: #fff;
}
.pg-dashboard-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}
.pg-dashboard-filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
}
.pg-dashboard-filters select,
.pg-dashboard-filters input[type="text"],
.pg-dashboard-filters input[type="date"] {
  min-width: 140px;
  padding: 6px 8px;
  border: 1px solid var(--lz-border, #ddd);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
}
.pg-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.pg-kpi-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--lz-border, #ddd);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pg-kpi-card[data-dash-stage="NEW_WO"] {
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
}
.pg-kpi-card[data-dash-stage="VWD_PENDING"] {
  background: linear-gradient(145deg, #fefce8 0%, #fef08a 100%);
  border-color: #facc15;
}
.pg-kpi-card[data-dash-stage="VWD_APPROVED"] {
  background: linear-gradient(145deg, #ecfdf5 0%, #bbf7d0 100%);
  border-color: #6ee7b7;
}
.pg-kpi-card[data-dash-stage="PC_PENDING"] {
  background: linear-gradient(145deg, #fff7ed 0%, #fed7aa 100%);
  border-color: #fdba74;
}
.pg-kpi-card[data-dash-stage="READY_FOR_INVOICE"] {
  background: linear-gradient(145deg, #f5f3ff 0%, #ddd6fe 100%);
  border-color: #c4b5fd;
}
.pg-kpi-card[data-dash-stage="INVOICED"] {
  background: linear-gradient(145deg, #ecfeff 0%, #a5f3fc 100%);
  border-color: #67e8f9;
}
.pg-kpi-card[data-dash-stage="COMPLETED"] {
  background: linear-gradient(145deg, #f0fdf4 0%, #86efac 100%);
  border-color: #4ade80;
}
.pg-kpi-card--alert {
  background: linear-gradient(145deg, #fef2f2 0%, #fecaca 100%);
  border-color: #f87171;
}
.pg-kpi-card--warn {
  background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fb923c;
}
.pg-kpi-card:hover,
.pg-kpi-card.is-active {
  border-color: var(--lz-red, #c62828);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.pg-kpi-label { font-size: 12px; color: #666; font-weight: 600; }
.pg-kpi-value { font-size: 28px; font-weight: 700; color: var(--lz-red, #c62828); line-height: 1.1; }
.pg-kpi-card[data-dash-stage="NEW_WO"] .pg-kpi-value { color: #1d4ed8; }
.pg-kpi-card[data-dash-stage="VWD_PENDING"] .pg-kpi-value { color: #a16207; }
.pg-kpi-card[data-dash-stage="VWD_APPROVED"] .pg-kpi-value { color: #047857; }
.pg-kpi-card[data-dash-stage="PC_PENDING"] .pg-kpi-value { color: #c2410c; }
.pg-kpi-card[data-dash-stage="READY_FOR_INVOICE"] .pg-kpi-value { color: #6d28d9; }
.pg-kpi-card[data-dash-stage="INVOICED"] .pg-kpi-value { color: #0e7490; }
.pg-kpi-card[data-dash-stage="COMPLETED"] .pg-kpi-value { color: #15803d; }
.pg-kpi-amt {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
  margin-top: 2px;
}
.pg-kpi-card--alert .pg-kpi-value { color: #c62828; }
.pg-kpi-card--warn .pg-kpi-value { color: #e65100; }
.pg-dash-section-title { margin: 0 0 4px; font-size: 15px; }
.pg-dash-overview { margin-bottom: 12px; }
.pg-dash-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.pg-dash-stat {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.pg-dash-stats-bar .pg-dash-stat:nth-child(1) { background: #eff6ff; border-color: #93c5fd; }
.pg-dash-stats-bar .pg-dash-stat:nth-child(2) { background: #f5f3ff; border-color: #c4b5fd; }
.pg-dash-stats-bar .pg-dash-stat:nth-child(3) { background: #fff7ed; border-color: #fdba74; }
.pg-dash-stats-bar .pg-dash-stat:nth-child(4) { background: #ecfdf5; border-color: #6ee7b7; }
.pg-dash-card--pipeline {
  background: linear-gradient(160deg, #fafafa 0%, #f1f5f9 100%);
  border-color: #cbd5e1;
}
.pg-dash-stat--wide { grid-column: span 2; }
@media (max-width: 640px) {
  .pg-dash-stat--wide { grid-column: span 1; }
}
.pg-dash-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pg-dash-stat-value {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}
.pg-dash-stat-value--text {
  font-size: 13px;
  font-weight: 500;
  color: #334155;
}
.pg-dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.pg-dash-col-main { grid-column: 1 / -1; }
.pg-dash-card {
  border-width: 1px;
  border-style: solid;
}
.pg-dash-card--attention {
  background: linear-gradient(160deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fdba74;
}
.pg-dash-card--activity {
  background: linear-gradient(160deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
}
.pg-dash-card--contract {
  background: linear-gradient(160deg, #f5f3ff 0%, #ede9fe 100%);
  border-color: #c4b5fd;
}
.pg-dash-card--scan {
  background: linear-gradient(160deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #6ee7b7;
}
.pg-wo-page-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.pg-wo-page-size-label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pg-wo-page-size-select {
  min-width: 4.5rem;
  padding: 4px 8px;
  border: 1px solid var(--lz-border, #ddd);
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}
.pg-wo-page-label { min-width: 4.5rem; text-align: center; }
.pg-wo-list-row { cursor: pointer; }
.pg-wo-list-row:hover { background: #f8fafc; }
.pg-wo-open-link {
  color: inherit;
  text-decoration: none;
}
.pg-wo-open-link:hover {
  color: var(--lz-red, #c62828);
  text-decoration: underline;
}
@media (max-width: 900px) {
  .pg-dash-grid { grid-template-columns: 1fr; }
  .pg-dash-col-main { grid-column: auto; }
}
.pg-dash-attention-list,
.pg-dash-activity-feed,
.pg-dash-contract-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.pg-dash-attention-item,
.pg-dash-activity-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 13px;
}
.pg-dash-attention-item--bad { border-color: #fecaca; background: #fef2f2; }
.pg-dash-attention-item--warn { border-color: #fed7aa; background: #fff7ed; }
.pg-dash-attention-item--info { border-color: #bfdbfe; background: #eff6ff; }
.pg-dash-attention-main { flex: 1; min-width: 180px; }
.pg-dash-attention-main strong { font-weight: 600; }
.pg-dash-attention-meta { font-size: 12px; color: #64748b; margin-top: 2px; }
.pg-dash-activity-item time {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  min-width: 110px;
}
.pg-dash-activity-body { flex: 1; min-width: 0; }
.pg-dash-activity-subject {
  font-size: 12px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.pg-dash-event-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #475569;
}
.pg-dash-event-pill--ok { background: #dcfce7; color: #166534; }
.pg-dash-event-pill--bad { background: #fee2e2; color: #991b1b; }
.pg-dash-event-pill--neutral { background: #e0e7ff; color: #3730a3; }
.pg-dash-contract-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
}
.pg-dash-contract-code { font-weight: 700; color: #0f172a; }
.pg-dash-contract-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: #e2e8f0;
  min-width: 80px;
}
.pg-dash-contract-bar span { height: 100%; min-width: 2px; }
.pg-dash-contract-bar .seg-new { background: #94a3b8; }
.pg-dash-contract-bar .seg-vwd { background: #3b82f6; }
.pg-dash-contract-bar .seg-pc { background: #8b5cf6; }
.pg-dash-contract-bar .seg-ready { background: #22c55e; }
.pg-dash-contract-bar .seg-invoiced { background: #0ea5e9; }
.pg-dash-contract-bar .seg-done { background: #64748b; }
.pg-dash-contract-total { font-weight: 600; color: #334155; white-space: nowrap; }
.pg-dash-scan-info {
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
}
.pg-dash-scan-info dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
}
.pg-dash-scan-info dt { font-weight: 600; color: #64748b; font-size: 12px; }
.pg-dash-scan-info dd { margin: 0; }
.pg-dash-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.pg-dash-link-btn { margin-top: 10px; }
.pg-dash-footer { margin-top: 12px; }
.pg-dash-pipeline-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 13px;
  color: #1e40af;
}
.pg-wo-workplan-section {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.pg-wo-workplan-section h4 { margin: 0 0 6px; font-size: 14px; }
.pg-wo-sibling-table tbody tr.pg-wo-sibling-row { cursor: pointer; }
.pg-wo-sibling-table tbody tr.pg-wo-sibling--active {
  background: rgba(219, 234, 254, 0.55);
  outline: 2px solid #93c5fd;
}
.wp-linked-wo-table tbody tr.wp-linked-wo-row { cursor: pointer; }
.wp-linked-wo-table tbody tr.wp-linked-wo--active {
  background: rgba(219, 234, 254, 0.55);
}
.pg-ingest-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 12px; }
.pg-ingest-toolbar label { font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.pg-review-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 12px; }
.pg-limitation { background: #fff8e1; border: 1px solid #ffe082; border-radius: 8px; padding: 10px 12px; font-size: 12px; margin-bottom: 12px; }
.pg-email-integration h3 { margin-top: 0; }
.pg-email-config { display: grid; gap: 12px; margin-bottom: 20px; max-width: 520px; }
.pg-config-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pg-config-row--stack { flex-direction: column; align-items: flex-start; }
.pg-config-label { font-size: 12px; font-weight: 600; color: #555; min-width: 120px; }
.pg-mailbox-chip {
  display: inline-block;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-family: ui-monospace, monospace;
}
.pg-contract-map { list-style: none; margin: 4px 0 0; padding: 0; }
.pg-contract-map li {
  font-size: 13px;
  font-family: ui-monospace, monospace;
  padding: 4px 0;
  color: #333;
}
.pg-scan-row { margin-top: 4px; }
.pg-recent-emails h4 { margin: 0 0 8px; font-size: 14px; }
.pg-recent-divider { border-top: 1px solid var(--lz-border, #ddd); margin-bottom: 12px; }
.pg-recent-list { display: flex; flex-direction: column; gap: 10px; }
.pg-recent-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
}
.pg-recent-icon { font-weight: 700; width: 16px; text-align: center; flex-shrink: 0; }
.pg-recent-item--ok .pg-recent-icon { color: #2e7d32; }
.pg-recent-item--bad .pg-recent-icon { color: #c62828; }
.pg-recent-item--neutral .pg-recent-icon { color: #757575; }
.pg-recent-label { font-weight: 500; min-width: 110px; }
.pg-recent-wo { color: #555; font-family: ui-monospace, monospace; font-size: 13px; }
.pg-recent-meta { font-size: 11px; color: #888; margin-left: auto; }

.pg-pipeline-legend {
  display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  color: #555; margin-bottom: 12px;
}
.pg-pipe-arrow { color: #999; }
.pg-claim-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.pg-claim-card {
  border: 1px solid var(--lz-border, #ddd); border-radius: 10px; padding: 14px; background: #fff;
}
.pg-claim-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.pg-claim-pipeline { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.pg-stage { display: flex; flex-direction: column; gap: 4px; min-width: 72px; }
.pg-stage-name { font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; }
.pg-stage-pill {
  display: inline-block; font-size: 12px; padding: 3px 8px; border-radius: 999px;
  background: #f3f4f6; color: #555;
}
.pg-stage-pill--ok { background: #dcfce7; color: #15803d; }
.pg-stage-pill--bad { background: #fee2e2; color: #b91c1c; }
.pg-stage-pill--active { background: #dbeafe; color: #1d4ed8; }
.pg-reject-count { font-size: 12px; color: #b91c1c; margin-bottom: 8px; }

.pg-email-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pg-email-card {
  border: 1px solid var(--lz-border, #ddd); border-radius: 10px; padding: 14px; background: #fff;
}
.pg-email-card--ok { border-left: 4px solid #2e7d32; }
.pg-email-card--bad { border-left: 4px solid #c62828; }
.pg-email-card--neutral { border-left: 4px solid #9e9e9e; }
.pg-email-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.pg-email-card-icon { font-weight: 700; font-size: 16px; }
.pg-email-card-wo { margin-left: auto; font-family: ui-monospace, monospace; font-size: 13px; color: #555; }
.pg-email-card-meta { font-size: 12px; color: #444; display: grid; gap: 4px; margin-bottom: 10px; }
.pg-meta-label { font-weight: 600; color: #777; }
.pg-email-card-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-email-queue-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pg-email-sync-banner {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.pg-email-sync-banner.hidden { display: none; }
.pg-email-sync-banner--error { background: #ffebee; border-color: #ef9a9a; }
.pg-email-sync-banner--ok { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.pg-queue-actions { white-space: normal; min-width: 280px; }
.pg-queue-actions .btn { margin: 2px 2px 2px 0; }
.pg-queue-card {
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fff;
}
.pg-queue-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.pg-queue-card-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 8px 0; font-size: 12px; }
.pg-queue-card-meta dt { font-weight: 600; color: var(--lz-muted, #64748b); }
.pg-queue-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pg-queue-status--error { color: #b91c1c; font-weight: 600; }
.pg-queue-status--ok { color: #047857; font-weight: 600; }
.pg-email-sync-banner__text { flex: 1; min-width: 200px; }
.pg-email-sync-banner__code { font-size: 11px; color: #777; font-family: ui-monospace, monospace; }

.pg-dragon-poll-monitor {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.pg-dragon-poll-stats {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin: 8px 0 0;
  font-size: 13px;
}
.pg-dragon-poll-stats dt {
  font-weight: 600;
  color: #64748b;
  margin: 0;
}
.pg-dragon-poll-stats dd {
  margin: 0;
  color: #0f172a;
}

.pg-drawer { position: fixed; inset: 0; z-index: 2000; }
.pg-drawer.hidden { display: none; }
.pg-drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.pg-drawer-panel {
  position: absolute; top: 0; right: 0; width: min(480px, 100%); height: 100%;
  background: #fff; padding: 20px; overflow-y: auto; box-shadow: -4px 0 24px rgba(0,0,0,.12);
}
.pg-drawer-panel--fullscreen {
  inset: 0; width: 100%; max-width: none; height: 100%;
  display: flex; flex-direction: column; padding: 0;
  box-shadow: none;
}
.pg-drawer-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid #e5e7eb; background: #fff;
  position: sticky; top: 0; z-index: 2;
}
.pg-drawer-toolbar h3 { margin: 0; flex: 1; min-width: 160px; font-size: 1.1rem; }
.pg-drawer-body {
  flex: 1; display: grid; grid-template-columns: 58% 42%;
  gap: 0; min-height: 0; overflow: hidden;
  position: relative;
}
.pg-drawer-col-pdf {
  border-right: 1px solid #e5e7eb; padding: 16px;
  overflow-y: auto; min-height: 0; background: #f8f9fa;
}
.pg-drawer-col-details {
  padding: 16px; overflow-y: auto; min-height: 0;
}
.pg-drawer-pdf-frame {
  width: 100%; min-height: 70vh; height: calc(100vh - 140px);
  border: 1px solid #e5e7eb; border-radius: 8px; background: #fff;
}
.pg-drawer-pdf-viewer { min-height: 70vh; }
.pg-pdf-sign-editor { display: flex; flex-direction: column; gap: 8px; }
.pg-pdf-sign-toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.pg-pdf-sign-page-label { font-size: 12px; color: #475569; min-width: 88px; text-align: center; }
.pg-pdf-sign-hint { flex: 1; min-width: 160px; }
.pg-pdf-sign-stage {
  overflow: auto; max-height: calc(100vh - 200px);
  background: #525659; border-radius: 8px; padding: 12px;
}
.pg-pdf-sign-page-wrap {
  position: relative; margin: 0 auto; background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.pg-pdf-sign-canvas { display: block; }
.pg-pdf-sign-overlay {
  position: absolute; border: 2px dashed #2563eb; cursor: move;
  box-sizing: border-box; touch-action: none;
}
.pg-pdf-sign-overlay--hidden { display: none; }
.pg-pdf-sign-overlay--placeholder {
  background: rgba(37, 99, 235, 0.06);
  min-height: 48px;
}
.pg-pdf-sign-overlay--placeholder .pg-pdf-sign-overlay-img { opacity: 0; }
.pg-pdf-sign-overlay-img {
  width: 100%; height: 100%; object-fit: contain; pointer-events: none;
}
.pg-pdf-sign-resize {
  position: absolute; right: -5px; bottom: -5px; width: 12px; height: 12px;
  background: #2563eb; border-radius: 2px; cursor: se-resize;
}
.pg-drawer-footer { padding: 8px 16px 16px; border-top: 1px solid #e5e7eb; }
.pg-conf-donut {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; vertical-align: middle;
  background: conic-gradient(currentColor calc(var(--pg-conf-pct, 0) * 1%), #e8e8e8 0);
  cursor: help; flex-shrink: 0;
}
.pg-conf-donut-inner {
  width: 26px; height: 26px; border-radius: 50%; background: #fff;
  font-size: 9px; font-weight: 600; line-height: 1;
  display: flex; align-items: center; justify-content: center; color: #333;
}
.pg-conf-green { color: #2e7d32; }
.pg-conf-amber { color: #f9a825; }
.pg-conf-red { color: #c62828; }
.pg-conf-grey { color: #9e9e9e; --pg-conf-pct: 0; }
.pg-field-readonly { background: #f5f5f5; }
.pg-edit-btn { margin-left: 6px; border: none; background: none; cursor: pointer; font-size: 14px; }
.pg-cell-subject { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-cell-stage { max-width: 160px; font-size: 13px; font-weight: 600; }
.pg-cell-datetime { white-space: nowrap; font-size: 12px; }
.pg-drawer.is-loading .pg-drawer-toolbar .btn:not(#btnPgCloseEmailDrawer) {
  opacity: 0.55;
  pointer-events: none;
}
.pg-drawer-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.88);
  text-align: center;
  padding: 24px;
}
.pg-drawer-loading-overlay.hidden { display: none; }
.pg-drawer-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: pg-drawer-spin 0.75s linear infinite;
}
.pg-drawer-loading-message {
  margin: 0;
  color: #1e40af;
  font-size: 14px;
  font-weight: 500;
}
@keyframes pg-drawer-spin { to { transform: rotate(360deg); } }
.pg-queue-actions .btn.is-busy { min-width: 5.5rem; }
.pg-drawer-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.pg-drawer-summary-grid .pg-sum-cell {
  padding: 6px 8px; border-radius: 6px; background: #f8fafc;
}
.pg-drawer-summary-grid dt {
  margin: 0; font-size: 10px; font-weight: 600; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.pg-drawer-summary-grid dd {
  margin: 2px 0 0; font-size: 13px; font-weight: 500; word-break: break-word;
}
.pg-drawer-summary-grid .pg-sum-wide { grid-column: span 3; }
.pg-drawer-summary-grid .pg-sum-edit {
  margin-left: 4px; border: none; background: none; cursor: pointer; font-size: 12px; color: #64748b;
}
.pg-pdf-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 16px; text-align: center;
}
.pg-pdf-card .pg-pdf-name { font-size: 13px; font-weight: 600; margin: 8px 0; word-break: break-all; }
.pg-sor-quick-add {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px;
}
.pg-sor-quick-add input { max-width: 140px; }
.pg-sor-total-bar {
  display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 13px;
  padding: 8px 10px; background: #f8fafc; border-radius: 6px; margin-bottom: 8px;
}
.pg-drawer-extra { display: block; margin: 12px 0; font-size: 13px; }
.pg-drawer-extra select, .pg-drawer-extra textarea { width: 100%; margin-top: 4px; }
.pg-drawer-contract-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px; margin: 0 0 8px;
}
.pg-drawer-contract-row dt {
  margin: 0; font-size: 10px; font-weight: 600; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.pg-drawer-contract-row dd {
  margin: 2px 0 0; font-size: 13px; font-weight: 500; word-break: break-word;
}
.pg-drawer-contract-card .pg-drawer-extra { margin-bottom: 0; }
.pg-drawer-card {
  margin-bottom: 12px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid transparent; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.pg-drawer-card:last-child { margin-bottom: 0; }
.pg-drawer-card > h4,
.pg-drawer-card > .pg-drawer-card-title {
  margin: 0 0 10px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: #475569;
}
.pg-drawer-card--pdf { background: transparent; border: none; box-shadow: none; padding: 0; margin: 0; }
.pg-drawer-card--pdf > h4 { color: #1e40af; }
.pg-drawer-card--extracted { background: #fff; border-color: #bfdbfe; }
.pg-drawer-card--extracted > h4 { color: #1d4ed8; }
.pg-drawer-card--contract { background: #fffbeb; border-color: #fcd34d; }
.pg-drawer-card--contract > h4 { color: #b45309; }
.pg-drawer-card--sor { background: #ecfdf5; border-color: #6ee7b7; }
.pg-drawer-card--sor > h4 { color: #047857; }
.pg-drawer-card--email { background: #f5f3ff; border-color: #c4b5fd; }
.pg-drawer-card--email > h4 { color: #6d28d9; }
.pg-drawer-contract-card {
  margin: 0; padding: 0; background: transparent; border: none; border-radius: 0;
}
.pg-sor-legend {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin: 0 0 8px; font-size: 11px; color: #64748b;
}
.pg-src-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 4px; font-size: 10px; font-weight: 700;
  margin-right: 6px; vertical-align: middle; line-height: 1;
}
.pg-src-badge--manual { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; }
.pg-src-badge--auto { background: #d1fae5; color: #047857; border: 1px solid #6ee7b7; }
.pg-sor-table tbody tr.pg-sor-row--manual { background: rgba(219, 234, 254, 0.35); }
.pg-sor-table tbody tr.pg-sor-row--auto { background: rgba(209, 250, 229, 0.28); }
.pg-sor-table .pg-num { text-align: right; white-space: nowrap; }
.pg-sor-table thead th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: #64748b; }
embed.pg-drawer-pdf-embed { display: block; width: 100%; min-height: 70vh; height: calc(100vh - 140px); }
object.pg-drawer-pdf-object { display: block; }
.pg-drawer-pdf-placeholder { min-height: 200px; display: flex; align-items: center; justify-content: center; }
#pgEmailMismatchWarn.pg-email-sync-banner {
  margin: 8px 0 0; padding: 8px 10px; border-radius: 6px;
  background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; font-size: 12px;
}
body[data-pg-module="review"] .pg-drawer-toolbar {
  border-bottom-color: #e2e8f0;
  background: linear-gradient(90deg, #ffffff 0%, #f8fafc 100%);
}
body[data-pg-module="review"] .pg-drawer-col-pdf {
  border-right-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
}
body[data-pg-module="review"] .pg-drawer-col-details {
  padding: 12px;
  background: #f1f5f9;
}
body[data-pg-module="review"] #pgPanelDashboard,
body[data-pg-module="review"] #pgPanelWorkorders,
body[data-pg-module="review"] [data-pg-tab="dashboard"],
body[data-pg-module="review"] [data-pg-tab="workorders"] {
  display: none !important;
}
@media (max-width: 900px) {
  .pg-drawer-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-drawer-summary-grid .pg-sum-wide { grid-column: span 2; }
}
@media (max-width: 900px) {
  .pg-drawer-body { grid-template-columns: 1fr; }
  .pg-drawer-col-pdf { border-right: none; border-bottom: 1px solid #e5e7eb; }
  .pg-drawer-pdf-frame { min-height: 50vh; height: 50vh; }
}
.pg-email-preview {
  background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 12px; font-size: 12px; white-space: pre-wrap; max-height: 240px; overflow: auto;
}
.pg-rejection-remarks {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 12px;
}
.pg-rejection-remarks h5 { margin: 0 0 6px; font-size: 13px; }
.pg-rejection-list { margin: 0; padding-left: 18px; }
.pg-rejection-list li { margin: 4px 0; }
.pg-workplan-picker { position: relative; display: block; }
.pg-workplan-dropdown {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  max-height: 220px;
  overflow: auto;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  margin-top: 4px;
}
.pg-workplan-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  font-size: 12px;
  cursor: pointer;
}
.pg-workplan-option:hover { background: #f1f5f9; }
.pg-workplan-option--empty { padding: 8px 10px; color: #64748b; font-size: 12px; }
.pg-workplan-option--suggested { font-weight: 600; background: #fffbeb; }
.pg-workplan-suggest {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0 0 8px;
  font-size: 12px;
}
.pg-pdf-zone-hint { margin-top: 8px; font-size: 11px; color: #64748b; }
.pg-drawer-actions { display: flex; gap: 8px; margin-top: 12px; }
.pg-sor-head-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 8px;
}
.pg-sor-head-row h4 { margin: 0; }
.pg-sor-match {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.pg-sor-match--ok { background: #dcfce7; color: #166534; }
.pg-sor-match--warn { background: #fef9c3; color: #854d0e; }
.pg-sor-match--bad { background: #fee2e2; color: #991b1b; }
.pg-refresh-svc-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.pg-th-sort {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.pg-th-sort:hover { background: #f1f5f9; }
.pg-th-sort.is-sorted { background: #e8f0fe; }
.pg-th-sort.is-filtered { box-shadow: inset 0 -2px 0 #2563eb; }
.pg-wo-cancel {
  min-width: 28px;
  padding: 2px 8px;
  font-size: 1.1rem;
  line-height: 1;
  color: #b91c1c;
  border-color: #fecaca;
}
.pg-wo-cancel:hover { background: #fef2f2; }
.pg-wo-row-actions { white-space: nowrap; }
.pg-timeline { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.pg-timeline-item { display: flex; gap: 10px; align-items: flex-start; }
.pg-timeline-icon { font-weight: 700; width: 18px; }
.pg-timeline-item--ok .pg-timeline-icon { color: #2e7d32; }
.pg-timeline-item--bad .pg-timeline-icon { color: #c62828; }
.pg-timeline-comment { font-size: 12px; color: #555; margin-top: 4px; font-style: italic; }
.pg-settings-form { display: grid; gap: 12px; max-width: 420px; margin-bottom: 12px; }
.pg-toggle-row { display: flex; align-items: center; justify-content: space-between; }
.pg-wo-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.pg-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px 16px;
  margin: 12px 0;
}
.pg-detail-grid dt { font-size: 11px; color: var(--lz-muted); font-weight: 600; margin: 0; }
.pg-detail-grid dd { margin: 0 0 8px; font-size: 13px; }
.pg-placeholder-card {
  border: 1px dashed var(--lz-border);
  background: #fafbfc;
  border-radius: var(--lz-radius-sm);
  padding: 14px 16px;
}
.data-table tbody tr.pg-row-clickable { cursor: pointer; }
.data-table tbody tr.pg-row-clickable:hover { background: #f8fafc; }
.sch-page-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.sch-board-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  gap: 0;
  overflow: hidden;
}
.sch-board-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 16px 20px;
}
.sch-board-sidebar {
  width: 280px;
  flex-shrink: 0;
  border-left: 1px solid var(--lz-border);
  background: #fafbfc;
  overflow-y: auto;
  padding: 14px 12px;
}
.sch-board-sidebar .section-card { padding: 12px 14px; margin-bottom: 12px; }
.sch-toolbar-card {
  margin-bottom: 12px;
  background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 100%);
  border-color: #cbd5e1;
}
.sch-sidebar-card--workers {
  background: linear-gradient(160deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
}
.sch-sidebar-card--movement {
  background: linear-gradient(160deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #6ee7b7;
}
.sch-date-label { display: flex; align-items: center; gap: 8px; }
.sch-team-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  align-items: start;
}
.sch-board-table-host { margin-bottom: 16px; }
.sch-board-table-wrap { overflow-x: auto; }
.sch-board-table tbody tr.sch-board-row { cursor: pointer; }
.sch-board-table tbody tr.sch-board-row:hover { background: #f8fafc; }
.sch-board-table tbody tr.sch-board-row.is-selected { background: #eff6ff; box-shadow: inset 3px 0 0 var(--lz-red); }
.sch-board-table tbody tr.sch-board-row--empty { background: #fafbfc; color: var(--lz-muted); }
.sch-board-table tbody tr.sch-board-row--empty:hover { background: #f1f5f9; }
.sch-board-team-cell {
  vertical-align: middle;
  min-width: 7.5rem;
  background: #f8fafc;
  border-right: 1px solid var(--lz-border);
}
.sch-board-team-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.sch-board-team-code {
  display: inline;
  font-size: 12px;
  font-weight: 700;
  color: var(--lz-text);
}
.sch-board-team-dept {
  font-size: 10px;
  font-weight: 700;
  color: var(--lz-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sch-board-team-cell .sch-add-job {
  margin: 0 0 0 auto;
  flex-shrink: 0;
}
.sch-board-empty-job { font-style: italic; }
.sch-board-section-row td {
  background: #f1f5f9;
  font-size: 12px;
  padding: 8px 10px;
  border-top: 2px solid var(--lz-border);
}
.sch-board-table .sch-add-job { vertical-align: middle; }
.sch-contract-filter-row {
  margin-top: 8px;
  align-items: center;
}
.sch-contract-filter-label {
  margin-right: 4px;
  align-self: center;
}
.sch-wo-filter { display: flex; flex-direction: column; gap: 6px; }
.sch-wo-select {
  width: 100%;
  min-height: 9rem;
  font-size: 13px;
}
.sch-team-card {
  background: var(--lz-card);
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius);
  padding: 12px 14px;
  box-shadow: var(--lz-shadow);
}
.sch-team-card:nth-child(4n+1) { background: linear-gradient(160deg, #eff6ff 0%, #f8fafc 100%); border-color: #93c5fd; }
.sch-team-card:nth-child(4n+2) { background: linear-gradient(160deg, #ecfdf5 0%, #f8fafc 100%); border-color: #6ee7b7; }
.sch-team-card:nth-child(4n+3) { background: linear-gradient(160deg, #fff7ed 0%, #f8fafc 100%); border-color: #fdba74; }
.sch-team-card:nth-child(4n+4) { background: linear-gradient(160deg, #f5f3ff 0%, #f8fafc 100%); border-color: #c4b5fd; }
.sch-team-card--temp { border-style: dashed; border-color: #94a3b8; }
.sch-team-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.sch-team-card-head h4 { margin: 0; font-size: 14px; color: var(--lz-text); }
.sch-team-card-meta { font-size: 11px; color: var(--lz-muted); margin-top: 2px; }
.sch-job-list { list-style: none; margin: 0; padding: 0; }
.sch-job-item {
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-sm);
  padding: 8px 10px;
  margin-bottom: 8px;
  background: #fafbfc;
  cursor: pointer;
}
.sch-job-item:nth-child(4n+1) { background: #eff6ff; border-color: #bfdbfe; }
.sch-job-item:nth-child(4n+2) { background: #ecfdf5; border-color: #a7f3d0; }
.sch-job-item:nth-child(4n+3) { background: #fff7ed; border-color: #fed7aa; }
.sch-job-item:nth-child(4n+4) { background: #f5f3ff; border-color: #ddd6fe; }
.sch-job-item:hover { background: #f1f5f9; }
.sch-job-item.is-selected { border-color: var(--lz-red); box-shadow: 0 0 0 1px var(--lz-red-soft); }
.sch-job-time { font-weight: 700; font-size: 12px; color: var(--lz-red); }
.sch-job-wo { font-size: 12px; margin-top: 2px; font-weight: 600; }
.sch-job-contract { font-size: 12px; margin-top: 2px; }
.sch-job-loc { font-size: 12px; margin-top: 2px; color: var(--lz-text); }
.sch-job-type { font-size: 11px; color: var(--lz-muted); margin-top: 2px; }
.sch-job-empty { font-size: 12px; color: var(--lz-muted); margin: 0 0 8px; }
.sch-shift-row { display: flex; align-items: center; gap: 12px; margin: 12px 0; flex-wrap: wrap; }
.sch-sidebar-hint { margin: 0 0 8px; }
.sch-worker-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--lz-border);
}
.sch-movement-item { padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.sch-movement-item:last-child { border-bottom: 0; }
.lz-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lz-leave-apply-modal .section-head-row h4 { margin: 0; }
.lz-leave-apply-modal .lz-leave-plan-host { margin-top: 12px; }
.lz-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.lz-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--lz-card);
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  padding: 18px 20px;
}
body.lz-modal-open { overflow: hidden; }
body.lz-modal-open .lz-float-sidebar-toggle,
body.lz-modal-open .lz-float-refbar-toggle {
  display: none !important;
}
.sch-job-modal .section-head-row h3 { margin: 0; font-size: 16px; color: var(--lz-text); text-transform: none; letter-spacing: 0; }
.sch-job-modal .section-head-row { margin-bottom: 14px; }
.sch-job-modal #btnSchCloseJob { font-size: 20px; line-height: 1; padding: 4px 10px; }
.sch-planner-modal { width: min(860px, 100%); max-height: 92vh; overflow-y: auto; }
.sch-contract-picker {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
}
.sch-contract-btn {
  border: 1px solid #cbd5e1; background: #fff; border-radius: 8px;
  padding: 8px 12px; cursor: pointer; font-size: 13px; text-align: left;
  min-width: 88px;
}
.sch-contract-btn strong { display: block; font-size: 14px; color: var(--lz-red); }
.sch-contract-btn span { color: var(--lz-muted); font-size: 11px; }
.sch-contract-btn.is-active {
  border-color: var(--lz-red); background: #fff5f5; box-shadow: 0 0 0 1px var(--lz-red-soft);
}
.sch-empty-hint {
  margin: 0 0 10px; padding: 10px 12px; background: #f8fafc; border-radius: 8px;
  border: 1px dashed #cbd5e1;
}
.sch-wo-panel { margin-top: 4px; }
.sch-wo-card-list {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 220px; overflow-y: auto; margin-top: 6px;
  border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px; background: #f8fafc;
}
.sch-wo-card {
  display: block; width: 100%; text-align: left; border: 1px solid #e2e8f0;
  background: #fff; border-radius: 8px; padding: 8px 10px; cursor: pointer;
  font-size: 13px;
}
.sch-wo-card:hover { border-color: #93c5fd; background: #eff6ff; }
.sch-wo-card.is-active {
  border-color: var(--lz-red); background: #fff5f5; box-shadow: 0 0 0 1px var(--lz-red-soft);
}
.sch-wo-card-num { font-weight: 700; color: #1e40af; }
.sch-wo-card-desc { color: var(--lz-text); margin-top: 2px; }
.sch-wo-card-meta { font-size: 11px; color: var(--lz-muted); margin-top: 2px; }
.sch-wo-detail-card {
  margin-top: 10px; padding: 12px; border-radius: 8px;
  background: #eff6ff; border: 1px solid #bfdbfe;
}
.sch-wo-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0 0 10px;
}
.sch-wo-detail-grid dt { font-size: 10px; text-transform: uppercase; color: var(--lz-muted); margin: 0; }
.sch-wo-detail-grid dd { margin: 2px 0 0; font-size: 13px; font-weight: 500; }
.sch-additional-loc { display: block; font-size: 13px; }
.sch-additional-loc input { width: 100%; margin-top: 4px; }
.sch-type-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.sch-type-pill {
  border: 1px solid #cbd5e1; background: #fff; border-radius: 999px;
  padding: 6px 12px; font-size: 12px; cursor: pointer;
}
.sch-type-pill.is-active {
  border-color: #2563eb; background: #dbeafe; color: #1e40af; font-weight: 600;
}
.sch-type-other { display: block; margin-top: 8px; font-size: 13px; }
.sch-type-other input { width: 100%; margin-top: 4px; }
.sch-personnel-table { font-size: 13px; margin: 0; }
.sch-personnel-table tr.sch-personnel-supervisor td { background: #fffbeb; }
.sch-personnel-editor {
  padding: 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc;
}
.sch-personnel-editor label { display: block; margin-bottom: 8px; font-size: 13px; }
.sch-personnel-editor select { width: 100%; margin-top: 4px; }
.sch-member-checks {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 4px 12px; max-height: 180px; overflow-y: auto; margin-bottom: 10px;
}
.sch-member-check {
  display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer;
}
.sch-planner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.sch-planner-head h3 { margin: 0; font-size: 17px; color: var(--lz-red); text-transform: none; letter-spacing: 0; }
.sch-planner-section { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid #f1f5f9; }
.sch-planner-section:last-of-type { border-bottom: 0; }
.sch-planner-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.sch-planner-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--lz-muted); margin-bottom: 6px; }
.sch-planner-hint { margin: 0 0 8px; }
.sch-supervisor-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sch-supervisor-name { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: var(--lz-text); }
.sch-time-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.sch-time-pill {
  border: 1px solid var(--lz-border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--lz-text);
}
.sch-time-pill:hover { border-color: var(--lz-red); color: var(--lz-red); }
.sch-time-pill--accent { border-color: var(--lz-red-soft); background: var(--lz-red-soft); }
.sch-time-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sch-time-select { font-size: 15px; font-weight: 600; padding: 8px 10px; }
.sch-member-select { width: 100%; min-height: 110px; }
.sch-multi-day-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.sch-multi-day-row {
  display: grid;
  grid-template-columns: 120px 1fr 1fr 1fr 1.2fr;
  gap: 8px;
  align-items: end;
  padding: 10px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.sch-multi-day-label strong { display: block; font-size: 13px; }
.sch-multi-day-row label { font-size: 11px; }
.sch-multi-day-row select, .sch-multi-day-row input { width: 100%; font-size: 12px; }
.wf-photo-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lz-red-soft);
  color: var(--lz-red);
  font-size: 11px;
  font-weight: 700;
  margin-right: 6px;
  vertical-align: middle;
}
.wf-salary-lock, .wf-salary-restricted {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 12px 14px;
}
@media (max-width: 640px) {
  .sch-multi-day-row { grid-template-columns: 1fr; }
}
.wf-page-body { display: flex; flex-direction: column; min-height: 0; }
.wf-team-card { cursor: pointer; }
.wf-team-card--inactive { opacity: 0.65; border-style: dashed; }
.wf-team-card--store { border-color: #94a3b8; background: #f8fafc; }
.wf-team-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-top: 8px;
}
.wf-team-stat strong { display: block; font-size: 13px; margin-top: 2px; }
.wf-check-label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.wf-team-modal { width: min(820px, 100%); }
.wf-team-modal h4 { margin: 16px 0 8px; font-size: 14px; color: var(--lz-text); }
.wf-members-section { border-top: 1px solid var(--lz-border); margin-top: 16px; padding-top: 8px; }
.wf-member-toolbar { margin-top: 10px; }
.wf-capacity-item { padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.wf-capacity-item:last-child { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.data-table th,
.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--lz-border);
  text-align: left;
}
.data-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lz-muted);
}
.section-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.feed-list.compact li { padding: 6px 0; }
.section-card {
  background: var(--lz-card);
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius);
  padding: 18px 20px;
  box-shadow: var(--lz-shadow);
  margin-bottom: 16px;
}
.section-card h3 {
  margin: 0 0 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lz-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-card h3 .section-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--lz-red-soft);
  color: var(--lz-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.panel-title {
  margin: 0 0 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lz-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.action-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.action-group {
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-sm);
  padding: 12px 14px;
  background: #fafbfc;
}
.action-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}
.action-count {
  background: var(--lz-red-soft);
  color: var(--lz-red);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
}
.action-count.zero { background: #f1f5f9; color: var(--lz-muted); }
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-sm);
  background: #fafbfc;
  color: var(--lz-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.quick-link:hover {
  border-color: #fecaca;
  background: var(--lz-red-soft);
  color: var(--lz-red);
}
.feed-list { margin: 0; padding: 0; list-style: none; }
.feed-list li { padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 12px; line-height: 1.45; }
.feed-list li:last-child { border-bottom: none; }
.feed-meta { color: var(--lz-muted); font-size: 11px; margin-top: 3px; }
.feed-action { font-weight: 600; color: var(--lz-text); }
.feed-empty { color: var(--lz-muted); font-size: 12px; margin: 0; }
.text-link { color: var(--lz-red); font-size: 12px; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.skel { background: #e2e8f0; border-radius: 6px; animation: skel-pulse 1.4s ease-in-out infinite; }
@keyframes skel-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.skel-block { height: 48px; }
.skel-line { height: 10px; margin-bottom: 8px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.settings-card {
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-sm);
  padding: 14px;
  background: #fafbfc;
}
.settings-card h4 { margin: 0 0 6px; color: var(--lz-red); font-size: 14px; }
.settings-card p { margin: 0 0 10px; font-size: 12px; color: var(--lz-muted); }

/* Management Settings — admin control centre cards */
.mgmt-settings-main { display: flex; flex-direction: column; gap: 14px; }
.mgmt-settings-intro { margin-bottom: 0; }
.mgmt-settings-quicklinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mgmt-section-head { margin-bottom: 12px; }
.mgmt-section-head h3 { margin: 0 0 4px; }
.mgmt-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.mgmt-card {
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-sm);
  padding: 14px;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mgmt-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mgmt-card-head h4 { margin: 0; color: var(--lz-red); font-size: 14px; flex: 1; }
.mgmt-card-desc { margin: 0; font-size: 12px; color: var(--lz-muted); line-height: 1.45; }
.mgmt-card-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mgmt-action--soon {
  font-size: 11px;
  color: var(--lz-muted);
  background: #eef1f4;
  border-radius: 6px;
  padding: 6px 10px;
}
.mgmt-card-meta {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  font-size: 11px;
}
.mgmt-card-meta dt { color: var(--lz-muted); font-weight: 600; }
.mgmt-card-meta dd { margin: 0; color: #334155; }
.mgmt-card-status { margin: 0; min-height: 1.2em; font-size: 11px; }
.mgmt-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.mgmt-badge--idle { background: #e2e8f0; color: #475569; }
.mgmt-badge--ok { background: #dcfce7; color: #166534; }
.mgmt-badge--busy { background: #fef3c7; color: #92400e; }

/* WorkPlan module */
.wp-toolbar { flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.wp-list-table tbody tr.wp-row { cursor: pointer; }
.wp-list-table tbody tr.wp-row:hover { background: #f8fafc; }
.wp-row--active { background: #fff5f5 !important; }
.wp-row--archived { opacity: 0.72; }
.wp-tag-archived {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 4px;
}
.wp-id-running { font-weight: 500; color: #64748b; font-size: 12px; }
.wp-id-legacy { display: block; font-size: 11px; color: #64748b; margin-top: 2px; }
.wp-id-legacy code { font-size: 11px; text-decoration: line-through; }
.wp-list-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.wp-list-compact-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wp-list-toolbar-row { margin-bottom: 8px; }
.wp-page--detail-open .wp-detail-card { margin-top: 10px; }
.wp-page--list-collapsed .wp-detail-card { margin-top: 0; }
.wp-detail-head-actions { display: flex; gap: 6px; align-items: center; }
.wp-admin-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}
.wp-admin-section h4 { margin: 0 0 6px; font-size: 13px; color: #475569; }
.wp-admin-toggle { font-size: 12px; align-self: center; }
.wp-btn-danger {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff;
}
.wp-btn-danger:hover { background: #fef2f2; }
.wp-legacy-note { margin: 0 0 10px; }
.wp-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
}
.wp-status--active { background: #dcfce7; color: #166534; }
.wp-status--completed { background: #dbeafe; color: #1e40af; }
.wp-status--on-hold { background: #fef3c7; color: #92400e; }
.wp-status--draft { background: #f1f5f9; color: #64748b; }
.wp-status--planned { background: #e0e7ff; color: #3730a3; }
.wp-status--cancelled { background: #fee2e2; color: #991b1b; }
.wp-detail-card { margin-top: 12px; }
.wp-detail-tabs { margin: 12px 0; }
.wp-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.wp-detail-span { grid-column: 1 / -1; }
.wp-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wp-form-span { grid-column: 1 / -1; }
.wp-link-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.wp-link-dl dt { font-size: 11px; color: var(--lz-muted); font-weight: 600; }
.wp-link-dl dd { margin: 0; }
@media (max-width: 768px) {
  .wp-form-grid, .wp-link-dl { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) { .action-groups { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  .dashboard-grid { flex-direction: column; }
  .activity-panel, .right-panel { width: 100%; border-left: none; border-top: 1px solid var(--lz-border); }
}
@media (min-width: 1025px) {
  .app-shell .sidebar {
    display: flex !important;
    flex-direction: column;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    bottom: auto !important;
    width: var(--sidebar-w) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: none;
    z-index: auto;
  }
  .app-shell.mobile-nav-mode .sidebar {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .lz-mobile-nav-menu-btn,
  .lz-mobile-header-brand,
  body.lz-portal-compact-header .lz-mobile-nav-menu-btn,
  body.lz-portal-compact-header .lz-mobile-header-brand {
    display: none !important;
  }
  body.lz-portal-compact-header .main-header:not(.lz-dash-header) .main-header-title {
    display: block !important;
  }
  .lz-dash-zone--nav-cluster { display: flex !important; }
  .lz-dash-zone--menu { display: none !important; }
  .lz-mobile-nav-backdrop { display: none !important; }
}
@media (max-width: 1024px) {
  .app-shell.mobile-nav-mode {
    flex-direction: column;
  }
  .app-shell.mobile-nav-mode .sidebar {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
  .app-shell.mobile-nav-mode.mobile-sidebar-open .sidebar {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 88vw);
    z-index: 1100;
    pointer-events: auto !important;
    visibility: visible !important;
    box-shadow: 8px 0 30px rgba(15, 23, 42, 0.15);
  }
  .app-shell.mobile-nav-mode .dashboard-body,
  .app-shell.mobile-nav-mode .biz-page-body {
    flex: 1;
    width: 100%;
    min-width: 0;
  }
  .app-shell.mobile-nav-mode .lz-float-sidebar-toggle {
    display: none !important;
  }
  .app-shell.mobile-nav-mode .lz-quick-modules-wrap {
    display: none !important;
  }
  .lz-mobile-all-apps-btn { display: none !important; }
  body.lz-portal-compact-header .main-header {
    padding: 10px 14px;
    flex-wrap: nowrap;
    gap: 8px;
  }
  body.lz-portal-compact-header .main-header:not(.lz-dash-header) {
    display: flex;
    align-items: center;
  }
  body.lz-portal-compact-header .main-header:not(.lz-dash-header) .main-header-title {
    display: none;
  }
  body.lz-portal-compact-header .lz-mobile-header-brand {
    display: flex !important;
    flex: 1;
    min-width: 0;
    align-items: center;
  }
  body.lz-portal-compact-header .lz-mobile-header-brand .lz-brand-logo { height: 32px; }
  body.lz-portal-compact-header .lz-mobile-nav-menu-btn {
    display: inline-flex;
  }
  body.lz-portal-compact-header .main-header:not(.lz-dash-header) {
    flex-wrap: nowrap;
  }
  body.lz-portal-compact-header .main-header:not(.lz-dash-header) .lz-mobile-nav-menu-btn {
    order: -2;
    margin-right: 8px;
  }
  body.lz-portal-compact-header .main-header:not(.lz-dash-header) .lz-mobile-header-brand {
    order: -1;
    flex: 1;
    min-width: 0;
  }
  body.lz-portal-compact-header .main-header:not(.lz-dash-header) .lz-header-actions {
    order: 2;
    margin-left: auto;
  }
  body.lz-mobile-nav-open { overflow: hidden; }
  .lz-header-actions {
    flex: 0 0 auto;
    gap: 8px;
  }
  .main-content {
    padding: 12px 14px;
  }
  body.lz-mobile-nav .main-header {
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .lz-dash-header { padding: 10px 14px; }
  .lz-dash-header-grid {
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 10px;
  }
  .lz-dash-zone--nav-cluster { display: none !important; }
  .lz-dash-zone--menu { display: flex !important; }
  .lz-dash-zone--brand {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 0;
    border: 0;
  }
  .lz-dash-zone--profile {
    margin-left: 0;
    border-left: 0;
    padding-left: 8px;
  }
}
@media (max-width: 768px) {
  .main-header-title h2 {
    font-size: 17px;
  }
}

/* Safety — OHS / Management Inspection */
.sf-page-body { display: flex; flex-direction: column; min-height: 0; }
.sf-kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.sf-kpi { background: #f8fafc; border: 1px solid var(--lz-border); border-radius: 8px; padding: 10px 12px; }
.sf-kpi strong { display: block; font-size: 20px; color: var(--lz-red); margin-top: 4px; }
.sf-drive-notice {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #1e40af;
  margin: 10px 0;
}
.sf-header-grid { margin-bottom: 16px; }
.sf-obs-section { margin-top: 16px; border-top: 1px solid var(--lz-border); padding-top: 12px; }
.sf-obs-table-wrap { max-height: 420px; overflow: auto; }
.sf-obs-table { font-size: 11px; min-width: 1200px; }
.sf-obs-table input, .sf-obs-table select { font-size: 11px; min-width: 90px; }
.sf-photo-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.sf-photo-ph { opacity: 0.75; cursor: not-allowed; }
.sf-photo-cell { white-space: nowrap; }
.sf-photo-thumb { max-width: 48px; max-height: 48px; border-radius: 4px; vertical-align: middle; margin-right: 4px; }
.sf-photo-link { font-size: 11px; }
.sf-photo-pending { font-size: 10px; max-width: 80px; display: inline-block; overflow: hidden; text-overflow: ellipsis; }
.sf-post-submit-bar {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 10px;
}
.sf-post-submit-bar.hidden { display: none; }
.sf-post-submit-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sf-post-submit-text { display: flex; flex-direction: column; gap: 2px; }
.sf-post-submit-text strong { color: #065f46; }
.sf-post-submit-text span { font-size: 0.88rem; color: #047857; }
.sf-post-submit-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-upload-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin: 6px 0 10px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  font-size: 13px;
  color: #0369a1;
  line-height: 1.35;
}
.sf-upload-status--float {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 1200;
  margin: 0;
  max-width: min(420px, calc(100vw - 24px));
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.18);
  pointer-events: none;
}
.sf-upload-status.hidden { display: none; }
.sf-upload-donut {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid #e0f2fe;
  border-top-color: #0284c7;
  animation: sf-upload-spin 0.75s linear infinite;
  flex-shrink: 0;
}
.sf-photo-upload-donut {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: sf-upload-spin 0.75s linear infinite;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(2, 132, 199, 0.35);
}
.sf-cpms-photo-thumb--uploading,
.sf-ohs-photo-thumb--uploading {
  position: relative;
  background: #e0f2fe;
  min-width: 48px;
  min-height: 48px;
}
.sf-cpms-photo-thumb--uploading img,
.sf-ohs-photo-thumb--uploading img {
  opacity: 0.45;
}
@keyframes sf-upload-spin { to { transform: rotate(360deg); } }
.sf-appsheet-notice { background: #f0fdf4; border-color: #86efac; color: #166534; margin-top: 8px; }
.sf-workflow-actions { margin-top: 16px; gap: 8px; flex-wrap: wrap; }
.sf-list-row { cursor: pointer; }
.sf-dash-card { margin-bottom: 16px; }

.sf-home-layout { display: flex; flex-direction: column; gap: 16px; }
.sf-home-summary { margin-bottom: 0; }
.sf-home-kpi-grid { margin-top: 8px; }
a.sf-home-kpi {
  display: block;
  background: #f8fafc;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
a.sf-home-kpi:hover { border-color: var(--lz-red); background: #fef2f2; }
a.sf-home-kpi strong { display: block; font-size: 20px; color: var(--lz-red); margin-top: 4px; }
.sf-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.sf-home-panel--wide { grid-column: 1 / -1; }
.sf-home-list, .sf-home-bulletins { list-style: none; margin: 0; padding: 0; }
.sf-home-list li, .sf-bulletin-item { padding: 8px 0; border-bottom: 1px solid var(--lz-border); }
.sf-home-list li:last-child, .sf-bulletin-item:last-child { border-bottom: none; }
.sf-home-list-title { display: block; font-weight: 600; }
.sf-bulletin-item a { text-decoration: none; color: inherit; display: block; }
.sf-bulletin--urgent { border-left: 3px solid #dc2626; padding-left: 8px; }
.sf-bulletin--important { border-left: 3px solid #f59e0b; padding-left: 8px; }
.sf-home-sites-wrap { max-height: 280px; overflow: auto; }

.sf-list-toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.sf-list-filter { width: 100%; max-width: 420px; }
.sf-insp-table-wrap { max-height: calc(100vh - 220px); overflow: auto; }
.sf-insp-table .sf-list-row--compact { cursor: pointer; }
.sf-insp-table .sf-list-row--compact:hover { background: #f8fafc; }

.sf-flag-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}
.sf-flag-stat {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e8edf2;
  background: #f8fafc;
}
.sf-flag-stat--yellow { border-color: #fde68a; background: #fffbeb; }
.sf-flag-stat--orange { border-color: #fdba74; background: #fff7ed; }
.sf-flag-stat__value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
}
.sf-flag-stat__label {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.sf-flag-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.sf-flag-filter-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}
.sf-flag-filter-btn.is-active {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
}
.sf-flag-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sf-flag-card--yellow { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.sf-flag-card--orange { background: #ffedd5; color: #9a3412; border: 1px solid #fdba74; }
.sf-flag-card--neutral { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.sf-flag-site--yes { color: #15803d; font-weight: 600; }
.sf-flag-site-meta { display: block; }
.sf-flag-add-panel { margin: 0 0 14px; }
.sf-flag-add-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed #e2e8f0;
  border-radius: 10px;
  background: #fafbfc;
}
.sf-flag-add-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; }
.sf-flag-table td strong { display: block; }
.sf-flag-table-wrap { max-height: calc(100vh - 280px); overflow: auto; }
.sf-flag-worker-id {
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  font-size: 11px;
  background: #f8fafc;
  padding: 2px 6px;
  border-radius: 4px;
}
.sf-compact-id code { font-size: 11px; }
.sf-compact-email { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-overdue-tag { color: #dc2626; font-weight: 700; font-size: 11px; }
button.sf-sort-th {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
}
button.sf-sort-th.is-active { color: var(--lz-red); }
@media (max-width: 960px) {
  .sf-home-grid { grid-template-columns: 1fr; }
}

/* Safety hub module cards */
.sf-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.sf-module-card {
  display: block;
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-sm);
  padding: 16px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
}
.sf-module-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--lz-shadow);
}
.sf-module-card h4 { margin: 8px 0 6px; font-size: 15px; color: var(--lz-text); }
.sf-card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--lz-muted);
}
.sf-card-badge--live { background: #dcfce7; color: #166534; }
.sf-card-collection { display: block; margin-top: 8px; font-family: monospace; font-size: 10px; }

/* Mass TBM Live */
.tbm-form-grid { max-width: 720px; }
.tbm-upload-section, .tbm-quiz-prep { margin-top: 16px; }
.tbm-slide-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.tbm-slide-thumb { border: 1px solid var(--lz-border); border-radius: 8px; padding: 8px; max-width: 140px; }
.tbm-slide-thumb img { max-width: 120px; max-height: 80px; display: block; }
.tbm-qr-section { margin: 16px 0; text-align: center; }
.tbm-qr-img { max-width: 200px; border-radius: 8px; }
.tbm-quiz-row { border: 1px solid var(--lz-border); border-radius: 8px; padding: 12px; margin-bottom: 10px; }
.tbm-actions-cell { white-space: nowrap; }

.tbm-live-body { background: #0f172a; }
.tbm-live-app { min-height: 100vh; color: #e2e8f0; }
.tbm-live-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 16px 20px; background: #1e293b; border-bottom: 1px solid #334155;
}
.tbm-live-header h2 { color: #fff; margin: 0; }
.tbm-live-grid { display: grid; grid-template-columns: 1fr 360px; gap: 16px; padding: 16px; min-height: calc(100vh - 80px); }
.tbm-slide-stage {
  background: #000; border-radius: 12px; min-height: 420px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.tbm-slide-img { max-width: 100%; max-height: 70vh; object-fit: contain; }
.tbm-slide-pdf { width: 100%; height: 70vh; border: 0; }
.tbm-slide-empty { color: #94a3b8; padding: 40px; }
.tbm-slide-controls { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 12px; }
.tbm-live-side .section-card { background: #1e293b; border-color: #334155; margin-bottom: 12px; }
.tbm-live-side h4, .tbm-live-side h5 { color: #f8fafc; }
.tbm-attendance-stats { display: flex; gap: 12px; margin-bottom: 12px; }
.tbm-stat-ring { flex: 1; text-align: center; background: #0f172a; border-radius: 8px; padding: 10px; }
.tbm-stat-ring strong { display: block; font-size: 24px; color: #22c55e; }
.tbm-stat-ring--pct strong { color: #38bdf8; }
.tbm-latest-checkin { min-height: 24px; color: #fbbf24; font-weight: 600; }
.tbm-checkin-flash { animation: tbmFlash 1.2s ease; }
@keyframes tbmFlash { 0%,100% { opacity: 1; } 50% { opacity: 0.3; transform: scale(1.02); } }
.tbm-qr-wrap { text-align: center; margin: 12px 0; }
.tbm-qr-wrap img { background: #fff; padding: 8px; border-radius: 8px; max-width: 160px; }
.tbm-attendance-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; }
.tbm-att-row { padding: 8px 0; border-bottom: 1px solid #334155; }
.tbm-leaderboard { margin: 0; padding-left: 20px; }
.tbm-leaderboard li { display: flex; gap: 8px; align-items: center; padding: 6px 0; }
.tbm-leader-winner { color: #fbbf24; font-weight: 700; }
.tbm-winner-banner { margin-top: 12px; padding: 10px; background: #422006; border-radius: 8px; color: #fde68a; }

.tbm-worker-body { background: #f1f5f9; min-height: 100vh; margin: 0; }
.tbm-worker-app { max-width: 480px; margin: 0 auto; padding: 16px; }
.tbm-worker-header { text-align: center; margin-bottom: 20px; }
.tbm-worker-header h1 { margin: 0 0 8px; color: var(--lz-red); font-size: 22px; }
.tbm-worker-card {
  background: #fff; border-radius: 12px; padding: 20px;
  box-shadow: var(--lz-shadow); margin-bottom: 16px;
}
.tbm-worker-card label { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.tbm-worker-card input { width: 100%; margin-top: 4px; }
.btn-block { width: 100%; margin-top: 8px; }
.tbm-worker-ok { border-left: 4px solid #22c55e; }
.tbm-quiz-q { border: 0; margin-bottom: 16px; padding: 0; }
.tbm-quiz-opt { display: block; font-weight: 400; margin: 8px 0; }
@media (max-width: 960px) {
  .tbm-live-grid { grid-template-columns: 1fr; }
}

.sic-tab-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tbm-audience-panel, .tbm-picker-wrap { margin-top: 12px; }
.tbm-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; max-height: 200px; overflow-y: auto; border: 1px solid var(--lz-border); padding: 8px; border-radius: 8px; }
.tbm-picker-item { font-size: 12px; font-weight: 400; display: block; }
.tbm-expected-list { margin-top: 10px; }
.tbm-quiz-gen-grid { max-width: 640px; }
.tbm-external-form { display: grid; gap: 8px; max-width: 400px; }

.sic-expiry-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 16px; }
.sic-stat-card { text-align: center; padding: 12px; border-radius: 8px; border: 1px solid var(--lz-border); }
.sic-stat-card strong { display: block; font-size: 22px; }
.sic-stat--valid strong { color: #16a34a; }
.sic-stat--expiring strong { color: #d97706; }
.sic-stat--expired strong { color: #dc2626; }
.sic-stat--pending strong { color: #64748b; }

.sic-status { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.sic-status--valid { background: #dcfce7; color: #166534; }
.sic-status--expiring { background: #fef3c7; color: #92400e; }
.sic-status--expired { background: #fee2e2; color: #991b1b; }
.sic-status--not_completed, .sic-status--pending { background: #f1f5f9; color: #475569; }
.sic-profile-status { padding: 12px; border-radius: 8px; margin-bottom: 16px; }
.sic-profile-dates { margin-top: 12px; }
}

.sf-placeholder-panel .feed-list.compact { margin: 8px 0 0; padding-left: 18px; }
.sf-placeholder-panel .feed-list.compact li { padding: 4px 0; border: 0; }

.sf-wizard-tabs { margin: 12px 0 16px; }
.sf-wizard-tab {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(234, 88, 12, 0.12);
  -webkit-appearance: none;
  appearance: none;
}
.sf-wizard-pane.hidden { display: none; }
.sf-setup-toolbar { flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.sf-setup-toolbar input[type="date"] {
  flex: 0 1 auto;
  min-width: 132px;
  max-width: none;
}
.sf-dr-search { min-width: 220px; flex: 1 1 220px; }
.sf-dr-table-wrap { max-height: 240px; overflow: auto; margin-bottom: 8px; }
.sf-dr-row { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: rgba(234, 88, 12, 0.15); }
.sf-dr-row:hover { background: #f8fafc; }
.sf-dr-row.is-selected { background: #fff7ed; outline: 2px solid var(--safety-accent, #ea580c); }
.sf-dr-table-wrap { -webkit-overflow-scrolling: touch; }
.sf-dr-detail-card { margin-top: 16px; }
.sf-dr-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 16px;
  margin-bottom: 12px;
}
.sf-dr-detail-field strong { display: block; margin-top: 2px; }
.sf-dr-manpower-list { margin: 0; padding-left: 18px; max-height: 160px; overflow: auto; }
.sf-activity-select { min-width: 280px; max-width: 480px; width: 100%; }
.sf-activity-chip-host {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.sf-activity-chip {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  padding: 10px 16px;
  min-height: 44px;
  font-size: 0.875rem;
  cursor: pointer;
  line-height: 1.2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(234, 88, 12, 0.12);
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  color: inherit;
  position: relative;
  z-index: 1;
}
.sf-activity-chip:hover { background: #f8fafc; border-color: #94a3b8; }
.sf-activity-chip.is-selected {
  border-color: var(--safety-accent, #ea580c);
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px rgba(234, 88, 12, 0.35);
}
.sf-activity-chip > * { pointer-events: none; }
.sf-dr-row { cursor: pointer; touch-action: manipulation; }
.sf-dr-row.is-selected { background: #fff7ed; }
.sf-setup-feedback { margin-top: 10px; min-height: 1.2em; }
.sf-setup-feedback.is-error { color: #b45309; font-weight: 600; }
.sf-setup-feedback.is-ok { color: #047857; }
.sf-save-status.is-error { color: #b45309; font-weight: 600; }
.sf-setup-actions { margin-top: 16px; }
.sf-setup-actions .btn { min-height: 48px; }
@media (max-width: 768px) {
  body[data-lz-module="safety"] .main-content {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
  body[data-lz-module="safety"] .sf-workflow-actions,
  body[data-lz-module="safety"] .sf-setup-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 16px -14px 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 28%);
  }
  body[data-lz-module="safety"] .sf-setup-mode-picker,
  body[data-lz-module="safety"] .sf-report-type-picker {
    grid-template-columns: 1fr;
  }
  body[data-lz-module="safety"] .pg-search-input,
  body[data-lz-module="safety"] select.pg-search-input {
    font-size: 16px;
    min-height: 44px;
  }
  body[data-lz-module="safety"] .sf-dr-row,
  body[data-lz-module="safety"] .sf-setup-mode-btn {
    min-height: 44px;
  }
  body[data-lz-module="safety"] .sf-upload-status--float {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .main-content {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-setup-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 16px -14px 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 28%);
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-setup-mode-picker,
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-report-type-picker {
    grid-template-columns: 1fr;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .pg-search-input,
  body[data-lz-module="safety"][data-sf-page="inspection-new"] select.pg-search-input {
    font-size: 16px;
    min-height: 44px;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-dr-row {
    min-height: 44px;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-upload-status--float {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}
.sf-setup-mode-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.sf-setup-mode-btn {
  text-align: left;
  padding: 12px 14px;
  min-height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(234, 88, 12, 0.12);
  background: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  color: inherit;
  position: relative;
  z-index: 1;
}
.sf-setup-mode-btn > * { pointer-events: none; }
.sf-setup-mode-btn strong { display: block; margin-bottom: 4px; }
.sf-setup-mode-btn.is-active {
  border-color: var(--safety-accent, #ea580c);
  background: #fff7ed;
  outline: 2px solid rgba(234, 88, 12, 0.25);
}
.sf-report-type-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.sf-report-type-btn {
  text-align: left;
  padding: 14px 16px;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(234, 88, 12, 0.12);
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  color: inherit;
  position: relative;
  z-index: 1;
}
.sf-report-type-btn > * { pointer-events: none; }
.sf-report-type-btn strong { display: block; margin-bottom: 4px; }
.sf-report-type-btn.is-active {
  border-color: var(--safety-accent, #ea580c);
  background: #fff7ed;
  outline: 2px solid rgba(234, 88, 12, 0.25);
}
.sf-setup--cpms .sf-report-type-btn[data-sf-report-format="CPMS"].is-active {
  border-color: #2563eb;
  background: #eff6ff;
  outline-color: rgba(37, 99, 235, 0.3);
}
.sf-setup--ohs .sf-report-type-btn[data-sf-report-format="OHS"].is-active {
  border-color: #059669;
  background: #ecfdf5;
  outline-color: rgba(5, 150, 105, 0.3);
}
.sf-setup--daily .sf-setup-mode-btn[data-sf-setup-mode="daily_record"].is-active {
  border-color: #4f46e5;
  background: #eef2ff;
  outline-color: rgba(79, 70, 229, 0.3);
}
.sf-setup--manual .sf-setup-mode-btn[data-sf-setup-mode="manual"].is-active {
  border-color: #d97706;
  background: #fffbeb;
  outline-color: rgba(217, 119, 6, 0.3);
}
.sf-setup-type-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 16px;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sf-setup-type-divider::before,
.sf-setup-type-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #cbd5e1 20%, #cbd5e1 80%, transparent);
}
.sf-setup-type-divider-label { white-space: nowrap; }
.sf-contract-select.sf-contract-group-G { background: #e0f2fe; border-color: #7dd3fc; }
.sf-contract-select.sf-contract-group-C { background: #dcfce7; border-color: #86efac; }
.sf-contract-select.sf-contract-group-A { background: #fef9c3; border-color: #fde047; }
.sf-contract-select.sf-contract-group-P { background: #f3e8ff; border-color: #d8b4fe; }
.sf-contract-select.sf-contract-group-other { background: #f8fafc; }
.sf-format-badge,
.sf-source-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0 6px 8px 0;
}
.sf-format-badge.sf-format-cpms { background: #dbeafe; color: #1d4ed8; }
.sf-format-badge.sf-format-ohs { background: #d1fae5; color: #047857; }
.sf-source-badge.sf-source-daily { background: #e0e7ff; color: #4338ca; }
.sf-source-badge.sf-source-manual { background: #ffedd5; color: #c2410c; }
.sf-review-badges { margin-bottom: 10px; }
.sf-review-signature-img { max-width: 320px; max-height: 120px; border: 1px solid #e2e8f0; background: #fff; }
.sf-review-signature-label { display: block; margin-top: 8px; }
.sf-route-preview-card { border-left: 4px solid #ea580c; }
.sf-route-warn { color: #b45309; font-weight: 600; }
.sf-cpms-review-result--y strong { color: #047857; }
.sf-cpms-review-result--n strong { color: #b91c1c; }
.sf-cpms-review-subhead {
  margin: 12px 0 6px;
  padding: 6px 10px;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid #94a3b8;
}
.sf-review-photo-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.sf-review-photo img { width: 96px; height: 72px; object-fit: cover; border: 1px solid #e2e8f0; border-radius: 4px; background: #f8fafc; }
.sf-review-remarks { margin: 6px 0; white-space: pre-wrap; }
.sf-review-save-hint { margin-top: 8px; }
.sf-review-signature-status { margin-top: 6px; }
.si-ohs-settings-grid { display: grid; gap: 10px; }
.si-ohs-card { margin-bottom: 0; }
.si-ohs-obs-list { display: grid; gap: 8px; }
.sf-ohs-obs-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 12px;
  background: #fff;
}
.sf-ohs-obs-card.is-collapsed .sf-ohs-obs-body { display: none; }
.sf-ohs-obs-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.sf-ohs-head-summary { flex: 1; min-width: 120px; }
.sf-ohs-obs-body { padding: 12px 14px; display: grid; gap: 14px; }
.sf-ohs-part h5 { margin: 0 0 8px; font-size: 0.9rem; }
.sf-ohs-type-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.sf-ohs-type-btn {
  min-height: 44px;
  padding: 8px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
}
.sf-ohs-type-btn.is-active {
  border-color: #0d9488;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #fff;
}
.sf-ohs-type-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.sf-ohs-hazard-fields { display: grid; gap: 8px; }
.sf-ohs-hazard-label {
  display: grid;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}
.sf-manual-adhoc-location { grid-column: 1 / -1; }
.sf-ohs-photo-camera { font-size: 1.35rem; }
.sf-ohs-photo-upload { font-size: 1.1rem; font-weight: 700; }
.sf-ohs-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}
.sf-ohs-photo-thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin: 0;
}
.sf-ohs-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sf-ohs-photo-thumb .sf-ohs-photo-del {
  position: absolute;
  top: 2px;
  right: 2px;
  padding: 0 6px;
  line-height: 1.4;
}
.sf-ohs-photo-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
}
.sf-ohs-photo-add input { display: none; }
.sf-ohs-signature-canvas {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  max-width: 100%;
}
.sf-ohs-review-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.sf-ohs-review-item--good {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.sf-ohs-review-hazard { margin: 6px 0; line-height: 1.35; }
.sf-ohs-review-hazard strong { display: inline; }
.sf-ohs-rect-item {
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
}
.sf-ohs-rect-item--open {
  background: #fef2f2;
  border-color: #fecaca;
}
.sf-ohs-rect-item--closed {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.sf-ohs-rect-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.sf-ohs-rect-status {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.sf-ohs-rect-item--open .sf-ohs-rect-status { color: #b91c1c; }
.sf-ohs-rect-item--closed .sf-ohs-rect-status { color: #047857; }
.sf-review-section-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 12px 0 8px;
  color: #334155;
}
.sf-review-mgt-block {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
}
.sf-review-mgt-list { margin: 0 0 8px 18px; padding: 0; }
.sf-mgt-selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}
.sf-mgt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  font-size: 0.85rem;
}
.sf-mgt-chip-remove {
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.sf-mgt-dropdown-check {
  width: 16px;
  color: #0d9488;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.sf-mgt-dropdown-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.sf-ohs-obs-actions { margin-top: 12px; }
.sf-ohs-add-wrap { margin-top: 16px; padding: 0 2px; }
.sf-ohs-add-btn {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  border: 1px solid #0f766e;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}
.sf-ohs-add-btn:hover { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); color: #fff; }
.sf-cpms-card { margin-bottom: 14px; }
.sf-cpms-sub-group { border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.sf-cpms-sub-toggle {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  background: #f8fafc;
  cursor: pointer;
  font-weight: 600;
}
.sf-cpms-sub-group.is-collapsed .sf-cpms-sub-body { display: none; }
.sf-cpms-sub-caret { display: inline-block; transition: transform 0.15s; }
.sf-cpms-sub-group.is-collapsed .sf-cpms-sub-caret { transform: rotate(-90deg); }
.sf-cpms-table { font-size: 0.82rem; }
.sf-cpms-col-no { width: 56px; white-space: nowrap; }
.sf-cpms-col-result { width: 52px; }
.sf-cpms-col-desc { min-width: 180px; }
.sf-cpms-col-remarks { width: 28%; min-width: 160px; }
.sf-cpms-col-photo { width: 96px; }
.sf-cpms-desc { white-space: pre-line; line-height: 1.3; font-size: 0.82rem; }
.sf-cpms-result-group { display: flex; justify-content: center; }
.sf-cpms-toggle-group { display: inline-flex; gap: 2px; border: 1px solid #e2e8f0; border-radius: 6px; padding: 2px; background: #f8fafc; }
.sf-cpms-toggle-group--stack { flex-direction: column; align-items: stretch; width: 100%; max-width: 44px; }
.sf-cpms-toggle-group--stack .sf-cpms-toggle { width: 100%; text-align: center; padding: 4px 6px; }
.sf-cpms-row--alt { background: #f8fafc; }
.sf-cpms-row--alt .sf-cpms-remarks { background: #fff; }
.sf-cpms-toggle {
  border: 0; background: transparent; font-size: 0.75rem; font-weight: 600;
  padding: 3px 8px; border-radius: 4px; cursor: pointer; color: #64748b; line-height: 1.2;
}
.sf-cpms-toggle.is-active.sf-cpms-toggle--y { background: #d1fae5; color: #047857; }
.sf-cpms-toggle.is-active.sf-cpms-toggle--n { background: #fee2e2; color: #b91c1c; }
.sf-cpms-toggle.is-active.sf-cpms-toggle--na { background: #e2e8f0; color: #475569; }
.sf-cpms-result-opt { font-size: 0.85rem; white-space: nowrap; }
.sf-cpms-remarks { width: 100%; min-height: 72px; margin: 0; font-size: 0.82rem; padding: 6px 8px; resize: vertical; line-height: 1.35; }
.sf-cpms-photo-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.sf-cpms-photo-thumb {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin: 0;
}
.sf-cpms-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sf-cpms-photo-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px dashed #94a3b8;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
}
.sf-cpms-photo-add input { display: none; }
.sf-cpms-unsaved { color: #c2410c; }

/* Safety inspection — with management walkthrough */
.sf-mgt-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 16px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.sf-mgt-bar-hint { margin: 0; flex: 1 1 200px; }
.sf-mgt-bar--summary { background: #ecfdf5; border-color: #a7f3d0; }
.sf-mgt-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1; }
.sf-mgt-summary-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: #d1fae5;
  color: #047857;
}
.sf-mgt-card { margin: 0 0 18px; border: 2px solid #0d9488; }
.sf-mgt-card-head { align-items: flex-start; gap: 12px; }
.sf-mgt-card-head .panel-title { margin: 0 0 4px; }
.sf-mgt-field { margin-bottom: 14px; }
.sf-mgt-label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.sf-mgt-combobox { position: relative; }
.sf-mgt-search { width: 100%; min-height: 44px; font-size: 16px; }
.sf-mgt-dropdown {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  max-height: min(280px, 50vh);
  overflow: auto;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.sf-mgt-dropdown.hidden { display: none; }
.sf-mgt-dropdown-empty { margin: 10px 12px; }
.sf-mgt-dropdown-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  cursor: pointer;
  min-height: 48px;
}
.sf-mgt-dropdown-item:last-child { border-bottom: none; }
.sf-mgt-dropdown-item:hover,
.sf-mgt-dropdown-item.is-selected { background: #f0fdfa; }
.sf-mgt-dropdown-name { font-weight: 600; font-size: 0.92rem; color: #0f172a; }
.sf-mgt-dropdown-meta { font-size: 0.8rem; color: #475569; }
.sf-mgt-dropdown-email { font-size: 0.75rem; color: #64748b; }
.sf-mgt-selected { margin: 8px 0 0; }
.sf-mgt-photos-label { margin: 0 0 8px; font-weight: 600; }
.sf-mgt-photo-grid { margin-bottom: 8px; }
.sf-mgt-photo-add { min-width: 56px; min-height: 56px; font-size: 1.25rem; }
.sf-mgt-photo-thumb .sf-mgt-photo-del { position: absolute; top: 2px; right: 2px; padding: 2px 6px; min-height: 28px; }
.sf-mgt-open-btn { min-height: 44px; padding: 10px 18px; font-size: 0.95rem; }
.sf-mgt-close-btn { min-height: 44px; white-space: nowrap; }
.si-senior-mgmt-card { margin-bottom: 16px; }
.si-senior-mgmt-picker {
  position: static;
  max-height: 240px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: none;
}
@media (max-width: 640px) {
  .sf-mgt-bar { flex-direction: column; align-items: stretch; }
  .sf-mgt-bar .btn { width: 100%; }
  .sf-mgt-card-head { flex-direction: column; }
  .sf-mgt-card-head .btn { width: 100%; }
  .sf-mgt-dropdown { position: static; max-height: 220px; overflow-y: auto; margin-top: 8px; }
  .sf-cpms-photo-thumb, .sf-mgt-photo-add { width: 72px; height: 72px; }
}

/* Safety inspection manpower snapshot editor */
.sf-manpower-block-head { margin-bottom: 8px; }
.sf-manpower-block-head .panel-title { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.sf-manpower-edit-btn.is-active { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.sf-manpower-hint { margin: 4px 0 0; }
.sf-manpower-supervisor-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; padding: 6px 8px; background: #f8fafc; border-radius: 6px; }
.sf-manpower-member-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sf-manpower-name { flex: 1; font-size: 0.88rem; }
.sf-manpower-add-btn { margin-top: 8px; background: #0d9488; border-color: #0d9488; color: #fff; }
.sf-manpower-add-btn:hover { background: #0f766e; border-color: #0f766e; color: #fff; }
.sf-manpower-picker-dialog {
  width: min(440px, 100%);
  max-height: min(520px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  padding: 16px 18px 14px;
}
.sf-manpower-picker-head { align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.sf-manpower-picker-head h3 { margin: 0; font-size: 1.05rem; font-weight: 600; color: #0f172a; }
.sf-manpower-picker-sub { margin: 4px 0 0; font-size: 0.8rem; line-height: 1.4; }
.sf-manpower-picker-close {
  flex-shrink: 0;
  font-size: 1.35rem;
  line-height: 1;
  padding: 2px 10px;
  min-width: 36px;
}
.sf-manpower-picker-toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.sf-manpower-dept-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-manpower-dept-chip {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sf-manpower-dept-chip:hover { border-color: #cbd5e1; background: #f1f5f9; }
.sf-manpower-dept-chip.is-active {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
}
.sf-manpower-picker-search { width: 100%; font-size: 0.95rem; padding: 10px 12px; }
.sf-manpower-picker-list {
  flex: 1;
  min-height: 120px;
  max-height: 280px;
  overflow-y: auto;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  background: #f8fafc;
}
.sf-manpower-picker-empty {
  margin: auto;
  padding: 24px 12px;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.45;
}
.sf-manpower-picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sf-manpower-picker-item:hover:not(.is-disabled) {
  border-color: #0d9488;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.12);
}
.sf-manpower-picker-item.is-disabled { opacity: 0.6; cursor: default; background: #f1f5f9; }
.sf-mp-dept-tag {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  line-height: 1.2;
}
.sf-mp-dept--ag { background: #dbeafe; color: #1d4ed8; }
.sf-mp-dept--ug { background: #ffedd5; color: #c2410c; }
.sf-mp-picker-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sf-mp-picker-name { font-size: 0.9rem; font-weight: 600; color: #0f172a; }
.sf-mp-picker-meta { font-size: 0.78rem; color: #64748b; }
.sf-mp-added { flex-shrink: 0; font-size: 0.72rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; }
.sf-manpower-picker-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

/* Safety review tab — formal layout */
.sf-review-details-formal .sf-review-section-title { font-size: 0.95rem; font-weight: 600; margin: 0 0 10px; color: #334155; }
.sf-review-details-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.sf-review-details-table th,
.sf-review-details-table td { border: 1px solid #e2e8f0; padding: 6px 10px; vertical-align: top; text-align: left; }
.sf-review-details-table th { width: 16%; background: #f8fafc; color: #475569; font-weight: 600; }
.sf-cpms-review-section h4.sf-review-section-title { font-size: 0.95rem; font-weight: 600; color: #334155; }
.sf-cpms-review-row:nth-child(even) { background: #f8fafc; }
.sf-review-photo-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-review-photo img { width: 64px; height: 64px; object-fit: cover; border: 1px solid #e2e8f0; border-radius: 4px; }
.sf-report-photo-strip .sf-review-photo img { width: 72px; height: 72px; }
.sf-manual-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.sf-manual-form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; }
.sf-manual-form-grid select.pg-search-input { pointer-events: auto; cursor: pointer; }
.sf-manual-readonly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.sf-manual-form-card,
.sf-manual-wo-card { margin-top: 0; margin-bottom: 12px; }
.sf-manual-toggle { align-self: end; margin: 0; font-size: 0.85rem; white-space: nowrap; }
.sf-setup-guide-wrap {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}
.sf-setup-guide-title { margin: 0 0 8px; font-weight: 600; }
.sf-setup-guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.sf-setup-guide-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #64748b;
}
.sf-setup-guide-step.is-done { color: #047857; }
.sf-setup-guide-step.is-current { color: #0f172a; font-weight: 600; }
.sf-setup-guide-mark {
  display: inline-flex;
  width: 1.25rem;
  justify-content: center;
  flex-shrink: 0;
}
.sf-manual-wo-card.is-collapsed {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.sf-manual-wo-head { align-items: flex-start; gap: 12px; }
.sf-manual-wo-summary strong { color: #0f172a; }
.sf-manual-wo-body.hidden { display: none; }
.sf-activity-card.is-highlight {
  outline: 2px solid var(--safety-accent, #ea580c);
  outline-offset: 2px;
}
.sf-wo-outside-date { opacity: 0.72; background: #fefce8; }
.sf-wo-outside-date.is-selected { background: #ffedd5; }
#sfManualDateDisplay { margin-top: 2px; }
.sf-obs-context { margin-bottom: 12px; padding: 12px; background: #f8fafc; border-radius: 8px; border: 1px solid var(--lz-border); }
.sf-detail-header {
  margin-bottom: 12px; padding: 10px 12px; background: #f8fafc; border-radius: 8px;
  border: 1px solid var(--lz-border);
}
.sf-detail-header-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.sf-detail-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sf-detail-edit-btn { display: inline-flex; align-items: center; gap: 4px; }
.sf-detail-edit-icon { font-size: 1rem; }
.sf-detail-grid--compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px 14px;
}
.sf-detail-field { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sf-detail-label { font-size: 0.72rem; color: var(--lz-muted, #64748b); text-transform: uppercase; letter-spacing: 0.03em; }
.sf-detail-value { font-size: 0.86rem; font-weight: 600; color: var(--lz-text, #0f172a); line-height: 1.25; word-break: break-word; }
.sf-edit-setup-dialog { width: min(820px, 100%); }
.sf-edit-setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 14px;
  margin-bottom: 12px;
}
.sf-edit-setup-readonly { margin-bottom: 12px; padding: 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; }
.sf-report-photo-strip { display: flex; flex-wrap: wrap; gap: 4px; }
.sf-report-photo img, .sf-report-photo-img { width: 4cm; max-width: 4cm; height: auto; border: 1px solid #e2e8f0; }
.sf-obs-context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 16px;
}
.sf-checklist-question { margin: 0 0 10px; font-weight: 600; line-height: 1.4; }
.sf-checklist-meta { font-size: 11px; color: var(--lz-muted, #64748b); }
.sf-checklist-card .sf-item-grid { margin-top: 0; }
.sf-obs-report-bar {
  position: sticky;
  bottom: 0;
  margin-top: 16px;
  padding: 14px 0 8px;
  background: linear-gradient(to top, #fff 85%, rgba(255, 255, 255, 0));
  border-top: 1px solid var(--lz-border);
  z-index: 2;
}
.sf-obs-report-bar .sf-workflow-actions { margin-top: 0; }
.sf-save-status { min-height: 1.2em; margin: 8px 0 12px; }
.sf-items-section { margin-top: 20px; border-top: 1px solid var(--lz-border); padding-top: 16px; }

.sf-item-card {
  border: 1px solid var(--lz-border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fafafa;
}
.sf-item-card.sf-item--major { border-left: 4px solid #ea580c; background: #fff7ed; }
.sf-item-card.sf-item--high { border-left: 4px solid #c62828; background: #fff5f5; }
.sf-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.sf-item-grid { margin-top: 8px; }

.personnel-roster-table .personnel-row { cursor: pointer; }
.personnel-roster-table .personnel-row:hover { background: #f1f5f9; }
.personnel-profile-dialog { max-width: 880px; width: min(96vw, 880px); }
.pp-modal-head { align-items: flex-start; gap: 12px; }
.pp-modal-head h3 { margin: 0 0 6px; }
.pp-profile-tabs { margin: 0 0 14px; flex-wrap: wrap; }
.pp-profile-tabs .pg-filter-btn { font-size: 12px; padding: 6px 12px; }
.pp-profile-tabs .pg-filter-btn.is-active { background: var(--lz-primary, #2563eb); color: #fff; border-color: transparent; }
.pp-panel-section { margin-bottom: 16px; }
.pp-panel-section h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--lz-muted, #64748b); }
.pp-leave-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.pp-leave-summary .pp-summary-chip {
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--lz-border, #e2e8f0); background: #f8fafc; font-size: 12px;
}
.pp-leave-summary .pp-summary-chip strong { display: block; font-size: 16px; margin-top: 2px; }
.pp-resigned-block { margin-top: 12px; padding: 12px; border-radius: 8px; background: #fef2f2; border: 1px solid #fecaca; }
.pp-status--ACTIVE { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.pp-status--HOME_LEAVE { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.pp-status--IPA_PROCESSING { background: #ffedd5; color: #c2410c; border: 1px solid #fdba74; }
.pp-status--PRE_HIRE { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.pp-status--RESIGNED { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.pp-status--TERMINATED { background: #450a0a; color: #fecaca; border: 1px solid #7f1d1d; }
.pg-status-badge.pp-status--ACTIVE,
.pg-status-badge.pp-status--HOME_LEAVE,
.pg-status-badge.pp-status--IPA_PROCESSING,
.pg-status-badge.pp-status--PRE_HIRE,
.pg-status-badge.pp-status--RESIGNED,
.pg-status-badge.pp-status--TERMINATED {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em;
}
.personnel-access-dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; margin: 0; }
.personnel-access-dl dt { font-weight: 600; color: var(--lz-muted, #64748b); }
.personnel-readonly-grid input[readonly] { background: #f8fafc; }

/* Permission flags editor */
.perm-flags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}
.perm-flag-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: #fafbfc;
  cursor: pointer;
}
.perm-flag-row input { grid-row: span 2; margin-top: 2px; }
.perm-flag-row code { grid-column: 2; font-size: 10px; }

/* Permission Control (rework) */
.perm-owner-badge { color: #92400e; font-weight: 600; }
.perm-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 16px;
  margin-bottom: 18px;
}
.perm-field--wide { grid-column: 1 / -1; }
.perm-field-label { display: block; font-weight: 600; font-size: 12px; margin-bottom: 4px; }
.perm-readonly {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--lz-border);
  font-weight: 600;
}
.perm-combobox { position: relative; }
.perm-combobox-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  font-size: 14px;
}
.perm-combobox-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  box-shadow: var(--lz-shadow);
}
.perm-combobox-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}
.perm-combobox-option:hover,
.perm-combobox-option.is-selected { background: var(--lz-red-soft); }
.perm-combobox-empty { padding: 12px; font-size: 12px; color: var(--lz-muted); }
.perm-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.perm-toggle-row--compact { padding: 8px 0; }
.perm-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.perm-toggle-track {
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background 0.2s;
  margin-top: 2px;
}
.perm-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.perm-toggle-input:checked + .perm-toggle-track {
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.28);
}
.perm-toggle-input:checked + .perm-toggle-track::after {
  transform: translateX(20px);
}
.perm-toggle-input:checked ~ .perm-toggle-text strong {
  color: #15803d;
}
.perm-toggle-row--on .perm-toggle-text strong {
  color: #15803d;
}
.perm-toggle-input:disabled + .perm-toggle-track { opacity: 0.55; }
.perm-toggle-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.perm-toggle-text strong { font-size: 13px; }
.perm-module-section { margin-top: 8px; }
.perm-module-intro { margin: 0 0 12px; max-width: 720px; line-height: 1.5; }
.perm-module-grid { margin-top: 0; }
.perm-module-table-wrap { margin-top: 8px; }
.perm-module-table { font-size: 13px; }
.perm-module-table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lz-muted);
  white-space: nowrap;
}
.perm-module-table thead th:nth-child(n+2) { text-align: center; width: 108px; }
.perm-module-row td { vertical-align: middle; }
.perm-table-module strong { display: block; font-size: 13px; }
.perm-table-module .feed-meta { display: block; font-size: 11px; margin-top: 2px; max-width: 320px; }
.perm-table-cell { text-align: center; }
.perm-table-na { color: #cbd5e1; font-size: 12px; }
.perm-table-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.perm-table-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.perm-table-switch input:checked + .perm-toggle-track,
.perm-table-switch input:checked + .perm-toggle-track--sm {
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.28);
}
.perm-toggle-track--sm { width: 36px; height: 20px; margin: 0; }
.perm-toggle-track--sm::after { width: 14px; height: 14px; top: 3px; left: 3px; }
.perm-table-switch input:checked + .perm-toggle-track--sm::after { transform: translateX(16px); }
.perm-module-row--on {
  box-shadow: inset 4px 0 0 #16a34a;
}
.perm-mailbox-warn { color: #b45309; }
.perm-mailbox-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 4px;
  padding: 1px 6px;
  margin-right: 4px;
}
#permTableStatus { min-height: 1.25em; margin-top: 8px; }
.perm-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 24px;
  padding: 0;
  width: 100%;
  border-bottom: 1px solid #e2e8f0;
  background: transparent;
}
.perm-tab-btn {
  position: relative;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 14px 22px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.25;
  transition: color 0.15s ease;
  margin-bottom: -1px;
}
.perm-tab-btn:hover {
  color: #0f172a;
}
.perm-tab-btn.is-active {
  color: var(--lz-red, #c62828);
  font-weight: 600;
}
.perm-tab-btn.is-active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--lz-red, #c62828);
  border-radius: 2px 2px 0 0;
}
.perm-row--costing { background: #fffbeb; }
.perm-row--hr { background: #fdf2f8; }
.perm-row--commercial { background: #eff6ff; }
.perm-row--accounts { background: #f0f9ff; }
.perm-row--ops { background: #eef6fc; }
.perm-row--eng { background: #f3f4f6; }
.perm-row--safety { background: #fff7ed; }
.perm-row--default { background: #fafbfc; }
.perm-module-row:hover { filter: brightness(0.99); }
.perm-table-cell--view { background: rgba(255,255,255,0.35); }
.perm-table-cell--module { background: rgba(255,255,255,0.2); }
.perm-table-cell--settings { background: rgba(255,255,255,0.12); }
.perm-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.perm-chat-toolbar {
  margin-bottom: 12px;
  align-items: center;
}
.perm-chat-table .perm-chat-webhook-field {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 520px;
  border: 1px solid var(--lz-border, #cbd5e1);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.perm-chat-webhook-field--set {
  border-color: #86efac;
  background: rgba(34, 197, 94, 0.04);
}
.perm-chat-webhook-display {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.65rem;
  cursor: default;
  user-select: none;
}
.perm-chat-webhook-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: #334155;
}
.perm-chat-webhook-text--empty {
  color: #94a3b8;
  font-style: italic;
}
.perm-chat-webhook-input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0.5rem 0.65rem;
  font-size: 13px;
  font-family: inherit;
  background: transparent;
}
.perm-chat-webhook-input.hidden,
.perm-chat-webhook-display.hidden {
  display: none !important;
}
.perm-chat-webhook-input:focus {
  outline: none;
}
.perm-chat-webhook-field--editing {
  border-color: var(--lz-accent, #2563eb);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.perm-chat-webhook-edit {
  flex: 0 0 auto;
  border: 0;
  border-left: 1px solid var(--lz-border, #e2e8f0);
  background: var(--lz-surface-muted, #f8fafc);
  color: #64748b;
  padding: 0 0.65rem;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.perm-chat-webhook-edit:hover {
  background: #e2e8f0;
  color: #334155;
}
.perm-chat-webhook-edit.is-active,
.perm-chat-webhook-field--editing .perm-chat-webhook-edit {
  background: #dbeafe;
  color: #1d4ed8;
}
.perm-chat-actions {
  white-space: nowrap;
  width: 88px;
}
.perm-status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #fee2e2;
  color: #991b1b;
}
.perm-status-pill.is-active { background: #dcfce7; color: #166534; }
.perm-row-actions { white-space: nowrap; }
.perm-row-actions .btn { margin-right: 4px; }
.btn-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.btn-danger:hover { background: #fee2e2; }

/* Daily Records */
.dr-page-body { display: flex; flex-direction: column; min-height: 0; }
.dr-date-label { display: inline-flex; flex-direction: column; gap: 4px; }
.dr-header-card { margin-bottom: 14px; background: #f8fafc; }
.dr-header-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.dr-header-field strong { display: block; margin-top: 4px; font-size: 14px; }
.dr-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.dr-section-card { margin: 0; }
.dr-drive-notice {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1e40af;
  font-size: 12px;
}
.dr-list-row { cursor: pointer; }
.dr-range-toolbar { flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.dr-summary-host { margin: 12px 0; }
.dr-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.dr-summary-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--lz-border);
  background: #fff;
  min-width: 72px;
}
.dr-summary-chip strong { font-size: 18px; color: var(--lz-text); }
.dr-summary-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--lz-muted); }
.dr-summary-chip--total { border-color: var(--lz-red-soft); background: #fef2f2; }
.dr-summary-chip--warn strong { color: #b45309; }
.dr-summary-chip.is-active,
button.dr-summary-chip.is-active {
  border-color: var(--lz-red);
  box-shadow: 0 0 0 1px var(--lz-red-soft);
}

/* Status summary cards (shared filter UX) */
.status-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}
.status-summary-card,
button.status-summary-card {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--lz-border);
  background: #fff;
  min-width: 72px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}
.status-summary-card strong { font-size: 18px; color: var(--lz-text); }
.status-summary-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--lz-muted); }
.status-summary-card.is-active {
  border-color: var(--lz-red);
  background: #fef2f2;
  box-shadow: 0 0 0 1px var(--lz-red-soft);
}
.sch-status-card--all { background: #f8fafc; border-color: #cbd5e1; }
.sch-status-card--planned { background: #eff6ff; border-color: #93c5fd; }
.sch-status-card--released { background: #fff7ed; border-color: #fdba74; }
.sch-status-card--completed { background: #ecfdf5; border-color: #6ee7b7; }
.sch-status-card--cancelled { background: #fef2f2; border-color: #fca5a5; }
.sch-status-card--all.is-active { background: #e2e8f0; }
.sch-status-card--planned.is-active { background: #dbeafe; }
.sch-status-card--released.is-active { background: #ffedd5; }
.sch-status-card--completed.is-active { background: #d1fae5; }
.sch-status-card--cancelled.is-active { background: #fecaca; }
.ctr-status-summary { margin-bottom: 12px; }

/* Dashboard action summary cards */
.dash-action-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dash-action-card {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--lz-border);
  background: #fff;
  min-width: 100px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.dash-action-card strong { font-size: 22px; color: var(--lz-red); }
.dash-action-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--lz-muted); }
.dash-action-card.is-active {
  border-color: var(--lz-red);
  background: #fef2f2;
}

.lz-dash-tasks { margin-top: 0; }
.lz-dash-tasks .section-head-row { align-items: baseline; gap: 12px; }
.lz-dash-task-tabs { margin: 12px 0 10px; }
.lz-dash-task-content { min-height: 72px; }

/* Announcements */
.ann-strip-urgent { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.ann-strip-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 8px; }
.ann-strip-card {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--lz-border);
  background: #fafafa;
}
.ann-list { display: flex; flex-direction: column; gap: 12px; }
.ann-card {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--lz-border);
  background: #fff;
}
.ann-card-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.ann-type-tag { font-size: 10px; text-transform: uppercase; color: var(--lz-muted); }
.ann-pin, .ann-priority-tag { font-size: 10px; padding: 2px 6px; border-radius: 4px; background: #fef3c7; color: #92400e; }
.ann-priority--urgent { border-color: #fca5a5; background: #fef2f2; }
.ann-body { font-size: 13px; margin: 6px 0; white-space: pre-wrap; }
.ann-body-preview { font-size: 12px; margin: 4px 0 0; color: var(--lz-muted); }
button.sf-kpi {
  cursor: pointer;
  border: 1px solid var(--lz-border);
  background: #fff;
  font: inherit;
  text-align: left;
}
button.sf-kpi.is-active { border-color: var(--lz-red); background: #fef2f2; }

.dr-workflow-host { margin-bottom: 14px; }
.dr-workflow-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--lz-border);
}
.dr-wf-status { margin-left: auto; }
.dr-editor-table-wrap { overflow-x: auto; margin-bottom: 8px; }
.dr-editor-table .dr-inp {
  width: 100%;
  min-width: 60px;
  font-size: 12px;
  padding: 4px 6px;
  border: 1px solid var(--lz-border);
  border-radius: 4px;
}
.dr-editor-table .dr-inp-time { max-width: 90px; }
.dr-editor-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dr-photo-upload { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 12px; }
.dr-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.dr-photo-card { margin: 0; border: 1px solid var(--lz-border, #e2e8f0); border-radius: 8px; overflow: hidden; }
.dr-photo-thumb { min-height: 100px; display: flex; align-items: center; justify-content: center; background: #f8fafc; font-size: 12px; color: #64748b; }
.dr-photo-thumb img { width: 100%; height: 120px; object-fit: cover; display: block; }
.dr-photo-card figcaption { padding: 6px 8px; font-size: 12px; }

/* Scheduler calendar */
.sch-cal-nav {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.sch-calendar-host { margin-bottom: 16px; }
.sch-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 4px;
}
.sch-cal-head {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--lz-muted);
  padding: 4px 0;
}
.sch-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.sch-cal-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 96px;
  padding: 6px 8px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.12s;
}
.sch-cal-cell--dow-1 { background: #eff6ff; border-color: #93c5fd; }
.sch-cal-cell--dow-2 { background: #ecfdf5; border-color: #6ee7b7; }
.sch-cal-cell--dow-3 { background: #fefce8; border-color: #fde047; }
.sch-cal-cell--dow-4 { background: #fff7ed; border-color: #fdba74; }
.sch-cal-cell--dow-5 { background: #f5f3ff; border-color: #c4b5fd; }
.sch-cal-cell--dow-6 { background: #fdf2f8; border-color: #f9a8d4; }
.sch-cal-cell--sunday {
  background: #fef2f2;
  border-color: #fca5a5;
}
.sch-cal-cell--ph {
  background: linear-gradient(160deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.25);
}
.sch-cal-cell--today {
  box-shadow: 0 0 0 2px var(--lz-red), 0 4px 12px rgba(198, 40, 40, 0.18);
  transform: translateY(-1px);
  z-index: 1;
  position: relative;
}
.sch-cal-cell:hover { border-color: var(--lz-red); filter: brightness(0.98); }
.sch-cal-cell--adjacent {
  opacity: 0.92;
  border-style: dashed;
  filter: saturate(0.85);
}
.sch-cal-cell--adjacent:hover { filter: saturate(0.92) brightness(0.98); }
.sch-cal-month-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--lz-muted);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sch-cal-ph-label {
  font-size: 9px;
  font-weight: 700;
  color: #b45309;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sch-cal-date { font-weight: 700; font-size: 11px; color: var(--lz-red); line-height: 1.25; }
.sch-cal-dow { font-size: 10px; color: var(--lz-muted); margin-bottom: 4px; }
.sch-cal-stat { font-size: 11px; line-height: 1.35; }
.sch-cal-stat--muted { color: var(--lz-muted); }
.sch-cal-stat--released { color: #2563eb; }
.sch-cal-stat--done { color: #059669; }
.sch-cal-stat--warn { color: #b45309; }
.sch-cal-stat--ok { color: #047857; }
.sch-cal-shell { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 900px) {
  .sch-cal-weekdays,
  .sch-cal-grid {
    min-width: 560px;
    gap: 4px;
  }
  .sch-cal-cell {
    min-height: 84px;
    padding: 4px 3px;
  }
  .sch-cal-head { font-size: 9px; padding: 2px 0; }
  .sch-cal-date { font-size: 11px; }
  .sch-cal-stat { font-size: 9px; line-height: 1.25; }
  .sch-cal-stat--muted,
  .sch-cal-stat--released,
  .sch-cal-stat--done,
  .sch-cal-stat--warn,
  .sch-cal-stat--ok { display: none; }
}

/* Alignment hosted */
.aln-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

/* Engineering schematic editor */
.sch-layout {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.sch-toolbar { flex-wrap: wrap; gap: 8px; align-items: center; }
.sch-toolbar-divider { width: 1px; height: 24px; background: var(--lz-border); margin: 0 4px; }
.sch-source-card { padding: 12px 14px; }
.sch-source-pane--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 0 0;
}
.sch-prop-inline { font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.sch-draw-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 12px;
  min-height: calc(100vh - 280px);
  align-items: stretch;
}
.sch-workspace {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr) minmax(240px, 300px);
  gap: 8px;
  min-height: 0;
  flex: 1;
  align-items: stretch;
  overflow: hidden;
}
.sch-workspace--draw {
  grid-template-columns: minmax(0, 1fr) 272px;
  min-height: 0;
  flex: 1;
}
.sch-workspace--draw.sch-workspace--insert-collapsed {
  grid-template-columns: minmax(0, 1fr) 272px;
}
.sch-workspace--draw.sch-workspace--right-collapsed {
  grid-template-columns: minmax(0, 1fr);
}
.sch-workspace--draw.sch-workspace--insert-collapsed.sch-workspace--right-collapsed {
  grid-template-columns: minmax(0, 1fr);
}
.sch-insert-panel,
.sch-right-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  position: relative;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
.sch-workspace--draw .sch-right-panel {
  width: 272px;
  max-width: 272px;
  justify-self: end;
}
.sch-insert-panel.is-collapsed,
.sch-right-panel.is-collapsed {
  min-width: 56px;
  max-width: 72px;
  padding: 6px 4px;
  overflow: visible;
}
.sch-insert-panel.is-collapsed .sch-insert-panel-body,
.sch-insert-panel.is-collapsed .sch-panel-head-row,
.sch-right-panel.is-collapsed .sch-right-panel-body,
.sch-right-panel.is-collapsed .sch-panel-head-row {
  display: none;
}
.sch-panel-expand {
  position: absolute;
  top: 8px;
  z-index: 2;
  white-space: nowrap;
}
.sch-insert-panel.is-collapsed .sch-panel-expand {
  display: inline-flex !important;
  left: 0;
}
.sch-right-panel.is-collapsed .sch-panel-expand {
  display: inline-flex !important;
  right: 0;
}
.sch-insert-panel-body,
.sch-right-panel-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.sch-insert-panel .sch-palette-chip-scroll {
  max-height: 140px;
}
.sch-right-mode-tabs {
  flex-shrink: 0;
}
.sch-right-shared-pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sch-right-insert-pane,
.sch-right-materials-pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.sch-right-shared-pane .sch-mat-filter-list,
.sch-right-shared-pane .sch-materials-list {
  flex: 1;
  min-height: 0;
  max-height: none;
}
.sch-right-shared-pane .sch-mat-filter-list {
  --sch-mat-pick-row-h: 26px;
  --sch-mat-pick-visible-rows: 10;
}
@media (min-height: 900px) {
  .sch-right-shared-pane .sch-mat-filter-list {
    --sch-mat-pick-visible-rows: 12;
  }
}
@media (min-height: 1080px) {
  .sch-right-shared-pane .sch-mat-filter-list {
    --sch-mat-pick-visible-rows: 15;
  }
}
.sch-right-shared-pane .sch-materials-list .table-wrap,
.sch-right-shared-pane .sch-materials-list .sch-mat-table-wrap {
  max-height: 260px;
  overflow: auto;
}
.sch-panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.sch-panel-toggle {
  flex-shrink: 0;
}
.mat-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.mat-badge--ok { background: #dcfce7; color: #166534; }
.mat-badge--off { background: #f1f5f9; color: #64748b; }
.mat-badge--lock { background: #fef3c7; color: #92400e; }
.mat-row--inactive { opacity: 0.55; }
.mat-search-input { min-width: 180px; max-width: 240px; }
.mat-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: flex-end;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
}
.mat-bulk-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--lz-muted);
}
.mat-bulk-field .pg-search-input { min-width: 100px; font-weight: 400; }
.mat-bulk-count { align-self: center; min-width: 88px; font-weight: 600; }
.mat-col-check { width: 36px; text-align: center; }
.mat-table .mat-row.is-selected { background: #eff6ff; }
.mat-table .mat-row { cursor: pointer; }
.mat-flag-row { margin: 10px 0; }
.sch-top-insert-bar {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sch-palette-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  align-items: stretch;
  min-height: 0;
}
.sch-palette-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.sch-palette-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  min-height: 0;
}
.sch-palette-filter-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.sch-palette-filter-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lz-muted);
}
.sch-palette-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-content: flex-start;
}
.sch-palette-chip-scroll {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 2px;
}
.sch-palette-chip-grid .sch-palette-btn {
  min-width: 0;
  height: 24px;
  padding: 0 8px;
  font-size: 10px;
  border-radius: 4px;
}
.sch-palette-chip-grid .sch-palette-btn--size {
  min-width: 36px;
}
@media (max-width: 900px) {
  .sch-palette-split { grid-template-columns: 1fr; }
}
.sch-insert-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 4px;
}
.sch-insert-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}
.sch-insert-meta-label { color: var(--lz-muted); font-weight: 600; }
.sch-active-line-label { font-size: 12px; font-weight: 700; color: var(--lz-red); }
.sch-size-row-label { font-size: 10px; font-weight: 700; color: var(--lz-muted); text-transform: uppercase; min-width: 36px; }
.sch-bq-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sch-bq-group-title { margin: 0 0 8px; font-size: 12px; font-weight: 700; color: var(--lz-red); }
.sch-bq-list { margin: 0; padding-left: 18px; font-size: 13px; }
.sch-mat-row--compact { padding: 8px 0; border-bottom: 1px solid var(--lz-border); }
.sch-mat-row-main { display: flex; align-items: center; gap: 8px; }
.sch-mat-mini-sym { flex-shrink: 0; }
.sch-mat-actions--compact { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.sch-edit-type-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sch-mat-pick-row--brand strong { font-size: 15px; color: var(--lz-red); }
.sch-node--builtin .sch-builtin-symbol { pointer-events: all; }
.sch-turn-group { gap: 4px; }
.sch-turn-btn { min-width: 64px; height: 26px; font-size: 11px; }
.sch-route-modal-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.sch-route-modal-btn {
  padding: 10px 12px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.sch-route-modal-btn:hover { border-color: var(--lz-red); background: #fef2f2; }
.sch-route-modal-btn.is-active {
  border-color: var(--lz-red);
  background: #fef2f2;
  color: var(--lz-red);
}
.sch-route-modal-flip-row { margin-top: 10px; }
.sch-node--empty-point .sch-empty-point-hit {
  fill: #e2e8f0;
  stroke: #64748b;
  stroke-width: 1.5;
}
.sch-node--line-start .sch-empty-point-hit { fill: #dbeafe; stroke: #2563eb; }
.sch-node--pipe-stub .sch-empty-point-hit { fill: #fef3c7; stroke: #d97706; }
.sch-empty-point-label { font-size: 9px; fill: #64748b; }
.sch-route-group { gap: 4px; flex-wrap: wrap; }
.sch-route-group--start .sch-insert-meta-label { color: var(--lz-red); }
.sch-route-btn {
  min-width: 28px;
  width: 28px;
  height: 26px;
  padding: 0;
  font-size: 14px;
  line-height: 1;
}
.sch-route-flip { min-width: 28px; font-size: 13px; }
.sch-route-btn.is-active,
.sch-turn-btn.is-active {
  border-color: var(--lz-red);
  background: var(--lz-red-soft);
  color: var(--lz-red);
}
.sch-source-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--lz-border);
}
.sch-source-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--lz-red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sch-modal-card--sm { max-width: 360px; }
.sch-join-modal-fields,
.sch-join-manual-fields { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.sch-join-field { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.sch-join-modal-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sch-join-manual { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--lz-border, #e2e8f0); }
.sch-join-ref { font-size: 11px; word-break: break-all; }
.sch-elbow-options { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.sch-orient-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sch-orient-vertical-row { margin-top: 10px; }
.sch-orient-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  min-height: 96px;
}
.sch-orient-btn:hover,
.sch-orient-btn:focus {
  border-color: var(--lz-red);
  background: #fef2f2;
}
.sch-orient-btn--vertical { width: 100%; }
.sch-orient-btn--vertical-card {
  width: 100%;
  min-height: 72px;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border-color: #818cf8;
}
.sch-orient-btn--vertical-card:hover,
.sch-orient-btn--vertical-card:focus {
  border-color: #4f46e5;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}
.sch-orient-vertical-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #4f46e5;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.sch-line-chip--branch { font-size: 11px; }
.sch-label-leader { pointer-events: none; }
.sch-node-label--name { fill: #334155; font-size: 11px; font-weight: 400; }
.sch-node-label--ef { fill: #64748b; font-size: 10px; font-weight: 400; }
.sch-orient-caption {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}
.sch-orient-preview { display: block; }
.sch-modal-card--orient { max-width: 380px; }
.sch-route-orient-btn.is-active,
.sch-orient-btn.is-active {
  border-color: var(--lz-red, #dc2626);
  background: #fef2f2;
  box-shadow: 0 0 0 1px var(--lz-red, #dc2626);
}
.sch-elbow-opt-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}
.sch-elbow-opt-btn:hover { border-color: var(--lz-red); background: #fef2f2; }
.sch-mat-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}
.sch-mat-group-head .sch-mat-group-chevron { font-size: 10px; color: var(--lz-muted); }
.sch-mat-group.is-collapsed .sch-mat-group-body { display: none; }
.sch-mat-badge--drawn { background: #dcfce7; color: #166534; }
.sch-mat-badge--needs { background: #fef3c7; color: #92400e; }
.sch-mat-badge--dr-only { background: #f1f5f9; color: #475569; }
.sch-mat-badge--drawing-only { background: #dbeafe; color: #1d4ed8; }
.sch-mat-row--drawn { border-left: 3px solid #22c55e; }
.sch-mat-row--needs { border-left: 3px solid #f59e0b; }
.sch-node--vertical-elbow .sch-vertical-marker { stroke: #64748b; stroke-width: 2; fill: none; }
.sch-left-panel, .sch-right-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px;
  overflow: hidden;
}
.sch-left-section { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--lz-border); }
.sch-left-section:last-child { border-bottom: 0; margin-bottom: 0; }
.sch-panel-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--lz-red); text-transform: uppercase; letter-spacing: 0.04em; }
.sch-source-tabs--compact { margin-bottom: 8px; }
.sch-source-pane--stack { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.sch-center-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}
.sch-right-selected { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--lz-border); }
.sch-mat-warnings { padding: 8px 10px; margin-bottom: 10px; border-radius: 8px; background: #fffbeb; border: 1px solid #fcd34d; font-size: 12px; }
.sch-mat-badge { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 999px; margin-left: auto; }
.sch-mat-badge--ok { background: #dcfce7; color: #166534; }
.sch-mat-badge--warn { background: #fef3c7; color: #92400e; }
.sch-mat-row--placed { border-left: 3px solid #22c55e; }
.sch-mat-row--unplaced { border-left: 3px solid #f59e0b; }
.sch-bottom-dock {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
.sch-bottom-dock[data-dock-height="collapse"] { flex: 0 0 auto; }
.sch-bottom-dock[data-dock-height="collapse"] .sch-dock-body { display: none; }
.sch-bottom-dock[data-dock-height="half"] { flex: 0 0 180px; max-height: 28vh; }
.sch-bottom-dock[data-dock-height="full"] { flex: 1 1 50vh; max-height: 60vh; }
.sch-dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--lz-border);
  background: #f8fafc;
  flex-wrap: wrap;
}
.sch-dock-tabs { margin: 0; flex-wrap: wrap; }
.sch-dock-resize { display: flex; gap: 4px; }
.sch-dock-body { flex: 1; min-height: 0; overflow: auto; padding: 10px; }
.sch-dock-pane { min-height: 120px; }
.sch-dock-table-wrap { max-height: 180px; overflow: auto; }
.sch-dock-totals { margin-bottom: 8px; }
.sch-dock-ok { color: #059669; }
.sch-validation-list { list-style: none; margin: 0; padding: 0; }
.sch-validation-item { margin-bottom: 6px; }
.sch-validation-item--warn button { color: #b45309; border-color: #fcd34d; }
.sch-node--pipe .sch-pipe-bar { opacity: 0.95; }
.sch-node--pipe.sch-node--selected .sch-pipe-bar { stroke: #f59e0b !important; stroke-width: 2 !important; }
.sch-fusion-totals { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; font-size: 13px; }
.sch-fusion-ok-text { color: #166534; }
.sch-fusion-miss-text { color: #b45309; }
.sch-fusion-missing { margin-bottom: 12px; }
.sch-fusion-miss-item { color: #92400e; font-weight: 600; }
.sch-fusion-badge { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 999px; }
.sch-fusion-badge--ok { background: #dcfce7; color: #166534; }
.sch-fusion-badge--warn { background: #fef3c7; color: #92400e; }
.sch-fusion-miss td { background: #fffbeb; }
.sch-canvas-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 0;
}
.sch-mat-drawer {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 12px;
  transition: width 0.2s, min-width 0.2s, padding 0.2s;
}
.sch-mat-drawer--collapsed {
  min-width: 36px;
  width: 36px;
  padding: 8px 4px;
  overflow: hidden;
}
.sch-mat-drawer--collapsed .sch-right-tabs,
.sch-mat-drawer--collapsed .sch-right-pane,
.sch-mat-drawer--collapsed .pg-toolbar { display: none; }
.sch-mat-drawer-toggle {
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 28px;
  height: 48px;
  border: 1px solid var(--lz-border);
  border-radius: 999px;
  background: #fff;
  color: var(--lz-red);
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.sch-mat-drawer-toggle:hover { background: var(--lz-red-soft); border-color: var(--lz-red); }
.sch-source-tabs, .sch-right-tabs { margin-bottom: 10px; flex-wrap: wrap; }
.sch-source-pane, .sch-right-pane { padding: 4px 0; min-height: 0; overflow: auto; }
.sch-node--grouped .sch-node-hit { stroke: transparent; }
.sch-canvas-host--conn-graph .sch-node--grouped .sch-node-hit { stroke: #818cf8; stroke-width: 1; }
.sch-node--selected.sch-node--grouped .sch-node-hit { stroke: #2563eb; }
.sch-node--joined .sch-node-hit,
.sch-node--joined .sch-pipe-bar { /* joined = physical touch, no overlay */ }
.sch-canvas-host--conn-graph .sch-node--joined .sch-node-hit { stroke: #16a34a; stroke-width: 1; }
.sch-canvas-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid var(--lz-border);
  background: #f8fafc;
}
.sch-toolbar-spacer { flex: 1 1 12px; min-width: 8px; }
.sch-view-menu-wrap { position: relative; }
.sch-view-menu-panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 12;
  min-width: 168px;
  padding: 8px 10px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sch-view-menu-panel.hidden { display: none; }
.sch-screenshot-btn {
  font-weight: 600;
  white-space: nowrap;
}
.sch-pipe-edge--selected .sch-pipe-bar { stroke: #2563eb !important; filter: drop-shadow(0 0 2px rgba(37,99,235,0.45)); }
.sch-icon-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--lz-border);
  border-radius: 6px;
  background: #fff;
  font-size: 15px;
  cursor: pointer;
  line-height: 1;
}
.sch-icon-btn:hover { border-color: var(--lz-red); background: #fef2f2; }
.sch-icon-btn.is-active { border-color: var(--lz-red); background: var(--lz-red-soft); box-shadow: inset 0 0 0 1px var(--lz-red); }
.sch-canvas-wrap {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
.sch-view-controls {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 6px 10px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  max-width: calc(100% - 16px);
}
.sch-view-toggle {
  font-size: 11px;
  color: var(--lz-text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.sch-view-toggle--dev { color: var(--lz-muted); font-size: 10px; }
.sch-canvas-card.sch-screenshot-mode .sch-canvas-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 6px 10px;
  background: rgba(255,255,255,0.92);
}
.sch-canvas-card.sch-screenshot-mode .sch-canvas-toolbar > :not(#btnSchScreenshotExit) { display: none !important; }
.sch-canvas-card.sch-screenshot-mode .sch-canvas-toolbar #btnSchScreenshotExit { display: inline-flex !important; }
.sch-canvas-card.sch-screenshot-mode + .sch-bottom-dock { display: none; }
.sch-toolbar-card--compact { padding: 8px 12px; margin-bottom: 0; }
.sch-toolbar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.sch-toolbar-status {
  margin: 0;
  flex: 1 1 160px;
  min-width: 0;
}
.sch-toolbar-source {
  flex: 1 1 320px;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}
.sch-source-inline--head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.sch-card--rose {
  background: linear-gradient(165deg, #fff7f7 0%, #fef2f2 100%);
  border-color: #fecaca;
}
.sch-card--sky {
  background: linear-gradient(165deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
}
.sch-card--canvas {
  background: linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
  border-color: #e4e4e7;
}
.sch-route-card {
  border-radius: 8px;
  padding: 6px 8px;
  flex-shrink: 0;
}
.sch-insert-meta-row--compact {
  gap: 6px 8px;
  margin-bottom: 0;
}
.sch-direction-compact {
  font-size: 11px;
  white-space: nowrap;
}
.sch-input-compact {
  height: 26px;
  min-height: 26px;
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1.2;
  box-sizing: border-box;
}
.sch-line-select.sch-input-compact { min-width: 72px; max-width: 96px; }
.sch-quick-palette--duo {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(180px, 1.6fr);
  gap: 10px 14px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #e2e8f0;
  align-items: start;
}
.sch-quick-palette {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 16px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--lz-border);
}
.sch-palette-filter-block--inline {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.sch-palette-filter-block--inline .sch-palette-filter-label {
  flex-shrink: 0;
  min-width: 32px;
  padding-top: 3px;
  margin: 0;
}
.sch-palette-filter-block--inline.sch-palette-fit-block {
  min-width: 0;
}
.sch-palette-chip-grid--2row {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, minmax(22px, auto));
  grid-auto-columns: minmax(min-content, max-content);
  gap: 3px 4px;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  flex: 1;
  min-width: 0;
  padding-bottom: 2px;
}
.sch-palette-chip-grid--compact {
  gap: 3px 4px;
}
.sch-palette-chip-grid--compact .sch-palette-btn--size,
.sch-palette-chip-grid--2row .sch-palette-btn {
  min-width: 32px;
  padding: 2px 6px;
  font-size: 10px;
  line-height: 1.2;
}
.sch-palette-chip-scroll--compact {
  max-height: 56px;
  overflow-x: auto;
  overflow-y: hidden;
}
.sch-palette-chip-scroll--compact .sch-palette-chip-grid {
  flex-wrap: nowrap;
  width: max-content;
}
.sch-palette-chip-scroll--compact .sch-palette-btn {
  padding: 2px 8px;
  font-size: 10px;
  white-space: nowrap;
}
.sch-right-insert-pane .sch-mat-filter-input,
.sch-mat-filter-input.sch-input-compact {
  flex: none;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 26px;
  min-height: 26px;
  padding: 3px 8px;
  font-size: 12px;
  line-height: 1.2;
}
.sch-right-insert-pane {
  gap: 4px;
}
.sch-palette-hint {
  margin: 2px 0 0;
  font-size: 10px;
  line-height: 1.3;
}
.sch-materials-list { overflow: auto; flex: 1; min-height: 0; }
.sch-right-shared-pane .sch-materials-list { max-height: 286px; }
.sch-mat-row {
  padding: 10px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fff;
}
.sch-mat-row--warn { border-color: #fcd34d; background: #fffbeb; }
.sch-mat-row-head { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.sch-mat-warn { color: #b45309; }
.sch-mat-meta { font-size: 11px; color: var(--lz-muted); margin-top: 4px; }
.sch-mat-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.sch-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.sch-modal.hidden { display: none; }
.sch-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.45); }
.sch-modal-card { position: relative; z-index: 1; width: min(920px, 100%); max-height: 90vh; overflow: auto; }
.sch-dr-filters { flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.sch-dr-table-wrap { max-height: 360px; overflow: auto; }
.sch-node--abandon .sch-node-hit { stroke-dasharray: 4 4; stroke: #6b7280; }
.sch-canvas-host {
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  background: #ffffff;
  border-radius: 0 0 8px 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-top: 0;
}
.sch-svg { display: block; cursor: crosshair; background: #ffffff; }
.sch-grid-line { stroke: #e5e7eb; stroke-width: 1; }
.sch-grid-line--major { stroke: #cbd5e1; stroke-width: 1; }
.sch-node-hit { fill: transparent; stroke: transparent; cursor: move; }
.sch-node--selected .sch-node-hit,
.sch-node--selected .sch-pipe-bar {
  stroke: #2563eb !important;
  stroke-width: 2 !important;
}
.sch-node--selected .sch-node-hit { fill: rgba(37,99,235,0.06); }
.sch-node--missing-icon .sch-node-icon { opacity: 0.35; }
.sch-node--existing .sch-node-hit { stroke-dasharray: 4 3; stroke: #64748b; }
.sch-node-label { fill: #334155; font-size: 10px; font-family: system-ui, sans-serif; pointer-events: none; }
.sch-edge--debug { stroke: #94a3b8; stroke-width: 1; stroke-dasharray: 4 4; opacity: 0.7; }
.sch-pipe-edge { cursor: pointer; }
.sch-pipe-edge .sch-pipe-bar { opacity: 0.95; }
.sch-pipe-edge--selected .sch-pipe-bar { stroke: #f59e0b !important; filter: drop-shadow(0 0 2px rgba(245,158,11,0.5)); }
.sch-pipe-label { fill: #334155; font-size: 10px; font-family: system-ui, sans-serif; pointer-events: none; }
.sch-bf-joint { pointer-events: none; }
.sch-overlay--sleeve .sch-sleeve-bar { opacity: 0.9; }
.sch-overlay--selected { outline: none; }
.sch-overlay--selected .sch-overlay-hit { stroke: #f97316; stroke-width: 2; stroke-dasharray: 4 2; fill: rgba(249,115,22,0.08); }
.sch-overlay-hit { cursor: grab; fill: transparent; stroke: transparent; }
.sch-overlay-symbol { pointer-events: none; }
.sch-overlay-label { fill: #111827; font-size: 9px; font-family: system-ui, sans-serif; pointer-events: none; }
.sch-overlay-label--length { font-weight: 700; }
.sch-colour-section td { background: #f8fafc; font-size: 12px; padding-top: 12px; }
.sch-connect-point--std { fill: #f97316; stroke: #c2410c; stroke-width: 1; cursor: crosshair; opacity: 0.9; }
.sch-connect-point--branch { fill: #9333ea; stroke: #6b21a8; stroke-width: 1; cursor: crosshair; opacity: 0.9; }
.sch-connect-point:hover { fill: #fbbf24; stroke: #b45309; }
.sch-connect-label {
  fill: #64748b;
  font-size: 9px;
  font-family: system-ui, sans-serif;
  opacity: 0;
}
.sch-canvas-host--conn-labels .sch-connect-label--visible,
.sch-connect-label--visible { opacity: 1; fill: #475569; }
.sch-branch-line-label {
  font-size: 13px;
  font-weight: 700;
  fill: #2563eb;
  stroke: #fff;
  stroke-width: 3px;
  paint-order: stroke fill;
  pointer-events: none;
}
.sch-canvas-host--no-anchors .sch-connect-point,
.sch-canvas-host--no-anchors .sch-connect-label { display: none; }
.sch-canvas-host--no-labels .sch-node-label { display: none; }
.sch-canvas-host--screenshot .sch-node--selected .sch-node-hit,
.sch-canvas-host--screenshot .sch-node--selected .sch-pipe-bar {
  stroke: transparent !important;
  fill-opacity: 1;
}
.sch-set-anchor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  margin: 8px 0;
}
.sch-set-anchor-rename { margin: 0; min-width: 140px; }
.sch-prop { display: block; margin-bottom: 10px; font-size: 12px; color: var(--lz-muted); }
.sch-prop input, .sch-prop textarea, .sch-prop select { display: block; width: 100%; margin-top: 4px; }
.sch-source-radios { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 13px; }
.sch-source-block { margin-top: 8px; }
.sch-warnings { margin-top: 8px; padding: 10px; border-radius: 8px; background: #fffbeb; border: 1px solid #fcd34d; }
.sch-warn-title { margin: 0 0 6px; font-weight: 700; color: #92400e; }
.sch-hint { margin-top: 12px; }

.sch-set-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 420px);
  gap: 16px;
  align-items: start;
}
.sch-set-layout--tabs { display: flex; flex-direction: column; grid-template-columns: unset; }
.sch-set-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.sch-set-tab {
  border: 1px solid var(--lz-border, #e2e8f0);
  background: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sch-set-tab.is-active { background: var(--lz-red, #dc2626); color: #fff; border-color: var(--lz-red, #dc2626); }
.sch-set-pane.hidden { display: none; }
.sch-pipe-settings-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 16px;
  margin: 12px 0 8px;
  max-width: 720px;
}
.sch-pipe-preview { margin-top: 12px; max-width: 520px; }
.sch-pipe-preview-table td:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.sch-pipe-subtitle { margin: 16px 0 6px; font-size: 14px; font-weight: 600; }
.sch-pipe-default-len-wrap { max-width: 520px; margin: 8px 0 12px; }
.sch-pipe-default-len-table input { width: 100%; max-width: 120px; }
.sch-pipe-default-len-px { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.sch-pipe-fallback-len { margin-top: 12px; max-width: 220px; }
.sch-set-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-height: 0; width: 100%; }
.sch-set-split--symbols {
  grid-template-columns: minmax(520px, 1.15fr) minmax(560px, 1.35fr);
}
.sch-set-symbols-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.sch-set-list-card--symbols { width: 100%; }
.sch-sym-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-height: calc(100vh - 320px);
  overflow: auto;
  padding: 4px;
}
@media (min-width: 1500px) {
  .sch-sym-card-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .sch-sym-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .sch-sym-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.sch-sym-card {
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sch-sym-card:hover { border-color: #cbd5e1; }
.sch-sym-card.is-active {
  border-color: var(--lz-red, #dc2626);
  box-shadow: 0 0 0 1px var(--lz-red, #dc2626);
}
.sch-sym-card-preview {
  background: #1a1f2e;
  border-radius: 8px;
  min-height: 72px;
  max-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  overflow: hidden;
  pointer-events: none;
}
.sch-sym-card-preview .sch-sym-preview-svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}
.sch-sym-card-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sch-sym-card-meta {
  font-size: 11px;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
}
.sch-sym-card-type {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
}
.sch-sym-card-type-select {
  font-size: 11px;
  padding: 2px 4px;
  min-height: 26px;
  text-transform: none;
}
.sch-sym-card-tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  text-transform: none;
}
.sch-sym-card-size {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
  text-transform: none;
  letter-spacing: normal;
}
.sch-sym-card-size-ratio {
  display: flex;
  align-items: center;
  gap: 4px;
}
.sch-sym-card-size-pct {
  min-width: 42px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #334155;
}
.sch-sym-card-copy {
  padding: 2px 6px;
  font-size: 10px;
  line-height: 1.2;
  flex-shrink: 0;
  text-transform: none;
  letter-spacing: normal;
}
.sch-sym-card-thickness {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
}
.sch-sym-card-step {
  min-width: 28px;
  padding: 2px 6px;
  line-height: 1.2;
}
.sch-sym-card-thickness-val {
  min-width: 28px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.sch-surface-anchor-hint {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 12px;
  line-height: 1.45;
  color: #1e3a5f;
}
.sch-set-form--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sch-prop--full { grid-column: 1 / -1; }
.sch-svg-textarea { font-family: ui-monospace, monospace; font-size: 12px; min-height: 120px; resize: vertical; }
.sch-set-form-actions { display: flex; gap: 8px; margin-top: 12px; }
.sch-set-save-status { padding: 0 4px; }
.sch-sym-preview-host {
  background: #1a1f2e;
  border-radius: 8px;
  padding: 8px;
  margin: 12px 0;
  min-height: 120px;
}
.sch-sym-preview-host--large {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sch-sym-preview-host--large .sch-sym-preview-svg {
  max-width: 100%;
  max-height: 280px;
}
.sch-sym-size-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #2d3748;
}
.sch-sym-size-hint { margin-top: 6px; }
.sch-sym-boundary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.sch-set-section-label {
  font-weight: 600;
  color: #94a3b8;
  margin: 10px 0 6px;
}
.sch-set-preview-cell .sch-sym-preview-svg { max-width: 96px; max-height: 96px; }
.sch-set-name-cell { font-weight: 600; min-width: 140px; }
.sch-set-type-cell { min-width: 100px; font-size: 12px; color: #64748b; }
.sch-set-thickness-cell { width: 72px; text-align: center; font-variant-numeric: tabular-nums; }
.sch-set-symbols-table { width: 100%; min-width: 480px; }
.sch-set-table-wrap--symbols { max-height: calc(100vh - 220px); }
.sch-set-master-note { padding: 0 4px 12px; }
.sch-set-advanced { margin: 12px 0; font-size: 13px; }
.sch-set-advanced summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.sch-icon-draw-pad {
  display: block;
  width: 140px;
  height: 140px;
  max-width: 100%;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: #fff;
  cursor: crosshair;
}
.sch-draw-thickness {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.sch-draw-thickness input {
  width: 56px;
  padding: 4px 6px;
}
.sch-colour-input { width: 48px; height: 32px; padding: 0; border: 1px solid var(--lz-border); border-radius: 4px; }
.sch-node--surface-joint { pointer-events: all; }
.sch-node--surface-joint .sch-lib-symbol { opacity: 0.95; }
.sch-sym-preview-svg { display: block; }
.sch-sym-grid-line { stroke: #334155; stroke-width: 0.5; opacity: 0.35; }
.sch-sym-pipe-bar { fill: #38bdf8; opacity: 0.35; }
.sch-sym-pipe-center { stroke: #94a3b8; stroke-width: 1; stroke-dasharray: 4 3; }
.sch-sym-pipe-edge { stroke: #64748b; stroke-width: 1; opacity: 0.7; }
.sch-sym-anchor-target { fill: transparent; cursor: grab; }
.sch-sym-anchor-target:active { cursor: grabbing; }
.sch-joint-label {
  font-size: 9px;
  font-weight: 800;
  pointer-events: none;
}
.sch-joint-label--ef { fill: #ea580c; }
.sch-joint-label--bf { fill: #1d4ed8; }
.sch-elbow-rotate-hit {
  cursor: pointer;
  pointer-events: all;
}
.sch-elbow-rotate-hit:hover {
  stroke: var(--lz-red);
  fill: #eff6ff;
}
.sch-connect-point--male { fill: #3b82f6; }
.sch-connect-point--female { fill: #f97316; }
.sch-connect-point--flange { fill: #a855f7; }
.sch-sym-anchor-hit { fill: #f97316; stroke: #fff; stroke-width: 1.5px; cursor: pointer; pointer-events: none; }
.sch-sym-anchor--selected .sch-sym-anchor-hit { fill: #ea580c; }
.sch-sym-anchor-label { fill: #fdba74; font-size: 8px; font-weight: 700; pointer-events: none; }
.sch-set-form-row-checks {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  margin: 4px 0 8px;
}
.sch-set-checks {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  cursor: pointer;
}
.sch-set-checks input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.sch-icon-draw-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}
.sch-draw-tool.is-active { background: var(--lz-primary, #dc2626); color: #fff; border-color: transparent; }
.sch-icon-import-stage {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: #f8fafc;
}
.sch-import-preview-host {
  width: 200px;
  height: 200px;
  background: #1a1f2e;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}
.sch-import-stage-svg { display: block; width: 200px; height: 200px; cursor: move; }
.sch-import-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sch-import-controls input[type="range"] { width: 120px; }
.sch-set-thumb-cell svg { display: block; }
.sch-map-preview-empty { color: #92400e; padding: 24px; text-align: center; }
.sch-node-label--warn { fill: #dc2626; font-size: 10px; font-weight: 700; }
@media (max-width: 960px) {
  .sch-set-split { grid-template-columns: 1fr; }
}
.sch-set-detail-card { min-width: 0; }
.sch-set-form { margin-top: 12px; }
.sch-set-filter-check { font-size: 12px; display: flex; align-items: center; gap: 6px; }
.sch-set-row--warn { background: #fffbeb; }
.sch-color-swatch { display: inline-block; width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--lz-border); vertical-align: middle; }
.sch-set-anchor-canvas {
  background: #1a1f2e;
  border-radius: 8px;
  min-height: 160px;
  cursor: crosshair;
}
.sch-set-svg-bg { fill: #1a1f2e; }
.sch-anchor-hit { fill: #22c55e; stroke: #14532d; stroke-width: 1; cursor: move; }
.sch-anchor--selected .sch-anchor-hit { fill: #f59e0b; }
.sch-anchor-label { fill: #e2e8f0; font-size: 10px; font-family: system-ui, sans-serif; pointer-events: none; }
.sch-symbol-editor { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--lz-border); }
.sch-symbol-tools { flex-wrap: wrap; gap: 6px; align-items: center; }
.sch-prop-inline { font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.sch-set-table-wrap { max-height: calc(100vh - 240px); overflow: auto; }
.sch-set-thumb { width: 36px; height: 24px; object-fit: contain; background: #1a1f2e; border-radius: 4px; }
.sch-set-row { cursor: pointer; }
.sch-set-row--active { background: #fef2f2; }

/* Safety Inspection Settings */
.si-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.si-preset-card .si-preset-add-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}
.si-preset-add-form input { flex: 1 1 140px; min-width: 120px; }
.si-question-toolbar { flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.si-q-search { flex: 1 1 220px; min-width: 180px; max-width: 360px; }
.si-q-bulk-select { max-width: 140px; }
.si-bulk-act-picker { min-width: 160px; max-width: 220px; }
.si-bulk-act-picker .si-act-picker-btn { min-height: 34px; font-size: 13px; }
.si-q-hint { margin: 0 0 10px; font-size: 12px; }
.si-questions-card { border-left: 4px solid var(--safety-accent, #ea580c); }
.si-questions-save-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  border-radius: 8px;
}
.si-save-btn--pending { box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.35); animation: si-pulse 2s ease-in-out infinite; }
@keyframes si-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.25); }
  50% { box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.45); }
}
.si-unsaved-badge {
  font-size: 12px;
  font-weight: 600;
  color: #c2410c;
  background: #fff;
  border: 1px solid #fdba74;
  padding: 4px 10px;
  border-radius: 999px;
}
.si-q-count { margin-left: auto; }
.si-q-table-wrap { max-height: calc(100vh - 260px); overflow: auto; }
.si-q-table--compact { font-size: 13px; table-layout: fixed; width: 100%; border-collapse: separate; border-spacing: 0; }
.si-q-table--compact th,
.si-q-table--compact td { padding: 8px 10px; vertical-align: middle; }
.si-q-table--compact td.si-q-col-text { vertical-align: top; padding-top: 10px; }
.si-q-table--compact thead th {
  background: #ffedd5;
  color: #9a3412;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 1px 0 #fed7aa;
}
.si-q-table--compact tbody tr.si-q-row { background: #fff; border-bottom: 1px solid #e2e8f0; }
.si-q-table--compact tbody tr.si-q-row:nth-child(even) { background: #fff7ed; }
.si-q-table--compact tbody tr.si-q-row:nth-child(odd) { background: #ffffff; }
.si-q-table--compact tbody tr.si-q-row:hover { background: #ffedd5 !important; }
.si-q-row--hidden { display: none; }
.si-q-check-col { width: 34px; min-width: 34px; text-align: center; }
.si-q-col-no { width: 44px; min-width: 44px; text-align: center; }
.si-q-row-no {
  display: inline-block;
  min-width: 1.5em;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 12px;
  color: #64748b;
}
.si-q-col-text { width: auto; min-width: 280px; }
.si-q-col-cat { width: 88px; min-width: 88px; max-width: 88px; }
.si-q-col-sev { width: 72px; min-width: 72px; max-width: 72px; }
.si-q-col-act { width: 22%; min-width: 160px; }
.si-q-col-actions {
  width: 72px;
  min-width: 72px;
  text-align: center;
  white-space: nowrap;
}
.si-q-col-actions .si-q-edit,
.si-q-col-actions .si-q-delete {
  display: inline-flex;
  vertical-align: middle;
}
.si-q-edit {
  width: 28px;
  height: 28px;
  padding: 0;
  margin-right: 4px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.si-q-edit:hover { background: #e2e8f0; border-color: #94a3b8; }
.si-q-desc-preview { display: block; line-height: 1.35; font-size: 13px; }
.si-q-main-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.si-q-main-badge--minor { background: #dcfce7; color: #166534; }
.si-q-main-badge--major { background: #ffedd5; color: #c2410c; }
.si-q-edit-form { display: grid; gap: 10px; margin-top: 12px; }
.si-q-edit-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.si-route-auto-note {
  margin: 0 0 10px;
  padding: 8px 10px;
  background: #f1f5f9;
  border-radius: 6px;
  border-left: 3px solid #64748b;
}
.si-ohs-card--compact { padding: 10px 12px; }
.si-ohs-section-head { margin-bottom: 6px; align-items: center; }
.si-ohs-section-head .panel-title { margin: 0; font-size: 15px; }
.si-ohs-obs-list--compact { gap: 6px; }
.si-ohs-obs-row {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.si-ohs-obs-name { min-width: 0; padding: 6px 8px !important; font-size: 13px !important; }
.si-ohs-hazard-toggle { font-size: 12px; margin: 0; white-space: nowrap; }
.si-ohs-serial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  border-radius: 6px;
  flex-shrink: 0;
}
.si-ohs-serial--obs {
  width: 28px;
  height: 28px;
  background: #dbeafe;
  color: #1d4ed8;
}
.si-ohs-serial--group {
  width: 26px;
  height: 26px;
  background: var(--si-ohs-accent, #0369a1);
  color: #fff;
}
.si-ohs-serial--item {
  min-width: 32px;
  height: 22px;
  padding: 0 6px;
  background: rgba(255,255,255,0.85);
  color: var(--si-ohs-accent, #334155);
  border: 1px solid var(--si-ohs-border, #cbd5e1);
  font-size: 10px;
}
.si-ohs-hazard-groups--compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
}
.si-ohs-group-card--compact {
  background: var(--si-ohs-bg, #f8fafc);
  border: 1px solid var(--si-ohs-border, #e2e8f0);
  border-radius: 8px;
  padding: 8px;
  margin: 0;
}
.si-ohs-group-head {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}
.si-ohs-group-name {
  flex: 1;
  min-width: 0;
  padding: 5px 8px !important;
  font-size: 12px !important;
  font-weight: 600;
}
.si-ohs-item-list { display: grid; gap: 4px; }
.si-ohs-item-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 6px;
  align-items: center;
}
.si-ohs-item-name { padding: 4px 8px !important; font-size: 12px !important; }
.si-ohs-btn-compact {
  padding: 2px 8px !important;
  min-height: 26px;
  font-size: 12px !important;
}
.si-ohs-obs-del { padding: 2px 8px !important; min-height: 26px; }
.si-q-text {
  width: 100%;
  min-width: 0;
  min-height: 4.5em;
  max-height: 12em;
  resize: vertical;
  line-height: 1.45;
  font-size: 13px;
  padding: 8px 10px;
}
.si-q-cat, .si-q-sev {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-size: 11px;
  padding: 5px 4px;
  text-overflow: ellipsis;
}
.si-q-col-cat .si-q-cat,
.si-q-col-sev .si-q-sev { text-align: center; }
.si-q-sev--minor { background: #f0fdf4; border-color: #86efac; color: #166534; }
.si-q-sev--major { background: #fff7ed; border-color: #fdba74; color: #c2410c; }
.si-q-sev--high { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; font-weight: 600; }
.si-act-picker { position: relative; width: 100%; display: block; }
.si-act-picker-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  text-align: left;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.35;
  background: #fff;
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 6px;
  cursor: pointer;
  color: var(--lz-text, #1e293b);
  box-sizing: border-box;
}
.si-act-picker-btn:hover { border-color: var(--safety-accent, #ea580c); background: #fff7ed; }
.si-act-picker.is-open .si-act-picker-btn { border-color: var(--safety-accent, #ea580c); box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2); }
.si-act-picker-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
  max-height: 2.8em;
}
.si-act-picker-caret { flex-shrink: 0; color: #64748b; font-size: 11px; line-height: 1; margin-top: 1px; }
.si-act-picker-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  min-width: 100%;
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  padding: 4px 0;
}
.si-act-picker-option {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
  margin: 0;
}
.si-act-picker-option:hover { background: #fff7ed; }
.si-act-picker-option input {
  margin: 0;
  width: 14px;
  height: 14px;
  accent-color: var(--safety-accent, #ea580c);
}
.si-act-picker-option span { min-width: 0; word-break: break-word; }
.si-q-delete {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  font-weight: 700;
}
.si-q-delete:hover { background: #fee2e2; border-color: #f87171; color: #b91c1c; }
.si-q-empty { padding: 16px !important; text-align: center; }
.si-route-personnel { min-height: 140px; }
.si-route-selected { margin: 0 0 10px; }
.si-route-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.si-route-card { padding: 14px; border-left: 4px solid var(--safety-accent, #ea580c); }
.si-route-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 10px;
}
.si-route-label, .si-route-audience { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.si-route-triggers { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 12px; align-items: center; }
.si-route-trigger { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.si-route-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; margin-bottom: 10px; }
.si-route-active { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.si-coverage-enable-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.si-coverage-enable-label input { cursor: pointer; }
.si-coverage-access-banner { color: var(--lz-red, #c41e3a); }
.si-coverage-manager-info { border-left: 3px solid var(--lz-red, #c41e3a); }
.si-coverage-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #f1f5f9;
  color: #64748b;
}
.si-coverage-pill.is-on {
  background: #ffedd5;
  color: #c2410c;
}
.si-coverage-managers-table td { vertical-align: middle; }
.si-coverage-managers-table .si-coverage-send-guide { margin-right: 6px; }
.si-coverage-edit-modal { width: min(520px, 100%); }
.si-coverage-edit-modal .si-q-edit-form select.si-route-personnel { width: 100%; min-height: 140px; }
.si-coverage-edit-check-row {
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
}
.si-coverage-edit-check-row input { margin: 0; }
.si-coverage-managers-label { display: block; margin: 12px 0; font-size: 13px; }
.si-coverage-table td { vertical-align: top; }
.si-assign-toolbar { flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.si-assign-user-label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; min-width: 280px; }
.si-assign-check-col { width: 40px; }
.si-coverage-team-table td { vertical-align: middle; }
.si-coverage-person-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.si-coverage-person-tab.is-active { background: var(--lz-red, #c41e3a); color: #fff; border-color: var(--lz-red, #c41e3a); }
.si-coverage-team-picker { flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.si-coverage-person-select { min-width: 280px; max-width: 420px; }
.si-coverage-scope-select { min-width: 140px; font-size: 13px; }
.si-coverage-team-add { margin-bottom: 12px; }
.si-inspector-chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.si-inspector-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(196, 30, 58, 0.1);
  border: 1px solid rgba(196, 30, 58, 0.25);
  font-size: 12px;
}
.si-coverage-inspectors-cell { min-width: 160px; }
.si-coverage-actions-cell { white-space: nowrap; }
.si-coverage-page-access-note { margin: 8px 0 12px; }
.perm-page-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.perm-page-access-row { margin: 0; }
.perm-portal-access { display: flex; flex-direction: column; gap: 18px; }
.perm-portal-group { display: flex; flex-direction: column; gap: 10px; }
.perm-portal-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lz-muted);
}
.perm-portal-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px 14px;
}
.perm-portal-access-row { margin: 0; padding: 10px 12px; border-radius: var(--lz-radius-sm); border: 1px solid var(--lz-border); background: #fafbfc; }
.perm-portal-summary { display: flex; flex-wrap: wrap; gap: 4px; }
.perm-portal-summary-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}
.perm-portal-summary-cell { max-width: 280px; }
.perm-advanced-section {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px dashed var(--lz-border);
  border-radius: var(--lz-radius-sm);
  background: #fafbfc;
}
.perm-advanced-section summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  user-select: none;
}
.perm-advanced-section[open] summary { margin-bottom: 12px; }
.si-assign-table td { vertical-align: middle; }

.lz-safety-theme .sch-set-tab.is-active {
  background: var(--safety-accent, #ea580c);
  border-color: var(--safety-accent, #ea580c);
}
.lz-safety-theme .section-card { border-color: #fed7aa; }
.lz-safety-theme .section-card .panel-title { color: #9a3412; }
.lz-safety-theme .main-header.lz-app-header { border-bottom: 3px solid var(--safety-accent, #ea580c); }
.lz-safety-theme .si-preset-card {
  border-left: 3px solid #fdba74;
  background: linear-gradient(180deg, #fff 0%, #fffbf7 100%);
}
.lz-safety-theme .si-preset-card h3 { color: #c2410c; }

[data-lz-module="safety"] .main-header.lz-app-header { border-bottom: 3px solid var(--safety-accent, #ea580c); }
[data-lz-module="safety"] .section-card { border-left: 3px solid transparent; }
[data-lz-module="safety"] .section-card:hover { border-left-color: #fdba74; }
[data-lz-module="safety"] .sf-kpi.is-active,
[data-lz-module="safety"] button.sf-kpi.is-active {
  border-color: var(--safety-accent, #ea580c);
  background: #fff7ed;
}
[data-lz-module="safety"] .sf-item-card.sf-item--major { border-left-color: #ea580c; }
[data-lz-module="safety"] .sf-wizard-tab.is-active {
  background: var(--safety-accent, #ea580c);
  border-color: var(--safety-accent, #ea580c);
}
@media (max-width: 960px) {
  .si-preset-grid { grid-template-columns: 1fr; }
}
.sch-set-preview {
  padding: 16px;
  background: #1a1f2e;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 12px;
}
.sch-set-preview img { max-width: 120px; max-height: 80px; }
.sch-set-form .sch-set-checks,
.sch-set-form-row-checks .sch-set-checks { flex-direction: row; margin: 0; }

/* Digital alignment canvas */
.aln-page-body { display: flex; flex-direction: column; min-height: 0; }
.aln-layout { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.aln-workspace {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(220px, 280px);
  gap: 12px;
  min-height: calc(100vh - 240px);
}
.aln-panel { min-height: 0; overflow: auto; }
.aln-panel--canvas { padding: 0; overflow: hidden; }
.aln-canvas-host {
  min-height: 520px;
  height: 100%;
  background: #0f172a;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.aln-canvas-wrap { width: 100%; height: 100%; min-height: 520px; overflow: hidden; position: relative; cursor: grab; }
.aln-stage { transform-origin: 0 0; position: relative; min-width: 100%; min-height: 100%; }
.aln-drawing-img { max-width: none; display: block; user-select: none; }
.aln-overlay-svg { position: absolute; inset: 0; pointer-events: none; }
.aln-trace-line, .aln-trace-poly { stroke: #22d3ee; stroke-width: 3; }
.aln-trace-draft { stroke-dasharray: 6 4; opacity: 0.8; }
.aln-trace-node { fill: #f97316; stroke: #fff; stroke-width: 1; }
.aln-canvas-placeholder {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 14px;
  padding: 24px;
}
.aln-tools-row { margin-top: 8px; }
.aln-metrics-list { margin: 0; padding-left: 18px; font-size: 13px; }
.aln-ai-note { margin-top: 12px; font-size: 11px; color: var(--lz-muted); }
.aln-meta-form { margin: 12px 0; }
.data-table tr.is-selected { background: #fef2f2; }

@media (max-width: 1100px) {
  .sch-draw-area, .aln-workspace, .sch-set-layout {
    grid-template-columns: 1fr;
  }
  .sch-canvas-host, .aln-canvas-host { min-height: 360px; }
}
.ctr-tab-row { flex-wrap: wrap; }
.ctr-list-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.ctr-show-completed { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.ctr-group-cards { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.ctr-group-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  min-width: 140px; padding: 12px 16px; border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 10px; background: #fff; cursor: pointer; text-align: left;
}
.ctr-group-card:hover { border-color: var(--lz-red, #dc2626); }
.ctr-group-card.is-expanded { border-color: var(--lz-red, #dc2626); background: #fef2f2; }
.ctr-group-card strong { font-size: 14px; color: var(--lz-red, #dc2626); }
.ctr-group-hidden { color: #92400e; font-size: 11px; }
.ctr-group-list { margin-bottom: 16px; }
.ctr-compact-table td, .ctr-compact-table th { padding: 8px 10px; font-size: 13px; }
.ctr-row-completed { opacity: 0.65; background: #f8fafc; color: #64748b; }
.ctr-detail-drawer {
  margin-top: 16px; padding: 16px; border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 12px; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.ctr-drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ctr-assign-pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.ctr-assign-col h4 { margin: 0 0 8px; font-size: 13px; }
.ctr-multi-select { width: 100%; min-height: 160px; margin: 8px 0; font-size: 13px; }
.ctr-bulk-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; padding: 10px; background: #f8fafc; border-radius: 8px; }
.ctr-assign-table select.pg-search-input { min-width: 120px; padding: 4px 6px; font-size: 12px; }
.ctr-row-draft { background: #fffbeb; }
@media (max-width: 900px) {
  .ctr-assign-pickers { grid-template-columns: 1fr; }
}
.ctr-chart-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.ctr-stat-card {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--lz-border);
  background: #f8fafc;
}
.ctr-workspace-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
}
.ctr-back-btn { font-weight: 600; }
.ctr-workspace-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.ctr-workspace-title strong { font-size: 18px; color: var(--lz-red, #c62828); }
.ctr-kpi-row { margin-bottom: 16px; }
.ctr-money { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ctr-pipeline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px;
  padding: 12px; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0;
}
.ctr-pipeline-step {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: #e2e8f0; color: #475569; white-space: nowrap;
}
.ctr-pipeline-step.is-active {
  background: var(--lz-red, #c62828); color: #fff; font-weight: 600;
}
.ctr-pipeline-arrow { color: #94a3b8; font-size: 11px; }
.ctr-action-centre { margin-bottom: 16px; }
.ctr-action-list { list-style: none; margin: 0; padding: 0; }
.ctr-action-list li { margin: 6px 0; }
.ctr-action-list a { color: var(--lz-red, #c62828); text-decoration: none; font-weight: 500; }
.ctr-action-list a:hover { text-decoration: underline; }
.ctr-action-tab { font-size: 13px; }
.ctr-person-suggestions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--lz-border, #ddd);
  border-radius: 8px;
  padding: 6px;
  background: #fff;
}
.ctr-person-suggestion {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: none;
  background: #f8fafc;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.ctr-person-suggestion:hover { background: #fee2e2; }
.ctr-audit-list { display: flex; flex-direction: column; gap: 8px; }
.ctr-audit-row {
  display: grid;
  grid-template-columns: 120px 140px 100px 1fr;
  gap: 10px;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 13px;
}
.ctr-actions-cell { white-space: nowrap; }
.ctr-stat-cell { font-size: 12px; }
.lz-backend-notice {
  padding: 8px 10px;
  border-radius: 6px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 12px;
}

/* Store */
.store-page-body { display: flex; flex-direction: column; min-height: 0; }
.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 16px;
  align-items: start;
}
.store-main-panel { min-width: 0; }
.store-history-panel { min-width: 0; max-height: calc(100vh - 160px); overflow: auto; }
.store-history-wrap { max-height: 420px; overflow: auto; }
.store-action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.store-item-row { cursor: pointer; }
.store-item-row.store-row--selected { background: #fef2f2; }
.sch-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 960px) {
  .store-layout { grid-template-columns: 1fr; }
}

/* Business foundation modules */
.biz-page-body { display: flex; flex-direction: column; min-height: 0; }
.biz-tab-row { flex-wrap: wrap; margin: 12px 0; }
.biz-toolbar { margin: 10px 0; }
.crm-list-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 10px;
}
.crm-page-size-label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.crm-page-nav { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.crm-page-label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.crm-page-input {
  width: 52px;
  padding: 4px 6px;
  border: 1px solid var(--lz-border);
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
}
.biz-kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.biz-kpi { background: #f8fafc; border: 1px solid var(--lz-border); border-radius: 8px; padding: 10px 12px; }
.biz-kpi strong { display: block; font-size: 20px; color: var(--lz-red); margin-top: 4px; }

.dorm-units-table .dorm-unit-row { cursor: pointer; }
.dorm-units-table .dorm-unit-row:hover { background: #f8fafc; }
.dorm-occ-cell { width: 72px; text-align: center; vertical-align: middle; }

.dorm-donut { display: inline-flex; vertical-align: middle; line-height: 0; }
.dorm-donut svg { display: block; }
.dorm-donut-track { stroke: #e5e7eb; }
.dorm-donut-label { font-size: 8px; font-weight: 700; fill: #334155; font-family: system-ui, sans-serif; }
.dorm-donut--md svg { width: 48px; height: 48px; }
.dorm-donut--md .dorm-donut-label { font-size: 7px; }
.dorm-donut--lg svg { width: 72px; height: 72px; }
.dorm-donut--lg .dorm-donut-label { font-size: 9px; }

.dorm-dash-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  margin: 0 0 16px; padding: 12px 14px; background: #f8fafc;
  border: 1px solid var(--lz-border); border-radius: 10px;
}
.dorm-dash-donut-wrap { display: flex; align-items: center; gap: 12px; }
.dorm-dash-donut-title { display: block; font-size: 1.25rem; color: #0f172a; }
.dorm-dash-legend { display: flex; flex-wrap: wrap; gap: 10px 14px; font-size: 12px; color: #64748b; }
.dorm-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.dorm-legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dorm-legend-dot--green { background: #16a34a; }
.dorm-legend-dot--orange { background: #ea580c; }
.dorm-legend-dot--red { background: #dc2626; }
.dorm-dash-kpis { margin: 0; flex: 1; min-width: 180px; }

.dorm-detail-panel {
  width: min(920px, 96vw);
  max-width: 920px;
  margin-left: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  position: relative;
  z-index: 1;
}
.dorm-detail-body {
  overflow: auto;
  padding: 12px 16px 8px;
  flex: 1;
}
.dorm-detail-form { margin-bottom: 12px; }
.dorm-cost-hint { margin-top: 8px; }

.dorm-occ-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  padding: 10px 12px; background: #f8fafc; border-radius: 8px; border: 1px solid #e5e7eb;
}
.dorm-occ-head-text { display: flex; flex-direction: column; gap: 2px; }
.dorm-section-title { margin: 14px 0 8px; font-size: 13px; }

.dorm-assign-panel {
  margin-bottom: 14px; padding: 10px 12px; border: 1px solid #e5e7eb;
  border-radius: 8px; background: #fff;
}
.dorm-assign-toolbar {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: end;
  margin-bottom: 8px;
}
@media (max-width: 640px) {
  .dorm-assign-toolbar { grid-template-columns: 1fr; }
}
.dorm-assign-search {
  width: 100%; padding: 7px 10px; border: 1px solid #cbd5e1; border-radius: 6px;
  font-size: 13px; background: #fff;
}
.dorm-assign-date-lbl {
  display: flex; flex-direction: column; gap: 2px; margin: 0; font-size: 11px;
  color: #64748b; white-space: nowrap;
}
.dorm-assign-date {
  padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 13px;
  min-width: 130px;
}
.dorm-assign-list {
  display: flex; flex-direction: column; gap: 4px;
  max-height: 180px; overflow-y: auto; border: 1px solid #e5e7eb;
  border-radius: 6px; padding: 4px; background: #fafafa;
}
.dorm-assign-pick {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  width: 100%; text-align: left; padding: 6px 10px; border: 1px solid transparent;
  border-radius: 5px; background: #fff; cursor: pointer; font-size: 13px;
}
.dorm-assign-pick:hover { border-color: #cbd5e1; background: #f8fafc; }
.dorm-assign-pick.is-selected { border-color: var(--lz-red); background: #fef2f2; }
.dorm-assign-pick.is-hidden { display: none; }
.dorm-assign-pick-name { font-weight: 600; color: #0f172a; }
.dorm-assign-pick-emp { font-size: 12px; color: #64748b; font-variant-numeric: tabular-nums; }
.dorm-assign-empty { margin: 8px; text-align: center; }
.dorm-occ-table .dorm-occ-actions { white-space: nowrap; width: 1%; }

.people-teams-layout { display: grid; grid-template-columns: 1fr min(22rem, 32vw); gap: 1rem; align-items: start; }
.people-teams-sidebar { max-height: calc(100vh - 8rem); overflow: auto; }
.people-teams-summary {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem; background: #f8fafc; border-radius: 0.5rem;
}
.people-unassigned-list li { padding: 0.35rem 0; border-bottom: 1px solid var(--lz-border, #e5e7eb); }
.people-unassigned-list--cols .people-unassigned-row,
.people-unassigned-list--cols .people-unassigned-head {
  display: grid; grid-template-columns: 2.5rem 5.5rem 1fr; gap: 0.5rem; align-items: center;
}
.people-unassigned-head { font-weight: 600; border-bottom: 2px solid var(--lz-border, #e5e7eb); }
.people-quick-assign { min-width: 2rem; padding: 2px 6px; }
.people-assign-spacer { display: inline-block; width: 2rem; }
.sch-unassigned-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 8px;
}
.sch-unassigned-head h3, .sch-unassigned-head h4 { margin: 0; font-size: 14px; }
.sch-dept-toggle { gap: 4px; }
.sch-dept-toggle .pg-filter-btn { padding: 4px 10px; font-size: 12px; min-width: 42px; }
.sch-unassigned-search {
  width: 100%;
  margin-bottom: 8px;
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
  height: 28px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.25;
  box-sizing: border-box;
}
.sch-unassigned-list { max-height: min(82vh, 960px); min-height: 480px; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.sch-unassigned-list .people-unassigned-row {
  padding: 2px 0;
  font-size: 11px;
  line-height: 1.25;
}
.sch-unassigned-list .people-unassigned-name {
  font-size: 11px;
  font-weight: 600;
}
.sch-unassigned-list .people-unassigned-emp {
  font-size: 10px;
  color: var(--lz-muted);
}
.sch-unassigned-list .people-unassigned-head {
  font-size: 10px;
  padding: 2px 0 4px;
}
.sch-unassigned-list.people-unassigned-list--cols .people-unassigned-row,
.sch-unassigned-list.people-unassigned-list--cols .people-unassigned-head {
  grid-template-columns: 1.75rem 4.25rem 1fr;
  gap: 0.35rem;
}
.sch-sidebar-card--workers {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}
.sch-board-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.sch-board-table th,
.sch-board-table td {
  padding: 3px 6px;
  font-size: 12px;
  vertical-align: middle;
}
.sch-board-table th { font-size: 11px; }
.sch-board-table .btn-sm { padding: 2px 6px; font-size: 11px; }
.sch-unassigned-empty { padding: 8px 4px; }
.sch-teams-view { margin-top: 8px; }
.people-teams-summary--compact {
  margin-bottom: 6px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.35;
}
.people-teams-actions { margin: 8px 0 12px; }
.people-teams-actions--compact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
.people-teams-actions--compact .btn-sm { padding: 2px 8px; font-size: 11px; }
.people-teams-actions .btn-danger { font-size: 13px; }
.teams-table.sch-board-table tbody tr.teams-table-row.is-selected {
  background: #eff6ff;
  box-shadow: inset 3px 0 0 var(--lz-red);
}
.teams-table .sch-teams-sup-cell {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.teams-table .sch-teams-count {
  text-align: center;
  width: 2.5rem;
  font-variant-numeric: tabular-nums;
}
.teams-table .sch-teams-action-cell {
  width: 1%;
  white-space: nowrap;
}
.teams-table-row { cursor: pointer; }
.teams-table-row:hover { background: #f8fafc; }
.team-detail-panel { max-width: 720px; width: min(720px, 92vw); margin-left: auto; }
.team-detail-body { padding: 16px 20px 20px; max-height: calc(100vh - 120px); overflow-y: auto; }
.team-detail-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-bottom: 8px;
}
.team-detail-form .lz-field--wide { grid-column: 1 / -1; }
.team-detail-form .lz-field--full { grid-column: 1 / -1; }
.team-detail-meta {
  margin: 0;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
}
.team-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}
.team-detail-footnote { margin-top: 12px; }
.team-detail-add-member {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}
.team-detail-add-member .lz-field--grow { flex: 1; min-width: 0; }
.team-member-filter { margin-bottom: 6px; }
.team-member-select {
  min-height: 280px;
  max-height: 360px;
}
.team-detail-section-title {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lz-muted);
}
.team-detail-members { margin-top: 4px; }
.team-member-select option { padding: 4px 2px; }
.lz-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.lz-field-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lz-muted);
}
.lz-field-input,
.lz-field-select,
.lz-field-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  color: var(--lz-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lz-field-select {
  min-height: 42px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.lz-field-input::placeholder { color: #94a3b8; }
.lz-field-input:hover,
.lz-field-select:hover,
.lz-field-textarea:hover {
  border-color: #94a3b8;
}
.lz-field-input:focus,
.lz-field-select:focus,
.lz-field-textarea:focus {
  outline: none;
  border-color: var(--lz-red);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12);
}
.lz-field-input:read-only,
.lz-field-input[readonly] {
  background: #f8fafc;
  color: #64748b;
  cursor: default;
}
.lz-field-input:disabled,
.lz-field-select:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}
.team-detail-body .data-table { margin-top: 4px; }
.team-type-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.team-type-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.team-type-option input { margin: 0; }
.team-type-option.is-active {
  border-color: var(--lz-primary, #2563eb);
  background: #eff6ff;
}
.team-type-option.is-active input[type="radio"] {
  accent-color: var(--lz-primary, #2563eb);
}
.sch-subcon-job-note {
  margin: 0 0 10px;
  padding: 8px 10px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 8px;
  color: #9a3412;
}
#btnSchSubconPersonnel.is-active {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}
.team-subcon-panel {
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fafc;
}
.team-subcon-intro { margin: 0 0 12px; }
.team-subcon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
.team-subcon-total-value {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--lz-border);
}
.team-subcon-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7c2d12;
  background: #ffedd5;
  border: 1px solid #fdba74;
  vertical-align: middle;
}
.team-subcon-note { margin-top: 12px; }
.sf-manpower-subcon-total { margin-top: 8px; }
.dr-subcon-times {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 12px;
}
.dr-subcon-times label { display: inline-flex; align-items: center; gap: 8px; }
.team-log-table td { vertical-align: top; }
.assets-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; align-items: center; }
.assets-toolbar .pg-search-input { flex: 1; min-width: 200px; max-width: 420px; }
.assets-table td { vertical-align: middle; }
.team-sup-col { width: 2.5rem; text-align: center; }
.team-sup-cell { text-align: center; vertical-align: middle; }
.team-sup-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  cursor: pointer;
}
.team-sup-tick input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.team-sup-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--lz-border);
  border-radius: 4px;
  font-size: 12px;
  color: transparent;
  background: #fff;
}
.team-sup-tick input:checked + .team-sup-mark,
.team-sup-mark--on {
  color: #fff;
  background: var(--lz-red);
  border-color: var(--lz-red);
  font-weight: 700;
}
.team-sup-mark--off { color: var(--lz-muted); font-size: 11px; border: 0; background: transparent; }

/* Quotation — Xero-style editor */
.qt-editor { display: flex; flex-direction: column; gap: 12px; }
.qt-editor-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 10px 14px;
  margin: -4px -4px 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--lz-border);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
.qt-org-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 20px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #93c5fd;
  background: #fff;
}
.qt-org-header__main { display: flex; gap: 12px; align-items: flex-start; flex: 1; min-width: 220px; }
.qt-org-header__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--lz-red);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.qt-org-header__name { display: block; font-size: 15px; color: var(--lz-text); margin-bottom: 4px; }
.qt-org-header__meta { margin: 0; font-size: 12px; line-height: 1.4; }
.qt-org-header__pick { min-width: 240px; max-width: 360px; }
.qt-org-header__pick .qt-field { margin-bottom: 0; }
.qt-field--inline { display: block; }
.qt-editor-org-badge {
  max-width: min(420px, 45vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 2px 10px;
}
.qt-field--org .qt-select { margin-top: 4px; }
.qt-org-tax-note { display: block; margin-top: 6px; }
.qt-editor-sticky-title { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 160px; flex-wrap: wrap; }
.qt-back-btn { border-radius: 999px; }
.qt-save-cluster { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.qt-btn-save {
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  cursor: pointer;
}
.qt-btn-save:hover { filter: brightness(1.05); }
.qt-btn-draft {
  border: 2px solid #94a3b8;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  background: #fff;
  color: #475569;
  cursor: pointer;
}
.qt-workflow-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 4px 4px;
}
.qt-workflow-btn {
  border: 1px solid var(--lz-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  cursor: pointer;
}
.qt-workflow-btn:hover { border-color: var(--lz-red); color: var(--lz-red); background: #fef2f2; }
.qt-workflow-btn--primary {
  background: var(--lz-red);
  color: #fff;
  border-color: var(--lz-red);
  font-weight: 700;
}
.qt-workflow-btn--primary:hover { filter: brightness(1.05); color: #fff; background: var(--lz-red); }
.qt-input, .qt-select, .qt-textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.qt-input:focus, .qt-select:focus, .qt-textarea:focus {
  outline: none;
  border-color: #fca5a5;
  box-shadow: 0 0 0 3px rgba(252, 165, 165, 0.35);
}
.qt-textarea { resize: vertical; min-height: 88px; font-family: inherit; }
.qt-field { display: block; font-size: 12px; font-weight: 600; color: var(--lz-muted); margin-bottom: 10px; }
.qt-field--mt { margin-top: 12px; }
.qt-card--header { background: linear-gradient(180deg, #eff6ff 0%, #fff 100%); border-color: #bfdbfe; }
.qt-card--customer { background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%); border-color: #bbf7d0; }
.qt-card--lines { background: linear-gradient(180deg, #fffbeb 0%, #fff 100%); border-color: #fde68a; }
.qt-card--terms { background: linear-gradient(180deg, #faf5ff 0%, #fff 100%); border-color: #e9d5ff; }
.qt-card--notes { background: linear-gradient(180deg, #f8fafc 0%, #fff 100%); border-color: #e2e8f0; }
.qt-card--attach { background: linear-gradient(180deg, #fff1f2 0%, #fff 100%); border-color: #fecdd3; }
.qt-card--xero { background: linear-gradient(180deg, #f1f5f9 0%, #fff 100%); border-color: #cbd5e1; }
.qt-card--summary { background: linear-gradient(180deg, #fef2f2 0%, #fff 100%); border-color: #fecaca; }
.qt-customer-combo { position: relative; }
.qt-customer-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  background: #fff;
  border: 1px solid var(--lz-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  max-height: 240px;
  overflow-y: auto;
}
.qt-customer-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}
.qt-customer-item:hover { background: #fef2f2; }
.qt-customer-item--new { color: var(--lz-red); font-weight: 600; }
.qt-customer-empty { padding: 12px; font-size: 12px; color: var(--lz-muted); }
.qt-notes-log { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; max-height: 200px; overflow-y: auto; }
.qt-note-entry { padding: 10px 12px; background: #fff; border-radius: 10px; border: 1px solid #e2e8f0; }
.qt-note-body { margin: 0 0 4px; font-size: 13px; white-space: pre-wrap; }
.qt-attachments-list { display: flex; flex-direction: column; gap: 10px; }
.qt-attach-card {
  padding: 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}
.qt-attach-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.qt-attach-status { color: #d97706; font-size: 12px; font-weight: 600; }
.qt-attach-edit { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.qt-attach-edit .qt-input { margin-top: 0; min-width: 160px; }
.qt-upload-btn { cursor: pointer; border-radius: 999px; }
.qt-preset-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.qt-preset-row { padding: 12px; border: 1px solid var(--lz-border); border-radius: 10px; background: #fff; }
.qt-editor-head { margin-bottom: 4px; }
.qt-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qt-editor-tabs { margin: 0; }
.qt-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 16px;
  align-items: start;
}
.qt-editor-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.qt-card { padding: 14px 16px; }
.qt-card-title { margin: 0 0 12px; font-size: 14px; color: var(--lz-text); text-transform: uppercase; letter-spacing: 0.04em; }
.qt-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 14px;
}
.qt-form-grid label { font-size: 12px; color: var(--lz-muted); }
.qt-form-grid input, .qt-form-grid select { display: block; width: 100%; margin-top: 4px; }
.qt-span-2 { grid-column: span 2; }
.qt-block-label { display: block; font-size: 12px; color: var(--lz-muted); margin-bottom: 10px; }
.qt-block-label textarea { display: block; width: 100%; margin-top: 4px; }
.qt-summary-card { position: sticky; top: 12px; }
.qt-summary-dl { margin: 0; }
.qt-summary-dl div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.qt-summary-dl dt { color: var(--lz-muted); margin: 0; }
.qt-summary-dl dd { margin: 0; font-weight: 600; }
.qt-summary-total { font-size: 15px; color: var(--lz-red); border-top: 2px solid var(--lz-border); margin-top: 6px; padding-top: 8px; }
.qt-line-table-wrap { overflow-x: auto; }
.qt-line-table input.qt-input--table,
.qt-line-table select.qt-input--table {
  min-width: 64px;
  font-size: 12px;
  padding: 6px 8px;
  margin-top: 0;
  border-radius: 8px;
}
.qt-line-table .qt-in-desc { min-width: 140px; }
.qt-line-table .qt-desc-area { min-width: 220px; min-height: 52px; resize: vertical; font-family: inherit; }
.qt-col-desc { min-width: 220px; }
.qt-money-cell { white-space: nowrap; }
.qt-money-prefix { color: var(--lz-muted); font-size: 12px; margin-right: 2px; }
.qt-money-input { min-width: 88px; text-align: right; }
.qt-money-display { text-align: right; font-variant-numeric: tabular-nums; }
.qt-line-preset { max-width: 180px; }
.qt-tax-note { margin: 0 0 8px; }
.qt-budget-summary--compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px 16px;
  max-width: 720px;
}
.qt-budget-summary--compact div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  border-bottom: none;
}
.qt-budget-summary--compact dt { font-size: 11px; margin: 0; }
.qt-budget-summary--compact dd { margin: 0; font-size: 14px; font-weight: 700; }
.qt-card--budget-summary { max-width: 760px; }
.data-table input.qt-input--table,
.data-table select.qt-input--table {
  font-size: 12px;
  padding: 6px 8px;
  margin-top: 0;
  border-radius: 8px;
}
.qt-line-amt { font-weight: 600; white-space: nowrap; }
.qt-line-actions { white-space: nowrap; }
.qt-line-actions .btn { padding: 2px 6px; margin: 0 1px; }
.qt-line-tools { display: flex; gap: 6px; }
.qt-action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.qt-attach-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.qt-attach-row input { flex: 1; min-width: 120px; }
.qt-status-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; }
.qt-status--accepted, .qt-status--converted_to_contract { background: #dcfce7; color: #166534; }
.qt-status--sent { background: #dbeafe; color: #1d4ed8; }
.qt-status--draft, .qt-status--revised { background: #fef3c7; color: #92400e; }
.qt-status--rejected, .qt-status--void { background: #fee2e2; color: #991b1b; }
.qt-budget-wrap { display: flex; flex-direction: column; gap: 12px; }
.qt-budget-summary dd:last-child { color: var(--lz-red); font-size: 16px; }
.qt-print-note { margin-top: 12px; font-size: 11px; }
@media (max-width: 1100px) {
  .qt-editor-grid { grid-template-columns: 1fr; }
  .qt-summary-card { position: static; }
}
.lz-backend-notice {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 12px;
}
.lz-salary-restricted, .lz-salary-restricted-inline {
  color: #94a3b8;
  font-style: italic;
  font-size: 12px;
}
.nav-group--hr .nav-group-title,
.nav-group--hr .nav-group-title-text,
.nav-group--hr .nav-group-header { color: var(--hr-accent); }
.nav-group--commercial .nav-group-title,
.nav-group--commercial .nav-group-title-text,
.nav-group--commercial .nav-group-header { color: var(--commercial-accent); }
.nav-group--costing .nav-group-title,
.nav-group--costing .nav-group-title-text,
.nav-group--costing .nav-group-header { color: var(--costing-accent); }
.nav-group--claims .nav-group-title,
.nav-group--claims .nav-group-title-text,
.nav-group--claims .nav-group-header { color: var(--claims-accent); }
.nav-group--projects .nav-group-title,
.nav-group--projects .nav-group-title-text,
.nav-group--projects .nav-group-header { color: var(--projects-accent); }
.nav-group--accounts .nav-group-title,
.nav-group--accounts .nav-group-title-text,
.nav-group--accounts .nav-group-header { color: var(--accounts-accent); }
.nav-group--enterprise .nav-group-title,
.nav-group--enterprise .nav-group-title-text,
.nav-group--enterprise .nav-group-header { color: var(--enterprise-accent); }
.nav-group--core .nav-group-title,
.nav-group--core .nav-group-title-text,
.nav-group--core .nav-group-header { color: var(--core-accent); }

/* Collapsible sidebar groups */
.nav-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  margin-bottom: 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--lz-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-align: left;
}
.nav-group-header::before {
  content: '';
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--group-accent, #64748b);
  flex-shrink: 0;
}
.nav-group-header:hover { background: rgba(255, 255, 255, 0.55); color: var(--lz-text); }
.nav-group-header .nav-icon-wrap { width: 28px; height: 28px; }
.nav-group-chevron {
  width: 12px;
  flex-shrink: 0;
  font-size: 10px;
  color: #94a3b8;
}
.nav-group-title-text { flex: 1; min-width: 0; }
.nav-group--collapsed .nav-group-body { display: none; }
.nav-group--expanded .nav-group-body { display: block; }
.nav-group--flat .nav-group-body { display: block; }
.nav-group--flat.nav-group--collapsed .nav-group-body { display: block; }
.nav-link--active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--group-accent, var(--lz-red));
  box-shadow: inset 3px 0 0 var(--group-accent, var(--lz-red));
}
.nav-link--active svg { color: var(--group-accent, var(--lz-red)); }
.nav-group-flyout {
  position: fixed;
  z-index: 2800;
  min-width: 200px;
  max-width: 260px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--lz-border);
  border-radius: 10px;
  box-shadow: var(--lz-shadow);
}
.nav-group-flyout-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--lz-text);
  font-size: 13px;
  font-weight: 500;
}
.nav-group-flyout-link:hover { background: #f8fafc; color: var(--lz-red); }
.nav-group-flyout-link .nav-icon-wrap { width: 28px; height: 28px; }

.app-shell.sidebar-collapsed .nav-group-chevron,
.app-shell.sidebar-collapsed .nav-group-title-text,
.app-shell.sidebar-collapsed .nav-group-title { display: none; }
.app-shell.sidebar-collapsed .nav-group-header {
  justify-content: center;
  padding: 8px 6px;
}
.app-shell.sidebar-collapsed .nav-group--collapsible .nav-group-body { display: none !important; }
.app-shell.sidebar-collapsed .nav-group--flat .nav-group-body { display: block !important; }
.app-shell.sidebar-collapsed .nav-group--flat .sidebar-collapse-btn .nav-link-label { display: none; }

/* Header quick modules */
.lz-header-actions {
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.lz-quick-modules-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  max-width: min(560px, 52vw);
  height: 32px;
}
.lz-quick-modules-wrap.hidden { display: none; }
.lz-quick-scroll-btn {
  flex-shrink: 0;
  width: 22px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--lz-border);
  border-radius: 6px;
  background: #fff;
  color: var(--lz-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.lz-quick-scroll-btn:not(.is-disabled):not(:disabled):hover {
  color: var(--lz-red);
  border-color: #cbd5e1;
}
.lz-quick-scroll-btn.is-disabled,
.lz-quick-scroll-btn:disabled {
  opacity: 0.35;
  cursor: default;
  color: #94a3b8;
}
.lz-quick-scroll-btn.is-disabled:hover,
.lz-quick-scroll-btn:disabled:hover {
  color: #94a3b8;
  border-color: var(--lz-border);
}
.lz-quick-modules {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  padding: 0 4px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.lz-quick-modules::-webkit-scrollbar { display: none; }
.lz-quick-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 108px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}
.lz-quick-pill:hover { filter: brightness(1.06); color: #fff; }
.lz-quick-pill .nav-icon-wrap {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
  flex-shrink: 0;
}
.lz-quick-pill svg { width: 13px; height: 13px; stroke: #fff; }
.lz-quick-pill-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.lz-quick-pill--core { background: var(--core-accent, #64748b); }
.lz-quick-pill--ops { background: var(--ops-accent, #2563eb); }
.lz-quick-pill--safety { background: var(--safety-accent, #059669); }
.lz-quick-pill--hr { background: var(--hr-accent, #db2777); }
.lz-quick-pill--commercial { background: var(--commercial-accent, #0369a1); }
.lz-quick-pill--costing { background: var(--costing-accent, #b45309); }
.lz-quick-pill--claims { background: var(--claims-accent, #a21caf); }
.lz-quick-pill--eng { background: var(--eng-accent, #0d9488); }
.lz-quick-pill--workforce { background: var(--workforce-accent, #9333ea); }
.lz-quick-pill--accounts { background: var(--accounts-accent, #0369a1); }
.lz-quick-pill--admin { background: var(--admin-accent, #475569); }
.lz-quick-pill--enterprise { background: var(--enterprise-accent, #3730a3); }
.lz-module-error { border-color: #fecaca; background: #fef2f2; }
.lz-error-detail {
  font-size: 11px;
  overflow: auto;
  max-height: 180px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--lz-border);
  border-radius: 6px;
}
.lz-quick-modules-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.lz-quick-module-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.lz-quick-module-option:hover { background: #f8fafc; }
.lz-quick-modules-limit { margin-top: 10px; }
.lz-access-denied { text-align: left; }

.sch-palette-scroll-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  min-height: 32px;
}
.sch-palette-scroll-row .sch-palette-track {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}
.sch-palette-btn {
  flex-shrink: 0;
  min-width: 52px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--lz-border);
  border-radius: 6px;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  color: var(--lz-text);
  cursor: pointer;
  white-space: nowrap;
}
.sch-palette-btn:hover:not(.is-disabled):not(:disabled) {
  border-color: var(--lz-red);
  background: var(--lz-red-soft);
}
.sch-palette-btn.is-active {
  border-color: var(--lz-red);
  background: var(--lz-red-soft);
  color: var(--lz-red);
  box-shadow: inset 0 0 0 1px var(--lz-red);
}
.sch-palette-btn--size.is-active {
  border-color: #1e3a5f;
  background: #1e3a5f;
  color: #fff;
  box-shadow: inset 0 0 0 1px #0f172a;
}
.sch-palette-btn--fit.is-active {
  border-color: var(--lz-red, #dc2626);
  background: var(--lz-red, #dc2626);
  color: #fff;
  box-shadow: inset 0 0 0 1px #991b1b;
}
.sch-palette-filter-label--size {
  color: #1e3a5f;
}
.sch-palette-filter-label--type {
  color: var(--lz-red, #dc2626);
}
.sch-palette-filter-block--inline .sch-palette-filter-label--size {
  color: #1e3a5f;
  font-weight: 700;
}
.sch-palette-filter-block--inline .sch-palette-filter-label--type {
  color: var(--lz-red, #dc2626);
  font-weight: 700;
}
.sch-filter-chip--size {
  background: #e2e8f0;
  border-color: #1e3a5f;
  color: #1e3a5f;
}
.sch-filter-chip--type {
  background: var(--lz-red-soft, #fef2f2);
  border-color: var(--lz-red, #dc2626);
  color: var(--lz-red, #dc2626);
}
.sch-line-indicator-block {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.sch-line-chip {
  min-width: 52px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--lz-border);
  border-radius: 6px;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  color: var(--lz-text);
}
.sch-line-chip.is-active {
  border-color: #1e3a5f;
  background: #1e3a5f;
  color: #fff;
}
.sch-line-chip.hidden { display: none; }
.sch-line-add-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px dashed var(--lz-border);
  border-radius: 6px;
  background: #f8fafc;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  color: #1e3a5f;
}
.sch-line-add-btn:hover:not(:disabled) {
  border-color: #1e3a5f;
  background: #e2e8f0;
}
.sch-line-add-btn.hidden { display: none; }
.sch-mat-line-readonly {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}
.sch-icon-btn--disabled,
.sch-icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.sch-palette-btn.is-disabled,
.sch-palette-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.sch-mat-filter-helpers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-height: 0;
}
.sch-mat-filter-helpers:empty { display: none; }
.sch-filter-helper-hint { font-size: 11px; }
.sch-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--lz-red-soft, #fef2f2);
  border: 1px solid var(--lz-red, #dc2626);
  color: var(--lz-red, #dc2626);
  font-size: 11px;
  font-weight: 600;
}
.sch-filter-chip-clear {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
}
.sch-line-select { min-width: 108px; height: 28px; font-size: 12px; padding: 2px 6px; }
.sch-branch-line-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sch-panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.sch-panel-head-row .sch-panel-title { margin: 0; }
.sch-mat-table-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.sch-mat-table-wrap { max-height: calc(100vh - 280px); overflow: auto; }
.sch-mat-table { font-size: 11px; }
.sch-mat-table th,
.sch-mat-table td { padding: 4px 6px; vertical-align: middle; }
.sch-mat-table .sch-mat-line-select {
  min-width: 88px;
  height: 26px;
  font-size: 11px;
  padding: 2px 4px;
}
.sch-mat-table-row--dup { background: #fffbeb; }
.sch-mat-td-seq { width: 28px; color: var(--lz-muted); }
.sch-mat-td-actions { width: 96px; text-align: right; white-space: nowrap; }
.sch-mat-table-row--click { cursor: pointer; }
.sch-mat-table-row--click:hover { background: #f8fafc; }
.sch-mat-table-row--open { background: #f1f5f9; }
.sch-mat-detail-row td { padding: 0 6px 8px !important; background: #f8fafc; border-bottom: 1px solid var(--lz-border); }
.sch-mat-detail { font-size: 11px; padding: 6px 4px 2px; }
.sch-mat-detail-title { margin: 0 0 4px; font-size: 12px; }
.sch-mat-detail-warn { color: #b45309; }
.sch-mat-td-status { width: 72px; }
.sch-mat-td-orient { font-size: 10px; color: var(--lz-muted); white-space: nowrap; }
.sch-mat-table-row--split { background: #fffbeb; }
.sch-mat-up, .sch-mat-down { min-width: 24px; padding: 0 4px; }
.sch-mat-group-head { cursor: pointer; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sch-mat-merge { margin-left: auto; }
.sch-mat-flip { min-width: 28px; padding: 0 6px; }
.sch-map-bulk-toolbar { flex-wrap: wrap; gap: 8px; align-items: center; }
.sch-map-check-col { width: 28px; text-align: center; }
.sch-map-material-col { min-width: 180px; max-width: 260px; }
.sch-map-material-cell { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.sch-map-material-name {
  font-weight: 600;
  color: #0f172a;
  font-size: 13px;
}
.sch-map-material-code {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #64748b;
}
.sch-map-material-brand {
  font-size: 11px;
  color: #94a3b8;
}
.sch-map-editor-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.sch-mat-td-seq { width: 28px; color: var(--lz-muted); }
.sch-map-bulk-toolbar { flex-wrap: wrap; gap: 8px; align-items: center; }
.sch-map-check-col { width: 28px; text-align: center; }
.sch-map-material-col { min-width: 180px; max-width: 260px; }
.sch-map-material-cell { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.sch-map-material-name {
  font-weight: 600;
  color: #0f172a;
  font-size: 13px;
}
.sch-map-material-code {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #64748b;
}
.sch-map-material-brand {
  font-size: 11px;
  color: #94a3b8;
}
.sch-map-editor-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.sch-mat-flip { min-width: 28px; padding: 0 6px; }
.sch-palette-hint { margin: 4px 0 0; font-size: 11px; }
.sch-mat-filter-input {
  width: 100%;
  min-width: 0;
}
.sch-mat-filter-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: #fff;
}
.sch-mat-pick-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  table-layout: fixed;
}
.sch-mat-pick-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  border-bottom: 1px solid var(--lz-border);
  padding: 4px 8px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--lz-muted);
}
.sch-mat-pick-table tbody {
  display: block;
  height: calc(var(--sch-mat-pick-row-h, 26px) * var(--sch-mat-pick-visible-rows, 10));
  max-height: calc(var(--sch-mat-pick-row-h, 26px) * var(--sch-mat-pick-visible-rows, 10));
  overflow-y: auto;
}
.sch-mat-pick-table thead,
.sch-mat-pick-table tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}
.sch-mat-pick-table td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--lz-border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sch-mat-pick-table .sch-mat-filter-item {
  cursor: pointer;
}
.sch-mat-pick-table .sch-mat-filter-item:hover td { background: #fef2f2; }
.sch-mat-pick-table .sch-mat-filter-item:focus { outline: none; }
.sch-mat-pick-table .sch-mat-filter-item:focus td { background: #fef2f2; }
.sch-mat-filter-more { padding: 4px 8px; font-size: 10px; border-top: 1px solid var(--lz-border); background: #f8fafc; }
.sch-mat-filter-empty {
  padding: 12px;
  font-size: 12px;
  color: var(--lz-muted);
}
.sch-mat-filter-head {
  padding: 8px 12px 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lz-muted);
  border-bottom: 1px solid var(--lz-border);
  background: #f8fafc;
}
.sch-mat-row-main--click { cursor: pointer; }
.sch-mat-row-main--click:hover { background: #f8fafc; border-radius: 6px; }
.sch-palette-tabs { margin: 6px 0 8px; }
.sch-mat-group { margin-bottom: 14px; }
.sch-mat-group-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--lz-red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sch-mat-badge--fusion { background: #ede9fe; color: #5b21b6; margin-left: 4px; }
.sch-mat-pick-list { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow: auto; }
.sch-mat-pick-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.sch-mat-pick-row:hover { border-color: var(--lz-red); background: #fef2f2; }
.sch-set-palette-card { grid-column: 1 / -1; margin-top: 12px; }
.sch-set-palette-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sch-pal-table { font-size: 12px; }
.sch-pal-kw { max-width: 220px; word-break: break-word; }
@media (max-width: 900px) {
  .sch-set-palette-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .lz-quick-modules-wrap { max-width: min(320px, 42vw); }
  .lz-quick-pill-label { display: none; }
  .lz-quick-pill { padding: 4px 7px; }
}
@media (max-width: 640px) {
  .lz-quick-modules-wrap { max-width: min(220px, 38vw); }
  .lz-quick-scroll-btn { width: 20px; }
}

.sig-profile-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.sig-profile-slot {
  border: 1px solid var(--lz-border, #e5e7eb);
  border-radius: 8px;
  padding: 12px;
}
.pg-drawer-card--endorse {
  margin-top: 0;
}
.pg-drawer-card--endorse .pg-sor-quick-add {
  flex-wrap: wrap;
  gap: 8px;
}
.sig-file-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
.sig-profile-preview {
  min-height: 72px;
  margin: 8px 0;
  padding: 8px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
}
.sig-profile-img {
  display: block;
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}
.sig-profile-loading {
  color: #64748b;
  font-style: italic;
}
.sig-profile-auth-help {
  margin: 10px 0 4px;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}
.sig-profile-root { display: grid; gap: 20px; }
.sig-profile-section {
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}
.sig-profile-section-title {
  margin: 0 0 8px;
  font-size: 1rem;
}
.sig-delegate-form {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  max-width: 520px;
}
.sig-delegate-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.sig-delegate-opts .feed-meta { width: 100%; margin-bottom: 2px; }
.sig-profile-table-wrap { margin-top: 8px; }
.sig-profile-table { font-size: 0.85rem; }
.sig-profile-table th,
.sig-profile-table td { vertical-align: top; }
.sig-usage-table td:nth-child(6) { max-width: 180px; word-break: break-word; }
.sig-vault-delegate-form { max-width: 640px; }

/* Embed mode — contract claim iframes */
body.lz-embed .sidebar { display: none !important; }
body.lz-embed .app-shell { display: block; min-height: 100vh; }
body.lz-embed .dashboard-body { margin-left: 0 !important; width: 100%; }
body.lz-embed .main-header .hosted-badge { display: none; }
body.lz-embed .lz-float-sidebar-toggle { display: none !important; }
body.lz-embed .pg-tab-row .pg-tab-btn[data-pg-tab="email-queue"],
body.lz-embed .pg-tab-row .pg-tab-btn[data-pg-tab="ingestion-log"],
body.lz-embed .pg-tab-row .pg-tab-btn[data-pg-tab="system-settings"] { display: none; }

/* All Apps launcher */
.lz-apps-intro {
  margin-bottom: 12px;
  padding: 12px 14px;
}
.lz-apps-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 8px;
}
.lz-apps-search-wrap {
  position: relative;
  flex: 1 1 220px;
  max-width: 360px;
  min-width: 180px;
}
.lz-apps-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--lz-muted);
  pointer-events: none;
}
.lz-apps-search {
  width: 100%;
  height: 34px;
  padding: 0 12px 0 32px;
  border: 1px solid var(--lz-border);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: var(--lz-text);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.lz-apps-search:focus {
  outline: none;
  border-color: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}
.lz-apps-search::placeholder { color: #94a3b8; }
.lz-apps-status {
  margin: 0;
  font-size: 12px;
  color: var(--lz-muted);
  white-space: nowrap;
}
.lz-apps-empty {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--lz-muted);
}
.lz-apps-group { margin-bottom: 18px; }
.lz-apps-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  padding: 0 0 0 10px;
  border-left: 3px solid var(--group-accent, var(--lz-border));
}
.lz-apps-group-head h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--group-accent, var(--lz-text));
}
.lz-apps-group-head .feed-meta { font-size: 11px; }
.lz-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.lz-app-card {
  position: relative;
  border-radius: var(--lz-radius-sm);
  border: 1px solid var(--lz-border);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  background: var(--lz-card);
}
.lz-app-card-inner {
  display: flex;
  align-items: stretch;
  min-height: 64px;
}
.lz-app-card-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding: 8px 10px 8px 8px;
  text-decoration: none;
  color: inherit;
}
.lz-app-card-link:hover { filter: brightness(0.98); }
.lz-app-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.72);
}
.lz-app-card-icon svg { width: 15px; height: 15px; }
.lz-app-card-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lz-app-card-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--lz-text);
  white-space: normal;
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.lz-app-card-desc {
  font-size: 10px;
  color: var(--lz-muted);
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.lz-app-card-kind {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lz-muted);
}
.lz-app-pin {
  flex: 0 0 34px;
  width: 34px;
  align-self: stretch;
  border: none;
  border-right: 1px solid var(--lz-border);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.lz-app-pin.is-pinned { color: #eab308; background: #fffbeb; }
.lz-app-pin:hover { background: #fff; color: var(--lz-red); }
.lz-app-pin:focus-visible {
  outline: 2px solid var(--lz-red);
  outline-offset: -2px;
}
.lz-app-card--core { background: linear-gradient(135deg, #fff 0%, var(--core-bg) 100%); border-left: 3px solid var(--core-accent); }
.lz-app-card--ops { background: linear-gradient(135deg, #fff 0%, var(--ops-bg) 100%); border-left: 3px solid var(--ops-accent); }
.lz-app-card--projects { background: linear-gradient(135deg, #fff 0%, var(--projects-bg) 100%); border-left: 3px solid var(--projects-accent); }
.lz-app-card--safety { background: linear-gradient(135deg, #fff 0%, var(--safety-bg) 100%); border-left: 3px solid var(--safety-accent); }

.lz-portal-launcher-card { display: block; text-decoration: none; color: inherit; margin-bottom: 0; }

.lz-gallery-filters .lz-gallery-filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.lz-gallery-filter-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.lz-gallery-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.lz-gallery-toolbar-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.lz-gallery-action-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-subtle, #e8e8e8); }
.lz-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.lz-gallery-card { position: relative; border: 1px solid var(--border-subtle, #e5e7eb); border-radius: 10px; overflow: hidden; background: #fff; }
.lz-gallery-card.is-selected { outline: 2px solid var(--core-accent, #2563eb); }
.lz-gallery-card-check { position: absolute; top: 6px; left: 6px; z-index: 2; background: rgba(255,255,255,.9); border-radius: 4px; padding: 2px 4px; }
.lz-gallery-thumb-btn { display: block; width: 100%; border: 0; padding: 0; background: #f3f4f6; cursor: pointer; }
.lz-gallery-thumb { display: block; width: 100%; aspect-ratio: 1; background-size: cover; background-position: center; min-height: 120px; }
.lz-gallery-card-meta { padding: 8px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.lz-gallery-caption { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lz-app-card--hr { background: linear-gradient(135deg, #fff 0%, var(--hr-bg) 100%); border-left: 3px solid var(--hr-accent); }
.lz-app-card--commercial { background: linear-gradient(135deg, #fff 0%, var(--commercial-bg) 100%); border-left: 3px solid var(--commercial-accent); }
.lz-app-card--costing { background: linear-gradient(135deg, #fff 0%, var(--costing-bg) 100%); border-left: 3px solid var(--costing-accent); }
.lz-app-card--eng { background: linear-gradient(135deg, #fff 0%, var(--eng-bg) 100%); border-left: 3px solid var(--eng-accent); }
.lz-app-card--workforce { background: linear-gradient(135deg, #fff 0%, var(--workforce-bg) 100%); border-left: 3px solid var(--workforce-accent); }
.lz-app-card--accounts { background: linear-gradient(135deg, #fff 0%, var(--accounts-bg) 100%); border-left: 3px solid var(--accounts-accent); }
.lz-app-card--admin { background: linear-gradient(135deg, #fff 0%, var(--admin-bg) 100%); border-left: 3px solid var(--admin-accent); }
.lz-app-card--enterprise { background: linear-gradient(135deg, #fff 0%, var(--enterprise-bg) 100%); border-left: 3px solid var(--enterprise-accent); }
.lz-quick-pill--projects { background: var(--projects-accent, #0d9488); }

.sig-profile-error {
  color: #b91c1c;
}

/* In-app file viewer (gateway blob URLs — no Drive links) */
.lz-file-viewer {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lz-file-viewer.hidden { display: none; }
.lz-file-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.lz-file-viewer__panel {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.lz-file-viewer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}
.lz-file-viewer__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.lz-file-viewer__body {
  flex: 1;
  min-height: 320px;
  background: #f8fafc;
}
.lz-file-viewer__frame {
  width: 100%;
  height: min(72vh, 720px);
  border: 0;
  display: block;
  background: #fff;
}
.lz-file-viewer__img {
  display: block;
  max-width: 100%;
  max-height: min(72vh, 720px);
  margin: 0 auto;
  object-fit: contain;
}
.lz-file-viewer__foot {
  padding: 10px 16px;
  border-top: 1px solid #e2e8f0;
}
.pg-timeline-attachment .pg-attachment-links { margin: 8px 0 0; }

/* Quick document view (/view) — Chat links, no module shell */
.lz-view-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #0f172a;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
}
.lz-view-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  flex-shrink: 0;
}
.lz-view-brand .lz-brand-logo--compact { max-height: 28px; }
.lz-view-title-wrap { flex: 1; min-width: 0; }
.lz-view-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lz-view-sub { margin: 2px 0 0; color: #94a3b8; font-size: 11px; }
.lz-view-actions { flex-shrink: 0; }
.lz-view-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #334155;
}
.lz-view-frame {
  flex: 1;
  width: 100%;
  min-height: calc(100vh - 52px);
  min-height: calc(100dvh - 52px);
  border: none;
  background: #fff;
}
.lz-view-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 52px);
  margin: 0 auto;
  object-fit: contain;
}
.lz-view-status { padding: 8px 14px; text-align: center; color: #cbd5e1; flex-shrink: 0; margin: 0; }
.lz-view-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.lz-view-pdf-scroll {
  flex: 1;
  overflow: auto;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
}
.lz-view-pdf-page {
  margin: 0 auto 16px;
  max-width: 100%;
  text-align: center;
}
.lz-view-pdf-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.lz-view-pdf-page-label {
  margin: 6px 0 0;
  color: #94a3b8;
  font-size: 11px;
}
.lz-view-error {
  padding: 32px 20px;
  text-align: center;
  color: #e2e8f0;
  max-width: 420px;
  margin: 0 auto;
}
.lz-view-preview-hint {
  margin: 0;
  padding: 10px 14px;
  text-align: center;
  color: #cbd5e1;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  flex-shrink: 0;
}
.lz-view-page-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.lz-view-toolbar .btn-primary { font-weight: 600; }

.crm-customer-row { cursor: pointer; }
.crm-customer-row:hover { background: #f8fafc; }
.crm-customer-link { color: inherit; text-decoration: none; }
.crm-customer-link:hover { text-decoration: underline; }
.crm-detail-head { margin-bottom: 0.75rem; }
.crm-detail-title { margin: 0; }
.crm-detail-panel { margin-top: 0.75rem; }
.crm-notes-list { display: flex; flex-direction: column; gap: 0.75rem; }
.crm-note-card { margin: 0; padding: 0.75rem 1rem; }
.crm-note-card p { margin: 0.5rem 0 0; white-space: pre-wrap; }

/* PowerGas Accounts billing queue */
.pg-billing-toolbar { margin-bottom: 12px; gap: 10px; }
.pg-billing-table .pg-billing-input {
  width: 100%; min-width: 110px; max-width: 180px;
  padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 13px;
}
.pg-kpi-grid--compact { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.pg-billing-kpis { margin-bottom: 12px; }

/* Accounts Invoice dashboard */
.lz-inv-source {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.lz-inv-source--powergas { background: #dbeafe; color: #1e40af; }
.lz-inv-source--contract { background: #dcfce7; color: #166534; }
.lz-inv-source--quotation { background: #fef3c7; color: #92400e; }
.lz-invoice-xero-card { opacity: 0.95; }
.qt-invoice-link { margin: 0 0 12px; }

.lz-pdf-preview-scroll,
.lz-view-pdf-scroll {
  flex: 1;
  overflow: auto;
  padding: 12px;
  max-height: min(72vh, 900px);
  -webkit-overflow-scrolling: touch;
}
.lz-pdf-preview-page,
.lz-view-pdf-page {
  margin: 0 auto 16px;
  max-width: 100%;
  text-align: center;
}
.lz-pdf-preview-img,
.lz-view-page-img {
  display: block;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  height: auto;
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 4px;
  background: #fff;
}
.pg-pdf-sign-page-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Weather Alert (Vue settings) */
.wa-vue-root { display: flex; flex-direction: column; gap: 16px; }
.wa-settings-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 18px;
  margin-top: 12px;
}
.wa-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.wa-field--full { grid-column: 1 / -1; }
.wa-sources {
  grid-column: 1 / -1;
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 12px;
}
.wa-sources legend { font-size: 13px; font-weight: 700; padding: 0 4px; }
.wa-check { font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.wa-enable-toggle { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.wa-actions { grid-column: 1 / -1; align-items: center; }
.wa-cron-note { margin-top: 12px; }
.wa-events-table { margin-top: 8px; }

/* Environmental Alerts — channel list + drawer */
.env-alert-root { position: relative; }
.env-alert-channel-table { margin-top: 12px; }
.env-alert-row--clickable { cursor: pointer; }
.env-alert-row--clickable:hover { background: rgba(59, 130, 246, 0.06); }
.env-alert-row--disabled { opacity: 0.65; }
.env-alert-channel-icon { margin-right: 6px; }
.env-alert-drawer-panel {
  width: min(920px, 100%);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.env-alert-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 24px;
}
.env-alert-sites-section { margin-top: 16px; }
.env-alert-radius-note {
  margin: 10px 0 12px;
  padding: 10px 12px;
  background: rgba(59, 130, 246, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.12);
}
.env-alert-site-actions { white-space: nowrap; }
.env-alert-site-form { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--lz-border, #e5e7eb); }
.env-postal-hint { margin: 4px 0 8px; }
.env-site-coords {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.env-coord-readonly {
  background: #f8fafc !important;
  color: #475569;
  cursor: default;
}
.env-coord-note { margin: 0 0 8px; font-size: 12px; }
.env-alert-drawer-section {
  margin-top: 16px;
  padding: 14px;
}
.hosted-badge--ok { background: #dcfce7; color: #166534; }

/* Dragon launch dashboard */
.dash-main--dragon {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 980px;
}

.dragon-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 28px 28px 32px;
  background: linear-gradient(135deg, #1a0533 0%, #4c1d95 35%, #c62828 70%, #f97316 100%);
  color: #fff;
  box-shadow: 0 8px 32px rgba(76, 29, 149, 0.25), 0 2px 8px rgba(198, 40, 40, 0.15);
}
.dragon-hero__glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.35) 0%, transparent 70%);
  pointer-events: none;
}
.dragon-hero__inner { position: relative; z-index: 1; }
.dragon-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.dragon-hero__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dragon-hero__emoji { font-size: 1.1em; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.dragon-hero__lead {
  margin: 0 0 24px;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.92;
}

.dragon-countdown { margin-top: 4px; }
.dragon-countdown__label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 14px;
}
.dragon-countdown__digits {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px 4px;
}
.dragon-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
  padding: 12px 10px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.dragon-countdown__unit--days { background: linear-gradient(180deg, rgba(239, 68, 68, 0.55), rgba(220, 38, 38, 0.35)); }
.dragon-countdown__unit--hours { background: linear-gradient(180deg, rgba(249, 115, 22, 0.55), rgba(234, 88, 12, 0.35)); }
.dragon-countdown__unit--mins { background: linear-gradient(180deg, rgba(34, 197, 94, 0.5), rgba(22, 163, 74, 0.35)); }
.dragon-countdown__unit--secs { background: linear-gradient(180deg, rgba(59, 130, 246, 0.55), rgba(37, 99, 235, 0.35)); }
.dragon-countdown__value {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.dragon-countdown__caption {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.dragon-countdown__sep {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  opacity: 0.7;
  padding: 0 2px;
  align-self: center;
  margin-bottom: 18px;
}
.dragon-countdown__meta {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
}

.dragon-progress-card h3 { margin: 0 0 4px; }
.dragon-progress-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.dragon-progress-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dragon-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 88px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
  border: 1px solid #e2e8f0;
}
.dragon-stat__value {
  font-size: 20px;
  font-weight: 800;
  color: var(--lz-red);
  line-height: 1.1;
}
.dragon-stat__label {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--lz-muted);
  text-align: center;
}

.dragon-milestone-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dragon-milestone {
  display: flex;
  gap: 14px;
  padding: 0 0 20px;
  position: relative;
}
.dragon-milestone:last-child { padding-bottom: 0; }
.dragon-milestone:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #c4b5fd, #e2e8f0);
}
.dragon-milestone__marker {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border-radius: 50%;
  background: #94a3b8;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #e2e8f0;
  z-index: 1;
}
.dragon-milestone--done .dragon-milestone__marker {
  background: #22c55e;
  box-shadow: 0 0 0 2px #bbf7d0;
}
.dragon-milestone--new .dragon-milestone__marker {
  background: #3b82f6;
  box-shadow: 0 0 0 2px #bfdbfe, 0 0 12px rgba(59, 130, 246, 0.5);
}
.dragon-milestone--improved .dragon-milestone__marker {
  background: #f97316;
  box-shadow: 0 0 0 2px #fed7aa, 0 0 12px rgba(249, 115, 22, 0.4);
}
.dragon-milestone--upcoming .dragon-milestone__marker {
  background: #c62828;
  box-shadow: 0 0 0 2px #fecaca, 0 0 14px rgba(198, 40, 40, 0.45);
  animation: dragon-pulse 2s ease-in-out infinite;
}
@keyframes dragon-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.dragon-milestone__body { flex: 1; min-width: 0; }
.dragon-milestone__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.dragon-milestone__date {
  font-size: 11px;
  font-weight: 700;
  color: var(--lz-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dragon-milestone__badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.dragon-milestone__badge--done { background: #dcfce7; color: #166534; }
.dragon-milestone__badge--new { background: #dbeafe; color: #1d4ed8; }
.dragon-milestone__badge--improved { background: #ffedd5; color: #c2410c; }
.dragon-milestone__badge--upcoming { background: var(--lz-red-soft); color: var(--lz-red); }
.dragon-milestone__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}
.dragon-milestone__desc {
  margin: 0 0 8px;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}
.dragon-milestone__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dragon-milestone__tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.dragon-milestone--new .dragon-milestone__body {
  padding: 12px 14px;
  margin: -4px 0 0 -4px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
}
.dragon-milestone--improved .dragon-milestone__body {
  padding: 12px 14px;
  margin: -4px 0 0 -4px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border: 1px solid #fed7aa;
}

.dragon-panels { margin-top: 0; }
.dragon-cta {
  text-align: center;
  background: linear-gradient(180deg, #fafbfc, #f8fafc);
  border-style: dashed;
}
.dragon-cta__text { margin: 0; font-size: 13px; color: var(--lz-muted); }
.dragon-cta__text a { font-weight: 700; }

@media (max-width: 640px) {
  .dragon-hero { padding: 20px 18px 24px; }
  .dragon-countdown__unit { min-width: 62px; padding: 10px 6px 8px; }
  .dragon-countdown__sep { margin-bottom: 14px; }
}

/* Main dashboard — home layout */
.dash-main--home { gap: 20px; }
.app-shell--no-sidebar { --sidebar-w: 0; }
.app-shell--no-sidebar .sidebar { display: none !important; }
.app-shell--no-sidebar .dashboard-body { width: 100%; max-width: 1360px; margin: 0 auto; }
.lz-dash-header {
  border-bottom: 1px solid var(--lz-border);
  box-shadow: none;
  padding: 10px 20px;
  display: block;
}
.lz-dash-header-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  column-gap: 16px;
}
.lz-dash-zone {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0;
}
.lz-dash-zone--brand {
  flex: 0 0 auto;
  padding-right: 4px;
}
.lz-dash-zone--nav-cluster {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
  border-left: 1px solid #e8edf2;
  padding-left: 16px;
}
.lz-dash-zone--core {
  flex: 0 0 auto;
  gap: 4px;
  padding: 0;
  border: 0;
}
.lz-dash-zone--portals {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid #e8edf2;
  padding-left: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.lz-dash-zone--portals::-webkit-scrollbar { display: none; }
.lz-dash-zone--portals.hidden { display: none; }
.lz-portal-header-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.lz-mobile-header-brand { display: none; min-width: 0; }
.lz-mobile-nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  flex-shrink: 0;
}
.lz-mobile-nav-menu-btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.lz-mobile-nav-menu-btn .nav-icon-wrap { width: 20px; height: 20px; }
.lz-mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
}
.lz-mobile-nav-backdrop.hidden { display: none; }
.lz-mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
}
.lz-mobile-nav-drawer:not(.hidden) { pointer-events: auto; }
.lz-mobile-nav-drawer.hidden { display: none; }
.lz-mobile-nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 92vw);
  background: #fff;
  box-shadow: -10px 0 30px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.lz-mobile-nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--lz-border);
  background: #fafbfc;
}
.lz-mobile-nav-drawer__head strong { font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: #64748b; }
.lz-mobile-nav-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 20px;
}
.lz-mobile-menu-section { margin-bottom: 18px; }
.lz-mobile-menu-section__title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}
.lz-mobile-menu-list { display: flex; flex-direction: column; gap: 6px; }
.lz-mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e8edf2;
  background: #fff;
  text-decoration: none;
  color: #0f172a;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.lz-mobile-menu-link:hover { background: #f8fafc; border-color: #cbd5e1; }
.lz-mobile-menu-link--active {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--lz-red, #c62828);
}
.lz-mobile-menu-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 14px;
  flex-shrink: 0;
}
.lz-mobile-menu-link__label { flex: 1; font-size: 14px; font-weight: 600; }
.lz-mobile-menu-link__meta {
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #94a3b8;
}
.lz-dash-zone--menu { display: none; flex: 0 0 auto; padding: 0; border: 0; }
.lz-dash-zone--profile {
  flex: 0 0 auto;
  justify-content: flex-end;
  border-left: 1px solid #e8edf2;
  padding-left: 14px;
}
.lz-dash-zone--profile .lz-header-actions {
  flex: 0 0 auto;
  margin-left: 0;
}
.lz-dash-header-logo {
  flex: 0 0 auto;
  width: auto;
}
.lz-dash-header-logo .sidebar-brand-panel,
.lz-dash-header-logo .sidebar-brand-row {
  width: auto;
}
.lz-dash-header-logo .lz-brand-logo { height: 34px; }
.lz-dash-header-logo .sidebar-brand-panel { padding: 0; border: 0; background: transparent; }
.lz-dash-header-logo .lz-brand-title-block {
  display: flex;
  margin-left: 10px;
  align-items: center;
  gap: 8px;
}
.lz-dash-header-logo .sidebar-brand-row--dash-header {
  flex-wrap: nowrap;
  gap: 0;
}
.lz-dash-header-logo .lz-brand-title--lzos-only {
  padding-top: 2px;
  padding-bottom: 2px;
}
.lz-dash-header-logo .lz-connection-status {
  display: none;
}
.lz-dash-core-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  color: #475569;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.lz-dash-core-btn:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}
.lz-dash-core-btn--active {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--lz-red, #c62828);
}
.lz-dash-core-btn__icon {
  font-size: 13px;
  line-height: 1;
  opacity: 0.85;
}
.lz-dash-core-btn__label {
  line-height: 1.2;
}
.lz-portal-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  text-decoration: none;
  color: #1e293b;
  white-space: nowrap;
  flex: 0 0 auto;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.lz-portal-header-btn:hover {
  border-color: #cbd5e1;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}
.lz-portal-header-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}
.lz-portal-header-btn__label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}
.lz-portal-header-btn__code {
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.lz-portal-header-btn.lz-portal-chip--safety { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.lz-portal-header-btn.lz-portal-chip--safety .lz-portal-header-btn__icon { background: #dcfce7; }
.lz-portal-header-btn.lz-portal-chip--ops { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.lz-portal-header-btn.lz-portal-chip--ops .lz-portal-header-btn__icon { background: #fef3c7; }
.lz-portal-header-btn.lz-portal-chip--core { border-color: #e2e8f0; background: #f8fafc; color: #475569; }
.lz-portal-header-btn.lz-portal-chip--core .lz-portal-header-btn__icon { background: #e2e8f0; }
.lz-portal-header-btn.lz-portal-chip--hr { border-color: #fbcfe8; background: #fdf2f8; color: #9d174d; }
.lz-portal-header-btn.lz-portal-chip--hr .lz-portal-header-btn__icon { background: #fce7f3; }
.lz-portal-header-btn.lz-portal-chip--accounts { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.lz-portal-header-btn.lz-portal-chip--accounts .lz-portal-header-btn__icon { background: #dbeafe; }
.lz-portal-header-btn.lz-portal-chip--commercial { border-color: #ddd6fe; background: #f5f3ff; color: #5b21b6; }
.lz-portal-header-btn.lz-portal-chip--commercial .lz-portal-header-btn__icon { background: #ede9fe; }
.lz-portal-header-btn.lz-portal-chip--enterprise { border-color: #cbd5e1; background: #f1f5f9; color: #334155; }
.lz-portal-header-btn.lz-portal-chip--enterprise .lz-portal-header-btn__icon { background: #e2e8f0; }
.lz-dash-header-meta.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.lz-portal-apps-strip {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 24px 16px;
  border-bottom: 1px solid var(--lz-border);
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}
.lz-portal-launcher-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.lz-portal-launcher-section-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}
.lz-portal-launcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.lz-portal-launcher-tile {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e8edf2;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.lz-portal-launcher-tile:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.lz-portal-launcher-tile__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 18px;
  line-height: 1;
}
.lz-portal-launcher-tile__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lz-portal-launcher-tile__code {
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #94a3b8;
}
.lz-portal-launcher-tile__name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lz-portal-launcher-tile__go {
  font-size: 16px;
  color: #cbd5e1;
}
.lz-portal-launcher-tile.lz-portal-chip--safety .lz-portal-launcher-tile__mark { background: #ecfdf5; border-color: #bbf7d0; }
.lz-portal-launcher-tile.lz-portal-chip--ops .lz-portal-launcher-tile__mark { background: #fffbeb; border-color: #fde68a; }
.lz-portal-launcher-tile.lz-portal-chip--core .lz-portal-launcher-tile__mark { background: #f8fafc; border-color: #e2e8f0; }
.lz-portal-launcher-tile.lz-portal-chip--hr .lz-portal-launcher-tile__mark { background: #fdf2f8; border-color: #fbcfe8; }
.lz-portal-launcher-tile.lz-portal-chip--accounts .lz-portal-launcher-tile__mark { background: #eff6ff; border-color: #bfdbfe; }
.lz-portal-launcher-tile.lz-portal-chip--commercial .lz-portal-launcher-tile__mark { background: #f5f3ff; border-color: #ddd6fe; }
.lz-portal-launcher-tile.lz-portal-chip--enterprise .lz-portal-launcher-tile__mark { background: #f1f5f9; border-color: #cbd5e1; }
.lz-portal-apps-strip.hidden { display: none; }
.lz-portal-apps-empty {
  margin: 0;
  font-size: 13px;
  color: var(--lz-muted);
}
.lz-portal-app-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.lz-portal-app-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lz-muted);
  white-space: nowrap;
}
.lz-portal-app-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lz-portal-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--lz-text);
  background: #f8fafc;
  border: 1px solid var(--lz-border);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.lz-portal-chip:hover {
  background: #fff;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}
.lz-portal-chip--safety { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.lz-portal-chip--ops { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.lz-portal-chip--core { border-color: #e2e8f0; background: #f8fafc; }
.lz-portal-chip--hr { border-color: #fbcfe8; background: #fdf2f8; color: #9d174d; }
.lz-portal-chip--accounts { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.lz-portal-chip--commercial { border-color: #ddd6fe; background: #f5f3ff; color: #5b21b6; }
.lz-portal-chip--enterprise { border-color: #e2e8f0; background: #f1f5f9; color: #334155; }
.dragon-hero--compact { padding: 22px 24px 20px; margin-bottom: 0; }
.dragon-hero__title--compact { font-size: clamp(1.35rem, 3vw, 1.85rem); margin-bottom: 12px; }
.dragon-countdown--compact .dragon-countdown__digits { gap: 6px; }
.dragon-countdown--compact .dragon-countdown__unit { min-width: 56px; padding: 8px 6px; }
.lz-dash-news-row { margin-top: 4px; }
.lz-dash-ann-list { list-style: none; margin: 0; padding: 0; }
.lz-dash-ann-item { margin: 0 0 10px; padding: 0; }
.lz-dash-ann-item a { display: block; text-decoration: none; color: inherit; }
.lz-dash-ann-item strong { display: block; font-size: 14px; }
.lz-dash-ann--urgent strong { color: var(--lz-danger, #c62828); }
.lz-dash-ann--important strong { color: var(--lz-warn, #e65100); }
.lz-dash-cal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lz-dash-cal-head h4 { margin: 0; font-size: 15px; }
.lz-dash-cal-list { list-style: none; margin: 0; padding: 0; }
.lz-dash-cal-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--lz-border, rgba(0,0,0,.06)); font-size: 13px; }
.lz-dash-cal-day { font-weight: 700; min-width: 28px; color: var(--lz-muted); }
.lz-dash-cal-upcoming { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--lz-border, rgba(0,0,0,.08)); }
.lz-dash-cal-list--compact .lz-dash-cal-item { padding: 4px 0; border: 0; }

/* Safety analytics dashboard */
.sf-dash-layout { display: flex; flex-direction: column; gap: 14px; }
.sf-dash-tab-nav { margin: 0 0 16px; }
.sf-dash-charts-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.sf-dash-chart-panel { padding: 14px 16px; }
.sf-dash-chart-panel .section-head-row { margin-bottom: 4px; }
.sf-dash-chart-panel h3 { margin: 0; font-size: 15px; }
.sf-dash-kpis h3 { margin: 0 0 8px; font-size: 15px; }
.sf-dash-wsh h3 { margin: 0; font-size: 15px; }
.sf-home-kpi--static { cursor: default; text-decoration: none; }
.sf-home-kpi--static:hover { transform: none; }
.sf-dash-chart-head { margin-bottom: 0; }
.sf-dash-chart-head h3 { margin: 0; }
.lz-chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 8px 0 8px;
  padding: 8px 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 10px;
}
.lz-chart-toolbar-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lz-chart-toolbar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lz-muted, #64748b);
}
.lz-chart-pill-row { gap: 6px; }
.lz-chart-pill { min-height: 28px; padding: 4px 10px; font-size: 12px; touch-action: manipulation; }
.lz-chart-body {
  padding: 8px 10px 6px;
  background: #fff;
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 10px;
}
.lz-chart-body--compact {
  max-height: 220px;
  overflow: auto;
}
.lz-chart-empty { margin: 8px 0; }
.lz-chart-insight {
  margin: 6px 0 0;
  padding: 6px 10px;
  font-size: 11px;
  background: #fff7ed;
  border-left: 3px solid #ea580c;
  border-radius: 0 8px 8px 0;
  color: #334155;
}
.lz-chart-toggles { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lz-chart-bars { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.lz-chart-bars--compact { gap: 5px; }
.lz-chart-bars--compact .lz-chart-bar-row {
  grid-template-columns: minmax(64px, 100px) 1fr minmax(32px, 42px);
  gap: 8px;
  font-size: 12px;
}
.lz-chart-bars--compact .lz-chart-bar-track { height: 14px; }
.lz-chart-bars--modern .lz-chart-bar-row {
  animation: lz-chart-bar-in 0.45s ease both;
  animation-delay: var(--lz-chart-delay, 0ms);
}
@keyframes lz-chart-bar-in {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}
.lz-chart-bar-row { display: grid; grid-template-columns: minmax(80px, 140px) 1fr minmax(40px, 52px); gap: 12px; align-items: center; font-size: 13px; }
.lz-chart-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--lz-text, #0f172a); font-weight: 600; }
.lz-chart-bar-track { height: 18px; background: #eef2f7; border-radius: 999px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06); }
.lz-chart-bar-fill { height: 100%; background: linear-gradient(90deg, #ea580c, #fb923c); border-radius: 999px; min-width: 4px; transition: width 0.35s ease; }
.lz-chart-bar-value { font-weight: 700; text-align: right; color: var(--lz-text, #0f172a); }
.lz-chart-svg-wrap { width: 100%; overflow-x: auto; padding: 2px 0; max-height: 170px; }
.lz-chart-svg { display: block; width: 100%; max-width: 420px; max-height: 170px; height: auto; margin: 0 auto; }
.lz-chart-grid-line { stroke: #e2e8f0; stroke-width: 1; }
.lz-chart-line { stroke-linecap: round; stroke-linejoin: round; }
.lz-chart-area { opacity: 0.14; }
.lz-chart-axis-label { font-size: 10px; fill: #64748b; }
.lz-chart-vbar { transition: opacity 0.15s ease; }
.lz-chart-vbar:hover { opacity: 0.85; }
.lz-chart-pie-layout { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; justify-content: center; }
.lz-chart-pie-legend { list-style: none; margin: 0; padding: 0; min-width: 180px; flex: 1; max-width: 320px; }
.lz-chart-pie-legend li {
  display: grid;
  grid-template-columns: 12px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
}
.lz-chart-pie-dot { width: 10px; height: 10px; border-radius: 50%; }
.lz-chart-pie-legend-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #334155; }
.lz-chart-pie-layout--compact { gap: 8px 14px; }
.lz-chart-pie-layout--compact .lz-chart-pie-legend { min-width: 130px; max-width: 200px; }
.lz-chart-pie-layout--compact .lz-chart-pie-legend li { padding: 4px 0; font-size: 11px; }
.lz-chart-pie-center { font-size: 16px; font-weight: 700; fill: #0f172a; }
.lz-chart-pie-center-sub { font-size: 10px; fill: #64748b; text-transform: uppercase; letter-spacing: 0.08em; }
.lz-chart-pie-slice { transition: opacity 0.15s ease; }
.lz-chart-pie-slice:hover { opacity: 0.88; }
.sf-dash-chart--findings .lz-chart-bar-fill {
  background: linear-gradient(90deg, #b45309, #f59e0b);
}
.sf-dash-wsh { margin-bottom: 0; }
.sf-wsh-trend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}
.sf-wsh-trend-grid--compact { gap: 12px; }
.sf-wsh-trend-panel h4 { margin: 0 0 2px; font-size: 13px; }
.sf-wsh-trend-panel--full { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--lz-border, rgba(0,0,0,.08)); }
.lz-chart-bar-fill--cpms { background: linear-gradient(90deg, #047857, #34d399); }
.lz-chart-bar-fill--ohs { background: linear-gradient(90deg, #c2410c, #fb923c); }
.lz-chart-bar-stack-outer {
  display: flex;
  height: 100%;
  min-width: 2px;
  border-radius: 6px;
  overflow: hidden;
}
.lz-chart-legend--inline {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--lz-muted);
}
.lz-chart-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.lz-chart-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.lz-chart-swatch--cpms { background: linear-gradient(90deg, #1a7f4b, #2ecc71); }
.lz-chart-swatch--ohs { background: linear-gradient(90deg, #b45309, #f59e0b); }
@media (max-width: 900px) {
  .sf-wsh-trend-grid { grid-template-columns: 1fr; }
  .sf-dash-charts-row { grid-template-columns: 1fr; }
  .lz-chart-toolbar { gap: 10px; }
  .lz-chart-toolbar-group { flex: 1 1 100%; }
  .lz-chart-bar-row { grid-template-columns: minmax(64px, 96px) 1fr minmax(36px, 44px); gap: 8px; font-size: 12px; }
}
.sf-home-kpi .feed-meta + .feed-meta { display: block; margin-top: 2px; font-size: 11px; }
.sf-dash-foot { margin: 0; }

/* People — Department assign */
.dept-assign-wrap { display: flex; flex-direction: column; gap: 1rem; }
.dept-md-card {
  border-radius: var(--lz-radius);
  background: linear-gradient(135deg, #fff5f5 0%, #fff 42%, #fef2f2 100%);
  border: 1px solid #fecaca;
  box-shadow: var(--lz-shadow);
}
.dept-md-card-inner { padding: 1.1rem 1.25rem; }
.dept-md-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lz-red);
  margin-bottom: 4px;
}
.dept-md-card h3 { margin: 0 0 6px; color: var(--lz-text); }
.dept-md-note { margin: 0 0 8px; font-size: 13px; color: var(--lz-muted); }
.dept-md-email {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--lz-red);
}
.dept-assign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.dept-assign-card {
  border-radius: var(--lz-radius);
  border: 1px solid var(--dept-border, var(--lz-border));
  background: var(--dept-bg, #f8fafc);
  box-shadow: var(--lz-shadow);
  padding: 1rem 1.1rem;
}
.dept-assign-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 12px;
}
.dept-assign-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--dept-accent, var(--lz-muted));
}
.dept-assign-card-head h3 { margin: 0; flex: 1; font-size: 1rem; }
.dept-assign-count { font-size: 12px; color: var(--lz-muted); }
.dept-field { margin-bottom: 12px; }
.dept-field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--lz-muted);
  margin-bottom: 6px;
}
.dept-combobox { position: relative; }
.dept-combobox-input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--dept-border, var(--lz-border));
  border-radius: 8px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.88);
}
.dept-combobox-input:focus {
  outline: none;
  border-color: var(--dept-accent, var(--lz-red));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--dept-accent, var(--lz-red)) 18%, transparent);
}
.dept-combobox-list {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  box-shadow: var(--lz-shadow);
}
.dept-combobox-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 11px;
  border: none;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}
.dept-combobox-option:hover,
.dept-combobox-option.is-selected { background: var(--lz-red-soft); }
.dept-combobox-empty { padding: 10px 11px; font-size: 12px; color: var(--lz-muted); }
.dept-link-btn {
  margin-top: 6px;
  padding: 0;
  border: none;
  background: none;
  font-size: 12px;
  color: var(--dept-accent, var(--lz-red));
  cursor: pointer;
  text-decoration: underline;
}
.dept-member-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dept-member-list--readonly { margin-top: 8px; }
.dept-member-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--dept-border, var(--lz-border));
  color: var(--lz-text);
}
.dept-member-pill--readonly { padding-right: 10px; }
.dept-member-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--dept-accent, #94a3b8) 14%, #fff);
  color: var(--dept-accent, var(--lz-muted));
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.dept-member-remove:hover { background: var(--dept-accent, var(--lz-red)); color: #fff; }
.dept-member-empty {
  font-size: 12px;
  color: var(--lz-muted);
  font-style: italic;
}
.dept-mgmt-note { margin: 0 0 8px; font-size: 13px; color: var(--lz-muted); }
.dept-hod-table { font-size: 0.88rem; }
.dept-hod-table th { white-space: nowrap; }
.dept-hod-row--md { background: #fefce8; }
.dept-assign-badge--inline { font-size: 0.68rem; padding: 2px 6px; vertical-align: middle; }
.si-senior-source {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  margin-left: 4px;
}
.dept-readonly-hod { margin: 0 0 8px; font-size: 13px; }
.dept-readonly-note { margin-top: 4px; }
.dept-save-row { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dept-save-hint { margin: 6px 0 0; max-width: 720px; }
.dept-hod-sync-cell { white-space: nowrap; }
.dept-hod-sync-cell--actions .btn { margin-right: 0.35rem; }
.dept-hod-sync-btn { min-height: 32px; touch-action: manipulation; }
.dept-hod-sync-btn--primary { font-weight: 600; }
.perm-safety-diag {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--lz-surface-muted, #f4f6f8);
  border: 1px solid var(--lz-border, #d8dee4);
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.45;
  white-space: pre-wrap;
  max-height: 16rem;
  overflow: auto;
}

.sf-endorse-section { margin-bottom: 1rem; }
.sf-endorse-section h3 {
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--lz-border, #d8dee4);
}
.sf-endorse-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.sf-endorse-metric {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--lz-border, #d8dee4);
  border-radius: 8px;
  background: var(--lz-surface-muted, #f8fafc);
}
.sf-endorse-metric span {
  display: block;
  font-size: 0.8rem;
  color: var(--lz-text-muted, #64748b);
}
.sf-endorse-metric strong { font-size: 1.25rem; }
.sf-endorse-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
.sf-endorse-photo-card {
  margin: 0;
  border: 1px solid var(--lz-border, #d8dee4);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.sf-endorse-photo-thumb {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  font-size: 0.8rem;
  color: #64748b;
}
.sf-endorse-photo-thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.sf-endorse-finding-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.sf-approval-timeline { padding: 0.25rem 0; }
.sf-timeline-entry { margin-bottom: 0.35rem; }
.sf-timeline-date {
  font-size: 0.8rem;
  color: var(--lz-text-muted, #64748b);
  margin-bottom: 0.15rem;
}
.sf-timeline-body { font-size: 0.95rem; }
.sf-timeline-remarks { margin: 0.25rem 0 0; }
.sf-timeline-arrow {
  text-align: center;
  color: var(--lz-text-muted, #94a3b8);
  margin: 0.15rem 0 0.35rem;
}
.sf-endorse-remarks {
  width: 100%;
  max-width: 720px;
  margin: 0.5rem 0 1rem;
}
.sf-endorse-decision-fieldset {
  border: 1px solid var(--lz-border, #d8dee4);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
}
.sf-endorse-radio {
  display: block;
  margin: 0.35rem 0;
}
.sf-endorse-signature-block { margin-top: 1rem; }

.si-coverage-group-row td {
  background: var(--lz-surface-muted, #f1f5f9);
  font-size: 0.85rem;
  padding: 0.45rem 0.75rem;
  border-top: 2px solid var(--lz-border, #cbd5e1);
}
.si-coverage-row--active td {
  background: rgba(34, 197, 94, 0.06);
}
.si-inspector-registry-list {
  margin: 0;
  padding-left: 1.25rem;
}
.si-inspector-registry-list li {
  margin: 0.35rem 0;
}
.si-coverage-inspectors-cell {
  max-width: 280px;
  line-height: 1.35;
}

