﻿.global-menu {
    margin-top: 21px;
}

    .global-menu h3 {
        height: 50px;
        background-color: #F0A410;
        border-radius: 5px 5px 0px 0px;
        font-size: 1.125rem;
        line-height: 25px;
        color: #FFFFFF;
        padding-left: 28px;
        padding-right: 15px;
        margin-bottom: 0;
    }

    .global-menu .menu {
        border-left: 1px solid #808080;
        border-right: 1px solid #808080;
        border-bottom: 1px solid #808080;
        border-radius: 0 0 5px 5px;
        padding-bottom: 10px;
        padding-top: 14px;
    }

        .global-menu .menu ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

            .global-menu .menu ul li {
                padding-left: 28px;
                padding-right: 15px;
                margin-bottom: 10px;
            }

                .global-menu .menu ul li:hover {
                    font-weight: 600;
                }

                .global-menu .menu ul li a {
                    font-size: 1.1rem;
                    line-height: 19px;
                    color: #4B4B4E;
                }

/* Основной контейнер меню */
.sidebar-menu {
    width: 16rem;
    background-color: #F0A410;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

/* Заголовок меню */
.sidebar-header {
    padding: 1.5rem;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

    .sidebar-title i {
        margin-right: 0.5rem;
    }

/* Навигация */
.sidebar-nav {
    /* Стили для nav уже включены в sidebar-menu */
}

.sidebar-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .sidebar-menu-list > li {
        margin-bottom: 0.5rem;
    }

/* Ссылки меню */
.sidebar-menu-link {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: white;
}

    .sidebar-menu-link:hover {
        background-color: #D4920E; /*#1e40af;*/
        color: white;
    }

    .sidebar-menu-link.active {
        background-color: #D4920E;
    }

/* Иконки в меню */
.sidebar-menu-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    font-size: 1.125rem;
}

/* Текст пунктов меню */
.sidebar-menu-text {
    font-size: 1rem;
}

/* Дополнительная секция внизу */
.sidebar-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #1e40af;
}

.sidebar-footer-link {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: white;
}

    .sidebar-footer-link:hover {
        background-color: #1e40af;
        color: white;
    }

.sidebar-footer-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    font-size: 1.125rem;
}

.sidebar-footer-text {
    font-size: 0.875rem;
}

/* Общие стили для демонстрации */
body {
    background-color: #f3f4f6;
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
}



.contracts-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px 0;
}

.contracts-table {
    margin-bottom: 0;
    font-size: 0.95rem;
}

    .contracts-table thead th {
        background: linear-gradient(135deg, #F0A410 0%, #E6980D 100%);
        color: white;
        font-weight: 600;
        border: none;
        padding: 16px 12px;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .contracts-table tbody td {
        padding: 14px 12px;
        vertical-align: middle;
        border-color: #e5e7eb;
    }

    /* Улучшенные цвета строк */
    .contracts-table .table-danger {
        background-color: #fef2f2 !important;
        border-left: 4px solid #ef4444;
    }

    .contracts-table .table-warning {
        background-color: #fffbeb !important;
        border-left: 4px solid #f59e0b;
    }

    .contracts-table .table-light {
        background-color: #f8fafc !important;
        border-left: 4px solid #10b981;
    }

    .contracts-table tbody tr:hover {
        background-color: #f1f5f9 !important;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }

/* Улучшенные ссылки */
.client-link {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .client-link:hover {
        color: #F0A410;
        text-decoration: underline;
    }

/* Улучшенная кнопка действий */
.actions-dropdown .btn {
    background: linear-gradient(135deg, #F0A410 0%, #E6980D 100%);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 16px;
    box-shadow: 0 2px 4px rgba(240, 164, 16, 0.3);
    transition: all 0.2s ease;
}

    .actions-dropdown .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(240, 164, 16, 0.4);
        background: linear-gradient(135deg, #E6980D 0%, #D4920E 100%);
    }

.actions-dropdown .dropdown-menu {
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
}

.actions-dropdown .dropdown-item {
    padding: 10px 16px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

    .actions-dropdown .dropdown-item:hover {
        background-color: #f8fafc;
        color: #F0A410;
        padding-left: 20px;
    }

/* Контракт номер */
.contract-number {
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .contracts-table-container {
        margin: 10px -15px;
        border-radius: 0;
    }

    .contracts-table thead th {
        padding: 12px 8px;
        font-size: 0.8rem;
    }

    .contracts-table tbody td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }

    .client-name {
        display: block;
        margin-bottom: 4px;
    }
}

/* Статус индикаторы */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-danger {
    background-color: #ef4444;
}

.status-warning {
    background-color: #f59e0b;
}

.status-success {
    background-color: #10b981;
}