/* Setup tab: title row, filter bar, table and pagination footer. */

.integrazo_fwcrm_form-setup-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    text-align: left;
}

/* Page heading: purple bar + title, used at the top of every tab. */
.integrazo_fwcrm_form-page-heading-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.integrazo_fwcrm_form-page-heading-bar {
    width: 4px;
    height: 22px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--integrazo_fwcrm_form-primary-grad-start, #8b6cf8), var(--integrazo_fwcrm_form-primary-grad-end, #6a4cf0));
    flex-shrink: 0;
}

.integrazo_fwcrm_form-page-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
    margin: 0 0 4px;
}

.integrazo_fwcrm_form-page-subtitle {
    font-size: 13.5px;
    color: var(--integrazo_fwcrm_form-body-text, #4a4f66);
    margin: 0;
}

/* Smaller secondary heading used inside a sub-section (e.g. Connections). */
.integrazo_fwcrm_form-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
    margin: 0 0 2px;
}

.integrazo_fwcrm_form-section-subtitle {
    font-size: 13px;
    color: var(--integrazo_fwcrm_form-muted-text, #8a8fa6);
    margin: 0;
    max-width: 620px;
}

.integrazo_fwcrm_form-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 18px;
    border: none;
    border-radius: var(--integrazo_fwcrm_form-radius-sm, 8px);
    background: linear-gradient(90deg, var(--integrazo_fwcrm_form-primary-grad-start, #8b6cf8), var(--integrazo_fwcrm_form-primary-grad-end, #6a4cf0));
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s ease;
}

.integrazo_fwcrm_form-btn-primary:hover {
    opacity: 0.92;
    color: #fff;
}

/* ── Empty state ── */
.integrazo_fwcrm_form-setup-empty-state {
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
    border: 1px solid var(--integrazo_fwcrm_form-border-100, #eceef5);
    border-radius: var(--integrazo_fwcrm_form-radius-md, 14px);
    padding: 48px 24px;
    text-align: center;
    color: var(--integrazo_fwcrm_form-muted-text, #8a8fa6);
    font-size: 14px;
}

/* ── Generic form controls reused across the admin UI ──
   Scoped under .integrazo_fwcrm_form-app: wp-admin's own `.wp-core-ui select` rule
   (forms.css) otherwise beats a plain `.integrazo_fwcrm_form-select` class on
   specificity alone and the browser-default look wins. */
.integrazo_fwcrm_form-app .integrazo_fwcrm_form-input,
.integrazo_fwcrm_form-app .integrazo_fwcrm_form-select {
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--integrazo_fwcrm_form-border-200, #e4e6ef);
    border-radius: var(--integrazo_fwcrm_form-radius-sm, 8px);
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
    font-size: 13px;
    box-shadow: none;
}

.integrazo_fwcrm_form-app .integrazo_fwcrm_form-input:focus,
.integrazo_fwcrm_form-app .integrazo_fwcrm_form-select:focus {
    border-color: var(--integrazo_fwcrm_form-primary-grad-start, #8b6cf8);
    box-shadow: 0 0 0 3px var(--integrazo_fwcrm_form-lavender-100, #ebe5ff);
    outline: none;
}

.integrazo_fwcrm_form-app .integrazo_fwcrm_form-select-small {
    height: 32px;
    padding: 0 8px;
}

/* Search input with a leading icon. */
.integrazo_fwcrm_form-search-input-wrap {
    position: relative;
}

.integrazo_fwcrm_form-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    color: var(--integrazo_fwcrm_form-muted-text-2, #9aa0b4);
    pointer-events: none;
}

.integrazo_fwcrm_form-search-input-wrap .integrazo_fwcrm_form-input {
    width: 100%;
    padding-left: 36px;
    background: var(--integrazo_fwcrm_form-border-300, #f8f9fc);
}

.integrazo_fwcrm_form-search-input-wrap .integrazo_fwcrm_form-input:focus {
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
}

/* ── Custom dropdown (button + popover), replaces a plain <select>
   wherever the selected value isn't submitted anywhere — e.g. the
   Setup table's service/sort filters. ── */
.integrazo_fwcrm_form-dropdown {
    position: relative;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
}

.integrazo_fwcrm_form-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    min-width: 130px;
    max-width: 220px;
    padding: 0 10px 0 12px;
    border: 1px solid var(--integrazo_fwcrm_form-border-200, #e4e6ef);
    border-radius: var(--integrazo_fwcrm_form-radius-sm, 8px);
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
    font-size: 13px;
    font-weight: 600;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
    cursor: pointer;
}

.integrazo_fwcrm_form-dropdown-btn:hover {
    border-color: var(--integrazo_fwcrm_form-lavender-border-300, #c9bdfb);
}

.integrazo_fwcrm_form-dropdown.integrazo_fwcrm_form-dropdown-open .integrazo_fwcrm_form-dropdown-btn {
    border-color: var(--integrazo_fwcrm_form-primary-grad-start, #8b6cf8);
    box-shadow: 0 0 0 3px var(--integrazo_fwcrm_form-lavender-100, #ebe5ff);
}

.integrazo_fwcrm_form-dropdown-btn-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    white-space: nowrap;
}

.integrazo_fwcrm_form-dropdown-chevron {
    display: flex;
    color: var(--integrazo_fwcrm_form-muted-text, #8a8fa6);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.integrazo_fwcrm_form-dropdown-open .integrazo_fwcrm_form-dropdown-chevron {
    transform: rotate(180deg);
}

.integrazo_fwcrm_form-dropdown-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 100%;
    width: max-content;
    max-width: 320px;
    max-height: 280px;
    overflow-y: auto;
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
    border: 1px solid var(--integrazo_fwcrm_form-lavender-border-200, #e3dcfc);
    border-radius: var(--integrazo_fwcrm_form-radius-sm, 8px);
    box-shadow: var(--integrazo_fwcrm_form-shadow-menu, 0 18px 40px -12px rgba(30, 30, 70, .28));
    padding: 6px;
    z-index: 100;
}

.integrazo_fwcrm_form-dropdown-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: var(--integrazo_fwcrm_form-radius-sm, 8px);
    background: none;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    white-space: normal;
    overflow-wrap: anywhere;
}

.integrazo_fwcrm_form-dropdown-option:hover {
    background: var(--integrazo_fwcrm_form-lavender-300, #f5f2ff);
}

.integrazo_fwcrm_form-dropdown-option.is-selected {
    font-weight: 600;
    background: var(--integrazo_fwcrm_form-lavender-200, #f1edff);
}

.integrazo_fwcrm_form-dropdown-option span:first-child {
    flex: 1;
    min-width: 0;
}

.integrazo_fwcrm_form-dropdown-check {
    display: none;
    color: var(--integrazo_fwcrm_form-primary-grad-end, #6a4cf0);
    flex-shrink: 0;
}

.integrazo_fwcrm_form-dropdown-option.is-selected .integrazo_fwcrm_form-dropdown-check {
    display: flex;
}

/* ── Filter bar ── */
.integrazo_fwcrm_form-setup-filterbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
    border: 1px solid var(--integrazo_fwcrm_form-border-100, #eceef5);
    border-radius: var(--integrazo_fwcrm_form-radius-md, 14px);
    box-shadow: var(--integrazo_fwcrm_form-shadow-card, 0 4px 16px rgba(20, 22, 50, .04));
    padding: 14px 16px;
    margin-bottom: 16px;
}

.integrazo_fwcrm_form-setup-search {
    flex: 1 1 220px;
    min-width: 200px;
}

/* Keep the filter bar on one row on wide screens: the search box and the dropdowns shrink (long values show an ellipsis); it wraps only on narrow screens. */
@media (min-width: 1100px) {
    .integrazo_fwcrm_form-setup-filterbar {
        flex-wrap: nowrap;
    }

    .integrazo_fwcrm_form-setup-filterbar .integrazo_fwcrm_form-setup-search {
        flex: 1 1 120px;
        min-width: 120px;
    }

    .integrazo_fwcrm_form-setup-filterbar .integrazo_fwcrm_form-setup-status-filters {
        flex-wrap: nowrap;
        flex-shrink: 0;
    }

    .integrazo_fwcrm_form-setup-filterbar .integrazo_fwcrm_form-dropdown {
        flex: 0 1 auto;
        min-width: 0;
    }

    .integrazo_fwcrm_form-setup-filterbar .integrazo_fwcrm_form-dropdown-btn {
        min-width: 0;
        width: 100%;
    }
}

.integrazo_fwcrm_form-setup-search .integrazo_fwcrm_form-input {
    width: 100%;
}

.integrazo_fwcrm_form-setup-status-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.integrazo_fwcrm_form-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--integrazo_fwcrm_form-border-200, #e4e6ef);
    border-radius: var(--integrazo_fwcrm_form-radius-pill, 999px);
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
    color: var(--integrazo_fwcrm_form-body-text, #4a4f66);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.integrazo_fwcrm_form-status-pill:hover {
    border-color: var(--integrazo_fwcrm_form-lavender-border-300, #c9bdfb);
}

.integrazo_fwcrm_form-status-pill[aria-pressed="true"] {
    background: var(--integrazo_fwcrm_form-lavender-100, #ebe5ff);
    border-color: var(--integrazo_fwcrm_form-lavender-border-100, #d9cffb);
    color: var(--integrazo_fwcrm_form-primary-text, #5b3fe0);
}

.integrazo_fwcrm_form-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.integrazo_fwcrm_form-status-dot-active {
    background: var(--integrazo_fwcrm_form-success, #10b981);
}

.integrazo_fwcrm_form-status-dot-paused {
    background: var(--integrazo_fwcrm_form-muted-text-2, #9aa0b4);
}

.integrazo_fwcrm_form-status-pill-count {
    background: var(--integrazo_fwcrm_form-border-300, #f1f2f7);
    border-radius: var(--integrazo_fwcrm_form-radius-pill, 999px);
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
}

.integrazo_fwcrm_form-status-pill[aria-pressed="true"] .integrazo_fwcrm_form-status-pill-count {
    background: #fff;
}

/* ── Table card ──
   overflow:hidden lives on .integrazo_fwcrm_form-setup-table-scroll (just the <table>),
   not on the card itself — otherwise it also clips the footer's
   upward-opening "rows per page" dropdown, which needs to escape above
   the card. */
.integrazo_fwcrm_form-setup-table-card {
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
    border: 1px solid var(--integrazo_fwcrm_form-border-100, #eceef5);
    border-radius: var(--integrazo_fwcrm_form-radius-md, 14px);
    box-shadow: var(--integrazo_fwcrm_form-shadow-card, 0 4px 16px rgba(20, 22, 50, .04));
}

.integrazo_fwcrm_form-setup-table-scroll {
    overflow: hidden;
    border-radius: var(--integrazo_fwcrm_form-radius-md, 14px) var(--integrazo_fwcrm_form-radius-md, 14px) 0 0;
}

.integrazo_fwcrm_form-setup-table-list {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.integrazo_fwcrm_form-setup-table-list thead th {
    background: var(--integrazo_fwcrm_form-lavender-100, #ebe5ff);
    color: var(--integrazo_fwcrm_form-primary-text-hover, #4b31c9);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--integrazo_fwcrm_form-lavender-border-100, #d9cffb);
    white-space: nowrap;
}

.integrazo_fwcrm_form-setup-table-list tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--integrazo_fwcrm_form-border-300, #f1f2f7);
    color: var(--integrazo_fwcrm_form-body-text, #4a4f66);
    vertical-align: middle;
}

.integrazo_fwcrm_form-setup-table-list tbody tr:last-child td {
    border-bottom: none;
}

.integrazo_fwcrm_form-col-sno {
    width: 56px;
}

.integrazo_fwcrm_form-col-checkbox {
    width: 36px;
}

.integrazo_fwcrm_form-col-actions {
    white-space: nowrap;
    text-align: right;
}

/* ── Bulk bar ── */
.integrazo_fwcrm_form-bulkbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 4px;
    margin-bottom: 12px;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
}

.integrazo_fwcrm_form-bulkbar-count {
    font-size: 13px;
    font-weight: 700;
    margin-right: 6px;
}

.integrazo_fwcrm_form-bulkbar-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--integrazo_fwcrm_form-border-200, #e4e6ef);
    border-radius: var(--integrazo_fwcrm_form-radius-sm, 8px);
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}

.integrazo_fwcrm_form-bulkbar-btn:hover {
    border-color: var(--integrazo_fwcrm_form-lavender-border-300, #c9bdfb);
    color: var(--integrazo_fwcrm_form-primary-grad-end, #6a4cf0);
}

.integrazo_fwcrm_form-bulkbar-btn-danger {
    border-color: #f3d0d0;
    color: var(--integrazo_fwcrm_form-error, #e0393e);
}

.integrazo_fwcrm_form-bulkbar-btn-danger:hover {
    background: var(--integrazo_fwcrm_form-error-bg, #fff5f5);
    color: var(--integrazo_fwcrm_form-error, #e0393e);
    border-color: #f3d0d0;
}

/* While a bulk action runs: every bulk button (and Clear) is disabled and blocked. */
.integrazo_fwcrm_form-bulkbar-btn:disabled,
.integrazo_fwcrm_form-bulkbar-clear:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.integrazo_fwcrm_form-bulkbar-btn:disabled:hover {
    border-color: var(--integrazo_fwcrm_form-border-200, #e4e6ef);
    color: inherit;
    background: inherit;
}

.integrazo_fwcrm_form-bulkbar-btn-danger:disabled:hover {
    border-color: #f3d0d0;
    color: var(--integrazo_fwcrm_form-error, #e0393e);
}

.integrazo_fwcrm_form-bulkbar-btn:disabled .integrazo_fwcrm_form-spinner {
    opacity: 1;
}

/* The clicked bulk button while its request runs: a spinner before the text (it takes the place of the status dot). */
.integrazo_fwcrm_form-bulkbar-btn-loading {
    opacity: .85;
    cursor: progress;
}

.integrazo_fwcrm_form-bulkbar-btn-loading .integrazo_fwcrm_form-status-dot {
    display: none;
}

.integrazo_fwcrm_form-bulkbar-btn-loading::before {
    content: "";
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    box-sizing: border-box;
    border: 2px solid #c9bdfb;
    border-top-color: #5b3fe0;
    border-radius: 50%;
    animation: integrazo_fwcrm_form-bulk-spin .7s linear infinite;
}

.integrazo_fwcrm_form-bulkbar-btn-danger.integrazo_fwcrm_form-bulkbar-btn-loading::before {
    border-color: #f3d0d0;
    border-top-color: #e0393e;
}

@keyframes integrazo_fwcrm_form-bulk-spin {
    to { transform: rotate(360deg); }
}

.integrazo_fwcrm_form-bulkbar-clear {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: var(--integrazo_fwcrm_form-radius-sm, 8px);
    background: transparent;
    color: var(--integrazo_fwcrm_form-muted-text, #8a8fa6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.integrazo_fwcrm_form-bulkbar-clear:hover {
    background: var(--integrazo_fwcrm_form-border-300, #f1f2f7);
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
}

.integrazo_fwcrm_form-setup-truncate {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

/* A table cell that truncates (the integration name) must stay a table cell: as an inline-block it sits higher than the rest of its row. */
td.integrazo_fwcrm_form-setup-truncate {
    display: table-cell;
    vertical-align: middle;
}

.integrazo_fwcrm_form-setup-no-items td {
    text-align: center;
    color: var(--integrazo_fwcrm_form-muted-text, #8a8fa6);
    padding: 32px 14px;
}

/* ── Form badge ── */
.integrazo_fwcrm_form-form-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.integrazo_fwcrm_form-form-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 1px solid var(--integrazo_fwcrm_form-border-100, #eceef5);
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
    flex-shrink: 0;
}

.integrazo_fwcrm_form-form-icon {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.integrazo_fwcrm_form-form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    border: 0.5px solid transparent;
    flex-shrink: 0;
}

.integrazo_fwcrm_form-form-badge-cf7 {
    background: #e3f2fd;
    color: #0d47a1;
    border-color: #90caf9;
}

.integrazo_fwcrm_form-form-badge-wpforms {
    background: #f1f8e9;
    color: #33691e;
    border-color: #aed581;
}

.integrazo_fwcrm_form-form-badge-formidable {
    background: #fbe9e7;
    color: #bf360c;
    border-color: #ffab91;
}

.integrazo_fwcrm_form-form-badge-gravity {
    background: #ede7f6;
    color: #311b92;
    border-color: #b39ddb;
}

.integrazo_fwcrm_form-form-badge-elementor {
    background: #fff8e1;
    color: #e65100;
    border-color: #ffcc80;
}

.integrazo_fwcrm_form-form-badge-other {
    background: #eceff1;
    color: #263238;
    border-color: #b0bec5;
}

/* ── Row actions ── */
.integrazo_fwcrm_form-setup-action-edit,
.integrazo_fwcrm_form-setup-action-delete {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 14px;
}

.integrazo_fwcrm_form-setup-action-edit {
    color: var(--integrazo_fwcrm_form-primary-text, #5b3fe0);
}

.integrazo_fwcrm_form-setup-action-edit:hover {
    color: var(--integrazo_fwcrm_form-primary-text-hover, #4b31c9);
}

.integrazo_fwcrm_form-setup-action-delete {
    color: var(--integrazo_fwcrm_form-error, #e0393e);
}

.integrazo_fwcrm_form-setup-action-delete:hover {
    color: var(--integrazo_fwcrm_form-error-dark, #d23339);
}

/* ── Row "more options" menu ── */
.integrazo_fwcrm_form-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.integrazo_fwcrm_form-row-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--integrazo_fwcrm_form-border-200, #e4e6ef);
    border-radius: var(--integrazo_fwcrm_form-radius-sm, 8px);
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
    color: var(--integrazo_fwcrm_form-muted-text, #8a8fa6);
    cursor: pointer;
}

.integrazo_fwcrm_form-row-menu-btn:hover,
.integrazo_fwcrm_form-row-menu-btn[aria-expanded="true"] {
    border-color: var(--integrazo_fwcrm_form-lavender-border-300, #c9bdfb);
    color: var(--integrazo_fwcrm_form-primary-grad-end, #6a4cf0);
    background: var(--integrazo_fwcrm_form-lavender-300, #f5f2ff);
}

/* Positioned via JS (fixed, next to the clicked "..." button) so it is
   never clipped by the table's own overflow:hidden scroll wrapper. */
.integrazo_fwcrm_form-row-menu-panel {
    position: fixed;
    min-width: 170px;
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
    border: 1px solid var(--integrazo_fwcrm_form-lavender-border-200, #e3dcfc);
    border-radius: var(--integrazo_fwcrm_form-radius-sm, 8px);
    box-shadow: var(--integrazo_fwcrm_form-shadow-menu, 0 18px 40px -12px rgba(30, 30, 70, .28));
    padding: 6px;
    z-index: 100010;
}

.integrazo_fwcrm_form-row-menu-panel[hidden] {
    display: none;
}

.integrazo_fwcrm_form-row-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: var(--integrazo_fwcrm_form-radius-sm, 8px);
    background: none;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.integrazo_fwcrm_form-row-menu-item:hover {
    background: var(--integrazo_fwcrm_form-lavender-300, #f5f2ff);
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
}

.integrazo_fwcrm_form-row-menu-item svg {
    flex-shrink: 0;
}

.integrazo_fwcrm_form-row-menu-item-danger {
    color: var(--integrazo_fwcrm_form-error, #e0393e);
}

.integrazo_fwcrm_form-row-menu-item-danger:hover {
    background: var(--integrazo_fwcrm_form-error-bg, #fdecec);
    color: var(--integrazo_fwcrm_form-error-dark, #d23339);
}

.integrazo_fwcrm_form-row-menu-divider {
    height: 1px;
    margin: 6px 4px;
    background: var(--integrazo_fwcrm_form-border-300, #f1f2f7);
}

/* ── Footer / pagination ── */
.integrazo_fwcrm_form-setup-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 20px;
    background: #faf9ff;
    border-top: 1px solid #efeafd;
    border-radius: 0 0 var(--integrazo_fwcrm_form-radius-md, 14px) var(--integrazo_fwcrm_form-radius-md, 14px);
    font-size: 12.5px;
    color: #7a6fa8;
}

.integrazo_fwcrm_form-setup-footer-left {
    white-space: nowrap;
}

.integrazo_fwcrm_form-setup-footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.integrazo_fwcrm_form-setup-pager {
    display: flex;
    align-items: center;
    gap: 4px;
}

.integrazo_fwcrm_form-pager-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--integrazo_fwcrm_form-border-200, #e4e6ef);
    border-radius: var(--integrazo_fwcrm_form-radius-sm, 8px);
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
    color: var(--integrazo_fwcrm_form-body-text, #4a4f66);
    cursor: pointer;
    line-height: 1;
}

.integrazo_fwcrm_form-pager-btn:hover:not(:disabled) {
    border-color: var(--integrazo_fwcrm_form-lavender-border-300, #c9bdfb);
    color: var(--integrazo_fwcrm_form-primary-grad-end, #6a4cf0);
}

.integrazo_fwcrm_form-pager-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.integrazo_fwcrm_form-pager-pages {
    display: inline-flex;
    gap: 4px;
}

.integrazo_fwcrm_form-pager-page {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid var(--integrazo_fwcrm_form-border-200, #e4e6ef);
    border-radius: var(--integrazo_fwcrm_form-radius-sm, 8px);
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 700;
}

.integrazo_fwcrm_form-pager-page:hover {
    border-color: var(--integrazo_fwcrm_form-lavender-border-300, #c9bdfb);
}

.integrazo_fwcrm_form-pager-page[aria-current="true"] {
    background: var(--integrazo_fwcrm_form-primary-grad-end, #6a4cf0);
    border-color: var(--integrazo_fwcrm_form-primary-grad-end, #6a4cf0);
    color: #fff;
}

/* Rows-per-page dropdown opens upward and is smaller than the filter-bar ones. */
.integrazo_fwcrm_form-dropdown-small .integrazo_fwcrm_form-dropdown-btn {
    height: 30px;
    min-width: 0;
    padding: 0 8px 0 10px;
    font-size: 12.5px;
    font-weight: 700;
}

.integrazo_fwcrm_form-dropdown-panel-up {
    top: auto;
    right: auto;
    left: 0;
    bottom: calc(100% + 6px);
}

@media (max-width: 782px) {
    .integrazo_fwcrm_form-setup-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .integrazo_fwcrm_form-setup-footer-right {
        margin-left: 0;
    }
}

/* Page titles (all tabs): reference size/bar. WP-admin's own h1 rules would
   otherwise override them, so they are pinned here. Weight 700 (not the
   design's 800): the design uses Plus Jakarta Sans, whereas the plugin uses
   the system font stack, where 800 renders noticeably heavier. */
.integrazo_fwcrm_form-app .integrazo_fwcrm_form-page-heading-row { gap: 10px; margin-bottom: 4px; }
.integrazo_fwcrm_form-app .integrazo_fwcrm_form-page-heading-bar {
    width: 4px;
    height: 22px;
    border-radius: 2px;
    background: linear-gradient(180deg, #8b6cf8, #6a4cf0);
    box-shadow: none;
}
.integrazo_fwcrm_form-app h1.integrazo_fwcrm_form-page-title {
    margin: 0;
    padding: 0;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #1b1d2a;
}
.integrazo_fwcrm_form-app .integrazo_fwcrm_form-page-subtitle { color: #8a8fa6; font-size: 13px; }

/* Empty Setup page: open hero (no box) + a 3-step "how it works" row */
.integrazo_fwcrm_form-empty-page { display: flex; flex-direction: column; align-items: center; gap: 44px; padding: 36px 0 24px; }
.integrazo_fwcrm_form-empty-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.integrazo_fwcrm_form-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: #efeafe;
    color: #6a4cf0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.integrazo_fwcrm_form-app h2.integrazo_fwcrm_form-empty-title { margin: 0; padding: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: #1b1d2a; }
.integrazo_fwcrm_form-empty-body { max-width: 460px; margin: 0; font-size: 14px; line-height: 1.6; color: #8a8fa6; }
.integrazo_fwcrm_form-empty-hero .integrazo_fwcrm_form-btn-primary {
    margin-top: 10px;
    height: 40px;
    padding: 0 20px;
    gap: 7px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8b6cf8, #6a4cf0);
    box-shadow: 0 8px 18px -8px rgba(106, 76, 240, .6);
}

.integrazo_fwcrm_form-empty-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 880px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}
.integrazo_fwcrm_form-empty-step {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 18px;
    background: #fff;
    border: 1px solid #eceef5;
    border-radius: 16px;
}
.integrazo_fwcrm_form-empty-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eceef5;
    color: #8a8fa6;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.integrazo_fwcrm_form-empty-step-title { font-size: 15px; font-weight: 700; color: #1b1d2a; }
.integrazo_fwcrm_form-empty-step-text { font-size: 13px; line-height: 1.5; color: #6b7085; }
.integrazo_fwcrm_form-empty-step-link { margin-top: 2px; font-size: 13px; font-weight: 700; color: #6a4cf0; text-decoration: none; }
.integrazo_fwcrm_form-empty-step-link:hover { color: #4b31c9; text-decoration: underline; }
.integrazo_fwcrm_form-empty-step-done { font-size: 13px; font-weight: 700; color: #0f9f6e; }

/* ── Row "Edit" as a button (design handoff: lavender pill with pencil icon) ── */
.integrazo_fwcrm_form-row-actions a.integrazo_fwcrm_form-setup-action-edit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    margin-left: 0;
    padding: 0 10px;
    box-sizing: border-box;
    border: 1px solid #e3dcfc;
    border-radius: 8px;
    background: #f5f2ff;
    color: #5b3fe0;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.integrazo_fwcrm_form-row-actions a.integrazo_fwcrm_form-setup-action-edit:hover,
.integrazo_fwcrm_form-row-actions a.integrazo_fwcrm_form-setup-action-edit:focus,
.integrazo_fwcrm_form-row-actions a.integrazo_fwcrm_form-setup-action-edit:active {
    background: #ebe5ff;
    border-color: #c9bdfb;
    color: #5b3fe0;
    text-decoration: none;
    outline: none;
    box-shadow: none;
}

.integrazo_fwcrm_form-row-actions a.integrazo_fwcrm_form-setup-action-edit:focus-visible-visible {
    box-shadow: 0 0 0 3px rgba(106, 76, 240, .3);
}

.integrazo_fwcrm_form-row-actions a.integrazo_fwcrm_form-setup-action-edit svg {
    flex-shrink: 0;
    display: block;
}

/* Reconnect button next to Edit (Connections table) */
.integrazo_fwcrm_form-row-actions .integrazo_fwcrm_form-row-reconnect-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 10px;
    box-sizing: border-box;
    border: 1px solid var(--integrazo_fwcrm_form-border-200, #e4e6ef);
    border-radius: 8px;
    background: #fff;
    color: #5b3fe0;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.integrazo_fwcrm_form-row-actions .integrazo_fwcrm_form-row-reconnect-btn:hover,
.integrazo_fwcrm_form-row-actions .integrazo_fwcrm_form-row-reconnect-btn:focus {
    background: #f5f2ff;
    border-color: #c9bdfb;
    color: #5b3fe0;
    outline: none;
    box-shadow: none;
}

.integrazo_fwcrm_form-row-actions .integrazo_fwcrm_form-row-reconnect-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(106, 76, 240, .3);
}

.integrazo_fwcrm_form-row-actions .integrazo_fwcrm_form-row-reconnect-btn svg {
    flex-shrink: 0;
    display: block;
}

.integrazo_fwcrm_form-row-actions .integrazo_fwcrm_form-row-reconnect-btn.integrazo_fwcrm_form-loading,
.integrazo_fwcrm_form-row-actions .integrazo_fwcrm_form-row-reconnect-btn:disabled {
    cursor: not-allowed;
    opacity: .8;
}

.integrazo_fwcrm_form-row-actions .integrazo_fwcrm_form-row-reconnect-btn.integrazo_fwcrm_form-loading svg {
    animation: integrazo_fwcrm_form-reconnect-spin .8s linear infinite;
}

@keyframes integrazo_fwcrm_form-reconnect-spin {
    to { transform: rotate(360deg); }
}

/* Tables whose Actions cell holds Edit / Reconnect / "..." buttons: centre the header and the buttons. */
.integrazo_fwcrm_form-setup-table-list:has(.integrazo_fwcrm_form-row-actions) th.integrazo_fwcrm_form-col-actions,
.integrazo_fwcrm_form-setup-table-list td.integrazo_fwcrm_form-col-actions:has(.integrazo_fwcrm_form-row-actions) {
    text-align: center;
}

.integrazo_fwcrm_form-setup-table-list td.integrazo_fwcrm_form-col-actions .integrazo_fwcrm_form-row-actions {
    justify-content: center;
}

/* Welcome steps: number + short tag on one line, roomier cards. */
.integrazo_fwcrm_form-empty-steps {
    max-width: 960px;
}

.integrazo_fwcrm_form-empty-step {
    gap: 10px;
    padding: 22px;
    box-shadow: 0 6px 18px -14px rgba(20, 22, 50, .25);
}

.integrazo_fwcrm_form-empty-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.integrazo_fwcrm_form-empty-step-tag {
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f2f6;
    color: #6b7085;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.integrazo_fwcrm_form-empty-step-title {
    font-size: 16.5px;
}

.integrazo_fwcrm_form-empty-step-text {
    font-size: 13.5px;
    line-height: 1.6;
}

/* Status cell: toggle + (when Pro features are in use without a valid license) a lock icon
   whose hover text explains why the toggle is locked. */
.integrazo_fwcrm_form-status-cell { display: inline-flex; align-items: center; gap: 8px; }
.integrazo_fwcrm_form-setup-toggle-switch.is-pro-locked { opacity: .55; }
.integrazo_fwcrm_form-setup-toggle-switch.is-pro-locked .integrazo_fwcrm_form-setup-toggle-slider { cursor: not-allowed; }
.integrazo_fwcrm_form-pro-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff4e5;
    color: #b45f06;
    cursor: help;
}
.integrazo_fwcrm_form-pro-lock:focus-visible { outline: 2px solid #6a4cf0; outline-offset: 2px; }
/* Same icon + tooltip, red: the integration's Zoho connection needs reconnecting. */
.integrazo_fwcrm_form-pro-lock.integrazo_fwcrm_form-reconnect-flag { background: #fdecec; color: #d93036; margin-left: 6px; vertical-align: middle; }
/* One shared tooltip, fixed so the table wrapper's overflow can't clip it. */
.integrazo_fwcrm_form-pro-tooltip {
    position: fixed;
    z-index: 100000;
    max-width: 280px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #1f2233;
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    box-shadow: 0 6px 20px rgba(20, 22, 40, .25);
    pointer-events: none;
}
.integrazo_fwcrm_form-pro-tooltip[hidden] { display: none; }
.integrazo_fwcrm_form-hidden { display: none; }

/* Status pills that are links (Logs), and a disabled pager arrow that is not a button. */
a.integrazo_fwcrm_form-status-pill {
    text-decoration: none;
    box-sizing: border-box;
}

/* Status pills are buttons: a mouse click leaves no focus line; the keyboard ring stays. */
.integrazo_fwcrm_form-app button.integrazo_fwcrm_form-status-pill:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

.integrazo_fwcrm_form-app button.integrazo_fwcrm_form-status-pill:focus-visible {
    outline: 2px solid var(--integrazo_fwcrm_form-primary-grad-start, #8b6cf8);
    outline-offset: 2px;
}

/* A click on a link pill / pager arrow must not leave wp-admin's blue focus line on it while the page loads; the keyboard
   focus ring below stays. */
.integrazo_fwcrm_form-app a.integrazo_fwcrm_form-status-pill:focus:not(:focus-visible),
.integrazo_fwcrm_form-app a.integrazo_fwcrm_form-status-pill:active,
.integrazo_fwcrm_form-app a.integrazo_fwcrm_form-pager-page:focus:not(:focus-visible),
.integrazo_fwcrm_form-app a.integrazo_fwcrm_form-pager-page:active,
.integrazo_fwcrm_form-app a.integrazo_fwcrm_form-pager-btn:focus:not(:focus-visible),
.integrazo_fwcrm_form-app a.integrazo_fwcrm_form-pager-btn:active {
    box-shadow: none;
    outline: none;
}

a.integrazo_fwcrm_form-status-pill:focus-visible,
a.integrazo_fwcrm_form-pager-page:focus-visible,
a.integrazo_fwcrm_form-pager-btn:focus-visible {
    outline: 2px solid var(--integrazo_fwcrm_form-primary-grad-start, #8b6cf8);
    outline-offset: 2px;
}

a.integrazo_fwcrm_form-pager-btn,
a.integrazo_fwcrm_form-pager-page {
    text-decoration: none;
}

.integrazo_fwcrm_form-pager-btn.is-disabled {
    opacity: .45;
    cursor: not-allowed;
}

.integrazo_fwcrm_form-pager-gap {
    padding: 0 4px;
    color: var(--integrazo_fwcrm_form-muted-text, #8a8fa6);
}
