/*
 SPDX-License-Identifier: GPL-3.0-or-later
 myMPD (c) 2018-2026 Juergen Mang <mail@jcgames.de>
 https://github.com/jcorporation/mympd
*/

/* sticky toolbar for desktop devices */
body.not-mobile {
  overflow: hidden;
}

body.not-mobile .scrollContainer {
  overflow-y: auto;
}

div.cardsContainer {
  overflow-x: hidden;
}

body.not-mobile .card {
  margin-bottom: 0;
}

body.not-mobile .cover-grid > div {
  display: none;
}

body.not-mobile .cover-grid:hover > div {
  display: block;
}

body.not-mobile .featMobile {
  display: none;
}

body.mobile > footer > nav {
  padding-bottom: 1.5rem !important;
}

:root {
  --grid-thumbnail-size: 175px;
  --mympd-highlightcolor: var(--bs-green);
  --mympd-highlightcolor-contrast: var(--bs-light);
  --mympd-backgroundcolor: var(--bs-black);
  --mympd-card-footer-white-space: nowrap;
  --mympd-show-help: block;
  --mympd-show-help-btn: unset;
  --mympd-quickaction-size: 1.4rem;
  --bs-dropdown-divider-margin-y: 0.5rem;
  --bs-nav-link-padding-y: 0.5rem;
  --bs-nav-link-padding-x: 1rem;
  --bs-dropdown-item-padding-y: 0.25rem;
  --bs-dropdown-item-padding-x: 0.5rem;
  --bs-dropdown-header-padding-y: 0.5rem;
  --bs-dropdown-header-padding-x: 1rem;
}

.color-darkgrey {
  color: var(--bs-gray-600);
}

.color-darkgrey:hover {
  color: var(--bs-gray-100);
}

.highlight {
  color: var(--mympd-highlightcolor) !important;
}

.highlight-bg {
  background-color: var(--mympd-highlightcolor) !important;
}

#navbar-main div.active {
  border-radius: 0.25rem;
}

.navbar .btn:disabled {
  border-color: transparent;
}

.btn-check:checked + .btn,
:not(.btn-check) + .btn:active,
.btn:first-child:active,
.btn.active, .btn.show {
  border-color: var(--mympd-highlightcolor) !important;
  background-color: var(--mympd-highlightcolor) !important;
  color: var(--mympd-highlightcolor-contrast) !important;
}

li.active button,
button.active,
.btn-success,
.btn-success:focus,
.btn-success:hover {
  color: var(--mympd-highlightcolor-contrast) !important;
  background-color: var(--mympd-highlightcolor) !important;
  border-color: var(--mympd-highlightcolor) !important;
}

.btn-success:disabled,
.btn-success.disabled {
  color: inherit;
}

.text-success,
a.text-success:hover,
a.text-success:focus {
  color: var(--mympd-highlightcolor) !important;
}

.form-select:focus {
  border-color: var(--mympd-highlightcolor);
}

#highlightColorPreview,
#bgColorPreview {
  cursor: default;
}

#splashScreen {
  background: radial-gradient(at 100% 0%, #32d156 0%, #28a745 30%, #155724 100%);
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  position: absolute;
  top: 0;
  left: 0;
}

#splashScreenLogo {
  text-align: center;
  margin-top: 25vh;
}

.hide-fade {
  opacity: 0;
  transition: opacity 0.5s linear;
}

h4 svg,
#mainMenu svg {
  width: 2.5rem;
  height: 2.5rem;
}

#splashScreenLogo svg {
  width: 18rem;
  height: 18rem;
}

#splashScreenAlert {
  min-height: 25vh;
  width: 100vw;
  color: var(--bs-light);
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2001;
  font-size: 1.2rem;
  padding: 1rem;
  text-align: center;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  min-height: 100vh;
  padding-top: 3.5rem;
  padding-bottom: 5rem;
  background-color: var(--mympd-backgroundcolor);
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
}

main {
  border-top: 3px solid transparent;
}

.navbar {
  padding-left: 1rem;
  padding-right: 1rem;
}

#headerLeft {
  margin-right: 2rem;
}

.breakAll {
  word-break: break-all;
}

body > .albumartbg {
  position: fixed;
}

div > .albumartbg {
  border-radius: 0.25rem;
}

.albumartbg {
  width: 100%;
  height: 100%;
  background-position: center center;
  background-size: cover;
  transition: opacity 1s;
  z-index: -9;
  position: absolute;
}

.badge {
  font-size: 65%;
}

@media only screen and (orientation: portrait) {
  #navQueue > a {
    padding-bottom: 0;
  }

  #badgeQueueItems {
    margin-top: 0.6rem;
  }
}

@media only screen and (orientation: landscape) {
  #header {
    height: 100vw;
    width: 4rem;
    flex-flow: column;
    padding: 1.2rem 0 6.5rem;
    justify-content: normal !important;
  }

  body {
    padding-top: 0;
    padding-left: 4rem;
  }

  #headerLeft {
    margin-bottom: 2rem;
    margin-right: 0;
  }

  .navText {
    display: none;
  }

  #navbar-main > div {
    margin-bottom: 0.6rem;
  }

  #navbar-main {
    flex-direction: column !important;
  }

  #top-alerts {
    padding-right: 4rem !important;
    margin-top: 0 !important;
  }

  #badgeQueueItems {
    position: absolute;
    display: block;
    margin-top: -1.9rem !important;
    margin-left: 2rem !important;
  }
}

@media only screen and (width <= 800px) {
  .navText,
  .footerCounter {
    display: none;
  }

  .ml-3 {
    margin-left: 1rem !important;
  }
}

@media only screen and (height <= 380px) and (orientation: landscape) {
  #navbar-main > div {
    margin-bottom: 0;
  }
}

div.footerCounter {
  min-width: 8rem;
  max-width: 12rem;
}

#footerAudioFormat {
  font-size: 80%;
  width: 12rem;
}

#footerCover {
  width: 4rem;
  height: 4rem;
  background-size: cover;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

#footerTitle {
  height: 2rem;
}

#footerProgress {
  height: 1rem;
  background-color: transparent;
  border-radius: 0;
}

#footerProgress:hover div#footerProgressBar {
  border-top: 0.4rem solid var(--mympd-highlightcolor);
  border-bottom: 0.4rem solid var(--mympd-highlightcolor);
}

#footerProgress:hover {
  background-image: linear-gradient(transparent 0, transparent 0.45rem, var(--bs-secondary) 0.45rem, var(--bs-secondary) 1.8rem);
}

#footerProgressBar {
  height: 0.4rem;
  width: 0;
  margin-bottom: -0.6rem;
  transition: none;
}

.navText {
  margin-left: 0.5rem !important;
}

.navTextQueue {
  margin-right: 0.5rem;
}

button {
  overflow: hidden;
}

#navQueue > a {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.nav-link,
.form-check,
th,
.nowrap {
  white-space: nowrap;
}

@media only screen and (width <= 440px) {
  #btnPrev,
  #btnPlay {
    padding-right: 4px !important;
  }

  #btnNext,
  #btnPlay {
    padding-left: 4px !important;
  }

  #volumeMenu::after,
  #localPlaybackMenu::after,
  #footerSettingsPlayback > button:nth-child(2),
  #footerInfo {
    display: none !important;
  }
}

@media only screen and (576px <= width <= 992px) {
  .modal-lg {
    max-width: calc(100vw - 5rem) !important;
  }
}

@media only screen and (width >= 992px) {
  .modal-lg, .modal-xl {
    --bs-modal-width: 920px;
  }
}

@media only screen and (width >= 1400px) {
  .modal-xl {
    --bs-modal-width: 1200px;
  }
}

.clickable {
  cursor: pointer;
}

.not-clickable {
  cursor: default !important;
}

.queue-playing [data-col="Action"] {
  color: inherit;
}

.queue-playing {
  border: 2px solid var(--mympd-highlightcolor) !important;
}

[data-col="Pos"],
[data-col="Track"] {
  max-width: 5rem;
  word-break: keep-all;
}

[data-col="Duration"] {
  max-width: 8rem;
  min-width: 8rem;
  word-break: keep-all;
}

.viewListItem [data-col="Duration"] {
  max-width: none;
}

[data-col="Type"] {
  width: 3rem;
  word-break: keep-all;
}

[data-col="Action"] {
  width: 2rem;
  text-align: right;
  word-break: keep-all;
  padding: 0.25rem !important;
}

[data-col="Action"] a.mi,
.card-footer a.mi,
.list-actions a.mi {
  font-size: var(--mympd-quickaction-size);
}

table[data-rw="false"] [data-col="Action"] a[data-action="quickRemove"] {
  display: none;
}

table.smallWidth [data-col="Action"] {
  word-break: break-all;
}

div.card {
  word-break: normal;
  overflow-wrap: anywhere;
  margin-bottom: 2rem;
}

.album-cover {
  background-size: cover;
  border: 1px solid var(--bs-black);
  border-radius: 5px;
  overflow: hidden;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  background-color: var(--bs-gray-200);
  position: relative;
  z-index: 1;
}

div#homeActions {
  position: absolute;
  right: 1rem;
  top: 0.5rem;
}

#HomeContainer {
  margin-left: -1rem;
  width: calc(100% + 1rem);
}

.home-widgets {
  max-width: calc(100vW - 2rem);
  font-size: 90%;
  margin-bottom: 1rem !important;
}

.home-widget-1x1 {
  width: 8rem;
  height: 7rem;
}

.home-widget-1x2 {
  width: 8rem;
  height: 15rem;
}

.home-widget-1x3 {
  width: 8rem;
  height: 23rem;
}

.home-widget-2x1 {
  width: 17rem;
  height: 7rem;
}

.home-widget-2x2 {
  width: 17rem;
  height: 15rem;
}

.home-widget-2x3 {
  width: 17rem;
  height: 23rem;
}

.home-widget-3x1 {
  width: 26rem;
  height: 7rem;
}

.home-widget-3x2 {
  width: 26rem;
  height: 15rem;
}

.home-widget-3x3 {
  width: 26rem;
  height: 23rem;
}

.home-icons {
  width: 8rem;
  height: 8rem;
  min-height: 0 !important;
  margin-bottom: 1.25rem;
  overflow: hidden;
  max-width: 100%;
  text-align: center;
  padding-top: 0.8rem;
  border-radius: 0;
}

.home-icons .card-title {
  font-size: 2rem;
  height: 4rem;
  width: 4rem;
  padding: 1rem 0 0 0;
  background-size: cover;
  background-position: center center;
  background-color: var(--mympd-highlightcolor);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-icons .card-body {
  border-top: none;
  background-color: transparent;
}

.card-grid {
  width: var(--grid-thumbnail-size);
  min-height: 0 !important;
  margin-bottom: 1.25rem;
  overflow: hidden;
  max-width: 100%;
  background-color: var(--bs-card-cap-bg);
}

.card-body-grid {
  white-space: var(--mympd-card-footer-white-space);
  font-size: 0.9rem;
}

.card-body-grid > * {
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-footer-grid a {
  flex: 1 1 auto !important;
  padding: 0.5rem 0;
  text-align: center;
}

.card-footer-grid button {
  padding: 0.5rem 0;
}

.cover-grid > img {
  object-fit: cover;
}

.list-image {
  width: 6rem;
  max-width: 6rem;
  height: 6rem;
  margin-right: 1rem;
}

.list-image > img {
  object-fit: cover;
  width: 6rem;
  height: 6rem;
  border-radius: 0.375rem;
}

.thumbnail {
  object-fit: cover;
  width: 2rem;
  height: 2rem;
  border-radius: 0.2rem;
}

@media only screen and (300px <= width <= 400px) {
  .card-grid {
    width: calc((100vw - 4rem) / 2);
  }

  .cover-grid {
    width: calc((100vw - 4rem) / 2);
    height: calc((100vw - 4rem) / 2);
  }
}

.cover-loading {
  background-image: url("../assets/coverimage-mympd");
}

div.card-toolbar {
  margin-bottom: 0.8rem;
  margin-right: -0.5rem;
}

div.card-toolbar > div {
  margin-bottom: 0.6rem;
}

@font-face {
  font-family: "Material Icons";
  font-style: normal;
  font-weight: 400;
  src: url("../assets/MaterialIcons-Regular.woff2") format("woff2");
}

.mi,
.sort-dir::before,
a.external::before,
a.download::before,
a.launch::before,
body.locked button.protected::before,
div.alert-warning::before,
div.alert-danger::before,
div.alert-secondary::before,
div.alert-success::before,
h4.offcanvas-title::before {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  text-transform: none;
  letter-spacing: normal;
  overflow-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  text-rendering: optimizelegibility;
  font-feature-settings: "liga";
}

.mi {
  font-size: 1.4rem;
  line-height: 1;
  vertical-align: top;
}

.mi-sm {
  font-size: 1rem;
}

.mi-lg {
  font-size: 3rem;
}

button.mi {
  line-height: 1.5rem;
}

button.mi::after {
  font-size: 1rem;
}

.pagination button {
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}

.btnCleanup {
  min-width: 8rem;
}

.volumeRangeDiv {
  padding-bottom: 0;
  padding-top: 0.5rem;
}

#volumeBar,
#localPlaybackVolumeBar {
  min-width: 10rem;
}

.form-range::-webkit-slider-thumb,
.form-range::-webkit-slider-thumb:active {
  background-color: var(--mympd-highlightcolor);
}

.form-range::-moz-range-thumb,
.form-range::-moz-range-thumb:active {
  background-color: var(--mympd-highlightcolor);
}

.title-icon {
  margin-right: 0.5rem;
  font-size: 1.8rem;
}

.col-md {
  max-width: 250px;
  min-width: 250px;
}

div#alertBox {
  position: fixed;
  bottom: 6rem;
  right: 1rem;
  width: 80%;
  max-width: 350px;
  z-index: 1000;
}

.opacity05 {
  opacity: 0.5;
}

caption {
  caption-side: top;
  font-size: 120%;
  font-weight: bold;
}

tfoot td {
  text-align: right;
  border-bottom: none;
}

.dropdownHomeIconLigature {
  width: 60vw;
}

.dragover,
.dragover > td {
  border-top: 2px solid var(--mympd-highlightcolor) !important;
}

.dragover-left {
  border-left: 1px solid var(--mympd-highlightcolor) !important;
  padding-left: 1rem !important;
}

[draggable] {
  user-select: none;
}

div.key {
  border: 1px solid var(--bs-gray-200);
  background-color: var(--bs-gray-600);
  border-radius: 2px;
  width: 2rem;
  height: 2rem;
  text-align: center;
  line-height: 2rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

@media only screen and (width <= 576px) {
  div#shortcutList > div.col-6 {
    width: 100%;
  }

  [data-col="Duration"] {
    max-width: none;
    min-width: auto;
  }
}

.colCover {
    max-width: 27rem;
}

.dropdown-item:focus {
  background-color: inherit;
}

.offcanvas-body {
  --bs-offcanvas-padding-x: 0;
}

.offcanvas-body .dropdown-item {
  padding: 0.2rem 1.5rem;
}

.form-control:focus {
  border-color: var(--mympd-highlightcolor) !important;
}

.form-check-input:checked {
  background-color: var(--mympd-highlightcolor);
  border-color: var(--mympd-highlightcolor);
}

.btn-xs {
  padding: 0 0.25rem;
  border-radius: 0.2rem;
}

.btn:not(:disabled):not(.disabled).active,
.show > .btn.dropdown-toggle {
  color: var(--mympd-highlightcolor-contrast) !important;
  background-color: var(--mympd-highlightcolor) !important;
  border-color: var(--mympd-highlightcolor) !important;
}

button.active > a {
  color: var(--mympd-highlightcolor-contrast);
}

.dropdownHomeIconLigature .row {
  margin-right: 0;
  margin-bottom: 1rem;
}

.homeIconLigatureList {
  max-height: 60vh;
  overflow-y: scroll;
}

.form-check {
  padding-left: 0;
}

.carousel-item {
  background-position: center center;
  background-size: cover;
}

.carousel-item > div {
  padding-top: 100%;
}

.carousel-indicators [data-bs-target] {
  border-color: transparent !important;
}

#top-alerts {
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
  margin-top: 3.5rem;
}

.top-alert {
  border-radius: 0;
  border-left: none;
  border-right: none;
  padding-top: 0.3rem;
  padding-bottom: 0.2rem;
  margin-bottom: 0;
}

.top-alert-dismissible .btn-close {
  position: absolute;
  top: 0.25rem;
  right: 0;
  z-index: 2;
  padding: 0.25rem 1.25rem;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFF'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
}

.top-alert-dismissible .btn-retry {
  position: absolute;
  top: 0.25rem;
  right: 0;
  z-index: 2;
  padding: 0 1.25rem;
  border: 0;
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  color: var(--bs-danger-text-emphasis);
  background: transparent;
}

.alert-dismissible .btn-close {
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFF'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
}

.lyricsText {
  padding-bottom: 1rem;
  padding-left: 0.2rem;
  overflow-y: auto;
  max-height: 12rem;
}

.lyricsSyncedText > p > span {
  scroll-margin: 3rem;
}

.lyricsSyncedText > p {
  margin-bottom: 0;
}

#currentLyrics > p.expanded {
  max-height: none;
}

div#footerProgressPos {
  display: none;
  position: absolute;
  bottom: 6rem;
  left: 0;
  border-radius: 0.25rem;
  background-color: var(--bs-secondary-bg);
}

body.mobile div#footerProgressPos {
  bottom: 7rem;
}

div.active #badgeQueueItems {
  filter: brightness(80%);
}

.btn .badge {
  top: -2px;
  left: 7px;
}

div.cardsContainer {
  padding-right: 5px;
  padding-left: 5px;
}

div.cardsContainer .col {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

div#HomeList {
  margin-right: 0;
}

div#modalPictureImg {
  background-position: center center;
  background-size: cover;
  padding-top: 100%;
  width: 100%;
}

div#BrowseFilesystemImages {
  height: calc(var(--grid-thumbnail-size, 175px) + 1rem);
  margin-bottom: 1rem;
  overflow: auto hidden;
  white-space: nowrap;
}

div#BrowsePlaylistDetailImage {
  height: calc(var(--grid-thumbnail-size, 175px) + 1rem);
  margin-bottom: 1rem;
}

div#BrowseFilesystemImages > div,
div#BrowsePlaylistDetailImage > div {
  height: var(--grid-thumbnail-size, 175px);
  width: var(--grid-thumbnail-size, 175px);
  background-position: center center;
  background-size: cover;
  display: inline-block;
  margin-right: 1rem;
  cursor: pointer;
}

div#BrowsePlaylistDetailSticker > table {
  width: unset;
}

div.homeIconPreview {
  background-position: center center;
  background-size: cover;
  width: 4rem;
  height: 4rem;
  font-size: 2rem;
  padding-bottom: 0;
  text-align: center;
  padding-top: 1rem;
}

div.gridQuickButton {
  background-color: rgba(0, 0, 0, 50%);
  color: var(--bs-white);
  width: 3rem;
  height: 3rem;
  padding: 0.3rem;
  font-size: 2.4rem;
}

div.gridQuickButton:hover {
  background-color: var(--mympd-highlightcolor);
}

.dropdownWide {
  width: 20rem;
}

.fullHeight {
  overflow: unset;
  max-height: none;
}

.lyricsChangeButton {
  max-width: 10rem;
}

.font-monospace {
  font-size: 90%;
}

.input-group-text-nobg {
  padding: 0.375rem 0.75rem;
}

input[type="color"] {
  height: 2.35rem;
}

body.locked button.protected::before {
  content: "lock";
  float: left;
  font-size: 1.4rem;
  line-height: 1;
  margin-right: 0.5rem;
}

a.external::before,
a.download::before,
a.launch::before {
  font-size: 1.4rem;
  line-height: 1;
  margin-right: 0.5rem;
  vertical-align: top;
}

a.external::before {
  content: "open_in_browser";
}

a.download::before {
  content: "download";
}

a.launch::before {
  content: "launch";
}

/* inner button for inputs */
button.input-inner-button,
button.input-inner-button:hover,
button.input-inner-button:active,
button.input-inner-button:focus {
  border: none;
  color: inherit;
  background-color: transparent !important;
  height: 2.4rem;
  position: absolute;
  top: 0;
  right: 0;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  z-index: 5;
}

button.select-inner-button {
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  width: 2rem;
}

.no-flex {
  width: auto !important;
  flex: unset !important;
}

.modal-footer > button,
.modal-footer > div > button {
  min-width: 6rem;
}

div.alert-warning::before,
div.alert-danger::before,
div.alert-secondary::before,
div.alert-success::before {
  float: left;
  font-size: 1.4rem;
  line-height: 1;
  margin-right: 0.5rem;
}

div.alert-warning::before {
  content: "warning";
}

div.alert-danger::before {
  content: "error_outline";
}

div.alert-secondary::before {
  content: "info";
}

div.alert-success::before {
  content: "info";
}

div.alert-secondary {
  background-color: transparent !important;
  border-color: transparent;
  color: inherit;
  margin-bottom: 0;
}

div#alertUpdateDBState::before,
div#alertUpdateCacheState::before {
  content: "autorenew";
}

input.innerButton {
  padding-right: calc(1.5em + 0.75rem);
}

.btn-group2 {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}

.list-group-scroll {
  max-height: 12rem;
  overflow-y: auto;
}

button.weekday {
  min-width: 3rem;
}

@keyframes flash-border {
  0% {
    border-color: var(--mympd-highlightcolor);
  }

  50% {
    border-color: transparent;
  }

  100% {
    border-color: var(--mympd-highlightcolor);
  }
}

.border-progress {
  border-top: 3px solid var(--mympd-highlightcolor);
  animation-name: flash-border;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.dropdown-menu {
  max-width: 80vw;

  --bs-dropdown-zindex: 1050;
  --bs-dropdown-min-width: 12rem;
}

.dropdown-item {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap
}

.mirror {
  transform: scale(1, -1);
}

#offcanvasContext .dropdown-item {
  padding-left: 1rem;
}

.dropdown-divider2 {
  height: 0;
  margin-top: 1.5rem;
  margin-left: -1rem;
  margin-right: -1rem;
  overflow: hidden;
  opacity: 1;
}

.toast {
  --bs-toast-header-bg: unset;
  --bs-toast-bg: var(--bs-body-bg);
}

table[data-mode="select"] > thead > tr > th[data-col="Action"] > a,
table[data-mode="select"] > tbody > tr > td[data-col="Action"] > a,
div[data-mode="select"] .card-footer > a,
div[data-mode="select"] .list-actions > a {
  display: none;
}

:not(table[data-mode="select"]) > thead > tr > th[data-col="Action"] > button,
:not(table[data-mode="select"]) > tbody > tr > td[data-col="Action"] > button,
:not(div[data-mode="select"]) > div > div > .card-footer > button,
:not(div[data-mode="select"]) > div > div > .list-actions > button {
  display: none;
}

th[data-col="Action"] > button,
td[data-col="Action"] > button {
  padding: 0;
}

tr.selected > td,
.mympd-grid > div > .selected,
.listContainer > div > .selected {
  background-color: var(--mympd-highlightcolor);
}

tr.selected:hover > td {
  opacity: 0.9;

  --bs-table-bg-state: var(--mympd-highlightcolor);
}

div.selected .card-body{
  border-top-right-radius: var(--bs-border-radius);
  border: 4px solid var(--mympd-highlightcolor);
  border-top-left-radius: var(--bs-border-radius);
}

tr.selected td,
tr.selected td button {
  color: var(--mympd-highlightcolor-contrast);
}

body.not-mobile .table-responsive {
  padding-right: 0.5rem;
}

body[data-uiState="disabled"] a:not(.alwaysEnabled),
body[data-uiState="disabled"] button:not(.alwaysEnabled),
body[data-uiState="disabled"] input:not(.alwaysEnabled),
body[data-uiState="disabled"] select:not(.alwaysEnabled),
body[data-uiState="disabled"] textarea:not(.alwaysEnabled),
body[data-uiState="disabled"] .clickable,
body[data-uiState="disabled"] .input-group-text,
body[data-uiState="disabled"] small,
body[data-uiState="disabled"] th,
.disabled {
  pointer-events: none !important;
  cursor: not-allowed !important;
  opacity: 0.4 !important;
}

h4.offcanvas-title::before {
  font-size: 1.4rem;
  line-height: 1;
  margin-right: 0.5rem;
}

h4.offcanvas-title-webradio::before {
  content: "radio";
}

h4.offcanvas-title-homeicon::before {
  content: "home";
}

h4.offcanvas-title-homewidget::before {
  content: "widgets";
}

h4.offcanvas-title-search::before {
  content: "saved_search";
}

h4.offcanvas-title-album::before {
  content: "album";
}

h4.offcanvas-title-dir::before {
  content: "folder_open";
}

h4.offcanvas-title-song::before {
  content: "music_note";
}

h4.offcanvas-title-plist::before {
  content: "list";
}

h4.offcanvas-title-smartpls::before {
  content: "queue_music";
}

h4.offcanvas-title-script::before {
  content: "code";
}

h4.offcanvas-title-modal::before {
  content: "web_asset";
}

h4.offcanvas-title-externalLink::before {
  content: "link";
}

h4.offcanvas-title-stream::before {
  content: "stream";
}

.help {
  display: var(--mympd-show-help);
  margin-top: 0.5rem;
  color: var(--bs-secondary-text-emphasis);
}

.is-invalid > .invalid-feedback {
  display: block;
}

.btnHelp {
  min-width: fit-content !important;
  display: var(--mympd-show-help-btn);
}

.playbackPopoverBtns button {
  width: 3rem;
}

.playbackPopoverBtns input {
  max-width: 6rem;
}

.fieldsEnabled > li > div.fieldsAvailableBtns {
  display: none;
}

.fieldsAvailable > li > div.fieldsEnabledBtns {
  display: none;
}

.fieldsEnabled > li:last-child > div.fieldsEnabledBtns > button:last-child {
  visibility: hidden;
}

.fieldsEnabled > li:first-child > div.fieldsEnabledBtns > button:nth-child(2) {
  visibility: hidden;
}

table div.alert {
  color: var(--bs-alert-color);
  background-color: var(--bs-alert-bg);
}

.colMaxContent {
  max-width:fit-content;
}

.listThumbnailBadge {
  position: relative;
  top: -1.4rem;
  font-size: 80%;
}

.viewListItem {
  background-color: transparent;
}

.modal-body > .alert {
  margin-bottom: 0;
  margin-top: 1rem;
}

iframe.widgetIframe {
  width: 100%;
  height: 100%;
}
