
/*************************************************
    Style Overrides
**************************************************/

/*  WebKit Scrollbars
------------------------------------------------ */

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background-color: rgba(0,33,184,0.2);
}

::-webkit-scrollbar-track:vertical {
    border-left: 1px solid rgba(0,33,184,0.3);
}

::-webkit-scrollbar-track:horizontal {
    border-top: 1px solid rgba(0,33,184,0.3);
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0,33,184,0.5);
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0,33,184,0.7);
}

/*  jQuery UI Interactions
------------------------------------------------ */

.ui-draggable-handle {
    cursor: move;
}

.ui-resizable-handle {
    position: absolute;
    width: 6px;
    height: 6px;
    z-index: 2;
}

.ui-resizable-n {
    cursor: n-resize;
    top: -1px;
    left: 5px;
    width: calc(100% - 10px);
}

.ui-resizable-ne {
    cursor: ne-resize;
    top: -1px;
    right: -1px;
}

.ui-resizable-e {
    cursor: e-resize;
    top: 5px;
    right: -1px;
    height: calc(100% - 10px);
}

.ui-resizable-se {
    cursor: se-resize;
    right: -1px;
    bottom: -1px;
}

.ui-resizable-s {
    cursor: s-resize;
    bottom: -1px;
    left: 5px;
    width: calc(100% - 10px);
}

.ui-resizable-sw {
    cursor: sw-resize;
    bottom: -1px;
    left: -1px;
}

.ui-resizable-w {
    cursor: w-resize;
    top: 5px;
    left: -1px;
    height: calc(100% - 10px);
}

.ui-resizable-nw {
    cursor: nw-resize;
    top: -1px;
    left: -1px;
}

/*  Semantic UI Components
------------------------------------------------ */

.ui.dialog {
    position: absolute;
    top: calc(50% - 75px);
    left: calc(50% - 125px);
    width: 250px;
    height: 150px;
    display: block;
    z-index: 5;
}

.ui.dialog:focus {
    outline: none;
}

.ui.dialog,
.ui.dialog .container,
.ui.dialog .header,
.ui.dialog .footer {
    border-radius: 3px;
}

.ui.dialog .header,
.ui.dialog .footer {
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1;
    vertical-align: baseline;
    color: rgb(30,30,30);
    background-color: rgb(246,246,246);
    border-color: rgb(228,228,228);
}

.ui.dialog .container {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-shadow: 0 2px 26px rgba(0,0,0,0.3),
        0 0 0 1px rgba(0,0,0,0.1);
    background-color: white;
}

.ui.dialog .header,
.ui.dialog .body,
.ui.dialog .footer {
    position: absolute;
    top: 0;
    left: 0;
}

.ui.dialog .header {
    text-align: center;
    font-weight: bold;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.ui.dialog .footer {
    top: auto;
    bottom: 0;
    text-align: left;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.ui.dialog .body {
    top: 30px;
    width: calc(100% - 10px);
    height: calc(100% - 70px);
    margin: 5px;
}

.ui.dialog.basic .body {
    height: calc(100% - 40px);
}

.ui.dialog.actionable .body {
    height: calc(100% - 82px);
}

.ui.dialog.actionable .footer {
    text-align: right;
}

.ui.dialog .button {
    font-size: 13px;
    padding: 6px 14px;
}

.ui.dialog .button.icon {
    padding: 6px;
}

.ui.block.right.floated {
    float: right;
}

.icon.close {
    float: right;
    font-size: 13px;
    color: rgba(0,0,0,0.5);
    text-shadow: none;
}

.icon.close:hover {
    color: rgba(0,0,0,0.7);
    opacity: 1;
}

.icon.close.inverted {
    color: rgba(255,255,255,0.7);
}

.icon.close.inverted:hover {
    color: white;
}

.ui.tiny.popup {
    padding: 0.25em 0.75em;
}

/*************************************************
    Document Viewer
**************************************************/
#seanote {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /*background: rgb(128,128,128);*/
    z-index: 10;
}

#seanote-menu,
#seanote-controls {
    margin: 0;
    /*background: rgba(0,0,0,0.7);*/
}

#seanote-menu {
    border-radius: 0;
    border-bottom: 1px solid white;
}

#seanote-menu .item:not(.dropdown) {
   padding-left: 2em !important;
}

#seanote-menu .item:not(.dropdown)::after {
    position: absolute;
    left: 0.8em;
    font-size: 0.8rem;
    font-family: 'Icons';
}

#seanote-menu .item:not(.dropdown)::after {
    content: '\f1db';
    color: rgba(0,0,0,0.2);
}

#seanote-menu .item.active:not(.dropdown)::after {
    content: '\f00c';
    color: rgba(0,0,0,0.95);
}

#seanote-menu .item.undone::after {
    content: '\f0c3';
}

#seanote-menu .item.disabled::after {
    color: rgba(0,0,0,0.5);
}

#seanote-menu .item.disabled {
    color: rgba(0,0,0,0.5) !important;
}

#seanote-menu .item.active {
    font-weight: normal !important;
}

/*#seanote-menu .searcharea input{
    margin-top: 6px;
    padding: 3px 10px;
    font-size: 0.8em;
    border-radius: 12px;
}*/



#seanote-menu .menu_document {display:none; }
#seanote-menu .menu_edit {display:none; }
#seanote-menu .menu_segment {display:none; }
#seanote-menu .submenu_pageobjects {display:none; }

#seanote-controls {
    border-top: 1px solid white;
	display: none;
}


#seanote-controls .button,
#seanote-controls .label {
    background: transparent;
    color: white;
    border-radius: 0;
}

#seanote-controls .button:focus {
    box-shadow: inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2) !important;
}

#seanote-controls .document-selector {
    text-align: right;
}

#seanote-controls .page-selector {
    color: rgb(153,153,153);
}

#seanote-controls .page-selector .item {
    text-align: center;
    padding: 0.25em 0.5em !important;
}

#seanote-controls .current-page-number {
    color: #ccc;
}

#seanote-controls .button:hover {
    background: rgba(255,255,255,0.1);
}

#seanote-viewer,
#openseadragon-viewer {
    width: 100%;
    height: 100%;
}

#seanote-viewer {
    position: relative;
    overflow: hidden;
    height: calc(100% - 81px);
}

#openseadragon-viewer {
    background-color: #ddd;
}

#seanote-filmstrip,
#seanote-toolbar {
    display: none;
    position: absolute;
    z-index: 3;
}

#seanote-filmstrip {
    width: 100%;
}

#seanote-filmstrip {
    bottom: 0;
    left: 0;
    overflow: hidden;
}

#seanote-filmstrip .header,
#seanote-filmstrip .body {
    width: 100%;
}

#seanote-filmstrip .header {
    padding: 5px 10px;
    font-size: 13px;
    background-color: rgba(255,255,255,0.95);
    border: 1px solid rgba(255,255,255,0.5);
    border-left: none;
    border-right: none;
	position:relative;
}

#seanote-filmstrip .header .filmstriptitle {
position: absolute;
    text-align: center;
    display: block;
    width: 60%;
    left: 50%;
    margin-left:-30%;
    white-space:nowrap;
    top: 3px;
    font-weight: bold;
    font-size: 1.2em;
}

#seanote-filmstrip .body {
    height: 128px;
    background-color: rgba(255,255,255,0.9);
}

#seanote-filmstrip .list {
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    padding: 14px 0;
    padding-bottom: 7px;
    margin: 0;
    white-space: nowrap;
}

#seanote-filmstrip .list > .item:first-child {
    margin-left: 1em !important;
}

#seanote-filmstrip .list > .item:last-child {
    margin-right: 1em !important;
}

#seanote-filmstrip .item {
    padding-top: 0;
    padding-bottom: 0;
/*    line-height: 100px;
    height: 100px;
    width: 100px;*/
    min-width: 150px;
    text-align:center;
}

#seanote-filmstrip .label {
    position: absolute;
    top: -14px;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 2px 0;
    background: transparent;
}

#seanote-filmstrip .item a,
#seanote-filmstrip .label {
    font-size: 10px;
    text-align: center;
    color: black;
}

#seanote-filmstrip img {
    height: 100px;
    
    border-radius: 0;
    background: rgba(255,255,255,0.1);
}

#seanote-filmstrip .item.current img {
    opacity: 0.7;
    border: 2px solid rgb(0,33,184);
}

#seanote-filmstrip .item.current .label {
    color: rgb(0,33,184);
}
#seanote-metadatas {
    top: 5px;
    left: 5px;
    width: 250px;
    height: 250px;
    display: none;
}

#seanote-metadatas  .body{
	overflow-y: scroll;
	font-size: 0.8em;
}
#seanote-metadatas  .body th { text-align:left; max-width: 50%; padding-right: 10px;}
#seanote-navigator {
    top: 5px;
    right: 5px;
    left: auto;
    width: 250px;
    height: 250px;
    display: none;
}

#openseadragon-navigator {
    width: 100%;
    height: 100%;
}

#openseadragon-navigator-displayregion { border-color: rgb(15,0,153)!important;}

#seanote-toolbar {
    top: 5px;
    left: 5px;
    opacity: 0.7;
}

#seanote-toolbar .active .icon {
    color: rgb(0,33,184);
}

#seanote-toolbar .menu {
    margin: 0 0 5px 0;
}

#seanote-toolbar .toggle-segments {display: none; }
#seanote-toolbar .menu[data-group="segment-commands"] {display:none; }


/*  Canvas Segments
------------------------------------------------ */

.canvas-segment {
	background: #edff00; opacity:0.5;

    overflow: hidden;
    /*box-shadow: inset 0 0 0 1px rgba(220,20,60,0.3);*/
}

.canvas-segment.merged {
    box-shadow: inset 0 0 0 2px rgba(220,20,60,0.3);
}

.canvas-segment.grouped {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
    border: 1px solid rgba(66,139,202,0.8);
}

.canvas-segment.annotated {
    background-color: rgba(220,20,60,0.2);
}

.canvas-segment.annotated-group {
    border-color: rgba(128,0,128,0.4);
}

.canvas-segment.selected,
.canvas-segment.selected.annotated {
    box-shadow: inset 0 0 0 1px rgb(0,33,184);
    background-color: rgba(0,33,184,0.3);
}

.canvas-segment.selected-group,
.canvas-segment.selected-group.annotated-group {
    border-color: rgb(0,33,184);
}

.canvas-segment.resizable {
		border: 1px dashed rgba(220,20,60,0.5);
		background-color: rgba(0,33,184,0.2);
}

.canvas-segment:hover {
    cursor: pointer;
}

.canvas-segment-group {
    border: 1px dotted rgba(0,0,0,0.3);
    z-index: -1;
}

.canvas-segment .group-list {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    max-height: 18px;
    width: auto;
    margin: 2px;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
}

.canvas-segment .group {
    display: inline-block;
    margin-left: 2px;
    padding: 2px 4px;
    text-align: center;
    font-size: 12px;
    line-height: 1;
    color: white;
    background: rgba(66,139,202,0.8);
}

.canvas-segment .group {
    background: rgba(66,139,202,0.8);
}

.canvas-segment .group:hover {
    background-color: rgb(66,139,202);
}

.canvas-segment .group.annotated {
    background-color: rgba(128,0,128,0.5);
}

.canvas-segment .group.annotated:hover {
    background-color: rgba(128,0,128,0.7);
}

.canvas-segment .group.selected {
    background-color: rgba(0,33,184,0.5);
}

.canvas-segment .group.selected:hover {
    background-color: rgba(0,33,184,0.7);
}

.canvas-selection {
    border: 1px dashed rgb(0,0,128);
    z-index: 1;
}

/*  Canvas Articles
------------------------------------------------ */

.canvas-article {
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(220,20,60,0.3);
}

.canvas-article.selected {
    box-shadow: inset 0 0 0 1px rgb(0,33,184);
    background-color: rgba(0,33,184,0.3);
}

.canvas-article.resizable {
		border: 1px dashed rgba(220,20,60,0.5);
		background-color: rgba(0,33,184,0.2);
}

.canvas-article:hover {
    cursor: pointer;
}




/*  Resizing Components
------------------------------------------------ */

.resizing-handle {
    position: absolute;
    height: 7px;
    width: 7px;
    background: rgba(220,20,60,0.5);
    z-index: 2;
}

.resizing-handle-n {
    cursor: n-resize;
    top: -4px;
    left: 50%;
    margin-left: -4px;
}

.resizing-handle-ne {
    cursor: ne-resize;
    top: -4px;
    right: -4px;
}

.resizing-handle-e {
    cursor: e-resize;
    top: 50%;
    right: -4px;
    margin-top: -4px;
}

.resizing-handle-se {
    cursor: se-resize;
    right: -4px;
    bottom: -4px;
}

.resizing-handle-s {
    cursor: s-resize;
    bottom: -4px;
    left: 50%;
    margin-left: -4px;
}

.resizing-handle-sw {
    cursor: sw-resize;
    bottom: -4px;
    left: -4px;
}

.resizing-handle-w {
    cursor: w-resize;
    top: 50%;
    left: -4px;
    margin-top: -4px;
}

.resizing-handle-nw {
    cursor: nw-resize;
    top: -4px;
    left: -4px;
}

/*  Dialog Windows
------------------------------------------------ */

#annotation-dialog,
#named-entity-creator {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    min-height: 300px;
    margin-top: -150px;
    margin-left: -250px;
    z-index: 3;
}

#annotation-dialog:focus {
    outline: none;
}

#named-entity-creator {
    width: 400px;
    min-height: 300px;
    margin-top: -150px;
    margin-left: -200px;
    z-index: 5;
}

.selection-preview {
    width: 100%;
    height: 100px;
    background: #eee;
    margin-bottom: 0.5rem;
    text-align: center;
    padding: 5px 0;
    line-height: 40px;
    border: 1px solid #ccc;
    border-radius: 0.28rem;
}

.selection-preview img {
    max-width: 100%;
    max-height: 90px;
}

.close {
    cursor: pointer;
}







.ui.dropdown .scrolling.menu {
	position: absolute;
	top: 30px;
	left: auto;
	right: 10px;
	
	
	
}


#seanote-menu>.item:not(.dropdown)::after { content:''; }
#seanote-menu>.item:not(.dropdown){ padding:0.92857143em 1.14285714em!important; }
