body {
    font-family: "Roboto", "Lucida Grande", Verdana, Arial, sans-serif;
}

/* Make UIKit notifications smaller */
.uk-notification {
    width: 250px !important;
}

.uk-notification-message {
    padding: 10px !important;
    font-size: 0.875rem !important;
    line-height: 1.2 !important;
}

#pagecontent {
    width: 1200px;
    height: 850px;
    position: relative;
}

.pagediv {
    border:1px solid;
    text-align: center;
    background-repeat: no-repeat;
    transform: translateZ(0);
}

.pagediv.doublet {
    filter: brightness(0.5);
    transition: filter 1s;
}
.pagediv.doublet:hover {
    filter: unset;
}
.pagediv.doublet:after {
    content: "DOUBLET PAGE - DO NOT CLIP";
    color: red;
    font-size: xx-large;
    background: white;
    padding: 1em 10px;
    border: 3px solid red;
    border-radius: 1em;
    position: relative;
    display: inline-block;
    top: 300px;
    transition: opacity 1s;
}
.pagediv.doublet:hover:after {
    opacity: 0;
}

#doublets-button-group {
    visibility: unset;
    transition: visibility 1s 1s;
}
#doublets-button-group.hidden {
    visibility: hidden;
}

.pagediv.blank {
    filter: brightness(0.5);
    transition: filter 1s;
}
.pagediv.blank:hover {
    filter: unset;
}
.pagediv.blank:after {
    // content: "BLANK PAGE \A nothing to clip";
    // white-space: pre-wrap;
    // text-align: center;
    content: "BLANK PAGE - nothing to clip";
    color: red;
    font-size: xx-large;
    background: white;
    padding: 1em 10px;
    border: 3px solid lightblue;
    border-radius: 1em;
    position: relative;
    display: inline-block;
    top: 300px;
    transition: opacity 1s;
}
.pagediv.blank:hover:after {
    opacity: 0;
}

#evenpage {
    width: 600px;
    height: 850px;
    background-position: right top;
}
#oddpage {
    position: relative;
    top: -852px;
    left: 600px;
    width: 600px;
    height: 850px;
}

#coord-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
}

.sidebar {
    text-align: right;
    width: 400px;
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    background-color: lightgray;
    padding: 10px;
    border-bottom-left-radius: 10px;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
}
.tips {
    text-align: left;
    width: 400px;
    position: fixed;
    z-index: 100;
    bottom: 0;
    right: 0;
    background-color: darkseagreen;
    padding: 10px;
    border-top-left-radius: 10px;
}
/*.edit-menu {*/
/*    text-align: left;*/
/*    width: 150px;*/
/*    position: fixed;*/
/*    top: 0;*/
/*    z-index: 3;*/
/*    right: 35px;*/
/*    background-color: lightgray;*/
/*    padding: 10px;*/
/*    border-bottom-left-radius: 10px;*/
/*    border-bottom-right-radius: 10px;*/
/*}*/

.open-close-top-left {
    text-align: left;
    float: left;
    background-color: gray;
    border-radius : 5px;
    padding: 2px;
    cursor: pointer;
}
.open-close-right_open {
    right: 0;
}
.open-close-right_close {
    right: -385px;
}
.open-close-transform {
    transition: all 0.5s ease;
}
.open-close-top-right {
    text-align: right;
    float: right;
    background-color: gray;
    border-radius : 5px;
    padding: 2px;
}
.open-close-left_open {
    left: 0;
}
.open-close-left_close {
    left: -385px;
}

#reset_left_blocks_container{
    position: absolute;
    top: 855px;
    left: 50%;
    transform: translateX(calc(-50% - 500px));
    z-index: 100;
}
#reset_right_blocks_container{
    position: absolute;
    top: 855px;
    left: 50%;
    transform: translateX(calc(-50% + 500px));
    z-index: 100;
}

#pageselect_container {
    position: absolute;
    top: 855px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
}

#viewpages_container {
    position: absolute;
    top: 855px;
    left: 50%;
    transform: translateX(calc(50% + 40px));
    z-index: 100;
}

#input, #fileupload {
    width: 100%;
}

#log {
    width: 100%;
    height: 200px;
}

.pagemessage {
    padding: 5px;
}

.lightbox-wrapper {
    position: absolute;
    width: 100vw;
    left: 0;
    top: 0;
    background-color: gray;
    display: none;
    z-index: 2;
}

.lightbox {
    width: 70%;
    height: 70%;
    background-color: lightgray;
    margin-left: auto;
    margin-right: auto;
    padding: 50px;
}
.lightbox-header {
    text-align: center;
    position: absolute;
    top: -10px;
}

.lightbox code {
    white-space: pre-wrap;
}

#artpreview {
    padding: 15px 15px 20px 90px;
    background: linear-gradient(to right, #999999 70px, white 70px);
    opacity: 1;
    overflow-y: auto;
    height: 75vh;
    max-height: calc(90vh - 8em);
    position: relative;
    box-sizing: border-box;
}

/* All direct children need position:relative so ::before (position:absolute) anchors to them */
#artpreview > * {
    position: relative;

}

#articlexml {
    width: 99%;
    height: 500px;
    border: 2px solid;
}

.article-boxout {
    background-color: lightgray;
    border: 1px dotted black;
    padding: 10px;
}
.recipe {
    background-color: lightgreen;
    border: 1px dotted green;
    padding: 10px;
}
.article-full-ingredients-list {
    background-color: orange;
    border: 1px dotted darkorange;
    padding: 10px;
}

#artpreview *::before {
    position: absolute;
    left: -85px;
    color: black;
    text-indent: 0;
    width: 2em;
    padding-left: 0;
    background-color: lightblue;
    border: 1px solid darkblue;
    border-radius: 15px;
    text-align: center;
    font-size: 14px;
}

div.article-in-image>.annotation::before {
    content: attr(href);
    position: absolute !important;
    left: 0 !important;
    color: black !important;
    text-indent: 0 !important;
    width: auto !important;
    padding: 2px !important;
    background-color: white !important;
    border: 0 solid darkblue !important;
    border-radius: 0 !important;
    text-align: left !important;
    font-size: 14px !important;
}

#artpreview .article-boxout *::before, #artpreview .recipe *::before  {
    left: -90px !important;
}

.article-full-ingredients::before {
    content: "ILI";
}

.article-full-step-list {
    background-color: greenyellow;
    border: 1px dotted seagreen;
    padding: 10px;
}
.article-full-step::before {
    content: "SLI";
}

.article-full-tips::before {
    content: "TI";
}


.article-in-image {
    background-color: antiquewhite;
}

.ds-selected {
    outline: 3px solid black;
    outline-offset: 3px;
    color: black;
    font-weight: bold;
}

.art-selected {
    outline: 1px solid gray;
    outline-offset: 1px;
    background-color: rgba(62,152,255,0.6)
}

/*.but-backdrop {*/
/*    padding: 5px;*/
/*    border-radius: 3px;*/
/*    border: 1px solid gray;*/
/*    margin: 2px;*/
/*    user-select: none;*/
/*}*/
.active {
    background-color: lawngreen;
}
button[disabled] {
    color: #666;
}
.edit-menu {
    color: black;
}

.edit-menu {
    position: sticky;
    top: 0;
    overflow-y: auto;
    height: 80vh;
}


.uk-modal-dialog {
    background-color: #999999 !important;
    border: 2px solid black;
    max-height: 90vh !important;
}

/* White background for delete confirmation modal */
#delete-all-confirmation-modal .uk-modal-dialog {
    background-color: #ffffff !important;
}

/* Make the modal grid container fill available height */
#lightbox-wrapper .uk-modal-dialog.uk-grid {
    align-content: flex-start;
}

/* The content row (containing artpreview and sidebar) should grow to fill space */
#lightbox-wrapper .uk-modal-dialog > .uk-width-4-5,
#lightbox-wrapper .uk-modal-dialog > .uk-width-expand {
    align-self: stretch;
}

/* Reduce left gutter on artpreview column — markers are now inside #artpreview's padding */
#lightbox-wrapper .uk-modal-dialog > .uk-width-4-5 {
    padding-left: 10px;
}

.uk-sort-handle {
    cursor: move;
}

.page-meta {
    color: black;
    text-align: left;
}
.article-list-item {
}
.del-art-button {
    float: right;
    cursor: pointer;
}
.nodisplay {
    display: none;
}

.errors {
    color: darkred;
    font-weight: bold;
    font-size: 0.7rem;
}
.warnings {
    color: slateblue;
    font-weight: bold;
    font-size: 0.7rem;
}

.article-standfirst::before {
    content: "O";
}


.article-full-headline::before {
    content: "H";
}


.article-full-subhead::before {
    content: "FS";
}

.article-full-lead::before {
    content: "L";
}

.article-full-byline::before {
    content: "FB";
}

.article-full-body::before {
    content: "P";
}

.article-subhead::before {
    content: "S";
}

.article-subsubhead::before {
    content: "SS";
}

.article-byline::before {
    content: "B";
}

.articleImageCaption::before {
    content: "CA";
    font-size: 10px !important;
}

.articleImageCredit::before {
    content: "CR";
    font-size: 10px !important;
}

.article-pullquote::before {
    content: "PQ";
}

.article-pull-quote::before {
    content: "PQ";
}

.article-pull-quote-credit::before {
    content: "PQC";
}

.article-callout::before {
    content: "CO";
}

.author.photo::before {
    content: "Author";
}

.bild::before {
    content: "Bild";
}

.infographic::before {
    content: "Infographic";
}

.photo:not(.author)::before {
    content: "Photo";
}

.qr::before {
    content: "QR";
}
.icon::before {
    content: "Icon";
}

.article-in-image::before{
    width: auto !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
}

.article-block-quote::before {
    content: "BQ";
}

.copy-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    width: 35px;
    font-size: 1.4rem;
    line-height: 1;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    cursor: copy; /* Shows the 'plus' cursor */
    transition: all 0.2s ease;
    user-select: none;
}
.copy-item:hover {
    border-color: #1e87f0;
    color: #1e87f0;
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

thead tr th {
    border: 2px solid black;
}
thead::before {
    content: "TH";
}

tbody tr td {
    border: 1px dotted black;
}
tbody::before {
    content: "TB";
}

tfoot tr td{
    border: 1px solid gray;
}
tfoot::before {
    content: "TF";
}

.annotation {
    text-decoration: underline;
    border: 1px dotted #1e87f0;
}

.icd {
    /*text-decoration: underline;*/
    border: 1px dotted #ff0000;
}

.annotation img {
	text-decoration: underline;
	border: 5px dotted #1e87f0 !important;

}

.body-wrap, .article-full-body {
    white-space: pre-wrap !important;
}

/* Delete confirmation modal checkbox styles */
#delete-all-confirmation-modal .article-delete-checkbox {
    width: 18px;
    height: 18px;
}

#delete-all-confirmation-modal input[type="checkbox"]:indeterminate {
    opacity: 0.6;
}

/* Delete confirmation modal structure */
#delete-all-confirmation-modal .page-group {
    margin-bottom: 15px;
}

#delete-all-confirmation-modal .page-header {
    background-color: #e0e0e0;
    padding: 8px;
    border-radius: 3px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    font-weight: bold;
}

#delete-all-confirmation-modal .page-header input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

#delete-all-confirmation-modal .page-header label {
    cursor: pointer;
    user-select: none;
}

#delete-all-confirmation-modal .page-articles {
    padding-left: 20px;
}

#delete-all-confirmation-modal .article-item {
    padding: 5px 0;
    display: flex;
    align-items: center;
}

#delete-all-confirmation-modal .article-item input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

#delete-all-confirmation-modal .article-item label {
    cursor: pointer;
    user-select: none;
    flex: 1;
}

/* Pending article creation states */
.coordblock.is-pending {
  position: relative;
  opacity: 0.6 !important;
  filter: grayscale(50%);
  pointer-events: none !important;
}

.operation-loading-overlay {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 1000;
  pointer-events: none;
}

/* Article blocks with assigned article */
.coordblock.has-article {
  border-color: hsl(var(--article-hue), 100%, 50%);
  background-color: hsla(var(--article-hue), 100%, 50%, 0.5);
  pointer-events: auto;
}

.block-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  padding: 5px;
  font-size: 20px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
