body {
    background-color: #f8f9fa;
    color: #212529;
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0 0 50px 0;
}

.navbar {
    background-color: #2063ab !important;
    padding: 15px 0;
    margin-bottom: 24px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.navbar-brand {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tjro-logo {
    height: 45px;
    filter: invert(1) !important;
    margin-right: 4px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #ffffff;
}

.header-time {
    font-weight: 600;
    font-size: 0.95rem;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.badge-demo {
    background: #ffc107;
    color: #212529;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.list-section,
.incidents-section {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

.section-title,
.section-header h2 {
    margin: 0 0 14px 0;
    color: #1d3557;
    font-size: 1.15rem;
    font-weight: 700;
}

.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-item {
    border: none;
    background: transparent;
}

.accordion-summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e6e9ee;
}

.no-expand-summary {
    cursor: default;
}

.accordion-summary::-webkit-details-marker {
    display: none;
}

.summary-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.summary-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
    margin-left: 16px;
}

.summary-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #2063ab;
    transition: transform 0.2s ease;
    flex: 0 0 auto;
}

.accordion-item:not([open]) .summary-arrow {
    transform: rotate(-90deg);
}

.accordion-item[open] .summary-arrow {
    transform: rotate(0deg);
}

.summary-name {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
    min-width: 0;
    word-break: break-word;
}

.app-status-text {
    font-size: 0.96rem;
    font-weight: 700;
}

.child-status-text {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-up-text {
    color: #2063ab;
}

.status-down-text {
    color: #dc3545;
}

.status-partial-text {
    color: #2063ab;
    opacity: 0.4;
}

.accordion-content {
    padding: 6px 8px 2px 28px;
}

.child-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f3;
}

.child-left {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    flex: 1;
}

.child-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
    margin-left: 16px;
}

.child-name {
    color: #1f2937;
    font-weight: 700;
    font-size: 0.98rem;
    min-width: 0;
    word-break: break-word;
}

.service-link {
    color: #2063ab;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.98rem;
    min-width: 0;
    word-break: break-word;
}

.service-link:hover {
    text-decoration: underline;
}

.service-group-title {
    margin-top: 14px;
    padding: 8px 0 6px 0;
    color: #1d3557;
    font-weight: 700;
    font-size: 0.98rem;
}

.section-header p {
    display: none;
}

.table-wrapper {
    overflow-x: auto;
}

.incidents-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.incidents-table thead th {
    background: #2063ab;
    color: #fff;
    text-align: left;
    padding: 12px;
    font-size: 0.92rem;
}

.incidents-table tbody td {
    border-bottom: 1px solid #e9ecef;
    padding: 12px;
    vertical-align: top;
    font-size: 0.93rem;
}

.expand-box {
    margin-top: 18px;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: #f8fbff;
    padding: 12px 14px;
}

.expand-box summary {
    cursor: pointer;
    font-weight: 700;
    color: #2063ab;
}

.details-table {
    margin-top: 14px;
}

@media (max-width: 900px) {
    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .accordion-summary,
    .child-row {
        align-items: flex-start;
    }
}
