/* =======================================================
   VAP SYSTEM - KIOTVIET STYLE CSS
   Theme: Minimalist, Flat, Professional
   Primary Color: VAP Blue
   ======================================================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    /* VAP Brand Colors */
    --vpos-primary: #1877F2;       /* VAP Blue */
    --vpos-primary-hover: #166FE5;
    --vpos-primary-light: #E7F3FF;
    --vpos-accent: #1877F2;
    
    /* Layout Colors (KiotViet Style) */
    --vpos-bg-body: #F0F2F5;       /* Solid Light Gray */
    --vpos-surface: #FFFFFF;
    --vpos-border: #E0E0E0;
    
    /* Text */
    --vpos-text-main: #333333;
    --vpos-text-muted: #666666;
    
    /* Semantic */
    --vpos-success: #28A745;
    --vpos-danger: #DC3545;
    --vpos-warning: #FFC107;
    
    /* Box Styles */
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-flat: 0 2px 10px rgba(0,0,0,0.03);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --transition-fast: all 0.15s ease-in-out;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    background-color: var(--vpos-bg-body);
    color: var(--vpos-text-main);
}

.vpos-wrapper {
    padding: 16px !important;
}

/* =======================================================
   1. NAVBAR (KIOTVIET STYLE TOP NAV)
   ======================================================= */
header, .main-nav-bar, .navbar {
    background: var(--vpos-primary) !important; /* Top nav is solid primary color */
    border-bottom: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    padding: 0 !important;
}
.navbar-brand {
    font-weight: 700;
    font-size: 20px;
    color: #FFFFFF !important;
}
.navbar-brand .text-accent {
    color: #FFFFFF;
}

.main-nav-bar .nav-link, .navbar-nav .nav-link, header .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500 !important;
    font-size: 14px;
    padding: 14px 16px !important;
    margin: 0;
    border-radius: 0;
    transition: var(--transition-fast);
}
.main-nav-bar .nav-link:hover {
    color: #FFFFFF !important;
    background: rgba(0,0,0,0.1);
}

.dropdown-menu {
    border: 1px solid var(--vpos-border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 4px 0;
    margin-top: 0 !important;
    background: #FFFFFF;
}
.dropdown-item {
    padding: 10px 20px;
    font-weight: 400;
    font-size: 14px;
    color: var(--vpos-text-main);
}
.dropdown-item:hover {
    background: var(--vpos-bg-body);
    color: var(--vpos-primary);
}

.user-pill {
    background: rgba(0,0,0,0.2) !important;
    border: none;
    border-radius: 20px;
    padding: 4px 12px !important;
    color: #FFFFFF !important;
}
.user-pill:hover {
    background: rgba(0,0,0,0.3) !important;
}

/* =======================================================
   2. CONTAINERS & CARDS
   ======================================================= */
.vpos-card, .spreadsheet-wrapper {
    background: var(--vpos-surface);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    margin-bottom: 16px;
    overflow: hidden;
}
.vpos-card-header, .spreadsheet-ribbon {
    background: var(--vpos-surface) !important;
    color: var(--vpos-text-main) !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid var(--vpos-border);
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}
.vpos-card-header h5, .spreadsheet-ribbon h5 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
}
.vpos-card-header h5 i, .spreadsheet-ribbon h5 i {
    color: var(--vpos-primary);
    margin-right: 8px;
}

/* =======================================================
   3. DATA TABLES (SOFTER GRID)
   ======================================================= */
.vpos-table-wrapper, .vaptable-wrapper {
    width: 100%;
    overflow-x: auto;
}
.vpos-table, .excel-grid {
    width: 100% !important;
    border-collapse: collapse !important;
}
.vpos-table th, .excel-grid thead th {
    background: #F8FAFC !important;
    color: var(--vpos-text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 14px 16px;
    border-bottom: 1px solid var(--vpos-border);
    text-transform: uppercase;
}
.vpos-table td, .excel-grid tbody td {
    padding: 14px 16px !important;
    border-bottom: 1px dashed var(--vpos-border);
    vertical-align: middle;
    background: var(--vpos-surface);
    font-size: 14px;
}
.vpos-table tbody tr:last-child td, .excel-grid tbody tr:last-child td {
    border-bottom: none;
}
.vpos-table tbody tr:hover td, .excel-grid tbody tr:hover td {
    background: var(--vpos-primary-light) !important;
}

/* Buttons */
.btn-primary {
    background: var(--vpos-primary) !important;
    border: 1px solid var(--vpos-primary) !important;
    color: #fff !important;
    box-shadow: none !important;
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.btn-primary:hover {
    background: var(--vpos-primary-hover) !important;
    border-color: var(--vpos-primary-hover) !important;
}

.btn-grid-custom {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--vpos-border);
    background: var(--vpos-surface);
    color: var(--vpos-text-muted);
    transition: var(--transition-fast);
}
.btn-grid-custom:hover {
    background: var(--vpos-primary-light);
    color: var(--vpos-primary);
    border-color: var(--vpos-primary);
}

/* =======================================================
   KV EXACT STYLES (NAVBAR, SIDEBAR, CONTENT)
   ======================================================= */
.kv-navbar {
    background-color: var(--vpos-primary);
    padding: 0;
    min-height: 48px;
}
.kv-brand-text {
    color: white;
    font-weight: 700;
    font-size: 18px;
    margin-left: 10px;
}
.kv-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}
.kv-nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px;
    font-weight: 500;
    padding: 14px 16px !important;
    transition: background-color 0.2s;
}
.kv-nav-link i {
    margin-right: 4px;
}
.kv-nav-link:hover, .kv-nav-link:focus {
    color: white !important;
    background-color: rgba(0, 0, 0, 0.15);
}
.kv-dropdown-menu {
    border: 1px solid var(--vpos-border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 0 !important;
    padding: 4px 0;
}
.kv-dropdown-menu .dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
}
.kv-dropdown-menu .dropdown-item:hover {
    background-color: var(--vpos-bg-body);
    color: var(--vpos-primary);
}
.kv-btn-pos {
    background-color: #00A65A; /* Green POS button in KV */
    color: white;
    font-weight: 600;
    font-size: 13px;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    transition: 0.2s;
}
.kv-btn-pos:hover {
    background-color: #008D4C;
    color: white;
}

.kv-main-container {
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    min-height: calc(100vh - 50px);
}
.kv-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #FFFFFF;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}
.kv-sidebar-group {
    border-bottom: 1px solid #F0F2F5;
}
.kv-sidebar-group-header {
    padding: 14px 16px;
    font-weight: 700;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #F8FAFC;
}
.kv-sidebar-group-content {
    padding: 8px 0;
}
.kv-filter-item {
    display: flex;
    align-items: center;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 13px;
    color: #4B5563;
}
.kv-filter-item:hover {
    background-color: #F0F5FF;
    color: var(--vpos-primary);
}
.kv-filter-item input[type="checkbox"], .kv-filter-item input[type="radio"] {
    margin-right: 10px;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.kv-content {
    flex-grow: 1;
    min-width: 0;
    background: #FFFFFF;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.kv-toolbar {
    padding: 12px 16px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #FFFFFF;
}
.kv-page-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}
.kv-search-box {
    flex-grow: 1;
    max-width: 400px;
    position: relative;
}
.kv-search-box input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
}
.kv-search-box input:focus {
    border-color: var(--vpos-primary);
}
.kv-search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
}
.kv-btn-green {
    background-color: #00A65A;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.kv-btn-green:hover {
    background-color: #008D4C;
    color: white;
}
.kv-table-container {
    width: 100%;
    overflow-x: auto;
}
.kv-table {
    width: 100%;
    border-collapse: collapse;
}
.kv-table th {
    background: #F4F6F8;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 12px;
    border-bottom: 1px solid #D1D5DB;
    white-space: nowrap;
}
.kv-table td {
    padding: 10px 12px;
    font-size: 13px;
    border-bottom: 1px solid #F0F2F5;
    color: #333;
    vertical-align: middle;
}
.kv-table tbody tr:hover td {
    background-color: #FFFBEB; /* KV style light yellow highlight */
}
.kv-table td.checkbox-col, .kv-table th.checkbox-col {
    width: 40px;
    text-align: center;
}

/* =======================================================
   4. POS SCREEN (KV STYLE)
   ======================================================= */
.pos-layout {
    display: flex;
    height: calc(100vh - 56px); /* 56px is roughly the navbar height */
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--vpos-bg-body);
}

/* Left Panel - Products */
.pos-products {
    flex: 6.5;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px;
    padding-right: 8px;
}

.pos-search-bar {
    background: var(--vpos-surface);
    border-radius: var(--radius-sm);
    padding: 4px;
    border: 1px solid var(--vpos-border);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}
.pos-search-bar input {
    border: none;
    background: transparent;
    font-size: 15px;
    padding: 10px 16px;
    width: 100%;
    outline: none;
}
.pos-search-bar button {
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    font-weight: 500;
    font-size: 14px;
}

/* Product List / Grid */
.pos-product-list {
    flex: 1;
    overflow-y: auto;
    background: var(--vpos-surface);
    border: 1px solid var(--vpos-border);
    border-radius: var(--radius-sm);
}
.product-row-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--vpos-border);
    transition: background 0.1s;
}
.product-row-card:hover {
    background: var(--vpos-primary-light);
}
.product-info {
    flex: 1;
}
.product-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--vpos-text-main);
    margin-bottom: 4px;
}
.product-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 13px;
}
.product-price {
    font-weight: 700;
    color: var(--vpos-primary);
}

/* Square Add Button */
.btn-add-kv {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--vpos-surface);
    border: 1px solid var(--vpos-primary);
    color: var(--vpos-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-fast);
}
.btn-add-kv:hover {
    background: var(--vpos-primary);
    color: #fff;
}

/* Right Panel - Cart */
.pos-cart {
    flex: 3.5;
    height: 100%;
    padding: 16px;
    padding-left: 8px;
}
.cart-floating-panel {
    background: var(--vpos-surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--vpos-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.cart-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--vpos-border);
    background: #FAFAFA;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}
.cart-item-kv {
    padding: 12px 16px;
    border-bottom: 1px dashed var(--vpos-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cart-item-kv-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.cart-item-kv-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--vpos-text-main);
}
.cart-item-kv-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-qty-input {
    width: 60px;
    text-align: center;
    border: 1px solid var(--vpos-border);
    border-radius: var(--radius-sm);
    padding: 4px;
    font-size: 13px;
}

.cart-footer {
    padding: 16px;
    border-top: 2px solid var(--vpos-border);
    background: #FAFAFA;
}
.pos-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.total-label {
    font-size: 16px;
    font-weight: 500;
}
.total-massive {
    font-size: 28px;
    font-weight: 700;
    color: var(--vpos-primary);
}

/* KV Checkout Button */
.btn-checkout-kv {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    background: var(--vpos-success);
    color: white;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}
.btn-checkout-kv:hover:not([disabled]) {
    background: #218838;
}
.btn-checkout-kv:disabled {
    background: var(--vpos-border);
    color: var(--vpos-text-muted);
    cursor: not-allowed;
}

/* =======================================================
   5. MODAL
   ======================================================= */
.modal-content {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.modal-header {
    background: var(--vpos-primary);
    color: #fff;
    border-bottom: none;
    padding: 16px 24px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}
.modal-title {
    font-weight: 500;
    font-size: 18px;
}
.modal-body {
    padding: 24px;
}
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--vpos-border);
    background: #FAFAFA;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}
/* VAP SOLUTION - SPREADSHEET MODULE (Version 8.3) 
   Author: Vuong An Ph�t
   Style: Ribbon Blue x Search Toolbar
*/

.spreadsheet-wrapper {
    background: #fff;
    border: 1px solid var(--vpos-excel-grid);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    width: 100%;
}

/* THANH TI�U �? XANH �?M VAP */
.spreadsheet-ribbon {
    background: linear-gradient(90deg, #1e40af 0%, #1877F2 100%) !important;
    color: white;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}

    .spreadsheet-ribbon h5 {
        font-size: 13px;
        font-weight: 700;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.btn-create-ribbon {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    text-decoration: none;
}

/* THANH T�M KI?M TR?NG X�M */
.vpos-search-toolbar {
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid var(--vpos-excel-grid);
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box-group {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--vpos-excel-grid);
    border-radius: 4px;
    flex-grow: 1;
    max-width: 400px;
    height: 32px;
    padding: 0 10px;
}

    .search-box-group input {
        border: none !important;
        font-size: 12px;
        width: 100%;
        background: transparent;
        outline: none !important;
    }

.btn-vpos-search {
    background-color: var(--vpos-fb-blue);
    color: white;
    border: none;
    height: 32px;
    padding: 0 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
}

/* KH?I NH?P LI?U D�NG NGANG (VAP STYLE) */
.excel-form-grid-v3 {
    border-top: 1px solid var(--vpos-excel-grid);
}

.grid-row-v3 {
    display: flex;
    border-bottom: 1px solid var(--vpos-excel-grid);
    min-height: 38px;
}

.col-label-v3 {
    width: 160px;
    background-color: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    padding-left: 15px;
    border-right: 1px solid var(--vpos-excel-grid);
    flex-shrink: 0;
}

.col-input-v3 {
    flex: 1;
    display: flex;
    align-items: center;
}

.excel-input-v3 {
    width: 100%;
    height: 100%;
    border: none !important;
    padding: 0 15px !important;
    font-size: 13px;
    background: transparent;
    outline: none;
}

/* =======================================================
   6. MOBILE RESPONSIVE (Global)
   ======================================================= */
@media (max-width: 768px) {
    /* Hide on mobile utility */
    .hide-mobile, .hide-on-mobile {
        display: none !important;
    }

    /* Main Container & Sidebar */
    .kv-main-container {
        flex-direction: column !important;
    }
    .kv-sidebar {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #E5E7EB;
    }

    /* Toolbar */
    .kv-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px;
    }
    .kv-search-box {
        max-width: 100% !important;
        margin: 0 !important;
    }
    .kv-toolbar .ms-auto {
        margin-left: 0 !important;
        width: 100%;
        justify-content: space-between;
    }
    
    /* Table Container - Horizontal scroll */
    .kv-table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* POS Layout */
    .pos-layout {
        flex-direction: column !important;
        height: auto !important;
        min-height: calc(100vh - 56px);
    }
    .pos-products {
        flex: none !important;
        height: 60vh !important;
        padding-right: 16px !important;
    }
    .pos-cart {
        flex: none !important;
        height: 80vh !important;
        padding-left: 16px !important;
        border-left: none !important;
        border-top: 1px solid var(--vpos-border);
    }
}


/* ======================================================= */
/* AUTO-EXTRACTED STYLES FROM VIEWS */
/* ======================================================= */

/* Extracted from Login.cshtml */
:root {
            --vpos-primary: #0f172a;
            --vpos-primary-hover: #1e293b;
            --vpos-accent: #2563eb;
            --vpos-dark: #0f172a;
            --vpos-gray: #64748b;
        }

        body, html {
            height: 100%;
            margin: 0;
            font-family: 'Plus Jakarta Sans', sans-serif;
            background-color: #f8fafc;
        }

        
        /* ---------------------------------
           LOGIN REDESIGN (GLASSMORPHISM)
           --------------------------------- */
        .login-wrapper {
            display: flex;
            min-height: 100vh;
            width: 100%;
            background: #0f172a; 
        }

        /* Branding Section - Vibrant Animated Gradient */
        .login-brand {
            flex: 1.4;
            display: none;
            position: relative;
            background: linear-gradient(-45deg, #0f172a, #1e3a8a, #312e81, #0f172a);
            background-size: 400% 400%;
            animation: gradientBG 15s ease infinite;
            overflow: hidden;
            flex-direction: column;
            justify-content: center;
            padding: 5rem;
            color: white;
        }
        
        @keyframes gradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        @media (min-width: 992px) {
            .login-brand {
                display: flex;
            }
        }

        .shape-1 {
            position: absolute;
            top: -15%;
            left: -10%;
            width: 60vw;
            height: 60vw;
            background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(0,0,0,0) 60%);
            border-radius: 50%;
            filter: blur(80px);
            animation: floatShape 10s ease-in-out infinite alternate;
        }

        .shape-2 {
            position: absolute;
            bottom: -20%;
            right: -10%;
            width: 50vw;
            height: 50vw;
            background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, rgba(0,0,0,0) 60%);
            border-radius: 50%;
            filter: blur(80px);
            animation: floatShape 12s ease-in-out infinite alternate-reverse;
        }
        
        @keyframes floatShape {
            0% { transform: translate(0, 0) scale(1); }
            100% { transform: translate(50px, -50px) scale(1.1); }
        }

        .brand-content {
            position: relative;
            z-index: 10;
            max-width: 600px;
            margin: 0 auto;
            backdrop-filter: blur(10px);
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 40px;
            border-radius: 24px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        }

        .brand-title {
            font-size: 3.8rem;
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            letter-spacing: -2px;
            background: linear-gradient(135deg, #ffffff, #93c5fd);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .brand-subtitle {
            font-size: 1.2rem;
            font-weight: 400;
            color: #cbd5e1;
            line-height: 1.6;
            margin-bottom: 3rem;
        }

        .feature-item {
            opacity: 0.85;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 12px 16px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid transparent;
        }
        .feature-item:hover {
            opacity: 1;
            transform: translateX(10px);
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }

        /* Form Section */
        .login-form-container {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
            background: #ffffff;
            max-width: 100%;
            position: relative;
        }

        @media (min-width: 992px) {
            .login-form-container {
                max-width: 500px;
                background: #f8fafc;
            }
        }

        .login-form-box {
            width: 100%;
            max-width: 400px;
            background: #ffffff;
            padding: 40px 30px;
            border-radius: 24px;
            box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
            border: 1px solid rgba(226, 232, 240, 0.8);
        }

        .login-logo {
            height: 65px;
            width: auto;
            margin-bottom: 1.5rem;
            filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
            transition: transform 0.3s ease;
        }
        
        .login-logo:hover {
            transform: scale(1.05);
        }

        .form-title {
            font-size: 2rem;
            font-weight: 800;
            color: #0f172a;
            margin-bottom: 0.5rem;
            letter-spacing: -0.5px;
        }

        .form-subtitle {
            color: #64748b;
            font-size: 1rem;
            margin-bottom: 2.5rem;
        }

        /* Input Groups */
        .input-group-custom {
            border: 2px solid #e2e8f0;
            border-radius: 14px;
            background-color: #f8fafc;
            transition: all 0.3s ease;
            overflow: hidden;
            display: flex;
        }

        .input-group-custom:focus-within {
            background-color: #ffffff;
            border-color: #3b82f6;
            box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
        }

        .input-group-custom .input-group-text {
            background-color: transparent;
            border: none;
            color: #94a3b8;
            padding-left: 1.25rem;
            padding-right: 0.75rem;
            transition: color 0.3s;
            display: flex;
            align-items: center;
        }

        .input-group-custom:focus-within .input-group-text {
            color: #3b82f6;
        }

        .input-group-custom .form-control {
            border: none;
            padding: 1rem 1rem 1rem 0;
            font-size: 1rem;
            font-weight: 500;
            color: #0f172a;
            background-color: transparent;
            box-shadow: none !important;
            flex: 1;
        }

        .btn-login {
            background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
            color: white;
            border: none;
            padding: 1rem 1.5rem;
            border-radius: 14px;
            font-weight: 700;
            font-size: 1.1rem;
            width: 100%;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            margin-top: 2rem;
            box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
        }

        .btn-login:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
        }
        
        .btn-login i {
            transition: transform 0.3s ease;
        }
        .btn-login:hover i {
            transform: translateX(5px);
        }

        .form-check-input:checked {
            background-color: #3b82f6;
            border-color: #3b82f6;
        }

        .alert-custom {
            border-radius: 14px;
            background: #fef2f2;
            border: 1px solid #fecaca;
            color: #b91c1c;
            font-size: 0.9rem;
            padding: 1.25rem;
            margin-bottom: 2rem;
            display: flex;
            align-items: flex-start;
            gap: 12px;
            box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.1);
        }

        .footer-copyright {
            margin-top: 3rem;
            font-size: 0.85rem;
            color: #94a3b8;
            text-align: center;
            font-weight: 500;
        }

/* Extracted from Index.cshtml */
.bg-success-soft {
            background-color: #e8f5e9;
        }

        .bg-danger-soft {
            background-color: #ffebee;
        }
        /* Hiệu ứng khi hover vào dòng giúp người dùng biết mình đang chọn dòng nào */
        .table-hover tbody tr:hover td {
            background-color: #f8f9fa;
            cursor: pointer;
        }

/* Extracted from PostedList.cshtml */
.cursor-pointer {
        cursor: pointer;
    }

/* Extracted from DetailInventoty.cshtml */
.tracking-box {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        padding: 8px 10px;
        font-size: 12px;
        line-height: 1.5;
    }

    .export-list-container {
        border-left: 2px solid #cbd5e1;
        margin-left: 5px;
        padding-left: 8px;
        margin-top: 5px;
    }

/* Extracted from Index.cshtml */
.row-collapse-parent {
                cursor: pointer;
                transition: background-color 0.2s ease;
            }

            .row-collapse-parent:hover {
                background-color: #f8fafc;
            }

            .row-collapse-parent[aria-expanded="true"] {
                background-color: #f1f5f9;
            }

            .row-collapse-parent[aria-expanded="true"] .icon-chevron {
                transform: rotate(180deg);
                color: #0d6efd;
            }

            /* Style khối bảng con */
            .sub-table-container {
                background-color: #f1f5f9;
                padding: 15px 20px 25px 20px;
                box-shadow: inset 0 4px 6px -4px rgba(0,0,0,0.05);
                border-bottom: 1px solid #cbd5e1;
            }

            .sub-table {
                background: #ffffff;
                border-radius: 8px;
                overflow: hidden;
                box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            }

            .sub-table th {
                background-color: #f8fafc !important;
                border-bottom: 1px solid #e2e8f0 !important;
                font-size: 12px;
                color: #64748b;
            }

            .sub-table td {
                border-bottom: 1px solid #f1f5f9;
                padding: 10px 15px;
                font-size: 13px;
            }

            .sub-table tbody tr:last-child td {
                border-bottom: none;
            }

            /* Nhãn trạng thái kho */
            .badge-soft-danger {
                background-color: #fee2e2;
                color: #ef4444;
            }

            .badge-soft-warning {
                background-color: #fef3c7;
                color: #d97706;
            }

/* Extracted from Index.cshtml */
/* Custom Styling cho Journal Index */
    .journal-header-gradient {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-bottom: 1px solid #dee2e6 !important;
    }
    
    .journal-table {
        border-collapse: separate;
        border-spacing: 0;
        width: 100%;
    }
    
    .journal-table thead th {
        background-color: #f8fafc;
        color: #475569;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.8rem;
        padding: 14px 16px;
        border-bottom: 2px solid #e2e8f0;
        letter-spacing: 0.5px;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .journal-table tbody tr {
        transition: all 0.2s ease;
    }
    
    .journal-table tbody tr:hover {
        background-color: #f1f5f9;
        transform: translateY(-1px);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        z-index: 1;
        position: relative;
    }
    
    .journal-table td {
        padding: 14px 16px;
        vertical-align: middle;
        font-size: 0.95rem;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .acc-badge {
        background-color: #fff;
        color: #334155;
        font-weight: 600;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        border: 1px solid #cbd5e1;
    }
    
    .amt-debit {
        color: #0284c7;
        font-weight: 700;
        font-family: 'Courier New', Courier, monospace;
        font-size: 1.05rem;
    }
    
    .amt-credit {
        color: #ea580c;
        font-weight: 700;
        font-family: 'Courier New', Courier, monospace;
        font-size: 1.05rem;
    }
    
    .btn-print {
        border-radius: 6px;
        padding: 6px 16px;
        font-weight: 500;
        transition: all 0.2s;
    }
    
    .btn-print:hover {
        background-color: #475569;
        color: white;
        border-color: #475569;
    }

/* Extracted from BalanceSheet.cshtml */
:root {
        --vpos-primary: #1e293b;
        --vpos-asset: #059669;
        --vpos-equity: #2563eb;
        --vpos-debt: #dc2626;
        --vpos-bg-light: #f8fafc;
    }

    .balance-sheet-container {
        background: #ffffff;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
        border: 1px solid #e2e8f0;
        overflow: hidden;
        font-family: 'Inter', 'Segoe UI', sans-serif;
    }

    /* Header */
    .bs-premium-header {
        background: var(--vpos-primary);
        padding: 20px 25px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: white;
    }

    .bs-title-group h5 {
        margin: 0;
        font-weight: 800;
        letter-spacing: 0.5px;
        font-size: 1.1rem;
    }

    /* Banner Cột */
    .bs-col-banner {
        padding: 15px;
        text-align: center;
        font-weight: 800;
        font-size: 0.9rem;
        text-transform: uppercase;
    }

    .banner-asset {
        background: #f0fdf4;
        color: var(--vpos-asset);
        border-bottom: 2px solid #bcf0da;
    }

    .banner-liability {
        background: #fff1f2;
        color: var(--vpos-debt);
        border-bottom: 2px solid #fecdd3;
    }

    /* Nội dung dòng */
    .bs-body-content {
        min-height: 280px;
    }
    /* Đảm bảo chiều cao tối thiểu cho cân bằng */

    .bs-item-row {
        display: flex;
        justify-content: space-between;
        padding: 16px 25px;
        border-bottom: 1px solid #f1f5f9;
        align-items: center;
    }

    .bs-item-label {
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 600;
        color: #475569;
        font-size: 0.95rem;
    }

    .bs-icon-box {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bs-item-value {
        font-weight: 800;
        font-size: 1.05rem;
        color: #1e293b;
        font-family: 'JetBrains Mono', monospace;
    }

    .equity-section-tag {
        background: #eff6ff;
        color: var(--vpos-equity);
        padding: 8px 25px;
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    /* FOOTER CỐ ĐỊNH TỔNG (FIXED FOOTER) */
    .bs-fixed-footer {
        background: #f8fafc;
        border-top: 2px solid #e2e8f0;
        padding: 0;
    }

    .total-pill-v3 {
        padding: 20px 25px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
    }

    .pill-asset-v3 {
        background: linear-gradient(135deg, #059669 0%, #10b981 100%);
        color: white;
    }

    .pill-liability-v3 {
        background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
        color: white;
    }

    .total-label-v3 {
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        opacity: 0.85;
        margin-bottom: 4px;
    }

    .total-value-v3 {
        font-size: 1.4rem;
        font-weight: 900;
        letter-spacing: -0.5px;
    }

    /* Hiệu ứng cân bằng giữa hai cột */
    .balance-status-indicator {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        background: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 10;
        color: var(--vpos-asset);
        border: 2px solid #e2e8f0;
    }

/* Extracted from DebtReport.cshtml */
.vpos-report-header {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        color: white;
        padding: 1.5rem 2rem;
        border-radius: 12px 12px 0 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .vpos-report-title {
        font-weight: 800;
        font-size: 1.25rem;
        letter-spacing: 0.5px;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .vpos-report-total {
        background: rgba(255, 255, 255, 0.1);
        padding: 0.5rem 1.25rem;
        border-radius: 50px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .vpos-accordion .accordion-item {
        border: 1px solid #e2e8f0;
        border-radius: 12px !important;
        margin-bottom: 1rem;
        overflow: hidden;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    .vpos-accordion .accordion-item:hover {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

    .vpos-accordion .accordion-button {
        padding: 1.25rem 1.5rem;
        background: #ffffff;
        color: #1e293b;
        font-weight: 600;
    }

    .vpos-accordion .accordion-button:not(.collapsed) {
        background: #f8fafc;
        color: #0f172a;
        box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
    }
    
    .vpos-debt-table th {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #64748b;
        background: #f8fafc;
        padding: 1rem;
        border-bottom: 2px solid #e2e8f0;
    }
    
    .vpos-debt-table td {
        padding: 1rem;
        vertical-align: middle;
        font-size: 0.9rem;
    }

/* Extracted from FinanceSummary.cshtml */
:root {
        --vpos-radius: 16px;
        --vpos-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .vpos-main-container {
        padding: 15px;
        background-color: #f4f7f6;
        min-height: 100vh;
    }

    .spreadsheet-wrapper {
        border-radius: var(--vpos-radius);
    }

    .clickable-card {
        transition: var(--vpos-transition);
        cursor: pointer;
        position: relative;
        overflow: hidden;
    }

        .clickable-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important;
        }

        .clickable-card:active {
            transform: scale(0.96);
        }

    .dashboard-title {
        font-size: 1.4rem;
        letter-spacing: -0.5px;
    }

    .x-small {
        font-size: 0.7rem;
    }

    .info-tag {
        font-size: 0.8rem;
        background: #f8f9fa;
        padding: 4px 12px;
        border-radius: 20px;
        border: 1px solid #eee;
    }

    .bg-success {
        background: linear-gradient(135deg, #11998e, #38ef7d) !important;
    }

    .bg-danger {
        background: linear-gradient(135deg, #ee0979, #ff6a00) !important;
    }

    .bg-warning {
        background: linear-gradient(135deg, #f2994a, #f2c94c) !important;
    }

    .bg-primary {
        background: linear-gradient(135deg, #00c6ff, #0072ff) !important;
    }

    .bg-success-subtle {
        background-color: #e8f5e9 !important;
    }

    .bg-primary-subtle {
        background-color: #e3f2fd !important;
    }

    .bg-warning-subtle {
        background-color: #fff3cd !important;
    }

    .animate-fade-in {
        animation: fadeIn 0.6s ease-out;
    }

    @@keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @@media (max-width: 768px) {
        .dashboard-title {
            font-size: 1.1rem;
        }

        .card-val {
            font-size: 1.1rem !important;
        }

        .hide-mobile {
            display: none;
        }

        .vpos-main-container {
            padding: 8px;
        }

        h5 {
            font-size: 0.85rem !important;
        }
    }

/* Extracted from ProfitExportSummary.cshtml */
.vpos-report-header {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        color: white;
        padding: 1.5rem 2rem;
        border-radius: 12px 12px 0 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .vpos-report-title {
        font-weight: 800;
        font-size: 1.25rem;
        letter-spacing: 0.5px;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .vpos-report-total {
        background: rgba(255, 255, 255, 0.1);
        padding: 0.5rem 1.25rem;
        border-radius: 50px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .vpos-filter-container {
        background: rgba(255, 255, 255, 0.15);
        padding: 0.35rem 0.5rem;
        border-radius: 50px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .vpos-filter-input {
        background: rgba(255, 255, 255, 0.9);
        border: none;
        border-radius: 50px;
        padding: 0.25rem 0.75rem;
        font-size: 0.85rem;
        color: #1e293b;
        outline: none;
    }
    
    .vpos-profit-table th {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #64748b;
        background: #f8fafc;
        padding: 1rem;
        border-bottom: 2px solid #e2e8f0;
    }
    
    .vpos-profit-table td {
        padding: 1rem;
        vertical-align: middle;
        font-size: 0.9rem;
    }

/* Extracted from _Pagination.cshtml */
/* Style bổ trợ để fix lỗi mobile */
    .vpos-pagination-wrapper {
        flex-wrap: wrap;
        background: #fff;
        border-radius: 8px;
    }

    @@media (max-width: 768px) {
        .vpos-pagination-wrapper {
            flex-direction: column !important;
            gap: 15px !important;
            padding: 15px 10px !important;
            text-align: center;
        }

        .vpos-pagination-info {
            border-bottom: 1px dashed #e2e8f0;
            padding-bottom: 12px;
            width: 100%;
            justify-content: center;
        }
        /* Chỉ hiện số trang hiện tại và các nút điều hướng chính trên mobile */
        .vpos-pagination .page-item:not(.mobile-important) {
            display: none !important;
        }

        .vpos-pagination .page-link {
            padding: 10px 14px !important;
            font-size: 14px !important;
            border-radius: 6px;
        }
    }

/* Extracted from _VapProcess.cshtml */
/* 1. Khung vỏ bo tròn phong cách hiện đại */
    .vap-modal-rounded {
        border-radius: 15px;
        overflow: hidden;
        border: none;
    }

    /* 2. Thanh tiến trình (Shell) */
    .vap-progress-shell {
        background-color: #f1f5f9;
        border-radius: 50px;
        height: 18px;
        overflow: hidden;
        border: 1px solid #e2e8f0;
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
        margin: 15px 0;
        position: relative;
    }

    /* 3. Lõi tiến trình màu vàng VAP */
    .vap-progress-core {
        background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
        height: 100%;
        width: 0%;
        transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        border-radius: 50px;
    }

        /* 4. Hiệu ứng tia sét (Lightning bolt) chạy liên tục */
        .vap-progress-core::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
            animation: vap-lightning-bolt 1.5s infinite;
        }

    @@keyframes vap-lightning-bolt {
        from

    {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }

    }

    /* 5. Terminal Console hiển thị nhật ký xử lý */
    .vap-terminal-console {
        max-height: 180px;
        overflow-y: auto;
        background: #0f172a;
        color: #10b981;
        border-radius: 8px;
        padding: 12px;
        font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
        font-size: 11px;
        line-height: 1.5;
        border: 1px solid #334155;
        margin-top: 15px;
        box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
    }

    .vap-log-line {
        border-bottom: 1px solid #1e293b;
        padding: 2px 0;
        white-space: pre-wrap;
    }

    .vap-log-err {
        color: #f43f5e;
        font-weight: bold;
    }
    /* Đỏ lỗi */
    .vap-log-ok {
        color: #34d399;
    }
    /* Xanh thành công */

    /* 6. Chỉnh sửa Header Modal */
    #vapGlobalProcessModal .modal-header {
        background-color: #f8fafc;
        border-bottom: 1px solid #f1f5f9;
    }

/* Extracted from Default.cshtml */
/* CSS tinh chỉnh riêng cho Popup Thanh toán trên Mobile */
    .vpos-payment-modal .modal-content {
        border-radius: 16px;
        overflow: hidden;
        border: none;
    }

    .vpos-payment-input {
        padding: 10px 15px !important; /* Tăng vùng chạm cho màn hình cảm ứng */
        font-size: 1.15rem !important;
        border-radius: 8px;
        box-shadow: none !important;
    }

        .vpos-payment-input:focus {
            border-color: #2ecc71 !important;
        }

    .vpos-payment-label {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
        margin-bottom: 0.3rem;
    }

    /* Giao diện Modal chuẩn App Mobile (Bottom Sheet) */
    @@media (max-width: 767.98px) {
        .vpos-payment-modal .modal-dialog

    {
        margin: 0;
        align-items: flex-end; /* Ép Modal nằm sát đáy màn hình */
        min-height: 100%;
    }

    .vpos-payment-modal .modal-content {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .vpos-payment-modal .modal-body {
        padding: 1.25rem 1rem !important;
    }

    /* CHIA ĐÔI 2 NÚT HỦY - XÁC NHẬN (50/50) */
    .vpos-payment-footer {
        display: flex !important;
        flex-direction: row;
        gap: 12px;
        padding: 15px !important;
        background: #fff;
        border-top: 1px solid #f1f5f9;
    }

        .vpos-payment-footer .btn {
            flex: 1;
            padding: 14px !important;
            font-size: 13px !important;
            margin: 0 !important;
            border-radius: 8px;
        }

    }

    @@media (min-width: 768px) {
        .vpos-payment-footer

    {
        display: flex !important;
        justify-content: flex-end;
        gap: 10px;
        padding: 15px 24px !important;
    }

    .vpos-payment-footer .btn {
        min-width: 120px;
        border-radius: 8px;
    }

    }

/* Extracted from String.cshtml */
/* Style cục bộ cho Editor Template chuyên nghiệp */
    .vap-input-container {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .vap-textarea-wrapper {
        position: relative;
        width: 100%;
        transition: all 0.2s ease-in-out;
        border-radius: 2px;
    }

    .excel-input.vap-autoresize {
        border: 1px solid #dee2e6;
        padding: 6px 10px;
        width: 100%;
        background-color: #ffffff;
        color: #1a1a1a;
        font-family: 'Segoe UI', Roboto, sans-serif;
        font-size: 13px;
        transition: border-color 0.2s, box-shadow 0.2s;
        /* Ngăn hiện thanh cuộn và cho phép giãn */
        overflow: hidden;
        resize: none;
    }

        .excel-input.vap-autoresize:focus {
            outline: none;
            border-color: #0d6efd;
            box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 4px rgba(13, 110, 253, 0.25);
            background-color: #fff;
        }

        .excel-input.vap-autoresize::placeholder {
            color: #adb5bd;
            font-weight: normal;
            font-style: italic;
        }

/* Extracted from CreateStock.cshtml */
:root {
        --vpos-main: @themeColor;
        --vpos-fb-blue: #1877F2;
    }

    header, .main-nav-bar {
        z-index: 1010 !important;
    }

    .vpos-main-container {
        background-color: #f1f5f9;
        padding-bottom: 30px !important;
        position: relative;
        z-index: 1;
    }

    /* Ribbon Header */
    .spreadsheet-ribbon {
        background: @gradientBg !important;
        border-radius: 8px 8px 0 0;
        color: white;
        padding: 10px 20px !important;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .spreadsheet-wrapper {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        position: relative;
        z-index: 10;
    }

    .vaptable-wrapper {
        background: #fff;
        overflow-x: auto !important;
        position: relative;
        z-index: 20;
    }

    /* ĐÃ FIX: Hộp gợi ý tự do, không bị ép vỡ, tăng max-height để hiển thị lô hàng */
    #suggestions, #customerSuggestions {
        z-index: 999999 !important;
        box-shadow: 0 15px 40px rgba(0,0,0,0.2) !important;
        border: 1px solid var(--vpos-fb-blue) !important;
        border-radius: 8px;
        background: #ffffff !important;
        max-height: 400px;
        overflow-y: auto;
        margin-top: 5px;
        position: absolute;
        left: 0;
        right: 0;
    }

    .input-flat-erp {
        border: 1px solid transparent;
        background: #f8fafc;
        border-radius: 4px;
        padding: 6px 10px;
        font-weight: 700;
        width: 100%;
        color: var(--vpos-main);
        transition: 0.2s;
        min-width: 60px;
    }

        .input-flat-erp:focus {
            background: #fff;
            border-color: #1877F2;
            outline: none;
            box-shadow: 0 0 0 2px rgba(24,119,242,0.1);
        }

    .input-readonly {
        background: transparent !important;
        border: none !important;
        color: #1e293b !important;
        cursor: default;
        font-weight: 800;
    }

    .border-bottom-dashed {
        border-bottom: 1px dashed #e2e8f0;
    }

    .suggest-item {
        padding: 12px 15px;
        cursor: pointer;
        border-bottom: 1px solid #f1f5f9;
        font-size: 14px;
        transition: 0.1s;
    }

        .suggest-item:hover {
            background: #f0f7ff;
            color: #1877f2;
        }

    .vpos-swal-popup {
        border-radius: 12px !important;
    }

    .mode-badge {
        font-size: 10px;
        padding: 4px 12px;
        border-radius: 20px;
        font-weight: 900;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .bg-status-create {
        background: #dcfce7;
        color: #15803d;
        border: 1px solid #bbf7d0;
    }

    .bg-status-edit {
        background: #fef9c3;
        color: #a16207;
        border: 1px solid #fef08a;
    }

    .bg-status-checkout {
        background: #dbeafe;
        color: #1d4ed8;
        border: 1px solid #bfdbfe;
    }

    .bg-status-view {
        background: #f1f5f9;
        color: #475569;
        border: 1px solid #e2e8f0;
    }

    /* CSS CHỐNG VỠ GIAO DIỆN & MOBILE APP FOOTER */
    @@media (min-width: 768px) {
        .info-col-responsive {
            border-right: 1px solid #e2e8f0;
        }

        .action-buttons-grid {
            display: flex;
            gap: 8px;
        }

        .mobile-app-footer {
            display: none !important;
        }
    }

    @@media (max-width: 767.98px) {
        .info-col-responsive {
            border-bottom: 1px dashed #e2e8f0;
            padding-bottom: 15px;
            margin-bottom: 10px;
        }

        .spreadsheet-wrapper {
            padding-bottom: 70px;
        }

        .ribbon-title-row {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .action-buttons-grid, .desktop-action-area {
            display: none !important;
        }

        .mobile-app-footer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #ffffff;
            border-top: 1px solid #e2e8f0;
            box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
            padding: 10px 15px;
            z-index: 1005;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

        .btn-footer-sub {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: transparent;
            color: #64748b;
            border: none;
            font-size: 10px;
            font-weight: 700;
            padding: 5px;
            min-width: 60px;
            text-decoration: none;
        }

            .btn-footer-sub i {
                font-size: 18px;
                margin-bottom: 2px;
                color: #94a3b8;
            }

            .btn-footer-sub:hover, .btn-footer-sub:active {
                color: var(--vpos-primary);
            }

                .btn-footer-sub:hover i {
                    color: var(--vpos-primary);
                }

        .btn-footer-main {
            flex: 1;
            height: 48px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            text-transform: uppercase;
            box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        }
    }

/* Extracted from StockList.cshtml */
/* Popup & Row Styles */
    .vpos-swal-popup {
        border-radius: 12px !important;
        padding: 1.5rem !important;
    }

    .vpos-swal-confirm {
        background: #ef4444 !important;
        font-weight: 600;
        padding: 10px 24px;
        border-radius: 8px;
    }

    .vpos-swal-cancel {
        background: #f1f5f9 !important;
        color: #475569 !important;
        font-weight: 600;
        padding: 10px 24px;
        border-radius: 8px;
    }

    .danger-pulse {
        animation: pulse-red 1.5s infinite;
        color: #ef4444 !important;
        font-weight: 800;
    }

    @@keyframes pulse-red {
        0%, 100% {
            opacity: 1;
        }

        50% {
            opacity: 0.4;
        }
    }

    .row-error {
        background-color: #fff1f0 !important;
        border-left: 4px solid #ef4444 !important;
    }

        .row-error td {
            color: #851d1d !important;
            border-bottom: 1px solid #ffa39e !important;
        }

/* Extracted from Index.cshtml */
/* Một chút CSS để làm đẹp Badge soft-color */
        .bg-success-soft {
            background-color: #e8f5e9;
        }

        .bg-danger-soft {
            background-color: #ffebee;
        }

        .table-hover tbody tr:hover {
            background-color: #f8f9fa;
        }


@media (min-width: 768px) { .mobile-app-footer { display: none !important; } } @media (max-width: 767px) { .mobile-app-footer { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; display: flex; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 1000; padding: 8px; gap: 8px; } .mobile-app-footer .btn-footer-main { flex: 1; border-radius: 8px; font-weight: bold; } .mobile-app-footer .btn-footer-sub { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 60px; color: #666; text-decoration: none; font-size: 11px; } .mobile-app-footer .btn-footer-sub i { font-size: 20px; margin-bottom: 2px; } }
