:root {
    --purple: #2d3cd7;
    --dark-purple: #1e2126;
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    src: url(../fonts/IRANYekanXFaNum-Regular.woff2) format('woff2');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/IRANYekanXFaNum-Bold.woff2) format('woff2');
}

body {
    background: #f9f9fa;
    font-size:16px !important;
}

body, button, input, select, textarea {
    font-family: IRANSans !important;
}

* {
    padding: 0;
    margin: 0;
}

a {
    text-decoration: unset;
}

form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

form .field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

main {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    margin-right: 260px;
    padding: 30px;
    box-sizing: border-box;
    transition: all 0.3s;
}

main.hidemenu {
    margin-right: 0;
}

input, select, textarea {
    border: 1px solid #e5e7eb;
    padding: 6px;
    border-radius: 6px;
    outline: none;
}

input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px #e5e7eb;
}

.header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid #dfdfdf;
    padding-bottom: 10px;
}
.loader {
    background: #2d3cd7;
    position: fixed;
    right: 0;
    z-index: 999999999;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
 .loading {
    overflow: hidden;
}
.loading main {
   display:none;
}
.submitbut {
    flex: 1 0 50%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
}

.f-form .submitbut {
    flex: 1 0 100%;
}

input[type="submit"] {
    padding: 10px 40px;
    background: var(--purple);
    border: unset;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    font-weight: 700 !important;
    margin: 0 auto;
}
.add_new {
    padding: 10px 40px;
    background: var(--purple);
    border: unset;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    font-weight: 700 !important;
    width: fit-content;
    margin-top: 20px;
}
.success {
    padding: 20px;
    background: rgba(40, 167, 69, .15);
    width: fit-content;
    border-radius: 8px;
    color: #28a745;
    margin-top: 20px;
}

.forbidden {
    flex-direction: column;
    background: white;
    max-width: 700px;
    padding: 20px;
    border-radius: 6px;
    margin: auto;
    text-align: center;
}

.addedError {
    padding: 20px;
    background: rgba(220, 53, 69, .15);
    width: fit-content;
    border-radius: 8px;
    color: rgba(220, 53, 69, 1);
    margin-top: 20px;
}

.error {
    color: rgba(220, 53, 69, 1);
}

input.error, select.error, textarea.error {
    border: 1px solid rgba(220, 53, 69, 1);
    padding-left: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
select.error {
    background-position: left calc(1em + 0.1875rem) center;
}
.form {
    margin-top: 30px;
}

form.updateBranch {
    justify-content: space-between;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
}

a.edit, .edit {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    color: var(--purple);
    background-color: transparent;
    border-color: var(--purple);
    border-radius: 6px;
    border-style: solid;
    border-width: 1px;
    cursor: pointer;
    margin-right: auto;
    height: fit-content;
}
.eachBranch.deactivated .status {
    color: #28a745;
    background-color: transparent;
    border-color: #28a745;
}
.eachBranch.deactivated {
    border-right: 3px solid rgb(254 166 44);
    background: #eee;
}
a.dl {
    padding: 6px 12px;
    font-size: 12px;
    color: #28a745;
    background-color: rgb(212, 237, 218);
    border-color: rgb(212, 237, 218);
    border-radius: 6px;
    border-style: solid;
    border-width: 1px;
    cursor: pointer;
}

a.cancel {
    padding: 6px 12px;
    font-size: 12px;
    color: rgba(220, 53, 69, 1);
    background-color: rgba(220, 53, 69, .15);
    border-color: rgba(220, 53, 69, .15);
    border-radius: 6px;
    border-style: solid;
    border-width: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

input.update {
    padding: 6px 12px;
    font-size: 12px;
    color: rgba(40, 167, 69, 1);
    background-color: rgba(40, 167, 69, .15);
    border-color: rgba(40, 167, 69, .15);
    border-radius: 6px;
    border-style: solid;
    border-width: 1px;
    cursor: pointer;
}

tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.menu {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.menu .parent {
    color: #fff;
    padding-bottom: 12px;
}

.menuitam .submenu {
    display: block;
    flex-direction: column;
    padding-right: 15px;

}
.menuitam:not(.active) .submenu {
    display: none;
}
.submenu a {
    padding: 10px 0 0 0;
    font-size: 13px;
}

.menu .menuitam {
    margin-bottom: 10px;
    margin-left: -20px;
    margin-right: -20px;
    display: flex;
    flex-wrap: wrap;
    border-radius: 5px;
}

.menu .menuitam a {
    color: #fff;
    padding: 12px 30px;
    cursor: pointer;
    width: 100%;
    display: block;
    white-space: nowrap;
}
.menuitam.active a {
    font-weight: bold;
}
.submenu a {
    font-weight: 100 !important;
}
.menu .menuitam:hover {
    background: var(--dark-purple);
}

.menuitam.active {
    background: var(--dark-purple);
}

.branchList {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.eachBranch {
    position: relative;
    background: #fff;
    padding: 12px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    gap: 0 8px;
    align-items: center;
    height: 70px;
    box-sizing: border-box;
    flex: 1 0 26%;
    max-width: calc((100% / 3) - (20px / 3));
}

.eachBranch.hide {
    display: none;
}

.buttons {
    display: flex;
    gap: 10px;
}

.added {
    position: absolute;
    right: 0;
    top: 0;
    color: rgba(40, 167, 69, 1);
    background-color: rgb(223 242 227);
    padding: 13px;
    border-radius: 6px;
    display: flex;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.added.Er {
    color: rgba(220, 53, 69, 1);
    background-color: rgb(250 225 227);
}

.added.loading {
    background-color: rgb(59 134 255 / 41%);
}

option[value=""][disabled] {
    display: none;
}

input.branchSearch {
    max-width: calc((100% / 3) - (20px / 3));
    box-sizing: border-box;
    margin-bottom: 10px;
}

form.f-form .field {
    flex: 1 0 100%;
}

form.sign-in {
    flex-direction: column;
    background: white;
    max-width: 400px;
    padding: 20px;
    border-radius: 6px;
    margin: auto;
    box-shadow: 0 0 50px rgb(210 208 255 / 15%);
}

.sign-in input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
}

.user-login {
    margin: auto !important;
    position: absolute;
    right: 50%;
    top: 50%;
    transform: translate(50%, -50%);
    width: 100%;
    box-sizing: border-box;
}

#mainTable {
    width: 100%;
}

th[data-column-id="میزانتحصیلات"] {
    width: 112px;
}

th[data-column-id="وضعیتتاهل"] {
    width: 104px;
}

th[data-column-id="نامونامخانوادگی"] {
    width: 122px;
}

.overview {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.bx {
    background-color: #fff;
    border-radius: 6px;
    padding: 30px 15px;
    flex: 1 0 20%;
    max-width: calc((100% - (3 * 25px)) / 4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(102, 109, 119);
    gap: 20px;
    box-sizing: border-box;
    flex-direction: column;
    box-shadow: 0 0 50px rgb(210 208 255 / 15%);
    position:relative;
}

.ebx {
    color: rgb(173, 179, 191);
}

h1 {
    margin-bottom: 20px;
    font-size: 26px !important;
    color: rgb(102, 109, 119);
    font-weight: bold !important;
}

.bxval {
    font-size: 30px;
}

.profile:after {
    content: "";
    display: inline-block;
    border-style: solid;
    border-width: 0 2px 2px 0;
    padding: 3px;
    transform: rotate(45deg);
    vertical-align: middle;
    color: rgb(102, 109, 119);
    margin-right: 10px;
}

aside.sidebar {
    position: fixed;
    width: 260px;
    height: 100vh;
    top: 0;
    z-index: 9999;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    right: 0;
    background: var(--purple);
    padding: 30px;
    box-sizing: border-box;
    transition: all 0.3s;
    transform: translateX(0);
}

.hidemenu aside.sidebar {
    transform: translateX(100%);
}

.logo {
    text-align: center;
    margin-bottom: 40px;
    background: #f9f9fa;
    border-radius: 10px;
    padding: 17px;
    display: flex;
    justify-content: center;
}
.container {
    display: flex;
    position: relative;
    min-height: calc(100vh - 60px);
    flex-direction: column;
    width: 100%;
}

.footer {
    margin-top: auto;
    text-align: left;
    color: rgb(173, 179, 191);
}

.humburger {
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    right: 0;
}

.profile_box {
    position: relative;
    cursor: pointer;
}

.subprofile {
    background: #fff;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    font-size: 13px;
    position: absolute;
    width: 100%;
    box-sizing: border-box;
    top: 34px;
    display: none;
    animation-name: example;
    animation-duration: 0.3s;
}

.active .subprofile {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.subprofile a {
    color: rgb(102, 109, 119);
    padding: 15px;
}

#custom_file {
    display: none;
    margin: 0 auto;
}

#upload {
    display: block;
    padding: 10px 25px;
    border: 0;
    font-size: 15px;
    letter-spacing: 0.05em;
    cursor: pointer;
    background: var(--purple);
    color: #fff;
    outline: none;
    transition: 0.3s ease-in-out;
    width: fit-content;
}

#upload:hover,
#upload:focus {
    background: var(--dark-purple);
}

#upload:active {
    background: var(--dark-purple);
    transition: 0.1s ease-in-out;
}

button.del {
    background: transparent;
    border: unset;
    color: rgba(220, 53, 69, 1);
    position: absolute;
    top: 46px;
    left: -20px;
    cursor: pointer;
}
.delete {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    color: rgba(220, 53, 69, 1);
    background-color: transparent;
    border-color: rgba(220, 53, 69, 1);
    border-radius: 6px;
    border-style: solid;
    border-width: 1px;
    cursor: pointer;
}
a.status {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    color: rgba(220, 53, 69, 1);
    background-color: transparent;
    border-color: rgba(220, 53, 69, 1);
    border-radius: 6px;
    border-style: solid;
    border-width: 1px;
    cursor: pointer;
}
.edit.dates {
    color: #6a74ff;
    border-color: #6a74ff;
}
.dates-butts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.edit.updatedates {
    color: #6a74ff;
    border-color: #6a74ff;
    padding: 20px;
    margin: 0;
}
.delete.close-modal {
    padding: 20px;
}
.swal-button--confirm {
    background-color: var(--dark-purple);
}
.swal-button--confirm:hover {
    background-color: var(--purple) !important;
}
.swal-footer {
    text-align: center;
}
button.add {
    padding: 10px;
    font-weight: bold;
    color: var(--purple);
    background-color: transparent;
    border-color: var(--purple);
    border-radius: 6px;
    border-style: solid;
    border-width: 2px;
    margin-top: 20px;
    cursor: pointer;
}

.repeater-row {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px 0;
    background: #ffffff;
    padding: 24px;
    border-radius: 6px;
    box-shadow: 0 0 50px rgb(210 208 255 / 15%);
}

.inner-repeater .repeater-row {
    flex: 1 0 20%;
    max-width: calc((100% - (6%)) / 4);
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.inner-repeater {
    display: flex;
    flex-wrap: wrap;
}

.inner-list {
    display: flex;
    gap: 0 2%;
    flex-wrap: wrap;
    width: 100%;
}

.eAnswer {
    display: flex;
    gap: 2%;
    flex-wrap: wrap;
}

.listout {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 60px 0;
}

.repeater {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.que {
    top: 74px !important;
    left: 4px !important;
}

.checked input#answer {
    background-color: rgb(223 242 227);
}

input.correct.error {
    box-shadow: 0 0 1px 1px rgba(220, 53, 69, 1);
}

.gridjs-td span {
    display: flex;
    flex-wrap: wrap;
}
label[for=price] {
    font-size: 10px;
}
.modal {
    position: fixed;
    inset: 0;
    background-color: rgb(0 0 0 / 50%);
    z-index: 999999999;
}
.modal-container {
    max-width: 80vw;
    max-height: 80vh;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    transition: all 2.5s ease;
    width: 800px;
    position: absolute;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    height: 100%;
    display: flex;
}
@keyframes example {
    from {
        opacity: 0;
        -webkit-transform: translate3d(15px, 0, 0);
        transform: translate3d(0, -15px, 0);
        -webkit-transition: opacity .3s, -webkit-transform .3s;
        transition: opacity .3s, transform .3s;
    }
    to {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

input[type="submit"].disable {
    opacity: 0.5;
}

.alarm {
    background: rgb(251, 237, 215);
    width: fit-content;
    padding: 20px;
    border-radius: 6px;
    color: rgb(235, 166, 54);
    font-size: 18px;
    margin-top: 20px;
}

.label {
    display: flex;
    gap: 10px;
}

svg.minus {
    display: none;
}

.active .minus {
    display: flex;
}

.active .plus {
    display: none;
}

.menu-toggle {
    padding: 10px;
    cursor: pointer;
    display: flex;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none;
}
.action {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}
.parrent-menu {
    display: flex;
    width: 100%;
    align-items: center;
}

aside.sidebar::-webkit-scrollbar {
    background-image: linear-gradient(to right, #6fca3a 20%, transparent 21%, transparent 70%);
    width: 8px;
}
aside.sidebar::-webkit-scrollbar-thumb {
    background-color: var(--dark-purple);
    border-radius: 10px;
    height: 55px;
}

.gridjs-wrapper::-webkit-scrollbar {
    background-image: linear-gradient(to right, #6fca3a30 20%, transparent 21%, transparent 70%);
    width: 8px;
    height: 8px;
}
.gridjs-wrapper::-webkit-scrollbar-thumb {
    background-color: #946ba6;
    border-radius: 10px;
    height: 55px;
}
svg.act {
    display: none;
}
.active .act {
    display: flex;
}
.active .hid {
    display: none;
}
.user_pass {
    position:relative;
}
#show-pass svg {
    position: absolute;
    top: 6px;
    width: 16px;
    left: 8px;
    z-index: 99999;
    cursor: pointer;
    fill: #979797;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none;
}
#user_pass{
    direction:ltr;
}
.width-100 input {
    width: 100px !important;
}
td.ltr.tl {
    text-align: left;
}
input[type=hidden].error ~ .error {
    display: none;
}
.bg-light {
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
    font-weight: bold;
    line-height: 34px;
    box-sizing: border-box;
}
body.fixed {
    overflow: hidden;
}
.logo img {
    width: 100%;
    max-width: 120px;
}
#each-thera #header {
    display: none;
}
option[value=""][disabled] {
    display: none;
}
@media (max-width: 768px) {
    main {
        margin-right: 0;
        padding: 15px;
    }
    table#mainTables {
        overflow: auto;
        display: block;
        width: 100% !important;
        padding-left: 1px;
    }
    aside.sidebar {
        transform: translateX(100%);
    }

    .hidemenu aside.sidebar {
        transform: translateX(0);
    }

    .hidemenu .humburger {
        right: 260px;
        z-index: 1;
    }

    main:before {
        content: '';
        background: transparent;
        transition: all 0.3s;
    }

    main.hidemenu:before {
        background: #0000007a;
        position: absolute;
        height: 100%;
        width: 100%;
        top: 0;
        right: 0;
        z-index: 1;
        backdrop-filter: blur(4px);
    }

    main.hidemenu .humburger svg {
        fill: #fff;
    }

    input.branchSearch {
        max-width: 100%;
    }

    .eachBranch {
        max-width: 100%;
    }

    .updateBranch input {
        max-width: 130px;
    }
    h1 {
        font-size: 18px;
    }
    .alarm {
        padding: 14px;
        font-size: 14px;
        margin-top: 0;
        width:unset;
    }
    form.f-form .field label {
        font-size: 14px;
    }
    .bg-light {
        font-size: 12px;
        font-weight: normal;
        line-height: 22px;
        text-align: justify;
    }
    .eachrow p {
        margin-bottom: 10px;
    }
    .bx {
        max-width: calc((100% - (1 * 25px)) / 2);
        flex: 1 0 42%;
        text-align: center;
    }
    .bxval {
        font-size: 20px;
    }
    .modal-container {
        max-width: 100vw;
        max-height: 100vh;
    }
}