/* Shared styles for exp.js. */
.ShowExpText {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 3px;
    vertical-align: middle;
    cursor: pointer;
    opacity: 0.86;
}

.ShowExpText:not([src]) {
    background: #4d6f8f;
    border-radius: 50%;
}

.ShowExpText.ExpOptionalHidden {
    display: none !important;
}

.ExpRepository,
.ExpRepositoryIndex,
.ExpRepositoryInclude,
.ExpRepositoryLoaded,
.ExpTemplate {
    display: none;
}

.ExpLayer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    outline: 0;
    box-shadow: none !important;
    pointer-events: none;
}

.ExpLayer.is-visible {
    display: block;
}

.ExpDialog {
    position: fixed;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, calc(100vw - 32px));
    max-height: min(80vh, 720px);
    overflow: auto;
    background: #fff;
    border: 1px solid #444;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
    pointer-events: auto;
    line-height: 1.45;
}

.ExpDialog .ExpHdr {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0;
    padding: 8px 40px 8px 12px;
    font-weight: bold;
    background: #f5f5f5;
    border-bottom: 1px solid #aaa;
    cursor: move;
    user-select: none;
}

.ExpDialog .ExpBody {
    padding: 14px 16px 16px;
    font-size: 14px;
}

.ExpDialog .ExpBody p {
    margin: 0 0 10px;
}

.ExpDialog .ExpBody ul,
.ExpDialog .ExpBody ol {
    margin: 6px 0 12px 24px;
    padding: 0;
}

.ExpDialog .ExpBody li {
    margin: 4px 0;
}

.ExpDialog .ExpBody h4,
.ExpDialog .ExpBody h5 {
    margin: 14px 0 8px;
    line-height: 1.3;
}

.ExpDialog .CloseExpText {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ExpSourceError {
    color: #b30000;
}
