/* Force POS page product & cart side by side */
.pos-flex-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 24px;
    align-items: stretch;
}
.pos-flex-row > .col-md-6 {
    min-width: 0;
    flex: 1 1 0;
}
/* Custom styles for Pesticide and Fertilizer Shop Management System */

/* General styles */
body {
    background-color: #f8f9fa;
    font-family: 'Hind Siliguri', sans-serif;
}

/* Card styles */
.card {
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-radius: 8px 8px 0 0;
}

/* Table styles */
.table th {
    background-color: #f2f2f2;
}

/* Form styles */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Button styles */
.btn {
    border-radius: 4px;
}

/* Print styles */
@media print {
    .sidebar, .no-print {
        display: none !important;
    }
    
    .content {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Dashboard stats cards */
.stats-card {
    transition: transform 0.3s;
}

.stats-card:hover {
    transform: translateY(-5px);
}

/* Invoice styles */
.invoice-header {
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.invoice-footer {
    border-top: 2px solid #dee2e6;
    padding-top: 20px;
    margin-top: 20px;
}

/* Product card styles */
.product-card {
    transition: all 0.3s;
    min-height: 320px;
    max-height: 340px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-image {
    min-height: 120px;
    max-height: 140px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Low stock warning */
.low-stock {
    color: #dc3545;
    font-weight: bold;
}

/* Pagination styles */
.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* Custom alert styles */
.alert-custom {
    border-left: 4px solid #007bff;
}

.alert-custom-success {
    border-left: 4px solid #28a745;
}

.alert-custom-danger {
    border-left: 4px solid #dc3545;
}

.alert-custom-warning {
    border-left: 4px solid #ffc107;
}

/* Sidebar scrolling styles */
.sidebar-content::-webkit-scrollbar {
    width: 8px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: #2c2c2c;
    border-radius: 4px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
    border: 1px solid #343a40;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.sidebar-content::-webkit-scrollbar-thumb:active {
    background: #999;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100% !important;
        min-height: auto;
    }
    
    .sidebar-content {
        height: auto;
        max-height: 300px;
    }
    
    .content {
        margin-left: 0 !important;
    }
}
