@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

/* ═══════════════════════════════════════════════════════════════
   StoreHub — Premium Inventory & Asset Management Design System
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Brand palette — deep navy + teal + warm gold accent */
    --sh-primary: #0d9488;
    --sh-primary-dark: #0f766e;
    --sh-primary-light: rgba(13, 148, 136, 0.12);
    --sh-primary-glow: rgba(13, 148, 136, 0.35);
    --sh-accent: #f59e0b;
    --sh-accent-light: rgba(245, 158, 11, 0.12);
    --sh-violet: #7c3aed;
    --sh-rose: #e11d48;
    --sh-sky: #0284c7;

    --sh-success: #059669;
    --sh-warning: #d97706;
    --sh-danger: #dc2626;
    --sh-info: #6366f1;

    /* Sidebar — rich dark */
    --sh-sidebar-bg: linear-gradient(180deg, #0a0f1c 0%, #111827 50%, #0d1526 100%);
    --sh-sidebar-solid: #0c1222;
    --sh-sidebar-hover: rgba(255, 255, 255, 0.06);
    --sh-sidebar-active: rgba(13, 148, 136, 0.18);
    --sh-sidebar-active-border: #14b8a6;
    --sh-sidebar-text: #8b9cb8;
    --sh-sidebar-text-active: #f0f4f8;
    --sh-sidebar-width: 280px;
    --sh-sidebar-collapsed: 76px;

    /* Surfaces */
    --sh-topbar-height: 68px;
    --sh-body-bg: #ffffff;
    --sh-body-gradient: #ffffff;
    --sh-surface: #ffffff;
    --sh-surface-elevated: #ffffff;
    --sh-border: #e4e9f2;
    --sh-border-subtle: #f0f3f9;

    /* Typography */
    --sh-text: #111827;
    --sh-text-secondary: #374151;
    --sh-text-muted: #6b7280;
    --sh-font-display: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --sh-font-body: 'IBM Plex Sans', -apple-system, sans-serif;

    /* Elevation */
    --sh-shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.04);
    --sh-shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.06);
    --sh-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
    --sh-shadow-lg: 0 16px 48px rgba(17, 24, 39, 0.12);
    --sh-shadow-card: 0 1px 3px rgba(17,24,39,0.06), 0 8px 24px rgba(17,24,39,0.05);

    --sh-radius: 16px;
    --sh-radius-md: 12px;
    --sh-radius-sm: 10px;
    --sh-radius-xs: 8px;
    --sh-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body.sh-app {
    margin: 0;
    font-family: var(--sh-font-body);
    font-size: 0.9375rem;
    color: var(--sh-text-secondary);
    background: var(--sh-body-gradient);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6,
.sh-page-header h2,
.sh-card-header h5,
.sh-login-hero h1,
.sh-login-form-wrap h2,
.sh-dash-hero h1 {
    font-family: var(--sh-font-display);
    color: var(--sh-text);
    letter-spacing: -0.025em;
}

/* ─── App Shell ─── */
.sh-shell { display: flex; min-height: 100vh; }

.sh-sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sh-sidebar-width);
    height: 100vh;
    background: var(--sh-sidebar-solid);
    background-image: var(--sh-sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: width var(--sh-transition), transform var(--sh-transition);
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,0.04);
}

.sh-sidebar.collapsed { width: var(--sh-sidebar-collapsed); }

.sh-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 22px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-height: 76px;
}

.sh-brand-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #0f766e 100%);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.125rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px var(--sh-primary-glow);
}

.sh-brand-text { overflow: hidden; white-space: nowrap; }
.sh-brand-text h1 {
    margin: 0;
    font-family: var(--sh-font-display);
    font-size: 1.1875rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.03em;
}
.sh-brand-text span {
    font-size: 0.6875rem;
    color: #5c6b82;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}
.sh-sidebar.collapsed .sh-brand-text { opacity: 0; width: 0; }

.sh-nav-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 14px 0 28px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.sh-nav-section {
    padding: 16px 22px 6px;
    font-family: var(--sh-font-display);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #4a5568;
}
.sh-sidebar.collapsed .sh-nav-section { opacity: 0; height: 0; padding: 0; overflow: hidden; }

.sh-nav-list { list-style: none; margin: 0; padding: 0 10px; }
.sh-nav-item { margin-bottom: 3px; }

.sh-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--sh-radius-sm);
    color: var(--sh-sidebar-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--sh-transition);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    border-left: 3px solid transparent;
}

.sh-nav-link:hover {
    background: var(--sh-sidebar-hover);
    color: var(--sh-sidebar-text-active);
    text-decoration: none;
}

.sh-nav-link.active {
    background: var(--sh-sidebar-active);
    color: #5eead4;
    border-left-color: var(--sh-sidebar-active-border);
    font-weight: 600;
}

.sh-nav-link[aria-expanded="true"] {
    color: var(--sh-sidebar-text-active);
    background: var(--sh-sidebar-hover);
}

.sh-nav-link i { width: 20px; text-align: center; font-size: 0.9375rem; flex-shrink: 0; opacity: 0.85; }
.sh-nav-link.active i { opacity: 1; color: #5eead4; }

.sh-nav-link .sh-chevron {
    margin-left: auto;
    font-size: 0.5625rem;
    opacity: 0.5;
    transition: transform var(--sh-transition);
}
.sh-nav-link[aria-expanded="true"] .sh-chevron { transform: rotate(90deg); opacity: 0.8; }
.sh-sidebar.collapsed .sh-nav-link span,
.sh-sidebar.collapsed .sh-chevron { display: none; }

.sh-submenu { list-style: none; margin: 0; padding: 4px 0 6px 8px; }
.sh-submenu .sh-nav-link {
    padding: 8px 12px 8px 38px;
    font-size: 0.8125rem;
    font-weight: 400;
    border-left: none;
}

.sh-sidebar-footer {
    padding: 18px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.sh-sidebar-footer .sh-industry-pill {
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.2);
    color: #5eead4;
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sh-sidebar.collapsed .sh-sidebar-footer { display: none; }

/* ─── Main ─── */
.sh-main {
    flex: 1;
    margin-left: var(--sh-sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--sh-transition);
    background: #ffffff;
}
.sh-sidebar.collapsed ~ .sh-main,
body.sidebar-collapsed .sh-main { margin-left: var(--sh-sidebar-collapsed); }

.sh-topbar {
    position: sticky; top: 0; z-index: 1030;
    height: var(--sh-topbar-height);
    background: #ffffff;
    border-bottom: 1px solid var(--sh-border);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 16px;
}

.sh-topbar-toggle {
    width: 42px; height: 42px;
    border: 1px solid var(--sh-border);
    background: var(--sh-surface);
    border-radius: var(--sh-radius-xs);
    display: flex; align-items: center; justify-content: center;
    color: var(--sh-text-muted);
    cursor: pointer;
    transition: all var(--sh-transition);
}
.sh-topbar-toggle:hover { border-color: var(--sh-primary); color: var(--sh-primary); background: var(--sh-primary-light); }

.sh-topbar-search { flex: 1; max-width: 440px; position: relative; }
.sh-topbar-search input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    background: #f8fafc;
    font-family: var(--sh-font-body);
    font-size: 0.875rem;
    color: var(--sh-text);
    transition: all var(--sh-transition);
}
.sh-topbar-search input:focus {
    outline: none;
    border-color: var(--sh-primary);
    background: var(--sh-surface);
    box-shadow: 0 0 0 4px var(--sh-primary-light);
}
.sh-topbar-search i {
    position: absolute; left: 15px; top: 50%;
    transform: translateY(-50%);
    color: var(--sh-text-muted);
    font-size: 0.875rem;
}

.sh-topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.sh-topbar-btn {
    width: 42px; height: 42px;
    border: 1px solid var(--sh-border);
    background: var(--sh-surface);
    border-radius: var(--sh-radius-xs);
    color: var(--sh-text-muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    transition: all var(--sh-transition);
}
.sh-topbar-btn:hover { border-color: var(--sh-primary); color: var(--sh-primary); }

.sh-badge-dot {
    position: absolute; top: 7px; right: 7px;
    width: 9px; height: 9px;
    background: var(--sh-rose);
    border-radius: 50%;
    border: 2px solid var(--sh-surface);
    animation: sh-pulse 2s infinite;
}
@keyframes sh-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(225, 29, 72, 0); }
}

.sh-user-menu {
    display: flex; align-items: center; gap: 11px;
    padding: 6px 14px 6px 6px;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    cursor: pointer;
    background: var(--sh-surface);
    transition: all var(--sh-transition);
}
.sh-user-menu:hover { border-color: #c5cdd8; box-shadow: var(--sh-shadow-xs); }

.sh-user-avatar {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-family: var(--sh-font-display);
    font-weight: 700;
    font-size: 0.8125rem;
}
.sh-user-info .name { font-family: var(--sh-font-display); font-weight: 600; font-size: 0.8125rem; color: var(--sh-text); }
.sh-user-info .role { font-size: 0.6875rem; color: var(--sh-text-muted); }

.sh-content { flex: 1; padding: 28px 32px 40px; background: #ffffff; }

/* ─── Page Header ─── */
.sh-page-header { margin-bottom: 28px; }
.sh-page-header h2 {
    margin: 0 0 6px;
    font-size: 1.625rem;
    font-weight: 700;
}
.sh-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    list-style: none; margin: 0; padding: 0;
    font-size: 0.8125rem; color: var(--sh-text-muted);
}
.sh-breadcrumb a { color: var(--sh-primary); text-decoration: none; font-weight: 500; }
.sh-breadcrumb a:hover { color: var(--sh-primary-dark); }

/* ─── Dashboard Hero ─── */
.sh-dash-hero {
    background: linear-gradient(135deg, #0c1222 0%, #134e4a 60%, #0d9488 100%);
    border-radius: var(--sh-radius);
    padding: 32px 36px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 12px 40px rgba(13, 148, 136, 0.25);
}
.sh-dash-hero::before {
    content: '';
    position: absolute;
    top: -40%; right: -10%;
    width: 50%; height: 180%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 65%);
    pointer-events: none;
}
.sh-dash-hero::after {
    content: '';
    position: absolute;
    bottom: -30%; left: 20%;
    width: 40%; height: 100%;
    background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.sh-dash-hero-inner { position: relative; z-index: 1; }
.sh-dash-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}
.sh-dash-hero p {
    margin: 0;
    font-size: 1rem;
    color: rgba(255,255,255,0.78);
    max-width: 560px;
    line-height: 1.6;
}
.sh-dash-hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.sh-dash-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
}
.sh-dash-hero-chip i { color: #5eead4; }

/* ─── Stat Cards (premium) ─── */
.sh-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.sh-stat-card {
    background: var(--sh-surface);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-md);
    padding: 22px 22px 20px;
    position: relative;
    overflow: hidden;
    transition: all var(--sh-transition);
    box-shadow: var(--sh-shadow-card);
}
.sh-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--sh-radius-md) var(--sh-radius-md) 0 0;
}
.sh-stat-card.teal::before { background: linear-gradient(90deg, #14b8a6, #0d9488); }
.sh-stat-card.violet::before { background: linear-gradient(90deg, #8b5cf6, #7c3aed); }
.sh-stat-card.emerald::before { background: linear-gradient(90deg, #34d399, #059669); }
.sh-stat-card.sky::before { background: linear-gradient(90deg, #38bdf8, #0284c7); }
.sh-stat-card.amber::before { background: linear-gradient(90deg, #fbbf24, #d97706); }
.sh-stat-card.rose::before { background: linear-gradient(90deg, #fb7185, #e11d48); }

.sh-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-shadow);
    border-color: #d1d9e6;
}

.sh-stat-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.sh-stat-icon {
    width: 44px; height: 44px;
    border-radius: var(--sh-radius-xs);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.125rem;
}
.sh-stat-card.teal .sh-stat-icon { background: rgba(13,148,136,0.1); color: #0d9488; }
.sh-stat-card.violet .sh-stat-icon { background: rgba(124,58,237,0.1); color: #7c3aed; }
.sh-stat-card.emerald .sh-stat-icon { background: rgba(5,150,105,0.1); color: #059669; }
.sh-stat-card.sky .sh-stat-icon { background: rgba(2,132,199,0.1); color: #0284c7; }
.sh-stat-card.amber .sh-stat-icon { background: rgba(217,119,6,0.1); color: #d97706; }
.sh-stat-card.rose .sh-stat-icon { background: rgba(225,29,72,0.1); color: #e11d48; }

.sh-stat-label {
    font-size: 0.8125rem;
    color: var(--sh-text-muted);
    font-weight: 500;
    margin-bottom: 6px;
}
.sh-stat-value {
    font-family: var(--sh-font-display);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--sh-text);
    letter-spacing: -0.04em;
}
.sh-stat-meta {
    font-size: 0.75rem;
    color: var(--sh-text-muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sh-stat-meta i { font-size: 0.625rem; }

/* ─── Cards ─── */
.sh-card {
    background: var(--sh-surface);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-md);
    box-shadow: var(--sh-shadow-card);
    overflow: hidden;
}
.sh-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--sh-border-subtle);
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}
.sh-card-header h5 {
    margin: 0;
    font-family: var(--sh-font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--sh-text);
    display: flex; align-items: center; gap: 10px;
}
.sh-card-header h5 i { color: var(--sh-primary); font-size: 0.875rem; }
.sh-card-body { padding: 24px; }

/* ─── Quick Actions ─── */
.sh-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}
.sh-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-md);
    text-decoration: none;
    color: var(--sh-text);
    transition: all var(--sh-transition);
    text-align: center;
}
.sh-quick-action:hover {
    border-color: var(--sh-primary);
    box-shadow: 0 8px 24px var(--sh-primary-light);
    color: var(--sh-primary-dark);
    text-decoration: none;
    transform: translateY(-3px);
}
.sh-quick-action .qa-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    transition: transform var(--sh-transition);
}
.sh-quick-action:hover .qa-icon { transform: scale(1.08); }
.sh-quick-action .qa-icon.c1 { background: rgba(13,148,136,0.12); color: #0d9488; }
.sh-quick-action .qa-icon.c2 { background: rgba(2,132,199,0.12); color: #0284c7; }
.sh-quick-action .qa-icon.c3 { background: rgba(124,58,237,0.12); color: #7c3aed; }
.sh-quick-action .qa-icon.c4 { background: rgba(217,119,6,0.12); color: #d97706; }
.sh-quick-action .qa-icon.c5 { background: rgba(5,150,105,0.12); color: #059669; }
.sh-quick-action .qa-icon.c6 { background: rgba(225,29,72,0.1); color: #e11d48; }
.sh-quick-action span {
    font-family: var(--sh-font-display);
    font-size: 0.8125rem;
    font-weight: 600;
}

/* ─── Benefit cards (login) ─── */
.sh-benefit-grid {
    display: grid;
    gap: 16px;
    margin-top: 36px;
}
.sh-benefit-card {
    display: flex;
    gap: 18px;
    padding: 20px 22px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--sh-radius-md);
    backdrop-filter: blur(8px);
    transition: all var(--sh-transition);
}
.sh-benefit-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(20, 184, 166, 0.3);
    transform: translateX(4px);
}
.sh-benefit-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(20,184,166,0.25), rgba(13,148,136,0.15));
    border: 1px solid rgba(20,184,166,0.3);
    display: flex; align-items: center; justify-content: center;
    color: #5eead4;
    font-size: 1.125rem;
    flex-shrink: 0;
}
.sh-benefit-text h3 {
    font-family: var(--sh-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
.sh-benefit-text p {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.55;
}

/* ─── Insight panel (dashboard sidebar) ─── */
.sh-insight-list { list-style: none; margin: 0; padding: 0; }
.sh-insight-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--sh-border-subtle);
}
.sh-insight-item:last-child { border-bottom: none; padding-bottom: 0; }
.sh-insight-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}
.sh-insight-dot.ok { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.2); }
.sh-insight-dot.warn { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.2); }
.sh-insight-dot.alert { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.2); }
.sh-insight-item strong {
    display: block;
    font-family: var(--sh-font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sh-text);
    margin-bottom: 3px;
}
.sh-insight-item span { font-size: 0.8125rem; color: var(--sh-text-muted); line-height: 1.45; }

/* ─── Buttons ─── */
.sh-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    border-radius: var(--sh-radius-xs);
    font-family: var(--sh-font-display);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--sh-transition);
    text-decoration: none;
}
.sh-btn-primary {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #fff;
    box-shadow: 0 4px 14px var(--sh-primary-glow);
}
.sh-btn-primary:hover {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff;
    box-shadow: 0 6px 20px var(--sh-primary-glow);
    transform: translateY(-1px);
}
.sh-btn-outline {
    background: var(--sh-surface);
    color: var(--sh-text-secondary);
    border: 1px solid var(--sh-border);
}
.sh-btn-outline:hover { background: #f8fafc; border-color: #c5cdd8; }
.sh-btn-sm { padding: 7px 14px; font-size: 0.8125rem; }

/* ─── Tables ─── */
.sh-table-wrap { overflow-x: auto; border-radius: 0 0 var(--sh-radius-md) var(--sh-radius-md); }
.sh-app .table { margin-bottom: 0; font-size: 0.875rem; }
.sh-app .table thead th {
    background: #f8fafc;
    border-bottom: 1px solid var(--sh-border);
    font-family: var(--sh-font-display);
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sh-text-muted);
    padding: 13px 18px;
}
.sh-app .table tbody td {
    padding: 14px 18px;
    vertical-align: middle;
    border-color: var(--sh-border-subtle);
    color: var(--sh-text-secondary);
}
.sh-app .table tbody tr { transition: background var(--sh-transition); }
.sh-app .table tbody tr:hover { background: #f8fafc; }

/* ─── Forms ─── */
.sh-app .form-control, .sh-app .form-select {
    border-radius: var(--sh-radius-xs);
    border: 1px solid var(--sh-border);
    padding: 10px 14px;
    font-family: var(--sh-font-body);
    font-size: 0.875rem;
    color: var(--sh-text);
    background: #ffffff;
    transition: all var(--sh-transition);
}
.sh-app .form-control:focus, .sh-app .form-select:focus {
    border-color: var(--sh-primary);
    background: var(--sh-surface);
    box-shadow: 0 0 0 4px var(--sh-primary-light);
}
.sh-app .form-label {
    font-family: var(--sh-font-display);
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--sh-text);
    margin-bottom: 7px;
}
.required::after { content: " *"; color: var(--sh-danger); }

/* ─── Legacy compat ─── */
.sh-app .page-title-box {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; padding-bottom: 18px;
    border-bottom: 1px solid var(--sh-border);
}
.sh-app .page-title-box .page-title, .sh-app .page-title-box h4 {
    margin: 0;
    font-family: var(--sh-font-display);
    font-size: 1.375rem;
    font-weight: 700;
}
.sh-app .card {
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-md);
    box-shadow: var(--sh-shadow-card);
}
.sh-app .card-body { padding: 24px; }
.sh-app .btn-primary {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    border: none;
    border-radius: var(--sh-radius-xs);
    font-family: var(--sh-font-display);
    font-weight: 600;
    box-shadow: 0 2px 8px var(--sh-primary-glow);
}
.sh-app .btn-primary:hover {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    box-shadow: 0 4px 14px var(--sh-primary-glow);
}

/* ─── Badges ─── */
.sh-badge {
    display: inline-flex; align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: var(--sh-font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.sh-badge-danger { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.sh-badge-warning { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.sh-badge-success { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }

/* ─── Login Page ─── */
.sh-login-page { min-height: 100vh; display: flex; }

.sh-login-left {
    flex: 1.15;
    background: #080d18;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 64px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.sh-login-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 20% 80%, rgba(13,148,136,0.22) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 80% 20%, rgba(124,58,237,0.15) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 60% 60%, rgba(245,158,11,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.sh-login-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.sh-login-hero { position: relative; z-index: 1; max-width: 540px; }

.sh-login-hero .sh-brand-icon {
    width: 52px; height: 52px;
    font-size: 1.375rem;
    margin-bottom: 28px;
    border-radius: 14px;
}

.sh-login-hero h1 {
    font-family: var(--sh-font-display);
    font-size: 2.625rem;
    font-weight: 800;
    margin: 0 0 14px;
    line-height: 1.15;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #ffffff 30%, #5eead4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sh-login-hero .tagline {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.65;
    margin-bottom: 0;
    font-weight: 400;
}

.sh-login-right {
    width: 500px;
    min-width: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 48px;
    background: var(--sh-surface);
    position: relative;
}
.sh-login-right::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--sh-border), transparent);
}

.sh-login-form-wrap { width: 100%; max-width: 380px; }

.sh-login-form-wrap h2 {
    font-size: 1.625rem;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -0.03em;
}
.sh-login-form-wrap .subtitle {
    color: var(--sh-text-muted);
    margin-bottom: 36px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.sh-login-form .form-group { margin-bottom: 22px; }
.sh-login-form .form-control {
    padding: 13px 16px;
    font-size: 0.9375rem;
    border-radius: var(--sh-radius-sm);
    background: #f8fafc;
}
.sh-login-form .btn-login {
    width: 100%;
    padding: 14px;
    font-family: var(--sh-font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: var(--sh-radius-sm);
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all var(--sh-transition);
    box-shadow: 0 4px 16px var(--sh-primary-glow);
    letter-spacing: -0.01em;
}
.sh-login-form .btn-login:hover {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    box-shadow: 0 8px 24px var(--sh-primary-glow);
    transform: translateY(-1px);
}

.sh-login-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 0.75rem;
    color: var(--sh-text-muted);
}

/* ─── Dropdown ─── */
.sh-dropdown-menu {
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    box-shadow: var(--sh-shadow-lg);
    padding: 6px;
}
.sh-dropdown-menu .dropdown-item {
    border-radius: var(--sh-radius-xs);
    padding: 9px 14px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ─── Overlay ─── */
.sh-sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(8, 13, 24, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1035;
}

/* ─── Modal polish ─── */
.sh-app .modal-content {
    border: none;
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow-lg);
}
.sh-app .modal-header {
    font-family: var(--sh-font-display);
    border-bottom: 1px solid var(--sh-border-subtle);
}

/* ─── Responsive ─── */
@media (max-width: 991px) {
    .sh-sidebar { transform: translateX(-100%); }
    .sh-sidebar.mobile-open { transform: translateX(0); }
    .sh-sidebar-overlay.active { display: block; }
    .sh-main { margin-left: 0 !important; }
    .sh-login-page { flex-direction: column; }
    .sh-login-left { padding: 40px 28px; }
    .sh-login-right { width: 100%; min-width: auto; padding: 40px 28px; }
    .sh-login-hero h1 { font-size: 2rem; }
    .sh-topbar-search { display: none; }
    .sh-content { padding: 20px 16px 32px; }
}

@media (max-width: 576px) {
    .sh-stat-grid { grid-template-columns: 1fr 1fr; }
    .sh-stat-value { font-size: 1.5rem; }
    .sh-user-info { display: none; }
    .sh-dash-hero { padding: 24px 20px; }
    .sh-dash-hero h1 { font-size: 1.375rem; }
    .sh-master-form-grid { grid-template-columns: 1fr; }
    .sh-master-aside { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   Master List & Form — Modern UX
   ═══════════════════════════════════════════════════════════════ */

.sh-master-list-page,
.sh-master-page {
    max-width: 1280px;
    margin: 0 auto;
}

/* ─── List header ─── */
.sh-master-list-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--sh-border-subtle);
}

.sh-master-list-title {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.sh-list-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(13,148,136,0.12), rgba(13,148,136,0.06));
    border: 1px solid rgba(13,148,136,0.15);
    display: flex; align-items: center; justify-content: center;
    color: var(--sh-primary);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.sh-master-list-title h1 {
    font-family: var(--sh-font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 4px;
    letter-spacing: -0.03em;
}

.sh-master-list-title p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--sh-text-muted);
    max-width: 480px;
}

.sh-list-count {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 20px;
    font-family: var(--sh-font-display);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sh-text-muted);
    align-self: center;
}

.sh-master-list-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sh-list-search {
    position: relative;
    min-width: 260px;
}
.sh-list-search i {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--sh-text-muted);
    font-size: 0.8125rem;
}
.sh-list-search input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    font-size: 0.875rem;
    background: #fafbfc;
    transition: all var(--sh-transition);
}
.sh-list-search input:focus {
    outline: none;
    border-color: var(--sh-primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--sh-primary-light);
}

/* ─── Modern data table ─── */
.sh-master-table-card {
    background: #ffffff;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-md);
    overflow: hidden;
    box-shadow: var(--sh-shadow-xs);
}

.sh-master-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.sh-master-table thead th {
    background: #fafbfc;
    padding: 14px 20px;
    text-align: left;
    font-family: var(--sh-font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sh-text-muted);
    border-bottom: 1px solid var(--sh-border);
}
.sh-master-table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--sh-border-subtle);
    vertical-align: middle;
    color: var(--sh-text-secondary);
}
.sh-master-table tbody tr:last-child td { border-bottom: none; }
.sh-master-table tbody tr {
    transition: background var(--sh-transition);
    cursor: default;
}
.sh-master-table tbody tr:hover { background: #f8fafc; }

.sh-row-avatar {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
    color: #0d9488;
    font-family: var(--sh-font-display);
    font-weight: 700;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.sh-row-primary {
    display: flex;
    align-items: center;
}
.sh-row-primary a {
    font-weight: 600;
    color: var(--sh-text);
    text-decoration: none;
}
.sh-row-primary a:hover { color: var(--sh-primary); }

.sh-row-code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8125rem;
    color: var(--sh-text-muted);
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
}

.sh-row-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--sh-radius-xs);
    font-family: var(--sh-font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sh-primary);
    background: var(--sh-primary-light);
    text-decoration: none;
    transition: all var(--sh-transition);
}
.sh-row-action:hover {
    background: var(--sh-primary);
    color: #fff;
    text-decoration: none;
}

.sh-role-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--sh-font-display);
}
.sh-role-badge.admin { background: #ede9fe; color: #7c3aed; }
.sh-role-badge.super { background: #fef3c7; color: #b45309; }
.sh-role-badge.user { background: #f1f5f9; color: #64748b; }

/* ─── Form layout ─── */
.sh-master-form-header {
    margin-bottom: 28px;
}

.sh-master-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--sh-text-muted);
    text-decoration: none;
    margin-bottom: 16px;
    transition: color var(--sh-transition);
}
.sh-master-back:hover { color: var(--sh-primary); }

.sh-master-form-title-block {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.sh-master-form-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 16px var(--sh-primary-glow);
    flex-shrink: 0;
}
.sh-master-form-title-block h1 {
    font-size: 1.625rem;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.03em;
}
.sh-master-form-title-block p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--sh-text-muted);
    max-width: 520px;
    line-height: 1.5;
}

.sh-master-form-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

.sh-aside-card {
    background: linear-gradient(145deg, #f0fdfa, #ffffff);
    border: 1px solid rgba(13,148,136,0.15);
    border-radius: var(--sh-radius-md);
    padding: 20px;
    margin-bottom: 16px;
}
.sh-aside-card h3 {
    font-family: var(--sh-font-display);
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--sh-primary-dark);
    display: flex; align-items: center; gap: 8px;
}
.sh-aside-card p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--sh-text-muted);
    line-height: 1.55;
}

.sh-aside-steps { display: flex; flex-direction: column; gap: 8px; }
.sh-aside-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--sh-radius-xs);
    font-size: 0.8125rem;
    color: var(--sh-text-muted);
    background: #fafbfc;
    border: 1px solid var(--sh-border-subtle);
}
.sh-aside-step.active {
    background: var(--sh-primary-light);
    border-color: rgba(13,148,136,0.2);
    color: var(--sh-primary-dark);
    font-weight: 600;
}
.sh-step-num {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--sh-font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    flex-shrink: 0;
}
.sh-aside-step.active .sh-step-num {
    background: var(--sh-primary);
    color: #fff;
}

.sh-master-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sh-form-section {
    background: #ffffff;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-md);
    overflow: hidden;
}
.sh-form-section-head {
    padding: 18px 24px;
    background: #fafbfc;
    border-bottom: 1px solid var(--sh-border-subtle);
}
.sh-form-section-head h3 {
    font-family: var(--sh-font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 4px;
    display: flex; align-items: center; gap: 10px;
}
.sh-form-section-head h3 i { color: var(--sh-primary); font-size: 0.875rem; }
.sh-form-section-head p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--sh-text-muted);
}
.sh-form-section-body { padding: 24px; }

.sh-field {
    margin-bottom: 0;
}
.sh-field label,
.sh-field .form-label {
    font-family: var(--sh-font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sh-text);
    margin-bottom: 8px;
    display: block;
}
.sh-field .form-control,
.sh-field .form-select {
    background: #ffffff;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-xs);
    padding: 11px 14px;
    font-size: 0.9375rem;
    transition: all var(--sh-transition);
}
.sh-field .form-control:focus,
.sh-field .form-select:focus {
    background: #fff;
    border-color: var(--sh-primary);
    box-shadow: 0 0 0 3px var(--sh-primary-light);
}

.sh-form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    background: #fafbfc;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-md);
    position: sticky;
    bottom: 16px;
    z-index: 10;
    box-shadow: 0 -4px 24px rgba(17,24,39,0.06);
}

.sh-alert-modern {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--sh-radius-sm);
    font-size: 0.875rem;
    margin-bottom: 20px;
}
.sh-alert-modern.danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}
.sh-alert-modern i { margin-top: 2px; }

.sh-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--sh-text-muted);
}
.sh-empty-state i {
    font-size: 2.5rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}
.sh-empty-state h3 {
    font-family: var(--sh-font-display);
    font-size: 1.125rem;
    color: var(--sh-text);
    margin-bottom: 8px;
}

/* Toggle cards — reusable checkbox tiles (item behaviour, settings) */
.sh-toggle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.sh-toggle-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--sh-border, #e2e8f0);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    margin: 0;
}
.sh-toggle-card:hover {
    border-color: #94a3b8;
}
.sh-toggle-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--sh-primary, #4f46e5);
    flex: 0 0 auto;
}
.sh-toggle-card span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.35;
}
.sh-toggle-card span strong {
    font-size: .92rem;
    color: var(--sh-text, #1e293b);
}
.sh-toggle-card span small {
    color: var(--sh-text-muted, #64748b);
    font-size: .78rem;
}
.sh-toggle-card:has(input:checked) {
    border-color: var(--sh-primary, #4f46e5);
    background: #f5f3ff;
    box-shadow: 0 0 0 1px var(--sh-primary, #4f46e5) inset;
}

/* Industry preset chips */
.sh-preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}
.sh-preset-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--sh-border, #e2e8f0);
    background: #fff;
    font-size: .85rem;
    font-weight: 600;
    color: var(--sh-text, #1e293b);
    cursor: pointer;
    transition: all .15s ease;
}
.sh-preset-chip:hover { border-color: #94a3b8; }
.sh-preset-chip.active {
    border-color: var(--sh-primary, #4f46e5);
    background: var(--sh-primary, #4f46e5);
    color: #fff;
}

/* Legacy views — white canvas alignment */
.sh-content > .container-fluid {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}
