/* Tag Manager page (see Scripts/TagManager.js). Same pattern as Content/EngineManager.css. */

.tag-manager {
    padding: .5rem;
    margin-left: -12px;
    margin-right: -12px;
}

.tag-manager.is-loading .tm-results {
    opacity: .5;
}

.tm-generate {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: flex-end;
    padding: .75rem;
    margin-bottom: .75rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
}

.tm-generate-field {
    flex: 0 1 140px;
}

.tm-generate-notes {
    flex: 1 1 220px;
}

.tm-generate-field label {
    font-size: .75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    display: block;
    margin-bottom: .2rem;
}

.tm-generate-btn {
    flex: 0 0 auto;
}

.tm-just-generated {
    margin-bottom: .75rem;
    padding: .75rem;
    background: #d1e7dd;
    border-radius: .5rem;
    font-size: .9rem;
}

.tm-just-generated code {
    background: #fff;
    padding: .1rem .4rem;
    border-radius: .25rem;
    margin-right: .4rem;
}

.tm-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    margin-bottom: .5rem;
}

.tm-filter-search {
    flex: 1 1 260px;
}

.tm-summary {
    margin: .25rem 0;
    font-size: .85rem;
    color: #6c757d;
}

.tm-table thead th {
    background: aliceblue;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

.tm-badge {
    display: inline-block;
    padding: .1rem .5rem;
    border-radius: .35rem;
    font-size: .75rem;
    font-weight: 600;
}

.tm-badge.tm-assigned { background: #d1e7dd; color: #0f5132; }
.tm-badge.tm-unassigned { background: #e2e3e5; color: #41464b; }

.tm-link {
    font-family: monospace;
    font-size: .85rem;
}

.tm-assign-row select {
    max-width: 220px;
    display: inline-block;
}
