﻿.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.header-content {
    flex: 1;
}

.header-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.header-badges {
    display: flex;
    gap: 0.5rem;
}

.page-description {
    color: #6b7280;
    font-size: 1rem;
    margin: 0.75rem 0 0 0;
    max-width: 800px;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.badge-alarm {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-active {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-inactive {
    background-color: #f3f4f6;
    color: #6b7280;
}

.badge-rule-type {
    background-color: #e0e7ff;
    color: #3730a3;
    font-size: 0.7rem;
}

.badge-status-active {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-status-resolved {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-status-acknowledged {
    background-color: #fef3c7;
    color: #92400e;
}

.section-content-padding {
    padding: 1.5rem;
}

.empty-state {
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state i {
    opacity: 0.5;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

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

.rule-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.2s;
}

.clickable-card {
    cursor: pointer;
}

    .clickable-card:hover {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
        border-color: #0d6efd;
    }

.card-arrow {
    color: #9ca3af;
    transition: all 0.2s;
}

.clickable-card:hover .card-arrow {
    color: #0d6efd;
    transform: translateX(4px);
}

.card-header-section {
    padding: 1.25rem;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.card-body-section {
    padding: 1.25rem;
}

.card-footer-section {
    padding: 0.75rem 1.25rem;
    background-color: #f9fafb;
    border-top: 1px solid #f3f4f6;
}

.view-details-text {
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
}

.clickable-card:hover .view-details-text {
    color: #0d6efd;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: box-shadow 0.2s;
}

.contact-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 2.5rem;
    color: #6b7280;
}

.contact-details {
    flex: 1;
}

.contact-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.contact-info {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.contact-info i {
    width: 20px;
    opacity: 0.7;
}

.contact-info a {
    color: #0d6efd;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}