/* B-NAZANIN-Font */
/*@font-face {
    font-family: 'Bnazanin';
    src: url('../Font/BNAZANB.TTF') format('truetype');
    font-style: normal;
}*/

@font-face {
    font-family: 'BVazir';
    src: url('../Font/Vazirmatn-Regular.ttf') format('truetype');
    font-style: normal;
}


html, body {
    font-size: 14px;
    direction: rtl;
    font-family: BVazir !important;
    min-height: 100vh !important;
    margin: 0 !important;
    background-color: whitesmoke !important;
}

div, a, h1, h2, h3, h4, h5, h6, p, span, input, button, select, textarea, .error {
    font-family: BVazir !important;
    font-weight: bold;
}

@media (min-width: 768px) {
  html {
    font-size: 14px;
  }
}

table > tbody {
    background-color: white !important;
    box-shadow: 0px 0px 2px #5f5f5f,
        0px 0px 0px 5px #ecf0f3,
        8px 8px 15px #afaaa7;
}

.modal-content {
    background-color: whitesmoke !important;
}
@media (max-width: 768px) {
    .dt-orderable-asc > span, .dt-orderable-desc > span {
        font-size: 2.5rem !important;
    }

    .dt-orderable-asc, .dt-orderable-desc {
        min-height: 2rem !important;
        padding: 0.3rem !important;
        font-size: 2.5rem !important;
    }

    th, td, tr {
        padding: 0.5rem !important;
        text-align: center !important;
        font-size: 2rem !important;
        line-height: 2.5 !important;
    }
    div, a, h1, h2, h3, h4, h5, h6, p, span, input, button, select {
        font-size:1rem !important;
    }
        input {
        padding: 1rem !important;
        font-size: 2rem !important;
        line-height: 2.5 !important;
        text-align:center !important;
    }
}

.dt-orderable-asc > span, .dt-orderable-desc > span {
    font-size: 1rem !important;
}

.dt-orderable-asc, .dt-orderable-desc {
    min-height: 1rem !important;
    padding: 0.5rem !important;
}

th, td, tr {
    text-align: center !important;
    font-size: 1rem !important;
}

input {
    padding: 0.5rem !important;
    font-size: 1rem !important;
    line-height: 2.5 !important;
}

.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;
}

html {
  position: relative;
  min-height: 100%;
}




/* login form
*/
.login-container {
    margin-top: 5%;
    margin-bottom: 5%;
}

.login-form-1 {
    padding: 5%;
    box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 9px 26px 0 rgba(0, 0, 0, 0.19);
}

    .login-form-1 h3 {
        text-align: center;
        color: #333;
    }

.login-form-2 {
    padding: 5%;
    background: #4C91DB;
    box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 9px 26px 0 rgba(0, 0, 0, 0.19);
}

    .login-form-2 h3 {
        text-align: center;
        color: #fff;
    }

.login-container form {
    padding: 10%;
}

@media (max-height: 599px) {
    .imglogin {
        height: 150vh !important;
        width:100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}
@media (min-height: 600px) and (max-height: 650px) {
    .imglogin {
        height: 120vh !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}
@media (min-height: 650px) {
    .imglogin {
        height: 100vh !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}


.btnSubmit {
    width: 50%;
    border-radius: 1rem;
    padding: 1.5%;
    border: none;
    cursor: pointer;
}

.login-form-2 .btnSubmit {
    font-weight: 600;
    color: #0062cc;
    background-color: #fff;
}

.login-form-2 .ForgetPwd {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.login-form-1 .ForgetPwd {
    color: #0062cc;
    font-weight: 600;
    text-decoration: none;
}

.login-image {
    width: 100%; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
}

/* news in dashboard top */
#newsInput {
    animation: moveText 20s linear infinite; /* Adjust the duration as needed */
    white-space: nowrap; /* Prevent line breaks */
    overflow: hidden; /* Hide overflowing content */
    width: 100%; /* Ensure the text remains in a single line */
}

@keyframes moveText {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

/* card */
.card_dashboard{
    background-color:white;
}

/* Slide bar Dashboard */
.page-wrapper .sidebar-wrapper,
.sidebar-wrapper .sidebar-brand > a,
.sidebar-wrapper .sidebar-dropdown > a:after,
.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a:before,
.sidebar-wrapper ul li a i,
.page-wrapper .page-content,
.sidebar-wrapper .sidebar-search input.search-menu,
.sidebar-wrapper .sidebar-search .input-group-text,
.sidebar-wrapper .sidebar-menu ul li a,
#show-sidebar,
#close-sidebar {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/*----------------page-wrapper----------------*/


.page-wrapper .theme {
    width: 40px;
    height: 40px;
    display: inline-block;
    border-radius: 4px;
    margin: 2px;
}

    .page-wrapper .theme.chiller-theme {
        background: #1e2229;
    }

/*----------------toggeled sidebar----------------*/

.page-wrapper.toggled .sidebar-wrapper {
    right: 0px;
}
/*----------------show sidebar button----------------*/
#show-sidebar {
    position: fixed;
    right: 0;
    top: 10px;
    border-radius: 0 4px 4px 0px;
    width: 35px;
    transition-delay: 0.3s;
}

.page-wrapper.toggled #show-sidebar {
    right: -40px;
}
/*----------------sidebar-wrapper----------------*/

.sidebar-wrapper {
    width: 270px;
    height: 100%;
    max-height: 100%;
    position: fixed;
    top: 0;
    right: -300px;
    z-index: 999;
}

    .sidebar-wrapper ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .sidebar-wrapper a {
        text-decoration: none;
    }

/*----------------sidebar-content----------------*/

.sidebar-content {
    float: right;
    max-height: calc(100% - 30px);
    height: calc(100% - 30px);
    width: 265px;
    /*overflow-y: auto;*/
    position: relative;
}

    .sidebar-content.desktop {
        overflow-y: hidden;
    }

/*--------------------sidebar-brand----------------------*/

.sidebar-wrapper .sidebar-brand {
    padding: 10px 20px;
    display: flex;
    align-items: center;
}

    .sidebar-wrapper .sidebar-brand > a {
        text-transform: uppercase;
        font-weight: bold;
        flex-grow: 1;
    }

    .sidebar-wrapper .sidebar-brand #close-sidebar {
        cursor: pointer;
        font-size: 20px;
    }
/*--------------------sidebar-header----------------------*/

.sidebar-wrapper .sidebar-header {
    padding: 20px;
    overflow: hidden;
}

    .sidebar-wrapper .sidebar-header .user-pic {
        float: right;
        width: 60px;
        padding: 2px;
        border-radius: 12px;
        margin-left: 15px;
        overflow: hidden;
    }

        .sidebar-wrapper .sidebar-header .user-pic img {
            object-fit: cover;
            height: 100%;
            width: 100%;
        }

    .sidebar-wrapper .sidebar-header .user-info {
        float: right;
    }

        .sidebar-wrapper .sidebar-header .user-info > span {
            display: block;
        }

        .sidebar-wrapper .sidebar-header .user-info .user-role {
            font-size: 12px;
        }

        .sidebar-wrapper .sidebar-header .user-info .user-status {
            font-size: 11px;
            margin-top: 4px;
        }

            .sidebar-wrapper .sidebar-header .user-info .user-status i {
                font-size: 8px;
                margin-right: 4px;
                color: #5cb85c;
            }

/*-----------------------sidebar-search------------------------*/

.sidebar-wrapper .sidebar-search > div {
    padding: 10px 20px;
}

/*----------------------sidebar-menu-------------------------*/

.sidebar-wrapper .sidebar-menu {
    padding-bottom: 10px;
}

    .sidebar-wrapper .sidebar-menu .header-menu span {
        font-weight: bold;
        font-size: 14px;
        padding: 15px 20px 5px 20px;
        display: inline-block;
    }

    .sidebar-wrapper .sidebar-menu ul li a {
        display: inline-block;
        width: 100%;
        text-decoration: none;
        position: relative;
        padding: 8px 30px 8px 20px;
    }

        .sidebar-wrapper .sidebar-menu ul li a i {
            margin-left: 10px;
            font-size: 12px;
            width: 30px;
            height: 30px;
            line-height: 30px;
            text-align: center;
            border-radius: 4px;
        }

        .sidebar-wrapper .sidebar-menu ul li a:hover > i::before {
            display: inline-block;
            animation: swing ease-in-out 0.5s 1 alternate;
        }

    .sidebar-wrapper .sidebar-menu .sidebar-dropdown > a:after {
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        content: "\f104";
        font-style: normal;
        display: inline-block;
        font-style: normal;
        font-variant: normal;
        text-rendering: auto;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-align: center;
        background: 0 0;
        position: absolute;
        left: 100px;
        top: 10px;
    }

    .sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu ul {
        padding: 5px 0;
    }

    .sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li {
        padding-right: 25px;
        font-size: 13px;
    }

        .sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a:before {
            content: "\f111";
            font-family: "Font Awesome 5 Free";
            font-weight: 400;
            font-style: normal;
            display: inline-block;
            text-align: center;
            text-decoration: none;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            margin-right: -10px;
            font-size: 8px;
        }

    .sidebar-wrapper .sidebar-menu ul li a span.label,
    .sidebar-wrapper .sidebar-menu ul li a span.badge {
        float: left;
        margin-top: 8px;
        margin-right: 5px;
    }

    .sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a .badge,
    .sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a .label {
        float: left;
        margin-top: 0px;
    }

    .sidebar-wrapper .sidebar-menu .sidebar-submenu {
        display: none;
    }

    .sidebar-wrapper .sidebar-menu .sidebar-dropdown.active > a:after {
        transform: rotate(-90deg);
        left: 100px;
    }

/*--------------------------side-footer------------------------------*/

.sidebar-footer {
    width: 100%;
    bottom: 0;
    display: flex;
    padding:1px;
}

    .sidebar-footer > a {
        flex-grow: 1;
        text-align: center;
        height: 30px;
        line-height: 30px;
        position: relative;
    }

        .sidebar-footer > a .notification {
            position: absolute;
            top: 0;
        }

.badge-sonar {
    display: inline-block;
    background: pink;
    border-radius: 50%;
    height: 8px;
    width: 8px;
    position: absolute;
    top: 0;
}

    .badge-sonar:after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        border: 2px solid pink;
        opacity: 0;
        border-radius: 50%;
        width: 100%;
        height: 100%;
        animation: sonar 1.5s infinite;
    }

/*--------------------------page-content-----------------------------*/

.page-wrapper .page-content {
    display: inline-block;
    width: 100%;
    padding-left: 0px;
    padding-top: 20px;
}

    .page-wrapper .page-content > div {
        padding: 20px 40px;
    }

.page-wrapper .page-content {
    overflow-x: hidden;
}

/*------scroll bar---------------------*/

::-webkit-scrollbar {
    width: 5px;
    height: 7px;
}

::-webkit-scrollbar-button {
    width: 0px;
    height: 0px;
}

::-webkit-scrollbar-thumb {
    background: #525965;
    border: 0px none red;
    border-radius: 0px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #525965;
    }

    ::-webkit-scrollbar-thumb:active {
        background: #525965;
    }

::-webkit-scrollbar-track {
    background: transparent;
    border: 0px none red;
    border-radius: 50px;
}

    ::-webkit-scrollbar-track:hover {
        background: transparent;
    }

    ::-webkit-scrollbar-track:active {
        background: transparent;
    }

::-webkit-scrollbar-corner {
    background: transparent;
}

/* register-page */
.reg_right_borders {
    background-color:rgba(249,249,249,0.3) ;
    border-radius: 40px;
    width: 1000%;
    height: auto;
}

/* Colors */
.bg-blue {
    background-color: #005B8F !important;
    color: white !important;
}

.bg-red {
    background-color: rgba(248, 100, 100, 0.9) !important;
    color: white !important;
}

a.bg-blue:hover, a.bg-blue:focus,
button.bg-blue:hover,
button.bg-blue:focus {
    background-color: #01466e !important;
}

a.bg-red:hover, a.bg-red:focus,
button.bg-red:hover,
button.bg-red:focus {
    background-color: rgba(248, 100, 100, 1) !important;
}

.bg-blue-dark {
    background-color: #005B8F !important;
    color: black !important;
}

a.bg-blue-dark:hover, a.bg-blue-dark:focus,
button.bg-blue-dark:hover,
button.bg-blue-dark:focus {
    background-color: #01466e !important;
}

.bg-blue-sec {
    background-color: #005B8F !important;
    color: #AAAAAA !important;
}

a.bg-blue-sec:hover, a.bg-blue-sec:focus,
button.bg-blue-sec:hover,
button.bg-blue-sec:focus {
    background-color: #01466e !important;
}

.bg-teal {
    background-color: #008080 !important;
    color: white !important;
}
.bg-edit {
    background-color: #dea807 !important;
    color: white !important;
}

a.bg-teal:hover, a.bg-teal:focus,
button.bg-teal:hover,
button.bg-teal:focus,
.btn.bg-teal:hover,.btn.bg-teal:focus{
    background-color: #015c5c !important;
}

.bg-teal-dark {
    background-color: #008080 !important;
    color: black !important;
}

a.bg-teal-dark:hover, a.bg-teal-dark:focus,
button.bg-teal-dark:hover,
button.bg-teal-dark:focus {
    background-color: #015c5c !important;
}

.bg-teal-sec {
    background-color: #008080 !important;
    color: #AAAAAA !important;
}

a.bg-teal-sec:hover, a.bg-teal-sec:focus,
button.bg-teal-sec:hover,
button.bg-teal-sec:focus {
    background-color: #015c5c !important;
}

.cl-sec {
    color: #eeeeee !important;
}

.bg-sec {
    background-color: #eeeeee !important;
}



.cl-teal {
    color: #008080 !important;
}

.cl-gray {
    color: #AAAAAA !important;
}

.cl-blue {
    color: #005B8F !important;
}

.logout_invers {
    color: white;
    background-color: #008080;
}

.fs-5rem {
    font-size: 3rem !important;
}

.fs-large {
    font-size: large !important;
}

.clickable {
    cursor: pointer;
}
.imguser{
    position:relative !important;
}
.picupload {
    position: absolute !important;
    top: -2rem !important;
    right: 16.3rem !important;
    width: 44rem !important;
}
.dt-search{
    display:flex;
    flex-direction:row;
    justify-content:start;
    align-items:center;

}
.dt-search>input{
    width:50% !important;
    height:2rem !important;
    margin: 1rem !important;
    padding:15px !important;
}
.dt-search > label{
    font-size:1.3rem;
    font-family:Bnazanin !important;
}

.cursorpointer{
    cursor:pointer !important;
}
.error{
    color:red !important;
    margin-right:15px ;
    margin-top:10px;
    font-size:1rem !important;
}
.error-messages .error {
    color: red !important;
    margin-right: 0px !important;
    margin-top: 0px !important;
    font-size: 1rem !important;
}

/*table tbody tr:last-child td:first-child {
    border-bottom-right-radius: 10px;
    background:red
}*/
/*table tbody tr:last-child td:last-child {
    border-bottom-left-radius: 10px;
    background: red !important;
}*/
/*    table tbody tr:last-child {
    border-radius:20px !important;
    }
*/

table tr:first-of-type th:first-child {
    border-top-right-radius: 10px;
}

table tr:first-of-type th:last-child {
    border-top-left-radius: 10px;
}





.w-shadow {
    background-color: white !important;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px !important;
}
.s-shadow {
    background-color: whitesmoke !important;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px !important;
}

.b-shadow {
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px !important;
}
.l-shadow {
    box-shadow: 0px 0px 2px #5f5f5f,
        0px 0px 0px 5px #ecf0f3,
        8px 8px 15px #afaaa7,
        -8px -8px 15px #ffffff;

}
.f-shadow {
    box-shadow: 0px 4px 8px rgba(255, 255, 255, 0.7);
}
.dt-paging,.dt-info{
    margin-top:1rem !important;
}
.dt-search {
    width: 50% !important;
}
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* Base styles for modals */
.modal-dialog {
    margin: auto;
}

/* Mobile view adjustments */
@media (max-width: 576px) {
    #my_xl_modal .modal-dialog,
    #my_lg_modal .modal-dialog,
    #my_md_modal .modal-dialog,
    #my_sm_modal .modal-dialog {
        margin: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
    }

    #my_xl_modal .modal-content,
    #my_lg_modal .modal-content,
    #my_md_modal .modal-content,
    #my_sm_modal .modal-content {
        height: 100%;
        border-radius: 0;
    }
}

/* Desktop view adjustments */
@media (min-width: 577px) {
    #my_xl_modal .modal-dialog.modal-xl {
        max-width: 1140px;
    }

    #my_lg_modal .modal-dialog.modal-lg {
        max-width: 800px;
    }

    #my_md_modal .modal-dialog.modal-md {
        max-width: 500px;
    }

    #my_sm_modal .modal-dialog.modal-sm {
        max-width: 300px;
    }
    #bd-root-FaDeliveryDate{
        display:flex;
        flex-direction:column;
        justify-content:center;
        align-items:flex-start;
    }
}

.no-cursor {
    cursor: default;
}
.hovered :hover {
    background-color: lightslategray;
}

@media print {
    .no-print {
        display: none !important;
    }
    .printable {
        width: 100% !important;
        page-break-inside: avoid !important;
        page-break-after:avoid !important;
        page-break-before:avoid !important;
    }
}
.legend-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border-radius: 50%;
}

.tile {
    background-color: white;
    color: white;
    padding: 20px;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    height:fit-content !important;
}

.tile canvas {
    width: 100%;
    height: 150px;
}

.tile.closed {
    transform: scale(0);
    opacity: 0;
    background-color: red;
}

.tile-container {
    gap: 10px;
    margin:20px;
}
.accordion-transition {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-open {
    max-height: 500px; /* Adjust this value based on your content */
}

/* DarkMode Styling */

:root {
    --maintags-txt-color: black;
    --maintags-bg-color: white;
    /* */
    --card-txt-color: black;
    --card-bg-color: white;
    /* */
    --input-txt-color: black;
    --input-bg-color: white;
    /* */
    --htags-txt-color: black;
    /* */
    --tblbox-shadow-color: #5A5757;
    /* */
    --tblclose-btn-bgcolor: #fff;
    --tblclose-btn-color: #c40f0f;
    /* */
    --primary-blue-color: #007bff;
    --primary-blue-bgcolor: #fff;
    /* */
    --logout-btn-bgcolor: whitesmoke;
    /* */
    --create-btn-textcolor: black;
    /* */
    --help-h-text: black;
    /* */
    --help-p-text: black;
    /* */
    --help-img-shadow: black;
    /* */
    --add-irad-btn: white;
}

body.dark-mode {
    --maintags-txt-color: #D7D7D7;
    --maintags-bg-color: #1a1919;
    /* */
    --card-txt-color: white;
    --card-bg-color: #1f1f1f;
    /* */
    --input-txt-color: #DED8D8;
    --input-bg-color: #5A5757;
    /* */
    --htags-txt-color: white;
    /* */
    --tblbox-shadow-color: #DED8D8;
    --tbl-bg-color: #282828;
    /* */
    --tblclose-btn-bgcolor: #5A5757;
    --tblclose-btn-color: #c40f0f;
    /* */
    --primary-blue-color: #fff;
    --primary-blue-bgcolor: #787676;
    /* */
    --logout-btn-bgcolor: #a8a8a8;
    /* */
    --create-btn-textcolor: white;
    /* */
    --help-h-text: white;
    /* */
    --help-p-text: white;
    /* */
    --help-img-shadow: white;
    /* */
    --add-irad-btn: #BEBEBE;
}

/* Apply Variables Globally to All Tables */
table {
    background-color: var(--tbl-bg-color);
}

table td {
    background-color: var(--tbl-bg-color);
    color: var(--card-txt-color);
}

table tbody {
    background-color: var(--tbl-bg-color);
    box-shadow: 0 4px 6px var(--tblbox-shadow-color);
}
/* DarkMode Styling */

.error {
    text-align: right;
}

.dt-empty {
    padding: 10px !important
}



/*-------------------------AJAX REQUESTS LOADING-----------------------------*/
.loading-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 128, 128, 0.5) !important;
    z-index: 9999999;
    justify-content: center;
    align-items: center;
}

.loading-content {
    background: rgba(255, 255, 255, 0.9); /* پس‌زم?نه لود?نگ سف?د با شفاف?ت کم */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.loader {
    border: 4px solid rgba(255, 255, 255, 0.6);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    display: block;
    margin: 0 auto;
}
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
