/* Business ERP — onboarding tour, checklist and help button (uses the app's --wz-* tokens) */
.wz-tour-layer{position:fixed;inset:0;z-index:2000;pointer-events:auto;opacity:0;transition:opacity .2s ease}
.wz-tour-layer.in{opacity:1}
.wz-tour-ring{position:fixed;border-radius:12px;box-shadow:0 0 0 9999px rgba(15,23,42,.62),0 0 0 3px var(--wz-primary,#2563eb);
  transition:left .28s cubic-bezier(.2,.8,.2,1),top .28s cubic-bezier(.2,.8,.2,1),width .28s cubic-bezier(.2,.8,.2,1),height .28s cubic-bezier(.2,.8,.2,1);pointer-events:none}
.wz-tour-ring.is-center{box-shadow:0 0 0 9999px rgba(15,23,42,.62)}
.wz-tour-card{position:fixed;width:min(360px,calc(100vw - 24px));background:var(--wz-surface,#fff);color:var(--wz-text,#0f172a);
  border:1px solid var(--wz-border,#e2e8f0);border-radius:14px;padding:16px 18px 14px;box-shadow:0 18px 50px rgba(2,6,23,.35);
  transition:left .28s cubic-bezier(.2,.8,.2,1),top .28s cubic-bezier(.2,.8,.2,1)}
.wz-tour-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.wz-tour-step{font-size:12px;font-weight:600;letter-spacing:.02em;color:var(--wz-primary,#2563eb);background:color-mix(in srgb,var(--wz-primary,#2563eb) 12%,transparent);padding:2px 8px;border-radius:999px}
.wz-tour-x{border:0;background:transparent;color:var(--wz-text-muted,#64748b);font-size:22px;line-height:1;width:32px;height:32px;border-radius:8px;cursor:pointer}
.wz-tour-x:hover{background:color-mix(in srgb,var(--wz-text,#0f172a) 8%,transparent)}
.wz-tour-title{font-size:17px;font-weight:700;margin:0 0 6px;line-height:1.3}
.wz-tour-body{font-size:14px;line-height:1.55;margin:0;color:var(--wz-text-muted,#475569)}
.wz-tour-dots{display:flex;gap:5px;margin:14px 0 12px}
.wz-tour-dots span{height:6px;flex:1;border-radius:3px;background:var(--wz-border,#e2e8f0)}
.wz-tour-dots span.past{background:color-mix(in srgb,var(--wz-primary,#2563eb) 45%,transparent)}
.wz-tour-dots span.on{background:var(--wz-primary,#2563eb)}
.wz-tour-actions{display:flex;justify-content:space-between;gap:8px}
.wz-tour-btn{border-radius:9px;padding:8px 16px;font-weight:600;font-size:14px;cursor:pointer;border:1px solid transparent;min-height:40px}
.wz-tour-btn.primary{background:var(--wz-primary,#2563eb);color:#fff}
.wz-tour-btn.primary:hover{filter:brightness(1.08)}
.wz-tour-btn.ghost{background:transparent;color:var(--wz-text,#0f172a);border-color:var(--wz-border,#e2e8f0)}
.wz-tour-btn:focus-visible,.wz-tour-x:focus-visible,.wz-help-btn:focus-visible,.wz-help-menu button:focus-visible,.wz-check a:focus-visible{outline:3px solid color-mix(in srgb,var(--wz-primary,#2563eb) 55%,transparent);outline-offset:2px}

.wz-help-btn .bi{font-size:1.05rem}
.wz-help-menu{position:fixed;top:64px;right:16px;z-index:1041;min-width:230px;background:var(--wz-surface,#fff);border:1px solid var(--wz-border,#e2e8f0);
  border-radius:12px;padding:6px;box-shadow:0 14px 40px rgba(2,6,23,.22)}
.wz-help-menu button{display:block;width:100%;text-align:left;background:transparent;border:0;color:var(--wz-text,#0f172a);padding:10px 12px;border-radius:8px;font-size:14px;cursor:pointer}
.wz-help-menu button:hover{background:color-mix(in srgb,var(--wz-primary,#2563eb) 10%,transparent)}

.wz-check{position:fixed;right:18px;bottom:18px;z-index:1039;width:min(320px,calc(100vw - 36px));background:var(--wz-surface,#fff);color:var(--wz-text,#0f172a);
  border:1px solid var(--wz-border,#e2e8f0);border-radius:14px;padding:12px 14px;box-shadow:0 14px 40px rgba(2,6,23,.18)}
.wz-check-head{display:flex;align-items:center;justify-content:space-between}
.wz-check h2{font-size:15px;font-weight:700;margin:0}
.wz-check-bar{height:6px;border-radius:3px;background:var(--wz-border,#e2e8f0);margin:8px 0 4px;overflow:hidden}
.wz-check-bar span{display:block;height:100%;background:#16a34a;transition:width .3s ease}
.wz-check-sub{font-size:12px;color:var(--wz-text-faint,#64748b);margin:0 0 6px}
.wz-check ul{list-style:none;margin:0;padding:0}
.wz-check a{display:flex;gap:10px;align-items:center;padding:7px 6px;border-radius:8px;color:inherit;text-decoration:none;font-size:13.5px}
.wz-check a:hover{background:color-mix(in srgb,var(--wz-primary,#2563eb) 8%,transparent)}
.wz-check-box{flex:none;width:18px;height:18px;border-radius:5px;border:2px solid var(--wz-border-strong,#94a3b8);display:grid;place-items:center;font-size:12px;color:#fff}
.wz-check li.ok .wz-check-box{background:#16a34a;border-color:#16a34a}
.wz-check li.ok a span:nth-child(2){text-decoration:line-through;color:var(--wz-text-faint,#64748b)}

@media (max-width:576px){.wz-check{right:12px}}
@media (prefers-reduced-motion:reduce){.wz-tour-layer,.wz-tour-ring,.wz-tour-card,.wz-help-btn,.wz-check-bar span{transition:none!important}}
@media print{.wz-help-btn,.wz-help-menu,.wz-check,.wz-tour-layer{display:none!important}}

/* Network / update bar (pwa.js) */
.wz-netbar{position:fixed;left:50%;transform:translateX(-50%);bottom:16px;z-index:2100;max-width:min(640px,calc(100vw - 24px));display:flex;gap:12px;align-items:center;
  padding:10px 14px;border-radius:12px;font-size:14px;box-shadow:0 12px 32px rgba(2,6,23,.28);background:#1e293b;color:#f8fafc}
.wz-netbar.is-off{background:#7c2d12}.wz-netbar.is-on{background:#166534}
.wz-netbar button{flex:none;border:0;border-radius:8px;padding:6px 12px;font-weight:600;background:#fff;color:#0f172a;cursor:pointer}
/* While offline, write actions are disabled (reads still work from what is on screen). */
/* rc4: offline writes are handled by offline.js (queue or "needs a connection"), buttons stay usable */

.wz-news{border:1px solid var(--wz-border,#e2e8f0);border-radius:16px;padding:20px 22px;width:min(460px,calc(100vw - 32px));background:var(--wz-surface,#fff);color:var(--wz-text,#0f172a);box-shadow:0 24px 60px rgba(15,23,42,.25)}
.wz-news::backdrop{background:rgba(15,23,42,.45)}
.wz-news-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:8px}
.wz-news h2{font-size:18px;font-weight:700;margin:0}
.wz-news-ver{font-size:12px;color:var(--wz-text-faint,#5b6b82)}
.wz-news ul{margin:8px 0 0;padding-left:20px;display:grid;gap:8px;font-size:14px;line-height:1.55}
.wz-news-foot{display:flex;justify-content:flex-end;margin-top:16px}
