/* MeDigital - Grocery Dashboard Styles */

/* Auto-Population Suggestions Styles */
.auto-population-suggestions {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

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

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

.suggestion-main {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
}

.suggestion-details {
    color: #666;
    font-size: 12px;
    font-style: italic;
}

.suggestion-item:hover .suggestion-main {
    color: #007bff;
}

/* Auto-population field indicators */
.auto-population-field {
    position: relative;
}

.auto-population-field::after {
    content: "🔍";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.6;
    pointer-events: none;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f9d71c 0%, #dbb42c 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
    max-width: 100vw;
    position: relative;
}

html {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Dashboard Navigation */
.dashboard-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

.dashboard-nav .nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 0.5rem;
    min-width: 0;
}

.dashboard-nav .nav-links {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
    min-width: 0;
}

.dashboard-nav .nav-link {
    color: #d4a017;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(249, 215, 28, 0.1);
    white-space: nowrap;
    flex-shrink: 0;
}

.dashboard-nav .nav-link:hover {
    background: rgba(249, 215, 28, 0.2);
    transform: translateY(-2px);
}

.nav-home {
    color: #d4a017;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(249, 215, 28, 0.1);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-home:hover {
    background: rgba(249, 215, 28, 0.2);
    transform: translateX(-3px);
}

.dashboard-nav h2 {
    background: linear-gradient(135deg, #d4a017, #b8860b);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--page-padding-top, 100px) var(--spacing-xl, 20px) var(--spacing-xl, 20px) var(--spacing-xl, 20px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
        margin-left: 0;
        margin-right: 0;
    }
    
    .container > * {
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Specifically target stats-grid to prevent overflow */
    .container > .stats-grid {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Ensure stat cards inside container are properly constrained */
    .container .stats-grid .stat-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #d4a017, #b8860b);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 0 0 30px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    min-width: 0;
    padding: 0;
}

/* Mobile: Force single column and remove min-width constraint */
@media (max-width: 768px) {
    .stats-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-auto-flow: row !important;
        grid-auto-columns: 1fr !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        margin: 0 0 20px 0 !important;
        padding: 0 !important;
        align-items: stretch !important;
        justify-items: stretch !important;
    }
    
    .stat-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 20px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin: 0 !important;
        align-self: stretch !important;
        grid-column: 1 / -1 !important;
    }
}

/* Tablet: Reduce min-width but still allow multiple columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    min-width: 0;
    margin: 0;
    text-align: left;
}

/* Ensure cards never exceed container width */
@media (max-width: 768px) {
    .stat-card {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-card h3 {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.dashboard-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dashboard-section .section-title {
    color: #666;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shopping-list {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
    max-width: 100%;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    gap: 15px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.list-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.list-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.item-checkbox {
    margin-right: 15px;
    transform: scale(1.2);
    flex-shrink: 0;
}

.list-item span:first-of-type {
    flex: 1;
    text-align: left;
    margin-left: 5px;
}

.list-item span:last-of-type {
    flex-shrink: 0;
    text-align: right;
    font-weight: 600;
    color: #28a745;
}

/* Specific styles for Recent Purchase items */
.recent-purchase-item {
    padding-left: 10px;
}

.recent-purchase-subtitle {
    margin: 0 0 12px;
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.35;
}

.recent-purchase-item .item-info {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 10px;
    align-items: baseline;
}

.recent-purchase-item .item-name {
    grid-column: 1;
    text-align: left;
    margin-left: 0;
    padding-left: 5px;
    font-weight: 500;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

.recent-purchase-item .item-meta {
    grid-column: 1 / -1;
    font-size: 0.72rem;
    color: #6c757d;
    line-height: 1.35;
    padding-left: 5px;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}

.recent-purchase-search {
    margin-top: 16px;
}

.dashboard-search-products-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 999px;
}

.recent-purchase-item .item-price {
    grid-column: 2;
    grid-row: 1;
    flex-shrink: 0;
    text-align: right;
    font-weight: 600;
    color: #28a745;
    min-width: 60px;
}

.add-item {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.add-item input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.add-item input:focus {
    outline: none;
    border-color: #d4a017;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #f9d71c, #dbb42c);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249, 215, 28, 0.4);
}

/* Add Button Styles */
.btn-add {
    background: #28a745;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    min-width: 80px;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-add:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

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

.btn-added {
    background: #17a2b8;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: not-allowed;
    font-weight: 600;
    min-width: 80px;
    opacity: 0.8;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Item Layout Updates */
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.list-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.list-item.item-added {
    background: #f8f9fa;
    border-left: 4px solid #28a745;
}

.item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    margin-right: 12px;
}

.item-name {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.item-price {
    color: #28a745;
    font-weight: 700;
    margin-left: 12px;
}

.recent-purchase-header {
    margin-bottom: 12px;
}

.dashboard-store-card {
    margin-bottom: 14px;
}

.recent-purchase-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}

.recent-purchase-actions .add-all-container {
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

.recent-purchase-actions .plan-trip-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* Add All Button Styles */
.add-all-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    padding: 0 20px;
}

.btn-add-all {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 12px 32px;
    font-size: 16px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    min-width: 120px;
}

.btn-add-all:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

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

.btn-add-all-completed {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    padding: 12px 32px;
    font-size: 16px;
    border-radius: 25px;
    border: none;
    cursor: not-allowed;
    font-weight: 600;
    opacity: 0.8;
    min-width: 120px;
}

/* Reset Button Styles */
.btn-reset {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
    padding: 12px 32px;
    font-size: 16px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    min-width: 120px;
    margin-left: 12px;
}

.btn-reset:hover {
    background: linear-gradient(135deg, #e0a800, #e55a00);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.4);
}

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

/* Search Results Styles */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 4px;
}

.search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

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

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

.search-item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-item-name {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.search-item-price {
    color: #28a745;
    font-weight: 700;
    margin-left: 12px;
}

.search-no-results,
.search-error {
    padding: 12px 16px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.search-error {
    color: #dc3545;
}

/* Add item container positioning for search results */
.add-item {
    position: relative;
}

.bills-grid {
    display: grid;
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    min-width: 0;
    max-width: 100%;
}

.bill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    transition: transform 0.3s ease;
    cursor: pointer;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.bill-item:hover {
    transform: scale(1.02);
}

.bill-info {
    flex: 1 1 auto;
    min-width: 0;
}

.bill-info h4 {
    color: #333;
    margin-bottom: 5px;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

.bill-date {
    color: #666;
    font-size: 0.9rem;
}

.bill-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
}

.bill-amount {
    font-size: 1.3rem;
    font-weight: bold;
    color: #d4a017;
    white-space: nowrap;
}

.btn-buy-again {
    padding: 6px 12px;
    border: none;
    border-radius: 16px;
    background: #28a745;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.2;
}

.btn-buy-again:hover {
    background: #218838;
}

.no-bills {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border: 2px dashed #ddd;
}

.no-items {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border: 2px dashed #ddd;
}

/* Recipe Preview Section */
.recipe-preview-section {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.recipe-preview-content .section-title {
    margin-bottom: 1rem;
}

.preview-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.recipe-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.highlight-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.highlight-item:hover {
    transform: translateY(-5px);
    border-color: #f9d71c;
    background: white;
    box-shadow: 0 10px 30px rgba(249, 215, 28, 0.2);
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.highlight-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.highlight-item p {
    color: #666;
    font-size: 0.95rem;
}

.recipe-cta {
    margin-top: 2rem;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.cta-note {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 5000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Override for transaction-modal and product-modal to support flexbox layout */
.transaction-modal .modal-content,
.product-modal .modal-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
    width: 100%;
    max-width: 100vw;
}

/*
 * Search & Edit Transactions — viewport-fluid shell (UI only).
 * Uses standard vh + margin pattern so zoom in/out resizes the dialog with the screen.
 * Does not change search/edit/save logic.
 */
#transactionSearchModal.transaction-modal {
    padding: 2vh 1.5vw;
    box-sizing: border-box;
}

#transactionSearchModal.transaction-modal > .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100vh - 4vh) !important;
    max-height: calc(100vh - 4vh) !important;
    margin: 0 auto;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

#transactionSearchModal .modal-header,
#transactionSearchModal .search-section,
#transactionSearchModal .editing-controls,
#transactionSearchModal #editModeIndicator {
    flex-shrink: 0;
}

#transactionSearchModal .results-section {
    flex: 1 1 auto;
    min-height: 0;
}

/* Override search-section styles in modals to prevent centering and width limits */
.transaction-modal .search-section,
.product-modal .search-section {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    justify-content: flex-start !important;
    position: static !important;
}

.transaction-modal .search-section h3,
.product-modal .search-section h3 {
    margin: 0 0 15px 0 !important;
    text-align: left !important;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #f9d71c, #dbb42c);
    transition: width 0.3s ease;
}

/* Smart Shopping Panel Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.section-header .section-title {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
}

.plan-trip-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    flex: 0 0 auto;
    cursor: pointer;
    transition: box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.plan-trip-btn:hover {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838, #1ea87a);
}

.smart-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 1000px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 5000;
    overflow: hidden;
}

.smart-panel.active {
    right: 0;
}

.smart-panel-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.smart-panel-header {
    position: sticky;
    top: 0;
    z-index: 2;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 30px;
    border-bottom: 2px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.smart-panel-header h2 {
    order: 1;
    margin: 0;
    color: #495057;
    font-size: 1.5rem;
    flex: 0 1 auto;
    min-width: 0;
}

.smart-panel-store-card {
    order: 2;
    flex: 1 1 220px;
    min-width: 0;
    max-width: 420px;
}

.smart-panel-header .close-panel {
    order: 3;
}

.smart-store-card-inner {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.smart-store-empty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.smart-store-top {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.smart-store-emoji {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1.3;
}

.smart-store-name,
.smart-store-label {
    flex: 1;
    min-width: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #343a40;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smart-store-label {
    font-weight: 600;
    color: #6c757d;
}

.smart-store-more-btn {
    flex-shrink: 0;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #856404;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.smart-store-more-btn:hover {
    background: #ffe69c;
    border-color: #ffc107;
}

.smart-store-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding-left: 24px;
}

.smart-store-default {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    background: #28a745;
    color: #fff;
}

.smart-store-addr {
    font-size: 0.68rem;
    color: #6c757d;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.close-panel {
    background: #e9ecef;
    border: 2px solid #ced4da;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #495057;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.close-panel:hover {
    color: #fff;
    background: #dc3545;
    border-color: #dc3545;
    transform: rotate(90deg);
}

.smart-panel-body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
    align-items: stretch;
    overflow: hidden;
}

.suggestions-section,
.new-list-section {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.suggestions-section h3,
.new-list-section h3 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    flex-shrink: 0;
}

.suggestion-source {
    flex-shrink: 0;
    margin-bottom: 10px;
    color: #555;
    font-size: 0.9rem;
}

.suggestions-list {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px;
    padding-right: 10px;
    background: #f8f9fa;
    border-radius: 15px;
}

.empty-suggestions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 200px;
    color: #6c757d;
    text-align: center;
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    border: 2px dashed #dee2e6;
}

.empty-suggestions p {
    margin: 10px 0;
    font-size: 1rem;
}

.empty-suggestions p:first-child {
    font-size: 1.1rem;
    font-weight: 600;
    color: #28a745;
}

.suggestion-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.suggestion-item:hover {
    border-color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.suggestion-name {
    font-weight: 600;
    color: #495057;
    font-size: 1.1rem;
}

.suggestion-price {
    color: #28a745;
    font-weight: 600;
}

.suggestion-insights {
    margin: 10px 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.suggestion-insight {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.suggestion-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-add-suggestion {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-add-suggestion:hover {
    background: #218838;
    transform: scale(1.05);
}

.btn-skip {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-skip:hover {
    background: #5a6268;
}

.new-shopping-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.empty-list {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    height: 100%;
    color: #6c757d;
    font-style: italic;
}

.shopping-list-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.shopping-list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.item-info {
    flex: 1;
    min-width: 0;
    margin-left: 15px;
}

.item-name-new {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

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

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e9ecef;
    border-radius: 20px;
    padding: 5px 10px;
}

.qty-btn {
    background: #28a745;
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #218838;
    transform: scale(1.1);
}

.qty-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.item-price-new {
    color: #28a745;
    font-weight: 600;
    margin-left: 15px;
}

.item-notes-btn {
    background: #ffc107;
    color: #495057;
    border: none;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.item-notes-btn:hover {
    background: #e0a800;
}

.item-remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.item-remove-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Smart panel New Purchase — PWA two-row card layout (all viewports) */
.smart-panel .new-shopping-list {
    overflow-x: hidden;
}

.smart-panel .shopping-list-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

.smart-panel .shopping-list-item .item-checkbox {
    display: none;
}

.smart-panel .shopping-list-item .item-info {
    display: block;
    flex: none;
    width: 100%;
    margin: 0;
}

.smart-panel .shopping-list-item .item-name-new {
    word-break: break-word;
    line-height: 1.35;
    margin-bottom: 0;
}

.smart-panel .shopping-list-item .item-meta-new {
    font-size: 0.72rem;
    color: #6c757d;
    line-height: 1.35;
    margin-top: 3px;
}

.smart-panel .shopping-list-item .item-notes {
    font-size: 0.72rem;
    color: #856404;
    margin-top: 3px;
}

.smart-panel .shopping-list-item .item-controls {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

.smart-panel .shopping-list-item .item-price-new {
    margin: 0;
    text-align: right;
    min-width: 0;
}

.smart-panel .shopping-list-item .item-remove-btn {
    margin: 0;
    flex-shrink: 0;
}

.list-summary {
    flex-shrink: 0;
    margin-top: auto;
    border-top: 2px solid #e9ecef;
    padding: 20px 0 4px;
    width: 100%;
    box-sizing: border-box;
}

.estimated-total {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: #28a745;
}

.list-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.list-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    padding: 10px 12px;
    border-radius: 25px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    transform: none;
    transition: box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.list-actions .btn:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Smart panel action buttons — scoped colors (avoid global btn-secondary white-on-white) */
.smart-panel .list-actions .btn-secondary {
    background: linear-gradient(135deg, #f9d71c, #dbb42c);
    color: #333;
    border: none;
}

.smart-panel .list-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #e6c619, #c9a428);
    color: #222;
}

.smart-panel .list-actions .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    border: none;
}

.smart-panel .list-actions .btn-success:hover {
    background: linear-gradient(135deg, #218838, #1ea87a);
}

.smart-panel .list-actions .btn-primary {
    background: linear-gradient(135deg, #28a745, #218838);
    color: #fff;
    border: none;
}

.smart-panel .list-actions .btn-primary:hover {
    background: linear-gradient(135deg, #1e7e34, #19692c);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.35);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Navigation Button Styles - Responsive Scaling */
    .dashboard-nav {
        padding: 0.75rem 0;
    }
    
    .dashboard-nav .nav-container {
        padding: 0 15px;
        gap: 0.5rem;
    }
    
    /* Fluid font sizing - scales between 0.75rem and 0.9rem based on viewport */
    .nav-home {
        font-size: clamp(0.75rem, 2.2vw, 0.9rem);
        padding: clamp(0.35rem, 1.2vw, 0.5rem) clamp(0.6rem, 2.8vw, 0.9rem);
        font-weight: 600;
        white-space: nowrap;
        min-height: clamp(32px, 9vw, 40px);
        display: flex;
        align-items: center;
        color: #d4a017;
        text-decoration: none;
        border-radius: 25px;
        transition: all 0.3s ease;
        background: rgba(249, 215, 28, 0.1);
    }
    
    .dashboard-nav .nav-link {
        font-size: clamp(0.75rem, 2.2vw, 0.9rem);
        padding: clamp(0.35rem, 1.2vw, 0.5rem) clamp(0.6rem, 2.8vw, 0.9rem);
        font-weight: 600;
        white-space: nowrap;
        min-height: clamp(32px, 9vw, 40px);
        display: flex;
        align-items: center;
        color: #d4a017;
        text-decoration: none;
        border-radius: 25px;
        transition: all 0.3s ease;
        background: rgba(249, 215, 28, 0.1);
    }
    
    /* Header title - proportional scaling */
    .dashboard-nav h2 {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
        flex: 1;
        text-align: center;
        padding: 0 0.5rem;
        background: linear-gradient(135deg, #d4a017, #b8860b);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin: 0;
    }
    
    .main-grid {
        grid-template-columns: 1fr;
    }
    
    /* Smart Panel Mobile Styles */
    .smart-panel {
        width: 100%;
        max-width: none;
        overflow-y: auto;
    }

    .smart-panel-header {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "title close"
            "store store";
        align-items: start;
        padding: 16px 18px;
        gap: 10px 12px;
    }

    .smart-panel-header h2 {
        grid-area: title;
        order: unset;
        flex: unset;
        font-size: 1.15rem;
        padding-right: 8px;
    }

    .smart-panel-header .close-panel {
        grid-area: close;
        order: unset;
        align-self: start;
        justify-self: end;
    }

    .smart-panel-store-card {
        grid-area: store;
        order: unset;
        flex: unset;
        max-width: none;
        width: 100%;
    }
    
    .smart-panel-body {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 20px;
        overflow: visible;
    }

    .smart-panel .suggestions-section {
        flex: none;
        min-height: auto;
        margin-bottom: 24px;
        padding-bottom: 24px;
        border-bottom: 3px solid #e9ecef;
    }

    .smart-panel .new-list-section {
        flex: none;
        min-height: auto;
        padding-top: 4px;
    }

    .smart-panel .new-list-section h3 {
        margin-top: 0;
        padding-top: 4px;
    }

    .suggestions-list,
    .new-shopping-list {
        flex: none;
        min-height: 140px;
        max-height: 45vh;
    }

    .smart-panel .suggestions-list {
        padding-bottom: 16px;
    }

    .smart-panel .suggestion-item:last-child {
        margin-bottom: 0;
    }

    .smart-panel .new-shopping-list {
        padding: 12px;
    }

    .smart-panel .shopping-list-item {
        padding: 12px;
    }

    .smart-panel .shopping-list-item:hover {
        transform: none;
    }

    .smart-panel .shopping-list-item .item-name-new {
        font-size: 0.95rem;
    }

    .smart-panel .shopping-list-item .quantity-control {
        padding: 4px 8px;
        gap: 4px;
    }

    .smart-panel .shopping-list-item .qty-btn {
        width: 28px;
        height: 28px;
    }

    .smart-panel .shopping-list-item .qty-display {
        min-width: 24px;
        font-size: 0.9rem;
    }

    .smart-panel .shopping-list-item .item-price-new {
        font-size: 0.95rem;
    }

    .smart-panel .shopping-list-item .item-notes-btn {
        padding: 6px 8px;
        font-size: 0.75rem;
    }

    .smart-panel .shopping-list-item .item-remove-btn {
        width: 32px;
        height: 32px;
    }

    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .recent-purchase-actions .plan-trip-btn {
        width: 100%;
        padding: 15px 20px;
    }

    .recent-purchase-actions .add-all-container {
        width: 100%;
        justify-content: flex-end;
    }

    .recent-purchase-actions .btn-add-all,
    .recent-purchase-actions .btn-add-all-completed {
        width: auto;
    }
    
    .plan-trip-btn {
        width: 100%;
        padding: 15px 20px;
    }
    
    .list-actions {
        grid-template-columns: 1fr;
    }

    .list-actions .btn {
        font-size: 0.875rem;
        padding: 12px 16px;
    }
    
    .recipe-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
}
    
@media (max-width: 768px) {
    /* Mobile Navigation Button Styles - Responsive Scaling */
    .dashboard-nav {
        padding: 0.75rem 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        position: relative;
    }
    
    .dashboard-nav .nav-container {
        padding: 0 15px;
        gap: clamp(0.25rem, 1vw, 0.5rem);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        flex-wrap: nowrap;
    }
    
    .dashboard-nav .nav-links {
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    /* Fluid font sizing - scales between 0.75rem and 0.9rem based on viewport */
    .nav-home {
        font-size: clamp(0.7rem, 2vw, 0.85rem);
        padding: clamp(0.3rem, 0.9vw, 0.45rem) clamp(0.45rem, 2.2vw, 0.75rem);
        font-weight: 600;
        white-space: nowrap;
        min-height: clamp(32px, 9vw, 40px);
        display: inline-flex;
        align-items: center;
        color: #d4a017;
        text-decoration: none;
        border-radius: 25px;
        transition: all 0.3s ease;
        background: rgba(249, 215, 28, 0.1);
        flex-shrink: 1;
        max-width: calc(50% - 0.75rem);
        box-sizing: border-box;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .dashboard-nav .nav-link {
        font-size: clamp(0.7rem, 2vw, 0.85rem);
        padding: clamp(0.3rem, 0.9vw, 0.45rem) clamp(0.45rem, 2.2vw, 0.75rem);
        font-weight: 600;
        white-space: nowrap;
        min-height: clamp(32px, 9vw, 40px);
        display: inline-flex;
        align-items: center;
        color: #d4a017;
        text-decoration: none;
        border-radius: 25px;
        transition: all 0.3s ease;
        background: rgba(249, 215, 28, 0.1);
        flex-shrink: 1;
        max-width: calc(50% - 0.75rem);
        box-sizing: border-box;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Header title - proportional scaling */
    .dashboard-nav h2 {
        font-size: clamp(0.95rem, 3.2vw, 1.3rem);
        flex: 0 1 auto;
        text-align: center;
        padding: 0 clamp(0.25rem, 0.8vw, 0.5rem);
        background: linear-gradient(135deg, #d4a017, #b8860b);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin: 0;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .main-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        width: 100%;
        max-width: 100vw;
        padding: 15px;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .dashboard-section {
        padding: 20px;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* Recent Bills — fit phone width (Avg Per Trip already adapts; bills were overflowing) */
    .bills-grid {
        gap: 10px;
        max-height: none;
        overflow-x: hidden;
    }

    .bill-item {
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
    }

    .bill-info h4 {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }

    .bill-date {
        font-size: 0.8rem;
    }

    .bill-amount {
        font-size: 1.05rem;
    }

    .btn-buy-again {
        padding: 5px 10px;
        font-size: 0.72rem;
        border-radius: 14px;
    }

    /* Recent Purchase — same overflow guard as Recent Bills */
    .shopping-list {
        max-width: 100%;
        overflow-x: hidden;
    }

    .list-item,
    .list-item.recent-purchase-item {
        gap: 10px;
        padding: 12px;
        align-items: flex-start;
    }

    .list-item:hover,
    .list-item.recent-purchase-item:hover {
        transform: none;
    }

    .recent-purchase-item .item-info {
        gap: 2px 8px;
    }

    .recent-purchase-item .item-name {
        font-size: 0.92rem;
        padding-left: 0;
    }

    .recent-purchase-item .item-meta {
        font-size: 0.7rem;
        padding-left: 0;
    }

    .recent-purchase-item .item-price {
        font-size: 0.9rem;
        min-width: 3.25rem;
    }

    .recent-purchase-item .btn-add,
    .recent-purchase-item .btn-added {
        min-width: 0;
        padding: 7px 12px;
        font-size: 0.78rem;
    }

    .recent-purchase-actions {
        gap: 10px;
    }

    .recent-purchase-actions .btn-add-all,
    .recent-purchase-actions .btn-add-all-completed {
        width: 100%;
        box-sizing: border-box;
    }

    /* Account Settings Tablet Responsive */
    .settings-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .settings-header h2 {
        font-size: 1.3rem;
    }
    
    .danger-content {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    /* Extra Small Mobile Navigation - Enhanced Responsive Scaling */
    .dashboard-nav .nav-container {
        padding: 0 10px;
        gap: 0.25rem;
    }
    
    /* Even smaller screens - tighter scaling */
    .nav-home {
        font-size: clamp(0.7rem, 2vw, 0.85rem);
        padding: clamp(0.3rem, 1vw, 0.45rem) clamp(0.5rem, 2.5vw, 0.75rem);
        min-height: clamp(30px, 8vw, 36px);
    }
    
    .dashboard-nav .nav-link {
        font-size: clamp(0.7rem, 2vw, 0.85rem);
        padding: clamp(0.3rem, 1vw, 0.45rem) clamp(0.5rem, 2.5vw, 0.75rem);
        min-height: clamp(30px, 8vw, 36px);
    }
    
    .dashboard-nav h2 {
        font-size: clamp(1rem, 3.5vw, 1.3rem);
        padding: 0 0.25rem;
    }
    
    .header {
        padding: 20px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }

    .bill-item {
        flex-wrap: wrap;
        padding: 12px;
        gap: 8px;
    }

    .bill-info {
        flex: 1 1 calc(100% - 7rem);
    }

    .bill-info h4 {
        font-size: 0.9rem;
    }

    .bill-amount {
        font-size: 1rem;
    }

    .btn-buy-again {
        padding: 5px 8px;
        font-size: 0.7rem;
    }

    /* Amount + Buy Again on a full-width row under the store name */
    .bill-right {
        flex: 1 1 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 2px;
    }

    .list-item.recent-purchase-item {
        flex-wrap: wrap;
        padding: 10px;
        gap: 8px;
    }

    .recent-purchase-item .item-info {
        flex: 1 1 100%;
    }

    .recent-purchase-item .btn-add,
    .recent-purchase-item .btn-added {
        margin-left: auto;
        padding: 6px 10px;
        font-size: 0.72rem;
    }
    
    .recipe-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .highlight-item {
        padding: 1.5rem;
    }

    /* Account Settings Mobile Responsive */
    .settings-container {
        width: 95%;
        max-height: 95vh;
        border-radius: 15px;
    }
    
    .settings-header h2 {
        font-size: 1.1rem;
    }
    
    .close-settings {
        font-size: 1.5rem;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Account Settings Panel */
.settings-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-container {
    background: white;
    border-radius: 20px;
    width: 90vw;
    max-width: 1200px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 3px #17a2b8;
    animation: slideInUp 0.3s ease;
    border: 2px solid #17a2b8;
}

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

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 3rem) clamp(1rem, 2vw, 1.5rem) clamp(1.5rem, 3vw, 3rem);
    border-bottom: 2px solid #f0f1f3;
}

.settings-header h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin: 0;
}

.close-settings {
    background: #e0e0e0;
    border: 2px solid #ccc;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
    opacity: 1 !important;
    visibility: visible !important;
}

.close-settings:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
    transform: rotate(90deg);
}

.settings-content {
    padding: clamp(1.5rem, 3vw, 3rem);
}

.setting-group {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.setting-group h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(0.75rem, 2vw, 1.25rem) 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.setting-item label {
    font-weight: 600;
    color: #555;
}

.setting-item span {
    color: #666;
}

/* ===== My Account panel — admin-center-style cards (scoped; does NOT affect Settings) ===== */
#myAccountPanel .setting-group:not(.danger-zone) {
    border: 2px solid #f9d71c;
    border-radius: 12px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

#myAccountPanel .setting-group:not(.danger-zone):hover {
    box-shadow: 0 4px 20px rgba(249, 215, 28, 0.2);
    transform: translateY(-2px);
}

#myAccountPanel .setting-group:not(.danger-zone) h3 {
    color: #212529;
    border-bottom: 1px solid rgba(249, 215, 28, 0.35);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

#myAccountPanel .btn.btn-primary {
    background: #ffffff;
    color: #f9d71c;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#myAccountPanel .btn.btn-primary:hover:not(:disabled) {
    background: #ffffff;
    color: #f9d71c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

#myAccountPanel .btn.btn-primary:disabled {
    opacity: 0.85;
    cursor: not-allowed;
    transform: none;
}

#myAccountPanel .btn.btn-primary .coming-soon {
    font-size: 0.75rem;
    color: #6c757d;
    margin-left: 0.35rem;
}

/* Danger Zone Styling */
.danger-zone {
    border: 2px solid #dc3545;
    border-radius: 10px;
    padding: 1.5rem;
    background: #fff5f5;
}

.danger-zone h3 {
    color: #dc3545;
    border-bottom-color: #dc3545;
}

.danger-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.danger-text strong {
    color: #dc3545;
    font-size: 1.1rem;
}

.danger-text p {
    color: #666;
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Delete Account Modal Styling */
.delete-modal {
    max-width: 500px;
}

.delete-modal-content h3 {
    color: #dc3545;
    text-align: center;
    margin-bottom: 1.5rem;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.warning-box p {
    margin: 0 0 1rem 0;
    color: #856404;
}

.warning-box ul {
    margin: 1rem 0 0 1.5rem;
    color: #856404;
}

.warning-box li {
    margin-bottom: 0.5rem;
}

.confirmation-section p {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group input[type="password"]:focus {
    outline: none;
    border-color: #dc3545;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 0.5rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.modal-buttons .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-buttons .btn-secondary:hover {
    background: #5a6268;
}

/* Monthly Budget Modal Styles */
.budget-modal-wrapper {
    max-width: 600px;
    max-height: 90vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.budget-modal-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

.budget-modal-header {
    background: linear-gradient(135deg, #f9d71c, #dbb42c);
    padding: 1.25rem 1.5rem;
    margin: 0;
    border-bottom: 3px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.budget-modal-header h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.budget-summary-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.budget-summary-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.budget-summary-icon {
    font-size: 1.5rem;
}

.budget-summary-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
}

.budget-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.budget-card-item {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 1.25rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
}

.budget-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.budget-card-spent {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd, #ffffff);
}

.budget-card-remaining {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda, #ffffff);
}

.budget-card-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.budget-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
}

.budget-card-spent .budget-card-value {
    color: #e67e22;
}

.budget-card-remaining .budget-card-value {
    color: #28a745;
}

/* Smart Budget Suggestion Card Styles */
.budget-suggestion-card {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #3a4f66;
}

.budget-suggestion-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.budget-suggestion-icon {
    font-size: 1.25rem;
}

.budget-suggestion-header h4 {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
}

.budget-suggestion-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.2rem 0.4rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
}

.budget-suggestion-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.budget-suggestion-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.budget-suggestion-amount {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.suggestion-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.suggestion-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f9d71c;
}

.budget-suggestion-summary {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid #f9d71c;
}

.budget-suggestion-summary span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.budget-suggestion-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-top: 0.25rem;
}

.suggestion-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.suggestion-detail-item .detail-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.suggestion-detail-item .detail-value {
    font-size: 0.85rem;
    color: white;
    font-weight: 700;
}

.budget-suggestion-actions {
    margin-top: 0.25rem;
}

.btn-use-suggestion {
    width: 100%;
    background: linear-gradient(135deg, #f9d71c, #dbb42c);
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
    color: #212529;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(249, 215, 28, 0.3);
}

.btn-use-suggestion:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 215, 28, 0.4);
    background: linear-gradient(135deg, #e6c81a, #c9a326);
}

.btn-use-suggestion:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.budget-edit-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.budget-edit-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.budget-edit-icon {
    font-size: 1.25rem;
}

.budget-edit-header label {
    font-weight: 700;
    color: #212529;
    font-size: 1.1rem;
    margin: 0;
}

.budget-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.budget-input-group {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.budget-input-group:focus-within {
    border-color: #f9d71c;
    box-shadow: 0 4px 16px rgba(249, 215, 28, 0.2);
    transform: translateY(-1px);
}

.currency-symbol {
    font-weight: 700;
    color: #495057;
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.budget-input-group input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    background: transparent;
}

.budget-input-group input::placeholder {
    color: #adb5bd;
    font-weight: 500;
}

.budget-quick-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-quick-budget {
    flex: 1;
    min-width: 100px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-quick-budget:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838, #1ea87a);
}

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

.budget-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
}

.btn-budget-cancel {
    background: #6c757d;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.btn-budget-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-budget-save {
    background: linear-gradient(135deg, #f9d71c, #dbb42c);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    color: #212529;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(249, 215, 28, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-budget-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 215, 28, 0.4);
    background: linear-gradient(135deg, #e6c81a, #c9a326);
}

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

/* Bill Details Modal Styles */
.bill-details-modal {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bill-details-header {
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.bill-details-header h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
}

.bill-details-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.bill-meta-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.bill-meta-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
}

.bill-meta-value {
    font-weight: 700;
    color: #212529;
    font-size: 0.95rem;
}

.bill-status-paid {
    color: #28a745;
}

.bill-items-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bill-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.bill-items-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
}

.bill-items-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.bill-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.bill-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.875rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #f9d71c;
    transition: all 0.2s ease;
}

.bill-item-row:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

.bill-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bill-item-name {
    font-weight: 600;
    color: #212529;
    font-size: 0.95rem;
}

.bill-item-details {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
    color: #6c757d;
}

.bill-item-total {
    font-weight: 700;
    color: #212529;
    font-size: 1rem;
    padding-left: 1rem;
}

.bill-items-total {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bill-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #f9d71c;
}

.bill-total-row.bill-total-final {
    background: linear-gradient(135deg, #f9d71c, #dbb42c);
    border-left: none;
    font-weight: 700;
    margin-top: 0.5rem;
}

.bill-total-label {
    font-weight: 700;
    color: #212529;
    font-size: 1.1rem;
}

.bill-total-final .bill-total-label {
    color: #212529;
    font-size: 1.1rem;
}

.bill-total-amount {
    font-weight: 700;
    color: #212529;
    font-size: 1.5rem;
}

.bill-total-final .bill-total-amount {
    color: #212529;
    font-size: 1.5rem;
}

.bill-receipt-section {
    padding-top: 1rem;
    border-top: 2px solid #e9ecef;
    text-align: center; /* Center align the button */
}

.bill-receipt-header {
    display: none; /* Hide the receipt icon and "Receipt" text */
}

.bill-receipt-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
}

.receipt-icon {
    font-size: 1.25rem;
}

.btn-view-receipt {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    font-size: 0.95rem;
}

.btn-view-receipt:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838, #1ea87a);
}

.bill-no-receipt {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #6c757d;
}

.bill-no-receipt p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
}

.bill-no-items {
    padding: 2rem;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.error-message {
    color: #dc3545;
    font-weight: 600;
    margin-top: 1rem;
}

/* Responsive Bill Details Modal */
@media (max-width: 768px) {
    .bill-details-modal {
        max-width: 95%;
    }
    
    .bill-items-list {
        max-height: 300px;
    }
    
    .bill-meta-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .bill-item-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .bill-item-total {
        padding-left: 0;
        align-self: flex-end;
    }
}

/* Responsive Design for Budget Modal */
@media (max-width: 768px) {
    .budget-modal-wrapper {
        max-width: 95%;
    }
    
    .budget-modal-content {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .budget-items-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .budget-card-value {
        font-size: 1.25rem;
    }
    
    .budget-quick-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn-quick-budget {
        min-width: auto;
    }
    
    .budget-modal-actions {
        flex-direction: column;
    }
    
    .btn-budget-cancel,
    .btn-budget-save {
        width: 100%;
    }
    
    .budget-suggestion-card {
        padding: 0.875rem;
    }
    
    .suggestion-value {
        font-size: 1.25rem;
    }
    
    .budget-suggestion-summary span {
        font-size: 0.75rem;
    }
    
    .budget-suggestion-header h4 {
        font-size: 0.85rem;
    }
}

/* Add-to-list feedback (must sit above smart panel at z-index 5000) */
.add-to-list-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #28a745;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    z-index: 6000;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: addToListFadeInOut 2s ease-in-out;
}

@keyframes addToListFadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* Toast Notification Styles */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.5rem;
    min-width: 300px;
    max-width: 400px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast-message {
    font-weight: 600;
    color: #212529;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Responsive Toast Notification */
@media (max-width: 768px) {
    .toast-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .toast-notification.show {
        transform: translateY(0);
    }
}

/* Transaction Search Modal Styles */
.transaction-table-container {
    max-height: 400px;
    overflow: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    background: white;
    max-width: 100%;
    position: relative;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Custom scrollbar for webkit browsers */
.transaction-table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.transaction-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.transaction-table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.transaction-table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.transaction-table {
    width: max-content;
    min-width: 100%;
    /* separate + 0 spacing keeps sticky thead reliable across browsers */
    border-collapse: separate;
    border-spacing: 0;
    font-size: 10px;
    margin: 0;
}

.transaction-table th,
.transaction-table td {
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    min-width: 60px;
    max-width: 300px;
    border-right: 2px solid #f5f5f5;
    height: 40px;
    transition: background-color 0.2s ease;
}

/* Optimized column widths based on content context */
.transaction-table th:nth-child(1),
.transaction-table td:nth-child(1) {
    width: 25px;
    min-width: 25px;
    max-width: 25px;
}

/* Date - compact */
.transaction-table th:nth-child(2),
.transaction-table td:nth-child(2) {
    width: 80px;
    min-width: 80px;
}

/* Store - medium */
.transaction-table th:nth-child(3),
.transaction-table td:nth-child(3) {
    width: 100px;
    min-width: 100px;
}

/* Transaction ID - wide for long IDs */
.transaction-table th:nth-child(4),
.transaction-table td:nth-child(4) {
    width: 180px;
    min-width: 180px;
}

/* U Transaction ID - very wide for long unique IDs */
.transaction-table th:nth-child(5),
.transaction-table td:nth-child(5) {
    width: 250px;
    min-width: 250px;
}

/* Item Code - medium */
.transaction-table th:nth-child(6),
.transaction-table td:nth-child(6) {
    width: 120px;
    min-width: 120px;
}

/* Item Name - wide for product names */
.transaction-table th:nth-child(7),
.transaction-table td:nth-child(7) {
    width: 180px;
    min-width: 180px;
}

/* Quantity - narrow */
.transaction-table th:nth-child(8),
.transaction-table td:nth-child(8) {
    width: 60px;
    min-width: 60px;
}

/* Amount - narrow for currency */
.transaction-table th:nth-child(9),
.transaction-table td:nth-child(9) {
    width: 70px;
    min-width: 70px;
}

/* Ref - medium */
.transaction-table th:nth-child(10),
.transaction-table td:nth-child(10) {
    width: 100px;
    min-width: 100px;
}

/* Best Before - compact date */
.transaction-table th:nth-child(11),
.transaction-table td:nth-child(11) {
    width: 90px;
    min-width: 90px;
}

/* Sequence - narrow */
.transaction-table th:nth-child(12),
.transaction-table td:nth-child(12) {
    width: 50px;
    min-width: 50px;
}

/* Store Name - medium */
.transaction-table th:nth-child(13),
.transaction-table td:nth-child(13) {
    width: 120px;
    min-width: 120px;
}

/* Transaction Date - compact */
.transaction-table th:nth-child(14),
.transaction-table td:nth-child(14) {
    width: 90px;
    min-width: 90px;
}

/* Time - narrow */
.transaction-table th:nth-child(15),
.transaction-table td:nth-child(15) {
    width: 70px;
    min-width: 70px;
}

/* Cashier - medium */
.transaction-table th:nth-child(16),
.transaction-table td:nth-child(16) {
    width: 100px;
    min-width: 100px;
}

/* Register - narrow */
.transaction-table th:nth-child(17),
.transaction-table td:nth-child(17) {
    width: 60px;
    min-width: 60px;
}

/* Tax Amount - narrow */
.transaction-table th:nth-child(18),
.transaction-table td:nth-child(18) {
    width: 70px;
    min-width: 70px;
}

/* Total - narrow */
.transaction-table th:nth-child(19),
.transaction-table td:nth-child(19) {
    width: 70px;
    min-width: 70px;
}

/* Payment Method - medium */
.transaction-table th:nth-child(20),
.transaction-table td:nth-child(20) {
    width: 120px;
    min-width: 120px;
}

/* Discount - narrow */
.transaction-table th:nth-child(21),
.transaction-table td:nth-child(21) {
    width: 70px;
    min-width: 70px;
}

/* Coupon - medium */
.transaction-table th:nth-child(22),
.transaction-table td:nth-child(22) {
    width: 100px;
    min-width: 100px;
}

/* Loyalty Card - medium */
.transaction-table th:nth-child(23),
.transaction-table td:nth-child(23) {
    width: 120px;
    min-width: 120px;
}

/* Receipt Number - medium */
.transaction-table th:nth-child(24),
.transaction-table td:nth-child(24) {
    width: 120px;
    min-width: 120px;
}

/* Customer ID - medium */
.transaction-table th:nth-child(25),
.transaction-table td:nth-child(25) {
    width: 100px;
    min-width: 100px;
}

/* Notes - wide for text */
.transaction-table th:nth-child(26),
.transaction-table td:nth-child(26) {
    width: 150px;
    min-width: 150px;
}

/* Status - medium */
.transaction-table th:nth-child(27),
.transaction-table td:nth-child(27) {
    width: 80px;
    min-width: 80px;
}

/* Created At - compact date */
.transaction-table th:nth-child(28),
.transaction-table td:nth-child(28) {
    width: 90px;
    min-width: 90px;
}

/* Updated At - compact date */
.transaction-table th:nth-child(29),
.transaction-table td:nth-child(29) {
    width: 90px;
    min-width: 90px;
}

/* Additional columns 30-40 headers */
.transaction-table th:nth-child(30),
.transaction-table th:nth-child(31) {
    width: 70px;
    min-width: 70px;
}

.transaction-table th:nth-child(32),
.transaction-table th:nth-child(34),
.transaction-table th:nth-child(36),
.transaction-table th:nth-child(38),
.transaction-table th:nth-child(39),
.transaction-table th:nth-child(40) {
    width: 80px;
    min-width: 80px;
}

.transaction-table th:nth-child(33),
.transaction-table th:nth-child(37) {
    width: 100px;
    min-width: 100px;
}

.transaction-table th:nth-child(35) {
    width: 70px;
    min-width: 70px;
}

/* Additional columns 30-40 */
.transaction-table td:nth-child(30) {
    width: 70px;
    min-width: 70px;
}

.transaction-table td:nth-child(31) {
    width: 70px;
    min-width: 70px;
}

.transaction-table td:nth-child(32) {
    width: 80px;
    min-width: 80px;
}

.transaction-table td:nth-child(33) {
    width: 100px;
    min-width: 100px;
}

.transaction-table td:nth-child(34) {
    width: 80px;
    min-width: 80px;
}

.transaction-table td:nth-child(35) {
    width: 70px;
    min-width: 70px;
}

.transaction-table td:nth-child(36) {
    width: 80px;
    min-width: 80px;
}

.transaction-table td:nth-child(37) {
    width: 100px;
    min-width: 100px;
}

.transaction-table td:nth-child(38) {
    width: 80px;
    min-width: 80px;
}

.transaction-table td:nth-child(39) {
    width: 80px;
    min-width: 80px;
}

.transaction-table td:nth-child(40) {
    width: 80px;
    min-width: 80px;
}

.transaction-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    /* Sticky header while body rows scroll (do not override with position:relative) */
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 2px solid #dee2e6;
    font-size: 10px;
    padding: 6px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/*
 * Search & Edit Transactions: keep vertical scroll on the table container
 * so sticky column headers stay visible. Outer results panel must not steal scroll.
 */
#transactionSearchModal .results-section {
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}

#transactionSearchModal #transactionSearchResults {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#transactionSearchModal .transaction-table-container {
    flex: 1 1 auto;
    min-height: 180px;
    max-height: none;
    height: 100%;
}

.transaction-table tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.transaction-table tr:hover td {
    border-color: #dee2e6;
}

/* Soft selection highlight for individual row selection */
.transaction-table tr[data-transaction-id] {
    transition: background-color 0.2s ease;
}

/* Selected row — soft blue across the full row (cells must tint too; edit-enabled yellow was covering tr.background) */
.transaction-table tr.selected {
    background: #e8f1ff !important;
    border-left: 3px solid #2f6fed !important;
    box-shadow: inset 0 0 0 1px rgba(47, 111, 237, 0.12);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.transaction-table tr.selected > td {
    background: #e8f1ff !important;
}

.transaction-table tr.selected > td.editable-cell.edit-enabled,
.transaction-table tr.selected > td.editable-cell.edit-enabled:hover {
    background: #e8f1ff !important;
    border-color: #90b4e8 !important;
}

.transaction-table tr.selected > td.editable-cell.editing {
    background: #d9e8ff !important;
    border-color: #2f6fed !important;
}

/* Keep selection visible even when row also has unsaved edits */
.transaction-table tr.selected.has-changes,
.transaction-table tr.selected.has-changes > td,
.transaction-table tr.selected.has-changes > td.editable-cell.edit-enabled {
    background: #dff0e8 !important;
    border-left-color: #2f6fed !important;
}

/* Fallback for browsers that support :has() selector */
.transaction-table tr[data-transaction-id]:has(.transaction-checkbox-input:checked) {
    background: #e8f1ff;
    border-left: 3px solid #2f6fed;
}

.transaction-table tr[data-transaction-id]:has(.transaction-checkbox-input:checked) > td,
.transaction-table tr[data-transaction-id]:has(.transaction-checkbox-input:checked) > td.editable-cell.edit-enabled {
    background: #e8f1ff;
}

/* Enhanced edit mode styling */
.transaction-row.edit-mode {
    background: #fff3cd !important;
    border-left: 4px solid #ffc107;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.transaction-row.has-changes {
    background: #d4edda !important;
    border-left: 4px solid #28a745;
}

.transaction-row.has-changes.edit-mode {
    background: #d1ecf1 !important;
    border-left: 4px solid #17a2b8;
}

.transaction-checkbox {
    width: 20px;
    text-align: center;
}

.editable-cell {
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.editable-cell:hover {
    background: #f0f8ff;
    border-radius: 4px;
}

.editable-cell.edit-enabled {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    cursor: text;
}

.editable-cell.edit-enabled:hover {
    background: #fff3cd;
    border-color: #ffb300;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

.editable-cell.editing {
    background: #fff3cd !important;
    border: 2px solid #ffc107 !important;
    border-radius: 4px;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
}

.cell-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 6px 8px;
    font-size: 12px;
    outline: none;
    border-radius: 3px;
    height: 28px;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
    pointer-events: auto;
    z-index: 1;
    position: relative;
    display: block;
    opacity: 1;
    visibility: visible;
}

.cell-input:hover {
    background: rgba(0, 123, 255, 0.05);
}

.cell-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.3);
}

/* Column Resizer Styles */
.column-resizer {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: rgba(0, 0, 0, 0.3);
    cursor: col-resize;
    user-select: none;
    touch-action: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
    pointer-events: auto;
}

.column-resizer:hover,
.column-resizer.is-resizing {
    background: #007bff;
    opacity: 1;
}

.transaction-table th:hover .column-resizer {
    opacity: 0.7;
}

.transaction-table th:last-child .column-resizer {
    display: none;
}


/* Enhanced button styles */
.btn-sm {
    padding: 4px 12px;
    font-size: 11px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/*
 * Admin Search & Edit Transactions — store filter typeahead.
 * Keeps #storeFilter as the canonical StoreLocation value; UI is a desktop combobox.
 */
.txn-store-combobox {
    position: relative;
    min-width: 220px;
    max-width: 320px;
    width: 100%;
}

.txn-item-code-filter:disabled {
    background: #f1f3f5;
    color: #6c757d;
    cursor: not-allowed;
}

.txn-item-code-combobox {
    min-width: 220px;
    max-width: 320px;
}

.txn-item-code-combobox .txn-store-combobox-toggle:disabled,
.txn-item-code-combobox .txn-store-combobox-clear:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.txn-item-code-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
    min-height: 0;
}

.txn-item-code-chips:empty {
    display: none;
    margin-bottom: 0;
}

.txn-item-code-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 3px 6px 3px 8px;
    border-radius: 999px;
    background: rgba(23, 162, 184, 0.12);
    border: 1px solid rgba(23, 162, 184, 0.35);
    color: #0f5966;
    font-size: 12px;
    line-height: 1.2;
}

.txn-item-code-chip-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.txn-item-code-chip-remove {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #0f5966;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.txn-item-code-chip-remove:hover {
    background: rgba(23, 162, 184, 0.22);
}

.txn-store-combobox-select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.txn-store-combobox-control {
    display: flex;
    align-items: center;
    gap: 2px;
    border: 2px solid #17a2b8;
    border-radius: 6px;
    background: #fff;
    min-height: 38px;
    box-sizing: border-box;
    padding: 0 4px 0 0;
}

.txn-store-combobox-control:focus-within {
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.18);
}

.txn-store-combobox-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    padding: 8px 10px;
    font-size: 14px;
    color: #333;
    height: 34px;
    box-sizing: border-box;
}

.txn-store-combobox-input::placeholder {
    color: #8a9aa3;
}

.txn-store-combobox-clear,
.txn-store-combobox-toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #17a2b8;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.txn-store-combobox-clear:hover,
.txn-store-combobox-toggle:hover {
    background: rgba(23, 162, 184, 0.12);
}

.txn-store-combobox-list {
    position: absolute;
    z-index: 3200;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #cfe8ed;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.txn-store-combobox-option {
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    line-height: 1.35;
}

.txn-store-combobox-option:hover,
.txn-store-combobox-option.is-active {
    background: rgba(23, 162, 184, 0.12);
    color: #0f5966;
}

.txn-store-combobox-option.is-selected {
    font-weight: 600;
}

.txn-store-combobox-empty {
    padding: 10px 12px;
    font-size: 13px;
    color: #6c757d;
}

@media (max-width: 768px) {
    .txn-store-combobox {
        max-width: none;
    }
}

/* Professional Transaction Modal Button Styling */
#transactionSearchModal .btn-primary,
#transactionSearchModal .btn-secondary,
#transactionSearchModal .btn-success,
#transactionSearchModal .btn-warning,
#transactionSearchModal .btn-info {
    /* SIZE FIX: Uniform dimensions */
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
    height: 45px !important;
    min-height: 45px !important;
    max-height: 45px !important;
    box-sizing: border-box !important; /* Prevents padding from adding to width */
    
    /* SIZE FIX: Prevent text wrapping */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    
    /* SIZE FIX: Better text alignment */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Existing styling - preserved */
    padding: 10px 20px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

#transactionSearchModal .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    color: #fff !important;
    border: 2px solid #0056b3 !important;
    font-weight: 600 !important;
}

#transactionSearchModal .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,123,255,0.3) !important;
}

/* Column Settings Panel Styles */
.column-settings-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: -4px 0 20px rgba(0,0,0,0.15), -2px 0 8px rgba(0,0,0,0.1);
    z-index: 3000; /* Higher than any existing modal */
    overflow-y: auto;
    display: none; /* Hidden by default */
    border-left: 4px solid #17a2b8;
    border-radius: 0 0 0 12px;
}

.column-settings-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.column-settings-header {
    padding: 24px 28px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border-radius: 0 0 0 8px;
}

.column-settings-header h3 {
    margin: 0;
    color: white;
    font-weight: 600;
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.close-settings {
    background: #e0e0e0 !important;
    border: 2px solid #ccc !important;
    font-size: 1.5rem !important;
    color: #333 !important;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: all 0.3s ease;
}

.close-settings:hover {
    background: #e74c3c !important;
    border-color: #e74c3c !important;
    color: #fff !important;
    transform: rotate(90deg) !important;
}

.column-settings-body {
    flex: 1;
    padding: 28px;
    overflow-y: auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.settings-description {
    margin-bottom: 24px;
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
    padding: 16px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f7ff 100%);
    border-left: 4px solid #17a2b8;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.column-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.btn-small {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* Select All Button */
.btn-small:nth-child(1) {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.btn-small:nth-child(1):hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

/* Deselect All Button */
.btn-small:nth-child(2) {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.btn-small:nth-child(2):hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108,117,125,0.3);
}

/* Reset to Default Button */
.btn-small:nth-child(3) {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

.btn-small:nth-child(3):hover {
    background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255,193,7,0.3);
}

.column-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.column-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
}

.column-item:hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #17a2b8;
}

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

.column-item input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.2);
    accent-color: #17a2b8;
}

.column-item label {
    flex: 1;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin: 0;
    transition: color 0.2s ease;
}

.column-item label:hover {
    color: #17a2b8;
}

/* Drag & Drop Styling */
.column-item.dragging {
    opacity: 0.6;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px dashed #17a2b8;
    transform: rotate(2deg);
    box-shadow: 0 8px 16px rgba(23,162,184,0.2);
}

.column-item[draggable="true"] {
    cursor: move;
    transition: all 0.3s ease;
}

.column-item[draggable="true"]:hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.drag-handle {
    cursor: grab;
    color: #6c757d;
    font-size: 18px;
    line-height: 1;
    user-select: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: rgba(108,117,125,0.1);
}

.drag-handle:hover {
    color: #17a2b8;
    background: rgba(23,162,184,0.2);
    transform: scale(1.1);
}

.drag-handle:active {
    cursor: grabbing;
    color: #138496;
    background: rgba(19,132,150,0.3);
}

/* Search Input Styling */
#columnSearchInput {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 16px;
}

#columnSearchInput:focus {
    outline: none;
    border-color: #17a2b8;
    box-shadow: 0 0 0 3px rgba(23,162,184,0.1);
    background: #f8f9fa;
}

#columnSearchInput::placeholder {
    color: #6c757d;
    font-style: italic;
}

.column-settings-footer {
    padding: 24px 28px;
    border-top: 2px solid #e9ecef;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0 0 0 8px;
}

/* Footer Button Styling */
.column-settings-footer button {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Cancel Button */
.column-settings-footer button:nth-child(1) {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.column-settings-footer button:nth-child(1):hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108,117,125,0.3);
}

/* Apply Changes Button */
.column-settings-footer button:nth-child(2) {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.column-settings-footer button:nth-child(2):hover {
    background: linear-gradient(135deg, #138496 0%, #0f6674 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(23,162,184,0.3);
}

/* Overlay for column settings */
.column-settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 2999; /* Just below the panel */
    display: none;
}

.column-settings-overlay.show {
    display: block;
}

#transactionSearchModal .btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    color: #fff !important;
    border: 2px solid #495057 !important;
    font-weight: 600 !important;
}

#transactionSearchModal .btn-secondary:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(108,117,125,0.3) !important;
}

#transactionSearchModal .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%) !important;
    color: #fff !important;
    border: 2px solid #218838 !important;
    font-weight: 600 !important;
}

#transactionSearchModal .btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(40,167,69,0.3) !important;
}

#transactionSearchModal .btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    color: #212529 !important;
    border: 2px solid #e0a800 !important;
    font-weight: 600 !important;
}

#transactionSearchModal .btn-warning:hover {
    background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(255,193,7,0.3) !important;
}

#transactionSearchModal .btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
    color: #fff !important;
    border: 2px solid #138496 !important;
    font-weight: 600 !important;
}

#transactionSearchModal .btn-info:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(23,162,184,0.3) !important;
}

/* Professional Danger Button (Cancel) */
#transactionSearchModal .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: #fff !important;
    border: 2px solid #c82333 !important;
    font-weight: 600 !important;
}

#transactionSearchModal .btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(220,53,69,0.3) !important;
}

/* Professional Disabled Button State */
#transactionSearchModal .btn-primary:disabled,
#transactionSearchModal .btn-secondary:disabled,
#transactionSearchModal .btn-success:disabled,
#transactionSearchModal .btn-warning:disabled,
#transactionSearchModal .btn-info:disabled,
#transactionSearchModal .btn-danger:disabled {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%) !important;
    color: #6c757d !important;
    border: 2px solid #dee2e6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.6 !important;
}

/* Button container styling */
.transaction-modal .control-buttons,
.product-modal .control-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.transaction-modal .editing-controls,
.product-modal .editing-controls {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 1px solid #dee2e6;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Edit mode indicator */
.edit-mode-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffc107;
    color: #212529;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;
}

.btn-success {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.btn-success:hover {
    background: #218838;
}

.btn-success:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-warning:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.btn-info {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.btn-info:hover {
    background: #138496;
}

/* ==================== PRODUCT TABLE STYLES ==================== */
/* Reuse transaction table styles for products */
.product-table-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 60vh;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background: white;
}

.product-table th,
.product-table td {
    padding: 8px 4px;
    text-align: left;
    border: 1px solid #dee2e6;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-table td.editable-cell[data-type="category"] {
    overflow: visible;
    white-space: normal;
    min-width: 170px;
    position: relative;
    z-index: 1;
}

.product-table td.editable-cell[data-type="category"]:focus-within {
    z-index: 2;
}

.product-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 2px solid #dee2e6;
}

.product-table tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.product-table tr.selected {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%) !important;
    border-left: 3px solid #007bff !important;
    transition: all 0.3s ease;
}

.product-row.edit-mode {
    background: #fff3cd !important;
    border-left: 4px solid #ffc107;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.product-row.has-changes {
    background: #d4edda !important;
    border-left: 4px solid #28a745;
}

.product-row.has-changes.edit-mode {
    background: #d1ecf1 !important;
    border-left: 4px solid #17a2b8;
}

.product-checkbox {
    width: 20px;
    text-align: center;
}

.product-row-select-cell {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px 2px;
}

.product-detail-edit-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #dbe4ea;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.product-detail-edit-btn:hover {
    background: #fff8e1;
    border-color: #f9d71c;
    transform: translateY(-1px);
}

.product-detail-edit-btn:focus-visible {
    outline: 2px solid #17a2b8;
    outline-offset: 2px;
}

/* Detail editor sits above Search & Edit Products when both are open */
#productEditModal.product-edit-over-search {
    z-index: 5200;
}

/* Edit Product modal — professional close control */
#productEditModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

#productEditModal .modal-close-btn {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
    color: #495057;
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

#productEditModal .modal-close-btn:hover {
    background: #e9ecef;
    border-color: #ced4da;
    color: #212529;
}

#productEditModal .modal-close-btn:focus-visible {
    outline: 2px solid #f9d71c;
    outline-offset: 2px;
}

#productEditModal .modal-close-btn:active {
    transform: scale(0.96);
}

/*
 * Category combobox — Search & Edit Products table + Edit Product modal.
 * Backed by CategoryManagerService.getList(); shows emoji icon per category.
 */
.fw-category-combobox {
    position: relative;
    width: 100%;
    min-width: 0;
}

.fw-category-combobox-select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fw-category-combobox-control {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-height: 28px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    box-sizing: border-box;
    padding: 0 2px 0 0;
}

.fw-category-combobox-control:focus-within {
    background: #fff;
    border-color: rgba(33, 150, 243, 0.45);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.18);
}

.fw-category-combobox-icon {
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    font-size: 13px;
    line-height: 1;
}

.fw-category-combobox-input {
    flex: 1;
    min-width: 0;
    width: auto !important;
    height: 26px !important;
    padding: 4px 2px !important;
    font-size: 12px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.fw-category-combobox-input:focus {
    box-shadow: none !important;
}

.fw-category-combobox-toggle {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #666;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.fw-category-combobox-toggle:hover {
    background: rgba(23, 162, 184, 0.12);
    color: #138496;
}

.fw-category-combobox-list {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 5100;
    max-height: 220px;
    overflow-y: auto;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #dbe4ea;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.fw-category-combobox-list--floating {
    position: fixed;
    right: auto;
    z-index: 10050;
    max-height: 260px;
    background: #ffffff;
    border: 1px solid #cfd8dc;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

body.fw-category-picker-open .product-table tr:hover {
    background: inherit;
    transform: none;
    box-shadow: none;
}

body.fw-category-picker-open .product-table .editable-cell.edit-enabled:hover {
    background: #fff3cd;
    box-shadow: none;
}

body.fw-category-picker-open .product-table-container {
    overflow: auto;
}

.fw-category-combobox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
}

.fw-category-combobox-option:hover,
.fw-category-combobox-option.is-active {
    background: #e8f8fa;
}

.fw-category-combobox-option.is-selected {
    font-weight: 600;
}

.fw-category-combobox-option-icon {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.fw-category-combobox-option-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fw-category-combobox-empty {
    padding: 8px 10px;
    font-size: 12px;
    color: #888;
}

.fw-category-combobox--compact .fw-category-combobox-list {
    min-width: 180px;
}

#productEditModal .fw-category-combobox-control {
    min-height: 38px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
    padding-right: 4px;
}

#productEditModal .fw-category-combobox-input {
    height: 36px !important;
    font-size: 14px !important;
    padding: 8px 4px !important;
}

#productEditModal .fw-category-combobox-icon {
    width: 28px;
    font-size: 16px;
    padding-left: 6px;
}

#productEditModal .fw-category-combobox-toggle {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

/* Professional Product Modal Button Styling */
#productSearchModal .btn-primary,
#productSearchModal .btn-secondary,
#productSearchModal .btn-success,
#productSearchModal .btn-warning,
#productSearchModal .btn-info {
    /* SIZE FIX: Uniform dimensions */
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
    height: 45px !important;
    min-height: 45px !important;
    max-height: 45px !important;
    box-sizing: border-box !important; /* Prevents padding from adding to width */
    
    /* SIZE FIX: Prevent text wrapping */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    
    /* SIZE FIX: Better text alignment */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Existing styling - preserved */
    padding: 10px 20px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

#productSearchModal .btn-primary {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%) !important;
    color: #333 !important;
}

#productSearchModal .btn-primary:hover {
    background: linear-gradient(135deg, #ffb300 0%, #ffa000 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3) !important;
}

#productSearchModal .btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
    color: white !important;
}

#productSearchModal .btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #545b62 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3) !important;
}

#productSearchModal .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%) !important;
    color: white !important;
}

#productSearchModal .btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3) !important;
}

#productSearchModal .btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    color: #333 !important;
}

#productSearchModal .btn-warning:hover {
    background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3) !important;
}

#productSearchModal .btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
    color: white !important;
}

#productSearchModal .btn-info:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3) !important;
}

/* Professional Disabled Button State for Product Search Modal */
#productSearchModal .btn-primary:disabled,
#productSearchModal .btn-secondary:disabled,
#productSearchModal .btn-success:disabled,
#productSearchModal .btn-warning:disabled,
#productSearchModal .btn-info:disabled,
#productSearchModal .btn-danger:disabled {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%) !important;
    color: #6c757d !important;
    border: 2px solid #dee2e6 !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
    box-shadow: none !important;
    transform: none !important;
}

#productSearchModal .btn-primary:disabled:hover,
#productSearchModal .btn-secondary:disabled:hover,
#productSearchModal .btn-success:disabled:hover,
#productSearchModal .btn-warning:disabled:hover,
#productSearchModal .btn-info:disabled:hover,
#productSearchModal .btn-danger:disabled:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Edit Mode Indicator */
.edit-mode-indicator {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #333;
    padding: 10px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

/* ==================== SENTIMENT HUB (RETAIL INTELLIGENCE SUITE) STYLES ==================== */

/* Premium Section Badge */
.premium-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #333;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 12px;
    margin-left: 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.premium-section {
    border: 2px solid #ffd700;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 179, 0, 0.05) 100%);
    padding: 20px;
    margin-top: 30px;
}

.btn-premium {
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #333;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #ffed4e 0%, #ffc700 100%);
}

/* Sentiment Hub Modal */
.sentiment-hub-modal {
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.sentiment-hub-header {
    background: #0f172a;
    color: #ffd700;
    padding: 24px 30px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.sentiment-hub-header h2 {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffd700;
    margin: 0;
}

.sentiment-hub-header .sentiment-header-close,
.sentiment-hub-header .close.sentiment-header-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    border: 2px solid rgba(255, 215, 0, 0.55);
    background: rgba(255, 215, 0, 0.12);
    color: #ffd700;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    opacity: 1;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.sentiment-hub-header .sentiment-header-close:hover,
.sentiment-hub-header .close.sentiment-header-close:hover {
    background: rgba(255, 215, 0, 0.28);
    border-color: #ffed4e;
    color: #ffed4e;
    transform: scale(1.05);
    opacity: 1;
}

.sentiment-hub-body {
    padding: 30px;
    background: #f8f9fa;
}

/* Sentiment Sections */
.sentiment-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.sentiment-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* AI Summary Section */
.ai-summary-section {
    background: #0f172a;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.ai-summary-section::before {
    content: '🤖';
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 120px;
    opacity: 0.1;
    color: rgba(255, 255, 255, 0.1);
}

.section-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ai-badge {
    background: #3b82f6;
    color: white;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.timestamp-badge {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 400;
}

.ai-summary-section .section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.ai-summary-content {
    position: relative;
    z-index: 10;
}

.ai-summary-content p {
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 15px;
    font-weight: 400;
}

/* Grid Layouts */
.sentiment-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 968px) {
    .sentiment-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* Subsection Titles */
.subsection-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #495057;
    margin-bottom: 20px;
}

.alert-title {
    color: #f59e0b;
}

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

.tech-badge {
    background: #e9ecef;
    color: #6c757d;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Pillar Performance */
.pillar-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pillar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pillar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pillar-name {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

.pillar-score {
    font-size: 14px;
    font-weight: 800;
    color: #212529;
}

.sentiment-idle-msg {
    color: #64748b;
    text-align: center;
    padding: 20px;
    margin: 0;
}

.pillar-bar {
    height: 10px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.pillar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease-in-out;
}

.pillar-green {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.pillar-blue {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.pillar-purple {
    background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
}

/* Alerts Section */
.alerts-section {
    border-left: 4px solid #f59e0b;
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.alert-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
}

.alert-info {
    background: rgba(148, 163, 184, 0.1);
}

.alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-type {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #f59e0b;
    margin-bottom: 4px;
}

.alert-info .alert-type {
    color: #64748b;
}

.alert-desc {
    font-size: 11px;
    color: #64748b;
    line-height: 1.5;
}

/* Brand Affinity Table */
.brand-table-container {
    overflow-x: auto;
}

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

.brand-table thead {
    border-bottom: 2px solid #e9ecef;
}

.brand-table th {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #6c757d;
    padding: 12px 8px;
    text-align: left;
    letter-spacing: 0.5px;
}

.brand-table th:nth-child(2) {
    text-align: center;
}

.brand-table th:nth-child(3) {
    text-align: right;
}

.brand-table tbody tr {
    border-bottom: 1px solid #f1f3f5;
    transition: background 0.2s ease;
}

.brand-table tbody tr:hover {
    background: #f8f9fa;
}

.brand-table td {
    padding: 16px 8px;
}

.brand-name {
    font-weight: 700;
    color: #212529;
    font-size: 14px;
}

.brand-mentions {
    text-align: center;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.brand-sentiment {
    text-align: right;
}

.sentiment-positive {
    background: #d1fae5;
    color: #065f46;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
}

.sentiment-stable {
    background: #dbeafe;
    color: #1e40af;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
}

.sentiment-mixed {
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Unmet Demand Section */
.demand-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.demand-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: help;
}

.demand-item:hover {
    background: #1a1a1a;
    color: white;
    transform: scale(1.02);
}

.demand-info {
    flex: 1;
}

.demand-product {
    font-weight: 700;
    font-size: 14px;
    color: #212529;
    margin-bottom: 4px;
}

.demand-item:hover .demand-product {
    color: white;
}

.demand-requests {
    font-size: 11px;
    color: #6c757d;
}

.demand-item:hover .demand-requests {
    color: rgba(255, 255, 255, 0.7);
}

.opportunity-badge {
    background: #dbeafe;
    color: #1e40af;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.demand-item:hover .opportunity-badge {
    background: #3b82f6;
    color: white;
}

/* ==================== SENTIMENT HUB V4 ENHANCEMENTS ==================== */

/* Three Column Grid Layout */
.sentiment-grid-3col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

/* Product Health Matrix (2x2 Grid) */
.matrix-section {
    display: flex;
    flex-direction: column;
}

.matrix-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    aspect-ratio: 1/1;
    margin: 16px 0;
    min-height: 200px;
}

.matrix-cell {
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    cursor: help;
    position: relative;
    overflow: hidden;
}

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

.matrix-label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.matrix-product {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

/* Matrix Cell Types */
.hidden-gem {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
    color: #1e40af;
}

.hidden-gem .matrix-label {
    color: #3b82f6;
}

.star-performer {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
    color: #065f46;
}

.star-performer .matrix-label {
    color: #10b981;
}

.legacy-item {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #64748b;
    opacity: 0.5;
}

.friction-alert {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    color: #991b1b;
    animation: pulse-alert 2s infinite;
}

.friction-alert .matrix-label {
    color: #ef4444;
}

@keyframes pulse-alert {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

.matrix-axes {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding: 0 8px;
}

.axis-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

/* Revenue Recovery Hub */
.recovery-section {
    background: white;
    border-left: 4px solid #f59e0b;
}

.recovery-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.recovery-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #fef3c7;
    border-radius: 8px;
    border-left: 3px solid #f59e0b;
}

.recovery-info {
    flex: 1;
}

.recovery-product {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.recovery-requests {
    font-size: 11px;
    font-weight: 600;
    color: #d97706;
    margin: 0;
}

.recovery-amount {
    text-align: right;
    margin-left: 16px;
}

.loss-value {
    font-size: 14px;
    font-weight: 800;
    color: #dc2626;
}

.recovery-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #fee2e2;
    border-radius: 8px;
    border: 2px solid #ef4444;
    margin-top: 16px;
}

.total-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #991b1b;
    letter-spacing: 0.5px;
}

.total-amount {
    font-size: 20px;
    font-weight: 800;
    color: #dc2626;
}

/* Pulse Indicator for Urgent Items */
.pulse-indicator {
    position: relative;
}

.pulse-indicator::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Compact Pillar Display */
.pillar-compact-section {
    background: white;
}

.pillar-compact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pillar-compact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pillar-compact-name {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pillar-compact-score {
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
}

.pillar-compact-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.pillar-amber {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.pillar-indigo {
    background: linear-gradient(90deg, #6366f1 0%, #818cf8 100%);
}

/* Enhanced Brand Performance Hub */
.brand-section {
    grid-column: span 2;
}

.purchases-column-header {
    background: rgba(79, 70, 229, 0.05);
    color: #4f46e5;
    font-weight: 700;
}

.purchases-column-data {
    background: rgba(79, 70, 229, 0.03);
    color: #4f46e5;
    font-weight: 700;
}

.tech-badge {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.brand-table-enhanced tbody tr:hover {
    background: #f8fafc;
}

/* Conversion Insight Badges */
.insight-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.insight-star {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.insight-synergy {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.insight-friction {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.insight-essential {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.insight-gem {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
}

/* AI Recommendations Section */
.recommendation-section {
    background: white;
    border-left: 4px solid #3b82f6;
}

.recommendation-box {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #1e293b;
    margin-top: 12px;
}

.recommendation-box strong {
    color: #3b82f6;
    font-weight: 700;
}

.recommendation-box p {
    margin: 0;
}

/* ==================== STORE SELECTOR (WORKSPACE ADMIN) ==================== */

.store-selector-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.store-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.store-selector-header .subsection-title {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.store-selector-header .admin-badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.store-selector-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.store-selector-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.store-selector-input-group {
    flex: 1;
    min-width: 250px;
}

.store-selector-label {
    display: block;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-selector-dropdown {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    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='%231e293b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.store-selector-dropdown:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: white;
}

.store-selector-dropdown:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.btn-calculate {
    padding: 12px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-calculate:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

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

.store-selector-status {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.store-selector-status .status-icon {
    font-size: 18px;
    animation: spin 2s linear infinite;
}

.store-selector-status .status-text {
    color: white;
    font-size: 13px;
    font-weight: 600;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Adjustments for v4 Components */
@media (max-width: 768px) {
    .sentiment-grid-3col {
        grid-template-columns: 1fr;
    }
    
    .matrix-grid-2x2 {
        min-height: 250px;
        gap: 8px;
    }
    
    .matrix-product {
        font-size: 11px;
    }
    
    .brand-section {
        grid-column: span 1;
    }
    
    .recovery-total {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
/* ==================== OPERATIONS STRATEGY DASHBOARD STYLES ==================== */
/* Operations Manager Strategy Dashboard - Production-Ready Styling */
/* Date: January 16, 2026 */

/* Modal Container */
.operations-dashboard-modal {
    max-width: 1400px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
}

/* Header */
.operations-header {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.operations-header .ops-header-close,
.operations-header .close.ops-header-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.operations-header .ops-header-close:hover,
.operations-header .close.ops-header-close:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: #fbbf24;
    color: #fbbf24;
    transform: scale(1.05);
}

.header-title-section h2 {
    font-size: 32px;
    font-weight: 900;
    margin: 0 0 5px 0;
    letter-spacing: -0.5px;
}

.highlight-text {
    color: #fbbf24;
}

.header-subtitle {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    color: #e0e7ff;
}

/* Body */
.operations-body {
    padding: 30px;
    background: #f8fafc;
    min-height: 500px;
}

/* Loading State */
.ops-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: #64748b;
}

.ops-loader {
    border: 4px solid #e2e8f0;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Controls Section */
.ops-controls-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Tab Navigation */
.ops-tab-nav {
    display: flex;
    background: white;
    padding: 6px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.ops-tab-btn {
    padding: 10px 24px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.ops-tab-btn:hover {
    background: #f1f5f9;
    color: #334155;
}

.ops-tab-btn.active {
    background: #6366f1;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Time Horizon Section */
.ops-time-horizon-section {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #eef2ff;
    padding: 10px 20px;
    border-radius: 16px;
    border: 1px solid #c7d2fe;
}

.ops-horizon-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6366f1;
}

.ops-label-text {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.ops-time-horizon-filter {
    display: flex;
    gap: 6px;
}

.ops-time-horizon-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #818cf8;
    font-size: 12px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ops-time-horizon-btn:hover {
    color: #6366f1;
}

.ops-time-horizon-btn.active {
    background: white;
    color: #6366f1;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.15);
}

/* KPI Cards Row */
.ops-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ops-kpi-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.ops-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.ops-kpi-primary {
    background: #6366f1;
    color: white;
    position: relative;
    overflow: hidden;
}

.ops-kpi-icon {
    font-size: 40px;
    position: absolute;
    right: -10px;
    bottom: -10px;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.ops-kpi-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.ops-kpi-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 8px 0;
}

.ops-kpi-primary .ops-kpi-label {
    color: #e0e7ff;
}

.ops-kpi-label.ops-kpi-secondary {
    color: #6366f1;
}

.ops-kpi-label.ops-kpi-gold {
    color: #f59e0b;
}

.ops-kpi-label.ops-kpi-avg {
    color: #10b981;
}

/* Inventory Strikes KPI Card */
.ops-kpi-strikes {
    border: 2px solid rgba(239, 68, 68, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.ops-kpi-strikes-label {
    color: #dc2626;
    font-weight: 700;
}

.ops-kpi-strikes .ops-kpi-value {
    color: #1f2937;
}

/* Inventory Health & Recovery List Section */
.ops-inventory-recovery-section {
    grid-column: 1 / -1; /* Full width */
    margin-top: 24px;
}

.ops-inventory-recovery-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(254, 242, 242, 1);
}

.ops-inventory-recovery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.ops-inventory-recovery-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    margin: 0;
}

.ops-inventory-recovery-badge {
    background: rgba(254, 242, 242, 1);
    padding: 8px 16px;
    border-radius: 16px;
    border: 1px solid rgba(254, 226, 226, 1);
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 900;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ops-inventory-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.ops-inventory-product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.ops-inventory-product-card:hover {
    border-color: rgba(254, 226, 226, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ops-inventory-priority-high {
    padding: 8px;
    border-radius: 12px;
    background: rgba(254, 242, 242, 1);
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ops-inventory-priority-medium {
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 247, 237, 1);
    color: #ea580c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ops-operational-opportunity {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    background: #1e3a8a;
    border-radius: 32px;
    color: white;
    flex-wrap: wrap;
}

.ops-operational-opportunity h5 {
    color: white;
}

.ops-restock-order-btn {
    background: white;
    color: #1e3a8a;
    padding: 12px 24px;
    border-radius: 16px;
    font-weight: 900;
    font-size: 14px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ops-restock-order-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.ops-restock-order-btn:active {
    transform: scale(0.98);
}

/* Responsive: Single column on mobile */
@media (max-width: 768px) {
    .ops-inventory-product-grid {
        grid-template-columns: 1fr;
    }
    
    .ops-operational-opportunity {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ops-restock-order-btn {
        width: 100%;
    }
}

.ops-kpi-value {
    font-size: 32px;
    font-weight: 900;
    margin: 0 0 10px 0;
    color: #1e293b;
}

.ops-kpi-primary .ops-kpi-value {
    color: white;
}

.ops-kpi-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.ops-arrow {
    font-size: 14px;
}

.ops-kpi-note {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
    font-style: italic;
}

.ops-time-period {
    font-weight: 600;
}

/* Tab Content */
.ops-tab-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

/* Chart Containers */
.ops-chart-container {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.ops-chart-wide {
    grid-column: 1 / 2;
}

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

.ops-chart-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ops-chart-canvas-wrapper {
    height: 300px;
    width: 100%;
}

.ops-chart-tall {
    height: 450px;
}

/* Chart Legend */
.ops-chart-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.ops-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

.ops-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ops-legend-gold {
    background: #fbbf24;
}

.ops-legend-platinum {
    background: #94a3b8;
}

.ops-legend-silver {
    background: #9333ea;
}

/* Info Containers */
.ops-info-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ops-info-card {
    background: #fef3c7;
    border: 1px solid #fde047;
    border-radius: 24px;
    padding: 24px;
}

.ops-info-dark {
    background: #1e293b;
    border-color: #334155;
    color: white;
}

.ops-info-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.ops-info-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #78350f;
}

.ops-info-dark .ops-info-title {
    color: #fcd34d;
}

.ops-info-text {
    font-size: 14px;
    line-height: 1.7;
    color: #92400e;
    margin: 0;
}

.ops-info-dark .ops-info-text {
    color: #ffffff;
    opacity: 1;
}

.ops-info-dark .ops-info-text p {
    color: #ffffff;
    opacity: 1;
}

.ops-info-text strong {
    font-weight: 700;
    color: #78350f;
}

.ops-info-dark .ops-info-text strong {
    color: #fde047;
}

/* Tier Badges */
.ops-tier-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.ops-tier-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.ops-tier-gold {
    background: #fef3c7;
    color: #78350f;
}

.ops-tier-platinum {
    background: #f1f5f9;
    color: #475569;
}

.ops-tier-silver {
    background: #f3e8ff;
    color: #581c87;
}

/* Modal Footer */
.modal-footer {
    padding: 20px 30px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 20px 20px;
}

.ops-footer-note {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin: 0;
}

.operations-dashboard-modal .ops-footer-close {
    min-height: 44px;
    padding: 0.7rem 1.35rem;
    border-radius: 10px;
    border: 2px solid #4f46e5;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.operations-dashboard-modal .ops-footer-close:hover {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    border-color: #4338ca;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.45);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ops-tab-content {
        grid-template-columns: 1fr;
    }
    
    .ops-chart-wide {
        grid-column: 1;
    }
    
    .ops-controls-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ops-kpi-row {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .operations-dashboard-modal {
        width: 98%;
        max-height: 98vh;
    }
    
    .operations-header {
        padding: 20px;
    }
    
    .header-title-section h2 {
        font-size: 24px;
    }
    
    .operations-body {
        padding: 20px;
    }
    
    .ops-kpi-row {
        grid-template-columns: 1fr;
    }
    
    .ops-tab-nav {
        width: 100%;
    }
    
    .ops-tab-btn {
        flex: 1;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .ops-time-horizon-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ops-time-horizon-filter {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .ops-chart-canvas-wrapper {
        height: 250px;
    }
    
    .ops-chart-tall {
        height: 350px;
    }
}

/* Accessibility */
.ops-tab-btn:focus,
.ops-time-horizon-btn:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .operations-header,
    .modal-footer,
    .ops-controls-section {
        display: none;
    }
    
    .operations-body {
        padding: 0;
    }
    
    .ops-tab-content {
        display: block;
    }
    
    .ops-chart-container {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
}

/* ==================== END OPERATIONS DASHBOARD STYLES ==================== */

/* ==================== OPERATIONS DASHBOARD - STORE SELECTOR ==================== */

/* Store Selector Container */
.ops-store-selector-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

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

.ops-store-selector-title {
    color: white;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin: 0;
    text-transform: uppercase;
}

.ops-admin-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ops-store-selector-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ops-consent-banner {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.55);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85rem;
    line-height: 1.45;
}

.ops-consent-banner strong {
    color: #ffc107;
}

.ops-consent-meta {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    opacity: 0.85;
}

.sentiment-consent-banner {
    background: #fffbeb;
    border: 2px solid #f9d71c;
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1rem;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sentiment-consent-banner strong {
    color: #92400e;
    font-weight: 700;
}

.sentiment-consent-meta {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: #666;
    opacity: 1;
}

.sentiment-hub-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.sentiment-hub-modal .sentiment-footer-close {
    min-height: 44px;
    padding: 0.7rem 1.35rem;
    border-radius: 10px;
    border: 2px solid #0f172a;
    background: #fff;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sentiment-hub-modal .sentiment-footer-close:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.sentiment-hub-modal .sentiment-footer-export {
    min-height: 44px;
    padding: 0.7rem 1.35rem;
    border-radius: 10px;
    border: 2px solid #e0a800;
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sentiment-hub-modal .sentiment-footer-export:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffc700 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.45);
    color: #1e293b;
}

.ops-store-selector-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.ops-store-selector-input-group {
    flex: 1;
}

.ops-store-selector-label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.ops-store-selector-dropdown {
    width: 100%;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: white;
    color: #1e293b;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%236366f1'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.ops-store-selector-dropdown:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.ops-store-selector-dropdown:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Calculate Metrics Button */
.ops-calculate-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e293b;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ops-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}

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

/* Calculation Status */
.ops-calculation-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.ops-status-icon {
    font-size: 16px;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.ops-status-text {
    font-weight: 500;
}

/* Responsive Store Selector */
@media (max-width: 768px) {
    .ops-store-selector-section {
        padding: 20px;
    }
    
    .ops-store-selector-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ops-store-selector-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ops-calculate-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== END STORE SELECTOR ==================== */

/* Dashboard — sticky footer layout with shared footer component */
body.dashboard-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.dashboard-page > .container {
    flex: 1;
}

/* ==================== STORE LOCATION SEARCH — ROW ACTIONS ==================== */
#storeLocationSearchModal .store-loc-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

#storeLocationSearchModal .store-loc-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 78px;
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

#storeLocationSearchModal .store-loc-action-btn i {
    font-size: 12px;
    line-height: 1;
}

#storeLocationSearchModal .store-loc-action-btn--edit {
    background: #f0f9fb;
    border-color: #b8e6f0;
    color: #0e7490;
}

#storeLocationSearchModal .store-loc-action-btn--edit:hover {
    background: #17a2b8;
    border-color: #138496;
    color: #fff;
    box-shadow: 0 2px 6px rgba(23, 162, 184, 0.28);
    transform: translateY(-1px);
}

#storeLocationSearchModal .store-loc-action-btn--delete {
    background: #fff5f5;
    border-color: #f5c2c7;
    color: #b02a37;
}

#storeLocationSearchModal .store-loc-action-btn--delete:hover {
    background: #dc3545;
    border-color: #c82333;
    color: #fff;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.28);
    transform: translateY(-1px);
}

#storeLocationSearchModal .store-loc-action-btn:focus-visible {
    outline: 2px solid #17a2b8;
    outline-offset: 2px;
}

#storeLocationSearchModal .store-loc-action-btn--delete:focus-visible {
    outline-color: #dc3545;
}

#storeLocationSearchModal .store-loc-action-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

#storeLocationSearchModal table th:last-child,
#storeLocationSearchModal table td:last-child {
    min-width: 170px;
    white-space: nowrap;
}
