/* Odonto Escala - Frontend Styles */

.oe-booking-container {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.oe-form-group {
    margin-bottom: 20px;
}

.oe-form-row {
    display: flex;
    margin: 0 -10px;
}

.oe-col-half {
    width: 50%;
    padding: 0 10px;
}

.oe-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.oe-form input[type="text"],
.oe-form input[type="email"],
.oe-form input[type="tel"],
.oe-form input[type="date"],
.oe-form input[type="time"],
.oe-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #f9f9f9;
    font-size: 15px;
    color: #444;
    transition: all 0.3s ease;
}

.oe-form input:focus,
.oe-form select:focus {
    border-color: #007bff;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.oe-btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    text-align: center;
}

.oe-btn:hover {
    background: #0056b3;
}

.oe-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.oe-form-message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.oe-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.oe-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.oe-notice {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ffeeba;
}

/* Schedule Settings Forms */
.oe-day-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.oe-day-toggle-wrapper {
    flex: 0 0 150px;
}

.oe-toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.oe-toggle-label input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.oe-toggle-label strong {
    font-size: 15px;
    color: #333;
}

.oe-day-times {
    flex: 1;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: opacity 0.3s;
}

.oe-time-input-group {
    display: flex;
    align-items: center;
}

.oe-time-input-group span {
    margin-right: 8px;
    font-size: 14px;
    color: #666;
}

.oe-time-input-group input[type="time"] {
    width: 110px;
}

/* Responsive */
@media (max-width: 500px) {
    .oe-form-row {
        flex-direction: column;
    }

    .oe-col-half {
        width: 100%;
    }
}

/* Wizard & Steps */
.oe-wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.oe-step-indicator {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: #999;
    font-weight: 600;
}

.oe-step-indicator.active {
    color: #0e9d7c;
    border-bottom: 2px solid #0e9d7c;
    margin-bottom: -12px;
}

.oe-wizard-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
    text-align: center;
}

.oe-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
}

.oe-btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.oe-btn-secondary:hover {
    background: #ccc;
}

.oe-btn-next,
.oe-btn-primary {
    background: #0e9d7c;
}

.oe-btn-next:hover,
.oe-btn-primary:hover {
    background: #0a7d63;
}

.oe-btn-next:disabled,
.oe-btn-primary:disabled {
    background: #a8dcd1;
    cursor: not-allowed;
}

/* Calendar Grid (Doctoralia Style) */
.oe-calendar-wrapper {
    background: #fafafa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #f0f0f0;
}

.oe-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.oe-cal-btn {
    background: #e6f7f4;
    color: #0e9d7c;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oe-cal-btn:hover {
    background: #0e9d7c;
    color: #fff;
}

.oe-cal-current-month {
    font-weight: 600;
    color: #444;
}

.oe-calendar-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.oe-cal-col {
    flex: 1;
    min-width: 80px;
    text-align: center;
}

.oe-cal-day-header {
    margin-bottom: 15px;
}

.oe-cal-day-name {
    font-size: 14px;
    color: #333;
    display: block;
}

.oe-cal-day-date {
    font-size: 12px;
    color: #888;
    display: block;
}

.oe-cal-slot {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    border: none;
    background: #e6f7f4;
    color: #0e9d7c;
    cursor: pointer;
    transition: all 0.2s;
}

.oe-cal-slot:hover {
    background: #0e9d7c;
    color: #fff;
}

.oe-cal-slot.selected {
    background: #0e9d7c;
    color: #fff;
    box-shadow: 0 4px 10px rgba(14, 157, 124, 0.4);
}

.oe-cal-slot-unavailable {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #ccc;
}

.oe-btn-more-hours {
    background: none;
    border: none;
    color: #0e9d7c;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

/* Professional Dashboard Styles */
.oe-dashboard-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.oe-dashboard-header {
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 25px;
    padding-bottom: 15px;
}

.oe-dashboard-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.oe-stat-card {
    flex: 1;
    min-width: 150px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
}

.oe-stat-card h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
}

.oe-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.oe-stat-pending .oe-stat-value {
    color: #f0ad4e;
}

.oe-stat-confirmed .oe-stat-value {
    color: #5cb85c;
}

.oe-stat-cancelled .oe-stat-value {
    color: #d9534f;
}

.oe-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.oe-table th,
.oe-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.oe-table th {
    background: #f4f6f8;
    color: #555;
    font-weight: 600;
}

.oe-status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.oe-status-pendente {
    background: #fcf8e3;
    color: #8a6d3b;
    border: 1px solid #faebcc;
}

.oe-status-confirmado {
    background: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.oe-status-cancelado {
    background: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

.oe-action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 5px;
    transition: opacity 0.2s;
}

.oe-action-btn:hover {
    opacity: 0.8;
}

.oe-btn-confirm {
    background: #5cb85c;
    color: white;
}

.oe-btn-cancel {
    background: #d9534f;
    color: white;
}

.oe-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    background-color: #25d366;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
}

.oe-btn-whatsapp:hover {
    background-color: #128c7e;
    color: #fff;
    transform: translateY(-1px);
}

.oe-btn-whatsapp svg {
    margin-right: 6px;
}

@media (max-width: 768px) {
    .oe-table thead {
        display: none;
    }

    .oe-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 10px;
    }

    .oe-table td {
        display: block;
        text-align: right;
        border: none;
        padding: 8px 10px;
    }

    .oe-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        color: #666;
    }

    .oe-table td[data-label="Cliente"] .oe-client-info {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
    }

    .oe-actions-col {
        text-align: right !important;
    }
}

/* Chat System Styles */
.oe-chat-container {
    display: flex;
    width: 100% !important;
    height: 100% !important;
    min-height: 600px;
    margin: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.oe-chat-sidebar {
    width: 320px;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.oe-chat-tabs {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.oe-chat-tab-btn {
    flex: 1;
    padding: 15px 10px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.oe-chat-tab-btn:hover {
    color: #0e9d7c;
}

.oe-chat-tab-btn.active {
    color: #0e9d7c;
    border-bottom-color: #0e9d7c;
    background: #f1faf8;
}

.oe-chat-tab-content {
    display: none;
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
}

.oe-chat-tab-content.active {
    display: block;
}

.oe-chat-search-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.oe-chat-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.oe-chat-loading {
    text-align: center;
    color: #888;
    padding: 20px 0;
}

/* User Items in Sidebar */
.oe-chat-user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.oe-chat-user-item:hover {
    background: #f1faf8;
    transform: translateY(-1px);
}

.oe-chat-user-info strong {
    display: block;
    color: #333;
    font-size: 15px;
}

.oe-chat-user-info span {
    font-size: 12px;
    color: #888;
}

.oe-chat-action-btn {
    background: #0e9d7c;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.oe-chat-action-btn.reject {
    background: #dc3545;
}

/* Main Chat Area */
.oe-chat-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    position: relative;
}

.oe-chat-window-content {
    display: none;
    flex-direction: column;
    height: 100%;
}

.oe-chat-window-content.active {
    display: flex;
}

/* =========================================
   CALENDAR DASHBOARD (V6 - LIGHT THEME)
========================================= */

.oe-agenda-layout {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
}

/* Sidebar */
.oe-agenda-sidebar {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
}

.oe-filter-btn {
    width: 100%;
    padding: 8px 12px;
    font-size: 10px;
    background: transparent;
    border: 1px solid #d66185;
    /* Pink border */
    border-radius: 4px;
    color: #d66185;
    font-weight: 500;
    text-align: center;
    /* Center-aligned like mockup */
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oe-filter-btn:hover {
    background: #fdf0f4;
}

.oe-filter-btn.oe-active {
    background: #fdf0f4;
    border-color: #d66185;
    color: #d66185;
    font-weight: 600;
}

.oe-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    padding: 4px 0;
}

.oe-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Header Buttons */
.oe-btn-grey {
    background: #cccccc;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: default;
}

.oe-btn-green {
    background: #0e9d7c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.oe-btn-green:hover {
    background: #0a8266;
}

/* Highlights */
.oe-highlight-card {
    min-width: 250px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-left: 4px solid #ff8c00;
}

.oe-highlight-title {
    font-weight: 700;
    font-size: 15px;
    color: #222;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oe-highlight-time {
    font-size: 12px;
    color: #888;
    margin: 0;
}

.oe-highlight-proc {
    font-size: 10px;
    text-transform: uppercase;
    color: #aaa;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Scrollbar para destaques */
#oe-calendar-highlights::-webkit-scrollbar {
    height: 6px;
}

#oe-calendar-highlights::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.oe-chat-placeholder {
    margin: auto;
    text-align: center;
    color: #999;
}

.oe-chat-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.oe-chat-header-info span {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.oe-chat-messages-area {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background: #eef2f5;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Message Bubbles */
.oe-chat-msg {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
}

.oe-chat-msg.received {
    align-self: flex-start;
    background: #fff;
    color: #333;
    border-bottom-left-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.oe-chat-msg.sent {
    align-self: flex-end;
    background: #0e9d7c;
    color: #fff;
    border-bottom-right-radius: 2px;
    box-shadow: 0 1px 2px rgba(14, 157, 124, 0.2);
}

.oe-chat-msg-time {
    display: block;
    font-size: 10px;
    opacity: 0.7;
    margin-top: 5px;
    text-align: right;
}

.oe-chat-input-area {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.oe-chat-input-area input {
    flex-grow: 1;
    margin: 0;
}

/* Responsive Chat */
@media (max-width: 768px) {
    .oe-chat-container {
        flex-direction: column;
        height: 100vh !important;
        height: 100dvh !important;
    }

    .oe-chat-sidebar {
        width: 100%;
        height: 40%;
        border-right: none;
        border-bottom: 2px solid #e0e0e0;
    }

    .oe-chat-main {
        height: 60%;
    }
}

/* =========================================
   GLOBAL RESPONSIVENESS (MOBILE/TABLET)
========================================= */

@media (max-width: 992px) {

    /* Main V6 Calendar Layout */
    .oe-agenda-layout {
        flex-direction: column !important;
    }

    .oe-agenda-sidebar {
        width: 100% !important;
        margin-bottom: 20px;
    }

    .oe-agenda-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    .oe-agenda-header>div:first-child {
        flex-direction: column;
        align-items: flex-start !important;
        width: 100%;
    }

    .oe-calendar-nav {
        width: 100%;
        justify-content: space-between;
    }

    .oe-agenda-actions {
        width: 100%;
        justify-content: space-between;
    }

    .oe-agenda-actions .oe-btn {
        flex: 1;
        padding: 8px 10px;
        font-size: 14px;
        text-align: center;
    }
}

@media (max-width: 768px) {

    /* Reports Dashboard - Responsive Table */
    .oe-dashboard-stats {
        flex-direction: column;
    }

    .oe-dashboard-list table,
    .oe-dashboard-list thead,
    .oe-dashboard-list tbody,
    .oe-dashboard-list th,
    .oe-dashboard-list td,
    .oe-dashboard-list tr,
    .oe-quick-emails-table,
    .oe-quick-emails-table thead,
    .oe-quick-emails-table tbody,
    .oe-quick-emails-table th,
    .oe-quick-emails-table td,
    .oe-quick-emails-table tr {
        display: block;
    }

    .oe-dashboard-list thead tr,
    .oe-quick-emails-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .oe-dashboard-list tr,
    .oe-quick-emails-table tr:not(.oe-email-form-row) {
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 10px;
        background: #fff;
    }

    .oe-dashboard-list td,
    .oe-quick-emails-table td:not([colspan="4"]) {
        border: none;
        position: relative;
        padding-left: 45% !important;
        text-align: right;
        min-height: 40px;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .oe-dashboard-list td:before,
    .oe-quick-emails-table td:not([colspan="4"]):before {
        position: absolute;
        top: 10px;
        left: 10px;
        width: 40%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        content: attr(data-label);
        text-align: left;
    }

    /* Ignore the form row in Quick Emails */
    .oe-email-form-row td {
        padding-left: 10px !important;
        text-align: left !important;
        display: block;
    }

    .oe-email-form-row td:before {
        display: none !important;
    }

    .oe-actions-col {
        justify-content: flex-end !important;
        gap: 5px;
    }

    /* Quick Emails */
    .oe-quick-emails-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }

    .oe-quick-email-actions {
        flex-direction: column;
        width: 100%;
    }

    .oe-toggle-email-btn {
        width: 100%;
    }

    .oe-quick-email-form {
        flex-direction: column;
    }

    .oe-quick-email-form select,
    .oe-quick-email-form textarea,
    .oe-quick-email-form button {
        width: 100%;
    }

    /* Chat Widget */
    .oe-chat-widget {
        right: 15px !important;
        bottom: 15px !important;
    }

    .oe-chat-window {
        width: calc(100vw - 30px) !important;
        height: 80vh !important;
        max-height: 80vh !important;
        right: 0 !important;
        bottom: 70px !important;
    }
}

@media (max-width: 500px) {

    /* Calendar Header Resizing */
    .oe-calendar-nav {
        padding: 5px;
    }

    #oe-cal-title {
        font-size: 14px;
        min-width: 110px !important;
        white-space: normal;
        line-height: 1.2;
    }

    .oe-agenda-actions {
        flex-wrap: wrap;
    }

    /* Form Wizard adjustments */
    .oe-step-actions {
        flex-direction: column;
        gap: 10px;
    }

    .oe-btn-secondary,
    .oe-btn-next,
    .oe-btn-primary {
        width: 100%;
        margin-bottom: 0px;
    }

    .oe-wizard-progress {
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        gap: 25px;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }

    .oe-step-indicator {
        flex: 0 0 auto;
    }

    /* Calendar Modals */
    .oe-modal-content {
        width: 95% !important;
        padding: 20px !important;
    }

    /* Input columns inside Modals */
    #oe-cal-add-form>div[style*="display:flex"],
    #oe-cal-edit-form>div[style*="display:flex"] {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* Schedule Settings adjustments */
    .oe-day-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .oe-day-times {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 10px;
    }

    .oe-time-input-group {
        width: 100%;
        justify-content: space-between;
    }

    .oe-time-input-group input[type="time"] {
        width: 65%;
    }

    /* Quick Emails adjustments */
    .oe-quick-email-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: unset;
    }

    /* Touch targets */
    .oe-checkbox-label {
        font-size: 14px;
        padding: 8px 0;
    }

    .oe-filter-btn {
        padding: 10px;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        /* To apply ellipsis correctly */
    }
}

/* =========================================================================
   KANBAN CRM STYLES (V10)
   ========================================================================= */
.oe-kanban-wrapper {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.oe-kanban-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.oe-kanban-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.oe-kanban-filters input,
.oe-kanban-filters select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-width: 200px;
}

.oe-kanban-board {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 20px;
    align-items: flex-start;
    min-height: 400px;
}

.oe-kanban-column {
    background: #f4f5f7;
    border-radius: 6px;
    width: 300px;
    min-width: 300px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
}

.oe-kanban-column-header {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e1e4e8;
}

.oe-kanban-column-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #172b4d;
}

.oe-kanban-count {
    background: #dfe1e6;
    color: #172b4d;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.oe-kanban-cards {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    min-height: 50px;
}

.oe-kanban-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(9, 30, 66, 0.25);
    padding: 12px;
    margin-bottom: 10px;
    cursor: grab;
    transition: background 0.2s, box-shadow 0.2s;
    position: relative;
    border-left: 4px solid #0052cc;
    display: block;
}

.oe-kanban-card:active {
    cursor: grabbing;
}

.oe-kanban-card:hover {
    background: #f4f5f7;
    box-shadow: 0 2px 5px rgba(9, 30, 66, 0.3);
}

.oe-kanban-card.sortable-ghost {
    opacity: 0.4;
    background: #e1e4e8;
}

.oe-kanban-card h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #172b4d;
    font-weight: bold;
}

.oe-kanban-card p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #5e6c84;
}

.oe-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.oe-card-val {
    font-weight: 600;
    color: #36b37e;
}

.oe-card-priority {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
}

.oe-priority-alta {
    background: #ff5630;
}

.oe-priority-media {
    background: #ffab00;
}

.oe-priority-baixa {
    background: #36b37e;
}

.oe-card-procedimento {
    background: #eae6ff;
    color: #403294;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 5px;
    display: inline-block;
}

@media (max-width: 768px) {
    .oe-kanban-filters {
        flex-direction: column;
        width: 100%;
    }

    .oe-kanban-filters input,
    .oe-kanban-filters select {
        max-width: 100%;
        width: 100%;
    }

    .oe-kanban-actions {
        width: 100%;
    }

    .oe-kanban-actions button {
        width: 100%;
    }

    .oe-kanban-board {
        min-height: 60vh;
    }
}

/* ==========================================================================
   DOCTOR EVALUATIONS (SHORTCODE)
   ========================================================================== */
.oe-avaliacoes-container {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
}

.oe-avaliacoes-header h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #2c3e50;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.oe-avaliacoes-summary {
    display: flex;
    gap: 30px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    align-items: center;
}

.oe-av-summary-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
    border-right: 1px solid #e2e8f0;
    padding-right: 30px;
}

.oe-av-big-grade {
    font-size: 48px;
    font-weight: 800;
    color: #0e9d7c;
    line-height: 1;
}

.oe-av-stars-display {
    font-size: 20px;
    margin: 10px 0 5px;
    letter-spacing: 2px;
}

.oe-star.oe-star-filled {
    color: #f59e0b;
}

.oe-star.oe-star-empty {
    color: #cbd5e1;
}

.oe-av-total-count {
    font-size: 13px;
    color: #64748b;
}

.oe-av-summary-bars {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oe-av-bar-row {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #475569;
}

.oe-av-bar-row span:first-child {
    min-width: 110px;
    font-weight: 500;
}

.oe-progress-bar {
    flex-grow: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin: 0 15px;
    overflow: hidden;
}

.oe-progress-fill {
    height: 100%;
    background: #0e9d7c;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.oe-av-bar-num {
    min-width: 30px;
    text-align: right;
    font-weight: 600;
}

.oe-avaliacoes-list {
    margin-bottom: 30px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.oe-review-item {
    border-bottom: 1px solid #f1f5f9;
    padding: 20px 0;
}

.oe-review-item:last-child {
    border-bottom: none;
}

.oe-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.oe-review-author-info {
    display: flex;
    flex-direction: column;
}

.oe-review-author {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
}

.oe-review-date {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.oe-review-stars {
    font-size: 16px;
}

.oe-review-media {
    font-size: 13px;
    color: #64748b;
    margin-left: 5px;
    font-weight: 600;
}

.oe-review-content {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
}

.oe-avaliacoes-form-wrapper {
    background: #fafafa;
    padding: 24px;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
}

.oe-avaliacoes-form-wrapper h4 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: #2c3e50;
}

.oe-avaliacao-criterios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.oe-criterio-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
}

.oe-star-rating {
    font-size: 24px;
    color: #cbd5e1;
    cursor: pointer;
    user-select: none;
}

.oe-rating-star {
    transition: color 0.1s;
    font-style: normal;
}

.oe-start-rating .oe-rating-star.oe-star-filled {
    color: #f59e0b;
}

.oe-rating-star.oe-star-hover {
    color: #fbbf24;
}

.oe-avaliacoes-login-notice {
    background: #f8fafc;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
}

.oe-avaliacoes-login-notice a {
    color: #0e9d7c;
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .oe-avaliacoes-summary {
        flex-direction: column;
        gap: 20px;
    }

    .oe-av-summary-main {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 20px;
        width: 100%;
    }

    .oe-review-header {
        flex-direction: column;
        gap: 8px;
    }
}

/* Success Action Buttons after booking */
.oe-booking-success-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.oe-btn-whatsapp-success {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #25d366 !important;
    color: white !important;
    text-decoration: none !important;
    padding: 12px !important;
    border-radius: 6px !important;
    font-weight: 600;
    flex: 1;
    transition: background 0.2s;
}

.oe-btn-whatsapp-success:hover {
    background-color: #128c7e !important;
}

.oe-btn-register-success {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #0e9d7c !important;
    color: white !important;
    text-decoration: none !important;
    padding: 12px !important;
    border-radius: 6px !important;
    font-weight: 600;
    flex: 1;
    transition: background 0.2s;
}

.oe-btn-register-success:hover {
    background-color: #0a7d63 !important;
}

@media (max-width: 480px) {
    .oe-booking-success-actions {
        flex-direction: column;
    }
}