тип заявок

This commit is contained in:
2026-02-03 00:07:57 +05:00
parent 1b4b65cc37
commit 858d1802e6
4 changed files with 442 additions and 0 deletions

View File

@@ -2451,4 +2451,260 @@ small {
padding: 8px 15px;
font-size: 0.8rem;
}
}
/* Стили для выбора типа задачи */
.task-type-selector {
margin-bottom: 20px;
width: 100%;
}
.task-type-buttons {
display: flex;
flex-wrap: wrap;
justify-content: space-between; /* Равномерное распределение */
align-items: stretch;
gap: 10px;
margin-bottom: 10px;
width: 100%;
}
.task-type-btn {
flex: 1 1 calc(11.11% - 10px); /* 9 кнопок = примерно 11.11% каждая */
min-width: 100px;
max-width: 150px;
padding: 12px 8px;
border: 2px solid #e0e0e0;
background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
border-radius: 12px;
cursor: pointer;
text-align: center;
font-weight: 500;
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 95px;
font-size: 12px;
box-sizing: border-box;
position: relative;
overflow: hidden;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
color: #333; /* Темный цвет текста для неактивных кнопок */
}
.task-type-btn::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: transparent;
transition: all 0.3s ease;
}
.task-type-btn:hover {
transform: translateY(-5px);
box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}
/* Цвета для разных типов задач при наведении и активности */
.task-type-btn[data-type="regular"]:hover {
border-color: #3498db;
background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}
.task-type-btn[data-type="regular"].active {
border-color: #2980b9;
background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
color: white;
box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}
.task-type-btn[data-type="document"]:hover {
border-color: #9b59b6;
background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}
.task-type-btn[data-type="document"].active {
border-color: #8e44ad;
background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
color: white;
box-shadow: 0 6px 12px rgba(155, 89, 182, 0.3);
}
.task-type-btn[data-type="it"]:hover {
border-color: #2ecc71;
background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}
.task-type-btn[data-type="it"].active {
border-color: #27ae60;
background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
color: white;
box-shadow: 0 6px 12px rgba(46, 204, 113, 0.3);
}
.task-type-btn[data-type="ahch"]:hover {
border-color: #e67e22;
background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}
.task-type-btn[data-type="ahch"].active {
border-color: #d35400;
background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
color: white;
box-shadow: 0 6px 12px rgba(230, 126, 34, 0.3);
}
.task-type-btn[data-type="psychologist"]:hover {
border-color: #e74c3c;
background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}
.task-type-btn[data-type="psychologist"].active {
border-color: #c0392b;
background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
color: white;
box-shadow: 0 6px 12px rgba(231, 76, 60, 0.3);
}
.task-type-btn[data-type="speech_therapist"]:hover {
border-color: #1abc9c;
background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
}
.task-type-btn[data-type="speech_therapist"].active {
border-color: #16a085;
background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
color: white;
box-shadow: 0 6px 12px rgba(26, 188, 156, 0.3);
}
.task-type-btn[data-type="hr"]:hover {
border-color: #f39c12;
background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
}
.task-type-btn[data-type="hr"].active {
border-color: #e67e22;
background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
color: white;
box-shadow: 0 6px 12px rgba(243, 156, 18, 0.3);
}
.task-type-btn[data-type="certificate"]:hover {
border-color: #34495e;
background: linear-gradient(135deg, #eceff1 0%, #cfd8dc 100%);
}
.task-type-btn[data-type="certificate"].active {
border-color: #2c3e50;
background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
color: white;
box-shadow: 0 6px 12px rgba(52, 73, 94, 0.3);
}
.task-type-btn[data-type="e_journal"]:hover {
border-color: #8e44ad;
background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}
.task-type-btn[data-type="e_journal"].active {
border-color: #7d3c98;
background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
color: white;
box-shadow: 0 6px 12px rgba(142, 68, 173, 0.3);
}
.task-type-btn.active::before {
background: rgba(255, 255, 255, 0.5);
}
.task-type-btn i {
font-size: 20px;
margin-bottom: 8px;
color: #666;
transition: all 0.3s ease;
}
.task-type-btn:hover i {
color: #333;
transform: scale(1.05);
}
.task-type-btn.active i {
color: white;
transform: scale(1.1);
}
/* Цвета иконок для неактивных кнопок */
.task-type-btn[data-type="regular"] i {
color: #3498db;
}
.task-type-btn[data-type="document"] i {
color: #9b59b6;
}
.task-type-btn[data-type="it"] i {
color: #2ecc71;
}
.task-type-btn[data-type="ahch"] i {
color: #e67e22;
}
.task-type-btn[data-type="psychologist"] i {
color: #e74c3c;
}
.task-type-btn[data-type="speech_therapist"] i {
color: #1abc9c;
}
.task-type-btn[data-type="hr"] i {
color: #f39c12;
}
.task-type-btn[data-type="certificate"] i {
color: #34495e;
}
.task-type-btn[data-type="e_journal"] i {
color: #8e44ad;
}
/* Адаптивность */
@media (max-width: 1400px) {
.task-type-btn {
flex: 1 1 calc(16.66% - 10px); /* 6 в ряд */
min-width: 120px;
}
}
@media (max-width: 1200px) {
.task-type-btn {
flex: 1 1 calc(20% - 10px); /* 5 в ряд */
min-width: 110px;
font-size: 11px;
}
}
@media (max-width: 992px) {
.task-type-btn {
flex: 1 1 calc(25% - 10px); /* 4 в ряд */
min-width: 100px;
}
}
@media (max-width: 768px) {
.task-type-btn {
flex: 1 1 calc(33.333% - 10px); /* 3 в ряд */
min-width: 90px;
min-height: 85px;
}
.task-type-btn i {
font-size: 18px;
}
}
@media (max-width: 576px) {
.task-type-btn {
flex: 1 1 calc(50% - 10px); /* 2 в ряд */
min-width: 120px;
font-size: 13px;
}
}
@media (max-width: 400px) {
.task-type-btn {
flex: 1 1 100%; /* 1 в ряд */
min-width: 100%;
max-width: 100%;
}
}