html,
body {
    height: 100%;
    user-select: none;
    margin: 0px;
}

* {
    box-sizing: border-box;
}

.Highlighted {
    color: green;
    font-weight: bold;
}

.Spintax {
    color: blue;
}

.Bold {
    font-weight: bold;
}

.Italic {
    font-style: italic;
}

.Strikethrough {
    text-decoration: line-through;
}

.Scrollbar-Visible {
    padding-right: 5px;
}

.CodeMirror-placeholder {
    color: Silver !important;
}

.CodeMirror-linenumber {
    color: green;
}

.CodeMirror-gutters {
    background-color: white;
}

.CodeMirror {
    font-family: "Noto Color Emoji", sans-serif;
    border-radius: 5px;
    line-height: 1.2;
}

.select2-container .select2-search--dropdown .select2-search__field {
    font-family: "Noto Color Emoji", sans-serif;
    outline: none;
    border-radius: 5px;
}

.select2-container .select2-results__option {
    font-family: "Noto Color Emoji", sans-serif;
}

.select2-container .select2-selection--single {
    font-family: "Noto Color Emoji", sans-serif;
    outline: none;
    height: 31px !important;
}

.select2-selection__rendered {
    line-height: 29px !important;
}

.select2-selection__arrow {
    height: 28px !important;
}

html::-webkit-scrollbar {
    width: 6px;
}

html::-webkit-scrollbar-track {
    background-color: transparent;
}

html::-webkit-scrollbar-thumb {
    background: #00A082;
}

html::-webkit-scrollbar-thumb:hover {
    background: #1CFFD1;
}

#TextTemplate {
    height: 100%;
}

#PollTemplate .CodeMirror,
#ListTemplate .CodeMirror,
#LocationTemplate .CodeMirror {
    height: auto;
    padding: 5px;
    margin-bottom: 5px;
}

#ListTemplate {
    width: 100%;
    height: 100%;
}

#ListTemplate .Section {
    margin-bottom: 15px;
    background-color: rgb(0, 160, 130);
    padding: 10px;
    border-radius: 10px;
}

#ListTemplate .Section-Header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: white;
}

#ListTemplate .Section-Content {
    padding-left: 0px;
}

#ListTemplate .Btn {
    padding: 10px 20px;
    background-color: rgb(255, 255, 255);
    color: rgb(0, 160, 130);
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#ListTemplate .Btn-Danger {
    background-color: #dc3545;
    color: white;
}

#ContactTemplate .Section label {
    color: green;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
    width: 100%;
}

#ContactTemplate .Section {
    display: flex;
    flex-direction: column;
    width: calc(50% - 2.5px);
    height: 282px;
    padding: 10px;
    padding-bottom: 0px;
    background-color: white;
    border-radius: 5px;
}

#ContactTemplate {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 10px;
}

#ReplyRuleTemplate {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 10px;
}

#ReplyRuleTemplate .ConditionValueSection {
    display: grid;
    grid-template-rows: auto 1fr;
    row-gap: 5px;
}

#ReplyRuleTemplate .ConditionValueSection .ConditionSection label {
    background-color: white;
    padding: 5.5px 12px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-style: solid;
    border-width: 1px;
    border-color: rgb(170, 170, 170);
    border-right-color: white;
    font-weight: bold;
    color: green;
}

#ReplyRuleTemplate label {
    color: green;
    font-weight: bold;
    text-align: center;
    align-content: center;
}

#ReplyRuleTemplate .ConditionSection {
    display: grid;
    grid-template-columns: auto 1fr;
}

#ReplyRuleTemplate .ValueSection .CodeMirror {
    height: calc(100vb - 79px);
}

#ReplyRuleTemplate .FromNumbersSection .CodeMirror,
#ReplyRuleTemplate .FromGroupsSection .CodeMirror {
    height: calc(100vb - 43px);
}

#ReplyRuleTemplate .ValueSection,
#ReplyRuleTemplate .FromNumbersSection,
#ReplyRuleTemplate .FromGroupsSection {
    display: grid;
    grid-template-rows: auto 1fr;
    row-gap: 5px;
    background-color: white;
    border-radius: 5px;
    padding: 10px 10px 0 10px;
}

#ReplyRuleTemplate .select2-container {
    width: 100% !important;
}

#ReplyRuleTemplate .select2-container .select2-selection--single {
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}

#CaptionTemplate {
    width: 100%;
    height: calc(100% - 38px);
}

#CaptionTemplate .CodeMirror:first-of-type {
    padding: 2.5px;
    width: 100%;
    height: auto;
    margin-bottom: 5px;
}

#SpintaxTemplate {
    width: 100%;
    height: calc(100% - 38px);
}

#SpintaxTemplate .CodeMirror:first-of-type {
    padding: 2.5px;
    width: 100%;
    height: auto;
    margin-bottom: 5px;
}

#ConditionalReplacerTemplate label {
    color: green;
    font-weight: bold;
}

#ConditionalReplacerTemplate .ConditionSection label {
    background-color: white;
    padding: 5.5px 12px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-style: solid;
    border-width: 1px;
    border-color: rgb(170, 170, 170);
    font-weight: bold;
    color: green;
    margin-right: -6px;
}

#ConditionalReplacerTemplate .ConditionSection {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 10px;
    gap: 5px;
}

#ConditionalReplacerTemplate .ConditionSection .CodeMirror {
    padding: 2.5px;
    width: 100%;
    height: 31px;
    width: 191px !important;
}

#ConditionalReplacerTemplate .ReplaceWithSection {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 10px;
}

#ConditionalReplacerTemplate .ReplaceWithSection label {
    margin-bottom: 5px;
    text-align: center;
    width: 100%;
}

#ConditionalReplacerTemplate .ReplaceSection,
#ConditionalReplacerTemplate .WithSection {
    display: flex;
    flex-direction: column;
    width: calc(50% - 2.5px);
    height: 286px;
    padding: 10px;
    padding-bottom: 0px;
    background-color: white;
    border-radius: 5px;
}

#ConditionalReplacerTemplate .ConditionSection .select2-container:first-of-type .select2-selection--single {
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}

#ConditionalReplacerTemplate .ConditionSection .select2-container:first-of-type {
    width: 150px !important;
}

#ConditionalReplacerTemplate .ConditionSection .select2-container:last-of-type {
    width: 191px !important;
}