:root {
    --nav-bar-color : #9FC5E8;
    --first-color: #D9EAD3;
    --leyt-color: #6886D3;
    --body-color: #F4EEDE;
}
body {
    margin: 0 auto;
}
* {
    box-sizing: border-box;
}
.top-nav-bar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0 21px;
    background-color: var(--nav-bar-color);
    display: flex;
    justify-content: space-between;
}
.top-nav-bar ul {
    display: flex;
    margin: 0;
    width: max-content;
}
.top-nav-bar ul li {

}
.top-nav-bar ul li a {
    display: block;
    color: #000;
    text-decoration: none;
    padding: 17px;
    font-family: Manrope;
    font-weight: 400;
    font-size: 15.5px;
}
.top-nav-bar ul li a:hover {
    background-color: #1d88ec;
    color: #FFF;
}
.top-nav-bar__actions {
    display: flex;
    align-items: center;
    width: max-content;
    column-gap: 10px;
}
.date-period {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: #f1f5f2;
    border-radius: 10px;
}
.date-period a {
    display: inline-block;
    font-family: Manrope;
    padding: 8px 14px;
    color: #34483a;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 7px;
    transition: background .2s, color .2s;
}
.date-period a:hover {
    background: #dce9df;
}
.date-period a.active {
    background: #16803d;
    color: #fff;
}
.date-period a:focus-visible {
    outline: 2px solid #16803d;
    outline-offset: 2px;
}
.main-table-container {
    margin-top: 57px;
}
.main-table-wrapper {
    max-height: 853px;
    overflow: auto;
    position: relative;
}
table {
    width: 100%;
    border-collapse: separate;
    font-family: Manrope;
    font-weight: 400;
    font-size: 14px;
    border-spacing: 0;
}
thead {
    position: sticky;
    top: 0;
}
th, td {
    border-right: 1px #000 solid;
    border-bottom: 1px #000 solid;
    height: 27px;
}
/*td:first-child, th:first-child {
    position: sticky;
    top: auto;
    left: 0;
    
    z-index: 2;
}*/
th {
    white-space: nowrap;
    padding: 17px;
}
td {
    width: max-content;
    white-space: nowrap;
    padding: 0 11px;
    text-align: left;
}
tbody tr:hover td {
    background-color: #FFFF66;
    font-weight: 400;
}
.new-transaction-modal, .add-history-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 770px;
    padding: 27px;
    border-radius: 15px;
    background-color: #E5F2E8;
    z-index: 1;
}
.new-transaction-modal h2, .add-history-modal > h2 {
    font-family: Inter;
    font-size: 17px;
    font-weight: 500;
    margin: 0;
}
.new-transaction-modal-close-icon {
    position: absolute;
    top: 27px;
    right: 27px;
    width: 24px;
    aspect-ratio: 1;
}
.new-transaction-modal-close-button {
    outline: none;
    border: none;
    background: none;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
}
.new-transaction-modal-close-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}
.new-transaction-modal-title-wrapper {
    width: max-content;
}
.new-transaction-modal h2 {
    margin: 0;
    font-family: Inter;
    font-weight: 500;
}
.new-transaction-modal__form-wrapper {
    width: max-content;
}
.new-transaction-modal__form-wrapper > form {
    width: max-content;
}
.new-transaction-modal__input-block {
    width: max-content;
    height: max-content;
    margin: 11px 0;
    padding: 11px;
    font-family: Arial;
    border: 1px #00000050 solid;
    border-radius: 7px;
}
.new-transaction-modal__label-wrapper {
    
}
.new-transaction-modal__label-wrapper > label {
    display: block;
    font-size: 14px;
}
.new-transaction-modal__input-wrapper {
    margin: 11px 0;
}
.new-transaction-modal__input-wrapper > input {
    padding: 7px 5px;
    margin: 7px 0 0;
    border-radius: 4.9px;
    font-size: 15px;
    outline: none;
    border-width: 1px;
    height: 33px;
}
.new-transaction-modal__select-wrapper {
    margin: 21px 0;
}
.new-transaction-modal__select-wrapper > select {
    padding: 7px;
    margin: 7px 0 0;
    border-radius: 4.9px;
    font-size: 15px;
    height: 33px;
    display: none;
}
/* Кастомный селект. Начало */
/* Обёртка нового селекта */
#custom_transaction_product {
    position: relative;
    margin: 7px 0 0;
    font-size: 15px;
}

/* Выбранный товар */
#custom_transaction_product .custom-select__selected {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px;
    width: 283px;
    height: 33px;
    border: 1px solid #000;
    border-radius: 4.9px;
    background: #fff;
    color: #333;
    cursor: pointer;
}
span.custom-select__arrow {
    width: 13px;
    aspect-ratio: 1;
}
/* Выпадающий список */
#custom_transaction_product .custom-select__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4.9px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
/* Открытый список */
#custom_transaction_product.is-open .custom-select__dropdown {
    display: block;
}
/* Названия секций */
#custom_transaction_product .custom-select__group {
    padding: 7px;
    background: #f0f0f0;
    color: #000000;
    font-size: 13px;
    font-weight: bold;
}
/* Товары */
#custom_transaction_product .custom-select__option {
    padding: 5px 9px 5px 19px;
    font-size: 14px;
    cursor: pointer;
}
#custom_transaction_product .custom-select__option:hover {
    background: #e8f5e9;
}
/* Кастомный селект. Конец */
.new-transaction-modal__button-wrapper {

}
.new-transaction-modal__button-wrapper > button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 101.84px;
    aspect-ratio: 101.84 / 37;
    padding: 0;
    border: none;
    border-radius: 8px;
    background-color: #20c967;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(32, 201, 103, 0.25);
    transition: all 0.2s ease;
}
.new-transaction-modal__button-wrapper > button:hover {
    background: #18b85b;
    box-shadow: 0 4px 10px rgba(32, 201, 103, 0.3);
    transform: translateY(-1px);
}
.new-transaction-modal__button-wrapper > button:active {
    background: #13a851;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(32, 201, 103, 0.2);
}
.new-transaction-modal__button-wrapper > button > span.value {
    display: block;
}
.new-transaction-modal__button-wrapper > button > span.loading {
    display: none;
    width: 37px;
    aspect-ratio: 1;
}
/* Радиокнопки transaction-modal Начало */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}
.filter-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 2px solid transparent;
    outline: none;
    border-radius: 8px;
    font-family: Manrope;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease,
                color 0.2s ease,
                box-shadow 0.2s ease,
                transform 0.1s ease;
}
/* Скрываем стандартную радиокнопку */
.filter-btn input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
/* Кечаги остаток — зелёный */
.btn-saldo {
    color: #247A50;
    background: #E8F5EC;
    border-color: #B9E2C8;
}
.btn-saldo:hover {
    background: #D2EEDC;
}
.btn-saldo:has(input:checked) {
    color: #fff;
    background: #247A50;
    border-color: #247A50;
    box-shadow: 0 3px 8px rgba(36, 122, 80, 0.25);
}
/* Приход — синий */
.btn-income {
    color: #2369C8;
    background: #EAF2FF;
    border-color: #C6D9FA;
}
.btn-income:hover {
    background: #D6E6FF;
}
.btn-income:has(input:checked) {
    color: #fff;
    background: #2369C8;
    border-color: #2369C8;
    box-shadow: 0 3px 8px rgba(35, 105, 200, 0.25);
}
/* Бугунги остаток — оранжевый */
.btn-today {
    color: #A65D08;
    background: #FFF2DF;
    border-color: #F3D3A6;
}
.btn-today:hover {
    background: #FFE5C0;
}
.btn-today:has(input:checked) {
    color: #fff;
    background: #C47718;
    border-color: #C47718;
    box-shadow: 0 3px 8px rgba(196, 119, 24, 0.25);
}
/* Нажатие */
.filter-btn:active {
    transform: scale(0.97);
}
/* Доступность с клавиатуры */
.filter-btn:has(input:focus-visible) {
    outline: 3px solid #94A3B8;
    outline-offset: 3px;
}
/* Радиокнопки transaction-modal Конец */
.add-history-modal__content {
    margin-top: 27px;
}
.add-history-table {
    border-collapse: collapse;
    border-spacing: unset;
    font-family: Manrope;
    font-weight: 400;
    font-size: 14px;
}
.add-history-table tr {
    border-bottom: 1px #000 solid;
}
.add-history-table th, .add-history-table td {
    border: none;
    text-align: left;
    padding: 0 11px;
}
.page-visites-table-wrapper {
    margin-top: 57px;
}


.AB-table__add-new-lot-modal-container {
    display: flex;
    flex-wrap: wrap;
    column-gap: 17px;
    margin: 17px 0;
    max-height: 650px;
    border: 1px #00000050 solid;
    border-radius: 5px;
    overflow-y: auto;
}
.AB-table__add-new-lot-modal-toggle {
    display: none;
}
.AB-table__add-new-lot-modal-toggle-flex-box {
    display: flex;
    flex-wrap: wrap;
    column-gap: 7px;
    row-gap: 11px;
}
.AB-table__add-new-lot-modal-inputs-block {
    width: 100%;
    height: max-content;
    padding: 17px;
}
.AB-table__add-new-lot-modal-selects-block {
    display: flex;
    column-gap: 11px;
    row-gap: 17px;
    align-items: flex-start;
    flex-wrap: wrap;
    border: 1px #00000050 solid;
    border-radius: 5px;
    width: 592.59px;
    height: max-content;
    padding: 17px;
}
.AB-table__add-new-lot-modal-inputs-block-fieldset-wrapper {
    position: relative;
    margin: 0 0 11px;
}
.AB-table__add-new-lot-modal-inputs-block-fieldset-wrapper-legend {
    padding: 13px 16px;
}
.AB-table__add-new-lot-modal-inputs-block-fieldset-wrapper-legend h2 {
    font-family: Inter;
    font-size: 17px;
    font-weight: 500;
    margin: 0;
}
.AB-table__add-new-lot-modal-inputs-block-fieldset-wrapper-slide-buttons-wrapper {
    position: absolute;
    top: 15px;
    right: 10px;
}
.avans-toggle-button, .surcharge-toggle-button, .calculation-toggle-button, .production-toggle-button, .logistics-toggle-button, .total_info-toggle-button {
    position: unset !important;
}
.AB-table__add-new-lot-modal-inputs-block-fieldset--3-body, 
.AB-table__add-new-lot-modal-inputs-block-fieldset--4-body, 
.AB-table__add-new-lot-modal-inputs-block-fieldset--5-body, 
.AB-table__add-new-lot-modal-inputs-block-fieldset--6-body, 
.AB-table__add-new-lot-modal-inputs-block-fieldset--7-body, 
.AB-table__add-new-lot-modal-inputs-block-fieldset--8-body {
    display: none;
}
.AB-table__add-new-lot-modal-inputs-block-fieldset--1, 
.AB-table__add-new-lot-modal-inputs-block-fieldset--2 {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    column-gap: 7px;
    row-gap: 11px;
    width: 100%;
    margin: 0 0 11px;
}
.AB-table__add-new-lot-modal-inputs-block-fieldset--3, 
.AB-table__add-new-lot-modal-inputs-block-fieldset--4, 
.AB-table__add-new-lot-modal-inputs-block-fieldset--5, 
.AB-table__add-new-lot-modal-inputs-block-fieldset--6 {
    display: flex;
    flex-wrap: wrap;
    column-gap: 7px;
    row-gap: 11px;
    width: 100%;
    margin: 0;
}
.AB-table__add-new-lot-modal-inputs-block-fieldset-toggle-button {
    outline: none;
    border: none;
    background: none;
    position: absolute;
    padding: 0;
    top: 10px;
    right: 10px;
    cursor: pointer;
}
.AB-table__add-new-lot-modal-inputs-block-fieldset-toggle-button svg {
    display: block;
    width: 100%;
    height: 100%;
}
.toggle-down {

}
.toggle-up {
    
}
legend {
    font-family: Inter;
    font-size: 17px;
    font-weight: 500;
}
fieldset fieldset legend {
    font-size: 13px;
}
.AB-table__add-new-lot-modal-input-wrapper, .AB-table__add-new-lot-modal-select-wrapper {
    width: max-content;
    height: max-content;
    padding: 11px;
    font-family: Arial;
    border: 1px #00000050 solid;
    border-radius: 7px;
}
.AB-table__add-new-lot-modal-input-wrapper label, .AB-table__add-new-lot-modal-select-wrapper label {
    display: block;
    font-size: 14px;
}
.AB-table__add-new-lot-modal-input-wrapper input {
    padding: 7px 5px;
    margin: 11px 0 0;
    border-radius: 4.9px;
    font-size: 15px;
    outline: none;
    border-width: 1px;
    height: 33px;
}
.AB-table__add-new-lot-modal-input-wrapper input[name="product-name"] {
    width: 347px;
    margin: 0 !important;
}
.AB-table__add-new-lot-modal-input-wrapper input[name="book-number"] {
    text-transform: uppercase;
}
.AB-table__add-new-lot-modal-input-wrapper input::placeholder {
    text-transform: none;
}
.AB-table__add-new-lot-modal-input-wrapper input:-moz-placeholder {
    text-transform: none;
}
.AB-table__add-new-lot-modal-input-wrapper input::-moz-placeholder {
    text-transform: none;
}
.AB-table__add-new-lot-modal-input-wrapper input:-ms-input-placeholder {
    text-transform: none;
}
.AB-table__add-new-lot-modal-input-wrapper input::-webkit-input-placeholder {
    text-transform: none;
}
.AB-table__add-new-lot-modal-select-wrapper select {
    padding: 7px;
    margin: 11px 0 0;
    border-radius: 4.9px;
    font-size: 15px;
    height: 33px;
}
.AB-table__add-new-lot-modal-input-flex-box {
    display: flex;
    column-gap: 3px;
    margin: 11px 0 0;
}
.AB-table__add-new-lot-modal-product-input {
    
}
.AB-table__add-new-lot-modal-product-input-go-button {
    position: relative;
    outline: none;
    border: none;
    background: none;
    padding: 0;
    width: 33px;
    aspect-ratio: 1;
    cursor: pointer;
}
/* --- Прелоадер --- */
.AB-table__add-new-lot-modal-product-input-go-button .loading {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}
/* если кнопке добавить класс .loading — переключится отображение */
.AB-table__add-new-lot-modal-product-input-go-button.loading .icon {
  display: none;
}
.AB-table__add-new-lot-modal-product-input-go-button.loading .loading {
  display: flex;
}
/* --- Прелоадер --- */
.AB-table__add-new-lot-modal-products-list {
    border: 1px #00000050 solid;
    border-radius: 7px;
    margin: 7px 0 0;
    padding: 7px 7px 0;
    font-size: 11.999px;
    display: none;
}
.AB-table__add-new-lot-modal-products-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 5px;
    border-bottom: 1px #000 dotted;
}
.AB-table__add-new-lot-modal-products-list-item span {
    display: block;
}
.AB-table__add-new-lot-modal-products-list-item .delete-button  {
    display: block;
    outline: none;
    border: none;
    background: none;
    width: 14px;
    aspect-ratio: 1;
    padding: 0;
    cursor: pointer;
}
.AB-table__add-new-lot-modal-form-submit-button-wrapper {

}
.AB-table__add-new-lot-modal-form-submit-button {

}




.btn-delete {
    border: none;
    outline: none;
    background: none;
    padding: 0;
    width: 19px;
    aspect-ratio: 1;
    cursor: pointer;
}
.editable {
    cursor: pointer;
}
svg {
    display: block;
    width: 100%;
    height: 100%;
}
b {
    font-weight: 600;
}
.hidden {
    display: none !important;
}
ul:not(.list-ul) {
    padding: 0;
}
li:not(.list) {
    list-style: none;
}
address {
    font-style: normal;
}
.id-color {
    background-color: #E8EDF3;
}
.names-color {
    background-color: #E3F0F7;
}
.oldRemains-color {
    background-color: #F4EFE3;
}
.receipt-color {
    background-color: #E5F2E8;
}
.price-color {
    background-color: #FFF3D6;
}
.sum-color {
    background-color: #FBE8DC;
}
.store-color {
    background-color: #EDE8F5;
}
.remains-color {
    background-color: #E1F1EF;
}
.difference-color {
    background-color: #F5E2E2;
}
.int {
    text-align: right;
}