.rm-agenda-wrap,
.rm-agenda-admin {
    --rm-agenda-accent: #0059b3;
    --rm-agenda-dark: #1f1235;
    --rm-agenda-soft: #f8fbff;
    --rm-agenda-line: #cfe2ff;
    --rm-agenda-text: #2b2436;
    --rm-agenda-muted: #6b6477;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--rm-agenda-text);
}

.rm-agenda-wrap * ,
.rm-agenda-admin * {
    box-sizing: border-box;
}

.rm-agenda-wrap {
    max-width: 1120px;
    margin: 72px auto 0;
    padding: 24px 12px;
}

body.admin-bar .rm-agenda-wrap {
    margin-top: 104px;
}

.rm-agenda-card {
    background: #fff;
    border: 1px solid var(--rm-agenda-line);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 14px 45px rgba(7, 17, 31, .08);
    margin-bottom: 18px;
}

.rm-agenda-public-card {
    background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
}

.rm-agenda-title-row h2,
.rm-agenda-card h2,
.rm-agenda-card h3,
.rm-agenda-admin-hero h1 {
    margin-top: 0;
    color: var(--rm-agenda-dark);
    line-height: 1.1;
}

.rm-agenda-title-row p,
.rm-agenda-small,
.rm-agenda-card p {
    color: var(--rm-agenda-muted);
}

.rm-agenda-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rm-agenda-accent);
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 8px;
}

.rm-agenda-grid {
    display: grid;
    gap: 16px;
}

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

.rm-agenda-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rm-agenda-form label {
    display: block;
    font-weight: 700;
    color: var(--rm-agenda-dark);
    margin-bottom: 14px;
}

.rm-agenda-form label span,
.rm-agenda-form label > small {
    display: block;
    margin-bottom: 7px;
}

.rm-agenda-form input,
.rm-agenda-form select,
.rm-agenda-form textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 10px 13px;
    font-size: 15px;
    background: #fff;
    color: var(--rm-agenda-text);
    box-shadow: none;
}

.rm-agenda-form textarea {
    min-height: 90px;
}

.rm-agenda-form input:focus,
.rm-agenda-form select:focus,
.rm-agenda-form textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--rm-agenda-accent) 25%, transparent);
    border-color: var(--rm-agenda-accent);
}

.rm-agenda-section-title {
    font-size: 18px;
    color: var(--rm-agenda-dark);
    font-weight: 900;
    margin: 20px 0 14px;
    padding-top: 10px;
    border-top: 1px solid var(--rm-agenda-line);
}

.rm-agenda-button,
.rm-agenda-wrap .rm-agenda-button,
.rm-agenda-admin .button.button-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: none;
    background: var(--rm-agenda-accent);
    color: #fff !important;
    border-radius: 999px;
    padding: 12px 20px;
    min-height: 44px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0, 89, 179, .22);
}

.rm-agenda-button:hover,
.rm-agenda-admin .button.button-primary:hover {
    filter: brightness(.95);
}

.rm-agenda-button-light {
    background: #fff;
    color: var(--rm-agenda-accent) !important;
    border: 1px solid var(--rm-agenda-line);
    box-shadow: none;
}

.rm-agenda-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 18px;
    color: #064e3b;
}

.rm-agenda-success p,
.rm-agenda-success span {
    color: #065f46;
}

.rm-agenda-success-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    margin: 14px 0;
}

.rm-agenda-admin-hero {
    background: linear-gradient(135deg, #07111f 0%, var(--rm-agenda-accent) 100%);
    color: #fff;
    border-radius: 22px;
    padding: 26px;
    margin: 20px 0;
    box-shadow: 0 20px 45px rgba(7, 17, 31, .16);
}

.rm-agenda-admin-hero h1,
.rm-agenda-admin-hero p,
.rm-agenda-admin-hero span {
    color: #fff;
}

.rm-agenda-admin-hero span {
    opacity: .85;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 12px;
}

.rm-agenda-admin-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
}

.rm-agenda-admin-filters label {
    font-weight: 700;
}

.rm-agenda-admin-filters input,
.rm-agenda-admin-filters select {
    display: block;
    min-height: 36px;
}

.rm-agenda-appointment-main,
.rm-agenda-admin-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.rm-agenda-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.rm-agenda-status {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
    background: #eee;
    color: #333;
}

.rm-agenda-status-pending { background: #fef3c7; color: #92400e; }
.rm-agenda-status-confirmed { background: #dbeafe; color: #1d4ed8; }
.rm-agenda-status-finished { background: #dcfce7; color: #166534; }
.rm-agenda-status-cancelled { background: #fee2e2; color: #991b1b; }
.rm-agenda-status-no_show { background: #f3f4f6; color: #374151; }

.rm-agenda-admin-row {
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.rm-agenda-admin-row:last-child {
    border-bottom: 0;
}

.rm-agenda-inline-form {
    display: inline-block;
    margin-left: 6px;
}

.rm-agenda-delete-form {
    margin-top: 16px;
}

.rm-agenda-check {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.rm-agenda-check input {
    width: auto;
    min-height: auto;
}

.rm-agenda-patient-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--rm-agenda-line);
}

.rm-agenda-patient-item:last-child {
    border-bottom: 0;
}

@media (max-width: 780px) {
    .rm-agenda-grid-2,
    .rm-agenda-grid-3,
    .rm-agenda-success-grid {
        grid-template-columns: 1fr;
    }
    .rm-agenda-appointment-main,
    .rm-agenda-admin-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .rm-agenda-actions {
        justify-content: flex-start;
    }
    .rm-agenda-card {
        padding: 18px;
        border-radius: 18px;
    }
}

/* V1.1.0 - melhorias visuais e painel */
.rm-agenda-card code {
    background: #f3f0ff;
    border: 1px solid var(--rm-agenda-line);
    border-radius: 8px;
    padding: 2px 6px;
}

.rm-agenda-public-card,
.rm-agenda-patient-search {
    position: relative;
    overflow: hidden;
}

.rm-agenda-public-card:before,
.rm-agenda-patient-search:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 0%, rgba(109,40,217,.13), transparent 34%),
        radial-gradient(circle at 100% 25%, rgba(76,29,149,.10), transparent 30%);
}

.rm-agenda-public-card > *,
.rm-agenda-patient-search > * {
    position: relative;
}

.rm-agenda-appointment-card {
    border-left: 5px solid var(--rm-agenda-accent);
    transition: transform .15s ease, box-shadow .15s ease;
}

.rm-agenda-appointment-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 48px rgba(31,18,53,.12);
}

.rm-agenda-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
    margin: 14px 0 18px;
}

.rm-agenda-info-grid span {
    display: block;
    background: var(--rm-agenda-soft);
    border: 1px solid var(--rm-agenda-line);
    border-radius: 16px;
    padding: 12px;
    color: var(--rm-agenda-text);
}

.rm-agenda-info-grid b {
    display: block;
    color: var(--rm-agenda-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 3px;
}

.rm-agenda-actions-left {
    justify-content: flex-start;
}

.rm-agenda-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rm-agenda-quick-actions .rm-agenda-inline-form,
.rm-agenda-actions .rm-agenda-inline-form {
    margin-left: 0;
}

.rm-agenda-actions .button,
.rm-agenda-quick-actions .button,
.rm-agenda-admin-row .button {
    border-radius: 999px;
}

.rm-agenda-detail-card {
    min-height: 100%;
}

.rm-agenda-patient-list {
    display: grid;
    gap: 14px;
}

.rm-agenda-patient-list .rm-agenda-patient-item {
    border: 1px solid var(--rm-agenda-line);
    border-radius: 18px;
    padding: 18px;
    background: #fff;
}

.rm-agenda-patient-item h3 {
    margin: 10px 0 6px;
}

@media (max-width: 780px) {
    .rm-agenda-info-grid {
        grid-template-columns: 1fr;
    }
}

/* V1.2.0 - expansÃ£o visual, serviÃ§os, dashboard, pacotes e financeiro */
.rm-agenda-alert-card {
    background: linear-gradient(135deg, #fff 0%, #eaf3ff 100%);
    border-color: rgba(109,40,217,.24);
}
.rm-agenda-service-preview {
    display: none;
    margin-top: 8px;
    padding: 12px 14px;
    border: 1px solid var(--rm-agenda-line);
    border-radius: 16px;
    background: var(--rm-agenda-soft);
}
.rm-agenda-service-preview strong {
    display: block;
    font-size: 20px;
    color: var(--rm-agenda-dark);
    line-height: 1;
    margin-bottom: 4px;
}
.rm-agenda-service-preview span {
    display: block;
    color: var(--rm-agenda-muted);
    font-size: 13px;
    font-weight: 800;
}
.rm-agenda-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.rm-agenda-stat-card {
    background: #fff;
    border: 1px solid var(--rm-agenda-line);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 14px 35px rgba(31,18,53,.07);
}
.rm-agenda-stat-card span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--rm-agenda-muted);
    font-weight: 900;
    margin-bottom: 8px;
}
.rm-agenda-stat-card strong {
    display: block;
    color: var(--rm-agenda-dark);
    font-size: 24px;
    line-height: 1.1;
}
.rm-agenda-service-row {
    align-items: flex-start;
}
.rm-agenda-service-public-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.rm-agenda-service-public-card {
    background: #fff;
    border: 1px solid var(--rm-agenda-line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(31,18,53,.09);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.rm-agenda-service-img {
    height: 175px;
    background: var(--rm-agenda-soft);
    overflow: hidden;
}
.rm-agenda-service-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.rm-agenda-service-public-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.rm-agenda-service-public-body h3 {
    margin: 0;
    color: var(--rm-agenda-dark);
    font-size: 22px;
    line-height: 1.1;
}
.rm-agenda-service-public-body p {
    color: var(--rm-agenda-muted);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}
.rm-agenda-service-public-body > strong {
    display: block;
    font-size: 24px;
    color: var(--rm-agenda-dark);
}
.rm-agenda-admin select,
.rm-agenda-admin input[type="date"],
.rm-agenda-admin input[type="time"],
.rm-agenda-admin input[type="number"],
.rm-agenda-admin input[type="text"],
.rm-agenda-admin input[type="url"],
.rm-agenda-admin input[type="email"],
.rm-agenda-admin textarea {
    border-radius: 12px;
    border: 1px solid #cbd5e1;
}
@media (max-width: 1100px) {
    .rm-agenda-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rm-agenda-service-public-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .rm-agenda-stat-grid,
    .rm-agenda-service-public-grid { grid-template-columns: 1fr; }
    .rm-agenda-stat-card strong { font-size: 21px; }
}

/* V1.2.1 - CalendÃ¡rio, notificaÃ§Ãµes, cupons e campos extras */
.rm-agenda-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin-top:18px}
.rm-agenda-day{min-height:112px;background:#fff;border:1px solid rgba(109,40,217,.15);border-radius:14px;padding:10px;box-shadow:0 8px 24px rgba(17,24,39,.05);overflow:hidden}
.rm-agenda-day-empty{background:rgba(248,250,252,.65);box-shadow:none}
.rm-agenda-day>strong{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:999px;background:rgba(109,40,217,.1);color:#07111f;font-size:13px;margin-bottom:8px}
.rm-agenda-day-event{font-size:12px;line-height:1.35;background:#f8fbff;border:1px solid #cfe2ff;border-radius:10px;padding:6px 7px;margin:5px 0;color:#312e81}
.rm-agenda-day-event span{font-weight:900;color:#07111f}
.rm-agenda-day-event a{text-decoration:none;font-weight:800;color:#312e81}
.rm-agenda-check{display:flex!important;align-items:center;gap:8px;font-weight:700;background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:12px!important;margin:8px 0!important}
.rm-agenda-check input{width:auto!important;margin:0!important}
.rm-agenda-admin .widefat code{background:#f8fbff;color:#07111f;padding:2px 6px;border-radius:6px}
@media(max-width:900px){.rm-agenda-month-grid{grid-template-columns:1fr}.rm-agenda-day{min-height:auto}}

/* V1.2.2 extras */
.rm-agenda-suggestion-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:16px 0}
.rm-agenda-suggestion{background:#fff;border:1px solid #cfe2ff;border-radius:16px;padding:14px;box-shadow:0 8px 24px rgba(76,29,149,.08)}
.rm-agenda-pill{display:inline-block;margin:6px 4px 0 0;padding:6px 10px;border-radius:999px;background:#eaf3ff;color:#07111f;font-weight:800;font-size:12px}
.rm-agenda-media-button{margin-top:8px!important}
.rm-agenda-admin input[type="text"],.rm-agenda-admin input[type="email"],.rm-agenda-admin input[type="url"],.rm-agenda-admin input[type="number"],.rm-agenda-admin input[type="date"],.rm-agenda-admin input[type="time"],.rm-agenda-admin select,.rm-agenda-admin textarea{width:100%;max-width:100%;border:1px solid #d8b4fe;border-radius:10px;padding:8px 10px;background:#fff}
.rm-agenda-admin label{display:block;margin:10px 0;font-weight:700;color:#312e81}
.rm-agenda-admin .widefat td{vertical-align:middle}


/* V1.2.18 - Banner/logo da agenda no front */
.rm-agenda-front-1216 .rm-agenda-brand-banner-1218{
    display:flex;
    justify-content:flex-start;
    align-items:center;
    margin:0 0 18px;
    text-align:left;
}
.rm-agenda-front-1216 .rm-agenda-brand-banner-1218 img{
    display:block;
    max-width:340px;
    width:100%;
    height:auto;
    object-fit:contain;
}
@media(max-width:620px){
    .rm-agenda-front-1216 .rm-agenda-brand-banner-1218 img{max-width:280px;}
}

/* ============================================================
 * RM Agenda ClÃ­nica - v1.2.79
 * CorreÃ§Ã£o definitiva do painel do cliente em 80% real.
 * Esta regra mira a classe real gerada pelo shortcode [rm_area_paciente]:
 * .rm-agenda-patient-area-v1271
 * ============================================================ */

/* Evita que o tema/Elementor limite o shortcode do painel do cliente */
body:has(.rm-agenda-patient-area-v1271) {
    overflow-x: hidden !important;
}

body:has(.rm-agenda-patient-area-v1271) .site,
body:has(.rm-agenda-patient-area-v1271) .site-content,
body:has(.rm-agenda-patient-area-v1271) .content-area,
body:has(.rm-agenda-patient-area-v1271) .entry-content,
body:has(.rm-agenda-patient-area-v1271) .wp-site-blocks,
body:has(.rm-agenda-patient-area-v1271) .wp-block-post-content,
body:has(.rm-agenda-patient-area-v1271) .elementor,
body:has(.rm-agenda-patient-area-v1271) .elementor-section,
body:has(.rm-agenda-patient-area-v1271) .elementor-container,
body:has(.rm-agenda-patient-area-v1271) .elementor-column,
body:has(.rm-agenda-patient-area-v1271) .elementor-widget,
body:has(.rm-agenda-patient-area-v1271) .elementor-widget-container {
    max-width: none !important;
}

/* Classe real do painel do cliente */
.rm-agenda-wrap.rm-agenda-patient-area-v1271,
.rm-agenda-patient-area-v1271 {
    width: 80vw !important;
    max-width: 80vw !important;
    min-width: 80vw !important;
    margin-left: calc(50% - 40vw) !important;
    margin-right: calc(50% - 40vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

/* Garante que os cards internos acompanhem os 80vw */
.rm-agenda-patient-area-v1271 .rm-agenda-card,
.rm-agenda-patient-area-v1271 .rm-agenda-public-card,
.rm-agenda-patient-area-v1271 .rm-agenda-patient-card,
.rm-agenda-patient-area-v1271 form,
.rm-agenda-patient-area-v1271 .rm-agenda-grid {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Campos internos sem estourar o card */
.rm-agenda-patient-area-v1271 input,
.rm-agenda-patient-area-v1271 select,
.rm-agenda-patient-area-v1271 textarea,
.rm-agenda-patient-area-v1271 button {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* MantÃ©m visual organizado em desktop */
.rm-agenda-patient-area-v1271 .rm-agenda-grid,
.rm-agenda-patient-area-v1271 .rm-agenda-grid-2,
.rm-agenda-patient-area-v1271 .rm-agenda-grid-3 {
    display: grid !important;
    gap: 14px !important;
}

.rm-agenda-patient-area-v1271 .rm-agenda-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.rm-agenda-patient-area-v1271 .rm-agenda-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* Celular: volta para 100% */
@media (max-width: 782px) {
    .rm-agenda-wrap.rm-agenda-patient-area-v1271,
    .rm-agenda-patient-area-v1271 {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .rm-agenda-patient-area-v1271 .rm-agenda-grid,
    .rm-agenda-patient-area-v1271 .rm-agenda-grid-2,
    .rm-agenda-patient-area-v1271 .rm-agenda-grid-3 {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 782px) {
    .rm-agenda-wrap {
        margin-top: 88px;
        padding-top: 20px;
    }

    body.admin-bar .rm-agenda-wrap {
        margin-top: 120px;
    }
}

/* V1.2.161 - seletor de paciente no agendamento manual */
.rm-agenda-admin .rm-professional-patient-search-wrap,
.rm-agenda-professional-front-panel .rm-professional-patient-search-wrap {
    position: relative;
}
.rm-agenda-admin .rm-professional-patient-results,
.rm-agenda-professional-front-panel .rm-professional-patient-results {
    display: none;
    position: absolute;
    z-index: 9999;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 6px;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
    background: #fff;
    border: 1px solid #cfe2ff;
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
}
.rm-agenda-admin .rm-professional-patient-results.is-open,
.rm-agenda-professional-front-panel .rm-professional-patient-results.is-open {
    display: block;
}
.rm-agenda-admin .rm-professional-patient-result,
.rm-agenda-professional-front-panel .rm-professional-patient-result {
    width: 100%;
    display: block;
    text-align: left;
    border: 1px solid #e5efff;
    background: #f8fbff;
    color: #07111f !important;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 0 6px;
    cursor: pointer;
    box-shadow: none !important;
}
.rm-agenda-admin .rm-professional-patient-result:last-child,
.rm-agenda-professional-front-panel .rm-professional-patient-result:last-child {
    margin-bottom: 0;
}
.rm-agenda-admin .rm-professional-patient-result:hover,
.rm-agenda-admin .rm-professional-patient-result:focus,
.rm-agenda-professional-front-panel .rm-professional-patient-result:hover,
.rm-agenda-professional-front-panel .rm-professional-patient-result:focus {
    background: #eaf4ff !important;
    border-color: #94c5ff;
    outline: none;
}
.rm-agenda-admin .rm-professional-patient-result strong,
.rm-agenda-professional-front-panel .rm-professional-patient-result strong {
    display: block;
    color: #07111f !important;
}
.rm-agenda-admin .rm-professional-patient-result small,
.rm-agenda-professional-front-panel .rm-professional-patient-result small {
    display: block;
    margin-top: 2px;
    color: #64748b !important;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.rm-agenda-admin .rm-professional-patient-empty,
.rm-agenda-professional-front-panel .rm-professional-patient-empty,
.rm-agenda-admin .rm-professional-patient-selected-note,
.rm-agenda-professional-front-panel .rm-professional-patient-selected-note {
    display: none;
    margin-top: 8px;
    border-radius: 10px;
    padding: 9px 11px;
    font-weight: 700;
}
.rm-agenda-admin .rm-professional-patient-empty.is-visible,
.rm-agenda-professional-front-panel .rm-professional-patient-empty.is-visible,
.rm-agenda-admin .rm-professional-patient-selected-note.is-visible,
.rm-agenda-professional-front-panel .rm-professional-patient-selected-note.is-visible {
    display: block;
}
.rm-agenda-admin .rm-professional-patient-empty,
.rm-agenda-professional-front-panel .rm-professional-patient-empty {
    border: 1px dashed #cfe2ff;
    background: #fff;
    color: #475569;
}
.rm-agenda-admin .rm-professional-patient-selected-note,
.rm-agenda-professional-front-panel .rm-professional-patient-selected-note {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
}


/* V1.2.181 - Botão rápido para excluir agendamento */
.rm-agenda-delete-appointment-inline {
    display: inline-block;
    margin: 0;
}
.rm-agenda-delete-appointment-button {
    color: #b91c1c !important;
    border-color: #fecaca !important;
    background: #fff5f5 !important;
    font-weight: 700 !important;
}
.rm-agenda-delete-appointment-button:hover,
.rm-agenda-delete-appointment-button:focus {
    color: #ffffff !important;
    border-color: #b91c1c !important;
    background: #b91c1c !important;
}

/* V1.2.403 - descrição pública da Conversa inicial no front */
.rm-agenda-service-preview .rm-agenda-service-preview-desc {
    margin: 8px 0 0;
    color: #374151;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}


/* V1.2.545 - grade visual de horários do front clássico: mostra todos os horários do dia, inclusive indisponíveis */
.rm-agenda-booking-form .rm-agenda-slot-card-grid-545 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    gap: 10px;
    width: 100%;
    margin: 12px 0 18px;
}
.rm-agenda-booking-form .rm-agenda-slot-card-545 {
    position: relative;
    overflow: hidden;
    border: 1px solid #cfe2ff;
    background: #ffffff;
    color: #07111f;
    border-radius: 13px;
    padding: 13px 10px;
    min-height: 58px;
    cursor: pointer;
    text-align: center;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(15,23,42,.05);
}
.rm-agenda-booking-form .rm-agenda-slot-card-545 strong {
    display: block;
    color: inherit;
    font-size: 15px;
    line-height: 1.15;
}
.rm-agenda-booking-form .rm-agenda-slot-card-545 small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}
.rm-agenda-booking-form .rm-agenda-slot-card-545.is-active {
    background: #0059b3;
    border-color: #0059b3;
    color: #ffffff;
}
.rm-agenda-booking-form .rm-agenda-slot-card-545.is-active small {
    color: #ffffff;
}
.rm-agenda-booking-form .rm-agenda-slot-card-545.is-unavailable {
    background: #f7f7f7;
    border-color: #e5e7eb;
    color: #111827;
    opacity: .9;
    cursor: not-allowed;
    box-shadow: none;
}
.rm-agenda-booking-form .rm-agenda-slot-card-545.is-unavailable strong,
.rm-agenda-booking-form .rm-agenda-slot-card-545.is-unavailable small {
    position: relative;
    z-index: 1;
    color: #111827;
}
.rm-agenda-booking-form .rm-agenda-slot-card-545.is-unavailable:after {
    content: attr(data-status-label);
    position: absolute;
    left: 50%;
    top: 50%;
    width: 165%;
    transform: translate(-50%,-50%) rotate(-24deg);
    transform-origin: center;
    color: #111827;
    font-size: 12px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: center;
    padding: 3px 0;
    border-top: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
    background: rgba(255,255,255,.9);
    opacity: .96;
    z-index: 2;
    pointer-events: none;
}

/* V1.2.590/V1.2.592: consulta confirmada/paga não é consulta realizada. */
.rm-agenda-confirm-realized,
.rm-agenda-button-finish,
.rm-agenda-realized-done {
    background:#ea580c !important;
    border-color:#ea580c !important;
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
    font-weight:900 !important;
}
.rm-agenda-confirm-realized:hover,
.rm-agenda-button-finish:hover,
.rm-agenda-realized-done:hover {
    background:#c2410c !important;
    border-color:#c2410c !important;
    color:#fff !important;
}

/* V1.2.591/V1.2.592: botão Consulta Realizada também na tela Agendamentos. */
.rm-agenda-appointment-card .rm-agenda-actions .rm-agenda-finish-form {
    display:block !important;
    flex:1 0 100% !important;
    width:100% !important;
    order:999 !important;
    margin:8px 0 0 !important;
}
.rm-agenda-appointment-card .rm-agenda-actions .rm-agenda-finish-form .rm-agenda-confirm-realized,
.rm-agenda-appointment-card .rm-agenda-actions .rm-agenda-realized-done {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    min-height:38px !important;
    box-sizing:border-box !important;
    text-align:center !important;
    white-space:normal !important;
    font-weight:900 !important;
}
.rm-agenda-appointment-card .rm-agenda-actions .rm-agenda-realized-done {
    flex:1 0 100% !important;
    order:999 !important;
    background:#ea580c !important;
    border-color:#ea580c !important;
    color:#fff !important;
}



/* V1.2.686 - Contraste seguro dos botões claros, inclusive no dispositivo móvel. */
.rm-agenda-wrap .rm-agenda-button.rm-agenda-button-light,
.rm-agenda-admin .rm-agenda-button.rm-agenda-button-light,
.rm-agenda-button.rm-agenda-button-light,
a.rm-agenda-button.rm-agenda-button-light,
button.rm-agenda-button.rm-agenda-button-light,
input.rm-agenda-button.rm-agenda-button-light {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #0059b3 !important;
    -webkit-text-fill-color: #0059b3 !important;
    border: 1px solid #cfe2ff !important;
    text-shadow: none !important;
}

.rm-agenda-wrap .rm-agenda-button.rm-agenda-button-light *,
.rm-agenda-admin .rm-agenda-button.rm-agenda-button-light *,
.rm-agenda-button.rm-agenda-button-light * {
    color: #0059b3 !important;
    -webkit-text-fill-color: #0059b3 !important;
}

@media (max-width: 900px) {
    /* Evita texto branco em controles desabilitados ou de estado com fundo muito claro. */
    .rm-agenda-wrap button:disabled:not(.rm657-mobile-painted),
    .rm-agenda-wrap input[type="submit"]:disabled:not(.rm657-mobile-painted),
    .rm-agenda-wrap .rm-agenda-button[aria-disabled="true"]:not(.rm657-mobile-painted),
    .rm-agenda-wrap .rm-agenda-action-disabled:not(.rm657-mobile-painted),
    .rm-agenda-admin button:disabled:not(.rm657-mobile-painted),
    .rm-agenda-admin input[type="submit"]:disabled:not(.rm657-mobile-painted) {
        background: #e2e8f0 !important;
        background-color: #e2e8f0 !important;
        border-color: #94a3b8 !important;
        color: #0f172a !important;
        -webkit-text-fill-color: #0f172a !important;
        text-shadow: none !important;
        opacity: 1 !important;
    }

    .rm-agenda-wrap button:disabled:not(.rm657-mobile-painted) *,
    .rm-agenda-wrap .rm-agenda-button[aria-disabled="true"]:not(.rm657-mobile-painted) *,
    .rm-agenda-wrap .rm-agenda-action-disabled:not(.rm657-mobile-painted) * {
        color: #0f172a !important;
        -webkit-text-fill-color: #0f172a !important;
    }
}


/* V1.2.691 - Força somente o texto preto em todos os botões e ações dos cards de agendamento no mobile. */
@media screen and (max-width:900px) {
    html body .rm-agenda-appointment-card .rm-agenda-actions .button,
    html body .rm-agenda-appointment-card .rm-agenda-actions button,
    html body .rm-agenda-appointment-card .rm-agenda-actions a,
    html body .rm-agenda-appointment-card .rm-agenda-actions span,
    html body .rm-agenda-appointment-card .rm-agenda-actions input[type="submit"],
    html body .rm-agenda-appointment-card .rm-agenda-actions input[type="button"],
    html body .rm-agenda-appointment-card .rm-agenda-more-actions-box summary,
    html body .rm-agenda-appointment-card .rm-agenda-actions .button *,
    html body .rm-agenda-appointment-card .rm-agenda-actions button *,
    html body .rm-agenda-appointment-card .rm-agenda-actions a *,
    html body .rm-agenda-appointment-card .rm-agenda-actions span *,
    html body .rm-agenda-appointment-card .rm-agenda-more-actions-box summary * {
        color:#111111!important;
        -webkit-text-fill-color:#111111!important;
        text-shadow:none!important;
    }
}
