#agencies-cont md-radio-button {
    margin-top: 0px;
}

#agencies-cont .agency-select-item {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 100%;
}

#agencies-cont .agency-select-name {
    white-space: normal;
}

#agencies-cont .agency-select-tags {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
}

#agencies-cont .agency-tag {
    display: inline-block;
    background: #fff9c4;
    color: #5d4037;
    border: 1px solid #d4c478;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

#agencies-cont #agencies-wrapper {
    width: 700px;
}

#agencies-cont #agencies-wrapper md-radio-button {
    display: inline-block;
    width: 350px;
}

@media (max-width: 959px) {
    #agencies-cont #agencies-wrapper {
        width: auto;
    }

    #agencies-cont #agencies-wrapper md-radio-button {
        width: 50%;
        min-width: 150px;
    }
}

.custom-fields-container {
    margin-top: 10px;
}

.custom-fields-count {
    font-size: 12px;
    color: #6c757d;
    font-weight: normal;
    margin-left: 8px;
    display: inline-block;
    margin-bottom: 10px;
}

.custom-field-item {
    margin-bottom: 15px;
    padding: 12px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.custom-field-item:hover {
    background-color: #f1f3f4;
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.custom-field-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #dee2e6;
}

.custom-field-name {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    text-transform: capitalize;
}

.custom-field-type {
    margin-left: 8px;
    font-size: 11px;
    color: #6c757d;
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.custom-field-value {
    margin-top: 6px;
}

.value-text {
    color: #212529;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}

.json-display {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    line-height: 1.4;
    color: #495057;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: auto;
}
