* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    /*max-width: 1400px;*/
    margin: 0 auto;
    padding: 20px;
}

header {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 24px;
    color: #2c3e50;
}

nav a {
    color: #3498db;
    text-decoration: none;
    margin-left: 20px;
}

nav a:hover {
    text-decoration: underline;
}

.content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #3498db;
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    margin: 5px;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.actions {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group select[multiple] {
    height: 120px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    /* width: 95%; */
    max-height: 100%;
    overflow-y: auto;
}

.modal-content.large {
    /*max-width: 1200px;*/
    max-width: 100%;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.login-card h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.error-message {
    background: #e74c3c;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
}

/* DataTables Row Colors */
.row-status-REFUND,
.row-status-CANCELLED {
    background-color: #ffcccc !important;
}

.row-status-NEW {
    background-color: #ffffcc !important;
}

.row-status-SHIPPED {
    background-color: #ffccff !important;
}

.row-status-BACK_ORDER {
    background-color: #ffd9b3 !important;
}

.row-status-PROCESSING {
    background-color: #cce5ff !important;
}

.row-status-ON_HOLD {
    background-color: #ffe0b3 !important;
}

table.dataTable tbody tr.row-status-CANCELLED:hover,
table.dataTable tbody tr.row-status-NEW:hover,
table.dataTable tbody tr.row-status-SHIPPED:hover,
table.dataTable tbody tr.row-status-BACK_ORDER:hover,
table.dataTable tbody tr.row-status-PROCESSING:hover,
table.dataTable tbody tr.row-status-ON_HOLD:hover {
    opacity: 0.9;
}

#suppliersList {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* space between cards */
}
.supplier-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #3498db;
    cursor: pointer;
    transition: all 0.3s;
    width: 435px; /* your desired width */
    box-sizing: border-box;
}

.supplier-card:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.supplier-card h3 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.supplier-card p {
    color: #666;
    font-size: 14px;
}

.log-entry {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    border-left: 4px solid #95a5a6;
}

.log-entry.log-create {
    border-left-color: #2ecc71;
}

.log-entry.log-update {
    border-left-color: #3498db;
}

.log-entry.log-delete {
    border-left-color: #e74c3c;
}

.log-entry .log-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
}

.log-entry .log-details {
    font-size: 14px;
    color: #666;
}

.column-config-item {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.column-config-item label {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.column-config-item .column-name {
    font-weight: 600;
    min-width: 120px;
} 
 

/* Force visibility for modal tab content */
.modal .tab-content {
    display: none !important;
}

.modal .tab-content[style*="display: block"] {
    display: block !important;
}
/* Main header row */
#ordersTable thead tr:nth-child(1) th {
  position: sticky;
  top: 0;
  z-index: 10; 
  background-color: #f8f9fa; /* Or your header background color */
}
/* DataTable Filter Row Styling - Larger and More Clickable */
#ordersTable thead tr.filters th {
    padding: 8px 5px !important;
    background: #f8f9fa !important;
    border-bottom: 2px solid #3498db !important;
    font-weight: normal !important;
    vertical-align: middle !important;
  position: sticky;
  z-index: 9;
}

#ordersTable thead tr:first-child th {
    font-weight: 600 !important;
    border-bottom: 1px solid #dee2e6 !important;
    padding: 12px 10px !important;
	line-height: 14px;
	text-transform: uppercase;
}
#ordersTable thead th {
    /*vertical-align: top !important;*/
    padding-top: 4px; /* optional – adjust height */
    line-height: 1.1; /* optional – makes multi-line headers tighter */
    white-space: normal; /* allow wrapping if needed */
}

/* Larger filter inputs */
#ordersTable thead input.column-filter,
#ordersTable thead select.column-filter {
    width: 100% !important;
    /*max-width: 100% !important;*/
    padding: 8px 10px !important; /* Increased padding */
    border: 2px solid #ddd !important; /* Thicker border */
    border-radius: 4px !important;
    font-size: 14px !important; /* Larger font */
    box-sizing: border-box !important;
    margin: 0 !important;
    display: block !important;
    min-height: 38px !important; /* Minimum height for touch targets */
}

#ordersTable thead input.column-filter:focus,
#ordersTable thead select.column-filter:focus {
    outline: none !important;
    border-color: #3498db !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2) !important;
}

#ordersTable thead select.column-filter {
    cursor: pointer !important;
    background-color: white !important;
    height: 38px !important; /* Fixed height */
    appearance: none !important; /* Remove default arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 12px !important;
    padding-right: 30px !important; /* Make room for arrow */
}

#ordersTable thead select.column-filter:hover {
    border-color: #3498db !important;
    background-color: #f8f9fa !important;
}

#ordersTable thead input.column-filter::placeholder {
    color: #999 !important;
    font-size: 13px !important;
}

/* Ensure filters stay in their cells */
#ordersTable thead .filters th {
    position: relative !important;
    overflow: visible !important;
}

/* Remove any conflicting DataTables default styles */
table.dataTable thead th,
table.dataTable thead td {
    border-bottom: 1px solid #ddd !important;
}





.log-entry.log-login {
    border-left-color: #9b59b6;
}

.log-entry.log-logout {
    border-left-color: #95a5a6;
}

.log-entry .log-details strong {
    color: #2c3e50;
}


.btn-group {
    display: inline-flex;
    gap: 5px;
}

.btn-group .btn {
    margin: 0;
}



/* Editable column styling with pencil icon */
#ordersTable tbody td.editable-column {
    background-color: #f0f7ff !important;
    cursor: pointer;
    position: relative;
    padding-right: 25px !important;
}

#ordersTable tbody td.editable-column:hover {
    background-color: #55555542 !important;
}

/* Pencil icon 
#ordersTable tbody td.editable-column::after {
    content: '✏️';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    opacity: 0.3;
    pointer-events: none;
}*/

#ordersTable tbody td.editable-column:hover::after {
    opacity: 0.6;
}

/* Tooltip on hover */
#ordersTable tbody td.editable-column:hover::before {
    content: 'Double-click to edit';
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

/* Status-specific row colors for editable columns */


#ordersTable tbody tr td.editable-column {
    background-color: #5555551a !important;
}

/* Non-editable columns - subtle gray */
#ordersTable tbody td:not(.editable-column) {
    /*background-color: #fafafa;*/
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    #ordersTable thead input.column-filter,
    #ordersTable thead select.column-filter {
        font-size: 16px !important; /* Prevent zoom on mobile */
        min-height: 44px !important; /* Larger touch target */
    }
}

/* Larger inline edit inputs and selects */
#ordersTable tbody td input,
#ordersTable tbody td select {
    padding: 8px 10px !important;
    font-size: 14px !important;
    border: 2px solid #3498db !important;
    border-radius: 4px !important;
    min-height: 36px !important;
}

#ordersTable tbody td select {
    cursor: pointer !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 12px !important;
    padding-right: 30px !important;
}

#ordersTable tbody td input[type="date"] {
    padding: 6px 10px !important;
}

#ordersTable tbody td input[type="number"] {
    padding: 6px 10px !important;
}

/* Customer Info Column Styling */
#ordersTable td.customer-info-cell {
    white-space: normal !important;
    vertical-align: top !important;
    min-width: 200px;
    max-width: 300px;
    font-size: 12px;
    line-height: 1.4;
}

#ordersTable td.customer-info-cell br {
    margin-bottom: 2px;
}

/* Textarea styling for inline edit */
#ordersTable tbody td textarea {
    font-family: inherit !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    resize: vertical !important;
}

/* Paid Column Styling */
#ordersTable td.paid-column {
    text-align: center;
    font-size: 14px;
}

#ordersTable tbody td.paid-column {
    min-width: 100px;
}

/* Checkbox in inline edit */
#ordersTable tbody td input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #27ae60;
}



/* ===== DATE RANGE FILTER STYLING ===== */

/* Container for date range inputs */
#ordersTable thead tr.filters th > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Date range input styling */
#ordersTable thead input[type="date"].column-filter {
    width: 100% !important;
    padding: 4px 6px !important;
    font-size: 11px !important;
    border: 2px solid #ddd !important;
    border-radius: 3px !important;
    min-height: 28px !important;
    box-sizing: border-box;
}

#ordersTable thead input[type="date"].column-filter:focus {
    outline: none !important;
    border-color: #3498db !important;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2) !important;
}

/* Hover effect for date inputs */
#ordersTable thead input[type="date"].column-filter:hover {
    border-color: #3498db !important;
    background-color: #f8f9fa !important;
}

/* Calendar icon styling in date inputs */
#ordersTable thead input[type="date"].column-filter::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    padding: 2px;
}

#ordersTable thead input[type="date"].column-filter::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Special styling for date filter cells */
#ordersTable thead tr.filters th:has(input[type="date"]) {
    padding: 4px 5px !important;
    vertical-align: top !important;
}

/* Responsive adjustments for date filters */
@media (max-width: 768px) {
    #ordersTable thead input[type="date"].column-filter {
        font-size: 12px !important;
        min-height: 32px !important;
        padding: 6px 8px !important;
    }
}

/* Ensure date inputs don't overflow their cells */
#ordersTable thead tr.filters th > div > input[type="date"] {
    max-width: 100%;
}












/* ============================================================================
   ORDERS SUMMARY BAR - Add to style.css
   Shows total records and total amount above the orders table
   ============================================================================ */

/* Orders Summary Container */
.orders-summary {
    display: flex;
    justify-content: end;
    align-items: center;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    /*box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);*/
    transition: all 0.3s ease;
}

/* When filters are active - add visual indicator 
.orders-summary.filtered {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    animation: pulse 2s ease-in-out infinite;
}*/

.orders-summary.filtered::before {
    content: '🔍 Filtered View';
    position: absolute;
	top: 46px;
	left: 250px;
    background: #e67e22;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Summary Items */
.summary-item {
    display: flex;
    flex-direction: initial;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: #95a5a6;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    min-width: 180px;
    transition: all 0.3s ease;
}



/* Summary Labels */
.summary-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* Responsive Design */
@media (max-width: 768px) {
    .orders-summary {
        flex-direction: column;
        gap: 15px;
        padding: 20px 15px;
        position: relative;
    }
    
    .orders-summary.filtered::before {
        top: 5px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .summary-item {
        width: 100%;
        min-width: unset;
    }
    
    .summary-item.highlight {
        min-width: unset;
    }
    
    .summary-value {
        font-size: 28px;
    }
    .summary-value
}

/* Pulse Animation for Filtered State */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    }
    50% {
        box-shadow: 0 6px 25px rgba(243, 156, 18, 0.6);
    }
}


/* Print Styles */
@media print {
    .orders-summary {
        background: #f8f9fa;
        color: #333;
        border: 2px solid #ddd;
    }
    
    .summary-label,
    .summary-value {
        color: #333;
        text-shadow: none;
    }
    
    .orders-summary.filtered::before {
        background: #333;
        color: white;
    }
}
 

/* Loading State */
.orders-summary.loading {
    opacity: 0.6;
    pointer-events: none;
}

.orders-summary.loading .summary-value {
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Tooltip on Hover (Optional Enhancement) */
.summary-item[title] {
    cursor: help;
}

/* Additional Visual States */
.summary-value.positive {
    color: #27ae60 !important;
}

.summary-value.warning {
    color: #f39c12 !important;
}

.summary-value.negative {
    color: #e74c3c !important;
}

/* Smooth Number Transitions */
.summary-value {
    transition: color 0.3s ease, transform 0.3s ease;
}

.summary-value.updating {
    animation: pop 0.3s ease;
}

@keyframes pop {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Export Button Alignment */
.btn-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.orders-summary + .btn-group {
    margin-top: -10px;
}







 
/* ============================================================================
   EXPANDING INPUTS ON FOCUS - Minimal version
   ============================================================================ */

/* Make cells allow absolute positioning */
#ordersTable thead tr.filters th,
#ordersTable tbody td:not(.dt-note) {
    position: relative !important;
    overflow: visible !important;
}

/* Filter inputs - expand on focus */
#ordersTable thead input.column-filter:not([type="date"]):focus,
#ordersTable thead select.column-filter:focus {
    position: absolute !important;
    left: 0 !important;
    top: 15px !important;
    width: 200px !important;
    z-index: 1000 !important;
    border-color: #3498db !important;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3) !important;
    background-color: white !important;
}

/* Dropdowns - slightly narrower */
#ordersTable thead select.column-filter:focus,
#ordersTable tbody td select:focus {
    width: 200px !important;
}

/* Inline edit inputs - expand on focus */
#ordersTable tbody td input:focus,
#ordersTable tbody td select:focus {
    position: absolute !important;
    left: 0 !important;
    top: 30px !important;
    width: 200px !important;
    z-index: 1000 !important;
    border-color: #2980b9 !important;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4) !important;
    background-color: white !important;
}

/* Textareas - larger expansion */
#ordersTable tbody td textarea:focus {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 300px !important;
    min-height: 120px !important;
    z-index: 1000 !important;
    border-color: #2980b9 !important;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4) !important;
    background-color: white !important;
}

/* Checkboxes - don't expand */
#ordersTable tbody td input[type="checkbox"]:focus {
    position: static !important;
    width: 20px !important;
}

/* Optional: Smooth animation */
#ordersTable thead input.column-filter,
#ordersTable thead select.column-filter,
#ordersTable tbody td input,
#ordersTable tbody td select,
#ordersTable tbody td textarea {
    transition: all 0.2s ease !important;
}

/* Mobile: Larger expansions */
@media (max-width: 768px) {
    #ordersTable thead input.column-filter:focus,
    #ordersTable thead select.column-filter:focus,
    #ordersTable tbody td input:focus,
    #ordersTable tbody td select:focus {
        width: 90vw !important;
        max-width: 350px !important;
        font-size: 16px !important;
        min-height: 44px !important;
    }
}
```

## That's It!

Save your style.css and hard refresh (Ctrl+Shift+R).

Now:
- **Click any filter input** → Expands to 250px
- **Click any dropdown** → Expands to 200px  
- **Double-click to edit, then focus** → Expands to 250px
- **Focus textarea** → Expands to 300px × 120px

The inputs will overlay other columns and return to normal when you click away! 🎉

---

## Want More Features?

Use the full version with:
- ✨ Dimming effect on other cells
- ✨ Highlighted parent cell
- ✨ Subtle background overlay
- ✨ More customization options

[Download full version](computer:///mnt/user-data/outputs/expanding_inputs.css)






























/* ============================================================================
   PAYMENT TRACKING STYLES
   Add to style.css
   ============================================================================ */

/* Payment Tracker Container */
.payment-tracker {
    max-width: 1200px;
    margin: 0 auto;
}

/* Summary Card */
.payment-summary-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    border-radius: 12px;
    /*box-shadow: 0 4px 15px rgba(0,0,0,0.1);*/
}

.summary-item {
    text-align: center;
    padding: 5px;
    border: solid 1px #95a5a6;
    border-radius: 8px;
    backdrop-filter: blur(10px);
	margin-left: 5px;
}

.summary-item label {
    display: block;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-weight: 500;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 22px;
    font-weight: 700;
    color: white;
}
/*
.summary-value.total-paid {
    color: #2ecc71;
    text-shadow: 0 2px 4px rgba(46,204,113,0.3);
}*/


/* Add Payment Form */
.add-payment-form {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.add-payment-form h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-payment-form h3::before {
    content: '💰';
    font-size: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

/* Large Inputs for Easy Entry */
.large-input {
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.large-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.large-input[type="number"] {
    font-size: 18px;
    font-weight: 600;
}

.large-input[type="date"] {
    cursor: pointer;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    font-size: 20px;
}

/* Quick Amount Buttons */
.quick-amounts {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.quick-amounts label {
    font-weight: 600;
    color: #555;
    margin-right: 10px;
}

.quick-amount-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #3498db;
    color: #3498db;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.quick-amount-btn:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.quick-amount-btn:active {
    transform: translateY(0);
}

/* Payments History */
.payments-history {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.payments-history h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payments-history h3::before {
    content: '📊';
    font-size: 24px;
}

.table-controls {
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-end;
}

/* Payments Table */
#paymentsTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#paymentsTable thead {
    background: #f8f9fa;
}

#paymentsTable th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e0e0e0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#paymentsTable td {
    padding: 14px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-size: 14px;
}

#paymentsTable tbody tr {
    transition: background-color 0.2s ease;
}

#paymentsTable tbody tr:hover {
    background-color: #f8f9fa;
}

.payment-amount {
    font-weight: 700;
    color: #27ae60;
    font-size: 16px;
}

.remaining-balance {
    font-weight: 700;
    color: #e74c3c;
    font-size: 16px;
}

/* Action Buttons in Table */
.btn-icon-small {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-icon-small:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.btn-delete:hover {
    background: #ffe0e0;
}

/* Initial Balance Modal */
#initialBalanceModal .modal-content {
    max-width: 450px;
}

#initialBalanceModal .form-group {
    margin-bottom: 20px;
}

#initialBalanceModal .large-input {
    font-size: 28px;
    text-align: center;
    font-weight: 700;
    padding: 20px;
    border-width: 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-summary-card {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .summary-value {
        font-size: 28px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .quick-amounts {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-amount-btn {
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
    
    #paymentsTable {
        font-size: 12px;
    }
    
    #paymentsTable th,
    #paymentsTable td {
        padding: 10px 6px;
    }
}

/* Empty State */
#paymentsTable tbody tr td[colspan] {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

#paymentsTable tbody tr td[colspan] small {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #bbb;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.add-payment-form,
.payments-history {
    animation: fadeIn 0.4s ease;
}

/* Success/Error States */
.input-error {
    border-color: #e74c3c !important;
}

.input-success {
    border-color: #27ae60 !important;
}

/* Notification Styles (if not already present) */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10000;
    font-weight: 600;
    color: white;
}

.notification-success {
    background: #27ae60;
}

.notification-error {
    background: #e74c3c;
}

.notification-info {
    background: #3498db;
}

/* Print Styles */
@media print {
    .add-payment-form,
    .quick-amounts,
    .table-controls,
    .btn-icon-small {
        display: none;
    }
    
    .payment-summary-card {
        page-break-after: avoid;
    }
    
    #paymentsTable {
        page-break-inside: avoid;
    }
}

/* Focus Indicators for Accessibility */
.quick-amount-btn:focus,
.large-input:focus,
.btn-large:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltips */
[title] {
    cursor: help;
}

/* Currency Symbol Styling */
.payment-amount::before,
.remaining-balance::before {
    font-weight: 400;
    opacity: 0.7;
}


/* Normal display (truncate) */
#ordersTable tbody td.col-sku{
    white-space: pre !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    max-width: 140px;
}



#ordersTable tbody td.col-tracking {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    max-width: 140px;
}

/* When editing — show full text */
#ordersTable tbody td.col-note.editing,
#ordersTable tbody td.col-tracking.editing {
    overflow: visible !important;
    white-space: normal !important;
    max-width: none !important;
}

/* When editing tracking, make input wider and easier to type */
#ordersTable tbody td.col-note.editing input,
#ordersTable tbody td.col-tracking.editing input {
    width: 400px !important;      /* you choose the size */
    max-width: none !important;   /* override truncation */
    white-space: normal !important;
    overflow: visible !important;
}


#ordersTable .qty-flag { color: #e74c3c; font-weight: 700; }
#ordersTable td.col-sku { white-space: normal; } /* allow wrapping */


.supplier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.supplier-header h2 {
    margin: 0;
}

.action-buttons {
    display: flex;
    gap: 8px;
}








/* Password Change Modal Styling */
.success-message {
    background: #27ae60;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
}

/* Better styling for password inputs */
input[type="password"] {
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

input[type="password"]::placeholder {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    letter-spacing: normal;
}

/* Password strength indicator (optional future enhancement) */
.password-strength {
    height: 4px;
    margin-top: 5px;
    border-radius: 2px;
    background: #ddd;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: width 0.3s, background-color 0.3s;
}

.password-strength-weak {
    width: 33%;
    background: #e74c3c;
}

.password-strength-medium {
    width: 66%;
    background: #f39c12;
}

.password-strength-strong {
    width: 100%;
    background: #27ae60;
}

/* Delete button styling */
.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}



/* Add Order Modal Styles - Add these to your style.css file */

/* Make the modal wider for the order form
.modal-content.large {
    max-width: 800px;
    width: 90%;
} */

/* Button group for form actions */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Form row for side-by-side inputs */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

/* Make textareas in form groups full width */
.form-group textarea {
    resize: vertical;
}

/* Better spacing for datetime inputs */
.form-group input[type="datetime-local"],
.form-group input[type="date"] {
    padding: 8px;
}

/* Success message styling */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin: 10px 0;
}

/* Error message styling (if not already defined) */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 10px 0;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content.large {
        width: 95%;
        max-width: none;
    }
}



/* Re-hide overflow only for the note column */
#ordersTable tbody td.col-note {
  overflow: hidden !important;   /* overrides your global overflow: visible */
	min-width: 160px;
	max-width: 200px;
  vertical-align: top;
}

/* Multiline clamp with ellipsis */
#ordersTable tbody td.col-note .note-cell {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  white-space: normal;
  word-break: break-word;
  line-height: 1.2em;
  -webkit-line-clamp: 5;
  overflow: hidden;
  text-overflow: ellipsis;
}



#scrollTopBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #95a5a6;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: none; 
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    transition: opacity 0.25s ease;
    z-index: 9999;
}

#scrollTopBtn:hover {
  background: #c0d6ee;
}
html {
  scroll-behavior: smooth;
}








/* CSV Import Modal Styles */

.modal-content .info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.modal-content .info-box code {
    background: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.modal-content .info-box ul {
    margin: 10px 0 0 20px;
    font-size: 14px;
}

.modal-content .info-box ul li {
    margin: 5px 0;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.result-card {
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.result-card .value {
    font-size: 32px;
    font-weight: bold;
}

/* Progress bar animation */
#csvProgressBar {
    transition: width 0.5s ease-in-out;
}

/* CSV preview table styling */
#csvPreviewTable table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

#csvPreviewTable th {
    background: #f0f0f0;
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
    font-weight: 600;
}

#csvPreviewTable td {
    padding: 8px;
    border: 1px solid #ddd;
}

#csvPreviewTable tbody tr:hover {
    background: #f8f9fa;
}

/* Error details styling */
#csvErrorDetails {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
}

#csvErrorDetails h5 {
    margin-bottom: 10px;
    color: #856404;
}

#csvErrorList {
    margin-left: 20px;
    font-size: 13px;
    color: #856404;
}

#csvErrorList li {
    margin: 5px 0;
}

/* File input styling */
input[type="file"] {
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #3498db;
}

/* Import button specific styling */
.btn.btn-primary[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}