 .modal { position:fixed; left:0; top:0; right:0; bottom:0; background:#0005; display:none; align-items:center; justify-content:center;height: 100svh;height: 100svh;

/* Large Viewport Height - включает все UI */
height: 100lvh;

/* Dynamic Viewport Height - автоматически адаптируется */
height: 100dvh; }
/*.modal-box { background:#fff; padding:20px; width:380px; border-radius:10px; position:relative; }
.autocomplete-box { border:1px solid #ccc; max-height:120px; overflow-y:auto; position:absolute; background:#fff; z-index:100; width:95%; }
.autocomplete-item { padding:4px; cursor:pointer; }
.autocomplete-item:hover { background:#eee; }
.modal-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-primary {
    background: #007bff;
    color: white;
    padding: 6px 12px;
}

.btn-green {
    background: #28a745;
    color: white;
    padding: 6px 12px;
}

.btn-secondary {
    background: #ccc;
    padding: 6px 12px;
}

.header { background: #f8f9fa; padding: 10px; border-bottom: 1px solid #dee2e6; }
        .auth-buttons { float: right; }
        .auth-buttons button, .auth-buttons a { margin-left: 10px; padding: 5px 15px; text-decoration: none; }
        .user-info { float: right; margin-right: 20px; }
		
	
	
	*/
	
header {
    position: relative;
    padding-top: 5px;
}
.logo img {
    height: 30px;
}
header .wrap {
    display: flex;
    flex-flow: row wrap;
}
header .wrap > * {
    flex: 1 0 0;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}
nav ul li a {
    display: block;
}
nav svg {
    height: 26px;
    fill: #3d87aa;
}
section.item {
    padding-top: 15px;
    position: relative;
}
.item .container {
    max-width: 800px;
}


	
.modal {
            display: flex;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0,0,0,0.5);
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        .modal-box {
            background: white;
            padding: 20px;
            border-radius: 8px;
            width: 90%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
        }
.autocomplete-box {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    width: auto;
    box-sizing: border-box;
    display: flex;
    flex-flow: row wrap;
}
.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
}
        .autocomplete-item:hover {
            background: #f0f0f0;
        }
        .form-group {
            margin-bottom: 15px;
        }
        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }
        input, select {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
.radio-group, .checkbox-group {
    display: flex;
    gap: 8px;
    margin-top: 5px;
    flex-flow: row;
    overflow-x: auto;
}
.cat-group .radio-group {
    flex-flow: row wrap;
}
.radio-group label, .checkbox-group label {
    font-weight: normal;
    display: inline-block;
    cursor: pointer;
    flex: 0 0 0;
}
.radio-group input, .checkbox-group input {
    display: none;
}
.radio-group input+span, .checkbox-group input+span {
    font-size: 16px;
    background: #adc5dd;
    margin-right: 4px;
    display: inline-block;
    padding: 8px 15px;
    border-radius: 40px;
    margin-bottom: 0px;
    width: 100%;
    text-align: center;
    white-space: nowrap;
}
.radio-group input[type="radio"]:checked+span {
    background: #3d87aa;
    color: #fff;
}
.form-date {
    display: flex;
    flex-flow: row wrap;
    gap: 30px;
}
.form-date .form-group {
    flex: 1 0 0;
}
.cat-group .radio-group input+span {
    font-size: 15px;
    padding: 4px 0px;
    background: transparent;
    color: #777;
	font-weight: normal;
}
.cat-group .radio-group input[type="radio"]:checked+span {
    background: transparent;
    color: #28a745;
    text-shadow: 0px 0px 3px #28a745, 2px 2px 7px #28a745;
}
.modal-buttons {
    display: flex;
    gap: 30px;
    justify-content: flex-end;
    margin-top: 30px;
}
.modal a {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}
.modal a svg {
    height: 30px;
    fill: #3d87aa;
}
        table { width: 100%; border-collapse: collapse; margin-top: 20px; display: flex; overflow: scroll;}
        th, td { border: 1px solid #ddd; padding: 8px; text-align: left; }
        th { background: #f8f9fa; }	
		
		
    .success-check {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2000;
    }
    
    .success-check svg {
        width: 80px;
        height: 80px;
        animation: checkmark 0.5s ease-in-out;
    }
    
    @keyframes checkmark {
        0% {
            transform: scale(0);
            opacity: 0;
        }
        50% {
            transform: scale(1.2);
        }
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }
    
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1999;
    }
    
		
		
.item-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-date {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-date .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="number"],
.form-group input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}


.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    margin-right: 5px;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-family: inherit;
}

.btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn:hover {
    opacity: 0.9;
}

.radio-group.error, .checkbox-group.error {
    background-color: #fffce4;
}
.alert {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
		