/* bs5 to bs4 polyfills */

/* forms */
/* @see https://stackoverflow.com/a/67655097/763010 */
.form-inline .form-control {
  display: inline-block;
  width: auto;
  vertical-align: middle;
}
.form-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -5px;
  margin-left: -5px;
}
.form-row > .col {
  padding-left: 5px;
  padding-right: 5px;
}

/*.cw-bulk-actions ul li {
    float: left;
    margin-right: 1rem;
}*/

/**
 *  CW BUTTON STYLE
 */

.btn-cw {
    color: #FFFFFF !important;
    background-color: #8A0000;
    /*background-image: none;*/
    /*border: none;*/
    display: block;
    /*border-radius: 8px !important;*/
    /*padding: 10px 15px;*/
    /*text-transform: uppercase;*/
    white-space: normal;
    /*margin: 2px;*/
}

.btn-cw:hover,
.btn-cw:focus,
.btn-cw:active,
.btn-cw.active,
.open .dropdown-toggle.btn-cw {
    color: #FFFFFF !important;
    background-color: #6A0000;
    border-color: #FFFFFF;
    text-decoration: none !important;
}

.btn-cw:active,
.btn-cw.active,
.open .dropdown-toggle.btn-cw {
    background-image: none;
}

.btn-cw.disabled,
.btn-cw[disabled],
fieldset[disabled] .btn-cw,
.btn-cw.disabled:hover,
.btn-cw[disabled]:hover,
fieldset[disabled] .btn-cw:hover,
.btn-cw.disabled:focus,
.btn-cw[disabled]:focus,
fieldset[disabled] .btn-cw:focus,
.btn-cw.disabled:active,
.btn-cw[disabled]:active,
fieldset[disabled] .btn-cw:active,
.btn-cw.disabled.active,
.btn-cw[disabled].active,
fieldset[disabled] .btn-cw.active {
    background-color: #8A0000;
    border-color: #000000;
}

.btn-cw .badge {
    color: #8A0000;
    background-color: #FFFFFF;
}

.btn-cw-main {
    /*font-size: large;*/
    color: #FFFFFF !important;
    background-color: black !important;
    background-image: none;
    border: 1px solid white;
    display: block;
    padding: 10px 15px !important;
    text-transform: uppercase;
    text-align: center;
    white-space: normal;
    margin-top: 5px;
    margin-left: -15px;
    margin-right: -15px;
}

.btn-cw-tip {
    background-color: #8A0000 !important;
    /*padding: 10px !important;*/
    /*   margin: 10px 5%;*/
    margin: 5px 0;
    border-radius: 0px !important;
    border: 1px solid white;
    font-weight: 700;
    padding: 0;
}

.btn-cw-plain {
    display: inline-block;
    padding: 10px 0;
    color: white;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
}

.btn-cw-plain:focus,
.btn-cw-plain:hover {
    text-decoration: none;
}

.btn-cw-plain svg {
    font-weight: 500;
    color: white;
    display: block;
    margin: 0 auto;
}

/* CALL TO ACTION BUTTONS */
.btn-cw-c2a {
    border-radius: 8px !important;
    padding: 5px 15px !important;
    white-space: nowrap;
}

/* RESOURCE BUTTONS */
.btn-cw-res {
    background-image: none;
    border: none;
    display: block;
    padding: 10px 15px;
    text-transform: uppercase;
    /*text-decoration: underline;*/
    white-space: normal;
    margin: 2px;
    font-weight: 600;
    color: #002c72;
    height: 60px;
    width: 165px;
}

.btn-cw-res svg {
    color: black;
}

#main a.btn-success.btn-link {
    color: white;
}

/* BACK BUTTON */

.btn-back {
    float: left;
    font-size: 24px;
    color: white;
    /*padding: 8px;*/
}

/* MODAL BUTTONS */
/*.modal .form-group .btn-primary {
    color: #FFFFFF !important;
    background-color: #8A0000;
    background-image: none;
    border: none;
    display: block;
    border-radius: 8px !important;
    padding: 10px 15px;
    text-transform: uppercase;
    white-space: normal;
    margin: 2px;
}*/

/* PAGER BUTTONS */

.dg-pager-btn {
  margin-right: 1rem;
}

.cw-cursor-help:hover {
  cursor: help;
}
.cw-cursor-pointer:hover {
  cursor: pointer;
}

#primary-local-tasks ul.nav li.nav-item a.nav-link.active {
  text-decoration: underline;
  font-weight: bold;
}

fieldset legend span.badge {
  font-size: .9rem;
}

.element-invisible {
  display: none;
}

#content {

  margin-top: 54px; /* same height as header nav */

}

@media (max-width: 767.98px) {

  #content {

    /*margin-bottom: 56px;*/ /* same height as footer, plus 15px */

  }

  #primary-local-tasks {
    display: none;
  }

}

.cw-node-charges {
  text-transform: uppercase;
  color: #DC3545;
}

.cw-offender-name {
  text-transform: uppercase;
  font-weight: bold;
}

.cw-offender-block .row p {
  margin-bottom: 0;
}

@media (max-width: 767.98px) {

  .cw-node-charges li {
    list-style-type: none;
  }

  .cw-offender-block {
    padding-bottom: 1rem;
    border-bottom: 1px solid #ccc;
    margin-bottom: 1rem;
  }

}

/* tabs | primary + secondary */
ul.dashboard-tabs a.nav-link.active {
  text-decoration: underline;
}

/* primary tabs */
ul.dashboard-primary-tabs a.nav-link {
  color: var(--bs-secondary);
}
ul.dashboard-primary-tabs a.nav-link.active {
  background-color: var(--bs-light);
  color: var(--bs-dark);
  font-weight: bold;
}

/* secondary tabs */
ul.dashboard-secondary-tabs a.nav-link {
  color: var(--bs-secondary);
}
ul.dashboard-secondary-tabs.nav-pills a.nav-link.active {
  background-color: var(--bs-light);
  color: var(--bs-dark);
  font-weight: bold;
}

/* list pane */
.dashboard-list-pane img.core-dashboard-item-view.border:hover {
  cursor: pointer;
  border-color: var(--bs-primary) !important;
}
.create-item-btn.sticky-bottom { /* mobile only */
  bottom: 7vh;
  left: 82vw;
}
.dashboard-list-pane span.badge.border {
  border-width: 2px !important;
}

/* view pane */
.dashboard-view-pane .cw-node-body iframe {
  max-width: 100%;
}

/* FORMS DASHBOARD */
/* description list */
.forms-dashboard fieldset dl fieldset {
  margin: 0 1rem 0 1rem;
}
/* submitted time */
.submission-submitted {
  font-size: 1.5rem;
}

/* GOOGLE MAPS ADVANCED MARKER ELEMENT + FONT AWESOME */
.fa-marker-icon {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

/* croppr */
.modal.croppr-modal .card:hover {
  cursor: pointer;
}
.cropprPopover {
  --bs-popover-max-width: 420px;
}
.cropprPopover ol, ul {
  padding-left: 1rem;
  margin-bottom: 0;
}

/* file browser widget */
.file-browser-widget .card img:hover {
  cursor: pointer;
}

/* file stock widget */
.file-stock-widget .nav button.active{
  text-decoration: underline;
}
.file-stock-widget .card img:hover {
  cursor: pointer;
}

/* reorder */
.content-form-input-reorder-cards .card:hover {
  cursor: move;
}

/* offender profile search */
.offender-profile-search .card:hover {
  cursor: pointer;
}

/* dark mode */
html[data-bs-theme="dark"] fieldset.bg-light {
  background-color: transparent !important;
}
html[data-bs-theme="dark"] tr.table-light.even {
  --bs-table-bg: var(--bs-body-bg);
}

/* GroupMenu */
#groupMenuRoot li svg.fa-arrows-alt:hover {
  cursor: move;
}

/* pager */
.dg-pager-btn {
  margin-bottom: 1rem;
}

/* `md` applies to small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {

  #core-dashboard button#save {
    margin-bottom: 3rem !important;
  }

  .dashboard-view-pane,
  .dashboard-list-pane .list-group .list-group-item button {
    scroll-margin-top: 70px;
  }

  .forms-dashboard .dashboard-view-pane .primary-view-btn-group {
    margin-top: 1rem;
    text-align: center;
    display: block;
  }
  .forms-dashboard .dashboard-view-pane .primary-view-btn-group .btn-group {
    margin-bottom: 1rem;
  }
  .forms-dashboard .dashboard-view-pane .primary-view-btn-group .btn-group.border-end {
    border-right: none !important;
  }

}

.form-select-list-icon,
.form-number-input-icon {
  position: absolute;
  margin-top: .7rem;
}

.form-input-preview {
  margin-bottom: 1rem;
}
.form-input-preview:hover {
  cursor: pointer;
  box-shadow:
    inset 0 -3em 3em rgb(222 222 222 / 30%),
    0 0 0 2px white,
    0.1em 0.1em 1em rgb(13 110 253 / 60%);
}

.cw-list-group .list-group-item {
    background: #212121;
    border: 1px solid #3D3D3D;
    /*text-transform: uppercase;*/
    text-decoration: none;
    text-align: left;
    color: white;
    clear:both;
    overflow:auto;
}

.cw-list-group .list-group-item:nth-child(even) {
    background: #2d2d2d;
}

.content-list .list-group-item {
    background: #1C1C1C;
    color: #CCCCCC;
    border: 1px solid #2D2D2D;
    /*margin: 15px 0 15px 0;*/
}

.cw-list-group .list-group-item a {
    color:#FFFFFF;
    text-decoration:none;
    display:block;
}

#navbarLeft,
#navbarRight {
  z-index: 1054; /* one less than bs5's default */
}
#off-road {
  z-index: 6001; /* must be greater than dg-overlay z-index */
}

#footer {
  display: none;
}

body.noscroll {
  width:100%;
  /*    background:black;
      opacity:0.7;*/
  /*background-color:rgba(0, 0, 0, 0.8);*/
  overflow: hidden;
  /*position: absolute;*/
  /*position: fixed;*/
  touch-action:none;
}

/* OVERLAY */
/*.overlay {
    display: none;
    top: 0;
    left: 0;
    right:0;
    bottom: 0;
    position: fixed;
    background-color: rgba(0,0,0,.4);
    z-index: 3000;
    overflow: hidden;
    touch-action:none;
}*/

#dg-overlay {
    display:none;
    position:fixed;
    /*position:absolute;*/
    background-color: #000;
    top: 0;
    left: 0;
    right:0;
    bottom: 0;
    opacity:0.4;
/*    transition: opacity 0.5s, visibility 0s 0.5s;*/
/*    transform: translate3d(0,0,0);*/
    transition: opacity .15s linear;
    -webkit-transition: opacity .15s linear;
    -moz-transition: opacity .15s linear;
    -ms-transition: opacity .15s linear;
    -o-transition: opacity .15s linear;
    overflow: hidden;
    /*overflow-y: scroll;*/

    /* This default z-index must be larger than .navbar's default z-index and must bet lower than the default z-index
       on .modal-node */
    z-index:6000;


    width: 100%;
    height: 100%;
    touch-action:none;
}

.overlay-pinned {
    display: block !important;
/*    width: 100%;
    height: 100%;*/
    /*overflow: hidden;*/
    /*overflow: auto;*/
    /*touch-action: none;*/
    /*position:fixed;*/
}

.overlay-noscroll {
    display: block !important;
    overflow: hidden;
    touch-action: none;
    /*Position fixed here causes headerbar to scroll to the top evertime the overlay appears, but solves bg scrolling.  */
     /*position:fixed;*/
     /*overflow: auto;*/
     /*overflow-y:*/
     /*top: 0;*/ 
/*     left: 0; 
     right: 0; 
     bottom: 0;*/
}

.overlay-4k {
    z-index: 4001 !important;
}

.overlay-5k {
    z-index: 5001 !important;
}

.overlay-6k {
    z-index: 6001 !important;
}

/* BS5 utility class */

.z-1 {
  z-index: 1;
}

#toast {
    font-size: large;
    visibility: hidden; /* Hidden by default. Visible on click */
    max-width: 250px; /* Set a default minimum width */
    margin-left: -125px; /* Divide value of min-width by 2 */
    background-color: #000000; /* Black background color */
    background-color: rgba(0,0,0,0.9);
    color: #fff; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 8px; /* Rounded borders */
    border:2px solid #B00000;
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 10000; /* Add a z-index if needed */
    left: 50%; /* Center the toast */
    /*margin: 0 auto;*/
    bottom: 60px; /* 30px from the bottom */
    display: none;
}


#toast.show {
    visibility: visible; /* Show the toast */
    display: block;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 3.5s;
    animation: fadein 0.5s, fadeout 0.5s 3.5s;
}
/* TODO make an e.g. show-slow class here with a longer fadeout, some work has to go into dg_toast for this. */

/* Animations to fade the toast in and out */
@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 60px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 60px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {bottom: 60px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 60px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

.group-analytics ul.nav li a.active {
  color: var(--bs-dark);
}

#audit-seo-quick-tabs ul.nav.quick-tabs li.active {
    font-weight: bold;
}

#gateway-form #edit-mail, #gateway-login-form #edit-pass {
  margin-top: 10px;
}

#form-wrapper-gateway-form,
#form-wrapper-gateway-login-form,
#gateway-forgot-password-form,
#gateway-register-form {
/*#gateway-location-form {*/
  background-color:rgba(0, 0, 0, 0.8);
  margin-top:25vh;
  margin: 10vw;
  max-width:450px;
  min-width:250px;
  text-align: center;
  border: 1px solid #2D2D2D;
  box-shadow: 0 5px 6px 2px rgba(0,0,0,.75);
  padding: 30px;
  word-wrap: break-word;
  color:white;
}

#gateway-form .form-group-actions {
  float: right;
}

.gateway .btn-link {
/*  color: #CCCCCC;
  float: left;*/
/*    font-size: small;*/
}

#gateway-forgot-password-form, #gateway-register-form, #gateway-location-form {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  padding-bottom: 50px;
}

.location-modal #gateway-location-form {
  border: none;
  box-shadow: none;
  min-width:0;
  padding:5px;
}

#gateway-register-form .form-group #edit-submit,
#gateway-forgot-password-form .form-group #edit-submit {
  margin: auto;
}
#gateway-register-form .form-group #edit-submit {
  margin-top: 1rem;
}

.cw-gateway-bg {
  background: url("images/cw-gateway.jpg") !important;
  height: 100%; 
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-attachment: fixed !important;
}

#notificationsContainer {
    margin: 5px -5px 70px;
}

#notifications-pane {
    position: fixed;
    margin-top: 50px;
    right:0;
    overflow-y: scroll;
    height: 90%;
}

#notifications-pane,
nav.navbar .fa-bell span {
    display: none;
}
nav.navbar svg.fa-circle {
    display: none;
    position: absolute;
    /*font-size: 1.1em;*/
    top: 0;
    color: red;
    /*padding-left: 7px;*/
    margin-left: 5px;
}

nav.navbar span.num {
    display: none;
    position: absolute;
    /*font-size: 0.7em;*/
    top: 0;
    color: #fff;
    /*padding-left: 14px;*/
    font-size:12px;
    margin-left:12px;
    margin-top:2px;
    font-weight:700;
    text-align:center;
}

nav.navbar span.num.char-2 {
    margin-left:9px;
}

nav.navbar span.num.char-3 {
    margin-left:6px;
}

/* @TODO this probably needs to be updated to use selectors similar to above*/
#cw-app-navbar-right .navbar-nav > li > a.hasNew {
    color: white
}

/**
 * NOTIFICATIONS LIST
 */
/*ul.notifications.list-group li {
    width: 256px;
}*/

ul.notifications.list-group li.notification-new {
    background-color: #eee;
}

/*ul.notifications.list-group li.notification-unread,
ul.notifications.list-group li.notification-read {
}*/

ul.notifications.list-group li a {
    color: black !important;
}
ul.notifications.list-group li a:hover {
    text-decoration: none;
}
ul.notifications.list-group li h4 {
    font-weight: bold;
    margin: 0;
    text-align: left;
    margin-bottom: 4px;
    color: black;
}
ul.notifications.list-group li h4 a {
    text-transform: uppercase;
    font-weight: bold;
}
.navbar-nav ul.notifications.list-group li a {
    padding: 0;
}
ul.notifications.list-group li p,
#notifications-pane list-group li p{
    color: black;
    margin: 0;
    margin-bottom: 4px;
}
/*ul.notifications.list-group li div {
    color: gray;
    clear: both;
}*/

ul.notifications.list-group {
    border:1px solid #3d3d3d;
}

#notifications-pane ul.notifications.list-group li div {
    color: black;
    /*text-transform: uppercase;*/
}

#notificationsContainer .group-micro,
#notifications-pane .group-micro{
    margin-top: 10px;
    margin-bottom: 0px;
    clear: both;
    max-width: 80%;
}

#notificationsContainer li svg:first-of-type,
#notifications-pane li svg:first-of-type{
    position: absolute;
    right: 5px;
    top: 44%;
}

#notificationsContainer li .badge,
#notifications-pane li .badge {
    float: right;
    bottom: 5px;
    position: absolute;
    right: 5px;
}

#notificationsContainer li.list-group-item {
    background: #212121;
    margin-bottom: 5px;
    border: 1px solid #3d3d3d;
    padding: 0;
}

#notificationsContainer li.list-group-item:nth-child(even) {
    background: #2D2D2D;
}

#notificationsContainer .caption {
    margin: 0 0 0 102px;
    color: #CCC;
    padding: 0 4px;
}

#notifications-pane .caption {
    margin: 0 0 0 66px;
    padding: 0 4px;
}

#notificationsContainer .item-source,
#notificationsContainer .item-details,
#notifications-pane .item-source,
#notifications-pane .item-details{
    font-size: smaller;
    font-weight: 400;
    color: #848484;
    margin: 0;
}

#notificationsContainer .item-body {
    color: #CCC;
    line-height: 1.2;
    margin:0;
    padding:0;
}

#notificationsContainer .thumbnail,
#notifications-pane .thumbnail {
    background: none;
    border: none;
    margin-bottom: 0;
    overflow:auto;
}

#notifications-pane .item-title,
#notifications-pane h5 {
    color: black;
    font-weight: bold;
}

#notifications-pane {
    width: 100%
}

#notifications-pane .list-group-item {
    padding: 0;
    overflow: auto;
}

#notificationsContainer .thumbnail img {
    height: 96px;
    width: 96px;
    clear: both;
}

#notifications-pane .thumbnail img {
    height: 64px;
    width: 64px;
    clear: both;
}

#notificationsContainer .item-body {
    display:block;
}

#notificationsContainer .item-title {
    white-space:normal;
}
.croppr-modal .media:hover {
  cursor: pointer;
}

/***** NEW SEARCH UI/UX *******/
.search-wrapper {
  display: none;
  width: 0;
  background: #8A0000;
}

.search-wrapper.active {
    display:block;
    width:100%;
    position:fixed;
    height: 50px;
    width: 100%;
    top: 0;
    left: 0;
    z-index:100;
}

.search-wrapper .input-holder {
    overflow: hidden;
    background: rgba(255,255,255,0);
    min-width: 50%;
}

.search-wrapper.active .input-holder {
    height:50px;
    text-decoration: none;
}

.search-wrapper .input-holder .search-input {
    width:0;
    opacity: 0;
    height:50px;
    background: transparent;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border:none;
    outline:none;
    font-size: 18px;
    line-height: 28px;
    color:#FFF;
}

.search-wrapper.active .input-holder .search-input {
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
    text-decoration: none;
    width:100%;
    opacity: 1;
}

.search-wrapper .input-holder .search-icon {
    border:none;
    background: transparent;
    padding:0px;
    outline:none;
    position: relative;
    z-index: 2;
    float:right;
    cursor: pointer;
}
.search-wrapper.active .input-holder .search-icon {
    margin: 10px;
}
.search-wrapper .input-holder .search-icon span {
    width:22px;
    height:22px;
    display: inline-block;
    vertical-align: middle;
    position:relative;
}

.search-wrapper span.btn {
  color: white;
}
.search-wrapper span.btn.close,
.search-wrapper span.btn.filters {
  margin-top: .4rem;
  opacity: unset;
}

#sunset-quick-tabs ul.nav.quick-tabs li.active {
    font-weight: bold;
}

#magic-button {
    background: none;
    cursor: pointer;
}

#magic-form label {
    font-weight: bold;
}

#modal-magic {
    margin-bottom:4px;
}

.magic-group {
    bottom: 0;
    border: 2px solid #FFFFFF;
    border-radius: 32px;
    position: fixed;
    background-color: #000000;
    margin-left: -32px;
    height: 68px;
    width: 68px;
}

.cw-magic .modal-header h2 {
    font-size: medium;
    font-weight: bold;
}

.cw-magic .list-group-item img {
    width:96px;
    height:96px;
    margin-right:10px;
}

.cw-magic .list-group-item .group-micro .group-logo {
    float: left;
}

.cw-magic .list-group-item .group-micro p {
    font-weight: 400;
    font-size: smaller;
    color: #afafaf;
}

.cw-magic .list-group-item {
    padding:5px;
    text-align: left;
    text-transform: uppercase;
    clear:both;
    overflow:auto;
}

.cw-magic .list-group-item .group-micro a {
    font-weight:bold;
    color:white;
    text-decoration:none;
    overflow:auto;
}

.cw-magic .list-group-item button {
    position: absolute;
    float: right;
    bottom: 5px;
    right: 5px;
}

#magic-following-list {
    overflow-x: auto;
    white-space: nowrap;
    height: 75px;
    border-bottom: 1px solid #2D2D2D;
    margin: 10px -15px;
    text-align: center;
}

#magic-following-list img,
#magic-following-list .fa-plus-circle {
    border: 1px solid #FFFFFF;
    border-radius: 33px;
    background-color: #000000;
    margin: 0 5px;
    height: 66px;
    width: 66px;
}

#magic-following-list .fa-plus-circle {
    background: #CCC;
    color: #1C1C1C;
    font-size: 235px;
}

.address-autocomplete-results {
  z-index: 6001; /* one more than .modal */
  margin-top: 38px;
  margin-left: 46px;
}

.address-autocomplete-results .list-group-item:hover {
  cursor: pointer;
}

.ck-editor__editable_inline {
    min-height: 25vh;
}

/* DESKTOP */
@media screen and (min-width: 768px) {

  /* make the right side bar sticky on the ContentFormManager */
  .ContentFormManagerRightSide {
    padding-block: .5rem;
    position: sticky;
    top: 0%;
  }
  
}

#media-browser .card img:hover,
#attachments-browser .card:hover {
  cursor: pointer;
}

.charges-autocomplete .list-group-item.active {
  background-color: var(--bs-secondary);
  border-color: var(--bs-secondary);
}

#content-dashboard-quick-tabs .dg-pager-btn {
    margin-right: .5rem;
}

table#content-dashboard-item-list tbody tr:hover {
    background-color: #eee;
}

/*WIP*/
/*table#content-dashboard-item-list .nodeBtnOpWrapper {
    float: right;
    position: relative;
    top: 0;
    right: 0;
}*/

ul#content-dashboard-item-list li button {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  text-align: left;
}

#form-wrapper-content-dashboard-filters {
  z-index: 6001;
}

.workflow-state-tabs {
  white-space: nowrap;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}

/**
 * GROUP DASHBOARDS
 */

#group-privy-btns {
  position: fixed;
  bottom: 0;
  right: -6px;
  background-color: white;
}

/**
 * GROUP CONTENT
 */
button.add-content span {
  font-size: 1.5rem;
}

/**
 * GROUP MEMBERS (USERS)
 */
.group-members-list-group .badge {
  font-size: 1rem;
  font-weight: normal;
}
#group-members-roles-tabs {
  white-space: nowrap;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}

/**
 * RESPONSIVE
 * @see cw_media.deviceSize()
 */

/* MOBILE */
@media screen and (max-width: 767px) {

  /**
   * GROUP DASHBOARDS
   */
  #group-privy-btns {
    padding-bottom: 56px;
  }

}

/* DESKTOP */
@media screen and (min-width: 768px) {

}

@font-face {
  font-family: HeroicCondensed-Medium;
  src: url(fonts/HeroicCondensed-Medium.otf);
}

.marquee {
  overflow: hidden;
  display: flex;
}

.marquee h1 {
  white-space: nowrap;
  /*text-transform: uppercase*/
}

.tv-item-public {
  background-color: black;
  height: 100vh;
  color: white;
}

.tv-item-public a {
  color: white;
  text-decoration: none;
}

.tv-item-public a:hover {
  text-decoration: underline;
}

.tv-item-public h2 {
  position: absolute;
  text-shadow: 1px 1px gray;
  width: 100%;
  background-color: rgba(0,0,0,0.67);
  padding-top: 2%;
  padding-bottom: 2%;
  padding-left: 1rem;
  margin-top: 0;
  margin-bottom: 0;
}

.tv-item-public blockquote {
  position: absolute;
  bottom: 0;
  background-color: rgba(0,0,0,0.67);
  /*padding: 0.5rem 1rem;*/
  width: 100%;
  height: 200px;
  padding: 1rem 200px 1rem 1rem;
  /*padding-right: 200px;*/
  margin-right: 1rem;
  margin-bottom: 0;
}

.tv-item-public .blockquote-footer {
  color: white;
}

.tv-item-public .blockquote-footer::before {
  content: "";
}

.tv-item-public img.qr {
  position: absolute;
  bottom: 0;
  right: 0;
}

#tvBullets svg:hover {
  cursor: pointer;
}

.card.slide-classic .card-footer {
  margin-top: -350px;
}

/**
 * VIEWPORT UNITS RELATIVE LENGTHS
 * BOOTSTRAP 5 BUDDIES
 */
.v-me-2 {
  margin-right: 1vw;
}

/**
 * START UP
 */

#startupImg {
  height: 10vh;
}
#startupImg i {
  font-size: 20vh;
}

/**
 * TOAST
 */

#toast.toast {
}

/**
 * HEADER
 */

#header {
  font-size: 5vh;
}
#header img {
  height: 7vh;
  margin: 1.5vh;
}

/**
 * MENU
 */

#cw-tv-navbar .nav {
  margin-top: 1vh;
  margin-right: 1vh;
}
#header .btn {
  font-size: 4vh;
}
#cw-tv-navbar ul.nav-pills {
  padding-right: 1vw;
}
#header li.first {
  margin-right: 1.2vw;
}

/**
 * CONTENT
 */

#content {
  margin-top: 0;
}

/**
 * TOP BAR (breadcrumb + tv controls)
 */

#topBarWrapper {
  padding: 1vh;
}
#topBarWrapper,
#topBarWrapper .btn {
  font-size: 3vh;
}

/**
 * BREADCRUMB
 */

#tv-breadcrumb {
  padding-top: 1vh;
  padding-bottom: 1.5vh;
  font-size: 2.5vh;
}

li.breadcrumb-item a {
  padding-left: .5vw;
  padding-right: .5vw;
}
/*.breadcrumb-item+.breadcrumb-item {
  padding-left: .5vw;
}*/

/**
 * DIRECTORY
 */

#directory-item-list {
  margin-bottom: 1.5vh;
}

#directory-sidebar {
  font-size: 2.5vh;
}
#directory-sidebar .card-title {
  font-size: 3.5vh;
}

/**
 * CONTROLS
 */

#tv-controls .btn {
  padding-left: 1.5vh;
  padding-right: 1.5vh;
}

#tv-controls .btn.btn-outline-primary {
  color: #9e2216;
  border-color: #939393;
}
#tv-controls .btn.btn-outline-primary:hover {
  background: #b5b5b5;
}

/**
 * NIGHT
 */

body.night .card.slide-classic {
  background-color: #1c1c1c !important;
}
body.night #header,
body.night .card.slide-classic .card-header {
    background-color: black;
    border-bottom: 1px solid #333;
}
body.night .card.slide-classic .card-footer {
    /*background-image: linear-gradient(0deg, #000000 1%, #1c1c1c 100%);*/
}

/**
 * DAY
 */

body.day .card.slide-classic {
  background-color: #fff !important;
}
body.day #header {
  /*background: #9e2216 !important;*/
}
body.day .card-body {
  border-left: none;
}

body.day .card-footer {
  background-color: white;
}

/**
 * FORMS
 */

form {
  margin-top: 1vh;
}

.form-group > label,
.form-check > label {
  font-weight: bold;
}

.form-group,
.form-check {
  margin-bottom: 1vh;
}

input,
select,
label {
  margin-bottom: .5vh;
}

/**
 * SETTINGS
 */

#tv-settings-form,
#tv-settings-form .form-control {
  font-size: 2.5vh;
}
#tv-settings-form fieldset legend {
  font-size: 3vh;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 1.5vh;
}

/**
 * ALERTS
 */

.alert {
  font-size: 2.5vh;
  padding: 1vh 1vw;
  margin-bottom: 1.5vh;
}

/**
 * HEADERS
 */

h1 { font-size: 5vh; }
h2 { font-size: 4.5vh; }
h3 { font-size: 4vh; }
h4 { font-size: 3.5vh; }

/**
 * BUTTONS
 */

.btn {
  font-size: 2.5vh;
  padding: .375vh .75vw;
}

.btn-link {
  color: #094eb3;
}

/**
 * FIELDSETS
 */

fieldset {
  padding: 1vh 1vw;
  margin-bottom: 1.5vh;
}

/**
 * HOME PAGE
 */

#home-page .jumbotron {
  margin-top: 2vh;
}

#home-page #form-wrapper-group-search-form {
  margin-bottom: 3.5vh;
}

#home-page h6.card-subtitle {
  margin-bottom: 1vh;
}

/**
 * WATCH
 */

#watchBucketMsg {
  font-size: 4vh;
  margin-top: 3vh;
  margin-left: 1vw;
  margin-right: 1vw;
  padding-left: 2vw;
  padding-right: 2vh;
}
#watchBrandingImg {
  height: 4.5vh;
  padding-left: 0.5vw;
}

/**
 * SLIDE
 */

#top-row {
  padding-top: 1.5vh;
}

.meta-badge {
  font-size: 2.5vh;
}
.tv-slide-responsive h1 {
  font-size: 7vh;
  padding-top: 3vh;
  padding-left: .5vw;
  font-family: HeroicCondensed-Medium;
}
.tv-slide-responsive h1 a {
  color: black;
  text-decoration: none;
  text-transform: uppercase;
}
.tv-slide-responsive h1 a:hover {
  text-decoration: underline;
}
#tvMediaImg {
  width: 26vw;
}
.node-summary {
  height: 25vh;
  font-size: 3.7vh;
  font-family: Open Sans;
}
.group-title {
  font-family: HeroicCondensed-Medium;
  font-size: 5vh;
}
p.group-meta {
  font-size: 2.5vh;
}
p.group-url {
  margin-bottom: 2vh;
}

/**
 * QR CODE
 */

img.qr {
  height: 23vh;
}

/**
 * BADGE
 */

.badge-wrapper img {
  max-width: 100%;
  height: 23vh;
}

/**
 * FULL SCREEN
 */

body.tv-full-screen {
  background-image: url(img/tv-bg-gray.png);
  background-size: cover;
  background-repeat: no-repeat;
  /*background-position: center center;*/
}

body.tv-full-screen #top-row {
  height: 32vh;
  padding-top: 1.5vh;
}
body.tv-full-screen .tv-slide-responsive h1 {
}
body.tv-full-screen #bottom-row {
  height: 66vh;
}
body.tv-full-screen #tvMediaImg {
  width: 36vw;
}
body.tv-full-screen .node-summary {
  height: 32vh;
  font-size: 4vh;
}
body.tv-full-screen .badge-wrapper img {
  height: 30vh;
}

/**
 * RESPONSIVE
 */

body._720p #main .container-fluid,
body._1080p #main .container-fluid,
body._4k #main .container-fluid,
body._8k #main .container-fluid {
  padding: 1vh 1vw;
}

/**
 * 720p
 */
/*@media screen and (width: 1280px) and (height: 720px) {*/
@media screen and (width: 1280px) {

  /**
   * MENU
   */

  #cw-tv-navbar ul.nav-pills {
    padding-right: 1vw;
  }
  #header li.first {
    margin-right: .5vw;
  }

  /**
   * SETTINGS
   */

  #tv-settings-form #edit-bundles input[type="checkbox"] {
    transform: scale(1.5);
    margin-right: .5vw;
  }

  /**
   * SLIDE
   */

  #tvMediaImg {
    width: 28vw;
  }

  .node-summary {
  }

  /**
   * FULL SCREEN
   */

  body.tv-full-screen {
    background-image: url(img/tv-bg-gray-720p.png);
  }

  body.tv-full-screen #top-row {
    height: 32vh;
  }
  body.tv-full-screen #bottom-row {
    height: 66vh;
  }
  body.tv-full-screen #tvMediaImg {
    width: 36vw;
  }
  body.tv-full-screen .node-summary {
    height: 32vh;
    font-size: 4vh;
  }
  body.tv-full-screen .badge-wrapper img {
    height: 30vh;
  }

}

/**
 * 1080p
 */
/*@media screen and (width: 1920px) and (height: 1080px) {*/
@media screen and (width: 1920px) {

  /**
   * TOAST
   */

  #toast.toast {
  }

  /**
   * SETTINGS
   */

  #tv-settings-form #edit-bundles input[type="checkbox"] {
    transform: scale(2);
    margin-left: 1vw;
    margin-right: 1vw;
  }

  /**
   * SLIDE
   */

  .node-summary {
    height: 28vh;
    font-size: 3.7vh;
  }

  /**
   * FULL SCREEN
   */

  body.tv-full-screen {
    background-image: url(img/tv-bg-gray-1080p.png);
  }

  body.tv-full-screen #top-row {
    height: 30vh;
  }
  body.tv-full-screen #bottom-row {
    height: 68vh;
  }
  body.tv-full-screen #tvMediaImg {
    width: 33vw;
  }
  body.tv-full-screen .node-summary {
    height: 32vh;
    font-size: 4vh;
  }
  body.tv-full-screen p.group-meta {
    font-size: 2.8vh;
  }
  body.tv-full-screen .badge-wrapper img {
    height: 34vh;
  }

}

/**
 4k
 */
/*@media screen and (width: 3840px) and (height: 2160px) {*/
@media screen and (width: 3840px) {

  /**
   * TOAST
   */

  #toast.toast {
  }

  /**
   * SETTINGS
   */

  #tv-settings-form #edit-bundles input[type="checkbox"] {
    transform: scale(4);
    margin-left: 1vw;
    margin-right: 1vw;
  }

  /**
   * SLIDE
   */

  .node-summary {
    height: 30vh;
    font-size: 4vh;
  }

  /**
   * FULL SCREEN
   */

  body.tv-full-screen {
    background-image: url(img/tv-bg-gray-4k.png);
  }

  body.tv-full-screen #top-row {
    height: 30vh;
  }
  body.tv-full-screen #bottom-row {
    height: 68vh;
  }
  body.tv-full-screen #tvMediaImg {
    width: 33vw;
  }
  body.tv-full-screen .node-summary {
    height: 32vh;
    font-size: 4vh;
  }
  body.tv-full-screen .group-title {
  }
  body.tv-full-screen p.group-meta {
    font-size: 3.5vh;
  }
  body.tv-full-screen .badge-wrapper img {
    height: 34vh;
  }

}

/**
 8k
 */
/*@media screen and (width: 7680px) and (height: 4320px) {*/
@media screen and (width: 7680px) {

  /**
   * TOAST
   */

  #toast.toast {
  }

  /**
   * SETTINGS
   */

  #tv-settings-form #edit-bundles input[type="checkbox"] {
    transform: scale(8);
    margin-left: 1vw;
    margin-right: 1vw;
  }

  /**
   * SLIDE
   */

  .node-summary {
    height: 30vh;
    font-size: 4vh;
  }

  /**
   * FULL SCREEN
   */

  body.tv-full-screen {
    background-image: url(img/tv-bg-gray-4k.png);
  }

  body.tv-full-screen #top-row {
    height: 30vh;
  }
  body.tv-full-screen #bottom-row {
    height: 68vh;
  }
  body.tv-full-screen #tvMediaImg {
    width: 33vw;
  }
  body.tv-full-screen .node-summary {
    height: 32vh;
    font-size: 4vh;
  }
  body.tv-full-screen .group-title {
  }
  body.tv-full-screen p.group-meta {
    font-size: 3.5vh;
  }
  body.tv-full-screen .badge-wrapper img {
    height: 34vh;
  }

}
