﻿.Border {
    border-color: var( --confirm);
}
:root {
    --confirm: rgb(18, 103, 130);
    --cancell: rgb(248, 166, 34);
}
@font-face {
    font-family: 'iran-sa';
    src: url('../fonts/n1/iran.ttf') format('truetype');
}

* {
    font-family: 'iran-sa' !important;
}

body {
    font-family: 'iran-sa';
    font-size: 12px;
}

[type="number"], [type="tel"] {
    direction: rtl;
}


h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}



.login-background {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    background-color: white;
    padding: 2rem 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 380px;
    text-align: center;
    transition: transform 0.3s ease;
}

    .login-container:hover {
        transform: translateY(-5px);
    }

.login-logo img {
    width: 80px;
    margin-bottom: 1rem;
}

.login-body {
    margin-top: 1rem;
}



/*
.mud-table-toolbar {
    direction: ltr;
}

.mud-table-toolbar-btn {
    direction: rtl;
}


.Search-Placeholder {
    direction: rtl;
}

*/





.user-badge {
    /* display: flex; */
    align-items: center;
    margin-right: 15px;
    display: inline-flex;
    padding: 4px 8px;
}


    .user-badge p {
        color: #fff !important;
    }

.user-name {
    font-weight: 500;
    color: #111827;
}









.custom-appbar {
    height: 30px; /* ارتفاع دلخواه */
    padding: 0 8px; /* کم کردن padding */
}

    .custom-appbar .mud-button-root,
    .custom-appbar .mud-text-root {
        margin: 0;
        padding: 0;
        line-height: 1;
    }










.icon-size .mud-nav-item .mud-icon-root {
    fill: #6A9C89 !important;
}

.custom-appbar p {
    color: #16423C !important;
}

.mud-icon-root.mud-svg-icon {
    fill: #16423C;
}

.mud-button-label {
    color: #fff !important;
}

.mud-button-outlined.mud-button-outlined-success {
    border: 1px solid #16423C;
}


.mud-button-outlined {
    border: 1px solid #16423C;
}





.mud-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    flex: 0 1 auto;
    align-items: center;
    list-style-type: none;
    margin: 0;
    padding: 0 !important;
    padding-right: 10px !important;
    padding-bottom: 10px !important;
}




.MudCarouselItem-Margin {
    height: 100px !important;
    /*width:0;*/
}


.mud-application-layout-rtl .mud-flip-x-rtl {
    /*transform: scaleX(1) !important;*/
}


.mud-progress-linear-bar {
    background-color: #6A9C89 !important;
}





/*Start MudDataGrid-Page*/


.MudDataGrid-Page .mud-table-head .mud-table-cell {
    /*background-color: #D0D9E1 !important;*/
    background-color: #f7b843d4 !important;
    color: white;
}


.MudDataGrid-Page .selected > td {
    background-color: #e8eaf6;
    transition: background-color 0.3s ease;
}

    .MudDataGrid-Page .selected > td .mud-input {
        background-color: transparent;
    }

/*.MudDataGrid-Page .cursor-pointer:hover {
    background-color: #e8eaf6;
    transition: background-color 0.3s ease;
}*/

.MudDataGrid-Page .mud-table-root tbody .cursor-pointer:hover {
    background-color: #e8eaf6;
    transition: background-color 0.3s ease;
}


.MudDataGrid-Page .mud-tab-badge {
    margin-left: 8px;
    margin-inline-start: 25px;
    margin-inline-end: unset;
}



.Header-Col-Lab .column-header {
    justify-content: center !important;
}

.Cell-Col-Lab {
    width: 1% !important;
    white-space: nowrap !important;
}

/*End MudDataGrid-Page*/


/* Start Upser Dialog */
.mud-dialog-title {
    background-color: #f7b843d4;
    color: white;
}


.MudDialog .TitleContent-Helper-Title .mud-chip-content {
    font-size: var(--mud-typography-h6-size);
    font-family: var(--mud-typography-h6-family);
    font-weight: var(--mud-typography-h6-weight);
    line-height: var(--mud-typography-h6-lineheight);
    letter-spacing: var(--mud-typography-h6-letterspacing);
    text-transform: var(--mud-typography-h6-text-transform);
    color: white;
}


.MudDialog .mud-dialog .mud-dialog-actions {
    flex: 0 0 auto;
    display: flex;
    padding: 8px;
    border-bottom-left-radius: var(--mud-default-borderradius);
    border-bottom-right-radius: var(--mud-default-borderradius);
    justify-content: flex-end;
    padding-left: 15px;
    position: absolute;
    bottom: 0;
    left: 0;
}


.MudDialog .mud-dialog-actions {
    padding-bottom: 30px !important;
}





.MudDialog .genereate-code-field {
    padding: 12px;
}

.MudDialog {
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    max-height: 100% !important;
}




    .MudDialog .DialogActions-Submit-Button {
        padding-left: 30px !important;
    }

    .MudDialog .mud-grid {
        width: 100%;
        display: flex;
        box-sizing: border-box;
        flex-direction: row;
    }

    .MudDialog .mud-tabs-panels {
        display: flex;
        justify-content: space-evenly;
        flex-wrap: wrap;
    }

.MudDialog {
    width: 50% !important;
}



@media (max-width: 700px) {
    .MudDialog {
        width: 100% !important;
    }
}


@media (max-width: 600px) {
    .MudDialog {
        width: 100% !important;
    }
}





.dialog-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}



.DialogUpsert-Action-Btn {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}


    .DialogUpsert-Action-Btn .mud-button-label {
        color: white !important;
    }


.DialogUpsert-Action-Btn-Submit,
.DialogUpsert-Action-Btn-Cancel {
    display: flex;
    width: 100px;
    font-size: 13px;
    /*font-weight: bold;*/
    border-radius: 8px;
    padding: 9px 20px;
    transition: all 0.3s ease;
    color: white !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}



.PyFish-Btn-Search {
    background-color: #6A9C89 !important;
}

    .PyFish-Btn-Search .mud-button-label {
        color: white !important;
    }



    .PyFish-Btn-Search:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
        background-color: #16423C !important;
    }



.DialogUpsert-Action-Btn-Submit {
    background-color: rgb(18 103 130) !important;
}

    .DialogUpsert-Action-Btn-Submit:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
        color: white !important;
    }


.DialogUpsert-Action-Btn-Cancel {
    background-color: rgb(248 166 34) !important;
    color: white !important;
}



    .DialogUpsert-Action-Btn-Cancel:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
        color: white !important;
    }


.MudDialog .ReferAccsesMode {
    display: flex;
    flex-direction: row;
}


.MudDialog .ReferAccsesMode-ch1 {
    display: flex;
    flex-direction: row-reverse;
}

.MudDialog .ReferAccsesMode-ch2 {
    display: flex;
    flex-direction: row;
}

/* End Upser Dialog*/




.Btn-Ok {
    width: 100% !important;
    background-color: rgb(18 103 130) !important;
}



    .Btn-Ok .mud-button-label {
        color: white !important;
    }

    .Btn-Ok:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
        /*background-color: #16423C !important;*/
        color: white !important;
    }





.My-Input-Blz {
    border: 1px solid #ccc;
    border-radius: 1px;
    padding: 4px;
    /*width: 100%;*/
    /*max-width: 100%;*/
    height: 35px;
}



    /* Chrome, Edge, Safari */
    .My-Input-Blz::-webkit-outer-spin-button,
    .My-Input-Blz::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    /* Firefox */
    .My-Input-Blz[type=number] {
        -moz-appearance: textfield;
    }




.custom-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 13px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .custom-input:focus {
        border-color: #1E88E5;
        outline: none;
        box-shadow: 0 0 5px rgba(30, 136, 229, 0.3);
    }

.input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
}

.input-label {
    display: block;
    /*font-size: 12px;*/
    /*margin-bottom: 2px;*/
    color: #555;
}


.input-wrapper-with-icon {
    position: relative; 
    display: flex; 
    flex-direction: column; 
    align-items: flex-end; 
    width: 100%; 
}

.detail-section {
    margin-top: 0;
}



.tooltip-container {
    display: inline-block;
    position: relative;
    margin: 10px;
    margin-top: 0;
    direction: ltr;
}

.custom-button {
    padding: 2px 8px;
    border: 1px solid rgb(18 103 130);
    background-color: white;
    color: rgb(18 103 130);
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}


    .custom-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.tooltip-text {
    visibility: hidden;
    width: max-content;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 4px 8px;
    border-radius: 4px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* بالای دکمه */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
}

.Grid-icon-delete-button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

    .Grid-icon-delete-button:hover {
        color: #000;
    }

.Grid-icon-delete-button-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid #ccc;
}







.InputTextSelector-wrapper {
    position: relative;
    display: inline-block;
    /*width: 100%;*/
}

.InputTextSelector-input {
    /*width: 100%;*/
    padding-right: 2.5rem; /* فضای سمت راست برای دکمه */
}

.InputTextSelector-button {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    background: #4CAF50;
    border: none;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .InputTextSelector-button:hover {
        background: #43A047;
    }



.document-info-card {
    background: #e8f5e9;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
}

    .document-info-card .mud-typography {
        /* font-family: 'Vazir', 'Roboto', sans-serif !important; */
        color: #2e7d32;
    }



@media (min-width: 768px) {

    .no-bootstrap-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
    }

    .regard-col {
        flex: 0 0 230px !important;
        width: 230px !important;
        max-width: 230px !important;
    }

    .regard-tree-col {
        flex: 0 0 330px !important;
        width: 330px !important;
        max-width: 330px !important;
    }


    .flex-grow-1 {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        مهم‌ترین خط
    }
}

@media (min-width: 768px) {
    .three-no-bootstrap-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100%;
        overflow-x: hidden;
    }

    .three-regard-col {
        flex: 0 0 230px !important;
        width: 230px !important;
        max-width: 230px !important;
        min-width: 230px !important;
    }

    .main-col {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        overflow: hidden;
    }

        .main-col .MudDataGrid,
        .main-col .mud-table-container,
        .main-col .mud-data-grid {
            width: 100% !important;
            min-width: 0 !important;
        }
}


.nowrap-cell {
    white-space: nowrap; /* نگذار خط بخورد */
}


.mud-table-cell {
    font-size: 12px !important;
}

/*@media (max-width: 1144px) {*/

/* اجازه شکستن ردیف */
/*.mud-table-toolbar-btn {
        flex-wrap: wrap !important;
    }*/

/* از دکمه بروزرسانی به بعد بروند خط بعد */
/*.mud-table-toolbar-btn > :nth-child(n+7) {
            flex-basis: 100%;
        }
}*/

.mud-table-toolbar-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}


/*.Fix-tr-He, .Fix-tr-He td, .Fix-tr-He td input, .Fix-tr-He .MyInputText-wrapper, .Fix-tr-He .vd-wrapper, .Fix-tr-He .my-input-container {*/
  /*  max-height: 25px !important;
    height: 25px;*/
/*}*/


/* TODOIT */

/*.custom-table tbody tr {
    min-height: 42px;
    max-height: 42px;
    height: 42px;
    padding: 5px 12px;*/ /* Input */
    /*padding: 7px 10px;*/ /* Button Input */
/*}*/


.mud-nav-item > a {
    text-decoration: none !important;
    padding-left: 0px !important;
    padding-right: 25px !important;
}

.MudAppBar-Main-Menu {
    color: white;
}


.custom-fieldset {
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 12px;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .custom-fieldset legend {
        font-size: 12px;
        padding: 0 10px;
        width: auto;
        margin-right: 10px;
        color: #555;
    }


.mud-table-pagination-toolbar {
    height: 40px;
}


.mud-table-pagination-actions button {
    padding: 0;
}



.btn-confirm {
    background-color: var(--confirm);
    color: white; 
}

.btn-cancell {
    background-color: var(--cancell);
    color: white;
}







/*BInput*/
.custom-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.vd-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.label-row {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.custom-label {
    display: block;
    font-size: 13px !important;
    font-weight: 600;
    padding: 1px 5px 2px;
    color: #000000;
}


.input-row {
    display: flex;
    align-items: center;
}


.custom-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--cancell);
    border-radius: 4px;
    outline: none;
    transition: all 0.3s ease;
}


    .custom-input:focus {
        border-color: var(--cancell) !important;
        box-shadow: 0 0 0 0.2rem rgba(248, 166, 34, 0.25) !important;
    }



.custom-btn {
    border: 1px solid var( --confirm);
    background-color: transparent;
    color: var( --confirm);
    padding: 8px 12px;
    margin-left: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .custom-btn:hover:not(:disabled) {
        background-color: var( --confirm);
        color: #fff;
    }

    .custom-btn:disabled {
        border-color: #ced4da;
        color: #ced4da;
        cursor: not-allowed;
    }

/* BSelect */
.custom-select {
    flex: 1;
    padding: 8px 36px 8px 12px; /* سمت راست جا برای فلش */
    border: 1px solid var(--cancell);
    border-radius: 4px;
    outline: none;
    transition: all 0.3s ease;
    background-color: #fff;
    cursor: pointer;
 
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6 6 6-6' stroke='%236c757d' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px 14px;
}

    .custom-select:focus {
        border-color: var(--cancell) !important;
        box-shadow: 0 0 0 0.2rem rgba(248, 166, 34, 0.25) !important;
    }

  
    .custom-select:disabled {
        background-color: #e9ecef;
        cursor: not-allowed;
        opacity: 1; 
    }
/* BSelect */

input.form-check-input[type="checkbox"] {
    transform: scale(1.5) !important;
    margin-right: 5px; /* کمی فاصله برای جلوگیری از تداخل با متن */
}



/*vd-dropdown*/
.vd-dropdown {
    position: fixed;
    z-index: 9999;
    max-height: 240px;
    overflow: auto;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 6px;
    margin-top: 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.vd-row {
    padding: 8px 12px;
    cursor: pointer;
}

    .vd-row:hover {
        background: rgba(0,0,0,0.05);
    }

.vd-loading,
.vd-empty {
    color: #666;
    padding: 10px;
    font-size: 0.9em;
}

.vd-color-box {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid #ccc;
}

.vd-input-container {
    position: relative;
    width: 100%;
}

.vd-input-addon {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 30px;
    display: flex;
    align-items: center;
   
    justify-content: center;
    pointer-events: none; /* کلیک روی خود Input بیفته */
}

.vd-separator {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 18px;
    background: #d5d5d5;
}

.vd-dropdown-arrow {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}







/*vd-dropdown*/


/*BInput*/


.w-250 {
    min-width: 250px;
}
















/*BAutoComplete*/
/* ═══════════════════════════════════════════
   ZrnAutoComplete — styles
   ═══════════════════════════════════════════ */
.zrn-autocomplete {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: inherit;
    direction: rtl;
}

/* ── Label ── */
.zrn-ac__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--label-color, #555);
}

.zrn-ac__required {
    color: var(--error-color, #e53935);
    margin-right: 2px;
}

/* ── Box ── */
.zrn-ac__box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-height: 40px;
    padding: 4px 8px;
    border: 1.5px solid var(--border-color, #ccc);
    border-radius: 3px;
    background: var(--input-bg, #fff);
    cursor: text;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .zrn-ac__box:hover {
        border-color: var(--primary-color, #1976d2);
    }

.zrn-ac__box--open {
    border-color: var(--primary-color, #1976d2);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color, #1976d2) 15%, transparent);
}

/* ── Input ── */
.zrn-ac__input {
    flex: 1;
    min-width: 80px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.9rem;
    color: var(--text-color, #222);
    direction: rtl;
}

    .zrn-ac__input::placeholder {
        color: var(--placeholder-color, #aaa);
    }

/* ── Chips (Multi) ── */
.zrn-ac__chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--primary-color, #1976d2) 12%, transparent);
    color: var(--primary-color, #1976d2);
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
}

.zrn-ac__chip-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.15s;
}

    .zrn-ac__chip-remove:hover {
        opacity: 1;
    }

/* ── Icons ── */
.zrn-ac__icons {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
    padding-right: 4px;
    flex-shrink: 0;
}

.zrn-ac__clear {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted, #888);
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 2px;
    transition: color 0.15s;
}

    .zrn-ac__clear:hover {
        color: var(--error-color, #e53935);
    }

.zrn-ac__arrow {
    color: var(--text-muted, #888);
    font-size: 0.9rem;
    transition: transform 0.2s;
    display: inline-block;
    user-select: none;
}

.zrn-ac__arrow--up {
    transform: rotate(180deg);
}

/* ── Spinner ── */
.zrn-ac__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color, #ccc);
    border-top-color: var(--primary-color, #1976d2);
    border-radius: 50%;
    animation: zrn-spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes zrn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Dropdown ── */
.zrn-ac__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 9999;
    background: var(--dropdown-bg, #fff);
    border: 1.5px solid var(--primary-color, #1976d2);
    border-radius: 3px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    max-height: 260px;
    overflow-y: auto;
    direction: rtl;
}

/* ── Dropdown Item ── */
.zrn-ac__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-color, #222);
    transition: background 0.12s;
}

    .zrn-ac__item:hover,
    .zrn-ac__item--active {
        background: color-mix(in srgb, var(--primary-color, #1976d2) 8%, transparent);
    }

.zrn-ac__item--selected {
    background: color-mix(in srgb, var(--primary-color, #1976d2) 14%, transparent);
    color: var(--primary-color, #1976d2);
    font-weight: 500;
}

.zrn-ac__no-result {
    padding: 12px 14px;
    color: var(--text-muted, #888);
    font-size: 0.85rem;
    text-align: center;
}

/* ── Checkbox (Multi) ── */
.zrn-ac__checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color, #ccc);
    border-radius: 4px;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}

.zrn-ac__checkbox--checked {
    background: var(--primary-color, #1976d2);
    border-color: var(--primary-color, #1976d2);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5l3 3 7-7' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

/* ── Disabled ── */
.zrn-ac--disabled .zrn-ac__box {
    background: var(--disabled-bg, #f5f5f5);
    border-color: var(--border-color, #ddd);
    cursor: not-allowed;
}

.zrn-ac--disabled .zrn-ac__input {
    cursor: not-allowed;
    color: #aaa;
}

/* ── Error ── */
.zrn-ac--error .zrn-ac__box {
    border-color: var(--error-color, #e53935);
}

.zrn-ac--error .zrn-ac__box--open {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--error-color, #e53935) 15%, transparent);
}

.zrn-ac__error-msg {
    font-size: 0.76rem;
    color: var(--error-color, #e53935);
}

/* ── Scrollbar ── */
.zrn-ac__dropdown::-webkit-scrollbar {
    width: 5px;
}

.zrn-ac__dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.zrn-ac__dropdown::-webkit-scrollbar-thumb {
    background: var(--border-color, #ddd);
    border-radius: 4px;
}
/*BAutoComplete*/


.separator {
    font-size: 1.15em;
    margin: 0 4px;
}