/* TOOLS / http_status — module-local styles only (row/table layout mirrors url_parser + admin table collapse). */

.hs-filter-section {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
}

.hs-filter-section .tool-field {
    margin-bottom: 0;
    flex: 0 1 420px;
}

.hs-filter {
    max-width: 420px;
    margin-bottom: 0;
}

[data-hs-count] {
    margin-top: 0;
}

.hs-table-wrap {
    overflow-x: auto;
}

.hs-table,
.hs-table tbody,
.hs-table tr,
.hs-table td,
.hs-table th {
    box-sizing: border-box;
}

.hs-table {
    width: 100%;
    border-collapse: collapse;
}

.hs-table thead th {
    text-align: left;
    padding: 8px 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-strong);
    white-space: nowrap;
}

.hs-table td {
    padding: 8px 10px;
    border-top: 1px solid var(--border-soft);
    vertical-align: top;
}

.hs-table td:last-child {
    white-space: nowrap;
}

.hs-table tbody tr:first-child td {
    border-top: none;
}

.hs-code {
    font-family: var(--font-family-mono);
    font-size: 0.9rem;
    font-weight: 600;
}

.hs-badge {
    display: inline-block;
    padding: 1px 8px;
    margin-left: 6px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-warning-strong);
    background: var(--color-warning-soft);
    border: 1px solid var(--color-warning);
    white-space: nowrap;
}

@media (max-width: 720px) {
    .hs-table thead {
        display: none;
    }

    .hs-table tr {
        display: block;
        width: 100%;
        padding: 8px 0;
        border-top: 1px solid var(--border-soft);
    }

    .hs-table tbody tr:first-child {
        border-top: none;
    }

    .hs-table td {
        display: block;
        width: 100%;
        border-top: 0;
        padding: 4px 0;
    }

    .hs-table td[data-label]::before {
        content: attr(data-label) ': ';
        font-weight: 600;
        color: var(--text-muted);
        margin-right: 6px;
    }

    .hs-filter-section .tool-field {
        flex-basis: 100%;
    }

    .hs-filter {
        max-width: 100%;
    }
}
