
.discovery-view-popup.signature-details {
    padding: 10px;
    min-width: 340px;
}
.discovery-view-popup.signature-details > * {
    max-width: 450px;
}

.discovery-view-popup.signature-details .signature-action-buttons {
    float: right;
    clear: both;
    position: relative;
    z-index: 1;
    margin-top: 2px;
}
.discovery-view-popup.signature-details .signature-action-buttons .view-button {
    padding: 0;
}
.discovery-view-popup.signature-details .signature-action-buttons .view-button::after {
    content: '';
    display: inline-block;
    vertical-align: top;
    width: 23px;
    aspect-ratio: 1;
    mask: url('./img/group.svg') no-repeat center / 14px;
    background-color: currentColor;
    opacity: .85;
}
.discovery-view-popup.signature-details .signature-action-buttons .group::after {
    mask-image: url('./img/group.svg');
}

.discovery-view-popup.signature-details .path {
    position: relative;
    top: -4px;
    margin-bottom: -2px;
    font-size: 12px;
    color: var(--discovery-fmt-property-color);
    opacity: .8;
}

.discovery-view-popup.signature-details .view-h1 {
    margin: 20px 0 15px;
    line-height: 1;
    font-size: 180%;
}
.discovery-view-popup.signature-details .view-h1.property {
    color: var(--discovery-fmt-property-color);
}
.discovery-view-popup.signature-details .view-h1.type {
    color: var(--discovery-fmt-type-color);
    margin-bottom: 8px;
}
.discovery-view-popup.signature-details :is(.path, .signature-action-buttons) + .view-h1,
.discovery-view-popup.signature-details .view-h1:first-child {
    margin-top: 0;
}
.discovery-view-popup.signature-details .view-h1:last-child {
    margin-bottom: 0;
}
.discovery-view-popup.signature-details .usage-stat {
    display: inline-block;
    padding: 0 2ex 0 1ex;
    font-size: 12px;
    font-weight: normal;
    color: #aaa;
}
.discovery-view-popup.signature-details .usage-stat.optional::before {
    content: 'optional ';
    color: var(--discovery-fmt-flag-color);
}
.discovery-view-popup.signature-details .num {
    /* padding: 2px; */
    /* background: #ecf6fd; */
    color: var(--discovery-fmt-atom-color);
}
.discovery-view-popup.signature-details .pie-stat {
    display: flex;
    align-items: center;
    margin: 10px 0;
}
.discovery-view-popup.signature-details .pie-stat .list-header {
    font-size: 11px;
    color: #aaa;
}
.discovery-view-popup.signature-details .pie-stat > .view-block:last-child {
    overflow: hidden;
    padding-right: 10px;
}
.discovery-view-popup.signature-details .pie-stat .view-list-item {
    display: flex;
    align-items: baseline;
    white-space: nowrap;
}
.discovery-view-popup.signature-details .pie-stat .dot {
    display: inline-block;
    min-width: var(--size);
    height: var(--size);
    border-radius: 50%;
}
.discovery-view-popup.signature-details .pie-stat .caption {
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 5px;
}
.discovery-view-popup.signature-details .pie-stat .caption:empty::before {
    content: 'empty string';
    padding: 2px 4px 3px;
    border-radius: 3px;
    background: rgba(180, 180, 180, 0.2);
    color: #888;
    font-size: 11px;
}
.discovery-view-popup.signature-details .pie-stat .times {
    color: #aaa;
    font-size: 11px;
}
.discovery-view-popup.signature-details .pie-stat .pie {
    transform: rotate(-90deg);
    height: var(--size, 100px);
    width: var(--size, 100px);
    margin: 0 20px 0 10px;
    border-radius: 50%;
}

.discovery-view-popup.signature-details .overview-stat {
    color: #aaa;
    font-size: 12px;
}
.discovery-view-popup.signature-details .overview-stat + .view-content-filter {
    margin-top: 8px;
}
.discovery-view-popup.signature-details .view-content-filter > .view-input {
    margin-bottom: 4px;
}

.discovery-view-popup.signature-details .view-menu-item {
    display: flex;
    align-items: baseline;
}
.discovery-view-popup.signature-details .view-menu-item > .caption {
    flex: 1;
}
.discovery-view-popup.signature-details .view-menu-item > .caption:empty::before {
    content: '[empty string]';
    color: #888;
}
.discovery-view-popup.signature-details .view-menu-item > .count {
    color: #aaa;
    font-size: 11px;
}
.discovery-view-popup.signature-details .struct-list > .view-list-item {
    position: relative;
}
.discovery-view-popup.signature-details .struct-list > .view-list-item > .view-struct {
    overflow: hidden;
}
.discovery-view-popup.signature-details .struct-list > .view-list-item > .view-struct.struct-expanded-value {
    overflow-x: auto;
}
.discovery-view-popup.signature-details .struct-list > .view-list-item > .view-struct > .value:not(.struct-expanded-value) > .string:only-child {
    white-space: normal;
    word-break: break-all;
}
.discovery-view-popup.signature-details .struct-list > .view-list-item > .view-struct > .value > .string-text-wrapper {
    padding-left: 6px;
    margin-left: 4px;
    overflow-x: auto;
}
.discovery-view-popup.signature-details .struct-list > .view-list-item > .view-struct > .string-value-as-text .string-text {
    display: inline-block;
    white-space: pre;
}
.discovery-view-popup.signature-details .struct-list > .view-list-item > .count {
    position: absolute;
    top: 7px;
    right: 0;
    color: #aaa;
    font-size: 11px;
    padding: 0 4px 1px;
    border-radius: 3px 0 0 3px;
    background: var(--discovery-background-color);
    opacity: .9;
}

.discovery-view-popup.signature-details .array-types,
.discovery-view-popup.signature-details .set-types {
    padding: 8px 0 8px 12px;
    margin-top: 4px;
    border-left: 2px solid rgba(-45, 112, 178, 0.8);
}
.discovery-view-popup.signature-details .array-types::before,
.discovery-view-popup.signature-details .set-types::before {
    display: block;
    float: left;
    position: relative;
    top: -8px;
    left: -12px;
    padding: 2px 4px;
    color: white;
    font-size: 10px;
    line-height: 12px;
    background: rgba(-45, 112, 178, 0.8);
}
.discovery-view-popup.signature-details .array-types::before {
    content: 'Array value types';
}
.discovery-view-popup.signature-details .set-types::before {
    content: 'Set value types';
}
