/* ==========================================================================
   Simple Inventory - Enterprise SaaS/ERP Frontend Stylesheet
   Framework: Bootstrap 5.3.2 + Bootstrap Icons + CSS Custom Properties
   ========================================================================== */

:root {
    --primary: #3e48a7;
    --primary-hover: #2f3887;
    --primary-soft: rgba(62, 72, 167, 0.09);
    --accent: #e21b1b;
    --accent-hover: #be1414;
    --accent-soft: rgba(226, 27, 27, 0.09);
    --ink: #0b1120;
    --ink-elevated: #141d33;
    --ink-border: rgba(255, 255, 255, 0.11);
    --text-main: #0f172a;
    --text-body: #334155;
    --text-muted: #5b687c;
    --bg-canvas: #f4f6fa;
    --surface: #ffffff;
    --surface-subtle: #eef2f7;
    --border: #dce2ec;
    --border-strong: #c3cddb;
    --success: #15803d;
    --success-bg: #f0fdf4;
    --success-border: #bbf7d0;
    --danger: #b91c1c;
    --danger-bg: #fef2f2;
    --danger-border: #fecaca;
    --warning: #b45309;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --shadow-xs: 0 1px 3px rgba(11, 17, 32, 0.05);
    --shadow-sm: 0 6px 18px -4px rgba(11, 17, 32, 0.07), 0 2px 6px -1px rgba(11, 17, 32, 0.04);
    --shadow-md: 0 20px 42px -14px rgba(11, 17, 32, 0.14), 0 4px 12px -2px rgba(11, 17, 32, 0.06);
    --shadow-dark: 0 28px 60px -16px rgba(0, 0, 0, 0.55);
}

/* --------------------------------------------------------------------------
   Base & Reset of Legacy style.min.css Rules
   -------------------------------------------------------------------------- */
html,
body {
    background-color: var(--bg-canvas);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.fe-main section {
    overflow: visible;
}

.fe-main p {
    color: var(--text-body);
    font-family: inherit;
}

a[href],
button:not(:disabled),
summary,
select:not(:disabled),
label[for],
input[type="checkbox"]:not(:disabled),
input[type="radio"]:not(:disabled),
[role="button"] {
    cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
    cursor: not-allowed;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   1. Sticky Header & Navbar (Overrides Legacy .navbar ul hide rule)
   -------------------------------------------------------------------------- */
.fe-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.fe-navbar {
    min-height: 72px;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.fe-navbar .navbar-collapse .navbar-nav {
    display: flex !important;
}

.fe- navbar ul > li {
    padding: 0 !important;
}

.fe-navbar .navbar-nav > li {
    padding: 0 !important;
}

.fe-navbar .navbar-nav > li > a::before {
    display: none !important;
}

.fe-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--ink);
}

.fe-brand:hover {
    color: var(--ink);
}

.fe-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background-color: var(--ink);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    border-bottom: 3px solid var(--accent);
}

.fe-brand-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.2;
}

.fe-brand-tag {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

.fe-nav-list {
    gap: 0.25rem;
}

.fe-nav-link {
    display: inline-flex !important;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 0.9rem !important;
    border-radius: var(--radius-sm);
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--text-main) !important;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.fe-nav-link:hover,
.fe-nav-link.active {
    background-color: var(--surface-subtle);
    color: var(--primary) !important;
}

.fe-nav-link.active {
    box-shadow: inset 0 -2px 0 var(--primary);
}

.fe-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-sm);
    background-color: var(--accent);
    border: 1px solid var(--accent);
    color: #ffffff !important;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.fe-nav-cta:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff !important;
}

.fe-toggler {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background-color: var(--surface);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.custom-bottom-navbar {
    background-color: var(--ink) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    z-index: 1025;
}

.custom-bottom-navbar .nav__link {
    color: #cbd5e1 !important;
    min-height: 48px;
}

.custom-bottom-navbar .nav__link.active,
.custom-bottom-navbar .nav__link:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   2. Structured Multi-Column Footer
   -------------------------------------------------------------------------- */
.fe-footer {
    background-color: var(--ink) !important;
    color: #cbd5e1 !important;
    border-top: 3px solid var(--accent);
    padding: 0 !important;
}

.fe-footer-top {
    padding: 3.5rem 0 2.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fe-footer-brand {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.fe-footer-sub {
    font-size: 0.78rem;
    color: #94a3b8;
    display: block;
}

.fe-footer-desc {
    color: #cbd5e1 !important;
    font-size: 0.88rem;
    line-height: 1.65;
    margin-top: 0.9rem;
    margin-bottom: 1.25rem;
    max-width: 360px;
}

.fe-footer-heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
    margin-bottom: 1rem;
}

.fe-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fe-footer-links li {
    margin-bottom: 0.5rem;
}

.fe-footer-links a {
    color: #cbd5e1;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    transition: color 0.15s ease;
}

.fe-footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.fe-social-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.fe-social-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}

.fe-footer-bottom {
    background-color: #070b15;
    padding: 1.25rem 0;
    font-size: 0.84rem;
    color: #94a3b8;
}

.fe-footer-bottom a {
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .fe-footer-bottom {
        padding-bottom: 4.75rem;
    }
}

/* --------------------------------------------------------------------------
   3. Homepage Section 1: Dark-Slate Architectural Hero & ERP Command Mockup
   -------------------------------------------------------------------------- */
.erp-hero {
    background: linear-gradient(160deg, var(--ink) 0%, var(--ink-elevated) 65%, #1d2658 100%);
    color: #f8fafc;
    padding: clamp(3rem, 6vw, 5.25rem) 0;
    border-bottom: 1px solid var(--ink-border);
}

.erp-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.erp-hero-title {
    font-size: clamp(2.15rem, 4.2vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 1.15rem;
}

.erp-hero-title span {
    color: #93c5fd;
}

.erp-hero-lead {
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    line-height: 1.68;
    color: #cbd5e1 !important;
    margin-bottom: 2rem;
    max-width: 580px;
}

.erp-btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.8rem 1.55rem;
    border-radius: var(--radius-sm);
    background-color: var(--accent);
    border: 1px solid var(--accent);
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.erp-btn-accent:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff !important;
}

.erp-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.8rem 1.4rem;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.erp-btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff !important;
}

.erp-hero-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.25rem;
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ink-border);
}

.erp-spec-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: #e2e8f0;
}

.erp-spec-item i {
    color: #4ade80;
    font-size: 1rem;
}

/* ERP Command Window Mockup */
.erp-console-window {
    background-color: #111827;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-dark);
    overflow: hidden;
}

.erp-console-topbar {
    background-color: #070b14;
    padding: 0.75rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.erp-console-route {
    font-family: monospace;
    font-size: 0.78rem;
    color: #93c5fd;
    background-color: rgba(147, 197, 253, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.erp-console-body {
    padding: 1.25rem;
}

.erp-console-kpi {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    height: 100%;
}

.erp-console-kpi-lbl {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.erp-console-kpi-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.erp-console-table-wrap {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.erp-console-table {
    margin-bottom: 0;
    font-size: 0.82rem;
}

.erp-console-table thead th {
    background-color: var(--surface-subtle);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid var(--border);
}

.erp-console-table tbody td {
    padding: 0.6rem 0.85rem;
    color: var(--text-main);
    border-color: var(--border);
    vertical-align: middle;
}

.erp-console-footer {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.erp-console-footer img {
    background-color: #ffffff;
    border-radius: var(--radius-sm);
    padding: 0.25rem;
    flex-shrink: 0;
}

.erp-console-footer-text {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.45;
}

.erp-console-footer-text strong {
    color: #ffffff;
    display: block;
}

/* Badges */
.fe-pill {
    display: inline-block;
    padding: 0.16rem 0.55rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
}

.fe-pill-ok {
    background-color: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.fe-pill-warn {
    background-color: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger-border);
}

.fe-pill-info {
    background-color: var(--primary-soft);
    color: var(--primary);
    border: 1px solid rgba(62, 72, 167, 0.25);
}

/* --------------------------------------------------------------------------
   4. Homepage Section 2: Interactive 4-Tab Workspace Explorer
   -------------------------------------------------------------------------- */
.fe-section {
    padding: clamp(3.25rem, 5.5vw, 5rem) 0;
}

.fe-section-surface {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.fe-section-eyebrow {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 0.45rem;
}

.fe-section-title {
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 0.65rem;
}

.fe-section-lead {
    font-size: 1.02rem;
    color: var(--text-muted) !important;
    max-width: 700px;
    line-height: 1.62;
}

.erp-tab-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
    background-color: var(--surface-subtle);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.erp-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-body);
    font-size: 0.88rem;
    font-weight: 700;
    text-align: left;
    transition: all 0.15s ease;
}

.erp-tab-btn:hover {
    color: var(--ink);
    background-color: rgba(255, 255, 255, 0.6);
}

.erp-tab-btn.active {
    background-color: var(--surface);
    color: var(--primary);
    border-color: var(--border);
    box-shadow: var(--shadow-xs);
}

.erp-tab-pane-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
    box-shadow: var(--shadow-sm);
}

.erp-check-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.5rem;
}

.erp-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.92rem;
    color: var(--text-body);
}

.erp-check-list li:last-child {
    border-bottom: none;
}

.erp-check-list li i {
    color: var(--success);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.erp-ui-mockup {
    background-color: var(--bg-canvas);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.erp-ui-mockup-head {
    background-color: var(--ink);
    color: #ffffff;
    padding: 0.75rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
}

.erp-ui-mockup-body {
    padding: 1.25rem;
}

.erp-receipt-box {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.15rem;
}

.erp-receipt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.85rem;
}

.erp-receipt-row:last-child {
    border-bottom: none;
}

.erp-barcode-bars {
    height: 36px;
    background: repeating-linear-gradient(
        90deg,
        #0f172a 0,
        #0f172a 3px,
        transparent 3px,
        transparent 6px,
        #0f172a 6px,
        #0f172a 7px,
        transparent 7px,
        transparent 11px
    );
    border-radius: 3px;
    margin-bottom: 0.35rem;
}

/* --------------------------------------------------------------------------
   5. Homepage Section 3: 5-Stage End-to-End Architecture Pipeline
   -------------------------------------------------------------------------- */
.fe-flow-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    height: 100%;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
}

.fe-flow-step {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--primary);
    background-color: var(--primary-soft);
    padding: 0.22rem 0.55rem;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    width: fit-content;
}

.fe-flow-card h3 {
    font-size: 1.04rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.45rem;
}

.fe-flow-card p {
    font-size: 0.87rem;
    line-height: 1.55;
    margin-bottom: 0.85rem;
}

.fe-flow-foot {
    margin-top: auto;
    padding-top: 0.7rem;
    border-top: 1px dashed var(--border);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-main);
}

/* --------------------------------------------------------------------------
   6. Homepage Section 4: Complete 24-Module Master Directory Grid
   -------------------------------------------------------------------------- */
.erp-domain-block {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(1.35rem, 3vw, 2rem);
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-xs);
}

.erp-domain-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 1.15rem;
    margin-bottom: 1.35rem;
    border-bottom: 1px solid var(--border);
}

.erp-domain-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.erp-domain-title i {
    color: var(--primary);
}

.erp-module-tile {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-canvas);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    height: 100%;
    text-decoration: none;
    color: var(--text-main);
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.erp-module-tile:hover {
    background-color: var(--surface);
    border-color: var(--primary);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xs);
}

.erp-module-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.erp-module-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background-color: var(--surface);
    border: 1px solid var(--border);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.erp-module-route {
    font-family: monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    background-color: var(--surface);
    border: 1px solid var(--border);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.erp-module-tile h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.erp-module-tile p {
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--text-muted) !important;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   7. Homepage Section 5: Isolation Comparison & Warranty Serial Matrix
   -------------------------------------------------------------------------- */
.erp-compare-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-xs);
}

.erp-compare-head {
    background-color: var(--ink);
    color: #ffffff;
    padding: 1.1rem 1.35rem;
}

.erp-compare-head h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.fe-state-box {
    border-radius: var(--radius-md);
    padding: 1.35rem;
    height: 100%;
    border: 1px solid var(--border);
}

.fe-state-blocked {
    background-color: var(--danger-bg);
    border-color: var(--danger-border);
}

.fe-state-open {
    background-color: var(--success-bg);
    border-color: var(--success-border);
}

.fe-state-chip {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.8rem;
    font-size: 0.84rem;
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   8. Homepage Section 6: Technical Stack & Enterprise Closing Banner
   -------------------------------------------------------------------------- */
.erp-cta-banner {
    background: linear-gradient(150deg, var(--ink) 0%, var(--ink-elevated) 100%);
    color: #ffffff;
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 4vw, 3.25rem);
    box-shadow: var(--shadow-md);
}

.erp-cta-banner p {
    color: #cbd5e1 !important;
}

.erp-stack-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #f8fafc;
    height: 100%;
}

.erp-stack-badge i {
    color: #93c5fd;
    font-size: 1.1rem;
}

/* Buttons */
.fe-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.72rem 1.45rem;
    border-radius: var(--radius-sm);
    background-color: var(--accent);
    border: 1px solid var(--accent);
    color: #ffffff !important;
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.fe-btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff !important;
}

.fe-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.72rem 1.35rem;
    border-radius: var(--radius-sm);
    background-color: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--ink) !important;
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.fe-btn-outline:hover {
    background-color: var(--surface-subtle);
    border-color: var(--ink);
    color: var(--ink) !important;
}

/* --------------------------------------------------------------------------
   9. QR Print Page: Screen Workspace & Strict @media print
   -------------------------------------------------------------------------- */
.fe-qr-page {
    padding: clamp(2rem, 4vw, 3.25rem) 0 4rem;
}

.fe-qr-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.fe-qr-card-head {
    background-color: var(--ink);
    color: #ffffff;
    padding: 1.35rem 1.5rem;
    border-bottom: 3px solid var(--accent);
}

.fe-qr-card-head p {
    color: #cbd5e1 !important;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.fe-dropzone {
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-md);
    background-color: var(--bg-canvas);
    padding: clamp(1.5rem, 3.5vw, 2.25rem) 1.25rem;
    text-align: center;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.fe-dropzone:hover,
.fe-dropzone:focus-within,
.fe-dropzone.dragover {
    border-color: var(--primary);
    background-color: var(--primary-soft);
}

.fe-dropzone-label {
    display: block;
    width: 100%;
    margin: 0;
}

.fe-dropzone-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background-color: var(--surface);
    border: 1px solid var(--border);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 0.75rem;
}

.fe-file-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.5rem;
}

.fe-file-badge {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background-color: var(--danger-bg);
    color: var(--danger);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fe-remove-btn {
    min-width: 36px;
    min-height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--danger-border);
    background-color: var(--danger-bg);
    color: var(--danger);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fe-remove-btn:hover {
    background-color: var(--danger);
    color: #ffffff;
}

.fe-mode-label {
    position: relative;
    display: block;
    height: 100%;
}

.fe-mode-label input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.fe-mode-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--surface);
    height: 100%;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.fe-mode-label input[type="radio"]:checked + .fe-mode-card {
    border-color: var(--primary);
    background-color: var(--primary-soft);
}

.fe-mode-label input[type="radio"]:focus-visible + .fe-mode-card {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.fe-print-sheet {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.fe-label-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.85rem;
}

.fe-label-cell {
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    text-align: center;
    background-color: var(--surface);
}

.fe-label-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--ink);
    word-break: break-word;
}

.fe-label-meta {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    html,
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }

    #header,
    .fe-header,
    #footer,
    .fe-footer,
    .custom-bottom-navbar,
    .back-to-top,
    .no-print,
    .fe-qr-controls,
    button,
    .btn {
        display: none !important;
    }

    .fe-qr-page,
    .container,
    .row,
    [class*="col-"] {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .fe-print-sheet {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .fe-label-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8mm !important;
    }

    .fe-label-cell {
        border: 1px solid #000000 !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
}

/* --------------------------------------------------------------------------
   10. Module Directory Live Search
   -------------------------------------------------------------------------- */
.erp-module-search-bar {
    width: 100%;
    max-width: 360px;
    flex-shrink: 0;
}

.erp-module-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.erp-module-search-icon {
    position: absolute;
    left: 0.9rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.erp-module-search-input {
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 2.5rem 0.55rem 2.45rem;
    font-size: 0.9rem;
    color: var(--ink);
    background-color: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    appearance: none;
}

.erp-module-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.erp-module-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(62, 72, 167, 0.15);
}

.erp-module-search-clear {
    position: absolute;
    right: 0.45rem;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.erp-module-search-clear:hover {
    background-color: var(--bg-canvas);
    color: var(--ink);
}

.erp-module-search-clear:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

.erp-module-search-meta {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: right;
}

.erp-module-empty {
    background-color: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.5rem;
    text-align: center;
}

@media (max-width: 991.98px) {
    .erp-module-search-bar {
        max-width: 100%;
    }

    .erp-module-search-meta {
        text-align: left;
    }
}

/* --------------------------------------------------------------------------
   11. Responsive Breakpoints & Reduced Motion
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .erp-tab-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .erp-tab-nav,
    .erp-hero-specs {
        grid-template-columns: 1fr;
    }

    .erp-btn-accent,
    .erp-btn-ghost,
    .fe-btn-primary,
    .fe-btn-outline {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
