.cvc-doctor-dashboard {
    font-family: inherit;
    direction: rtl;
}

.cvc-dashboard-today-date {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 15px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cvc-dashboard-today-date .eicon-calendar {
    color: var(--e-global-color-primary, #4054b2);
    font-size: 20px;
}

.cvc-dashboard-today-label {
    color: #666;
}

.cvc-dashboard-today-value {
    font-weight: 700;
}

.cvc-doctor-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.cvc-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cvc-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.total-appointments .cvc-stat-icon {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.total-revenue .cvc-stat-icon {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.daily-revenue .cvc-stat-icon {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.monthly-revenue .cvc-stat-icon {
    background: rgba(230, 126, 34, 0.1);
    color: #e67e22;
}

.cvc-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(var(--e-global-color-primary, 64, 84, 178), 0.1);
    color: var(--e-global-color-primary, #4054b2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-left: 15px;
}

.cvc-stat-content {
    flex: 1;
}

.cvc-stat-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.cvc-stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.cvc-stat-value .currency {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

/* Today's List */
.cvc-section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.cvc-today-list {
    background: #fff;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.cvc-today-list-header,
.cvc-today-list-item {
    min-width: 820px;
}

.cvc-today-list--with-doctor .cvc-today-list-header,
.cvc-today-list--with-doctor .cvc-today-list-item {
    grid-template-columns: 0.7fr 1.1fr 1.3fr 1.1fr 1.3fr 0.9fr 0.9fr 0.85fr;
    min-width: 960px;
}

.cvc-today-list-header {
    display: grid;
    grid-template-columns: 0.7fr 1.5fr 1.1fr 1.4fr 0.9fr 0.9fr 0.85fr;
    padding: 15px 20px;
    background: #f8f9fa;
    font-weight: bold;
    color: #555;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.cvc-today-list-item {
    display: grid;
    grid-template-columns: 0.7fr 1.5fr 1.1fr 1.4fr 0.9fr 0.9fr 0.85fr;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    font-size: 14px;
    color: #333;
    transition: background-color 0.1s;
}

.cvc-today-list-item:last-child {
    border-bottom: none;
}

.cvc-today-list-item:hover {
    background-color: #fcfcfc;
}

.cvc-list-amount .currency {
    font-size: 11px;
    color: #999;
}

.cvc-today-loading {
    padding: 24px 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.cvc-today-list-body .cvc-alert {
    margin: 16px 20px;
}

.cvc-btn-view {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
    color: #555;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.cvc-btn-view:hover {
    background: #f8f9fa;
    border-color: #bbb;
    color: #333;
}

.cvc-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.cvc-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.cvc-pagination .page-numbers.current,
.cvc-pagination .page-numbers:hover {
    background: var(--e-global-color-primary, #4054b2);
    border-color: var(--e-global-color-primary, #4054b2);
    color: #fff;
}

.cvc-pagination .page-numbers.dots {
    border: none;
    min-width: auto;
    cursor: default;
    background: transparent;
    color: #999;
}

.cvc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    padding: 20px;
}

.cvc-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cvc-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(12px);
    transition: transform 0.2s ease;
}

.cvc-modal-overlay.active .cvc-modal-content {
    transform: translateY(0);
}

.cvc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--e-global-color-primary, #4054b2);
    color: #fff;
}

.cvc-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.cvc-modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.cvc-modal-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cvc-modal-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    font-size: 14px;
    align-items: start;
}

.cvc-modal-row label {
    color: #666;
    font-weight: 600;
}

.cvc-modal-row.full-width {
    grid-template-columns: 1fr;
}

.cvc-modal-row.full-width label {
    display: block;
    margin-bottom: 6px;
}

.cvc-modal-desc {
    margin: 0;
    color: #444;
    line-height: 1.6;
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 8px;
}

.cvc-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.cvc-btn-close {
    background: #f0f0f0;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
}

.cvc-btn-close:hover {
    background: #e4e4e4;
}

.cvc-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.cvc-badge-success { background: #e6f8ef; color: #1e7e34; }
.cvc-badge-warning { background: #fff3cd; color: #856404; }
.cvc-badge-danger { background: #f8d7da; color: #721c24; }
.cvc-badge-secondary { background: #e2e3e5; color: #383d41; }

.cvc-alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}
.cvc-alert-warning { background: #fff3cd; color: #856404; }
.cvc-alert-info { background: #cce5ff; color: #004085; }

@media (max-width: 768px) {
    .cvc-dashboard-today-date {
        padding: 12px 14px;
        margin-bottom: 16px;
        font-size: 14px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .cvc-dashboard-today-date .eicon-calendar {
        font-size: 18px;
    }

    .cvc-doctor-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 24px;
    }

    .cvc-stat-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px 12px;
        gap: 8px;
    }

    .cvc-stat-card:hover {
        transform: none;
    }

    .cvc-stat-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
        margin-left: 0;
        flex-shrink: 0;
    }

    .cvc-stat-title {
        font-size: 12px;
        margin-bottom: 2px;
        line-height: 1.45;
    }

    .cvc-stat-value {
        font-size: 17px;
        line-height: 1.35;
        word-break: break-word;
    }

    .cvc-stat-value .currency {
        display: block;
        font-size: 11px;
        margin-top: 2px;
    }

    .cvc-section-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .cvc-today-list {
        overflow-x: visible;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .cvc-today-list-header {
        display: none;
    }

    .cvc-today-list-header,
    .cvc-today-list-item,
    .cvc-today-list--with-doctor .cvc-today-list-header,
    .cvc-today-list--with-doctor .cvc-today-list-item {
        min-width: 0;
    }

    .cvc-today-list-body {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .cvc-today-list-item {
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 0;
        border: none;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        overflow: hidden;
    }

    .cvc-today-list-item:hover {
        background-color: #fff;
    }

    .cvc-list-time {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        font-weight: 700;
        font-size: 15px;
        color: #fff;
        background: var(--e-global-color-primary, #4054b2);
        padding: 12px 16px;
    }

    .cvc-list-time::before {
        content: 'زمان';
        font-weight: 600;
        font-size: 13px;
        opacity: 0.9;
    }

    .cvc-today-list-item > div:not(.cvc-list-time):not(.cvc-list-actions) {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 10px 16px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 13px;
    }

    .cvc-today-list-item > div:not(.cvc-list-time):not(.cvc-list-actions)::before {
        color: #888;
        font-size: 12px;
        font-weight: 600;
        flex-shrink: 0;
    }

    .cvc-list-doctor::before { content: 'پزشک'; }
    .cvc-list-patient::before { content: 'بیمار'; }
    .cvc-list-phone::before { content: 'شماره موبایل'; }
    .cvc-list-service::before { content: 'نوع خدمت'; }
    .cvc-list-amount::before { content: 'مبلغ'; }
    .cvc-list-status::before { content: 'وضعیت'; }

    .cvc-list-patient,
    .cvc-list-doctor,
    .cvc-list-service,
    .cvc-list-phone {
        text-align: left;
        word-break: break-word;
    }

    .cvc-list-actions {
        padding: 12px 16px;
        display: flex;
        justify-content: stretch;
        border-bottom: none;
    }

    .cvc-btn-view {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
        font-size: 13px;
    }

    .cvc-today-loading,
    .cvc-today-list-body > .cvc-alert {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    }

    .cvc-today-list-body > .cvc-alert {
        margin: 0;
    }

    .cvc-pagination {
        margin-top: 14px;
        gap: 5px;
    }

    .cvc-pagination .page-numbers {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 13px;
    }

    .cvc-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .cvc-modal-content {
        max-width: 100%;
        max-height: 88vh;
        border-radius: 16px 16px 0 0;
    }

    .cvc-modal-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .cvc-modal-row label {
        margin-bottom: 2px;
    }
}

@media (max-width: 400px) {
    .cvc-doctor-stats-grid {
        grid-template-columns: 1fr;
    }

    .cvc-stat-card {
        flex-direction: row;
        align-items: center;
        text-align: right;
        padding: 14px 16px;
    }

    .cvc-stat-icon {
        margin-left: 12px;
    }

    .cvc-stat-value .currency {
        display: inline;
        margin-top: 0;
        margin-right: 4px;
    }
}
