:root {
    --placeholder: #8794A9;
    --background: #E9EBF0;
    --red: #E01C24;
    --subtitle: #7B828D;
    --helvetica: 'Helvetica Neue', sans-serif;
    --default-font-size: 14px;
}

input {
    padding: 0;
    font-size: var(--default-font-size);
}

select {
    border: none;
    background-color: white;
    padding: .7rem 1rem .7rem 1rem;
    border-radius: 10px;
    font-size: var(--default-font-size);
    font-weight: 400;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url(../img/select.svg); /* Иконка стрелочки */
    background-repeat: no-repeat;
    background-position: right 1rem center; /* Позиция вашей иконки */
    background-size: 1.5rem; /* Задаем размер иконки */
}

*::-webkit-scrollbar {
    width: 10px;
    border-radius: 0 16px 16px 0;
    background-color: white;
}
  
*::-webkit-scrollbar-thumb {
    border-radius: 16px;
    background-color: #dfdfdf;
}
  
*::-webkit-scrollbar-track {
    /* -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.2); */
    border-radius: 16px;
    background-color: white;
}

html {
    height: 100%;
    overflow-y: auto;
}

* {
    -webkit-user-drag: none;
    outline: none;
}

body {
    overflow-y: auto;
    height: 100%;
	font-family: var(--helvetica);
    margin: 0px;
    padding: 0px;
	font-size: 15px;
    color: #000000;
	font-weight: 400;
    background-color: var(--background);
}

.row {
    flex-wrap: nowrap;
}

img {
    user-select: none;
}

thead {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
}

.content {
    display: flex;
    flex-direction: row;
    height: 100%;
    overflow-y: auto;
}

.navbar {
    position: fixed;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 1rem;
    box-shadow: 3px 5px 3px rgba(0, 0, 0, 0.1);
    background-color: white;
    /* width: 5rem; */
    z-index: 100;
    width: 64px; /* Изначально свернутый */
    transition: width 0.3s ease-in-out;
    overflow: hidden; /* Прячем содержимое при сворачивании */
}

.nav-btn p {
    display: none;
}

.navbar.open .nav-btn p {
    display: block;
    text-align: center;
    margin: 0;
} 

.nav-btn {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    text-decoration: none;
    color: black;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    /* width: 32px; */
}

.navbar.open {
    width: 250px;
}

.navbar.open .nav-items-bottom a {
    display: flex;
    justify-content: end;
    margin: 0 .5rem 0 0;
}

.nav-items-top .nav-btn img {
    transition: transform 0.3s ease-in-out;
}

/* .navbar.open .nav-items-top .nav-btn img {
    transform: scale(0.8); 
}

.navbar .nav-items-top .nav-btn img {
    transform: scale(1); 
} */

/* Для кнопки разворачивания */
.nav-items-bottom .nav-btn img {
    transition: all 0.3s ease-in-out;
}

.navbar.open .nav-btn a img:hover {
    color: var(--red);
    transition: color 0.3s ease-in-out;
    transition: font-size 0.1s ease-in-out;
    font-size: 18px;
}

/* .navbar.open .nav-items-top {
    align-items: start;
} */

.nav-items-top {
    display: flex;
    /* align-items: center; */
    flex-direction: column;
    gap: 1.5rem;
    margin: 1rem 0 0 0;
    width: 100%;
}


.nav-items-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
    width: 100%;
}

.nav-btn img {
    width: 32px;
    height: 32px;
}

.nav-active {
    color: var(--red);
}

/* .navbar.initial-load {
    width: 250px;
    transition: none; 
} */

.page-content {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    height: 100%;
    width: 100%;
    padding: 1rem 2rem 1rem calc(7rem - 16px);
    overflow-y: auto;
    transition: padding 0.3s ease-in-out;
}

.page-content.shifted {
    padding: 1rem 2rem 1rem calc(7rem + 170px);
    transition: padding 0.3s ease-in-out;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.page-subtitle {
    font-size: 16px;
    font-weight: 900;
    margin: 0;
    color: var(--subtitle);
    text-transform: uppercase;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin: 0 0 1.5rem 0;
    align-items: center;
}   

.top-bar-left {
    display: flex;
    flex-direction: column;
}

.top-bar-right {
    display: flex;
    gap: 1rem;
    text-align: right;
    align-items: center;
    text-wrap: nowrap;
}

.account-details {
}

.account-details h2 {
    font-size: 14px;
    margin: 0;
    color: var(--placeholder);
    font-weight: 500;
}

.top-bar-btn {
    cursor: pointer;   
}


.top-bar-btn img {
    width: 20px;
    height: 20px;
    
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: calc(100% - 80px);

}

.btn-add {
    background-color: var(--red);
    display: flex;
    justify-content: center;
    gap: .5rem;
    align-items: center;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.object-link {
    width: 4rem;
}



@media (max-width: 1000px) {
    .top-bar-btn img {
        width: 30px;
        height: 30px;
    }
    .account-details h2 {
        font-size: 16px;
    }
    :root {
        --default-font-size: 14px;
    }
}

@media (max-width: 650px) {
    .content {
        flex-direction: column;
    }
    .page-content {
        padding: 1rem 1rem 1rem 1rem;
        height: 93vh;
    }
    .navbar {
        display: flex;
        height: 7vh;
        width: 100vw;
        box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1);
        padding: 0;
        bottom: 0;
    }
    .nav-items-top {
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0 2rem;
    }
    /* .nav-items-top a {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
    }
    .nav-items-top a img {
        width: 2rem;
        height: 2rem;
    } */
    .nav-items-bottom {
        display: none;
    }
    .nav-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
    .top-bar-right {
        flex-direction: row;
        justify-content: end;
        gap: 0.5rem;
    }
    .page-title {
        font-size: 24px;
    }
    .page-subtitle {
        font-size: 14px;
    }
    .account-details h2 {
        font-size: 12px;
    }
}

.please {
	padding-top: 40px;
	color: #ff0000;
	font-weight: bold;
	display: none;
}

.pagination-page a {
	text-decoration: none;
	color: #E01C24;
	font-weight: bold;
}

.gray {
	color: #bbbbbb;
}

.table-inbounds tbody tr {
	border-bottom: 1px solid #e9ebf0;
}

.table-inbounds tbody {
	background: #ffffff !important;
}

.table-inbounds tbody tr:first-child {
	border-top: 1px solid #e9ebf0;
}

.table-inbounds tbody tr:hover {
	background: #f0f0f0;
}

.table-footer p {
	display: none;
}

.add-item {
	display: block !important;
}

.select2-container--default .select2-selection--single {
	border: none !important;
	width: 100% !important;
	height: 34px !important;
	line-height: 34px !important;
	border-radius: 8px !important;
}

.select2-selection__rendered {
	height: 34px !important;
	line-height: 34px !important;	
}

.select2-selection__arrow {
	height: 34px !important;
	line-height: 34px !important;		
}

.select2-container {
	width: 100% !important;
}

.select2-container--default .select2-selection--single {
  max-width: 500px !important;
}

.redd {
	font-weight: bold;
	color: #E01C24;
}