:root {
    --primary-color: #B2444E;
    --secondary-color: #8392AB;
    --success-color: #6B8F4F;
    --info-color: #11cdef;
    --warning-color: #E87F17;
    --light-color: #f8f9fa;
    --dark-color: #1A1F21;
    --gray-color: #adb5bd;
    --border-radius: 12px;
    --shadow-soft: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    --soft-ui-white: #fff;
}

 
.dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
}

/* Compact Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.header-title h1 {
    font-weight: 700;
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.header-title p {
    color: var(--gray-color);
    font-size: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.merchant-info {
    background: white;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.merchant-id {
    font-weight: 600;
    color: var(--primary-color);
}

.update-notice {
    font-size: 12px;
    color: var(--gray-color);
    font-style: italic;
    margin-bottom: 25px;
    text-align: right;
}

/* Table Section */
.table-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    padding-left: 5px;
    padding-right: 5px;
}

/* Table Header with Add Filter Button */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 15px;
}

.add-filter-container {
    position: relative;
}

.add-filter-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.add-filter-btn:hover {
    background: var(--secondary-color);
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    padding: 10px;
    width: 240px;
    z-index: 100;
    display: none;
    margin-top: 8px;
}

.filter-dropdown.show {
    display: block;
}

.filter-option {
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

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

.filter-option i {
    color: var(--gray-color);
    font-size: 12px;
}

/* Active Filters above table */
.active-filters-container {
    min-height: 40px;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.customer-table th{
    width: 100%;
}
.filter-chip {
    background: #f0f2ff;
    border: 1px solid #e1e5ff;
    border-radius: 16px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.filter-chip .filter-label {
    font-weight: 600;
    color: var(--primary-color);
}

.filter-chip .filter-operator {
    color: var(--warning-color);
    font-weight: 600;
    margin: 0 2px;
}

.filter-chip .filter-value {
    color: var(--dark-color);
}

.filter-chip .delete-filter {
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transition: all 0.2s;
    font-size: 10px;
    margin-left: 4px;
}

.filter-chip .delete-filter:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--warning-color);
}

.apply-filters-btn {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    margin-left: auto;
}

.apply-filters-btn:hover {
    background: #24a46d;
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 10px;
}

.export-btn {
    background: white;
    color: var(--dark-color);
    border: 1px solid #e1e5eb;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-size: 13px;
}

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

/* Filter Modal */
.filter-input-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
}

.filter-input-modal.show {
    display: flex;
}

.filter-input-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    width: 420px;
    max-width: 90%;
    box-shadow: var(--shadow-medium);
}

.filter-input-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-type-label {
    display: inline-block;
    background: #f0f2ff;
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}

.filter-input-group {
    margin-bottom: 15px;
}

.filter-input-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: var(--dark-color);
}

.operator-select {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.operator-btn {
    padding: 8px 12px;
    background: white;
    border: 1px solid #e1e5eb;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
}

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

.operator-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.range-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
    display: none;
}

.range-inputs.show {
    display: flex;
}

.range-inputs span {
    color: var(--gray-color);
    font-size: 14px;
}

.single-input {
    display: block;
}

.single-input.hidden {
    display: none;
}

.filter-input {
    padding: 10px 12px;
    border: 1px solid #e1e5eb;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-input-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.filter-cancel-btn {
    background: white;
    color: var(--dark-color);
    border: 1px solid #e1e5eb;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    transition: all 0.2s;
    font-size: 13px;
}

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

.filter-apply-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    transition: all 0.3s;
    font-size: 13px;
}

.filter-apply-btn:hover {
    background: var(--secondary-color);
}

/* Customer Table - Compact */
.customer-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0px 1px;
}

.customer-table thead th {
    text-align: center;
    padding: 12px 23px;
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 2px solid #f1f3f9;
    font-size: 13px;
    white-space: nowrap;
}

.customer-card {
    background: #f8f9fe;
    border-radius: 10px;
    transition: all 0.3s;
}

.customer-card:hover {
    background: #f0f2ff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.customer-table tbody td {
    padding: 5px 23px;
    border-top: 1px solid rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
    font-size: 14px;
    white-space: nowrap;
    text-align: center;
}

.customer-table tbody td:first-child {
    border-left: 1px solid rgba(0, 0, 0, 0.02);
    border-radius: 10px 0 0 10px;
}

.customer-table tbody td:last-child {
    border-right: 1px solid rgba(0, 0, 0, 0.02);
    border-radius: 0 10px 10px 0;
}

.customer-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 3px;
}

.customer-info {
    color: var(--gray-color);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metric-value {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-color);
}

.metric-label {
    font-size: 11px;
    color: var(--gray-color);
    margin-top: 2px;
}

/* Profile Button - Icon Only */
.profile-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.profile-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
}

.pagination-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: white;
    border: 1px solid #e1e5eb;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}

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

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.footer-note {
    text-align: center;
    margin-top: 20px;
    color: var(--gray-color);
    font-size: 12px;
    font-style: italic;
}
.date-filter {
    background: var(--soft-ui-white);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    box-shadow: var(--shadow-medium);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0;
}

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

.filter-btn {
    padding: 8px 16px;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-color);
    background: var(--soft-ui-white);
    color: var(--dark-color);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background-color: var(--light-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--soft-ui-white);
    border-color: var(--primary-color);
}

.custom-date {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date-input {
    padding: 8px 12px;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-color);
    font-size: 0.875rem;
}
/* Header Styles */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px;
}

.date-filter .text-muted{
    font-size: 0.75rem;
}
.page-title h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.page-title p {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.header-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}


/* Responsive */
@media (max-width: 1400px) {
    .customer-table {
        display: block;
        overflow-x: auto;
        height: 51vh;
        overflow-y: auto;
    }
    
    .dashboard-container {
        max-width: 100%;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    .customer-table{
        height: 37vh;
    }
    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 5px;
    }
    
    .table-header-left {
        width: 100%;
        justify-content: space-between;
    }
    
    .table-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .active-filters-container {
        width: 100%;
    }
    
    .apply-filters-btn {
        margin-left: 0;
    }
    
    .range-inputs {
        flex-direction: column;
    }
    
    .range-inputs span {
        display: none;
    }
    .dashboard-header{
        display: none;
    }
    .custom-date{
        flex-wrap: wrap;
        gap: 2px;
    }
    .date-filter{
        padding: 15px 10px;
    }
}