.layout_with_sidebar {
    display: flex;
    gap: 0px 20px;
}

.layout_with_sidebar aside nav {
    background: url('../images/top-menu-bg.png') repeat rgb(114, 185, 83);
    padding: 15px 12px;
}

.layout_with_sidebar aside a,
.layout_with_sidebar aside p {
    color: #fff;
    font-family: 'bebas', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.layout_content {
    flex: 1;
}

.cabinet-user__name {
    margin-bottom: 10px;
}

.form-partner {
    max-width: 650px;
    margin: 0 auto;
}

.form-partner input {
    line-height: initial;
    padding: 10px 5px;
    border: 1px solid grey;
    border-radius: 3px;
    margin-bottom: 10px;
}

.form-body,
.form-check,
.form-footer {
    display: flex;
    padding: 10px 0;
}

span.details {
    margin-bottom: 5px;
}

.form-body {
    gap: 0 20px;
}

.form-body .input-box {
    flex: 50%;
}

.form-body .input-box:last-child {
    /* align-items: flex-end; */
}

.form-check {
    border-top: 1px solid grey;
    border-bottom: 1px solid grey;
    align-items: center;
    gap: 0 5px;
}

.form-check input {
    margin-bottom: 0;
}

.input-box {
    display: flex;
    flex-direction: column;
}

.form-footer {
    justify-content: space-between;
    gap: 10px 20px;
}

.form-footer .input-box {
    flex: 1 1 33%;
}

.form-partner-btn {
    background: rgb(114, 185, 83);
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
}

.btn-orange {
    background: #FF9600FF;
}

.btn-orange:hover {
    background: #ff7300;
}

.btn-blue {
    background: #0035ffbd;

}

.submit-btn {
    margin-top: auto;
    margin-left: auto;
}

/* .form-partner {
    padding: 20px;
} */

.label-title {
    text-align: center;
}

.work-days {
    text-align: center;
}

.form-input-region {
    margin-bottom: 10px;
}

.loginLoginFieldset {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.loginLoginForm {
    max-width: 650px;
    margin: 0 auto;
}

.loginLoginForm input {
    border: 1px solid grey;
}

.login .table {
    height: auto;
}

.login .main-wrapper {
    margin-bottom:0;
}

.login .main-wrapper .header-wrapper {
    padding-bottom: 0px;
}

.loginForm {
    max-width: 650px;
    margin: 0 auto;
}

.footer-wrapper {
    min-height: auto;
}

table {
    border-spacing: 0 10px;
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    width: 100%;
}

th {
    padding: 10px 20px;
    background: #72b953;
    color: white;
    border-right: 2px solid;
    font-size: 0.9em;
}

th:first-child {
    text-align: left;
}

th:last-child {
    border-right: none;
}

td {
    vertical-align: middle;
    padding: 6px 5px;
    font-size: 14px;
    text-align: center;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
    border-right: 2px solid black;
    border-left: 2px solid #56433D;
}

td.first-child {
    border-left: 2px solid #56433D;
    border-right: 2px solid #FFFFFF;
}

td.first-child-product {
    border-bottom: 2px solid#FFFFFF;
}

td:nth-child(2) {
    text-align: left;
}

.table-product-type {
    font-size: 14px;
    text-align: left;
    border-right: 2px solid !important;
}

a.product-link {
    color: black;
}

a.product-link:hover {
    color: #72b953; /* Цвет ссылки при наведении */
    text-decoration: underline; /* Добавляем подчёркивание */
}

img {
    max-height: 100px;
}

.pagination .active {
    color: #72b953;
}

.loginForm .form-control {
    color: black;
}

.sheader-wrapper {
    display: flex;
}
.sheader-wrapper-second {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 15px;
}

.input-box {
    margin-left: auto;
    padding: 5px;
}
.input-box-second {
    padding: 5px;
}

.btn-success {
    background-color: #72b953;
}

.btn-default {
    background-color: #c2c2c2;
}

.btn-danger{
    background-color: #d40c0c;
}

.btn-cancel{
    background-color: #efbb0e;
}

/* Style the buttons that are used to open and close the accordion panel */
.accordion {
    background-color: #72b953;
    color: #fff;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.4s;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.accordion.active, .accordion.accordion:hover {
    background-color: #2a800e;
}

/* Style the accordion panel. Note: hidden by default */
.panel {
    padding: 18px 18px;
    background-color: white;
    display: none;
    overflow: hidden;
}

/* Custom  */

.custom-template .footer-social a{
    padding: 8px;
}

#date_form, input[type="date"] {
    height: 34px;
}

.table-responsive {
    overflow-x: auto;
}

.table-responsive th {
    text-align: center;
    vertical-align: middle;
    font-weight: 500;
}

.table-responsive a.btn {
    margin-bottom: 0;
}

.table-responsive td.first-child img {
    min-width: 80px;
}

.modal-account .modal-dialog {
    width: 100% !important;
    max-width: 1200px;
}

.item-wrapper input + label {
    margin-left: 10px;
}

.item-wrapper input + span {
    margin-left: 10px;
}

.push40 {
    height: auto;
}

.form-footer .input-box{
    margin-left: 0;
}


@media only screen and (max-width: 991px) {
    .custom-template .header .table {
        height: auto;
    }
    .footer-wrapper {
        min-height: 415px;
    }
    .custom-template .main-wrapper .header-wrapper{
        padding-bottom: 0;
        padding-top: 40px;
    }
    .custom-template .main-wrapper {
        margin: 0;
    }
    .layout_with_sidebar {
        flex-direction: column;
        gap: 20px;
    }
    .sheader-wrapper-second {
        flex-wrap: wrap;
        gap: 5px;
    }
    .sheader-wrapper {
        flex-wrap: wrap;
    }
    .sheader-wrapper > p {
        flex: 1 100%;
    }
    .sheader-wrapper .input-box {
        margin-left: 0;
    }
    .sheader-wrapper-second  .input-box {
        margin: 0;
    }
    .cabinet-navigation__list {
        columns: 2;
    }
}

@media screen and (max-width: 650px) {
    .loginLoginFieldset {
        flex-direction: column;
        justify-content: flex-start;
        gap: 10px 10px;
    }
    .form-body, .form-footer {
        flex-direction: column;
    }
    
    .form-partner-btn {
        margin-top:0px;
    }
    .cabinet-navigation__list {
        columns: 1;
    }
    .loginLoginForm label {
        display: block;
    }
    
    .loginLoginForm input {
        width: 100%;
    }
    
    .loginLoginButton {
        display: block;
        margin-top: 20px;
    }
    .thin-col {
        max-width: 95px;
        padding: 10px 5px;
    }
}

@media screen and (max-width: 540px) {
    .sheader-wrapper-second .input-box:not(:last-child) {
        width: 100%;
    }
    .sheader-wrapper-second .input-box:not(:last-child) .form-partner-btn {
        width: 100%;
    }
    .modal-account .modal-dialog {
        max-width: 350px;
    }
}