/* tool-manager-page.css — config set manager, one tool type per page */

.tm-page {
    font-family: var(--app-font-primary, "Geist", sans-serif);
    color: var(--app-text-primary, rgba(17, 24, 39, 0.87));
    font-size: 14px;
    line-height: 22px;
    /* Double-column width comes from the .dlg-page--wide scheme on the root. */
}

.tm-list {
    border: 1px solid hsla(0, 0%, 40%, 0.15);
    border-radius: 8px;
    overflow: hidden;
    background: var(--app-bg-primary, #fff);
}

.tm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 22px;
}

.tm-table th {
    text-align: left;
    padding: 8px 16px;
    background: var(--app-bg-secondary, #f9f9f9);
    font-weight: 600;
    font-size: 12px;
    color: var(--app-text-secondary, #919191);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tm-table td {
    padding: 10px 16px;
    border-bottom: 1px solid hsla(0, 0%, 40%, 0.08);
}

.tm-table tr:hover td {
    background: rgba(20, 27, 155, 0.03);
}

.tm-rename-btn,
.tm-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--app-text-secondary, #919191);
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.tm-rename-btn:hover {
    color: var(--app-text-primary, rgba(17, 24, 39, 0.87));
    background: rgba(20, 27, 155, 0.06);
}

.tm-delete-btn:hover {
    color: var(--app-text-alert, #dc172e);
    background: rgba(220, 23, 46, 0.06);
}

.tm-private-icon {
    margin-left: 6px;
    font-size: 13px;
    cursor: default;
}

/* Used by: one chip per bound profile, or a muted note when nothing uses
 * this config set — the case where the delete button is offered. */
.tm-used-by {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tm-profile-chip {
    padding: 2px 8px;
    border: 1px solid hsla(0, 0%, 40%, 0.15);
    border-radius: 10px;
    background: var(--app-bg-secondary, #f9f9f9);
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
}

.tm-unused {
    color: var(--app-text-secondary, #919191);
    font-size: 13px;
    font-style: italic;
}

.tm-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--app-text-secondary, #919191);
    border-top: 1px solid hsla(0, 0%, 40%, 0.08);
}

.tm-pagination button {
    padding: 4px 10px;
    border: 1px solid hsla(0, 0%, 40%, 0.15);
    border-radius: 6px;
    background: var(--app-bg-primary, #fff);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: background-color 0.15s ease;
}

.tm-pagination button:hover {
    background: var(--app-bg-hover, #f5f5f5);
}

.tm-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tm-pagination .tm-page-active {
    background: var(--app-action-primary, #212121);
    color: #f5f5f5;
    border-color: var(--app-action-primary, #212121);
}
