body {
    display: flex;
    justify-content: center;
    margin: 2rem;
    background-color: #f5f5f5;
    font-family: Arial, sans-serif;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.container {
   background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    display: flex;
    flex-direction: column;
    max-width: 600px;
	box-sizing: border-box;	
}

.warning{
   margin-bottom: 10px;
   width: 100%;
   max-width: 600px;
}

select, input {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn-add {
    background-color: #2e7d32;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
    margin: 8px 0;
}

.btn-show {
    background-color: #03a9f4;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
}

.kubada {
    text-align: center;
    color: #666;
    margin-top: 20px;
    font-family: monospace;
}

button:hover {
    opacity: 0.9;
}

	
table { width: 100%; border-collapse: collapse; font-size: 12px}
th, td { padding: 8px; border: 1px solid #ddd; text-align: left; }
th { background-color: #f4f4f4; }
.table-div{
    width: 100%;
    overflow: scroll;
    max-height: 300px;
    margin-top: 20px;
    min-height: 110px;
}
		
.spinner::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	margin-left: -20px;
	border: 4px solid #ccc;
	border-top-color: #3498db;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	z-index: 10; 
}


@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.loading {
	position: relative;
		pointer-events: none; 
	opacity: 0.7; 
	}

/* Стили для кнопок в таблице */
.btn-edit, .btn-delete, .btn-save, .btn-cancel {
    padding: 4px 8px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    margin: 0 2px;
    min-width: 60px;
}

.btn-edit {
    background-color: #2196f3;
    color: white;
}

.btn-edit:hover {
    background-color: #1976d2;
}

.btn-delete {
    background-color: #f44336;
    color: white;
}

.btn-delete:hover {
    background-color: #d32f2f;
}

.btn-save {
    background-color: #4caf50;
    color: white;
}

.btn-save:hover {
    background-color: #388e3c;
}

.btn-cancel {
    background-color: #9e9e9e;
    color: white;
}

.btn-cancel:hover {
    background-color: #757575;
}

/* Стиль для поля ввода при редактировании */
.edit-input {
    width: 100%;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    margin: 0;
    box-sizing: border-box;
}

.edit-input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 3px rgba(33, 150, 243, 0.3);
}

/* Выравнивание кнопок в ячейке действий */
td:last-child {
    white-space: nowrap;
}