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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-left h1 {
    color: #2c3e50;
    margin: 0;
}

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

nav {
    display: flex;
    gap: 10px;
}

.nav-btn {
    padding: 10px 20px;
    border: none;
    background: #ecf0f1;
    color: #2c3e50;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: #d5dbdb;
}

.nav-btn.active {
    background: #3498db;
    color: white;
}

.section {
    display: none;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 15px;
}

/* POS Styles */
.pos-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
}

.product-search {
    position: relative;
}

.product-search input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-result-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.search-result-item:hover {
    background: #f8f9fa;
    border-left-color: #3498db;
}

.search-result-item.selected {
    background: #e3f2fd;
    border-left-color: #2196f3;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.1);
}

.search-result-item.no-results {
    cursor: default;
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

.search-result-item.out-of-stock {
    opacity: 0.6;
    cursor: not-allowed;
}

.search-result-item.out-of-stock:hover {
    background: #ffebee;
    border-left-color: #f44336;
}

.search-result-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.search-result-info {
    flex: 1;
}

.search-result-info strong {
    display: block;
    margin-bottom: 4px;
    color: #2c3e50;
}

.brand-tag {
    background: #3498db;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    margin-left: 8px;
    text-transform: uppercase;
}

.search-result-details {
    display: flex;
    gap: 15px;
    margin-top: 4px;
}

.search-result-details small {
    color: #7f8c8d;
    font-size: 12px;
}

.stock-indicator.low-stock {
    color: #e67e22;
    font-weight: 500;
}

.stock-indicator.out-of-stock {
    color: #e74c3c;
    font-weight: 500;
}

.stock-indicator.in-stock {
    color: #27ae60;
}

.search-result-price {
    font-size: 16px;
    font-weight: bold;
    color: #27ae60;
    margin-left: 15px;
}

.search-result-description {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.3;
}

.search-pagination-info {
    background: #f8f9fa;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    color: #6c757d;
    text-align: center;
}

.search-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.pagination-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: #e9ecef;
    border-color: #adb5bd;
}

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

.pagination-pages {
    display: flex;
    gap: 4px;
}

.pagination-page {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pagination-page:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.pagination-page.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.search-shortcuts {
    padding: 8px 12px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    text-align: center;
}

.search-shortcuts small {
    color: #6c757d;
    font-size: 11px;
}

.cart-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.customer-select {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.customer-select select {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.cart-items {
    min-height: 200px;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.cart-item-info {
    flex: 1;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 3px;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 3px;
}

.cart-totals {
    border-top: 2px solid #ddd;
    padding-top: 15px;
    margin-bottom: 20px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.total-line.total {
    font-weight: bold;
    font-size: 18px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn.primary {
    background: #3498db;
    color: white;
}

.btn.primary:hover {
    background: #2980b9;
}

.btn.secondary {
    background: #95a5a6;
    color: white;
}

.btn.secondary:hover {
    background: #7f8c8d;
}

.btn.danger {
    background: #e74c3c;
    color: white;
}

.btn.danger:hover {
    background: #c0392b;
}

.btn.success {
    background: #27ae60;
    color: white;
}

.btn.success:hover {
    background: #229954;
}

.btn.warning {
    background: #f39c12;
    color: white;
}

.btn.warning:hover {
    background: #e67e22;
}

.btn.info {
    background: #3498db;
    color: white;
}

.btn.info:hover {
    background: #2980b9;
}

.btn:disabled {
    background: #bdc3c7;
    color: #7f8c8d;
    cursor: not-allowed;
}

.btn:disabled:hover {
    background: #bdc3c7;
}

/* Inventory Management */
.inventory-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.search-filter {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 500px;
}

.search-filter input,
.search-filter select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.search-filter input {
    flex: 2;
}

.search-filter select {
    flex: 1;
}

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

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-card h4 {
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.9;
}

.stat-card span {
    font-size: 24px;
    font-weight: bold;
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

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

.product-card.inactive {
    opacity: 0.6;
    background: #f8f9fa;
}

.product-card .product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.product-card h4 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 18px;
}

.product-card .sku {
    color: #7f8c8d;
    font-size: 12px;
    background: #ecf0f1;
    padding: 2px 8px;
    border-radius: 10px;
}

.product-card .brand {
    color: #3498db;
    font-weight: 500;
    font-size: 14px;
}

.product-card .price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.product-card .price {
    font-size: 20px;
    font-weight: bold;
    color: #27ae60;
}

.product-card .cost {
    font-size: 14px;
    color: #7f8c8d;
}

.product-card .stock-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-card .stock {
    font-weight: 500;
}

.product-card .stock.low-stock {
    color: #e74c3c;
}

.product-card .stock.out-of-stock {
    color: #c0392b;
    font-weight: bold;
}

.product-card .stock.good-stock {
    color: #27ae60;
}

.product-card .category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    text-transform: uppercase;
}

.product-card .description {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-card .actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-card .actions .btn {
    flex: 1;
    min-width: 80px;
    padding: 8px 12px;
    font-size: 12px;
}

/* Customer List */
.customer-list {
    display: grid;
    gap: 15px;
}

.customer-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.customer-info h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.customer-info p {
    color: #7f8c8d;
    font-size: 14px;
    margin: 2px 0;
}

/* Invoice List */
.invoice-list {
    display: grid;
    gap: 15px;
}

.invoice-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invoice-info h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.invoice-info p {
    color: #7f8c8d;
    font-size: 14px;
    margin: 2px 0;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-paid {
    background: #d5f4e6;
    color: #27ae60;
}

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

.status-void {
    background: #f8d7da;
    color: #721c24;
}

.status-cancelled {
    background: #d1ecf1;
    color: #0c5460;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: #f8f9fa;
}

.filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
    padding: 20px 0;
}

.modal-content {
    background-color: white;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-content.large {
    max-width: 700px;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.required {
    color: #e74c3c;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.close:hover {
    color: #000;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group textarea {
    height: 80px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.payment-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.payment-summary h4 {
    color: #2c3e50;
    font-size: 20px;
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    
    .printable, .printable * {
        visibility: visible;
    }
    
    .printable {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    .no-print {
        display: none !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .pos-layout {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .nav {
        flex-wrap: wrap;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Enhanced Invoice Styles */
.no-invoices {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
}

.invoice-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 10px;
}

.invoice-buttons .btn {
    padding: 6px 10px;
    font-size: 12px;
    min-width: auto;
}

.invoice-buttons .status-select {
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.invoice-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.invoice-details-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.invoice-details-section h4 {
    margin-bottom: 10px;
    color: #2c3e50;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
}

.invoice-details-section:last-child {
    grid-column: 1 / -1;
}

.invoice-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.invoice-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.invoice-totals .total-line {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

.invoice-totals .total-line.total {
    font-weight: bold;
    font-size: 16px;
    border-top: 2px solid #2c3e50;
    border-bottom: none;
    margin-top: 10px;
    padding-top: 10px;
}

@media (max-width: 768px) {
    .invoice-details-grid {
        grid-template-columns: 1fr;
    }
    
    .invoice-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .invoice-buttons .btn,
    .invoice-buttons .status-select {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* POS Product Grid Styles */
.pos-products-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pos-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.pos-products-header h3 {
    margin: 0;
    color: #2c3e50;
}

.pos-filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pos-filters select,
.pos-filters input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.pos-filters input {
    width: 200px;
}

.pos-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    padding-right: 10px;
}

.pos-product-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 160px;
    display: flex;
    flex-direction: column;
}

.pos-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.pos-product-card.out-of-stock {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f8f9fa;
}

.pos-product-card.out-of-stock:hover {
    transform: none;
    box-shadow: none;
    border-color: #e74c3c;
}

.pos-product-card.low-stock {
    border-color: #f39c12;
}

.pos-product-card.low-stock:hover {
    border-color: #e67e22;
}

.pos-product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.pos-product-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.3;
    flex: 1;
}

.pos-brand-tag {
    background: #3498db;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 500;
    margin-left: 8px;
    white-space: nowrap;
}

.pos-product-description {
    color: #7f8c8d;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pos-product-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.pos-product-price {
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
}

.pos-stock-info {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 8px;
    text-align: center;
}

.pos-stock-info.in-stock {
    background: #d5f4e6;
    color: #27ae60;
}

.pos-stock-info.low-stock {
    background: #fef9e7;
    color: #f39c12;
}

.pos-stock-info.out-of-stock {
    background: #fadbd8;
    color: #e74c3c;
}

.pos-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.pos-sku {
    font-size: 11px;
    color: #95a5a6;
    background: #ecf0f1;
    padding: 2px 6px;
    border-radius: 4px;
}

.pos-add-text {
    font-size: 11px;
    color: #3498db;
    font-weight: 500;
    text-transform: uppercase;
}

.pos-unavailable {
    font-size: 11px;
    color: #e74c3c;
    font-weight: 500;
    text-transform: uppercase;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pos-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pos-products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .pos-filters {
        width: 100%;
        flex-direction: column;
    }
    
    .pos-filters input {
        width: 100%;
    }
    
    .pos-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        max-height: 400px;
    }
}/* Not
ification System Styles */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-left: 4px solid #3498db;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    min-width: 300px;
}

.notification.notification-show {
    transform: translateX(0);
    opacity: 1;
}

.notification.notification-hide {
    transform: translateX(100%);
    opacity: 0;
}

.notification-success {
    border-left-color: #27ae60;
}

.notification-error {
    border-left-color: #e74c3c;
}

.notification-warning {
    border-left-color: #f39c12;
}

.notification-info {
    border-left-color: #3498db;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.notification-content i {
    font-size: 18px;
}

.notification-success .notification-content i {
    color: #27ae60;
}

.notification-error .notification-content i {
    color: #e74c3c;
}

.notification-warning .notification-content i {
    color: #f39c12;
}

.notification-info .notification-content i {
    color: #3498db;
}

.notification-message {
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    margin-left: 10px;
}

.notification-close:hover {
    background: #ecf0f1;
    color: #7f8c8d;
}

/* Custom Confirm Modal Styles */
.confirm-modal {
    max-width: 400px;
    text-align: center;
}

.confirm-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #f39c12;
}

.confirm-header i {
    font-size: 24px;
}

.confirm-header h3 {
    margin: 0;
    color: #2c3e50;
}

.confirm-body {
    margin-bottom: 25px;
}

.confirm-body p {
    color: #7f8c8d;
    line-height: 1.5;
    margin: 0;
}

.confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.confirm-actions .btn {
    min-width: 100px;
}

/* Mobile responsiveness for notifications */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        min-width: auto;
        width: 100%;
    }
    
    .confirm-modal {
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .confirm-actions {
        flex-direction: column;
    }
    
    .confirm-actions .btn {
        width: 100%;
    }
}/* C
ustomer Selection Styles */
.customer-select {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.selected-customer {
    flex: 1;
}

.selected-customer span:first-child {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
}

.selected-customer span:last-child {
    display: block;
    font-size: 12px;
    color: #6c757d;
}

.customer-selection-content {
    display: flex;
    flex-direction: column;
    height: 500px;
}

.customer-selection-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.customer-selection-header input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.customer-selection-list {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    margin-bottom: 20px;
}

.customer-selection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    margin: 5px;
    border-radius: 6px;
}

.customer-selection-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.customer-selection-item.selected {
    background: #e8f5e8;
    border-left: 4px solid #27ae60;
}

.customer-selection-item:last-child {
    border-bottom: none;
}

.customer-selection-info {
    flex: 1;
}

.customer-selection-info h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 16px;
}

.customer-selection-details {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
}

.customer-selection-details span {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.customer-selection-address {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.customer-selection-actions {
    display: flex;
    gap: 5px;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
    min-width: auto;
}

.customer-selection-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.no-customers-found {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .customer-select {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .customer-selection-content {
        height: 400px;
    }
    
    .customer-selection-header {
        flex-direction: column;
    }
    
    .customer-selection-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .customer-selection-details {
        flex-direction: column;
        gap: 5px;
    }
    
    .customer-selection-actions {
        align-self: flex-end;
    }
}

/* Login System Styles */
.login-required {
    overflow: hidden;
}

.login-required .container > *:not(#loginModal) {
    pointer-events: none;
    filter: blur(1px);
    opacity: 0.6;
}

.login-modal {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    z-index: 9999;
}

.login-modal .modal-content {
    display: block !important;
}

.login-content {
    max-width: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
}

.login-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.login-header {
    text-align: center;
    padding: 30px 30px 20px;
    position: relative;
    z-index: 1;
}

.login-header i {
    font-size: 48px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
}

.login-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
}

.login-header p {
    margin: 0;
    opacity: 0.8;
    font-size: 16px;
}

.login-form {
    padding: 0 30px 30px;
    position: relative;
    z-index: 1;
}

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

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

.login-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.login-error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.5);
    color: #ffebee;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.login-btn:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    padding: 20px 30px;
    background: rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.login-footer small {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.login-help {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.login-help small {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.4;
}

.login-form label i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.login-btn:disabled:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    transform: none;
}

/* User Status Display */
.user-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
}

.user-level {
    font-size: 12px;
    color: #7f8c8d;
}

.user-level-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.user-level-badge.admin {
    background: #e74c3c;
    color: white;
}

.user-level-badge.staff {
    background: #f39c12;
    color: white;
}

.logout-btn {
    padding: 6px 12px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #c0392b;
}

/* Responsive login modal */
@media (max-width: 768px) {
    .login-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .login-header {
        padding: 20px 20px 15px;
    }
    
    .login-form {
        padding: 0 20px 20px;
    }
    
    .login-footer {
        padding: 15px 20px;
    }
}/* Pro
duct Approval Styles */
.approval-help {
    display: block;
    font-size: 11px;
    color: #6c757d;
    margin-top: 4px;
    font-style: italic;
}

.form-group label input[type="checkbox"] + i {
    margin-left: 8px;
    color: #f39c12;
}

.product-approval-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    color: #856404;
}

.product-approval-indicator i {
    color: #f39c12;
}/* Approval 
Indicator Styles */

/* Inventory Product Cards */
.product-card.requires-approval {
    border-left: 4px solid #f39c12;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.approval-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f39c12;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.approval-badge i {
    margin-right: 4px;
}

/* POS Product Cards */
.pos-product-card.requires-approval {
    border: 2px solid #f39c12;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.pos-approval-tag {
    background: #f39c12;
    color: white;
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 10px;
    margin-left: 8px;
}

.pos-approval-text {
    font-size: 10px;
    color: #f39c12;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pos-approval-text i {
    font-size: 8px;
}

/* Cart Item Approval Indicators */
.cart-item.requires-approval {
    border-left: 4px solid #f39c12;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.cart-approval-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: #f39c12;
    color: white;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
    margin-left: 8px;
}

/* Approval Status in Various Contexts */
.approval-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.approval-status.required {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.approval-status.approved {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.approval-status.pending {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Hover effects for approval items */
.pos-product-card.requires-approval:hover {
    border-color: #e67e22;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.2);
}

.product-card.requires-approval:hover {
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.15);
}/*
 Approval Interface Styles */
.approval-modal .modal-content {
    max-width: 500px;
    text-align: center;
}

.approval-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    color: #f39c12;
}

.approval-header i {
    font-size: 32px;
    margin-bottom: 10px;
}

.approval-header h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.approval-items-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.approval-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 4px solid #f39c12;
}

.approval-item:last-child {
    margin-bottom: 0;
}

.approval-item-name {
    font-weight: 600;
    color: #2c3e50;
}

.approval-item-qty,
.approval-item-price {
    font-size: 14px;
    color: #6c757d;
}

.approval-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.approval-message p {
    margin: 0;
    color: #856404;
    font-weight: 500;
}

.approval-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Admin Login Modal Styles */
.admin-login-modal .modal-content {
    max-width: 400px;
}

.admin-login-header {
    text-align: center;
    margin-bottom: 20px;
    color: #e74c3c;
}

.admin-login-header i {
    font-size: 32px;
    margin-bottom: 10px;
}

.admin-login-header h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.admin-login-form {
    margin-bottom: 0;
}

/* Approval Interface Modal */
.approval-interface-modal .modal-content {
    max-width: 600px;
}

.approval-interface-header {
    text-align: center;
    margin-bottom: 25px;
    color: #27ae60;
}

.approval-interface-header i {
    font-size: 36px;
    margin-bottom: 10px;
}

.approval-interface-items {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    max-height: 300px;
    overflow-y: auto;
}

.approval-interface-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #f39c12;
    transition: all 0.3s ease;
}

.approval-interface-item.approved {
    border-left-color: #27ae60;
    background: #f8fff8;
}

.approval-interface-item:last-child {
    margin-bottom: 0;
}

.item-info {
    flex: 1;
    text-align: left;
}

.item-name {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.item-details {
    font-size: 14px;
    color: #6c757d;
}

.item-actions {
    display: flex;
    gap: 8px;
}

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

.approval-interface-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* User Status Approval Mode */
.user-level-badge.approval-mode {
    background: #27ae60;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Cart Button States */
.action-buttons .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-buttons .btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .approval-interface-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .item-actions {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .item-actions .btn {
        flex: 1;
    }
    
    .approval-interface-actions {
        flex-direction: column;
    }
    
    .approval-actions {
        flex-direction: column;
    }
}/* Disabled
 invoice management buttons */
.invoice-buttons .btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

.status-select:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    background-color: #f8f9fa;
}

/* Admin mode indicator for invoice admin button */
.btn.secondary {
    background-color: #6c757d;
    color: white;
}

.btn.secondary:hover {
    background-color: #5a6268;
}/* 
Void Items Modal Styles */
.void-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e74c3c;
}

.void-header i {
    font-size: 2em;
    color: #e74c3c;
    margin-bottom: 10px;
}

.void-header h3 {
    color: #e74c3c;
    margin: 10px 0 5px 0;
}

.void-items-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
}

.void-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

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

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

.void-item-checkbox {
    margin-right: 15px;
}

.void-item-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.void-item-info {
    flex: 1;
}

.void-item-name {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.void-item-details {
    color: #666;
    font-size: 0.9em;
}

.approval-indicator {
    color: #f39c12;
    font-size: 0.8em;
}

.void-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.void-actions .btn {
    min-width: 120px;
}

/* Enhanced button styles for void buttons */
#voidItemsBtn {
    background-color: #f39c12;
    color: white;
}

#voidItemsBtn:hover:not(:disabled) {
    background-color: #e67e22;
}

#voidAllBtn {
    background-color: #e74c3c;
    color: white;
}

#voidAllBtn:hover:not(:disabled) {
    background-color: #c0392b;
}

#voidItemsBtn:disabled,
#voidAllBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Higher z-index for admin login modals that appear over other modals */
.modal.admin-login-modal {
    z-index: 2100 !important;
}

.modal.approval-modal {
    z-index: 2000;
}

.modal.approval-interface-modal {
    z-index: 2000;
}

/* Ensure admin login appears above approval modals */
#adminLoginModal,
#invoiceAdminLoginModal {
    z-index: 2100 !important;
}