body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f1f5f9;
    color: #1f2937;
}

.main-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: #0f172a;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar .logo {
    font-size: 22px;
    font-weight: 700;
    padding: 18px 20px;
    background: #020617;
    text-align: center;
    letter-spacing: 0.5px;
}

.sidebar a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.sidebar a:hover {
    background: #1e293b;
    color: #fff;
}

.content {
    margin-left: 240px;
    width: calc(100% - 240px);
}

.topbar {
    background: #fff;
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-box {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    margin-bottom: 20px;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #0f172a;
}

.stat-card .stat-title {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 30px;
    font-weight: 700;
    color: #0f172a;
}

.table-custom {
    margin-bottom: 0;
    background: #fff;
}

.table-custom thead th {
    background: #e8e8e8;
    color: #334155;
    font-weight: 600;
}

.form-control,
.form-select {
    border-radius: 10px;
    min-height: 44px;
    border: 1px solid #dbe2ea;
}

.form-control:focus,
.form-select:focus {
    box-shadow: none;
    border-color: #2563eb;
}

.btn {
    border-radius: 10px;
    min-height: 42px;
    padding-left: 16px;
    padding-right: 16px;
}

.login-page {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
    padding: 30px;
}

@media (max-width: 991px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .content {
        margin-left: 0;
        width: 100%;
    }

    .main-wrapper {
        display: block;
    }

    .sidebar a {
        padding: 10px 14px;
    }
}
/* ===== ERP HYBRID LAYOUT ===== */
body {
    margin: 0;
    background: #f7fafc;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #1f2937;
}

.erp-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.erp-sidebar {
    width: 255px;
    background: #ffffff;
    border-right: 1px solid #e5edf5;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1040;
    transition: transform 0.25s ease;
}

.erp-sidebar-brand {
    padding: 18px 20px;
    border-bottom: 1px solid #eef2f7;
    font-size: 1.2rem;
    font-weight: 700;
}

.erp-sidebar-brand a {
    text-decoration: none;
    color: #0f172a;
}

.erp-sidebar-section {
    padding: 14px 12px 4px;
}

.erp-sidebar-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 10px 8px;
    letter-spacing: 0.5px;
}

.erp-sidebar-link {
    display: block;
    text-decoration: none;
    color: #334155;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.erp-sidebar-link:hover {
    background: #eff6ff;
    color: #0369a1;
}

.erp-sidebar-link.active {
    background: #e0f2fe;
    color: #075985;
    font-weight: 600;
}

/* Main area */
.erp-main {
    margin-left: 255px;
    width: calc(100% - 255px);
    min-height: 100vh;
}

/* Topbar */
.erp-topbar {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e5edf5;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.erp-topbar-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

/* Content */
.erp-content {
    padding: 22px;
}

/* Cards */
.card-box {
    background: #ffffff;
    border: 1px solid #e5edf5;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    margin-bottom: 20px;
}

.page-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 10px;
    border: 1px solid #d7e0ea;
    min-height: 44px;
}

.form-control:focus,
.form-select:focus {
    border-color: #7dd3fc;
    box-shadow: 0 0 0 0.15rem rgba(14, 165, 233, 0.12);
}

/* Buttons */
.btn-primary {
    background: #0ea5e9;
    border-color: #0ea5e9;
}

.btn-primary:hover {
    background: #0284c7;
    border-color: #0284c7;
}

/* Tables */
.table-custom thead th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 991.98px) {
    .erp-sidebar {
        transform: translateX(-100%);
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    }

    .erp-sidebar.show {
        transform: translateX(0);
    }

    .erp-main {
        margin-left: 0;
        width: 100%;
    }

    .erp-content {
        padding: 16px;
    }
}
/* ===== ERP LAYOUT ===== */
body {
    margin: 0;
    background: #f7fafc;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #1f2937;
}

.erp-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.erp-sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e5edf5;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1040;
    transition: transform 0.25s ease;
}

.erp-sidebar-brand {
    padding: 18px 20px;
    border-bottom: 1px solid #eef2f7;
    font-size: 1.2rem;
    font-weight: 700;
}

.erp-sidebar-brand a {
    text-decoration: none;
    color: #0f172a;
}

.erp-sidebar-section {
    padding: 10px 10px 2px;
}

.erp-sidebar-toggle {
    width: 100%;
    border: 0;
    background: #e8e8e8;
    color: #334155;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.erp-sidebar-toggle:hover {
    background: #eff6ff;
    color: #0369a1;
}

.erp-sidebar-toggle .erp-caret {
    transition: transform 0.2s ease;
}

.erp-sidebar-toggle.collapsed .erp-caret {
    transform: rotate(-90deg);
}

.erp-sidebar-submenu {
    padding: 2px 0 6px 0;
}

.erp-sidebar-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: #334155;
    padding: 12px 14px;
    margin-bottom: 4px;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.erp-sidebar-link:hover {
    background: #eef6ff;
    color: #075985;
}

.erp-sidebar-link.active {
    background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(14, 165, 233, 0.22);
}

/* Main area */
.erp-main {
    margin-left: 260px;
    width: calc(100% - 260px);
    min-height: 100vh;
}

/* Topbar */
.erp-topbar {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e5edf5;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.erp-topbar-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

/* Content */
.erp-content {
    padding: 22px;
}

/* Cards */
.card-box {
    background: #ffffff;
    border: 1px solid #e5edf5;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    margin-bottom: 20px;
}

.page-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 10px;
    border: 1px solid #d7e0ea;
    min-height: 44px;
}

.form-control:focus,
.form-select:focus {
    border-color: #7dd3fc;
    box-shadow: 0 0 0 0.15rem rgba(14, 165, 233, 0.12);
}

/* Buttons */
.btn-primary {
    background: #0ea5e9;
    border-color: #0ea5e9;
}

.btn-primary:hover {
    background: #0284c7;
    border-color: #0284c7;
}

/* Tables */
.table-custom thead th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 991.98px) {
    .erp-sidebar {
        transform: translateX(-100%);
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    }

    .erp-sidebar.show {
        transform: translateX(0);
    }

    .erp-main {
        margin-left: 0;
        width: 100%;
    }

    .erp-content {
        padding: 16px;
    }
}
.stat-card {
    text-align: left;
}

.stat-title {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.mini-stat-box {
    text-align: left;
    border-left: 4px solid #0ea5e9;
}

.mini-stat-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 600;
}

.mini-stat-number {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.h-100 {
    height: 100%;
}
.stock-quick-view {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0c4a6e;
    font-weight: 700;
}