/* ========================================
   SOLUBAG USER MANAGEMENT SYSTEM
   Main Application Styles
   ======================================== */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 12px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* ===== GLOBAL STYLES ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    line-height: 1.6;
    font-size: 13px;
    background: linear-gradient(
        180deg,
        #f3f5f5 0%,
        #d9dddd 30%,
        #aeb3b3 55%,
        #6f7474 75%,
        #1e2222 100%
    );
}

*:not(.spinner-border) {
    border-radius: 0 !important;
}
.text-primary {
    color: #000 !important;
}
.card-body {
    padding: 10px;
}
.page-link {
    font-size: 13px;
}

.form-check {
    min-height: 32px;
}

.form-check .form-check-input[type=checkbox] {
    margin-top: 10px;
}
.form-check .form-check-input[type=radio] {
    margin-top: 6px;
}

/* ===== CUSTOMER SELECTION STYLES ===== */
.customer-selection-container {
    border: 1px solid #e9ecef;
    background-color: #f0f9ff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

/* Product list in quotes table */
.product-list {
    max-height: 120px;
    overflow-y: auto;
}

.product-item {
    margin-bottom: 2px;
    padding: 0;
}

.product-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.customer-selection-container .form-label {
    font-size: 13px;
    margin-bottom: 8px;
}

.customer-info-display {
    margin-top: 15px;
}

.customer-info-display .form-label {
    font-size: 13px;
    margin-bottom: 5px;
}

.customer-info-display .text-muted {
    color: #6b7280 !important;
    font-style: italic;
    font-size: 13px;
}
.txt-13 {
    font-size: 13px;
}
.txt-14 {
    font-size: 14px;
}
.txt-15 {
    font-size: 15px;
}
.txt-16 {
    font-size: 16px;
}
.txt-17 {
    font-size: 17px;
}
.txt-18 {
    font-size: 18px;
}
.txt-19 {
    font-size: 19px;
}

.form-select,
.btn {
    font-size: 13px !important;
}

.bgd-general-information {
    background-color: #FFDFBC;
}
.bgd-material-information {
    background-color: #ECEFFF;
}

.bgd-packaging-information {
    background-color: #FFFED8;
}

.bgd-stitching-information {
    background-color: #FAE1FA;
}

.bgd-printing-information {
    background-color: #ECECEC;
}

.bgd-bag-information {
    background-color: #e6e4e4;
}
.bgd-customer-feedback {
    background-color: #FBEAFB;
}

.bgd-bag-bottom-information {
    background-color: #F2FCE9;
}
.bgd-handle-information {
    background-color: #FFF0F0;
}
/* ===== FORM VALIDATION STYLES ===== */
/* Disable HTML5 validation messages */
input:invalid, textarea:invalid, select:invalid {
    box-shadow: none !important;
}

input:invalid:focus, textarea:invalid:focus, select:invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Hide browser validation messages */
input:invalid, textarea:invalid, select:invalid {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* ===== HEADER STYLES ===== */
.main-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 1144px;
    margin: 0 auto;
    border-radius: 4px;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-logo {
    height: 40px;
    width: auto;
}

.app-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc3545;
    margin-left: 0.5rem;
}

.header-right {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-dropdown {
    position: relative;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.user-icon {
    font-size: 1.5rem;
    color: #007bff;
}

.user-name {
    font-weight: 500;
    color: #495057;
}

.user-dropdown-menu {
    min-width: 250px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.user-info-header {
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.user-icon-large {
    font-size: 2rem;
    color: #007bff;
}

/* ===== NAVIGATION STYLES ===== */
.main-navigation {
    background: #fff;
    padding: 0;
    max-width: 1150px;
    margin: 0 auto;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    color: #6c757d;
    text-decoration: none;
    border-bottom: 3px solid #fff;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    color: #007bff;
    background: #f8f9fa;
}

/* Đảm bảo các nav-item có class màu riêng không bị ảnh hưởng bởi .hover chung */
.nav-item-dashboard:hover {
    background: linear-gradient(to bottom, #7a8288, #6a6a6a) !important;
    color: #fff !important;
}

.nav-item-users:hover {
    background: linear-gradient(to bottom, #9b7f57, #7b5e3f) !important;
    color: #fff !important;
}

.nav-item-products:hover {
    background: linear-gradient(to bottom, #2563eb, #1e40af) !important;
    color: #fff !important;
}

.nav-item-customers:hover {
    background: linear-gradient(to bottom, #dc2626, #b91c1c) !important;
    color: #fff !important;
}

.nav-item-orders:hover {
    background: linear-gradient(to bottom, #16a34a, #15803d) !important;
    color: #fff !important;
}

.nav-item-quotes:hover {
    background: linear-gradient(to bottom, #7c3aed, #6b21a8) !important;
    color: #fff !important;
}

.nav-item.active {
    color: #007bff;
    background: #f8f9fa;
    border-bottom-color: #007bff;
}

/* Đảm bảo các nav-item có class màu riêng không bị ảnh hưởng bởi .active chung */
.nav-item-dashboard.active {
    color: #fff !important;
    background: linear-gradient(to bottom, #6c757d, #5a5a5a) !important;
    border-bottom-color: #fff !important;
}

.nav-item-users.active {
    color: #fff !important;
    background: #8b6f47 !important;
    border-bottom-color: #8b6f47 !important;
}

.nav-item-products.active {
    color: #fff !important;
    background: #002252 !important;
    border-bottom-color: #002252 !important;
}

.nav-item-customers.active {
    color: #fff !important;
    background: #8B0000 !important;
    border-bottom-color: #8B0000 !important;
}

.nav-item-orders.active {
    color: #fff !important;
    background: #134A00 !important;
    border-bottom-color: #134A00 !important;
}

.nav-item-quotes.active {
    color: #fff !important;
    background: #01636C !important;
    border-bottom-color: #01636C !important;
}

.nav-item.disabled {
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

.nav-item.disabled:hover {
    color: #adb5bd;
    background: transparent;
}

.nav-item i {
    font-size: 1.1rem;
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
}

.dropdown-menu:not(.autocomplete-menu) {
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #007bff;
}

.dropdown-item.active {
    background: #007bff;
    color: #fff;
}

.dropdown-item.active:hover {
    background: #0056b3;
}

/* ===== NAVIGATION ITEM COLORS ===== */
/* Dashboard - Dark Gray */
.nav-item-dashboard {
    background: linear-gradient(to bottom, #6c757d, #5a5a5a);
    color: #fff !important;
    font-weight: bold;
    border-radius: 0;
}

.nav-item-dashboard:hover {
    background: linear-gradient(to bottom, #7a8288, #6a6a6a);
    color: #fff !important;
}

/* Users - Dark Brown */
.nav-item-users {
    background: #8b6f47;
    color: #fff !important;
    font-weight: bold;
    border-radius: 0;
}

.nav-item-users .nav-link {
    color: #fff !important;
}

.nav-item-users:hover {
    background: linear-gradient(to bottom, #9b7f57, #7b5e3f);
}

.nav-item-users:hover .nav-link {
    color: #fff !important;
}

.nav-item-users.active .nav-link {
    color: #fff !important;
}

/* Products - Dark Blue */
.nav-item-products {
    /* background: linear-gradient(to bottom, #1e40af, #1e3a8a); */
    color: #fff !important;
    font-weight: bold;
    border-radius: 0;
    background: #002252;
}

.nav-item-products .nav-link {
    color: #fff !important;
}

.nav-item-products:hover {
    background: linear-gradient(to bottom, #2563eb, #1e40af);
}

.nav-item-products:hover .nav-link {
    color: #fff !important;
}

.nav-item-products.active .nav-link {
    color: #fff !important;
}

/* Customers - Dark Red */
.nav-item-customers {
    background: #8B0000;
    color: #fff !important;
    font-weight: bold;
    border-radius: 0;
}

.nav-item-customers .nav-link {
    color: #fff !important;
}

.nav-item-customers:hover {
    background: linear-gradient(to bottom, #dc2626, #b91c1c);
}

.nav-item-customers:hover .nav-link {
    color: #fff !important;
}

.nav-item-customers.active .nav-link {
    color: #fff !important;
}

/* Orders - Dark Green */
.nav-item-orders {
    background: #134A00;
    color: #fff !important;
    font-weight: bold;
    border-radius: 0;
}

.nav-item-orders .nav-link {
    color: #fff !important;
}

.nav-item-orders:hover {
    background: linear-gradient(to bottom, #16a34a, #15803d);
}

.nav-item-orders:hover .nav-link {
    color: #fff !important;
}

.nav-item-orders.active .nav-link {
    color: #fff !important;
}

.nav-item-orders.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.nav-item-orders.disabled:hover {
    background: linear-gradient(to bottom, #15803d, #166534);
    color: #fff !important;
}

/* Quotes - Dark Purple */
.nav-item-quotes {
    background: #01636C;
    color: #fff !important;
    font-weight: bold;
    border-radius: 0;
}

.nav-item-quotes .nav-link {
    color: #fff !important;
}

.nav-item-quotes:hover {
    background: linear-gradient(to bottom, #7c3aed, #6b21a8);
}

.nav-item-quotes:hover .nav-link {
    color: #fff !important;
}

.nav-item-quotes.active .nav-link {
    color: #fff !important;
}

/* Icon colors for all nav items */
.nav-item-dashboard i,
.nav-item-users i,
.nav-item-products i,
.nav-item-customers i,
.nav-item-orders i,
.nav-item-quotes i {
    color: #fff !important;
}

/* ===== VALIDATION ERROR STYLES ===== */
/* jQuery Validation Error Styles - Global */
label.error {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
}

/* Bootstrap invalid feedback for server errors - Global */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 12px;
    color: #dc3545;
    font-weight: 500;
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
    min-height: 100vh;
    background: var(--primary-gradient);
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    z-index: 1000;
    transition: var(--transition);
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 2px 0;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover, 
.sidebar .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
    text-decoration: none;
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

.sidebar .navbar-brand {
    font-weight: bold;
    color: white !important;
    font-size: 1.5rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    min-height: 100vh;
    background-color: #fff;
    transition: var(--transition);
    max-width: 1142px;
    margin: 0 auto;
}

/* ===== NAVBAR STYLES ===== */
.navbar {
    background: white !important;
    box-shadow: var(--box-shadow);
    border-bottom: 1px solid #e9ecef;
}

.navbar-brand {
    font-weight: bold;
    color: var(--dark-color) !important;
}

/* ===== CARD STYLES ===== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card:hover {
    /* transform: translateY(-2px); */
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.card-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: var(--dark-color);
}

/* ===== CUSTOM BUTTON STYLES ===== */
.btn-custom-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    color: white;
}

.btn-custom-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    background: var(--primary-gradient);
    color: white;
}

.btn-custom-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    transition: var(--transition);
    background: transparent;
}

.btn-custom-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    color: white;
}

/* ===== TABLE STYLES ===== */
.table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 0;
}

.table thead th {
    background: var(--light-color);
    border: none;
    font-weight: 600;
    color: var(--dark-color);
    padding: 10px;
}

.table tbody td {
    padding: 4px;
    border-top: 1px solid #e9ecef;
    vertical-align: middle;
}


/* ===== BADGE STYLES ===== */
.badge {
    border-radius: 20px;
    padding: 3px 8px;
    font-weight: 500;
}

.status-active {
    background-color: var(--success-color) !important;
    color: white;
}

.status-inactive {
    background-color: var(--danger-color) !important;
    color: white;
}

.status-pending {
    background-color: var(--warning-color) !important;
    color: #000;
}

/* ===== FORM STYLES ===== */
.form-control {
    border-radius: 8px;
    border: 1px solid #cccccc;
    padding: 5px 10px;
    transition: var(--transition);
    font-size: 13px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Placeholder transparent */
.form-control::placeholder {
    color: transparent;
}

.form-control::-webkit-input-placeholder {
    color: transparent;
}

.form-control::-moz-placeholder {
    color: transparent;
    opacity: 1;
}

.form-control:-ms-input-placeholder {
    color: transparent;
}

.form-control:-moz-placeholder {
    color: transparent;
    opacity: 1;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.input-group-text {
    background: transparent;
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.form-control.with-icon {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

/* ===== REMOVE VALIDATION ICONS ===== */
/* Loại bỏ icon trạng thái invalid/valid trên form elements */
.form-control.is-invalid,
.form-control.is-valid,
input.is-invalid,
input.is-valid,
textarea.is-invalid,
textarea.is-valid {
    background-image: none !important;
    padding-right: 10px !important;
}

.form-select.is-invalid,
.form-select.is-valid,
select.is-invalid,
select.is-valid {
    padding-right: 30px !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
}
/* Loại bỏ icon trên autocomplete elements */
.autocomplete-input.is-invalid,
.autocomplete-input.is-valid,
.ui-autocomplete-input.is-invalid,
.ui-autocomplete-input.is-valid {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
}

/* ===== ALERT STYLES ===== */
.alert {
    border: none;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* ===== MODAL STYLES ===== */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background: var(--light-color);
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    background: var(--light-color);
}

/* ===== PAGINATION STYLES ===== */
.pagination .page-link {
    border: none;
    color: var(--primary-color);
    border-radius: 8px;
    margin: 0 2px;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ===== STATS CARDS ===== */
.stats-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stats-card .stats-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stats-card .stats-number {
    font-size: 2rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.stats-card .stats-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* ===== LOGIN/REGISTER STYLES ===== */
.auth-container {
    background: var(--primary-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
}

.auth-header {
    background: var(--primary-gradient);
    color: white;
    padding: 2rem;
    text-align: center;
}

.auth-body {
    padding: 2rem;
}

.auth-footer {
    padding: 1rem 2rem;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 100%;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .auth-card {
        margin: 1rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .auth-body {
        padding: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.border-radius {
    border-radius: var(--border-radius) !important;
}

.transition {
    transition: var(--transition) !important;
}

/* ===== LOADING ANIMATIONS ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ===== DROPDOWN/SUBMENU STYLES ===== */
/* Global dropdown menu styles */
.dropdown-menu:not(.autocomplete-menu) {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px 0;
    margin-top: 5px;
}

.dropdown-item {
    padding: 10px 16px;
    font-size: 13px;
    color: #333;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #333;
}

.dropdown-item.active {
    background: #007bff;
    color: white;
}

.dropdown-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Navigation dropdown styles */
.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown .nav-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0;
    gap: 8px;
    flex: 1;
}

/* Đảm bảo dropdown-menu và dropdown-item không bị ảnh hưởng bởi style màu của nav-item */
.nav-item-dashboard .dropdown-menu,
.nav-item-users .dropdown-menu,
.nav-item-products .dropdown-menu,
.nav-item-customers .dropdown-menu,
.nav-item-orders .dropdown-menu,
.nav-item-quotes .dropdown-menu {
    background: #fff !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.nav-item-dashboard .dropdown-item,
.nav-item-users .dropdown-item,
.nav-item-products .dropdown-item,
.nav-item-customers .dropdown-item,
.nav-item-orders .dropdown-item,
.nav-item-quotes .dropdown-item {
    color: #333 !important;
    background: transparent !important;
}

/* Đảm bảo icon trong dropdown-item hiển thị đúng */
.nav-item-dashboard .dropdown-item i,
.nav-item-users .dropdown-item i,
.nav-item-products .dropdown-item i,
.nav-item-customers .dropdown-item i,
.nav-item-orders .dropdown-item i,
.nav-item-quotes .dropdown-item i {
    color: #333 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-item-dashboard .dropdown-item:hover,
.nav-item-users .dropdown-item:hover,
.nav-item-products .dropdown-item:hover,
.nav-item-customers .dropdown-item:hover,
.nav-item-orders .dropdown-item:hover,
.nav-item-quotes .dropdown-item:hover {
    background: #f8f9fa !important;
    color: #333 !important;
}

.nav-item-dashboard .dropdown-item:hover i,
.nav-item-users .dropdown-item:hover i,
.nav-item-products .dropdown-item:hover i,
.nav-item-customers .dropdown-item:hover i,
.nav-item-orders .dropdown-item:hover i,
.nav-item-quotes .dropdown-item:hover i {
    color: #333 !important;
}

.nav-item-dashboard .dropdown-item.active,
.nav-item-users .dropdown-item.active,
.nav-item-products .dropdown-item.active,
.nav-item-customers .dropdown-item.active,
.nav-item-orders .dropdown-item.active,
.nav-item-quotes .dropdown-item.active {
    background: #007bff !important;
    color: #fff !important;
}

.nav-item-dashboard .dropdown-item.active i,
.nav-item-users .dropdown-item.active i,
.nav-item-products .dropdown-item.active i,
.nav-item-customers .dropdown-item.active i,
.nav-item-orders .dropdown-item.active i,
.nav-item-quotes .dropdown-item.active i {
    color: #fff !important;
}

.main-navigation .dropdown-menu {
    margin-left: -20px !important;
    padding: 0;
    margin-top: 5px !important;
}

/* View all dropdown styles */
.view-all-dropdown .btn {
    border-radius: 6px;
    padding: 8px 16px;
}

.view-all-dropdown .btn i {
    margin-left: 8px;
    font-size: 12px;
}

/* ===== LANGUAGE SELECTOR STYLES ===== */
.language-selector {
    margin-right: 1rem;
}

.language-selector .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    background-color: white;
    transition: var(--transition);
    min-width: 120px;
}

.language-selector .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.language-selector .form-select option {
    padding: 0.5rem;
}

.carousel-control-next-icon, .carousel-control-prev-icon {
    background-color: #000;
    border-radius: 4px;
    padding: 5px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .sidebar,
    .navbar,
    .btn,
    .pagination {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Orders: màu nền dòng sản phẩm chẵn/lẻ trong đơn hàng */
.orders-module #productsTableBody tr.product-row-even,
.orders-module #productsTableBody tr.product-row-even * {
    background-color: #FFF4D6;
}
.orders-module #productsTableBody tr.product-row-odd,
.orders-module #productsTableBody tr.product-row-odd * {
    background-color: #EFEFEF;
}

.orders-module #productsTableBody tr.product-row-even .remove-product-btn,
.orders-module #productsTableBody tr.product-row-even .remove-product-btn *,
    .orders-module #productsTableBody tr.product-row-odd .remove-product-btn,
    .orders-module #productsTableBody tr.product-row-odd .remove-product-btn * {
    background-color: red;
}

.orders-module #productsTableBody a {
    color: #000 !important;
    text-decoration: none !important;
}

/* Orders Stage 1: calendar nhỏ gọn */
.orders-module .stage-date-input-compact {
    max-width: 100px;
    padding: 0 5px;
    background-color: transparent;
    border: 0;
    box-shadow: none;
    &:focus {
        box-shadow: none;
        border: 0;
        background-color: transparent;
    }
}

/* Orders Stage 1: 3 nút Chờ, Bỏ qua, Bước tiếp - màu đen */
.orders-module .stage-wait-btn,
.orders-module .stage-skip-btn,
.orders-module .stage-next-btn {
    color: #000;
    padding: 0;
}
.orders-module .stage-wait-btn:hover,
.orders-module .stage-skip-btn:hover,
.orders-module .stage-next-btn:hover {
    color: #000;
}
.orders-module .stage-wait-btn:disabled,
.orders-module .stage-skip-btn:disabled,
.orders-module .stage-next-btn:disabled {
    color: #999;
}