/* ----- General CSS ----- */

@media print {
  body * {
    visibility: hidden;
  }
  #section-to-print, #section-to-print * {
    visibility: visible;
  }
  #section-to-print {
    position: absolute;
    left: 0;
    top: 0;
  }
}

/* --- Hide Ecode-Controlpanel Nav --- */
body.template-ecode-controlpanel .portletSiteSetup {
  display: none;
}

body {
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  font-size: 12px
}

body:not(.plone-toolbar-left) #content-header {
  position: fixed;
  z-index: 4;
  height: 5em;
  box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.34);
  width: 100%;
}

.userrole-anonymous #portal-searchbox {
  display: none;
}

.plone-modal-dialog {
  width: 50vw !important
}

#searchGadget_form {
  overflow: hidden !important;
}

.plone-modal-body #login-form {
  margin-top: 0;
}

.plone-modal-body #login-form form {
  width: 100%;
}

body:not(.template-manage-viewlets).plone-toolbar-left #content-header {
  position: fixed;
  z-index: 4;
  height: 5em;
  box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.34);
}

body:not(.template-manage-viewlets).plone-toolbar-expanded #content-header {
  width: -webkit-calc(100% - 120px);
  width:    -moz-calc(100% - 120px);
  width:         calc(100% - 120px);
}

body:not(.template-manage-viewlets).plone-toolbar-default #content-header {
  width: -webkit-calc(100% - 60px);
  width:    -moz-calc(100% - 60px);
  width:         calc(100% - 60px);
}

#portal-header::after {
  padding-right: 0.5em;
}

.debug-toolbar-trigger-button {
  background: white;
  padding: 1em;
  border-radius: 50%;
}

.transparent {
  opacity: 0.5;
}

.no-scroll {
  overflow-y: hidden;
}

.no-margin {
  margin: 0 !important;
}

.max-width {
  width: 100% !important;
}

.back-btn {
  color: var(--text-color);
}

.back-btn:hover,
.back-btn:focus {
  color: var(--text-color);
  text-decoration: none;
  outline: none;
}
.back-btn:hover mwc-icon {
  font-weight: 600;
}

.main-wrap {
  overflow: hidden;
  padding: 0em 1em 0em 1em;
  margin-top: 5em;
}

.main-wrap > .row:not(#main-container) {
  position: absolute;
  z-index: 2;
}

#content {
  margin-top: 0.5em;
  position: relative;
}

#portal-searchbox [type="text"] {
  height: 36px;
}

#portal-searchbox .searchSection {
  display: none !important;
}

#portal-anontools {
  float: right;
  padding-top: 25px;
  min-width: 90px;
}

.template-folder_contents #main-container > * {
  min-height: 25em;
}

.pat-structure .btn-group {
  width: 35em;
}

.pat-structure .popover {
  overflow: auto;
  height: 25em;
}

a:hover {
  text-decoration: none !important;
}

.plone-toolbar-logo img {
  width: 24px;
}

#plone-document-byline {
  display: none;
}

#portal-footer-wrapper {
  padding: 0 !important;
}

#footer-wrapper {
  border-top: 2px solid lightgrey;
  z-index: 3;
}

.footer-viewlets {
  display: flex;
  position: relative;
  padding: 30px;
}

#portal-siteactions {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  bottom: 0;
  margin-bottom: 0px;
  z-index: 3;
  background-color: #fafafa;
  width: 100%;
  align-self: center;
}

#portal-siteactions li {
  padding: 1em;
  margin: 0 !important;
}

#portal-siteactions a {
  color: #6a6a6a;
  font-size: 1.5rem;
  font-weight: 400;
}

#portal-siteactions a:hover {
  font-weight: 600;
}

/* ----- Utility ----- */

.higher {
  z-index: 2;
}

.lower {
  z-index: 1;
}

.hidden {
  display: none;
}

.drag-right {
  margin-left: auto;
}

.drag-left {
  margin-right: auto;
}

/* ----- Login CSS ------ */

#login-information {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 1em;
  min-height: 50vh;
}

.plone-modal-wrapper #login-information {
  display: none !important;
}

.information-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 50%;
  border: 1px solid var(--inverse-primary-dark);
  border-radius: 20px;
  padding: 3em;
  margin: 1em;
  min-height: 33vh;
}

.information-container p {
    font-size: 1.5em;
    text-align: center;
}

.bund-btn span {
  padding: 1em;
}

#login-form {
  margin-top: 5em;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#download-codes-login-title #login-form {
  margin-top: 0em;
}

#login-form.render-info {
  display: none !important;
}

.plone-modal-wrapper #login-form.render-info {
  display: flex !important;
}

#login-form form {
  width: 25%;
}

/* ----- Language CSS ----- */

#language-select {
  display: flex;
  z-index: 4;
  font-weight: 100;
  position: relative;
}

#language-select.active .language-buttons {
  display: flex;
}

.region-button {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.region-button mwc-icon,
.region-button mwc-icon:focus {
  color: var(--text-color);
}

.region-button span {
  padding: 5px 5px 5px 0px;
}

.region-button strong {
  font-size: 2rem;
}

.language-buttons {
  display: none;
  align-items: center;
  margin-top: 2px;
  position: absolute;
  top: 50px;
  right: -33%;
  background: var(--color-primary);
  box-shadow: 3px 3px 5px 0px rgb(0 0 0 / 34%);
  border-radius: 0 0 5px 5px;
}

/* .language-buttons::before {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 10px;
  background: #fafafa;
}

.language-buttons::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 10px;
  background: #fafafa;
} */

.language-buttons a {
  padding: 8px;
  border-right: 1px solid;
  color: var(--text-color);
  font-size: 1.5rem;
}

.language-buttons a:hover,
.language-buttons a:focus {
  color: var(--text-color);
  font-weight: 600;
}

.language-buttons a:last-child {
  border-right: none;
}

/* ----- Cookie Consent CSS ----- */

.cc-revoke, .cc-window {
  z-index: 19 !important;
}

.cc-banner .cc-message {
  display: flex !important;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  max-width: 100%;
  margin-right: 1em;
  justify-content: center;
  align-items: center;
}

.cc-btn {
  background-color: var(--color-primary) !important;
  color: var(--text-color) !important;
}

.cc-link {
  color: black !important;
}

.cc-window {
  height: 110px;
}

/* ----- Material Design CSS ----- */

mwc-button {
  --mdc-typography-button-text-transform: none;
}
mwc-button,
mwc-icon {
  display: none;
}
mwc-button.inverted {
  --mdc-theme-primary: var(--text-color);
  --mdc-theme-on-primary: var(--color-primary);
}
mwc-button.inverted .mwc-text {
  color: var(--color-primary);
}
mwc-button.inverted mwc-icon {
  color: var(--color-primary);
}

:root {
  --mdc-theme-primary: var(--color-primary);
  --mdc-theme-secondary: var(--color-primary-light);
  --mdc-icon-size: 24px;
  --mdc-typography-font-family: 'Roboto';
  --mdc-typography-button-font-size: 12px;
  --mdc-button-horizontal-padding: 0;
}

#portal-header mwc-button {
  margin: 0em 0.3em 0em 0.3em;
}

#bookview mwc-button,
#lib-table mwc-button,
.mwc-text {
  height: 100%;
  padding: 0.3em;
  padding-top: 0.4em;
  min-width: 10em;
  display: flex;
  justify-content: center;
  color: var(--text-color);
  --mdc-ripple-color: #fff;
  --mdc-ripple-focus-opacity: 0;
  --mdc-ripple-hover-opacity: 0.08;
}
.mwc-text:hover,
.mwc-text:focus {
  color: var(--text-color);
}

.settings-container mwc-button {
  min-width: auto !important;
}

mwc-icon {
  margin: 0.2em;
  color: var(--text-color);
}

/* ----- Header CSS ----- */

.container > #portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0 !important;
  height: 5em;
}

#portal-logo {
  border-radius: 50%;
  background: white;
}

#portal-logo img {
  padding: 0.5em;
  max-height: 65px;
}

.logo-full {
  display: block;
}

.logo-mobile {
  display: none;
}

.beta-icon {
  width: 100px;
  padding: 0.5em;
}

.ecode-navbar-toggle {
  display: none !important;
}

#portal-globalnav-wrapper {
  width: 100%;
  background-color: transparent !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  margin: 0;
  height: 100%;
}

#portal-globalnav-wrapper .container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
}

.plone-navbar-header {
  align-self: center;
}

.plone-navbar-toggle:before {
  content: "☰";
}

#portal-searchbox {
  margin: 0 !important;
  padding: 0 !important;
}

.search-button-wrapper {
  display: none;
}

.LSBox {
  padding: 0;
  display: flex;
  justify-content: flex-end;
}

#portal-globalnav {
  height: 100%;
}

#portal-anontools li:hover a,
.plone-nav li a:hover, 
.plone-nav li a:focus,
.plone-navbar-nav .current > a, 
.plone-navbar-nav .selected > a, 
.plone-navbar-nav .current > a:hover, 
.plone-navbar-nav .selected > a:hover, 
.plone-navbar-nav .current > a:focus, 
.plone-navbar-nav .selected > a:focus {
  background-color: unset !important;
}

.plone-nav li a,
.dashboard-link a,
.dashboard-link a:hover, 
.dashboard-link a:focus, 
.dashboard-link a:active {
  color: var(--inverse-text) !important;
}

.index_html.ignorePath a {
  border: none !important;
}

.index_html.ignorePath a:hover,
.index_html.ignorePath a:focus,
.index_html.ignorePath a:active {
  border-top: 5px solid transparent !important;
  border-bottom: 5px solid var(--inverse-text) !important;
}

#portal-anontools li,
.plone-navbar-nav li {
  height: 100%;
  display: flex !important;
  align-items: center;
  margin: 0 !important;
  background-color: var(--inverse-primary);
}

#portal-globalnav a,
#portal-anontools a {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
}

#portal-anontools a:hover,
#portal-anontools a:focus,
.plone-navbar-nav .current a,
.plone-navbar-nav .selected a,
.plone-navbar-nav a:hover,
.plone-navbar-nav a:focus {
  border-top: 5px solid transparent;
  border-bottom: 5px solid var(--inverse-text);
}

#portal-anontools {
  padding: 0 !important;
  height: 100%;
}

#portal-anontools ul {
  margin: 0 !important;
  padding: 0 !important;
  height: 100%;
}

#portal-footer-wrapper {
  display: none;
}

#personaltools-login {
  color: var(--inverse-text);
  font-size: 17px;
  hyphens: none;
  text-decoration: none !important;
  padding-right: 15px;
  padding-left: 15px;
}


/* ----- Membertools CSS ----- */

#portal-membertools-wrapper {
  float: none !important;
  display: flex;
  z-index: 4;
  margin-top: 5px;
  width: 100%;
  max-width: 4em;
  transition: 0s all;
  margin: 0 !important;
  padding: 0 !important;
}

#portal-membertools-wrapper.active {
  max-width: 25vw;
  transition: 1s all;
}

#membertools-toggle.active {
  display: none !important;
}

#membertools-toggle span {
  align-self: center;
}

#membertools-toggle.active span {
  display: unset;
  visibility: visible;
}

#membertools-list {
  display: none;
  background-color: var(--text-color);
  color: var(--text-dark);
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  max-width: 1vw;
  border-left: 2px solid lightgrey;
  transition: 2s all;
}

#membertools-list.active {
  display: unset;
  max-width: 25vw;
}

#membertools-list a:hover,
#membertools-list a:focus {
  font-weight: 600;
}

#portal-membertools {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.membertools-top {
  height: 5.4em;
  background: var(--color-primary);
  display: flex;
  align-items: center;
}

.membertools-top a {
  color: var(--text-color);
  font-size: 1.5rem;
}

.membertools-top a:hover,
.membertools-top a:focus {
  color: var(--text-color);
}

#membertools-close {
  padding: 0em 1em 0 1em;
}

.membertools-bottom {
  padding: 2em 1em 0 0em;
  height: 100%;
}

#portal-membertools-wrapper ul {
  list-style: none;
  font-size: 2rem;
  font-weight: 400;
}

#portal-membertools-wrapper li {
  padding-bottom: 1em;
}

/* ----- Front Page CSS ----- */

/* .template-frontpage .sidebar-offcanvas {
  display: block;
}

.template-frontpage .sidebar-offcanvas {
    max-width: 50%;
    display: flex;
} */

#front-page {
  margin: 3em 2em 0 2em;
}

.front-page-content {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1em;
}

.front-title {
  margin-left: 0.3em;
  font-size: 5rem;
  color: #6d6d6d;
  font-weight: 100;
}

.video-container {
  display: flex;
  padding: 1em;
}

#front-page-video {
  transition: 0.2s all;
  border: 1px solid lightgrey;
  border-right: 2px solid lightgrey;
  border-radius: 10px;
  width: 100%;
  background: white;
  cursor: pointer;
}

#front-page-video:hover {
  box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.34);
}

.how-to-container {
  display: flex;
  flex-direction: column;
  padding: 1em;
}

.how-to-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1em;
  background: white;
  border: 1px solid lightgrey;
  border-radius: 10px;
  font-size: 2rem;
  color: #6d6d6d;
  height: 100%;
}

.how-to-content img {
  object-fit: contain;
}

.front-help {
  display: flex;
  align-self: flex-end;
}

.front-icon {
  width: 60px;
  align-self: baseline;
  filter: invert(39%) sepia(0%) saturate(1647%) hue-rotate(218deg) brightness(107%) contrast(90%);
}

.bookshelf-go-to {
  padding: 1em;
  background: var(--color-primary);
  box-shadow: var(--mdc-button-raised-box-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));
  border-radius: 10px;
  margin: 1em 0 1em 0;
}

.bookshelf-go-to:hover, .bookshelf-go-to:focus {
  color: var(--text-color);
  cursor: pointer;
  filter: brightness(1.1);
  text-decoration: none !important;
}

.bookshelf-go-to span {
  font-size: 4rem;
  color: var(--text-color);
}

.template-frontpage #content {
  margin: 0;
}

/* ----- ReadSpeaker CSS ----- */

.rsbtn .rs-player-loadindicator {
  left: 0 !important;
  width: 100%;
}

#readspeaker_button1 {
  display: none;
}

#readspeaker_button1.active {
  display: block;
}

.rs_addtools, .rsbtn {
  padding-bottom: 0 !important;
}

/* ----- Datepicker CSS ----- */
.date-container-input {
  color: var(--text-dark);
  width: 150px;
}

.ui-widget-header {
  background: var(--color-primary) !important;
  color: var(--text-color) !important;
}

#ui-datepicker-div {
  z-index: 4 !important;
  width: 25vw;
}

.ui-icon, .ui-widget-content .ui-icon {
  background-image: url(++resource++satzweiss.ecode/images/ui-icons_222222_256x240.png);
}
.ui-widget-header .ui-icon {
  background-image: url(++resource++satzweiss.ecode/images/ui-icons_ffffff_256x240.png);
}

.ui-state-hover, .ui-widget-content .ui-state-hover,
.ui-widget-header .ui-state-hover,
.ui-state-focus,
.ui-widget-content .ui-state-focus,
.ui-widget-header .ui-state-focus,
.ui-button:hover,
.ui-button:focus {
  border: 1px solid var(--text-color);
  color: var(--text-color) !important;
  font-weight: bold;
  background: var(--color-primary-light) !important;
}

.ui-state-highlight,
.ui-widget-content .ui-state-highlight,
.ui-widget-header .ui-state-highlight {
  border: 2px solid var(--text-dark);
  background: #f6f6f6;
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
  border: 1px solid var(--text-color);
  background: var(--color-primary);
  font-weight: bold;
  color: var(--text-color) !important;
}

.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default,
.ui-button,
html .ui-button.ui-state-disabled:hover,
html .ui-button.ui-state-disabled:active {
  color: var(--text-dark);
}

#datepicker-buttons,
#datepicker-panel {
  display: flex;
  flex-wrap: wrap;
  border: none;
}

.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current,
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-close {
  display: none;
}

.ui-datepicker .ui-datepicker-buttonpane {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

[hidden], .hidden {
  display: none !important;
}


/* ----- Dashboard CSS ----- */

#dashboard {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

.dashboard-tile {
  display: flex;
  flex-direction: column;
  padding-top: 1em;
}

.full-view-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

.full-view {
  padding-bottom: 1em;
}

.full-view .search {
  color: dimgrey;
}

#matomo-widget {
  border: 1px solid lightgrey;
  border-radius: 0px 0px 10px 10px;
  padding-bottom: 0.1em;
}

.widget-tile-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  border: 1px solid lightgrey;
  border-top: 0px solid lightgrey;
  padding: 1em;
  border-radius: 0px 0px 10px 10px;
  min-height: 180px;
}

.widget-link,
.widget-text {
  color: var(--text-color);
  font-weight: 400;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}
.widget-text {
  min-width: 150px;
}

.widget-link:hover,
.widget-link:focus,
.widget-text:hover,
.widget-text:focus {
  color: var(--text-color);
  font-weight: 600;
}

.view-title,
.widget-title,
.document-title {
  padding: 15px;
  background: var(--color-primary);
  color: var(--text-color) !important;
  border: 1px solid lightgrey;
  border-radius: 10px 10px 0px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.view-title,
.widget-title span,
.document-title {
  font-size: 2rem;
  font-weight: 400;
  display: flex;
  flex-wrap: wrap;
}

.view-title > div, .view-title > form,
.widget-title span > div, .widget-title span > form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.view-title > div > *:not(input),
.view-title > form > *:not(input) {
  padding: 0 0.5em 0 0.5em;
}

#filter-container input {
  width: 300px;
  font-size: medium;
}

.widget-content-quicklink {
  padding-top: 1em;
}

.widget-content-quicklink .widget-title-bg {
  padding: 2em;
  border-radius: 10px;
}

.widget-content-quicklink .widget-content-title {
  border-radius: 10px;
}

.widget-content-quicklink .widget-content-title span,
.widget-content-quicklink .widget-link-btn {
  top: 0.8em;
}

.widget-content-quicklink .widget-link:hover .widget-link-btn,
.widget-content-quicklink .widget-link:focus .widget-link-btn,
.widget-content-quicklink .widget-text:hover .widget-link-btn,
.widget-content-quicklink .widget-text:focus .widget-link-btn {
  top: 0.6em;
  right: 0.4em
}

.widget-content-title {
  position: relative;
  border-radius: 10px 10px 0px 0;
  border: 1px solid lightgrey;
  font-size: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  background-color: var(--color-primary-dark);
}

.widget-link-btn {
  z-index: 1;
  cursor: pointer;
}

.widget-link:hover .widget-link-btn,
.widget-link:focus .widget-link-btn,
.widget-text:hover .widget-link-btn,
.widget-text:focus .widget-link-btn {
  font-size: 2.7rem;
  top: 0.3em;
  right: 0.3em;
}

.view-content-title span,
.view-content-title label,
.widget-content-title span,
.widget-content-title label {
  z-index: 1;
  padding: 0.5em;
  font-weight: 400;
  color: var(--text-color);
}

.view-table-container,
.widget-table-container,
.uc-widget-table-container {
  padding: 0.5em;
  border: 1px solid lightgrey;
  border-radius: 0px 0px 10px 10px;
  min-height: 100px;
  display: flex;
  align-items: center;
  flex-direction: column;
  max-height: 66vh;
  overflow: auto;
}

.widget-form-container {
  padding: 0.5em;
  border: 1px solid lightgrey;
  border-radius: 0px 0px 10px 10px;
  display: flex;
  flex-direction: column;
  max-height: 66vh;
  overflow: auto;
}

.widget-form-container label {
  color: rgb(54, 54, 54);
  font-weight: 400;
  font-size: 1.5rem;
}

.listjs-title {
  width: 25%;
}
.listjs-author {
  width: 17%;
}
.listjs-isbn {
  width: 16%;
}
.listjs-ressourcenprofil{
  width: 8%;
}
.list-resources {
  width: 15%;
}
.listjs-code {
  width: 15%;
}
.full-view .listjs-used,
.full-view .listjs-usedby,
.full-view .listjs-deactivated {
  width: 9%;
}
.full-view .listjs-activate-date {
  width: 10%;
}

.check-all {
  height: 19px;
}

.widget-input-container {
  display: flex;
  font-size: 1.5rem;
  font-weight: 400;
  flex-direction: column;
  width: 50%;
}
.widget-input-header {
  font-weight: 500;
  padding: 5px !important;
  border: 1px solid lightgrey;
}
.widget-input-container ul {
  list-style: none;
  padding: 0 !important;
  width: 100%;
}
.widget-input-container li {
  display: flex;
  padding: 5px !important;
  border-width: 1px 1px 0px 1px;
  border-style: solid;
  border-color: lightgrey;
}
.widget-input-container li:nth-child(odd) {
  background: #ededed;
}
.widget-input-container li:last-child {
  border-bottom-width: 1px;
}
.widget-input-container input[type="checkbox"] {
  margin-right: 5px !important;
  min-width: 20px;
}
.widget-input-container span {
  border-left: 1px solid lightgrey;
  padding-left: 8px;
}
.widget-input-container li.active {
  outline: 2px solid var(--color-primary);
  margin-top: 2px;
}

.checkable,
#new-user-btn {
  cursor: pointer;
}
#groups-widget.widget-textarea {
  display: flex;
}
.widget-textarea {
  display: none;
  margin-bottom: 10px;
  width: 100%;
}
.widget-textarea.active {
  display: flex;
}
.widget-textarea.full {
  flex-direction: column;
}
.widget-textarea.full > div {
  width: 100%;
}

.textarea-container {
  width: 50%;
  margin: 0.5em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.textarea-container mwc-button {
  align-self: center;
}
.textarea-container textarea {
  margin-bottom: 10px;
}

#view-table,
.widget-table {
  border-collapse: collapse;
  background: transparent;
  color: #363636;
  font-size: 1.5rem;
}

#view-table th,
.widget-table th {
  border: 1px solid lightgrey;
  border-bottom: 0;
  border-top: 0;
  text-align: center;
  font-weight: 500;
  vertical-align: top !important;
  padding-top: 0.2em;
}

#view-table tbody tr:nth-child(odd),
.widget-table tbody tr:nth-child(odd) {
  background: #ededed;
}

#view-table td,
.widget-table td {
  border: 1px solid lightgrey;
  padding: 5px;
  vertical-align: inherit;
  word-break: break-word;
}

#view-table tr:first-child td,
.widget-table tr:first-child td {
  border-top: 0;
}

#view-table tr td:first-child, #view-table th:first-child,
.widget-table tr td:first-child, .widget-table th:first-child {
  border-left: 0;
}

#view-table tr:last-child td,
.widget-table tr:last-child td {
  border-bottom: 0;
  border-top: 0;
}

.widget-table tr td:last-child, .widget-table th:last-child {
  border-right: 0;
}

.checkbox-col {
  text-align: center;
  width: 30px;
  padding: 3px 0 0 0 !important;
}

#view-table tr td:last-child, #view-table th:last-child {
  border-right: 0;
  border-top: 0;
}

.settings-row {
  width: 90px;
}

#delete-popup {
  display: none !important;
  position: fixed;
  top: 10%;
  left: 15vw;
  z-index: 9;
  background: #fcfcfd;
  padding: 1em;
  flex-direction: column;
  width: 75% !important;
  overflow: auto;
  border: 1px solid darkgrey;
  border-radius: 10px;
  overflow-y: auto;
}

#delete-popup.active {
  display: flex !important;
}

#delete-popup .documentFirstHeading {
  text-align: center;
  display: grid;
}

#delete-popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#delete-table {
  border: none;
  background: transparent;
  font-size: 2rem;
  width: 50%;
  margin: 1em;
}

#delete-table td {
  border: none;
  border-bottom: 1px solid lightgrey;
  padding: 0.5em;
}

#delete-popup-content form {
  width: 100%;
}

#view-table .settings-row mwc-icon,
.widget-table .settings-row mwc-icon {
  color: var(--color-primary);
}

#view-table td:not(.settings-row) mwc-icon,
.widget-table td:not(.settings-row) mwc-icon {
  color: dimgrey;
}

#view-table td:not(.settings-row) mwc-icon.available-resource,
.widget-table td:not(.settings-row) mwc-icon.available-resource {
  color: var(--color-primary);
}

.sort-btn {
  background: transparent !important;
  border: none;
  padding: 0;
  outline: none !important;
}

.sort-btn.sort.asc, .sort-btn.sort.desc {
  background-color: var(--color-primary) !important;
  padding-top: 0.3em;
}
.sort-btn.asc mwc-icon, .sort-btn.desc mwc-icon {
  color: var(--text-color);
}

.sort-btn mwc-icon {
  color: var(--color-primary);
}

.asc-sort {
  display: none !important;
}
.sort.desc .desc-sort {
  display: unset !important;
}
.sort.asc .desc-sort {
  display: none !important;
}
.sort.desc .asc-sort {
  display: none !important;
}
.sort.asc .asc-sort {
  display: unset !important;
}

.widget-tile {
  padding: 0.5em;
}

.widget-error {
  font-size: 1.5rem;
}

.widget-tile-container form {
  width: 100%;
}

.content-title {
  font-size: 1.2em;
}

.content-container {
  display: flex;
  flex-direction: column;
  padding: 1em 0em 2em 0em;
}

.content-text {
  cursor: pointer;
}
.content-text.active {
  border: 2px solid var(--color-primary);
}

/* ----- Table CSS ----- */

.content-table {
  margin-top: 1em;
}

.content-row th,
.content-row td {
  padding: 0.5em;
}


/* ----- Library CSS ----- */

#library {
  border: none;
  background: transparent;
  display: flex;
  flex-wrap: wrap;
  margin-top: 3em;
}

.library-category-container {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.library-category-container.slick-initialized {
  display: block;
}

.library-item {
  display: flex !important;
  flex-direction: column;
  border: none;
  align-items: center;
  justify-content: space-evenly;
  height: 30em;
  margin: 1em 0 3.5em 0;
}

.slick-slide .library-item {
  align-items: center !important;
  width: 100% !important;
}

.slick-slide > div {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.library-item.in-cover{
  height: 30em;
}

.cover-image {
  transition: transform .2s;
  max-height: 100%;
  width: 100%;
}

.add-book-btn {
  background: var(--color-primary);
  border-radius: 100%;
  padding: 2em;
  width: 100px;
  height: 100px;
  box-shadow: 3px 3px 5px 0px rgb(0 0 0 / 34%);
}

.add-book-text {
  font-size: 1.5rem;
  font-weight: 400;
}

.library-item .add-book-btn:hover {
  cursor: pointer;
  transform: scale(1.1);
  transition: transform .2s;
}

.add-book-btn img{
  box-shadow: 0 0 black;
  width: 100%;
  filter: var(--text-filter);
}

.cover-container .cover-image {
  transform: scale(1.0);
  transition: transform .2s;
  box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.34);
  width: 248px;
  max-height: 352px;
}

.cover-container a {
  position: relative;
}

#library-magazine {
  margin-top: 4em;
}

.library-news-container {
  display: flex;
  flex-wrap: wrap;
}

.magazine-desc {
  min-height: 2em;
  font-size: 1.5rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.magazine-desc span {
  padding: 0.2em;
}

.dimmed {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  height: 100%;
  width: 100%;
  background: dimgray;
  opacity: 0.3;
  display: none;
}

.archived .dimmed {
  display: block;
}

.banderole-container {
  overflow: hidden;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
}

.archived .banderole {
  display: block;
  background: var(--color-primary-dark);
}

.banderole {
  position: absolute;
  z-index: 1;
  display: none;
  font-size: 1.5rem;
  width: 150px;
  text-align: center;
  padding: .25em 0;
  color: var(--text-color);
  box-shadow: 0px 1px 10px 2px rgb(0 0 0 / 34%);
}

.bd-top-right {
  top: 25px;
  right: -35px;
  transform: rotate(45deg);
}

.bd-bottom-right {
  bottom: 25px;
  right: -35px;
  transform: rotate(-45deg);
}

.bd-top-left {
  top: 25px;
  left: -35px;
  transform: rotate(-45deg);
}

.bd-bottom-left {
  bottom: 25px;
  left: -35px;
  transform: rotate(45deg);
}

.cover-container:hover .cover-image {
  cursor: pointer;
  box-shadow: 7px 7px 6px 0px rgba(0,0,0,0.44);
  transition: transform .2s;
}

.cover-container:hover .admin-container,
.in-cover .cover-container:hover .btn-container {
  display: flex;
  visibility: visible;
  animation: fadein 2s;
}

.in-cover .cover-container {
  display: unset;
  position: relative;
  height: auto;
}

.cover-container {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-direction: column;
  height: 100%;
  padding-bottom: 1em;
}

.view-container {
  display: flex;
  width: 100%;
  justify-content: space-around;
}

.ui-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  height: 0 !important;
  width: 100% !important;
  top: 0 !important;
}
.ui-draggable-handle {
  display: none;
}

#qr-code-popup, #acs-epub-popup, #acs-pdf-popup {
  display: none !important;
  position: fixed;
  top: 5%;
  left: 15vw;
  z-index: 9;
  background: #eee;
  padding: 1em;
  flex-direction: column;
  overflow: auto;
  border: 1px solid darkgrey;
  border-radius: 10px;
  overflow-y: auto;
}

#qr-code-popup {
  width: 75% !important;
  height: 90% !important;
}

#acs-epub-popup.active, #acs-pdf-popup.active {
  width: 35% !important;
  height: 45% !important;
}

#qr-code-popup.active, #acs-epub-popup.active, #acs-pdf-popup.active {
  display: flex !important;
}

.qr-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.qr-text {
  padding: 1em;
}

.qr-code-cancel, .acs-epub-cancel, .acs-pdf-cancel, .acs-download {
  outline: none !important;
  width: min-content;
  align-self: flex-end;
  margin-bottom: 1em;
}

.acs-download {
  border: 1px solid transparent;
}

.qr-code-img {
  width: min-content;
  align-self: center;
  padding: 2em;
  max-width: 75%;
}

.cancel-icon {
  width: 25px;
}

.ui-dialog-titlebar-close {
  display: none;
}

.admin-container {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  top: 0;
  right: 0;
}

.admin-container, .in-cover .btn-container {
  display: none;
  visibility: hidden;
}

.in-cover .btn-container {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 0;
  width: auto;
  padding: 0;
}

.btn-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  box-shadow: 3px 3px 5px 0px rgb(0 0 0 / 34%);
  border-radius: 5px;
  background: var(--color-primary);
  width: 100%;
  padding: 0 0.1em 0 0.1em;
  margin-top: 1em;
  flex-direction: column;
}

.btn-container a {
  color: var(--text-color);
  cursor: pointer;
  transition: 0.1s all;
  text-decoration: none !important;
  outline: none !important;
}

.btn-container a:hover,
.btn-container a:hover mwc-icon {
  color: var(--text-color);
  transform: scale(1.1);
}

.btn-container a:focus,
.btn-container a:focus mwc-icon {
  color: var(--text-color);
  transform: scale(1.1);
}

.lib-btn:hover, .list-btn:hover {
  background: lightgray;
  color:black;
}

#order-button {
  display: flex;
  justify-content: center;
  padding-top: 5em;
}

#order-button a {
  box-shadow: 5px 5px 5px #888888;
  text-transform: uppercase;
  border-radius: 20px;
  background: none repeat scroll 0 0 #E6EFC2;
  border-color: #C6D880;
  color: #264409;
  border: 2px solid #DDDDDD;
  margin-bottom: 0.7em;
  padding: 0.5em;
}

/* ----- Magazine CSS ----- */

.library-news-row,
.library-category-row {
  display: flex;
  flex-direction: column;
}

.library-news-title,
.library-category-title {
    font-size: 1.7em;
    margin-bottom: 2em;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.library-news-title > *,
.library-category-title > * {
  padding: 5px;
}

.library-news-title span,
.library-category-title span {
  color: var(--text-dark);
}

.library-category-title span:hover {
  text-decoration: underline !important;
}

.view-button-container,
.view-button-container > * {
  padding: 5px;
}

.view-button {
  background: var(--color-primary);
  border-radius: 50%;
  color: var(--text-color);
}

/* ----- EPUB CSS ----- */

#reader-main {
  display: flex;
  flex-direction: column;
  padding-top: 5em;
}

.portaltype-epubresource .main-wrap {
  margin-top: -1.4em;
}

#render-container {
  padding: 0 2em 0 2em;
  display: flex;
  min-height: 100vh;
  position: relative;
}

#render-zone {
  padding: 5em 20% 2em 20%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#epub-nav {
  display: flex;
  align-items: center;
  background: #e6e4e4;
  justify-content: space-evenly;
  box-shadow: 3px 3px 5px 0px rgb(0 0 0 / 34%);
  min-height: 50px;
  margin-top: 13px;
  position: fixed;
  width: 100%;
  z-index: 2;
  flex-wrap: wrap;
}

#epub-toc {
  z-index: 2;
  cursor: pointer;
}

.epub-arrow.disabled {
  background: gray;
  border-color: dimgray;
}

#next.epub-arrow {
  right: 1%;
}

#prev.epub-arrow {
  left: calc(60px + 1%);
}

.epub-arrow {
  z-index: 2;
  height: 75px;
  border-radius: 50%;
  --mdc-icon-button-size: 75px;
  --mdc-icon-size: 75px;
  --mdc-ripple-hover-opacity: 0;
  color: var(--text-color);
  top: 50%;
  position: fixed;
}

.glyph-icon {
  filter: var(--text-filter);
  width: 50px !important;
  height: 50px !important;
  max-width: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ----- Codes CSS ----- */

#download-codes-login-title, #download-codes-form-title {
  width: 50vw;
  text-align: center;
  margin: 1em 0 0 0
}

#download-codes-login-title p , #download-codes-form-title {
  font-size: 16px;
}

#download-code-portlet {
  padding: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#download-codes-form {
  width: 50vw;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
}

#download-codes-form > div {
  padding: 0.2em;
  width: 240px;
  text-align: center;
  margin-bottom: 10px;
}

#download-codes-form > .buttonrow {
  padding: 0.2em;
  width: max-content;
  display: flex;
  flex-direction: row;
  border-top: 1px solid #ccc;
  margin-top: 2px;
  padding-top: 1em;
}

#codes-form {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
}

#codes-additional-info,
#download-code-portlet #createcodes {
  display: none;
}

#codes-additional-info.active,
#download-code-portlet #createcodes.active {
  display: block;
}

.new-codes-view {
  margin-top: 30px;
}

.codes-subtitle {
  font-size: 21px;
  font-weight: 400;
}

.codes-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  height: 400px;
}

.codes-container > * {
  padding: 0.2em;
}

.codes-container .buttonrow {
  position: absolute;
  bottom: 0;
  padding: 0.2em;
}

#all-codes > h2 {
  padding-top: 0.2em;
}

#codelist {
  resize: none;
}

#amount-codes {
  display: flex;
  flex-direction: column;
  padding-right: 5em;
}

.codes-text {
  overflow-y: auto;
  background: white;
  border: 1px solid lightgray;
  padding: 0.5em;
  border-radius: 5px;
  height: 125px;
}
.codes-bigger {
  height: 245px;
}

.codes-text > span {
  padding-right: 0.3em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.codes-text > span:not(:last-child)::after {
  content: ",";
}

/* ----- Upload File CSS ----- */

button.drmbutton {
  box-shadow: 5px 5px 5px #888888;
  font-size: 1.3em;
  text-transform: uppercase;
  border-radius: 20px;
}

.buttonrow button:focus {
  border: 2px solid #DDDDDD;
  background: none repeat scroll 0 0 #eee;
  outline: none !important;
  box-shadow: none !important;
}

.buttonrow button {
  padding: 0;
  border: 0;
}

.drmbutton.success {
  box-shadow: 5px 5px 5px #888888;
  text-transform: uppercase; 
  border-radius: 20px; 
  background: none repeat scroll 0 0 #E6EFC2; 
  border-color: #C6D880; 
  color: #264409; 
  border: 2px solid #DDDDDD; 
  margin-bottom: 0.7em; 
  padding: 0.5em;
}
.drmbutton.error {
  box-shadow: 5px 5px 5px #888888;
  text-transform: uppercase; 
  border-radius: 20px; 
  background: none repeat scroll 0 0 #fbe3e4; 
  border-color: #fbc2c4; 
  color: #8a1f11; 
  border: 2px solid #DDDDDD; 
  margin-bottom: 0.7em; 
  padding: 0.5em;
}

.drmbutton:hover {
  color: #4d4d4d;
  background-color: #ccc;
  border-color: #939393;
  box-shadow: none;
}

.success {
  background: none repeat scroll 0 0 #E6EFC2;
  border-color: #C6D880;
  color: #264409;
}

.error, .alert, .notice, .success, .info {
  border: 2px solid #DDDDDD;
  margin-bottom: 1em;
  padding: 0.8em;
}

.accordion {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
  transition: 0.4s;
}

#upload01Form .active, .accordion:hover {
  background-color: #ccc; 
}

#upload01 {
  margin-top: 2em;
}
#upload01Form {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.upload-form-wrapper {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.upload-form-container {
  width: 50%;
}
.upload-formats {
  display: flex;
  flex-direction: column;
}
.upload-formats label {
  width: fit-content;
}

.acsinputfield {
  width: 50%;
  padding: 1em;
}
.upload-form-container .acsinputfield {
  width: 100%;
}

.acs-select-field {
  height: 15em !important;
  width: 100%;
}

.panel {
  padding: 0 18px;
  background-color: var(--text-color);
  overflow: hidden;
}

/* ----- Dropdown  CSS ----- */

.options-container {
  margin: 1em;
  padding: 0;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
}

.options-list {
  padding: 0;
  display: flex;
  justify-content: flex-end;
  width: 0;
}

#current-paging {
  font-weight: 600;
}

.paging-text {
  width: max-content;
  align-self: center;
}

.dropbtn {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none !important;
  color: var(--text-dark);
  padding: 0.5em;
  width: 3em;
}

.drop-link {
  display: flex;
  text-align: center;
  align-items: center;
  text-decoration: none !important;
  color: var(--text-dark);
  border: 1px solid #e5e5e5;
  padding: 0.8em;
  width: 100%;
}

.drop-link.paging {
  justify-content: center;
  width: 3em;
}

.drop-link span {
  padding: 0 0 0 0.2em;
}

mwc-icon.drop-icon {
  color: var(--text-dark);
}

.sw-dropdown:hover .dropbtn {
  background-color: #eeeeee;
  color: var(--text-dark);
}

.sw-dropdown {
  display: flex;
  justify-content: flex-end;
  cursor: pointer;
}

.sw-dropdown-content {
  display: none;
  position: fixed;
  background-color: #f9f9f9;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 20;
  margin-top: 3em;
}

.sw-dropdown-content a:hover {
  background-color: #f1f1f1;
  color: var(--text-dark);
}

.sw-dropdown:hover .sw-dropdown-content {
  display: flex;
  flex-direction: column;
}
/* ----- List View  CSS ----- */

#lib-table {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 0.8em;
  border: none;
  background: transparent;
}

.bar-row td {
  height: 2px !important;
}

.bar-row td:first-child {
  background: none !important;
  border: none;
}

.bar-row td:last-child {
  background: lightgrey !important;
}

#lib-table td {
  height: 128px;
  border: none;
}

#lib-table td > * {
  min-height: 100px;
  position: relative
}

#lib-table .view-buttons {
  display: flex;
  align-items: flex-end;
}

.add-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 12em;
  border-top: 2px solid lightgrey;
  border-bottom: 2px solid lightgrey;
}

.add-row .add-book-btn {
  padding: 1em;
  display: flex;
  justify-content: center;
}

.add-row .add-book-btn img {
  box-shadow: 0 0 black;
  width: 90px;
  filter: var(--text-filter);
}

.add-row .add-book-btn:hover {
  cursor: pointer;
  transform: scale(1.1);
  transition: transform .2s;
}

.list-cover {
  height: 100%;
  width: 92px;
  border: 1px solid #e5e5e5 !important;
}

.list-cover:hover {
  border-color: grey !important;
}

.list-cover a {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.list-cover img {
  max-height: 100%;
  max-width: 100%;
  cursor: pointer;
}

.text-container {
  display: flex;
  flex-direction: column;
  padding: 0 1em;
}

.text-container span {
  width: 100%;
  color: #6a6a6a;
  font-size: 1.2em;
  padding: 0.5em 0 0em 0;
  overflow: auto;
}

.page-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.number-container {
  display: flex;
  align-items: center;
}

.page-number {
  padding: 0.5em;
  color: var(--text-dark);
}

.page-number:hover {
  color: #808080
}

.page-number span {
  font-size: 1.2em;
}

.page-number .current {
  font-size: 1.5em;
}

.arrow-left > *, .arrow-right > * {
  width: 2em;
  filter: invert(0%) sepia(100%) saturate(24%) hue-rotate(356deg) brightness(98%) contrast(100%) !important;
}

.arrow-left:hover, .arrow-right:hover {
  width: 2em;
  filter: invert(52%) sepia(0%) saturate(1097%) hue-rotate(248deg) brightness(96%) contrast(85%);
}

.arrow-icon {
  height: 2em;
  filter: invert(52%) sepia(0%) saturate(1097%) hue-rotate(248deg) brightness(96%) contrast(85%);
}

.book-title {
  font-size: 1.5em;
  font-weight: 600;
}

.book-author {
  font-size: 1.2em;
  font-style: italic;
}

.magazine-desc-container,
.magazine-desc-container span {
  width: 100%;
  color: #6a6a6a;
  font-size: 1.6rem;
  padding: 0.25em 0 0em 0;
  overflow: auto;
  font-style: italic;
}

.list-row {
  height: 100%;
}

.list-desc {
  border-right: none;
  display: flex;
  justify-content: space-between;
}

.list-buttons {
  border-left: none;
}

.btn-container-listview {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-direction: column;
  flex-wrap: wrap;
  height: 100%;
}

.settings-container mwc-icon {
  color: var(--text-color);
  cursor: pointer;
}

.settings-container mwc-icon:hover {
  transform: scale(1.1);
}

.settings-quicklinks {
  display: none;
  flex-direction: column;
  position: absolute;
  right: 0;
  z-index: 1;
  font-weight: 100;
  width: 220px;
  margin-right: -5px;
}

#bookview .settings-quicklinks {
  right: auto;
  margin-left: 4px;
}

.settings-quicklinks.active {
  display: flex;
}

.quick-link {
  border-radius: var(--mdc-shape-small, 4px);
  background: var(--color-primary);
  display: flex;
  text-align: center;
  align-items: center;
  text-decoration: none !important;
  color: var(--text-color);
  border: 1px solid #e5e5e5;
  padding: 0.8em;
  width: 100%;
}

.quick-link mwc-icon {
  font-size: 3rem;
}

.quick-link:hover, .quick-link:hover mwc-icon,
.quick-link:focus, .quick-link:focus mwc-icon {
  transform: none !important;
  color: var(--text-color);
}

.quick-link:hover span,
.quick-link:focus span {
  font-weight: 500;
}

.list-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 3px;
  height: 3em;
  width: 3em;
  cursor: pointer;
}

.list-buttons a:hover {
  cursor: pointer;
  background: lightgrey;
}

.list-icon {
  height: 2em;
}

.button-row td {
  height: auto !important;
}

.button-row td > * {
  min-height: auto !important;
}

/* ----- Ecode Settings CSS ----- */

.template-ecode-controlpanel .field {
  padding-bottom: 1em;
}

.ecode-jscolor {
  width: 100%;
  display: block;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;border-collapse: collapse;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
  -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.enable-checkbox input {
  margin: 3px !important;
}

/* ----- Book View CSS ----- */

#bookview{
  padding: 2em 2em 2em;
  height: 80vh;
  display: flex;
}

#bookview-list {
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
  overflow-x: hidden;
  height: 100%;
  border: 1px solid lightgray;
}

#bookview-list a:focus {
  text-decoration: none;
  outline: none;
}

#bookview-list a:hover .bookview-list-item {
  background: lightgray;
}

.bookview-list-item {
  display: flex;
  width: 100%;
  border-bottom: 2px solid lightgrey;
  padding: 1em;
}

.bookview-container {
  border-left: 2px solid lightgrey;
  padding-left: 3em !important;
  height: 100%;
}

.bookview-content {
  display: flex;
}

.bookview-image {
  position: relative;
}

.bookview-image img {
  max-height: 500px;
  max-width: 300px;
}

.bookview-thumb-image {
  position: relative;
  display: flex;
  align-items: center;
  width: 90px;
  height: 128px;
  margin: 0em 1em 0em 0em;
}

.bookview-thumb-image img {
  max-width: 90px;
  max-height: 128px;
}

.book-table {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0em 2em 0;
}

.bookview-text-container {
  display: flex;
  flex-direction: row-reverse;
  justify-content: start;
  flex-wrap: wrap;
}

.bookview-icons {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  justify-content: end;
}

.aib-icon {
  width: 80px;
}
.aib-icon.active {
  width: 100px;
}

.bookview-text,
.bookview-thumb-text {
  color: #4d4d4d;
}

.bookview-description {
  border-width: 0.2pt;
  padding-left: 1px;
  overflow-wrap:break-word; 
  overflow-x:auto;
  max-height: 50vh;
}

.b-title {
  font-size: 1.5em;
  font-weight: 600;
}

.bookview-description-text {
  overflow: auto;
}

.b-format {
  font-size: 1.2em;
  font-weight: 400;
  padding-bottom: 0.5em;
}

.bl-title {
  font-size: 1.2em;
  font-weight: 600;
}

.bl-format {
  font-size: 1em;
  font-weight: 400;
  padding-bottom: 0.5em;
}

.button-container {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid lightgrey;
  padding: 1em 0;
  justify-content: space-between;
}


.resource-button-container,
.settings-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.btn-container-listview .resource-button-container,
.btn-container-listview .settings-container {
  width: fit-content;
}

.bView-td-button{
  border-style: dotted;
  border-color: transparent;
  border-width: 0.2pt;
  display: flex;
  justify-content: left;
  align-items: flex-end;
  padding-left: 0.1em;
  padding-top: 1em;
  position: relative;
  width: auto;
}

/* ----- Add User/Book CSS ----- */

#user-book-form,
#assign-flatrate-form {
  display: flex;
  flex-wrap: wrap;
}

#user-book-form .search,
#users-widget .search,
#flatrate-widget .search {
  width: 100%;
  font-size: 1.5rem;
  padding: 0.5em;
  margin-bottom: 1em;
}

#user-book-form .buttonrow {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
#user-book-form .buttonrow button {
  margin: 0.3em;
}

#new-group-submit {
  display: flex;
  align-items: center;
  margin-top: 1.9em;
}

/* ------------------------------ Mobile Responsive CSS ------------------------------ */

@media screen and (max-width: 1500px) {
  .full-view-container {
    flex-direction: row;
  }
  .bookview-thumb-image {
    width: 60px;
  }
  .bookview-thumb-image img {
    max-width: 60px;
  }
  #bookview {
    padding: 2em 0em 2em;
  }
  .bl-title {
    font-size: 1.0em;
  }
  .b-format {
    font-size: 1.1em;
  }
  #bookview-list a:first-child .bookview-list-item {
    border-top: 2px solid lightgrey;
  }
}

@media screen and (max-width: 1200px) {
  #membertools-list.active {
    max-width: 50vw;
  }
  #portal-membertools-wrapper.active {
    max-width: 50vw;
  }
  #bookview-list-container {
    display: none;
  }
  #bookview-list {
    display: none;
    overflow-y: auto;
  }
  .bookview-container {
    border-left: 0px solid black;
    padding-left: 0em !important;
  }
}

@media screen and (max-width: 900px) {
  #download-codes-login-title, #download-codes-form-title {
    width: 100%;
  }
  .upload-form-container {
    width: auto;
  }
  #searchform > div {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .actionMenuHeader {
    position: relative !important;
  }
  #searchform .input-group {
    display: flex;
    flex-direction: column;
    padding: 1em;
  }
  #searchform .searchPage {
    margin: 0.5em;
  }
  .information-container {
    width: 100%;
  }
  .slick-slide .library-item {
    align-items: center !important;
  }
  .slick-list {
    margin: 0em 0em 0em 3em;
  }
}

@media screen and (max-width: 767px) {
  .search-button-wrapper {
    display: block;
  }
  #searchGadget, .search-button {
    display: none !important;
  }
  .print-btn {
    display: none !important;
  }  
  .logo-full {
    display: none;
  }
  .logo-mobile {
    display: block;
  }
  .ecode-navbar-toggle {
    display: flex !important;
  }
  .cc-window {
    height: auto;
  }
  #render-zone {
    padding: 5em 10% 2em 10%;
  }
  #prev.epub-arrow {
    left: 1%;
  }
  .epub-arrow {
    height: 50px;
    --mdc-icon-button-size: 50px;
    --mdc-icon-size: 50px;
  }
  #render-container {
    margin-top: 100px;
  }
  #epub-nav > * {
    margin: 0.5em 70px 0.5em 70px;
  }
  .book-table {
    padding: 2em 2em 0;
  }
  .bookview-container {
    overflow: auto;
  }
  #front-page {
      margin: 3em 1em 0 1em;
  }
  .front-title {
    font-size: 3.5rem;
  }
  .how-to-content {
    font-size: 1.5rem;
  }
  .front-icon {
    width: 30px;
  }
  #bookview {
    padding: 2em 1em 2em;
  }
  .bookview-content {
    flex-direction: column;
    align-items: center;
  }
  #bookview mwc-button, #lib-table mwc-button,
  .mwc-text {
    min-width: auto;
  }
  .page-container {
    justify-content: flex-start;
  }
  #portal-globalnav-wrapper .container {
    display: flex;
    justify-content: center;
  }
  #portal-globalnav {
    margin: 5em -5em 5em -5em;
}
  #portal-globalnav a {
    box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.34);
  }
  body:not(.template-manage-viewlets).plone-toolbar-left #content-header {
    width: -webkit-calc(100% - 60px);
    width:    -moz-calc(100% - 60px);
    width:         calc(100% - 60px);
  }
  #edit-zone .plone-toolbar-logo {
    height: 5em !important;
    padding-top: 10px !important;
    box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.34);
  }
  .list-row mwc-icon,
  .button-row mwc-icon {
    color: var(--color-primary);
  }
  .settings-quicklinks {
    width: max-content;
  }
  .list-row mwc-icon,
  .button-row .quick-link mwc-icon {
    color: var(--text-color);
  }
}

@media screen and (max-width: 600px) {
  .slick-list {
    margin: 0em 0em 0em 2em;
  }
  .list-btn {
    margin: 1px;
    height: 2.5em;
    width: 2.5em;
  }
}

@media screen and (max-width: 467px) {
  #membertools-list.active {
    max-width: 75vw;
  }
  .slick-list {
    margin: 0em 0em 0em 0.5em;
  }
  .epub-arrow {
    height: 40px;
    --mdc-icon-button-size: 40px;
    --mdc-icon-size: 40px;
  }
  #next.epub-arrow {
    right: 0;
  }
  #prev.epub-arrow {
    left: 0;
  }
  .btn-container-listview {
    padding: 0.5em;
  }
  .text-container span {
    font-size: 1em;
  }
}



/* Imad on pdf download click */
.ontop {
  z-index: 999;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: none;
  position: absolute;				
  background: rgba(170, 170, 170, 0.5);
}
#popup {
  width: 300px;
  height: 200px;
  position: absolute;
  color: #000000;
  background-color: #ffffff;
  /* To align popup window at the center of screen*/
  top: 50%;
  left: 50%;
  text-align: center;
  font-weight: bold;
  margin-top: -100px;
  margin-left: -150px;
}
#popup2 {
  width: 300px;
  height: 200px;
  position: absolute;
  color: #000000;
  background-color: #ffffff;
  /* To align popup window at the center of screen*/
  top: 50%;
  left: 50%;
  text-align: center;
  font-weight: bold;
  margin-top: -100px;
  margin-left: -150px;
}


/* last login table*/
.lastlogin {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

.lastlogin td {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}
.lastlogin th {
  border: 1px solid #dddddd;
  background-color: #002d59;
  color: white;
  text-align: left;
  padding: 8px;
}

.lastlogin tr:nth-child(even) {
  background-color: #dddddd;
}

/* new_codes View */ 
.noBorderTable{
  border-collapse: collapse;
  border: none;
  background-color:transparent;
}
.noBorderTable tr, .noBorderTable td {
  border: none;
  background-color:transparent;
}
.noBorderTable td {
  width: 50%;
  max-width: 50%;
  min-width: 50%;
}


/* assign_flatrate click hint */ 
.tooltip .tooltiptext {
  visibility: hidden;
  width: 30%;
  background-color: #002D59;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  margin-top: 50px;
  padding: 5px 0;

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}
.listjs-active:hover{
  background-color: none;
  color: none;
}
.listjs-active:hover{
  background-color: #8a8a8a;
  color: #fff;
}

.noBorderTableCompanyAdmin{
  border-collapse: collapse;
  border: none;
  background-color:transparent;
}
.noBorderTableCompanyAdmin tr, .noBorderTableCompanyAdmin td {
  border: none;
  background-color:transparent;
}