input[type='checkbox'] {
    margin-top: -1px;
    vertical-align: middle;
}

input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type='number'] {
    -moz-appearance: textfield;
}

#livesearch {
    width: 300px;
    visibility: hidden;
    display: inline-block;
    float: left;
}

#livesearch_label {
    width: 120px;
    margin-left: 20px;
    visibility: hidden;
    display: inline-block;
    float: left;
}

#id_username {
    float: left;
}

#id_search {
    float: left;
}

.top-buffer {
    margin-top: 20px;
}

.warning {
    color: red;
}

.styled-select {
    width: 100%;
}

.glyphicon-margin-left {
    margin-left: 20px;
}

.glyphicon-refresh-animate {
    -animation: spin 0.7s infinite linear;
    -ms-animation: spin 0.7s infinite linear;
    -webkit-animation: spinw 0.7s infinite linear;
    -moz-animation: spinm 0.7s infinite linear;
}

@keyframes spin {
    from {
        transform: scale(1) rotate(0deg);
    }

    to {
        transform: scale(1) rotate(360deg);
    }
}

@-webkit-keyframes spinw {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
    }
}

@-moz-keyframes spinm {
    from {
        -moz-transform: rotate(0deg);
    }

    to {
        -moz-transform: rotate(360deg);
    }
}

.panel-heading .glyphicon {
    padding-left: 15px;
}

.table-container {
    width: 95%;
}

/* Fix long string content for filters */

.yadcf-filter {
    width: 100px;
}

/* No hover effect on specific element of a nav pill */

.nav>li.no-effect>a:hover,
.nav>li.no-effect>a:focus {
    background-color: transparent;
}

/* Scrollable modal body */

.modal-scrollable {
    overflow-y: initial !important;
}

.modal-scrollable .modal-body {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.icon-spinner {
    display: none;
}

.glyphicon-spin {
    -webkit-animation: spin 2s infinite linear;
    -moz-animation: spin 2s infinite linear;
    -o-animation: spin 2s infinite linear;
    animation: spin 2s infinite linear;
}

@-moz-keyframes spin {
    0% {
        -moz-transform: rotate(0deg);
    }

    100% {
        -moz-transform: rotate(359deg);
    }
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(359deg);
    }
}

@-o-keyframes spin {
    0% {
        -o-transform: rotate(0deg);
    }

    100% {
        -o-transform: rotate(359deg);
    }
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

.selector select {
    width: 380px;
    height: 10em;
}

/* No style on anchors */

a.unlink {
    color: inherit;
}

a.unlink:hover {
    color: inherit;
}

.fullmodal-dialog {
    width: 98% !important;
    height: 92% !important;
    min-width: 98% !important;
    min-height: 92% !important;
    max-width: 98% !important;
    max-height: 92% !important;
    padding: 0 !important;
}

.fullmodal-content {
    height: 99% !important;
    min-height: 99% !important;
    max-height: 99% !important;
}

.more-less-title>button:after {
    /* minus */
    content: '\f067';
    font-family: 'FontAwesome';
    position: absolute;
    right: 2px;
}

.more-less-title>button[aria-expanded='true']:after {
    /* plus */
    content: '\f068';
    right: 2px;
}

.light-bg-secondary {
    background-color: #e1e1e1;
}

.light-bg-primary {
    background-color: #c5e1ff;
}

.light-bg-success {
    background-color: #dcffcc;
}

/* Fixed sticky feedback message*/

.msg-fixed {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: 9999;
    border-radius: 0px;
}

.subdomains-icons {
    font-size: 2em;
    color: #55c1c3;
    margin-right: 0.5em;
    vertical-align: middle;
}

.centered-icon {
    display: block;
    height: 100%;
    width: 100%;
    margin: auto;
    text-align: center;
}

@media all and (max-width: 480px) {
    .resp-btn {
        width: 100%;
        display: block;
    }
}

/* ui widgets */
.ui-widget>* {
    font-family: 'Unistra A', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
        'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    font-size: 1.1rem;
}

.dialog-button {
    font-family: 'Unistra A', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
        'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji' !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
}

/* Badge text color autodetect */
/* :root {
  --light-color: 80;
  --threshold: 60;
}

.immersup-badge {
  --switch: calc((attr(--background-color) - var(--threshold)) * -100);
  color: hsl(0, 0%, var(--switch));
  background-color: attr(background-color);
} */

/* FAQ section */

.faq_area {
    position: relative;
    z-index: 1;
    background-color: #f5f5ff;
}

.faq-accordion {
    position: relative;
    z-index: 1;
}

.faq-accordion .card {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.faq-accordion .card .card-body {
    padding: 1.75rem 2rem;
}

.faq-accordion .card .card-body p:last-child {
    margin-bottom: 0;
}

/* Attempt to fix django admin dark theme conflict with sortable2 */
@media (prefers-color-scheme: dark) {
    #result_list div.drag {
        background: url("../img/updown_icon_white.2e7ccde40000.png") center no-repeat !important;
        background-size: contain !important;
        cursor: pointer;
    }
}

@media (prefers-color-scheme: light) {
    #result_list div.drag {
        background: url("../img/updown_icon.b2dacdc9ddcd.png") 50% center no-repeat !important;
        background-size: contain !important;
        cursor: pointer;
    }
}

/*

Firefox is sadly not supporting :has for now :(
.results-cards tbody tr:not(:has(td.dataTables_empty)) {
    float: left;
    width: 20rem;
    height: 32rem;
    margin: 0.5rem;
    border: 0.0625rem solid rgba(0, 0, 0, .125);
    border-radius: .15rem;
    box-shadow: 0.10rem 0.10rem 0.3rem rgba(0, 0, 0, 0.25);
}

*/

.results-cards tbody tr {
    float: left;
    width: 20rem;
    margin: 0.5rem;
    border: 0.0625rem solid rgba(0, 0, 0, .125);
    min-height: max-content;
    border-radius: .15rem;
    box-shadow: 0.10rem 0.10rem 0.3rem rgba(0, 0, 0, 0.25);
}

.results-cards tbody td {
    display: block;
    overflow: hidden;
}

.results-cards tbody label {
    display: inline;
    position: relative;
    float: left;
    color: #808080;
    min-width: 2rem;
    margin-left: 0;
    margin-right: 0.2rem;
    text-align: left;
}

.results-cards thead {
    display: none;
}

.results-cards .fa {
    font-size: 2rem;
}

.results-cards .fa-15 {
    font-size: 1rem;
}

.results-cards caption {
    text-align: center;
    caption-side: top;
    padding: 2.5rem;
}

.slot-type-c {
    color: DarkMagenta;
}

.slot-type-v {
    color: DarkCyan;
}

.slot-type-e {
    color: DarkGreen;
}
/*
TODO: Remove this when upgrading to django-ckeditor-5 !!! For now hidding warning message !!!
*/
.cke_notification_warning {
        display: none;
}

/*
Disable highlighting of selected items in the datatables
need to use dt-select-no-highlight class on table !!!
*/
table.dataTable.dt-select-no-highlight tbody tr.selected,
table.dataTable.dt-select-no-highlight tbody th.selected,
table.dataTable.dt-select-no-highlight tbody td.selected {
    color: unset;
}

table.dataTable.dt-select-no-highlight tbody>tr.selected,
table.dataTable.dt-select-no-highlight tbody>tr>.selected {
    background-color: unset;
}