/* Wrapper اصلی پنل پرو */
.idpr-panel-pro-wrapper {
    position: relative;
    padding: 10px;
    background-color: #e6f3ff !important; /* آبی روشن */
    border-radius: 10px;
}

/* دکمه خروج بالا راست */
.idpr-logout-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background-color: #e63946;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    transition: background-color .3s ease;
}
.idpr-logout-btn:hover { background-color: #c71f2d; }

/* نوار لینک‌های سریع تاریخ (امروز/هفته/ماه/سال) */
.date { text-align: center; margin: 10px 0; }
.date span { background:#cce6ff; margin:3px; padding:6px 12px; border-radius:6px; display:inline-block; }
.date a { text-decoration:none; color:#333; }

/* فرم جستجو و فیلترها به سبک پرو (نسخه قدیمی – برای سازگاری) */
#dp-doctor-patients-wrapper .dp-flex-container { display:flex; flex-wrap:wrap; text-align:center; margin-bottom:10px; gap:10px; }
#dp-doctor-patients-wrapper .dp-flex-item-25 { flex: 1 1 22%; min-width: 180px; padding:5px; }
#dp-doctor-patients-wrapper input[type="text"] { width:100%; padding:6px 8px; border:1px solid #bbb; border-radius:6px; }

/* جدول جزئیات (نسخه عمومی) */
#dp-details { width:100%; border-collapse: collapse; }
#dp-details th, #dp-details td { border: 1px solid #bbb; padding: 8px; text-align: center; }
#dp-details th { background-color: #cce6ff; }
#dp-details tr:nth-child(even) { background-color: #e6f3ff; }
#dp-details tr:hover { background-color: #b3e0ff; }

/* فقط جدول شورتکد پنل پرو با کلاس اختصاصی */
table.idpr-panel-pro-table {
    background-color: #e6f3ff !important;
    border-radius: 8px;
}
table.idpr-panel-pro-table th, table.idpr-panel-pro-table td {
    border: 1px solid #bbb;
    padding: 12px;
    text-align: center;
}
table.idpr-panel-pro-table th { background-color: #cce6ff; }
table.idpr-panel-pro-table tr:nth-child(even) { background-color: #e6f3ff; }
table.idpr-panel-pro-table tr:hover { background-color: #b3e0ff; }

/* لینک‌ها */
#dp-doctor-patients-wrapper a { color:#0073aa; text-decoration:none; }
#dp-doctor-patients-wrapper a:hover { text-decoration:underline; }

/* بهبود ریسپانسیو */
@media (max-width: 768px) {
    #dp-doctor-patients-wrapper .dp-flex-item-25 { flex: 1 1 100%; }
}

.img-responsive {
    height: auto !important;
    max-height: 300px;
    object-fit: cover;
}

/* ===========================
   فرم جستجوی جدید پنل پرو
   (استفاده شده در idpr_pro_list_patients)
   =========================== */

.idpr-search-box {
    margin: 10px 0 15px;
}

.idpr-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.idpr-search-row input[type="text"] {
    flex: 1 1 0;
    min-width: 140px;
    padding: 7px 10px;
    border-radius: 6px;
    border: 1px solid #bbb;
    font-size: 14px;
    background: #fff;
}

.idpr-btn-search {
    padding: 7px 16px;
    border-radius: 6px;
    border: none;
    background: #0073aa;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.idpr-btn-search:hover {
    background: #005c88;
}

/* موبایل */
@media (max-width: 600px) {
    .idpr-search-row {
        flex-direction: column;
    }

    .idpr-btn-search {
        width: 100%;
        text-align: center;
    }
}
/* مخفی‌سازی نام، شروع، پایان و دکمه جستجو در همه دستگاه‌ها */
.idpr-search-box input[name="s_start_data"],
.idpr-search-box input[name="s_end_data"],
.idpr-search-box .idpr-btn-search {
    display: none !important;
}
@media (max-width: 600px) {
    .idpr-mobile-card {
        padding: 6px !important;       /* فاصله داخل کارت کمتر */
        margin-bottom: 1px !important; /* فاصله بین کارت‌ها کمتر */
    }
}
