@import "/css/basics.css";
@import "/css/icons.css";
@import "/css/cards.css";
@import "/css/buttons.css";
@import "/css/decklist.css";
@import "/css/modal.css";
@import "/css/timeline.css";
@import "/css/keyframes.css";
@import "/css/sidebar.css";
@import "/css/tomato.css";
@import "/css/epub.css";
@import "/css/layout.css";

:root {
    --tleft : 50%;
    --ttop : 50%;    
}
#leftSide {
    position: relative;
    flex-direction: column; 
    display: flex;
}
#outerWr #fields {
    overflow-y: auto;
    height: calc(100% - 10px) !important;
    padding-right: 8px;
    margin-top: 10px !important;
}
#siac-second-col-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}
#resultsArea {
    height: 100px;  
    width: 100%; 
    position: relative;
    overflow: auto;
    flex: 1;
    margin-top: 5px;
}
#resultsWrapper {
    z-index: 100;
    height: 100%;
    overflow: hidden;
    display: flex;
}
.signal {
    border: 5px solid #2496dc;
    border-radius: 30px;
    height: 30px;
    opacity: 0;
    width: 30px; 
    display: inline-block;

    animation: pulsate 1.5s ease-out;
    animation-iteration-count: infinite;
}
#loader {
    position: absolute;
    top: calc(50% - 45px);
    left: calc(50% - 75px);
    width: 250px;
    font-size: 20px;
    text-align: center;
    padding: 15px;
    user-select: none;
    z-index: 10000;
    background: var(--c-modal-background);
}

#loader .signal {
    color: #2496dc;
}
.siac-search-loader {
    width: 250px; 
    padding: 20px; 
    text-align: center;
    background: var(--c-modal-background);
    color: var(--c-modal-foregroundl);
}
#searchResults {
    /* display: none; */
    height: calc(100% - 15px);
    overflow-y: auto;
    padding: 10px 10px 5px 10px;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
    flex: 1 1 auto;
    margin-bottom: 5px;
}
#cal-wrapper {
    box-sizing: content-box;
    padding: 5px 0;
}
#cal-row {
    line-height: 8px;
    margin: 5px 10px;
    box-sizing: border-box;
    width: calc(100% - 20px);
}
.cal-heatmap-container {
    margin-left: auto;
    margin-right: auto;
}
.floatingBtnBar {
    display: inline;
    color: white;
    vertical-align: top;
    font-weight: bold;
}
.floatingBtnBarItem {
    display: inline;
    cursor: pointer;
    vertical-align: top;
}
.floatingBtnBarItem:hover {
    transform: scale(1.04);
    color: #2496dc;
}
.floatingBtnBarItem:not(:last-child) {
    margin-right: 5px;
}
.flexCol > select {
    width: 200px;
}
#bottomContainer {
    z-index: 2;
    margin-right: 0px;
    overflow-x: hidden;
    flex: 0 0 auto;
}
.keyword {
    cursor: pointer;
    color: var(--c-keyword);
    background-color: inherit !important;
    font-weight: bold;
    text-decoration: none;
}
.keyword:hover {
    filter: brightness(150%);
}
#topContainer {
    z-index: 5;
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0 !important;
    border-bottom: 1px solid var(--c-separator);
}
#siac-right-side mark, #siac-left-tab-browse mark {
    background-color: var(--c-highlight-background);
    color: var(--c-highlight-foreground);
    border-radius: 4px;
}
#siac-reading-modal mark {
    background-color: var(--c-highlight-background-night);
    color: var(--c-highlight-foreground-night);
    padding: 0;
}
#siac-right-side select {
    background-color: var(--c-select-background);
    color: var(--c-select-foreground);
}
#siac-right-side h4 {
    font-size: 14px;
}
#siac-right-side h3 {
    font-size: 1.3rem;
}
#siac-right-side h2 {
    font-size: 1.5rem;
        }
#siac-right-side h2 {
    font-size: 1.7rem;
}
body.nightMode select {
    border-color: grey;
}
.tagLbl {
    position: relative;
    background: var(--c-tag-background);
    color: var(--c-tag-foreground);
    padding: 1px 4px 1px 4px;
    border-radius: 2px;
    margin-left: 5px;
    float: right;
    font-size: 12 !important;
    cursor: pointer;
    z-index: 4;
    user-select: none;
    border: 1px solid var(--c-tag-background);
}
#siac-reading-modal .tagLbl {
    background: var(--c-tag-background-night);
    color: var(--c-tag-foreground-night);
    border: 1px solid var(--c-tag-background-night);
}
body.nightMode .tagLbl:hover {
    filter: brightness(150%);
    /* border: 1px solid var(--c-tag-background); */
}
.tagLbl:hover {
    /* filter: hue-rotate(90deg); */
    filter: contrast(200%);
    /* box-shadow: inset 0 0 100px 100px rgba(255, 255, 255, 0.1); */
    /* border: 1px solid color(var(--c-tag-background) brightness(150%)); */
}
#tagContainer .tagLbl {
    float: left;
    margin-bottom: 5px;
    hyphens: manual;
    margin-right: 7px;
    margin-left: 0px;
}

.siac-read-box {
    display: inline-block;
    height: 12px;
    width: 12px;
    background: var(--c-read-box-background);
    border-radius: 3px;
    margin-left: 2px;
    vertical-align: middle;
}
#predefSearchSelect {
    margin-right: 5px;
}
#predefSearchNumberSel {
    margin-right: 5px;
}
#siac-browser-search-inp {
    background: var(--c-input-background);
    color: var(--c-input-foreground);
    border: 1px solid var(--c-input-border);
    border-radius: 3px;
    box-sizing: border-box;
    min-width: 50px;
    margin-left: 2px;
    padding-left: 4px;
    height: 100%;
}
input[type="radio"] {
    min-width: 21px;
}

.siac-input {
    background: var(--c-input-background);
    color: var(--c-input-foreground);
    border-radius: 3px; 
    padding-left: 4px; 
    border: 1px solid #929292;
    background: transparent;
}
body.nightMode .siac-input, #siac-reading-modal .siac-input {
    border: 1px solid grey;
    background:  #2f2f31;
}
#siac-search-inp-mode-lbl {
    cursor: pointer;
    color: var(--c-keyword);
    user-select: none;
    overflow: hidden; 
    white-space: nowrap;
}
#siac-search-inp-mode-lbl:hover {
    filter: brightness(150%);
}
#deckSelWrapper {
    max-height: 300px;
    margin-bottom: 0px !important;
    margin-right: 1px;
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
}
#deckSel {
    width: 100%;
    font-size: 0;
}
/* body.nightMode # */

#deckSel tr>td {
   text-align: left;
   width: 90%;
}
#tagContainer {
    overflow-x: hidden;
    overflow-y: auto;
}

.siac-switch-btn-dropdown {
    display: none;
    position: absolute;
    left: 0;
    margin-top: 3px;
    margin-left: -2px;
    width: 150px;
    background: var(--c-button-background);
    border: 2px outset var(--c-button-border);
    color: var(--c-button-color);
    z-index: 120000;
    padding: 5px;
}
.flexContainer {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 0px !important;
}
.flexCol {
    flex-grow: 2;
    padding: 10px 10px 0 10px;
    min-width: 40px !important;
    margin-bottom: 0px !important;
}
.addon-hidden {
    display: none !important;
}
#siac-right-side legend {
    font-size: 12px;
}
#siac-right-side hr {
    margin: 6px 0;
}
.sq-r {
    display: inline-block;
    width: 8px; 
    height: 8px;
    border-radius: 1px;
    margin-right: 2px;
    background: #757575;
}
.sq-rg {
    background: #2496dc;
}
.sq-r:hover {
    filter: brightness(1.4);
}
.sq-lbl {
    display: inline-block;
    min-width: 70px;
    color: grey;
}
.flexCol.right {
    flex-grow: 1;
    min-width: 40px !important;
    margin-bottom: 0px !important;
}
.flexCol > table {
    width: 100%;
}
.flexCol td {
    text-align: right;
}
.tbLb {
    width: 80%;
    text-align: left !important;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
}
.tbLb label {
    cursor: pointer;
}
#searchInfo {
    flex: 0 0 150px;
    margin-bottom: 8px;
    margin-left: 10px;
    word-wrap: break-word;
    padding: 10px 0 0 10px;
    display: flex;
    flex-direction: column;
}
#searchInfo.hidden {
    display: none;
}
#searchInfo table {
    width: 100%;
}
#searchInfo table > tbody > td > td:first-child {
    width: 100px;
}

.searchInfoTagSep {
    width: 100%;
    border-bottom: 1px solid grey;
    margin-top: 13px;
    margin-bottom: 6px;
    padding-bottom: 4px;
    user-select: none;
}
.searchInfoTagSep.bottom {
    margin-top: 10px;
    margin-bottom: 4px;
}
table.siac-read-stats-table td {
    padding: 0;
    line-height: 1.1em;
}
table.siac-read-stats-table tr:hover .siac-read-box {
    filter: brightness(1.4);
}


#icns-large {
    text-align: right;
    color: grey;
    user-select: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    background: var(--c-card-bg);
}
#icns-large > div {
    margin: 0 5px;
}

body.nightMode #icns-large {
    background: var(--c-card-bg-night);
    border: 1px solid rgb(64,64,64);
}
.rnd-icon,.flds-icon,.freeze-icon {
    display: inline-block;
    font-size: 13px !important;
    cursor: pointer;
    color: grey;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
}
.rnd-icon,.flds-icon,.freeze-icon {
  margin-right: 7px;
}
.freeze-icon:hover, .rnd-icon:hover, .flds-icon:hover {
    color:  #2496dc;
}

.freeze-icon.frozen {
    color:  #2496dc !important;
}
.exp {
    user-select: none;
    margin-left: 3px;
}
.exp:hover {
    color: coral;
}
.siac-caps {
    font-variant: all-petite-caps;
    font-weight: bold;
    font-size: 15px;
}
table.striped {
    border-collapse: collapse;
}
.exp:empty {
    margin-right: 0;
}
.siac-switch-deck-btn-inner {
    width: 48%; 
    display: inline-block; 
    text-align: center;
}
.siac-switch-deck-btn-inner.right {
  border-left:  1px solid  var(--c-button-border);
}
.siac-switch-deck-btn-inner:hover {
    color:#2496dc;
}
.siac-switch-deck-btn-inner b:hover {
    transform: scale(1.04);
}
.siac-table-container {
    display: table;
    overflow: hidden;
}
.siac-table-cell {
    display: table-cell;
    height: 100%;
    vertical-align: top;
}
.siac-table-cell-btn {
    color: var(--c-button-foreground);
    background: var(--c-button-background);
    border: 1px solid var(--c-button-border);
    cursor: pointer;
    user-select: none;
    outline: none;
    text-align: center !important;
    padding: 5px !important;
    overflow: hidden;
    border-radius: 4px;
}
.siac-table-cell-btn:hover {
    color: #2496dc;
}
#siac-right-side {
    padding: 0px 3px 4px 13px;
    margin-left: 8px;
    position: relative;
    font-family: 'Open Sans', sans-serif;
    box-sizing: border-box;
    font-size: 12px !important;
    overflow-y: hidden;
    box-sizing: content-box;
}

fieldset {
    padding: 0.7em;
}
body.nightMode fieldset {
    border: 1px solid #5d5d5d;
}
select {
    height: 20px;
    vertical-align: top;
}
#modal-content > fieldset {
    font-size: 1.9em;
}
#siac-syn-inp {
    width: 100%;
    margin-top: 5px;
    background: transparent;
    border-radius: 3px;
    padding-left: 5px;
    font-size: 16px;
    border: 1px solid lightgrey;
    box-sizing: border-box; 
}
body.nightMode #siac-syn-inp {
    border-color: #7d7d7d;
}
#synTable tr td:first-child {
    max-width: 150px;
    word-wrap: break-word;
}
#siac-del-modal {
    position: absolute; 
    left: 0; 
    right: 0; 
    top: 0; 
    bottom: 0; 
    z-index: 7; 
    height: 100%; 
    text-align: center; 
    background: rgba(0,0,0,0.4); 
    display:flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 5px;
}

/*  tag list */
.tag-list {
    margin-left: 10px;
}
.tag-list.outer {
    margin-left: 0px;
    padding-left: 0px;
    display: block;
}
.tag-list-item {
    list-style-type: none;
    margin-left: 0px;
    padding-left: 0px;
    width: 100%;
    position: relative;
    margin-top: 8px;
    padding-top: 5px;
}
.tag-btn {
    background: var(--c-tag-background);
    color: var(--c-tag-foreground);
    padding: 2px 5px 2px 5px;
    border-radius: 2px;
    cursor: pointer;
    user-select: none;
    font-size: 12px !important;
}
.tag-add {
    position: absolute;
    right: 5px;
    top: 0px;
    cursor: pointer;
    color:#2496dc;
    font-weight: bold;
}

span.tag-symbol {
    transform: rotate(90deg);
    display: inline-block;
}

#toggleTop {
    float: right;
    font-size: 13px !important;
    cursor: pointer;
    color: grey;
    user-select: none;
    font-weight: bold;
    text-align: center;
    vertical-align: top;
    z-index: 999;
    margin-left: 12px;
}
#toggleTop:hover {
    transform: scale(1.2);
    color: #2496dc;
}
.noteFloating {
    position: absolute;
    z-index: 8;
    border-radius: 4px;
    text-align: center;
}
.noteFloatingContent {
    padding: 10px;
    min-width: 150px;
    max-width: 280px;
    max-height: 220px;
    overflow-y: auto;
    background: var(--c-card-bg);
    color: var(--c-note-foreground);
    font-size: 12;
    text-align: left;
}
body.nightMode .noteFloatingContent {
    background:  var(--c-card-bg);
    color: white;
}
.noteFloatingContent img {
    max-width: 100%;
}
.noteFloatingHeader {
    display: flex;
    flex-direction: row-reverse;
    padding: 5px 3px 5px 0;
    align-items: center;
    cursor: move;
    z-index: 110;
    background-color: var(--c-primary-color);
    color: #fff;
    user-select: none;
    font-size: 11px !important;
}
body.nightMode .noteFloatingHeader {
    background-color: var(--c-primary-color-night);
}


.flot-x-axis .flot-tick-label {
    white-space: nowrap;
    transform: translate(-9px, 0) rotate(-60deg);
    text-indent: -100%;
    transform-origin: top right;
    text-align: right !important;
}
.sa-blue-hover:hover {
    background: #2496dc !important;
    color: white;
}

.revlog-block {
    height: 16px;
    min-width: 12px;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    line-height: 15px;
    font-size: 10px;
    margin: 0 2px 0 2px;
    padding: 0 2px;
}
.revlog-block-1 {
    background: #f0506e;
}
.revlog-block-2 {
    background: black;
    color: white;
}
.revlog-block-3 {
    background:#32d296;
    color: black;
}
.revlog-block-4 {
    background: #0096dc;
    color: white;
}
.rev-lbl {
    display: inline-block;
    min-width: 35px;
    text-align: center;
}

.siac-tag-info-box {
    position: absolute;
    z-index: 9999;
    display: none;
    box-sizing: border-box;
    width: 600px;
    background-color: var(--c-modal-background);
    color: var(--c-modal-foreground);
    font-size: 12px;
    text-align: center;
    border: 2px solid var(--c-tag-background) !important;
    padding: 10px;
    user-select: none;
    cursor: default;
}
.siac-tag-info-box-small {
    width: 300px;
}
.siac-tag-info-box-left {
    overflow-y: auto;
    max-height: 250px;
    padding-right: 5px;
    margin-top: 5px;
    text-align: left;
    overflow-x: hidden;
    cursor: auto;
}
.siac-tag-info-box-left .siac-inner-card {
    user-select: text;
}
.siac-tag-info-box-left .editLbl, #siac-left-tab-browse .editLbl, #cal-info .editLbl {
    border-right: 2px solid var(--c-note-border);
    border-radius: 4px;
}

.siac-tag-info-box .flot-y-axis {
    left: -15px !important;
}
#siac-pagination {
    position: relative;
    font-size: 13px !important;
    padding: 10px;
    white-space: nowrap;
    overflow: hidden;
    vertical-align: bottom;
}
#siac-pagination-wrapper {
    text-align: left;
    display: inline-block;
    margin-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    vertical-align: bottom;
}
#siac-pagination-status {
    margin-right: 12px;
    display: inline-block;
    user-select: none;
    min-width: 160px;
    white-space: nowrap;
}
.siac-pg-icn {
    cursor: pointer;
    margin-left: 3px;
    margin-right: 3px;
    display: inline-block;
    width: 12px;
    text-align: center;
    user-select: none;
}
.siac-pg-icn-active {
    font-weight: bold;
}
.siac-pg-icn:hover {
    transform: scale(1.2);
    color: #2496dc;
}
#siac-cache-displ {
    float: right;
}
#siac-cache-displ > span {
    margin-right: 5px;
    user-select: none;
    cursor: pointer;
}
#siac-cache-displ > span:hover {
    transform: scale(1.2);
    color: #2496dc;
}
.siac-model-name {
    font-weight: bold;
    margin: 5px;
}
.siac-model-table {
    margin-left: 15px;
    width: calc(100% - 15px);
}
#searchMaskCol {
    white-space: nowrap;
    overflow: hidden;
}
#siac-search-modal {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    z-index: 110;
}
#siac-search-modal-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    width: 250px;
    height: 80px;
    padding: 15px;
    border-radius: 5px;
    background: rgba(0,0,0,0.2);
}
#siac-search-modal-inp {
    width: 100%;
    padding-left: 4px;
    margin-bottom: 6px;
    color: var(--c-input-foreground);
    background: var(--c-input-background);
    border-color: var(--c-input-border);
    box-sizing: border-box;
}
#siac-search-modal-close {
    cursor: pointer;
    font-weight: bold;
    color: var(--c-button-color);
}
#siac-search-modal-header {
    color: white;
    width: 100%;
    text-align: center;
    margin-bottom: 4px;
}
#siac-pdf-tooltip {
    max-width: var(--pdf-tooltip-max-width);
}
#siac-pdf-tooltip-results-area {
    max-height: var(--pdf-tooltip-max-height);
}

hr.siac-modal-sep {
    border-color: var(--c-modal-border);
}
.siac-prog-sq-filled, .siac-prog-sq {
    vertical-align: bottom;
    display: inline-block;
    margin: 0 1px 0 1px;
    height: 13px;
    width: 11px;
    border-radius: 3px;
}
.siac-prog-sq-filled {
    height: 15px;
    width: 13px;
    background-color: var(--c-primary-color);
}
.siac-prog-sq {
    border: 1px solid #a7a7a7;
}
body.nightMode .siac-prog-sq {
    border: 1px solid #6d6d6d;
}
.siac-prog-tmp {
    margin-left: 10px;
    white-space: nowrap;
    color: #2e6286;
    display: flex;
    align-items: center;
    font-weight: bold;
}
body.nightMode .siac-prog-tmp {
    color: white;
}
.siac-prog-tmp span {
    margin-left: 7px;
}
.siac-blue-outset {
    border: 2px outset #2496dc; 
    padding: 0 4px 0 4px; 
    border-radius: 4px;
}
.siac-feed-item {
    margin: 0 0 15px 5px;
}
.siac-ul-a {
    font-weight: bold; 
    text-decoration: none;
}
.CodeMirror-scroll {
    overflow-x: hidden !important;
}
.fa.siac-disabled {
    color: grey !important;
}
#siac-reading-modal .editor-toolbar {
    font-size: 15px !important;
}
#siac-reading-modal .editor-toolbar:after {
    margin-top: 0px !important;
}
#siac-reading-modal .editor-toolbar:before {
    margin-bottom: 0px !important;
}

summary, summary:focus {
    outline:none !important;
  }


.fname {
    position: relative;
}
.siac-fld-sel-menu {
    /* position: absolute;
    right: 0;
    top: 0; */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.siac-fld-sel-menu * {
    cursor: pointer;
    color: #2e6286;
}
body.nightMode .siac-fld-sel-menu *  {
    color: lightgrey;
}
.siac-fld-sel-menu .fa:hover {
    color: coral !important;
}
.siac-fld-sel-menu b {
    margin: 0 3px 0 5px;
    user-select: none;
    cursor: default;
}
.siac-note-divider-top {
    border-top: 1px solid #d4d4d4;
}
body.nightMode .siac-note-divider-top, #siac-reading-modal .siac-note-divider-top {
    border-top: 1px solid #4e4e4e;
}
.siac-note-divider-bottom {
    border-top: 1px solid #d4d4d4;
}
body.nightMode .siac-note-divider-bottom, #siac-reading-modal .siac-note-divider-bottom {
    border-top: 1px solid #4e4e4e;
}