﻿/* CSS used on the main site, make sure there is no styling interference */
.sosform .sosformSpinner {
    display: block;
    margin: 10px auto;
}
.sosform .sosformServerError {
    width: 100% !important;
    padding: 15px !important;
    border: 3px solid #E74361 !important;
    white-space: normal;
    box-sizing: border-box;
}
.sos-elink {
    display: none;
}
.sosform.edit-mode .sos-elink + * {
    outline: 2px dotted orange !important;
    outline-offset: 1px !important;
    min-height:8px;
}
.sosform.edit-mode .sos-elink + .sos-elink-highlight {
    outline: 2px solid darkorange !important;
}
.sosform.edit-mode .sos-elink-placeholder {
    margin-top: 12px !important;
}
.sosform.edit-mode .sos-elink-tooltip {
    display: none;
    font-size: 16px !important;
    position: fixed !important;
    pointer-events: none !important;
    background: lightgray !important;
    color: black !important;
    padding: 3px 5px !important;
    border-radius: 3px !important;
    z-index: 9999999 !important;
    white-space: nowrap !important;
    border: 1px solid orange !important;
    min-width: 80px !important;
}
.sosform.edit-mode .sos-elink-tooltip:before {
    content: 'edit: alt+click';
    position: absolute;
    top: -16px;
    left: 1px;
    background: orange;
    font-size: 10px;
    border-radius: 3px;
    padding: 0 5px;
    line-height: 1rem;
    white-space: nowrap;
}
.sosform .sos-elink-button {
    position: initial;
    border: 2px dotted orangered !important;
    padding: 0px 5px !important;
    margin: 0 !important;
    margin-right: 10px !important;
    border-radius: 3px !important;
    font-style: normal !important;
    font-weight: normal !important;
    color: orangered !important;
    font-size: 16px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    min-width: 30px !important;
    text-align: center !important;
    display: inline-block !important;
    line-height: 20px !important;
}
.sosform .sos-elink-button:hover { border-style: solid !important; }
.sosform .sos-elink-button.sos-elink-button-help:before { content: "\003F"; }
.sosform .sos-elink-button.sos-elink-button-export:before { content: "\21B9"; }
.sosform .sos-elink-button.sos-elink-button-toggle:before { content: "\1F441"; 
    background: linear-gradient(to top left, rgba(0,0,0,0) 0%, rgba(0,0,0,0) calc(50% - 1px), rgba(236,116,4,1) 50%, rgba(0,0,0,0) calc(50% + 1px), rgba(0,0,0,0) 100%);
}
.sosform.edit-mode .sos-elink-button.sos-elink-button-toggle:before { background: none; }

.sosform .sos-epanel {
    --panel-color: grey;
    background-color: color-mix(in srgb, var(--panel-color) 30%, white) !important; /* tint 70% */
    display: block;
    padding: 5px 10px;
    margin: 0px;
    border: 0;
    font-size: 16px !important;
    font-weight: normal;
    border-radius: 10px;
    position: relative;
}
    .sosform .sos-epanel:before {
        content: 'DEV';
        position: absolute;
        right: 10px;
        top: 0;
        font-size: 10px;
        color: var(--panel-color);
        font-weight:bold;
    }
.sosform .sos-epanel-prod { --panel-color: #16c1ff; } /* always blue for PROD, green for TEST, grey DEV */
.sosform .sos-epanel-test { --panel-color: #76B856; } 
.sosform .sos-epanel-prod:before {content: 'PROD';}
.sosform .sos-epanel-test:before { content: 'TEST'; }
.sosform .sos-epanel-section { padding: 8px 0; display: table; width: 100%; }
.sosform .sos-epanel-section:not(:last-child) { border-bottom: 2px solid var(--panel-color); }
.sosform .sos-epanel-section-header { min-width: 85px; display: inline-block; font-weight: bold; }

.sosform .sos-eview {
    border: 0 !important;
    vertical-align: middle !important;
    color: white !important;
    margin: 0 5px 0 0 !important;
    padding: 0 10px !important;
    height: 34px !important;
    width: auto !important;
    border-radius: 0px !important;
    border-radius: 3px !important;
    --eview-bg: #009EE0;
    background-color: var(--eview-bg) !important;
}
    .sosform .sos-eview.sos-eview-active, .sos-eview:hover {
        background-color: color-mix(in srgb, var(--eview-bg) 60%, black) !important; /* shade 40% */
        box-shadow: inset 0px 0px 5px #333 !important;
    }
    .sosform .sos-eview.sos-eview-confirmation {
        --eview-bg: #76B856;
    }
    .sosform .sos-eview.sos-eview-error {
        --eview-bg: #E74361;
    }
