/* ========================================
   HỆ THỐNG QUẢN LÝ KHO - STYLESHEET
   Modern, Clean, Responsive Design
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --danger-color: #f44336;
    --warning-color: #FF9800;
    --dark-color: #212121;
    --gray-color: #757575;
    --light-gray: #ffffff;
    --border-color: #e0e0e0;
    --sidebar-width: 280px;
    --header-height: 70px;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
    --bg-color: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #718096;
}


/* ========================================
   BOOTSTRAP CUSTOMIZATION
   ======================================== */

/* Bootstrap Color Overrides */
:root {
    --bs-primary: #4CAF50;
    --bs-success: #4CAF50;
    --bs-danger: #f44336;
    --bs-warning: #FF9800;
    --bs-info: #2196F3;
}

/* Cards - Enhance Bootstrap cards */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 12px;
    margin-bottom: 20px;
}

.card-header {
    border-bottom: 2px solid rgba(0,0,0,0.1);
    border-radius: 12px 12px 0 0 !important;
    padding: 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

/* Buttons - Enhance Bootstrap buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-success, .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-success:hover, .btn-primary:hover {
    background-color: #45a049;
    border-color: #45a049;
}

.bg-success {
    background-color: var(--primary-color) !important;
}

/* Forms - Enhance Bootstrap forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.form-control-lg {
    padding: 0.75rem 1.25rem;
    font-size: 1.1rem;
}

/* Tables - Enhance Bootstrap tables */
.table {
    border-radius: 12px;
    overflow: hidden;
    background: white;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .table {
    background: #2d3748;
    border-color: #4a5568;
}

.table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}


.table thead th {
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    padding: 20px 18px;
    min-height: 50px;
}

.table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
    min-height: 55px;
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody tr:hover {
    background-color: rgba(76, 175, 80, 0.08);
    transform: scale(1.01);
}


.table td {
    padding: 18px 18px;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    min-height: 55px;
    vertical-align: middle;
}

/* Modals - Enhance Bootstrap modals */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, #45a049 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-footer {
    border-top: 2px solid var(--border-color);
}

/* Badges - Enhance Bootstrap badges */
.badge {
    padding: 0.35em 0.65em;
    border-radius: 6px;
    font-weight: 500;
}

/* Alerts - Enhance Bootstrap alerts */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Keep existing custom styles but make them work with Bootstrap */

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========================================
   SIDEBAR
   ======================================== */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    padding: 20px;
    padding-bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: width 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .logo h2,
.sidebar.collapsed .slogan,
.sidebar.collapsed .menu-item span,
.sidebar.collapsed .contact-button-wrapper .contact-button span {
    display: none;
}

.sidebar.collapsed .logo {
    justify-content: center;
    padding: 15px 0;
}

.sidebar.collapsed .menu-item {
    justify-content: center;
    padding: 15px;
}

.sidebar.collapsed .menu-item img {
    margin-right: 0;
}

.logo {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.logo i {
    font-size: 48px;
    margin-bottom: 10px;
}

.logo h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.slogan {
    font-size: 12px;
    opacity: 0.9;
    font-style: italic;
}

.menu {
    margin-top: 20px;
    flex: 1;
    padding-bottom: 120px;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.menu-item i {
    font-size: 20px;
    margin-right: 15px;
    width: 24px;
}

.menu-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.menu-item.active {
    background: rgba(255,255,255,0.2);
    font-weight: 600;
}

.contact-button-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px 20px 20px;
    background: linear-gradient(to top, 
        rgba(26, 32, 44, 0.95) 0%, 
        rgba(26, 32, 44, 0.7) 60%, 
        transparent 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.18) 0%, 
        rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-top: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.25), 
        transparent);
    transition: left 0.6s ease;
}

.contact-button:hover::before {
    left: 100%;
}

.contact-button:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.28) 0%, 
        rgba(255, 255, 255, 0.15) 100%);
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 16px 48px 0 rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
}

.contact-button:active {
    transform: translateY(-1px) scale(1);
    box-shadow: 
        0 8px 24px 0 rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.contact-button i {
    font-size: 18px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.contact-button:hover i {
    transform: scale(1.15) rotate(5deg);
}

.contact-button span {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.contact-button:hover span {
    transform: translateX(2px);
}

.sidebar.collapsed .contact-button-wrapper {
    padding: 15px 10px 15px 10px;
}

.sidebar.collapsed .contact-button {
    padding: 16px;
    justify-content: center;
    min-width: 50px;
}

.sidebar.collapsed .contact-button span {
    display: none;
}

.sidebar.collapsed .contact-button i {
    font-size: 20px;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

/* ========================================
   TOP HEADER
   ======================================== */

.top-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: left 0.3s ease;
}


.sidebar-collapsed .top-header {
    left: 80px;
}

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

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
}

.sidebar-toggle:hover {
    background: var(--light-gray);
}

.search-box-header {
    position: relative;
    width: 300px;
}

.search-box-header i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-box-header input {
    width: 100%;
    padding: 10px 15px 10px 45px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    background: var(--light-gray);
    color: var(--text-primary);
    transition: all 0.3s;
}

.search-box-header input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}


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

.header-icon-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon-btn:hover {
    background: var(--light-gray);
}


.header-divider {
    width: 1px;
    height: 30px;
    background: var(--border-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 10px;
    transition: all 0.3s;
}

.user-profile:hover {
    background: var(--light-gray);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.user-role {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    margin-left: var(--sidebar-width);
    padding: calc(var(--header-height) + 30px) 30px 80px; /* Adjusted for header height and footer */
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.sidebar-collapsed .main-content {
    margin-left: 80px;
}

.page {
    display: none;
    animation: fadeIn 0.3s;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.date-display-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    font-weight: 500;
    color: var(--text-primary);
}


/* ========================================
   STATS CARDS MODERN
   ======================================== */

.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card-modern {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}


.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stat-card-customers::before {
    background: linear-gradient(90deg, #9C27B0, #BA68C8);
}

.stat-card-production::before {
    background: linear-gradient(90deg, #FF9800, #FFB74D);
}

.stat-card-profit::before {
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
}

.stat-card-invoices::before {
    background: linear-gradient(90deg, #2196F3, #42A5F5);
}

.stat-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stat-icon-modern {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-card-customers .stat-icon-modern {
    background: linear-gradient(135deg, #9C27B0, #BA68C8);
}

.stat-card-production .stat-icon-modern {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
}

.stat-card-profit .stat-icon-modern {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

.stat-card-invoices .stat-icon-modern {
    background: linear-gradient(135deg, #2196F3, #42A5F5);
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
    background: #d1fae5;
    padding: 4px 10px;
    border-radius: 20px;
}

.stat-trend i {
    font-size: 10px;
}

.stat-card-body {
    flex: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value-modern {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Legacy stat cards (backward compatibility) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}


.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.stat-info h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ========================================
   CHARTS
   ======================================== */

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.chart-card {
    min-height: 450px;
}

.chart-card .card-body {
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.chart-card canvas {
    max-height: 280px;
    flex-shrink: 0;
}

.chart-actions {
    display: flex;
    align-items: center;
}

.chart-menu-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.chart-menu-btn:hover {
    background: var(--light-gray);
    color: var(--text-primary);
}

.chart-legend {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.pie-chart-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.legend-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.legend-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.legend-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.legend-percentage {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 50px;
    text-align: right;
}

.legend-trend {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    min-width: 50px;
    justify-content: flex-end;
}

.legend-trend i {
    font-size: 10px;
}

@media (max-width: 1200px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chart-card .card-body {
        height: 300px;
        padding: 15px;
    }
    
    .legend-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .legend-right {
        width: 100%;
        justify-content: space-between;
    }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #1976D2;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
    border-radius: 12px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   CARDS
   ======================================== */

.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}


.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}


.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-body {
    padding: 24px;
}

/* ========================================
   ENTRY LAYOUT
   ======================================== */

.entry-layout {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 20px;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

.search-box input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.customer-list {
    max-height: 380px; /* Khoảng 5 khách hàng (mỗi item ~70-75px) */
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px; /* Space for scrollbar */
}

.customer-list::-webkit-scrollbar {
    width: 6px;
}

.customer-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.customer-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.customer-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}


.customer-item {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: white;
}


.customer-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.customer-item.selected {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: var(--primary-color);
    border-width: 2px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}


.customer-item-main {
    flex: 1;
    min-width: 0;
}

.customer-item strong {
    display: block;
    color: var(--dark-color);
    margin-bottom: 3px;
    font-weight: 600;
}

.customer-item.selected strong {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
}

.customer-item small {
    color: var(--gray-color);
    display: block;
}

.customer-item.selected small {
    color: var(--gray-color);
}

.customer-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    white-space: nowrap;
    position: relative;
    cursor: help;
    flex-shrink: 0;
    font-weight: 500;
}

.customer-status i {
    font-size: 10px;
}

.customer-status.no-order {
    background: #f8f9fa;
    color: var(--gray-color);
}

.customer-status.status-recent {
    background: #d4edda;
    color: #155724;
}

.customer-status.status-today {
    background: #fff3cd;
    color: #856404;
}

.customer-status.status-recent-days {
    background: #ffeaa7;
    color: #856404;
}

.customer-status.status-old {
    background: #e9ecef;
    color: #6c757d;
}

.customer-status-group {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.customer-status.draft-indicator {
    background: #ffc107;
    color: #856404;
    font-weight: 600;
}

.draft-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    font-size: 13px;
    margin-bottom: 10px;
}

.draft-warning i {
    color: #ffc107;
}

.draft-warning span {
    flex: 1;
}

.draft-warning button {
    margin-left: auto;
}

/* Tooltip for customer status */
.customer-status[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #333;
    color: white;
    border-radius: 6px;
    font-size: 12px;
    white-space: normal;
    max-width: 250px;
    word-wrap: break-word;
    z-index: 1000;
    margin-bottom: 8px;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    line-height: 1.4;
    text-align: left;
}

.customer-status[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
    margin-bottom: 2px;
    z-index: 1001;
    pointer-events: none;
}

.selected-customer {
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
    margin-top: 15px;
}

.selected-customer h4 {
    margin-bottom: 10px;
}

.selected-customer p {
    margin-bottom: 5px;
    font-size: 14px;
}

/* ========================================
   ENTRY TABLE (Desktop)
   ======================================== */

.entry-table {
    width: 100%;
    border-collapse: collapse;
}

.entry-table th {
    background: var(--light-gray);
    padding: 16px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 2px solid var(--border-color);
    min-height: 50px;
    vertical-align: middle;
}

.entry-table td {
    padding: 14px 14px;
    border-bottom: 1px solid var(--border-color);
    min-height: 50px;
    vertical-align: middle;
}

.entry-table input, 
.entry-table select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 15px;
    min-height: 44px;
    line-height: 1.5;
}

.entry-table .price-input-wrapper {
    position: relative;
    width: 100%;
}

.entry-table .price-input {
    width: 100%;
    padding-right: 45px; /* Space for "VNĐ" */
}

.entry-table .price-unit-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    pointer-events: none;
    font-weight: 500;
    user-select: none;
}

.entry-table input:focus,
.entry-table select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.entry-table .calculated {
    background: #f9f9f9;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 14px;
    min-height: 44px;
}

.entry-totals {
    margin-top: 20px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 8px;
}

.entry-totals .total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.entry-totals .total-row-final {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    border-top: 2px solid var(--border-color);
    padding-top: 10px;
    margin-bottom: 0;
}

.entry-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.entry-actions .btn {
    flex: 1;
}

/* ========================================
   ENTRY CARDS MOBILE - Fast & Beautiful
   ======================================== */

.entry-cards-mobile {
    display: none; /* Hidden on desktop by default */
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.entry-card-mobile {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.entry-card-mobile:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.entry-card-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-bottom: 1px solid #e0e0e0;
}

.entry-card-title {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.entry-delete-btn-mobile {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.entry-delete-btn-mobile:active {
    background: #cc0000;
    transform: scale(0.95);
}

.entry-card-content-mobile {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.entry-field-mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.entry-label-mobile {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.entry-label-mobile i {
    color: var(--primary-color);
    font-size: 12px;
}

.entry-input-mobile {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px; /* Prevent zoom on iOS */
    background: #fafafa;
    transition: all 0.2s;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.entry-input-mobile:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.entry-input-mobile::placeholder {
    color: #aaa;
}

.entry-row-mobile {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 12px;
}

.entry-field-quantity-mobile {
    flex: 1;
}

.entry-field-unit-mobile {
    min-width: 120px;
}

.entry-field-total-mobile .entry-input-mobile {
    background: #f0f7ff;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
    border-color: #c8e6c9;
}

.entry-calculated-mobile {
    cursor: default;
}

/* Product suggestions dropdown for mobile */
.product-suggestions-container {
    position: relative;
    width: 100%;
}

.product-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    margin-top: -2px;
}

.product-suggestions-dropdown.show {
    display: block;
}

.product-suggestion-item {
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    font-size: 15px;
    color: #333;
}

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

.product-suggestion-item:hover,
.product-suggestion-item.highlighted {
    background-color: #e8f5e9;
    color: var(--primary-color);
    font-weight: 600;
}

.product-suggestion-item:active {
    background-color: #c8e6c9;
}

.product-suggestion-item strong {
    font-weight: 700;
    color: var(--primary-color);
}

.entry-add-btn-mobile {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
    margin-bottom: 20px;
}

.entry-add-btn-mobile:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.entry-totals-mobile {
    position: sticky;
    bottom: 0;
    background: white;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    margin-top: 0;
    margin-bottom: 0;
    z-index: 100;
    padding: 16px;
}

.entry-totals-mobile .total-row {
    font-size: 15px;
    margin-bottom: 8px;
}

.entry-totals-mobile .total-row-final {
    font-size: 20px;
    padding-top: 12px;
    margin-top: 8px;
    margin-bottom: 0;
}

/* ========================================
   TABLES
   ======================================== */

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--light-gray);
}

.data-table th {
    padding: 18px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 2px solid var(--border-color);
    min-height: 50px;
    vertical-align: middle;
}

.data-table td {
    padding: 16px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
    line-height: 1.6;
    min-height: 50px;
    vertical-align: middle;
}

.data-table tr:hover {
    background: var(--light-gray);
}

.data-table .actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.data-table .actions .btn {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 14px;
}

/* ========================================
   TABS
   ======================================== */

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-color);
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

/* ========================================
   FILTERS
   ======================================== */

.filter-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-row label {
    font-weight: 600;
}

/* Modern Date Input Styles */
.date-input-modern {
    position: relative;
    padding: 12px 45px 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-color);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.date-input-modern:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.15);
    transform: translateY(-1px);
}

.date-input-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
    background: #fafffe;
}

.date-input-label {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
    font-size: 18px;
    z-index: 1;
}

.date-input-modern::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

#selectedDateDisplay {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.1);
}

#selectedDateDisplay i {
    font-size: 18px;
    color: var(--primary-color);
}

#selectedDateText {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--primary-color);
}

.date-input,
.form-select {
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

.date-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ========================================
   MODALS
   ======================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--gray-color);
}

.close:hover {
    color: var(--dark-color);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
    margin-bottom: 20px;
}

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

.form-input {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* ========================================
   NOTIFICATIONS
   ======================================== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 3000;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
    }
    to {
        transform: translateX(0);
    }
}

.notification.success {
    border-left: 4px solid var(--primary-color);
    color: var(--primary-color);
}

.notification.error {
    border-left: 4px solid var(--danger-color);
    color: var(--danger-color);
}

.notification.show {
    display: flex;
}

/* ========================================
   UTILITIES
   ======================================== */

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--gray-color);
}

.mt-3 {
    margin-top: 30px;
}

.mb-2 {
    margin-bottom: 20px;
}

/* ========================================
   MOBILE MENU TOGGLE
   ======================================== */

.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 2001;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    animation: fadeIn 0.3s;
}

.mobile-overlay.active {
    display: block;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet & Small Desktop (768px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 260px;
    }
    
    .entry-layout {
        grid-template-columns: 35% 65%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .btn-large {
        padding: 15px 32px;
        font-size: 16px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Sidebar hidden by default, shown when toggled */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 2000;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    /* Adjust keyboard shortcuts position */
    /* Top header adjustments */
    .top-header {
        left: 0;
        padding: 0 15px;
    }
    
    .search-box-header {
        width: 150px;
    }
    
    .user-info {
        display: none;
    }
    
    /* Main content takes full width */
    .main-content {
        margin-left: 0;
        padding: calc(var(--header-height) + 20px) 15px 20px;
    }
    
    /* Page header stacked */
    .page-header-modern {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .date-display-modern {
        width: 100%;
        justify-content: center;
    }
    
    /* Stats cards stack vertically */
    .stats-grid,
    .stats-grid-modern {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    /* Entry layout stacked */
    .entry-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .entry-left {
        order: 1;
    }
    
    .entry-right {
        order: 2;
    }
    
    /* Hide desktop table on mobile, show cards */
    .entry-table {
        display: none;
    }
    
    .entry-cards-mobile {
        display: flex !important;
    }
    
    /* Mobile entry page - optimized */
    #entry .card-body {
        padding-bottom: 180px; /* Space for sticky totals */
    }
    
    /* Tables with horizontal scroll (for other tables) */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table {
        min-width: 600px;
    }
    
    /* Mobile entry cards adjustments */
    .entry-row-mobile {
        grid-template-columns: 1fr 100px;
    }
    
    .entry-field-unit-mobile {
        min-width: 100px;
    }
    
    .entry-input-mobile {
        padding: 16px;
        font-size: 16px;
        min-height: 52px;
    }
    
    .entry-card-mobile {
        margin-bottom: 12px;
    }
    
    /* Filter row stacked */
    .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .filter-row label {
        margin-bottom: 5px;
    }
    
    .date-input,
    .form-select {
        width: 100%;
    }
    
    /* Tabs scrollable on mobile */
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }
    
    .tab-btn {
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Buttons touch-friendly */
    .btn {
        padding: 12px 20px;
        font-size: 15px;
        min-height: 44px; /* Apple's recommended touch target */
    }
    
    .btn-sm {
        padding: 8px 14px;
        font-size: 13px;
        min-height: 36px;
    }
    
    .btn-large {
        padding: 16px 28px;
        font-size: 17px;
        min-height: 52px;
    }
    
    /* Entry actions stacked */
    .entry-actions {
        flex-direction: column;
    }
    
    .entry-actions .btn {
        width: 100%;
    }
    
    /* Modals full screen on mobile */
    .modal-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        margin: 0;
    }
    
    .modal-body {
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }
    
    /* Cards with less padding */
    .card-header,
    .card-body {
        padding: 15px;
    }
    
    /* Form inputs touch-friendly */
    .form-input,
    .search-box input,
    .entry-table input,
    .entry-table select {
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 44px;
    }
    
    /* Customer list items touch-friendly */
    .customer-item {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    /* Notification full width */
    .notification {
        left: 10px;
        right: 10px;
        top: 80px;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    .main-content {
        padding: 75px 10px 15px 10px;
    }
    
    .page-header h1 {
        font-size: 20px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-info h3 {
        font-size: 12px;
    }
    
    .btn {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .btn-large {
        font-size: 16px;
        padding: 14px 24px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .card-header h3 {
        font-size: 16px;
    }
    
    .logo h2 {
        font-size: 20px;
    }
    
    .logo i {
        font-size: 40px;
    }
    
    .entry-table,
    .data-table {
        font-size: 14px;
    }
    
    .entry-table th,
    .entry-table td,
    .data-table th,
    .data-table td {
        padding: 12px 10px;
        min-height: 44px;
    }
    
    .entry-table input,
    .entry-table select {
        padding: 10px 12px;
        font-size: 15px;
        min-height: 44px;
    }
}

/* Landscape orientation optimization */
@media (max-height: 600px) and (orientation: landscape) {
    .sidebar {
        overflow-y: auto;
    }
    
    .main-content {
        padding-top: 70px;
    }
}

/* ========================================
   FOOTER
   ======================================== */

.app-footer {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 15px 30px;
    text-align: center;
    z-index: 99;
    transition: left 0.3s ease;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.05);
}

.sidebar-collapsed .app-footer {
    left: 80px;
}


.footer-content {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-content p {
    margin: 0;
}


/* Print styles */
@media print {
    .sidebar,
    .btn,
    .search-box,
    .mobile-menu-toggle,
    .mobile-overlay,
    .app-footer {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0;
        padding-bottom: 0;
    }
    
    .page-header {
        margin-bottom: 15px;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

@media (max-width: 768px) {
    .app-footer {
        left: 0;
        padding: 12px 20px;
    }
    
    .sidebar-collapsed .app-footer {
        left: 0;
    }
}

