﻿@font-face {
    font-family: 'Vazir';
    src: url('/fonts/Vazir-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('/fonts/Vazir-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('/fonts/Vazir-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}


html, body {
    font-family: 'Vazir', Tahoma, Arial, sans-serif;
}

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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcF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5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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: inline-flex;
    align-items: center;
    background-color: #f3f4f6;
    padding: 4px 8px;
    border-radius: 12px;
    font-family: sans-serif;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

    .user-badge:hover {
        background-color: #e5e7eb; /* هاور روشن‌تر */
    }

.user-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    font-size: 1.2rem;
}

.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;
}



.mud-icon-root.mud-svg-icon {
    fill: #16423C;
}

.mud-button-label {
    color: #16423C !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: 16px;
    font-weight: bold;
    border-radius: 8px;
    padding: 10px 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: #6A9C89 !important;
}

    .DialogUpsert-Action-Btn-Submit:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
        background-color: #16423C !important;
        color: white !important;
    }


.DialogUpsert-Action-Btn-Cancel {
    background-color: #E57373 !important;
    color: white !important;
}

    .DialogUpsert-Action-Btn-Cancel:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
        background-color: #C62828 !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: #6A9C89 !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%;*/
    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;
    }





/*Document-Page*/



.Document-Page {
    font-size: 12px;
}


    .Document-Page .custom-table {
        border-collapse: collapse;
        width: 100%;
        table-layout: auto;
        font-size: 12px !important;
    }

.A {
    width: 100%;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.form-col {
    /*flex: 1 1 200px;*/
    min-width: 150px;
}

.col-small {
    flex: 0 0 auto;
    min-width: 90px !important;
}

.input-small {
    width: 90px !important; /* 👈 عرض مشخص */
    text-align: center; /* عددها وسط چین */
}



.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-adornment {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: green;
}

.detail-section {
    margin-top: 20px;
}



.tooltip-container {
    display: inline-block;
    position: relative;
    margin: 10px;
    direction: ltr;
}

.custom-button {
    padding: 8px 12px;
    border: 1px solid #1976d2; /* مشابه Variant.Outlined */
    background-color: white;
    color: #1976d2;
    cursor: pointer;
    font-size: 14px;
    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-Page*/
