/** Inline status rendering/editing. */
.pix-rtb-status-badge,
.pix-rtb-status-select {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
}

.pix-rtb-status-badge {
    padding: 0.25rem 0.625rem;
}

.pix-rtb-status-select {
    max-width: 100%;
    padding: 0.25rem 0.5rem;
}

.rtb-view-bookings-table-column-status.is-saving {
    opacity: 0.65;
}

.pix-rtb-status-badge--pending {
    background: #fff3e0;
    color: #9a4f00;
}

.pix-rtb-status-badge--cancelled {
    background: #fdecea;
    color: #9f1d16;
}

.pix-rtb-status-badge--confirmed {
    background: #eef7ee;
    color: #256029;
}


.pix-rtb-status-badge--arrived {
    background: #e8f5e9;
    color: #1b5e20;
}

.pix-rtb-status-badge--closed {
    background: #eeeeee;
    color: #555;
}

.pix-rtb-status-badge--payment_pending,
.pix-rtb-status-badge--payment-pending {
    background: #fff3e0;
    color: #9a4f00;
}

.pix-rtb-status-badge--payment_failed,
.pix-rtb-status-badge--payment-failed {
    background: #fdecea;
    color: #9f1d16;
}

.pix-rtb-status-select option[value="confirmed"] { font-weight: 600; }

/** Server-authored dashboard actions. */
.pix-rtb-dashboard-actions {
    display: grid;
    gap: 0.5rem;
}

.pix-rtb-dashboard-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.pix-rtb-dashboard-action-button {
    min-height: 2.25rem;
    padding: 0.375rem 0.625rem;
    border: 1px solid #d0d0d0;
    border-radius: 999px;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
}

.pix-rtb-dashboard-action-button--primary {
    border-color: #2e7d32;
    color: #1b5e20;
}

.pix-rtb-dashboard-action-button--danger {
    border-color: #c62828;
    color: #9f1d16;
}

.pix-rtb-dashboard-action-button:disabled,
.pix-rtb-booking-row.is-saving .pix-rtb-dashboard-action-button,
.pix-rtb-booking-row.is-saving .pix-rtb-status-select {
    cursor: wait;
    opacity: 0.55;
}

@media (min-width: 768px) {
    .pix-rtb-dashboard-action-buttons {
        margin-top: 0.25rem;
    }
}

@media (max-width: 767px) {
    .pix-rtb-dashboard-actions {
        width: 100%;
    }

    .pix-rtb-status-select {
        display: none;
    }

    .pix-rtb-dashboard-action-buttons {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .pix-rtb-dashboard-action-button {
        width: 100%;
        min-height: 2.75rem;
        border-radius: 12px;
        text-align: center;
    }
}


/** Contact actions. */
.pix-rtb-dashboard-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.375rem;
}

.pix-rtb-dashboard-contact-action {
    min-height: 2rem;
    padding: 0.35rem 0.625rem;
    border: 1px solid #d0d0d0;
    border-radius: 999px;
    background: #fff;
    color: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
}

button.pix-rtb-dashboard-contact-action {
    cursor: pointer;
    appearance: none;
}

@media (max-width: 767px) {
    .pix-rtb-dashboard-contact-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .pix-rtb-dashboard-contact-action {
        min-height: 2.75rem;
        border-radius: 12px;
        text-align: center;
    }
}

/** Button-only operational action layout. */
.pix-rtb-status-select,
.pix-rtb-dashboard-actions__select {
    display: none !important;
}

.pix-rtb-dashboard-column-actions .pix-rtb-status-badge {
    margin-bottom: 0.5rem;
}

.pix-rtb-dashboard-column-actions .pix-rtb-dashboard-action-buttons {
    display: grid;
    gap: 0.375rem;
}

.pix-rtb-dashboard-message-text {
    display: block;
    max-width: 22rem;
    white-space: normal;
}

.pix-rtb-dashboard-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    min-height: 1.75rem;
    border-radius: 999px;
    font-weight: 700;
}

.pix-rtb-dashboard-icon--yes {
    background: #eef7ee;
    color: #256029;
}

.pix-rtb-dashboard-icon--no,
.pix-rtb-dashboard-icon--none {
    background: #eeeeee;
    color: #555;
}

.pix-rtb-dashboard-message-toggle,
.pix-rtb-contact-reveal__toggle,
.pix-rtb-dashboard-message-close {
    border: 1px solid #d0d0d0;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
}

.pix-rtb-dashboard-message-toggle,
.pix-rtb-contact-reveal__toggle {
    min-height: 2.5rem;
    padding: 0.45rem 0.75rem;
}

.pix-rtb-dashboard-message-popover {
    position: relative;
    margin-top: 0.75rem;
    padding: 1rem;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.pix-rtb-dashboard-message-close {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    width: 2rem;
    height: 2rem;
}

.pix-rtb-contact-reveal {
    display: grid;
    gap: 0.375rem;
}

.pix-rtb-contact-reveal__value {
    overflow-wrap: anywhere;
}
