/**
 * Provider Dashboard Styles
 *
 * Follows same design patterns as expert dashboard.
 *
 * @package Rigtig_For_Mig
 * @since 4.0.0
 */

/* ── Dashboard Container ───────────────────────────────────── */

.rfm-provider-dashboard {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ── Dashboard Header ──────────────────────────────────────── */

.rfm-provider-dashboard-header {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.rfm-provider-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.rfm-provider-header-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rfm-provider-header-logo {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rfm-provider-logo-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}

.rfm-provider-logo-placeholder {
    font-size: 28px;
    color: #a0aec0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rfm-provider-logo-placeholder-lg {
    font-size: 40px;
    width: 80px;
    height: 80px;
}

.rfm-provider-header-meta h2 {
    margin: 0 0 0.25rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #2d3748;
}

.rfm-provider-type-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #4299e1;
    background: #ebf8ff;
    padding: 2px 10px;
    border-radius: 12px;
}

.rfm-provider-header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.rfm-provider-header-actions .rfm-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #4a5568;
    font-weight: 500;
    transition: background-color 0.15s, border-color 0.15s;
}

.rfm-provider-header-actions .rfm-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

/* Stats */
.rfm-provider-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.rfm-provider-stats .rfm-stat-box {
    text-align: center;
    padding: 0.75rem;
}

.rfm-provider-stats .rfm-stat-box h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

.rfm-provider-stats .rfm-stat-box p {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ── Tab Navigation ────────────────────────────────────────── */

.rfm-provider-tabs .rfm-tabs-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}

.rfm-provider-tabs .rfm-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 1rem;
    border: none;
    background: transparent;
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.rfm-provider-tabs .rfm-tab-btn:hover {
    color: #4a5568;
}

.rfm-provider-tabs .rfm-tab-btn.active {
    color: #4299e1;
    border-bottom-color: #4299e1;
}

.rfm-provider-tabs .rfm-tab-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Tab content */
.rfm-provider-tabs .rfm-tab-content {
    display: none;
}

.rfm-provider-tabs .rfm-tab-content.active {
    display: block;
}

/* ── Overview Tab ──────────────────────────────────────────── */

.rfm-provider-overview-profile {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.rfm-provider-overview-logo {
    flex-shrink: 0;
}

.rfm-provider-ov-logo-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.rfm-provider-overview-info h3 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2d3748;
}

.rfm-provider-overview-info .rfm-ov-email {
    margin: 0 0 0.15rem;
    font-size: 0.9rem;
    color: #718096;
}

.rfm-provider-overview-info .rfm-ov-type {
    margin: 0;
    font-size: 0.85rem;
    color: #4299e1;
}

/* Overview cards */
.rfm-provider-overview-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.rfm-provider-overview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    text-align: left;
    width: 100%;
}

.rfm-provider-overview-card:hover {
    border-color: #4299e1;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.1);
}

.rfm-ov-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #ebf8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rfm-ov-card-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #4299e1;
}

.rfm-ov-card-body {
    flex: 1;
    min-width: 0;
}

.rfm-ov-card-body h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
}

.rfm-ov-card-body p {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
    color: #718096;
}

.rfm-ov-card-arrow {
    font-size: 1.5rem;
    color: #cbd5e0;
    flex-shrink: 0;
}

/* ── Profile / Firma Tab ───────────────────────────────────── */

.rfm-provider-profile-form .rfm-fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
}

.rfm-provider-profile-form .rfm-fieldset legend {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    padding: 0 0.75rem;
}

.rfm-provider-profile-form .rfm-form-row {
    margin-bottom: 1rem;
}

.rfm-provider-profile-form .rfm-form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.rfm-provider-profile-form .rfm-form-group {
    display: flex;
    flex-direction: column;
}

.rfm-provider-profile-form .rfm-form-group label {
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: #4a5568;
    font-size: 0.9rem;
}

.rfm-provider-profile-form .rfm-form-group label .required {
    color: #e53e3e;
}

.rfm-provider-profile-form input[type="text"],
.rfm-provider-profile-form input[type="email"],
.rfm-provider-profile-form input[type="tel"],
.rfm-provider-profile-form input[type="url"],
.rfm-provider-profile-form select,
.rfm-provider-profile-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    box-sizing: border-box;
}

.rfm-provider-profile-form input:focus,
.rfm-provider-profile-form select:focus,
.rfm-provider-profile-form textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.rfm-provider-profile-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Logo upload area */
.rfm-provider-logo-upload {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.rfm-provider-logo-preview {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px dashed #cbd5e0;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rfm-provider-logo-preview img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.rfm-provider-logo-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rfm-btn-secondary {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #edf2f7;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.15s;
}

.rfm-btn-secondary:hover {
    background: #e2e8f0;
}

.rfm-btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Checkbox grid (categories) */
.rfm-provider-profile-form .rfm-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.rfm-provider-profile-form .rfm-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
    font-size: 0.9rem;
}

.rfm-provider-profile-form .rfm-checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Field hints */
.rfm-provider-profile-form .rfm-field-hint {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-top: 0.25rem;
}

/* Submit button */
.rfm-provider-profile-form .rfm-btn-primary {
    display: block;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background-color: #4299e1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.rfm-provider-profile-form .rfm-btn-primary:hover {
    background-color: #3182ce;
}

.rfm-provider-profile-form .rfm-btn-primary:active {
    transform: translateY(1px);
}

.rfm-provider-profile-form .rfm-btn-primary:disabled {
    background-color: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.rfm-provider-dashboard .rfm-form-message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.rfm-provider-dashboard .rfm-message-success {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #276749;
}

.rfm-provider-dashboard .rfm-message-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #9b2c2c;
}

/* Global dashboard message */
#rfm-provider-dashboard-message:empty {
    display: none;
}

/* ── Placeholder Sections (Coming Soon) ────────────────────── */

.rfm-provider-placeholder-section {
    text-align: center;
    padding: 3rem 2rem;
    background: #f7fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 10px;
    color: #718096;
}

.rfm-provider-placeholder-section .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #a0aec0;
    margin-bottom: 0.75rem;
}

.rfm-provider-placeholder-section h3 {
    margin: 0 0 0.5rem;
    color: #4a5568;
    font-size: 1.2rem;
}

.rfm-provider-placeholder-section p {
    margin: 0;
    font-size: 0.95rem;
}

/* ── Notice (reuse from registration) ──────────────────────── */

.rfm-provider-dashboard .rfm-notice {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.rfm-provider-dashboard .rfm-notice-info {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    color: #2b6cb0;
}

.rfm-provider-dashboard .rfm-notice h3 {
    margin: 0 0 0.5rem;
}

/* ── Listings Tab (Mine Udbud) ──────────────────────────────── */

.rfm-listings-tab {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
}

/* Sub-navigation (Events / Locations) */
.rfm-listings-subnav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}

.rfm-listings-subnav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 1rem;
    border: none;
    background: transparent;
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.rfm-listings-subnav-btn:hover {
    color: #4a5568;
}

.rfm-listings-subnav-btn.active {
    color: #4299e1;
    border-bottom-color: #4299e1;
}

.rfm-listings-subnav-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.rfm-listings-count {
    font-size: 0.75rem;
    font-weight: 600;
    background: #edf2f7;
    color: #718096;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 0.25rem;
}

.rfm-listings-subnav-btn.active .rfm-listings-count {
    background: #ebf8ff;
    color: #4299e1;
}

/* Subtab content */
.rfm-listings-subtab {
    display: none;
}

.rfm-listings-subtab.active {
    display: block;
}

/* Listings header (title + create button) */
.rfm-listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.rfm-listings-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2d3748;
}

/* Listing cards */
.rfm-listing-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: border-color 0.15s;
}

.rfm-listing-card:hover {
    border-color: #cbd5e0;
}

.rfm-listing-card-info h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.rfm-listing-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #718096;
}

.rfm-listing-card-meta .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    vertical-align: -1px;
    margin-right: 2px;
}

.rfm-listing-date.rfm-listing-past {
    color: #a0aec0;
    text-decoration: line-through;
}

.rfm-listing-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Empty state */
.rfm-listings-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #a0aec0;
}

.rfm-listings-empty .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
}

.rfm-listings-empty p {
    margin: 0;
    font-size: 0.95rem;
}

/* ── Listing Forms (Event + Location) ──────────────────────── */

.rfm-listing-form-wrap {
    margin-bottom: 1.5rem;
}

.rfm-provider-listing-form {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    background: #fafbfc;
}

.rfm-provider-listing-form h3 {
    margin: 0 0 1.25rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2d3748;
}

.rfm-provider-listing-form .rfm-fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    background: #fff;
}

.rfm-provider-listing-form .rfm-fieldset legend {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    padding: 0 0.5rem;
}

.rfm-provider-listing-form .rfm-form-row {
    margin-bottom: 1rem;
}

.rfm-provider-listing-form .rfm-form-row:last-child {
    margin-bottom: 0;
}

.rfm-provider-listing-form .rfm-form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.rfm-provider-listing-form .rfm-form-row-three {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.rfm-provider-listing-form .rfm-form-group {
    display: flex;
    flex-direction: column;
}

.rfm-provider-listing-form .rfm-form-group label {
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: #4a5568;
    font-size: 0.9rem;
}

.rfm-provider-listing-form .rfm-form-group label .required {
    color: #e53e3e;
}

.rfm-provider-listing-form input[type="text"],
.rfm-provider-listing-form input[type="email"],
.rfm-provider-listing-form input[type="tel"],
.rfm-provider-listing-form input[type="url"],
.rfm-provider-listing-form input[type="number"],
.rfm-provider-listing-form input[type="date"],
.rfm-provider-listing-form input[type="time"],
.rfm-provider-listing-form select,
.rfm-provider-listing-form textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    box-sizing: border-box;
}

.rfm-provider-listing-form input:focus,
.rfm-provider-listing-form select:focus,
.rfm-provider-listing-form textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.rfm-provider-listing-form textarea {
    resize: vertical;
    min-height: 80px;
}

.rfm-provider-listing-form .rfm-field-hint {
    font-size: 0.78rem;
    color: #a0aec0;
    margin-top: 0.25rem;
}

/* Checkbox grid in listing forms */
.rfm-provider-listing-form .rfm-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
}

.rfm-provider-listing-form .rfm-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
    font-size: 0.85rem;
}

.rfm-provider-listing-form .rfm-checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Image upload area */
.rfm-image-upload-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rfm-image-preview {
    min-width: 80px;
    min-height: 60px;
}

.rfm-image-preview img {
    max-width: 200px;
    border-radius: 4px;
}

/* Form action buttons */
.rfm-form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.rfm-form-actions .rfm-btn-primary {
    padding: 0.7rem 1.5rem;
    background-color: #4299e1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.rfm-form-actions .rfm-btn-primary:hover {
    background-color: #3182ce;
}

.rfm-form-actions .rfm-btn-primary:disabled {
    background-color: #a0aec0;
    cursor: not-allowed;
}

.rfm-form-actions .rfm-btn-secondary {
    padding: 0.7rem 1.5rem;
}

/* ── Shared Button Styles ──────────────────────────────────── */

.rfm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.15s, border-color 0.15s;
}

.rfm-btn-primary {
    background-color: #4299e1;
    color: #fff;
    border-color: #4299e1;
}

.rfm-btn-primary:hover {
    background-color: #3182ce;
    border-color: #3182ce;
}

.rfm-btn-primary .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.rfm-btn-small {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
}

.rfm-btn-danger {
    background: #fff5f5;
    color: #e53e3e;
    border-color: #feb2b2;
}

.rfm-btn-danger:hover {
    background: #fed7d7;
}

/* ── Registrations Tab ─────────────────────────────────────── */

.rfm-registrations-tab {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
}

.rfm-reg-event-block {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.rfm-reg-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.rfm-reg-event-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.rfm-reg-event-header h4 a {
    color: inherit;
    text-decoration: none;
}

.rfm-reg-event-header h4 a:hover {
    color: #4299e1;
}

.rfm-reg-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #718096;
}

.rfm-reg-event-meta .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    vertical-align: -1px;
    margin-right: 2px;
}

.rfm-reg-event-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
}

.rfm-toggle-registrations {
    cursor: pointer;
}

.rfm-reg-list {
    display: none;
    padding: 0 1.25rem 1rem;
}

.rfm-reg-list.active {
    display: block;
}

.rfm-reg-list table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.rfm-reg-list table th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rfm-reg-list table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
}

.rfm-reg-list table tr:last-child td {
    border-bottom: none;
}

.rfm-reg-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 500;
}

.rfm-reg-status-confirmed {
    background: #f0fff4;
    color: #276749;
}

.rfm-reg-status-waitlisted {
    background: #fffaf0;
    color: #9c4221;
}

.rfm-reg-status-cancelled {
    background: #fff5f5;
    color: #9b2c2c;
}

.rfm-reg-empty {
    text-align: center;
    padding: 1.5rem;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 768px) {
    .rfm-provider-stats {
        grid-template-columns: 1fr;
    }

    .rfm-provider-overview-cards {
        grid-template-columns: 1fr;
    }

    .rfm-provider-header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .rfm-provider-tabs .rfm-tabs-navigation {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .rfm-listing-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .rfm-listing-card-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .rfm-provider-listing-form .rfm-form-row-three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .rfm-provider-profile-form .rfm-form-row-two,
    .rfm-provider-listing-form .rfm-form-row-two {
        grid-template-columns: 1fr;
    }

    .rfm-provider-logo-upload {
        flex-direction: column;
        align-items: flex-start;
    }

    .rfm-provider-overview-profile {
        flex-direction: column;
        text-align: center;
    }

    .rfm-listings-subnav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .rfm-image-upload-area {
        flex-direction: column;
        align-items: flex-start;
    }
}
