.probpr-provider-cabinet {
    --probpr-primary: #2563eb;
    --probpr-primary-dark: #1d4ed8;
    --probpr-primary-light: #dbeafe;
    --probpr-bg: #f8fafc;
    --probpr-surface: #ffffff;
    --probpr-border: #e2e8f0;
    --probpr-hover: #f1f5f9;
    --probpr-text: #0f172a;
    --probpr-secondary: #475569;
    --probpr-muted: #94a3b8;
    --probpr-success: #16a34a;
    --probpr-warning: #f59e0b;
    --probpr-danger: #dc2626;
    --probpr-info: #0284c7;
    --probpr-radius: 16px;
    --probpr-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);

    width: min(1320px, 100%);
    max-width: none;
    margin: 0 auto;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--probpr-text);
}

.probpr-app-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 780px;
    background: var(--probpr-bg);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--probpr-border);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.probpr-sidebar {
    background: #0f172a;
    color: #ffffff;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.probpr-brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.probpr-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--probpr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.04em;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.probpr-brand-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
}

.probpr-brand-subtitle {
    color: #cbd5e1;
    font-size: 12px;
    margin-top: 3px;
}

.probpr-provider-mini {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

.probpr-provider-mini-label {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.probpr-provider-mini-name {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.probpr-provider-mini-code {
    margin-top: 6px;
    color: #cbd5e1;
    font-size: 12px;
}

.probpr-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.probpr-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 600;
    transition: 0.15s ease;
}

.probpr-nav a:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

.probpr-nav a.is-active {
    background: #ffffff;
    color: #0f172a;
}

.probpr-nav-icon {
    width: 24px;
    text-align: center;
}

.probpr-sidebar-footer {
    margin-top: auto;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.45;
}

.probpr-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.probpr-topbar {
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid var(--probpr-border);
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    backdrop-filter: blur(10px);
}

.probpr-topbar h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.probpr-topbar-subtitle {
    margin-top: 5px;
    color: var(--probpr-secondary);
    font-size: 14px;
}

.probpr-topbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.probpr-content {
    padding: 26px;
}

.probpr-section-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-end;
    margin-bottom: 16px;
}

.probpr-section-head h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.probpr-section-description {
    color: var(--probpr-secondary);
    margin: 5px 0 0 0;
    font-size: 14px;
}

.probpr-panel {
    background: var(--probpr-surface);
    border: 1px solid var(--probpr-border);
    border-radius: var(--probpr-radius);
    box-shadow: var(--probpr-shadow);
    overflow: hidden;
    margin-bottom: 22px;
}

.probpr-panel-head {
    padding: 16px 18px;
    border-bottom: 1px solid var(--probpr-border);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.probpr-panel-head h3 {
    margin: 0;
    font-size: 17px;
    letter-spacing: -0.02em;
}

.probpr-panel-note {
    color: var(--probpr-secondary);
    font-size: 13px;
}

.probpr-table-wrap {
    overflow-x: auto;
}

.probpr-empty {
    padding: 22px;
    color: var(--probpr-secondary);
    font-size: 14px;
}

.probpr-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--probpr-border);
    text-decoration: none;
    background: var(--probpr-surface);
    color: var(--probpr-text);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.probpr-button-primary {
    background: var(--probpr-primary);
    color: #ffffff;
    border-color: var(--probpr-primary);
}

.probpr-button-small {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 9px;
}

.probpr-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 18px 0;
}

.probpr-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--probpr-border);
    background: #ffffff;
    color: var(--probpr-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: 0.15s ease;
}

.probpr-filter-tab:hover {
    border-color: var(--probpr-primary);
    color: var(--probpr-primary);
}

.probpr-filter-tab.is-active {
    background: var(--probpr-primary);
    border-color: var(--probpr-primary);
    color: #ffffff;
}

.probpr-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    font-size: 12px;
    font-weight: 800;
}

.probpr-filter-tab.is-active .probpr-filter-count {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.probpr-row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}


.probpr-provider-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.probpr-provider-card {
    background: var(--probpr-surface);
    border: 1px solid var(--probpr-border);
    border-radius: var(--probpr-radius);
    padding: 18px;
    box-shadow: var(--probpr-shadow);
}

.probpr-provider-card-label {
    color: var(--probpr-secondary);
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 600;
}

.probpr-provider-card-value {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.probpr-provider-section-title {
    margin: 0 0 14px 0;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.probpr-provider-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
    background: var(--probpr-surface);
}

.probpr-provider-table th,
.probpr-provider-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--probpr-border);
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.probpr-provider-table th {
    background: #f8fafc;
    color: var(--probpr-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 800;
}

.probpr-provider-table tbody tr:hover {
    background: var(--probpr-hover);
}

.probpr-provider-table tbody tr:last-child td {
    border-bottom: none;
}

.probpr-provider-section-title + .probpr-provider-table,
.probpr-provider-section-title + p + .probpr-provider-table,
.probpr-provider-table {
    border: 1px solid var(--probpr-border);
    border-radius: var(--probpr-radius);
    overflow: hidden;
    box-shadow: var(--probpr-shadow);
}

.probpr-provider-muted {
    color: var(--probpr-secondary);
}

.probpr-provider-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.probpr-provider-badge-success {
    color: #166534;
    background: #dcfce7;
}

.probpr-provider-badge-warning {
    color: #92400e;
    background: #fef3c7;
}

.probpr-provider-badge-danger {
    color: #991b1b;
    background: #fee2e2;
}

.probpr-provider-badge-info {
    color: #075985;
    background: #e0f2fe;
}

.probpr-provider-badge-muted {
    color: #475569;
    background: #f1f5f9;
}

.probpr-provider-switch select {
    max-width: 260px;
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid var(--probpr-border);
    background: #ffffff;
    padding: 0 10px;
}


.probpr-notice {
    margin: 0 0 16px 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--probpr-border);
    background: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.probpr-notice-success {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.probpr-notice-danger {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.probpr-notice-info {
    background: #e0f2fe;
    border-color: #bae6fd;
    color: #075985;
}

.probpr-event-editor-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
    padding: 20px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 32rem),
        #ffffff;
    border: 1px solid var(--probpr-border);
    box-shadow: var(--probpr-shadow);
}

.probpr-event-editor-eyebrow {
    color: var(--probpr-primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 900;
    margin-bottom: 7px;
}

.probpr-event-editor-hero h3 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.probpr-event-editor-hero p {
    margin: 8px 0 0 0;
    color: var(--probpr-secondary);
    line-height: 1.5;
    max-width: 680px;
}

.probpr-event-editor-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    color: var(--probpr-secondary);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.probpr-event-form {
    display: block;
}

.probpr-event-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.probpr-event-editor-main,
.probpr-event-editor-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.probpr-form-section {
    background: var(--probpr-surface);
    border: 1px solid var(--probpr-border);
    border-radius: var(--probpr-radius);
    padding: 18px;
    box-shadow: var(--probpr-shadow);
}

.probpr-form-section-head {
    margin-bottom: 14px;
}

.probpr-form-section-head h4 {
    margin: 0;
    font-size: 17px;
    letter-spacing: -0.02em;
}

.probpr-form-section-head p {
    margin: 5px 0 0 0;
    color: var(--probpr-secondary);
    font-size: 13px;
    line-height: 1.45;
}

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

.probpr-form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 12px;
}

.probpr-form-grid .probpr-form-field {
    margin-bottom: 0;
}

.probpr-form-field-wide {
    grid-column: 1 / -1;
}

.probpr-form-field label {
    color: var(--probpr-secondary);
    font-size: 13px;
    font-weight: 800;
}

.probpr-form-field label span {
    color: var(--probpr-danger);
}

.probpr-form-field input,
.probpr-form-field select {
    width: 100%;
    min-height: 42px;
    padding: 8px 11px;
    border-radius: 11px;
    border: 1px solid var(--probpr-border);
    background: #ffffff;
    color: var(--probpr-text);
    font: inherit;
    box-shadow: none;
}

.probpr-form-field input:focus,
.probpr-form-field select:focus {
    outline: none;
    border-color: var(--probpr-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.probpr-check-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.probpr-check-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--probpr-border);
    font-size: 13px;
    font-weight: 700;
    color: var(--probpr-text);
}

.probpr-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 18px;
    padding: 16px;
    border-radius: var(--probpr-radius);
    background: #ffffff;
    border: 1px solid var(--probpr-border);
    box-shadow: var(--probpr-shadow);
}

@media (max-width: 1120px) {
    .probpr-event-editor-grid {
        grid-template-columns: 1fr;
    }

    .probpr-event-editor-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}



.probpr-event-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 18px 0;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--probpr-border);
    border-radius: 16px;
    box-shadow: var(--probpr-shadow);
}

.probpr-event-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 12px;
    color: var(--probpr-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: 0.15s ease;
}

.probpr-event-tab:hover {
    background: var(--probpr-hover);
    color: var(--probpr-primary);
}

.probpr-event-tab.is-active {
    background: var(--probpr-primary);
    color: #ffffff;
}

.probpr-workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 18px;
    align-items: start;
}

.probpr-workspace-main,
.probpr-workspace-side {
    min-width: 0;
}

.probpr-stack-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.probpr-stack-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--probpr-border);
    border-radius: 14px;
    background: #ffffff;
}

.probpr-stack-item-main {
    min-width: 0;
}

.probpr-stack-section {
    display: inline-flex;
    margin-bottom: 6px;
    color: var(--probpr-primary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.probpr-small-line {
    margin-top: 4px;
    color: var(--probpr-secondary);
    font-size: 13px;
    line-height: 1.35;
}

.probpr-inline-form {
    display: inline-flex;
    margin: 0;
}

.probpr-form-actions.compact {
    margin-top: 12px;
}


.probpr-action-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    min-width: 150px;
}

.probpr-action-links a {
    color: var(--probpr-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.probpr-action-links a:hover {
    text-decoration: underline;
}

.probpr-head-with-action {
    align-items: flex-start;
}


.probpr-answer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.probpr-answer-box {
    padding: 12px;
    border: 1px solid var(--probpr-border);
    border-radius: 14px;
    background: #ffffff;
}

.probpr-answer-box label {
    display: block;
    margin-bottom: 6px;
    color: var(--probpr-secondary);
    font-size: 12px;
    font-weight: 800;
}

.probpr-answer-box textarea {
    width: 100%;
}

.probpr-check-inline {
    margin-top: 8px;
    color: var(--probpr-text) !important;
    font-size: 13px !important;
}

.probpr-question-form {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--probpr-border);
}


.probpr-workspace-grid.probpr-event-editor-grid {
    align-items: start;
}

.probpr-workspace-main .probpr-form-section,
.probpr-workspace-side .probpr-form-section {
    box-shadow: var(--probpr-shadow);
}

.probpr-workspace-side .probpr-form-section {
    position: sticky;
    top: 18px;
}

.probpr-event-tabs + .probpr-form-section,
.probpr-event-tabs + .probpr-workspace-grid,
.probpr-event-tabs + .probpr-event-form {
    margin-top: 14px;
}

.probpr-form-section-head h4 {
    letter-spacing: -0.01em;
}

@media (max-width: 980px) {
    .probpr-workspace-grid,
    .probpr-event-editor-grid {
        grid-template-columns: 1fr;
    }

    .probpr-app-shell {
        grid-template-columns: 1fr;
    }

    .probpr-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .probpr-nav a {
        white-space: nowrap;
    }

    .probpr-sidebar-footer {
        display: none;
    }

    .probpr-provider-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .probpr-form-grid,
    .probpr-check-grid,
    .probpr-event-editor-side {
        grid-template-columns: 1fr;
    }

    .probpr-event-editor-hero {
        flex-direction: column;
    }

    .probpr-event-editor-status {
        align-items: flex-start;
    }
}

@media (max-width: 620px) {
    .probpr-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .probpr-content {
        padding: 18px;
    }

    .probpr-provider-grid {
        grid-template-columns: 1fr;
    }

    .probpr-provider-table {
        display: block;
        overflow-x: auto;
    }
}
/* Program preview table */
.probpr-program-single {
    display: block;
}

.probpr-program-preview-card {
    overflow: hidden;
}

.probpr-program-empty {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.probpr-program-empty span {
    color: var(--probpr-secondary);
    font-size: 14px;
}

.probpr-program-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--probpr-border);
    border-radius: 16px;
    background: #ffffff;
}

.probpr-program-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.probpr-program-table th {
    padding: 14px 16px;
    text-align: left;
    color: var(--probpr-text);
    font-size: 13px;
    font-weight: 900;
    background: #f8fafc;
    border-bottom: 1px solid var(--probpr-border);
    white-space: nowrap;
}

.probpr-program-table td {
    padding: 14px 16px;
    vertical-align: top;
    border-bottom: 1px solid var(--probpr-border);
}

.probpr-program-table tbody tr:last-child td {
    border-bottom: 0;
}

.probpr-program-section-row td {
    padding: 12px 16px;
    background: #eff6ff;
    border-left: 4px solid var(--probpr-primary);
}

.probpr-program-section-row strong {
    display: inline-flex;
    color: var(--probpr-text);
    font-size: 14px;
    font-weight: 900;
}

.probpr-program-section-row span {
    display: block;
    margin-top: 3px;
    color: var(--probpr-secondary);
    font-size: 13px;
}

.probpr-program-time-col {
    width: 130px;
}

.probpr-program-time {
    color: var(--probpr-text);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.probpr-program-lecturer {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-width: 220px;
}

.probpr-program-avatar,
.probpr-program-avatar-placeholder {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 12px;
    object-fit: cover;
}

.probpr-program-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--probpr-primary-light);
    color: var(--probpr-primary-dark);
    font-weight: 900;
}

.probpr-program-lecturer strong {
    display: block;
    color: var(--probpr-text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.3;
}

.probpr-program-lecturer span,
.probpr-program-lecturer small {
    display: block;
    margin-top: 3px;
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1.35;
}

.probpr-program-topic strong {
    display: block;
    color: var(--probpr-text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
}

.probpr-program-topic p {
    margin: 5px 0 0 0;
    color: var(--probpr-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.probpr-program-actions-col {
    width: 150px;
}

.probpr-program-row-actions {
    align-items: flex-start;
}

@media (max-width: 760px) {
    .probpr-program-table {
        min-width: 680px;
    }
}
/* Lightweight preview sections: lecturers, access, tests */
.probpr-preview-single {
    display: block;
}

.probpr-preview-card {
    overflow: hidden;
}

.probpr-preview-empty {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.probpr-preview-empty span {
    color: var(--probpr-secondary);
    font-size: 14px;
}

.probpr-preview-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--probpr-border);
    border-radius: 16px;
    background: #ffffff;
}

.probpr-preview-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

.probpr-preview-table th {
    padding: 14px 16px;
    text-align: left;
    color: var(--probpr-text);
    font-size: 13px;
    font-weight: 900;
    background: #f8fafc;
    border-bottom: 1px solid var(--probpr-border);
    white-space: nowrap;
}

.probpr-preview-table td {
    padding: 14px 16px;
    vertical-align: top;
    border-bottom: 1px solid var(--probpr-border);
    color: var(--probpr-text);
    font-size: 14px;
}

.probpr-preview-table tbody tr:last-child td {
    border-bottom: 0;
}

.probpr-preview-table td strong {
    display: block;
    color: var(--probpr-text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
}

.probpr-muted-line {
    display: block;
    margin-top: 4px;
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1.4;
}

.probpr-preview-actions-col {
    width: 150px;
}

.probpr-preview-row-actions {
    align-items: flex-start;
}

.probpr-person-cell {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-width: 230px;
}

.probpr-person-avatar,
.probpr-person-avatar-placeholder {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 12px;
    object-fit: cover;
}

.probpr-person-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--probpr-primary-light);
    color: var(--probpr-primary-dark);
    font-weight: 900;
}

.probpr-person-cell span {
    display: block;
    margin-top: 3px;
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1.35;
}

@media (max-width: 760px) {
    .probpr-preview-table {
        min-width: 700px;
    }
}
/* Centered add/edit forms */
.probpr-form-page {
    max-width: 980px;
    margin: 0 auto;
}

.probpr-form-page-wide {
    max-width: 1180px;
}

.probpr-form-page-inner {
    max-width: 980px;
    margin: 0 auto;
}

.probpr-form-page-actions {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 14px;
}

.probpr-form-page > .probpr-form-section,
.probpr-form-page-inner > .probpr-question-form {
    box-shadow: var(--probpr-shadow);
}

.probpr-form-page .probpr-form-section,
.probpr-form-page-inner .probpr-question-form {
    background: var(--probpr-surface);
    border: 1px solid var(--probpr-border);
    border-radius: 18px;
}

.probpr-form-page-inner .probpr-question-form {
    padding: 18px;
}
/* Dynamic answer builder */
.probpr-answer-block {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid var(--probpr-border);
    border-radius: 18px;
    background: #f8fafc;
}

.probpr-answer-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.probpr-answer-block-head strong {
    color: var(--probpr-text);
    font-size: 15px;
    font-weight: 900;
}

.probpr-answer-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.probpr-answer-box {
    padding: 14px;
    border: 1px solid var(--probpr-border);
    border-radius: 16px;
    background: #ffffff;
}

.probpr-answer-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.probpr-answer-box-head strong {
    color: var(--probpr-text);
    font-size: 14px;
    font-weight: 900;
}

.probpr-answer-box textarea {
    width: 100%;
    min-height: 78px;
}

.probpr-answer-remove {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--probpr-danger);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    padding: 4px 0;
}

.probpr-answer-remove:hover {
    text-decoration: underline;
}

.probpr-answer-help {
    margin-top: 10px;
    color: var(--probpr-secondary);
    font-size: 13px;
    line-height: 1.45;
}
/* Single test card */
.probpr-test-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--probpr-border);
    border-radius: 18px;
    background: #ffffff;
}

.probpr-test-card-main h3 {
    margin: 0 0 8px;
    color: var(--probpr-text);
    font-size: 20px;
    line-height: 1.25;
}

.probpr-test-card-main p {
    margin: 0;
    color: var(--probpr-secondary);
    line-height: 1.5;
}

.probpr-test-card-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 160px;
}

.probpr-test-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.probpr-test-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid var(--probpr-border);
    border-radius: 999px;
    background: var(--probpr-bg);
    color: var(--probpr-secondary);
    font-size: 13px;
    font-weight: 700;
}

.probpr-test-metrics strong {
    color: var(--probpr-text);
    font-size: 14px;
}

.probpr-test-actions {
    margin-top: 14px;
}

@media (max-width: 760px) {
    .probpr-test-card {
        flex-direction: column;
    }

    .probpr-test-card-side {
        align-items: flex-start;
        min-width: 0;
    }
}
/* Tests tab in program style */
.probpr-test-program-card {
    overflow: hidden;
}

.probpr-test-program-table-wrap,
.probpr-test-results-table-wrap {
    margin-top: 14px;
}

.probpr-test-program-table .probpr-program-topic strong {
    font-size: 15px;
}

.probpr-test-status-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.probpr-test-number-main {
    color: var(--probpr-text);
    font-size: 20px;
    line-height: 1.1;
    font-weight: 900;
}

.probpr-test-program-table td,
.probpr-test-results-table td {
    vertical-align: middle;
}

.probpr-test-actions {
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .probpr-test-program-table-wrap,
    .probpr-test-results-table-wrap {
        overflow-x: auto;
    }

    .probpr-test-program-table,
    .probpr-test-results-table {
        min-width: 860px;
    }
}
/* Tests actions moved into table */
.probpr-test-program-table .probpr-program-actions-col {
    width: 280px;
}

.probpr-test-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.probpr-test-actions .probpr-button-small {
    white-space: nowrap;
}
/* Safe destructive actions */
.probpr-button-danger-soft {
    border-color: rgba(220, 38, 38, 0.22);
    background: rgba(220, 38, 38, 0.06);
    color: var(--probpr-danger);
}

.probpr-button-danger-soft:hover {
    border-color: rgba(220, 38, 38, 0.36);
    background: rgba(220, 38, 38, 0.1);
    color: var(--probpr-danger);
}
/* Dashboard extracted tab */
.probpr-dashboard {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.probpr-dashboard-head {
    align-items: flex-start;
}

.probpr-dashboard-period {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    padding: 10px 14px;
    border: 1px solid var(--probpr-border);
    border-radius: 14px;
    background: var(--probpr-surface);
    box-shadow: var(--probpr-shadow);
}

.probpr-dashboard-period span {
    color: var(--probpr-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.probpr-dashboard-period strong {
    color: var(--probpr-text);
    font-size: 14px;
}

.probpr-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.probpr-dashboard-card {
    padding: 18px;
    border: 1px solid var(--probpr-border);
    border-radius: 18px;
    background: var(--probpr-surface);
    box-shadow: var(--probpr-shadow);
}

.probpr-dashboard-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--probpr-secondary);
    font-size: 13px;
    font-weight: 800;
}

.probpr-dashboard-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: var(--probpr-primary-light);
}

.probpr-dashboard-card-value {
    margin-top: 12px;
    color: var(--probpr-text);
    font-size: 28px;
    line-height: 1.1;
    font-weight: 900;
}

.probpr-dashboard-card-note {
    margin-top: 8px;
    color: var(--probpr-muted);
    font-size: 13px;
    font-weight: 700;
}

.probpr-dashboard-panels {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.probpr-dashboard-panel {
    overflow: hidden;
}

.probpr-dashboard-events-wrap {
    margin-top: 12px;
}

.probpr-dashboard-events-table td {
    vertical-align: middle;
}

@media (max-width: 1100px) {
    .probpr-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .probpr-dashboard-head {
        flex-direction: column;
        gap: 12px;
    }

    .probpr-dashboard-period {
        align-items: flex-start;
        width: 100%;
    }

    .probpr-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .probpr-dashboard-events-wrap {
        overflow-x: auto;
    }

    .probpr-dashboard-events-table {
        min-width: 860px;
    }
}
/* Provider title spacing and long legal names */
.probpr-topbar-context {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.probpr-topbar-label {
    display: block;
    color: var(--probpr-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.probpr-topbar-provider {
    display: block;
    color: var(--probpr-text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.probpr-provider-mini-name,
.probpr-provider-mini-code {
    overflow-wrap: anywhere;
}
/* Events extracted tab */
.probpr-events-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.probpr-events-head {
    align-items: flex-start;
}

.probpr-events-card {
    overflow: hidden;
}

.probpr-events-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding: 10px 14px;
    border: 1px solid var(--probpr-border);
    border-radius: 14px;
    background: var(--probpr-surface);
}

.probpr-events-summary span {
    color: var(--probpr-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.probpr-events-summary strong {
    color: var(--probpr-text);
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
}

.probpr-events-filter-tabs {
    margin-bottom: 2px;
}

.probpr-events-table-wrap {
    margin-top: 12px;
}

.probpr-events-table td {
    vertical-align: middle;
}

.probpr-event-title-cell strong {
    overflow-wrap: anywhere;
}

.probpr-event-date-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 132px;
}

.probpr-event-date-cell strong {
    color: var(--probpr-text);
    font-size: 13px;
    font-weight: 800;
}

.probpr-event-date-cell span {
    color: var(--probpr-muted);
    font-size: 12px;
    font-weight: 700;
}

.probpr-events-actions {
    max-width: 360px;
}

.probpr-events-actions .probpr-button-small {
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .probpr-events-table-wrap {
        overflow-x: auto;
    }

    .probpr-events-table {
        min-width: 1040px;
    }
}

@media (max-width: 720px) {
    .probpr-events-head {
        flex-direction: column;
        gap: 12px;
    }

    .probpr-events-summary {
        align-items: flex-start;
        width: 100%;
    }
}
/* Events compact links update */
.probpr-events-table .probpr-program-actions-col {
    width: 360px;
}

.probpr-events-action-links {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    max-width: 360px;
    line-height: 1.35;
}

.probpr-events-action-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--probpr-secondary);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.probpr-events-action-links a:hover {
    color: var(--probpr-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.probpr-events-action-links a.is-primary {
    color: var(--probpr-primary);
}

.probpr-events-action-links a:not(:last-child)::after {
    content: "·";
    margin-left: 10px;
    color: var(--probpr-muted);
    text-decoration: none;
}

@media (max-width: 1100px) {
    .probpr-events-action-links {
        max-width: none;
    }
}
/* Events clean compact table update */
.probpr-events-panel-head {
    align-items: flex-start;
}

.probpr-events-panel-head h3 {
    margin-bottom: 4px;
}

.probpr-events-card {
    overflow: hidden;
}

.probpr-events-table-wrap {
    margin-top: 0;
}

.probpr-events-table {
    min-width: 1120px;
    table-layout: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.probpr-events-table th,
.probpr-events-table td {
    vertical-align: middle;
}

.probpr-events-table th:nth-child(1),
.probpr-events-table td:nth-child(1) {
    width: 28%;
    min-width: 260px;
}

.probpr-events-table th:nth-child(2),
.probpr-events-table td:nth-child(2) {
    width: 150px;
    min-width: 150px;
}

.probpr-events-table th:nth-child(3),
.probpr-events-table td:nth-child(3) {
    width: 130px;
    min-width: 130px;
}

.probpr-events-table th:nth-child(4),
.probpr-events-table td:nth-child(4),
.probpr-events-table th:nth-child(5),
.probpr-events-table td:nth-child(5),
.probpr-events-table th:nth-child(6),
.probpr-events-table td:nth-child(6) {
    width: 88px;
    min-width: 88px;
}

.probpr-events-table th:nth-child(7),
.probpr-events-table td:nth-child(7) {
    width: 110px;
    min-width: 110px;
}

.probpr-events-table th:nth-child(8),
.probpr-events-table td:nth-child(8) {
    width: 300px;
    min-width: 300px;
}

.probpr-event-title-cell strong {
    display: block;
    color: var(--probpr-text);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
    overflow-wrap: normal;
    word-break: normal;
}

.probpr-event-title-cell small {
    display: block;
    margin-top: 5px;
    color: var(--probpr-muted);
    font-size: 13px;
    line-height: 1.25;
}

.probpr-event-date-cell {
    min-width: 0;
}

.probpr-event-date-cell strong {
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
}

.probpr-event-date-cell span {
    font-size: 12px;
    line-height: 1.25;
    white-space: nowrap;
}

.probpr-events-action-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    min-width: 0;
    max-width: none;
    white-space: nowrap;
}

.probpr-events-action-links a {
    display: inline-flex;
    align-items: center;
    color: var(--probpr-secondary);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
}

.probpr-events-action-links a:hover {
    color: var(--probpr-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.probpr-events-action-links a.is-primary {
    color: var(--probpr-primary);
}

.probpr-events-action-links a:not(:last-child)::after {
    content: "·";
    margin: 0 8px;
    color: var(--probpr-muted);
    text-decoration: none;
}

@media (max-width: 1200px) {
    .probpr-events-table {
        min-width: 1180px;
    }
}
/* Events short table v11.14 */
.probpr-events-table {
    min-width: 860px;
}

.probpr-events-table th:nth-child(1),
.probpr-events-table td:nth-child(1) {
    width: 42%;
    min-width: 320px;
}

.probpr-events-table th:nth-child(2),
.probpr-events-table td:nth-child(2) {
    width: 160px;
    min-width: 150px;
}

.probpr-events-table th:nth-child(3),
.probpr-events-table td:nth-child(3) {
    width: 110px;
    min-width: 100px;
}

.probpr-events-table th:nth-child(4),
.probpr-events-table td:nth-child(4) {
    width: 115px;
    min-width: 105px;
}

.probpr-events-table th:nth-child(5),
.probpr-events-table td:nth-child(5) {
    width: 270px;
    min-width: 250px;
}

.probpr-event-title-cell strong {
    font-size: 15px;
    line-height: 1.35;
}

.probpr-event-title-cell small {
    color: var(--probpr-secondary);
    font-weight: 700;
}

.probpr-events-action-links-early {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 5px 12px;
    align-items: center;
    max-width: 280px;
    min-width: 0;
    line-height: 1.35;
    white-space: normal;
}

.probpr-events-action-links-early a {
    display: inline-flex;
    color: var(--probpr-primary);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
}

.probpr-events-action-links-early a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.probpr-events-action-links-early a:not(:last-child)::after {
    content: "";
    margin: 0;
}

@media (max-width: 1200px) {
    .probpr-events-table {
        min-width: 920px;
    }
}
/* Events 4-column layout v11.15 */
.probpr-events-table {
    min-width: 760px;
}

.probpr-events-table th:nth-child(1),
.probpr-events-table td:nth-child(1) {
    width: 170px;
    min-width: 160px;
}

.probpr-events-table th:nth-child(2),
.probpr-events-table td:nth-child(2) {
    width: auto;
    min-width: 360px;
}

.probpr-events-table th:nth-child(3),
.probpr-events-table td:nth-child(3) {
    width: 120px;
    min-width: 110px;
}

.probpr-events-table th:nth-child(4),
.probpr-events-table td:nth-child(4) {
    width: 300px;
    min-width: 280px;
}

.probpr-event-payments-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.probpr-event-payments-cell strong {
    color: var(--probpr-text);
    font-size: 16px;
    line-height: 1;
    font-weight: 900;
}

.probpr-event-payments-cell span {
    color: var(--probpr-secondary);
    font-size: 13px;
    font-weight: 700;
}

.probpr-events-action-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: center;
    max-width: 300px;
    line-height: 1.25;
}

.probpr-events-action-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 8px;
    border: 1px solid var(--probpr-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--probpr-secondary);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.probpr-events-action-menu a:hover {
    color: var(--probpr-primary);
    border-color: rgba(37, 99, 235, 0.3);
    background: var(--probpr-primary-light);
    text-decoration: none;
}

.probpr-events-action-menu a.is-primary {
    color: #ffffff;
    border-color: var(--probpr-primary);
    background: var(--probpr-primary);
}

@media (max-width: 1100px) {
    .probpr-events-table {
        min-width: 900px;
    }
}
/* Event specialties field */
.probpr-specialties-field {
    grid-column: 1 / -1;
}

.probpr-specialties-select {
    width: 100%;
    min-height: 220px;
    padding: 10px 12px;
    border: 1px solid var(--probpr-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--probpr-text);
    font-size: 14px;
    line-height: 1.35;
}

.probpr-specialties-select optgroup {
    color: var(--probpr-secondary);
    font-weight: 900;
}

.probpr-specialties-select option {
    padding: 4px 6px;
    color: var(--probpr-text);
    font-weight: 600;
}

.probpr-field-help {
    margin: 7px 0 0;
    color: var(--probpr-muted);
    font-size: 12px;
    line-height: 1.35;
}
/* Specialty tree selector like superadmin */
.probpr-specialties-field {
    grid-column: 1 / -1;
}

.probpr-specialties-tree {
    width: 100%;
}

.probpr-specialties-tree-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.probpr-specialties-search {
    flex: 1 1 auto;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--probpr-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--probpr-text);
    font-size: 14px;
}

.probpr-specialties-selected-count {
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 1px solid var(--probpr-border);
    border-radius: 999px;
    background: var(--probpr-primary-light);
    color: var(--probpr-primary);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.probpr-specialties-tree-box {
    max-height: 360px;
    overflow: auto;
    padding: 14px;
    border: 1px solid var(--probpr-border);
    border-radius: 16px;
    background: #ffffff;
}

.probpr-specialty-group {
    margin-bottom: 10px;
}

.probpr-specialty-group:last-child {
    margin-bottom: 0;
}

.probpr-specialty-group.is-hidden,
.probpr-specialty-option.is-hidden {
    display: none;
}

.probpr-specialty-group-label,
.probpr-specialty-option {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    cursor: pointer;
    color: var(--probpr-text);
}

.probpr-specialty-group-label {
    min-height: 30px;
    font-weight: 900;
}

.probpr-specialty-group-label input,
.probpr-specialty-option input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex: 0 0 auto;
}

.probpr-specialty-group-label span,
.probpr-specialty-option span {
    line-height: 1.35;
}

.probpr-specialty-group-label small {
    margin-left: 2px;
    color: var(--probpr-muted);
    font-size: 12px;
    font-weight: 800;
}

.probpr-specialty-options {
    margin-top: 7px;
    padding-left: 25px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 16px;
}

.probpr-specialty-option {
    min-height: 26px;
    color: var(--probpr-secondary);
    font-size: 14px;
    font-weight: 650;
}

.probpr-specialty-option:hover {
    color: var(--probpr-primary);
}

.probpr-field-help {
    margin: 8px 0 0;
    color: var(--probpr-muted);
    font-size: 12px;
    line-height: 1.35;
}

@media (max-width: 820px) {
    .probpr-specialties-tree-head {
        flex-direction: column;
        align-items: stretch;
    }

    .probpr-specialties-selected-count {
        width: fit-content;
    }

    .probpr-specialty-options {
        grid-template-columns: 1fr;
    }
}
/* Event specialties selector: admin-like hierarchy */
.probpr-specialties-field {
    grid-column: 1 / -1;
}

.probpr-specialties-field > label {
    margin-bottom: 8px;
}

.probpr-specialty-search {
    width: 100%;
    max-width: 560px;
    min-height: 42px;
    margin-bottom: 12px;
    padding: 8px 12px;
    border: 1px solid var(--probpr-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--probpr-text);
    font-size: 14px;
}

.probpr-specialties-box {
    max-width: 100%;
    max-height: 430px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--probpr-border);
    border-radius: 14px;
    background: #ffffff;
}

.probpr-specialty-row {
    margin: 4px 0;
}

.probpr-specialty-group {
    padding: 5px 0;
}

.probpr-specialty-group-title {
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--probpr-text);
    font-weight: 850;
    line-height: 1.35;
    cursor: pointer;
}

.probpr-specialty-group-title input,
.probpr-specialty-item input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex: 0 0 auto;
}

.probpr-specialty-item label {
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--probpr-secondary);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    cursor: pointer;
}

.probpr-specialty-item label:hover {
    color: var(--probpr-primary);
}

.probpr-specialty-level-1 {
    margin-left: 0;
}

.probpr-specialty-level-2 {
    margin-left: 22px;
}

.probpr-specialty-level-3 {
    margin-left: 44px;
}

.probpr-specialty-item {
    margin-left: 44px;
}

.probpr-specialty-help {
    margin: 8px 0 0;
    color: var(--probpr-muted);
    font-size: 12px;
    line-height: 1.35;
}

.probpr-specialty-row.is-hidden {
    display: none;
}

@media (max-width: 780px) {
    .probpr-specialty-level-2 {
        margin-left: 14px;
    }

    .probpr-specialty-level-3,
    .probpr-specialty-item {
        margin-left: 28px;
    }
}
/* Specialty typography fix v11.15 */
.probpr-specialty-group-title {
    font-weight: 850;
}

.probpr-specialty-item label {
    font-weight: 400;
}

.probpr-specialty-item label span,
.probpr-specialty-item {
    font-weight: 400;
}

.probpr-specialty-item input:checked + span {
    font-weight: 500;
}
/* Events actions vertical compact v11.17 */
.probpr-event-actions-vertical {
    min-width: 110px;
}

.probpr-event-actions-vertical a {
    display: block;
    width: fit-content;
    margin: 0 0 4px;
    color: var(--probpr-primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.probpr-event-actions-vertical a:last-child {
    margin-bottom: 0;
}

.probpr-event-actions-vertical a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
/* Generic table vertical actions */
.probpr-table-actions-vertical {
    min-width: 110px;
}

.probpr-table-actions-vertical a {
    display: block;
    width: fit-content;
    margin: 0 0 4px;
    color: var(--probpr-primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.probpr-table-actions-vertical a:last-child {
    margin-bottom: 0;
}

.probpr-table-actions-vertical a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
/* CRM edit form layout fix v11.19 */
.probpr-panel > form.probpr-event-form {
    padding: 22px;
    box-sizing: border-box;
}

.probpr-panel > form.probpr-event-form .probpr-form-grid {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.probpr-panel > form.probpr-event-form .probpr-form-field {
    min-width: 0;
    box-sizing: border-box;
}

.probpr-panel > form.probpr-event-form .probpr-form-field label {
    display: block;
    margin: 0 0 8px;
    line-height: 1.25;
}

.probpr-panel > form.probpr-event-form input,
.probpr-panel > form.probpr-event-form select,
.probpr-panel > form.probpr-event-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.probpr-panel > form.probpr-event-form .probpr-form-actions {
    margin: 22px -22px -22px;
    padding: 20px 22px;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .probpr-panel > form.probpr-event-form {
        padding: 16px;
    }

    .probpr-panel > form.probpr-event-form .probpr-form-actions {
        margin: 18px -16px -16px;
        padding: 16px;
    }
}
/* Settings tabs and legal links editor v11.21 */
.probpr-settings-tabs {
    display: grid;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    gap: 10px;
    margin: 18px 0 22px;
}

.probpr-settings-tab {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 70px;
    padding: 13px 14px;
    border: 1px solid var(--probpr-border);
    border-radius: 16px;
    background: #ffffff;
    color: var(--probpr-text);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.probpr-settings-tab:hover {
    border-color: rgba(37, 99, 235, 0.35);
    background: var(--probpr-primary-light);
    color: var(--probpr-text);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.probpr-settings-tab.is-active {
    border-color: var(--probpr-primary);
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.14);
}

.probpr-settings-tab-title {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
}

.probpr-settings-tab small {
    color: var(--probpr-secondary);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
}

.probpr-settings-form {
    padding: 22px;
    box-sizing: border-box;
}

.probpr-settings-link-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.probpr-settings-link-row {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid var(--probpr-border);
}

.probpr-settings-link-row:last-child {
    border-bottom: 0;
}

.probpr-settings-link-row label {
    margin-top: 10px;
    color: var(--probpr-text);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.3;
}

.probpr-settings-link-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.probpr-settings-link-control input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.probpr-settings-link-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 999px;
    background: var(--probpr-primary-light);
    color: var(--probpr-primary);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.probpr-settings-link-open:hover {
    border-color: var(--probpr-primary);
    text-decoration: none;
}

.probpr-settings-link-empty {
    color: var(--probpr-muted);
    font-weight: 800;
}

.probpr-settings-actions {
    margin: 20px -22px -22px;
    padding: 20px 22px;
}

@media (max-width: 1180px) {
    .probpr-settings-tabs {
        grid-template-columns: repeat(4, minmax(140px, 1fr));
    }
}

@media (max-width: 780px) {
    .probpr-settings-tabs {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }

    .probpr-settings-form {
        padding: 16px;
    }

    .probpr-settings-link-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .probpr-settings-link-row label {
        margin-top: 0;
    }

    .probpr-settings-link-control {
        grid-template-columns: 1fr;
    }

    .probpr-settings-actions {
        margin: 18px -16px -16px;
        padding: 16px;
    }
}
/* Settings team inner tabs v11.22 */
.probpr-team-panel-body {
    padding: 18px 22px 22px;
    box-sizing: border-box;
}

.probpr-settings-subtabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}

.probpr-settings-subtab {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 62px;
    padding: 12px 14px;
    border: 1px solid var(--probpr-border);
    border-radius: 14px;
    background: #ffffff;
    color: var(--probpr-text);
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
}

.probpr-settings-subtab:hover {
    border-color: rgba(37, 99, 235, 0.35);
    background: var(--probpr-primary-light);
    color: var(--probpr-text);
    text-decoration: none;
}

.probpr-settings-subtab.is-active {
    border-color: var(--probpr-primary);
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.probpr-settings-subtab span {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
}

.probpr-settings-subtab small {
    color: var(--probpr-secondary);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
}

.probpr-team-summary-grid {
    margin-bottom: 18px;
}

.probpr-settings-role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.probpr-settings-role-card {
    padding: 16px;
    border: 1px solid var(--probpr-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}

.probpr-settings-role-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.probpr-settings-role-head strong {
    color: var(--probpr-text);
    font-size: 16px;
    font-weight: 900;
}

.probpr-settings-role-card p {
    margin: 0 0 12px;
    color: var(--probpr-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.probpr-settings-permission-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.probpr-settings-permission-list span {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--probpr-primary-light);
    color: var(--probpr-primary);
    font-size: 12px;
    font-weight: 750;
}

.probpr-settings-placeholder {
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .probpr-settings-subtabs,
    .probpr-settings-role-grid {
        grid-template-columns: 1fr;
    }

    .probpr-team-panel-body {
        padding: 16px;
    }
}
/* Provider team invites v11.23 */
.probpr-settings-invite-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 14px;
    margin-bottom: 18px;
}

.probpr-settings-invite-card {
    padding: 16px;
    border: 1px solid var(--probpr-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}

.probpr-settings-invite-card h4 {
    margin: 0 0 8px;
    color: var(--probpr-text);
    font-size: 16px;
    font-weight: 900;
}

.probpr-settings-invite-card p {
    margin: 0 0 14px;
    color: var(--probpr-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.probpr-settings-mini-form {
    display: grid;
    gap: 12px;
}

.probpr-settings-mini-form .probpr-form-field {
    min-width: 0;
}

.probpr-settings-mini-form input,
.probpr-settings-mini-form select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.probpr-settings-invite-help ul {
    margin: 0;
    padding-left: 18px;
    color: var(--probpr-secondary);
    font-size: 13px;
    line-height: 1.55;
}

.probpr-settings-invite-help li + li {
    margin-top: 6px;
}

@media (max-width: 980px) {
    .probpr-settings-invite-grid {
        grid-template-columns: 1fr;
    }
}
/* Team roles colorful permission chips v11.24 */
.probpr-settings-role-grid-enhanced {
    align-items: stretch;
}

.probpr-role-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 182px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.probpr-role-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.probpr-role-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--role-accent, var(--probpr-primary));
}

.probpr-role-card-owner {
    --role-accent: #1e3a8a;
}

.probpr-role-card-admin {
    --role-accent: #2563eb;
}

.probpr-role-card-manager {
    --role-accent: #059669;
}

.probpr-role-card-viewer {
    --role-accent: #64748b;
}

.probpr-role-card .probpr-settings-role-head {
    padding-left: 4px;
}

.probpr-role-card-subtitle {
    display: block;
    margin-top: 3px;
    color: var(--probpr-secondary);
    font-size: 12px;
    font-weight: 700;
}

.probpr-role-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.probpr-role-pill-owner {
    background: #dbeafe;
    color: #1e3a8a;
}

.probpr-role-pill-admin {
    background: #dbeafe;
    color: #1d4ed8;
}

.probpr-role-pill-manager {
    background: #d1fae5;
    color: #047857;
}

.probpr-role-pill-viewer {
    background: #e2e8f0;
    color: #475569;
}

.probpr-settings-permission-list {
    margin-top: auto;
}

.probpr-permission-chip {
    --chip-bg: #eef2ff;
    --chip-text: #3730a3;
    --chip-dot: #6366f1;

    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--chip-bg);
    color: var(--chip-text);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.15;
}

.probpr-permission-chip::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--chip-dot);
    flex: 0 0 7px;
}

.probpr-permission-chip-events {
    --chip-bg: #dbeafe;
    --chip-text: #1d4ed8;
    --chip-dot: #2563eb;
}

.probpr-permission-chip-program {
    --chip-bg: #ede9fe;
    --chip-text: #6d28d9;
    --chip-dot: #7c3aed;
}

.probpr-permission-chip-lecturers {
    --chip-bg: #fce7f3;
    --chip-text: #be185d;
    --chip-dot: #db2777;
}

.probpr-permission-chip-access {
    --chip-bg: #ccfbf1;
    --chip-text: #0f766e;
    --chip-dot: #14b8a6;
}

.probpr-permission-chip-tests {
    --chip-bg: #ffedd5;
    --chip-text: #c2410c;
    --chip-dot: #f97316;
}

.probpr-permission-chip-certificates {
    --chip-bg: #dcfce7;
    --chip-text: #15803d;
    --chip-dot: #22c55e;
}

.probpr-permission-chip-crm {
    --chip-bg: #fef3c7;
    --chip-text: #b45309;
    --chip-dot: #f59e0b;
}

.probpr-permission-chip-settings {
    --chip-bg: #e2e8f0;
    --chip-text: #475569;
    --chip-dot: #64748b;
}

.probpr-permission-chip-registrations {
    --chip-bg: #cffafe;
    --chip-text: #0e7490;
    --chip-dot: #06b6d4;
}

.probpr-permission-chip-orders {
    --chip-bg: #e0e7ff;
    --chip-text: #4338ca;
    --chip-dot: #4f46e5;
}

.probpr-permission-chip-view {
    --chip-bg: #f1f5f9;
    --chip-text: #475569;
    --chip-dot: #94a3b8;
}

.probpr-permission-chip-default {
    --chip-bg: #f1f5f9;
    --chip-text: #334155;
    --chip-dot: #64748b;
}
/* Team member edit v11.27 */
.probpr-settings-member-edit-card {
    width: min(620px, 100%);
    padding: 18px;
    border: 1px solid var(--probpr-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
}

.probpr-settings-member-edit-card h4 {
    margin: 0 0 8px;
    color: var(--probpr-text);
    font-size: 18px;
    font-weight: 900;
}

.probpr-settings-member-edit-card p {
    margin: 0 0 16px;
    color: var(--probpr-secondary);
    line-height: 1.45;
}

.probpr-settings-member-edit-card p strong {
    color: var(--probpr-text);
}
/* Team activity log v11.28 */
.probpr-settings-activity-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--probpr-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}

.probpr-settings-activity-head h4 {
    margin: 0 0 6px;
    color: var(--probpr-text);
    font-size: 16px;
    font-weight: 900;
}

.probpr-settings-activity-head p {
    margin: 0;
    color: var(--probpr-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.probpr-settings-activity-head > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--probpr-primary-light);
    color: var(--probpr-primary);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.probpr-activity-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.1;
    white-space: nowrap;
}

.probpr-activity-badge-invite_created,
.probpr-activity-badge-invite_email_sent,
.probpr-activity-badge-invite_email_resent {
    background: #dbeafe;
    color: #1d4ed8;
}

.probpr-activity-badge-invite_email_failed,
.probpr-activity-badge-invite_cancelled,
.probpr-activity-badge-member_deactivated {
    background: #fee2e2;
    color: #b91c1c;
}

.probpr-activity-badge-member_added_existing_user,
.probpr-activity-badge-member_activated,
.probpr-activity-badge-member_updated {
    background: #dcfce7;
    color: #15803d;
}

@media (max-width: 780px) {
    .probpr-settings-activity-head {
        flex-direction: column;
    }
}
/* Team activity accepted invite badges v11.30 */
.probpr-activity-badge-invite_accepted,
.probpr-activity-badge-invite_account_created {
    background: #dcfce7;
    color: #15803d;
}
/* Provider email settings v11.31 */
.probpr-settings-field-hint {
    display: block;
    margin: 6px 0 0;
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1.4;
}

.probpr-settings-email-note {
    margin: 16px 0 0;
    padding: 13px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 13px;
    line-height: 1.45;
}
/* Provider payment settings v11.32 */
.probpr-settings-payment-summary {
    margin-bottom: 18px;
}

.probpr-settings-link-control select {
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--probpr-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--probpr-text);
    box-sizing: border-box;
}
/* Provider payment methods v11.33 */
.probpr-payment-add-panel {
    margin-bottom: 18px;
}

.probpr-payment-add-note {
    margin: 0 22px 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 14px;
    line-height: 1.45;
}

.probpr-payment-add-form {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 0 22px 22px;
}

.probpr-payment-add-form select {
    flex: 1 1 auto;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #ffffff;
    color: var(--probpr-text);
    font-size: 15px;
    box-sizing: border-box;
}

.probpr-payment-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
}

.probpr-payment-status-badge.is-active {
    background: #86efac;
    color: #166534;
}

.probpr-payment-status-badge.is-inactive {
    background: #fb7185;
    color: #ffffff;
}

.probpr-payment-method-editor .probpr-form-grid {
    padding: 22px;
}

.probpr-payment-methods-table td small {
    color: var(--probpr-secondary);
}

@media (max-width: 760px) {
    .probpr-payment-add-form {
        flex-direction: column;
        align-items: stretch;
    }
}
/* Smart payment method editor v11.35 */
.probpr-payment-editor-section {
    padding: 22px 22px 0;
}

.probpr-payment-editor-section h4 {
    margin: 0 0 14px;
    color: var(--probpr-text);
    font-size: 16px;
    font-weight: 900;
}

.probpr-payment-editor-section .probpr-form-grid {
    padding: 0;
}

.probpr-payment-dynamic-field small {
    margin-top: 6px;
}
/* Payment method readiness v11.36 */
.probpr-payment-ready-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.probpr-payment-ready-badge.is-ready {
    background: #dcfce7;
    color: #15803d;
}

.probpr-payment-ready-badge.is-not-ready {
    background: #fef3c7;
    color: #b45309;
}

.probpr-payment-readiness-warning {
    margin: 0 22px 18px;
    padding: 13px 14px;
    border: 1px solid #fde68a;
    border-radius: 14px;
    background: #fffbeb;
    color: #92400e;
    font-size: 13px;
    line-height: 1.45;
}

.probpr-payment-readiness-warning strong {
    display: block;
    margin-bottom: 4px;
    color: #78350f;
}

.probpr-payment-readiness-warning span {
    display: block;
}
/* Payment default method v11.37 */
.probpr-payment-default-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.probpr-payment-default-badge.is-default {
    background: #dbeafe;
    color: #1d4ed8;
}

.probpr-payment-default-note {
    margin: 0 22px 18px;
    padding: 13px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 13px;
    line-height: 1.45;
}
/* Event payment methods selector v11.38 */
.probpr-event-payment-methods {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: #f8fbff;
}

.probpr-event-payment-methods-head {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
}

.probpr-event-payment-methods-head strong {
    color: var(--probpr-text);
    font-size: 14px;
    font-weight: 900;
}

.probpr-event-payment-methods-head span,
.probpr-event-payment-empty {
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1.4;
}

.probpr-event-payment-list {
    display: grid;
    gap: 10px;
}

.probpr-event-payment-item {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

.probpr-event-payment-check,
.probpr-event-payment-default {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 0;
    color: var(--probpr-text);
    font-size: 13px;
    line-height: 1.35;
}

.probpr-event-payment-check span {
    display: grid;
    gap: 2px;
}

.probpr-event-payment-check small {
    color: var(--probpr-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.probpr-event-payment-default {
    padding-left: 24px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}
/* Orders payment method column v11.39 */
.probpr-provider-table td strong + br + small {
    color: var(--probpr-secondary);
}
/* Orders manual payment actions v11.41 */
.probpr-order-actions {
    display: grid;
    gap: 5px;
    min-width: 130px;
}

.probpr-order-inline-action {
    margin: 0;
}

.probpr-order-inline-action button {
    appearance: none;
    display: inline-flex;
    width: fit-content;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--probpr-primary);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
}

.probpr-order-inline-action button:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.probpr-order-inline-action.is-positive button {
    color: #15803d;
}

.probpr-order-inline-action.is-danger button {
    color: #b91c1c;
}

/* Orders table compact layout v11.42 */
.probpr-orders-table {
    min-width: 1080px;
}

.probpr-order-payment-cell {
    display: grid;
    gap: 7px;
    align-items: start;
}

.probpr-order-events-cell {
    min-width: 260px;
    max-width: 420px;
    line-height: 1.45;
}

.probpr-order-client-cell small,
.probpr-order-method-cell small,
.probpr-orders-table td small {
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1.35;
}

.probpr-orders-table .probpr-order-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

/* Orders compact list + detail page v11.43 */
.probpr-orders-table {
    min-width: 1180px;
}

.probpr-orders-table th,
.probpr-orders-table td {
    padding: 10px 11px;
    font-size: 13px;
}

.probpr-orders-table th {
    font-size: 11px;
}

.probpr-orders-table .probpr-provider-badge {
    font-size: 11px;
    padding: 4px 8px;
}

.probpr-orders-table .probpr-button-small {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 12px;
    border-radius: 8px;
}

.probpr-order-details-link {
    white-space: nowrap;
}

.probpr-order-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.probpr-order-detail-card {
    display: grid;
    gap: 6px;
    padding: 13px 14px;
    border: 1px solid var(--probpr-border);
    border-radius: 14px;
    background: #f8fafc;
}

.probpr-order-detail-card span {
    color: var(--probpr-secondary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.probpr-order-detail-card strong {
    font-size: 14px;
    line-height: 1.25;
}

.probpr-order-detail-card small {
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1.35;
}

.probpr-order-detail-table {
    min-width: 900px;
}

.probpr-order-detail-table th,
.probpr-order-detail-table td {
    padding: 10px 11px;
    font-size: 13px;
}

.probpr-order-detail-table th {
    font-size: 11px;
}

.probpr-order-detail-table small {
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1.35;
}

.probpr-order-detail-actions .probpr-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.probpr-order-detail-actions .probpr-order-inline-action button {
    padding: 8px 12px;
    border: 1px solid var(--probpr-border);
    border-radius: 10px;
    background: var(--probpr-surface);
    text-decoration: none;
}

.probpr-order-detail-actions .probpr-order-inline-action.is-positive button {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.probpr-order-detail-actions .probpr-order-inline-action.is-danger button {
    border-color: #fecaca;
    background: #fef2f2;
}

.probpr-order-comment {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff7ed;
    color: var(--probpr-text);
    font-size: 13px;
    line-height: 1.45;
}

.probpr-muted {
    color: var(--probpr-muted);
}

@media (max-width: 1100px) {
    .probpr-order-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .probpr-order-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Orders table compact width tuning v11.44 */
.probpr-orders-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.probpr-orders-table th,
.probpr-orders-table td {
    padding: 7px 7px;
    font-size: 11.5px;
    line-height: 1.3;
    vertical-align: top;
}

.probpr-orders-table th {
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0.015em;
}

.probpr-orders-table td strong {
    font-size: 11.5px;
    line-height: 1.25;
}

.probpr-orders-table td small,
.probpr-order-client-cell small,
.probpr-order-method-cell small {
    font-size: 10.5px;
    line-height: 1.25;
}

.probpr-orders-table th:nth-child(1),
.probpr-orders-table td:nth-child(1) {
    width: 11%;
}

.probpr-orders-table th:nth-child(2),
.probpr-orders-table td:nth-child(2) {
    width: 10%;
}

.probpr-orders-table th:nth-child(3),
.probpr-orders-table td:nth-child(3) {
    width: 10%;
    white-space: nowrap;
}

.probpr-orders-table th:nth-child(4),
.probpr-orders-table td:nth-child(4) {
    width: 27%;
}

.probpr-orders-table th:nth-child(5),
.probpr-orders-table td:nth-child(5) {
    width: 9%;
    white-space: nowrap;
}

.probpr-orders-table th:nth-child(6),
.probpr-orders-table td:nth-child(6) {
    width: 16%;
}

.probpr-orders-table th:nth-child(7),
.probpr-orders-table td:nth-child(7) {
    width: 11%;
}

.probpr-orders-table th:nth-child(8),
.probpr-orders-table td:nth-child(8) {
    width: 6%;
    text-align: right;
}

.probpr-order-events-cell,
.probpr-order-client-cell,
.probpr-order-method-cell {
    min-width: 0;
    max-width: none;
    overflow-wrap: anywhere;
    word-break: normal;
}

.probpr-orders-table .probpr-provider-badge {
    display: inline-flex;
    max-width: 100%;
    padding: 3px 6px;
    font-size: 9.5px;
    line-height: 1.15;
    white-space: normal;
}

.probpr-orders-table .probpr-button-small {
    min-height: 24px;
    padding: 4px 7px;
    font-size: 10.5px;
    line-height: 1.2;
    border-radius: 7px;
}

.probpr-order-details-link {
    white-space: nowrap;
}

/* Order detail clean layout v11.46 */
.probpr-order-detail-card-client {
    grid-column: 1 / -1;
}

.probpr-order-detail-card-client strong,
.probpr-order-detail-card-client small {
    overflow-wrap: anywhere;
}

.probpr-order-detail-table tfoot td {
    padding: 11px 12px;
    background: #f8fafc;
    border-top: 1px solid var(--probpr-border);
    font-size: 13px;
    text-align: right;
}

.probpr-order-items-summary-row span {
    color: var(--probpr-secondary);
    font-weight: 700;
    margin: 0 6px;
}

.probpr-order-detail-table .probpr-provider-badge {
    font-size: 10px;
    padding: 3px 7px;
}


/* Order detail client + history layout v11.47 */
.probpr-order-detail-grid-client-only {
    grid-template-columns: 1fr;
}

.probpr-order-detail-grid-client-only .probpr-order-detail-card-client {
    grid-column: 1 / -1;
}

.probpr-order-history-table th:nth-child(1),
.probpr-order-history-table td:nth-child(1) {
    width: 17%;
    white-space: nowrap;
}

.probpr-order-history-table th:nth-child(2),
.probpr-order-history-table td:nth-child(2) {
    width: 25%;
}

.probpr-order-history-table th:nth-child(3),
.probpr-order-history-table td:nth-child(3) {
    width: 13%;
}

.probpr-order-history-table th:nth-child(4),
.probpr-order-history-table td:nth-child(4) {
    width: 13%;
    white-space: nowrap;
}

.probpr-order-history-table th:nth-child(5),
.probpr-order-history-table td:nth-child(5) {
    width: 32%;
    overflow-wrap: anywhere;
}

.probpr-order-history-table td {
    vertical-align: top;
}

/* ProBPR orders: clickable CRM customer link */
.probpr-order-client-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
}

.probpr-order-client-link:hover {
    color: #2563eb;
    border-bottom-style: solid;
}

.probpr-order-detail-client-main .probpr-order-client-link {
    display: inline-block;
    font-size: 16px;
}

/* CRM client card v11.48 */
.probpr-crm-card-panel {
    overflow: hidden;
}

.probpr-crm-profile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--probpr-border);
    border-radius: 16px;
    background: #f8fafc;
    margin-bottom: 14px;
}

.probpr-crm-profile-head h4 {
    margin: 0 0 4px;
    font-size: 19px;
    line-height: 1.25;
}

.probpr-crm-profile-head p {
    margin: 0;
    color: var(--probpr-secondary);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.probpr-crm-profile-status {
    flex: 0 0 auto;
    text-align: right;
}

.probpr-crm-metrics-grid,
.probpr-crm-data-grid {
    display: grid;
    gap: 10px;
}

.probpr-crm-metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 14px;
}

.probpr-crm-data-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.probpr-crm-metrics-grid > div,
.probpr-crm-data-grid > div {
    display: grid;
    gap: 5px;
    padding: 12px 13px;
    border: 1px solid var(--probpr-border);
    border-radius: 14px;
    background: var(--probpr-surface);
    min-width: 0;
}

.probpr-crm-metrics-grid span,
.probpr-crm-data-grid span {
    color: var(--probpr-secondary);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.probpr-crm-metrics-grid strong,
.probpr-crm-data-grid strong {
    font-size: 14px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.probpr-crm-metrics-grid small {
    color: var(--probpr-secondary);
    font-size: 11.5px;
    line-height: 1.25;
}

.probpr-crm-hint {
    margin-top: 14px;
    padding: 11px 13px;
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 13px;
    line-height: 1.45;
}

.probpr-crm-orders-table,
.probpr-crm-registrations-table,
.probpr-crm-certificates-table {
    min-width: 980px;
}

.probpr-crm-orders-table th,
.probpr-crm-orders-table td,
.probpr-crm-registrations-table th,
.probpr-crm-registrations-table td,
.probpr-crm-certificates-table th,
.probpr-crm-certificates-table td {
    padding: 8px 9px;
    font-size: 12px;
    line-height: 1.35;
    vertical-align: top;
}

.probpr-crm-orders-table th,
.probpr-crm-registrations-table th,
.probpr-crm-certificates-table th {
    font-size: 10.5px;
}

.probpr-crm-orders-table small,
.probpr-crm-registrations-table small,
.probpr-crm-certificates-table small {
    color: var(--probpr-secondary);
    font-size: 11px;
    line-height: 1.3;
}

.probpr-crm-orders-table .probpr-provider-badge,
.probpr-crm-registrations-table .probpr-provider-badge,
.probpr-crm-certificates-table .probpr-provider-badge {
    font-size: 10px;
    padding: 3px 7px;
}

@media (max-width: 1100px) {
    .probpr-crm-metrics-grid,
    .probpr-crm-data-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .probpr-crm-profile-head {
        display: grid;
    }

    .probpr-crm-profile-status {
        text-align: left;
    }

    .probpr-crm-metrics-grid,
    .probpr-crm-data-grid {
        grid-template-columns: 1fr;
    }
}


/* ProBPR lecturer photo upload */
.probpr-lecturer-photo-field {
  margin-bottom: 18px;
}

.probpr-lecturer-photo-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f9fafb;
}

.probpr-lecturer-photo-preview {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 12px;
  text-align: center;
  line-height: 1.35;
  padding: 8px;
}

.probpr-lecturer-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.probpr-lecturer-photo-controls {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.probpr-lecturer-photo-controls input[type="file"] {
  max-width: 100%;
  font-size: 13px;
}

.probpr-lecturer-photo-controls small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.probpr-lecturer-photo-remove {
  margin-top: 2px;
  color: #b91c1c;
  font-size: 13px;
}

@media (max-width: 640px) {
  .probpr-lecturer-photo-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

.probpr-program-lecturer-picker select {
  max-width: 100%;
}

.probpr-program-lecturer-card {
  margin-top: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.probpr-program-lecturer-card-empty {
  padding: 12px 14px;
  font-size: 13px;
  color: #6b7280;
  background: #f9fafb;
}

.probpr-program-lecturer-card-inner {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}

.probpr-program-lecturer-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #374151;
}

.probpr-program-lecturer-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.probpr-program-lecturer-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.probpr-program-lecturer-card-body strong {
  font-size: 14px;
  line-height: 1.25;
}

.probpr-program-lecturer-card-body span,
.probpr-program-lecturer-card-body small {
  font-size: 12px;
  line-height: 1.35;
  color: #6b7280;
}

.probpr-program-lecturer-card-action {
  white-space: nowrap;
}

.probpr-program-no-lecturers {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

@media (max-width: 720px) {
  .probpr-program-lecturer-card-inner {
    grid-template-columns: 44px 1fr;
  }

  .probpr-program-lecturer-card-avatar {
    width: 44px;
    height: 44px;
  }

  .probpr-program-lecturer-card-action {
    grid-column: 1 / -1;
  }
}

/* ProBPR lecturer photo upload layout fix */
.probpr-lecturer-photo-field > label {
  display: block;
  margin: 0 0 8px;
}

.probpr-lecturer-photo-box {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 16px;
}

.probpr-lecturer-photo-preview {
  width: 108px;
  height: 108px;
  flex: none;
  padding: 8px;
  box-sizing: border-box;
}

.probpr-lecturer-photo-controls {
  display: grid;
  gap: 10px;
  align-content: start;
  max-width: 520px;
}

.probpr-lecturer-photo-controls input[type="file"] {
  width: 100%;
  max-width: 448px;
  box-sizing: border-box;
}

.probpr-lecturer-photo-controls small {
  display: block;
  margin: 0;
}

.probpr-lecturer-photo-remove,
.probpr-form-field .probpr-lecturer-photo-remove {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 2px 0 0;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}

.probpr-lecturer-photo-remove input[type="checkbox"],
.probpr-form-field .probpr-lecturer-photo-remove input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
  flex: 0 0 16px;
  margin: 0;
  padding: 0;
}

@media (max-width: 640px) {
  .probpr-lecturer-photo-box {
    grid-template-columns: 1fr;
  }

  .probpr-lecturer-photo-controls {
    max-width: 100%;
  }
}

/* Lecturer card page */
.probpr-lecturer-card-page {
  display: grid;
  gap: 18px;
}

.probpr-lecturer-card-hero {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #ffffff;
}

.probpr-lecturer-card-photo {
  width: 150px;
  height: 150px;
  border-radius: 24px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #dbe4ef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 800;
  color: #48607c;
}

.probpr-lecturer-card-photo img,
.probpr-lecturer-card-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.probpr-lecturer-card-main {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.probpr-lecturer-card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.probpr-lecturer-card-title-row h4 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.2;
  color: #23344d;
}

.probpr-lecturer-card-title-row p {
  margin: 0 0 5px;
  color: #425873;
  font-weight: 600;
}

.probpr-lecturer-card-title-row span {
  display: block;
  color: #64748b;
  font-size: 13px;
}

.probpr-lecturer-card-actions {
  flex: 0 0 auto;
}

.probpr-lecturer-card-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.probpr-lecturer-card-contact-grid > div {
  padding: 11px 12px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  min-width: 0;
}

.probpr-lecturer-card-contact-grid small,
.probpr-lecturer-card-stats small {
  display: block;
  margin-bottom: 4px;
  color: #718096;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.probpr-lecturer-card-contact-grid strong,
.probpr-lecturer-card-stats strong {
  display: block;
  color: #263a56;
  font-size: 14px;
  line-height: 1.35;
  word-break: break-word;
}

.probpr-lecturer-card-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.probpr-lecturer-card-stats > div {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
}

.probpr-lecturer-card-stats strong {
  font-size: 20px;
}

.probpr-lecturer-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .85fr);
  gap: 18px;
}

.probpr-lecturer-bio {
  color: #334155;
  font-size: 14px;
  line-height: 1.65;
}

.probpr-lecturer-bio p {
  margin: 0 0 10px;
}

.probpr-lecturer-checklist {
  display: grid;
  gap: 8px;
}

.probpr-lecturer-check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.probpr-lecturer-check-item span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.probpr-lecturer-check-item.is-done span {
  background: #dcfce7;
  color: #166534;
}

.probpr-lecturer-check-item.is-missing span {
  background: #fff7ed;
  color: #c2410c;
}

.probpr-lecturer-check-item strong {
  font-size: 13px;
  color: #334155;
}

.probpr-lecturer-history-table th,
.probpr-lecturer-history-table td {
  font-size: 12px;
  padding: 9px 10px;
  vertical-align: top;
}

.probpr-lecturer-history-table .probpr-row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.probpr-lecturer-history-table .probpr-button-small {
  font-size: 11px;
  padding: 5px 8px;
}

@media (max-width: 980px) {
  .probpr-lecturer-card-hero,
  .probpr-lecturer-card-grid {
    grid-template-columns: 1fr;
  }

  .probpr-lecturer-card-photo {
    width: 120px;
    height: 120px;
  }

  .probpr-lecturer-card-contact-grid,
  .probpr-lecturer-card-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .probpr-lecturer-card-title-row {
    display: grid;
  }

  .probpr-lecturer-card-contact-grid,
  .probpr-lecturer-card-stats {
    grid-template-columns: 1fr;
  }
}

/* ProBPR: lecturers main page filters and stats */
.probpr-lecturers-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 16px;
}

.probpr-lecturers-stat {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 12px 14px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.probpr-lecturers-stat strong {
  font-size: 22px;
  line-height: 1.1;
  color: #0f172a;
}

.probpr-lecturers-stat span {
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.25;
}

.probpr-lecturers-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) minmax(140px, 0.7fr) minmax(170px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}

.probpr-lecturers-filters label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.probpr-lecturers-filters input,
.probpr-lecturers-filters select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  padding: 7px 10px;
  font-size: 13px;
}

.probpr-lecturers-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.probpr-preview-table td .probpr-muted-line {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.25;
}

@media (max-width: 1100px) {
  .probpr-lecturers-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .probpr-lecturers-filters {
    grid-template-columns: 1fr 1fr;
  }

  .probpr-lecturers-filter-search,
  .probpr-lecturers-filter-actions {
    grid-column: 1 / -1;
  }

  .probpr-lecturers-filter-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .probpr-lecturers-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .probpr-lecturers-filters {
    grid-template-columns: 1fr;
  }

  .probpr-lecturers-filter-search,
  .probpr-lecturers-filter-actions {
    grid-column: auto;
  }
}

/* ProBPR: lecturers list without status column, previous comfortable row size */
.probpr-preview-table.probpr-lecturers-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.probpr-lecturers-table th:nth-child(1),
.probpr-lecturers-table td:nth-child(1) {
  width: 31%;
}

.probpr-lecturers-table th:nth-child(2),
.probpr-lecturers-table td:nth-child(2) {
  width: 25%;
}

.probpr-lecturers-table th:nth-child(3),
.probpr-lecturers-table td:nth-child(3) {
  width: 18%;
}

.probpr-lecturers-table th:nth-child(4),
.probpr-lecturers-table td:nth-child(4) {
  width: 10%;
}

.probpr-lecturers-table th:nth-child(5),
.probpr-lecturers-table td:nth-child(5) {
  width: 16%;
}

.probpr-lecturers-table .probpr-person-cell {
  min-width: 0;
}

.probpr-lecturers-table td,
.probpr-lecturers-table th {
  white-space: normal;
  word-break: break-word;
}

.probpr-lecturers-table .probpr-preview-row-actions {
  gap: 6px;
}

/* --------------------------------------------------------------------------
 * ProBPR UI Normalization v1
 * Безпечний стабілізуючий шар: додається в кінець файлу і вирівнює базові
 * розміри шрифтів, таблиць, кнопок, карток, бейджів та форм без видалення
 * старих стилів.
 * -------------------------------------------------------------------------- */

.probpr-provider-cabinet {
    --probpr-font-xs: 11px;
    --probpr-font-sm: 12px;
    --probpr-font-base: 13px;
    --probpr-font-md: 14px;
    --probpr-font-lg: 16px;
    --probpr-font-xl: 20px;
    --probpr-font-2xl: 24px;
    --probpr-font-3xl: 28px;

    --probpr-line-tight: 1.2;
    --probpr-line-base: 1.4;
    --probpr-line-relaxed: 1.55;

    --probpr-space-2xs: 4px;
    --probpr-space-xs: 6px;
    --probpr-space-sm: 8px;
    --probpr-space-md: 12px;
    --probpr-space-lg: 16px;
    --probpr-space-xl: 20px;
    --probpr-space-2xl: 24px;

    --probpr-radius-sm: 10px;
    --probpr-radius-md: 12px;
    --probpr-radius-lg: 14px;
    --probpr-radius-xl: 16px;
    --probpr-radius-2xl: 18px;

    --probpr-control-height: 40px;
    --probpr-control-height-sm: 30px;
    --probpr-table-cell-y: 11px;
    --probpr-table-cell-x: 12px;
    --probpr-table-font: 13px;
    --probpr-table-head-font: 11.5px;

    font-size: var(--probpr-font-base);
    line-height: var(--probpr-line-base);
}

.probpr-provider-cabinet *,
.probpr-provider-cabinet *::before,
.probpr-provider-cabinet *::after {
    box-sizing: border-box;
}

.probpr-provider-cabinet p,
.probpr-provider-cabinet small,
.probpr-provider-cabinet span,
.probpr-provider-cabinet td,
.probpr-provider-cabinet th,
.probpr-provider-cabinet label,
.probpr-provider-cabinet input,
.probpr-provider-cabinet select,
.probpr-provider-cabinet textarea,
.probpr-provider-cabinet button,
.probpr-provider-cabinet a {
    line-height: var(--probpr-line-base);
}

/* Header typography */
.probpr-topbar h1 {
    font-size: var(--probpr-font-3xl);
    line-height: 1.12;
}

.probpr-section-head h2 {
    font-size: 22px;
    line-height: 1.16;
}

.probpr-panel-head h3,
.probpr-form-section-head h4 {
    font-size: 16px;
    line-height: 1.2;
}

.probpr-section-description,
.probpr-topbar-subtitle,
.probpr-panel-note,
.probpr-form-section-head p,
.probpr-field-help,
.probpr-specialty-help,
.probpr-muted-line,
.probpr-small-line {
    font-size: var(--probpr-font-sm);
    line-height: var(--probpr-line-relaxed);
}

/* Containers */
.probpr-content {
    padding: var(--probpr-space-2xl);
}

.probpr-panel,
.probpr-form-section,
.probpr-provider-card,
.probpr-dashboard-card,
.probpr-settings-role-card,
.probpr-settings-invite-card,
.probpr-settings-member-card,
.probpr-lecturer-card,
.probpr-crm-client-card {
    border-radius: var(--probpr-radius-xl);
}

.probpr-panel-head {
    padding: 14px 16px;
}

.probpr-form-section,
.probpr-settings-form,
.probpr-team-panel-body,
.probpr-panel > form.probpr-event-form {
    padding: var(--probpr-space-xl);
}

.probpr-form-grid {
    gap: var(--probpr-space-md);
}

.probpr-form-field {
    gap: var(--probpr-space-xs);
    margin-bottom: var(--probpr-space-md);
}

.probpr-form-field label,
.probpr-settings-link-row label,
.probpr-provider-card-label {
    font-size: var(--probpr-font-sm);
    line-height: var(--probpr-line-tight);
}

.probpr-form-field input,
.probpr-form-field select,
.probpr-form-field textarea,
.probpr-specialty-search,
.probpr-specialties-search,
.probpr-settings-link-control input,
.probpr-provider-switch select {
    min-height: var(--probpr-control-height);
    padding: 8px 11px;
    border-radius: var(--probpr-radius-sm);
    font-size: var(--probpr-font-base);
}

.probpr-form-field textarea,
.probpr-answer-box textarea {
    min-height: 86px;
}

/* Buttons and links */
.probpr-button,
.probpr-form-actions button,
.probpr-order-inline-action button,
.probpr-provider-cabinet button[type="submit"] {
    min-height: var(--probpr-control-height);
    padding: 8px 13px;
    border-radius: var(--probpr-radius-sm);
    font-size: var(--probpr-font-base);
    line-height: var(--probpr-line-tight);
}

.probpr-button-small,
.probpr-table-actions-vertical a,
.probpr-event-actions-vertical a,
.probpr-events-action-menu a,
.probpr-events-action-links a,
.probpr-events-action-links-early a,
.probpr-action-links a,
.probpr-preview-row-actions a,
.probpr-program-row-actions a {
    font-size: var(--probpr-font-sm);
    line-height: 1.25;
}

.probpr-button-small,
.probpr-events-action-menu a {
    min-height: var(--probpr-control-height-sm);
    padding: 5px 9px;
    border-radius: 999px;
}

.probpr-row-actions,
.probpr-preview-row-actions,
.probpr-program-row-actions,
.probpr-events-action-menu,
.probpr-test-actions {
    gap: 6px;
}

/* Badges */
.probpr-provider-badge,
.probpr-badge,
.probpr-status-badge {
    min-height: 22px;
    padding: 3px 8px;
    font-size: 11.5px;
    line-height: 1.2;
    font-weight: 800;
}

/* Universal table rhythm */
.probpr-provider-table,
.probpr-program-table,
.probpr-preview-table,
.probpr-events-table,
.probpr-orders-table,
.probpr-crm-table,
.probpr-lecturers-table,
.probpr-dashboard-events-table,
.probpr-test-program-table,
.probpr-test-results-table {
    font-size: var(--probpr-table-font);
}

.probpr-provider-table th,
.probpr-provider-table td,
.probpr-program-table th,
.probpr-program-table td,
.probpr-preview-table th,
.probpr-preview-table td,
.probpr-events-table th,
.probpr-events-table td,
.probpr-orders-table th,
.probpr-orders-table td,
.probpr-crm-table th,
.probpr-crm-table td,
.probpr-lecturers-table th,
.probpr-lecturers-table td,
.probpr-dashboard-events-table th,
.probpr-dashboard-events-table td,
.probpr-test-program-table th,
.probpr-test-program-table td,
.probpr-test-results-table th,
.probpr-test-results-table td {
    padding: var(--probpr-table-cell-y) var(--probpr-table-cell-x);
    font-size: var(--probpr-table-font);
    line-height: var(--probpr-line-base);
    vertical-align: middle;
}

.probpr-provider-table th,
.probpr-program-table th,
.probpr-preview-table th,
.probpr-events-table th,
.probpr-orders-table th,
.probpr-crm-table th,
.probpr-lecturers-table th,
.probpr-dashboard-events-table th,
.probpr-test-program-table th,
.probpr-test-results-table th {
    font-size: var(--probpr-table-head-font);
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: 0.035em;
}

.probpr-provider-table td strong,
.probpr-program-table td strong,
.probpr-preview-table td strong,
.probpr-events-table td strong,
.probpr-orders-table td strong,
.probpr-crm-table td strong,
.probpr-lecturers-table td strong {
    font-size: 13.5px;
    line-height: 1.3;
}

.probpr-provider-table td small,
.probpr-program-table td small,
.probpr-preview-table td small,
.probpr-events-table td small,
.probpr-orders-table td small,
.probpr-crm-table td small,
.probpr-lecturers-table td small {
    font-size: var(--probpr-font-sm);
    line-height: 1.35;
}

/* Compact tables that should still look stable */
.probpr-orders-table th,
.probpr-orders-table td,
.probpr-crm-table th,
.probpr-crm-table td {
    padding: 9px 10px;
}

.probpr-orders-table td,
.probpr-crm-table td {
    font-size: 12.5px;
}

.probpr-orders-table th,
.probpr-crm-table th {
    font-size: 10.5px;
}

.probpr-orders-table .probpr-provider-badge,
.probpr-crm-table .probpr-provider-badge {
    min-height: 20px;
    padding: 2px 7px;
    font-size: 10.5px;
}

/* Lecturers list: keep readable size, no status column expected */
.probpr-lecturers-table {
    min-width: 0;
    table-layout: fixed;
}

.probpr-lecturers-table th:nth-child(1),
.probpr-lecturers-table td:nth-child(1) {
    width: 32%;
}

.probpr-lecturers-table th:nth-child(2),
.probpr-lecturers-table td:nth-child(2) {
    width: 26%;
}

.probpr-lecturers-table th:nth-child(3),
.probpr-lecturers-table td:nth-child(3) {
    width: 18%;
}

.probpr-lecturers-table th:nth-child(4),
.probpr-lecturers-table td:nth-child(4) {
    width: 10%;
}

.probpr-lecturers-table th:nth-child(5),
.probpr-lecturers-table td:nth-child(5) {
    width: 14%;
}

.probpr-lecturers-table .probpr-person-cell,
.probpr-program-lecturer,
.probpr-person-cell {
    min-width: 0;
}

.probpr-person-avatar,
.probpr-person-avatar-placeholder,
.probpr-program-avatar,
.probpr-program-avatar-placeholder {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: var(--probpr-radius-md);
}

.probpr-lecturers-table .probpr-preview-row-actions,
.probpr-lecturers-table .probpr-table-actions-vertical {
    min-width: 0;
}

.probpr-lecturers-table .probpr-button-small,
.probpr-lecturers-table .probpr-preview-row-actions a,
.probpr-lecturers-table .probpr-table-actions-vertical a {
    font-size: var(--probpr-font-sm);
    white-space: normal;
}

/* Cards and metrics */
.probpr-provider-grid,
.probpr-dashboard-grid,
.probpr-lecturers-stats-grid,
.probpr-crm-client-stats,
.probpr-order-detail-grid {
    gap: var(--probpr-space-md);
}

.probpr-provider-card,
.probpr-dashboard-card,
.probpr-lecturer-stat-card,
.probpr-crm-stat-card,
.probpr-order-detail-card {
    padding: var(--probpr-space-lg);
}

.probpr-provider-card-value,
.probpr-dashboard-card-value,
.probpr-lecturer-stat-value,
.probpr-crm-stat-value {
    font-size: var(--probpr-font-3xl);
    line-height: 1.05;
}

/* Settings tabs */
.probpr-settings-tab,
.probpr-settings-subtab {
    min-height: 60px;
    padding: 11px 12px;
    border-radius: var(--probpr-radius-lg);
}

.probpr-settings-tab-title,
.probpr-settings-subtab span {
    font-size: var(--probpr-font-base);
}

.probpr-settings-tab small,
.probpr-settings-subtab small {
    font-size: var(--probpr-font-xs);
}

/* Photo upload blocks */
.probpr-lecturer-photo-field,
.probpr-lecturer-photo-control,
.probpr-lecturer-photo-preview {
    font-size: var(--probpr-font-base);
}

.probpr-lecturer-photo-preview {
    border-radius: var(--probpr-radius-lg);
}

.probpr-lecturer-photo-preview img {
    max-width: 120px;
    max-height: 120px;
    border-radius: var(--probpr-radius-md);
}

/* Mobile: keep tables scrollable only when truly needed */
@media (max-width: 980px) {
    .probpr-content {
        padding: var(--probpr-space-xl);
    }

    .probpr-provider-table,
    .probpr-program-table,
    .probpr-preview-table,
    .probpr-events-table,
    .probpr-dashboard-events-table,
    .probpr-test-program-table,
    .probpr-test-results-table {
        min-width: 760px;
    }

    .probpr-orders-table,
    .probpr-crm-table,
    .probpr-lecturers-table {
        min-width: 0;
    }
}

@media (max-width: 620px) {
    .probpr-content {
        padding: var(--probpr-space-lg);
    }

    .probpr-topbar h1 {
        font-size: var(--probpr-font-2xl);
    }

    .probpr-section-head h2 {
        font-size: var(--probpr-font-xl);
    }

    .probpr-panel-head,
    .probpr-form-section,
    .probpr-settings-form,
    .probpr-team-panel-body,
    .probpr-panel > form.probpr-event-form {
        padding: var(--probpr-space-lg);
    }
}
/* ==========================================================================
   ProBPR UI NORMALIZATION v2 — spacing, actions and responsive stability
   Added after v1. Safe override layer, no legacy rules removed.
   ========================================================================== */

.probpr-provider-cabinet {
    --probpr-action-link-font: 12.5px;
    --probpr-action-link-weight: 750;
    --probpr-action-gap: 5px;
    --probpr-table-compact-font: 12.5px;
    --probpr-table-readable-font: 13.25px;
    --probpr-table-head-compact-font: 10.75px;
    --probpr-control-height: 40px;
    --probpr-control-height-sm: 31px;
}

/* Global box safety */
.probpr-provider-cabinet,
.probpr-provider-cabinet * {
    box-sizing: border-box;
}

/* More consistent main sections */
.probpr-panel,
.probpr-form-section,
.probpr-provider-card,
.probpr-dashboard-card,
.probpr-order-detail-card,
.probpr-crm-stat-card,
.probpr-lecturer-stat-card,
.probpr-crm-client-card,
.probpr-lecturer-card-hero {
    border-radius: var(--probpr-radius-lg);
}

.probpr-panel-head,
.probpr-section-head,
.probpr-head-with-action,
.probpr-events-head,
.probpr-dashboard-head {
    gap: var(--probpr-space-md);
}

.probpr-panel-head h3,
.probpr-form-section-head h4,
.probpr-provider-section-title {
    font-size: var(--probpr-font-lg);
    line-height: var(--probpr-line-tight);
}

.probpr-panel-note,
.probpr-section-description,
.probpr-form-section-head p,
.probpr-small-line,
.probpr-muted-line,
.probpr-field-help,
.probpr-specialty-help,
.probpr-answer-help {
    font-size: var(--probpr-font-sm);
    line-height: var(--probpr-line-base);
}

/* Buttons: one visual rhythm */
.probpr-button,
button.probpr-button,
a.probpr-button {
    min-height: var(--probpr-control-height);
    padding: 8px 14px;
    border-radius: var(--probpr-radius-md);
    font-size: var(--probpr-font-base);
    line-height: 1.2;
    gap: 6px;
}

.probpr-button-small,
button.probpr-button-small,
a.probpr-button-small {
    min-height: var(--probpr-control-height-sm);
    padding: 6px 10px;
    border-radius: 9px;
    font-size: var(--probpr-font-sm);
    line-height: 1.2;
}

/* Action links: same density everywhere */
.probpr-row-actions,
.probpr-test-actions,
.probpr-preview-row-actions,
.probpr-program-row-actions {
    gap: 6px;
}

.probpr-table-actions-vertical,
.probpr-action-links,
.probpr-event-actions-vertical {
    min-width: 0;
}

.probpr-table-actions-vertical a,
.probpr-action-links a,
.probpr-event-actions-vertical a {
    margin-bottom: var(--probpr-action-gap);
    font-size: var(--probpr-action-link-font);
    font-weight: var(--probpr-action-link-weight);
    line-height: 1.25;
}

.probpr-table-actions-vertical a:last-child,
.probpr-action-links a:last-child,
.probpr-event-actions-vertical a:last-child {
    margin-bottom: 0;
}

/* Forms: consistent control sizing */
.probpr-form-field input:not([type="checkbox"]):not([type="radio"]),
.probpr-form-field select,
.probpr-form-field textarea,
.probpr-panel > form.probpr-event-form input:not([type="checkbox"]):not([type="radio"]),
.probpr-panel > form.probpr-event-form select,
.probpr-panel > form.probpr-event-form textarea,
.probpr-specialty-search,
.probpr-specialties-search,
.probpr-settings-link-control input {
    min-height: var(--probpr-control-height);
    padding: 8px 11px;
    border-radius: var(--probpr-radius-md);
    font-size: var(--probpr-font-base);
    line-height: var(--probpr-line-base);
}

.probpr-form-field textarea,
.probpr-panel > form.probpr-event-form textarea {
    min-height: 96px;
}

.probpr-form-field label,
.probpr-settings-link-row label,
.probpr-answer-box label {
    font-size: var(--probpr-font-sm);
    line-height: 1.25;
}

/* Checkboxes/radios must not inherit full-width input style */
.probpr-provider-cabinet input[type="checkbox"],
.probpr-provider-cabinet input[type="radio"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    padding: 0;
    flex: 0 0 16px;
}

/* Tables: stable shared defaults */
.probpr-provider-table,
.probpr-program-table,
.probpr-preview-table,
.probpr-events-table,
.probpr-orders-table,
.probpr-crm-table,
.probpr-lecturers-table,
.probpr-dashboard-events-table,
.probpr-test-program-table,
.probpr-test-results-table {
    border-spacing: 0;
}

.probpr-provider-table th,
.probpr-provider-table td,
.probpr-program-table th,
.probpr-program-table td,
.probpr-preview-table th,
.probpr-preview-table td,
.probpr-events-table th,
.probpr-events-table td,
.probpr-dashboard-events-table th,
.probpr-dashboard-events-table td,
.probpr-test-program-table th,
.probpr-test-program-table td,
.probpr-test-results-table th,
.probpr-test-results-table td {
    padding: 11px 12px;
    font-size: var(--probpr-table-readable-font);
}

.probpr-provider-table th,
.probpr-program-table th,
.probpr-preview-table th,
.probpr-events-table th,
.probpr-dashboard-events-table th,
.probpr-test-program-table th,
.probpr-test-results-table th {
    font-size: 11px;
    letter-spacing: 0.035em;
}

/* Compact operational tables */
.probpr-orders-table th,
.probpr-orders-table td,
.probpr-crm-table th,
.probpr-crm-table td {
    padding: 8px 9px;
    font-size: var(--probpr-table-compact-font);
}

.probpr-orders-table th,
.probpr-crm-table th {
    font-size: var(--probpr-table-head-compact-font);
}

.probpr-orders-table td strong,
.probpr-crm-table td strong {
    font-size: var(--probpr-table-compact-font);
}

/* Lecturers table: readable, but without horizontal scroll in normal desktop width */
.probpr-lecturers-table {
    min-width: 0 !important;
    table-layout: fixed;
}

.probpr-lecturers-table th,
.probpr-lecturers-table td {
    padding: 11px 12px;
    font-size: var(--probpr-table-readable-font);
}

.probpr-lecturers-table th {
    font-size: 11px;
}

.probpr-lecturers-table th:nth-child(1),
.probpr-lecturers-table td:nth-child(1) {
    width: 34%;
}

.probpr-lecturers-table th:nth-child(2),
.probpr-lecturers-table td:nth-child(2) {
    width: 25%;
}

.probpr-lecturers-table th:nth-child(3),
.probpr-lecturers-table td:nth-child(3) {
    width: 18%;
}

.probpr-lecturers-table th:nth-child(4),
.probpr-lecturers-table td:nth-child(4) {
    width: 9%;
}

.probpr-lecturers-table th:nth-child(5),
.probpr-lecturers-table td:nth-child(5) {
    width: 14%;
}

.probpr-lecturers-table .probpr-person-cell {
    gap: 10px;
}

.probpr-lecturers-table .probpr-person-cell strong,
.probpr-lecturers-table .probpr-person-cell span,
.probpr-lecturers-table .probpr-person-cell small,
.probpr-lecturers-table td,
.probpr-lecturers-table small {
    overflow-wrap: anywhere;
}

/* Badges: stable and not too large */
.probpr-provider-badge {
    min-height: 22px;
    padding: 2px 8px;
    font-size: var(--probpr-font-xs);
    line-height: 1.25;
}

/* Metrics cards */
.probpr-provider-card-label,
.probpr-dashboard-card-top,
.probpr-lecturer-stat-label,
.probpr-crm-stat-label,
.probpr-order-detail-label {
    font-size: var(--probpr-font-sm);
    line-height: 1.25;
}

.probpr-provider-card-value,
.probpr-dashboard-card-value,
.probpr-lecturer-stat-value,
.probpr-crm-stat-value,
.probpr-order-detail-value {
    font-size: 25px;
    line-height: 1.08;
}

/* Settings tabs: avoid visually oversized tabs */
.probpr-settings-tabs {
    gap: 9px;
}

.probpr-settings-tab,
.probpr-settings-subtab {
    min-height: 58px;
    padding: 10px 12px;
}

/* Cards for client/lecturer details */
.probpr-crm-client-card,
.probpr-lecturer-card-hero,
.probpr-order-client-card {
    padding: var(--probpr-space-lg);
}

/* Keep names and long legal values from breaking layout */
.probpr-event-title-cell strong,
.probpr-order-client-cell,
.probpr-order-events-cell,
.probpr-order-method-cell,
.probpr-crm-client-name,
.probpr-lecturer-card-title,
.probpr-topbar-provider,
.probpr-provider-mini-name {
    overflow-wrap: anywhere;
}

/* Desktop wrappers should not create scroll unless table requires it */
.probpr-table-wrap,
.probpr-preview-table-wrap,
.probpr-program-table-wrap,
.probpr-events-table-wrap {
    max-width: 100%;
}

/* Mobile keeps the interface usable */
@media (max-width: 980px) {
    .probpr-panel-head,
    .probpr-section-head,
    .probpr-head-with-action {
        align-items: flex-start;
        flex-direction: column;
    }

    .probpr-topbar-actions,
    .probpr-row-actions,
    .probpr-form-actions {
        justify-content: flex-start;
    }

    .probpr-settings-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .probpr-provider-cabinet {
        width: 100%;
    }

    .probpr-app-shell {
        border-radius: 0;
    }

    .probpr-settings-tabs,
    .probpr-settings-subtabs,
    .probpr-provider-grid,
    .probpr-dashboard-grid,
    .probpr-lecturers-stats-grid,
    .probpr-crm-client-stats,
    .probpr-order-detail-grid {
        grid-template-columns: 1fr;
    }

    .probpr-button,
    button.probpr-button,
    a.probpr-button {
        width: auto;
    }
}

/* ProBPR Dashboard compact v3 */
.probpr-dashboard-v3 {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.probpr-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--probpr-border);
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 26rem),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: var(--probpr-shadow);
}

.probpr-dashboard-eyebrow {
    display: inline-flex;
    margin-bottom: 6px;
    color: var(--probpr-primary);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.probpr-dashboard-hero h2 {
    margin: 0;
    color: var(--probpr-text);
    font-size: 24px;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.probpr-dashboard-hero p {
    max-width: 680px;
    margin: 6px 0 0;
    color: var(--probpr-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.probpr-dashboard-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.probpr-dashboard-period-pill {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 190px;
    padding: 10px 12px;
    border: 1px solid var(--probpr-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
}

.probpr-dashboard-period-pill span {
    color: var(--probpr-muted);
    font-size: 10.5px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.probpr-dashboard-period-pill strong {
    color: var(--probpr-text);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.25;
    white-space: nowrap;
}

.probpr-dashboard-quick-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.probpr-dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.probpr-dashboard-kpi-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    min-height: 126px;
    padding: 15px;
    border: 1px solid var(--probpr-border);
    border-radius: 18px;
    background: #ffffff;
    color: var(--probpr-text);
    text-decoration: none;
    box-shadow: var(--probpr-shadow);
    transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.probpr-dashboard-kpi-card[href]:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
    transform: translateY(-1px);
    text-decoration: none;
}

.probpr-dashboard-kpi-card.is-primary {
    border-color: rgba(37, 99, 235, 0.28);
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.probpr-dashboard-kpi-card.is-warning {
    border-color: rgba(245, 158, 11, 0.32);
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.probpr-dashboard-kpi-top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--probpr-secondary);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
}

.probpr-dashboard-kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 11px;
    background: var(--probpr-primary-light);
    font-size: 14px;
}

.probpr-dashboard-kpi-value {
    display: block;
    color: var(--probpr-text);
    font-size: 24px;
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

.probpr-dashboard-kpi-card small {
    display: block;
    margin-top: auto;
    color: var(--probpr-muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.3;
}

.probpr-dashboard-mini-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.probpr-dashboard-mini-stat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 10px;
    align-items: center;
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid var(--probpr-border);
    border-radius: 15px;
    background: #ffffff;
}

.probpr-dashboard-mini-stat span {
    color: var(--probpr-secondary);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
}

.probpr-dashboard-mini-stat strong {
    color: var(--probpr-text);
    font-size: 17px;
    font-weight: 950;
    line-height: 1;
    text-align: right;
    white-space: nowrap;
}

.probpr-dashboard-mini-stat small {
    grid-column: 1 / -1;
    color: var(--probpr-muted);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.25;
}

.probpr-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 14px;
    align-items: start;
}

.probpr-dashboard-main-col,
.probpr-dashboard-side-col {
    min-width: 0;
}

.probpr-dashboard-side-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.probpr-dashboard-side-panel {
    margin-bottom: 0;
}

.probpr-dashboard-panel-head {
    align-items: center;
}

.probpr-dashboard-events-panel {
    margin-bottom: 0;
}

.probpr-dashboard-events-wrap {
    margin: 0;
    overflow-x: visible;
}

.probpr-dashboard-events-table-v3 {
    min-width: 0 !important;
    table-layout: fixed;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.probpr-dashboard-events-table-v3 th,
.probpr-dashboard-events-table-v3 td {
    padding: 11px 12px;
    font-size: 12.5px;
    vertical-align: middle;
}

.probpr-dashboard-events-table-v3 th {
    font-size: 10.5px;
}

.probpr-dashboard-events-table-v3 th:nth-child(1),
.probpr-dashboard-events-table-v3 td:nth-child(1) {
    width: 38%;
}

.probpr-dashboard-events-table-v3 th:nth-child(2),
.probpr-dashboard-events-table-v3 td:nth-child(2) {
    width: 15%;
}

.probpr-dashboard-events-table-v3 th:nth-child(3),
.probpr-dashboard-events-table-v3 td:nth-child(3) {
    width: 19%;
}

.probpr-dashboard-events-table-v3 th:nth-child(4),
.probpr-dashboard-events-table-v3 td:nth-child(4) {
    width: 12%;
}

.probpr-dashboard-events-table-v3 th:nth-child(5),
.probpr-dashboard-events-table-v3 td:nth-child(5) {
    width: 16%;
}

.probpr-dashboard-event-title {
    min-width: 0;
}

.probpr-dashboard-event-title strong {
    display: block;
    color: var(--probpr-text);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.probpr-dashboard-event-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.probpr-dashboard-event-meta span {
    color: var(--probpr-muted);
    font-size: 11.5px;
    font-weight: 750;
    line-height: 1.25;
}

.probpr-dashboard-event-date {
    color: var(--probpr-secondary);
    font-size: 12px !important;
    font-weight: 750;
    line-height: 1.25;
}

.probpr-dashboard-event-numbers {
    min-width: 0;
}

.probpr-dashboard-event-numbers strong {
    display: inline-flex;
    color: var(--probpr-text);
    font-size: 16px;
    font-weight: 950;
    line-height: 1;
}

.probpr-dashboard-event-numbers span {
    display: inline-flex;
    margin-left: 5px;
    color: var(--probpr-secondary);
    font-size: 11.5px;
    font-weight: 750;
}

.probpr-dashboard-event-numbers small {
    display: block;
    margin-top: 4px;
    color: var(--probpr-muted);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.25;
}

.probpr-dashboard-event-actions {
    min-width: 0;
}

.probpr-dashboard-event-actions a {
    font-size: 12px;
}

.probpr-dashboard-health-list,
.probpr-dashboard-attention-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
}

.probpr-dashboard-health-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.probpr-dashboard-health-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.probpr-dashboard-health-top span {
    color: var(--probpr-secondary);
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.25;
}

.probpr-dashboard-health-top strong {
    color: var(--probpr-text);
    font-size: 13px;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
}

.probpr-dashboard-progress {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.probpr-dashboard-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--probpr-primary) 0%, #60a5fa 100%);
}

.probpr-dashboard-attention-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 12px 12px 14px;
    border: 1px solid var(--probpr-border);
    border-radius: 14px;
    background: #ffffff;
}

.probpr-dashboard-attention-item::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 999px;
    background: var(--probpr-info);
}

.probpr-dashboard-attention-item.is-success::before {
    background: var(--probpr-success);
}

.probpr-dashboard-attention-item.is-warning::before {
    background: var(--probpr-warning);
}

.probpr-dashboard-attention-item.is-danger::before {
    background: var(--probpr-danger);
}

.probpr-dashboard-attention-item strong {
    color: var(--probpr-text);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
}

.probpr-dashboard-attention-item span {
    color: var(--probpr-secondary);
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.35;
}

.probpr-dashboard-attention-item a {
    width: fit-content;
    color: var(--probpr-primary);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
    text-decoration: none;
}

.probpr-dashboard-attention-item a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1180px) {
    .probpr-dashboard-kpi-grid,
    .probpr-dashboard-mini-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .probpr-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .probpr-dashboard-side-col {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .probpr-dashboard-hero {
        grid-template-columns: 1fr;
    }

    .probpr-dashboard-hero-actions {
        align-items: stretch;
        justify-content: flex-start;
        flex-direction: column;
    }

    .probpr-dashboard-period-pill {
        min-width: 0;
    }

    .probpr-dashboard-quick-actions {
        justify-content: flex-start;
    }

    .probpr-dashboard-events-wrap {
        overflow-x: auto;
    }

    .probpr-dashboard-events-table-v3 {
        min-width: 760px !important;
    }

    .probpr-dashboard-side-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .probpr-dashboard-kpi-grid,
    .probpr-dashboard-mini-strip {
        grid-template-columns: 1fr;
    }
}

/* Dashboard events table: 4-column layout without certificates column */
.probpr-dashboard-events-table-v3 th:nth-child(1),
.probpr-dashboard-events-table-v3 td:nth-child(1) {
    width: 42%;
}

.probpr-dashboard-events-table-v3 th:nth-child(2),
.probpr-dashboard-events-table-v3 td:nth-child(2) {
    width: 16%;
}

.probpr-dashboard-events-table-v3 th:nth-child(3),
.probpr-dashboard-events-table-v3 td:nth-child(3) {
    width: 22%;
}

.probpr-dashboard-events-table-v3 th:nth-child(4),
.probpr-dashboard-events-table-v3 td:nth-child(4) {
    width: 20%;
}

@media (max-width: 980px) {
    .probpr-dashboard-events-table-v3 {
        min-width: 680px !important;
    }
}

/* ProBPR Dashboard typography polish v4
   Мета: зробити дашборд в одному ритмі з CRM / Замовленнями / Лекторами. */
.probpr-provider-cabinet {
    --probpr-font-size-xs: 11px;
    --probpr-font-size-sm: 12px;
    --probpr-font-size-md: 13px;
    --probpr-font-size-base: 14px;
    --probpr-font-size-lg: 18px;
    --probpr-font-size-xl: 22px;
    --probpr-font-weight-regular: 400;
    --probpr-font-weight-medium: 600;
    --probpr-font-weight-semibold: 700;
    --probpr-font-weight-bold: 800;
}

.probpr-dashboard-v3 {
    font-size: var(--probpr-font-size-base);
}

.probpr-dashboard-eyebrow,
.probpr-dashboard-period-pill span,
.probpr-dashboard-events-table-v3 th {
    font-size: var(--probpr-font-size-xs) !important;
    font-weight: var(--probpr-font-weight-bold) !important;
    letter-spacing: 0.045em;
}

.probpr-dashboard-hero h2 {
    font-size: var(--probpr-font-size-xl) !important;
    font-weight: var(--probpr-font-weight-bold) !important;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.probpr-dashboard-hero p,
.probpr-dashboard-period-pill strong,
.probpr-dashboard-kpi-top,
.probpr-dashboard-kpi-card small,
.probpr-dashboard-mini-stat span,
.probpr-dashboard-mini-stat small,
.probpr-dashboard-health-top span,
.probpr-dashboard-attention-item span,
.probpr-dashboard-event-date,
.probpr-dashboard-event-meta span,
.probpr-dashboard-event-numbers span,
.probpr-dashboard-event-numbers small {
    font-size: var(--probpr-font-size-md) !important;
    font-weight: var(--probpr-font-weight-medium) !important;
    line-height: 1.35;
}

.probpr-dashboard-kpi-top,
.probpr-dashboard-mini-stat span,
.probpr-dashboard-health-top span {
    font-weight: var(--probpr-font-weight-semibold) !important;
}

.probpr-dashboard-kpi-value {
    font-size: var(--probpr-font-size-xl) !important;
    font-weight: var(--probpr-font-weight-bold) !important;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.probpr-dashboard-mini-stat strong,
.probpr-dashboard-event-numbers strong,
.probpr-dashboard-health-top strong {
    font-weight: var(--probpr-font-weight-bold) !important;
    letter-spacing: -0.015em;
}

.probpr-dashboard-mini-stat strong {
    font-size: 18px !important;
}

.probpr-dashboard-event-numbers strong {
    font-size: 16px !important;
}

.probpr-dashboard-health-top strong {
    font-size: var(--probpr-font-size-base) !important;
}

.probpr-dashboard-events-table-v3 th,
.probpr-dashboard-events-table-v3 td {
    padding: 11px 12px;
}

.probpr-dashboard-events-table-v3 td {
    font-size: var(--probpr-font-size-md) !important;
    font-weight: var(--probpr-font-weight-regular);
}

.probpr-dashboard-event-title strong,
.probpr-dashboard-attention-item strong {
    font-size: var(--probpr-font-size-base) !important;
    font-weight: var(--probpr-font-weight-bold) !important;
    line-height: 1.32;
    letter-spacing: -0.01em;
}

.probpr-dashboard-event-actions a,
.probpr-dashboard-attention-item a {
    font-size: var(--probpr-font-size-sm) !important;
    font-weight: var(--probpr-font-weight-semibold) !important;
}

.probpr-dashboard-kpi-card {
    min-height: 118px;
    gap: 7px;
}

.probpr-dashboard-kpi-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    font-size: 13px;
}

.probpr-dashboard-panel-head h3,
.probpr-dashboard-events-panel .probpr-panel-head h3,
.probpr-dashboard-side-panel .probpr-panel-head h3 {
    font-size: 16px !important;
    font-weight: var(--probpr-font-weight-bold) !important;
    letter-spacing: -0.015em;
}

.probpr-dashboard-attention-item,
.probpr-dashboard-mini-stat,
.probpr-dashboard-kpi-card,
.probpr-dashboard-period-pill {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ProBPR Events list: search, pagination, no lecturers action v12 */
.probpr-events-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 14px;
    align-items: stretch;
    margin: 0 0 16px;
}

.probpr-events-search {
    padding: 14px;
    border: 1px solid var(--probpr-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
}

.probpr-events-search label {
    display: block;
    margin: 0 0 8px;
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
}

.probpr-events-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.probpr-events-search-row input[type="search"] {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--probpr-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--probpr-text);
    font-size: 14px;
    line-height: 1.35;
    box-sizing: border-box;
}

.probpr-events-search-row input[type="search"]:focus {
    outline: none;
    border-color: var(--probpr-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.probpr-events-search-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--probpr-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
}

.probpr-events-search-summary span {
    color: var(--probpr-muted);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.probpr-events-search-summary strong {
    color: var(--probpr-text);
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
}

.probpr-events-search-summary small {
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1.25;
    font-weight: 600;
}

.probpr-events-card .probpr-panel-head {
    padding: 14px 16px;
}

.probpr-events-table {
    min-width: 0 !important;
    width: 100%;
    table-layout: fixed;
}

.probpr-events-table th,
.probpr-events-table td {
    padding: 11px 12px;
    font-size: 13px;
    vertical-align: middle;
}

.probpr-events-table th:nth-child(1),
.probpr-events-table td:nth-child(1) {
    width: 155px;
}

.probpr-events-table th:nth-child(2),
.probpr-events-table td:nth-child(2) {
    width: auto;
}

.probpr-events-table th:nth-child(3),
.probpr-events-table td:nth-child(3) {
    width: 105px;
}

.probpr-events-table th:nth-child(4),
.probpr-events-table td:nth-child(4) {
    width: 145px;
}

.probpr-events-table .probpr-event-title-cell strong {
    display: block;
    color: var(--probpr-text);
    font-size: 14px;
    line-height: 1.32;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.probpr-events-table .probpr-event-title-cell small {
    display: block;
    margin-top: 4px;
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1.25;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.probpr-events-table .probpr-event-date-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.probpr-events-table .probpr-event-date-cell strong {
    color: var(--probpr-text);
    font-size: 12.5px;
    line-height: 1.25;
    font-weight: 700;
}

.probpr-events-table .probpr-event-date-cell span {
    color: var(--probpr-muted);
    font-size: 11.5px;
    line-height: 1.25;
    font-weight: 600;
}

.probpr-events-table .probpr-event-payments-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.probpr-events-table .probpr-event-payments-cell strong {
    color: var(--probpr-text);
    font-size: 15px;
    line-height: 1;
    font-weight: 800;
}

.probpr-events-table .probpr-event-payments-cell span {
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1.25;
    font-weight: 600;
}

.probpr-events-table .probpr-event-actions-vertical {
    min-width: 0;
}

.probpr-events-table .probpr-event-actions-vertical a {
    display: block;
    width: fit-content;
    margin: 0 0 4px;
    color: var(--probpr-primary);
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
    text-decoration: none;
}

.probpr-events-table .probpr-event-actions-vertical a:last-child {
    margin-bottom: 0;
}

.probpr-events-table .probpr-event-actions-vertical a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.probpr-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    justify-content: flex-end;
    padding: 14px 16px;
    border-top: 1px solid var(--probpr-border);
    background: #ffffff;
}

.probpr-pagination a,
.probpr-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid var(--probpr-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
}

.probpr-pagination a:hover {
    border-color: rgba(37, 99, 235, 0.34);
    background: var(--probpr-primary-light);
    color: var(--probpr-primary);
    text-decoration: none;
}

.probpr-pagination .is-active {
    border-color: var(--probpr-primary);
    background: var(--probpr-primary);
    color: #ffffff;
}

.probpr-pagination .is-disabled,
.probpr-pagination .is-gap {
    color: var(--probpr-muted);
    background: #f8fafc;
}

@media (max-width: 1120px) {
    .probpr-events-table-wrap {
        overflow-x: auto;
    }

    .probpr-events-table {
        min-width: 760px !important;
    }
}

@media (max-width: 820px) {
    .probpr-events-tools,
    .probpr-events-search-row {
        grid-template-columns: 1fr;
    }

    .probpr-events-search-summary {
        align-items: flex-start;
    }

    .probpr-pagination {
        justify-content: flex-start;
    }
}

/* ==========================================================================
   ProBPR SETTINGS COMPACT v3 — компактніші налаштування
   Safe override layer. Старі стилі не видаляються.
   ========================================================================== */

.probpr-provider-cabinet {
    --probpr-settings-tab-h: 38px;
    --probpr-settings-panel-pad: 16px;
    --probpr-settings-card-pad: 14px;
}

/* Верхні вкладки налаштувань: з великих карток у компактну навігацію */
.probpr-settings-tabs {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 12px 0 16px;
    padding: 6px;
    border: 1px solid var(--probpr-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.probpr-settings-tab {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: var(--probpr-settings-tab-h);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--probpr-secondary);
    box-shadow: none;
    transform: none;
}

.probpr-settings-tab:hover {
    transform: none;
    box-shadow: none;
    background: var(--probpr-hover);
    border-color: var(--probpr-border);
    color: var(--probpr-primary);
}

.probpr-settings-tab.is-active {
    background: var(--probpr-primary);
    border-color: var(--probpr-primary);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
}

.probpr-settings-tab-title {
    font-size: 13px;
    line-height: 1.1;
    font-weight: 750;
    white-space: nowrap;
}

.probpr-settings-tab small {
    display: none;
}

/* Підвкладки команди теж компактні */
.probpr-settings-subtabs {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
    padding: 6px;
    border: 1px solid var(--probpr-border);
    border-radius: 14px;
    background: #f8fafc;
}

.probpr-settings-subtab {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 11px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: var(--probpr-secondary);
}

.probpr-settings-subtab:hover {
    box-shadow: none;
    background: #ffffff;
    color: var(--probpr-primary);
}

.probpr-settings-subtab.is-active {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.25);
    color: var(--probpr-primary);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.055);
}

.probpr-settings-subtab span {
    font-size: 13px;
    line-height: 1.1;
    font-weight: 750;
    white-space: nowrap;
}

.probpr-settings-subtab small {
    display: none;
}

/* Загальні панелі всередині налаштувань */
.probpr-settings-tabs ~ .probpr-panel .probpr-panel-head,
.probpr-team-panel-body .probpr-panel-head,
.probpr-payment-add-panel .probpr-panel-head,
.probpr-payment-method-editor .probpr-panel-head {
    padding: 13px 16px;
}

.probpr-settings-tabs ~ .probpr-panel .probpr-panel-head h3,
.probpr-team-panel-body .probpr-panel-head h3,
.probpr-payment-add-panel .probpr-panel-head h3,
.probpr-payment-method-editor .probpr-panel-head h3 {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 750;
}

.probpr-settings-tabs ~ .probpr-panel .probpr-panel-note,
.probpr-team-panel-body .probpr-panel-note,
.probpr-payment-add-panel .probpr-panel-note,
.probpr-payment-method-editor .probpr-panel-note {
    font-size: 12px;
    line-height: 1.25;
}

.probpr-settings-form,
.probpr-team-panel-body,
.probpr-payment-method-editor .probpr-form-grid {
    padding: var(--probpr-settings-panel-pad);
}

/* Статистичні картки в налаштуваннях — менші, ніж на дашборді */
.probpr-settings-tabs ~ .probpr-provider-grid,
.probpr-settings-payment-summary,
.probpr-team-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.probpr-settings-tabs ~ .probpr-provider-grid .probpr-provider-card,
.probpr-settings-payment-summary .probpr-provider-card,
.probpr-team-summary-grid .probpr-provider-card {
    padding: 13px 14px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.probpr-settings-tabs ~ .probpr-provider-grid .probpr-provider-card-label,
.probpr-settings-payment-summary .probpr-provider-card-label,
.probpr-team-summary-grid .probpr-provider-card-label {
    margin-bottom: 5px;
    font-size: 11.5px;
    line-height: 1.2;
    font-weight: 650;
}

.probpr-settings-tabs ~ .probpr-provider-grid .probpr-provider-card-value,
.probpr-settings-payment-summary .probpr-provider-card-value,
.probpr-team-summary-grid .probpr-provider-card-value {
    font-size: 20px;
    line-height: 1.12;
    font-weight: 800;
}

/* Юридичні посилання: менші рядки та контрольовані інпути */
.probpr-settings-link-list {
    gap: 8px;
}

.probpr-settings-link-row {
    grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 9px 0;
}

.probpr-settings-link-row label {
    margin-top: 0;
    color: var(--probpr-text);
    font-size: 12.5px;
    line-height: 1.3;
    font-weight: 700;
}

.probpr-settings-link-control {
    gap: 8px;
}

.probpr-settings-link-control input,
.probpr-settings-link-control select {
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 13px;
}

.probpr-settings-link-open {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11.5px;
    font-weight: 750;
}

.probpr-settings-actions,
.probpr-settings-form .probpr-form-actions {
    margin-top: 14px;
    padding: 14px 16px;
}

/* Команда: компактніші картки ролей, інвайтів і журналу */
.probpr-settings-invite-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
    gap: 12px;
    margin-bottom: 14px;
}

.probpr-settings-invite-card,
.probpr-settings-role-card,
.probpr-settings-member-edit-card,
.probpr-settings-activity-head {
    padding: var(--probpr-settings-card-pad);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.035);
}

.probpr-settings-invite-card h4,
.probpr-settings-role-head strong,
.probpr-settings-member-edit-card h4,
.probpr-settings-activity-head h4 {
    font-size: 14px;
    line-height: 1.25;
    font-weight: 750;
}

.probpr-settings-invite-card p,
.probpr-settings-role-card p,
.probpr-settings-member-edit-card p,
.probpr-settings-activity-head p,
.probpr-settings-invite-help ul {
    font-size: 12.5px;
    line-height: 1.42;
}

.probpr-settings-mini-form {
    gap: 10px;
}

.probpr-settings-mini-form .probpr-form-field {
    gap: 5px;
    margin-bottom: 0;
}

.probpr-settings-permission-list,
.probpr-settings-permission-list span {
    line-height: 1.2;
}

.probpr-settings-permission-list span {
    padding: 3px 7px;
    font-size: 11.5px;
    font-weight: 650;
}

/* Платежі: форма додавання і бейджі компактніші */
.probpr-payment-add-panel {
    margin-bottom: 14px;
}

.probpr-payment-add-note {
    margin: 0 16px 12px;
    padding: 10px 12px;
    border-radius: 11px;
    font-size: 12.5px;
    line-height: 1.4;
}

.probpr-payment-add-form {
    gap: 9px;
    padding: 0 16px 16px;
}

.probpr-payment-add-form select {
    min-height: 38px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 13px;
}

.probpr-payment-status-badge,
.probpr-payment-ready-badge,
.probpr-payment-default-badge {
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
}

.probpr-payment-readiness-warning,
.probpr-payment-default-note {
    margin: 0 16px 14px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 12.5px;
}

.probpr-payment-editor-section {
    padding: 16px 16px 0;
}

.probpr-payment-editor-section h4 {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 750;
}

/* Таблиці в налаштуваннях */
.probpr-settings-tabs ~ .probpr-panel .probpr-provider-table th,
.probpr-settings-tabs ~ .probpr-panel .probpr-provider-table td,
.probpr-team-panel-body .probpr-provider-table th,
.probpr-team-panel-body .probpr-provider-table td,
.probpr-payment-methods-table th,
.probpr-payment-methods-table td {
    padding: 10px 12px;
}

.probpr-settings-tabs ~ .probpr-panel .probpr-provider-table td,
.probpr-team-panel-body .probpr-provider-table td,
.probpr-payment-methods-table td {
    font-size: 13px;
    line-height: 1.35;
}

.probpr-settings-tabs ~ .probpr-panel .probpr-provider-table th,
.probpr-team-panel-body .probpr-provider-table th,
.probpr-payment-methods-table th {
    font-size: 10.75px;
    letter-spacing: 0.035em;
}

/* Тариф/домен/email — не такі великі порожні блоки */
.probpr-settings-tabs ~ .probpr-panel .probpr-empty,
.probpr-team-panel-body .probpr-empty {
    padding: 16px;
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 1180px) {
    .probpr-settings-tabs ~ .probpr-provider-grid,
    .probpr-settings-payment-summary,
    .probpr-team-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .probpr-settings-invite-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .probpr-settings-tabs,
    .probpr-settings-subtabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .probpr-settings-link-row {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 6px;
    }

    .probpr-settings-link-control {
        grid-template-columns: 1fr;
    }

    .probpr-settings-tabs ~ .probpr-provider-grid,
    .probpr-settings-payment-summary,
    .probpr-team-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* CRM participant specialties v11.32 */
.probpr-crm-specialty-line {
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1.35;
}

.probpr-crm-specialties-field .probpr-specialty-search {
    max-width: 100%;
}

.probpr-crm-specialties-field .probpr-specialties-box {
    max-height: 320px;
}

.probpr-crm-data-grid div span + strong {
    overflow-wrap: anywhere;
}

/* CRM specific specialties compact selector v11.33 */
.probpr-crm-specialties-compact {
    width: 100%;
}

.probpr-crm-specialties-compact-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.probpr-crm-specialties-field .probpr-crm-specialty-search {
    width: 100%;
    max-width: none;
    min-height: 38px;
    margin: 0;
    padding: 7px 11px;
    border-radius: 10px;
    font-size: 13px;
}

.probpr-crm-specialties-counter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid var(--probpr-border);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--probpr-secondary);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.probpr-crm-specialties-counter strong {
    color: var(--probpr-text);
    font-weight: 800;
}

.probpr-crm-specialties-field .probpr-crm-specialties-box {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    max-height: 260px;
    overflow: auto;
    padding: 10px;
    border-radius: 14px;
    background: #ffffff;
}

.probpr-crm-specialty-chip {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 7px;
    align-items: start;
    min-height: 38px;
    margin: 0;
    padding: 8px 9px;
    border: 1px solid var(--probpr-border);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--probpr-text);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.probpr-crm-specialty-chip:hover {
    border-color: rgba(37, 99, 235, 0.32);
    background: #eff6ff;
}

.probpr-crm-specialty-chip input[type="checkbox"] {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    min-height: 15px !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    flex: 0 0 auto;
}

.probpr-crm-specialty-chip span {
    display: block;
    min-width: 0;
    color: var(--probpr-text);
    font-size: 12.5px;
    line-height: 1.25;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.probpr-crm-specialty-chip small {
    display: block;
    grid-column: 2;
    margin-top: -2px;
    color: var(--probpr-muted);
    font-size: 10.5px;
    line-height: 1.2;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.probpr-crm-specialty-chip:has(input:checked) {
    border-color: rgba(37, 99, 235, 0.45);
    background: var(--probpr-primary-light);
}

.probpr-crm-specialty-chip:has(input:checked) span {
    color: var(--probpr-primary-dark);
    font-weight: 800;
}

.probpr-crm-specialties-field .probpr-specialty-help {
    margin-top: 8px;
    font-size: 11.5px;
}

@media (max-width: 1180px) {
    .probpr-crm-specialties-field .probpr-crm-specialties-box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .probpr-crm-specialties-compact-head {
        grid-template-columns: 1fr;
    }

    .probpr-crm-specialties-counter {
        width: fit-content;
    }

    .probpr-crm-specialties-field .probpr-crm-specialties-box {
        grid-template-columns: 1fr;
        max-height: 320px;
    }
}

/* CRM specific specialties compact list v1 */
.probpr-crm-specific-specialties {
    display: block;
    width: 100%;
}

.probpr-crm-specific-specialties-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.probpr-crm-specific-specialties-search {
    width: 100%;
    min-height: 38px !important;
    padding: 7px 11px !important;
    border: 1px solid var(--probpr-border) !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: var(--probpr-text) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    box-sizing: border-box;
}

.probpr-crm-specific-specialties-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid var(--probpr-border);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--probpr-secondary);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.probpr-crm-specific-specialties-counter strong {
    margin-left: 4px;
    color: var(--probpr-text);
    font-weight: 800;
}

.probpr-crm-specific-specialties-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 14px;
    max-height: 260px;
    overflow: auto;
    padding: 10px 12px;
    border: 1px solid var(--probpr-border);
    border-radius: 12px;
    background: #ffffff;
    box-sizing: border-box;
}

.probpr-crm-specific-specialty-row {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 25px;
    margin: 0;
    color: var(--probpr-secondary);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
    min-width: 0;
}

.probpr-crm-specific-specialty-row:hover {
    color: var(--probpr-primary);
}

.probpr-crm-specific-specialty-row input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    flex: 0 0 18px;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

.probpr-crm-specific-specialty-row span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.probpr-crm-specific-specialty-row.is-hidden {
    display: none !important;
}

.probpr-crm-specific-specialties-empty {
    grid-column: 1 / -1;
    padding: 8px 0;
    color: var(--probpr-muted);
    font-size: 13px;
    font-weight: 600;
}

.probpr-crm-specific-specialties-help {
    margin: 7px 0 0;
    color: var(--probpr-muted);
    font-size: 12px;
    line-height: 1.35;
}

@media (max-width: 1180px) {
    .probpr-crm-specific-specialties-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .probpr-crm-specific-specialties-head {
        grid-template-columns: 1fr;
    }

    .probpr-crm-specific-specialties-counter {
        width: fit-content;
    }

    .probpr-crm-specific-specialties-list {
        grid-template-columns: 1fr;
        max-height: 300px;
    }
/* ProBPR CRM specialties compact color/weight fix */
.probpr-provider-cabinet .probpr-crm-specialties-compact,
.probpr-provider-cabinet .probpr-crm-specialties-compact * {
    color: inherit;
}

.probpr-provider-cabinet .probpr-crm-specialties-compact label,
.probpr-provider-cabinet .probpr-crm-specialty-row,
.probpr-provider-cabinet .probpr-crm-specialty-row label,
.probpr-provider-cabinet .probpr-crm-specialty-row span {
    color: var(--probpr-secondary) !important;
    font-weight: 400 !important;
}

.probpr-provider-cabinet .probpr-crm-specialty-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
    line-height: 1.3;
    cursor: pointer;
}

.probpr-provider-cabinet .probpr-crm-specialty-row label:hover,
.probpr-provider-cabinet .probpr-crm-specialty-row label:hover span {
    color: var(--probpr-primary) !important;
}

.probpr-provider-cabinet .probpr-crm-specialty-row input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: var(--probpr-primary);
}

.probpr-provider-cabinet .probpr-crm-specialty-row input[type="checkbox"]:checked + span,
.probpr-provider-cabinet .probpr-crm-specialty-row.is-checked span {
    color: var(--probpr-text) !important;
    font-weight: 500 !important;
}

.probpr-provider-cabinet .probpr-crm-specialties-empty {
    color: var(--probpr-muted) !important;
    font-weight: 500 !important;
}
}


/* Global certificates base v1 */
.probpr-certificates-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.probpr-certificates-head {
    align-items: flex-start;
}

.probpr-certificates-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding: 10px 14px;
    border: 1px solid var(--probpr-border);
    border-radius: 14px;
    background: var(--probpr-surface);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.probpr-certificates-summary span {
    color: var(--probpr-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.probpr-certificates-summary strong {
    color: var(--probpr-text);
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
}

.probpr-certificates-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.probpr-certificates-metric {
    padding: 14px 16px;
    border: 1px solid var(--probpr-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.probpr-certificates-metric span {
    display: block;
    color: var(--probpr-secondary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.probpr-certificates-metric strong {
    display: block;
    margin-top: 8px;
    color: var(--probpr-text);
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
}

.probpr-certificates-metric small {
    display: block;
    margin-top: 7px;
    color: var(--probpr-muted);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
}

.probpr-certificates-filter-form {
    padding: 14px;
    border: 1px solid var(--probpr-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.probpr-certificates-filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) repeat(5, minmax(150px, 1fr));
    gap: 12px;
    align-items: end;
}

.probpr-certificates-filter-form .probpr-form-field {
    margin-bottom: 0;
}

.probpr-certificates-filter-form .probpr-form-field label {
    font-size: 12px;
    font-weight: 700;
}

.probpr-certificates-filter-form input,
.probpr-certificates-filter-form select {
    min-height: 38px;
    border-radius: 10px;
    font-size: 13px;
}

.probpr-certificates-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.probpr-certificates-card {
    margin-bottom: 0;
}

.probpr-certificates-panel-head {
    align-items: flex-start;
}


.probpr-certificates-table-wrap {
    overflow-x: visible;
}

.probpr-certificates-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.probpr-certificates-table th,
.probpr-certificates-table td {
    padding-left: 11px;
    padding-right: 11px;
}

.probpr-certificates-table th:nth-child(1),
.probpr-certificates-table td:nth-child(1) {
    width: 150px;
}

.probpr-certificates-table th:nth-child(2),
.probpr-certificates-table td:nth-child(2) {
    width: 245px;
}

.probpr-certificates-table th:nth-child(3),
.probpr-certificates-table td:nth-child(3) {
    width: auto;
}

.probpr-certificates-table th:nth-child(4),
.probpr-certificates-table td:nth-child(4) {
    width: 76px;
    text-align: center;
}

.probpr-certificates-table th:nth-child(5),
.probpr-certificates-table td:nth-child(5) {
    width: 118px;
}

.probpr-certificates-table th:nth-child(6),
.probpr-certificates-table td:nth-child(6) {
    width: 126px;
}

.probpr-cert-number-cell strong,
.probpr-cert-person-cell strong,
.probpr-cert-event-cell strong {
    display: block;
    color: var(--probpr-text);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.probpr-cert-number-cell small,
.probpr-cert-person-cell small,
.probpr-cert-event-cell small {
    display: block;
    margin-top: 4px;
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.probpr-cert-pdf-missing {
    display: inline-flex;
    margin-top: 6px;
    color: var(--probpr-muted);
    font-size: 12px;
    font-weight: 600;
}

.probpr-cert-actions a {
    color: var(--probpr-primary);
    font-size: 12px;
    font-weight: 700;
}

.probpr-certificates-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-top: 1px solid var(--probpr-border);
    background: #ffffff;
}

.probpr-certificates-pagination-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

@media (max-width: 1180px) {
    .probpr-certificates-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .probpr-certificates-filter-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .probpr-certificates-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .probpr-certificates-table-wrap {
        overflow-x: auto;
    }

    .probpr-certificates-table {
        min-width: 860px;
        table-layout: auto;
    }
}

@media (max-width: 720px) {
    .probpr-certificates-head {
        flex-direction: column;
        gap: 12px;
    }

    .probpr-certificates-summary {
        align-items: flex-start;
        width: 100%;
    }

    .probpr-certificates-metrics,
    .probpr-certificates-filter-grid {
        grid-template-columns: 1fr;
    }

    .probpr-certificates-pagination {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Афіша заходу */
.probpr-event-poster-field {
    display: grid;
    gap: 12px;
}

.probpr-event-poster-preview {
    width: min(260px, 100%);
    min-height: 320px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-align: center;
    padding: 16px;
    box-sizing: border-box;
}

.probpr-event-poster-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.probpr-event-poster-controls {
    display: grid;
    gap: 10px;
}

.probpr-event-poster-controls input[type="file"] {
    width: 100%;
}

.probpr-event-poster-remove {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 13px;
}


/* Виправлення завантаження афіші: кнопка + файл з комп’ютера */
.probpr-event-poster-file-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.probpr-event-poster-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.probpr-event-poster-upload-button {
    cursor: pointer;
    margin: 0;
}

.probpr-event-poster-actions .is-hidden {
    display: none !important;
}

.probpr-event-poster-file-name {
    font-size: 12px;
    color: #475569;
}

.probpr-event-poster-preview.is-remove-pending {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #92400e;
}


/* Афіша заходу 1:1 */
.probpr-event-poster-preview {
    width: min(220px, 100%);
    min-height: 0;
    aspect-ratio: 1 / 1;
}

.probpr-event-poster-preview img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.probpr-event-poster-field small {
    max-width: 420px;
}
/* ProBPR provider cabinet: "Навчальна кімната" */
.probpr-room-admin {
    display: grid;
    gap: 16px;
}

.probpr-room-admin .probpr-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.probpr-room-admin .probpr-info-card {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid var(--probpr-border, #e5e7eb);
    border-radius: 16px;
    background: #f8fafc;
}

.probpr-room-admin .probpr-info-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.probpr-room-admin .probpr-info-card strong {
    color: #0f172a;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 900;
}

.probpr-room-admin .probpr-info-card small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
    word-break: break-word;
}

.probpr-room-staff-form {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--probpr-border, #e5e7eb);
}

.probpr-room-staff-form h5 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 900;
}

@media (max-width: 760px) {
    .probpr-room-admin .probpr-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ProBPR provider cashier */
.probpr-cashier-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.probpr-cashier-form {
    margin: 0;
}

.probpr-cashier-block {
    display: grid;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--probpr-border);
}

.probpr-cashier-block:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.probpr-cashier-block h4 {
    margin: 0;
    color: var(--probpr-text);
    font-size: 15px;
    line-height: 1.25;
    font-weight: 900;
}

.probpr-cashier-events,
.probpr-cashier-participants {
    display: grid;
    gap: 8px;
}

.probpr-cashier-check-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 11px 12px;
    border: 1px solid var(--probpr-border);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}

.probpr-cashier-check-card:hover {
    background: var(--probpr-hover);
}

.probpr-cashier-check-card input {
    margin-top: 3px;
}

.probpr-cashier-check-card strong {
    display: block;
    color: var(--probpr-text);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 850;
}

.probpr-cashier-check-card small {
    display: block;
    margin-top: 3px;
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 650;
}

.probpr-cashier-new-list {
    display: grid;
    gap: 10px;
}

.probpr-cashier-new-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.75fr 0.75fr 0.9fr 1fr 1fr;
    gap: 8px;
}

.probpr-cashier-new-row input,
.probpr-cashier-new-row select {
    width: 100%;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--probpr-border);
    border-radius: 12px;
    background: #fff;
    color: var(--probpr-text);
    font-size: 12px;
    line-height: 1.3;
}

.probpr-cashier-side {
    display: grid;
    gap: 18px;
}

.probpr-cashier-info-list {
    margin: 0;
    padding-left: 18px;
    color: var(--probpr-secondary);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 650;
}

.probpr-cashier-email-note {
    padding: 12px 14px;
    border-radius: 14px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 800;
}

@media (max-width: 1180px) {
    .probpr-cashier-grid {
        grid-template-columns: 1fr;
    }

    .probpr-cashier-new-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .probpr-cashier-new-row {
        grid-template-columns: 1fr;
    }
}

/* ProBPR cashier live search */
.probpr-cashier-live-search {
    display: grid;
    gap: 10px;
}

.probpr-cashier-live-input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--probpr-border);
    border-radius: 14px;
    background: #fff;
    color: var(--probpr-text);
    font-size: 14px;
    line-height: 1.35;
}

.probpr-cashier-live-status {
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
}

.probpr-cashier-live-results,
.probpr-cashier-selected {
    display: grid;
    gap: 8px;
}

.probpr-cashier-live-result,
.probpr-cashier-selected-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--probpr-border);
    border-radius: 14px;
    background: #fff;
    text-align: left;
}

.probpr-cashier-live-result {
    cursor: pointer;
}

.probpr-cashier-live-result:hover {
    background: var(--probpr-hover);
}

.probpr-cashier-live-result strong,
.probpr-cashier-selected-row strong {
    display: block;
    color: var(--probpr-text);
    font-size: 13px;
    line-height: 1.32;
    font-weight: 850;
}

.probpr-cashier-live-result small,
.probpr-cashier-selected-row small {
    display: block;
    margin-top: 3px;
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 650;
}

.probpr-cashier-remove {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
}

.probpr-cashier-remove:hover {
    background: #fecaca;
}

/* ProBPR cashier matrix */
.probpr-cashier-matrix {
    display: grid;
    gap: 12px;
}

.probpr-cashier-matrix-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.probpr-cashier-matrix-actions span {
    margin-left: auto;
    color: var(--probpr-secondary);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 850;
}

.probpr-button-small {
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 12px;
}

.probpr-cashier-matrix-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--probpr-border);
    border-radius: 16px;
    background: #fff;
}

.probpr-cashier-matrix-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.probpr-cashier-matrix-table th,
.probpr-cashier-matrix-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--probpr-border);
    border-right: 1px solid var(--probpr-border);
    vertical-align: middle;
}

.probpr-cashier-matrix-table th:last-child,
.probpr-cashier-matrix-table td:last-child {
    border-right: 0;
}

.probpr-cashier-matrix-table tr:last-child td {
    border-bottom: 0;
}

.probpr-cashier-matrix-table th {
    background: #f8fafc;
    color: var(--probpr-text);
    font-size: 12px;
    line-height: 1.25;
    font-weight: 900;
    text-align: center;
}

.probpr-cashier-matrix-table th:first-child {
    text-align: left;
    width: 230px;
}

.probpr-cashier-matrix-table th span,
.probpr-cashier-matrix-table td strong {
    display: block;
}

.probpr-cashier-matrix-table th small,
.probpr-cashier-matrix-table td small {
    display: block;
    margin-top: 3px;
    color: var(--probpr-secondary);
    font-size: 11px;
    line-height: 1.25;
    font-weight: 700;
}

.probpr-cashier-matrix-table td:first-child {
    color: var(--probpr-text);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 850;
}

.probpr-cashier-matrix-cell {
    text-align: center;
}

.probpr-cashier-matrix-cell label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 82px;
    padding: 7px 9px;
    border: 1px solid var(--probpr-border);
    border-radius: 999px;
    background: #fff;
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1;
    font-weight: 850;
    cursor: pointer;
}

.probpr-cashier-matrix-cell label:has(input:checked) {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

@media (max-width: 720px) {
    .probpr-cashier-matrix-actions span {
        width: 100%;
        margin-left: 0;
    }
}
/* ProBPR cashier order management */
.probpr-cashier-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.probpr-cashier-inline-action {
    display: inline-flex;
    margin: 0;
}

.probpr-cashier-inline-action button,
.probpr-cashier-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 9px;
    border: 1px solid var(--probpr-border);
    border-radius: 999px;
    background: #fff;
    color: var(--probpr-text);
    font-size: 11px;
    line-height: 1;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.probpr-cashier-inline-action button:hover,
.probpr-cashier-action-link:hover {
    background: var(--probpr-hover);
}

.probpr-cashier-inline-action.is-positive button {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.probpr-cashier-inline-action.is-danger button {
    border-color: #fecaca;
    background: #fff1f2;
    color: #991b1b;
}

.probpr-cashier-detail {
    margin-top: 18px;
}

.probpr-cashier-comment {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--probpr-border);
    border-radius: 14px;
    background: #fff;
    color: var(--probpr-secondary);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 650;
}

.probpr-provider-table tr.is-cancelled td {
    opacity: 0.62;
    background: #f8fafc;
}

/* ProBPR cashier operations filters */
.probpr-cashier-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) auto;
    gap: 10px;
    align-items: end;
    margin: 14px 0 16px;
    padding: 12px;
    border: 1px solid var(--probpr-border);
    border-radius: 16px;
    background: #f8fafc;
}

.probpr-cashier-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.probpr-cashier-pagination {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 14px;
}

.probpr-cashier-pagination span {
    color: var(--probpr-secondary);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
}

.probpr-cashier-detail-nav {
    margin: 0 0 12px;
}

.probpr-link {
    color: var(--probpr-primary);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 850;
    text-decoration: none;
}

.probpr-link:hover {
    text-decoration: underline;
}

@media (max-width: 980px) {
    .probpr-cashier-filters {
        grid-template-columns: 1fr;
    }

    .probpr-cashier-filter-actions,
    .probpr-cashier-pagination {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* ProBPR cashier inner layout tabs */
.probpr-cashier-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.probpr-cashier-tabs {
    position: sticky;
    top: 16px;
    display: grid;
    gap: 10px;
}

.probpr-cashier-tab {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 10px;
    align-items: start;
    padding: 13px 14px;
    border: 1px solid var(--probpr-border);
    border-radius: 16px;
    background: #fff;
    color: var(--probpr-text);
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.probpr-cashier-tab:hover {
    background: var(--probpr-hover);
    text-decoration: none;
}

.probpr-cashier-tab.is-active {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.probpr-cashier-tab > span {
    grid-row: span 2;
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: #f1f5f9;
    font-size: 16px;
}

.probpr-cashier-tab.is-active > span {
    background: #dbeafe;
}

.probpr-cashier-tab strong {
    display: block;
    color: var(--probpr-text);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 900;
}

.probpr-cashier-tab small {
    display: block;
    color: var(--probpr-secondary);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;
}

.probpr-cashier-layout-content {
    min-width: 0;
}

@media (max-width: 980px) {
    .probpr-cashier-layout {
        grid-template-columns: 1fr;
    }

    .probpr-cashier-tabs {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .probpr-cashier-tabs {
        grid-template-columns: 1fr;
    }
}

/* ProBPR cashier top tabs fix */
.probpr-cashier-layout {
    display: block;
}

.probpr-cashier-tabs {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -6px 0 18px;
}

.probpr-cashier-tab {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    min-width: 240px;
    flex: 0 1 310px;
    padding: 12px 14px;
}

.probpr-cashier-tab > span {
    width: 30px;
    height: 30px;
}

.probpr-cashier-layout-content {
    width: 100%;
    min-width: 0;
}

@media (max-width: 980px) {
    .probpr-cashier-tabs {
        grid-template-columns: initial;
    }
}

@media (max-width: 640px) {
    .probpr-cashier-tabs {
        display: grid;
        grid-template-columns: 1fr;
    }

    .probpr-cashier-tab {
        min-width: 0;
        width: 100%;
    }
}

/* ProBPR cashier tabs: same visual style as event tabs */
.probpr-cashier-tabs {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin: -4px 0 18px;
    padding: 10px;
    border: 1px solid var(--probpr-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.probpr-cashier-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    flex: 0 0 auto;
    padding: 12px 16px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--probpr-secondary);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 900;
    text-decoration: none;
    box-shadow: none;
}

.probpr-cashier-tab:hover {
    background: #f8fafc;
    color: var(--probpr-text);
    text-decoration: none;
}

.probpr-cashier-tab.is-active {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.probpr-cashier-tab.is-active:hover {
    background: #2563eb;
    color: #fff;
}

.probpr-cashier-tab > span,
.probpr-cashier-tab strong,
.probpr-cashier-tab small {
    display: none;
}

@media (max-width: 640px) {
    .probpr-cashier-tabs {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .probpr-cashier-tab {
        white-space: nowrap;
    }
}

/* ProBPR cashier quick bulk participants */
.probpr-cashier-new-row {
    position: relative;
    grid-template-columns: 1.2fr 1fr 0.75fr 0.75fr 0.9fr 1fr 1fr 34px;
}

.probpr-cashier-row-remove {
    display: inline-grid;
    place-items: center;
    width: 34px;
    min-width: 34px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
}

.probpr-cashier-row-remove:hover {
    background: #fecaca;
}

.probpr-cashier-bulk-add {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
}

.probpr-cashier-bulk-head {
    display: grid;
    gap: 3px;
}

.probpr-cashier-bulk-head strong {
    color: var(--probpr-text);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 900;
}

.probpr-cashier-bulk-head span {
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 650;
}

.probpr-cashier-bulk-add textarea {
    width: 100%;
    min-height: 86px;
    padding: 10px 12px;
    border: 1px solid var(--probpr-border);
    border-radius: 14px;
    background: #fff;
    color: var(--probpr-text);
    font-size: 12px;
    line-height: 1.45;
    resize: vertical;
}

.probpr-cashier-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.probpr-cashier-bulk-actions span {
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 750;
}

@media (max-width: 1180px) {
    .probpr-cashier-new-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .probpr-cashier-row-remove {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .probpr-cashier-new-row {
        grid-template-columns: 1fr;
    }
}

/* ProBPR cashier pre-submit validation */
.probpr-cashier-validation {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid var(--probpr-border);
    border-radius: 16px;
    background: #f8fafc;
}

.probpr-cashier-validation > strong {
    color: var(--probpr-text);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 900;
}

.probpr-cashier-validation-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.probpr-cashier-validation-stats span {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 6px 9px;
    border-radius: 999px;
    background: #fff;
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

.probpr-cashier-validation-stats strong {
    color: var(--probpr-text);
}

.probpr-cashier-validation p,
.probpr-cashier-validation ul {
    margin: 0;
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 700;
}

.probpr-cashier-validation ul {
    padding-left: 18px;
}

.probpr-cashier-validation.is-ok {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.probpr-cashier-validation.is-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.probpr-cashier-validation.is-danger {
    border-color: #fecaca;
    background: #fef2f2;
}

.is-probpr-invalid {
    border-color: #ef4444 !important;
    background: #fff7f7 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08) !important;
}

/* ProBPR cashier matrix availability */
.probpr-cashier-matrix-cell.is-disabled {
    background: #f8fafc;
}

.probpr-cashier-matrix-cell.is-disabled label {
    border-color: #e2e8f0;
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.probpr-cashier-matrix-cell.is-disabled input {
    cursor: not-allowed;
}

.probpr-cashier-matrix-cell.is-warning label {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.probpr-cashier-cell-note {
    margin-top: 6px;
    color: #64748b;
    font-size: 10.5px;
    line-height: 1.25;
    font-weight: 750;
    text-align: center;
}

.probpr-cashier-matrix-cell.is-disabled .probpr-cashier-cell-note {
    color: #991b1b;
}

.probpr-cashier-matrix-cell.is-warning .probpr-cashier-cell-note {
    color: #92400e;
}

/* ProBPR cashier detail improved layout and action buttons */
.probpr-cashier-detail-head {
    align-items: flex-start;
}

.probpr-cashier-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.probpr-cashier-detail-card {
    display: grid;
    gap: 6px;
    min-height: 94px;
    padding: 14px;
    border: 1px solid var(--probpr-border);
    border-radius: 16px;
    background: #fff;
}

.probpr-cashier-detail-card > span {
    color: var(--probpr-secondary);
    font-size: 11px;
    line-height: 1.25;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.probpr-cashier-detail-card > strong {
    color: var(--probpr-text);
    font-size: 22px;
    line-height: 1.15;
    font-weight: 950;
}

.probpr-cashier-detail-card > small {
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 750;
}

.probpr-cashier-detail-block {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.probpr-form-section-head.is-compact {
    margin-bottom: 0;
}

.probpr-form-section-head.is-compact h3 {
    font-size: 16px;
}

.probpr-form-section-head.is-compact p {
    margin-top: 3px;
}

.probpr-cashier-participant-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.probpr-cashier-participant-card {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--probpr-border);
    border-radius: 14px;
    background: #fff;
}

.probpr-cashier-participant-card strong {
    color: var(--probpr-text);
    font-size: 13px;
    line-height: 1.3;
    font-weight: 900;
}

.probpr-cashier-participant-card span {
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 650;
}

.probpr-cashier-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

.probpr-cashier-status.is-success {
    background: #dcfce7;
    color: #166534;
}

.probpr-cashier-status.is-warning {
    background: #fef3c7;
    color: #92400e;
}

.probpr-cashier-status.is-danger {
    background: #fee2e2;
    color: #991b1b;
}

.probpr-cashier-status.is-muted {
    background: #f1f5f9;
    color: #475569;
}

.probpr-cashier-status-list {
    display: grid;
    gap: 6px;
}

.probpr-cashier-status-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.probpr-cashier-status-list > div > span {
    color: var(--probpr-secondary);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
}

.probpr-cashier-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.probpr-cashier-actions .probpr-cashier-inline-action,
.probpr-cashier-detail-table .probpr-cashier-inline-action {
    margin: 0;
    display: inline-flex;
}

.probpr-cashier-action-link,
.probpr-cashier-inline-action button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 7px 10px;
    border: 1px solid var(--probpr-border);
    border-radius: 10px;
    background: #fff;
    color: var(--probpr-text);
    font-size: 11.5px;
    line-height: 1;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}

.probpr-cashier-action-link:hover,
.probpr-cashier-inline-action button:hover {
    background: #f8fafc;
    text-decoration: none;
}

.probpr-cashier-inline-action.is-positive button {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.probpr-cashier-inline-action.is-danger button {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.probpr-cashier-detail-table td {
    vertical-align: top;
}

.probpr-cashier-detail-table td > .probpr-link {
    display: inline-flex;
    margin-top: 4px;
}

@media (max-width: 1180px) {
    .probpr-cashier-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .probpr-cashier-participant-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .probpr-cashier-detail-grid,
    .probpr-cashier-participant-cards {
        grid-template-columns: 1fr;
    }

    .probpr-cashier-actions {
        align-items: stretch;
    }

    .probpr-cashier-action-link,
    .probpr-cashier-inline-action,
    .probpr-cashier-inline-action button {
        width: 100%;
    }
}

/* ProBPR cashier warning fix + compact action column */
.probpr-cashier-operations-table .probpr-cashier-actions {
    display: grid;
    grid-template-columns: minmax(128px, 168px);
    gap: 6px;
    align-items: start;
    justify-content: start;
}

.probpr-cashier-operations-table .probpr-cashier-action-link,
.probpr-cashier-operations-table .probpr-cashier-inline-action,
.probpr-cashier-operations-table .probpr-cashier-inline-action button {
    width: 100%;
}

.probpr-cashier-detail-table .probpr-cashier-inline-action,
.probpr-cashier-detail-table .probpr-cashier-inline-action button {
    width: 100%;
    max-width: 190px;
}

.probpr-cashier-detail-head > .probpr-cashier-actions {
    justify-content: flex-end;
}

.probpr-cashier-detail-table .probpr-cashier-status-list {
    min-width: 190px;
}

.probpr-cashier-operations-table .probpr-cashier-action-link,
.probpr-cashier-operations-table .probpr-cashier-inline-action button,
.probpr-cashier-detail-table .probpr-cashier-inline-action button {
    min-height: 32px;
    padding: 8px 10px;
    text-align: center;
}

@media (max-width: 720px) {
    .probpr-cashier-operations-table .probpr-cashier-actions {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .probpr-cashier-detail-head > .probpr-cashier-actions {
        justify-content: stretch;
    }

    .probpr-cashier-detail-table .probpr-cashier-inline-action button {
        max-width: none;
    }
}

/* ProBPR cashier filters: equalized layout */
.probpr-cashier-filters {
    grid-template-columns: minmax(320px, 2fr) minmax(220px, 1fr) minmax(220px, 1fr) auto;
    align-items: end;
    gap: 12px;
    padding: 14px 16px;
}

.probpr-cashier-filters .probpr-form-field {
    display: grid;
    gap: 6px;
    margin: 0;
}

.probpr-cashier-filters .probpr-form-field label {
    margin: 0;
    min-height: 18px;
    color: var(--probpr-secondary);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 900;
}

.probpr-cashier-filters input[type="search"],
.probpr-cashier-filters select {
    width: 100%;
    height: 52px;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid var(--probpr-border);
    border-radius: 14px;
    background-color: #fff;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.2;
}

.probpr-cashier-filter-actions {
    display: grid;
    grid-template-columns: 136px 112px;
    gap: 10px;
    align-items: end;
    align-self: end;
}

.probpr-cashier-filter-actions .probpr-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    min-height: 52px;
    margin: 0;
    padding: 0 16px;
    border-radius: 14px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .probpr-cashier-filters {
        grid-template-columns: minmax(240px, 1.4fr) minmax(180px, 1fr) minmax(180px, 1fr);
    }

    .probpr-cashier-filter-actions {
        grid-column: 1 / -1;
        grid-template-columns: 160px 130px;
        justify-content: end;
    }
}

@media (max-width: 780px) {
    .probpr-cashier-filters {
        grid-template-columns: 1fr;
    }

    .probpr-cashier-filter-actions {
        grid-column: auto;
        grid-template-columns: 1fr 1fr;
        justify-content: stretch;
    }
}

@media (max-width: 480px) {
    .probpr-cashier-filter-actions {
        grid-template-columns: 1fr;
    }
}

/* ProBPR cashier filters: move action buttons under search */
.probpr-cashier-filters {
    grid-template-columns: minmax(320px, 1.6fr) minmax(220px, 1fr) minmax(220px, 1fr);
    align-items: start;
}

.probpr-cashier-filter-actions {
    grid-column: 1 / 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: 136px 112px;
    gap: 10px;
    justify-content: start;
    align-self: start;
    margin-top: 2px;
}

.probpr-cashier-filter-actions .probpr-button {
    height: 48px;
    min-height: 48px;
}

@media (max-width: 980px) {
    .probpr-cashier-filters {
        grid-template-columns: 1fr 1fr;
    }

    .probpr-cashier-filter-actions {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-content: start;
    }
}

@media (max-width: 640px) {
    .probpr-cashier-filters {
        grid-template-columns: 1fr;
    }

    .probpr-cashier-filter-actions {
        grid-template-columns: 1fr 1fr;
        justify-content: stretch;
    }
}

@media (max-width: 420px) {
    .probpr-cashier-filter-actions {
        grid-template-columns: 1fr;
    }
}

/* ProBPR CRM central card links */
.probpr-crm-list-name {
    color: var(--probpr-text);
    text-decoration: none;
}

.probpr-crm-list-name:hover {
    color: var(--probpr-primary);
    text-decoration: underline;
}

/* ProBPR event MOH certificate registry audit */
.probpr-registry-audit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.probpr-registry-audit-card {
    display: grid;
    gap: 6px;
    min-height: 92px;
    padding: 14px;
    border: 1px solid var(--probpr-border);
    border-radius: 16px;
    background: #fff;
}

.probpr-registry-audit-card > span {
    color: var(--probpr-secondary);
    font-size: 11px;
    line-height: 1.25;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.probpr-registry-audit-card > strong {
    color: var(--probpr-text);
    font-size: 24px;
    line-height: 1.1;
    font-weight: 950;
}

.probpr-registry-audit-card > small {
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 750;
}

.probpr-registry-audit-card.is-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.probpr-registry-audit-card.is-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.probpr-registry-warning-box {
    display: grid;
    gap: 10px;
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #fde68a;
    border-radius: 16px;
    background: #fffbeb;
}

.probpr-registry-warning-box strong {
    color: #92400e;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 900;
}

.probpr-registry-missing-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.probpr-registry-missing-tags span {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    background: #fff;
    color: #92400e;
    font-size: 11px;
    line-height: 1;
    font-weight: 850;
}

.probpr-registry-ready {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
}

.probpr-registry-missing {
    display: grid;
    gap: 4px;
}

.probpr-registry-missing > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-height: 24px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
}

.probpr-registry-missing > small {
    color: #92400e;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 750;
}

.probpr-registry-table tr.is-registry-warning {
    background: #fffbeb;
}

.probpr-registry-table .probpr-row-actions {
    display: grid;
    grid-template-columns: minmax(120px, 1fr);
    gap: 6px;
}

.probpr-registry-table .probpr-button-small {
    width: 100%;
    justify-content: center;
}

@media (max-width: 900px) {
    .probpr-registry-audit-grid {
        grid-template-columns: 1fr;
    }
}

/* ProBPR registry deadline and lock */
.probpr-registry-deadline-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr) minmax(220px, 0.7fr);
    gap: 14px;
    align-items: stretch;
    margin: 14px 0;
    padding: 14px;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    background: #eff6ff;
}

.probpr-registry-deadline-panel.is-overdue {
    border-color: #fecaca;
    background: #fef2f2;
}

.probpr-registry-deadline-panel.is-closed {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.probpr-registry-deadline-main {
    display: grid;
    gap: 6px;
}

.probpr-registry-deadline-kicker {
    color: #1d4ed8;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.probpr-registry-deadline-panel.is-overdue .probpr-registry-deadline-kicker {
    color: #991b1b;
}

.probpr-registry-deadline-panel.is-closed .probpr-registry-deadline-kicker {
    color: #166534;
}

.probpr-registry-deadline-main strong {
    color: var(--probpr-text);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 950;
}

.probpr-registry-deadline-main p {
    margin: 0;
    color: var(--probpr-secondary);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 750;
}

.probpr-registry-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.probpr-registry-countdown > div {
    display: grid;
    gap: 4px;
    place-items: center;
    padding: 10px 8px;
    border-radius: 14px;
    background: #fff;
}

.probpr-registry-countdown strong {
    color: var(--probpr-text);
    font-size: 22px;
    line-height: 1;
    font-weight: 950;
}

.probpr-registry-countdown span {
    color: var(--probpr-secondary);
    font-size: 10px;
    line-height: 1;
    font-weight: 850;
    text-transform: uppercase;
}

.probpr-registry-close-area {
    display: grid;
    gap: 8px;
    align-content: center;
    justify-items: stretch;
}

.probpr-registry-close-area .probpr-button {
    width: 100%;
    justify-content: center;
}

.probpr-button-danger {
    border-color: #fecaca !important;
    background: #dc2626 !important;
    color: #fff !important;
}

.probpr-registry-close-area small {
    color: var(--probpr-secondary);
    font-size: 11px;
    line-height: 1.35;
    font-weight: 750;
}

.probpr-registry-closed-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 9px 12px;
    border-radius: 12px;
    background: #16a34a;
    color: #fff;
    font-size: 13px;
    line-height: 1;
    font-weight: 950;
}

.probpr-registry-locked-box {
    display: grid;
    gap: 10px;
    margin: 14px 0;
    padding: 16px;
    border: 1px solid #bbf7d0;
    border-radius: 18px;
    background: #f0fdf4;
}

.probpr-registry-locked-box strong {
    color: #166534;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 950;
}

.probpr-registry-locked-box span {
    color: #166534;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 750;
}

@media (max-width: 1100px) {
    .probpr-registry-deadline-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .probpr-registry-countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ProBPR registry ENK monthly tabs */
.probpr-registry-period-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 14px;
    padding: 10px;
    border: 1px solid var(--probpr-border);
    border-radius: 18px;
    background: #fff;
}

.probpr-registry-period-tab {
    display: grid;
    gap: 4px;
    min-width: 150px;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--probpr-secondary);
    text-decoration: none;
}

.probpr-registry-period-tab:hover {
    background: #f8fafc;
    text-decoration: none;
}

.probpr-registry-period-tab.is-active {
    background: #2563eb;
    color: #fff;
}

.probpr-registry-period-tab.is-closed {
    border: 1px solid #bbf7d0;
}

.probpr-registry-period-tab.is-active.is-closed {
    background: #16a34a;
}

.probpr-registry-period-tab strong {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 950;
}

.probpr-registry-period-tab span {
    font-size: 11px;
    line-height: 1.2;
    font-weight: 850;
    opacity: 0.9;
}

@media (max-width: 640px) {
    .probpr-registry-period-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .probpr-registry-period-tab {
        min-width: 140px;
    }
}

/* ProBPR registry countdown visibility states */
.probpr-registry-countdown-note {
    display: grid;
    align-content: center;
    min-height: 74px;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    color: var(--probpr-secondary);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;
}

.probpr-registry-countdown-note.is-overdue {
    background: #fee2e2;
    color: #991b1b;
}

.probpr-registry-countdown.is-finished {
    border-radius: 16px;
    outline: 2px solid #fecaca;
    outline-offset: 0;
}

/* ProBPR certificate specialty settings */
.probpr-certificate-specialties-settings textarea {
    min-height: 86px;
    resize: vertical;
}

.probpr-certificate-specialties-preview {
    display: grid;
    gap: 6px;
    margin: 12px 0 0;
    padding: 12px 14px;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: #eff6ff;
}

.probpr-certificate-specialties-preview span {
    color: #1d4ed8;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.probpr-certificate-specialties-preview strong {
    color: var(--probpr-text);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 850;
}


/* ProBPR trainer / lecturer BPR registry settings */
.probpr-bpr-scoring-section,
.probpr-trainer-registry-settings {
    border-color: rgba(22, 71, 255, 0.14);
    background:
        radial-gradient(circle at top right, rgba(24, 182, 163, 0.08), transparent 18rem),
        #ffffff;
}

.probpr-check-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--probpr-border, #e4eaf2);
    border-radius: 18px;
    background: #f8fafc;
    cursor: pointer;
}

.probpr-check-card input {
    margin-top: 3px;
    accent-color: #1647ff;
}

.probpr-check-card span {
    display: grid;
    gap: 4px;
}

.probpr-check-card strong {
    color: #07111f;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 900;
}

.probpr-check-card small {
    color: #667085;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 650;
}

.probpr-bpr-hint {
    display: grid;
    gap: 4px;
    grid-column: 1 / -1;
    padding: 13px 14px;
    border-radius: 16px;
    background: #eef5ff;
    color: #1647ff;
}

.probpr-bpr-hint strong {
    font-size: 13px;
    font-weight: 900;
}

.probpr-bpr-hint span {
    color: #475467;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
}

.probpr-trainer-registry-badge {
    display: inline-flex !important;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857 !important;
    font-size: 11px !important;
    line-height: 1.2;
    font-weight: 900 !important;
}


/* ProBPR automatic listener BPR points */
.probpr-calculated-points[readonly] {
    background: #eef5ff !important;
    color: #1647ff !important;
    font-weight: 900;
    cursor: not-allowed;
}

.probpr-bpr-scoring-section .probpr-form-field small {
    color: #667085;
    font-size: 12px;
    line-height: 1.4;
}


/* ProBPR demo account mode */
.probpr-demo-mode-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 18px;
    padding: 16px 18px;
    border: 1px solid rgba(37, 99, 235, 0.24);
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 22rem),
        #eff6ff;
    color: #0f172a;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.probpr-demo-mode-banner strong {
    display: block;
    color: #1d4ed8;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 900;
}

.probpr-demo-mode-banner p {
    margin: 5px 0 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 650;
}

.probpr-demo-mode-banner a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.24);
    color: #1d4ed8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
}

.probpr-demo-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.18);
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

@media (max-width: 720px) {
    .probpr-demo-mode-banner {
        display: grid;
        gap: 12px;
    }

    .probpr-demo-mode-banner a {
        width: 100%;
    }
}
/* ProBPR — Registry readiness panel */

.probpr-registry-readiness-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .95fr) minmax(220px, .72fr) !important;
    gap: 14px !important;
    align-items: stretch !important;
    margin: 18px 0 16px !important;
    padding: 18px !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 22px !important;
    background:
        radial-gradient(circle at 0% 0%, rgba(37, 99, 235, .10), transparent 28rem),
        #eff6ff !important;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .06) !important;
}

.probpr-registry-readiness-panel.is-ready {
    border-color: #86efac !important;
    background:
        radial-gradient(circle at 0% 0%, rgba(22, 163, 74, .12), transparent 28rem),
        #f0fdf4 !important;
}

.probpr-registry-readiness-panel.is-warning {
    border-color: #facc15 !important;
    background:
        radial-gradient(circle at 0% 0%, rgba(245, 158, 11, .16), transparent 28rem),
        #fffbeb !important;
}

.probpr-registry-readiness-panel.is-closed {
    border-color: #86efac !important;
    background:
        radial-gradient(circle at 0% 0%, rgba(22, 163, 74, .12), transparent 28rem),
        #f0fdf4 !important;
}

.probpr-registry-readiness-panel.is-empty {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
}

.probpr-registry-readiness-main {
    display: grid !important;
    align-content: center !important;
    gap: 9px !important;
    min-width: 0 !important;
}

.probpr-registry-readiness-badge {
    width: max-content !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 28px !important;
    padding: 7px 11px !important;
    border-radius: 999px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: .045em !important;
}

.probpr-registry-readiness-panel.is-ready .probpr-registry-readiness-badge,
.probpr-registry-readiness-panel.is-closed .probpr-registry-readiness-badge {
    background: #16a34a !important;
}

.probpr-registry-readiness-panel.is-warning .probpr-registry-readiness-badge {
    background: #d97706 !important;
}

.probpr-registry-readiness-panel.is-empty .probpr-registry-readiness-badge {
    background: #64748b !important;
}

.probpr-registry-readiness-main h4 {
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 20px !important;
    line-height: 1.18 !important;
    font-weight: 900 !important;
}

.probpr-registry-readiness-main p {
    margin: 0 !important;
    color: #475569 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
}

.probpr-registry-readiness-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    margin-top: 2px !important;
}

.probpr-registry-readiness-meta span {
    display: inline-flex !important;
    padding: 6px 9px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .82) !important;
    color: #334155 !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
}

.probpr-registry-readiness-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.probpr-registry-readiness-stats div {
    display: grid !important;
    gap: 4px !important;
    padding: 13px !important;
    border: 1px solid rgba(226, 232, 240, .95) !important;
    border-radius: 15px !important;
    background: rgba(255, 255, 255, .82) !important;
    min-width: 0 !important;
}

.probpr-registry-readiness-stats strong {
    color: #0f172a !important;
    font-size: 24px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
}

.probpr-registry-readiness-stats span {
    color: #64748b !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
}

.probpr-registry-readiness-actions {
    display: grid !important;
    align-content: center !important;
    justify-items: stretch !important;
    gap: 8px !important;
}

.probpr-registry-readiness-actions .probpr-button {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
}

.probpr-registry-readiness-note {
    display: block !important;
    color: #64748b !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    text-align: center !important;
}

@media (max-width: 1100px) {
    .probpr-registry-readiness-panel {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 560px) {
    .probpr-registry-readiness-stats {
        grid-template-columns: 1fr !important;
    }
}


/* ProBPR v51 — provider cabinet polish */
.probpr-empty {
    border: 1px dashed #d8dee8;
    border-radius: 14px;
    background: #f8fafc;
    color: #475569;
    padding: 18px 20px;
    line-height: 1.55;
}

.probpr-notice {
    border-radius: 14px;
    padding: 14px 16px;
    line-height: 1.5;
}

.probpr-notice-danger,
.probpr-notice-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

.probpr-notice-success {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.probpr-notice-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.probpr-notice-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.probpr-panel-note small,
.probpr-muted-line small {
    color: inherit;
}

.probpr-provider-badge {
    white-space: nowrap;
}

.probpr-table-actions-vertical a,
.probpr-row-actions a {
    line-height: 1.35;
}

.probpr-form-field small,
.probpr-panel-note,
.probpr-muted-line {
    line-height: 1.45;
}

/* ProBPR v51.1 — компактний список замовлень */
.probpr-orders-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.probpr-orders-table th,
.probpr-orders-table td {
    padding: 8px 9px;
    font-size: 12px;
    line-height: 1.34;
    vertical-align: top;
}

.probpr-orders-table th {
    font-size: 10.5px;
    line-height: 1.2;
    letter-spacing: 0.035em;
}

.probpr-orders-table td strong {
    font-size: 12px;
    line-height: 1.25;
}

.probpr-orders-table td small,
.probpr-order-client-cell small,
.probpr-orders-table .probpr-order-amount-summary span {
    font-size: 10.8px;
    line-height: 1.28;
    color: #64748b;
}

.probpr-orders-table th:nth-child(1),
.probpr-orders-table td:nth-child(1) {
    width: 7%;
    white-space: nowrap;
}

.probpr-orders-table th:nth-child(2),
.probpr-orders-table td:nth-child(2) {
    width: 8%;
}

.probpr-orders-table th:nth-child(3),
.probpr-orders-table td:nth-child(3) {
    width: 11%;
    white-space: nowrap;
}

.probpr-orders-table th:nth-child(4),
.probpr-orders-table td:nth-child(4) {
    width: 34%;
}

.probpr-orders-table th:nth-child(5),
.probpr-orders-table td:nth-child(5) {
    width: 13%;
}

.probpr-orders-table th:nth-child(6),
.probpr-orders-table td:nth-child(6) {
    width: 21%;
}

.probpr-orders-table th:nth-child(7),
.probpr-orders-table td:nth-child(7) {
    width: 6%;
    text-align: right;
}

.probpr-order-events-cell,
.probpr-order-client-cell {
    min-width: 0;
    max-width: none;
    overflow-wrap: anywhere;
    word-break: normal;
}

.probpr-order-status-short {
    display: inline;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.25;
    white-space: normal;
}

.probpr-order-status-paid,
.probpr-order-status-refunded {
    color: #15803d;
}

.probpr-order-status-pending,
.probpr-order-status-new,
.probpr-order-status-hold,
.probpr-order-status-processing {
    color: #92400e;
}

.probpr-order-status-cancelled,
.probpr-order-status-failed,
.probpr-order-status-expired,
.probpr-order-status-partial_refund {
    color: #b91c1c;
}

.probpr-orders-table tbody tr.probpr-order-row--paid td {
    background: #ecfdf5;
}

.probpr-orders-table tbody tr.probpr-order-row--pending td,
.probpr-orders-table tbody tr.probpr-order-row--new td,
.probpr-orders-table tbody tr.probpr-order-row--hold td,
.probpr-orders-table tbody tr.probpr-order-row--processing td {
    background: #fffbeb;
}

.probpr-orders-table tbody tr.probpr-order-row--cancelled td,
.probpr-orders-table tbody tr.probpr-order-row--failed td,
.probpr-orders-table tbody tr.probpr-order-row--expired td {
    background: #fff1f2;
}

.probpr-orders-table tbody tr.probpr-order-row--refunded td,
.probpr-orders-table tbody tr.probpr-order-row--partial_refund td {
    background: #f8fafc;
}

.probpr-orders-table tbody tr.probpr-order-row--default td {
    background: #ffffff;
}

.probpr-orders-table tbody tr.probpr-order-row:hover td {
    filter: brightness(0.985);
}

.probpr-orders-table .probpr-order-amount-summary {
    display: grid;
    gap: 2px;
}

.probpr-orders-table .probpr-order-amount-summary strong {
    white-space: nowrap;
}

.probpr-orders-table .probpr-order-amount-summary .is-discount {
    color: #047857;
    font-weight: 750;
}

.probpr-orders-table .probpr-button-small,
.probpr-orders-table .probpr-order-details-link {
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .probpr-orders-table {
        min-width: 980px;
    }
}

/* ProBPR v54.3 — тарифні ліміти провайдера */
.probpr-platform-limit-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}

.probpr-platform-limit-strip > div {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.probpr-platform-limit-strip span {
    display: block;
    color: #64748b;
    font-size: 12px;
    line-height: 1.25;
    margin-bottom: 4px;
}

.probpr-platform-limit-strip strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 700;
}

.probpr-platform-restricted-panel {
    align-items: flex-start;
    text-align: left;
    gap: 10px;
}

.probpr-platform-restricted-panel .probpr-button {
    margin-top: 8px;
}

@media (max-width: 1100px) {
    .probpr-platform-limit-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .probpr-platform-limit-strip {
        grid-template-columns: 1fr;
    }
}

/* ProBPR v55.2 — catalog promotion price notice */
.probpr-catalog-promo-box {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(79, 70, 229, .18);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(238, 242, 255, .9), rgba(255, 255, 255, .96));
    box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
}

.probpr-catalog-promo-box-head strong {
    display: block;
    color: #111827;
    font-size: 14px;
    line-height: 1.25;
}

.probpr-catalog-promo-box-head span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.probpr-catalog-promo-price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.probpr-catalog-promo-price-grid article {
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(148, 163, 184, .2);
}

.probpr-catalog-promo-price-grid span,
.probpr-catalog-promo-price-grid small {
    display: block;
    color: #64748b;
    font-size: 11px;
    line-height: 1.25;
}

.probpr-catalog-promo-price-grid strong {
    display: block;
    margin: 5px 0 3px;
    color: #4f46e5;
    font-size: 14px;
    line-height: 1.2;
}

.probpr-catalog-promo-box p {
    margin: 10px 0 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.45;
}

.probpr-catalog-promo-event-id {
    display: inline-flex;
    margin-top: 8px;
    color: #475569;
    font-size: 11px;
}

@media (max-width: 900px) {
    .probpr-catalog-promo-price-grid {
        grid-template-columns: 1fr;
    }
}

/* ProBPR v55.3 — автоматична покупка просування каталогу */
.probpr-catalog-promo-box {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.98));
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}
.probpr-catalog-promo-box-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.probpr-catalog-promo-box-head strong {
    display: block;
    font-size: 16px;
    color: #0f172a;
}
.probpr-catalog-promo-box-head span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 13px;
}
.probpr-catalog-promo-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.2);
}
.probpr-catalog-promo-balance span {
    color: #64748b;
    font-size: 13px;
}
.probpr-catalog-promo-balance strong {
    color: #0f172a;
    font-size: 18px;
}
.probpr-catalog-promo-alert {
    margin: 10px 0 14px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
}
.probpr-catalog-promo-alert-success {
    color: #166534;
    background: #dcfce7;
    border: 1px solid rgba(22, 101, 52, 0.16);
}
.probpr-catalog-promo-alert-error {
    color: #9f1239;
    background: #fff1f2;
    border: 1px solid rgba(159, 18, 57, 0.16);
}
.probpr-catalog-promo-active {
    margin: 12px 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px dashed rgba(37, 99, 235, 0.22);
}
.probpr-catalog-promo-active strong {
    display: block;
    margin-bottom: 6px;
    color: #0f172a;
}
.probpr-catalog-promo-active ul {
    margin: 0;
    padding-left: 18px;
    color: #475569;
    font-size: 13px;
}
.probpr-catalog-promo-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.probpr-catalog-promo-service {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.2);
}
.probpr-catalog-promo-service span,
.probpr-catalog-promo-service small {
    display: block;
}
.probpr-catalog-promo-service span {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}
.probpr-catalog-promo-service strong {
    display: block;
    margin-top: 5px;
    color: #1d4ed8;
    font-size: 18px;
}
.probpr-catalog-promo-service small {
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}
.probpr-catalog-promo-service form {
    margin: 0;
}
.probpr-catalog-promo-note {
    margin: 14px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}
@media (max-width: 980px) {
    .probpr-catalog-promo-services {
        grid-template-columns: 1fr;
    }
}

/* ProBPR v55.4 — другий ряд вкладок редактора заходу і вкладка просування */
.probpr-event-tabs--two-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.probpr-event-tabs-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.probpr-event-tabs-row--secondary {
    padding-top: 8px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.probpr-event-tabs-row--secondary .probpr-event-tab {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 13px;
}

.probpr-event-promotion-panel {
    max-width: 1180px;
}

.probpr-catalog-promo-card-link {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.4;
}

.probpr-catalog-promo-card-link a {
    color: var(--probpr-primary);
    font-weight: 800;
    text-decoration: none;
}

.probpr-catalog-promo-card-link a:hover {
    text-decoration: underline;
}

.probpr-catalog-promo-topup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -4px 0 14px;
    padding: 12px 14px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 14px;
    background: #fffbeb;
    color: #92400e;
    font-size: 13px;
    line-height: 1.4;
}

.probpr-catalog-promo-topup span {
    font-weight: 700;
}

@media (max-width: 760px) {
    .probpr-catalog-promo-topup {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ProBPR v55.5 — модерація преміальних місць каталогу */
.probpr-catalog-promo-mode {
    display: inline-flex;
    width: fit-content;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.2;
}

.probpr-catalog-promo-mode-auto {
    background: #ecfdf5;
    color: #047857;
}

.probpr-catalog-promo-pending {
    border-color: rgba(245, 158, 11, 0.28);
    background: #fffbeb;
}

/* ProBPR v55.6 — аналітика просування в каталозі */
.probpr-catalog-promo-analytics{
    margin: 18px 0;
    padding: 18px;
    border: 1px solid #dce7f7;
    border-radius: 20px;
    background: linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
}
.probpr-catalog-promo-section-head{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}
.probpr-catalog-promo-section-head strong{
    display: block;
    font-size: 17px;
    color: #0f172a;
    margin-bottom: 4px;
}
.probpr-catalog-promo-section-head span{
    display: block;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}
.probpr-catalog-promo-metrics{
    display: grid;
    grid-template-columns: repeat(7,minmax(120px,1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.probpr-catalog-promo-metrics article{
    min-height: 86px;
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15,23,42,.04);
}
.probpr-catalog-promo-metrics span{
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 8px;
}
.probpr-catalog-promo-metrics strong{
    display: block;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.1;
}
.probpr-catalog-promo-metrics small{
    display: block;
    margin-top: 6px;
    color: #2563eb;
    font-weight: 700;
}
.probpr-catalog-promo-table-wrap{
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
}
.probpr-catalog-promo-table{
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}
.probpr-catalog-promo-table th,
.probpr-catalog-promo-table td{
    padding: 12px 13px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    vertical-align: top;
    font-size: 13px;
}
.probpr-catalog-promo-table th{
    color: #475569;
    font-weight: 800;
    background: #f8fafc;
}
.probpr-catalog-promo-table tr:last-child td{
    border-bottom: 0;
}
.probpr-catalog-promo-table td strong{
    display: block;
    color: #0f172a;
    margin-bottom: 3px;
}
.probpr-catalog-promo-table td small{
    display: block;
    color: #64748b;
}
.probpr-catalog-promo-status{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.probpr-catalog-promo-status-success{
    color: #166534;
    background: #dcfce7;
}
.probpr-catalog-promo-status-warning{
    color: #92400e;
    background: #fef3c7;
}
.probpr-catalog-promo-status-danger{
    color: #991b1b;
    background: #fee2e2;
}
.probpr-catalog-promo-status-muted{
    color: #475569;
    background: #f1f5f9;
}
.probpr-catalog-promo-empty-analytics{
    padding: 15px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    color: #64748b;
    background: #fff;
    font-size: 13px;
}
.probpr-catalog-promo-note.compact{
    margin-top: 11px;
    font-size: 12px;
}
@media (max-width: 1180px){
    .probpr-catalog-promo-metrics{
        grid-template-columns: repeat(3,minmax(130px,1fr));
    }
}
@media (max-width: 720px){
    .probpr-catalog-promo-analytics{
        padding: 14px;
    }
    .probpr-catalog-promo-metrics{
        grid-template-columns: repeat(2,minmax(120px,1fr));
    }
}


/* ProBPR v56.1 — catalog promotion analytics stabilization */
.probpr-catalog-promo-health{
    margin:16px 0 18px;
    padding:14px 16px;
    border-radius:18px;
    border:1px solid rgba(15,23,42,.08);
    background:#f8fafc;
}
.probpr-catalog-promo-health strong{
    display:block;
    font-size:14px;
    color:#0f172a;
    margin-bottom:8px;
}
.probpr-catalog-promo-health ul{
    margin:0;
    padding-left:18px;
    color:#475569;
    font-size:13px;
    line-height:1.55;
}
.probpr-catalog-promo-health-warning{
    background:#fff7ed;
    border-color:#fed7aa;
}
.probpr-catalog-promo-health-warning strong{
    color:#9a3412;
}
.probpr-catalog-promo-mode-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:78px;
    padding:5px 9px;
    border-radius:999px;
    font-size:11px;
    font-weight:700;
    white-space:nowrap;
}
.probpr-catalog-promo-mode-exact{
    background:#ecfdf5;
    color:#047857;
}
.probpr-catalog-promo-mode-period{
    background:#fff7ed;
    color:#c2410c;
}
.probpr-catalog-promo-mode-empty{
    background:#f1f5f9;
    color:#64748b;
}

/* ProBPR v63 SEO event tab */
.probpr-event-seo-panel .probpr-form-section {
    margin-top: 18px;
}

.probpr-event-seo-panel .probpr-seo-preview-box {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1e3a8a;
    border-radius: 14px;
    line-height: 1.55;
}

.probpr-event-seo-panel .probpr-seo-preview-box a {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
}

.probpr-event-seo-panel .probpr-seo-preview-box a:hover {
    text-decoration: underline;
}
