body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #44E5EB, #191970); /* Градиентный фон */
    z-index: -1;
}

/* ФИО аккаунта */
.user-info span {
    font-size: 25px;
    color: red;
}

/* Кнопка выйти */
#logout-btn {
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #2575fc;
    color: white;
    transition: background-color 0.3s ease;
}

/* Кнопка выйти */
#logout-btn:hover {
    background-color: #1a5bbf;
}

/* Общий фоновый белый контейнер */
.container {
    padding: 20px;
    /*width: 50vw;*/
    margin: 65px auto 0; /* Смещение вниз на 50px + 20px */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-height: 85vh;
    overflow-y: scroll;
}

button {
    padding: 0.75rem;
    background-color: #009CE0;  //До нажатия на кнопку Войти
    color: white;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 45px;
    padding: 10px 20px;
    font-size: 16px;
}

button:hover {
    background-color: #1a5bbf;
}


.contract__contrainer {
    display: flex;
}

.contract__info {
    flex: 0 0 80%;
}

.contract__history {
    flex: 0 0 20%;
    min-width: 150px;
}

.contract__version {
    margin-bottom: 10px;
    border-left: 5px solid;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 5px;

}

.contract__version:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.version__username {
    font-size: 12px;
}

.version__type {
    color: #000000;
    cursor: pointer;
}

.version__changes {
    margin: 0;
    padding: 0;
}

.version__change {
    list-style: None;
    
}

/* new styles page */

.hide {
    display: none;
}

/* datepicker */
.ui-datepicker {
    border: 1px solid #ebebeb !important;
    padding: 10px !important;
    color: #899ca8;
    font-size: 13px !important;
    font-family: "Open Sans", sans-serif !important;
}
.ui-datepicker .ui-widget-header,
.ui-datepicker .ui-state-default, .ui-datepicker .ui-widget-content .ui-state-default,
.ui-datepicker .ui-widget-header .ui-state-default {
    border: none !important;
    background: transparent !important;
}
.ui-datepicker table {
    font-size: 1.1em !important;
}
.ui-datepicker td {
    vertical-align: middle !important;
}
.ui-datepicker td span, .ui-datepicker td a {
    padding: .3em !important;
    text-align: center !important;
    color: #899ca8 !important;
}
.ui-datepicker td a:hover {
    color: #303030 !important;
}
.ui-datepicker .ui-state-hover {
    border: none !important;
    background: transparent !important;
}
.ui-datepicker .ui-state-default.ui-state-highlight {
    background: #ffd542 !important;
    border-radius: 100% !important;
    line-height: 17px !important;
    height: 26px !important;
    color: #303030 !important;
}
/* datepicker */

.menu-sidebar {
    width: 280px;
    transition: 1000ms;
}

.menu-sidebar a {
    transition: 500ms;
}

.menu-sidebar a.active {
    background: #f3f3f3;
    color: #212529;
}

.menu-sidebar .nav-link:hover {
    background: #f3f3f3!important;
    color: #212529!important;
}

input:disabled:hover,
select:disabled:hover {
  cursor: not-allowed
}

.nav-link,
.nav-link a {
    color: #f3f3f3!important;
    text-decoration: none;
    cursor: pointer;
}

.nav-link.active {
    color: #212529!important;
}

.nav-link.active {
    color: #212529!important;
    background-color: #f3f3f3;
}

.nav-link.active a {
    color: #212529!important;
}

/* Общие стили */
.page-container-outer {
    height: 100vh;
    /*height: -webkit-fill-available;*/
    max-height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    background: #f3f3f3;
}

#contract-items li.nav-link:hover {
    cursor: pointer;
}

.menu-sidebar .nav-link:hover a {
    color: #212529!important;
}

.nav-link a {
    display: block;
    width: 100%;
    padding-left: 50px;
    font-size: 18px;
}

.nav-link {
    position: relative;
}

#contract-items .badge-notifications {
    border-radius: 25px;
    font-size: 12px;
    background-color: #f74f4f;
    color: white;
    padding: 5px;
    text-align: left;
    min-width: 25px;
    display: inline-block;
    margin-left: 6px;
    text-align: center;
    box-sizing: border-box;
    height: 25px;
    line-height: 14px;
    position: absolute;
    right: 25px;
    top: 5px;
}

.modal-body input[type="number"],
.modal-body input[type="text"],
.modal-body input[type="date"] {
    width: 300px;
    padding: .375rem .75rem;
    font-weight: 400;
    line-height: 1.5;
    font-size: 16px;
    border-radius: 5px;
    outline: none;
    border: 1px solid #D3D3D3; 
}

.chosen-container-single .chosen-single {
    outline: none!important;
    border: none!important;
    box-shadow: none!important;
    background: none!important;
}

.chosen-container-single .chosen-drop {
    margin-top: 0;
    border-radius: 0 0 4px 4px;
    background-clip: padding-box;
    left: 0;
    border: 1px solid #dee2e6;
    border-top: 0;
    width: 100%;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
}

.main_logo {
    margin-left: 20px;
    margin-top: 20px;
}

.main_logo img{
    width: 50px;
    margin-right: 15px;
}

.green_btn {
    background: none;
    color: #68b08f;
    opacity: 1;
}

.green_btn:disabled {
    background: none;
    color: #68b08f;
    opacity: 0.4;
}

.all_contracts-outer .green_btn {
    position: relative;
    z-index: 2;
}

.ui-widget-header .ui-icon {
    background: url("../images/ui-icons_444444_256x240.213f983f1410.png")!important;
    opacity: 0.5;
    transition: 500ms;
}

.ui-widget-header .ui-icon:hover {
    opacity: 1;
    cursor: pointer;
}

.ui-datepicker .ui-datepicker-next span {
    transform: rotate(90deg);
}

.ui-datepicker .ui-datepicker-prev span {
    transform: rotate(-90deg);
}

.form-control:focus {
    outline: none;
    box-shadow: none;
}

#contracts-list {
    margin-top: 1rem;
}

.clean_btn {
    font-size: 14px;
    color: #6c757d;
    text-decoration: none;
    transition: 500ms;
}

.clean_btn:hover {
    opacity: 0.5;
    cursor: pointer;
}

.clean_btn i {
    margin-left: 5px;
}

.send_searchFields.green_btn {
    padding: 5px 20px!important;
    transition: 500ms;
}

.pagination {
    margin-bottom: 25px;
    display: block;
    padding-top: 15px;
}

.pagination .current {
    color: white;
    background: #6c757d;
    padding: 5px 10px;
    border-radius: 50px;
}

.pagination a {
    color: #6c757d;
    padding: 5px 10px;
    border-radius: 50px;
    text-decoration: none;
    transition: 500ms;
}

.pagination a:hover {
    color: white;
    background: #6c757d;
}


#edit-section td {
    width: 320px;
    min-width: 320px;
}

#id_add_contract_files_form-file{
    display: none;
}

label[for="id_add_contract_files_form-file"] {
  display: none;
}

label[for="id_add_contract_files_form-file"]:hover {
  background: #3367d6;
}

label[for="id_add_contract_files_form-file"]::before {
  content: "📁";
  margin-right: 8px;
}

.file-name-container {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  gap: 8px;
}

.file-name {
  color: #333;
  font-style: italic;
}

.delete-file-btn {
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}

.delete-file-btn:hover {
  background: #cc0000;
}

.file-message {
  color: #666;
  font-style: italic;
}

.create_contract-col {
    flex: 1 0 360px;
    margin-right: 25px;
    margin-bottom: 20px;
    width: 380px;
}

.create_contract-outer {
    flex-wrap: wrap;
}

.chosen-container-single.form-control {
    width: 386px;
} 

.logo_title {
    font-size: 12px;
    letter-spacing: 0.5px;
}

.summary_contract-price {
    text-align: right;
    padding-right: 25px;
    font-size: 16px;
}

.all_contracts-outer {
    padding-top: 303px;
}

#counterpartyForm {
    text-align: left;
}

#counterpartyForm > div {
    margin-bottom: 15px;
}

@media only screen and (max-width: 1000px) {
    .page-container-outer {
        display: block!important;
    }

    .menu-sidebar {
        position: absolute;
        left: -1000px;
        width: 100%;
        z-index: 4;
    }

    #sandwich {
        display: block;
        z-index: 1000;
        position: relative;
        top: 0px;
        left: 0px;
        margin-top: 10px;
        width: 50px;
        height: 50px;
        text-align: center;
        background: #434446;
        display: block;
        position: absolute;
        top: -10px;
    }

    .line-wrapp {
        width: 18px;
        height: 12px;
        z-index: 10;
        margin: 0px;
        transition: 600ms ease-in-out;
    }

    .line {
        width: 25px;
        height: 3px;
        background-color: white;
        margin-bottom: 5px;
        text-align: center;
        margin-left: 12px;
        margin-top: 3px;
        transition: 600ms ease-in-out;
        border-radius: 15px;
    }

    #sandwich.active .line.top {
        width: 21px;
        transform: translateX(-3px) translateY(2px) rotate(-45deg);
    }

    #sandwich.active .line.bottom {
        width: 21px;
        transform: translateX(-3px) translateY(-2px) rotate(45deg);
    }

    .mob-d-block {
        display: block!important;
    }

    .main_logo {
        margin-left: 0px;
        justify-content: center;
        margin-bottom: 0px!important;
    }

    .nav-link a {
        width: auto;
    }

    .all_contracts-outer {
        overflow-x: scroll;
    }

    .contracts-table {
        width: 1200px!important;
    }

    .open_details-td .bi-arrows-angle-expand {
        position: absolute;
        left: 16px;
        top: -28px;
    }

    .go_to-btn {
        margin-left: 150px !important;
        margin-top: 20px !important;
        margin-bottom: 0px !important;
    }

    .overlay_menu {
        width: 100%;
        background: black;
        opacity: 0.7;
        z-index: 3;
        display: none;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    .contart_info-stat {
        overflow-x: scroll;
        margin-left: 0 !important;
        margin-top: 75px !important;
        width: 100%;
        padding-left: 15px;
        position: relative;
    }

    .contract_info-summa-outer {
        margin-right: 20px;
    }

    .page-container-outer {
        overflow-y: scroll;
    }

    .contart_info-stat-outer:after {
        content: "";
        position: absolute;
        top: calc(50% - -36px);
        left: calc(97% - 60px);
        display: block;
        background: url("../images/swipe.9bbdcd8b5ff2.gif") no-repeat;
        border-radius: 100%;
        background-size: contain;
        width: 30px;
        height: 30px;
        z-index: 1;
        padding: 18px;
        display: block;
    }

    .contart_info-stat-outer {
        position: relative;
    }

    .progressbar-outer {
        padding: 0 15px;
        margin: 0!important;
    }

    .mob-width-100pr {
        width: 100%!important;
    }

    .mob-ml-0 {
        margin-left: 0!important;
    }

    .history_container {
        width: 100%!important;
    }

    .edit_section-contract-table td {
        width: 50%!important;
    }

    .history_open-block {
        height: 350px;
        overflow-y: scroll;
    }

    .supply_and_payment-container {
        margin: 0!important;
    }

    .supply_and_payment-container .container {
        width: 100%;
    }

    .supply_and_payment-container .list-group {
        max-height: 340px;
        overflow-y: scroll;
    }
}
