/**
 * СИСТЕМНЫЙ ЛАДЪ: ОКО (v.8.6)
 * Фон: #f0f2f5 | Хидер: 60px | Сетка: 40px | Roboto/Calibri
 */

@import url('https://googleapis.com');

/* --- 1. ГЛОБАЛЬНЫЙ СБРОС И БАЗОВЫЙ ФОН --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { 
    margin: 0 !important; 
    padding: 0 !important; 
    background-color: #f0f2f5 !important; 
    width: 100%;
}

body { 
    font-family: 'Roboto', 'Calibri', sans-serif; 
    -webkit-font-smoothing: antialiased; 
    line-height: 1.4; 
    color: #1c1c1e;
}

/* --- 2. ХИДЕР: СТРОГО 60PX / 40PX PADDING --- */
.tutam-header {
    height: 60px;
    width: 100%;
    background-color: #f0f2f5;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.tutam-nav { display: flex; align-items: center; height: 100%; }
.tutam-nav a {
    text-decoration: none;
    color: #8e8e93;
    font-size: 11px;
    font-weight: 700;
    padding: 0 15px;
    text-transform: uppercase;
    transition: color 0.2s;
}
.tutam-nav a.active { color: #007aff; }
.tutam-nav a:hover { color: #1c1c1e; }

.oko-dot {
    width: 5px; height: 5px; background: #28a745;
    border-radius: 50%; margin-left: 5px; display: block;
}

.auth-block { display: flex; align-items: center; gap: 25px; height: 100%; }

.header-login-form { display: flex; gap: 8px; }
.header-login-form input { 
    height: 28px; width: 90px; padding: 0 8px; border: 1px solid #e5e5e5; 
    font-size: 10px; font-weight: 700; text-transform: uppercase; outline: none; background: #fff; 
}
.header-login-form button { 
    height: 28px; background: #1c1c1e; color: #fff; border: none; 
    padding: 0 12px; font-size: 10px; font-weight: 700; cursor: pointer; 
}

.user-meta { text-align: right; line-height: 1.1; }
.user-name { display: block; font-weight: 700; font-size: 12px; text-transform: uppercase; }
.user-role { font-size: 9px; color: #8e8e93; text-transform: uppercase; }
.logout-link { text-decoration: none; color: #e74c3c; font-size: 10px; font-weight: 700; border-left: 1px solid #e5e5e5; padding-left: 25px; text-transform: uppercase; }

/* --- 3. ГЛАВНЫЙ КОНТЕЙНЕР: 40PX PADDING --- */
.svitki-container, .vivodi-container, .povesti-stroy, .archive-container {
    width: 100% !important;
    padding: 30px 40px !important;
    display: block;
}

/* --- 4. ТАБЛИЦЫ: ИНВЕРСИЯ ЦВЕТОВ --- */
.rus-table { 
    width: 100%; border-collapse: collapse; border: 1px solid #e5e5e5; background: #f5f5f7; 
}
.rus-table th { 
    background: #fafafa; border-bottom: 1px solid #e5e5e5; padding: 10px 15px; 
    text-align: left; font-size: 10px; font-weight: 700; color: #8e8e93; text-transform: uppercase; 
}
.rus-table td { padding: 12px 15px; border-bottom: 1px solid #e5e5e5; font-size: 13px; vertical-align: middle; }

.rus-table tbody tr { background: #f5f5f7; transition: background 0.1s ease; }
.rus-table tbody tr:hover { background-color: #ffffff !important; }

/* --- 5. ЕДИНЫЙ СТИЛЬ КНОПОК УПРАВЛЕНИЯ (Близнецы) --- */
.rus-btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 35px;
    background: #007aff;
    color: #ffffff !important;
    border: none;
    border-radius: 2px;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.rus-btn-action:hover { opacity: 0.9; }
.rus-btn-secondary { background: #6c757d; } /* Серый цвет для Генератора */

/* --- 6. ЭЛЕМЕНТЫ МОДУЛЕЙ --- */
.table-cell-link, .file-link { font-weight: 500; font-size: 13px; color: #007aff; text-decoration: none; text-transform: uppercase; }
.btn-toggle-ui { text-decoration: none; color: #007aff; font-size: 10px; font-weight: 700; border: 1px solid #007aff; padding: 5px 12px; text-transform: uppercase; border-radius: 2px; }
.read-content-block { margin-top: 10px; padding: 15px; background: #fff; border-left: 3px solid #007aff; font-size: 14px; border-bottom: 1px solid #e5e5e5; }
.btn-enter { background: #007aff; color: #fff; border: none; padding: 8px 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; cursor: pointer; }

/* --- 7. СТРОКА ДАТ В ХИДЕРЕ --- */
.header-date-row {
    font-size: 10px;
    font-weight: 700;
    color: var(--tutam-gray);
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.5px;
    margin-right: 25px; /* Отступ перед блоком пользователя/формой */
}

