﻿/*
    Файл верстки контролов на страницах
    @ Альва ИТ 2022
*/

a {
    color: #AAAAAA;
}

/*a:hover {
    color: var(--theme-secondary);
    transition-delay: 0.2s;
}
*/

.form-group {
    position: relative;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.form-control {
    border: none;
    background: #EBEBEB;
    border-radius: 10px;
    padding-top: 20px;
    outline: none;
    font-size: 16px;
    height: 48px;
}

.form-control:not(:focus):invalid {
    background: #FFDDDD;
    border: 0.5px solid red;
    border: none;
}

.form-control:focus:invalid {
    background: white;
    border: 0.5px solid red;
}

.form-control:hover {
    background: #D9D9D9;
    _border: 0.5px solid red;
}

.form-control:focus {
    background: white;
    border: 1px solid #BBBBBB;
    box-shadow: 0 0 0 0 rgba(99 99 99 / 25%) !important;
}

.form-control.disabled {
    padding-right: 2.25rem !important;
    background-image: url(/images/dn-lock.svg);
    background-repeat: no-repeat;
    background-position: right 1rem center;
    _background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control-placeholder {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 5px;
    left: 0;
    pointer-events: none;
    font-family: Gilroy;
    text-overflow: ellipsis;
    overflow: hidden;
}

.form-control-placeholder::after {
    font-size: 15px;
    color: #999999;
    line-height: 1.2;
    content: attr(data-placeholder);
    display: block;
    width: 100%;
    position: absolute;
    top: 11px;
    left: 10px;
    padding-left: 5px;
    -webkit-transition: all 0.4s;
    -o-transition: all 0.4s;
    -moz-transition: all 0.4s;
    transition: all 0.4s;
}

.form-control:focus + .form-control-placeholder::after {
    top: 5px;
    font-size: 9px;
}

.form-control:focus + .form-control-placeholder::before {
    width: 100%;
}

.form-control + .form-control-placeholder + .text-danger {
    font-size: 10px;
    padding-left: 10px;
}

.has-val.form-control {
    _background-color: rgba(152, 220, 143, 0.25);
    background-color: rgb(225 242 223);
}
/*.has-val.form-control + .form-control-placeholder::after, .has-val-always.form-control + .form-control-placeholder::after {
    top: 5px;
    font-size: 10px;
}

.has-val.form-control + .form-control-placeholder::before {
    width: 100%;
}
*/
/* text danger */
.form-control + .form-control-placeholder + .text-danger {
    position: absolute;
    bottom: 2px;
}

.form-group-header {
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
    padding-top: 17px;
}

.form-group-line {
    padding-top: 10px;
}

div:not([class^="nobrand"]) .form-control-label, div:not([class^="nobrand"]) .control-label {
    position: absolute;
    left: 8px;
    font-size: 12px;
    top: 3px;
    z-index: 1;
}

div:not(.nobrand) .control-label-tumbler {
    position: absolute;
    left: 35px;
    font-size: 12px;
    top: 2px;
    z-index: 1;
}

.form-control-ext-button {
    position: absolute;
    right: 10px;
    font-size: 12px;
    top: 12px;
    z-index: 1;
}

.control-label-link {
    position: absolute;
    right: 35px;
    top: 20px;
}
.control-label-link::after {
    cursor: pointer;
    content: '';
    background: url('/images/external-link.svg');
    background-size: cover;
    display: inline-block;
    width: 0.6em;
    height: 0.75em;
    top: 0.05em;
    position: relative;
    left: 0.2em;
    margin-right: 0.2em;
    _opacity: .5;
}
/* SELECT2 */
.select2-selection {
    border: none;
    background: #EBEBEB;
    border-radius: 10px;
    padding-top: 0.9rem;
    outline: none;
}

.select2-container .select2-selection--single {
    border: none !important;
    background: #EBEBEB;
    border-radius: 10px;
    padding-top: 20px;
    outline: none;
    font-size: 16px;
    height: 48px !important;
    z-index: 1000;
}

.form-group .select2-container .select2-selection--single, .form-group .select2-container .select2-selection--multiple {
    background: #EBEBEB;
}

.form-group.has-val .select2-container .select2-selection--single, .form-group.has-val .select2-container .select2-selection--multiple {
    background: var(--control-has-val);
}

.select2-selection__arrow {
    top: 15px !important;
}

.select2-results__option.select2-results__option--highlighted {
    background-color: var(--theme-secondary) !important;
    color: black !important;
}

.select2-selection__clear {
    color: #999999;
}

/* BUTTON */
.page-button-group .page-button-small:not(:last-child), .page-button-group .page-button:not(:last-child) {
    margin-right: 10px;
    margin-bottom: 5px;
}

.page-button-small {
    font-weight: 400;
    padding: 3px 10px 3px 10px;
    font-size: 13px;
    _line-height: 21px;
    border-radius: 5px;
    white-space: nowrap;
}

.page-button {
    font-weight: 400;
    padding: 3px 12px;
    font-size: 14px;
    border-radius: 10px;
    white-space: nowrap;
    text-align: center;
    outline: none;
    _border: 1px solid rgba(0, 0, 0, 0.2 );
    border: 1px solid transparent;
    margin-bottom: 5px;
    white-space: nowrap;
}

a.page-button {
    display: block;
    _padding: 5px 15px;
}
/*button.page-button, button.page-button-small {
    outline: none;
    border: 1px solid transparent;
}
*/
.page-button-primary {
    color: var(--btn-text-primary);
    background: var(--btn-bg-primary);
}

a.page-button-primary:hover {
    color: #FFFFFF !important;
}

.page-button-primary-2 {
    color: var(--btn-text-primary);
    background: var(--theme-secondary-2);
}

.page-button-primary:hover, a.page-button-primary:hover {
    color: white;
    background: var(--btn-bg-primary-hover);
}

.page-button-secondary {
    color: var(--btn-text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: var(--btn-bg-secondary);
}

.page-button-secondary:not(.disabled):hover {
    color: rgba(255, 207, 72, 1);
    border: 1px solid rgba(255, 207, 72, 1);
}

.page-button-transparent {
    color: var(--btn-text-primary);
    background: transparent;
}

.page-button-green {
    color: white;
    background: #57994E;
}

.page-button-green:hover {
    color: white;
    background: #43793c;
}

/* BUTTON-TOGGLE */

.page-button-group-toggle {
    display: inline-flex;
    vertical-align: middle;
}

.page-button-group-toggle > .page-button-toggle:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-right: 0;
}

.page-button-group-toggle > .page-button-toggle:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: 0;
}

.page-button-toggle {
    color: var(--btn-text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: var(--btn-bg-secondary);
}

.page-button-toggle:not(.active):hover {
    color: var(--theme-secondary);
    border: 1px solid var(--theme-secondary);
}

.page-button-toggle.active {
    color: var(--btn-text-primary);
    background: var(--btn-bg-primary);
}

.page-panel {
    border-radius: 10px;
    font-weight: 400;
    padding: 3px 12px;
    font-size: 14px;
    border-radius: 10px;
    white-space: nowrap;
    text-align: center;
    outline: none;
    border: 1px solid transparent;
    margin-bottom: 5px;
    white-space: nowrap;
    text-align: left;
}
.page-panel-green {
    color: white;
    background: #43793c;
}
.page-panel-yellow {
    color: white;
    background: var(--btn-bg-primary-hover);
}

/* PICKOUT */
.pickout {
    width: 100%
}

.pk-form {
    font-family: Gilroy;
    font-size: 16px;
    margin-bottom: 0.5rem;
    _height: 69px;
    _margin: 0px;
}

.pk-field, .pk-field.-clean {
    padding-top: 19px;
    padding-left: 12px;
    border-radius: 10px;
    height: 48px;
    background: #EBEBEB;
    border: none;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.has-val .pk-field, .has-val .pk-field.-clean {
    background: var(--control-has-val);
}

span:not(:empty) + .pk-field, span:not(:empty) + .pk-field.-clean {
    background: #FFDDDD;
}

span:not(:empty) + .pk-field + .pk-arrow {
    background: #FFDDDD;
}

.pk-field:hover {
    background: #D9D9D9;
}

.pk-field.-clean:hover + .pk-arrow, .pk-arrow.-clean:hover {
    background: #ECECEC;
    color: #aaa;
}

.has-val .pk-field.-clean:hover + .pk-arrow, .has-val .pk-arrow.-clean:hover {
    background: var(--control-has-val);
}

.pk-arrow.-clean {
    height: 48px;
    bottom: inherit;
    background: #EBEBEB;
}

.pk-arrow.-clean:hover {
    background: #D9D9D9;
}

.has-val .pk-arrow.-clean {
    background: var(--control-has-val);
}

.pk-arrow::before {
    margin-top: 15px;
    margin-left: 8px;
    font-size: 12px;
    content: '▼';
    transform: none;
}

.pk-tag > .txt:before {
    display: none;
}

.pk-modal {
    border-radius: 10px;
    padding: 5px 15px 15px 15px;
}

.pk-option {
    padding-top: 5px;
    padding-bottom: 5px;
    background: #FFFFFF !important;
    border: 1px solid white !important;
}

.pk-option:hover {
    color: #FFCF48;
    border: 1px solid white !important;
}

.pk-modal .head {
    padding-bottom: 5px;
    font-size: 12px;
    background: #FFFFFF !important;
}

.pk-modal .main {
    padding-left: 0px;
    background: #FFFFFF !important;
}

.danger .pk-field, .danger .pk-arrow {
    background: #FFDDDD;
}

.pk-tag > .txt {
    background: transparent;
}

/* CHAIN */
.page-chain-label {
    position: absolute;
    left: -20px;
    top: 30px;
    width: 69px;
    font-size: 8px;
    font-family: 'Montserrat';
    align-items: center;
    text-align: center;
    color: #7B7B7B;
}

.page-chain-label-yellow {
    color: var(--theme-secondary);
}

.page-colored-box {
    border-radius: 10px;
    background: var(--bg-colored-box);
    border: none;
}


/* MONTH PICKER */
/*input.monthpicker {
    background: url(../images/sk_date.svg) no-repeat;
    background-position: center right;
} */

.monthpicker, .monthpicker:hover, .monthpicker:focus, .monthpicker:active {
    border: none !important;
    border-bottom: 1px dashed var(--bg-red) !important;
    width: 130px;
}

.month-picker-month-table .ui-button {
    width: 6.2em;
    margin: .2em;
}

.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {
    border: 1px solid var(--bg-red);
    background: none;
    color: #777620;
}

.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover {
    border: 1px solid var(--text-red);
    background: var(--bg-red);
    font-weight: normal;
    color: #fff;
}

.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default, .ui-button, html .ui-button.ui-state-disabled:hover, html .ui-button.ui-state-disabled:active {
    border: 1px solid #c5c5c5;
    background: #fff;
    font-weight: normal;
    color: #454545;
}

.ui-widget-header {
    border: 1px solid var(--bg-gray);
    background: #fff;
    color: #333;
    font-weight: bold;
}

    .ui-widget-header tr:hover {
        background: #fff !important;
    }

.monthpicker .month-picker-title a, .monthpicker .month-picker-title {
    background: #fff;
}

    .monthpicker .month-picker-title:hover, .monthpicker .month-picker-title a::after hover, month-picker-year-table tra:hover:focus:active {
        background: #fff;
    }

.monthpicker table tbody tr:hover, .monthpicker .ui-button:hover {
    background: #fff !important;
}

.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus, .ui-button:hover, .ui-button:focus {
    border: 1px solid #cccccc;
    background: #fff;
    font-weight: normal;
    color: #2b2b2b;
}

.month-picker-next a, .month-picker-previous a {
    padding: 3px 0px 0px 0px !important;
}
/* /MONTH PICKER */

.grey-text {
    color: lightgrey;
}

.card {
    border: 1px solid #E0E0E0;
    border-radius: 20px;
    font-size: 16px;
}

.card-tabs {
    border: 1px solid #E0E0E0;
    border-top: none;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    font-size: 16px;
}

.card:hover {
    filter: drop-shadow(0px 4px 20px rgba(0, 0, 0, 0.3));
}

.card-header {
    background-color: transparent;
}

.card-table {
    display: table;
    padding: 5px;
}

.card a {
    color: #000000;
}

    .card a:hover {
        color: var(--theme-secondary);
    }

.card-table > div {
    display: table-row;
}

    .card-table > div > div {
        display: table-cell;
    }

    .card-table > div > div {
        font-weight: 400;
        font-size: 16px;
        line-height: 169.7%;
        padding-right: 10px;
    }

.card-table .text {
    color: #000000;
}

.card-table .label {
    color: #AAAAAA;
}


.table.noborder, .table.noborder * {
    border-color: transparent !important;
    border-bottom-color: transparent !important;
}

/* Articles */
:root {
    --dn-article-font-size-text: 20px;
    --dn-article-font-size-heading: 25px;
    --dn-article-font-size-list: 21px;
}

@media (min-width: 1200px) {
    :root {
        --dn-article-font-size-text: 20px;
        --dn-article-font-size-heading: 25px;
        --dn-article-font-size-list: 21px;
    }

    .dn-article-container {
        max-width: 900px;
        width: 100%;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    :root {
        --dn-article-font-size-text: 18px;
        --dn-article-font-size-heading: 23px;
        --dn-article-font-size-list: 19px;
    }

    .dn-article-container {
        max-width: 900px;
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    :root {
        --dn-article-font-size-text: 16px;
        --dn-article-font-size-heading: 21px;
        --dn-article-font-size-list: 17px;
    }

    .form-button-dark {
        width: -webkit-max-content;
        width: -moz-max-content;
        width: max-content;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    :root {
        --dn-article-font-size-text: 14px;
        --dn-article-font-size-heading: 19px;
        --dn-article-font-size-list: 15px;
    }
}

@media (max-width: 575.98px) {
    :root {
        --dn-article-font-size-text: 14px;
        --dn-article-font-size-heading: 19px;
        --dn-article-font-size-list: 15px;
    }
}

@media (min-width: 1200px) {

    .form-button-dark {
        width: -webkit-max-content;
        width: -moz-max-content;
        width: max-content !important;
    }
}

@media (min-width: 992px) {

    .form-button-dark {
        width: -webkit-max-content;
        width: -moz-max-content;
        width: max-content !important;
    }
}

    .dn-article, .dn-article p {
        font-family: 'Gilroy';
        font-style: normal;
        font-weight: 300;
        font-size: var(--dn-article-font-size-text);
        line-height: 150%;
        text-align: justify;
    }

    .dn-article-h1 {
        font-family: 'Gilroy';
        font-size: calc(var(--dn-article-font-size-heading) * 1.3);
        font-weight: 500;
        line-height: 150%;
        letter-spacing: 0em;
        text-align: left;
    }

    .dn-article-date {
        font-family: 'Gilroy';
        font-style: normal;
        font-weight: 300;
        font-size: calc(var(--dn-article-font-size-text) * 0.9);
        line-height: 150%;
        letter-spacing: 0em;
        text-align: left;
    }

    .dn-article h2 {
        font-family: 'Gilroy';
        font-style: normal;
        font-weight: 500;
        font-size: var(--dn-article-font-size-heading);
        line-height: 150%;
        counter-increment: heading-counter;
        text-align: start;
    }

.dn-article h2::before {
    content: counter(heading-counter);
    /*background: #FFCF48;*/
    background: radial-gradient(circle, rgba(255,207,72,1) 0%, rgba(255,207,72,1) 50%, rgba(255,240,197,1) 51%);
    width: calc(var(--dn-article-font-size-list) * 3);
    height: calc(var(--dn-article-font-size-list) * 3);
    border-radius: 50%;
    margin-right: 1rem;
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 500;
    font-size: var(--dn-article-font-size-list);
    line-height: 300%;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}

    .dn-article q {
        font-family: 'Gilroy';
        font-style: normal;
        font-weight: 500;
        font-size: var(--dn-article-font-size-heading);
        line-height: 150%;
        display: table;
        border-spacing: 20px 0px;
        margin-top: 30px;
        margin-bottom: 30px;
        margin-left: -20px;
        text-align: start;
    }

        .dn-article q::after {
            content: none;
        }

        .dn-article q::before {
            content: '.';
            background: #FFCF48;
            color: #FFCF48;
            width: 7px;
            height: 100%;
            border-radius: 20px;
            display: table-cell;
            vertical-align: middle;
            text-align: center;
        }

    .dn-article em {
        font-family: 'Gilroy';
        font-style: normal;
        font-weight: 300;
        font-size: var(--dn-article-font-size-heading);
        line-height: 150%;
        display: block;
        background: #FFF9E7;
        border-radius: 5px;
        padding: 25px;
        text-align: start;
        margin-bottom: 16px;
    }

    .dn-article-image-container {
        position: relative;
        text-align: center;
        background: #F7F7F7;
    }

    .dn-article-image {
        max-height: 500px;
        max-width: 800px;
        background: #F7F7F7;
        border-radius: 10px;
        height: 100%;
        width: 100%;
    }

    .dn-article-image-bottom-left-text {
        position: absolute;
        bottom: 26px;
        left: 26px;
        padding: 10px;
        font-family: 'Gilroy';
        font-style: normal;
        font-weight: 400;
        font-size: var(--dn-article-font-size-text);
        line-height: 100%;
        display: flex;
        align-items: center;
        text-align: center;
        background: #FFFFFF;
        border-radius: 15px;
    }

    .dn-article ul {
        list-style: none;
    }

        .dn-article ul li {
            font-size: var(--dn-article-font-size-list);
            line-height: 150%;
            padding-left: .5em;
            text-align: start;
        }

            .dn-article ul li::marker {
                content: '◇';
                color: #FFCF48;
                font-size: var(--dn-article-font-size-list);
                font-weight: 900;
                line-height: 150%;
            }

    .dn-article ol {
        list-style: none;
    }

        .dn-article ol li {
            font-size: var(--dn-article-font-size-list);
            line-height: 150%;
            margin-left: calc(var(--dn-article-font-size-list) * -2);
            text-align: start;
            margin-bottom: 10px;
        }

            .dn-article ol li::before {
                content: counter(list-item);
                background: #FFCF48;
                width: calc(var(--dn-article-font-size-list) * 2);
                height: calc(var(--dn-article-font-size-list) * 2);
                border-radius: 50%;
                margin-right: 0.5rem;
                font-family: 'Gilroy';
                font-style: normal;
                font-weight: 500;
                font-size: var(--dn-article-font-size-list);
                line-height: 200%;
                display: inline-block;
                text-align: center;
            }

    .dn-form-color {
        --tw-bg-opacity: 1;
        background-color: rgba(242,206,86,var(--tw-bg-opacity));
    }

    .dn-form-title {
        font-family: 'Gilroy';
        font-style: normal;
        font-weight: 500;
        font-size: calc(var(--dn-article-font-size-heading) * 1.3);
        line-height: 150%;
        color: #000000;
    }

    .dn-form-text {
        font-family: 'Gilroy';
        font-style: normal;
        font-weight: 300;
        font-size: var(--dn-article-font-size-text);
        line-height: 150%;
        color: #000000;
    }

    .dn-form-button {
        font-family: 'Gilroy';
        font-style: normal;
        font-weight: 400;
        font-size: var(--dn-article-font-size-list);
        line-height: 150%;
        color: #FFCF48;
        border-radius: 5px;
        align-self: center;
        max-height: 68px;
    }

    .form-button-dark {
        --tw-text-opacity: 1;
        color: rgba(242,206,86,var(--tw-text-opacity));
        --tw-border-opacity: 1;
        border-color: rgba(38,56,41,var(--tw-border-opacity));
        --tw-bg-opacity: 1;
        background-color: rgba(38,56,41,var(--tw-bg-opacity));
        width: 100%;
        min-width: 230px;
        border-width: 2px;
        border-style: solid;
        padding: 16px;
        transition-duration: .3s;
        outline: 0 !important;
    }

        .form-button-dark:active {
            --tw-text-opacity: 1;
            color: rgba(38,56,41,var(--tw-text-opacity));
            --tw-bg-opacity: 1;
            background-color: rgba(255,255,255,var(--tw-bg-opacity));
        }

        .form-button-dark:hover {
            --tw-text-opacity: 1;
            color: rgba(38,56,41,var(--tw-text-opacity));
            background-color: rgba(38,56,41,.33);
        }

        .form-button-dark:focus {
            border-style: dashed !important;
        }