:root {
    --brand-color: #013755;
}

/*.navbar {*/
/*    background-color: var(--brand-color);*/
/*}*/

/* ===== NAVBAR BASE ===== */
.navbar {
    background: #ffffff;
    padding: 10px 20px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Контейнер */
.container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-custom .container-fluid {
    position: relative;
}

/* Центрирование заголовка */
.navbar-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #111;
    white-space: nowrap;
}


/* На мобилке центр убираем */
@media (max-width: 768px) {
    .navbar-title {
        position: static;
        transform: none;
        text-align: center;
        width: 100%;
        margin-top: 8px;
        order: 1;
    }
}

/* ===== BRAND ===== */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-right:0px !important;
}

.navbar-brand span {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    letter-spacing: 0.3px;
}

.navbar-logo {
    height: 42px;
    width: auto;
}

/* ===== RIGHT SIDE ===== */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Кнопка печати */
.btn-light {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.btn-light:hover {
    background: #ececec;
}

/* Кнопка выхода */
.btn-outline-danger {
    border: 1px solid #dc3545;
    color: #dc3545;
    background: transparent;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: #ffffff;
}

/* ===== MOBILE TOGGLER ===== */
.navbar-toggler {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
}

.navbar-toggler-icon {
    width: 24px;
    height: 2px;
    background: #333;
    position: relative;
    display: block;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    width: 24px;
    height: 2px;
    background: #333;
    position: absolute;
    left: 0;
    transition: 0.2s;
}

.navbar-toggler-icon::before {
    top: -6px;
}

.navbar-toggler-icon::after {
    top: 6px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar-toggler {
        display: block;
    }

    .navbar-right {
        display: none;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .navbar-right.active {
        display: flex;
    }

    /*.container-fluid {*/
    /*    flex-direction: column;*/
    /*    align-items: flex-start;*/
    /*}*/
}



.btn-primary {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
}

/*footer {*/
/*    position: fixed;*/
/*    right: 0;*/
/*    bottom: 0;*/
/*    left: 0;*/
/*    padding: 1rem;*/
/*    height: 38px;*/
/*    text-align: center;*/
/*    background-color: #f8f8f8;*/
/*    color: #22457B;*/
/*    z-index: 500;*/
/*    font-weight: 700;*/
/*    border: 1px solid transparent;*/
/*}*/

/*footer > p {*/
/*    text-overflow: ellipsis;*/
/*    white-space: nowrap;*/
/*    overflow: hidden;*/
/*}*/

@media screen {
    body {
        /*padding-top: 60px;*/
        /*padding-bottom: 40px;*/
        padding: 0;
        margin: 0;
    }

    .header {
        display: none;
    }

    /*header {*/
    /*    margin: 0;*/
    /*    padding: 0;*/
    /*    height: 70px;*/
    /*    width: 100%;*/
    /*    text-align: center;*/
    /*    background-color:#5bc0de;*/
    /*    line-height: 1;*/
    /*    color: black;*/
    /*}*/
    #headmain {
        font-size: 28pt;
    }

    #headsubline {
        font-size: 20pt;
        font-style: italic;
    }

    .zf-green {
        color: #68b604;
    }

    .btn-success {
        background-color: #57a900;
        background-image: -moz-linear-gradient(top, #70d900, #57a900);
        background-image: -ms-linear-gradient(top, #70d900, #57a900);
        background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#70d900), to(#57a900));
        background-image: -webkit-linear-gradient(top, #70d900, #57a900);
        background-image: -o-linear-gradient(top, #70d900, #57a900);
        background-image: linear-gradient(top, #70d900, #57a900);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#70d900', endColorstr='#57a900', GradientType=0);
    }

    .btn-success:hover,
    .btn-success:active,
    .btn-success.active,
    .btn-success.disabled,
    .btn-success[disabled] {
        background-color: #57a900;
    }

    .btn-success:active, .btn-success.active {
        background-color: #57a900;
    }

    div.container a.brand {
        background: url("../img/zf2-logo.png") no-repeat scroll 0 10px transparent;
        margin-left: 0;
        padding: 8px 20px 12px 40px;
    }

    /*fileinput*/
    .image-preview-input {
        position: relative;
        overflow: hidden;
        margin: 0px;
        color: #333;
        background-color: #fff;
        border-color: #ccc;
    }

    #filesToUpload, #AccountantPKeyFileInput, #PKeyFileInput, #StampPKeyFileInput,
    #AccountantPKeyFileInput-dlg, #StampPKeyFileInput-dlg, #Receipt-dlg, #PKeyFileInput-dlg,
    #tfile, #testfile, #excelfile, #excelfile_kattg {
        position: absolute;
        top: 0;
        right: 0;
        margin: 0;
        padding: 0;
        font-size: 20px;
        cursor: pointer;
        opacity: 0;
        filter: alpha(opacity=0);
    }

    .image-preview-input-title {
        margin-left: 2px;
    }

    .div_element {
        padding: 0 10px 10px 10px;
    }

    .div_element:hover {
        background-color: #ddd;
    }

    .div_element_active {
        border: 1px solid black;
    }

    .div_element p {
        margin: 0;
    }

    #panelsave {
        display: none;
    }

    /*
    .vbottom {
      display: inline-block;
      float: none;
      vertical-align: bottom;
    }*/
    .vbottom {

        display: -moz-inline-box;
        display: inline-block;
        vertical-align: bottom;
        zoom: 1;

    }

    .helper {
        display: -moz-inline-box;
        display: inline-block;
        vertical-align: bottom;
        height: 100%;
        width: 0px;
        zoom: 1;
    }

    .vcenter {
        display: inline-block;
        vertical-align: middle;
        float: none;
    }

    table[align="center"] input.form-control { /* shag15 */
        text-align: center;
    }

    input[type="radio"] {
        -webkit-appearance: none;
        -moz-appearance: none;
        -ms-appearance: none;
        content: url("images/checkbox_unchecked.png");
        width: 16px;
        height: 16px;
    }

    input[type="radio"]:after {
        display: inline-block;
        content: '';
        background-image: url("images/checkbox_unchecked.png");
        background-size: 16px 16px;
        width: 16px;
        height: 16px;
    }

    input[type="radio"]:checked {
        -webkit-appearance: none;
        -moz-appearance: none;
        -ms-appearance: none;
        content: url("images/checkbox_checked.png");
        width: 16px;
        height: 16px;
    }

    input[type="radio"]:checked:after {
        content: '';
        background-image: url("images/checkbox_checked.png");
        background-size: 16px 16px;
        width: 16px;
        height: 16px;
    }

    input[type="checkbox"] {
        -webkit-appearance: none;
        -moz-appearance: none;
        -ms-appearance: none;
        content: url("images/checkbox_unchecked.png");
        width: 16px;
        height: 16px;
    }

    input[type="checkbox"]:after {
        display: inline-block;
        content: '';
        background-image: url("images/checkbox_unchecked.png");
        background-size: 16px 16px;
        width: 16px;
        height: 16px;
    }

    input[type="checkbox"]:checked {
        -webkit-appearance: none;
        -moz-appearance: none;
        -ms-appearance: none;
        content: url("images/checkbox_checked.png");
        width: 16px;
        height: 16px;
    }

    input[type="checkbox"]:checked:after {
        content: '';
        background-image: url("images/checkbox_checked.png");
        background-size: 16px 16px;
        width: 16px;
        height: 16px;
    }

    .div_element textarea, .div_element input[type="text"] {
        border-bottom: 1px solid #000000;
        background: #fcefc4;
        outline: none;
        box-shadow: none;
        border-top: none;
        border-right: none;
        border-left: none;
        color: #000000;
    }

    .div_element textarea:focus, .div_element input[type="text"]:focus {
        background: #f9ce89;
    }

    .div_element textarea:disabled, .div_element input[type="text"]:disabled {
        background-color: #eff0f1;
    }

    /* Выравнивание численных значений по правому краю в инпутах в таблице (для шаблонов отчётов)*/
    /* shag27 */
    .div_element .inp_digital input[type="text"] {
        border: none;
        background: transparent;
        text-align: right;
    }

    /* shag27 */
    .div_element .inp_digital input[type="text"]:hover {
        background-color: #fffff0;
    }

    /* shag27 */
    .div_element .inp_digital input[type="text"]:focus {
        background-color: #f9ce89;
    }

    /* shag27 */
    .div_element .inp_digital input[type="text"]:disabled {
        background-color: #eff0f1;
    }

    /* shag27 */
    .div_element .inp_digital_center input[type="text"] {
        border: none;
        background: transparent;
        text-align: center;
    }

    .div_element .inp_digital_center input[type="text"]:hover {
        background-color: #fffff0;
    }

    .div_element .inp_digital_center input[type="text"]:focus {
        background-color: #f9ce89;
    }

    .div_element .inp_digital_center input[type="text"]:disabled {
        background-color: #eff0f1;
    }
}

/*EDRPOU_PAGE_STYLES*/

.container {
    max-width: 1700px;
    width: 100%;
    height: 100%;
    padding: 0 2%;
    margin:  auto;
}

a {
    color: #0074de;
}

a:hover {
    color: #68b5fb;
}

body {
    font-size: 16px;

    font-family: Arial,"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
    line-height: 1.42857143;
    /* color: #2b2b2c; */

    /* color: #333; */
    color: #111;


    font-feature-settings: "kern";
    text-rendering: optimizeLegibility;

    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
}


.main {
    padding: 10px;
    flex: 1;
}

.footer {
    /*background: #31444f;*/
    background: var(--brand-color);
    color: #fff;

    width: 100%;
    margin-top: auto;
}

.footer-inner {
    font-size: 18px;
    line-height: 31px;
    text-align: center;
    padding: 20px 0;
}

.beta-title {
    /* color: #da052c; */
    color: #fff;
    /* opacity: 0.5; */
    /* background: #000; */
    background: #808080;

    line-height: 19px;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: normal;
    padding: 10px 90px;
    text-align: center;
    /* background: orange; */
    margin-top: -20px;
    transition: 0.3s ease all;
    position: relative;
}

.beta-container {

}

.beta-title:hover {
    opacity: 1;
}

.header {
    padding: 20px 0;
}


.header-inner {
    text-align: center;
}

.main-title {
    font-size: 25px;
    line-height: 35px;

    font-weight: 700;
}

.header__title {
    margin-bottom: 10px;
    color: #333;
}

.header__sub-title {
    color: #fff;
    background: #31444f;
    padding: 15px 0;
}

.search-title {
    margin-bottom: 20px;
}

.search-head {
    display: flex;
    justify-content: center;
}

.search-form {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.search__input-wrapper {
    justify-content: center;
    display: flex;
}

.search__input {
    height: 40px;
    width: 100%;
    padding: 4px 8px;
    outline: 0;
    border: 1px solid rgb(48, 48, 48);
    border-right: none;
    border-radius: 2px 0 0 2px;
}

.search__error-message {
    color: #da052c;
    margin-top: 5px;
    font-size: 16px;
    line-height: 18px;
    /* font-weight: bold; */
    text-align: center;
    display: none;
}

.search__button {
    background-color: rgba(0, 118, 255, 0.9);
    border: 1px solid rgba(0, 118, 255, 0.9);
    color: #fff;
    font-weight: 500;
    padding: 6px 16px;
    font-size: 16px;
    line-height: 26px;
    outline: 0;
    border-radius: 0 2px 2px 0;
}

.search__button:disabled {
    background-color: rgba(0, 118, 255, 0.9);
    border: 1px solid rgba(0, 118, 255, 0.9);
    color: var(--bs-btn-disabled-color);
    pointer-events: none;
    opacity: var(--bs-btn-disabled-opacity);
}

.input {
    height: 40px;
    outline: 0;
    padding: 4px 8px;

    padding: 16px 20px;

    border: 2px solid #ccc;

    outline: none;

    font-weight: bold;
    font-size: 15px;
    line-height: 18px;

    transition: border 0.15s ease-in-out;
}

.section-about {
}

.section-about__text {
    line-height: 26.5px;
    margin-bottom: 10px;
    text-align: justify;
    margin-left: 30px;
}

.section-about__fin-text {
    color: #da052c;
    /* font-weight: bold; */
    line-height: 26.5px;
    margin-bottom: 10px;
}

.company {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
}

.company-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 20px;
    /* font-weight: 700; */
    font-size: 18px;
    /* line-height: 22px; */
    transition: all 0.3s ease-in-out;
    max-width: 350px;
    cursor: pointer;
}


.company__list-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    margin: 0 auto 30px;
}

.company__btn-item + .company__btn-item {
    margin-top: 10px;
}

.company__btn-item {
    background: white;
    /* border-radius: 12px; */
    border: 1px solid #ccc;
    color: #111;
}

.company__btn-item--active {
    background: #50798f;
    color: white;
}

@media only screen and (min-width: 768px) {
    .company__list-btn {
        flex-direction: row;
    }

    .company__btn-item + .company__btn-item {
        margin: 0 0 0 10px;
    }
}

@media only screen and (min-width: 576px) {
    .main {
        padding: 10px 50px;
    }

    .container {
        padding: 0 2%;
    }

    .main-title {
        font-size: 35px;
        line-height: 45px;
    }
}

.company__header {
    margin-bottom: 20px;
}

.company__content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0px 2px 10px rgb(0 0 0 / 30%);
    border-radius: 12px;
    padding: 30px 20px;
}

.company__title {
    color: #da052c;
    margin-top: 5px;
}

.company__title--bold {
    /*color: #da052c;*/
    font-weight: bold;
}

.company__title,
.company__location {
    margin-bottom: 5px;
    font-weight: bold;
    text-align: center;
}

.company__location_2 {
    margin-bottom: 5px;
    font-weight: bold;
    text-align: center;
}

.company__title,
.company__location,
.company__sub-title {
    font-size: 18px;
    line-height: 23px;
}

.company__name {
    font-weight: 700;
    font-size: 21px;
    line-height: 25px;
    margin-bottom: 5px;
    text-align: center;
}

.company__code {
    color: #da052c;
    font-weight: 700;
    font-size: 21px;
    line-height: 25px;
    margin-bottom: 15px;
    text-align: center;
}

.company__contacts {
    font-weight: bold;
    font-size: 18px;
    line-height: 23px;
}

.company__address {
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    line-height: 23px;
}

.company__tel {
    font-weight: bold;
    font-size: 18px;
    line-height: 23px;

}

.company-table-wrapper {
    position: relative;
    display: flex;
    width: 100%;
    margin-top: 20px;
}


/*.affiliate-card__content > .company-table-wrapper {*/
/*    margin-top: 0px;*/
/*}*/

.company-table-wrapper ~ .company__contacts {
    margin-top:20px ;
}

.company-table {
    font-family: Arial,"Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
    /* margin-top: 20px; */
    border-collapse: collapse;
    /* width: 100%; */
    max-width: 100%;
    overflow: auto;
    display: table-column;


    cursor: pointer;
    position: relative;
    z-index: 0;
}

.highlight-before::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 100%;
    z-index: 1;
    /* background-color: rgba(121, 121, 121, 0.3); */
    /* box-shadow: 20px 0px 10px 20px rgba(238, 238, 238, 0.5); */
    background: linear-gradient(
            90deg,
            rgba(87, 101, 116, 0.3) 33%,
            rgba(87, 101, 116, 0.2) 33%,
            rgba(87, 101, 116, 0.1) 33%
    );
}

.highlight-after::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(100% - 20px);
    width: 20px;
    height: 100%;
    z-index: 1;
    /* box-shadow: 0px 0px 10px 20px rgba(238, 238, 238, 0.5); */
    background: linear-gradient(
            90deg,
            rgba(87, 101, 116, 0.1) 33%,
            rgba(87, 101, 116, 0.2) 33%,
            rgba(87, 101, 116, 0.3) 33%
    );
    /* background-color: rgba(121, 121, 121, 0.3); */
}

.company-table__header {
    border: 1px solid #50798f;
}

.company-table__header-row {
}

.company-table__header-cell {
    /* width: 100%; */
    background: #50798f;
    text-align: left;
    vertical-align: middle;
    color: white;
    min-width: 215px;
    padding: 10px 15px;
}

.company-table__header-cell:nth-child(2) {
    min-width: 310px;
}

.company-table__header-cell:nth-child(1) {
    width: 250px;
}

.company-table__header-cell:nth-child(1),
.company-table__header-cell:nth-child(4) {
    min-width: 150px;
}

.company-table__header-cell:nth-child(5) {
    min-width: 175px;
}

.company-table__header-cell:nth-child(6) {
    min-width: 240px;
}

.company-table__body {
    width: 100%;
    border: 1px solid #bebebe;
}

.company-table__body-row:nth-child(even) {
    background: #ccc;

    width: 100%;
}

.company-table__body-cell {
    padding: 10px 15px;
    text-align: left;
    /* color: white; */
    font-weight: normal;
    vertical-align: top;
}

@media only screen and (min-width: 1920px) {
    .company-table__header-cell,
    .company-table__body-cell {
        padding: 10px 20px;
    }

    .company-table__header-cell {
        min-width: 250px;
    }

    .company-table__header-cell:nth-child(2) {
        min-width: 350px;
    }

    .company-table__header-cell:nth-child(5) {
        min-width: 250px;
    }

    .company-table__header-cell:nth-child(6) {
        min-width: 250px;
    }
}

.company-table__list-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

.company-table__link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 89px;
}

.company-table__link + .company-table__link {
    margin-left: 10px;
}

.company-table__link-img {
    height: 35px;
    width: 35px;
    display: block;
}

.company-table__link-title {
    font-size: 15px;
    line-height: 18px;
}

.affiliate {
    margin-top: 20px;
}

.affiliate-card {
    position: relative;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    text-align: center;
    /* font-size: 18px;
    line-height: 23px; */
    border: 2px solid lightgray;
    padding: 8px 12px;
    border-radius: 8px;
}

.affiliate-card__collapse {
    position: absolute;
    cursor: pointer;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    color: #111;
    display: flex;
    justify-content: center;
    align-items: center;

}

.drop-svg {
    width: 18px;
    height: 18px;
}

.affiliate-card:first-of-type {
    margin-top: 20px;
}

.affiliate-card + .affiliate-card {
    margin-top: 10px;
}

.affiliate-card__about,.affiliate-card__about {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.affiliate-card__collapse ~ .affiliate-card__about{
    margin-right: 35px;
}


.affiliate-card__code {
    font-size: 18px;
    font-weight: bold;
    line-height: 23px;
    color: #da052c;
    margin-bottom: 5px;
}

.affiliate-card__title,
.affiliate-card__location {
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    line-height: 23px;
}

.affiliate-card__location {
    margin-bottom: 10px;
}

.affiliate-card__sub-title {
    color: #aaa;
    line-height: 16px;
    font-size: 14px;
}

.affiliate-card__content {
    /*margin-top: 20px;*/
    display: flex;
}

.affiliate-card__content ~ .affiliate-card__contacts {
    margin-top:20px;
}

.pt10 {
    padding-top: 10px;
}


@media not print {
    .affiliate-card__content--hidden,.affiliate-card__contacts--hidden {
        visibility: hidden;
        height: 0;
        margin: 0 !important;
    }
}

@media print {
    .hidden-print {
        display: none;
    }


    a[href^="http"]:after {
        content: " <" attr(href) "> ";
    }

}



