:root {
    --green: #4A9D86;
    --red: red;
    --orange: #F19F71;
}


@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 100;
    src: url(../fonts/Roboto-Thin.ttf );
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    src: url(../fonts/Roboto-Light.ttf );
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/Roboto-Regular.ttf);
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    src: url(../fonts/Roboto-Medium.ttf);
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url(../fonts/Roboto-Bold.ttf);
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 900;
    src: url(../fonts/Roboto-Black.ttf);
}

*{
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

html * /* override x.xhtml.ru style */
{
    scrollbar-color: var(--green) #D9D9D9;
}



body{
    font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
    font-weight: 400;
}

*::-webkit-scrollbar,
html *::-webkit-scrollbar {
    height: 12px;
    width: 12px;
}
*::-webkit-scrollbar-track,
html *::-webkit-scrollbar-track {
    background: #D9D9D9;
}
*::-webkit-scrollbar-thumb,
html *::-webkit-scrollbar-thumb {
    background-color: #4A9E86;
}


html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
    font-family: Inter;
    box-sizing: border-box;
    color: #333;
}

h1{
    font-size: 2rem;
}

h2, h3{
    margin-bottom: 20px;
}

div, div a{
    color: var(--green);
}

.logo{
    margin-right: 5rem;
}

.logo img{
    height: 80px;
}

.header__wraper{
    height: 150px;
    background-color: white;
}

.title{
    color: var(--green);
    text-align: center;
    width: 100%;
}

.header-row{
    display: flex;
    align-items: center;
    position: relative;
    height: 80px;
    margin-bottom: 20px;
}

header{
    width: 100%;
    height: 108px;
    margin-bottom: 50px;
    box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.7);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    z-index: 100;
    background-color: white;
}

.user_info{
    width: 300px;
    font-size: 0.9rem;
    padding-left: 5rem;
}

.user_info_line{
    background-color: var(--green);
    margin-bottom: 35px;
    padding: 0.85rem;
    border-radius: .3rem;
    color: #fff;
    font-size: 1.2rem;
}

.content{
    max-width: 1140px;
    margin: auto;
}

.mb10{
    margin-bottom: 10px;
}

.mb15{
    margin-bottom: 15px;
}

.mb20{
    margin-bottom: 20px;
}

/*form*/
input:focus, select:focus, textarea:focus{
    outline: thin solid var(--green);
}

#statementForm{
    position: relative;
}

#statementForm input, #statementForm textarea, .user_profile textarea,  input, select{
    border: solid 1px #DEE2E6;
    border-radius: 0.5rem;
    padding: .85rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    width: 100%;
    color: var(--green);
}

#statementForm #id_object_gee, #statementForm #id_attachment {
    margin-bottom: 0.5rem;
}

#statementForm label, .success {
    color: var(--green);
    font-size: 1.2rem;
}

.success, .policy{
    margin-bottom: 1.5rem;
}

.success a, policy a{
    color: var(--green);
    font-size: 1.2rem;
}

.profile_buttons{
    background-color: var(--green);
    color: #fff;
    padding: 5px;
    border-radius: .3rem;
    cursor: pointer;
    display: flex;
}

.message{
    background-color: var(--green);
    padding: .5rem;
    color: #fff;
    border-radius: .3rem;
    font-size: 1.2rem;
    margin-bottom: 20px;
    width: max-content
}

.profile_buttons span{
    margin: auto;
    color: #fff;
}

.button_block a{
    text-decoration: none;
}

.red{
    color: var(--red);
}

#extra-fields-block{
    padding: 20px 20px;
    background-color: #f9f9f9;
    margin-bottom: 1rem;
    border-left: 4px solid var(--green);
    padding-left: 30px;
}


.submodul_field label::after,
.service_field label::after,
.mobile_phone_number_field label::after,
.question-title::after{
    color: var(--red);
    content:' *';
}



.required-star {
    color: var(--red);
    margin-left: 2px;
    font-weight: bold;
}

.field field_block span{
    color: var(--red);
}

.field.description{
    margin-top: 1rem;
}

.field_block:first-child{
    padding-top: 20px;
}

.field_block{
    /*display: flex;*/
    padding: 20px 20px 0 30px;
}

.field_row{
    margin: 0 auto 0 auto;
    display: block;
    padding: 5px 0;
    width: 85%;
}

.radio-container {
    max-width: 600px;
    margin: 6px 20px 20px 0;
}

.question-title {
    font-size: 1.2rem;
    font-weight: bold;

}

#statementForm .radio-option input{
    border: none;
     border-radius: unset;
     padding: unset;
     font-size: unset;
     margin-bottom: unset;
     margin-top: unset;
     width: unset;
    }

#statementForm .radio-option input:focus{
    outline: none;
}

.radio-group {
    margin-bottom: 20px;
    display: flex;
    }

.radio-option {
    margin: 0 10px 10px 10px;
    }

.radio-option input[type="radio"] {
    margin-right: 10px;
    }

.radio-option label {
    cursor: pointer;
    }
input[type='radio']:checked{
    accent-color: var(--green);
}

/********** селекты*/
.field select.extra-field-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* разрешаем перенос текста внутри опций, где браузер это умеет */
.field select.extra-field-input option {
    white-space: normal;
}
/********** /селекты*/

input #no{
    margin: 5px;
}

.to_hide{
    display: none;
    background-color: #f9f9f9;
    /*margin-bottom: 1rem;*/
    border-left: 4px solid var(--green);
    /*padding-left: 30px;*/
    }

.to_hide.visible {
    display: block;
    }

#extra-fields-block input{
    border: solid 1px #DEE2E6;
    border-radius: 0.5rem;
    padding: .85rem;
    font-size: 1rem;
    /*margin-bottom: 1rem;*/
    margin-top: 0.5rem;
    /*width: 80%;*/
    color: var(--green);
    width: 100%;
}

#statementForm [for="id_middle_name"]::after,
#statementForm [for="id_attachments"]::after{
    content:none;
}

input[type=file]::file-selector-button {
    border: solid 1px #DEE2E6;
    background: #f8f9fa;
    /*cursor: pointer;*/
    transition: background .2s ease-in-out;
    color: var(--green);
    /*font-size: 1.2rem;*/
    border-radius: .3rem;
}

button{
    background-color: var(--green);
    padding: .5rem;
    color: #fff;
    border-radius: .3rem;
    font-size: 1.2rem;
    margin-bottom: 20px;
    cursor: pointer;
}

.errorlist{
    color: var(--red);
    /*color: var(--orange);*/
    position: relative;
    left: 35px;
    margin-bottom: 1rem;
}

.form-error-block{
    background-color: var(--red);
    font-size: 1rem;
    padding: 10px;
    color: #FFF;
    margin-bottom: 20px;
    border-radius: 5px;
}

#attachment-error div{
    color: #fff;
}

.button{
    margin-bottom: 1.5rem;
}

#submitBtn {
    cursor: pointer;
}

#submitBtn:disabled {
    cursor: default;
}

#selected-files-list button{
    background-color: #cc3300;
    font-size: 0.8rem;
    margin-left: 10px;
}

#selected-files-total{
    margin-bottom: 10px;
}

.warning, .warning a {
    font-style: italic;
    color: #808080;
    font-size: 0.9rem;
}

.warning{
    position: relative;
    left: 20px;
}

.hint{
    margin-bottom: 2rem;
}

.hint-box {
    display: none;
    background-color: #f0f7ff;
    border-left: 4px solid #4a90e2;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 4px;
    color: #222;
    margin-bottom: 15px;
}
.hint-box b {
    color: #000;
}
.hint-box .hint-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.additional_buttons_block{
    /*display: block;*/
    display: none;
    padding-top: 20px;
    margin-bottom: 20px;
}

.additional_buttons_block__buttons{
    display: flex;
    text-align: center;
}

.additional_buttons_block__label{
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.buttons{
    border: 1px solid var(--green);
    width: 50px;
    padding: 5px;
    border-radius: .3rem;
    cursor: pointer;
    margin-right: 10px;
}

.user_profile .button{
    border: 1px solid var(--green);
    width: max-content;
    padding: 5px;
    border-radius: .3rem;
    cursor: pointer;
    margin-right: 10px;
}

.user_profile .button a{
    text-decoration: none;
}

.active{
    background-color: var(--green);
    color: #fff;
}

.hide{
    height: 0;
    opacity: 0;
    transition: opacity 0.5s ease-out, height 0.5s ease-out ;
}

.hide label, .hide input{
    height: 0px;
    display: none;
}

.show {
    height: 100px;
    transition: opacity 0.5s ease-out, height 0.5s ease-out ;
    opacity: 1;
    /*display: block;*/
}

.question_mark img{
    width: 15px;
}


.question_mark {
    position: relative;
    display: inline-block;
}

.tooltip {
    position: absolute;
    /*left: calc(100% + 5px);*/
    right: calc(100% + 5px);
    top: calc(100% + 50px);
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 1);
    color: #808080;
    padding: 5px 10px;
    /*border: 1px solid #808080;*/
    border-radius: 3px;
    pointer-events: none;
    display: none;
    /*white-space: nowrap;*/
    z-index: 1000;
    box-shadow: 0 9px 46px 0 rgba(0, 0, 0, 0.3);
    width: 250px;
    font-size: 1.2rem;
}

#statementForm [for="id_check_box"]
{
    display: none;
}

.widget-group:has(> [type="checkbox"]){
    height: 5px;
}

#statementForm [type="checkbox"]
{
    width: 13px;
    position: absolute;

    bottom: -12px;
    accent-color:var(--green);
}

#id_check_box_error{
    position: absolute;
    bottom: -30px;
}

#statementForm [for="id_last_name"]{
}

/*/form*/
.allauth__login h1{
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.allauth__login h1, .allauth__login p{
    margin-bottom: 1rem;
}

.allauth__login [type="checkbox"]{
    width:unset;
}

.allauth__login input::placeholder {
    color: transparent
}

.email_confirmation h1, .email_confirmation p, .email_confirmation form{
    margin-bottom: 30px;
}

.email_confirmation a{
    color: var(--orange);
    text-decoration: none;
}

.allauth__login p{
}

.allauth__logout h1, .allauth__logout p, .allauth__verification_sent h1, .allauth__verification_sent p, .user_profile p, .user_profile h1{
    margin-bottom: 10px;
}

#id_password_helptext{
    font-size: 1.6rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.policy h1, .consent h1{
    text-align: center;
}

.center{
    text-align: center;
}

.policy li, .consent li{
    list-style-type: none;
    margin-bottom: 10px;
    margin-top: 10px;
}

.policy p, .consent p{
    margin-bottom: 10px;
    margin-top: 10px;
}

.policy h2, consent h2{
    margin-top: 40px;
}

.inner_ul{
    text-indent: 30px;
}

/****************************/
table{
    width: 100%;
    border-collapse:collapse;
    border-spacing:0;
    height: auto;
}
table,table td, table th {
    border: 1px solid #e5e5e5;
}
table td,table th {
    padding: 5px;
    /*width: 30px;*/
    height: 35px;
}
table th {
    background: var(--green);
    color: #fff;
    font-weight: normal;
}
/****************************/

.back_red{
    background-color: #DB2A33;
}

.unsent_list__title, .unsent_list__description{
    text-align: center;
    margin-bottom: 10px;
}

td.nam.left {
    vertical-align: middle; /* запасной вариант */
}
td.nam.left form {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
}

.unsent_list__button{
    font-size: 1rem;
}

td.nam.left button {
    margin: 0; /* убираем возможные отступы самой кнопки */
}

.button_block{
    display: block;
    width: 220px;
}

.button_block div {
    margin-bottom: 10px;
}

.help_text_inline{
    padding-top: 2rem;
    margin-bottom: 2rem;
}

/*для доп полей*/
.extra-field-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-left: 6px;
    width: 1.5em;
    height: 1.5em;

    font-size: 0.75em;
    font-weight: bold;

    border-radius: 50%;
    border: 1px solid currentColor;

    cursor: help;
    position: relative;

    /* тут можно играться с цветами/фоном */
    color: #1976d2;
    background-color: #e3f2fd;
}

.extra-field-hint-popup {
    display: none;
    position: absolute;
    z-index: 1000;

    min-width: 220px;
    max-width: 360px;

    padding: 8px 10px;
    margin-top: 6px;

    top: 100%;
    left: 0;

    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);

    font-size: 0.9rem;
    line-height: 1.35;
}

/* показываем подсказку по hover/focus */
.extra-field-hint:hover .extra-field-hint-popup,
.extra-field-hint:focus-within .extra-field-hint-popup {
    display: block;
}

#hint-block{
    margin: 10px 0;
    background-color: rgb(240, 249, 255);
    border-left: 4px solid rgb(59, 130, 246);
    padding: 12px;
    border-radius: 4px;
    color: #333;
}

.hint-text{
    color: #333;
}

label.required::after {
    content: " *";
    color: var(--red);
}

input[name="email"]::placeholder,
input[name="password1"]::placeholder,
input[name="password2"]::placeholder {
    color: transparent;
    opacity: 0;
}
/*/для доп полей*/

/*ЛК*/
.user_profile__personal_data{
    margin-bottom: 25px;
}

.user_profile__wrapper{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.latest_statements{
    background-color: #f3f3f3;
    width: 50%;
    height: auto;
    padding: 20px;
}

.latest_statements__title{
    text-align: center;
    margin-bottom: 10px;
}

.latest_statements__list{
    list-style: none;
    margin-bottom: 20px;
}

.latest_statements__list a{
    text-decoration: none;
}

.latest_statements__list li{
    margin-bottom: 10px;
}

.execution_status{
    color: var(--orange);
}

.statement_list__wrapper{
    margin-bottom: 40px;
}


.statement_list__table a{
 text-decoration: none;
}

.statement_list__table span.date{
    white-space: nowrap;
}

.statement_list__table {
    width: 100%;
    border-collapse: collapse;
}

.statement_list__table th,
.statement_list__table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.statement_list__table a {
    color: inherit;
    text-decoration: none;
}

.statement_list__table a:hover {
    text-decoration: underline;
}

/* Мобильный вид */
@media (max-width: 768px) {
    .statement_list__table {
        border-collapse: separate;
        border-spacing: 0 12px;
    }

    .statement_list__table thead {
        display: none;
    }

    .statement_list__table,
    .statement_list__table tbody,
    .statement_list__table tr,
    .statement_list__table td {
        display: block;
        width: 100%;
    }

    .statement_list__table tr {
        padding: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #fff;
    }

    .statement_list__table td {
        display: grid;
        grid-template-columns: 130px 1fr;
        gap: 12px;
        padding: 8px 0;
        border-bottom: none;
    }

    .statement_list__table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        padding-left: 10px;
    }

    .statement_list__table td a {
        overflow-wrap: anywhere;
    }

    .statement_list__empty td {
        display: block;
    }

    .statement_list__empty td::before {
        content: none;
    }
}

.statement_detail__title{
    text-align: center;
}

.statement_detail__wrapper .field{
    margin-bottom: 10px;
}

.statement_detail__wrapper .fields{
    margin-bottom: 30px;
    line-height: 1.5;
}

.detail-block div{
    margin-bottom: 10px;
}

.attachment-list{
    list-style: none;
}

.attachment-list li{
    margin-bottom: 10px;
}


#id_organization {
    display: block;
    width: 100%;      /* фиксированная ширина */

}
textarea {
    display: block;
}

.alert{
    color: #fff;
}

/*notification*/
.notification_block {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 38px;
    /*background: #fff3cd;*/
    color: var(--green);
    /*border-bottom: 1px solid var(--green);*/
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.notification_text {
    position: absolute;
    white-space: nowrap;
    left: 100%;
    animation: notification-marquee 50s linear infinite;
}

.notification_text span {
    margin-right: 10%;
}

.notification_block:hover .notification_text {
    animation-play-state: paused;
}

@keyframes notification-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% - 100vw));
    }
}
/*/notification*/


    /*pagination*/
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
    margin: auto;
}

.pagination-block{
    display: flex;
}

.page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #4A9D86;
    background-color: #fff;
    border: 1px solid #4A9D86;
}

.page-link:hover {
    z-index: 2;
    color: #4A9D86;
    text-decoration: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-item:first-child .page-link {
    margin-left: 0;
}


.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #4A9D86;
    border-color: #4A9D86;
}
/*/pagination*/

@media (max-width: 1440px) {
 .content{
     padding: 0 1rem 0 1rem;
 }
}

@media (max-width: 1200px) {
    .content{

    }
}


@media (max-width: 991px) {
    .content{
        width: 90%;
        /*padding: unset;*/
    }

    html{
        font-size: 12px;
    }

    #statementForm [type="checkbox"]
    {
        bottom: -10px;
    }

    .tooltip {
        left: calc(100% + 5px);
        top: calc(100% + 25px);
    }
}

@media (max-width: 768px) {
    h1{
        font-size: 1.5rem;
    }
    .logo {
        margin-right: 3rem;
    }

    #id_password_helptext, h1 {
        font-size: 1.2rem;
    }
    .title h1{
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    h1, #id_password_helptext{
        font-size: 1.1rem;
    }
    .title h1{
        font-size: 2rem;
    }
    .logo {
        margin-right: 2rem;
    }
    .logo img {
        height: 60px;
    }
    header{
        height: 80px;
        padding: unset;
    }
    .header__wraper{
        height: 110px;
    }
    .show{
        height: 120px;
    }
    #statementForm [type="checkbox"]
    {
        bottom: -8px;
    }
    .title h1{
        font-size: 1.8rem;
    }
    .tooltip{
        left: -200px;
    }

}

@media (max-width: 400px) {
    #statementForm [type="checkbox"]
    {
        bottom: -8px;
    }
    .title h1{
        font-size: 1.4rem;
    }
    .additional_buttons_block__label{
        font-size: 1.1rem;
    }

}

