.sue-row .card {
    max-width: 100% !important;
}

button .dashicons {
    margin-top: 3px;
}

.sue-user-email-datatable-wrapper {
    visibility: hidden;
}

label {
    font-weight: bold;
}

.sue-spinner {
    display: none;
}

.sue-dashboard .badge {
    font-size: 1.1em;
}
#wpcontent {
    background-color: #f0f0f1;
    min-height: calc(100vh - 32px);
}

.sue-dashboard .alert-secondary a {
    text-decoration: none;
}

/** pro features list section **/
.pro-features-list .col-sm-4 {
    display: flex;
}
.pro-features-list .col-sm-4 .card {
    max-width: unset;
    width: 100%;
}
.pro-features-list .card img {
    max-width: 100px;
}
.pro-features-list .card-body {
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    gap: 2rem;
}
@media (max-width: 1400px) {
    .pro-features-list .card-body {
        flex-wrap: wrap;
    }
}

.pro-features-list .card-body li {
    font-size: 13px;
}


/* </fs_premium_only> */
.delete-queue-email {
    cursor: pointer;
}
/* </fs_premium_only> */

/* display table tr row indicating that the row is busy, dont allow user to change input fields */
.sue-isbusy {
    opacity: 0.5;
    pointer-events: none;
}

/* when the row is busy, disable all input fields and buttons */
.sue-isbusy input,
.sue-isbusy select,
.sue-isbusy textarea,
.sue-isbusy button {
    /* pointer-events: none;
    opacity: 0.6; */
}
/** add class for table tr class actions **/
#external-list-edit-table-body td.actions{
    width:10%;
}

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

/** upgrade to pro banner **/
/** upgrade to pro banner **/
.sue-pro-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    color: #1e293b;
}

.sue-pro-header {
    text-align: center;
    margin-bottom: 48px;
}

.sue-pro-header h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #0f172a;
    margin: 0 0 10px;
}

.sue-pro-header p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

.sue-dashboard-section {
    margin-bottom: 32px;
}

.sue-dashboard-section-header {
    margin-bottom: 14px;
}

.sue-dashboard-section-header h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.sue-dashboard-section-header p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.sue-dashboard-section-actions {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.sue-pro-upgrade-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border-radius: 12px;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.sue-pro-upgrade-banner .sue-banner-text {
    color: #fff;
}

.sue-pro-upgrade-banner .sue-banner-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
}

.sue-pro-upgrade-banner .sue-banner-text p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

.sue-pro-upgrade-banner .btn-upgrade {
    display: inline-block;
    padding: 12px 32px;
    background: #22c55e;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.sue-pro-upgrade-banner .btn-upgrade:hover {
    background: #16a34a;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.sue-plain-text-heading {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin-bottom: 24px;
}

.sue-main-table {
    max-width: 768px;
    margin: 0 auto;
}

/* ── Feature grid ── */
.sue-pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.sue-feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 24px;
    transition: box-shadow 0.25s, border-color 0.25s;
    position: relative;
}

.sue-feature-card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
}

.sue-feature-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sue-feature-card-link:hover,
.sue-feature-card-link:focus {
    text-decoration: none;
    color: inherit;
}

.sue-feature-card-link:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.sue-feature-card .sue-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 22px;
}

.sue-feature-card .sue-card-icon.icon-blue    { background: #eff6ff; color: #3b82f6; }
.sue-feature-card .sue-card-icon.icon-green   { background: #f0fdf4; color: #22c55e; }
.sue-feature-card .sue-card-icon.icon-purple  { background: #faf5ff; color: #a855f7; }
.sue-feature-card .sue-card-icon.icon-amber   { background: #fffbeb; color: #f59e0b; }
.sue-feature-card .sue-card-icon.icon-rose    { background: #fff1f2; color: #f43f5e; }
.sue-feature-card .sue-card-icon.icon-cyan    { background: #ecfeff; color: #06b6d4; }
.sue-feature-card .sue-card-icon.icon-indigo  { background: #eef2ff; color: #6366f1; }
.sue-feature-card .sue-card-icon.icon-teal    { background: #f0fdfa; color: #14b8a6; }
.sue-feature-card .sue-card-icon.icon-orange  { background: #fff7ed; color: #f97316; }
.sue-feature-card .sue-card-icon.icon-slate   { background: #f1f5f9; color: #475569; }

.sue-feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #0f172a;
}

.sue-feature-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 12px;
}

.sue-feature-card p:last-child {
    margin-bottom: 0;
}

.sue-feature-card .sue-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.sue-feature-card .sue-tag-delivery   { background: #dbeafe; color: #1d4ed8; }
.sue-feature-card .sue-tag-content    { background: #fae8ff; color: #9333ea; }
.sue-feature-card .sue-tag-audience   { background: #dcfce7; color: #15803d; }

/* ── Premium-only screenshots section ── */
.sue-pro-screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.sue-screenshot-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.25s;
}

.sue-screenshot-card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.sue-screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #e2e8f0;
}

.sue-screenshot-card .sue-sc-body {
    padding: 20px;
}

.sue-screenshot-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #0f172a;
}

.sue-screenshot-card p {
    font-size: 13px;
    line-height: 1.55;
    color: #64748b;
    margin: 0;
}

.sue-screenshot-card .sue-sc-warning {
    font-size: 12px;
    color: #d97706;
    margin-top: 8px;
}

/* ── Dashboard ── */
.sue-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.sue-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow 0.25s, border-color 0.25s;
}

.sue-stat-card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
}

.sue-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.sue-stat-icon.icon-green  { background: #f0fdf4; color: #22c55e; }
.sue-stat-icon.icon-blue   { background: #eff6ff; color: #3b82f6; }
.sue-stat-icon.icon-amber  { background: #fffbeb; color: #f59e0b; }

.sue-stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sue-stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #64748b;
}

.sue-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

/* ── Support banner ── */
.sue-support-banner {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

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

.sue-support-item span {
    font-size: 20px;
    flex-shrink: 0;
}

.sue-support-item p {
    font-size: 14px;
    color: #475569;
    margin: 0;
}

.sue-support-item a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.sue-support-item a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ── About card (free users) ── */
.sue-about-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 24px;
    max-width: 480px;
}

.sue-about-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #0f172a;
}

.sue-about-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

.sue-about-card .sue-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 22px;
}

/* ── Donate / link cards ── */
.sue-link-cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 24px;
}

.sue-link-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: box-shadow 0.25s, border-color 0.25s;
    flex: 1;
    min-width: 200px;
}

.sue-link-card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
    text-decoration: none;
}

.sue-link-card-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.sue-link-card-text {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    flex: 1;
}

.sue-link-card-stars {
    color: #f59e0b;
    font-size: 16px;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.sue-link-card-arrow {
    color: #94a3b8;
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.sue-link-card:hover .sue-link-card-arrow {
    transform: translateX(3px);
    color: #3b82f6;
}

/* ── Inline notices (e.g. performance warning) ── */
.sue-notice {
    display: flex;
    gap: 16px;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.sue-notice-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
}

.sue-notice-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
}

.sue-notice-icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1.4;
}

.sue-notice-body {
    flex: 1;
    min-width: 0;
}

.sue-notice-title {
    font-size: 14px;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 6px;
}

.sue-notice-info .sue-notice-title {
    color: #1e40af;
}

.sue-notice-body p {
    font-size: 13px;
    line-height: 1.6;
    color: #78350f;
    margin: 0 0 6px;
}

.sue-notice-info .sue-notice-body p {
    color: #1e3a8a;
}

.sue-notice-body p:last-child {
    margin-bottom: 0;
}

.sue-notice-tip {
    color: #92400e !important;
    font-weight: 500;
}

/* ── Sidebar card (e.g. placeholder instructions) ── */
.sue-sidebar-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.sue-sidebar-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.sue-sidebar-card-icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1.4;
}

.sue-sidebar-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px;
}

.sue-sidebar-card-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* ── Placeholder list ── */
.sue-placeholder-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sue-placeholder-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.sue-placeholder-list code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    color: #1d4ed8;
    background: #eff6ff;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.sue-placeholder-list li span {
    font-size: 12px;
    color: #64748b;
    text-align: right;
}

/* ── Checkbox list (e.g. hide columns) ── */
.sue-checkbox-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sue-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: normal;
    font-size: 13px;
    color: #0f172a;
    transition: background 0.15s, border-color 0.15s;
    margin: 0;
}

.sue-checkbox-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.sue-checkbox-item input[type="checkbox"] {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    accent-color: #3b82f6;
    cursor: pointer;
    margin: 0;
}

.sue-checkbox-item span {
    flex: 1;
    line-height: 1;
}

/* ── Info notice variant ── */
.sue-notice-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
}

.sue-notice-info .sue-notice-title {
    color: #1e40af;
}

.sue-notice-info .sue-notice-body p {
    color: #1e3a8a;
}

/* ── Log cards (full-width) ── */
.sue-log-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}

.sue-log-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.sue-log-card-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.sue-log-card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    flex: 1;
}

.sue-log-card-action {
    margin-left: auto;
    flex-shrink: 0;
}

.sue-log-card-body {
    padding: 24px;
}

/* ── Form elements ── */
.sue-form-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sue-select {
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #0f172a;
    background: #fff;
    flex: 1;
    min-width: 200px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.sue-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.sue-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    color: #1e293b;
    background: #f8fafc;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.sue-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    background: #fff;
}

.sue-form-hint {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
    margin: 8px 0 0;
}

.sue-form-hint-warning { color: #92400e; }
.sue-form-hint-danger  { color: #991b1b; }

/* ── Buttons ── */
.sue-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s, opacity 0.15s;
    white-space: nowrap;
    line-height: 1;
}

.sue-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.sue-btn-primary {
    background: #3b82f6;
    color: #fff;
}

.sue-btn-primary:hover:not(:disabled) {
    background: #2563eb;
    color: #fff;
    text-decoration: none;
}

.sue-btn-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.sue-btn-danger:hover:not(:disabled) {
    background: #fecaca;
    color: #7f1d1d;
    text-decoration: none;
}

.sue-btn-muted {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.sue-btn-muted:hover:not(:disabled) {
    background: #e2e8f0;
    color: #1e293b;
    text-decoration: none;
}

.sue-table-actions {
    white-space: nowrap;
}

.sue-table-actions .sue-btn-icon {
    width: 30px;
    height: 30px;
    padding: 0;
    justify-content: center;
    vertical-align: middle;
}

.sue-table-actions .dashicons {
    margin-top: 0;
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
}

.sue-edit-actions-btn-container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
}

/* ── Progress bar ── */
.sue-progress {
    height: 10px;
    background: #f1f5f9;
    border-radius: 99px;
    overflow: hidden;
    margin-top: 14px;
}

.sue-progress-bar {
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s ease;
}

.sue-progress-success { background: #22c55e; }
.sue-progress-warning { background: #f59e0b; }
.sue-progress-danger  { background: #ef4444; }

/* ── Settings page layout ── */
.sue-settings-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1024px) {
    .sue-settings-layout {
        grid-template-columns: 1fr;
    }
}

.sue-settings-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Form field rows ── */
.sue-field-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px 32px;
    align-items: start;
    padding: 10px 0;
}

.sue-field-row-actions {
    padding-top: 24px;
}

@media (max-width: 768px) {
    .sue-field-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.sue-field-label label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

/* ── Text input ── */
.sue-input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #0f172a;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.sue-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.sue-input[type="password"] {
    letter-spacing: 2px;
}

/* ── Section dividers inside form ── */
.sue-settings-section {
    padding: 28px 0 12px;
    border-top: 2px solid #e2e8f0;
    margin-top: 12px;
    grid-column: 1 / -1;
}

.sue-settings-section h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}

.sue-settings-section p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.sue-settings-section p a {
    color: #3b82f6;
    text-decoration: none;
}

.sue-settings-section p a:hover {
    text-decoration: underline;
}

/* ── Social media input rows ── */
.sue-social-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sue-social-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sue-social-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* ── Email templates page ── */
.sue-templates-page {
    max-width: 1480px;
}

/* ── User groups page ── */
.sue-groups-page {
    max-width: 1480px;
}

.sue-groups-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
}

.sue-groups-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sue-group-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.sue-group-actions .sue-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border-width: 2px;
    flex-shrink: 0;
}

.sue-groups-table-wrap {
    overflow-x: auto;
}

.sue-external-upload-status {
    margin-top: 18px;
}

.sue-external-upload-progress-wrap {
    margin-top: 0;
}

.sue-external-edit-search-row {
    padding-top: 0;
}

.sue-external-edit-pagination {
    display: flex;
    justify-content: flex-end;
}

@media (min-width: 1200px) {
    .sue-groups-sidebar {
        position: sticky;
        top: 32px;
    }
}

@media (max-width: 1199px) {
    .sue-groups-layout {
        grid-template-columns: 1fr;
    }

    .sue-groups-sidebar {
        position: static;
    }
}

.sue-templates-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
}

.sue-templates-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sue-template-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.sue-template-actions .sue-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border-width: 2px;
    flex-shrink: 0;
}

.sue-templates-table-wrap {
    overflow-x: auto;
}

/* ── Users email page ── */
.sue-users-email-page {
    max-width: 1680px;
}

.sue-pro-wrap.sue-email-queue-page {
    width: min(1680px, calc(100vw - 64px));
    max-width: min(1680px, calc(100vw - 64px));
}

.sue-roles-email-page,
.sue-groups-email-page,
.sue-users-single-email-page,
.sue-external-list-email-page {
    max-width: 1680px;
}

.sue-users-email-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
}

.sue-roles-email-layout,
.sue-groups-email-layout,
.sue-users-single-email-layout,
.sue-external-list-email-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
}

.sue-users-email-page .sue-log-card-body {
    padding: 28px;
}

.sue-users-email-page .sue-field-row {
    grid-template-columns: 1fr;
    gap: 20px 24px;
    padding: 16px 0;
}

.sue-roles-email-page .sue-field-row,
.sue-groups-email-page .sue-field-row,
.sue-users-single-email-page .sue-field-row,
.sue-external-list-email-page .sue-field-row {
    grid-template-columns: 1fr;
    gap: 20px 24px;
    padding: 16px 0;
}

.sue-users-email-page .sue-field-label {
    display: none;
}

.sue-roles-email-page .sue-field-label,
.sue-groups-email-page .sue-field-label,
.sue-users-single-email-page .sue-field-label,
.sue-external-list-email-page .sue-field-label {
    display: none;
}

.sue-users-email-page .sue-field-input {
    min-width: 0;
}

.sue-input-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.sue-input-label-row label {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.sue-audience-list-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sue-audience-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sue-audience-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.sue-audience-list-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    margin: 0;
}

.sue-audience-list-check input[type="checkbox"] {
    margin: 0;
}

.sue-audience-list-label {
    color: #0f172a;
}

.sue-audience-list-meta {
    font-size: 12px;
    color: #475569;
    text-align: right;
}

.sue-field-tooltip {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: help;
}

.sue-field-tooltip:hover,
.sue-field-tooltip:focus {
    background: #dbeafe;
    color: #1d4ed8;
    outline: none;
}

.sue-field-tooltip .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
    margin: 0;
}

.sue-users-email-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sue-roles-email-sidebar,
.sue-groups-email-sidebar,
.sue-users-single-email-sidebar,
.sue-external-list-email-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sue-users-email-table-row .sue-field-input {
    min-width: 0;
}

.sue-users-email-table-row {
    grid-template-columns: 1fr;
    gap: 10px;
}

.sue-users-email-table-row .sue-field-label {
    max-width: 860px;
}

.sue-users-email-datatable-box {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 18px;
}

.sue-users-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: flex-end;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.sue-users-filter-bar .sue-users-filter-title {
    flex: 1 1 100%;
}

.sue-users-filter-bar .sue-users-filter-input-group {
    flex: 1 1 140px;
    max-width: 220px;
}

.sue-users-filter-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.sue-users-filter-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sue-users-filter-input-group label {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.sue-users-filter-input-group .sue-input {
    min-width: 0;
}

/* Override Bootstrap's cyan .bg-info to match the design-system blue palette */
.sue-users-email-page .bg-info {
    --bs-info-rgb: 59, 130, 246;
}

/* Neutralise Bootstrap .row negative gutters inside the card body so they
   don't push the layout wider than the card and trigger a scrollbar */
.sue-users-email-page .sue-log-card-body > .row {
    margin-left: 0;
    margin-right: 0;
    padding: 16px;
    border-radius: 8px;
}

.sue-users-email-page .sue-log-card-body > .row > [class*="col"] {
    padding-left: 8px;
    padding-right: 8px;
}

/* ── Containment chain: prevent any element from growing wider than the grid cell ── */
.sue-users-email-page .sue-settings-main,
.sue-users-email-page .sue-log-card,
.sue-users-email-page .sue-log-card-body,
.sue-users-email-page #sue-users-email-form,
.sue-user-email-datatable-wrapper,
.sue-user-email-datatable {
    min-width: 0;
    max-width: 100%;
}

/* Move overflow responsibility to the datatable box wrapper;
   overflow-x: auto here provides exactly one scroll area for both filter bar + table */
.sue-users-email-datatable-box {
    overflow-x: auto;
}

/* The table wrap itself must NOT create a nested scrollbar */
.sue-users-email-table-wrap {
    overflow-x: visible;
    min-width: 0;
}

/* Ensure DataTables own wrapper doesn't break out */
.sue-users-email-table-wrap .dataTables_wrapper {
    min-width: 0;
    max-width: 100%;
}

/* Constrain the table itself so it doesn't exceed the scroll area */
.sue-users-email-table-wrap #sue-user-email-tbl {
    max-width: 100%;
}

.sue-users-email-table-wrap #sue-user-email-tbl th,
.sue-users-email-table-wrap #sue-user-email-tbl td {
    padding: 10px 12px;
    vertical-align: middle;
}

.sue-users-email-table-wrap #sue-user-email-tbl thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    white-space: nowrap;
}

.sue-users-email-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.sue-users-email-actions .sue-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border-width: 2px;
    flex-shrink: 0;
}

.sue-users-email-progress {
    margin-top: 10px;
}

.sue-roles-email-page .bg-info,
.sue-groups-email-page .bg-info,
.sue-users-single-email-page .bg-info,
.sue-external-list-email-page .bg-info {
    --bs-info-rgb: 59, 130, 246;
}

.sue-roles-email-page .sue-log-card-body > .row,
.sue-groups-email-page .sue-log-card-body > .row,
.sue-users-single-email-page .sue-log-card-body > .row,
.sue-external-list-email-page .sue-log-card-body > .row {
    margin-left: 0;
    margin-right: 0;
    padding: 16px;
    border-radius: 8px;
}

.sue-roles-email-page .sue-log-card-body > .row > [class*="col"],
.sue-groups-email-page .sue-log-card-body > .row > [class*="col"],
.sue-users-single-email-page .sue-log-card-body > .row > [class*="col"],
.sue-external-list-email-page .sue-log-card-body > .row > [class*="col"] {
    padding-left: 8px;
    padding-right: 8px;
}

@media (min-width: 1200px) {
    .sue-users-email-sidebar {
        position: sticky;
        top: 32px;
    }

    .sue-roles-email-sidebar,
    .sue-groups-email-sidebar,
    .sue-users-single-email-sidebar,
    .sue-external-list-email-sidebar {
        position: sticky;
        top: 32px;
    }
}

@media (max-width: 1199px) {
    .sue-users-email-layout {
        grid-template-columns: 1fr;
    }

    .sue-users-email-sidebar {
        position: static;
    }

    .sue-roles-email-layout,
    .sue-groups-email-layout,
    .sue-users-single-email-layout,
    .sue-external-list-email-layout {
        grid-template-columns: 1fr;
    }

    .sue-roles-email-sidebar,
    .sue-groups-email-sidebar,
    .sue-users-single-email-sidebar,
    .sue-external-list-email-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .sue-users-email-page .sue-log-card-body {
        padding: 18px;
    }

    .sue-users-email-page .sue-field-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px 0;
    }

    .sue-users-filter-bar {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sue-audience-list-columns {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {
    .sue-templates-sidebar {
        position: sticky;
        top: 32px;
    }
}

@media (max-width: 1199px) {
    .sue-templates-layout {
        grid-template-columns: 1fr;
    }

    .sue-templates-sidebar {
        position: static;
    }

    .sue-pro-wrap.sue-email-queue-page {
        width: auto;
        max-width: 100%;
    }
}

/* ── Theme preview page ── */
.sue-preview-page {
    max-width: 1480px;
}

.sue-preview-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
}

.sue-preview-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sue-preview-selector-row {
    padding: 0;
    border-bottom: none;
}

.sue-preview-select {
    width: 100%;
    max-width: 420px;
}

.sue-preview-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #bfdbfe;
    line-height: 1;
}

.sue-preview-note {
    margin-bottom: 20px;
}

.sue-preview-frame-wrap {
    padding: 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.sue-preview-frame {
    width: 100%;
    min-height: 780px;
    border: none;
    display: block;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.sue-preview-meta-list li {
    align-items: flex-start;
}

.sue-preview-meta-list code {
    min-width: 52px;
    text-align: center;
}

@media (min-width: 1200px) {
    .sue-preview-sidebar {
        position: sticky;
        top: 32px;
    }
}

@media (max-width: 1199px) {
    .sue-preview-layout {
        grid-template-columns: 1fr;
    }

    .sue-preview-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .sue-preview-frame-wrap {
        padding: 12px;
    }

    .sue-preview-frame {
        min-height: 620px;
    }
}

