/* Современные стили для системы формирования конкурсных заявок */

* {
    box-sizing: border-box;
}

/* body {
    font-family: "Times New Roman",'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
} */

/* Шапка сайта */
.site-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #2c3e50;
    font-size: 18px;
}

.organization-info h1 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.system-title {
    text-align: center;
    margin: 15px auto 10px auto;
    max-width: 600px;
    position: relative;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    overflow: hidden;
}

.system-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.system-title h2 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.system-title h2::before {
    content: '📋';
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.system-title h2::after {
    content: '📋';
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.exit-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 7px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.exit-btn:hover {
    background: rgba(255,255,255,0.3);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Основной контейнер */
.main-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0px 0px;
}

/* Современная таблица */
.modern-table {
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
}

.modern-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: transparent;
}

.modern-table th,
.modern-table td {
    padding: 20px;
    text-align: left;
    border: none;
    border-bottom: 1px solid #eee;
}

.modern-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.modern-table tr:hover {
    background-color: #f8f9fa;
}

.modern-table tr:last-child td {
    border-bottom: none;
}

/* Современные уведомления */
.modern-alert {
    border-radius: 12px;
    border: none;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.modern-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
}

.modern-alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.modern-alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #a8e6cf 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
     line-height: 1.6;
}

.modern-alert h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modern-alert p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.modern-alert strong {
    font-weight: 700;
}

/* Современные кнопки */
.modern-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.modern-btn-sm {
    padding: 8px 16px;
    font-size: 11px;
}

/* Список документов */
.document-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.document-list li {
    margin-bottom: 15px;
}

.document-link {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid #3498db;
}

.document-link:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #2c3e50;
}

.document-link i {
    margin-right: 12px;
    color: #3498db;
    font-size: 16px;
}

.document-format {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: auto;
    margin-right: 10px;
}

.document-download {
    color: #27ae60;
    font-size: 18px;
}

/* Заголовок страницы */
.page-title {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    text-align: center;
}

.page-title h4 {
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .organization-info h1 {
        font-size: 16px;
    }
    
    .system-title {
        margin: 20px 0;
        padding: 30px 15px;
    }
    
    .system-title h2 {
        font-size: 20px;
        letter-spacing: 1px;
        flex-direction: column;
        gap: 10px;
    }
    
    .system-title h2::before,
    .system-title h2::after {
        font-size: 24px;
    }
    
    .main-container {
        padding: 15px 10px;
    }
    
    .modern-table th,
    .modern-table td {
        padding: 15px 10px;
        font-size: 14px;
    }
    
    .page-title {
        padding: 20px;
    }
    
    .page-title h4 {
        font-size: 18px;
    }
}

/* Информационные блоки в ряд */
.info-blocks-row {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.info-block {
    flex: 1;
    border-radius: 12px;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: visible;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.info-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.info-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.info-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 10;
}

.info-content p {
    margin: 10px 0 0 0;
    line-height: 1.5;
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.modern-alert-warning .info-header {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.modern-alert-info .info-header {
    background: linear-gradient(135deg, #d1ecf1 0%, #a8e6cf 100%);
    color: #0c5460;
}

.modern-alert-success .info-header {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

/* Адаптивность для информационных блоков */
@media (max-width: 768px) {
    .info-blocks-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .info-header h5 {
        font-size: 14px;
    }
    
    .info-content {
        padding: 0 15px 15px 15px;
    }
}

/* Блок заголовка и организации */
.title-organization-row {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    align-items: flex-start;
}

.page-title {
    flex: 2;
    background: rgb(107, 191, 244);
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    margin: 0;
}

.organization-block {
    flex: 1;
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    border-left: 3px solid #28a745;
}

.organization-block h5 {
    margin: 0 0 15px 0;
    color: #155724;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.organization-block p {
    margin: 0;
    color: #155724;
    line-height: 1.5;
    font-size: 14px;
}

/* Современный разделитель */
.section-divider {
    display: flex;
    align-items: center;
    margin: 40px 0;
    gap: 20px;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #667eea 50%, transparent 100%);
    border-radius: 1px;
}

.divider-icon {
    font-size: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Разделы конкурса */
.competition-sections {
    margin: 30px 0;
}

.competition-sections h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.section-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
    display: flex;
    gap: 15px;
}

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

.section-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.section-number-d {
    background: linear-gradient(135deg, #f9f0fb 0%, #f4e0f3 100%);
    color: black;
    width: 40px;
    height: 25px;
    position: relative;
    left:2px;
    top:2px;
    border-radius: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 1;
}

.section-content {
    flex: 1;
}

.section-content h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.section-content p {
    margin: 5px 0 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.status-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}

.status-success {
    background: #28a745;
}

.status-optional {
    background: #ffc107;
    color: #333;
}

.section-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-btn-d {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.section-btn:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .sections-grid {
        grid-template-columns: 1fr;
    }
    
    .section-card {
        padding: 15px;
    }
    
    .section-number {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .section-content h4 {
        font-size: 14px;
    }
}

/* Финальные действия */
.final-actions {
    margin: 30px 0;
}

.final-actions h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.action-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.action-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.action-content h4 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.action-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.action-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .action-card {
        padding: 20px;
    }
    
    .action-icon {
        font-size: 36px;
    }
    
    .action-content h4 {
        font-size: 18px;
    }
}

/* Стили для внутренних страниц */
.control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.control-left {
    display: flex;
    gap: 10px;
}

.modern-btn-secondary {
    background: #6c757d;
}

.modern-btn-secondary:hover {
    background: #5a6268;
}

.search-form {
    display: flex;
}

.search-input-group {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
}

.search-input {
    border: none;
    padding: 8px 15px;
    outline: none;
    min-width: 200px;
}

.search-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
}

.content-row {
    display: flex;
    gap: 20px;
}

.form-section {
    flex: 2;
}

.modern-widget {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.widget-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-header h5 {
    margin: 0;
    color: #495057;
    font-weight: 600;
}

.widget-controls {
    display: flex;
    gap: 5px;
}

.widget-btn {
    background: none;
    border: none;
    color: #6c757d;
    padding: 5px;
    cursor: pointer;
    border-radius: 3px;
}

.widget-btn:hover {
    background: #e9ecef;
    color: #495057;
}

@media (max-width: 768px) {
    .control-panel {
        flex-direction: column;
        gap: 15px;
    }
    
    .content-row {
        flex-direction: column;
    }
    
    .search-input {
        min-width: 150px;
    }
}

/* Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 100%;
    max-height: 100vh;
    overflow: hidden;
    position: relative;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-controls {
    display: flex;
    gap: 10px;
}

.modal-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-close:hover {
    background: #dc3545;
}

.modal-body {
    padding: 10px;
    max-height: 95vh  
    /* calc(90vh - 80px); */
    overflow-y: auto;
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 20px;
    }
}

/* Современные таблицы */
.modern-table-wrapper {
    margin: 20px 0;
}

.modern-table {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 20px;
}

.modern-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: transparent;
}

.modern-table th,
.modern-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.modern-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.modern-table .warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    font-weight: 600;
}

.modern-table .mini-table-header th {
    background: #e9ecef;
    color: #495057;
    font-size: 13px;
    text-align: center;
}

.modern-table tbody tr:hover {
    background-color: #f8f9fa;
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .modern-table {
        overflow-x: auto;
    }
    
    .modern-table th,
    .modern-table td {
        padding: 8px 10px;
        font-size: 12px;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .title-organization-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .page-title,
    .organization-block {
        padding: 20px;
    }
    
    .section-divider {
        margin: 30px 0;
    }
    
    .divider-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Скрытие стандартных Bootstrap стилей для переопределения */
.table-bordered,
.table-striped,
.table-hover {
    border: none !important;
}

.alert {
    border-radius: 12px !important;
}
/* Modern table header styles */
.modern-table-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  border: none;
}

.modern-table-header td {
  padding: 20px 15px;
  border: none;
  font-size: 16px;
  line-height: 1.4;
}
/* Table header cells with borders */
.table-header-cell {
  border-right: 1px solid rgba(255,255,255,0.3) !important;
  padding: 12px 8px;
  font-weight: 600;
}

.table-header-cell:last-child {
  border-right: none !important;
}

/* Modern action buttons */
.action-buttons {
  text-align: center;
  white-space: nowrap;
}

.modern-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  margin: 0 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.modern-btn-edit {
  background: #3498db;
  color: white;
}

.modern-btn-edit:hover {
  background: #2980b9;
  transform: translateY(-1px);
}

.modern-btn-delete {
  background: #e74c3c;
  color: white;
}

.modern-btn-delete:hover {
  background: #c0392b;
  transform: translateY(-1px);
}
/* Table data cells with vertical borders */
.table-data-cell {
  border-right: 1px solid #ddd !important;
  padding: 8px 12px;
  vertical-align: middle;
}

.table-data-cell:last-child {
  border-right: none !important;
}

.modern-table tbody tr:hover .table-data-cell {
  background-color: #f8f9fa;
}
/* Center alignment for specific data types */
.table-data-cell:nth-child(1),  /* № */
.table-data-cell:nth-child(3),  /* Код специальности */
.table-data-cell:nth-child(5),  /* Код УГС */
.table-data-cell:nth-child(6),  /* Всего */
.table-data-cell:nth-child(7),  /* По очной форме */
.table-data-cell:nth-child(8),  /* По очно-заочной форме */
.table-data-cell:nth-child(9),  /* По заочной форме */
.table-data-cell:nth-child(7):last-of-type, /* Даты в таблицах 4 и 5 */
.table-data-cell:nth-child(6):last-of-type  /* Даты в таблице 5 */ {
  text-align: center;
}

/* Center dates in license table (table 4) */
.modern-table:nth-child(2) .table-data-cell:nth-child(7) {
  text-align: center;
}

/* Center dates in accreditation table (table 5) */
.modern-table:nth-child(3) .table-data-cell:nth-child(6) {
  text-align: center;
}
/* Smaller header for first table second and third rows */
.modern-table:first-child .mini-table-header .table-header-cell {
  padding: 6px 4px;
  font-size: 12px;
  line-height: 1.2;
}

/* Horizontal borders for table headers */
.modern-table thead tr {
  border-bottom: 2px solid rgba(255,255,255,0.4);
}

.modern-table .mini-table-header {
  border-top: 1px solid rgba(255,255,255,0.3);
}
/* Smaller header for first table second and third rows */
.modern-table:first-child .mini-table-header .table-header-cell {
  padding: 4px 3px;
  font-size: 11px;
  line-height: 1.1;
}

/* Additional vertical borders for table headers */
.modern-table:first-child .table-header-cell {
  border-right: 1px solid rgba(255,255,255,0.4) !important;
}

.modern-table:first-child .table-header-cell:last-child {
  border-right: none !important;
}

div.jGrowl div.red_theme {

 background-color: #F00;

 color: #FFF;

}