.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.date-filter {
    display: flex;
    gap: 10px;
	margin-left: 20px;
}

.date-input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.date-filter > label {
	margin-top: 7px;
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    color: #555555;
    background-color: #f8f8f8;
    line-height: 1.7;
    font-size: 16px;
    display: flex;
    flex-direction: column; 
    align-items: center;
    min-height: 100vh;
	margin: 0;
}

.calculator-container {
    background-color: white;
    width: 100%;
    max-width: 1400px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin: 0 auto; /* Центрируем контейнер */
}

form {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    color: #555555;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
	empty-cells: hide;
}

tr {
    background-color: white;
    transition: background-color 0.3s;
}

.sostav {
    text-align: center;
}

#pagination {
    margin-top: 20px;
    text-align: center;
    display: block;
}

.page-link {
    padding: 5px 10px;
    margin: 0 5px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
}

.highlight {
    background-color: #f0f0f0;
    transition: background-color 0.3s;
}

.order-row:nth-child(even) {
    background-color: #f8d7da;
}

.order-row:nth-child(odd) {
    background-color: #c3e6cb;
}

.order-row:hover {
    background-color: #FF9900;
    color: #fff;
}

.color-changer {
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid #0d6efd;
    border-radius: 0.25rem;
    background-color: #fff;
    cursor: pointer;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    margin: 0;
}
.color-changer:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 011.414 1.414l-5 5a1 1 0 01-1.414 0l-5-5a1 1 0 010-1.414z'/%3e%3c/svg%3e");
}

.color-changer:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.color-changer:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.calculator-container {
    max-width: 1400px;
    width: 100%;
}

@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .date-filter {
        flex-wrap: wrap;
    }
    
    .date-input {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .calculator-container {
        padding: 15px;
    }
    
    table {
        font-size: 14px;
    }
}
.filter-button {
    padding: 10px 15px;
    margin-left: 10px;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.filter-button:hover {
    background-color: #0b5ed7;
}

.filter-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

#calculator-results {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    display: none; /* Скрываем по умолчанию */
}
        
#calculator-results div {
            margin-bottom: 10px;
        }
.summary-title {
    font-size: 18px;
    margin-bottom: 10px;
}
.summary-block {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
}
.summary-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.label {
    width: 200px;
    font-weight: bold;
}
.value {
    font-size: 16px;
    color: #333;
}
.hedr {
	background: #f8d7da;
}
.hedr1 {
	background: #f8d7da;
	text-align:center;
}
.hedrx {
	background: #c3e6cb;
}

.results-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-result {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.save-offcut {
    background: #FF9900;
    border: 1px solid #ced4da;
    color: #ffffff;
	padding: 30px;
	font-weight: bold;
	font-size: 18px;
	cursor: pointer;
}

.save-offcut:hover {
    background: #e9ecef;
	color: #495057;
}

.save-offcut:active { 
    background: #e5e5e5;
    -webkit-box-shadow: inset 0px 0px 5px #c1c1c1;
    -moz-box-shadow: inset 0px 0px 5px #c1c1c1;
    box-shadow: inset 0px 0px 5px #c1c1c1;
    outline: none;
}

.bord td {
	border: 2px solid #000;
	empty-cells: hide;
}
.red {
	color:#FF0001;
}

.offcut {
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid #0d6efd;
    border-radius: 0.25rem;
    background-color: #fff;
    cursor: pointer;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    margin: 0;
}
.offcut:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 011.414 1.414l-5 5a1 1 0 01-1.414 0l-5-5a1 1 0 010-1.414z'/%3e%3c/svg%3e");
}

.offcut:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.offcut:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.zel {
background-color: #E2EFD9;
border-color: #fff;}
.ser {
background-color: #F2F2F2;
border-color: #fff;}
.gol {
background-color: #DEEAF6;
border-color: #fff !important;}
.osn {
background-color: #DADADA;
border-color: #fff;}
.obr1 {
background-color: #F7CAAC;
border-color: #fff;}
.obr2 {
background-color: #D9E2F3;
border-color: #fff;}
.obr3 {
background-color: #FEF2CB;
border-color: #fff;}
.roz {
	background: #F8D7DA;
}
.obr_border {
	border-right:#000 solid 2px !important;
}

.cent {
	text-align:center;
}

.label-input {
	padding: 20px;
}

.submit-input {
	margin-left: 20px;
	padding: 10px;
	background-color: #FF9900;
	border: none;
	outline: none;
	color: #fff;
	cursor: pointer;
}
.submit-input:hover {
	box-shadow:  0 0 10px rgba(0,0,0,0.5);
}

.header-input {
	text-align: center;
	margin-bottom: 10px;
}

.remainder-cut {
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid #0d6efd;
    border-radius: 0.25rem;
    background-color: #fff;
    cursor: pointer;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    margin: 0;
}
.remainder-cut:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 011.414 1.414l-5 5a1 1 0 01-1.414 0l-5-5a1 1 0 010-1.414z'/%3e%3c/svg%3e");
}

.remainder-cut:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.remainder-cut:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

 .login-container {
	        position: relative;
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
			height: 230px;
        }

        .login-title {
            margin-bottom: 20px;
            text-align: center;
            color: #333;
        }

        .login-error {
            color: red;
            margin-bottom: 15px;
            text-align: center;
        }

        .login-form-group {
            margin-bottom: 15px;
        }

        .login-label {
            display: block;
            margin-bottom: 5px;
            color: #555;
			margin-left: 25px;
        }

        .login-input {
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
			margin-left: 20px;
        }

        .login-button {
            position: absolute;
            width: 300px;
            top: 170px;
            padding: 10px;
            background: #007bff;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
        }

        .login-button:hover {
            background: #0056b3;
        }
		.alert {
    margin-bottom: 20px;
    position: relative;
}

.alert .close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}
.menu {
    background-color: #FF9900;
    width: 100%; /* Ширина меню */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Добавляем тень для эффекта возвышенности */
}
.menu1 {
    background-color: #FF9900;
    width: 100%; /* Ширина меню */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Добавляем тень для эффекта возвышенности */
	margin-bottom: 50px;
}

.menu_vn {
	max-width: 1400px;
	color: white;
    padding: 15px 0; /* Увеличили отступы для лучшего визуального восприятия */
    /*display: flex;
    justify-content: space-between;
    align-items: center; */
	text-align: center;

}

.menu a, .menu1 a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0 15px; /* Добавляем отступы между пунктами меню */
    transition: color 0.3s, background 0.3s; /* Добавляем плавность при наведении */
}

.menu a:hover, .menu1 a:hover {
    background-color: rgba(255,153,0,0.8); /* Меняем цвет при наведении */
}
@media (max-width: 768px) {
    .menu {
        flex-wrap: wrap; /* Позволяем элементам переноситься на новую строку */
        padding: 10px 0;
    }
    
    .menu a {
        margin: 5px;
    }
}
.table th, .table td {
	text-align: center;
}

.save-btn-container {
    background: #FF9900;
    border: 1px solid #ced4da;
    color: #ffffff;
	padding: 30px;
	font-weight: bold;
	font-size: 18px;
	cursor: pointer;
}

.save-btn-container:hover {
    background: #e9ecef;
	color: #495057;
}

.save-btn-container:active { 
    background: #e5e5e5;
    -webkit-box-shadow: inset 0px 0px 5px #c1c1c1;
    -moz-box-shadow: inset 0px 0px 5px #c1c1c1;
    box-shadow: inset 0px 0px 5px #c1c1c1;
    outline: none;
}
.status {
	background:#407AA4 !important;
	color:#fff;
}