/* Manage Tags dialog
   Moved verbatim out of AdminSettingsDialog when the tag tab became its
   own dialog. Deliberately mirrors the user list — same header/filter/
   list/row shape — so the two management dialogs read as one thing. */

.tagDefinitionsContainer {
    padding: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.tagListHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.tagFilterInput {
    flex: 1;
    max-width: 200px;
}

.tagList {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.tagListItem {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.tagListItem:last-child {
    border-bottom: none;
}

.tagListItem:hover {
    background: #f9f9f9;
}

.tagId {
    font-weight: bold;
    font-family: monospace;
    min-width: 120px;
    color: #333;
}

.tagLanguages {
    flex: 1;
    padding: 0 15px;
}

.tagLang {
    font-size: 0.9em;
    margin-bottom: 4px;
}

.tagLang .langCode {
    font-weight: bold;
    color: #666;
}

.tagLang .langLabel {
    color: #333;
}

.tagLang .langDesc {
    color: #888;
    font-style: italic;
}

.tagActions {
    display: flex;
    gap: 5px;
}

.tagActions button {
    padding: 4px 8px;
    cursor: pointer;
}

/* Tag Edit Dialog */
.tagEditDialog .formRow {
    margin-bottom: 15px;
}

.tagEditDialog label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.tagEditDialog .fieldHint {
    font-size: 0.85em;
    color: #888;
    margin-top: 3px;
}

.tagEditDialog .tagIdInput {
    width: 100%;
    box-sizing: border-box;
    font-family: monospace;
}

.tagEditDialog .tagIdInput[readonly] {
    background: #f5f5f5;
    color: #666;
}

.languagesContainer {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
}

.languagesContainer > label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.languageRow {
    background: #f9f9f9;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
}

.langHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.langCodeInput {
    width: 50px;
    text-transform: uppercase;
    font-weight: bold;
}

.langCodeInput[readonly] {
    background: #eee;
    color: #666;
}

.langFields {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.langFields input {
    width: 100%;
    box-sizing: border-box;
}

.addLanguageButton {
    margin-top: 10px;
}

/* Tag Usage Warning Dialog */
.tagUsageWarning .usageList {
    max-height: 200px;
    overflow-y: auto;
    margin: 10px 0;
    padding-left: 20px;
}

.tagUsageWarning .usageList li {
    margin-bottom: 5px;
    font-size: 0.9em;
}
