body {
    background: #f5f7fb;
}

.page-title {
    font-weight: 600;
}

.card {
    border: none;
    border-radius: 14px;
}

.card-body {
    padding: 25px;
}

.table-hover tbody tr:hover {
    background: #f1f4f9;
}

.badge {
    font-size: 0.85em;
}

.action-btn {
    padding: 5px 8px;
}

.dataTables_filter input {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 5px 10px;
}

/* ---------- СТРАНИЦА ВХОДА ---------- */

.center-body {
    background: linear-gradient(135deg,#eef2f7,#d9e2ec);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 380px;
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-header i {
    font-size: 38px;
    color: #2563eb;
}

.form-control {
    border-radius: 8px;
    padding: 10px;
}

.btn-login {
    border-radius: 8px;
    padding: 10px;
    font-weight: 500;
}

.card {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.dataTables_filter input {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 6px 10px;
    margin-left: 5px;
}

.dataTables_filter {
    font-weight: 500;
}

/* ---------- ПАНЕЛЬ TELEMT ---------- */

.telemt-dashboard {
    max-width: 1600px;
}

.stat-card .card-body {
    padding: 18px;
}

.stat-label {
    min-height: 38px;
    color: #6c757d;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.stat-value {
    margin-top: 6px;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    font-weight: 700;
    line-height: 1.2;
}

.chart-wrap {
    position: relative;
    width: 100%;
    height: 260px;
}

.chart-legend {
    display: grid;
    grid-auto-flow: column;
    column-gap: 32px;
    align-items: center;
    width: max-content;
    margin: 8px auto 0;
    color: #6c757d;
    font-size: .85rem;
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.chart-legend span::before {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: 50%;
    content: '';
}

.chart-legend .download::before {
    background: #0d6efd;
}

.chart-legend .upload::before {
    background: #20c997;
}

.metric-bars {
    display: grid;
    gap: 12px;
    min-height: 170px;
}

.metric-bar-row span {
    overflow: hidden;
    max-width: 70%;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metric-bar-row .progress {
    height: 7px;
    margin-top: 5px;
}

.empty-state {
    place-items: center;
    color: #6c757d;
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.health-item, .health-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eef0f3;
}

.health-item {
    align-items: center;
    min-width: 0;
    padding: 14px;
    border: 0;
    border-radius: 10px;
    background: #f8f9fa;
}

.health-item-label {
    min-width: 0;
    color: #6c757d;
}

.health-item-value {
    flex: 0 0 auto;
    margin-left: 16px;
    font-size: 1.1rem;
    white-space: nowrap;
}

.health-line span {
    color: #6c757d;
}

.health-warning {
    border: 1px solid #ffc107;
    background: #fffaf0;
}

.telemt-alert {
    min-height: 48px;
    transition: opacity .2s ease, visibility .2s ease;
}

.telemt-alert.is-hidden {
    visibility: hidden;
    opacity: 0;
}

#report-form .select2-container .select2-selection--single {
    height: 38px;
    border-color: #dee2e6;
}

#report-form .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 12px;
}

#report-form .select2-container .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

@media (max-width: 575.98px) {
    .telemt-dashboard .card-body {
        padding: 18px;
    }
    .chart-wrap {
        height: 220px;
    }
    .health-grid {
        grid-template-columns: 1fr;
    }
}
.user-notice {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

