
.terminalGlossaryPanel{
    position:absolute;
    top:42px;
    right:0;
    z-index:1003;
    width:320px;
    max-height:420px;
    padding:10px;
    border-radius:8px;
    background:rgba(255,255,255,.94);
    border:1px solid rgba(0,0,0,.08);
    box-shadow:0 8px 28px rgba(0,0,0,.22);
    backdrop-filter:blur(10px);
    text-align:left;
    overflow:hidden;
}

input#terminalGlossarySearch{
    width:calc(100% - 22px);
    height:32px;
    margin:0 0 10px 0;
    padding:0 10px;
    border-radius:6px;
    border:1px solid #ccc;
    background:#fff;
    color:#333;
    font-size:13px;
}

.terminalGlossaryResults{
    max-height:300px;
    overflow-y:auto;
}

.terminalGlossaryItem{
    padding:8px 9px;
    margin-bottom:6px;
    border-radius:7px;
    background:rgba(112,174,64,.06);
    border:1px solid rgba(112,174,64,.14);
}

.terminalGlossaryItem b{
    display:block;
    margin-bottom:4px;
    color:#222;
    font-size:13px;
    font-weight:500;
}

.terminalGlossaryItem p{
    margin:0;
    color:#555;
    font-size:12px;
    line-height:1.35;
}

.terminalGlossaryEmpty{
    padding:8px 0;
    color:#777;
    font-size:13px;
}

button.terminalGlossaryClose{
    width:100%;
    margin-top:10px;
}

body.dark-theme button.searchSettingsToggle:before,
body.dark-theme button.searchSettingsToggle:hover:before,
body.dark-theme button.searchSettingsToggle:target:before{
    position: relative;
    top: 2px;
    background-size: 264px 98px !important;
    background-position: -182px -4px !important;
}

body.dark-theme .searchSettingsPanel,
body.dark-theme .terminalGlossaryPanel{
    background:rgba(33,33,33,.94);
    border:1px solid #4a4a4a;
    color:#fff;
}

body.dark-theme .searchSettingsPanel h4,
body.dark-theme .terminalGlossaryPanel h4{
    color:#bdbdbd;
}

body.dark-theme button.searchOption{
    background:#2b2b2b !important;
    border-color:#555 !important;
    color:#e8e8e8 !important;
    line-height: 16px;
}

body.dark-theme button.searchOption:hover,
body.dark-theme button.searchOption:target,
body.dark-theme button.searchOption.active{
    background:rgba(112,174,64,.2) !important;
    border-color:#70ae40 !important;
    color:#dff5d8 !important;
}

body.dark-theme button.searchSettingsSave,
body.dark-theme button.searchSettingsDefault,
body.dark-theme button.searchTermsOpen,
body.dark-theme button.terminalGlossaryClose{
    background:#333 !important;
    border-color:#555 !important;
    color:#e8e8e8 !important;
}

body.dark-theme input#terminalGlossarySearch{
    background:#1f1f1f;
    border-color:#555;
    color:#e8e8e8;
}

body.dark-theme .terminalGlossaryItem{
    background:rgba(112,174,64,.12);
    border-color:rgba(112,174,64,.25);
}

body.dark-theme .terminalGlossaryItem b{
    color:#e8e8e8;
}

body.dark-theme .terminalGlossaryItem p{
    color:#cfcfcf;
}

body.dark-theme .terminalGlossaryEmpty{
    color:#aaa;
}