/* ===================================================
   Combined Stylesheet: styles + partner + auth
   =================================================== */

/* Figtree Font */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&display=swap');

/* ===== Global Styles (from styles.css) ===== */

body {
    font-family: 'Figtree', sans-serif;
    background-color: #FAF8F5;
    color: #101828;
    margin: 0;
    padding: 0;
    background-image: url('/img_dashboard_backgroudn.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;
    background-attachment: fixed;
}

.navbar-static-top.navbar-inverse {
        display: none !important
    }

.footer{
    display:none !important;
}

.private-mode-banner{
    display: none !important;
}
.nav-account{
    display:none !important;
}
a {
    text-decoration: none !important; /* Removes underline */
}

/* Header Styles */
.dashboard-header {
    background-color: #ffffff;
    border-bottom: 1.735px solid #dee2e6;
    box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.1), 0px 1px 2px 0px rgba(0,0,0,0.1);
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    height: 63.979px;
    align-items: center;
}

.dashboard-header .container-fluid {
    max-width: 100%;
    padding: 0;
    width: 100%;
    display: flex;
    height: 100%;
}

.dashboard-header .d-flex {
    display: flex !important;
    flex-direction: row !important;
    height: 100%;
    width: 100%;
}

.dashboard-header .align-items-center {
    align-items: center !important;
}

.dashboard-header .justify-content-between {
    justify-content: space-between !important;
}

.dashboard-header .gap-5 {
    gap: 48px !important;
    display: flex;
    align-items: center;
    height: 100%;
}

.header-logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-logo {
    height: 40px;
    width: auto;
}

.header-tabs {
    display: flex;
    gap: 0;
    height: 100%;
    align-items: center;
}

.header-tab {
    padding: 0 24px;
    font-size: 14px;
    font-weight: 400;
    color: #6c757d;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
}

.header-tab:hover {
    color: #1a1d21;
}

.header-tab.active {
    color: #1a1d21;
    font-weight: 500;
    border-bottom: 2px solid #E91E63;
}

.header-dropdown {
    position: relative;
}

.header-dropdown .dropdown-toggle {
    background: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #1a1d21;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header-dropdown .dropdown-toggle:hover {
    background-color: #f8f9fa;
}

/* Hide Bootstrap's default caret */
.header-dropdown .dropdown-toggle::after {
    display: none;
}

.header-dropdown .dropdown-toggle svg {
    width: 14px;
    height: 14px;
    color: #6c757d;
    flex-shrink: 0;
}

.header-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.12);
    min-width: 160px;
    z-index: 1000;
    display: none;
    padding: 8px 0;
}

.header-dropdown-menu.show {
    display: block;
}

.header-dropdown-item {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1d21;
    cursor: pointer;
    font-family: 'Figtree', sans-serif;
}

.header-dropdown-item:hover {
    background-color: #f3f4f6;
}

/* Main Content */
.main-content {
    padding: 32px 24px;
}

.dashboard-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dashboard-title {
    font-size: 24px;
    font-weight: 600;
    color: #101828;
    margin: 0;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 14px;
    font-weight: 500;
    color: #4a5565;
}

.filter-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.filter-dropdown-btn {
    border: 1.735px solid #d1d5dc;
    border-radius: 4px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1d21;
    background-color: #ffffff;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    font-family: 'Figtree', sans-serif;
}

.filter-dropdown-btn:hover {
    border-color: #9ca3af;
}

.filter-dropdown-btn svg {
    flex-shrink: 0;
    color: #6b7280;
}

.filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.12);
    min-width: 200px;
    z-index: 1000;
    display: none;
    padding: 8px 0;
}

.filter-dropdown-menu.show {
    display: block;
}

.filter-dropdown-item {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1d21;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Figtree', sans-serif;
}

.filter-dropdown-item:hover {
    background-color: #f3f4f6;
}

.filter-dropdown-item.active {
    color: #e8183c;
}

.filter-dropdown-item.has-submenu {
    position: relative;
    border-top: 1px solid #e5e7eb;
    margin-top: 4px;
    padding-top: 16px;
}

.filter-dropdown-item.has-submenu svg {
    color: #6b7280;
}

.filter-submenu {
    position: absolute;
    left: -1px;
    top: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.12);
    min-width: 120px;
    display: none;
    padding: 8px 0;
    margin-top: 4px;
}

.filter-dropdown-item.has-submenu:hover .filter-submenu,
.filter-submenu:hover {
    display: block;
}

/* Stat Cards */
.stat-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background-color: #ffffff;
    border: 1.735px solid #d1d5dc;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.1), 0px 1px 2px 0px rgba(0,0,0,0.1);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.stat-card-title {
    font-size: 14px;
    font-weight: 400;
    color: #4a5565;
    margin: 0;
}

.stat-card-icon {
    width: 20px;
    height: 20px;
}

.stat-card-value {
    font-size: 30px;
    font-weight: 600;
    color: #101828;
    margin: 0;
    line-height: 36px;
}

/* Charts Row */
.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.chart-card {
    background-color: #ffffff;
    border: 1.735px solid #d1d5dc;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.1), 0px 1px 2px -1px rgba(0,0,0,0.1);
}

.chart-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #101828;
    margin: 0 0 16px 0;
}

#pieChartContainer {
    position: relative;
}

/* Hide legend line segments, show only dots */
.canvasjs-chart-legend > div > div > div:first-child {
    display: none !important;
}

.canvasjs-chart-legend > div > div > div:nth-child(2) {
    margin-left: 0 !important;
}

/* Pie chart legend custom styling */
#pieChartContainer .canvasjs-chart-legend > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

#pieChartContainer .canvasjs-chart-legend > div > div {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

#pieChartContainer .canvasjs-chart-legend > div > div > div:first-child {
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    margin-right: 8px !important;
    flex-shrink: 0 !important;
}

#pieChartContainer .canvasjs-chart-legend > div > div > div:nth-child(2) {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
}

/* Hide CanvasJS watermark */
.canvasjs-chart-credit,
.canvasjs-chart-credit *,
a[href*="canvasjs.com"],
.canvasjs-chart-container > a,
div[style*="position: absolute"][style*="cursor: pointer"],
div[style*="position: absolute"][style*="bottom"],
#lineChartContainer > div > a,
#pieChartContainer > div > a {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* Data Table */
.table-card {
    background-color: #ffffff;
    border: 1.735px solid #d1d5dc;
    border-radius: 6px;
    box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.1), 0px 1px 2px -1px rgba(0,0,0,0.1);
    position: relative;
}

.data-table {
    width: 100%;
    margin: 0;
}

.data-table thead {
    background-color: #ffffff;
    border-bottom: 1.735px solid #e5e7eb;
}

.data-table thead th {
    padding: 13px 16px;
    font-size: 12px;
    font-weight: 500;
    color: #4a5565;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-align: left;
    border: none;
    white-space: nowrap;
}

.data-table thead th.sortable {
    cursor: pointer;
    user-select: none;
}

.data-table thead th.sortable:hover {
    color: #1a1d21;
}

.data-table thead th .sort-icon {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    color: #9ca3af;
    transition: transform 0.3s ease;

}
.data-table thead th.sort-asc .sort-icon {
    transform: rotate(0deg);
}

.data-table thead th.sort-desc .sort-icon {
    transform: rotate(180deg);
}

.data-table thead th.text-center {
    text-align: center;
}

.data-table tbody tr {
    border-bottom: 1.735px solid #e5e7eb;
}

.data-table tbody td {
    padding: 15px 16px;
    font-size: 14px;
    font-weight: 400;
    color: #101828;
    border: none;
}

.data-table tbody td:first-child {
    font-weight: 500;
}

.data-table tbody td.text-center {
    text-align: center;
}

.data-table tbody td:last-child {
    width: 1%; /* Forces the cell to only take up as much space as the content needs */
    white-space: nowrap;
}

.data-table tbody td.year-col {
    color: #364153;
}

.data-table tfoot {
    background-color: #f9fafb;
    border-top: 1.735px solid #d1d5dc;
}

.data-table tfoot td {
    padding: 15px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #101828;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border: none;
}

.data-table tfoot td.text-center {
    text-align: center;
}

.data-table tfoot .total-value {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.data-table tfoot .total-label {
    font-size: 10px;
    font-weight: 400;
    color: #6a7282;
    text-transform: lowercase;
    letter-spacing: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .stat-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .charts-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stat-cards-row {
        grid-template-columns: 1fr;
    }
    .dashboard-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}


/* ===== Partner Interface Styles (from partner.css) ===== */

/* View page gets wider padding */
.main-content.view-page {
    padding: 32px 130px;
}

/* Back Navigation */
.back-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    margin-bottom: 16px;
}

.back-nav:hover {
    color: #1a1d21;
}

.back-nav svg {
    flex-shrink: 0;
}

/* Client Header */
.client-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.client-name {
    font-size: 22px;
    font-weight: 600;
    color: #101828;
    margin: 0 0 4px 0;
}

.client-meta {
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
    margin: 0;
}

/* Edit Client Button */
.btn-edit-client {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #e91e63;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Figtree', sans-serif;
    transition: background-color 0.2s ease;
}

.btn-edit-client:hover {
    background-color: #c2185b;
    color: #ffffff;
    text-decoration: none;
}

.btn-edit-client svg {
    flex-shrink: 0;
}

/* Info Cards */
.info-card {
    background-color: #ffffff;
    border: 1px solid #d1d5dc;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.06);
}

.info-card-header {
    margin-bottom: 20px;
}

/* View page card header with separator line */
.view-card-header {
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.info-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #101828;
    margin: 0 0 4px 0;
}

.info-card-desc {
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    margin: 0;
}

/* Info Grid */
.info-grid {
    display: grid;
    gap: 16px 24px;
}

.info-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.info-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.info-grid.cols-1 {
    grid-template-columns: 1fr;
}

/* Info Field */
.info-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 12px;
}

.info-label {
    font-size: 12px;
    font-weight: 400;
    color: #6a7282;
    letter-spacing: 0.3px;
    font-family: 'Figtree', sans-serif;
    line-height: 16px;
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: #101828;
}

/* Info Notes */
.info-notes {
    margin-top: 16px;
    padding-top: 0;
}

.info-notes .info-label {
    margin-bottom: 6px;
    display: block;
}

.info-notes .info-value {
    font-weight: 400;
    color: #364153;
    line-height: 1.5;
    margin: 0;
    word-break: break-word !important;
    white-space: pre-wrap !important;
}

/* Referral Section */
.referral-section {
    margin-bottom: 16px;
}

.referral-section:last-child {
    margin-bottom: 0;
}

.referral-category {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 10px;
}

.referral-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.referral-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 400;
    color: #364153;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 12px;
}

.referral-tag svg {
    flex-shrink: 0;
}

/* Inline referral list (view page - no pill bg) */
.referral-inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
}

.referral-inline-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
    color: #364153;
    font-family: 'Figtree', sans-serif;
    line-height: 20px;
}

.referral-inline-item svg {
    flex-shrink: 0;
}

/* Bottom Action Bar */
.bottom-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
}

.bottom-action-bar .back-nav {
    margin-bottom: 0;
}

/* Responsive - View/Edit pages */
@media (max-width: 768px) {
    .info-grid.cols-3 {
        grid-template-columns: 1fr;
    }
    .info-grid.cols-2 {
        grid-template-columns: 1fr;
    }
    .client-header {
        flex-direction: column;
        gap: 12px;
    }
}


/* ===== Partner Interface Grid Page ===== */

/* Sub Tabs */
.sub-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
}

.sub-tab {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Figtree', sans-serif;
}

.sub-tab:hover {
    color: #1a1d21;
    text-decoration: none;
}

.sub-tab.active {
    color: #e8183c;
    font-weight: 600;
    border-bottom-color: #e8183c;
}

/* Search & Filter Bar */
.search-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

.search-filter-bar .export-btn {
    margin-left: auto;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #d1d5dc;
    border-radius: 6px;
    padding: 8px 14px;
    flex: 1;
    max-width: 400px;
}

.search-box svg {
    flex-shrink: 0;
}

.search-box input {
    border: none;
    outline: none;
    font-size: 13px;
    font-weight: 400;
    color: #101828;
    font-family: 'Figtree', sans-serif;
    width: 100%;
    background: transparent;
}

.search-box input::placeholder {
    color: #9ca3af;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1.5px solid #d1d5dc;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #364153;
    cursor: pointer;
    font-family: 'Figtree', sans-serif;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e91e63;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    font-family: 'Figtree', sans-serif;
    transition: background 0.2s ease;
}

.export-btn:hover {
    background: #c2185b;
}

/* Table overrides for partner grid */
.table-card .data-table tbody td.client-name-cell a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.table-card .data-table tbody td.client-name-cell a:hover {
    text-decoration: underline;
}

.table-card .data-table tbody td .yes-badge {
    color: #e8183c;
    font-weight: 600;
}

.table-card .data-table tbody td .no-badge {
    color: #6b7280;
    font-weight: 400;
}

/* Lock the last column so Power Pages can't shrink or break it */
.data-table th:last-child,
.data-table td:last-child,
.actions-col-fixed {
    position: sticky !important;
    right: 0 !important;
    background: #ffffff !important;
    z-index: 2 !important;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    padding: 0 !important; /* Remove cell padding so flex container can take over */
    vertical-align: middle !important;
    border-left: 1px solid #f3f4f6 !important; /* Optional: adds a nice border so the sticky column pops */
}
 
/* Force the flex container to keep items on a single row */
.actions-cell-flex {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    width: 100% !important;
    height: 100% !important;
    padding: 8px !important;
    box-sizing: border-box !important;
}
 
/* Lock the links so they never wrap text */
.actions-cell-flex .action-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

.action-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap; /* Prevents text/icon from splitting */
}

.action-link:hover {
    opacity: 0.8;
}

.action-link.view {
    color: #2563eb;
}

.action-link.edit {
    color: #E67E22;
}

.action-link svg {
    flex-shrink: 0;
}

/* Pagination Bar */
.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-top: 8px;
}

.pagination-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #6b7280;
    font-family: 'Figtree', sans-serif;
}

.pagination-left select {
    border: 1.5px solid #d1d5dc;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    font-family: 'Figtree', sans-serif;
    color: #101828;
    background: #fff;
    cursor: pointer;
}

.pagination-right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #6b7280;
    font-family: 'Figtree', sans-serif;
}

.page-nav {
    background: #ffffff;
    border: 1.5px solid #d1d5dc;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #364153;
    transition: all 0.2s ease;
}

.page-nav:hover:not(:disabled) {
    border-color: #9ca3af;
    background: #f9fafb;
}

.page-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Export Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: #ffffff;
    border-radius: 8px;
    width: 560px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: visible;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 24px 16px !important;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 8px 8px 0 0;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #101828;
    margin: 0 0 4px 0 !important;
}

.modal-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0 !important;
}

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #364153;
}

.modal-body {
    padding: 20px 24px !important;
}

.modal-section-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 14px;
}

.modal-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.modal-filter-group {
    position: relative;
}

.modal-filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #364153;
    margin-bottom: 6px !important;
}

.modal-filter-group select {
    width: 100%;
    border: 1.5px solid #d1d5dc;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: 'Figtree', sans-serif;
    color: #101828;
    background: #fff;
    cursor: pointer;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px !important;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
}

.modal-cancel {
    background: #ffffff;
    border: 1.5px solid #d1d5dc;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #364153;
    cursor: pointer;
    font-family: 'Figtree', sans-serif;
}

.modal-cancel:hover {
    background: #f9fafb;
}

.modal-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e91e63;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    font-family: 'Figtree', sans-serif;
}

.modal-export:hover {
    background: #c2185b;
}

/* Horizontally scrollable table with sticky Actions column */
.table-scroll-wrapper {
    overflow-x: auto;
    width: 100%;
}

.table-card .data-table {
    min-width: 1100px;
}

.data-table th:last-child,
.data-table td:last-child {
    position: sticky;
    right: 0;
    background: #ffffff;
    z-index: 2;
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    text-align: center;
    padding: 8px 4px !important;
}

/* COMMENTED OUT: Sticky actions column shadow
.data-table th:last-child::before,
.data-table td:last-child::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -12px;
    width: 12px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.06));
    pointer-events: none;
}
*/

.data-table thead th:last-child {
    background: #ffffff;
}

/* .data-table td:last-child .actions-cell {
    justify-content: center;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 48px !important;
} */

.modal-dropdown {
    width: 100%;
}

.modal-dropdown .filter-dropdown-btn {
    width: 100%;
    min-width: unset;
}

.modal-dropdown .filter-dropdown-menu {
    width: 100%;
    min-width: unset;
    max-height: 200px;
    overflow-y: auto;
}



/* ===== Edit Partner Interface Page ===== */

/* Edit Client Header */
.edit-client-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.edit-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-cancel {
    background: #ffffff;
    border: 1.5px solid #d1d5dc;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #364153;
    cursor: pointer;
    font-family: 'Figtree', sans-serif;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-save {
    background: #e91e63;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    font-family: 'Figtree', sans-serif;
    transition: background 0.2s ease;
}

.btn-save:hover {
    background: #c2185b;
}

/* Pill Tab Bar */
.edit-tab-bar {
    display: flex;
    gap: 0;
    border: 1.5px solid #d1d5dc;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #ffffff;
    width: 100%;
}

.edit-tab {
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Figtree', sans-serif;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-right: 1px solid #d1d5dc;
    flex: 1;
    text-align: center;
}

.edit-tab:last-child {
    border-right: none;
}

.edit-tab:hover {
    color: #364153;
    background: #f9fafb;
}

.edit-tab.active {
    background: #e91e63;
    color: #ffffff;
    font-weight: 600;
}

/* Tab Panels */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Edit Form Grid */
.edit-form-grid {
    display: grid !important;
    gap: 16px 24px !important;
}

.edit-form-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

.edit-form-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr) !important;
}

.edit-form-grid.cols-1 {
    grid-template-columns: 1fr !important;
}

/* Edit Field */
.edit-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.edit-field label {
    color: #495057;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 14px;
    margin: 0;
}

.edit-field input,
.edit-field textarea {
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 20px;
    color: #1A1D21;
    border: 1.5px solid #d1d5dc;
    border-radius: 6px;
    padding: 10px 12px;
    outline: none;
    transition: border-color 0.2s ease;
}

.edit-field input:focus,
.edit-field textarea:focus {
    border-color: #e91e63;
}

/* Disabled fields */
.field-disabled {
    background-color: #f3f4f6 !important;
    opacity: 0.7;
    cursor: not-allowed;
    border-color: #e5e7eb !important;
    color: #1A1D21;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

/* Editable fields */
.field-editable {
    background-color: #faf8f5 !important;
    border: 1.5px solid #d1d5dc !important;
    border-radius: 6px !important;
    padding: 10px 12px !important;
    font-family: 'Figtree', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    color: #1A1D21 !important;
    outline: none !important;
    transition: border-color 0.2s ease !important;
    box-sizing: border-box !important;
    width: 100% !important;
    display: block !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Edit page: info card header separator */
.tab-panel .info-card-header {
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

/* Edit page: info card description */
.tab-panel .info-card-desc {
    color: #6b7280;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.field-editable:focus {
    border-color: #e91e63 !important;
}

textarea.field-editable {
    resize: vertical;
    min-height: 80px;
}

textarea.field-disabled {
    resize: none;
}

/* Date field - calendar icon on the left */
.date-field {
    max-width: 200px;
    direction: rtl;
}

.date-field::-webkit-calendar-picker-indicator {
    margin-right: 0;
    margin-left: auto;
}

/* Wrapper approach for date fields with left icon */
input[type="date"].field-editable {
    direction: ltr !important;
    position: relative !important;
    padding-left: 36px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Crect x='1.5' y='2.5' width='13' height='12' rx='1.5' stroke='%236b7280' stroke-width='1.2'/%3E%3Cpath d='M1.5 6.5H14.5' stroke='%236b7280' stroke-width='1.2'/%3E%3Cpath d='M5 1V3.5' stroke='%236b7280' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M11 1V3.5' stroke='%236b7280' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 10px center !important;
    background-size: 16px 16px !important;
    height: auto !important;
    min-height: 40px !important;
}

input[type="date"].field-editable::-webkit-calendar-picker-indicator {
    opacity: 0 !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    cursor: pointer !important;
}

/* Checkbox Row */
.edit-checkbox-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

/* Checkbox + Date vertical group */
.checkbox-date-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.checkbox-date-group .edit-checkbox {
    margin-bottom: 0;
}

/* Date field inside checkbox groups */
input[type="date"].field-editable.date-field-full {
    max-width: 360px !important;
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Notes textarea */
.field-notes {
    background-color: #ffffff;
    border: 1.5px solid #d1d5dc;
    border-radius: 6px;
    padding: 10px 12px;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #1A1D21;
    outline: none;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease;
}

.field-notes:focus {
    border-color: #e91e63;
}

.field-notes::placeholder {
    color: #9ca3af !important;
}

input[type="date"] {
    accent-color: #e91e63 !important;
}


/* Custom Checkbox - Pink */
.edit-checkbox {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #495057 !important;
    font-family: 'Figtree', sans-serif !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 14px !important;
    cursor: pointer !important;
    user-select: none !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.edit-checkbox input[type="checkbox"] {
    display: none !important;
}

.edit-checkbox .checkmark {
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #d1d5dc !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: all 0.15s ease !important;
    background: #ffffff !important;
}

.edit-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #e91e63 !important;
    border-color: #e91e63 !important;
}

.edit-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '' !important;
    width: 5px !important;
    height: 9px !important;
    border: solid #ffffff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
    margin-top: -1px !important;
}

/* Post-Arrival Separator */
.post-arrival-separator {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

/* Warning Box */
.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fffbeb;
    border: 1px solid #fee685;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 400;
    color: #7b3306;
    line-height: 1.5;
}

.warning-box strong {
    font-weight: 600;
}

/* Referral Table */
.referral-table {
    width: 100%;
    border-collapse: collapse;
}

.referral-table thead th {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #4a5565;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
    background: #f9fafb;
}

.referral-table thead th:first-child {
    width: 50%;
}

.referral-category-row td {
    padding: 14px 16px;
    background: #fef2f2;
    border-bottom: 1px solid #e5e7eb;
}

.referral-category-row .category-label {
    font-size: 13px;
    font-weight: 600;
    color: #82181a;
}

.referral-category-row .edit-checkbox {
    font-size: 12px;
    color: #6b7280;
}

.referral-item-row td {
    padding: 12px 16px;
    color: #1A1D21;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    border-bottom: 1px solid #f3f4f6;
}

/* Init Loader Overlay (Lottie) */
.init-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.init-loader-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.init-loader-content {
    text-align: center;
}

.init-loader-content lottie-player {
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.init-loader-text {
    font-size: 15px;
    font-weight: 500;
    color: #4a5565;
    margin: 12px 0 0;
    font-family: 'Figtree', sans-serif;
}

/* Save Loader Overlay (reuses Lottie) */
.save-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-loader-content {
    text-align: center;
}

.save-loader-content lottie-player {
    width: 120px;
    height: 120px;
    margin: 0 auto 12px;
}

.loader-image {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loader-text {
    font-size: 17.6px;
    font-weight: 500;
    color: #4a5565;
    margin: 0;
    font-family: 'Figtree', sans-serif;
}

/* Responsive for edit page */
@media (max-width: 768px) {
    .edit-form-grid.cols-3 {
        grid-template-columns: 1fr;
    }
    .edit-form-grid.cols-2 {
        grid-template-columns: 1fr;
    }
    .edit-client-header {
        flex-direction: column;
        gap: 12px;
    }
    .edit-tab-bar {
        flex-wrap: wrap;
        width: 100%;
    }
}

/* Post-Arrival date fields wider (2-col layout) */
#panel-postArrival input[type="date"].field-editable.date-field-full {
    max-width: 480px !important;
}


/* ===== Auth Pages Styles (from auth.css) ===== */

body.auth-page {
    font-family: 'Figtree', sans-serif;
    background-color: #FEF8EE;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-image: none;
}

body.auth-page::before {
    display: none;
}

/* Arc Decorations */
.arc-decoration {
    position: absolute;
    top: -80px;
    left: -80px;
    width: 420px;
    height: 420px;
    pointer-events: none;
    background-image: url('/img_arc_decoration.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top left;
}

.arc-decoration::before,
.arc-decoration::after {
    display: none;
}

/* Auth Container */
.auth-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0px 8px 40px 0px rgba(0, 0, 0, 0.1);
    width: 388px;
    position: relative;
    z-index: 1;
}

/* Logo Section */
.auth-logo-section {
    padding: 40px 32px 24px;
    text-align: center;
    border-bottom: 1.735px solid #f3f4f6;
}

.auth-logo {
    height: 32px;
    width: auto;
    margin-bottom: 20px;
}

.auth-title {
    font-size: 20px;
    font-weight: 600;
    color: #101828;
    margin: 0;
    line-height: 30px;
}

/* Form Section */
.auth-form-section {
    padding: 24px 0 32px 0;
}

.form-horizontal {
    margin: 0;
    padding: 0 32px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Labels */
.control-label {
    font-size: 14px;
    font-weight: 500;
    color: #364153;
    margin-bottom: 12px;
    display: block;
    text-align: left;
    padding: 0;
}

/* Input Fields */
.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 400;
    color: #101828;
    background-color: #f9fafb;
    border: 1.735px solid #d1d5dc;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: 'Figtree', sans-serif;
    box-sizing: border-box;
}

.form-control::placeholder {
    color: #99a1af;
}

.form-control:focus {
    outline: none;
    border-color: #e8183c;
    background-color: #ffffff;
}

/* Password Input Container */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
}

.password-toggle svg {
    width: 16px;
    height: 16px;
    color: #6a7282;
}

/* Help Text */
.help-block {
    font-size: 12px;
    color: #99a1af;
    margin-top: 6px;
    margin-bottom: 0;
    line-height: 16px;
}

/* Auth Buttons */
.btn {
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    line-height: 20px;
}

.btn-primary {
    background-color: #e8183c;
    color: #ffffff;
    width: 100%;
}

.btn-primary:hover {
    background-color: #c91434;
}

.btn-default,
.btn-link {
    background: none;
    border: none;
    color: #6a7282;
    font-weight: 500;
    text-decoration: underline;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-default:hover,
.btn-link:hover {
    color: #4a5565;
}

/* Back to Sign In Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #6a7282;
    text-decoration: none;
    margin-top: 20px;
    justify-content: center;
    width: 100%;
}

.back-link:hover {
    color: #4a5565;
}

.back-link svg {
    width: 14px;
    height: 14px;
}

/* Forgot Password Link */
.forgot-password-link {
    text-align: center;
    margin-top: 24px;
}

.forgot-password-link a {
    font-size: 14px;
    font-weight: 500;
    color: #6a7282;
    text-decoration: underline;
}

.forgot-password-link a:hover {
    color: #4a5565;
}

/* Hide Bootstrap Column Classes for Auth */
.col-sm-4,
.col-sm-8,
.col-sm-2,
.col-sm-10,
.col-sm-offset-2,
.col-sm-offset-4 {
    padding: 0;
    width: 100%;
    margin: 0;
}

.col-sm-8,
.col-sm-10 {
    margin-top: 8px;
}

/* Hide Headings */
.login-heading-section,
.forgot-password-heading {
    display: none;
}

/* Validation Summary */
.validation-summary-valid,
.validation-summary-errors {
    display: none;
}

/* Page Content */
.page-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.col-md-6 {
    width: 100%;
    max-width: 388px;
    padding: 0;
}

/* Responsive - Auth */
@media (max-width: 480px) {
    .auth-container {
        width: 90%;
        margin: 20px;
    }
}


/* ===== Filter Popover ===== */
.filter-popover-wrapper {
    position: relative;
}

.filter-popover {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 720px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
    padding: 20px;
    box-sizing: border-box;
    overflow: visible;
}

.filter-popover.show {
    display: block;
}

.filter-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.filter-popover-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6a7282;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.filter-popover-close:hover {
    background: #f3f4f6;
    color: #101828;
}

.filter-popover-title {
    font-size: 14px;
    font-weight: 600;
    color: #101828;
    margin: 0;
    font-family: 'Figtree', sans-serif;
}

.filter-popover-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}

.filter-popover-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.filter-popover-label {
    font-size: 14px;
    font-weight: 500;
    color: #101828;
    font-family: 'Figtree', sans-serif;
}

.filter-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.filter-date-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.filter-date-sublabel {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    font-family: 'Figtree', sans-serif;
}

.filter-date-input {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d1d5dc;
    border-radius: 6px;
    padding: 7px 10px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease;
    min-width: 0;
    box-sizing: border-box;
}

.filter-date-input:focus-within {
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.filter-date-input svg {
    flex-shrink: 0;
    color: #9ca3af;
}

.filter-date-input input[type="date"] {
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 400;
    color: #101828;
    font-family: 'Figtree', sans-serif;
    background: transparent;
    width: 100%;
    min-width: 0;
    padding: 0;
    cursor: pointer;
    box-sizing: border-box;
    position: relative;
}

.filter-date-input input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Placeholder style for empty date inputs */
.filter-date-input input[type="date"].empty {
    color: #9ca3af;
}

.filter-popover-select {
    width: 100%;
    border: 1px solid #d1d5dc;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 400;
    color: #101828;
    font-family: 'Figtree', sans-serif;
    background: #ffffff;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' stroke='%239ca3af' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 32px;
    transition: border-color 0.2s ease;
}

.filter-popover-select:focus {
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

/* Filter popover custom dropdowns — full width */
.filter-popover-dropdown {
    display: block;
    width: 100%;
}

.filter-popover-dropdown .filter-dropdown-btn {
    width: 100%;
    min-width: unset;
    justify-content: space-between;
}

.filter-popover-dropdown .filter-dropdown-menu {
    width: 100%;
    min-width: unset;
}

.filter-popover-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.filter-popover-reset {
    background: #ffffff;
    border: 1px solid #d1d5dc;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #101828;
    cursor: pointer;
    font-family: 'Figtree', sans-serif;
    transition: all 0.2s ease;
}

.filter-popover-reset:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.filter-popover-apply {
    background: #e91e63;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    font-family: 'Figtree', sans-serif;
    transition: background 0.2s ease;
}

.filter-popover-apply:hover {
    background: #c2185b;
}
