/* Taxonomy menu icon */
:root {
  --taxonomy-menu-item: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-tag'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'%3E%3C/path%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'%3E%3C/line%3E%3C/svg%3E");
}
ul > li.menu-item.menu-item > a[data-drupal-link-system-path="admin/structure/taxonomy"]:before,
#mobile-menu-more a[data-drupal-link-system-path="admin/structure/taxonomy"]:before {
  -webkit-mask-image: var(--taxonomy-menu-item);
  mask-image: var(--taxonomy-menu-item);
}

/* Flexiflow logo */
.toolbar .toolbar-bar #toolbar-item-administration-tray .toolbar-icon-admin-toolbar-tools-help.toolbar-icon-default::before,
.toolbar .toolbar-bar #toolbar-item-administration-tray a.toolbar-icon-admin-toolbar-tools-help.toolbar-icon-default:hover::before {
  -webkit-mask: unset;
  mask: unset;
  background: url('../media/logo-icon.svg') no-repeat center;
  background-size: contain;
}
@media (min-width: 61em) {
  body.gin--vertical-toolbar[data-toolbar-menu='open'] .toolbar .toolbar-bar #toolbar-item-administration-tray a.toolbar-icon-admin-toolbar-tools-help.toolbar-icon-default::before  {
    width: 162px;
    background: url('../media/logo.svg') no-repeat center;
    background-size: auto 32px;
  }
  body.gin--vertical-toolbar .toolbar .toolbar-bar #toolbar-item-administration-tray a.toolbar-icon-admin-toolbar-tools-help.toolbar-icon-default::before  {
    transition: width 0.2s linear;
  }
}

/* Login page */
body.path-user .user-form-page__user-form .content-header .layout-container {
  text-align: center;
}
body.path-user .user-form-page__user-form .content-header .layout-container .toolbar-logo {
  background: url('../media/logo.svg') no-repeat top center;
  background-size: contain;
  padding-top: 33%;
  width: 100%;
}
body.path-user .user-form-page__user-form .toolbar-icon-home {
  max-height: 8rem;
  margin: auto;
}

/* Ajax Loader */
.ajax-progress.ajax-progress--throbber {
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--gin-color-focus-neutral-rgb);
  position: fixed;
  z-index: 1000;
  margin: 0;
}
.ajax-progress.ajax-progress--throbber .ajax-progress__message {
  position: fixed;
  top: calc(50vh + 4rem);
  left: calc(50vw - 5rem);
  width: 10rem;
  color: white;
  text-align: center;
  background: var(--gin-color-focus-neutral-rgb);
  border-radius: var(--gin-spacing-xs);
  padding: var(--gin-spacing-xs);
}
.ui-dialog.entity-browser-modal .ui-dialog-content .ajax-progress-throbber::before,
.ajax-progress.ajax-progress--throbber .ajax-progress__throbber {
  top: calc(50vh - 1.5rem);
  left: calc(50vw - 1.5rem);
  position: fixed;
  z-index: 1001;
  width: 4rem;
  height: 4rem;
  border: 10px solid white;
  border-right: 6px solid transparent;
}
.ui-dialog.entity-browser-modal .ui-dialog-content .ajax-progress-throbber::before {
  border: 2px solid var(--gin-color-primary);
  border-inline-end: 2px dotted transparent;
  border-radius: 50%;
}

@media (max-width: 60.99em) {
  /* mobile friendly views table */
  .mobile-table table.views-table thead {
    display: none;
  }
  .mobile-table table.views-table td {
    display: flex;
  }
  .mobile-table table.views-table td::before {
    content: attr(label);
    font-weight: bold;
    width: 45%;
    min-width: 45%;
    margin-right: 5%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Calendar */
table.ui-datepicker-calendar th span {
  display: block;
  text-align: center;
}
table.ui-datepicker-calendar td a.ui-state-default {
  text-align: center;
  border: none;
  background: none;
  color: var(--gin-color-primary);
}
table.ui-datepicker-calendar td a.ui-state-default.ui-state-highlight {
  background: var(--gin-color-primary-light);
  border-radius: var(--gin-border-l);
  color: var(--gin-color-primary);
}

/* Hide form edit modes */
body.admin-content-page #block-gin-local-actions .local-actions li {
  display: none;
}
body.admin-content-page #block-gin-local-actions .local-actions li:has(a[data-drupal-link-system-path='node/add']) {
  display: block;
}

/* Chosen */
.form-element.chosen-container .chosen-drop {
  border: 1px solid var(--gin-border-color-form-element);
  margin-left: calc(-1px - 0.2rem);
  width: calc(100% + 2px);
  border-top: none;
  margin-top: -5px;
}
.form-element.chosen-container .chosen-drop .chosen-results {
  color: var(--gin-color-text);
  background-color: var(--gin-bg-input);
}
.form-element.chosen-container .chosen-drop .chosen-results li {
  padding: calc(0.75rem - 1px) calc(1rem - 1px);
  line-height: 1.5rem;
}
.form-element.chosen-container:hover .chosen-drop {
  border-color: var(--gin-color-text);
  box-shadow: inset 0 0 0 1px var(--gin-color-text);
  border-width: 2px;
}
.form-element.chosen-container .chosen-results li.highlighted {
  color: var(--gin-color-text);
  background-color: var(--gin-color-primary-light-hover);
  background-image: none;
}
.form-element.chosen-container-multi {
  padding: 0.2rem;
}
.form-element.chosen-container-multi .chosen-choices {
  padding: 0;
}
.form-element.chosen-container-multi .chosen-choices li.search-choice {
  line-height: 1.5rem;
  font-weight: bold;
  color: var(--gin-color-primary-active);
  background: none;
  background: var(--gin-color-primary-light);
  border: none;
  border-radius: var(--gin-border-m);
  padding: 0.5rem 1.5rem 0.5rem 1rem;
  margin: 0 0.4rem 0 0;
}
.form-element.chosen-container-multi .chosen-choices li.search-field {
  padding: calc(0.45rem - 1px) calc(0.7rem - 1px);
}
