:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --bg: #f3f4f6;
    --white: #ffffff;
    --text: #1f2937;
    --gray: #6b7280;
    --danger: #ef4444;
    --success: #10b981;
    --sidebar-width: 240px;
    --header-height: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; }

body { 
    background-color: var(--bg); 
    color: var(--text); 
    height: 100vh; 
    display: flex; 
    overflow: hidden; 
    font-size: 0.9rem;
}

/* === AUTH PAGES === */
.auth-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #e0e7ff 0%, #f3f4f6 100%);
    padding: 20px;
}

.auth-card {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    animation: bounceUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.auth-header { text-align: center; margin-bottom: 25px; }
.auth-header h1 { font-size: 1.8rem; color: var(--primary); font-weight: 800; margin-bottom: 8px; letter-spacing: -1px; }
.auth-header p { color: var(--gray); font-size: 0.9rem; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--gray); }
.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 600; transition: 0.2s; }
.auth-footer a:hover { color: var(--primary-dark); text-decoration: underline; }

.btn-auth {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}
.btn-auth:hover { 
    background: var(--primary-dark); 
    transform: translateY(-2px); 
    box-shadow: 0 8px 15px rgba(79, 70, 229, 0.3); 
}

/* === SIDEBAR NAVIGATION === */
.sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 15px;
    border-right: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 30px;
    padding-left: 10px;
    display: block;
    letter-spacing: -0.5px;
    transition: color 0.2s;
    
    /* UPDATED: Allow text wrapping */
    white-space: normal;      /* Allow text to wrap to next line */
    overflow: visible;        /* Show full text */
    text-overflow: clip;      /* Remove ellipsis (...) */
    word-wrap: break-word;    /* Break long words if necessary */
    line-height: 1.2;         /* Better spacing for multi-line text */
    
    cursor: default;
}

.nav-links { list-style: none; flex: 1; }
.nav-links li { margin-bottom: 8px; }

.nav-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border: none;
    background: transparent;
    color: var(--gray);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.nav-btn:hover { background: #f3f4f6; color: var(--primary); }
.nav-btn.active { background: #e0e7ff; color: var(--primary); font-weight: 600; }
.nav-btn i { font-size: 1.1rem; width: 20px; text-align: center; }

.user-profile {
    padding: 12px;
    background: #f9fafb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}
.user-info { flex: 1; overflow: hidden; }
.user-info h4 { font-size: 0.85rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.user-info small { font-size: 0.7rem; color: var(--gray); }
.logout-btn { background: #fee2e2; color: #ef4444; border: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; font-size: 0.9rem; }
.logout-btn:hover { background: #ef4444; color: white; }

/* === MAIN CONTENT AREA === */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.view-section {
    display: none;
    flex: 1;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    animation: fadeIn 0.4s ease-out;
}
.view-section.active { display: flex; }

/* Keyframes */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bounceUp { 0% { opacity: 0; transform: translateY(50px) scale(0.8); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.top-header {
    background: var(--white);
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    height: var(--header-height);
    flex-shrink: 0;
}
.page-title { font-size: 1.1rem; font-weight: 600; }
.search-wrapper { position: relative; width: 280px; }
.search-wrapper i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--gray); font-size: 0.9rem; }
.search-wrapper input { width: 100%; padding: 8px 10px 8px 35px; border-radius: 20px; border: 1px solid #e5e7eb; background: #f9fafb; outline: none; transition: 0.3s; font-size: 0.9rem; }
.search-wrapper input:focus { border-color: var(--primary); background: white; }

/* === POS LAYOUT === */
.pos-container { display: flex; height: calc(100% - var(--header-height)); }
.product-area { flex: 7; padding: 15px; overflow-y: auto; overflow-x: hidden; }
.cart-area { 
    flex: 3; 
    background: var(--white); 
    border-left: 1px solid #e5e7eb; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
}

/* === CATEGORIES & GRID === */
.categories { display: flex; gap: 8px; margin-bottom: 15px; overflow-x: auto; padding-bottom: 5px; }
.categories button { padding: 6px 14px; border-radius: 20px; border: 1px solid #e5e7eb; background: white; cursor: pointer; white-space: nowrap; transition: 0.2s; font-size: 0.85rem; }
.categories button:hover { background: #f3f4f6; }
.categories button.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 3px 5px rgba(79, 70, 229, 0.2); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }

.product-card { 
    background: white; padding: 12px; border-radius: 14px; text-align: center; 
    border: 1px solid transparent; box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    transition: 0.2s; position: relative; cursor: pointer; 
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 8px 16px rgba(0,0,0,0.1); }

.product-img-wrapper { 
    width: 100%; 
    aspect-ratio: 1/1; 
    border-radius: 10px; 
    overflow: hidden; 
    background: #f9fafb; 
    margin-bottom: 10px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    flex-shrink: 0; 
}
.product-img { width: 100%; height: 100%; object-fit: cover; }
.product-card-content { display: flex; flex-direction: column; flex-grow: 1; }
.product-name {
    font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.6em; 
}
.variant-badge { align-self: center; background-color: #e0e7ff; color: var(--primary); font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 10px; margin-bottom: 5px; }
.meta-spacer { height: 1.4em; margin-bottom: 5px; }
.product-price { color: var(--text); font-weight: 800; font-size: 1.1rem; margin-top: auto; }
.card-actions { 
    position: absolute; top: 8px; right: 8px; 
    display: flex; gap: 4px; opacity: 0; transition: opacity 0.2s; 
    background: rgba(255,255,255,0.95); padding: 4px; border-radius: 6px; z-index: 10; 
}
.product-card:hover .card-actions { opacity: 1; }
.action-btn { width: 26px; height: 26px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.8rem; transition: transform 0.2s; }
.edit-btn { background: #f59e0b; }
.delete-btn { background: #ef4444; }
.action-btn:hover { transform: scale(1.1); }

/* === CART AREA === */
.cart-header { padding: 15px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; height: var(--header-height); }
.cart-header h3 { font-size: 1rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 12px; }

.empty-cart-state {
    flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; 
    color: var(--gray); text-align: center; opacity: 0.6;
    animation: fadeIn 0.3s ease;
}
.empty-cart-state p { font-size: 1.1rem; font-weight: 500; margin-top: 0; }

.cart-item { 
    display: grid;
    /* Columns: Image | Info/Controls | Price/Remove */
    grid-template-columns: 60px 1fr auto; 
    /* Rows: Top (Info+Remove) | Bottom (Controls+Price) */
    grid-template-rows: auto auto; 
    gap: 8px 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.cart-item-img { width: 45px; height: 45px; border-radius: 8px; object-fit: cover; background: #f3f4f6; flex-shrink: 0; }
.item-info { 
    grid-row: 1;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.item-info h4 { 
    font-size: 0.9rem; 
    font-weight: 700; 
    margin-bottom: 2px; 
    color: var(--text);
    line-height: 1.2;
}
.item-info .unit-price { 
    font-size: 0.75rem; 
    color: var(--gray); 
}

.item-controls { 
    grid-row: 2;
    grid-column: 2;
    align-self: end;
    justify-self: start;
    
    display: flex; 
    align-items: center; 
    background: white; 
    border: 1px solid #e5e7eb; /* Border instead of gray bg */
    border-radius: 8px; 
    padding: 0;
    height: 32px; /* Fixed height for neatness */
    overflow: hidden;
}

.qty-btn { 
    background: white; 
    border: none; 
    width: 30px; 
    height: 100%; 
    cursor: pointer; 
    font-weight: bold; 
    color: var(--primary); 
    font-size: 1rem;
    transition: background 0.2s;
}

.qty-btn:hover { 
    background: #f3f4f6; 
}

.item-controls span { 
    margin: 0 8px; 
    font-weight: 600; 
    font-size: 0.85rem; }

.item-controls span.qty-val { 
    margin: 0; 
    padding: 0 8px;
    font-weight: 600; 
    font-size: 0.9rem; 
    min-width: 24px;
    text-align: center;
    color: var(--text);
}

.item-total { 
    grid-row: 2;
    grid-column: 3;
    align-self: end;
    justify-self: end;
    
    font-weight: 800; 
    font-size: 1.1rem; /* Bigger font */
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px; /* Align visually with buttons */
}

.btn-remove-item { 
    grid-row: 1;
    grid-column: 3;
    justify-self: end;
    align-self: start;
    
    background: transparent; 
    color: #9ca3af; /* Softer gray */
    border: none; 
    width: 24px; 
    height: 24px; 
    cursor: pointer; 
    font-size: 0.9rem; 
    margin: -4px -4px 0 0; /* Pull slightly to corner */
    transition: color 0.2s;
}

.btn-remove-item:hover { 
    color: var(--danger); 
    background: transparent;
}

.cart-footer { padding: 20px; background: #f9fafb; border-top: 1px solid #e5e7eb; flex-shrink: 0; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 0.85rem; color: var(--gray); }
.total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 800; color: var(--text); border-top: 1px solid #e5e7eb; padding-top: 10px; margin-top: 8px; }

/* === SALES VIEW === */
.sales-view-content { padding: 25px; overflow-y: auto; height: 100%; }
.stats-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 25px; }
.stat-card { background: white; padding: 18px; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; align-items: center; gap: 15px; }
.stat-icon { width: 50px; height: 50px; border-radius: 12px; background: #e0e7ff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.stat-info h3 { font-size: 1.5rem; margin: 0; color: var(--text); font-weight: 700; }
.stat-info p { margin: 0; color: var(--gray); font-size: 0.85rem; }

.table-container { background: white; border-radius: 14px; padding: 15px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); overflow: hidden; }
.styled-table { width: 100%; border-collapse: collapse; }
.styled-table th { text-align: left; padding: 12px; color: var(--gray); border-bottom: 2px solid #e5e7eb; font-size: 0.85rem; }
.styled-table td { padding: 12px; border-bottom: 1px solid #f3f4f6; color: var(--text); font-size: 0.9rem; }

.clickable-row { cursor: pointer; transition: background 0.2s; }
.clickable-row:hover { background: #f8fafc; }
.clickable-row.active-row { background: #f0f4ff; border-left: 4px solid var(--primary); }

.order-detail-row td { padding: 0 !important; background: #fcfcfd; }
.detail-container { 
    padding: 20px 30px; 
    border-bottom: 2px solid #eee; 
    animation: slideDown 0.3s ease-out; 
}

@keyframes slideDown { 
    from { opacity: 0; transform: translateY(-10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.detail-table { width: 100%; margin-bottom: 20px; border-spacing: 0; }
.detail-table th { font-size: 0.75rem; text-transform: uppercase; color: var(--gray); padding-bottom: 10px; border-bottom: 1px solid #eee; }
.detail-table td { padding: 8px 0; font-size: 0.85rem; border-bottom: none; }

.detail-footer { display: flex; justify-content: space-between; align-items: flex-start; padding-top: 15px; border-top: 2px solid #f3f4f6; }
.detail-footer .breakdown { width: 250px; }
.detail-footer .breakdown p { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 0.85rem; }
.detail-footer .breakdown h4 { display: flex; justify-content: space-between; font-weight: 700; color: var(--text); }
.detail-footer .actions { text-align: right; }

/* === MODALS === */
.modal { display: none; position: fixed; z-index: 5000; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { 
    background-color: white; padding: 25px; border-radius: 16px; width: 450px; max-width: 90%; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.2); 
    transform: scale(0.9); opacity: 0; transition: 0.3s; max-height: 90vh; overflow-y: auto; 
}
.modal.active .modal-content { transform: scale(1); opacity: 1; }

.modal-content.animate-out { animation: scaleFadeOut 0.3s forwards; }
.modal-content.animate-in { animation: bounceUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
@keyframes scaleFadeOut { to { opacity: 0; transform: scale(0.8); } }

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h2 { font-size: 1.3rem; margin: 0; }
.close-btn { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--gray); transition: 0.2s; }
.close-btn:hover { color: var(--danger); transform: rotate(90deg); }

/* === GLOBAL UTILS === */
.btn-primary { background: var(--primary); color: white; border: none; padding: 10px 18px; border-radius: 10px; cursor: pointer; font-weight: 600; transition: 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.9rem; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-danger { background: #fee2e2; color: #ef4444; border: none; padding: 6px 10px; border-radius: 8px; cursor: pointer; transition: 0.2s; font-size: 0.85rem; }
.btn-danger:hover { background: #ef4444; color: white; }
.checkout-btn { width: 100%; background: var(--primary); color: white; padding: 14px; font-size: 1.05rem; border-radius: 12px; border: none; font-weight: bold; cursor: pointer; transition: 0.2s; margin-top: 20px; }
.checkout-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.text-success { color: #10b981; font-weight: bold; }

/* === NOTIFICATIONS === */
.notification-container { 
    position: fixed; 
    bottom: 30px; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 9999; 
    display: flex; 
    flex-direction: column-reverse; 
    gap: 10px; 
}

.notification { 
    background: white; 
    padding: 10px 20px; 
    border-radius: 50px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
    display: flex; 
    gap: 10px; 
    align-items: center; 
    min-width: 250px;
    animation: popUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.notification.hiding {
    animation: popDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popUp { 
    from { transform: translateY(100px) scale(0.8); opacity: 0; } 
    to { transform: translateY(0) scale(1); opacity: 1; } 
}

@keyframes popDown { 
    from { transform: translateY(0) scale(1); opacity: 1; } 
    to { transform: translateY(100px) scale(0.8); opacity: 0; } 
}

.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.85rem; }
.form-group input, .form-group select { width: 100%; padding: 10px; border: 2px solid #e5e7eb; border-radius: 10px; font-size: 0.95rem; outline: none; }
.form-group input:focus, .form-group select:focus { border-color: var(--primary); }

/* Payment Buttons */
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.pay-btn { padding: 15px; border: 2px solid #e5e7eb; background: white; border-radius: 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: all 0.3s; position: relative; overflow: hidden; }
.pay-btn:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.pay-btn.active { border-color: var(--primary); background: #e0e7ff; color: var(--primary); font-weight: bold; }
.pay-btn i { font-size: 1.5rem; }
.payment-input-area { background: #f9fafb; padding: 15px; border-radius: 12px; border: 1px dashed #cbd5e1; margin-bottom: 15px; text-align: center; }
.payment-input-area label { display: block; margin-bottom: 8px; color: var(--gray); font-weight: 600; font-size: 0.9rem; }
.payment-input-area input { width: 100%; padding: 12px; border: 2px solid #e5e7eb; border-radius: 10px; font-size: 1.3rem; text-align: center; font-weight: bold; color: var(--primary); outline: none; }
.payment-input-area input:focus { border-color: var(--primary); background: white; }

/* Image Upload & Variant */
.image-upload-wrapper { width: 100%; display: flex; justify-content: center; margin-bottom: 15px; }
.image-upload-box { width: 120px; height: 120px; border: 2px dashed #cbd5e1; border-radius: 15px; display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; background-color: #f9fafb; transition: all 0.3s; position: relative; overflow: hidden; }
.image-upload-box:hover { border-color: var(--primary); background-color: #e0e7ff; }
.image-upload-box img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; z-index: 2; }
.upload-placeholder { display: flex; flex-direction: column; align-items: center; color: var(--gray); z-index: 1; font-size: 0.9rem; }

/* === FIXED: VARIANT ROWS STYLING === */
.variant-row { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 10px; 
    align-items: center;
}
.variant-row input { 
    flex: 1; 
    min-width: 70px; 
    padding: 10px; 
    border: 2px solid #e5e7eb; 
    border-radius: 10px; 
    outline: none;
    font-size: 0.9rem;
}
.variant-row input:focus {
    border-color: var(--primary);
}
.btn-remove-variant { 
    flex-shrink: 0; 
    width: 36px; 
    height: 36px; 
    background: #fee2e2; 
    color: var(--danger); 
    border: none; 
    border-radius: 10px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.1rem; 
    transition: 0.2s; 
}
.btn-remove-variant:hover { background: var(--danger); color: white; }

/* === FIXED SETTINGS PAGE LAYOUT === */

/* 1. Enable Scrolling for the Settings Page */
.settings-view-content {
    padding: 25px;
    height: 100%;       /* Take full height of parent */
    overflow-y: auto;   /* Scroll if content is too long */
    overflow-x: hidden;
    box-sizing: border-box;
}

/* 2. Container for Side-by-Side Cards */
.settings-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 20px;
    margin-bottom: 20px;
}

/* On smaller screens, stack them */
@media (max-width: 768px) {
    .settings-grid-row {
        grid-template-columns: 1fr;
    }
}

/* 3. Card Adjustments */
.settings-card {
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    animation: fadeInUp 0.5s ease-out forwards;
    height: 100%; /* Make cards same height */
    display: flex;
    flex-direction: column;
}

.settings-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 15px;
}

.settings-header h3 {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 700;
    margin: 0;
}

.settings-footer {
    margin-top: auto; /* Pushes button to bottom of card */
    text-align: right;
    border-top: 1px solid #f3f4f6;
    padding-top: 20px;
}

/* 4. Input Field Styling */
.settings-card input[type="text"],
.settings-card input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text);
    background: #f9fafb;
    transition: 0.2s;
}

.settings-card input:focus {
    border-color: var(--primary);
    background: white;
    outline: none;
}

/* === DATE SEPARATOR STYLING === */
.date-separator td {
    background-color: #f3f4f6; /* Light gray background */
    color: var(--primary-dark); /* Dark primary color text */
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 15px !important;
    border-bottom: 2px solid #e5e7eb;
}

/* Optional: Add a left border to match branding */
.date-separator td {
    border-left: 4px solid var(--primary);
}

/* === SALES HISTORY DATE SEPARATOR === */
.date-separator td {
    background-color: #f3f4f6;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 15px !important;
    border-bottom: 2px solid #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}