/*
 * BackOffice admin form polish.
 * Loaded on every panel page (see AdminPanelProvider::boot()). Targets only
 * Filament's own classes — no markup changes required in resource schemas.
 */

/* ---- Sticky save bar: prevent it covering the last field on the page ---- */
/* .fi-ac is `position: fixed; bottom: 0` when a form-actions bar is sticky,
   so the page needs matching bottom padding or the bar sits over content.
   Narrow viewports wrap Cancel/Save/Save & Preview across 2-3 rows (taller
   bar), so mobile needs *more* padding than the single-row desktop bar. */
.fi-main:has(.fi-sc-actions.fi-sticky) {
    padding-bottom: 9rem;
}

@media (min-width: 768px) {
    .fi-main:has(.fi-sc-actions.fi-sticky) {
        padding-bottom: 6rem;
    }
}

.fi-sc-actions.fi-sticky .fi-ac {
    z-index: 30;
    backdrop-filter: blur(6px);
    border-top: 1px solid rgb(15 23 42 / 0.06);
}

@media (min-width: 768px) {
    .fi-sc-actions.fi-sticky .fi-ac {
        border-top-width: 0;
    }
}

/* Buttons wrap cleanly instead of overflowing on narrow viewports */
.fi-sc-actions .fi-ac {
    flex-wrap: wrap;
    row-gap: 0.5rem;
}

/* ---- Breathing room between stacked cards in the main/aside columns ---- */
.fi-fo-component-ctn > .fi-grid > .fi-grid-col > .fi-fo-component-ctn {
    row-gap: 1.5rem;
}

/* ---- Aside cards: never let them look thinner/squeezed than the main column's cards ---- */
.fi-section {
    min-width: 0;
}

/* ---- Prevent grid/flex children from forcing their track wider than intended ----
   Grid and flex items default to `min-width: auto`, so a long unbreakable
   value (URL, filename, helper text) can blow out its column and make the
   input/label look clipped instead of wrapping or truncating with ellipsis. */
.fi-grid > *,
.fi-fo-field-wrp,
.fi-input-wrp,
.fi-fo-component-ctn {
    min-width: 0;
}

.fi-input,
.fi-select-input {
    width: 100%;
}

/* ---- Guard against accidental horizontal scroll on dense field grids ---- */
.fi-main-ctn {
    overflow-x: clip;
}

/* ---- Campaign wizard: docked action footer ----
   The wizard renders Cancel / Previous / Next / Create in .fi-sc-wizard-footer.
   Keeping it pinned to the bottom of the viewport means the primary CTA stays
   reachable while working through a long recipient list. */
.fi-sc-wizard-footer {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin-top: 1.5rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    border-top: 1px solid rgb(226 232 240);
    background: rgb(255 255 255 / 0.92);
    backdrop-filter: blur(8px);
}

.dark .fi-sc-wizard-footer {
    border-top-color: rgb(255 255 255 / 0.1);
    background: rgb(17 24 39 / 0.92);
}

/* ---- Campaign recipient manager ---- */
.sws-rp {
    --sws-rp-line: rgb(226 232 240);
    --sws-rp-surface: rgb(255 255 255);
    --sws-rp-muted: rgb(100 116 139);
    --sws-rp-strong: rgb(15 23 42);
    --sws-rp-accent: rgb(26 115 232);
    --sws-rp-subtle: rgb(248 250 252);

    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 88rem;
}

.dark .sws-rp {
    --sws-rp-line: rgb(255 255 255 / 0.1);
    --sws-rp-surface: rgb(17 24 39);
    --sws-rp-muted: rgb(148 163 184);
    --sws-rp-strong: rgb(255 255 255);
    --sws-rp-accent: rgb(96 165 250);
    --sws-rp-subtle: rgb(255 255 255 / 0.04);
}

/* ---- Summary cards ---- */
.sws-rp-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 900px) {
    .sws-rp-summary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.sws-rp-stat {
    display: block;
    min-width: 0;
    border: 1px solid var(--sws-rp-line);
    border-radius: 0.75rem;
    background: var(--sws-rp-surface);
    padding: 0.75rem 0.875rem;
    text-align: left;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.sws-rp-stat--action {
    cursor: pointer;
}

.sws-rp-stat--action:hover,
.sws-rp-stat--action:focus-visible {
    border-color: color-mix(in srgb, var(--sws-rp-accent) 55%, transparent);
    background: var(--sws-rp-subtle);
    outline: none;
}

.sws-rp-stat--primary {
    border-color: color-mix(in srgb, var(--sws-rp-accent) 45%, transparent);
    background: color-mix(in srgb, var(--sws-rp-accent) 6%, var(--sws-rp-surface));
}

.sws-rp-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 650;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    color: var(--sws-rp-strong);
}

.sws-rp-stat--primary .sws-rp-stat-value {
    color: var(--sws-rp-accent);
}

.sws-rp-stat-label {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sws-rp-strong);
}

.sws-rp-stat-hint {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.6875rem;
    color: var(--sws-rp-muted);
}

/* ---- Cards ---- */
.sws-rp-card {
    border: 1px solid var(--sws-rp-line);
    border-radius: 0.875rem;
    background: var(--sws-rp-surface);
    overflow: hidden;
}

.sws-rp-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--sws-rp-line);
}

.sws-rp-card-title {
    font-size: 0.9375rem;
    font-weight: 650;
    color: var(--sws-rp-strong);
}

.sws-rp-card-sub {
    margin-top: 0.125rem;
    font-size: 0.75rem;
    color: var(--sws-rp-muted);
}

.sws-rp-card-body {
    padding: 1rem;
}

.sws-rp-count {
    border-radius: 999px;
    background: color-mix(in srgb, var(--sws-rp-accent) 10%, transparent);
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 650;
    color: var(--sws-rp-accent);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---- Contact rules ---- */
.sws-rp-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.sws-rp-check input {
    margin-top: 0.125rem;
    flex: none;
}

.sws-rp-check-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sws-rp-strong);
}

.sws-rp-check-note {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--sws-rp-muted);
}

.sws-rp-check-note strong {
    color: var(--sws-rp-strong);
    font-variant-numeric: tabular-nums;
}

.sws-rp-resend {
    margin-top: 1rem;
    border-top: 1px dashed var(--sws-rp-line);
    padding-top: 0.875rem;
}

.sws-rp-resend > legend {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sws-rp-muted);
    padding: 0;
}

.sws-rp-resend-grid {
    display: grid;
    gap: 0.625rem;
    margin-top: 0.625rem;
}

@media (min-width: 768px) {
    .sws-rp-resend-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.sws-rp-radio {
    display: flex;
    cursor: pointer;
    align-items: flex-start;
    gap: 0.625rem;
    border: 1px solid var(--sws-rp-line);
    border-radius: 0.625rem;
    padding: 0.625rem 0.75rem;
}

.sws-rp-radio:has(input:checked) {
    border-color: color-mix(in srgb, var(--sws-rp-accent) 60%, transparent);
    background: color-mix(in srgb, var(--sws-rp-accent) 7%, var(--sws-rp-surface));
}

.sws-rp-radio strong,
.sws-rp-radio small {
    display: block;
}

.sws-rp-radio strong {
    font-size: 0.8125rem;
    color: var(--sws-rp-strong);
}

.sws-rp-radio small {
    margin-top: 0.125rem;
    font-size: 0.75rem;
    color: var(--sws-rp-muted);
}

/* ---- Toolbar ---- */
.sws-rp-toolbar {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--sws-rp-line);
}

@media (min-width: 640px) {
    .sws-rp-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sws-rp-field--search {
        grid-column: span 2;
    }
}

@media (min-width: 1100px) {
    .sws-rp-toolbar {
        grid-template-columns: minmax(12rem, 1.6fr) repeat(4, minmax(7.5rem, 1fr));
    }

    .sws-rp-field--search {
        grid-column: auto;
    }
}

.sws-rp-field > span:not(.sws-rp-search) {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--sws-rp-muted);
}

.sws-rp-field--search {
    display: flex;
    align-items: flex-end;
}

.sws-rp-search {
    position: relative;
    display: block;
    width: 100%;
}

.sws-rp-search-icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 0.625rem;
    width: 1rem;
    height: 1rem;
    transform: translateY(-50%);
    color: var(--sws-rp-muted);
    pointer-events: none;
}

.sws-rp-search .fi-input {
    padding-inline-start: 2rem;
}

/* ---- Selection bar ---- */
.sws-rp-selectbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    background: var(--sws-rp-subtle);
    border-bottom: 1px solid var(--sws-rp-line);
}

.sws-rp-selectall {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sws-rp-strong);
}

.sws-rp-linkbtn {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sws-rp-muted);
    text-underline-offset: 3px;
}

.sws-rp-linkbtn:hover {
    color: var(--sws-rp-accent);
    text-decoration: underline;
}

/* ---- Table ---- */
.sws-rp-tablewrap {
    overflow: auto;
    overscroll-behavior: contain;
}

@media (min-width: 768px) {
    .sws-rp-tablewrap {
        max-height: clamp(22rem, 56vh, 40rem);
    }
}

.sws-rp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.8125rem;
    table-layout: fixed;
}

@media (min-width: 768px) {
    .sws-rp-table {
        min-width: 46rem;
    }
}

.sws-rp-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 0.5rem 0.75rem;
    background: var(--sws-rp-subtle);
    box-shadow: inset 0 -1px 0 var(--sws-rp-line);
    color: var(--sws-rp-muted);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.dark .sws-rp-table th {
    background: rgb(30 41 59);
}

.sws-rp-table td {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--sws-rp-line);
    color: rgb(71 85 105);
    vertical-align: middle;
    height: 3rem;
}

.dark .sws-rp-table td {
    color: rgb(203 213 225);
}

.sws-rp-table tbody tr:first-child td {
    border-top: 0;
}

.sws-rp-row:hover td {
    background: var(--sws-rp-subtle);
}

.sws-rp-row--muted td {
    opacity: 0.55;
}

.sws-rp-col-check { width: 2.75rem; }
.sws-rp-col-business { width: 28%; }
.sws-rp-col-email { width: 27%; }
.sws-rp-col-status { width: 9.5rem; }
.sws-rp-col-date { width: 6.75rem; white-space: nowrap; }
.sws-rp-col-count { width: 4.5rem; text-align: right; }
.sws-rp-col-action { width: 4.25rem; text-align: right; }

.sws-rp-business,
.sws-rp-email {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sws-rp-business {
    text-align: left;
    font-weight: 600;
    color: var(--sws-rp-strong);
}

.sws-rp-business:hover {
    color: var(--sws-rp-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sws-rp-email {
    color: var(--sws-rp-muted);
}

.sws-rp-num {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--sws-rp-strong);
}

.sws-rp-num--zero {
    font-weight: 400;
    color: var(--sws-rp-muted);
}

.sws-rp-view {
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sws-rp-muted);
}

.sws-rp-view:hover {
    background: color-mix(in srgb, var(--sws-rp-accent) 10%, transparent);
    color: var(--sws-rp-accent);
}

.sws-rp-empty {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--sws-rp-muted);
}

/* ---- Badges ---- */
.sws-rp-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgb(241 245 249);
    padding: 0.1875rem 0.5rem;
    color: rgb(51 65 85);
    font-size: 0.6875rem;
    font-weight: 650;
    line-height: 1.35;
    white-space: nowrap;
}

.sws-rp-badge--never_contacted { background: rgb(236 253 245); color: rgb(4 120 87); }
.sws-rp-badge--contacted { background: rgb(239 246 255); color: rgb(29 78 216); }
.sws-rp-badge--cooling_down { background: rgb(255 251 235); color: rgb(180 83 9); }
.sws-rp-badge--scheduled { background: rgb(245 243 255); color: rgb(109 40 217); }
.sws-rp-badge--do_not_contact,
.sws-rp-badge--unsubscribed,
.sws-rp-badge--bounced,
.sws-rp-badge--invalid_email { background: rgb(254 242 242); color: rgb(185 28 28); }
.sws-rp-badge--no_email,
.sws-rp-badge--other_excluded,
.sws-rp-badge--suppressed { background: rgb(241 245 249); color: rgb(71 85 105); }

.dark .sws-rp-badge { background: rgb(255 255 255 / 0.08); color: rgb(226 232 240); }
.dark .sws-rp-badge--never_contacted { background: rgb(6 78 59 / 0.35); color: rgb(110 231 183); }
.dark .sws-rp-badge--contacted { background: rgb(30 58 138 / 0.35); color: rgb(147 197 253); }
.dark .sws-rp-badge--cooling_down { background: rgb(120 53 15 / 0.35); color: rgb(252 211 77); }
.dark .sws-rp-badge--scheduled { background: rgb(76 29 149 / 0.35); color: rgb(196 181 253); }
.dark .sws-rp-badge--do_not_contact,
.dark .sws-rp-badge--unsubscribed,
.dark .sws-rp-badge--bounced,
.dark .sws-rp-badge--invalid_email { background: rgb(127 29 29 / 0.35); color: rgb(252 165 165); }

/* ---- Pagination ---- */
.sws-rp-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-top: 1px solid var(--sws-rp-line);
    font-size: 0.75rem;
    color: var(--sws-rp-muted);
}

.sws-rp-pagination-count {
    font-variant-numeric: tabular-nums;
}

.sws-rp-pager {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sws-rp-pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.375rem;
    padding: 0 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sws-rp-muted);
}

.sws-rp-pager-btn:hover {
    background: var(--sws-rp-subtle);
    color: var(--sws-rp-strong);
}

.sws-rp-pager-btn--current {
    background: color-mix(in srgb, var(--sws-rp-accent) 12%, transparent);
    color: var(--sws-rp-accent);
}

.sws-rp-pager-btn[aria-disabled='true'] {
    opacity: 0.4;
    pointer-events: none;
}

.sws-rp-pager-icon {
    width: 1rem;
    height: 1rem;
}

.sws-rp-pager-gap {
    padding: 0 0.125rem;
}

/* ---- Excluded leads ---- */
.sws-rp-excluded {
    border: 1px solid var(--sws-rp-line);
    border-radius: 0.875rem;
    background: var(--sws-rp-subtle);
}

.sws-rp-excluded > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    list-style: none;
}

.sws-rp-excluded > summary::-webkit-details-marker {
    display: none;
}

.sws-rp-excluded-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 650;
    color: var(--sws-rp-strong);
    font-variant-numeric: tabular-nums;
}

.sws-rp-excluded-sub {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.75rem;
    color: var(--sws-rp-muted);
}

.sws-rp-excluded-toggle {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 650;
    color: var(--sws-rp-muted);
}

.sws-rp-chevron {
    width: 1rem;
    height: 1rem;
    transition: transform 150ms ease;
}

.sws-rp-excluded[open] .sws-rp-chevron {
    transform: rotate(180deg);
}

.sws-rp-excluded-grid {
    display: grid;
    gap: 0.5rem;
    border-top: 1px solid var(--sws-rp-line);
    padding: 0.875rem 1rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .sws-rp-excluded-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .sws-rp-excluded-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.sws-rp-excluded-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 0 0.75rem;
    border: 1px solid transparent;
    border-radius: 0.625rem;
    background: var(--sws-rp-surface);
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.sws-rp-excluded-item:hover {
    border-color: color-mix(in srgb, var(--sws-rp-accent) 40%, transparent);
}

.sws-rp-excluded-item-label {
    font-size: 0.8125rem;
    font-weight: 650;
    color: var(--sws-rp-strong);
}

.sws-rp-excluded-item-count {
    font-size: 0.875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--sws-rp-strong);
}

.sws-rp-excluded-item-note {
    grid-column: 1 / -1;
    margin-top: 0.125rem;
    font-size: 0.6875rem;
    line-height: 1.4;
    color: var(--sws-rp-muted);
}

/* ---- Contact history drawer ---- */
.sws-rp-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
}

.sws-rp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(15 23 42 / 0.5);
}

.sws-rp-modal-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(100%, 34rem);
    background: var(--sws-rp-surface, rgb(255 255 255));
    box-shadow: -12px 0 32px rgb(15 23 42 / 0.18);
}

.dark .sws-rp-modal-panel { background: rgb(17 24 39); }

.sws-rp-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgb(226 232 240);
    padding: 1rem 1.25rem;
}

.dark .sws-rp-modal-head { border-color: rgb(255 255 255 / 0.1); }

.sws-rp-modal-title {
    font-size: 1.0625rem;
    font-weight: 650;
    color: rgb(15 23 42);
}

.dark .sws-rp-modal-title { color: white; }

.sws-rp-modal-email {
    margin-top: 0.125rem;
    font-size: 0.8125rem;
    word-break: break-all;
    color: rgb(100 116 139);
}

.sws-rp-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
}

.sws-rp-modal-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
    border-radius: 0.625rem;
    background: rgb(248 250 252);
    padding: 0.875rem 1rem;
}

.dark .sws-rp-modal-facts { background: rgb(255 255 255 / 0.05); }

.sws-rp-modal-facts dt {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgb(100 116 139);
}

.sws-rp-modal-facts dd {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    font-weight: 650;
    color: rgb(15 23 42);
}

.dark .sws-rp-modal-facts dd { color: white; }

.sws-rp-modal-section {
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgb(100 116 139);
}

.sws-rp-modal-history > article {
    border-top: 1px solid rgb(226 232 240);
    padding: 0.875rem 0;
}

.dark .sws-rp-modal-history > article { border-color: rgb(255 255 255 / 0.1); }

.sws-rp-modal-history > article:first-child { border-top: 0; }

.sws-rp-modal-history-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.sws-rp-modal-history-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(15 23 42);
}

.dark .sws-rp-modal-history-name { color: white; }

.sws-rp-modal-history-meta {
    margin-top: 0.125rem;
    font-size: 0.75rem;
    color: rgb(100 116 139);
}

.sws-rp-modal-history-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: rgb(100 116 139);
}

.sws-rp-modal-empty {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.8125rem;
    color: rgb(100 116 139);
}

/* ---- Tablet: drop the lower-priority columns before anything squeezes ---- */
@media (min-width: 768px) and (max-width: 1023px) {
    .sws-rp-table .sws-rp-col-date,
    .sws-rp-table .sws-rp-col-count {
        display: none;
    }

    .sws-rp-table {
        min-width: 36rem;
    }
}

/* ---- Mobile: stacked cards instead of a horizontally scrolling table ---- */
@media (max-width: 767px) {
    .sws-rp-table { min-width: 0; table-layout: auto; }
    .sws-rp-table thead { display: none; }
    .sws-rp-table,
    .sws-rp-table tbody,
    .sws-rp-table tr,
    .sws-rp-table td { display: block; width: 100%; }

    .sws-rp-table tr {
        padding: 0.75rem 1rem;
        border-top: 1px solid var(--sws-rp-line);
    }

    .sws-rp-table tbody tr:first-child { border-top: 0; }

    .sws-rp-table td {
        display: grid;
        grid-template-columns: minmax(6rem, 0.4fr) minmax(0, 1fr);
        align-items: center;
        gap: 0.75rem;
        height: auto;
        border: 0;
        padding: 0.1875rem 0;
        text-align: left;
    }

    .sws-rp-table td::before {
        content: attr(data-label);
        color: var(--sws-rp-muted);
        font-size: 0.6875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .sws-rp-table .sws-rp-col-business::before { content: none; }
    .sws-rp-table .sws-rp-col-business { grid-template-columns: minmax(0, 1fr); }
    .sws-rp-business { font-size: 0.9375rem; white-space: normal; }
    .sws-rp-email { white-space: normal; word-break: break-all; }
    .sws-rp-view { padding-inline: 0; }
    .sws-rp-row:hover td { background: transparent; }
}

