/* Advanced Customer Reports admin UI */

:root {
    --acr-bg: #f5f7f8;
    --acr-surface: #ffffff;
    --acr-surface-soft: #f8faf9;
    --acr-surface-tint: #f2f7f7;
    --acr-border: #d7dddf;
    --acr-border-strong: #b9c3c7;
    --acr-text: #1d2327;
    --acr-muted: #687176;
    --acr-primary: #1f6f78;
    --acr-primary-dark: #124e55;
    --acr-primary-soft: #e7f4f5;
    --acr-accent: #b85c38;
    --acr-accent-soft: #fff3ed;
    --acr-success: #2f7d58;
    --acr-warning: #a96f18;
    --acr-danger: #b33b3f;
    --acr-radius: 8px;
    --acr-shadow: 0 10px 28px rgba(29, 35, 39, 0.07), 0 1px 2px rgba(29, 35, 39, 0.05);
    --acr-shadow-soft: 0 4px 14px rgba(29, 35, 39, 0.06);
}

.acreports-page {
    color: var(--acr-text);
    max-width: 1280px;
    padding-bottom: 28px;
}

.acreports-page *,
.acreports-page *::before,
.acreports-page *::after {
    box-sizing: border-box;
}

.acreports-page a {
    color: var(--acr-primary);
}

.acreports-page a:hover,
.acreports-page a:focus {
    color: var(--acr-primary-dark);
}

.acreports-page-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 18px;
    padding: 22px 24px;
    overflow: hidden;
    border: 1px solid #d8e0e1;
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(31, 111, 120, 0.1), rgba(184, 92, 56, 0.06) 52%, rgba(47, 125, 88, 0.07)),
        var(--acr-surface);
    box-shadow: var(--acr-shadow);
}

.acreports-page-header::after {
    content: "";
    position: absolute;
    right: -52px;
    bottom: -76px;
    width: 220px;
    height: 170px;
    border: 1px solid rgba(31, 111, 120, 0.13);
    border-radius: 999px;
    transform: rotate(-18deg);
    pointer-events: none;
}

.acreports-page-header h1 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--acr-text);
    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: -10px;
}

.acreports-page-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.acreports-page-actions a,
.acreports-customers-filters .button,
#download_csv,
#download_notes_csv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--acr-border-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--acr-text);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.acreports-page-actions a:hover,
.acreports-customers-filters .button:hover,
#download_csv:hover,
#download_notes_csv:hover {
    border-color: var(--acr-primary);
    color: var(--acr-primary-dark);
    background: var(--acr-primary-soft);
    box-shadow: 0 2px 8px rgba(31, 111, 120, 0.12);
}

#customer-report {
    max-width: 1280px;
}

#customer-report-form {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(360px, 1fr);
    gap: 16px;
    align-items: end;
    padding: 18px;
    overflow: hidden;
    border: 1px solid #d5e0e2;
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 249, 0.94)),
        var(--acr-surface);
    box-shadow: var(--acr-shadow);
}

#customer-report-form > div {
    float: none;
    width: auto;
}

.acreports-customer-picker {
    display: grid;
    gap: 10px;
}

.acreports-customer-search-field {
    position: relative;
    display: block;
}

#username_picker,
#date_range,
#start_date,
#end_date,
#status,
.acreports-customers-filters input,
.acreports-customers-filters select {
    min-height: 38px;
    border: 1px solid var(--acr-border-strong);
    border-radius: 7px;
    background-color: var(--acr-surface);
    color: var(--acr-text);
    font-size: 14px;
    line-height: 1.4;
    box-shadow: none;
}

#username_picker:focus,
#date_range:focus,
#start_date:focus,
#end_date:focus,
#status:focus,
.acreports-customers-filters input:focus,
.acreports-customers-filters select:focus {
    border-color: var(--acr-primary);
    box-shadow: 0 0 0 2px rgba(31, 111, 120, 0.16);
    outline: none;
}

#username_picker {
    width: 100%;
    margin: 0;
    padding: 0 38px 0 12px;
}

.acreports-clear-username {
    position: absolute;
    top: 50%;
    right: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0;
    border-radius: 50%;
    color: var(--acr-muted);
    text-decoration: none;
    transform: translateY(-50%);
}

.acreports-clear-username:hover,
.acreports-clear-username:focus {
    background: #f0f0f1;
    color: var(--acr-danger);
}

#generate_report,
.view-customer-report {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--acr-primary-dark);
    border-radius: 7px;
    background: linear-gradient(180deg, #247b85, var(--acr-primary-dark));
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

#generate_report {
    width: 100%;
}

#generate_report:hover,
#generate_report:focus,
.view-customer-report:hover,
.view-customer-report:focus {
    border-color: #0a4b78;
    background: linear-gradient(180deg, var(--acr-primary), #0f444a);
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(31, 111, 120, 0.22);
    transform: translateY(-1px);
}

#generate_report:disabled {
    cursor: progress;
}

.acreports-report-filters,
.pro-feature,
#acr_date_picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

#date_range,
#status {
    min-width: 150px;
}

#start_date,
#end_date {
    width: 150px;
}

#date_range:disabled,
#start_date:disabled,
#end_date:disabled,
#status:disabled {
    opacity: 0.65;
}

.tooltip {
    position: absolute;
    z-index: 999;
    max-width: 220px;
    padding: 9px 10px;
    border-radius: 6px;
    background: #1d2327;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.35;
    visibility: hidden;
    opacity: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    transition: visibility 0s, opacity 0.2s ease;
}

.tooltip a {
    color: #ffffff;
}

#loadingreport {
    display: none;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #d5e0e2;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff, #f8fbfb);
    color: var(--acr-muted);
    font-size: 14px;
    box-shadow: var(--acr-shadow-soft);
}

#loadingreport img {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin: 0 8px -4px 0;
}

#report_results {
    margin-top: 18px;
}

.acreports-hidden-tab {
    display: none;
}

.acreports-customers-list,
.report-section,
.customer-profile-section,
.tabs,
.tab-content,
.product-tabs,
.product-tab-content {
    max-width: 1280px;
}

.acreports-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 22px 0 10px;
}

.acreports-section-header h2,
.report-section h3 {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--acr-text);
    font-size: 18px;
    font-weight: 650;
    line-height: 1.3;
}

.acreports-customers-filters {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    max-width: 1280px;
    margin: 0 0 12px;
    padding: 14px;
    border: 1px solid #d5e0e2;
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 249, 0.98)),
        var(--acr-surface);
    box-shadow: var(--acr-shadow-soft);
}

.acreports-customers-filters input[type="search"],
.acreports-customers-filters input[type="number"],
.acreports-customers-filters select {
    min-width: 0;
}

.acreports-customers-filters input[type="search"] {
    flex: 1 1 270px;
}

.acreports-customers-filters input[type="number"] {
    flex: 0 1 90px;
}

.acreports-customers-filters select {
    flex: 0 1 125px;
}

.acreports-customers-filters .button {
    flex: 0 0 auto;
}

.acreports-table-panel {
    width: 100%;
    max-width: 1280px;
    overflow-x: auto;
    border: 1px solid #d5e0e2;
    border-radius: 10px;
    background: var(--acr-surface);
    box-shadow: var(--acr-shadow);
}

#customers-table .wp-list-table,
#report-tab-content table {
    width: 100%;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--acr-surface);
}

#customers-table .wp-list-table thead th,
#customers-table .wp-list-table tfoot th,
#report-tab-content th {
    border: 0;
    border-bottom: 1px solid var(--acr-border);
    background: linear-gradient(180deg, #fbfcfc, #f3f7f7);
    color: var(--acr-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
}

#customers-table .wp-list-table th,
#customers-table .wp-list-table td,
#report-tab-content th,
#report-tab-content td {
    padding: 11px 12px;
    text-align: left;
    vertical-align: middle;
}

#customers-table .wp-list-table td,
#report-tab-content td {
    border: 0;
    border-bottom: 1px solid #f0f0f1;
    background: var(--acr-surface);
    color: var(--acr-text);
}

#customers-table .wp-list-table tbody tr:hover td,
#report-tab-content table tr:hover td {
    background: #f5fbfb;
}

#customers-table .wp-list-table tbody tr:nth-child(even) td,
#report-tab-content table tr:nth-child(even) td {
    background: #fcfdfd;
}

#customers-table .wp-list-table tbody tr:last-child td,
#report-tab-content table tr:last-child td {
    border-bottom: 0;
}

#customers-table .column-customer_id,
#customers-table .column-customer_orders {
    white-space: nowrap;
}

#customers-table .column-view_report {
    width: 132px;
}

.view-customer-report {
    width: auto;
    min-height: 32px;
    padding: 6px 10px;
    font-size: 13px;
}

#customers-table .tablenav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    margin: 0;
    padding: 10px 12px;
    background: #fbfcfc;
}

#customers-table .tablenav.top {
    border-bottom: 1px solid var(--acr-border);
}

#customers-table .tablenav.bottom {
    border-top: 1px solid var(--acr-border);
}

#customers-table .tablenav-pages {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--acr-muted);
}

#customers-table .tablenav-pages .button,
#customers-table .tablenav-pages .tablenav-pages-navspan,
#customers-table .tablenav-pages .current-page {
    min-width: 30px;
    min-height: 30px;
    border-radius: 6px;
}

#customers-table .tablenav-pages .current-page {
    border: 1px solid var(--acr-border-strong);
    text-align: center;
}

.customer-profile-section {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(360px, 1.4fr);
    gap: 16px;
    align-items: stretch;
    margin: 18px 0;
    padding: 18px;
    overflow: hidden;
    border: 1px solid #d5e0e2;
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 247, 0.78)),
        var(--acr-surface);
    box-shadow: var(--acr-shadow);
}

.customer-profile-section > h2 {
    grid-column: 1 / -1;
    margin: 0;
    text-align: center;
}

.left-wrapper,
.right-section {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.left-section,
.left-section2,
.right-section {
    float: none;
    padding: 0;
    box-sizing: border-box;
}

.left-section2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.left-section2 h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.left-section2 p,
.contact-details,
.contact-details p {
    margin: 0;
    color: var(--acr-muted);
    line-height: 1.55;
}

.profile-image {
    flex: 0 0 84px;
    width: 84px;
    height: 84px;
    margin: 0;
    overflow: hidden;
    border-radius: 50%;
    padding: 3px;
    border: 1px solid rgba(31, 111, 120, 0.2);
    background: linear-gradient(135deg, var(--acr-primary-soft), var(--acr-accent-soft));
}

.profile-image img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.customer-profile-section > .right-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    margin: 0;
}

.customer-profile-section > .right-section > .right-section {
    display: block;
    margin: 0;
    padding: 12px;
    border: 1px solid #e3eaec;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.contact-details strong {
    display: block;
    margin-bottom: 4px;
    color: var(--acr-text);
}

.acreports-report-back {
    max-width: 1280px;
    margin: 0 0 14px;
}

.acreports-report-back p {
    margin: 0;
    text-align: right;
}

.report-section {
    margin: 18px 0;
    max-width: 1280px;
}

.acreports-stat-grid,
.report-section[style*="display: flex"] {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px !important;
}

.acreports-single-stat-grid {
    grid-template-columns: minmax(0, 1fr);
}

.stat-box {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 118px;
    margin: 0 !important;
    padding: 18px 84px 18px 18px;
    overflow: hidden;
    border: 1px solid #d7e1e3;
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 251, 0.98)),
        var(--acr-surface);
    color: var(--acr-text);
    font-size: 25px;
    font-weight: 650;
    line-height: 1.2;
    text-align: left;
    box-shadow: var(--acr-shadow-soft);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.stat-box::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -58px;
    width: 130px;
    height: 100px;
    border: 1px solid rgba(31, 111, 120, 0.08);
    border-radius: 999px;
    transform: rotate(-18deg);
}

.stat-box:hover {
    border-color: #c7d7da;
    box-shadow: var(--acr-shadow);
    transform: translateY(-1px);
}

.acreports-stat-grid .stat-box:nth-child(3n+2) .dashicons {
    color: var(--acr-accent);
}

.acreports-stat-grid .stat-box:nth-child(3n+3) .dashicons {
    color: var(--acr-success);
}

.stat-box .dashicons {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    border-radius: 8px;
    background: var(--acr-primary-soft);
    color: var(--acr-primary);
    font-size: 34px;
    line-height: 1;
    z-index: 1;
}

.stat-box .dashicons::before {
    display: block;
    width: 34px;
    height: 34px;
    font-size: 34px;
    line-height: 1;
}

.stat-box strong {
    display: block;
    margin: 0 0 10px;
    color: var(--acr-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: uppercase;
}

.stat-box p {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
}

.stat-box p:first-of-type {
    font-size: 18px;
    font-weight: 650;
}

.stat-box .acreports-stat-title {
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 650;
}

.acreports-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    align-items: start;
    gap: 14px;
    margin: 18px 0;
}

.acreports-dashboard-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.acreports-dashboard-grid > .report-section {
    margin: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

.acreports-dashboard-grid > .report-section .acreports-chart {
    flex: 1;
    min-height: 0;
}

.acreports-dashboard-grid > .report-section .acreports-chart .acreports-chart-bar {
    height: 100%;
}

.acreports-dashboard-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.acreports-dashboard-col > .report-section {
    margin: 0;
}

.acreports-insight-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid #d5e0e2;
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 249, 0.98)),
        var(--acr-surface);
    box-shadow: var(--acr-shadow-soft);
}

.acreports-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.acreports-card-heading h3,
.acreports-insight-card > h3 {
    margin: 0;
}

.acreports-mini-badge,
.acreports-pro-badge,
.acreports-guest-badge,
.acreports-segment-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid #d5dcde;
    border-radius: 999px;
    background: #f7f9f9;
    color: var(--acr-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.acreports-pro-badge {
    border-color: #f0d7a2;
    background: #fff8e5;
    color: var(--acr-warning);
}

.acreports-segment-badge {
    border-color: #badbcc;
    background: #edf7f1;
    color: var(--acr-success);
}

.acreports-guest-badge {
    border-color: #cfd8e3;
    background: #eef2f7;
    color: #4a5b70;
    vertical-align: middle;
}

.acreports-metric-list {
    display: grid;
    gap: 12px;
}

.acreports-metric-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: center;
    color: var(--acr-muted);
    font-size: 13px;
}

.acreports-metric-row strong {
    color: var(--acr-text);
    font-size: 14px;
    font-weight: 700;
}

.acreports-metric-row i {
    grid-column: 1 / -1;
    display: block;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f2;
}

.acreports-metric-row i::before {
    content: "";
    display: block;
    width: min(var(--acr-row-width), 100%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--acr-primary), var(--acr-accent));
}

.acreports-chart {
    display: flex;
    align-items: end;
    gap: 8px;
    min-height: 188px;
    max-height: 260px;
    margin: 8px 0 14px;
    padding: 0 6px;
    border-bottom: 1px solid var(--acr-border);
}

.acreports-chart-bar {
    position: relative;
    flex: 1 1 0;
    min-width: 30px;
    display: flex;
    align-items: end;
    justify-content: center;
    height: 150px;
    padding-bottom: 28px;
}

.acreports-chart-bar-fill {
    width: 100%;
    max-width: 34px;
    height: var(--acr-bar-height);
    min-height: 8px;
    border-radius: 7px 7px 0 0;
    background: linear-gradient(180deg, #247b85, var(--acr-primary-dark));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: opacity 0.15s ease;
}

.acreports-chart-bar:hover .acreports-chart-bar-fill {
    opacity: 0.75;
}

.acreports-chart-bar::after {
    content: attr(data-value);
    position: absolute;
    bottom: calc(100% - 24px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 28, 32, 0.9);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 5px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 10;
}

.acreports-chart-bar:hover::after {
    opacity: 1;
}

.acreports-chart-label {
    position: absolute;
    left: 50%;
    width: 72px;
    color: var(--acr-muted);
    text-align: center;
    transform: translateX(-50%);
}

.acreports-chart-label {
    bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.acreports-compact-table {
    font-size: 12px;
}

.acreports-definition-list {
    display: grid;
    gap: 10px;
    margin: 12px 0 0;
}

.acreports-definition-list div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid #edf1f2;
}

.acreports-definition-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.acreports-definition-list dt {
    color: var(--acr-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.acreports-definition-list dd {
    margin: 0;
    color: var(--acr-text);
    font-weight: 650;
    text-align: right;
}

.acreports-definition-list-compact {
    margin-top: 14px;
}

/* Referrers and landing pages are full URLs, so they get room to wrap rather
   than pushing the card wider than the column it sits in. */
.acreports-definition-list dd.acreports-attribution-url {
    min-width: 0;
    max-width: 60%;
    font-weight: 500;
    word-break: break-word;
    overflow-wrap: anywhere;
}

@media screen and (max-width: 782px) {
    .acreports-definition-list dd.acreports-attribution-url {
        max-width: 100%;
    }
}

.acreports-health-layout {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.acreports-health-layout p {
    margin: 10px 0 0;
    color: var(--acr-muted);
    line-height: 1.45;
}

.acreports-score-ring {
    width: 108px;
    height: 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #fff 0 58%, transparent 59%),
        conic-gradient(var(--acr-primary) var(--acr-score), #edf1f2 0);
}

.acreports-score-ring strong {
    color: var(--acr-text);
    font-size: 28px;
    line-height: 1;
}

.acreports-score-ring span {
    color: var(--acr-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.acreports-score-bars {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.acreports-score-bars div {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 38px;
    gap: 8px;
    align-items: center;
    color: var(--acr-muted);
    font-size: 12px;
}

.acreports-score-bars i {
    display: block;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f2;
}

.acreports-score-bars i::before {
    content: "";
    display: block;
    width: var(--acr-score-width);
    height: 100%;
    border-radius: inherit;
    background: var(--acr-primary);
}

.acreports-score-bars strong {
    color: var(--acr-text);
    font-size: 12px;
    text-align: right;
}

.acreports-locked-panel {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px dashed #d8c8a0;
    border-radius: 10px;
    background: #fffaf0;
}

.acreports-locked-panel .dashicons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #fff3d2;
    color: var(--acr-warning);
    font-size: 24px;
}

.acreports-locked-panel h4 {
    margin: 0 0 6px;
    color: var(--acr-text);
    font-size: 15px;
}

.acreports-locked-panel p {
    margin: 0 0 10px;
    color: var(--acr-muted);
}

.acreports-comparison-table {
    margin-top: 0 !important;
}

.acreports-opportunity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.acreports-opportunity-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid #e3eaec;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: var(--acr-shadow-soft);
}

.acreports-opportunity-card h4 {
    margin: 10px 0 8px;
    font-size: 15px;
    line-height: 1.35;
}

.acreports-opportunity-card p {
    margin: 0 0 12px;
    color: var(--acr-muted);
    line-height: 1.45;
}

.acreports-opportunity-card strong {
    color: var(--acr-text);
}

.acreports-recommended-actions {
    margin-top: 18px;
    padding: 20px;
    border-color: #c5d7da;
    background:
        linear-gradient(135deg, rgba(31, 111, 120, 0.08), rgba(184, 92, 56, 0.05) 48%, rgba(47, 125, 88, 0.06)),
        var(--acr-surface);
}

.acreports-recommended-actions-heading {
    align-items: flex-start;
    margin-bottom: 16px;
}

.acreports-recommended-actions-heading p,
.acreports-muted-note {
    max-width: 720px;
    margin: 6px 0 0;
    color: var(--acr-muted);
    line-height: 1.45;
}

.acreports-action-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.acreports-action-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid #dfe8ea;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
}

.acreports-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--acr-primary-soft);
    color: var(--acr-primary);
}

.acreports-action-item-warning .acreports-action-icon {
    background: #fff3d2;
    color: var(--acr-warning);
}

.acreports-action-item-danger .acreports-action-icon {
    background: #fdecee;
    color: var(--acr-danger);
}

.acreports-action-item-success .acreports-action-icon {
    background: #edf7f1;
    color: var(--acr-success);
}

.acreports-action-icon .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
}

.acreports-action-body {
    min-width: 0;
}

.acreports-action-body h4 {
    margin: 0 0 7px;
    color: var(--acr-text);
    font-size: 15px;
    line-height: 1.3;
}

.acreports-action-body p {
    margin: 0;
    color: var(--acr-muted);
    line-height: 1.45;
}

.acreports-action-reason {
    display: block;
    margin-top: 8px;
    color: var(--acr-text);
    font-size: 12px;
    font-weight: 650;
}

.acreports-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.acreports-action-button,
.acreports-action-inline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--acr-border-strong);
    border-radius: 999px;
    background: #fff;
    color: var(--acr-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
}

.acreports-action-button:hover,
.acreports-action-inline-button:hover {
    border-color: var(--acr-primary);
    color: var(--acr-primary-dark);
    background: var(--acr-primary-soft);
}

.acreports-action-button-primary {
    border-color: var(--acr-primary);
    background: var(--acr-primary);
    color: #fff;
}

.acreports-action-button-primary:hover {
    border-color: var(--acr-primary-dark);
    background: var(--acr-primary-dark);
    color: #fff;
}

.acreports-action-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.acreports-existing-coupon {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    width: 100%;
    padding: 10px;
    border: 1px solid #badbcc;
    border-radius: 8px;
    background: #edf7f1;
}

.acreports-existing-coupon-label {
    color: var(--acr-success);
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
}

.acreports-existing-coupon-renewable {
    border-color: #f0d7a2;
    background: #fff8e5;
}

.acreports-existing-coupon-renewable .acreports-existing-coupon-label {
    color: var(--acr-warning);
}

.acreports-existing-coupon code {
    padding: 4px 7px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--acr-text);
    font-size: 12px;
}

.acreports-existing-coupon-meta {
    flex-basis: 100%;
    color: var(--acr-muted);
    font-size: 12px;
    line-height: 1.35;
}

.acreports-existing-coupon-renewal {
    flex-basis: 100%;
    color: var(--acr-warning);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.acreports-action-email-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #dfe8ea;
    border-radius: 8px;
    background: rgba(248, 250, 249, 0.92);
}

.acreports-action-email-form[hidden] {
    display: none;
}

.acreports-action-email-form label {
    display: grid;
    gap: 5px;
    margin: 0;
}

.acreports-action-email-form label span,
.acreports-action-email-footer span {
    color: var(--acr-muted);
    font-size: 12px;
    font-weight: 650;
}

.acreports-action-email-form input,
.acreports-action-email-form textarea {
    width: 100%;
    max-width: none;
    min-height: 36px;
    margin: 0;
    border-color: var(--acr-border);
    border-radius: 7px;
    font-size: 13px;
}

.acreports-action-email-form textarea {
    min-height: 150px;
    resize: vertical;
}

.acreports-action-email-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
}

.acreports-action-result {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
}

.acreports-action-result.is-success,
.acreports-action-result.is-error {
    display: flex;
}

.acreports-action-result.is-success {
    border: 1px solid #badbcc;
    background: #edf7f1;
    color: var(--acr-success);
}

.acreports-action-result.is-error {
    border: 1px solid #efc2c6;
    background: #fdecee;
    color: var(--acr-danger);
}

.acreports-action-result code {
    padding: 3px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--acr-text);
    font-size: 12px;
}

.acreports-action-result a {
    font-weight: 650;
}

.tabs,
.product-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 20px 0 0;
    padding: 7px;
    border: 1px solid var(--acr-border);
    border-radius: 10px;
    background: #f0f4f4;
}

.acreports-tab,
.product-tabs .product-tab-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    margin: 0;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--acr-muted);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.acreports-tab:hover,
.product-tabs .product-tab-link:hover {
    color: var(--acr-primary-dark);
    background: var(--acr-primary-soft);
}

.acreports-tab.active,
.product-tabs .product-tab-link.current {
    border-color: #b5cacd;
    background: #fff;
    color: var(--acr-text);
    box-shadow: 0 1px 3px rgba(29, 35, 39, 0.1);
}

.tab-content {
    display: none;
    padding: 16px 0 0;
}

.acreports-tab-content-active {
    display: block;
}

.product-tab-content.current {
    padding: 16px 0 0;
}

.product-tab-content {
    display: none;
}

.product-tab-content.current {
    display: block;
}

.report-section > table,
.product-tab-content table,
.tab-content > .report-section table {
    margin-top: 20px;
    border: 1px solid #d5e0e2;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--acr-shadow-soft);
}

.order-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0 6px 6px 0;
    padding: 5px 9px;
    border: 1px solid #d5dcde;
    border-radius: 999px;
    background: #f7f9f9;
    color: var(--acr-text) !important;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    text-shadow: none;
}

.order-status.completed,
.order-status.processing {
    border-color: #badbcc;
    background: #edf7f1;
    color: #1f6f43 !important;
}

.order-status.pending,
.order-status.on-hold {
    border-color: #f0d7a2;
    background: #fff8e5;
    color: var(--acr-warning) !important;
}

.order-status.failed,
.order-status.refunded,
.order-status.cancelled {
    border-color: #f1b8b8;
    background: #fcf0f1;
    color: var(--acr-danger) !important;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--acr-muted);
    font-size: 13px;
}

.pagination-link,
.page-numbers {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid var(--acr-border-strong);
    border-radius: 999px;
    background: var(--acr-surface);
    color: var(--acr-text);
    text-decoration: none;
}

.pagination-link:hover,
.page-numbers:hover,
.page-numbers.current {
    border-color: var(--acr-primary);
    color: var(--acr-primary-dark);
    background: var(--acr-primary-soft);
}

.ui-autocomplete {
    z-index: 100000;
    max-width: 520px;
    max-height: 320px;
    overflow-y: auto;
    padding: 4px;
    border: 1px solid var(--acr-border-strong);
    border-radius: 8px;
    background: var(--acr-surface);
    box-shadow: 0 14px 36px rgba(29, 35, 39, 0.16);
}

.ui-autocomplete .ui-menu-item-wrapper {
    padding: 8px 10px;
    border-radius: 4px;
    color: var(--acr-text);
    font-size: 13px;
    line-height: 1.35;
}

.ui-autocomplete .ui-state-active,
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
    border: 0;
    background: var(--acr-primary-soft);
    color: var(--acr-primary-dark);
}

.map-location img,
#wc-customers-table,
#wc-customers-pagination,
#wc-customers-search-form,
#customer_id {
    max-width: 100%;
}

/* Current cart */

.acreports-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 8px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--acr-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.acreports-tab.active .acreports-tab-count {
    background: var(--acr-primary-dark);
}

.stat-box .acreports-stat-sub {
    display: block;
    margin-top: 4px;
    color: var(--acr-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.acreports-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: start;
    gap: 14px;
    margin: 18px 0;
    max-width: 1280px;
}

.acreports-cart-side {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.acreports-cart-layout .report-section,
.acreports-cart-side .report-section {
    margin: 0;
}

.acreports-cart-items {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.acreports-cart-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 12px 0;
    border-top: 1px solid #edf1f2;
}

.acreports-cart-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.acreports-cart-item:last-child {
    padding-bottom: 0;
}

.acreports-cart-item-missing {
    opacity: 0.75;
}

.acreports-cart-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border: 1px solid #e3eaec;
    border-radius: 8px;
    background: var(--acr-surface-soft);
}

.acreports-cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.acreports-cart-thumb .dashicons {
    color: #b9c3c7;
}

.acreports-cart-item-main {
    min-width: 0;
}

.acreports-cart-item-main h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
}

.acreports-cart-item-variation {
    display: block;
    margin-top: 3px;
    color: var(--acr-muted);
    font-size: 12px;
    line-height: 1.35;
}

.acreports-cart-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-top: 7px;
    color: var(--acr-muted);
    font-size: 12px;
}

.acreports-cart-item-qty {
    display: grid;
    justify-items: center;
    gap: 2px;
    min-width: 46px;
    padding: 6px 10px;
    border: 1px solid #e3eaec;
    border-radius: 8px;
    background: var(--acr-surface-soft);
}

.acreports-cart-item-qty span {
    color: var(--acr-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.acreports-cart-item-qty strong {
    font-size: 15px;
    line-height: 1.2;
}

.acreports-cart-item-price {
    display: grid;
    justify-items: end;
    gap: 2px;
    text-align: right;
    white-space: nowrap;
}

.acreports-cart-item-price strong {
    font-size: 15px;
    line-height: 1.25;
}

.acreports-cart-item-price span {
    color: var(--acr-muted);
    font-size: 12px;
}

.acreports-cart-item-was {
    text-decoration: line-through;
}

.acreports-stock-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border: 1px solid #d5dcde;
    border-radius: 999px;
    background: #f7f9f9;
    color: var(--acr-text);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.5;
}

.acreports-stock-badge-instock {
    border-color: #badbcc;
    background: #edf7f1;
    color: #1f6f43;
}

.acreports-stock-badge-onbackorder {
    border-color: #f0d7a2;
    background: #fff8e5;
    color: var(--acr-warning);
}

.acreports-stock-badge-outofstock {
    border-color: #f1b8b8;
    background: #fcf0f1;
    color: var(--acr-danger);
}

.acreports-cart-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid #d5dcde;
    border-radius: 999px;
    background: #f7f9f9;
    color: var(--acr-text);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.5;
    white-space: nowrap;
}

.acreports-cart-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
}

.acreports-cart-status-active {
    border-color: #badbcc;
    background: #edf7f1;
    color: #1f6f43;
}

.acreports-cart-status-idle {
    border-color: #f0d7a2;
    background: #fff8e5;
    color: var(--acr-warning);
}

.acreports-cart-status-abandoned {
    border-color: #f1b8b8;
    background: #fcf0f1;
    color: var(--acr-danger);
}

.acreports-cart-total-row dt,
.acreports-cart-total-row dd {
    font-size: 15px;
}

.acreports-cart-total-row dd {
    color: var(--acr-primary-dark);
    font-weight: 700;
}

.acreports-definition-list dd.acreports-cart-discount {
    color: var(--acr-success);
}

.acreports-cart-coupons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #edf1f2;
}

.acreports-cart-coupons > span:first-child {
    margin-right: 2px;
    color: var(--acr-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.acreports-cart-coupon {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border: 1px dashed #b5cacd;
    border-radius: 999px;
    background: var(--acr-primary-soft);
    color: var(--acr-primary-dark);
    font-family: Menlo, Consolas, monospace;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

a.acreports-cart-coupon:hover {
    border-style: solid;
    color: var(--acr-primary-dark);
}

.acreports-cart-empty {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 18px;
    padding: 22px;
}

.acreports-cart-empty .dashicons {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--acr-primary-soft);
    color: var(--acr-primary);
    font-size: 24px;
}

.acreports-cart-empty h3 {
    margin: 0 0 6px;
}

.acreports-cart-empty p {
    max-width: 620px;
    margin: 0;
    color: var(--acr-muted);
    line-height: 1.45;
}

@media screen and (min-width: 783px) {
    #report_results .wp-list-table .column-order_id {
        width: 10%;
    }

    #report_results .wp-list-table .column-date,
    #report_results .wp-list-table .column-time {
        width: 12.5%;
    }
}

@media screen and (max-width: 1120px) {
    #customer-report-form,
    .customer-profile-section,
    .acreports-dashboard-grid,
    .acreports-dashboard-grid-three,
    .acreports-cart-layout {
        grid-template-columns: 1fr;
    }

    .acreports-cart-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .acreports-opportunity-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .acreports-report-filters,
    .pro-feature {
        justify-content: flex-start;
    }

    .acreports-customers-filters input[type="search"] {
        flex-basis: 100%;
    }

    .acreports-page-header::after {
        opacity: 0.45;
    }
}

@media screen and (max-width: 782px) {
    .acreports-page {
        margin-right: 10px;
    }

    .acreports-page-header,
    .customer-profile-section > .right-section {
        grid-template-columns: 1fr;
    }

    .acreports-page-header {
        display: grid;
        align-items: start;
        padding: 18px;
    }

    .acreports-page-header h1 {
        font-size: 23px;
    }

    .acreports-page-actions {
        justify-content: flex-start;
    }

    #customer-report-form {
        padding: 12px;
    }

    .acreports-report-filters,
    .pro-feature,
    #acr_date_picker {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    #date_range,
    #status,
    #start_date,
    #end_date {
        width: 100%;
    }

    .acreports-customers-filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .acreports-customers-filters input[type="search"],
    .acreports-customers-filters select[name="orderby"] {
        grid-column: 1 / -1;
    }

    .report-section[style*="display: flex"] {
        grid-template-columns: 1fr;
    }

    .acreports-stat-grid {
        grid-template-columns: 1fr;
    }

    .left-wrapper {
        align-items: flex-start;
    }

    .profile-image {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }

    .tabs,
    .product-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 1px;
    }

    .acreports-tab,
    .product-tabs .product-tab-link {
        white-space: nowrap;
    }

    .report-section,
    .tab-content,
    .product-tab-content.current {
        overflow-x: auto;
    }

    .acreports-action-list {
        grid-template-columns: 1fr;
    }

    .acreports-recommended-actions-heading {
        display: grid;
        gap: 10px;
    }

    .acreports-health-layout,
    .acreports-opportunity-grid {
        grid-template-columns: 1fr;
    }

    .acreports-chart {
        min-width: 560px;
    }

    .acreports-definition-list div {
        display: grid;
        gap: 4px;
    }

    .acreports-definition-list dd {
        text-align: left;
    }

    .acreports-cart-side {
        grid-template-columns: 1fr;
    }

    /* The price column drops under the product so the row never needs to scroll. */
    .acreports-cart-item {
        grid-template-columns: 52px minmax(0, 1fr) auto;
        row-gap: 10px;
    }

    .acreports-cart-item-price {
        grid-column: 2 / -1;
        justify-items: start;
        text-align: left;
    }

    .acreports-cart-empty {
        display: grid;
        gap: 12px;
    }

    .acreports-cart-total-row {
        display: flex !important;
        align-items: baseline;
        justify-content: space-between;
    }
}

@media screen and (max-width: 520px) {
    .acreports-customers-filters {
        grid-template-columns: 1fr;
    }

    .acreports-customers-filters input[type="search"],
    .acreports-customers-filters select[name="orderby"] {
        grid-column: auto;
    }

    .left-wrapper {
        display: grid;
    }
}

.acreports-inline-loader {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin: 0 8px -4px 0;
}

.acreports-table-action-cell {
    text-align: right !important;
}

/* Customers list filters: one row on wide screens. Narrower screens wrap, and the two buttons always wrap together. */

.acreports-customers-filters {
	flex-wrap: nowrap;
}

.acreports-customers-filters input[type="search"] {
	flex: 1 1 200px;
	min-width: 140px;
}

.acreports-customers-filters input[type="number"] {
	flex: 0 1 105px;
	min-width: 72px;
}

.acreports-customers-filters select {
	min-width: 105px;
}

.acreports-customers-filter-actions {
	display: flex;
	flex: 0 0 auto;
	gap: 8px;
}

@media screen and (max-width: 1279px) {

	.acreports-customers-filters {
		flex-wrap: wrap;
	}

	.acreports-customers-filters input[type="search"] {
		flex-basis: 100%;
	}
}

@media screen and (max-width: 782px) {

	.acreports-customers-filter-actions {
		grid-column: 1 / -1;
	}
}

/* Customers list: segments, bulk actions and export (PRO) */

#customers-table .check-column {
	width: 36px;
	padding: 11px 0 11px 12px;
}

#customers-table .check-column input {
	margin: 0;
}

/* Wide enough for the longest badge, with the health score stacked under it. */
#customers-table .column-customer_segment {
	width: 150px;
}

.acreports-segment-cell {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

#customers-table .tablenav .bulkactions {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0;
}

.acreports-health-score {
	padding-left: 2px;
	color: var(--acr-muted);
	font-size: 12px;
	font-weight: 600;
}

.acreports-segment-badge.acreports-segment-vip {
	border-color: #f0d7a2;
	background: #fff8e5;
	color: #8a5a0b;
}

.acreports-segment-badge.acreports-segment-new {
	border-color: #bcd3ea;
	background: #eef5fc;
	color: #2d5f8f;
}

.acreports-segment-badge.acreports-segment-at-risk,
.acreports-segment-badge.acreports-segment-discount-driven {
	border-color: #f2cfa6;
	background: #fff3e6;
	color: var(--acr-warning);
}

.acreports-segment-badge.acreports-segment-dormant,
.acreports-segment-badge.acreports-segment-no-orders {
	border-color: #d5dcde;
	background: #f7f9f9;
	color: var(--acr-muted);
}

.acreports-segment-badge.acreports-segment-needs-review {
	border-color: #f1b8b8;
	background: #fcf0f1;
	color: var(--acr-danger);
}

.acreports-section-header .button.disabled {
	cursor: default;
}

.acreports-bulk-notice {
	max-width: 1280px;
	margin: 0 0 12px;
}

.acreports-bulk-notice-list {
	margin: 0 0 10px 18px;
	list-style: disc;
}

.acreports-bulk-notice-list code {
	user-select: all;
}

/* Subscriptions tab (PRO) */

.acreports-subscription-status {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	border: 1px solid #d5dcde;
	border-radius: 999px;
	background: #f7f9f9;
	color: var(--acr-muted);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
	white-space: nowrap;
}

.acreports-subscription-status-active {
	border-color: #badbcc;
	background: #edf7f1;
	color: #1f6f43;
}

.acreports-subscription-status-on-hold,
.acreports-subscription-status-pending,
.acreports-subscription-status-pending-cancel {
	border-color: #f0d7a2;
	background: #fff8e5;
	color: var(--acr-warning);
}

.acreports-subscription-status-cancelled {
	border-color: #f1b8b8;
	background: #fcf0f1;
	color: var(--acr-danger);
}

.acreports-subscriptions .acreports-stat-sub {
	display: block;
	color: var(--acr-muted);
	font-size: 12px;
}

.acreports-subscriptions .acreports-subscription-failed {
	color: var(--acr-danger);
}
