/**
 * WPNest Price History — Admin design system.
 *
 * Single stylesheet shared across:
 *   - Free settings page (Ogólne / Wyświetlanie / Get Pro)
 *   - Pro Compliance / Pro Features / Analytics tabs
 *   - Product History metabox
 *   - Dashboard widget
 *
 * Tokens are CSS variables on :root so themes / white-label can override
 * the brand color without touching component styles.
 */

:root {
    --wpnph-bg:             #f6f7f7;
    --wpnph-surface:        #ffffff;
    --wpnph-surface-2:      #f9fafb;
    --wpnph-border:         #e5e7eb;
    --wpnph-border-strong:  #d1d5db;
    --wpnph-text:           #111827;
    --wpnph-text-muted:     #6b7280;
    --wpnph-text-subtle:    #9ca3af;
    --wpnph-accent:         #2563eb;
    --wpnph-accent-hover:   #1d4ed8;
    --wpnph-accent-soft:    #eff6ff;
    --wpnph-success:        #059669;
    --wpnph-success-soft:   #ecfdf5;
    --wpnph-warn:           #d97706;
    --wpnph-warn-soft:      #fffbeb;
    --wpnph-error:          #dc2626;
    --wpnph-error-soft:     #fef2f2;
    --wpnph-purple:         #7c3aed;
    --wpnph-purple-soft:    #f5f3ff;

    --wpnph-radius-sm: 6px;
    --wpnph-radius-md: 10px;
    --wpnph-radius-lg: 14px;

    --wpnph-shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --wpnph-shadow-md: 0 2px 6px rgba(0,0,0,0.06);
}

/* ── Page wrapper ─────────────────────────────────────────────────── */

.wpnph-app {
    --wpnph-content-max: 1200px;
    margin: 12px 20px 60px 0;
    max-width: var(--wpnph-content-max);
    color: var(--wpnph-text);
    font-size: 14px;
    line-height: 1.55;
}

.wpnph-app * { box-sizing: border-box; }

/* WP injects an h1 we may not want — hide its default styles in favor of hero */
.wpnph-app h1.wp-heading-inline { display: none; }

/* ── Hero ─────────────────────────────────────────────────────────── */

.wpnph-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 24px 28px;
    background: linear-gradient(135deg, var(--wpnph-accent-soft) 0%, var(--wpnph-purple-soft) 100%);
    border: 1px solid var(--wpnph-border);
    border-radius: var(--wpnph-radius-lg);
    margin-bottom: 20px;
}

.wpnph-hero__brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wpnph-hero__logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--wpnph-accent), var(--wpnph-purple));
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 22px;
    flex: 0 0 auto;
    box-shadow: var(--wpnph-shadow-md);
}

.wpnph-hero__title {
    margin: 0 0 2px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--wpnph-text);
}

.wpnph-hero__lede {
    margin: 0;
    font-size: 13px;
    color: var(--wpnph-text-muted);
    line-height: 1.45;
}

.wpnph-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--wpnph-surface);
    border: 1px solid var(--wpnph-border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--wpnph-text);
    box-shadow: var(--wpnph-shadow-sm);
    white-space: nowrap;
}
.wpnph-hero__pill--ok    { border-color: #a7f3d0; color: var(--wpnph-success); background: var(--wpnph-success-soft); }
.wpnph-hero__pill--warn  { border-color: #fde68a; color: var(--wpnph-warn); background: var(--wpnph-warn-soft); }
.wpnph-hero__pill--err   { border-color: #fecaca; color: var(--wpnph-error); background: var(--wpnph-error-soft); }
.wpnph-hero__pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

/* ── Tabs ─────────────────────────────────────────────────────────── */

.wpnph-tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 20px;
    padding: 4px;
    background: var(--wpnph-surface);
    border: 1px solid var(--wpnph-border);
    border-radius: var(--wpnph-radius-md);
    overflow-x: auto;
    flex-wrap: nowrap;
}

.wpnph-tabs__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--wpnph-text-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: background 120ms ease, color 120ms ease;
}
.wpnph-tabs__link:hover {
    background: var(--wpnph-surface-2);
    color: var(--wpnph-text);
}
.wpnph-tabs__link.is-active {
    background: var(--wpnph-accent);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--wpnph-shadow-sm);
}
.wpnph-tabs__link.is-active:hover { background: var(--wpnph-accent-hover); color: #fff; }

.wpnph-tabs__icon {
    width: 16px;
    height: 16px;
    display: inline-grid;
    place-items: center;
}

.wpnph-tabs__star {
    margin-left: 2px;
    color: #f59e0b;
}

/* ── Cards ────────────────────────────────────────────────────────── */

.wpnph-card {
    background: var(--wpnph-surface);
    border: 1px solid var(--wpnph-border);
    border-radius: var(--wpnph-radius-lg);
    margin-bottom: 18px;
    overflow: hidden;
}
.wpnph-card + .wpnph-card { margin-top: 0; }

.wpnph-card--accent { border-color: #c5d9ed; background: var(--wpnph-accent-soft); }
.wpnph-card--purple { border-color: #ddd6fe; background: var(--wpnph-purple-soft); }
.wpnph-card--success{ border-color: #a7f3d0; background: var(--wpnph-success-soft); }
.wpnph-card--warn   { border-color: #fde68a; background: var(--wpnph-warn-soft); }
.wpnph-card--error  { border-color: #fecaca; background: var(--wpnph-error-soft); }

.wpnph-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--wpnph-border);
}
.wpnph-card--accent .wpnph-card__header,
.wpnph-card--purple .wpnph-card__header,
.wpnph-card--success .wpnph-card__header,
.wpnph-card--warn .wpnph-card__header,
.wpnph-card--error .wpnph-card__header { border-bottom-color: rgba(0,0,0,0.06); }

.wpnph-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--wpnph-text);
    line-height: 1.3;
}
.wpnph-card__title-icon {
    font-size: 18px;
    line-height: 1;
}
.wpnph-card__sub {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--wpnph-text-muted);
    font-weight: normal;
}

.wpnph-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.wpnph-card__body {
    padding: 20px 22px;
}

.wpnph-card--no-header > .wpnph-card__body {
    padding: 22px;
}

/* ── Stats grid ───────────────────────────────────────────────────── */

.wpnph-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.wpnph-stat {
    background: var(--wpnph-surface);
    border: 1px solid var(--wpnph-border);
    border-radius: var(--wpnph-radius-md);
    padding: 18px 20px;
}
.wpnph-stat__label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: var(--wpnph-text-muted);
    margin-bottom: 6px;
}
.wpnph-stat__value {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: var(--wpnph-text);
    font-variant-numeric: tabular-nums;
}
.wpnph-stat__value--ok    { color: var(--wpnph-success); }
.wpnph-stat__value--warn  { color: var(--wpnph-warn); }
.wpnph-stat__value--err   { color: var(--wpnph-error); }
.wpnph-stat__value--accent{ color: var(--wpnph-accent); }
.wpnph-stat__hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--wpnph-text-subtle);
}

/* ── Form rows ────────────────────────────────────────────────────── */

.wpnph-row {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 32px;
    padding: 18px 0;
    border-bottom: 1px solid var(--wpnph-border);
    align-items: start;
}
.wpnph-row:last-child { border-bottom: 0; }

.wpnph-row__label {
    font-weight: 600;
    color: var(--wpnph-text);
    font-size: 13px;
}
.wpnph-row__hint {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 400;
    color: var(--wpnph-text-muted);
    line-height: 1.5;
}

.wpnph-row__control {
    min-width: 0;
}
.wpnph-row__control p.description,
.wpnph-row__hint--inline {
    margin: 6px 0 0;
    color: var(--wpnph-text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.wpnph-row__control input[type="text"],
.wpnph-row__control input[type="url"],
.wpnph-row__control input[type="email"],
.wpnph-row__control input[type="number"],
.wpnph-row__control textarea,
.wpnph-row__control select {
    padding: 8px 10px;
    border: 1px solid var(--wpnph-border-strong);
    border-radius: var(--wpnph-radius-sm);
    background: #fff;
    font-size: 13px;
    color: var(--wpnph-text);
    width: 100%;
    max-width: 480px;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
.wpnph-row__control input[type="number"].small {
    width: 110px;
}
.wpnph-row__control textarea {
    max-width: 100%;
    min-height: 120px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    line-height: 1.55;
}
.wpnph-row__control input:focus,
.wpnph-row__control textarea:focus,
.wpnph-row__control select:focus {
    border-color: var(--wpnph-accent);
    box-shadow: 0 0 0 3px var(--wpnph-accent-soft);
    outline: none;
}

/* ── Toggle switch ────────────────────────────────────────────────── */

.wpnph-toggle {
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}
.wpnph-toggle input[type="checkbox"] {
    /* keep the native input for accessibility, but visually replace */
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.wpnph-toggle__switch {
    flex: 0 0 auto;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #d1d5db;
    position: relative;
    transition: background 160ms ease;
    margin-top: 1px;
}
.wpnph-toggle__switch::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: transform 160ms ease;
}
.wpnph-toggle input:checked + .wpnph-toggle__switch { background: var(--wpnph-accent); }
.wpnph-toggle input:checked + .wpnph-toggle__switch::before { transform: translateX(16px); }
.wpnph-toggle input:focus-visible + .wpnph-toggle__switch {
    box-shadow: 0 0 0 3px var(--wpnph-accent-soft);
}

.wpnph-toggle__text {
    flex: 1 1 auto;
}
.wpnph-toggle__title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--wpnph-text);
    line-height: 1.45;
}
.wpnph-toggle__hint {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--wpnph-text-muted);
    line-height: 1.5;
}

/* ── Radio cards ──────────────────────────────────────────────────── */

.wpnph-radios {
    display: grid;
    gap: 10px;
}
.wpnph-radio {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--wpnph-border);
    border-radius: var(--wpnph-radius-md);
    cursor: pointer;
    transition: border-color 120ms ease, background 120ms ease;
}
.wpnph-radio:hover {
    background: var(--wpnph-surface-2);
}
.wpnph-radio:has(input:checked) {
    border-color: var(--wpnph-accent);
    background: var(--wpnph-accent-soft);
    box-shadow: var(--wpnph-shadow-sm);
}
.wpnph-radio input[type="radio"] {
    margin: 2px 0 0;
}
.wpnph-radio__title {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--wpnph-text);
}
.wpnph-radio__hint {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--wpnph-text-muted);
    line-height: 1.5;
}
.wpnph-radio__badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--wpnph-success-soft);
    color: var(--wpnph-success);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    vertical-align: middle;
}

/* ── Buttons ──────────────────────────────────────────────────────── */

.wpnph-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--wpnph-radius-sm);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--wpnph-border-strong);
    background: var(--wpnph-surface);
    color: var(--wpnph-text);
    cursor: pointer;
    text-decoration: none;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
    line-height: 1.4;
}
.wpnph-btn:hover { background: var(--wpnph-surface-2); border-color: var(--wpnph-text-muted); color: var(--wpnph-text); }
.wpnph-btn--primary {
    background: var(--wpnph-accent);
    border-color: var(--wpnph-accent);
    color: #fff;
}
.wpnph-btn--primary:hover { background: var(--wpnph-accent-hover); border-color: var(--wpnph-accent-hover); color: #fff; }
.wpnph-btn--danger {
    background: var(--wpnph-error);
    border-color: var(--wpnph-error);
    color: #fff;
}
.wpnph-btn--danger:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.wpnph-btn .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 1;
}

/* Sticky save bar at bottom of long forms */
.wpnph-savebar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 24px -22px -22px;
    padding: 14px 22px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--wpnph-border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ── Badges ──────────────────────────────────────────────────────── */

.wpnph-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}
.wpnph-badge--ok    { background: var(--wpnph-success-soft); color: var(--wpnph-success); }
.wpnph-badge--warn  { background: var(--wpnph-warn-soft); color: var(--wpnph-warn); }
.wpnph-badge--err   { background: var(--wpnph-error-soft); color: var(--wpnph-error); }
.wpnph-badge--accent{ background: var(--wpnph-accent-soft); color: var(--wpnph-accent); }
.wpnph-badge--purple{ background: var(--wpnph-purple-soft); color: var(--wpnph-purple); }
.wpnph-badge--neutral{background: #f3f4f6; color: var(--wpnph-text-muted); }

.wpnph-badge--severity-1 { background: var(--wpnph-warn-soft);  color: var(--wpnph-warn); }
.wpnph-badge--severity-2 { background: #fee2e2; color: #b91c1c; }
.wpnph-badge--severity-3 { background: #b91c1c; color: #fff; }

/* ── Notice / banner ─────────────────────────────────────────────── */

.wpnph-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--wpnph-radius-md);
    border: 1px solid var(--wpnph-border);
    background: var(--wpnph-surface);
    margin-bottom: 18px;
}
.wpnph-banner__icon { font-size: 20px; line-height: 1.2; }
.wpnph-banner__title { margin: 0 0 2px; font-size: 13px; font-weight: 600; }
.wpnph-banner__msg   { margin: 0; font-size: 12px; color: var(--wpnph-text-muted); }
.wpnph-banner--purple { background: var(--wpnph-purple-soft); border-color: #ddd6fe; }
.wpnph-banner--accent { background: var(--wpnph-accent-soft); border-color: #c5d9ed; }
.wpnph-banner--success{ background: var(--wpnph-success-soft); border-color: #a7f3d0; }
.wpnph-banner--warn   { background: var(--wpnph-warn-soft); border-color: #fde68a; }
.wpnph-banner--error  { background: var(--wpnph-error-soft); border-color: #fecaca; }

/* ── Tables ──────────────────────────────────────────────────────── */

.wpnph-table {
    width: 100%;
    border-collapse: collapse;
}
.wpnph-table th,
.wpnph-table td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--wpnph-border);
    font-size: 13px;
    vertical-align: middle;
}
.wpnph-table thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--wpnph-text-muted);
    background: var(--wpnph-surface-2);
    border-bottom: 1px solid var(--wpnph-border);
    font-weight: 600;
}
.wpnph-table tbody tr:hover { background: var(--wpnph-surface-2); }
.wpnph-table tbody tr:last-child td { border-bottom: 0; }

/* Override WP's striped class look */
.wpnph-card .widefat { border: 0; box-shadow: none; }
.wpnph-card .widefat th, .wpnph-card .widefat td { border-color: var(--wpnph-border); }

/* ── Empty states ────────────────────────────────────────────────── */

.wpnph-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--wpnph-text-muted);
}
.wpnph-empty__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--wpnph-surface-2);
    display: inline-grid;
    place-items: center;
    margin-bottom: 12px;
    font-size: 22px;
    color: var(--wpnph-text-subtle);
}
.wpnph-empty__title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--wpnph-text);
}
.wpnph-empty__msg {
    margin: 0 auto 16px;
    max-width: 480px;
    font-size: 13px;
    line-height: 1.55;
}

/* ── Code blocks ─────────────────────────────────────────────────── */

.wpnph-code {
    display: block;
    background: #0f172a;
    color: #e2e8f0;
    padding: 14px 16px;
    border-radius: var(--wpnph-radius-sm);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    line-height: 1.7;
    overflow-x: auto;
    margin: 0;
}
.wpnph-code .com { color: #94a3b8; }

code.wpnph-inline {
    background: var(--wpnph-surface-2);
    border: 1px solid var(--wpnph-border);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--wpnph-text);
}

/* ── Section anchors ─────────────────────────────────────────────── */

.wpnph-jumpnav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    background: var(--wpnph-surface);
    border: 1px solid var(--wpnph-border);
    border-radius: 999px;
    margin-bottom: 16px;
    position: sticky;
    top: 32px;
    z-index: 4;
    box-shadow: var(--wpnph-shadow-sm);
}
.wpnph-jumpnav__link {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--wpnph-text-muted);
    text-decoration: none;
    transition: background 120ms ease, color 120ms ease;
}
.wpnph-jumpnav__link:hover { background: var(--wpnph-surface-2); color: var(--wpnph-text); }

/* ── Help collapsibles ───────────────────────────────────────────── */

.wpnph-help {
    border: 1px solid var(--wpnph-border);
    border-radius: var(--wpnph-radius-md);
    background: var(--wpnph-surface);
    margin-bottom: 14px;
    overflow: hidden;
}
.wpnph-help[open] { border-color: var(--wpnph-border-strong); }
.wpnph-help summary {
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 13px;
    color: var(--wpnph-text);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wpnph-help summary::-webkit-details-marker { display: none; }
.wpnph-help summary::before {
    content: "▸";
    color: var(--wpnph-text-subtle);
    font-size: 10px;
    transition: transform 160ms ease;
}
.wpnph-help[open] summary::before { transform: rotate(90deg); }
.wpnph-help summary:hover { background: var(--wpnph-surface-2); }
.wpnph-help__body {
    padding: 0 18px 18px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--wpnph-text);
}
.wpnph-help__body p { margin: 8px 0; }
.wpnph-help__body ul { margin: 6px 0 6px 20px; }
.wpnph-help__body blockquote {
    margin: 10px 0;
    padding: 10px 14px;
    background: var(--wpnph-surface-2);
    border-left: 3px solid var(--wpnph-accent);
    border-radius: 4px;
    color: var(--wpnph-text);
    font-style: italic;
}

/* ── Get Pro tab ─────────────────────────────────────────────────── */

.wpnph-getpro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.wpnph-getpro__hero {
    background: linear-gradient(135deg, var(--wpnph-purple) 0%, var(--wpnph-accent) 100%);
    color: #fff;
    padding: 32px 36px;
    border-radius: var(--wpnph-radius-lg);
    text-align: center;
}
.wpnph-getpro__hero h2 { color: #fff; margin: 0 0 10px; font-size: 24px; }
.wpnph-getpro__hero p  { color: rgba(255,255,255,0.9); margin: 0 auto; max-width: 520px; }
.wpnph-getpro__hero .wpnph-btn {
    margin-top: 18px;
    background: #fff;
    color: var(--wpnph-purple);
    border-color: #fff;
    font-weight: 600;
    padding: 10px 20px;
}
.wpnph-getpro__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.wpnph-getpro__feature {
    background: var(--wpnph-surface);
    border: 1px solid var(--wpnph-border);
    border-radius: var(--wpnph-radius-md);
    padding: 18px 20px;
    transition: border-color 120ms ease, transform 120ms ease;
}
.wpnph-getpro__feature:hover {
    border-color: var(--wpnph-accent);
    transform: translateY(-1px);
}
.wpnph-getpro__feature-icon {
    font-size: 22px;
    margin-bottom: 6px;
    display: block;
    line-height: 1;
}
.wpnph-getpro__feature h3 {
    margin: 4px 0;
    font-size: 14px;
    font-weight: 600;
}
.wpnph-getpro__feature p {
    margin: 0;
    font-size: 12px;
    color: var(--wpnph-text-muted);
    line-height: 1.5;
}

/* ── Compliance violation list ───────────────────────────────────── */

.wpnph-violations {
    display: flex;
    flex-direction: column;
}
.wpnph-violation {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--wpnph-border);
    align-items: center;
}
.wpnph-violation:last-child { border-bottom: 0; }
.wpnph-violation__sev {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
}
.wpnph-violation__sev--1 { background: var(--wpnph-warn-soft); color: var(--wpnph-warn); }
.wpnph-violation__sev--2 { background: #fee2e2; color: #b91c1c; }
.wpnph-violation__sev--3 { background: #b91c1c; color: #fff; }
.wpnph-violation__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--wpnph-text);
    text-decoration: none;
}
.wpnph-violation__name:hover { color: var(--wpnph-accent); }
.wpnph-violation__sub {
    font-size: 12px;
    color: var(--wpnph-text-muted);
    margin-top: 2px;
}
.wpnph-violation__detail {
    margin-top: 6px;
    font-size: 12px;
    color: var(--wpnph-text);
    line-height: 1.5;
}
.wpnph-violation__detail strong { color: var(--wpnph-text); }
.wpnph-violation__actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* ── Per-category table ──────────────────────────────────────────── */

.wpnph-cattable {
    width: 100%;
    border-collapse: collapse;
}
.wpnph-cattable th,
.wpnph-cattable td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--wpnph-border);
    font-size: 13px;
    text-align: left;
}
.wpnph-cattable thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--wpnph-text-muted);
    background: var(--wpnph-surface-2);
    font-weight: 600;
}
.wpnph-cattable tbody tr:hover { background: var(--wpnph-surface-2); }
.wpnph-cattable input[type="number"],
.wpnph-cattable input[type="text"] {
    padding: 6px 10px;
    border: 1px solid var(--wpnph-border-strong);
    border-radius: 4px;
    font-size: 12px;
    background: #fff;
    width: 100%;
}
.wpnph-cattable input[type="number"] { max-width: 90px; }

/* ── Dashboard widget ────────────────────────────────────────────── */

.wpnph-dwidget__big {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 4px;
    font-variant-numeric: tabular-nums;
}
.wpnph-dwidget__big--err { color: var(--wpnph-error); }
.wpnph-dwidget__big--ok  { color: var(--wpnph-success); }
.wpnph-dwidget__sub {
    font-size: 12px;
    color: var(--wpnph-text-muted);
    margin: 0 0 12px;
}
.wpnph-dwidget__row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid var(--wpnph-border);
    font-size: 12px;
}
.wpnph-dwidget__row:first-of-type { border-top: 0; }
.wpnph-dwidget__row .dashicons { color: var(--wpnph-text-subtle); }

/* ── Product metabox (refresh existing) ──────────────────────────── */

.wpnest-ph-metabox__summary {
    padding: 12px 16px;
    background: var(--wpnph-surface-2);
    border-radius: var(--wpnph-radius-sm);
    font-size: 13px;
    border: 1px solid var(--wpnph-border);
}
.wpnest-ph-metabox__low {
    margin-left: 6px;
    color: var(--wpnph-text);
    font-weight: 600;
}

/* ── License Hub ─────────────────────────────────────────────────── */
/* Inlined here so any plugin enqueueing the design system gets the hub
   styling for free, without an extra HTTP request. */

.wpnest-licenses-hub      { max-width: 1100px; }
.wpnest-licenses-hub__title { margin-bottom: 4px; }
.wpnest-licenses-hub__lede  {
    color: var(--wpnph-text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 24px;
    max-width: 760px;
}

.wpnest-licenses-hub__topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    background: var(--wpnph-surface);
    border: 1px solid var(--wpnph-border);
    border-radius: var(--wpnph-radius-md);
    margin-bottom: 20px;
}

.wpnest-licenses-hub__domain {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.wpnest-licenses-hub__domain-label {
    font-size: 12px;
    color: var(--wpnph-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.wpnest-licenses-hub__domain-code {
    font-size: 14px;
    padding: 6px 12px;
    background: var(--wpnph-surface-2);
    border-radius: 6px;
    color: var(--wpnph-text);
    font-weight: 600;
}
.wpnest-licenses-hub__copy {
    background: transparent;
    border: 1px solid var(--wpnph-border);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    color: var(--wpnph-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 120ms ease;
}
.wpnest-licenses-hub__copy:hover { background: var(--wpnph-surface-2); }
.wpnest-licenses-hub__copy.is-copied {
    color: var(--wpnph-success);
    border-color: #b9e0bf;
    background: var(--wpnph-success-soft);
}
.wpnest-licenses-hub__copy .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.wpnest-licenses-hub__totals {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.wpnest-licenses-hub__total {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}
.wpnest-licenses-hub__total strong { font-size: 16px; font-weight: 700; }
.wpnest-licenses-hub__total--ok   { color: var(--wpnph-success); background: var(--wpnph-success-soft); }
.wpnest-licenses-hub__total--warn { color: var(--wpnph-warn);    background: var(--wpnph-warn-soft); }
.wpnest-licenses-hub__total--err  { color: var(--wpnph-error);   background: var(--wpnph-error-soft); }

.wpnest-licenses-hub__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 16px;
}

.wpnest-license-card {
    background: var(--wpnph-surface);
    border: 1px solid var(--wpnph-border);
    border-radius: var(--wpnph-radius-md);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color 120ms ease, box-shadow 120ms ease;
    position: relative;
}
.wpnest-license-card:hover {
    box-shadow: var(--wpnph-shadow-sm);
    border-color: #c5d9ed;
}
.wpnest-license-card.is-refreshing { opacity: 0.7; }

.wpnest-license-card__head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: start;
}
.wpnest-license-card__icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: var(--wpnph-accent-soft);
    color: var(--wpnph-accent);
    border-radius: 8px;
    font-size: 18px;
}
.wpnest-license-card--ok   .wpnest-license-card__icon { background: var(--wpnph-success-soft); color: var(--wpnph-success); }
.wpnest-license-card--warn .wpnest-license-card__icon { background: var(--wpnph-warn-soft);    color: var(--wpnph-warn); }
.wpnest-license-card--err  .wpnest-license-card__icon { background: var(--wpnph-error-soft);   color: var(--wpnph-error); }

.wpnest-license-card__title h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}
.wpnest-license-card__desc {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--wpnph-text-muted);
    line-height: 1.4;
}

.wpnest-license-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 999px;
    white-space: nowrap;
}
.wpnest-license-card__badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.wpnest-license-card__badge--ok      { color: var(--wpnph-success); background: var(--wpnph-success-soft); }
.wpnest-license-card__badge--warn    { color: var(--wpnph-warn);    background: var(--wpnph-warn-soft); }
.wpnest-license-card__badge--err     { color: var(--wpnph-error);   background: var(--wpnph-error-soft); }
.wpnest-license-card__badge--dev     { color: #1d4ed8;              background: #dbeafe; }
.wpnest-license-card__badge--unknown { color: #4b5563;              background: #f3f4f6; }

.wpnest-license-card__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0;
    padding: 12px 14px;
    background: var(--wpnph-surface-2);
    border-radius: 8px;
}
.wpnest-license-card__meta dt {
    font-size: 11px;
    color: var(--wpnph-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
    margin-bottom: 4px;
}
.wpnest-license-card__meta dd {
    margin: 0;
    font-size: 13px;
    color: var(--wpnph-text);
    font-weight: 500;
}

.wpnest-license-card__hint {
    margin: 0;
    padding: 10px 12px;
    background: var(--wpnph-warn-soft);
    border-left: 3px solid var(--wpnph-warn);
    border-radius: 4px;
    font-size: 12px;
    color: #78350f;
    line-height: 1.5;
}
.wpnest-license-card--err .wpnest-license-card__hint {
    background: var(--wpnph-error-soft);
    border-left-color: #b91c1c;
    color: #7f1d1d;
}
.wpnest-license-card--ok .wpnest-license-card__hint,
.wpnest-license-card--dev .wpnest-license-card__hint {
    background: #f0f9ff;
    border-left-color: #0369a1;
    color: #075985;
}

.wpnest-license-card__actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.wpnest-license-card__refresh {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.wpnest-license-card__refresh.is-spinning .dashicons {
    animation: wpnest-license-spin 1s linear infinite;
}
.wpnest-license-card__actions .button .dashicons,
.wpnest-license-card__actions .wpnph-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 1;
}

.wpnest-license-card__feedback {
    display: block;
    min-height: 16px;
    font-size: 12px;
    color: var(--wpnph-text-muted);
}
.wpnest-license-card__feedback.is-success { color: var(--wpnph-success); }
.wpnest-license-card__feedback.is-error   { color: var(--wpnph-error); }

.wpnest-licenses-hub__footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--wpnph-border);
    color: var(--wpnph-text-muted);
}
.wpnest-licenses-hub__footer .description { font-style: italic; }

.wpnest-licenses-hub__empty {
    background: var(--wpnph-surface);
    border: 1px dashed var(--wpnph-border-strong);
    border-radius: var(--wpnph-radius-md);
    padding: 60px 20px;
    text-align: center;
    color: var(--wpnph-text-muted);
}
.wpnest-licenses-hub__empty .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: var(--wpnph-text-subtle);
    margin-bottom: 12px;
}
.wpnest-licenses-hub__empty h2 { margin: 0 0 8px; color: var(--wpnph-text); }

@keyframes wpnest-license-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@media (max-width: 720px) {
    .wpnest-licenses-hub__topbar {
        flex-direction: column;
        align-items: stretch;
    }
    .wpnest-license-card__meta {
        grid-template-columns: 1fr;
    }
}

/* ── WP Settings API form-table override ─────────────────────────── */
/*
 * RPM Free uses WP's native add_settings_field/do_settings_sections which
 * outputs <table class="form-table"> with built-in spacing. When wrapped
 * in .wpnph-app .wpnph-card we need it to align with our design system.
 */

.wpnph-app .form-table {
    margin: 0;
}
.wpnph-app .form-table > tbody > tr > th,
.wpnph-app .form-table > tbody > tr > td {
    padding: 16px 0;
    border-bottom: 1px solid var(--wpnph-border);
    font-size: 13px;
    line-height: 1.55;
}
.wpnph-app .form-table > tbody > tr:last-child > th,
.wpnph-app .form-table > tbody > tr:last-child > td {
    border-bottom: 0;
}
.wpnph-app .form-table > tbody > tr > th {
    width: 240px;
    color: var(--wpnph-text);
    font-weight: 600;
    padding-right: 24px;
}
.wpnph-app .form-table label {
    color: var(--wpnph-text);
}
.wpnph-app .form-table input[type="text"],
.wpnph-app .form-table input[type="url"],
.wpnph-app .form-table input[type="email"],
.wpnph-app .form-table input[type="number"],
.wpnph-app .form-table input[type="search"],
.wpnph-app .form-table textarea,
.wpnph-app .form-table select {
    padding: 8px 10px;
    border: 1px solid var(--wpnph-border-strong);
    border-radius: var(--wpnph-radius-sm);
    background: #fff;
    font-size: 13px;
    color: var(--wpnph-text);
    box-shadow: none;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
.wpnph-app .form-table input:focus,
.wpnph-app .form-table textarea:focus,
.wpnph-app .form-table select:focus {
    border-color: var(--wpnph-accent);
    box-shadow: 0 0 0 3px var(--wpnph-accent-soft);
    outline: none;
}
.wpnph-app .form-table .description {
    color: var(--wpnph-text-muted);
    font-size: 12px;
    line-height: 1.55;
    margin-top: 6px;
    font-style: normal;
}
.wpnph-app .form-table h2,
.wpnph-app .form-table h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--wpnph-text-muted);
    margin: 28px 0 4px;
}
.wpnph-app h2 + p,
.wpnph-app h3 + p {
    margin-top: 0;
}

/* WP color picker — keep our spacing comfortable */
.wpnph-app .wp-color-result {
    height: 32px;
    line-height: 30px;
}

/* ── Mobile ──────────────────────────────────────────────────────── */

@media (max-width: 782px) {
    .wpnph-app { margin-right: 12px; }
    .wpnph-hero {
        grid-template-columns: 1fr;
        padding: 18px 20px;
    }
    .wpnph-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .wpnph-violation { grid-template-columns: auto 1fr; }
    .wpnph-violation__actions { grid-column: 1 / -1; }
    .wpnph-jumpnav { position: static; }
}

/* ── WPNest Returns dashboard additions ─────────────────────────── */

.wpnest-rfw-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.wpnest-rfw-filters input[type="date"],
.wpnest-rfw-filters input[type="number"],
.wpnest-rfw-filters select {
    padding: 4px 8px;
    border-radius: 4px;
}

.wpnest-rfw-list { margin-top: 16px; }
.wpnest-rfw-list th,
.wpnest-rfw-list td {
    vertical-align: middle;
}
.wpnest-rfw-list__toggle {
    width: 28px;
    height: 28px;
    line-height: 24px;
    text-align: center;
    background: var(--wpnph-surface, #f6f7f7);
    border: 1px solid var(--wpnph-border, #c3c4c7);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
}
.wpnest-rfw-list__details td {
    background: var(--wpnph-surface, #f8f9fa);
    border-top: 0;
}
.wpnest-rfw-list__details-inner {
    padding: 4px 8px 12px;
}
.wpnest-rfw-list__details-inner p { margin: 6px 0; }
.wpnest-rfw-list__status {
    margin-right: 6px;
    max-width: 160px;
}

@media (max-width: 782px) {
    .wpnest-rfw-filters { flex-direction: column; align-items: stretch; }
    .wpnest-rfw-filters input,
    .wpnest-rfw-filters select,
    .wpnest-rfw-filters button { width: 100%; }
}

/* ── Get Pro — extended layout (eyebrow, stats, authority, final CTA) ── */

.wpnph-getpro__eyebrow {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.wpnph-getpro__hero h2 {
    font-size: 28px;
    line-height: 1.25;
    max-width: 640px;
    margin: 0 auto 12px;
}

.wpnph-getpro__hero-actions {
    margin-top: 22px;
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.wpnph-getpro__hero-actions .wpnph-btn { margin-top: 0; }

.wpnph-getpro__hero-secondary {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: underline;
    font-size: 13px;
    font-weight: 500;
}
.wpnph-getpro__hero-secondary:hover,
.wpnph-getpro__hero-secondary:focus {
    color: #fff;
    text-decoration: none;
}

.wpnph-getpro__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.wpnph-getpro__section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 6px 0 -2px;
    color: var(--wpnph-text);
}

.wpnph-getpro__authority h3 {
    margin: 0 0 6px;
    font-size: 16px;
}
.wpnph-getpro__authority p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--wpnph-text);
}

.wpnph-getpro__final {
    text-align: center;
    background: var(--wpnph-surface);
    border: 1px solid var(--wpnph-border);
    border-radius: var(--wpnph-radius-lg);
    padding: 32px 24px;
}
.wpnph-getpro__final h3 {
    margin: 0 0 8px;
    font-size: 22px;
}
.wpnph-getpro__final > p {
    margin: 0 auto 18px;
    color: var(--wpnph-text-muted);
    font-size: 14px;
    line-height: 1.55;
}
.wpnph-getpro__final-cta {
    padding: 12px 28px !important;
    font-size: 15px !important;
    font-weight: 600;
}
.wpnph-getpro__contact {
    margin: 18px 0 0 !important;
    font-size: 12px !important;
    color: var(--wpnph-text-muted) !important;
}
.wpnph-getpro__contact a { color: var(--wpnph-accent); }

@media (max-width: 720px) {
    .wpnph-getpro__hero { padding: 24px 18px; }
    .wpnph-getpro__hero h2 { font-size: 22px; }
    .wpnph-getpro__hero-actions { flex-direction: column; gap: 12px; }
    .wpnph-getpro__final { padding: 24px 16px; }
    .wpnph-getpro__final h3 { font-size: 18px; }
}

/* ── Return Request — detail page ────────────────────────────────── */

.wpnest-rfw-detail__back {
    margin: 0 0 8px;
    font-size: 13px;
}
.wpnest-rfw-detail__back a { text-decoration: none; }
.wpnest-rfw-detail__back a:hover { text-decoration: underline; }

.wpnest-rfw-detail__hero {
    margin-bottom: 18px;
}

.wpnest-rfw-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}
.wpnest-rfw-detail__main { display: grid; gap: 14px; }
.wpnest-rfw-detail__side { position: sticky; top: 60px; }

.wpnest-rfw-detail__customer h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--wpnph-text-muted);
    margin: 18px 0 4px;
}
.wpnest-rfw-detail__customer address {
    font-style: normal;
    margin: 0;
    line-height: 1.5;
    color: var(--wpnph-text);
}
.wpnest-rfw-detail__customer-name { margin: 0 0 4px; font-size: 15px; }
.wpnest-rfw-detail__order-summary { list-style: none; margin: 0; padding: 0; }
.wpnest-rfw-detail__order-summary li { padding: 4px 0; font-size: 13px; color: var(--wpnph-text); }
.wpnest-rfw-detail__order-summary li strong { color: var(--wpnph-text-muted); font-weight: 600; }

.wpnest-rfw-detail__items th,
.wpnest-rfw-detail__items td,
.wpnest-rfw-detail__refund-items th,
.wpnest-rfw-detail__refund-items td,
.wpnest-rfw-detail__refund-list th,
.wpnest-rfw-detail__refund-list td { vertical-align: top; }
.wpnest-rfw-detail__refund-items { margin-bottom: 12px; }

.wpnest-rfw-detail__status-form .wpnph-row { border-bottom: 0; padding: 10px 0; }
.wpnest-rfw-detail__quick { display: inline-flex; gap: 6px; flex-wrap: wrap; }

.wpnest-rfw-detail__feedback {
    margin-top: 10px;
    font-size: 13px;
    min-height: 18px;
}
.wpnest-rfw-detail__feedback.is-error { color: var(--wpnph-error); }
.wpnest-rfw-detail__feedback.is-success { color: var(--wpnph-success); }

.wpnest-rfw-detail__note-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.wpnest-rfw-detail__notes-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.wpnest-rfw-detail__note {
    background: var(--wpnph-surface);
    border: 1px solid var(--wpnph-border);
    border-left: 3px solid var(--wpnph-border-strong);
    border-radius: 6px;
    padding: 10px 14px;
}
.wpnest-rfw-detail__note--customer { border-left-color: var(--wpnph-accent); }
.wpnest-rfw-detail__note-body p { margin: 0 0 6px; line-height: 1.5; }
.wpnest-rfw-detail__note-body p:last-child { margin-bottom: 0; }
.wpnest-rfw-detail__note-meta { margin-top: 6px; font-size: 11px; color: var(--wpnph-text-muted); }
.wpnest-rfw-detail__notes-empty { color: var(--wpnph-text-muted); font-style: italic; }

.wpnest-rfw-detail__history {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: rfw-history;
}
.wpnest-rfw-detail__history-entry {
    position: relative;
    padding: 8px 0 12px 22px;
    border-left: 2px solid var(--wpnph-border);
    margin-left: 6px;
}
.wpnest-rfw-detail__history-entry::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 14px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--wpnph-accent);
    border: 2px solid #fff;
}
.wpnest-rfw-detail__history-when {
    display: block;
    font-size: 11px;
    color: var(--wpnph-text-muted);
    margin-bottom: 2px;
}
.wpnest-rfw-detail__history-line { font-size: 13px; }
.wpnest-rfw-detail__history-line small { color: var(--wpnph-text-muted); }
.wpnest-rfw-detail__history-note { margin-top: 4px; font-size: 12px; color: var(--wpnph-text); background: var(--wpnph-surface); padding: 6px 10px; border-radius: 4px; }

@media (max-width: 960px) {
    .wpnest-rfw-detail__grid { grid-template-columns: 1fr; }
    .wpnest-rfw-detail__side { position: static; }
}

/* ── Custom PDF upload rows in Tools card ───────────────────────── */

.wpnest-rfw-pdf-row {
    border: 1px solid var(--wpnph-border);
    border-radius: var(--wpnph-radius-md);
    padding: 12px 14px;
    margin: 10px 0;
    background: var(--wpnph-surface);
}
.wpnest-rfw-pdf-row__head {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--wpnph-text);
}
.wpnest-rfw-pdf-row__head a { text-decoration: none; }
.wpnest-rfw-pdf-row__head a:hover { text-decoration: underline; }
.wpnest-rfw-pdf-row__body {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
}
.wpnest-rfw-pdf-filename {
    font-size: 12px;
    color: var(--wpnph-text-muted);
    font-family: var(--wpnph-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
}
.wpnest-rfw-pdf-status { color: var(--wpnph-text-muted); }
