/* Техадмин-дашборд Louna — минимальный служебный стиль, системный шрифт. */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    color: #1f2430;
    background: #f4f5f7;
}

.hidden {
    display: none !important;
}

/* ---- Экран входа ---- */

#login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-box {
    background: #ffffff;
    border: 1px solid #d9dce3;
    border-radius: 8px;
    padding: 32px;
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.login-box h1 {
    font-size: 20px;
    margin-bottom: 8px;
}

.login-hint {
    color: #6b7280;
    margin-bottom: 20px;
}

.login-box input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c4c9d4;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
}

.login-box button {
    width: 100%;
    padding: 10px 12px;
    background: #2455d6;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.login-box button:disabled {
    opacity: 0.6;
    cursor: default;
}

/* ---- Основной экран ---- */

.topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border-bottom: 1px solid #d9dce3;
    padding: 12px 24px;
}

.topbar-title {
    font-weight: 600;
    white-space: nowrap;
}

.breadcrumbs {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumbs a {
    color: #2455d6;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.crumb-sep {
    margin: 0 6px;
    color: #9aa1ad;
}

.crumb-current {
    color: #4b5563;
}

.content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

.view h2 {
    font-size: 18px;
    margin-bottom: 16px;
}

.view h3 {
    font-size: 15px;
    margin: 20px 0 10px;
    color: #4b5563;
}

.view-actions {
    margin-bottom: 12px;
}

.view-hint {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 12px;
}

.row-actions {
    white-space: nowrap;
}

.row-actions .btn-secondary {
    margin-right: 6px;
}

/* ---- Таблицы ---- */

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #d9dce3;
    border-radius: 6px;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #4b5563;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.empty-cell {
    color: #9aa1ad;
    text-align: center;
}

/* ---- Кнопки ---- */

.btn-secondary {
    padding: 6px 12px;
    background: #ffffff;
    color: #2455d6;
    border: 1px solid #c4c9d4;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: #f0f4ff;
}

/* ---- Лента ---- */

.feed-list {
    list-style: none;
    background: #ffffff;
    border: 1px solid #d9dce3;
    border-radius: 6px;
}

.feed-item {
    display: flex;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
    align-items: baseline;
}

.feed-item:last-child {
    border-bottom: none;
}

.feed-ts {
    color: #6b7280;
    font-size: 12px;
    white-space: nowrap;
    min-width: 120px;
}

.feed-login {
    font-weight: 600;
    white-space: nowrap;
}

.feed-action {
    color: #1f2430;
    overflow-wrap: anywhere;
}

.feed-controls {
    margin-top: 12px;
    text-align: center;
}

/* ---- Служебные ---- */

.error-message {
    margin-top: 16px;
    padding: 10px 12px;
    background: #fdecec;
    color: #b42318;
    border: 1px solid #f5c2c0;
    border-radius: 6px;
}

.empty-message {
    color: #9aa1ad;
    padding: 16px;
}

.loading {
    margin-top: 16px;
    color: #6b7280;
}
