@font-face {
    font-family: Gilroy;
    font-weight: 400;
    src: url("../fonts/Gilroy-Regular.ttf");
}

@font-face {
    font-family: Gilroy;
    font-weight: 500;
    src: url("../fonts/Gilroy-Medium.ttf");
}

@font-face {
    font-family: Gilroy;
    font-weight: 600;
    src: url("../fonts/Gilroy-SemiBold.ttf");
}

@font-face {
    font-family: Gilroy;
    font-weight: 700;
    src: url("../fonts/Gilroy-Bold.ttf");
}

@font-face {
    font-family: Gilroy;
    font-weight: 900;
    src: url("../fonts/Gilroy-Black.ttf");
}

* {
    padding: 0;
    margin: 0;
    font-family: Gilroy;
    font-weight: 500;
    font-size: 14px;
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
  
*::-webkit-scrollbar-track {
    background: #E7E7E7;
}
  
*::-webkit-scrollbar-thumb {
    border-radius: 10px;
    border: 10px solid var(--cl-black);
}

body {
    background-color: #f3f5f7;
}

:root {
    --cl-main: #EF8318;
    --cl-orange: #EF8318;
    --cl-black: #000000;
    --cl-white: #ffffff;
    --cl-grey: #828282;
    --cl-green: #1BA41F;
    --cl-red: #C72D2D;
    --cl-light-grey: #E0E0E0;
    --cl-dark-grey: #333333;
    --cl-light-green: #7FDE83;
    --cl-input-orange: #d16f0f;
    --cl-light: #F3F5F7;
    --cl-yellow: #F9D523;
    --cl-dark-green: #5BAC5F;
    --cl-dark-bg: #1a1a1a;
    --cl-dark-grey: #333333;
    --cl-darktheme-grey: #909199;
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
}

.cl-orange {
    color: var(--cl-orange);
}

.cl-black {
    color: var(--cl-black)!important;
}

.cl-white {
    color: var(--cl-white);
}

.cl-grey {
    color: var(--cl-grey);
}

.cl-green {
    color: var(--cl-green);
}

.cl-red {
    color: var(--cl-red);
}

.cl-light-grey {
    color: var(--cl-light-grey);
}

.cl-dark-grey {
    color: var(--cl-dark-grey);
}

.cl-light-green {
    color: var(--cl-light-green);
}

.cl-yellow {
    color: var(--cl-yellow);
}

.cl-invert {
    color: var(--cl-black);
}

.fw-400 {
    font-weight: 400!important;
}

.fw-500 {
    font-weight: 500!important;
}

.fw-600 {
    font-weight: 600!important;
}

.fw-700 {
    font-weight: 700!important;
}

.fw-900 {
    font-weight: 900!important;
}

.gr {
    display: grid;
}

.fx {
    display: flex;
}

.fx-dir-c {
    flex-direction: column;
}

.fw-w {
    flex-wrap: wrap;
}

.ai-c {
    align-items: center;
}

.ai-fs {
    align-items: flex-start;
}

.ai-fe {
    align-items: flex-end;
}

.jc-c {
    justify-content: center;
}

.jc-sb {
    justify-content: space-between;
}

.jc-fs {
    justify-content: flex-start;
}

.jc-fe {
    justify-content: flex-end;
}

.as-fe {
    align-self: flex-end;
}

.h-100p {
    height: 100%;
}


.ta-r {
    text-align: right;
}

.ta-c {
    text-align: center;
}

.g-3 {
    gap: 3px;
}

.g-5 {
    gap: 5px;
}

.g-7 {
    gap: 7px;
}

.g-8 {
    gap: 8px;
}

.g-9 {
    gap: 9px;
}

.g-10 {
    gap: 10px;
}

.g-12 {
    gap: 12px;
}

.g-13 {
    gap: 13px;
}

.g-14 {
    gap: 14px;
}

.g-15 {
    gap: 15px;
}

.g-18 {
    gap: 18px;
}

.g-20 {
    gap: 20px;
}

.g-25 {
    gap: 25px;
}

.g-30 {
    gap: 30px;
}

.g-45 {
    gap: 45px;
}

.g-50 {
    gap: 50px;
}

.g-55 {
    gap: 55px;
}

.g-120 {
    gap: 120px;
}

.fs-10 {
    font-size: 10px;
}

.fs-12 {
    font-size: 12px;
}

.fs-16 {
    font-size: 16px;
}

.fs-20 {
    font-size: 20px;
}

.fs-32 {
    font-size: 32px;
}

.icon {
    width: 24px;
}

h1 {
    font-size: 32px;
}

h3 {
    font-size: 20px;
    font-weight: 700;
}

b {
    font-weight: 600;
}

.sel {
    border-radius: 10px;
    width: 100%;
    max-width: 240px;
    min-height: 44px;
    height: 44px;
    background-color: var(--cl-white);
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    border: 1px solid var(--cl-light-grey);
    overflow: hidden;
    caret-color: transparent;
    color: var(--cl-black);
}

.sel[readonly],
.sel[readonly] .sel-opt {
    background-color: var(--cl-light);
    color: var(--cl-grey);
}

.sel.visited {
    color: var(--cl-black);
}

.sel-opt {
    cursor: pointer;
    padding: 12px 20px;
    font-weight: 400;
    line-height: 20px;
}

.sel-opt-group {
    padding: 12px 20px;
    cursor: default;
    display: none;
}

.sel.active .sel-opt-group ~ .sel-opt {
    padding-left: 30px;
}

.sel.active .sel-opt.hidden,
.sel.active .sel-opt-group.hidden {
    display: none;
}

.sel.active .sel-opt-group {
    display: block;
}

.darktheme .sel-opt-group {
    color: var(--cl-white);
}

a.sel-opt {
    display: block;
}

.sel-container {
    top: -1px;
    left: -1px;
    width: 100%;
    background-color: var(--cl-white);
    border-radius: 10px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sel.to-top.active {
    margin-bottom: 2px;
}

.sel.to-top .sel-container {
    top: initial;
    bottom: -3px;
}

/*.sel.active .sel-opt:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-top: 1px solid var(--cl-light-grey);
}

.sel.active .sel-opt:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-bottom: 1px solid var(--cl-light-grey);
}*/

.sel.active {
    border-color: transparent;
    overflow: initial;
    z-index: 22;
    color: var(--cl-black);
}

.sel.active .sel-container {
    position: absolute;
    border-radius: 10px;
    border: 1px solid var(--cl-light-grey);
}

.sel.active .sel-opt {
    display: flex;
    /*border-left: 1px solid var(--cl-light-grey);
    border-right: 1px solid var(--cl-light-grey);*/
}

.sel-opt:not([selected]) {
    display: none;
}

.sel .sel-opt {
    position: relative;
}

.sel .sel-container::after {
    content: "";
    width: 10px;
    height: 5px;
    background: url("../images/arrow-down.svg") no-repeat center;
    position: absolute;
    top: 20px;
    bottom: 0;
    right: 18px;
    cursor: pointer;
}

.sel.active .sel-opt[selected] {
    color: var(--cl-orange);
}

.sel:not(.active) .sel-opt[initial] {
    color: var(--cl-grey);
}

@keyframes fade {
    from {
        opacity: 0;
    } to {
        opacity: 1;
    }
}

.tabs {
    display: flex;
}

.tabs__item {
    width: 100%;
    text-align: center;
    font-weight: 400;
    font-size: 20px;
    color: var(--cl-grey);
    border-bottom: 1px solid var(--cl-light-grey);
    padding-bottom: 16px;
    cursor: pointer;
}

.tabs__item.active {
    border-color: var(--cl-dark-grey);
    color: var(--cl-dark-grey);
}

.tabs__content {
    display: none;
    animation: fade 0.5s forwards;
}

.tabs__content.active {
    display: block;
}

.tabs__content.active.fx {
    display: flex;
}

.tabs__content.active.gr {
    display: grid;
}

.tabs__control {
    display: none;
}

table {
    border-collapse: collapse;
}

table * {
    font-weight: 400;
}

table thead td,
table thead th {
    padding: 0 7px 20px 7px;
    color: var(--cl-grey);
}

table tbody td,
table tbody th {
    padding: 15px 7px;
}

table td,
table th {
    border-bottom: 1px solid var(--cl-light-grey);
}

table tr td:not(.ta-c):first-of-type,
table tr th:not(.ta-c):first-of-type {
    padding-left: 15px;
}

table tr td:has(> div):first-of-type,
table tr th:has(> div):first-of-type {
    padding-left: 0!important;
}

table tbody tr:last-child td,
table tbody tr:last-child th {
    border: none;
}

table tfoot  {
    transform: translateY(10px);
}

table tfoot tr * {
    border-bottom: none;
    text-align: left;
    padding: 20px 0;
    font-weight: 700;
    background-color: var(--cl-light);
}

table tfoot tr *:first-of-type {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

table tfoot tr *:last-of-type {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

input,
button,
textarea {
    border-radius: 10px;
    padding: 10px 16px 10px 20px;
    font-weight: 400;
    height: 44px;
    outline: none;
    box-sizing: border-box;
}

button {
    cursor: pointer;
    border: none;
    text-align: center;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--cl-light-grey);
    -moz-appearance: textfield;
}

button {
    background-color: var(--cl-light-grey);
}

textarea {
    resize: none;
    height: initial;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="color"] {
    background: none;
    border: none;
    width: 23px;
    height: 26px;
    cursor: pointer;
    padding: 0;
    vertical-align: middle;
}

input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--cl-input-orange);
    border: none;
}

input[type="checkbox"] {
    border-radius: 3px;
    accent-color: var(--cl-input-orange);
    width: 16px;
    height: 16px;
    padding: 0;
}

input[type="range"] {
    accent-color: var(--cl-input-orange);
}

input[readonly] {
    background-color: var(--cl-light);
    color: var(--cl-grey);
}

input.invalid,
textarea.invalid,
.sel:not(.active).invalid  {
    border-color: var(--cl-red);
}

input.invalid::placeholder,
textarea.invalid::placeholder,
.sel:not(.active).invalid {
    color: var(--cl-red);
}

input[type="checkbox"]:not(:checked).invalid {
    -webkit-box-shadow: 0px 0px 0px 1px var(--cl-red);
    -moz-box-shadow: 0px 0px 0px 1px var(--cl-red);
    box-shadow: 0px 0px 0px 1px var(--cl-red);border: none;
    appearance: none;
}

.invalid:not(.sel) {
    color: var(--cl-red);
}

.in-d {
    padding-right: 45px;
    z-index: 21;
}

.in-d:focus,
.in-d:active {
    position: relative;
}

.in-d-cnt:has(.in-d:not(:focus)) .datepicker {
    display: none;
}

.in-d-cnt {
    position: relative;
}

.in-d-cnt::after {
    content: "";
    position: absolute;
    background-image: url('../images/calendar.svg');
    background-repeat: no-repeat;
    width: 24px;
    height: 24px;
    top: 0;
    bottom: 0;
    right: 20px;
    margin: auto 0;
}

.in-d-cnt:has(.datepicker.active)::after {
    z-index: 21;
}

.btn-dflt {
    color: var(--cl-white);
    background-color: var(--cl-orange);
}

.btn-white {
    border: 1px solid var(--cl-black);
    color: var(--cl-black);
    background-color: var(--cl-white);
}

.btn-black {
    border: 1px solid var(--cl-black);
    color: var(--cl-white);
    background-color: var(--cl-black);
}

.dropdown {
    border-radius: 10px;
    border: 1px solid var(--cl-light-grey);
    height: 44px;
    box-sizing: border-box;
}

.dropdown__arrow {
    width: 12px;
}

.dropdown.open:has(.dropdown__body) {
    height: auto;
    border-color: var(--cl-black);
}

.dropdown.static {
    height: auto;
}

.dropdown__body {
    display: none;
    margin: 5px 10px 18px 46px;
}

.dropdown__head {
    padding: 12px 20px;
    cursor: default;
}

.dropdown.open > .dropdown__body,
.dropdown.static > .dropdown__body {
    display: block;
}

body:has(.modal.open) {
    overflow: hidden;
}

.modal {
    display: none;
    position: fixed;
    background-color: #1A1A1AA6;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    justify-content: center;
    align-items: center;
    padding: 50px;
    box-sizing: border-box;
}

.modal.open {
    display: flex;
}

.modal__content {
    background-color: var(--cl-white);
    border-radius: 15px;
    box-shadow: 0px 0px 66px 0px #474747AB;
    padding: 20px 20px 32px 40px;
}

.modal__content__body {
    margin-top: 20px;
}


.w-10p {
    width: 10%;
}

.w-20p {
    width: 20%;
}

.w-30p {
    width: 30%;
}

.w-35p {
    width: 35%;
}

.w-40p {
    width: 40%;
}

.w-50p {
    width: 50%;
}

.w-60p {
    width: 60%;
}

.w-65p {
    width: 65%;
}

.w-70p {
    width: 70%;
}

.w-80p {
    width: 80%;
}

.w-90p {
    width: 90%;
}

.w-100p {
    width: 100%;
}

.darktheme .sel,
.darktheme .sel-container {
    background-color: var(--cl-black);
}

.darktheme .sel.active,
.darktheme .sel.active .sel-container {
    background-color: #1D1D1D;
}

.darktheme .sel-opt {
    color: var(--cl-white);
}

.darktheme .sel:not(.active).invalid .sel-opt[selected] {
    color: var(--cl-red);
}

.darktheme .sel::after {
    filter: invert(1);
}

.darktheme .sel.active .sel-opt {
    border: none;
}

.darktheme .sel {
    border-color: #333333;
}

.darktheme .cl-invert {
    color: var(--cl-white);
} 

.darktheme .tabs__item {
    border-bottom-color: var(--cl-dark-grey);
}

.darktheme .tabs__item.active {
    color: var(--cl-white);
    border-bottom-color: var(--cl-white);
}

.darktheme input {
    border-color: var(--cl-dark-grey);
    background-color: transparent;
    color: var(--cl-white);
}

.darktheme input[readonly] {
    background-color: var(--cl-dark-bg);
    color: var(--cl-darktheme-grey);
} 

input[type="radio"] {
    appearance: none;
    position: relative;
    padding: 0;
    border-radius: 50%;
    border: none;
}

input[type="radio"]::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    border-radius: 50%;
    border: 1px solid var(--cl-light-grey);
    background-color: var(--cl-white);
}

input[type="radio"]:checked:after {
    background-color: var(--cl-main)!important;
}

.darktheme input[type="radio"]::after {
    border-color: var(--cl-dark-grey);
    background-color: var(--cl-black);
}

input[type="checkbox"] {
    appearance: none;
    position: relative;
    padding: 0;
    border-radius: 2px;
    border: none;
}

input[type="checkbox"]::after {
    content: '';
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    border-radius: 2px;
    border: 1px solid var(--cl-light-grey);
    background-color: var(--cl-white);
    color: var(--cl-white);
}

input[type="checkbox"]:checked:after {
    content: '';
    background-color: var(--cl-main)!important;
    background-image: url(../images/check.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border-color: transparent;
}

.darktheme input[type="checkbox"]::after {
    border-color: var(--cl-dark-grey);
    color: var(--cl-black);
    background-color: var(--cl-black);
}

.darktheme textarea {
    border-color: var(--cl-dark-grey);
    color: var(--cl-white);
    background-color: var(--cl-black);
}

.darktheme table tfoot tr * {
    background-color: var(--cl-dark-bg);
    color: var(--cl-white);
}

.darktheme .btn-white {
    color: var(--cl-white);
    border-color: var(--cl-white);
    background-color: transparent;
}

.darktheme .sel[readonly],
.darktheme .sel[readonly] .sel-opt {
    /*background-color: transparent;*/
    background-color: #1A1A1A;
}

.darktheme *::-webkit-scrollbar-track,
.darktheme::-webkit-scrollbar-track {
    background: #252525;
}
  
.darktheme *::-webkit-scrollbar-thumb,
.darktheme::-webkit-scrollbar-thumb {
    border-color:var(--cl-white);
}

.darktheme .sel .sel-container::after {
    filter: invert(0.8);
}

.darktheme .sel:has(.sel-opt[initial]:is([selected])) .sel-container::after {
    filter: invert(0.5);
}

.darktheme input[type="checkbox"]:checked:after {
    background-image: url(../images/check-dark.svg);
}

.darktheme {
    --cl-white: #bbbbbb;
}

* {
    -webkit-tap-highlight-color: transparent;
}
  
button, a, [role="option"] {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}