.aishm-admin .aishm-settings {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 16px 0;
}

.aishm-admin .aishm-settings label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.aishm-table input[type="text"],
.aishm-table input[type="url"] {
    width: 100%;
    min-width: 140px;
}

.aishm-table input[type="number"] {
    width: 86px;
}

.aishm-category-options {
    display: grid;
    gap: 4px;
    min-width: 110px;
}

.aishm-category-options label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.aishm-check-now,
.aishm-export-csv {
    margin-top: -12px;
}

.aishm-public-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 1rem 0;
    background: #fff;
}

.aishm-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin: 0 0 10px;
}

.aishm-filter-label {
    font-weight: 700;
}

.aishm-filter label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.aishm-filter-clear {
    border: 1px solid #9aa9bd;
    border-radius: 4px;
    background: #fff;
    color: #1f2937;
    cursor: pointer;
    padding: 3px 9px;
}

.aishm-public-table th,
.aishm-public-table td {
    border-bottom: 1px solid #d9dee7;
    padding: 6px 8px;
    text-align: left;
    vertical-align: middle;
    line-height: 1.25;
}

.aishm-public-table th {
    background: #dfe8f6;
    font-weight: 700;
    text-align: center;
}

.aishm-public-table td {
    background: #fff;
}

.aishm-public-table tbody tr:nth-child(odd) td,
.aishm-public-table tbody tr:nth-child(even) td {
    background: #fff;
}

.aishm-public-table thead th {
    vertical-align: middle;
}

.aishm-public-table th:first-child,
.aishm-public-table td:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.96em;
}

.aishm-public-table .aishm-col-service {
    width: 16%;
}

.aishm-public-table .aishm-col-category {
    width: 5.4%;
}

.aishm-public-table .aishm-col-status {
    width: 9%;
}

.aishm-public-table .aishm-col-reason {
    width: 48%;
}

.aishm-public-table .aishm-category-group {
    text-align: center;
}

.aishm-public-table .aishm-category-column,
.aishm-public-table .aishm-category-mark {
    text-align: center;
}

.aishm-public-table th:nth-last-child(2),
.aishm-public-table td:nth-last-child(2) {
    text-align: center;
    white-space: nowrap;
    width: 8em;
}

.aishm-public-table th:last-child,
.aishm-public-table td:last-child {
    white-space: nowrap;
}

.aishm-public-table td:last-child {
    font-size: 0.9em;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aishm-public-table .aishm-category-mark {
    color: #16894f;
    font-weight: 700;
}

.aishm-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 2px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.aishm-badge-up {
    background: #16894f;
}

.aishm-badge-down {
    background: #c93535;
}

.aishm-badge-warning {
    background: #b97813;
}

.aishm-badge-unknown {
    background: #657083;
}

.aishm-badge-disabled {
    background: #4f5968;
}

.aishm-badge-ended {
    background: #6f4a8e;
}

.aishm-status-detail {
    color: #657083;
    font-size: 12px;
}

@media (max-width: 640px) {
    .aishm-public-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
