* { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: Arial, sans-serif; height: 100vh; overflow: hidden; background: #f0f2f5; }

        /* 🔥 СТИЛИ ЛОГИНА */
        .login-overlay { 
            position: fixed; 
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100%; 
            background: rgba(0,0,0,0.8); 
            display: flex; 
            justify-content: center; 
            align-items: center; 
            z-index: 10000; 
            padding: 20px;
        }
        .login-container { 
            background: white; 
            padding: 25px; 
            border-radius: 15px; 
            box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
            width: 100%; 
            max-width: 400px; 
        }
        .login-header { text-align: center; margin-bottom: 20px; }
        .login-header h2 { color: #8B0000; margin-bottom: 10px; font-size: 1.5rem; }
        .login-header p { font-size: 0.9rem; }
        .login-form { display: flex; flex-direction: column; gap: 15px; }
        .form-group { display: flex; flex-direction: column; }
        .form-group label { margin-bottom: 5px; font-weight: bold; color: #333; font-size: 0.9rem; }
        .form-group select, .form-group input { padding: 12px; border: 2px solid #ddd; border-radius: 8px; font-size: 16px; }
        .form-group select:focus, .form-group input:focus { border-color: #8B0000; outline: none; }
        .login-button { background: linear-gradient(180deg, #3a8fe8 0%, #2d6fc2 100%); color: white; border: none; padding: 12px; border-radius: 8px; font-size: 16px; cursor: pointer; margin-top: 10px; width: 100%; }
        .login-button:hover { background: linear-gradient(180deg, #3f96ef 0%, #2a63af 100%); }
        
        /* 🔥 ЧЕКБОКС ЗАПОМНИТЬ ПАРОЛЬ */
.remember-password { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.remember-password input[type="checkbox"] { 
    width: 16px; 
    height: 16px; 
    margin: 0; 
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #333;
    border-radius: 3px;
    background: white;
    cursor: pointer;
    position: relative;
}
.remember-password input[type="checkbox"]:checked {
    background: white;
    border-color: #333;
}
.remember-password input[type="checkbox"]:checked::after {
    content: "✕";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 12px;
    font-weight: bold;
}
.remember-password label { margin-bottom: 0; font-weight: normal; color: #555; font-size: 14px; }

/* 🔥 СТИЛИ ЧЕКБОКСОВ В ФИЛЬТРАХ */
.checkbox-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #333;
    border-radius: 3px;
    background: white;
    cursor: pointer;
    position: relative;
    margin-right: 8px;
}

.checkbox-item input[type="checkbox"]:checked {
    background: white;
    border-color: #333;
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: "✕";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-item input[type="checkbox"]:hover {
    border-color: #666;
}

        /* 🔥 ОСНОВНОЙ ИНТЕРФЕЙС */
        .user-info { 
            position: absolute; 
            top: 10px; 
            right: 10px; 
            background: white; 
            padding: 8px 12px; 
            border-radius: 8px; 
            box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
            z-index: 1000; 
            display: flex; 
            align-items: center; 
            gap: 8px; 
            font-size: 0.9rem;
        }
        .logout-btn { background: #e74c3c; color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; font-size: 0.8rem; }
        .logout-btn:hover { background: #c0392b; }

        /* 🔥 УБИРАЕМ СТАРЫЕ ПАНЕЛИ УПРАВЛЕНИЯ */
        .admin-controls, .inspector-controls, .work-day-status { 
            display: none !important; 
        }

        .container { display: flex; height: 100vh; flex-direction: row; }
        
        /* 🔥 ПЕРЕДЕЛАННЫЙ САЙДБАР */
        .sidebar { 
            width: 400px; 
            height: 100vh; 
            background: white; 
            padding: 15px; 
            border-right: 2px solid #dee2e6; 
            overflow-y: auto; scrollbar-width: none; 
            box-shadow: 2px 0 10px rgba(0,0,0,0.1); 
            display: flex; 
            flex-direction: column;
            position: relative;
            z-index: 100;
            transition: transform 0.3s ease;
        }
        .sidebar::-webkit-scrollbar { width: 0; height: 0; }
        
        /* 🔥 КНОПКА СКРЫТИЯ САЙДБАРА */
        .sidebar-toggle {
            position: absolute;
            top: 50%;
            right: -15px;
            transform: translateY(-50%);
            background: #8B0000;
            color: white;
            border: none;
            width: 15px;
            height: 60px;
            border-radius: 0 5px 5px 0;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            z-index: 101;
            box-shadow: 2px 0 5px rgba(0,0,0,0.2);
        }
        
        .sidebar.collapsed {
            transform: translateX(-385px);
        }
        
        .sidebar.collapsed .sidebar-toggle {
            right: -40px;
        }
        
        .map-container { 
            flex: 1; 
            position: relative; 
            height: 100vh; 
            transition: margin-left 0.3s ease;
        }
        
        #map { width: 100%; height: 100%; }

.header { background: transparent; color: inherit; padding: 12px; border-radius: 8px; margin-bottom: 15px; text-align: center; }
        
        /* 🔥 НОВЫЕ СЕКЦИИ УПРАВЛЕНИЯ В САЙДБАРЕ */
.control-section {
            background: #f8f9fa;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 15px;
            border: 1px solid #dee2e6;
        }
        
        .control-section-title {
            font-weight: bold;
            margin-bottom: 10px;
            color: #2c3e50;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* 🔥 КНОПКИ ФИЛЬТРОВ (оригинальный размер как "Выбрать всех") */
.control-button, .list-control-button {
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(180deg, #3a8fe8 0%, #2d6fc2 100%);
    color: #ffffff;
    transition: all 0.3s ease;
    flex: 1;
}

/* 🔥 АДМИНСКИЕ КНОПКИ (такой же стиль, но меньше) */
.admin-btn, .inspector-btn, .close-day-btn {
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(180deg, #3a8fe8 0%, #2d6fc2 100%);
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

/* Ховер-эффекты для всех кнопок */
.control-button:hover, .list-control-button:hover, .admin-btn:hover, .inspector-btn:hover, .close-day-btn:hover {
    background: linear-gradient(180deg, #3f96ef 0%, #2a63af 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 🔥 ЦВЕТА ДЛЯ РАЗНЫХ ТИПОВ КНОПОК */
.admin-btn { 
    background: linear-gradient(180deg, #3a8fe8 0%, #2d6fc2 100%);
    color: #ffffff; 
}
.admin-btn:hover { 
    background: linear-gradient(180deg, #3f96ef 0%, #2a63af 100%);
}

.inspector-btn { 
    background: #90EE90; 
    color: #006400; 
}
.inspector-btn:hover { 
    background: #7CFC00; 
    color: #006400; 
}

.close-day-btn { 
    background: #FFB6C1; 
    color: #8B0000; 
}
.close-day-btn:hover { 
    background: #FF69B4; 
    color: #8B0000; 
}

.close-day-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #FFB6C1;
    color: #8B0000;
}

.close-day-btn:disabled:hover {
    background: #FFB6C1;
    color: #8B0000;
    transform: none;
    box-shadow: none;
}

/* 🔥 СЕТКА ДЛЯ АДМИНСКИХ КНОПОК */
.control-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
    margin-bottom: 8px;
    width: 100%;
}
.control-buttons-grid > * { min-width: 0; }

.control-buttons-grid .dashboard-wide {
    grid-column: 1 / span 2;
}

/* 🔥 КНОПКИ В ФИЛЬТРАХ */
.control-buttons, .list-control-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
        .work-day-indicator {
            padding: 8px;
            border-radius: 5px;
            font-weight: bold;
            font-size: 0.8rem;
            text-align: center;
            margin-top: 8px;
            border: 2px solid;
        }
        
        .work-day-indicator.open { 
            background: #d4edda; 
            color: #155724; 
            border-color: #c3e6cb; 
        }
        
        .work-day-indicator.closed { 
            background: #f8d7da; 
            color: #721c24; 
            border-color: #f1b0b7; 
        }

        .filter-section { margin-bottom: 15px; }
        .filter-title { font-weight: bold; margin-bottom: 8px; color: #333; font-size: 0.9rem; }
        .checkbox-group { max-height: 150px; overflow-y: auto; border: 1px solid #ddd; padding: 8px; border-radius: 5px; background: white; scrollbar-width: none; }
        .checkbox-group::-webkit-scrollbar { width: 0; height: 0; }
        .checkbox-item { margin-bottom: 6px; display: flex; align-items: center; padding: 4px; font-size: 0.85rem; }
        .checkbox-item input { margin-right: 6px; }
        .color-dot { width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; display: inline-block; }
        .inspector-icon { margin-right: 6px; font-size: 14px; }
        .inspector-counter { margin-left: auto; font-size: 10px; font-weight: bold; color: #666; background: #f8f9fa; padding: 2px 5px; border-radius: 10px; border: 1px solid #dee2e6; min-width: 25px; text-align: center; }
        .inspector-counter.completed { color: #27ae60; background: #d4edda; border-color: #c3e6cb; }
        .inspector-counter.admin { color: #00FF7F; background: #e6fff2; border-color: #00FF7F; }
        .inspector-counter.inactive { color: #999; background: #f0f0f0; border-color: #ddd; }

        /* 🔥 СЧЕТЧИКИ ДЛЯ СПИСКОВ */
        .list-counter { font-size: 10px; font-weight: bold; color: #666; background: #f8f9fa; padding: 2px 5px; border-radius: 10px; border: 1px solid #dee2e6; margin-left: 6px; }

        .search-box { width: 100%; padding: 8px; margin-bottom: 12px; border: 1px solid #ddd; border-radius: 5px; font-size: 0.9rem; }
        .control-buttons { display: flex; gap: 8px; margin-bottom: 12px; }
        .control-button { flex: 1; padding: 8px; border: none; border-radius: 5px; cursor: pointer; background: linear-gradient(180deg, #3a8fe8 0%, #2d6fc2 100%); color: #ffffff; font-size: 0.85rem; }
        .control-button:hover { background: linear-gradient(180deg, #3f96ef 0%, #2a63af 100%); }

        /* 🔥 ИСПРАВЛЕННЫЕ СТИЛИ ДЛЯ ФИЛЬТРОВ СПИСКОВ */
        .list-control-buttons { display: flex; gap: 8px; margin-bottom: 12px; }
        .list-control-button { flex: 1; padding: 8px; border: none; border-radius: 5px; cursor: pointer; background: linear-gradient(180deg, #3a8fe8 0%, #2d6fc2 100%); color: #ffffff; font-size: 0.85rem; }
        .list-control-button:hover { background: linear-gradient(180deg, #3f96ef 0%, #2a63af 100%); }

        .stats { background: #34495e; color: white; padding: 12px; border-radius: 8px; margin-top: 12px; font-size: 0.85rem; text-align: center; }
        .refresh-btn { background: linear-gradient(180deg, #3a8fe8 0%, #2d6fc2 100%); color: white; border: none; padding: 12px; border-radius: 8px; cursor: pointer; width: 100%; margin-bottom: 12px; font-size: 0.95rem; }
        .refresh-btn:hover { background: linear-gradient(180deg, #3f96ef 0%, #2a63af 100%); }
        .refresh-btn.force { background: #e67e22; }
        .refresh-btn.force:hover { background: #d35400; }

        .notification { 
            position: fixed; 
            top: 10px; 
            right: 10px; 
            padding: 12px 15px; 
            border-radius: 5px; 
            color: white; 
            z-index: 1000; 
            font-weight: bold; 
            max-width: 280px; 
            font-size: 0.9rem;
        }
        .notification.success { background: #27ae60; }
        .notification.error { background: #e74c3c; }

        /* 🔥 ТАБЫ И СПИСКИ ОБЪЕКТОВ */
        .tab-buttons { display: flex; margin-bottom: 12px; border-bottom: 2px solid #dee2e6; }
        .tab-button { flex: 1; padding: 8px; background: none; border: none; cursor: pointer; font-size: 0.85rem; font-weight: bold; color: #6c757d; border-bottom: 2px solid transparent; }
        .tab-button.active { color: #3498db; border-bottom: 2px solid #3498db; }
        .tab-content { flex: 1; display: flex; flex-direction: column; }
        .tab-pane { flex: 1; display: none; flex-direction: column; }
        .tab-pane.active { display: flex; }

        .objects-list { flex: 1; overflow-y: auto; border: 1px solid #ddd; border-radius: 5px; margin-top: 15px; background: white; scrollbar-width: none; }
        .objects-list::-webkit-scrollbar { width: 0; height: 0; }
        .objects-list-title { background: #34495e; color: white; padding: 8px; font-weight: bold; text-align: center; border-radius: 5px 5px 0 0; font-size: 0.9rem; }
        .object-item { padding: 8px; border-bottom: 1px solid #eee; cursor: pointer; display: flex; align-items: center; font-size: 0.85rem; }
        .object-item:hover { background: #f8f9fa; }
        .object-item:last-child { border-bottom: none; }
        .object-id { font-weight: bold; color: #2c3e50; margin-right: 6px; }
        .object-address { flex: 1; font-size: 0.8rem; color: #555; }
        .object-inspector { font-size: 0.75rem; color: #7f8c8d; margin-top: 2px; }
        .object-status { margin-left: 8px; font-size: 9px; padding: 2px 5px; border-radius: 8px; }

        @media (max-width: 480px) {
            .object-item { flex-direction: column; align-items: flex-start; }
            .object-status { align-self: flex-end; margin-top: 4px; margin-left: 0; }
        }

        /* 🔥 СТИЛИ БАЛЛУНОВ И КНОПОК */
        .coordinates-btn { background: #9b59b6; color: white; border: none; padding: 6px 10px; border-radius: 4px; cursor: pointer; font-size: 0.8rem; margin: 2px; flex: 1; }
        .coordinates-btn:hover { background: #8e44ad; }
        .checklist-btn { background: #e67e22; color: white; border: none; padding: 6px 10px; border-radius: 4px; cursor: pointer; font-size: 0.8rem; margin: 2px; text-decoration: none; display: inline-block; text-align: center; flex: 1; }
        .checklist-btn:hover { background: #d35400; }
        .yandex-disk-btn { background: #ffcc00; color: #000; border: none; padding: 6px 10px; border-radius: 4px; cursor: pointer; font-size: 0.8rem; margin: 2px; text-decoration: none; display: inline-block; text-align: center; flex: 1; font-weight: bold; }
        .yandex-disk-btn:hover { background: #e6b800; }
        .button-group { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
        .entry-exit-buttons { display: flex; gap: 4px; margin-top: 8px; }
        .entry-exit-buttons button { flex: 1; padding: 8px; border: none; border-radius: 4px; cursor: pointer; font-size: 0.8rem; font-weight: bold; }
        .entry-btn { background: linear-gradient(180deg, #3a8fe8 0%, #2d6fc2 100%); color: white; }
        .entry-btn:hover { background: linear-gradient(180deg, #3f96ef 0%, #2a63af 100%); }
        .exit-btn { background: #27ae60; color: white; }
        .exit-btn:hover { background: #219a52; }
        .cancel-entry-btn { background: #e74c3c; color: white; }
        .cancel-entry-btn:hover { background: #c0392b; }

        .status-badge { display: inline-block; padding: 2px 6px; border-radius: 12px; font-size: 10px; font-weight: bold; margin: 4px 0; color: white; }
        .status-new { background: #e74c3c; }
        .status-completed { background: #27ae60; }

        .ph-container { margin-top: 10px; padding: 10px; border: 1px solid #eee; border-radius: 8px; background: #fff; }
        .ph-tabs { display: flex; gap: 8px; margin-bottom: 8px; justify-content: space-between; flex-wrap: wrap; }
        .ph-tabs-secondary { margin-bottom: 12px; }
        .ph-tab { flex: 1; padding: 10px 14px; background: #34495e; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; }
        .ph-tab:hover { background: #2f3f53; }
        .ph-tab.active { background: linear-gradient(180deg, #2f7bd1 0%, #275fb0 100%); box-shadow: 0 4px 10px rgba(11,82,184,0.25); }
        .ph-section { display: none; }
        .ph-section-title { margin-bottom: 6px; font-weight: 600; color: #2c3e50; }
        .ph-slot { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; column-gap: 10px; margin-bottom: 8px; padding: 8px; border: 1px solid #eee; border-radius: 12px; background: #fafbfc; align-items: center; }
        .ph-slot-title { font-size: 12px; color: #666; grid-column: 1 / -1; }
.ph-replace { padding: 6px 10px; border: none; border-radius: 8px; background: linear-gradient(180deg, #3a8fe8 0%, #2d6fc2 100%); color: #ffffff; cursor: pointer; font-size: 14px; width: 100%; display: inline-flex; justify-content: center; grid-column: 1; }
.ph-replace:hover { background: linear-gradient(180deg, #3f96ef 0%, #2a63af 100%); }
        .ph-skip { padding: 6px 10px; border: none; border-radius: 8px; background: #ecf0f1; color: #2c3e50; cursor: pointer; font-size: 14px; width: 100%; display: inline-flex; justify-content: center; grid-column: 1; }
        .ph-slot input[type="file"] { display: none; }
        .ph-indicator { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; grid-column: 2; justify-self: end; }
        .ph-indicator[data-state="ok"] { color: #27ae60; }
        .ph-indicator[data-state="fail"] { color: #e74c3c; }
        .cl-row { background: #fff; border: 1px solid #eef2f7; border-radius: 10px; padding: 10px; }
        .cl-label { font-size: 13px; color: #2c3e50; margin-bottom: 6px; }
.cl-number { width: 74px; padding: 6px 8px; border: 1px solid #ccd6e0; border-radius: 8px; text-align: center; }
.cl-controls { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; width: 100%; }
.cl-range-wrap { position: relative; height: 24px; margin-bottom: 8px; }
.cl-range { width: 100%; min-width: 0; display: block; appearance: none; height: 4px; border-radius: 999px; outline: none; background: linear-gradient(90deg, #3498db 0%, #3498db var(--clp, 0%), #e0e6ed var(--clp, 0%), #e0e6ed 100%); }
.cl-range::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; background: #ffffff; border: 2px solid #3498db; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.cl-range::-moz-range-thumb { width: 20px; height: 20px; background: #ffffff; border: 2px solid #3498db; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.cl-range::-moz-range-progress { background: #3498db; height: 4px; border-radius: 999px; }
.cl-range::-moz-range-track { background: #e0e6ed; height: 4px; border-radius: 999px; }
        .ph-action { margin-top: 8px; padding: 8px 12px; background: #f39c12; color: #fff; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; }
        .ph-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
        .ph-count { font-size: 12px; color: #666; }
        .obs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
        .obs-item { padding: 10px; border: 1px dashed #d0d7de; border-radius: 8px; background: #fff; color: #2c3e50; text-align: left; font-size: 13px; cursor: pointer; }
        .obs-item.active { background: #fde1e1; border-color: #e74c3c; color: #c0392b; }

        @media (max-width: 768px) {
            .obs-grid { grid-template-columns: 1fr; }
            .ph-tab { font-size: 14px; padding: 10px; }
            .ph-slot { flex-direction: column; align-items: stretch; }
            .ph-slot-title { width: 100%; }
            .ph-slot { grid-template-columns: 1fr auto; }
            .ph-replace { width: 100%; grid-column: 1; }
            .ph-indicator { grid-column: 2; }
            .ph-skip { width: 100%; grid-column: 1; }
        }
        .status-active { background: radial-gradient(circle, #0a3e8f 0%, #1a6fd8 55%, #0a3e8f 100%); }

        .entry-warning { background: #fff3cd; color: #856404; padding: 6px; border-radius: 4px; border: 1px solid #ffeaa7; margin-top: 5px; font-size: 0.75rem; text-align: center; }

        /* 🔥 ДЕТАЛЬНАЯ КАРТОЧКА ОБЪЕКТА */
        .object-details {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1500;
        }
        .object-details--visible {
            display: flex;
        }
        .object-details.hidden {
            display: none;
        }
        .object-details__backdrop {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.45);
        }
        .object-details__card {
            position: relative;
            background: #ffffff;
            border-radius: 22px;
            width: min(560px, 96vw);
            max-height: 90vh;
            overflow: hidden;
            padding: 30px 32px 34px;
            box-shadow: 0 28px 60px rgba(0, 0, 0, 0.25);
            z-index: 1;
            animation: objectDetailsIn 0.25s ease;
        }
        .object-details__content { max-height: calc(90vh - 90px); overflow-y: auto; margin-top: 12px; padding-right: 24px; scrollbar-gutter: stable; scrollbar-width: none; }
        .object-details__content::-webkit-scrollbar { width: 0; height: 0; }
        .object-details__close {
            position: absolute;
            top: 18px;
            right: 18px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: none;
            background: #f2f4f8;
            color: #2c3e50;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s ease, transform 0.2s ease;
        }
        .object-details__close:hover {
            background: #e3e6ed;
            transform: scale(1.05);
        }
        .object-details__content {
            position: relative;
        }
        body.object-details-open {
            overflow: hidden;
        }

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

        .object-card {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }
        .object-card__header {
            display: flex;
            justify-content: flex-start;
            align-items: flex-start;
            gap: 18px;
            position: relative;
            padding-right: 80px;
        }
        .object-card__title {
            display: flex;
            align-items: center;
            gap: 14px;
        }
        .object-card__emoji {
            font-size: 30px;
        }
        .object-card__name {
            font-size: 1.25rem;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 2px;
        }
        .object-card__meta {
            font-size: 0.85rem;
            color: #7f8c8d;
        }
        .object-card__badge {
            padding: 6px 14px;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            position: absolute;
            top: -2px;
            right: 70px;
            margin: 0;
        }
        @media (max-width: 480px) {
            .object-card__header { flex-direction: column; padding-right: 0; }
            .object-card__badge { position: static; align-self: flex-end; margin-top: 6px; }
        }
        .object-card__badge--new {
            background: #fdecea;
            color: #c0392b;
        }
        .object-card__badge--active {
            background: #e8f4fd;
            color: #1f6fb2;
        }
        .object-card__badge--completed {
            background: #e7f9ef;
            color: #1e8449;
        }
        .object-card__info {
            display: grid;
            gap: 12px;
            background: #f7f9fb;
            padding: 16px 18px;
            border-radius: 16px;
        }
        .object-card__row {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .object-card__label {
            font-size: 0.75rem;
            text-transform: uppercase;
            color: #95a5a6;
            letter-spacing: 0.05em;
        }
        .object-card__value {
            font-size: 0.95rem;
            color: #2c3e50;
            font-weight: 600;
            line-height: 1.4;
        }
        .object-card__actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .object-card__actions--primary .object-card__button {
            flex: 1 1 100%;
        }
        .object-card__button {
            flex: 1 1 calc(50% - 10px);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 14px;
            border-radius: 12px;
            border: none;
            background: #f0f3f6;
            color: #2c3e50;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
            text-decoration: none;
        }
        .object-card__button:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(44, 62, 80, 0.15);
        }
.object-card__button--primary {
            background: linear-gradient(180deg, #3a8fe8 0%, #2d6fc2 100%);
            color: #ffffff;
        }
.object-card__button--primary:hover {
            background: linear-gradient(180deg, #3f96ef 0%, #2a63af 100%);
        }
        .object-card__button--accent {
            background: linear-gradient(180deg, #3a8fe8 0%, #2d6fc2 100%);
            color: #ffffff;
        }
        .object-card__button--accent:hover {
            background: linear-gradient(180deg, #3f96ef 0%, #2a63af 100%);
        }
        .object-card__button--warning {
            background: #ffe08a;
            color: #8a6d1f;
        }
        .object-card__button--warning:hover {
            background: #ffd24d;
        }
.object-card__button--danger {
    background: #fde1e1;
    color: #c0392b;
}
.object-card__button--danger:hover {
    background: #f8c9c9;
}
.object-card__button--plain { background: #ffffff; color: #2c3e50; border: 1px solid #dfe6e9; }
        .object-card__notice {
            padding: 12px 15px;
            border-radius: 14px;
            font-size: 0.85rem;
            line-height: 1.4;
        }
        .object-card__notice--warning {
            background: #fff4e5;
            color: #c27c0e;
        }
        .object-card__notice--info {
            background: #e9f2ff;
            color: #2465c5;
        }
        .object-card__notice--muted {
            background: #f4f6f7;
            color: #7f8c8d;
            text-align: center;
        }
        .object-card__link {
            margin-top: 6px;
            background: none;
            border: none;
            color: #1f6fb2;
            font-size: 0.85rem;
            cursor: pointer;
            text-decoration: underline;
        }
        .object-card__section--reassign {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .object-card__select {
            width: 100%;
            border-radius: 12px;
            border: 1px solid #dfe6e9;
            padding: 12px;
            font-size: 0.9rem;
            background: #ffffff;
            color: #2c3e50;
        }

        @media (max-width: 768px) {
            .object-details {
                align-items: flex-end;
            }
            .object-details__card {
                width: 100%;
                height: calc(100vh - 70px);
                border-radius: 26px 26px 0 0;
                padding: 26px 22px 32px;
            }
            .object-card__actions .object-card__button {
                flex: 1 1 100%;
            }
        }

        @media (max-width: 480px) {
            .object-details__card {
                padding: 24px 18px 28px;
            }
            .object-details__close {
                top: 14px;
                right: 14px;
            }
        }

        /* 🔥 СТИЛИ УПРАВЛЕНИЯ ИНСПЕКТОРАМИ */
.inspector-management-menu { 
    position: fixed; 
    top: 280px;
    left: 50%; 
    transform: translateX(-50%);
    background: white; 
    padding: 15px; 
    border-radius: 10px; 
    box-shadow: 0 5px 30px rgba(0,0,0,0.3); 
    z-index: 10000; 
    display: none; 
    flex-direction: column; 
    gap: 12px; 
    width: 95%; 
    max-width: 500px; 
    max-height: 85vh; 
    overflow-y: auto; scrollbar-width: none; 
}
.inspector-management-menu::-webkit-scrollbar { width: 0; height: 0; }
 

@media (min-width: 1024px) {
    .inspector-management-menu {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 600px;
    }
}

        .inspector-management-buttons { 
            display: flex; gap: 8px; margin-top: 12px; position: sticky; bottom: 0; 
            background: white; padding: 12px 0; border-top: 2px solid #ddd; 
        }
        .inspector-management-buttons button { 
            flex: 1; padding: 10px; border: none; border-radius: 5px; cursor: pointer; font-size: 0.85rem; font-weight: bold; 
        }
        .save-management-btn { background: #27ae60; color: white; }
        .save-management-btn:hover { background: #219a52; }
        .cancel-management-btn { background: #95a5a6; color: white; }
        .cancel-management-btn:hover { background: #7f8c8d; }

        .accordion { border: 1px solid #ddd; border-radius: 5px; margin-bottom: 8px; }
        .accordion-header { background: #f8f9fa; padding: 10px 12px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: bold; font-size: 0.85rem; }
        .accordion-header:hover { background: #e9ecef; }
        .accordion-content { padding: 12px; border-top: 1px solid #ddd; display: none; }
        .accordion-content.active { display: block; }

        .search-management { width: 100%; padding: 8px; margin-bottom: 12px; border: 1px solid #ddd; border-radius: 5px; font-size: 0.85rem; }
        .management-section { margin-bottom: 12px; }
        .management-section-title { font-weight: bold; margin-bottom: 6px; color: #555; font-size: 0.85rem; }
        .management-controls { display: flex; gap: 8px; align-items: center; }
        .color-preview { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #ddd; }
        
        /* 🔥 КРАСИВАЯ КНОПКА ПРИМЕНИТЬ ИЗМЕНЕНИЯ */
        .apply-changes-btn {
            background: linear-gradient(135deg, #27ae60, #219a52);
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.85rem;
            font-weight: bold;
            transition: all 0.3s ease;
            box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
            width: 100%;
            margin-top: 8px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .apply-changes-btn:hover {
            background: linear-gradient(135deg, #219a52, #1e8449);
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(39, 174, 96, 0.4);
        }
        .apply-changes-btn:active {
            transform: translateY(0);
            box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
        }

        .select-all-btn { background: #f8f9fa; color: #333; border: 1px solid #ddd; padding: 6px 10px; border-radius: 4px; cursor: pointer; font-size: 0.75rem; margin-bottom: 8px; width: 100%; }
        .select-all-btn:hover { background: #e9ecef; border-color: #adb5bd; }

        .color-palette { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
        .color-option { width: 25px; height: 25px; border-radius: 50%; border: 2px solid #ddd; cursor: pointer; transition: all 0.2s; }
        .color-option:hover { transform: scale(1.1); border-color: #333; }
        .color-option.selected { border-color: #333; transform: scale(1.2); box-shadow: 0 0 5px rgba(0,0,0,0.3); }

.icon-select, .status-select { width: 100%; padding: 6px; border: 2px solid #3498db; border-radius: 4px; margin-top: 5px; font-size: 0.85rem; }

.management-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
    .management-tabs .tab-btn { flex: 1; background: linear-gradient(180deg, #3a8fe8 0%, #2d6fc2 100%); color: #fff; border: none; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.management-tabs .tab-btn:hover { background: #2f86c9; }
.tab-section { display: block; }
.tab-section.hidden { display: none; }

        /* 🔥 МОБИЛЬНЫЙ РЕЖИМ - КНОПКА ПАНЕЛИ УПРАВЛЕНИЯ */
      .mobile-toggle-btn {
    position: fixed;
    top: 100px;  
    right: 25px; 
    background: linear-gradient(180deg, #3a8fe8 0%, #2d6fc2 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: none;
}

.mobile-toggle-btn:hover {
    background: linear-gradient(180deg, #3f96ef 0%, #2a63af 100%);
}

/* 🔥 БЛОК ПОЛЬЗОВАТЕЛЯ */
.user-info { 
    position: fixed; 
    top: 60px; 
    right: 30px; 
    background: white; 
    padding: 8px 12px; 
    border-radius: 8px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    z-index: 1000; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 0.9rem;
}
        
        .mobile-toggle-btn:hover {
            background: #2980b9;
        }

/* 🔥 СТИЛИ ДЛЯ БАЛЛУНОВ */
.balloon-content {
    max-width: 280px;
    padding: 10px;
}

/* 🔥 МОДАЛ СОГЛАСОВАНИЯ РАБОЧЕГО ДНЯ */
.workday-modal { position: fixed; inset: 0; display: none; z-index: 10001; }
.workday-modal.hidden { display: none; }
.workday-modal:not(.hidden) { display: block; }
.workday-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 0; }
.workday-modal__card { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 520px; max-width: 95%; background: #fff; border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,0.25); padding: 16px; z-index: 1; }
.workday-modal__close { position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 18px; cursor: pointer; }
.workday-modal__content { display: flex; flex-direction: column; gap: 10px; }
.workday-actions { display: flex; gap: 10px; }
.workday-actions .btn { flex: 1; padding: 10px 12px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; }
.btn-primary { background: linear-gradient(135deg, #3498db, #2980b9); color: #fff; }
.btn-secondary { background: #f0f3f6; color: #2c3e50; }
        
        /* 🔥 АДАПТИВНЫЕ СТИЛИ ДЛЯ МОБИЛЬНЫХ */
        @media (max-width: 768px) {
            .container { 
                flex-direction: column; 
                height: 100vh;
            }
            
            .sidebar { 
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                z-index: 1000;
                transform: translateX(-100%);
                transition: transform 0.3s ease;
                border-right: none;
                overflow-y: auto;
            }
            
            .sidebar.mobile-open {
                transform: translateX(0);
            }
            
            .sidebar-toggle {
                display: none;
            }
            
            .map-container {
                margin-left: 0 !important;
                height: 100vh;
            }
            
            .mobile-toggle-btn {
                display: block;
            }
            
            .user-info {
                top: 60px;
                right: 10px;
            }
            
            .balloon-content {
                max-width: 250px;
                padding: 8px;
            }
        }

        /* 🔥 УЛУЧШЕННЫЕ СТИЛИ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ */
        @media (max-width: 480px) {
            .login-container { padding: 20px; }
            .login-header h2 { font-size: 1.3rem; }
            .login-header p { font-size: 0.8rem; }
            
            .user-info { padding: 6px 10px; font-size: 0.8rem; }
            .logout-btn { padding: 4px 8px; font-size: 0.75rem; }
            
            .sidebar { padding: 12px; }
            .header { padding: 10px; margin-bottom: 12px; }
            
            .control-buttons-grid {
                grid-template-columns: 1fr;
            }
            
            .filter-access-menu, .inspector-management-menu { 
                padding: 12px; 
                width: 98%; 
            }
            
            .balloon-content {
                max-width: 220px;
                padding: 6px;
            }
        }
#adminSection { background: #f0f3f6; }
.brand-logo { display:block; width: 100%; max-width: 90%; height:auto; margin: 0 auto; }
.brand-container { width: 100%; max-width: none; margin: 0 auto; padding: 10px 12px; background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.login-header .brand-container { width: calc(100% + 50px); margin-left: -25px; margin-right: -25px; }
.header .brand-container { width: calc(100% + 24px); margin-left: -12px; margin-right: -12px; }
.admin-logo { display:block; max-height: 34px; height: auto; }
