/**   VARIANTS   **/ /* from js-lib/texts/variants.js */
/*~~~~~~~~~~~~~~~~*/
#variantsUI > div { padding-left: 10px; }
#variantsUI ul {
   margin:0; padding:0;
   list-style-type:none;
   max-height: 100px;
   overflow:auto;
   border:1px solid #999;
}
/* show scrollbars when collation variants expand */
#collationOpts,
#annotationOpts {
  max-height:8em;
  overflow:auto;
  padding-left:15px;
}
.variants-visible .variant_wrap {
    border-bottom: 2px solid #727EA3; /* dark pastel blue */
}
/* when variants off, hide all non-lemma readings and witness marks */
.variant.apparatus-ignore, .variant-wit {
    display: none;
}
/* show witness marks on visible readings when in expanded mode */
.variants-visible.variants-expanded .variants-visible .variant-wit {
    font-size: 50%;
    display: inline;
    padding: 0 .3em;
    white-space: nowrap;
}
/* only show readings marked as visible when in expanded mode */
.variants-visible.variants-expanded .variant {
    display: none;
}
.variants-visible.variants-expanded .variant.variants-visible {
    display: inline;
    border-radius: 6px;
    padding: 2px 4px 1px;
    margin: 0 1px;
    color: black;
}
/* but show the Ed variant when all readings are turned off in a group */
.variants-visible.variants-expanded .variants-alloff .variant {
    display: inline;
    opacity: .4;
}
.variants-visible.variants-expanded .variants-alloff .variant.apparatus-ignore {
    display: none;
}
/* extend background color down to the underline */
.apparatus-anchor .apparatus-anchor .variant.variants-visible { padding-bottom: 4px; /* 1px + 3px */ }
.apparatus-anchor .apparatus-anchor .apparatus-anchor .variant.variants-visible { padding-bottom: 7px; /* 1px + 6px */ }

/* popup content */
.variant.popup .ui-dialog-content dl {
    margin-top: 0;
}
.variant.popup .ui-dialog-content dt {
    margin: .5em 0 0 0;
    padding: 0;
    font-weight: bold;
}
.variant.popup .ui-dialog-content dt:first-child {
    margin-top: 0;
}
.variant.popup .ui-dialog-content dd {
    margin: 0 0 0 1em;
    padding: 0;
}
.variant.popup .ui-dialog-content p {
    margin: .25em 0 0 0;
    padding: 0;
}


/**   MILESTONES   **/ /* from js-lib/texts/milestones.js */
/*~~~~~~~~~~~~~~~~~~*/
#milestonesUI > div { padding-left: 10px; }
.milestone {
    -ms-user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}
.milestones-hidden .milestone {
    display: none;
}
.milestones-full .milestone.tln {
    position: static;
    visibility: visible;
    display: inline;
    vertical-align: middle;
}
.milestones-hidden.milestones-full .milestone {
    /* flow as if in sparse mode when milestones are off */
    position: absolute;
    display: none;
}
.milestones-hidden .milestone.relevantMilestone {
    visibility: visible;
    display: block;
}

/**  HIGHLIGHTING  **/ /* from js-lib/texts/highlighter.js */
/*~~~~~~~~~~~~~~~~~~*/
.highlight {
    background-color: rgb(195,206,212);
}
.highlight-pad {
    padding: .2em 0 .1em; /* make bg color fill line height */
}
.milestone.invisible.highlight {
    visibility: visible;
    display: block;
    z-index: 2;
}
.milestones-full .milestone.highlight {
    display: inline;
}

/**   ANNOTATIONS   **/ /* from js-lib/texts/showHideAnnotations.js */
/*~~~~~~~~~~~~~~~~~~~*/
/* Style for annotation anchors */
.annotations_on .noteAnchor_annotation {
	border-bottom: 2px solid #8B8; /* light green */
}
.annotations_on .noteAnchor_annotation.advancedNote {
	border-bottom-color: #484; /* dark pastel green */
}
#annotationsUI > div { padding-left: 10px; }
.popup .basicNote {
	font-size: 16px; /* use #text-body font-size */
}
.annotation .ui-widget-content > div {
    margin-top: 1em;
}
.annotation .ui-widget-content > div:first-child {
    margin-top: 0;
}
.popup.annotation ul,
.popup.annotation ol {
    margin: 0 0 0 1.5em;
    padding: 0;
}
.ui-dialog-content > .performanceNote > h4 {
    margin-top: 0;
}

/**  POPUP VARIANTS  **/ /* from js-lib/texts/popupVariants.js */
/*~~~~~~~~~~~~~~~~~~~~*/
.apparatus-anchor.annotation-popupvar {
    background-color: #eef;
    background-color: rgba(198, 206, 255, .4); /* transparent so other anchor lines can be seen through */
    border-bottom: 2px dotted #A5A540; /* dark gold */
}
.popupvar-tooltip.ui-tooltip {
    padding: 1px 5px;
    font: 16px/1.4 "Times New Roman", Georgia, serif; /* base font */
    /* style like popups */
    background: url("../../images/popupbg.png") repeat #DFD0B5;
    border: 1px solid black;
}

/**    AMBIGUITIES   **/ /* from js-lib/texts/ambiguities.js */
/*~~~~~~~~~~~~~~~~~~~~*/
.ambig.apparatus-anchor {
	position: relative;
        z-index: 0;
	border-bottom: 2px solid #ca0; /* pastel orange */
	display: inline-block; /* fixes Safari display bug */
}
.ambig.apparatus-anchor .rdg {
	position: absolute;
        left: 0;
}
.printing .ambig.apparatus-anchor .rdg {
	position: static;
	opacity: 1 !important;
}
.printing .ambig .apparatus-removed {
	display: inline; /* show "removed" parts when printing */
}
.ambig.apparatus-anchor .rdg.widest {
	position: relative;
}
.ambig-tooltip.ui-tooltip {
    padding: 1px 5px;
    font: 16px/1.4 "Times New Roman", Georgia, serif; /* base font */
    /* style like popups */
    background: url("../../images/popupbg.png") repeat #DFD0B5;
    border: 1px solid black;
}

/**   EXTENDED TEXTS   **/
/*~~~~~~~~~~~~~~~~~~~~~~*/
.added,
.added .line,
.added .iembedContainer {
    background-color:#e5e5e5;
}
span.added {
    padding: .15em 0;
}

/**   RELINEATIONS  **/
/*~~~~~~~~~~~~~~~~~~~*/
.relineate-orig, .relineation-group-end {
    display:none;
}
.relineation-ui {
    position:absolute; left:536px;
    border-left:1px dotted #aaa;
}
.relineation-ui .label {
    font-size: 12px;
    color: #666;
    position: absolute;
    top: -1.2em;
    left: 6px;
}
.relineation-ui .tabs {
    margin:0;
    padding:3px 0;
}
.relineation-ui::before {
    content:""; display:block;
    position:absolute;
    z-index:-1; /* below text */
    top: -1px;
    height:100%;
    width:510px;
    left:-510px;
    border:1px dotted #aaa;
    border-left:none;
    border-right:none;
}
/* darken borders on hovers *//*
.relineation-ui:hover, .relineation-ui:hover li, .relineation-ui:hover::before {
    border-color:black;
}
*/

.relineation-ui .tabs li {
    margin:0 0 -1px -1px; /* overlap neighbouring borders */
    padding: 1px 6px;
    list-style-type:none;
    border:1px solid #aaa;
    border-left-style: dotted;
    cursor:pointer;
    color: #777;
    margin-right:9px;
    background-color: #f5f5f5;
    position: relative;
    z-index: 1;
}
.relineation-ui .tabs li.current {
    background-color:white;
    border-color: rgb(89,24,24);
    border-right-width: 10px;
    border-left: 0;
    cursor:default;
    color: black;
    margin-right:0;
    padding-left: 7px;
    z-index: 2;
}

/**   PARALLEL PASSAGES   **/
/*~~~~~~~~~~~~~~~~~~~~~~~~*/
.parallel-wrap {
    border: 1px dotted #aaa;
    border-left:0;
}
.parallel-wrap .line {
    text-indent: -1em;
    margin-left: 1em;
}
.parallel-wrap .line.sponly {
   text-indent: 0;
   margin-left: 0;
}
.parallel-ui {
    margin:0;
    padding: 3px 0;
    position: absolute;
    z-index: 1;
    left: 537px;
}
.parallel-ui .label {
    font-size: 12px;
    color: #666;
    position: absolute;
    top: -1.2em;
    left: 6px;
}
.parallel-ui > li {
    margin: 0 0 -1px -1px;
    padding: 1px 6px;
    list-style: none;
    border: 1px solid #aaa;
    border-left-style: dotted;
    cursor: pointer;
    color: #777;
    margin-right: 9px;
    position: relative;
    z-index: 1;
    background-color: #f5f5f5;
    white-space: nowrap;
}
.parallel-ui > li.current {
    background-color: white;
    border-left: 0;
    cursor: default;
    color: black;
    margin-right: 0;
    padding-left: 7px;
    border-color: rgb(89,24,24);
    border-right-width: 10px;
    z-index: 2;
}
.parallel-base,
.parallel-alt {
    display: none;
}
.parallel-show-base > .parallel-base {
    display: block;
}
.parallel-show-alt > .parallel-alt {
    display: block;
}
.parallel-show-base > .clear,
.parallel-show-alt > .clear {
    display: none;
}
.parallel-show-both {
    width: 814px;
}
.parallel-show-both > .parallel-ui {
    left: 840px;
}
.parallel-show-both > .parallel-base,
.parallel-show-both > .parallel-alt {
    float: left;
    display: block;
    width: 380px;
}
.parallel-show-both > .parallel-base {
    border-right: 1px solid #aaa;
    padding-right: 25px;
    margin-right: -1px; /* overlap border with .parallel-alt */
}
.parallel-show-both > .parallel-alt {
    border-left: 1px solid #aaa;
    padding-left: 25px;
}
/* indent wrapped lines due to restricted width */
/*.parallel-show-both .line {
    padding-left: 20px;
    text-indent: -20px;
}
#text-body[data-is-modern] .parallel-show-both .line {
    padding-left: 40px;
}*/
.parallel-show-both .parallel-alt .milestone {
    display: none;
}

/**   ADD LABLES  **/
.added-label {
     position: absolute;
     padding: .15em .5em;
     left: 540px;
}
/** NOT-IN **/
.notinLabel {
    position: absolute;
    left: 537px;
    padding: 0 1em;
}
.notinGroup {
    border-right: 1px solid #555;
}
.notinLabel:hover,
.notinGroup:hover .notinWrap,
.notinLabel:hover + .notinGroup .notinWrap {
    background-color: #e5e5e5;
}

/**   ALL ANCHORS   **/ /* from js-lib/texts/manager.js */
/*~~~~~~~~~~~~~~~~~~~*/
.apparatus-anchor {
    border: none;
    /*border-bottom: 2px solid;*//* apply this only when feature is turned on */
    cursor:text;
}
/* space out stacked borders */
.apparatus-anchor .apparatus-anchor { padding-bottom: 3px; }
.apparatus-anchor .apparatus-anchor .apparatus-anchor { padding-bottom: 6px; }
/* note: further spacing will start overlapping next line of text! */

.apparatus-removed { display: none; }
.managerError {
    background-color: #fdd;
    border: 1px solid red;
    padding: 5px;
}

/**   ALL POPUPS   **/ /* from js-lib/popups.js */
/*~~~~~~~~~~~~~~~~~~*/
.popup blockquote {
	margin:1em 0 1em 1em; /* reduced from default */
}
.popup-subhead {
    font-size: 80%;
    text-align: right;
    padding: 3px 3px 0 0;
}

