.diagnosis-form-container {
    max-width: 50%;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Базовые стили для формы - отображение блоками */
.diagnosis-form .child-form-grid {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

.diagnosis-form .child-form-grid .form-group {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-bottom: 15px !important;
    padding: 15px !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    box-sizing: border-box !important;
}

.diagnosis-success {
    padding: 10px;
    margin-bottom: 20px;
    background: #FEF3DF;
    border: 1px solid #FEF3DF;
    color: #F4782C;
    border-radius: 4px;
}

.diagnosis-error {
    padding: 10px;
    margin-bottom: 20px;
    background: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
    border-radius: 4px;
}

.diagnosis-form h3 {
    font-size: 1.5em;
    margin: 20px 0 10px;
    text-align: center;
}

.diagnosis-form h4 {
    font-size: 1.2em;
    margin: 20px 0 10px;
    text-align: center;
}

.form-group {
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    display: block;
}

.form-group label {
    font-weight: bold;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 10px;
    font-size: 0.95em;
    color: #333;
}

.form-section-title {
    margin: 30px 0 20px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    box-sizing: border-box;
    border-radius: 5px;
    text-align: center;
}

.form-section-title h3 {
    margin: 0;
    font-size: 1.3em;
    color: #333;
    width: 100%;
    text-align: left;
}

.field-description {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.85em;
    color: #555;
    line-height: 1.5;
    box-sizing: border-box;
}

.field-description strong {
    color: #0073aa;
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    width: 100%;
}

.field-description p {
    margin: 5px 0 0 0;
    width: 100%;
}

.form-group select {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    padding: 8px 12px;
    font-size: 0.95em;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.field-description {
    font-style: italic;
    color: #666;
    margin: 5px 0;
    font-size: 0.9em;
}

.child-fields {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.child-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.child-separator {
    height: 1px;
    background: #eee;
    margin: 15px 0;
}

.remove-child {
    color: #a00;
    text-decoration: none;
}

.remove-child:hover {
    text-decoration: underline;
}

.form-actions {
    margin-top: 20px;
    text-align: right;
}

.my-diagnoses-container {
    max-width: 1400px;
    margin: 0 auto;
}

.diagnoses-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.diagnoses-table th,
.diagnoses-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.diagnoses-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.diagnoses-table tr:hover {
    background-color: #f9f9f9;
}

.button {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 14px;
}

.button:hover {
    background: #e5e5e5;
}

.button-primary {
    background: #0073aa;
    border-color: #006799;
    color: #fff;
}

.button-primary:hover {
    background: #006799;
}

/* Стили для кнопки удаления */
.button-delete {
    background: #dc3232;
    border-color: #c00;
    color: #fff;
    margin-left: 5px;
}

.button-delete:hover {
    background: #b32424;
}

/* Цветовая индикация возрастных групп в таблице */
.diagnoses-table td:first-child {
    font-weight: bold;
}

/* Заголовок раздела образовательной области */
.diagnosis-section-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #2c3e50;
    margin: 30px 0 20px;
    padding: 15px 20px;
    background: #FEF3DF;
    color: #F4782C;
    border-radius: 8px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Заголовок раздела Познавательное развитие - другой цвет */
.diagnosis-section-title.cognitive-section {
    background: #FEF3DF;
}

/* Заголовок раздела Речевое развитие - третий цвет */
.diagnosis-section-title.speech-section {
    background: #FEF3DF;
}

/* Заголовок раздела Художественно-эстетическое развитие - четвертый цвет */
.diagnosis-section-title.art-section {
    background: #FEF3DF;
}

/* Заголовок раздела Физическое развитие - пятый цвет */
.diagnosis-section-title.physical-section {
    background: #FEF3DF;
}

/* Бейджи для возрастных групп */
.age-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.age-badge-3-4 {
    background: #e3f2fd;
    color: #1976d2;
}

.age-badge-4-5 {
    background: #e8f5e9;
    color: #388e3c;
}

.age-badge-5-6 {
    background: #fff3e0;
    color: #f57c00;
}

.age-badge-6-7 {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Адаптивность для таблицы */
@media screen and (max-width: 768px) {
    .diagnoses-table {
        font-size: 14px;
    }
	
	.diagnosis-form-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

    .diagnoses-table th,
    .diagnoses-table td {
        padding: 8px 10px;
    }
}

/* Стили для заголовков разделов в форме диагностики */
.section-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    margin: 25px 0 15px;
    padding: 12px 15px;
    background: #f0f4f8;
    border-left: 4px solid #0073aa;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

/* Списки показателей в описании полей */
.field-indicators {
    margin: 10px 0;
    padding-left: 25px;
    list-style-type: disc;
}

.field-indicators li {
    margin: 5px 0;
    line-height: 1.5;
    color: #444;
    font-size: 0.95em;
}

/* Полная ширина для элементов формы */
.form-group.full-width {
    width: 100% !important;
    max-width: 100% !important;
    clear: both;
}

/* ==========================================
   Стили для карточек диагностик
   ========================================== */

.diagnoses-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.diagnosis-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.diagnosis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Кнопка удаления (крестик) */
.card-delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(220, 50, 50, 0.1);
    color: #dc3232;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 10;
}

.card-delete-btn:hover {
    background: #dc3232;
    color: #fff;
    transform: rotate(90deg);
}

.card-delete-btn span {
    margin-top: -2px;
}

/* Заголовок карточки */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 20px;
    flex-wrap: wrap;
}

/* Вертикальное расположение бейджей */
.card-header.card-header-vertical {
    flex-direction: column;
    align-items: flex-start;
}

/* Бейдж возрастной группы */
.card-age-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #ff9500 0%, #ffb347 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Бейдж направления */
.card-direction-badge {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f4f8;
    color: #5a6c7d;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Тело карточки */
.card-body {
    padding: 0 20px 15px;
}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.card-row:last-child {
    border-bottom: none;
}

.card-label {
    font-size: 13px;
    color: #8898aa;
    font-weight: 500;
}

.card-value {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}

/* Кружок с количеством детей */
.card-children-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ff9500 0%, #ffb347 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Подвал карточки с кнопками */
.card-footer {
    display: flex;
    gap: 10px;
    padding: 12px 20px;
}

.card-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
}

.btn-icon {
    font-size: 13px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-text {
    line-height: 1;
    display: inline-block;
}

/* Кнопка редактировать */
.card-btn-edit {
    background: #000;
    color: #fff;
    border: 1px solid #000;
}

.card-btn-edit:hover {
    background: #fff;
    color: #000;
    border: 1px solid #000;
    transform: translateY(-2px);
}

/* Кнопка Word */
.card-btn-word {
    background: #F4782C;
    color: #fff;
}

.card-btn-word:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}

/* Цветовые акценты для разных типов карточек */
.diagnosis-card.social-card {
    border-left: 4px solid #ff9500;
}

.diagnosis-card.social-card .card-age-badge {
    background: #ff9500;
}

.diagnosis-card.cognitive-card {
    border-left: 4px solid #dc3232;
}

.diagnosis-card.cognitive-card .card-age-badge {
    background: #dc3232;
}

.diagnosis-card.speech-card {
    border-left: 4px solid #ff9500;
}

.diagnosis-card.speech-card .card-age-badge {
    background: #ff9500;
}

.diagnosis-card.art-card {
    border-left: 4px solid #1e90b4;
}

.diagnosis-card.art-card .card-age-badge {
    background: #1e90b4;
}

.diagnosis-card.physical-card {
    border-left: 4px solid #000000;
}

.diagnosis-card.physical-card .card-age-badge {
    background: #000000;
}

/* Адаптивность для карточек */
@media screen and (max-width: 768px) {
    .diagnoses-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
	
	.e-con.e-con>.e-con-inner>.elementor-widget, .elementor.elementor .e-con>.elementor-widget {
    max-width: 100%;
    padding: 0px 10px 0px 10px;
}
    
    .card-header {
        flex-direction: column;
        gap: 8px;
		padding: 42px 15px 15px 15px;
    }
    
    .card-age-badge,
    .card-direction-badge {
        width: 100%;
        text-align: center;
    }
    
    .card-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .card-value {
        text-align: left;
        max-width: 100%;
    }
    
    .card-footer {
        flex-direction: column;
    }
    
    .card-btn {
        width: 100%;
    }
	
	.diagnosis-section-title {
    font-size: 16px;
    
}

/* Анимация при удалении */
.card-removing {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}