/* Стили для отчетов */
.reports-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.complex-report {
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
}

.buildings-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.building-stats {
    display: flex;
    flex-wrap: wrap; /* Чтобы переносились на новую строку при необходимости */
    gap: 55px; /* Вот здесь регулируется расстояние между span'ами */
    font-size: 14px;
}

.building-stats span:not(:last-child) {
    margin-right: 10px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #777;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.notification-item.unread {
    background-color: #f0f8ff;
    border-left: 4px solid #3498db;
}

.notification-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    box-sizing: border-box;
}

.notification-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notification-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Truncate to 3 lines by default */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-title.expanded {
    display: block; /* Remove truncation */
    -webkit-line-clamp: unset;
    overflow: visible;
}

.leader-badge {
    background-color: #e67e22;
    color: white;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    flex-shrink: 0; /* Prevent badge from shrinking */
}

.notification-sender {
    font-size: 13px;
    color: #555;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.notification-read-at {
    font-size: 11px;
    color: #888;
    text-align: right;
}

.notification-date {
    color: #777;
    font-size: 12px;
}

.notification-content {
    font-size: 14px;
}

.show-more {
    background: none;
    border: none;
    color: #3498db;
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
}

.show-more:hover {
    color: #2980b9;
}

.empty-state, .error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    text-align: center;
    color: #666;
}

.empty-icon, .error-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ccc;
}

.error-icon {
    color: #e74c3c;
}

.empty-text, .error-text {
    font-size: 18px;
    max-width: 80%;
    margin: 0 auto;
}

.error-text {
    color: #e74c3c;
}

.notify-card.collapsed .notify-content {
    max-height: 80px;
    overflow: hidden;
    position: relative;
}

.notify-content {
    transition: max-height 0.3s ease;
}

.subordinate-checkbox {
    display: flex;
    align-items: center;
    margin: 5px 0;
    gap: 8px;
}

#send-notification-btn {
    margin-top: 10px;
    background: #4a90e2;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
}

.update-label {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 8px;
    text-align: center;
    animation: fadeIn 0.5s ease-in forwards;
}

.update-label-sec {
    font-size: 11px;
    color: var(--text-light);
    text-align: left;
    animation: fadeIn 0.5s ease-in forwards;
}

.hint-label {
    border-top: 1px solid #e2e8f0;
    font-size: 11px;
    color: var(--text-light);
    text-align: left;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}