:root {
    --rtb-bg: #f1f5f9;
    --rtb-card: #ffffff;
    --rtb-text: #0f172a;
    --rtb-muted: #94a3b8;
    --rtb-primary: #4f46e5; /* indigo-600 */
    --rtb-primary-dark: #3730a3;
    --rtb-accent: #0ea5e9; /* sky-500 */
    --rtb-error: #dc2626;
}

body.rtb-admin {
    background: var(--rtb-bg);
}

.rtb-wrapper {
    background: var(--rtb-bg);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 32px;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    color: var(--rtb-text);
    line-height: 1.5;
}

.rtb-alert {
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.rtb-alert--error {
    background: #fee2e2;
    border: 1px solid var(--rtb-error);
    color: var(--rtb-error);
}

.rtb-alert--success {
    background: #dcfce7;
    border: 1px solid #16a34a;
    color: #166534;
}

.rtb-alert--info {
    background: #dbeafe;
    border: 1px solid #2563eb;
    color: #1d4ed8;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rtb-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(1.25rem, 2vw, 2rem);
}

.rtb-calendar,
.rtb-form {
    background: linear-gradient(140deg, var(--rtb-card), rgba(255,255,255,0.85));
    border-radius: 28px;
    box-shadow: 0 35px 80px rgba(15, 23, 42, 0.15);
    padding: clamp(1.5rem, 2vw, 2.2rem);
}

/* Calendar */
.rtb-calendar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: radial-gradient(circle at top, rgba(14,165,233,0.18), transparent 50%) no-repeat;
}

.rtb-calendar__preview {
    background: linear-gradient(135deg, var(--rtb-primary), var(--rtb-accent));
    color: #fff;
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    box-shadow: inset 0 0 40px rgba(255,255,255,0.2);
}

.rtb-calendar__subtitle {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    opacity: 0.75;
    margin: 0;
}

.rtb-calendar__headline {
    margin: 0.4rem 0 0;
    font-size: 1.85rem;
    font-weight: 700;
}

.rtb-calendar__info {
    margin: 0.2rem 0 0;
    font-size: 0.95rem;
    opacity: 0.92;
}

.rtb-calendar__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--rtb-text);
}

.rtb-calendar__nav {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: none;
    background: rgba(15,23,42,0.06);
    cursor: pointer;
    color: var(--rtb-text);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rtb-calendar__nav:hover {
    background: rgba(14,165,233,0.2);
    transform: translateY(-2px);
}

.rtb-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    text-align: center;
}

.rtb-calendar__dow {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--rtb-muted);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.rtb-calendar__days {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.rtb-day {
    border: 1px solid transparent;
    border-radius: 16px;
    min-height: 58px;
    background: rgba(15,23,42,0.04);
    color: var(--rtb-text);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.rtb-day:hover:not(.rtb-day--muted):not(.rtb-day--disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.12);
    background: rgba(14,165,233,0.18);
}

.rtb-day--muted {
    opacity: 0.25;
    cursor: not-allowed;
}

.rtb-day--disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.rtb-day--selected {
    background: linear-gradient(135deg, var(--rtb-primary), var(--rtb-accent));
    color: #fff;
    box-shadow: 0 20px 35px rgba(79, 70, 229, 0.25);
}

.rtb-day--today {
    border: 1px dashed rgba(15,23,42,0.25);
}

@media (max-width: 640px) {
    .rtb-calendar {
        padding: 1rem;
    }
    .rtb-calendar__headline {
        font-size: 1.4rem;
    }
    .rtb-calendar__controls {
        font-size: 0.95rem;
    }
    .rtb-calendar__nav {
        width: 38px;
        height: 38px;
    }
    .rtb-calendar__grid {
        gap: 0.25rem;
    }
    .rtb-calendar__days {
        grid-template-columns: repeat(7, minmax(32px, 1fr));
        gap: 0.25rem;
    }
    .rtb-day {
        min-height: 40px;
        border-radius: 10px;
        font-size: 0.75rem;
        padding: 0.25rem;
        line-height: 1.1;
    }
    .rtb-calendar__dow {
        font-size: 0.65rem;
    }
}

/* Form */
.rtb-form__title {
    margin: 0 0 1rem;
    font-size: 1.7rem;
    font-weight: 700;
}

.rtb-form-lock {
    display: none;
    background: rgba(14,165,233,0.12);
    color: var(--rtb-text);
    border: 1px dashed rgba(14,165,233,0.4);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.rtb-form--locked .rtb-form-lock {
    display: block;
}

.rtb-form--locked .rtb-form__grid,
.rtb-form--locked .rtb-form__actions {
    opacity: 0.35;
    pointer-events: none;
}

.rtb-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

.rtb-field--full {
    grid-column: 1 / -1;
}

.rtb-field label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--rtb-text);
}

.rtb-label-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.rtb-label-sub {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--rtb-muted);
}

.rtb-required {
    color: var(--rtb-error);
}

.rtb-field input,
.rtb-field select,
.rtb-field textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    font-size: 1rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.rtb-field textarea {
    resize: vertical;
    min-height: 130px;
}

.rtb-area-choices {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.rtb-area-choice {
    display: block;
    position: relative;
}

.rtb-area-choice input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.rtb-area-choice__card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    background: #fff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.rtb-area-choice__text {
    font-weight: 600;
    color: var(--rtb-text);
}

.rtb-area-choice__dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(15,23,42,0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.rtb-area-choice__dot::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rtb-primary);
    transform: scale(0);
    transition: transform 0.2s ease;
}

.rtb-area-choice:focus-within .rtb-area-choice__card,
.rtb-area-choice:hover .rtb-area-choice__card {
    border-color: var(--rtb-primary);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.12);
}

.rtb-area-choice input:checked + .rtb-area-choice__card {
    border-color: var(--rtb-primary);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.18);
}

.rtb-area-choice input:checked + .rtb-area-choice__card .rtb-area-choice__dot::after {
    transform: scale(1);
}

.rtb-area-choice input:checked + .rtb-area-choice__card .rtb-area-choice__text {
    color: var(--rtb-primary);
}

.rtb-field input:focus,
.rtb-field select:focus,
.rtb-field textarea:focus {
    border-color: var(--rtb-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    outline: none;
    background: #fff;
}

.rtb-form__actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-top: 1.5rem;
}


.rtb-wrapper .rtb-btn,
.rtb-dashboard-wrapper .rtb-btn,
.rtb-manage-wrapper .rtb-btn {
    border: none;
    border-radius: 14px;
    padding: 0.9rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rtb-wrapper .rtb-btn--primary,
.rtb-dashboard-wrapper .rtb-btn--primary,
.rtb-manage-wrapper .rtb-btn--primary {
    background: var(--rtb-primary);
    color: #fff;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.35);
    width: 100%;
    text-align: center;
}

.rtb-wrapper .rtb-btn--primary:hover:not(:disabled),
.rtb-dashboard-wrapper .rtb-btn--primary:hover:not(:disabled),
.rtb-manage-wrapper .rtb-btn--primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 25px 50px rgba(79, 70, 229, 0.45);
}

.rtb-wrapper .rtb-btn--primary:disabled,
.rtb-dashboard-wrapper .rtb-btn--primary:disabled,
.rtb-manage-wrapper .rtb-btn--primary:disabled {
    opacity: 0.6;
    box-shadow: none;
    cursor: not-allowed;
}

.rtb-wrapper .rtb-btn--ghost,
.rtb-dashboard-wrapper .rtb-btn--ghost,
.rtb-manage-wrapper .rtb-btn--ghost {
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.25);
    color: var(--rtb-text);
    box-shadow: none;
}

.rtb-error-box {
    color: var(--rtb-error);
    margin-top: 0.5rem;
    font-weight: 600;
}

.rtb-closed-message {
    margin-top: 0.75rem;
    color: var(--rtb-error);
    font-weight: 600;
}

.rtb-powered-by {
    margin-top: 1rem;
    text-align: right;
    font-size: 0.85rem;
    color: var(--rtb-muted);
}

.rtb-powered-by a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.rtb-powered-by a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .rtb-powered-by {
        text-align: center;
    }
}

.rtb-email-toolbar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0.75rem 0;
    flex-wrap: wrap;
}

.rtb-email-toolbar .rtb-test-email {
    max-width: 240px;
}

.rtb-email-toolbar__message {
    font-size: 0.9rem;
    color: var(--rtb-muted);
    min-height: 1.2em;
}

.rtb-email-toolbar__message.is-success {
    color: var(--rtb-primary);
}

.rtb-email-toolbar__message.is-error {
    color: var(--rtb-error);
}

.rtb-email-preview-pane {
    border: 1px dashed rgba(15,23,42,0.2);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(15,23,42,0.02);
    display: none;
    max-height: 400px;
    overflow: auto;
}

.rtb-email-preview-pane.is-active {
    display: block;
}

.rtb-email-preview-pane .rtb-preview-subject {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.rtb-email-preview-inner {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: inset 0 0 0 1px rgba(15,23,42,0.06);
}

.rtb-preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rtb-preview-dialog {
    background: #fff;
    border-radius: 14px;
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

.rtb-preview-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    border: none;
    background: transparent;
    font-size: 1.3rem;
    cursor: pointer;
}

/* Booking summary */
.rtb-summary {
    margin-top: 2rem;
}

.rtb-summary__card {
    background: var(--rtb-card);
    border-radius: 24px;
    padding: clamp(1.5rem, 2vw, 2.5rem);
    border: 1px solid rgba(15,23,42,0.06);
    box-shadow: 0 25px 50px rgba(15,23,42,0.08);
}

.rtb-summary__header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.rtb-summary__header h3,
.rtb-summary__header h2 {
    margin: 0.15rem 0;
}

.rtb-summary__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--rtb-muted);
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
}

.rtb-summary__header p {
    margin: 0;
    color: var(--rtb-muted);
    font-size: 0.95rem;
}

.rtb-summary__details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.rtb-summary__detail {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(15,23,42,0.03);
    border: 1px solid rgba(15,23,42,0.05);
}

.rtb-summary__detail span {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--rtb-muted);
}

.rtb-summary__detail strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.1rem;
    color: var(--rtb-text);
}

.rtb-summary__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.rtb-summary__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    background: var(--rtb-primary);
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.rtb-summary__btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.rtb-summary__btn--success {
    background: #16a34a;
}

.rtb-summary__btn--danger {
    background: #dc2626;
}

.rtb-summary__btn--ghost {
    background: transparent;
    border: 1px solid rgba(15,23,42,0.25);
    color: var(--rtb-text);
}


.rtb-summary__calendar {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(15,23,42,0.08);
}

.rtb-summary__calendar h4 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
}

.rtb-summary__calendar p {
    margin: 0 0 0.8rem;
    color: var(--rtb-muted);
}

.rtb-summary__calendar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.rtb-calendar-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(232, 220, 207, 1);
    background: #fff;
    color: #6E462D;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(110, 70, 45, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rtb-calendar-chip img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.rtb-calendar-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(110, 70, 45, 0.18);
}

.rtb-summary__notes {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    border-radius: 18px;
    background: rgba(15,23,42,0.04);
    border: 1px solid rgba(15,23,42,0.06);
}

.rtb-summary__notes p {
    margin: 0.4rem 0 0;
}

/* Manage view reuse */
.rtb-manage-wrapper {
    max-width: 720px;
    margin: 3rem auto;
}

/* Dashboard styling */
.rtb-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
}

.rtb-stat {
    position: relative;
    background: linear-gradient(140deg, var(--rtb-card), rgba(255,255,255,0.8));
    border-radius: 20px;
    padding: 1.2rem 1.4rem;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.rtb-stat strong {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rtb-muted);
}

.rtb-stat span {
    font-size: 1.9rem;
    font-weight: 700;
    margin-top: 0.25rem;
    color: var(--rtb-text);
}

.rtb-stat::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, var(--rtb-accent), var(--rtb-primary));
    opacity: 0.12;
    animation: rtbPulse 5s ease-in-out infinite;
}

.rtb-dashboard-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--rtb-card);
    border-radius: 18px;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 12px 30px rgba(15,23,42,0.1);
}

.rtb-dashboard-filters label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: var(--rtb-text);
    font-size: 0.9rem;
}

.rtb-dashboard-filters input,
.rtb-dashboard-filters select {
    margin-top: 0.3rem;
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,0.1);
    padding: 0.45rem 0.8rem;
}

.rtb-dashboard-table {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
    width: 100%;
    overflow-x: auto;
}

.rtb-dashboard-table table {
    margin: 0;
    width: 100%;
    min-width: 680px;
}

.rtb-dashboard-table thead {
    background: var(--rtb-primary);
    color: #fff;
}

.rtb-dashboard-table tbody tr:nth-child(odd) {
    background: rgba(15,23,42,0.03);
}

.rtb-dashboard-table tbody tr:hover {
    background: rgba(15,23,42,0.06);
}

.rtb-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.rtb-status-pill[data-status="pending"] { background: #fef3c7; color: #92400e; }
.rtb-status-pill[data-status="confirmed"] { background: #dcfce7; color: #166534; }
.rtb-status-pill[data-status="cancelled"] { background: #fee2e2; color: #b91c1c; }
.rtb-status-pill[data-status="rescheduled"] { background: #dbeafe; color: #1d4ed8; }
.rtb-status-pill[data-status="rejected"] { background: #ffe4e6; color: #9f1239; }

@keyframes rtbPulse {
    0% { opacity: 0.08; }
    50% { opacity: 0.2; }
    100% { opacity: 0.08; }
}

/* Responsive adjustments */
@media (max-width: 720px) {
    .rtb-content { grid-template-columns: 1fr; }
    .rtb-calendar, .rtb-form { padding: 1.25rem; }
    .rtb-form__grid { grid-template-columns: 1fr; }
    .rtb-dashboard-filters { flex-direction: column; }
    .rtb-dashboard-table table,
    .rtb-dashboard-wrapper .rtb-dashboard-table table {
        min-width: 560px;
    }
}
/* Frontend dashboard polish */
.rtb-dashboard-wrapper {
    background: #f7f7fb;
    border-radius: 20px;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    box-shadow: 0 25px 50px rgba(15,23,42,0.08);
    font-size: 16px;
    line-height: 1.4;
}

.rtb-dashboard-wrapper h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.rtb-dashboard-wrapper .rtb-dashboard-filters {
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.rtb-dashboard-wrapper .rtb-dashboard-filters input,
.rtb-dashboard-wrapper .rtb-dashboard-filters select {
    border: 1px solid #d1d5db;
    background: #fff;
    height: 2.5rem;
    border-radius: 10px;
    padding: 0.35rem 0.85rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.rtb-dashboard-wrapper .rtb-dashboard-filters .rtb-btn {
    background: #111827;
    color: #fff;
    border-radius: 10px;
    padding: 0.65rem 1.2rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
}

.rtb-dashboard-wrapper .rtb-dashboard-filters .rtb-btn--ghost {
    background: transparent;
    color: #111827;
    border: 1px solid #d1d5db;
}

.rtb-dashboard-branding {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rtb-dashboard-branding span {
    font-size: 0.85rem;
    color: #6b7280;
}

.rtb-dashboard-branding img {
    max-height: 28px;
    width: auto;
}

.rtb-dashboard-wrapper .rtb-dashboard-stats {
    margin-top: 1rem;
}

.rtb-dashboard-wrapper .rtb-stat {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}

.rtb-dashboard-wrapper .rtb-stat strong {
    font-size: 0.85rem;
}

.rtb-dashboard-wrapper .rtb-stat span {
    font-size: 1.2rem;
}

.rtb-dashboard-wrapper .rtb-dashboard-table {
    margin-top: 1.25rem;
    border-radius: 16px;
    box-shadow: none;
    background: #fff;
    font-size: 0.95rem;
    border: 1px solid #e2e8f0;
    width: 100%;
    overflow-x: auto;
}

.rtb-dashboard-wrapper .rtb-dashboard-table table {
    border-collapse: collapse;
    width: 100%;
    min-width: 720px;
}

.rtb-dashboard-wrapper .rtb-dashboard-table th,
.rtb-dashboard-wrapper .rtb-dashboard-table td {
    padding: 0.85rem;
}

.rtb-dashboard-wrapper .rtb-dashboard-table thead {
    background: #0f172a;
    color: #fff;
}

.rtb-dashboard-wrapper .rtb-dashboard-table tbody tr:nth-child(odd) {
    background: #f8fafc;
}

.rtb-dashboard-wrapper .rtb-dashboard-table tbody tr:hover {
    background: #e5e7eb;
}

.rtb-dashboard-pagination {
    margin-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rtb-dashboard-pagination .rtb-pagination-info {
    color: #475569;
    font-size: 0.95rem;
}

.rtb-dashboard-pagination .rtb-pagination-link--disabled {
    pointer-events: none;
    opacity: 0.4;
}

.rtb-dashboard-wrapper .rtb-dashboard-messages {
    margin-bottom: 1rem;
}

.rtb-dashboard-wrapper .rtb-dashboard-messages .rtb-alert {
    font-size: 0.95rem;
}

.rtb-dashboard-wrapper .rtb-dash-status-form {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rtb-dashboard-wrapper .rtb-dash-status-form select {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
    width: 100%;
    background: #fff;
}

.rtb-dashboard-wrapper .rtb-dash-edit-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    text-decoration: underline;
}

.rtb-dashboard-edit {
    margin-top: 1.25rem;
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: none;
    border: 1px solid #e5e7eb;
}

.rtb-dashboard-edit form {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 1rem;
    font-size: 0.95rem;
}

.rtb-dashboard-edit .rtb-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rtb-dashboard-edit input,
.rtb-dashboard-edit select,
.rtb-dashboard-edit textarea {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    background: #fff;
}

.rtb-dashboard-edit textarea {
    min-height: 80px;
    grid-column: 1 / -1;
}

.rtb-dashboard-edit .rtb-form__actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.rtb-dashboard-edit .rtb-btn {
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.rtb-dashboard-edit .rtb-btn--ghost {
    background: #fff;
    color: #0f172a;
    border: 1px solid #d1d5db;
}

/* Harden styles when Elementor global rules apply */
