.status-message-label {
    margin: 0 0 8px;
    color: #0f172a;
    text-align: left;
}

.percentage-cell {
    min-width: 140px;
}

.percentage-bar {
    position: relative;
    width: 100%;
}

.percentage-bar-progress {
    width: 100%;
    height: 20px;
    border: 1px solid #dbeafe;
    border-radius: 4px;
    background-color: #eff6ff;
    color: #93c5fd;
    vertical-align: middle;
}

.percentage-bar-progress::-webkit-progress-bar {
    background-color: #eff6ff;
    border-radius: 4px;
}

.percentage-bar-progress::-webkit-progress-value {
    background-color: #bfdbfe;
    border-radius: 4px;
}

.percentage-bar-progress::-moz-progress-bar {
    background-color: #bfdbfe;
    border-radius: 4px;
}

.percentage-bar-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    font-weight: 600;
    color: #1e3a8a;
    pointer-events: none;
}

.status-message-progress {
    width: 100%;
    height: 16px;
}

.header-summary {
    margin-top: 12px;
}

.header-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.header-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
}

.header-summary-label {
    font-size: 12px;
    color: #475569;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.header-summary-value {
    font-size: 14px;
    color: #0f172a;
    font-weight: 500;
}

.summary-section-icon {
    display: inline-block;
    margin-right: 0.35em;
}

.summary-section-nav {
    margin: 0 0 16px;
}

.summary-section-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
}

.summary-section-links li {
    display: inline-flex;
    align-items: center;
}

.summary-section-links li.with-separator::before {
    content: '\2022';
    color: #64748b;
    margin: 0 10px;
}

.summary-section-links a {
    text-decoration: none;
}

.summary-section-links a:hover,
.summary-section-links a:focus {
    text-decoration: underline;
}

.summary-section-links a.no-data {
    color: #64748b;
}

@media print {
    #table-of-contents-section {
        break-before: avoid;
        page-break-before: auto;
    }

    .summary-section-nav {
        margin: 0 0 12px;
        border: 1px solid #d1d5db;
        padding: 8px 10px;
    }

    .summary-section-links {
        display: block;
        column-count: 1;
    }

    .summary-section-links li {
        display: block;
        margin: 0 0 2px;
    }

    .summary-section-links li.with-separator::before {
        content: none;
    }

    .summary-section-links a {
        display: flex;
        gap: 8px;
        text-decoration: none;
        color: #000;
    }

    .summary-section-links a::after {
        content: leader('.') target-counter(attr(href), page);
        margin-left: auto;
    }
}

.meta-tag {
    background: #f0f0f0;
    padding: 2px 7px;
    border-radius: 4px;
    color: #555;
    border-left: 3px solid #ddd;
    font-size: 0.75rem;
    line-height: 1.4;
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
}

.meta-tag.tlevel {
    background: #e8f1ff;
    border-left-color: #007bff;
    color: #1e3a8a;
}

@media (min-width: 700px) {
    .header-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .header-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ilr-summary-flag-icons {
    margin: 0 0 0 6px;
    vertical-align: middle;
}

.ilr-summary-flag-icons:first-child {
    margin: 0 6px 0 0;
}
