﻿
.table td,
.table th {
    white-space: nowrap; /* همه ستون‌ها تک‌خطی */
}

    /* فقط ستون توضیحات چندخطی باشه */
    .table td.description-col {
        line-height: 20px !important; /* فاصله بین خطوط */
        white-space: normal; /* اجازه بده متن بشکنه */
        word-wrap: break-word; /* کلمات طولانی بشکنند */
        /*max-width: 300px;*/ /* حد مجاز عرض ستون */
        min-width: 300px; 
    }






.custom-small-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
}

    .custom-small-checkbox:checked::before {
        content: "✔";
        font-size: 10px;
        color: #007bff;
        position: absolute;
        top: -1px;
        left: 1px;
    }

.breadcrumb a {
    color: var(--bs-primary) !important; /* استفاده از رنگ primary */
    text-decoration: none; /* حذف خط زیر لینک */
    
}

    .breadcrumb a:hover {
        text-decoration: underline; /* در هاور خط زیر آن بیاید */
    }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background-color: transparent;
    border-radius: 0.25rem;
    direction: ltr; /* همیشه از چپ به راست */
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

    .breadcrumb-item + .breadcrumb-item::before {
        content: "/";
        padding: 0 8px;
         font-weight: bold;
    }

    .breadcrumb-item span,
    .breadcrumb-item a {
        direction: rtl; /* متن‌های فارسی را راست‌چین کند */
        text-align: right;
        display: inline-block;
    }





.dropdown-scrollable {
    max-height: 400px; /* ارتفاع ثابت */
    overflow-y: auto; /* فعال کردن اسکرول */
    overflow-x: hidden;
}

.readonly-container {
    pointer-events: none; /* جلوگیری از کلیک، تایپ، و تغییر مقدار */
    opacity: 0.7; /* ظاهر خاکستری برای نمایش حالت غیرفعال */
}


.custom-dropdown {
    width: 100% !important; /* لیست به اندازه input شود */
    position: absolute;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

 
/* تنظیمات پیش‌فرض برای نمایش صفحه */
@media screen {
    .only-print {
        display: none; /* این عناصر فقط در چاپ نمایش داده می‌شوند */
    }
}

/* تنظیمات برای چاپ */
@media print {
    .no-print {
        display: none !important; /* این عناصر فقط در ویو دیده می‌شوند و در چاپ حذف می‌شوند */
    }

    .only-print {
        display: block !important; /* این عناصر فقط در چاپ نمایش داده می‌شوند */
    }

    body {
        font-size: 12pt !important;
        background: white !important;
        color: black !important;
    }

    /* تنظیم صفحه پرینت به A4 */
    /*   @page {
        size: A4;
        margin: 20mm;
    }*/

    /* اطمینان از اینکه جداول و متن در پرینت دیده می‌شوند */
    table {
        border-collapse: collapse !important;
        width: 100% !important;
    }

    th, td {
        padding: 8px !important;
    }
}

 
    /* اعمال فونت وزیر برای متن‌هایی که زبان آنها فارسی است */
    [lang="fa"] {
    font-family: 'Vazir', sans-serif;
}


.scrollable-column {
    max-height: 90vh;
    overflow-y: auto;
}
/* Custom scrollbar styles */
::-webkit-scrollbar {
    width: 12px; /* width of the entire scrollbar */
}



::-webkit-scrollbar-track {
    background: gray;
    -moz-border-radius: 50px;
    -webkit-border-radius: 50px;
    border-radius: 50px; /* color of the tracking area */
}



::-webkit-scrollbar-corner {
    -moz-border-radius: 50px;
    -webkit-border-radius: 50px;
    border-radius: 50px;
}

::-webkit-scrollbar-thumb {
    -moz-border-radius: 50px;
    -webkit-border-radius: 50px;
    border-radius: 50px;
    background: #3c3c3c; /* color of the scroll thumb */
}

    ::-webkit-scrollbar-thumb:hover {
        width: 25px;
        background: linear-gradient(to top, Violet, SlateBlue); /* color of the scroll thumb on hover */
    }

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background-color: #ffcccc;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease-in-out;
}

.toast-content {
    color: #a94442;
    font-size: 16px;
}

.loader {
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
    position: unset
}
.star-rating {
    display: inline-block;
    direction: rtl;
    cursor: pointer; /* برای راست به چپ */
}

.star {
    font-size: 2em;
    cursor: pointer;
    color: gold;
}

    .star:hover,
    .star:hover ~ .star {
        color: darkorange;
        cursor: pointer; /* تغییر رنک ستاره‌ها هنکام هاور */
    }


  