body.serieslist.grid-view div.container-fluid > div > div.col-sm-10::before {
  display: none;
}

/* Make checkboxes orange */
input[type=checkbox] {accent-color: #cc7b19;}

.cover .badge {
  position: absolute !important;
  top: 0;
  left: 0;
  color: #fff;
  background-color: #cc7b19;
  border-radius: 100px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
  margin-left: 4px;
  margin-top: 4px;
}

/* .cover {
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
} */

.cover .read {
  line-height: 15px;
  font-size: xx-small;
  position: absolute !important;
  top: 192px;
  width: 20px;
  height: 20px;
  display: inline-block;
  padding: 2px !important;
  left: 4px;
}

@media (max-width: 767px) {
  .cover .read {
    line-height: 15px;
    font-size: xx-small;
    position: absolute !important;
    top: 193px;
    width: 20px;
    height: 20px;
    display: inline-block;
    padding: 2px !important;
    left: 1px;
  }
}

input.datepicker {color: transparent}
input.datepicker:focus {color: transparent}
input.datepicker:focus + input {color: #555}

@media only screen and (max-width: 767px) {
        .row-fluid > .col-sm-2 {
        visibility: hidden;
    }
}

/* Makes the filter buttons on the homepage occupy the title bar space until there's no more room for them */

.filterheader {
  margin-bottom: 20px;
}

/* Fallback for browsers without :has() support: use JS to add .filterheader-fixed */
.filterheader-fixed {
  position: fixed;
  top: 72px;
  right: 20px;
}

@media (min-width: 915px) {
  /* Only fix .filterheader if there is NOT a .pagination element in the same .row-fluid (for browsers with :has() support) */
  .row-fluid:not(:has(.pagination)) .filterheader {
    position: fixed;
    top: 72px;
    right: 20px;
  }
}

ul#scnd-nav {
    margin-bottom: 4rem;
}

div#Downloads {
  margin: 0;
  justify-self: center;
  margin-top: 5rem !important;
}

div#Downloads_list {
    width: 100%;
    padding-bottom: 3rem;
}

/* Prevents the character button group from showing on smaller screens */
@media (max-width: 1605px) {
    .btn-group.character.hidden-sm {
        display: none;
    }
}


@media only screen and (max-width: 445px) {
    .btn-group {
        height: 30px;
        min-width: max-content;
    }
}

.usertable .bootstrap-table.bootstrap3 {
    padding: 40px;
}
.usertable .errorlink {
    padding-left: 40px;
}

.usertable .col-xs-12.col-sm-12 {
    padding-left: 40px;
}

.usertable ul.pagination {
    top: 5.1em;
}

/* Enable mobile blur only when user setting applied */
@media (max-width: 767px) {
  body.allow-mobile-blur .blur-wrapper { display:block !important; }
}

@media only screen and (max-width: 767px) {
    /* Readmore.js fix: allow plugin to control height by removing forced min-height */
    .book-meta > .bookinfo > .comments[data-readmore],
    .book-meta > .description[data-readmore] {
        min-height: 0 !important; /* Option B */
    }
}

/* Fix table highlight on hover */
.table-hover>tbody>tr:hover {
    background-color: #7b7b7b29 !important;
}

/* move select all and clear all buttons to above the table in book list */
.columns.columns-right.btn-group.pull-right > .keep-open.btn-group {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Fixes Archive and Have Read checkboxes in book view from being uniteractable */
form#have_read_form > label.block-label::before {
    top: 19px !important;
    left: 20px;
    z-index: -1 !important;
}

form#archived_form > label.block-label::before {
    top: 14px !important;
    left: 69px;
    z-index: -1 !important;
}

/* Fixes Create Magic Shelf spacing in sidebar */
li#nav_createmagicshelf {
    margin-left: 1rem !important;
}

/* Fixes close buttons colour */
button.close > span {
    color: whitesmoke;
}

/* Fixes ill-aligned sort element in first column of book list table */
.bs-checkbox > .th-inner.sortable {
    position: relative;
    right: 8px;
    bottom: 10px;
}

.editbook-cover-section {
    padding: 4rem !important;
    margin-left: 2rem !important;
    padding-top: 4rem !important;
    max-width: none !important;
    width: 36rem !important;
}

div#GeneralChangeModal > div > div.modal-content {
    top: 200px;
    width: max-content;
    max-width: 400px;
    padding: 2rem;
    justify-self: center;
}

.modal-content > .modal-header.bg-info.text-center {
    display: none;
}

a#advanced_search > span.hidden-sm {
    margin-left: 4px;
}

.btn-primary[disabled] {
    background-color: var(--color-secondary);
}
/* Fix for disabled theme switcher tooltip text overflow */
.tooltip.cwa-tooltip-wrap .tooltip-inner {
    white-space: normal !important;
    max-width: 250px !important;
    width: auto !important;
    text-align: center;
}

.cwa-settings-tip {
    margin-top: 1rem;
    padding: 0.5rem;
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    border-radius: 0.25rem;
    margin-bottom: 2rem;
    padding-left: 2rem;
}
/* Fork mobile-sidebar fix: keep the drawer toggle (the round profile-head
   button, which IS the menu button in this theme) tappable while the drawer
   is open. The full-screen .sidebar-backdrop is a later sibling inside the
   same .navbar stacking context with z-index 9 — without a higher z-index on
   .navbar-header, the open drawer's backdrop covered the toggle and (with no
   tap-to-close on the backdrop either) every tap on the page went dead. */
@media screen and (max-width: 768px) {
    .navbar > .container-fluid > .navbar-header {
        position: relative;
        z-index: 10;
    }
}
/* Fork mobile-menu affordance: caliBlur paints a profile-head glyph over
   Bootstrap's hamburger button, so nothing on a phone reads as "menu" —
   users (including the operator) look for a hamburger and conclude the
   sidebar is gone. Repaint the same button with a standard three-bar
   hamburger; geometry, position, and tap target are unchanged, and profile
   access still lives inside the drawer the button opens. Breakpoint matches
   the theme's own mobile block (767px), where the toggle is visible. */
@media only screen and (max-width: 767px) {
    .navbar > .container-fluid > .navbar-header > button.navbar-toggle:before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cg fill='%23F5F5F5'%3E%3Crect y='3' width='22' height='2.5' rx='1.25'/%3E%3Crect y='9.75' width='22' height='2.5' rx='1.25'/%3E%3Crect y='16.5' width='22' height='2.5' rx='1.25'/%3E%3C/g%3E%3C/svg%3E");
        border-radius: 0;
    }
}
/* Fork: hamburger on the LEFT on phones. The off-canvas sidebar slides in from
   the LEFT, so the menu toggle belongs on the left to match — caliBlur floats it
   to the right (position:relative; right:50px), which reads as disconnected from
   where the drawer appears. Re-anchor the toggle to the left and reflow the brand
   to its right. On this breakpoint the home/back buttons are display:none and the
   search form is absolute at right:10px, so only the toggle + brand reserve change.
   Centre the hamburger glyph in its now left-anchored 40px button. */
@media only screen and (max-width: 767px) {
    .navbar > .container-fluid > .navbar-header > button.navbar-toggle {
        float: left;
        right: auto;
        left: auto;
        margin-left: 6px;
    }
    .navbar > .container-fluid > .navbar-header > button.navbar-toggle:before {
        left: 9px;
        right: auto;
    }
    /* Brand reserved 138px on the right for the old right-side toggle + search.
       With the toggle now on the left, reserve room for the toggle (left) +
       search (right) and let the brand text sit between them. */
    body > div.navbar.navbar-default.navbar-static-top > div > div.navbar-header > a {
        width: calc(100vw - 116px);
        padding-left: 10px;
    }
}
