:root {
    --wpquotepro-bg: #f5f7fb;
    --wpquotepro-panel: #ffffff;
    --wpquotepro-line: #dbe3ef;
    --wpquotepro-text: #1f2937;
    --wpquotepro-muted: #667085;
    --wpquotepro-primary: #2f6fec;
    --wpquotepro-primary-dark: #2459bc;
    --wpquotepro-success-bg: #eef9f1;
    --wpquotepro-success-text: #117a37;
    --wpquotepro-active-bg: #e8f1ff;
    --wpquotepro-active-text: #235dc5;
    --wpquotepro-inactive-bg: #f1f4f8;
    --wpquotepro-inactive-text: #667085;
    --wpquotepro-shadow: 0 10px 30px rgba(20, 33, 61, 0.06);
    --wpquotepro-radius: 16px;
}

.wpquotepro-wrap {
    margin: 20px 20px 0 0;
}

.wpquotepro-shell {
    max-width: 1280px;
    background: var(--wpquotepro-bg);
    border: 1px solid #e7edf6;
    border-radius: 24px;
    padding: 28px;
    box-sizing: border-box;
}

.wpquotepro-editor-shell {
    max-width: 1080px;
}

.wpquotepro-breadcrumb {
    font-size: 13px;
    color: var(--wpquotepro-muted);
    margin-bottom: 8px;
}

.wpquotepro-breadcrumb span {
    opacity: .65;
    padding: 0 6px;
}

.wpquotepro-page-title {
    margin: 0 0 6px;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--wpquotepro-text);
}

.wpquotepro-subtitle {
    margin: 0;
    color: var(--wpquotepro-muted);
    font-size: 14px;
}

.wpquotepro-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.wpquotepro-primary-btn,
.wpquotepro-secondary-btn {
    border-radius: 12px !important;
    min-height: 42px !important;
    padding: 0 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
}

.wpquotepro-primary-btn {
    background: var(--wpquotepro-primary) !important;
    border-color: var(--wpquotepro-primary) !important;
}

.wpquotepro-primary-btn:hover,
.wpquotepro-primary-btn:focus {
    background: var(--wpquotepro-primary-dark) !important;
    border-color: var(--wpquotepro-primary-dark) !important;
}

.wpquotepro-secondary-btn {
    border-color: var(--wpquotepro-line) !important;
    background: #fff !important;
    color: var(--wpquotepro-text) !important;
}

.wpquotepro-panel {
    background: var(--wpquotepro-panel);
    border: 1px solid var(--wpquotepro-line);
    border-radius: var(--wpquotepro-radius);
    box-shadow: var(--wpquotepro-shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.wpquotepro-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.wpquotepro-mini-card {
    min-height: 130px;
}

.wpquotepro-mini-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--wpquotepro-text);
    margin-bottom: 6px;
}

.wpquotepro-mini-card-meta,
.wpquotepro-mini-card-foot {
    color: var(--wpquotepro-muted);
    font-size: 13px;
}

.wpquotepro-mini-card-value {
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    color: var(--wpquotepro-primary);
    margin: 18px 0 10px;
}

.wpquotepro-filter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 16px 20px;
}

.wpquotepro-inline-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wpquotepro-inline-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpquotepro-select,
.wpquotepro-rule-form select,
.wpquotepro-rule-form input[type="text"],
.wpquotepro-rule-form input[type="number"],
.wpquotepro-rule-form textarea {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid #cfd8e6;
    padding: 10px 14px;
    box-shadow: none;
}

.wpquotepro-rule-form textarea {
    min-height: 110px;
}

.wpquotepro-rules-table-wrap {
    overflow: hidden;
    padding: 0;
}

.wpquotepro-rules-table {
    border: 0;
    box-shadow: none;
}

.wpquotepro-rules-table thead th {
    background: #f9fbfe;
    border-bottom: 1px solid var(--wpquotepro-line);
    color: var(--wpquotepro-text);
    font-size: 13px;
    font-weight: 700;
    padding: 14px 16px;
}

.wpquotepro-rules-table tbody td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid #eef2f7;
}

.wpquotepro-rules-table .col-order {
    width: 70px;
}

.wpquotepro-rules-table .col-status {
    width: 120px;
}

.wpquotepro-rules-table .col-actions {
    width: 260px;
}

.wpquotepro-condition-line,
.wpquotepro-action-line {
    font-size: 16px;
    font-weight: 600;
    color: var(--wpquotepro-text);
}

.wpquotepro-muted,
.wpquotepro-help-text {
    color: var(--wpquotepro-muted);
}

.wpquotepro-help-text {
    margin: 0;
    padding: 16px 20px 20px;
}

.wpquotepro-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wpquotepro-status-pill,
.wpquotepro-source-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
}

.wpquotepro-status-pill.is-active,
.wpquotepro-source-badge {
    background: var(--wpquotepro-active-bg);
    color: var(--wpquotepro-active-text);
}

.wpquotepro-status-pill.is-inactive {
    background: var(--wpquotepro-inactive-bg);
    color: var(--wpquotepro-inactive-text);
}

.wpquotepro-empty-state {
    text-align: center;
    padding: 44px 20px;
}

.wpquotepro-empty-state h3 {
    margin-top: 0;
    font-size: 22px;
}

.wpquotepro-notice {
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.wpquotepro-notice.success {
    background: var(--wpquotepro-success-bg);
    color: var(--wpquotepro-success-text);
    border-color: #ccefd6;
}

.wpquotepro-notice.error {
    background: #fdeceb;
    color: #8a2c22;
    border-color: #f6c9c4;
}

.wpquotepro-connect-block {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.wpquotepro-connect-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.wpquotepro-editor-panel {
    padding: 24px;
}

.wpquotepro-form-top-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.wpquotepro-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wpquotepro-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--wpquotepro-text);
}

.wpquotepro-section-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
    color: var(--wpquotepro-muted);
    margin: 10px 0 12px;
}

.wpquotepro-preview-box {
    border: 1px dashed #c8d5ea;
    background: #f9fbff;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.wpquotepro-preview-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--wpquotepro-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}

.wpquotepro-preview-sentence {
    font-size: 16px;
    color: var(--wpquotepro-text);
}

.wpquotepro-form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.wpquotepro-checkbox-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.wpquotepro-checkbox-field {
    display: flex;
    align-items: center;
}

.wpquotepro-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}

.wpquotepro-side-note h3 {
    margin-top: 0;
}

.wpquotepro-bullet-list {
    margin: 0;
    padding-left: 18px;
    color: var(--wpquotepro-muted);
}

.wpquotepro-bullet-list li + li {
    margin-top: 8px;
}

[data-action-field].is-hidden {
    display: none;
}

@media (max-width: 900px) {
    .wpquotepro-shell {
        padding: 18px;
    }

    .wpquotepro-header-row {
        flex-direction: column;
    }

    .wpquotepro-form-top-grid,
    .wpquotepro-cols-3 {
        grid-template-columns: 1fr;
    }
}

.wpquotepro-conditional-input.is-hidden,
.wpquotepro-rule-form input.is-hidden,
.wpquotepro-rule-form select.is-hidden {
    display: none !important;
}

.wpquotepro-help-text {
    margin-top: 8px;
    font-size: 12px;
    color: var(--wpquotepro-muted);
}

.wpquotepro-value-mode-select {
    margin-bottom: 10px;
}

.wpquotepro-builder-intro-grid {
    display: grid;
    grid-template-columns: 1.3fr .9fr;
    gap: 18px;
    margin-bottom: 18px;
}

.wpquotepro-tip-box {
    border: 1px solid var(--wpquotepro-line);
    background: #fcfdff;
    border-radius: 16px;
    padding: 16px 18px;
}

.wpquotepro-preview-subline {
    margin-top: 10px;
    font-size: 13px;
    color: var(--wpquotepro-muted);
}

.wpquotepro-rule-builder-section {
    border: 1px solid #e9eef6;
    border-radius: 18px;
    background: #fbfcff;
    padding: 18px;
    margin-bottom: 18px;
}

.wpquotepro-cols-2-strong {
    grid-template-columns: 1fr 1.2fr;
}

.wpquotepro-quantity-select-wrap {
    margin-top: 10px;
}

.wpquotepro-advanced-box {
    border: 1px solid var(--wpquotepro-line);
    border-radius: 16px;
    background: #fff;
    margin-top: 6px;
}

.wpquotepro-advanced-box summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 18px;
    font-weight: 700;
    color: var(--wpquotepro-text);
}

.wpquotepro-advanced-box summary::-webkit-details-marker {
    display: none;
}

.wpquotepro-advanced-box summary::after {
    content: '+';
    float: right;
    color: var(--wpquotepro-primary);
    font-size: 18px;
    line-height: 1;
}

.wpquotepro-advanced-box[open] summary::after {
    content: '–';
}

.wpquotepro-advanced-box-inner {
    border-top: 1px solid #eef2f7;
    padding: 0 18px 18px;
}

.offerrtix-compact-list,
.wpquotepro-compact-list {
    margin: 0;
    padding-left: 18px;
}

[data-condition-field].is-hidden {
    display: none;
}

@media (max-width: 900px) {
    .wpquotepro-builder-intro-grid,
    .wpquotepro-cols-2-strong {
        grid-template-columns: 1fr;
    }
}

.wpquotepro-mapping-panel { margin-top: 24px; }
.wpquotepro-inline-help { background:#f6f8fb; border:1px solid #d9e2ef; border-radius:12px; padding:12px 14px; margin-bottom:16px; }
.wpquotepro-mapping-list { display:flex; flex-direction:column; gap:14px; }
.wpquotepro-mapping-card { border:1px solid #d9e2ef; border-radius:14px; padding:16px; background:#fff; }
.wpquotepro-mapping-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.wpquotepro-mapping-grid--small { grid-template-columns:2fr 1fr 1fr auto; margin-top:12px; align-items:end; }
.wpquotepro-form-field--actions { display:flex; align-items:end; }
.wpquotepro-remove-mapping { color:#a00; }
@media (max-width: 960px){ .wpquotepro-mapping-grid, .wpquotepro-mapping-grid--small { grid-template-columns:1fr; } }

/* Modern settings page */
.wpquotepro-settings-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.wpquotepro-settings-grid {
    display: grid;
    gap: 22px;
}

.wpquotepro-settings-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wpquotepro-settings-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wpquotepro-settings-grid-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
}

.wpquotepro-col-3 { grid-column: span 3; }
.wpquotepro-col-6 { grid-column: span 6; }

.wpquotepro-settings-form .wpquotepro-form-field input[type="text"],
.wpquotepro-settings-form .wpquotepro-form-field input[type="email"],
.wpquotepro-settings-form .wpquotepro-form-field input[type="url"],
.wpquotepro-settings-form .wpquotepro-form-field input[type="number"],
.wpquotepro-settings-form .wpquotepro-form-field textarea {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid #cfd8e6;
    padding: 11px 14px;
    color: #344054;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
    font-size: 14px;
}

.wpquotepro-settings-form .wpquotepro-form-field textarea {
    min-height: 86px;
    resize: vertical;
}

.wpquotepro-settings-form .wpquotepro-form-field input:focus,
.wpquotepro-settings-form .wpquotepro-form-field textarea:focus {
    border-color: var(--wpquotepro-primary);
    box-shadow: 0 0 0 3px rgba(47, 111, 236, .12);
    outline: none;
}

.wpquotepro-settings-form .wpquotepro-form-field label {
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 700;
    color: #24324b;
}

.wpquotepro-logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 80px;
}

.wpquotepro-logo-preview-wrap {
    width: 180px;
    height: 76px;
    border: 1px solid #dfe7f2;
    border-radius: 14px;
    background: #f9fbff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.wpquotepro-logo-preview-wrap img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.wpquotepro-logo-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wpquotepro-settings-help {
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid #d6e4ff;
    background: #f3f7ff;
    color: #3360b8;
    padding: 12px 14px;
    line-height: 1.45;
    box-sizing: border-box;
}

.wpquotepro-settings-help code,
.wpquotepro-settings-form .description code {
    background: rgba(47, 111, 236, .08);
    border-radius: 6px;
    padding: 2px 6px;
}

.wpquotepro-settings-form .description {
    margin-top: 9px;
    color: #667085;
    line-height: 1.55;
}

.wpquotepro-settings-actions {
    display: flex;
    justify-content: flex-start;
    padding: 0 0 4px;
}

.wpquotepro-settings-actions .wpquotepro-primary-btn {
    min-height: 48px !important;
    padding: 0 22px !important;
    font-size: 14px !important;
}

@media (max-width: 1100px) {
    .wpquotepro-settings-grid-3,
    .wpquotepro-settings-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .wpquotepro-col-3,
    .wpquotepro-col-6 {
        grid-column: span 6;
    }
}

@media (max-width: 782px) {
    .wpquotepro-settings-grid-3,
    .wpquotepro-settings-grid-2,
    .wpquotepro-settings-grid-12 {
        grid-template-columns: 1fr;
    }
    .wpquotepro-col-3,
    .wpquotepro-col-6 {
        grid-column: auto;
    }
    .wpquotepro-logo-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

.wpquotepro-customer-mapping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.wpquotepro-customer-mapping-row code {
    font-size: 12px;
}

.wpquotepro-status-pill.is-draft {
    background: #fff7ed;
    color: #c2410c;
}

.wpquotepro-status-pill.is-test {
    background: #f5f3ff;
    color: #6d28d9;
}

.wpquotepro-status-pill.is-archived {
    background: #f3f4f6;
    color: #4b5563;
}

/* WPQuotePro MVP Wizard */
.wpquotepro-wizard-shell {
    max-width: 1280px;
}

.wpquotepro-wizard-selector {
    margin-bottom: 18px;
}

.wpquotepro-wizard-current-status {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wpquotepro-wizard-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.wpquotepro-wizard-step {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    min-height: 245px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wpquotepro-wizard-step.is-done {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.wpquotepro-wizard-step.is-open {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.wpquotepro-wizard-step-number {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    background: #111827;
    color: #fff;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.16);
}

.wpquotepro-wizard-step h2 {
    margin: 4px 0 0;
    font-size: 17px;
    line-height: 1.25;
}

.wpquotepro-wizard-step p {
    margin: 0;
    color: #4b5563;
    line-height: 1.45;
    flex: 1;
}

.wpquotepro-wizard-meta {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    background: rgba(255,255,255,0.8);
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 6px 10px;
    width: fit-content;
}

.wpquotepro-wizard-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wpquotepro-wizard-note {
    margin-top: 18px;
}

@media (max-width: 1280px) {
    .wpquotepro-wizard-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .wpquotepro-wizard-grid {
        grid-template-columns: 1fr;
    }
    .wpquotepro-wizard-step {
        min-height: auto;
    }
}

/* WPQuotePro wizard: separate step pages + gated navigation */
.wpquotepro-wizard-progress {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.wpquotepro-wizard-progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid #d8e2ef;
    border-radius: 16px;
    background: #fff;
    color: #1d2939;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.wpquotepro-wizard-progress-step:hover {
    border-color: #2271b1;
    color: #0b5fa5;
}

.wpquotepro-wizard-progress-step.is-current {
    border-color: #2271b1;
    background: linear-gradient(135deg, #f0f7ff, #ffffff);
}

.wpquotepro-wizard-progress-step.is-complete {
    border-color: #89d8a3;
    background: linear-gradient(135deg, #f0fff4, #ffffff);
}

.wpquotepro-wizard-progress-step.is-locked {
    opacity: .48;
    cursor: not-allowed;
    background: #f6f7f7;
    color: #667085;
}

.wpquotepro-wizard-progress-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #eef4ff;
    color: #175cd3;
    font-weight: 800;
    flex: 0 0 auto;
}

.wpquotepro-wizard-progress-step.is-complete .wpquotepro-wizard-progress-number {
    background: #dcfae6;
    color: #067647;
}

.wpquotepro-wizard-step-page {
    padding: 26px;
}

.wpquotepro-validation-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 22px;
    padding: 0;
    list-style: none;
}

.wpquotepro-validation-list li {
    position: relative;
    padding: 13px 16px 13px 42px;
    border-radius: 14px;
    border: 1px solid #e4e7ec;
    background: #fff;
    color: #344054;
    font-weight: 600;
}

.wpquotepro-validation-list li::before {
    content: '•';
    position: absolute;
    left: 17px;
    top: 12px;
    font-size: 18px;
    line-height: 1;
}

.wpquotepro-validation-list li.is-ok {
    border-color: #abefc6;
    background: #f6fef9;
    color: #05603a;
}

.wpquotepro-validation-list li.is-ok::before {
    content: '✓';
}

.wpquotepro-validation-list li.is-error {
    border-color: #fecdca;
    background: #fffbfa;
    color: #b42318;
}

.wpquotepro-validation-list li.is-error::before {
    content: '!';
}

.wpquotepro-validation-list li.is-warning {
    border-color: #fedf89;
    background: #fffcf5;
    color: #b54708;
}

.wpquotepro-validation-list li.is-warning::before {
    content: 'i';
}

.wpquotepro-wizard-actions .button[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

@media (max-width: 1100px) {
    .wpquotepro-wizard-progress {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .wpquotepro-wizard-progress {
        grid-template-columns: 1fr;
    }
}

.wpquotepro-test-actions-panel,
.wpquotepro-panel-lite,
.wpquotepro-test-banner,
.wpquotepro-test-form-panel {
    border: 1px solid #e4e7ec;
    background: #fff;
    border-radius: 16px;
    padding: 18px 20px;
    margin: 18px 0;
}

.wpquotepro-test-actions-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(135deg, #f5f8ff 0%, #ffffff 70%);
}

.wpquotepro-test-actions-panel h3,
.wpquotepro-panel-lite h3 {
    margin: 0 0 6px;
}

.wpquotepro-test-actions-panel p,
.wpquotepro-test-banner p {
    margin: 0;
    color: #475467;
}

.wpquotepro-test-banner {
    border-color: #b2ddff;
    background: #eff8ff;
    color: #175cd3;
}

.wpquotepro-test-form-panel {
    padding: 24px;
}

@media (max-width: 780px) {
    .wpquotepro-test-actions-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Testformulier styling -------------------------------------------------- */
.wpquotepro-test-form-panel {
    max-width: 920px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    box-shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
}

.wpquotepro-test-form-panel > p:first-child {
    margin-top: 0;
}

.wpquotepro-test-form-panel .wpforms-container,
.wpquotepro-test-form-panel .wpcf7,
.wpquotepro-test-form-panel .gform_wrapper {
    max-width: 760px;
    margin: 0 auto !important;
    padding: 8px 0 0;
}

.wpquotepro-test-form-panel form {
    display: block;
    margin: 0;
}

.wpquotepro-test-form-panel label,
.wpquotepro-test-form-panel .wpforms-field-label,
.wpquotepro-test-form-panel .gfield_label {
    display: block;
    margin: 0 0 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.wpquotepro-test-form-panel .wpforms-field,
.wpquotepro-test-form-panel .gfield,
.wpquotepro-test-form-panel .wpcf7-form p,
.wpquotepro-test-form-panel .form-field {
    margin-bottom: 18px;
}

.wpquotepro-test-form-panel input[type="text"],
.wpquotepro-test-form-panel input[type="email"],
.wpquotepro-test-form-panel input[type="tel"],
.wpquotepro-test-form-panel input[type="number"],
.wpquotepro-test-form-panel input[type="url"],
.wpquotepro-test-form-panel input[type="date"],
.wpquotepro-test-form-panel input[type="file"],
.wpquotepro-test-form-panel select,
.wpquotepro-test-form-panel textarea,
.wpquotepro-test-form-panel .wpforms-field-medium,
.wpquotepro-test-form-panel .wpforms-field-large,
.wpquotepro-test-form-panel .ginput_container input,
.wpquotepro-test-form-panel .ginput_container select,
.wpquotepro-test-form-panel .ginput_container textarea,
.wpquotepro-test-form-panel .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-radio):not(.wpcf7-checkbox) {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 44px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    background: #ffffff;
    color: #101828;
    font-size: 15px;
    line-height: 1.4;
    padding: 10px 13px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.wpquotepro-test-form-panel textarea,
.wpquotepro-test-form-panel .ginput_container textarea,
.wpquotepro-test-form-panel .wpforms-field-large textarea {
    min-height: 110px;
    resize: vertical;
}

.wpquotepro-test-form-panel input:focus,
.wpquotepro-test-form-panel select:focus,
.wpquotepro-test-form-panel textarea:focus {
    border-color: #2e90fa !important;
    box-shadow: 0 0 0 4px rgba(46, 144, 250, .16) !important;
    outline: none !important;
}

.wpquotepro-test-form-panel input[type="radio"],
.wpquotepro-test-form-panel input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-height: auto;
    margin: 0 8px 0 0;
    box-shadow: none;
}

.wpquotepro-test-form-panel .wpforms-field ul,
.wpquotepro-test-form-panel .gfield_radio,
.wpquotepro-test-form-panel .gfield_checkbox,
.wpquotepro-test-form-panel .wpcf7-list-item {
    margin: 6px 0 0 !important;
    padding: 0 !important;
    list-style: none;
}

.wpquotepro-test-form-panel .wpforms-field li,
.wpquotepro-test-form-panel .gchoice,
.wpquotepro-test-form-panel .wpcf7-list-item {
    display: flex;
    align-items: center;
    min-height: 32px;
    margin: 4px 0 !important;
    color: #344054;
    font-size: 14px;
}

.wpquotepro-test-form-panel .wpforms-submit-container,
.wpquotepro-test-form-panel .gform_footer,
.wpquotepro-test-form-panel .wpcf7-submit {
    margin-top: 22px;
}

.wpquotepro-test-form-panel button[type="submit"],
.wpquotepro-test-form-panel input[type="submit"],
.wpquotepro-test-form-panel .wpforms-submit,
.wpquotepro-test-form-panel .gform_button,
.wpquotepro-test-form-panel .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #155eef 0%, #7f56d9 100%) !important;
    color: #ffffff !important;
    cursor: pointer;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    padding: 13px 22px !important;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(21, 94, 239, 0.22);
}

.wpquotepro-test-form-panel button[type="submit"]:hover,
.wpquotepro-test-form-panel input[type="submit"]:hover,
.wpquotepro-test-form-panel .wpforms-submit:hover,
.wpquotepro-test-form-panel .gform_button:hover,
.wpquotepro-test-form-panel .wpcf7-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(21, 94, 239, 0.28);
}

.wpquotepro-test-form-panel .wpforms-error,
.wpquotepro-test-form-panel .gfield_validation_message,
.wpquotepro-test-form-panel .validation_message,
.wpquotepro-test-form-panel .wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    color: #b42318;
    font-size: 13px;
    font-weight: 600;
}

.wpquotepro-test-form-panel .wpforms-confirmation-container-full,
.wpquotepro-test-form-panel .gform_confirmation_message,
.wpquotepro-test-form-panel .wpcf7-response-output {
    border: 1px solid #abefc6 !important;
    border-radius: 14px;
    background: #f6fef9 !important;
    color: #05603a !important;
    margin: 16px 0 0 !important;
    padding: 14px 16px !important;
    font-weight: 700;
}

.wpquotepro-test-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    max-width: 760px;
    margin: 0 auto 18px;
    padding: 12px 14px;
    border: 1px solid #d1e9ff;
    border-radius: 14px;
    background: #f0f9ff;
    color: #175cd3;
    font-size: 13px;
    font-weight: 700;
}

.wpquotepro-test-toolbar span:last-child {
    color: #475467;
    font-weight: 600;
}

@media (max-width: 780px) {
    .wpquotepro-test-form-panel {
        padding: 18px 14px;
    }

    .wpquotepro-test-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}
.wpquotepro-template-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 24px;
    line-height: 42px;
}
.wpquotepro-template-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    border-radius: 999px;
    padding: 4px 9px;
    background: #ecfdf5;
    color: #047857;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.wpquotepro-template-category {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.wpquotepro-template-summary {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
}
.wpquotepro-template-summary .dashicons {
    color: #2563eb;
    font-size: 24px;
}
.wpquotepro-template-summary p {
    margin: 4px 0 0;
    color: #475569;
}
.wpquotepro-template-hints {
    margin: 0 0 18px;
    border-left: 4px solid #2563eb;
}
.wpquotepro-template-hints h3 {
    margin-top: 0;
}
.wpquotepro-template-hints ul {
    margin-bottom: 0;
}
.wpquotepro-template-hints li {
    margin: 6px 0;
}

.wpquotepro-template-install-card {
    border: 1px solid #e2e8f0;
    text-align: left;
    width: 100%;
}
.wpquotepro-template-source-label {
    display: block;
    margin-top: 10px;
    font-weight: 700;
    color: #334155;
}
.wpquotepro-template-source-select {
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
}
.wpquotepro-template-source-note {
    margin: 10px 0 0;
    padding: 9px 11px;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
}
.wpquotepro-template-price-panel {
    margin: 0 0 18px;
    border-left: 4px solid #f59e0b;
}
.wpquotepro-template-price-grid {
    display: grid;
    gap: 10px;
}
.wpquotepro-template-price-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 150px 110px;
    gap: 12px;
    align-items: end;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
}
.wpquotepro-template-price-row strong,
.wpquotepro-template-price-row span {
    display: block;
}
.wpquotepro-template-price-row span {
    color: #64748b;
    font-size: 12px;
    margin-top: 3px;
}
.wpquotepro-template-price-row label {
    font-weight: 700;
    color: #334155;
}
.wpquotepro-template-price-row input {
    width: 100%;
    margin-top: 5px;
}
@media (max-width: 900px) {
    .wpquotepro-template-price-row {
        grid-template-columns: 1fr;
    }
}
.wpquotepro-template-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}
.wpquotepro-template-stats span,
.wpquotepro-demo-rule-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-weight: 700;
    font-size: 12px;
}
.wpquotepro-template-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}
.wpquotepro-template-actions .button {
    width: 100%;
    justify-content: center;
    text-align: center;
}
.wpquotepro-demo-shell {
    max-width: 1500px;
}
.wpquotepro-demo-header {
    align-items: flex-start;
    gap: 18px;
}
.wpquotepro-demo-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.wpquotepro-demo-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
    gap: 24px;
    margin-top: 24px;
    align-items: start;
}
.wpquotepro-demo-form-panel,
.wpquotepro-demo-preview-panel {
    min-width: 0;
}
.wpquotepro-demo-form-panel,
.wpquotepro-demo-preview-card,
.wpquotepro-demo-total-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    box-shadow: 0 20px 44px rgba(15, 23, 42, .08);
}
.wpquotepro-demo-form-panel {
    padding: 26px;
    position: sticky;
    top: 44px;
}
.wpquotepro-demo-panel-heading {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 20px;
}
.wpquotepro-demo-panel-heading .dashicons {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 28px;
}
.wpquotepro-demo-panel-heading h2,
.wpquotepro-demo-preview-head h2 {
    margin: 0 0 4px;
    font-size: 20px;
}
.wpquotepro-demo-panel-heading p,
.wpquotepro-demo-preview-head p {
    margin: 0;
    color: #64748b;
}
.wpquotepro-live-demo-form {
    display: grid;
    gap: 14px;
}
.wpquotepro-demo-field {
    display: grid;
    gap: 7px;
    font-weight: 700;
    color: #1e293b;
}
.wpquotepro-demo-field input,
.wpquotepro-demo-field select,
.wpquotepro-demo-field textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 12px 14px;
    min-height: 46px;
    font-size: 15px;
    background: #f8fafc;
}
.wpquotepro-demo-field textarea {
    min-height: 90px;
}
.wpquotepro-demo-preview-panel {
    display: grid;
    gap: 16px;
}
.wpquotepro-demo-total-card {
    padding: 22px 26px;
    background: linear-gradient(135deg, #eff6ff, #f8fafc 55%, #ecfdf5);
}
.wpquotepro-demo-total-card span,
.wpquotepro-demo-total-card em {
    display: block;
    color: #64748b;
    font-style: normal;
}
.wpquotepro-demo-total-card strong {
    display: block;
    margin: 5px 0;
    font-size: 38px;
    line-height: 1.1;
    color: #0f172a;
}
.wpquotepro-demo-preview-card {
    padding: 26px;
}
.wpquotepro-demo-preview-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}
.wpquotepro-demo-status {
    padding: 7px 12px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 800;
    font-size: 12px;
}
.wpquotepro-demo-lines {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}
.wpquotepro-demo-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}
.wpquotepro-demo-line strong,
.wpquotepro-demo-line span,
.wpquotepro-demo-line em {
    display: block;
}
.wpquotepro-demo-line span,
.wpquotepro-demo-line em {
    color: #64748b;
    font-style: normal;
    font-size: 12px;
    margin-top: 3px;
}
.wpquotepro-demo-line > div:last-child {
    text-align: right;
}
.wpquotepro-demo-rules {
    margin: 18px 0;
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
}
.wpquotepro-demo-rules h3,
.wpquotepro-demo-explain h3 {
    margin: 0 0 10px;
    font-size: 15px;
}
.wpquotepro-demo-muted,
.wpquotepro-demo-empty {
    color: #64748b;
}
.wpquotepro-demo-totals {
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
    display: grid;
    gap: 10px;
}
.wpquotepro-demo-totals div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}
.wpquotepro-demo-totals span {
    color: #64748b;
}
.wpquotepro-demo-totals .is-grand {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    font-size: 19px;
}
.wpquotepro-demo-explain {
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}
.wpquotepro-demo-explain p {
    margin: 0;
    white-space: pre-line;
    color: #9a3412;
}
@media (max-width: 1100px) {
    .wpquotepro-demo-grid {
        grid-template-columns: 1fr;
    }
    .wpquotepro-demo-form-panel {
        position: static;
    }
}
@media (max-width: 700px) {
    .wpquotepro-template-actions,
    .wpquotepro-demo-line {
        grid-template-columns: 1fr;
    }
    .wpquotepro-demo-line > div:last-child {
        text-align: left;
    }
    .wpquotepro-demo-total-card strong {
        font-size: 30px;
    }
}

/* WPQuotePro v1.5.33 test submit intercept */
.wpquotepro-manual-test-submit {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e3e9f5;
}
.wpquotepro-test-submit-fallback {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    background: #f7faff;
    border: 1px solid #dbe8ff;
    border-radius: 16px;
    padding: 14px;
}
.wpquotepro-test-submit-fallback p {
    margin: 0;
    color: #64748b;
    max-width: 720px;
}
.wpquotepro-test-log-preview {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}
.wpquotepro-test-log-preview h3 {
    margin: 12px 0 0;
}
.wpquotepro-test-log-preview pre {
    max-height: 360px;
    overflow: auto;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    white-space: pre-wrap;
    word-break: break-word;
}

/* WPQuotePro v1.5.33: use the original form submit button for test processing */
.wpquotepro-hidden-test-submit {
    display: none !important;
}

.wpquotepro-template-card,
.wpquotepro-template-install-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 420px;
    padding: 26px !important;
    border-radius: 22px;
    overflow: hidden;
}

.wpquotepro-template-stats {
    margin-top: 8px !important;
}

.wpquotepro-template-source-label {
    margin-top: 14px !important;
}

.wpquotepro-template-source-select {
    width: 100% !important;
    min-height: 42px;
}

.wpquotepro-template-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 10px !important;
    margin-top: 10px !important;
}

.wpquotepro-template-actions .button,
.wpquotepro-template-actions .wpquotepro-primary-btn,
.wpquotepro-template-actions .wpquotepro-secondary-btn {
    width: 100% !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

@media (max-width: 720px) {
    .wpquotepro-template-card,
    .wpquotepro-template-install-card {
        min-height: auto;
        padding: 22px !important;
    }
    .wpquotepro-template-actions {
        grid-template-columns: 1fr !important;
    }
}

/* WPQuotePro v1.5.36 - full width wizard/template layout fix */
.wpquotepro-wrap {
    width: auto;
    max-width: none;
    margin: 20px 20px 0 0;
}

.wpquotepro-shell,
.wpquotepro-wizard-shell,
.wpquotepro-demo-shell {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.wpquotepro-editor-shell {
    max-width: none;
}

.wpquotepro-template-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    width: 100%;
}

.wpquotepro-template-actions .button,
.wpquotepro-template-actions button,
.wpquotepro-template-actions a.button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    min-height: 44px;
    padding-left: 12px;
    padding-right: 12px;
}

.wpquotepro-template-source-select,
.wpquotepro-template-card select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 720px) {
    .wpquotepro-shell,
    .wpquotepro-wizard-shell,
    .wpquotepro-demo-shell {
        padding: 18px;
        border-radius: 18px;
    }
    .wpquotepro-template-actions {
        grid-template-columns: 1fr;
    }
}

/* Read-only connection status in settings */
.wpquotepro-readonly-box {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid #dbe5f2;
    border-radius: 12px;
    background: #f8fbff;
    color: #334155;
    font-weight: 600;
}

.wpquotepro-template-access-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 960px) {
    .wpquotepro-template-access-grid {
        grid-template-columns: 1fr;
    }
}

.wpquotepro-inline-action-form {
    display: inline-flex;
    margin: 0;
}

.wpquotepro-warning-btn {
    border-color: #f59e0b !important;
    color: #92400e !important;
    background: #fffbeb !important;
}

.wpquotepro-warning-btn:hover,
.wpquotepro-warning-btn:focus {
    border-color: #d97706 !important;
    color: #78350f !important;
    background: #fef3c7 !important;
}

/* Welke formulieren gebruiken deze template ("Mijn templates"-tab) */
.wpquotepro-template-usage {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 2px 0 !important;
    font-size: 12px !important;
}
.wpquotepro-template-usage-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 3px 10px 3px 3px !important;
    border-radius: 999px !important;
    background: #eef2ff !important;
    color: #3730a3 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
.wpquotepro-template-usage-link:hover { background: #e0e7ff !important; }
.wpquotepro-template-usage .wpquotepro-status-pill {
    min-height: auto !important;
    padding: 2px 8px !important;
    font-size: 10px !important;
}

/* Afbeeldingen bij een vraag (Toelichting bij vragen, S5). Eén rij kaartjes met
   een voorbeeld, de alt-tekst en een verwijderknop. */
.wpquotepro-image-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-bottom: 10px !important;
}
.wpquotepro-image-list:empty { margin-bottom: 0 !important; }
.wpquotepro-image-item {
    width: 160px !important;
    padding: 8px !important;
    border: 1px solid #dfe7f2 !important;
    border-radius: 8px !important;
    background: #fff !important;
}
.wpquotepro-image-item img {
    display: block !important;
    width: 100% !important;
    height: 100px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    background: #f5f7fa !important;
}
.wpquotepro-image-item input[type="text"] {
    width: 100% !important;
    margin-top: 6px !important;
    font-size: 12px !important;
}
.wpquotepro-image-item .wpquotepro-remove-image {
    margin-top: 4px !important;
    color: #b32d2e !important;
    font-size: 12px !important;
}

/* ---------------------------------------------------------------------------
   Cijfers voor de ondernemer — het eerste tabblad van "Mijn offertes".
   Zie docs/features/tenant-dashboard.md, onderdeel B.

   Eén afspraak die het hele scherm bij elkaar houdt: getallen zijn het enige
   dat groot mag zijn. Labels, leesregels en randen blijven rustig, anders gaat
   het scherm concurreren met het cijfer waar het om draait.
   --------------------------------------------------------------------------- */

.wpquotepro-stats {
    --wpqp-stat-line: #e8edf6;
    --wpqp-stat-ink: #0f172a;
    --wpqp-stat-soft: #64748b;
    color: var(--wpqp-stat-ink);
}

/* Periodekiezer: één spoor met een verschoven pil, geen vier losse knoppen —
   dat leest als "kies er één" in plaats van "zet er meerdere aan". */
.wpquotepro-segmented {
    display: inline-flex;
    gap: 2px;
    padding: 4px;
    margin-bottom: 22px;
    background: #eef2f9;
    border-radius: 12px;
}

.wpquotepro-segmented .wpquotepro-segment {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    color: var(--wpqp-stat-soft);
    text-decoration: none;
    line-height: 1.2;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.wpquotepro-segmented .wpquotepro-segment:hover {
    color: var(--wpqp-stat-ink);
}

.wpquotepro-segmented .wpquotepro-segment:focus {
    outline: 2px solid var(--wpquotepro-primary);
    outline-offset: 1px;
    box-shadow: none;
}

.wpquotepro-segmented .wpquotepro-segment.is-active {
    background: #fff;
    color: var(--wpqp-stat-ink);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 1px 1px rgba(15, 23, 42, 0.04);
}

.wpquotepro-stats-intro {
    font-size: 13px;
    color: var(--wpqp-stat-soft);
    margin: 0 0 24px;
}

/* Sectiekop met een klein label ernaast: zegt waar het blok over gaat zonder
   er een tweede titel van te maken. */
.wpquotepro-section-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 32px 0 14px;
}

.wpquotepro-section-head h2 {
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--wpqp-stat-ink);
    margin: 0;
    padding: 0;
}

.wpquotepro-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.wpquotepro-card {
    background: #fff;
    border: 1px solid var(--wpqp-stat-line);
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.wpquotepro-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.wpquotepro-kpi-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.wpquotepro-kpi-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.wpquotepro-kpi {
    position: relative;
    background: #fff;
    border: 1px solid var(--wpqp-stat-line);
    border-radius: 14px;
    padding: 18px 20px 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.wpquotepro-kpi:hover {
    transform: translateY(-1px);
    border-color: #d8e1f0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}

/* Het cijfer waar de ondernemer op stuurt krijgt een streepje kleur. Eén per
   blok — worden het er meer, dan valt er niets meer op. */
.wpquotepro-kpi.is-accent::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #4f8bff, #2f6fec);
}

.wpquotepro-kpi-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--wpqp-stat-soft);
    margin-bottom: 10px;
    line-height: 1.3;
}

.wpquotepro-kpi-value {
    font-size: 30px;
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--wpqp-stat-ink);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.wpquotepro-kpi-unit {
    font-size: 18px;
    font-weight: 600;
    color: var(--wpqp-stat-soft);
    margin-left: 1px;
}

/* Een ontbrekend cijfer krijgt bewust niet de maat van een getal: "nog te
   weinig gegevens" is geen meting en moet er ook niet als een meting uitzien. */
.wpquotepro-kpi-empty {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.35;
    padding: 6px 0 2px;
}

.wpquotepro-kpi-foot {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 8px;
    line-height: 1.4;
}

.wpquotepro-kpi-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    line-height: 1.4;
}

.wpquotepro-kpi-change.is-up {
    background: #e9f7ef;
    color: #0f7a3d;
}

.wpquotepro-kpi-change.is-down {
    background: #fdecec;
    color: #b42318;
}

.wpquotepro-kpi-change.is-flat,
.wpquotepro-kpi-change.is-new {
    background: #f1f5f9;
    color: #64748b;
}

/* De trechter. Alle balken op dezelfde schaal, anders lijkt elke stap even
   groot en zie je juist niet waar het stokt. */
.wpquotepro-funnel {
    display: grid;
    gap: 18px;
    margin-top: 14px;
}

.wpquotepro-funnel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 7px;
}

.wpquotepro-funnel-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--wpqp-stat-soft);
}

.wpquotepro-funnel-value {
    font-size: 16px;
    font-weight: 650;
    color: var(--wpqp-stat-ink);
    font-variant-numeric: tabular-nums;
}

.wpquotepro-funnel-track {
    height: 8px;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
}

.wpquotepro-funnel-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.wpquotepro-funnel-fill.is-step-1 { background: linear-gradient(90deg, #a5c3ff, #7ba6fb); }
.wpquotepro-funnel-fill.is-step-2 { background: linear-gradient(90deg, #6098f7, #2f6fec); }
.wpquotepro-funnel-fill.is-step-3 { background: linear-gradient(90deg, #34c98a, #12a06a); }

.wpquotepro-funnel-foot {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 6px;
}

.wpquotepro-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.wpquotepro-pill {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid transparent;
}

.wpquotepro-pill.is-open     { background: #eef4ff; color: #2459bc; border-color: #dbe6fd; }
.wpquotepro-pill.is-rejected { background: #fdecec; color: #b42318; border-color: #fbdada; }
.wpquotepro-pill.is-expired  { background: #f6f7f9; color: #64748b; border-color: #e8edf6; }

/* De leesregels bij de cijfers. Klein, maar niet weggestopt: hier staat dat
   geaccepteerde waarde geen omzet is. */
.wpquotepro-stats-note {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.65;
    margin: 12px 0 0;
    max-width: 74ch;
}

.wpquotepro-stats-warning {
    font-size: 13px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 10px 14px;
    margin: 14px 0 0;
    line-height: 1.5;
}

.wpquotepro-allgood {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #0f7a3d;
}

.wpquotepro-attention-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wpquotepro-attention-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    line-height: 1.5;
}

.wpquotepro-attention-list li:first-child { padding-top: 0; }
.wpquotepro-attention-list li:last-child { border-bottom: none; padding-bottom: 0; }

.wpquotepro-attention-list a {
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.wpquotepro-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 7px;
}

.wpquotepro-dot.is-good { background: #12a06a; box-shadow: 0 0 0 3px rgba(18, 160, 106, 0.14); margin-top: 0; }
.wpquotepro-dot.is-warn { background: #e8912d; box-shadow: 0 0 0 3px rgba(232, 145, 45, 0.14); }
.wpquotepro-dot.is-bad  { background: #d92d20; box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12); }

.wpquotepro-usage-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.wpquotepro-usage-used {
    font-size: 26px;
    font-weight: 650;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.wpquotepro-usage-limit {
    font-size: 14px;
    color: var(--wpqp-stat-soft);
    margin-left: 4px;
}

.wpquotepro-usage-pct {
    font-size: 14px;
    font-weight: 600;
    color: var(--wpqp-stat-soft);
    font-variant-numeric: tabular-nums;
}

.wpquotepro-usage.is-warning {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fffdf6, #fff);
}

.wpquotepro-usage-bar {
    height: 10px;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
}

.wpquotepro-usage-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4f8bff, #2f6fec);
    transition: width 0.4s ease;
}

.wpquotepro-usage-fill.is-warning {
    background: linear-gradient(90deg, #f0a94a, #e8912d);
}

/* Lege staat: geen paniekmelding maar een rustig blok met een volgende stap. */
.wpquotepro-empty-state {
    background: #fff;
    border: 1px solid var(--wpqp-stat-line);
    border-radius: 14px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.wpquotepro-empty-icon {
    font-size: 30px;
    line-height: 1;
    margin-bottom: 14px;
    opacity: 0.75;
}

.wpquotepro-empty-state h2 {
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.01em;
    margin: 0 0 10px;
    padding: 0;
    color: var(--wpqp-stat-ink);
}

.wpquotepro-empty-state p {
    font-size: 14px;
    color: var(--wpqp-stat-soft);
    line-height: 1.6;
    max-width: 62ch;
    margin: 0 auto 10px;
}

.wpquotepro-muted-line {
    color: #94a3b8 !important;
}

.wpquotepro-checklist {
    list-style: none;
    margin: 14px auto 0;
    padding: 0;
    max-width: 62ch;
    text-align: left;
}

.wpquotepro-checklist li {
    position: relative;
    padding: 9px 0 9px 26px;
    font-size: 13.5px;
    color: var(--wpqp-stat-soft);
    line-height: 1.5;
    border-bottom: 1px solid #f1f5f9;
}

.wpquotepro-checklist li:last-child { border-bottom: none; }

.wpquotepro-checklist li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
}

.wpquotepro-cta {
    display: inline-block;
    margin-top: 6px;
    padding: 9px 18px;
    border-radius: 10px;
    background: var(--wpquotepro-primary);
    color: #fff !important;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(47, 111, 236, 0.3);
    transition: background 0.15s ease, transform 0.15s ease;
}

.wpquotepro-cta:hover {
    background: var(--wpquotepro-primary-dark);
    color: #fff !important;
    transform: translateY(-1px);
}

/* Tabel per formulier (US-9). Getallen rechts uitgelijnd en op één breedte,
   anders kun je twee rijen niet met het oog vergelijken en is de tabel voor
   niets. */
.wpquotepro-table-card {
    padding: 6px 8px;
    overflow-x: auto;
}

.wpquotepro-form-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.wpquotepro-form-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
    white-space: nowrap;
}

.wpquotepro-form-table td {
    padding: 14px;
    border-bottom: 1px solid #f4f7fb;
    color: #0f172a;
    vertical-align: middle;
}

.wpquotepro-form-table tbody tr:last-child td {
    border-bottom: none;
}

.wpquotepro-form-table tbody tr:hover td {
    background: #fafcff;
}

.wpquotepro-form-table .wpquotepro-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    white-space: nowrap;
}

.wpquotepro-form-name {
    font-weight: 550;
}

.wpquotepro-rate {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.wpquotepro-rate-value {
    font-weight: 600;
    min-width: 34px;
    text-align: right;
}

.wpquotepro-rate-track {
    display: inline-block;
    width: 64px;
    height: 6px;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
}

.wpquotepro-rate-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #34c98a, #12a06a);
}

@media screen and (max-width: 782px) {
    .wpquotepro-rate-track { display: none; }
}

/* De tabbladen van "Mijn offertes" — onderstreping in plaats van de oude
   dossiermap-randjes. */
.wpquotepro-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 22px 0 24px;
    border-bottom: 1px solid var(--wpqp-stat-line, #e8edf6);
}

.wpquotepro-tabs .wpquotepro-tab-link {
    position: relative;
    display: inline-block;
    padding: 10px 14px 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    border: none;
    background: none;
    box-shadow: none;
    transition: color 0.15s ease;
}

.wpquotepro-tabs .wpquotepro-tab-link:hover {
    color: #0f172a;
}

.wpquotepro-tabs .wpquotepro-tab-link:focus {
    outline: 2px solid var(--wpquotepro-primary);
    outline-offset: -2px;
    box-shadow: none;
}

.wpquotepro-tabs .wpquotepro-tab-link.active {
    color: var(--wpquotepro-primary);
    font-weight: 600;
}

.wpquotepro-tabs .wpquotepro-tab-link.active::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: -1px;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--wpquotepro-primary);
}

.wpquotepro-tab-count {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.wpquotepro-tabs .wpquotepro-tab-link.active .wpquotepro-tab-count {
    background: #e8f1ff;
    color: #2459bc;
}

@media screen and (max-width: 782px) {
    .wpquotepro-kpi-value { font-size: 26px; }
    .wpquotepro-segmented { display: flex; width: 100%; }
    .wpquotepro-segmented .wpquotepro-segment { flex: 1; text-align: center; padding: 8px 6px; }
    .wpquotepro-empty-state { padding: 30px 20px; }
}
