/* This styling is added globally to admin areas. */
/* 
 * Eventually, we'll move this into a better workflow for SCSS goodness.
 * For now, use to gather styles that you might otherwise inline in templates.
 */

/* Wagtail admin changes */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Mulish&display=swap");

.homepage header {
    padding-bottom: 3em;
}
header h2 {
    text-transform: none;
}

h1 {
    font-weight: 600;
}

.logo {
    padding: 4px 20px;
    box-sizing: border-box;
    margin: 0.5rem auto 1rem;
}

.nav-search input {
    border-radius: 4px;
}

.normal-case {
    text-transform: unset;
}

.nolink {
    color: #842eb7;
    font-weight: bold;
}

.table-text-secondary {
    color: var(--w-color-secondary);
    pointer-events: none;
}

.table-text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100px;
}

.object {
    padding-left: 50px;
    padding-right: 50px;
}

.object.privacy {
    padding-bottom: 50px;
}

input[type="checkbox"],
input[type="radio"],
input[type="color"] {
    padding: 0;
}

input[type="file"] {
    font-size: 1rem;
}

@media screen and (min-width: 50em) {
    footer {
        margin-left: calc(50px - 0.75em);
        margin-right: 50px;
        width: calc(80% - 50px);
    }
}

header .right #status-live-draft,
header .right #status-live,
header .right .status-tag {
    margin: 0.5rem 0;
}

#changelist-search {
    position: relative;
}

.icon-search > #id_q {
    padding: 5px 0px 5px 35px;
}

.icon-search > #id_q::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    font-size: small;
}
.icon-search > #id_q::-moz-placeholder {
    /* Firefox 19+ */
    font-size: small;
}
.icon-search > #id_q:-ms-input-placeholder {
    /* IE 10+ */
    font-size: small;
}
.icon-search > #id_q:-moz-placeholder {
    /* Firefox 18- */
    font-size: small;
}

.listing th.ord {
    width: 2rem;
}

.pagination {
    margin-top: 3rem;
}

/* CTA Panel */

.cta .result-list.col9.no-results {
    overflow: hidden;
    transform: rotateX(0);
}

.cta .result-list.col9 {
    overflow-x: scroll;
    overflow-y: hidden;
    transform: rotateX(180deg);
}

.cta .listing.full-width {
    width: 900px;
    min-width: 100%;
    margin-bottom: 0;
    transform: rotateX(180deg);
}

.column-get_naming {
    width: 40%;
}

.ctas-sortable > li {
    width: calc(33% - 2rem);
    box-sizing: border-box;
    float: left;
    border: 1px dashed rgb(200, 209, 224);
    padding: 1rem;
    margin: 1rem;
    border-radius: 4px;
    position: relative;
}

.ctas-sortable > li .model_choice_field {
    padding-bottom: 0;
}

.ctas-sortable > li > fieldset {
    padding: 0;
}

.ctas-sortable > li .controls {
    position: absolute;
    right: 6px;
    bottom: 6px;
}

.ctas-timed-sortable > li {
    border: 1px solid rgb(200, 209, 224);
    margin-top: 1rem;
    border-radius: 4px;
    padding: 0.5rem 1rem 0.5rem 1.5rem;
    position: relative;
}

.ctas-timed-sortable > li > fieldset {
    padding: 0;
}

.ctas-timed-sortable > li .controls {
    position: absolute;
    right: 6px;
    bottom: 6px;
}

.ctas-timed-sortable .field-content {
    width: 100%;
}
.cta-button {
    border: 0;
    font-family: "Muli", "Open Sans", sans-serif;
    font-size: .9375rem;
    font-weight: 600;
    width: auto;
    color: #fff;
    padding: 0.625rem 1rem;
    border-width: thin;
    box-shadow: 0 0 1.7px #00000020, 0 0 10px #00000040;
    color: #002e3f;
    border-radius: 0.5rem;
    text-transform: capitalize;
    background-color: #fff;
    display: inline-block;
    border: 1px solid #ccc;
}


.cta-add-one {
    background: none;
    border: none;
    padding: 0;
    color: #069;
}

@media screen and (max-width: 1024px) {
    .ctas-sortable > li {
        width: 100%;
    }
}

.ctas-timed-container {
    display: inline-flex;
    width: 100%;
}

.ctas-timed-container-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ctas-timed-container-item_name {
    flex-basis: 40%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.button.sortable-handle {
    background: transparent;
    border: 0;
    color: #666;
}

/* CTA Modeladmin */
.field-cta_preview {
    min-width: 220px;
}
.field-cta_action a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.plate,
.place-inline-panel,
.labels {
    display: table;
    width: -webkit-fill-available;
    width: -moz-available;
}

.object.full-width {
    padding-left: 0;
    padding-right: 0;
    padding-top: 40px;
}

.object.full-width fieldset {
    max-width: 100%;
    display: block;

    float: none;
    margin-left: -51px;
    padding: 0;
    padding-top: 34px;
}

.object.full-width .fields > li {
    padding-bottom: 0;
}

.hide {
    display: none;
}

/* Page lists */
.listing .children span {
    position: absolute;
    top: 1em;
    right: 1em;
    color: #666;
}

.listing tr:hover .children span {
    color: #4346bc;
}
.listing tr:hover .children:hover span {
    color: #3a3aa2;
}

/* Edit / Create */
.conditional-panel.object {
    padding-left: 0;
    padding-right: 0;
}

.page-editor .header-meta li .icon-fa {
    font-size: 16px;
    width: auto !important;
    display: inline-block;
}

/* Reports */
.unassigned-panorama .title {
    font-size: 1.2em;
    font-weight: bold;
    color: #262626;
}

.unassigned-panorama .title:hover,
.unassigned-panorama .title:focus {
    color: #842eb7;
}

/* Place model editing on Pages */

.place-inline-panel li fieldset {
    max-width: 100%;
    padding-top: 0;
}

.place-inline-panel .add {
    display: none;
}

.place-inline-panel .add > .disabled {
    display: none;
}

.place-inline-panel .mapbox {
    margin: 0.5rem  0;
    border: 1px solid #e6e6e6 !important;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.33);
    padding: 1px;
}

.place-inline-panel .mapbox {
    border-radius: 4px;
}

.place-inline-panel .point_field .title-wrapper {
    background: #fff;
    padding-left: 0.9em;
}

.place-inline-panel .point_field .title-wrapper::before {
    display: none;
}

.mapboxgl-ctrl-geocoder--input {
    width: 15rem !important;
    padding-left: 2rem !important;
    font-size: small !important;
}

/* Images */
.image-choice small {
    color: #666;
}

.listing.images > li {
    min-height: 250px;
}

.bar-spacing {
    border-width: 1px 0;
    margin: 3em 0;
}

.results-text {
    font-size: medium;
}

.all-tags {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.showmore {
    cursor: pointer;
    float: right;
}

.zoom-image {
    transition: transform .2s; /* Animation */
    margin: 0 auto;
    display: inline-grid;
    height: auto;
}
  
.zoom-image:hover {
    transform: scale(1.5);
    transition-delay: 1s; /* Delay */
    z-index: 900;
}

.zoom-image > img { 
    max-height: 180px;
}

/* Nav */

/* Improves alignment for FA icons */
.nav-main .menu-item a:before {
    width: 16px;
    text-align: center;
    display: inline-block;
}

.icon-fa-rotate-90 {
    transform: rotate(90deg);
}


.icon-fa-3x {
    font-size: 25px;
    margin: auto;
}

.icon-fa-2x {
    font-size: 20px;
    margin: auto;
}

.header-title {
    display: inline-flex;
    align-items: center;
}

.header-title-icon {
    margin-right: 0.5em;
    /* font-size: xx-large; */
}

.menuitem-label {
    margin-left: 0.8em !important;
}

/* Listing views */
.page__thumbnail {
    width: calc((36px + var(--w-density-factor) * 36px));
    float: left;
    margin-right: 1rem;
    border-radius: 4px;
}
.page__content-type {
    font-size: 13px;
    margin-bottom: 0px;
    font-weight: 500;
    color: var(--color-text-label);
}
.page__avatar-thumbnail {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    object-fit: cover;
    float: left;
    margin-right: 0.75rem;
    /* margin-bottom: 2rem; */
}

.page__appears-in {
    color: var(--color-text-label);
    font-weight:normal;
    font-size:0.75rem;
    a {
        display: block;
        text-wrap: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.page__no-thumbnail {
    width: calc((36px + var(--w-density-factor) * 36px));
    height: calc((27px + var(--w-density-factor) * 27px));
    margin-right: 1rem;
    float: left;
    display: flex;
    justify-content: center;
    background: var(--w-color-surface-page);
    border-radius: 4px;
    border: 1px solid #ccc;
    flex-direction: column;
}

.page__no-thumbnail span {
    color: #666;
    font-size: calc(0.25rem + var(--w-density-factor) * 0.25rem);
    text-transform: uppercase;
    align-self: center;
}

.page__no-thumbnail .icon {
    align-self: center;
}

/* Choosers */
.page-chooser .chosen:before,
.page-chooser .unchosen:before {
    display: none;
}

/* Remove page icon */
.chooser__contenttype {
    font-size: 0.75rem;
    display: inline-block;
}

.chooser__title {
    font-size: 1rem;
    font-weight: 600;
    padding-left: 0 !important;
}

.w-status.status-live {
    background: #3fb18e;
    color: white;
    border: 1px solid white;
    font-size: 0.9em;
}

.w-status.status-live-draft {
    background: #ece796;
    color: black;
    border: 1px solid white;
    font-size: 0.9em;
}

a.w-status:hover, a.w-status:focus {
    background: unset;
}

.chooser.blank .unchosen {
    display: block;
    display: inline-flex;
    align-content: stretch;
    justify-content: space-evenly;
    align-items: start;
}

#id_background_video-chooser > .chosen {
    width: max-content;
}

#id_background_video-chooser > .chosen > .preview-image {
    padding-right: 20px;
    float: left;
    height: 100px;
}

#id_background_video-chooser > .chosen > .title {
    padding: 0px 3px;
    margin-left: -12px;
}

#id_background_video-chooser > .chosen > .actions {
    display: inline;
}

/* Share Dialog */
.share-dialog__content h3 {
    margin-bottom: 0.25em;
    font-weight: 600;
}
.share-dialog__content textarea,
.share-dialog__content input {
    font-size: 14px;
    padding: 8px;
}
.share-dialog__content__option {
    margin-top: 1rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.modal-content {
    border-radius: 1.5rem;
}
.modal .close.button {
    color: var(--w-color-primary);
}
.modal-body .w-header {
    background-color: unset;
    font-size: 1.25rem;
    font-weight: 650;
    color: var(--w-color-primary);
    padding-inline-start: 0rem;
    .icon {
        display: none;
    }
    .row {
        padding-top: 1.5rem;
    }
}

.w-dialog__close-button {
    display: none;
}

.share-modal-dialog .w-dialog__box {
    width: 65vw !important;
    height: 95vh !important;
    .content {
        height: unset;
    }
    .w-status {
        margin-bottom: 0 !important;
    }
    .w-field__label {
        line-height: 0.8 !important;
    }
    [data-tabs-target="trigger"]:focus:not(:focus-visible) {
        outline: none;
    }
}

.share-modal-dialog .w-dialog__box, .w-theme-light .share-modal-dialog .w-dialog__box {
  scrollbar-color: var(--w-color-grey-100) transparent;
  .iframe-preview-container {
    background-color: oklch(from var(--w-color-primary) 95% 0.03 h);
    background-image: repeating-linear-gradient(
      45deg,
      oklch(from var(--w-color-primary) 85% 0.06 h) 0,
      oklch(from var(--w-color-primary) 85% 0.06 h) 1px,
      oklch(from var(--w-color-primary) 95% 0.03 h) 0,
      oklch(from var(--w-color-primary) 95% 0.03 h) 50%
    );
    background-size: 10px 10px;
    opacity: 0.5;
  }
}

.w-theme-dark .share-modal-dialog .w-dialog__box {
  scrollbar-color: var(--w-color-border-field-inactive) transparent;
  .iframe-preview-container {
    background-color: oklch(from var(--w-color-primary) 20% 0.04 h);
    background-image: repeating-linear-gradient(
      45deg,
      oklch(from var(--w-color-primary) 28% 0.07 h) 0,
      oklch(from var(--w-color-primary) 28% 0.07 h) 1px,
      oklch(from var(--w-color-primary) 20% 0.04 h) 0,
      oklch(from var(--w-color-primary) 20% 0.04 h) 50%
    );
    background-size: 10px 10px;
    opacity: 0.5;
  }
}

@media (prefers-color-scheme: light) {
  .w-theme-system .share-modal-dialog .w-dialog__box {
    scrollbar-color: var(--w-color-grey-100) transparent;
    .iframe-preview-container {
      background-color: oklch(from var(--w-color-primary) 95% 0.03 h);
      background-image: repeating-linear-gradient(
        45deg,
        oklch(from var(--w-color-primary) 85% 0.06 h) 0,
        oklch(from var(--w-color-primary) 85% 0.06 h) 1px,
        oklch(from var(--w-color-primary) 95% 0.03 h) 0,
        oklch(from var(--w-color-primary) 95% 0.03 h) 50%
      );
      background-size: 10px 10px;
      opacity: 0.5;
    }
  }
}

@media (prefers-color-scheme: dark) {
  .w-theme-system .share-modal-dialog .w-dialog__box {
    scrollbar-color: var(--w-color-border-field-inactive) transparent;
    .iframe-preview-container {
      background-color: oklch(from var(--w-color-primary) 20% 0.04 h);
      background-image: repeating-linear-gradient(
        45deg,
        oklch(from var(--w-color-primary) 28% 0.07 h) 0,
        oklch(from var(--w-color-primary) 28% 0.07 h) 1px,
        oklch(from var(--w-color-primary) 20% 0.04 h) 0,
        oklch(from var(--w-color-primary) 20% 0.04 h) 50%
      );
      background-size: 10px 10px;
      opacity: 0.5;
    }
  }
}

.w-dialog__box {
    border-radius: 1.5rem;
    max-width: unset;
    .w-dialog__content {
        position: relative;
        min-height: 275px;
        padding: 2rem;
        max-height: 95vh;
        ul.listing {
            margin-bottom: 0;
        }
        .w-dialog__title {
            font-size: 1rem !important;
            font-weight: bold !important;
            padding-inline-start: 0rem;
        }
        .w-dialog__subtitle {
            color: var(--w-color-primary);
            padding-inline-start: 0rem;
        }
        .w-dialog__icon {
            inset-inline-start: 0rem;
            display: none;
        }
        button.copy-button {
            position: absolute;
            width: calc(100% - 1rem);
            border-radius: 0.3rem;
            display: flex;
            justify-content: center;
            .icon {
                width: 1rem;
                margin: .5rem;
            }
        }
        textarea {
            padding: 0.5rem;
        }
        .content-wrapper {
            border: none;
        }
    }
    .w-dialog__body {
        #wagtail-sidebar {
            display: none;
        }
        .wrapper {
            padding-inline-start: 0px !important;
            height: unset;
        }
    }
    .w-tabs .tab-content, .w-tabs__list {
        width: auto;
        padding-inline-end: 0rem !important;
        padding-inline-start: 0rem !important;
    }
    .w-tabs__tab:after {
        bottom: -0.125rem;
        height: 0.2rem;
        border-radius: 9999px;
    }
    .w-field__label {
        color: var(--w-color-text-meta);
        font-size: 0.75rem;
        font-weight: 400;
    }
    .w-field__input select {
        display: flex;
        justify-content: center;
        align-items: center;
        border: 1px solid var(--w-color-border-furniture);
        border-radius: 10px;
        background-color: var(--w-color-surface-dashboard-panel);
        width: 175px;
        font-size: medium;
        color: var(--w-color-primary);
        &:disabled {
            background-color: var(--w-color-surface-field-inactive);
            border-color: var(--w-color-border-field-inactive);
            color: var(--w-color-text-placeholder);
            cursor: not-allowed;
        }
    }
    .w-field__input input {
        display: flex;
        justify-content: center;
        align-items: center;
        border: 1px solid var(--w-color-border-furniture);
        border-radius: 10px;
        background-color: var(--w-color-surface-dashboard-panel);
        width: 100px;
        font-size: medium;
        color: var(--w-color-primary);
        &:disabled {
            background-color: var(--w-color-surface-field-inactive);
            border-color: var(--w-color-border-field-inactive);
            color: var(--w-color-text-placeholder);
            cursor: not-allowed;
        }
    }
    .w-field__input__scale input {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 70px;
        border: 1px solid var(--w-color-border-furniture);
        border-radius: 10px;
        background-color: var(--w-color-surface-dashboard-panel);
        color: var(--w-color-primary);
        font-size: small;
        padding: 0 0.75rem;
    }
}

/* shortcuts dialog */
#keyboard-shortcuts-dialog {
    .w-dialog__close-button {
        display: block;
        z-index: 999;
    }

    .w-dialog__content {
        padding: 3rem 5rem;
        max-height: calc(100vh - 180px);
    }

    .w-dialog__title {
        margin-bottom: 0;
        margin-top: 0;
        position: relative;
        color: var(--w-color-text-label);
        font-size: 1.75rem !important;
        font-weight: 800 !important;
        line-height: 1.3;
    }

    .w-dialog__icon {
        display: block;
        color: var(--w-color-icon-primary);
        height: 1.25rem;
        inset-inline-start: -2.5rem;
        position: absolute;
        top: 0;
        transform: translateY(.5rem);
        width: 1.25rem;
    }

    .help-block.help-info {
        background-color: var(--w-color-info-50);
        border-radius: 3px;
        padding: .75rem .5rem .5rem 1.5rem !important;
        position: relative;
        clear: both;
        color: var(--w-color-grey-600);
        margin: 1em 0;
        padding: 1em;
        border-style: solid;
        border-width: 0;
        width: 100%;
    }

    .help-info .icon-help {
        color: var(--w-color-info-100);
        height: 1rem;
        inset-inline-start: .125rem;
        position: absolute;
        top: .8125rem;
        vertical-align: text-top;
        width: 1rem;
        fill: currentColor;
    }

    .help-block p:last-child {
        margin-bottom: 0;
    }

}

@media screen and (max-width: 50em) {
    .copy-button {
        float: right;
    }
}
.open-externally {
    color: #666;
}
.open-externally .icon {
    width: 9px;
    height: 9px;
}

#main:has(#listing-results) {
    overflow: visible;
}

.content:has(#listing-results) {
    padding-bottom:0 !important;
}

#listing-results {
    overflow-x: auto !important;
    overflow-y: visible;
    height: auto;
    padding-bottom: 20em !important;
}

.listing-results-not-scrolled {
    mask-image: linear-gradient(to right, black, black calc(100% - 50px), transparent);
}
.listing-results-scrolled {
    mask-image: linear-gradient(to right, transparent, black 50px, black calc(100% - 50px), transparent);
}
.listing-results-scrolled-end {
    mask-image: linear-gradient(to right, transparent, black 50px);
}

/* Title column constraints */
th.bulk-actions-filter-checkbox, td.bulk-action-checkbox-cell {
    padding: 0 0.25rem 0 1rem !important;
    width: 2.5rem !important;
}
th.title {
    padding-inline-start: 1rem !important;
}
td.title {
  min-width: clamp(24em, 50vw, 40em) !important;
  vertical-align: middle !important;
}

/* Flex alignment for icon + text */
td.title .title-wrapper {
  display: flex !important;
  align-items: left !important;
  gap: 10px !important;
  flex-direction: column;
}
td.title:has(a.parent-page-link) {
  height: 90px !important;
}

/* The anchor wrapping icon + text */
td.title .title-wrapper a {
  display: flex;
  align-items: center !important;
  gap: 8px !important;
  font-size: 1em !important;
  min-width: 0 !important;
  text-decoration: none !important;
  padding-right: 1rem; /* Leave space for locking icon */
}

/* Thumbnail / no-thumbnail icon — don't shrink */
td.title .page__no-thumbnail,
td.title .page__thumbnail {
  flex-shrink: 0 !important;
}

/* Content type label */
td.title .page__content-type {
  display: block !important;
  font-size: 0.75em !important;
  opacity: 0.65 !important;
  white-space: nowrap !important;
}

/* Title text — clamp to 1 line */
td.title .title-wrapper a > span:last-child,
td.title .title-wrapper a {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.listing.listing--dashboard.listing-page {
    td.title {
        padding: calc(clamp(2.5rem*var(--w-density-factor), 2vw, 2.75rem*var(--w-density-factor))) 1em;
    }
    td.title .title-wrapper a > span:last-child,
    td.title .title-wrapper a {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }
}

.listing td.title {
    padding: calc(clamp(1.75rem*var(--w-density-factor), 2vw, 2rem*var(--w-density-factor))) 1em;
    display: revert !important;
    text-align: left;
    position: relative;
    .w-dropdown__toggle {
        position: absolute;
        right: 0;
        transform: translateY(-50%);
    }
    .indicator {
        position: absolute;
        right: 0.1rem;
        transform: translateY(90%);
    }
    .title-wrapper {
        position: absolute;
        left: 1em;
        right: 1.5rem;
        transform: translateY(-50%);
        a:nth-child(2) {
            display: revert;
        }
    }
}

.listing td.title-with-filename {
    .title-wrapper {
        position: static;
    }
}

.listing .children .icon.text-replace:before {
    font-size: 2.5rem;
}
.listing .no-children {
    padding: 0;
    text-align: center;
}
.listing .no-children:hover {
    background-color: #fafafa;
}
.listing .no-children:hover {
    opacity: 1;
}
.listing .no-children button {
    display: block;
    padding: 2em 0;
    background: none;
    border: none;
    color: #d9d9d9;
    display: inline-block;
    opacity: 0;
}
.listing .no-children button:before {
    font-size: 1.5rem;
}
.listing .no-children button:focus,
.listing .no-children button:hover {
    color: #4346bc;
}
.listing .no-children button:focus,
.listing tr:hover .no-children button {
    opacity: 1;
}
.listing.small .children button:before {
    font-size: 30px;
}

.listing thead th {
    font-weight: 700;
}

.listing td.title  {
    display: flex;
    span {
        vertical-align: top;
    }
}

.listing td:has(.page__avatar-thumbnail) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 150px;
}

.listing td:has(.avatar) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 150px;
}

.listing:not(.nice-padding .listing,
    .report .listing,
    .editor-view .listing,
    .w-dashboard .listing):not(:has(td:first-child input[type=checkbox]:only-child,
        th:first-child input[type=checkbox]:only-child,
        .ord)) td:first-child,
.listing:not(.nice-padding .listing,
    .report .listing,
    .editor-view .listing,
    .w-dashboard .listing):not(:has(td:first-child input[type=checkbox]:only-child,
        th:first-child input[type=checkbox]:only-child,
        .ord)) th:first-child {
    padding-inline-start: 3rem;
}

.listing .title .icon.initial {
    margin: 3px 0 0;
    vertical-align: top;
}

.listing-results .listing .title {
    display: flex;
}

.listing .title .title-wrapper {
    flex-grow: 1;
}

.listing .title .actions {
    display: flex;
    align-items: center;
}

.dialog {
    z-index: 300 !important;
}

/* Sidebar */
.sidebar__circuit {
    margin-bottom: 4px;
}
.logo-sidebar {
    margin-bottom: 2px;
}

#tenant-name {
    margin-left: 8px;
    max-width: 120px;
}
.tenant-icon {
    border: 1px solid white;
    background: #fff;
    border-radius: 2px;
}

.sidebar__tenant {
    display: flex;
    justify-content: center;
    align-items: center;
}
.sidebar--slim .sidebar__tenant {
    margin-left: 3px;
}
.sidebar--slim .sidebar-custom-branding {
    align-items: self-start;
    padding: 0;
    padding-left: 12px;
}
.sidebar-custom-branding {
    padding: 0px;
    width: 200px;
    align-items: center;
    display: flex;
    flex-direction: column;
    margin: 1.5em 0;
    color: var(--w-color-text-label-menus-default);
}

#menu-search-q {
    position: relative;
    margin-right: 1rem;
    padding: 5px 0px;
}
.sidebar-search {
    border: 1px solid #262626;
    margin: 3px 15px;
    position: initial;
}
.sidebar-search__submit {
    right: 8px;
}
.sidebar--slim .sidebar-search__submit {
    right: 0;
}
.sidebar-search.sidebar-search--slim.sidebar-search--visible {
    /* Helps with rapid class/styling changes at load */
    border: 1px solid #262626;
}
.sidebar-search--visible {
    border: 1px solid #999;
    border-radius: 4px;
    transition: border 0.2s ease;
}

.sidebar--slim {
    overflow: hidden;
}

.sidebar--slim .sidebar--slim--hide {
    opacity: 0;
    transition: opacity 0.2s linear;
    pointer-events: none;
}

.sidebar-footer--open > ul {
    max-height: 220px;
}

.sidebar--slim .sidebar-menu-item__link {
    width: 60px;
}

/* ConditionalPanel styling */
.user-condition__is_superuser .w-panel__header { 
    background: var(--w-color-critical-50);
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}
.user-condition__is_superuser .w-panel__header > h2,
.user-condition__is_superuser .w-panel__header .w-panel__toggle {
    color: var(--w-color-critical-200);
}

.pages_feature_type_widget > .object-layout {
    top: -1rem;
    position: relative;
}

/* center our icons */
.icon.initial {
    vertical-align: middle !important;
}

.pages_feature_type_widget > .object-layout {
    top: -1rem;
    position: relative;
}


/* Audio Index page */
.audio-title {
    display: grid;
    font-weight: 300;
    font-size: 0.8rem;
}
/* Audio Edit/Create */
div#panel-generated_audio-content > div {
    display: flex;
}

.w-summary .w-summary__list {
    flex-wrap: nowrap;
    justify-content: space-between;
}

.w-summary .icon {
    color: var(--w-color-surface-menu-item-active);
}

/* Hide documents count - TODO: remove once solved via hook */
.w-summary__list li:last-of-type {
    display: none;
}
/* Hide Wagtail features we don't need */
[data-w-dismissible-id-value='help'] {
    display: none;
}

.form-side__panel > div > div:has([data-w-zone-switch-key-value]) {
    display: none;
}

/* Labels chooser top-right button */
.button-small__icon {
    height: 0.75rem;
    margin-left: 0.5rem;
    width: 0.75rem;
}

.shrink-iframe iframe {
    width: 100%;
}

/* help texts */
.help-text-system__text {
    font-size: 1rem;
    padding: 1rem 1rem 0 1rem;
    text-align: center;
}

/* General page editor */
.w-panel__heading--label {
    font-size: 1.3125rem;
}
.locale-picker + .drop-zone {
    margin-top: 1rem;
}


.w-summary {
    color: var(--w-color-surface-menu-item-active);
}
@media (prefers-color-scheme: dark) {
    .w-summary {
        color: var(--w-color-primary);
    }
}
.w-theme-dark .w-summary {
    color: var(--w-color-primary);
}

/* Images */
.listing.images {
    margin-top: 2rem;
    align-items: stretch;
}

.listing.images > li {
    border: 1px solid #efefef;
}
.missing-description {
    color: var(--w-color-text-error);
}
.missing-description svg {
    height: 14px;
    display: inline;
    vertical-align: -3px;
    width: 14px;
    margin-right: 4px;
}

.image-list {
    .listing {
        width: 100%;
        table-layout: fixed;
    }
    td.title .title-wrapper a {
        font-size: 1rem !important;
        overflow: hidden !important;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
    }
    .bulk-actions-filter-checkbox,
    .bulk-action-checkbox-cell {
        padding-inline-start: 1.25rem;
        width: 5rem !important;
    }

}

#id_tour_guide-chooser .chooser__image {
    border-radius: 50%;
    width: 125px;
    height: 125px;
    min-width: 125px;
    max-width: 125px;
    min-height: 125px;
    max-height: 125px;
    object-fit: cover;
    object-position: 50% 50%;
}

#id_splash_logo-chooser {
    img {
        background: black;
    }
}


#id_tour_button_ctas-FORMS .icon-grip,
#id_finished_tour_button_ctas-FORMS .icon-grip,
#id_tour_timed_ctas-FORMS .icon-grip {
    display: none; /* Remove grip icon when there is already a custom logic to drag and rearrange */
}

#id_splash_logo-chooser {
    img {
        background: black;
    }
}


#id_tour_button_ctas-FORMS .icon-grip,
#id_finished_tour_button_ctas-FORMS .icon-grip,
#id_tour_timed_ctas-FORMS .icon-grip {
    display: none; /* Remove grip icon when there is already a custom logic to drag and rearrange */
}

.sidebar-sub-menu-panel__footer {
    padding: 0.25rem;
    font-size: 0.75rem;
    opacity: 0.9;
}

/* 
Disable AI Tools button if ai-disabled class is present.
*/
.ai-disabled button[name="AI Tools"] { display: none; }

/* Hide checks panel and prevent it from loading */
[data-side-panel-toggle="checks"] {
    display: none;
}

.listing-column-sm {
    min-width: 6em;
    max-width: 6em;
    width: 6em;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.listing-column-md {
    min-width: 10em;
    max-width: 10em;
    width: 10em;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.listing-column-md:has(.column-labels-all) {
    overflow: visible;
}

p.button-cta, p.timed-cta {
    text-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.edit-button {
    width: 100%;
    display: inline-block;
    text-align: center;
}

.w-panel__content .w-form-width {
    min-width: 100%;
}

#filters-drilldown select {
    width: 100%;
    text-overflow: ellipsis;
}

/* Hotspot modals fade out on success to smooth over the brief reload */
.modal-frame,
.modal-frame + .modal-backdrop {
    transition: opacity 200ms ease-out;
}

.modal-frame.is-closing,
.modal-frame + .modal-backdrop.is-closing {
    opacity: 0;
    pointer-events: none;
}
