.custom-choice-container {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-editable-trans {
    background-image: none;
    cursor: pointer;
    display: inline-block;
    height: 20px;
    margin-right: 30px;
    width: 250px;
}

.environment-label {
    background-color: darkred;
    border-radius: 4px;
    color: #F5DEB3FF;
    padding: 5px 10px;
}

.cke_editable .shortcode {
    background-color: #fff3cd !important;
    color: #856404 !important;
    font-weight: bold !important;
    padding: 0 2px;
    border-radius: 2px;
    cursor: help;
}

.has-error {
    border: 2px solid red !important;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.status-badge--success { background-color: #5cb85c; }
.status-badge--danger { background-color: #d9534f; }
.status-badge--warning { background-color: #f0ad4e; }
.status-badge--info { background-color: #5bc0de; }
.status-badge--default { background-color: #777; }

/* JSON Viewer */
.json-viewer {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 4px;
    overflow-x: auto;
    max-height: 500px;
    margin: 0;
}

/* URL List */
.url-list {
    width: 130px;
}

.url-list__item {
    word-wrap: break-word;
}

/* Link Copy */
.link-copy {
    display: flex;
    align-items: center;
}

.link-copy__button {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
}

/* Action Toolbar */
.action-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem;
}

/* Alias Row Styles */
.alias-row--landing { background-color: #c3fcff !important; }
.alias-row--other { background-color: #ffe9ce !important; }
.alias-row--refused { background-color: #9c9c9c !important; }
.alias-row--tds { background-color: #b0e8ff !important; }
.alias-row--unprocessed { background-color: #ffc3c3 !important; }
.alias-row--unresolved { background-color: #cccccc !important; }

/* Worker Table */
.worker-table__id {
    display: inline-block;
    min-width: 260px;
    text-align: left;
}

.worker-table__status {
    display: inline-block;
    min-width: 90px;
    text-align: center;
}

.worker-table__event-type {
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.worker-table__message {
    display: inline-block;
    min-width: 220px;
    margin-left: 0.5rem;
    color: #333;
}

/* Log Panel */
.log-panel {
    margin: 0.5rem 0 0 1rem;
    padding-left: 0;
    list-style: none;
}

.log-panel__entry {
    margin-bottom: 0.35rem;
}

.log-panel__context {
    white-space: pre-wrap;
    vertical-align: top;
}

/* Lang Switcher */
.lang-switcher {
    padding-left: 1rem;
    padding-bottom: 5px;
}

.lang-switcher__toggle {
    cursor: pointer;
}

/* Tree Node */
.tree-node__spacer {
    display: inline-block;
    width: 16px;
}

.tree-node__editable {
    min-width: 10px;
    background-image: none;
    height: 22px;
    cursor: pointer;
    display: inline-block;
}

.tree-node__default {
    margin-left: 1rem;
}

/* Content Transfer */
.content-transfer {
    display: flex;
    align-items: stretch;
    margin-bottom: 1rem;
}

.content-transfer__panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-transfer__panel-body {
    flex: 1;
    display: flex;
    align-items: center;
}

.content-transfer__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-transfer__alias-name {
    font-size: 16px;
    font-weight: bold;
}

.content-transfer__actions {
    text-align: right;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.content-transfer__actions .btn + .btn {
    margin-left: 0.5rem;
}

/* Locale Switcher */
.locale-switcher {
    margin-bottom: 11%;
    margin-left: 15px;
}

.locale-switcher__link {
    border-radius: 17px;
}

.locale-switcher__link--ru {
    position: absolute;
    margin-left: 20%;
}

.locale-switcher__link--en {
    position: fixed;
}

.locale-switcher__link--active {
    background: #d1daea;
}

/* User Menu Item */
.user-menu__item {
    padding: 3px 20px;
}

/* Batch Select */
.batch-select {
    width: auto;
    height: auto;
}

.batch-select--hidden {
    width: 400px;
    display: none;
}

/* TDS Links */
.tds-links__deprecated {
    color: grey;
    margin-left: 5px;
}

/* Protocol Badge */
.protocol-badge {
    color: green;
}

/* Callout Spacing */
.callout--spaced {
    margin-bottom: 1rem;
}

/* Form Group Spacing */
.form-group--spaced {
    margin-bottom: 1rem;
}

/* Dropdown Menu */
.dropdown-menu--wide {
    width: 280px;
}

/* Redis Dashboard */
.redis-box {
    margin-bottom: 1rem;
}

.redis-table {
    margin-bottom: 0;
}

.redis-table__col--worker-id { width: 40%; }
.redis-table__col--status { width: 25%; }
.redis-table__col--events { width: 40%; }
.redis-table__col--timestamp { width: 160px; }
.redis-table__col--level { width: 100px; }

.redis-panel {
    margin-bottom: 0.5rem;
}

.redis-panel__title {
    margin: 0;
}

.redis-panel__body {
    padding: 0;
}

.redis-panel__badge {
    margin-left: 0.5rem;
}

.redis-error {
    margin-left: 0.5rem;
}

.redis-error--block {
    margin-top: 0.25rem;
}

.redis-meta {
    margin-left: 0.5rem;
}

.redis-empty {
    padding: 1rem;
}

.redis-pre {
    margin: 0;
}
