/* Pro100Actor | 79779777557 */
/* ===== МАКЕТ ПРИЛОЖЕНИЯ ===== */
.main-app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--bg-color);
}

/* ===== ШАПКА ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    height: 68px;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
}

.header.hidden {
    display: flex;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-small {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer; /* Added cursor pointer for interactivity */
}

.logo-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-title {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ===== ГЛОБАЛЬНОЕ ПОЛЕ ПОИСКА ===== */
.global-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.global-search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.global-search-container:focus-within {
    border-color: #C41E3A;
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.global-search-container .search-icon {
    position: absolute;
    left: 16px;
    color: #a0aec0;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.global-search-container:focus-within .search-icon {
    color: #C41E3A;
}

.global-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 48px 14px 48px;
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    outline: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.global-search-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.clear-search-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search-btn:hover {
    background: #f7fafc;
    color: #C41E3A;
}

.global-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.global-search-results::-webkit-scrollbar {
    width: 8px;
}

.global-search-results::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 4px;
}

.global-search-results::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.global-search-results::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.search-results-header {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 13px;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8fafc;
    transform: translateX(4px);
}

.search-result-item:active {
    background: #edf2f7;
}

.search-result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.search-result-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #C41E3A, #B8182E);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.search-result-title {
    font-weight: 600;
    font-size: 15px;
    color: #2d3748;
}

.search-result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.search-result-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4a5568;
}

.search-result-detail i {
    color: #a0aec0;
    font-size: 12px;
    width: 16px;
}

.search-result-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f4f8;
    color: #4a5568;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.search-result-badge.status-available {
    background: #d4edda;
    color: #155724;
}

.search-result-badge.status-reserved {
    background: #fff3cd;
    color: #856404;
}

.search-result-badge.status-issued {
    background: #f8d7da;
    color: #721c24;
}

.no-search-results {
    padding: 40px 20px;
    text-align: center;
    color: #a0aec0;
}

.no-search-results i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-search-results p {
    font-size: 14px;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ===== БОКОВАЯ ПАНЕЛЬ ===== */
.sidebar {
    position: fixed;
    left: 0;
    top: 68px;
    width: 280px;
    height: calc(100vh - 68px);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    z-index: 999;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.sidebar.hidden {
    left: -280px;
}

.sidebar-user-info {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #C41E3A, #B8182E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 16px;
}

.user-role {
    font-size: 12px;
    color: #718096;
    margin-top: 2px;
}

.role-badge {
    background: linear-gradient(135deg, #C41E3A, #B8182E);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #4a5568;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidebar-btn:hover {
    background: #C41E3A;
    color: white;
    border-color: #C41E3A;
}

/* ===== НАВИГАЦИОННЫЕ КНОПКИ ===== */
.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    margin: 5px 15px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: calc(100% - 30px);
}

.nav-btn:hover {
    background: rgba(196, 30, 58, 0.1);
    color: #C41E3A;
    transform: translateX(5px);
}

.nav-btn.active {
    background: linear-gradient(135deg, #C41E3A, #B8182E);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.nav-btn i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.content {
    margin-left: 280px;
    margin-top: 70px;
    padding: 30px;
    min-height: calc(100vh - 70px);
    background: #f8f9fa;
}

.content.expanded {
    margin-left: 0;
    margin-top: 70px;
}

.section {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.section.active {
    display: block;
}

.section-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.section-content h2 {
    margin-bottom: 25px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
}

.section-content h2 i {
    color: #C41E3A;
    font-size: 24px;
}

.section-content h3 {
    color: #C41E3A;
    margin-bottom: 20px;
    margin-top: 30px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.section-content h4 {
    color: #4a5568;
    margin-bottom: 15px;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.mobile-menu-toggle {
    display: none !important;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: #C41E3A;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #B8182E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
}

.mobile-menu-toggle i {
    font-size: 16px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    backdrop-filter: blur(3px);
}

.sidebar-overlay.active {
    display: block;
}

/* ===== УВЕДОМЛЕНИЯ И ТЕМА ===== */
.user-notifications {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notifications-btn {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 2px solid #e9ecef;
    color: #6c757d;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-btn:hover {
    background: linear-gradient(135deg, #C41E3A, #B8182E);
    border-color: #C41E3A;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.3);
}

.notifications-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.2);
}

.notification-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 4px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4), 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4), 0 0 0 6px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4), 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* ===== ДЕСКТОПНЫЕ СТИЛИ (принудительный сброс мобильных) ===== */
@media (min-width: 769px) {
    .sidebar {
        position: fixed !important;
        top: 70px !important;
        height: calc(100vh - 70px) !important;
        width: 280px !important;
        left: 0 !important;
        z-index: 999 !important;
        background: #ffffff !important;
        border-right: 1px solid #e2e8f0 !important;
        overflow-y: auto !important;
        transition: all 0.3s ease !important;
        display: block !important;
        flex-direction: column !important;
        box-shadow: none !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .sidebar.hidden {
        left: -280px !important;
    }

    .sidebar.mobile-open {
        left: 0 !important;
    }

    .content {
        margin-left: 280px !important;
        margin-top: 70px !important;
    }

    .content.expanded {
        margin-left: 0 !important;
    }

    .sidebar-overlay {
        display: none !important;
    }


}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .sidebar {
        position: fixed !important;
        left: -100% !important;
        top: 0 !important;
        width: 85% !important;
        max-width: 320px !important;
        height: 100vh !important;
        z-index: 1500 !important;
        transition: left 0.3s ease !important;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1) !important;
        transform: translateX(0) !important;
        background: #ffffff !important;
        border-right: 1px solid #e2e8f0 !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
        margin-left: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Принудительно убираем десктопные классы на мобильных */
    .sidebar.hidden {
        position: fixed !important;
        left: -100% !important;
        transform: none !important;
    }

    .sidebar.mobile-open {
        left: 0 !important;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5) !important;
        background: #ffffff !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Обеспечиваем правильное отображение содержимого боковой панели */
    .sidebar .sidebar-user-info {
        display: block !important;
        background: #ffffff !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 20px 15px !important;
        margin: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .sidebar .nav-buttons-container {
        display: flex !important;
        flex-direction: column !important;
        background: #ffffff !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .sidebar .nav-btn {
        display: flex !important;
        background: transparent !important;
        color: #4a5568 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        padding: 15px 20px !important;
        margin: 2px 0 !important;
        font-size: 14px !important;
        border-radius: 0 !important;
        width: 100% !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 12px !important;
        transition: all 0.3s ease !important;
    }

    .sidebar .nav-btn:hover {
        background: rgba(196, 30, 58, 0.1) !important;
        color: #C41E3A !important;
        transform: none !important;
    }

    .sidebar .nav-btn.active {
        background: linear-gradient(135deg, #C41E3A, #B8182E) !important;
        color: white !important;
        transform: none !important;
    }

    .sidebar .nav-btn i {
        font-size: 16px !important;
        width: 20px !important;
        margin-right: 12px !important;
        text-align: center !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Дополнительные стили для пользователя */
    .sidebar .user-profile {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        margin-bottom: 15px !important;
        text-align: center !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .sidebar .user-avatar {
        width: 50px !important;
        height: 50px !important;
        font-size: 16px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .sidebar .user-name {
        font-size: 15px !important;
        font-weight: 600 !important;
        opacity: 1 !important;
        visibility: visible !important;
        color: #2d3748 !important;
    }

    .sidebar .user-role {
        font-size: 12px !important;
        opacity: 1 !important;
        visibility: visible !important;
        color: #718096 !important;
    }

    .sidebar .user-actions {
        gap: 8px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .sidebar .sidebar-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1400;
        backdrop-filter: blur(2px);
        opacity: 0;
        transition: opacity 0.3s ease;
        -webkit-tap-highlight-color: transparent;
        touch-action: none;
    }

    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Принудительное закрытие при проблемах */
    body.mobile-menu-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
    }

    /* Предотвращение множественных кликов */
    .mobile-menu-toggle:active {
        pointer-events: none;
    }

    .global-search-wrapper {
        max-width: 100%;
    }

    .global-search-input {
        padding: 12px 44px 12px 44px;
        font-size: 13px;
    }

    .global-search-results {
        max-height: 400px;
        left: -16px;
        right: -16px;
        width: calc(100% + 32px);
        border-radius: 8px;
    }

    .search-result-details {
        grid-template-columns: 1fr;
    }

    .search-result-item {
        padding: 12px 16px;
    }

    .search-result-item:hover {
        transform: translateX(2px);
    }

    .content {
        margin-left: 0;
        padding: 15px 10px;
        padding-top: 80px;
        width: 100%;
    }

    .content.expanded {
        margin-left: 0;
    }

    .header {
        padding: 0 15px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        height: 60px;
    }

    .main-app {
        padding-top: 0;
    }

    

    /* Быстрая навигация на мобильных */
    .quick-nav-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 20px !important;
    }

    .quick-nav-btn {
        padding: 12px 8px !important;
        font-size: 11px !important;
        min-height: 80px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .quick-nav-btn i {
        font-size: 18px !important;
        margin-bottom: 4px !important;
    }

    /* Дашборд на мобильных */
    .dashboard-content {
        flex-direction: column;
        gap: 15px;
    }

    .dashboard-left,
    .dashboard-right {
        width: 100%;
    }

    /* Боковая панель пользователя */
    .sidebar-user-info {
        padding: 20px 15px;
        border-bottom: 1px solid #e2e8f0;
    }

    .user-profile {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 15px;
        text-align: center;
    }

    .user-avatar {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .user-name {
        font-size: 15px;
        font-weight: 600;
    }

    .user-role {
        font-size: 12px;
    }

    .user-actions {
        gap: 8px;
    }

    .sidebar-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .nav-btn {
        padding: 15px 20px;
        margin: 2px 0;
        font-size: 14px;
        border-radius: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .nav-btn i {
        font-size: 16px;
        width: 20px;
        margin-right: 12px;
    }

    .nav-btn:hover {
        transform: none;
        background: rgba(196, 30, 58, 0.1);
    }

    .nav-btn.active {
        transform: none;
    }

    /* Формы на мобильных */
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .section-content {
        padding: 20px 15px;
    }

    .section-content h2 {
        font-size: 20px;
    }

    /* Таблицы на мобильных */
    .table-container {
        overflow-x: auto;
    }

    .table {
        min-width: 600px;
    }

    /* Модальные окна на мобильных */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 10px;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 10px;
        height: 56px;
    }

    .content {
        padding-top: 70px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .app-title {
        font-size: 16px;
    }

    .logo-small {
        width: 32px;
        height: 32px;
    }

    

    .quick-nav-grid {
        gap: 6px !important;
    }

    .quick-nav-btn {
        padding: 10px 6px !important;
        font-size: 10px !important;
        min-height: 70px !important;
    }

    .quick-nav-btn i {
        font-size: 16px !important;
    }

    .section-content {
        padding: 15px 10px;
    }

    .sidebar {
        width: 90%;
    }

    .nav-btn {
        padding: 12px 15px;
        font-size: 13px;
    }

    .user-avatar {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
}

/* ===== СТИЛИ ОТЧЕТОВ ===== */
.nav-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
}

.nav-tabs .btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #718096;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.nav-tabs .btn.active {
    color: #C41E3A;
    border-bottom-color: #C41E3A;
    background: rgba(196, 30, 58, 0.05);
}

.nav-tabs .btn:hover {
    color: #C41E3A;
    background: rgba(196, 30, 58, 0.05);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #C41E3A;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.report-table th,
.report-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.report-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2d3748;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.chart-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.chart-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.chart-label {
    min-width: 100px;
    font-size: 13px;
    color: #4a5568;
}

.chart-fill {
    height: 20px;
    background: linear-gradient(135deg, #C41E3A, #B8182E);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.chart-value {
    min-width: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

/* ===== АДАПТИВНОСТЬ ОТЧЕТОВ НА МОБИЛЬНЫХ ===== */
@media (max-width: 768px) {
    .nav-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }

    .nav-tabs .btn {
        padding: 8px 12px;
        font-size: 11px;
        flex: 1;
        min-width: 80px;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .summary-item {
        padding: 10px;
    }

    .summary-value {
        font-size: 18px;
    }

    .report-table {
        font-size: 11px;
    }

    .report-table th,
    .report-table td {
        padding: 8px 6px;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .chart-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .chart-label {
        min-width: auto;
        font-size: 12px;
    }

    .chart-value {
        min-width: auto;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .global-search-input {
        width: 150px;
        font-size: 12px;
    }

    .header-left {
        gap: 10px;
    }

    .app-title {
        font-size: 16px;
    }
}