.medrix-credit{
    margin-top:70px;
    padding:18px 20px;
    border-top:1px solid #e5e5e5;
    display:flex;
    align-items:center;
    gap:14px;
    font-size:14px;
    color:#666;
}

.medrix-credit img{
    width:42px;
    height:42px;
    border-radius:10px;
    flex-shrink:0;
}

.medrix-credit strong{
    display:block;
    color:#222;
    margin-bottom:4px;
    font-size:15px;
}

.medrix-credit a{
    color:#0073aa;
    text-decoration:none;
    font-weight:bold;
}

.medrix-credit a:hover{
    text-decoration:underline;
}

/*صفحه لاگین*/
.medrix-login-box{
    width:70%;
    max-width:500px;
    margin:50px auto;
    padding:30px;
    background:#f8f9fa;
    border:1px solid #e5e5e5;
    border-radius:12px;
    direction:rtl;
}


.medrix-login-box input{
    width:100%;
    box-sizing:border-box;
    padding:12px;
    margin-bottom:15px;
    border:1px solid #ddd;
    border-radius:8px;
    font-family:inherit;
}


.medrix-login-box button{

    width:100%;
    padding:12px;

    background:#1E564D;
    color:#EFD3A9;

    border:none;
    border-radius:8px;

    font-size:15px;
    font-weight:bold;

    cursor:pointer;

}


.medrix-login-box button:hover{

background:#08312B;
color:#EFD3A9;
}

/*/////////////////////////////////////////*/
/* Leads Summary */

.medrix-leads-summary{
    background:#f8f9fa;
    border:1px solid #e5e5e5;
    border-radius:12px;
    padding:20px 25px;
    margin-bottom:25px;
    direction:rtl;
    font-family:iransans;
    line-height:2;
}

.medrix-leads-summary p{
    margin:5px 0;
    font-size:15px;
}


/* Table Wrapper */

.medrix-leads-table-wrap{
    overflow-x:auto;
    margin-top:0px;
    direction:rtl;
}


/* Main Table */

.medrix-leads-table{

    width:max-content;
    min-width:1100px;

    border-collapse:collapse;

    background:#fff;

    font-family:iransans;

    direction:rtl;

    table-layout:auto;

}


/* Cells */

.medrix-leads-table th,
.medrix-leads-table td{

    border:1px solid #e5e5e5;

    padding:14px 18px;

    text-align:center;

    vertical-align:middle;

    line-height:1.9;

    font-size:15px;
    color:#222;
    font-weight:400;
    font-family:"yekan bakh", sans-serif;

}

/* Header */

.medrix-leads-table th{

    background:#1E564D;

    color:#EFD3A9;

    white-space:nowrap;

    font-weight:bold;

}


/* Rows */

.medrix-leads-table tbody tr:nth-child(even){

    background:#fafafa;

}


.medrix-leads-table tbody tr:hover{

    background:#f3f7ff;

}



/* Row Number */

.medrix-leads-table td:first-child,
.medrix-leads-table th:first-child{

    width:75px;

    white-space:nowrap;

}



/* Phone */

.medrix-leads-table a[href^="tel:"]{

    color:#0073aa;

    font-weight:bold;

    text-decoration:none;

}


.medrix-leads-table a[href^="tel:"]:hover{

    color:#005177;

}


/* URL */

.medrix-leads-table a[target="_blank"]{

    color:#555;

    font-size:13px;

}



/* Status Select */

.medrix-leads-table select{

    min-width:150px;

    padding:8px 10px;

    border-radius:6px;

    border:1px solid #ddd;

    background:#fff;

}



/* Secretary Note */

.medrix-leads-table textarea{

    width:250px;

    min-height:70px;

    resize:vertical;

    padding:10px;

    border-radius:8px;

    border:1px solid #ddd;

    font-family:inherit;

}



/* Save Button */

.medrix-leads-form .button-primary{

    padding:10px 25px;

    border-radius:8px;

    font-size:15px;
    background:#1E564D !important;
    color:#fff;
}
/*save button*/
.medrix-save-button button{
    background:#1E564D !important;
    color:#fff;
}
.medrix-save-button:hover{
    color:#EFD3A9;
}
.medrix-save-button{
    background:#1E564D;
    color:#EFD3A9;
    border:none;
    padding:10px 25px;
    border-radius:8px;
    cursor:pointer;
    font-size:15px;
    font-weight:bold;
}


.medrix-save-button:hover{
background:#08312B;
color:#EFD3A9;}


/*تعیین عرضها*/
/* عرض ستون‌ها */

.medrix-leads-table th:nth-child(1),
.medrix-leads-table td:nth-child(1){
    width:60px;
    white-space:nowrap;
}


/* وضعیت پیگیری */
.medrix-leads-table th:nth-child(2),
.medrix-leads-table td:nth-child(2){
    width:170px !important;
    min-width:220px;
    max-width:220px;
    white-space:nowrap;
}


/* نام */
.medrix-leads-table th:nth-child(3),
.medrix-leads-table td:nth-child(3){
    width:160px !important;
    min-width:160px;
    max-width:160px;
    white-space:nowrap;
}


/* شماره تماس */
.medrix-leads-table th:nth-child(4),
.medrix-leads-table td:nth-child(4){
    width:150px !important;
    min-width:150px;
    max-width:150px;
    white-space:nowrap;
}


/* بقیه ستون‌ها */
.medrix-leads-table th:nth-child(n+5),
.medrix-leads-table td:nth-child(n+5){
    width:200px;
    min-width:200px;
}
.medrix-leads-table td{
    word-wrap:break-word;
    overflow-wrap:break-word;
}


/*استایل شماره صفحه ها*/
.medrix-leads-pagination{

    margin:25px 0;
    display:flex;
    justify-content:center;
    gap:8px;
    flex-wrap: wrap;

}


.medrix-leads-pagination a,
.medrix-leads-pagination span{

    padding:8px 14px;
    border:1px solid #ddd;
    border-radius:6px;
    background:#fff;
    color:#333;
    text-decoration:none;

}


.medrix-leads-pagination .current{

    background:#1E564D;
    color:#EFD3A9;
    border-color:#1E564D;

}



/* =========================================================
   Leads Filters
   ========================================================= */

/* فرم فیلترها */
.medrix-leads-filter-form{
    width:70%;
    margin:20px 0;
    padding:20px;
    background:#f8f9fa;
    border:1px solid #e5e5e5;
    border-radius:12px;
    direction:rtl;
    box-sizing:border-box;
    font-family:iransans;
}


/* تمام Input های فیلتر */
.medrix-leads-filter-form input[type="text"],
.medrix-leads-filter-form input[type="date"]{
    box-sizing:border-box;
    height:42px;
    padding:9px 12px;
    border:1px solid #ddd;
    border-radius:8px;
    background:#fff;
    font-family:inherit;
    font-size:14px;
    outline:none;
}


/* Focus */
.medrix-leads-filter-form input[type="text"]:focus,
.medrix-leads-filter-form input[type="date"]:focus{
    border-color:#1E564D;
    box-shadow:0 0 0 2px rgba(30,86,77,.08);
}


/* =========================================================
   Search
   ========================================================= */

.medrix-leads-search-row{
    display:flex;
    align-items:center;
    gap:8px;
    width:100%;
    margin-bottom:15px;
}


.medrix-leads-search-row input[type="text"]{
    flex:1;
    min-width:0;
    width:auto;
    height:42px;
    box-sizing:border-box;
    border-radius:12px !important;
    padding:16px !important;
}


.medrix-leads-search-row .button{
height:42px;
padding:0 22px;
border:1px solid #1E564D;
border-radius:8px;
background:#1E564D !important;
color:#fff !important;
font-family:inherit;
font-size:14px;
font-weight:bold;
cursor:pointer;
white-space:nowrap;
text-decoration:none;
transition:all .2s ease;
}

.medrix-leads-search-row .button:hover{
background:#08312B !important;
color:#EFD3A9 !important;
border-color:#08312B !important;
text-decoration:none !important;
}


/* =========================================================
   Date Filter
   ========================================================= */

.medrix-leads-date-row{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
}


.medrix-leads-date-row label{
    font-size:14px;
    color:#444;
    white-space:nowrap;
}


.medrix-leads-date-row input[type="date"]{
    width:180px;
    height:42px;
    box-sizing:border-box;
    border-radius:12px !important;
    padding:16px !important;
}


.medrix-leads-date-row .button{
height:42px;
padding:0 22px;
border:1px solid #1E564D;
border-radius:8px;
background:#1E564D !important;
color:#fff !important;
font-family:inherit;
font-size:14px;
font-weight:bold;
cursor:pointer;
white-space:nowrap;
text-decoration:none;
transition:all .2s ease;
}

.medrix-leads-date-row .button:hover{
background:#08312B !important;
color:#EFD3A9 !important;
border-color:#08312B !important;
text-decoration:none !important;
}


/* =========================================================
   Save + Export Buttons
   ========================================================= */

.medrix-leads-actions{
display:flex;
align-items:center;
justify-content:flex-start;
gap:10px;
margin-top:15px;
direction:ltr;
}


.medrix-leads-actions .medrix-save-button,
.medrix-leads-actions .medrix-export-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:42px;
    padding:0 22px;
    border:1px solid #1E564D;
    border-radius:8px;
    font-family:inherit;
    font-size:14px;
    font-weight:bold;
    cursor:pointer;
    text-decoration:none;
    box-sizing:border-box;
}


.medrix-leads-actions .medrix-save-button{
    background:#1E564D !important;
    color:#fff !important;
}


.medrix-leads-actions .medrix-export-button{
display:inline-flex;
align-items:center;
justify-content:center;

height:42px;
padding:0 22px;

border:1px solid #1E564D !important;
border-radius:8px !important;

background:#fff !important;
color:#1E564D !important;

font-family:inherit;
font-size:14px;
font-weight:bold;

cursor:pointer;
box-sizing:border-box;

text-decoration:none !important;

transition:all .2s ease;
}


.medrix-leads-actions .medrix-save-button:hover,
.medrix-leads-actions .medrix-export-button:hover{
background:#08312B !important;
color:#EFD3A9 !important;
border-color:#08312B !important;
text-decoration:none !important;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width:768px){

    /* Filter box */
    .medrix-leads-filter-form{
        width:100%;
        padding:15px;
    }


    /* Search */
    .medrix-leads-search-row{
        flex-direction:row;
    }


    .medrix-leads-search-row input[type="text"]{
        width:100%;
        border-radius:12px !important;
        padding:12px !important;
    }
    



    .medrix-leads-search-row .button{
        padding:0 16px;
    }


    /* Date filters */
.medrix-leads-date-row{
    display:flex;
    flex-direction:row;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
}

.medrix-leads-date-row label{
    width:40px;
    flex-shrink:0;
    margin:0;
    white-space:nowrap;
}

.medrix-leads-date-row input[type="date"]{
    flex:1;
    width:auto;
    min-width:0;
}

.medrix-leads-date-row .button{
    width:100%;
    margin-top:2px;
}

    /* Save + Export */
.medrix-leads-actions{
    display:flex;
    flex-direction:row;
    align-items:stretch;
    justify-content:flex-start;
    gap:8px;
    direction:ltr;
    margin-top:32px;
        margin-bottom:-24px;
}

.medrix-leads-actions .medrix-save-button,
.medrix-leads-actions .medrix-export-button{
    flex:1;
    width:auto !important;
    min-width:0;
    box-sizing:border-box;
    margin:0 0 32px 0 !important;
    height:42px;

}
    .medrix-login-box{

        width:90%;
        padding:20px;

    }
}