/* General Styles */

.textarea {
    width: 20em !important;
}

/* Popover Styles */
#annotate_settings,#crosscheck_popover,#alert_popover {
    background: #FFF;
    border-radius: 4px;
    color: white;
    font-size: 13px;
    font-weight: bold;
    padding: 4px 8px;
    z-index: 2000;
}
#crosscheck_popover,#alert_popover {
    max-width: 600px;
    max-height: 400px;
    overflow: auto;
}
#annotate_settings[data-show],#crosscheck_popover[data-show],#alert_popover[data-show] {
    display: block;
}

#arrow,
#arrow::before {
    position: absolute;
    width: 8px;
    height: 8px;
    z-index: -1;
}

#arrow::before {
    content: '';
    transform: rotate(45deg);
    background: #FFF;
    box-shadow: -4px -4px 5px #00000012;
}

#annotate_settings[data-popper-placement^='top']>#arrow, #crosscheck_popover[data-popper-placement^='top']>#arrow,#alert_popover[data-popper-placement^='top']>#arrow  {
    bottom: -4px;
}

#annotate_settings[data-popper-placement^='bottom']>#arrow, #crosscheck_popover[data-popper-placement^='bottom']>#arrow,#alert_popover[data-popper-placement^='bottom']>#arrow {
    top: -4px;
}

#annotate_settings[data-popper-placement^='left']>#arrow, #crosscheck_popover[data-popper-placement^='left']>#arrow ,#alert_popover[data-popper-placement^='left']>#arrow{
    right: -4px;
}

#annotate_settings[data-popper-placement^='right']>#arrow, #crosscheck_popover[data-popper-placement^='right']>#arrow,#alert_popover[data-popper-placement^='right']>#arrow {
    left: -4px;
}

/* Semantic UI Overrides */
.ui.floating {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2001;
}

.ui.segment {
    margin: 0.5rem !important;
}

.ui.card>.content ,.ui.tab.tab2{
    height: 81vh;
    overflow: auto !important;
}
.ui.tab.tab2.backdrop{
    margin-bottom:500px !important;
}
.ui.feed>.event>.content .example.text {
    font-size: 1.2em;
    line-height: 1.6285em;
    max-width: 100%;
    /*border: 2px dashed #8080803b;*/
    padding: 0.25em;
}
#tablenoteblock{
    display: inherit !important;
    position: relative !important;
    top: 0px !important;
    margin: 0px !important;
    overflow: hidden;
    height: 100vh !important;
}

/* Utilities */
.p-around_small {
    margin: 1rem !important;
}

.m-bottom_medium {
    margin-bottom: 2rem !important;
}
div.item, div.tab{
    background: unset !important;
}

.m-bottom_x-small {
    margin-bottom: 1rem !important;
}
annotation {
    background-color: #2185d0 !important; 
    /* border: 1px dashed white; */
    color: white;
    z-index: 2000;
    font-size: 16pt !important;
}

.crosscheck annotation {
    background-color: #fff !important; 
    border: unset !important;
    color: unset !important;
    z-index: 2000;
    font-size: 16pt !important;
}

.ui.dimmer {
    background-color: rgba(0, 0, 0, .50) !important;
}
.text-editor.notes sup, #tablenoteviewer sup{
    vertical-align:inherit !important;
    top: -5px !important;
}

annotation[current=true] {
    position: relative;
}

annotation[type=Abbreviation],annotation[type=abbr] {
    background-color: #f26202!important;
}

annotation[type=Expansion] {
    background-color: green !important;
}

annotation[type=Symbol] {
    background-color: pink !important;
}

annotation[type=Denote] {
    background-color: purple !important;
}

annotation[type=P-Value] {
    background-color: teal !important;
}

annotation[type=Callout],annotation[type=Designator] {
    background-color: blue !important;
}
annotation[type=GeneralText] {
    background-color:red !important;
}

annotation[type=SourceText] {
    background-color:#eaae00!important;
}

annotation[type=Caption] {
    background-color: purple !important;
}

.crosscheck annotation[type=Abbreviation],.crosscheck annotation[type=abbr],.crosscheck annotation[type=Caption],.crosscheck annotation[type=SourceText],.crosscheck annotation[type=GeneralText], .crosscheck annotation[type=Callout], .crosscheck annotation[type=Designator], .crosscheck annotation[type=P-Value], .crosscheck annotation[type=Denote], .crosscheck annotation[type=Symbol], .crosscheck annotation[type=Expansion]{
    background-color: #fff !important
}

annotation.error{
    border-style: dotted !important;
    border-color: red !important;
    border-width: 5px !important;
}


.crosscheck annotation.error{
    border-style: none !important;
    border-color: unset !important;
    border-width: 5px !important;
}

.text-editor{
    margin-bottom: 10px !important;
}
.ui.button {
    cursor: pointer !important;
    background: #cacbcd !important;
    color: rgba(0, 0, 0, .8) !important;
    width: auto !important;
}
.ui.olive.button, .ui.olive.buttons .button {
    background-color: #b5cc18 !important;
    color: #fff !important;
    text-shadow: none;
    background-image: none;
}
.ui.floated{
    width:auto !important;
    padding: 5px !important;
}
.ui.right{
    float: right !important;
}
.ui.left{
    float: left !important;
}
.ui.grid.container{
    width: 100% !important;
}
.p-around_small{
    color:#000 !important;
}
.ui.grid>[class*="two column"].row .column:nth-child(1){
    width:30% !important
}
.ui.grid>[class*="two column"].row .column:nth-child(2){
    width:70% !important
}
.ui.grid>[class*="two column"].row .column.crosscheck:nth-child(1){
    width:60% !important
}
.ui.grid>[class*="two column"].row .column.crosscheck:nth-child(2){
    width:40% !important
}
.tabular.menu .item{
    cursor: pointer !important;
}
.ui.top,.ui.bottom{
    background: var(--theme-color) !important;
    color: #fff !important;
}
.ui.tabular.menu .item{
    color: #fff !important;
}
.ui.tabular.menu .active.item{
    color: #fff !important;
    font-weight: bold !important;
    background: var(--theme-font-color) !important;
}
.ui.bottom a{
    color: #fff !important;
}
button.ui.primary:hover, button.ui.primary {
    background-color: var(--theme-color) !important;
    color: #fff !important;
    text-shadow: none !important;
    width: auto !important;
}

.text.text-editor.notes *,.summary a{
    font-size: 15pt !important;
}
#tablenoteviewer *{
    font-size: 15pt !important;    
}
.ui.ribbon.label{
    font-size: 13pt !important;
}
#annotations_list p,button{
    font-size: 13pt !important;
}
.ui.bottom.fixed.menu a, .ui.bottom.fixed.menu i{
    font-size: 15pt !important;
    font-weight: bold !important;
    color: #164a6b !important;
}
.ui.top.menu a,.ui.top.menu i, .ui.top.menu .item{
    font-size: 15pt !important;
    font-weight: bold !important;
    color: #164a6b !important;
}

#annotate_settings p, #annotate_settings textarea,#annotate_settings label{
    font-size: 13pt !important;
}
#crosscheck_popover p, #crosscheck_popover textarea,#crosscheck_popover label,#alert_popover label,#alert_popover p{
    font-size: 13pt !important;
}
#tablenoteviewer{
    overflow-y: auto !important;
    max-height: 80vh !important;
}
.pe_contentwrapper.noscroll{
    overflow-y: hidden !important;
}
.alertwrapper ul li{
    list-style-type: disc !important;
}
.text-editor .denotes{
    background-color: #9f9f9fd6 !important;
}
table .denotes, .Binomial .denotes, .ss .denotes {
    background-color: unset !important;
}
#tablenoteblock a:not(i),#tablenoteblock button:not(i), .tabular.menu .item:not(i),.ui.header:not(i),#annotations_list *:not(i),.ui.form.raised.segments *:not(i){
    font-family: var(--theme-font-family) !important;
}
.ui.raised.segment.highlight{
    border: 2px solid #b5cc18 !important;
}
.resizeicon{
    position: absolute !important;
    right:60px !important;
    height: 30px !important;
}
.largewindow{
    max-width: 800px !important;
    height: 600px !important;
}
.smallwindow{
    max-width: 480px !important;
}
.largewindow #comment_textarea {
    height: 300px !important;
}
#abstractalert{
    font-size: 17px !important;
}
#abstractalert button{
    font-size: 16px !important;
    font-style: italic;
    text-transform: uppercase;
    font-weight: bold !important;
    padding: 5px 10px !important;
}
.ui.form select{
    font-size: 16px !important;
}
/* Change background color of buttons on hover */
.tab button:hover {
    background-color: var(--grey-color) !important;
}

/* Create an active/current tablink class */
.tab button.active {
    background-color: var(--header-bg) !important;
    color: #fff !important;
}

/* Style the tab content */
.tabcontent {
    display: none !important;
    padding: 6px 12px !important;
    border: 1px solid #ccc !important;
    border-top: none !important;
}
.tabcontent.active{
    display: block !important;
}
.tab {
    font-family: Times New Roman;
    font-size: 14pt;
    color: #164a6b !important;
}

.ul_listing, .uc_listing {
    margin-top: 5px !important;
}
.floats_list{
    display: flex;
    overflow: auto !important;
    height: 100%;
}
.crosscheckheader {
    align-items: center;
    background-color: #164a6b;
    border-bottom: none;
    color: #fff;
    display: flex;
    font-size: 16px;
    justify-content: center;
    padding: 8px 16px 0 16px;
    position: relative;
    font-size: 22px !important;
    font-weight: 700 !important;
}
.uc_inner, .ul_inner {
    padding: 5px;
    border-bottom: 1px solid;
    position: relative;
    background: #f0ecec;
    border-bottom: 1px solid #fff !important;
}
.child + .child {
    border-left: solid 1px white;
}
.ul_inner .badge, .uc_inner .badge{
    position: absolute;
    right: 5px;
    background-color: #164a6b;
    padding: 3px;
    border-radius: 2px;
    color: #fff; 
}
.insert_query{
    position: unset !important;
    margin-top: 5px !important;
}
.select2query{
    width: 100% !important;
}
.footnotesinsert_query{    
    width: auto !important;
    right: 0% !important;
    /*bottom: -50% !important;*/
    padding: 10px !important;
    outline: 0!important;
    background: var(--theme-color)!important;
    border: none!important;
    text-align: center!important;
    color: var(--header-bg)!important;
    font-weight: 700!important;
    cursor: pointer!important;
    transition: all .3s ease!important;
    border-radius: 5px !important;
  }
  .custom-menu {
    display: none;
    z-index: 3000 ;
    position: absolute;
    overflow: hidden ;
    border: 1px solid #CCC;
    white-space: nowrap ;
    font-family: sans-serif ;
    background: #FFF ;
    color: #333 ;
    border-radius: 5px;
    padding: 0px;
    margin:0px;
}
.custom-menu li {
    padding: 8px 12px;
    cursor: pointer;
    background: var(--header-bg) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: bold;
    border: 1px solid #ddd !important;
}
.custom-menu li:hover {
    background-color: var(--theme-color) !important;;
}

.mce-visualblocks-new p::after, p.mce-match-marker-selected::after {
    content: '¶';
    color: #000;
}
.citebtnblock{        
    
}
.citebtn.update{
    background-color: #2185d0 !important;
}
.citebtn.cancel{
    background-color: #2185d0 !important;
}
.citepara{
    font-size: 16pt !important;
}
.citebtnblock .citebtn{
    padding: 5px !important;
    border-radius: 3px;
    display: inline-block !important;
    margin-right: 5px !important;
    font-size: 13pt !important;
    color: #fff !important;
    width: 80px !important;
}
.citebtnblock .citebtn:hover{
    color: #2185d0 !important;
}
.editcaptioneditor{
    position: relative !important;
    height: 100px !important;
    padding: 10px !important;
    border: 1px solid #eee !important;
    margin-bottom: 5px !important;
}
.editlist{
    padding: 5px;
}
.editlist img{
    width:20px !important;
    height:20px !important;
}
#tablenoteblock.backmatterwindow {
    height: 93vh !important;
}
.bmwindow{
    display: flex !important;
    height: 100%;
}
.bmwindow .bmleftside{
    width: 25%;
}
.bmwindow .bmrightside{
    width: 75%;
    background: #fff !important;
}
.bmpreviewcontent {
    overflow-y: auto !important;
    max-height: 100%;
}