/* ZIP3_WORLD_CLASS_UI_NAV_COMPONENT_STANDARDIZATION
   Layer objective: enterprise B2B SaaS/WMS shell consistency, accessible navigation,
   standard components, mobile-safe interaction targets. This file is additive and
   deliberately avoids changing server data, auth, tenancy or business logic. */
:root{
  --zip3-font:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --zip3-bg:#f8fafc;
  --zip3-surface:#ffffff;
  --zip3-surface-raised:#ffffff;
  --zip3-surface-muted:#f1f5f9;
  --zip3-text:#0f172a;
  --zip3-text-muted:#64748b;
  --zip3-border:#dbe3ee;
  --zip3-border-strong:#b7c4d4;
  --zip3-primary:var(--tenant-brand-primary,#2563eb);
  --zip3-accent:var(--tenant-brand-accent,#14b8a6);
  --zip3-danger:#dc2626;
  --zip3-warning:#b45309;
  --zip3-success:#047857;
  --zip3-info:#0369a1;
  --zip3-focus:#2563eb;
  --zip3-radius-xs:8px;
  --zip3-radius-sm:12px;
  --zip3-radius-md:16px;
  --zip3-radius-lg:22px;
  --zip3-radius-xl:30px;
  --zip3-space-1:4px;
  --zip3-space-2:8px;
  --zip3-space-3:12px;
  --zip3-space-4:16px;
  --zip3-space-5:20px;
  --zip3-space-6:24px;
  --zip3-space-8:32px;
  --zip3-shadow-sm:0 1px 2px rgba(15,23,42,.06),0 6px 16px rgba(15,23,42,.08);
  --zip3-shadow-md:0 16px 36px rgba(15,23,42,.12);
  --zip3-shadow-lg:0 24px 64px rgba(15,23,42,.16);
  --zip3-topbar:72px;
  --zip3-mobile-nav:76px;
  --zip3-safe-bottom:env(safe-area-inset-bottom,0px);
}
html[data-zip3-world-class-ui="true"],body.zip3-world-class-ui{scroll-padding-top:calc(var(--zip3-topbar) + 22px)}
body.zip3-world-class-ui{font-family:var(--zip3-font);background:linear-gradient(180deg,#f8fafc 0%,#eef4fb 100%);color:var(--zip3-text)}
body.zip3-world-class-ui *{text-rendering:geometricPrecision}
body.zip3-world-class-ui :where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid color-mix(in srgb,var(--zip3-focus),transparent 10%);outline-offset:3px;box-shadow:0 0 0 6px color-mix(in srgb,var(--zip3-focus),transparent 86%)}
body.zip3-world-class-ui .skip-link{background:var(--zip3-text);color:#fff;border:1px solid rgba(255,255,255,.16);z-index:100000}
body.zip3-world-class-ui .depo-shell.zip3-shell{min-height:100vh;background:radial-gradient(circle at 12% -10%,color-mix(in srgb,var(--zip3-primary),transparent 84%),transparent 34%),radial-gradient(circle at 90% 0%,color-mix(in srgb,var(--zip3-accent),transparent 86%),transparent 30%),linear-gradient(180deg,#f8fafc 0%,#edf4fb 100%)}
body.zip3-world-class-ui .zip3-layout{min-width:0}
body.zip3-world-class-ui .zip3-top-shell{position:sticky;top:0;z-index:300;background:rgba(255,255,255,.92);border-bottom:1px solid color-mix(in srgb,var(--zip3-border),transparent 10%);box-shadow:0 10px 30px rgba(15,23,42,.07);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
body.zip3-world-class-ui .zip3-shell-header,body.zip3-world-class-ui .zip3-public-header{min-height:var(--zip3-topbar);width:min(100% - 40px,var(--depo-content-wide,1440px));margin-inline:auto;display:flex;align-items:center;justify-content:space-between;gap:var(--zip3-space-5);padding:10px 0}
body.zip3-world-class-ui .zip3-brand{display:flex;align-items:center;gap:12px;min-width:0;text-decoration:none;color:var(--zip3-text)}
body.zip3-world-class-ui .zip3-brand-mark{width:44px;height:44px;border-radius:16px;background:linear-gradient(135deg,#fff,color-mix(in srgb,var(--zip3-primary),#fff 88%));border:1px solid var(--zip3-border);box-shadow:var(--zip3-shadow-sm);overflow:hidden;display:grid;place-items:center;flex:0 0 auto}
body.zip3-world-class-ui .zip3-brand-mark img{width:32px;height:32px;object-fit:contain}
body.zip3-world-class-ui .zip3-brand-copy{display:grid;gap:1px;min-width:0}
body.zip3-world-class-ui .zip3-brand-copy strong{font-size:1rem;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:34vw;color:var(--zip3-text)}
body.zip3-world-class-ui .zip3-brand-copy small{font-size:.78rem;line-height:1.25;color:var(--zip3-text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:40vw}
body.zip3-world-class-ui .zip3-header-actions{display:flex;align-items:center;gap:10px;min-width:0}
body.zip3-world-class-ui .zip3-userbox{display:flex;align-items:center;gap:10px;padding:7px 8px 7px 12px;border:1px solid var(--zip3-border);border-radius:999px;background:rgba(255,255,255,.76);box-shadow:var(--zip3-shadow-sm)}
body.zip3-world-class-ui .zip3-userbox span{max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--zip3-text);font-weight:800;font-size:.88rem}
body.zip3-world-class-ui .zip3-userbox form{margin:0}
body.zip3-world-class-ui .zip3-shell-nav{width:min(100% - 40px,var(--depo-content-wide,1440px));margin-inline:auto;padding:0 0 12px;display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scroll-snap-type:x proximity}
body.zip3-world-class-ui .zip3-shell-nav::-webkit-scrollbar{height:8px}
body.zip3-world-class-ui .zip3-shell-nav::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--zip3-border-strong),transparent 20%);border-radius:999px}
body.zip3-world-class-ui .zip3-nav-link{scroll-snap-align:start;display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 14px;border-radius:999px;border:1px solid transparent;color:var(--zip3-text-muted);font-weight:900;font-size:.9rem;letter-spacing:-.01em;white-space:nowrap;text-decoration:none;transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease}
body.zip3-world-class-ui .zip3-nav-link:hover{background:var(--zip3-surface);border-color:var(--zip3-border);color:var(--zip3-text);box-shadow:var(--zip3-shadow-sm);transform:translateY(-1px)}
body.zip3-world-class-ui .zip3-nav-link.active,body.zip3-world-class-ui .zip3-nav-link[aria-current="page"]{background:linear-gradient(135deg,color-mix(in srgb,var(--zip3-primary),#fff 86%),#fff);border-color:color-mix(in srgb,var(--zip3-primary),#fff 62%);color:color-mix(in srgb,var(--zip3-primary),#0f172a 34%);box-shadow:0 8px 22px color-mix(in srgb,var(--zip3-primary),transparent 88%)}
body.zip3-world-class-ui .zip3-nav-link--cta{background:linear-gradient(135deg,var(--zip3-primary),var(--zip3-accent));color:#fff;border-color:transparent;box-shadow:0 14px 30px color-mix(in srgb,var(--zip3-primary),transparent 74%)}
body.zip3-world-class-ui .zip3-content{min-width:0}
body.zip3-world-class-ui .zip3-main{width:min(100% - 40px,var(--depo-content-wide,1440px));padding:26px 0 52px}
body.zip3-world-class-ui.width-narrow .zip3-main{width:min(100% - 40px,var(--depo-content,1200px))}
body.zip3-world-class-ui :where(.page-header,.section-header,.card-header){align-items:flex-start;gap:16px;margin-bottom:18px}
body.zip3-world-class-ui :where(.page-title,h1){font-size:clamp(2rem,3.8vw,3.35rem);line-height:1.02;letter-spacing:-.045em;color:var(--zip3-text);margin-top:0}
body.zip3-world-class-ui :where(h2,.section-title){letter-spacing:-.03em;color:var(--zip3-text)}
body.zip3-world-class-ui :where(.card,.panel,.surface-card,.dashboard-card,.module-card,.stat-card,.metric-card,.form-card,.table-card,.auth-card){background:rgba(255,255,255,.9);border:1px solid var(--zip3-border);border-radius:var(--zip3-radius-lg);box-shadow:var(--zip3-shadow-sm)}
body.zip3-world-class-ui :where(.card,.panel,.surface-card,.dashboard-card,.module-card,.stat-card,.metric-card,.form-card,.table-card):hover{box-shadow:var(--zip3-shadow-md)}
body.zip3-world-class-ui :where(.btn,button.btn,a.btn,.button,.primary-button,.secondary-button,input[type="submit"]){min-height:42px;border-radius:999px;border:1px solid var(--zip3-border);font-weight:900;transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease}
body.zip3-world-class-ui :where(.btn,button.btn,a.btn,.button,input[type="submit"]):hover{transform:translateY(-1px);box-shadow:var(--zip3-shadow-sm)}
body.zip3-world-class-ui :where(.btn.primary,.button.primary,.primary-button,input[type="submit"]){background:linear-gradient(135deg,var(--zip3-primary),var(--zip3-accent));border-color:transparent;color:#fff}
body.zip3-world-class-ui :where(.btn.secondary,.secondary-button){background:#fff;color:var(--zip3-text);border-color:var(--zip3-border)}
body.zip3-world-class-ui .zip3-scan-cta{background:linear-gradient(135deg,var(--zip3-primary),var(--zip3-accent));border-color:transparent;color:#fff}
body.zip3-world-class-ui :where(input,select,textarea){border:1px solid var(--zip3-border);border-radius:14px;background:#fff;min-height:42px;padding:10px 12px}
body.zip3-world-class-ui :where(input,select,textarea):focus{border-color:color-mix(in srgb,var(--zip3-primary),#fff 25%)}
body.zip3-world-class-ui :where(label,.field-label){font-weight:900;color:var(--zip3-text)}
body.zip3-world-class-ui :where(.form-grid,.field-grid){gap:16px}
body.zip3-world-class-ui :where(.form-actions,.sticky-actions,.page-actions,.table-actions){display:flex;gap:10px;flex-wrap:wrap;align-items:center}
body.zip3-world-class-ui :where(.table-wrap,.table-responsive,.data-table-shell,.data-table-wrap,.responsive-table){border:1px solid var(--zip3-border);border-radius:var(--zip3-radius-md);background:#fff;box-shadow:var(--zip3-shadow-sm);overflow:auto;max-width:100%}
body.zip3-world-class-ui :where(table,.data-table){border-spacing:0;border-collapse:separate;background:#fff}
body.zip3-world-class-ui :where(th){background:#f8fafc;color:var(--zip3-text);font-size:.76rem;letter-spacing:.06em;text-transform:uppercase;border-bottom:1px solid var(--zip3-border);position:sticky;top:0;z-index:5}
body.zip3-world-class-ui :where(td){color:#334155;border-bottom:1px solid color-mix(in srgb,var(--zip3-border),transparent 20%)}
body.zip3-world-class-ui :where(tbody tr:hover td){background:#f8fbff}
body.zip3-world-class-ui :where(.badge,.pill,.status-badge,.scope-chip){border-color:var(--zip3-border);background:#fff;color:var(--zip3-text-muted);font-weight:900}
body.zip3-world-class-ui :where(.badge.success,.status-success){color:var(--zip3-success);background:color-mix(in srgb,var(--zip3-success),#fff 92%)}
body.zip3-world-class-ui :where(.badge.warning,.badge.warn,.status-warning){color:var(--zip3-warning);background:color-mix(in srgb,var(--zip3-warning),#fff 92%)}
body.zip3-world-class-ui :where(.badge.danger,.status-danger){color:var(--zip3-danger);background:color-mix(in srgb,var(--zip3-danger),#fff 92%)}
body.zip3-world-class-ui :where(.alert,.empty-state,.loading-state,.error-state){border-radius:var(--zip3-radius-lg);border:1px solid var(--zip3-border);background:rgba(255,255,255,.82);box-shadow:var(--zip3-shadow-sm)}
body.zip3-world-class-ui :where(.empty-state,.loading-state){padding:30px;text-align:center;color:var(--zip3-text-muted)}
body.zip3-world-class-ui .zip3-empty-state{display:grid;gap:8px;place-items:center;min-height:140px;padding:28px;border:1px dashed var(--zip3-border-strong);border-radius:var(--zip3-radius-lg);background:linear-gradient(180deg,#fff,#f8fafc);color:var(--zip3-text-muted);text-align:center}
body.zip3-world-class-ui .zip3-empty-state strong{color:var(--zip3-text);font-size:1rem}
body.zip3-world-class-ui .zip3-command-hint{position:fixed;right:18px;bottom:calc(18px + var(--zip3-safe-bottom));z-index:80;display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--zip3-border);border-radius:999px;background:rgba(255,255,255,.9);box-shadow:var(--zip3-shadow-sm);color:var(--zip3-text-muted);font-size:.78rem;font-weight:800;pointer-events:none}
body.zip3-world-class-ui .zip3-command-hint kbd{font:inherit;color:var(--zip3-text);background:#f1f5f9;border:1px solid var(--zip3-border);border-radius:7px;padding:2px 6px}
body.zip3-world-class-ui :where([data-zip3-busy="true"]){opacity:.78;pointer-events:none;position:relative}
body.zip3-world-class-ui :where([data-zip3-busy="true"])::after{content:"";width:14px;height:14px;border-radius:999px;border:2px solid currentColor;border-top-color:transparent;display:inline-block;animation:zip3Spin .8s linear infinite;margin-left:8px}
@keyframes zip3Spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){body.zip3-world-class-ui *,body.zip3-world-class-ui *::before,body.zip3-world-class-ui *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition:none!important}}
@media (max-width:920px){body.zip3-world-class-ui .zip3-hidden-sm{display:none!important}body.zip3-world-class-ui .zip3-userbox span{display:none}body.zip3-world-class-ui .zip3-shell-header,body.zip3-world-class-ui .zip3-public-header{width:calc(100% - 24px);gap:12px}body.zip3-world-class-ui .zip3-shell-nav{width:calc(100% - 24px)}body.zip3-world-class-ui .zip3-main{width:calc(100% - 24px);padding-bottom:calc(96px + var(--zip3-safe-bottom))}body.zip3-world-class-ui .zip3-brand-copy strong{max-width:48vw}body.zip3-world-class-ui .zip3-brand-copy small{max-width:48vw}}
@media (max-width:680px){:root{--zip3-topbar:64px}body.zip3-world-class-ui .zip3-brand-mark{width:40px;height:40px;border-radius:14px}body.zip3-world-class-ui .zip3-brand-copy strong{font-size:.94rem;max-width:42vw}body.zip3-world-class-ui .zip3-brand-copy small{display:none}body.zip3-world-class-ui .zip3-header-actions{gap:8px}body.zip3-world-class-ui .zip3-shell-nav{padding-bottom:10px}body.zip3-world-class-ui .zip3-nav-link{min-height:38px;padding:8px 12px;font-size:.84rem}body.zip3-world-class-ui :where(.page-title,h1){font-size:1.85rem}body.zip3-world-class-ui :where(.card,.panel,.surface-card,.dashboard-card,.module-card,.stat-card,.metric-card,.form-card,.table-card,.auth-card){border-radius:18px;padding:16px}body.zip3-world-class-ui :where(.form-actions .btn,.sticky-actions .btn,.page-actions .btn,.table-actions .btn){flex:1 1 140px}body.zip3-world-class-ui .zip3-command-hint{display:none}}
@media print{body.zip3-world-class-ui .zip3-top-shell,body.zip3-world-class-ui .zip3-public-header,body.zip3-world-class-ui .zip3-command-hint{display:none!important}body.zip3-world-class-ui .zip3-main{width:100%;padding:0}}
