@import "~bootstrap/scss/mixins/_banner";
@include bsBanner("");

// scss-docs-start import-stack
@import "~bootstrap/scss/_functions";
// Configuration
// Include any default variable overrides here
@import "_variables";

// Include remainder of required Bootstrap stylesheets
@import "~bootstrap/scss/_variables";
@import "~bootstrap/scss/_mixins";

$enable-dark-mode: false;

@import "~bootstrap/scss/_maps";
@import "~bootstrap/scss/_utilities";

// Layout & components
@import "~bootstrap/scss/_root";
@import "~bootstrap/scss/_reboot";
@import "~bootstrap/scss/_type";
@import "~bootstrap/scss/_images";
@import "~bootstrap/scss/_containers";
@import "~bootstrap/scss/_grid";
@import "~bootstrap/scss/_tables";
@import "~bootstrap/scss/_forms";
@import "~bootstrap/scss/_buttons";
@import "~bootstrap/scss/_transitions";
@import "~bootstrap/scss/_dropdown";
@import "~bootstrap/scss/_button-group";
@import "~bootstrap/scss/_nav";
@import "~bootstrap/scss/_navbar";
@import "~bootstrap/scss/_card";
@import "~bootstrap/scss/_accordion";
@import "~bootstrap/scss/_breadcrumb";
@import "~bootstrap/scss/_pagination";
@import "~bootstrap/scss/_badge";
@import "~bootstrap/scss/_alert";
@import "~bootstrap/scss/_progress";
@import "~bootstrap/scss/_list-group";
@import "~bootstrap/scss/_close";
@import "~bootstrap/scss/_toasts";
@import "~bootstrap/scss/_modal";
@import "~bootstrap/scss/_tooltip";
@import "~bootstrap/scss/_popover";
@import "~bootstrap/scss/_carousel";
@import "~bootstrap/scss/_spinners";
@import "~bootstrap/scss/_offcanvas";
@import "~bootstrap/scss/_placeholders";

// Helpers
@import "~bootstrap/scss/_helpers";

// Utilities
@import "~bootstrap/scss/utilities/_api";
// scss-docs-end import-stack

@import "_mixins";
@import "_tables";
@import "_flatpickr";
@import "_fonts";

.btn-default {
    @include button-variant(
        $default-bs-btn-bg,
        $default-bs-btn-border-color,
        $default-bs-btn-color,
        $default-bs-btn-hover-bg,
        $default-bs-btn-hover-border-color,
        $default-bs-btn-hover-color,
        $default-bs-btn-active-bg,
        $default-bs-btn-active-border-color,
        $default-bs-btn-active-color,
        $default-bs-btn-disabled-bg,
        $default-bs-btn-disabled-border-color,
        $default-bs-btn-disabled-color
    )
}

.badge {
    &[class$="-subtle"] {
        color: #000;
    }
}

::selection {
    background: $background-color-primary;
    color: #FFFFFF;
}

.page-link {
    white-space: nowrap;
}

.placeholder {
    /* Override Bootstrap style which conflicts with multiple-select */
    background-color: unset;
    cursor: default;
    display: block;
    min-height: unset;
    opacity: unset;
}

.dropup .dropdown-menu[data-bs-popper] {
    margin-bottom: 0;
}

.dropdown-menu[data-bs-popper] {
    margin-top: -1px;
}

.page-section {
    @include card;

    & + .page-section {
        margin-top: 1em;
    }

    &.rows {
        margin-bottom: 1rem;
        padding: 1rem;
    }
}

.row + .page-section {
    margin-top: 1rem;
}

a {
    &:hover {
        .term {
            color: #000;
            text-decoration: underline;
        }
    }

    &.authlink {
        background-color: #E3F1DF;
        border-radius: 5px;
        display: inline-block;
        padding: 2px 4px;
    }

    &.edit-patronimage {
        background-color: #E6E6E6;
        border-color: #ADADAD;
        color: #333;

        &:hover {
            background-color: #DADADA;
            color: #333;
            text-decoration: none;
        }
    }

    &.cartRemove {
        color: #CC3333;
        font-size: 90%;
        margin: 0;
        padding: 0;
    }

    &.clear_date {
        color: $warning-text-color;
        font-size: 130%;
        vertical-align: middle;

        &:hover {
            color: lighten( $warning-text-color, 35% );
            text-decoration: none;
        }
    }

    .ctrl_link {
        display: inline-block;
        padding-right: 1rem;
    }

    &.settings {
        i,
        img {
            align-items: center;
            background-color: transparent;
            border: solid 3px $background-color-secondary;
            border-radius: 50%;
            box-sizing: content-box;
            color: $green-text-color;
            display: flex;
            height: 40px;
            justify-content: center;
            margin-bottom: 5px;
            margin-left: auto;
            margin-right: auto;
            padding: 5px;
            text-align: center;
            width: 40px;
        }

        &:hover {
            color: $green-text-color;
            font-weight: bold;
            text-decoration: none;

            i,
            img {
                background-color: transparent;
                border-color: $background-color-primary;
                color: $green-text-color;
            }
        }

        img {
            height: auto;
            max-width: 30px;
            padding: 10px;
        }
    }

    &.csv {
        background-image: url( "../img/famfamfam/silk/page_white_excel.png" );
    }

    &.dropdown-toggle {
        white-space: nowrap;
    }

    &.incart {
        color: #666;
    }

    &.disabled {
        color: #999999;
        pointer-events: none;
    }

    &.document {
        background-position: left middle;
        background-repeat: no-repeat;
        display: inline-block;
        min-height: 20px;
        padding-left: 20px;
    }

    &.highlight_toggle {
        display: none;
    }

    .localimage {
        img {
            border: 1px solid #0000CC;
            margin: 0 .5em;
            padding: .3em;
        }
    }

    &.pdf {
        background-image: url( "../img/famfamfam/silk/page_white_acrobat.png" );
    }

    &.submit {
        @include default-button;

        display: inline-block;

        &:active {
            border: 1px inset #999999;
        }
    }

    &.term {
        text-decoration: underline;
    }

    &.xml {
        background-image: url( "../img/famfamfam/silk/page_white_code.png" );
    }

    &.ctrl_link {
        display: inline-block;
        padding-right: 1rem;
    }
}


#resetZ3950Search {
    font-size: 110%;
    color: $green-text-color;
}

.alert-message {
    --bs-alert-color: var( --bs-info-text-emphasis );
    --bs-alert-bg: var( --bs-info-bg-subtle );
    --bs-alert-border-color: var( --bs-info-border-subtle );
    --bs-alert-link-color: var( --bs-info-text-emphasis );
}

.alert-alert {
    --bs-alert-color: var( --bs-warning-text-emphasis );
    --bs-alert-bg: var( --bs-warning-bg-subtle );
    --bs-alert-border-color: var( --bs-warning-border-subtle );
    --bs-alert-link-color: var( --bs-warning-text-emphasis );
}

.alert-error {
    --bs-alert-color: var( --bs-danger-text-emphasis );
    --bs-alert-bg: var( --bs-danger-bg-subtle );
    --bs-alert-border-color: var( --bs-danger-border-subtle );
    --bs-alert-link-color: var( --bs-danger-text-emphasis );
}

aside {
    h5 {
        font-size: 100%;
        margin: .5em 0;
    }

    fieldset {
        &.brief {
            padding: .4em .7em;

            button + button,
            input + input {
                margin-left: 5px;
            }

            fieldset {
                border-left: 2px solid #CCC;
                border-radius: 0;
                margin: .5em 0;
                padding: .5em;

                legend {
                    font-size: 95%;
                    margin: 0;
                }

                &.action {
                    border: 0;
                    margin-left: 0;
                    padding: .5em 0;
                }
            }

            input[type="text"],
            select {
                height: calc( 1.5em + .75rem + 2px );
            }

            label {
                color: #696969;
                display: block;
                margin: .5em 0;

                input {
                    &[type="checkbox"],
                    &[type="radio"] {
                        display: inline-block;
                        margin-left: 0;
                    }
                }
            }

            li {
                margin-top: 0;
                padding: 0;

                &.checkbox {
                    label {
                        margin-left: 0;
                    }
                }

                &.dateinsert {
                    label {
                        display: inline;
                    }

                    span {
                        &.label {
                            display: inline;
                        }
                    }
                }

                &.radio {
                    padding: .7em 0;

                    input {
                        padding: .3em 0;
                    }

                    label {
                        display: inline;
                    }

                    span {
                        &.label {
                            display: inline;
                        }
                    }
                }
            }

            ol {
                margin: 0;
                padding: 0;
            }

            select,
            [type="text"] {
                width: 100%;
            }

            .flatpickr-input {
                margin-right: 3px;
                width: calc( 100% - 20px );
            }

            & + .action {
                background-color: #FFF;
                margin-left: 0;
                padding: 1rem;
            }
        }
    }

    .breadcrumb-item {
        + .breadcrumb-item {
            &::before {
                background: transparent none;
                display: none;
                height: unset;
                width: unset;
            }
        }
    }
}

.sidebar_menu {
    background-color: #E6E6E6;
    display: block;
    padding: 1em 0 1em 0;

    h5 {
        color: #666;
        font-size: 1.3em;
        font-weight: bold;
        margin-top: 0;
        padding-left: .5em;
    }

    ul {
        margin-bottom: 10px;
        padding-left: 0;

        ul {
            background-color: #F3F4F4;

            li {
                a {
                    padding: .5em .3em .5em 1.3rem;
                }
            }
        }

        li {
            list-style: none;

            a {
                border-left: 5px solid transparent;
                color: #000;
                display: block;
                padding: .7em .3em .7em 1rem;
                text-decoration: none;
            }

            &.active > a,
            a:hover,
            a.current {
                background-color: #F3F4F4;
                border-left: solid 5px $background-color-primary;
                color: $green-text-color;
                font-weight: bold;
                text-decoration: none;
            }

            a:hover:not( .current ) {
                border-left: solid 5px $background-color-secondary;
                font-weight: normal;
            }

            &.active > a:hover {
                border-left: solid 5px $background-color-primary;
                font-weight: bold;
            }
        }
    }

    .breadcrumb-item {
        font-style: normal;
    }
}

div {
    &.mainmenu {
        display: inline;
    }

    &.koha-mainpage {
        align-items: center;
        display: flex;
        justify-content: center;
    }

    &.settings-links {
        display: inline;

        ul {
            float: right;

            li {
                height: auto;
                list-style-type: none;
                margin-bottom: 0;
                padding: 5px 10px;
                width: 150px;

                a,
                a:visited,
                a:link {
                    color: #000;
                }
            }
        }
    }

    &.action {
        background-color: transparent;
        border: 0;
        clear: both;
        float: none;
        margin: .9em 0 0;
        padding: .4em;
        width: auto;
    }

    .renew_formfield {
        margin-bottom: 1em;
    }

    .circmessage {
        padding: .4em;

        .circmessage {
            margin-bottom: .3em;
        }
    }

    &.first {
        fieldset {
            margin-right: 0;
        }
    }

    &.help {
        margin: .9em 0 0;
    }

    &.justify {
        text-align: justify;
    }

    &.alert-info {
        i {
            &.fa-exclamation {
                color: $warning-text-color;
                font-style: italic;
                padding: 0 .3em;
            }
        }
    }

    &.required {
        color: $warning-text-color;
        font-style: italic;
        margin-left: .5em;
    }

    // Tools > automatic_item_modification_by_age
    &.rules {
        display: block;
    }

    &[class$="_table_controls"] {
        padding: .7em 0;

        .btn-link {
            font-size: unset;
            padding: 0 .5rem;
        }
    }

    &.results {
        padding: .7em 0;
    }

    &.rule {
        background-color: #F4F8F9;
        border: 2px solid #BFD9B9;
        border-radius: 5px;
        margin: .3em;
        padding: .3em;
    }

    &.lastchecked {
        background-color: #FFF;
        border: 2px solid #BCDB89;
        padding: .2em 1em;
    }

    &.listgroup {
        clear: left;

        h4 {
            font-style: italic;

            a {
                font-size: 80%;
            }
        }
    }

    &.sysprefs {
        h3 {
            margin: .2em 0 .2em .4em;
        }

        dl {
            margin-left: 1.5em;
        }

        &.hint {
            float: right;
            margin: .7em;
            padding: .5em;
            width: 25%;
        }
    }

    &.rows {
        margin: 0;
        padding: 0;
        width: 100%;

        + div {
            &.rows {
                margin-top: .6em;
            }
        }

        li {
            border-bottom: 1px solid #EEE;
            list-style-type: none;
            padding: .275em;
            width: 100%;
        }

        ol {
            list-style-type: none;
            padding: .5em 1em 0 0;

            li {
                li {
                    border-bottom: 0;
                }
            }
        }

        p {
            margin-left: 10em;
        }

        span {
            &.label {
                display: inline-block;
                font-weight: bold;
                margin-right: 1em;
                padding-top: 0;
                text-align: left;
                vertical-align: top;
                white-space: normal;
                width: 9em;
            }
        }
    }

    .browse {
        margin: .5em 0;
    }
}

button {
    @include default-button;
}

#add_to_patron_list_submit {
    color: $green-text-color;

    &:hover {
        border: 0;
    }
}

main {
    &::after {
        clear: both;
        content: " ";
        display: table;
    }
}

body {
    font-size: 13px;
    line-height: 1.22;
    padding: 0;
    text-align: left;

    &:has( nav.fixed-bottom ) {
        padding-bottom: 6rem;
    }

    &.nobackdrop {
        .modal-backdrop {
            opacity: 0;
        }
    }

    &.value_builder {
        padding-left: 1em;
        padding-right: 1em;
    }
}

br {
    &.clear {
        clear: both;
        line-height: 1px;
    }
}

form {
    display: inline;

    &.confirm {
        display: block;
        font-size: 110%;
        line-height: 130%;

        ul {
            padding: 1em 0;

            li {
                list-style-type: none;
            }
        }

        .notification_method,
        #main_contact_method {
            background-color: #FFE;
            border: 1px solid #CCC;
            border-radius: 5px;
            display: inline-block;
            margin: .5em 0;
            padding: .1em .3em;

            &.none {
                background-color: #EEE;
            }
        }

        .hold-found-barcode {
            display: inline-block;
            font-size: 90%;
        }
    }
}

td .main_contact_method {
    background-color: #FFE;
    border: 1px solid #CCC;
    border-radius: 5px;
    display: inline-block;
    margin: .5em 0;
    padding: .1em .3em;

    &.none {
        background-color: #EEE;
    }
}

h1 {
}

h2 {
    color: #696969;
}

h3 {
    color: #696969;

    &.popover-header {
        margin: 0;
    }
}

h4 {
}

h5 {
}

h6 {
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: .5em 0;
}

hr {
    clear: both;
    margin: 1em 0;
}

#patron_search {
    .address {
        font-size: 100%;
    }
}

cite {
    font-style: italic;
}

input,
textarea {
    &:focus {
        border-color: $background-color-primary;
        border-radius: 4px;
    }
}

textarea {
    resize: both;
}

input {
    &[type="submit"] {
        padding: .5em 1em;
    }

    &[type="reset"],
    &[type="button"] {
        @include default-button;

        padding: .5em 1em;
    }

    &[type="checkbox"],
    &[type="radio"] {
        height: unset;
        margin: 3px 3px 0 5px;
    }

    &.submit {
        padding: .5em 1em;
    }
}

$dayLeadBackground: #fad2cf !default;
$dayTrailBackground: #fcdcb3 !default;
.flatpickr-day {

    &.leadRangeStart {
        border-radius: 50px 0 0 50px;
    }

    &.leadRange {
        box-shadow: -2.5 * $dayMargin 0 0 $dayLeadBackground, 2.5 * $dayMargin 0 0 $dayLeadBackground;
        background: $dayLeadBackground;
        &.flatpickr-disabled {
            $darkLeadBackground: darken($dayLeadBackground, 10);
            box-shadow: -2.5 * $dayMargin 0 0 $darkLeadBackground, 2.5 * $dayMargin 0 0 $darkLeadBackground;
            background: $darkLeadBackground;
        }
    }

    &.selected {
       &.leadRangeEnd {
           border-radius: 0;
       }
    }

    &:hover,
    &.selected {
        &.trailRangeStart {
            border-radius: 0;
        }
    }

    &.trailRange {
        box-shadow: -2.5 * $dayMargin 0 0 $dayTrailBackground, 2.5 * $dayMargin 0 0 $dayTrailBackground;
        background: $dayTrailBackground;
        &.flatpickr-disabled {
            $darkTrailBackground: darken($dayTrailBackground, 10);
            box-shadow: -2.5 * $dayMargin 0 0 $darkTrailBackground, 2.5 * $dayMargin 0 0 $darkTrailBackground;
            background: $darkTrailBackground;
        }
    }

    &.trailRangeEnd {
        border-radius: 0 50px 50px 0;
    }

    &.leadDisable {
        color: #aaa !important;  /* Gray out the text */
        background: #f5f5f5 !important;  /* Light background */
        cursor: not-allowed !important;
    }

    &.trailDisable {
        color: #aaa !important;  /* Gray out the text */
        background: #f5f5f5 !important;  /* Light background */
        cursor: not-allowed !important;
    }
}

.input-warning {
    background-color: #FF9;
    border-color: #900;
}

label,
.label {
    color: #000;
    display: inline;
    font-size: inherit;
    font-weight: normal;
    max-width: inherit;
    padding: 0;
    white-space: normal;

    input {
        &[type="checkbox"],
        &[type="radio"] {
            margin-top: 0;
        }
    }

    &.circ_barcode {
        display: block;
        font-size: 105%;
        font-weight: bold;
        margin-bottom: 1rem;
        max-width: 75%;
    }

    &.required {
        color: $warning-text-color;
    }
}

.subfield-label {
    font-style: italic;

    span {
        &.subfield-code {
            font-weight: bold;
        }
    }
}

.members-update-table {
    padding-top: 10px;
}

.main {
    margin-bottom: $language-footer-min-height * 1.5;
    margin-top: 1em;
}

.main,
main {
    & > .row > div > aside {
        margin-left: -.75rem;
    }
}

#login_controls {
    padding: .4em .5em;
    position: absolute;
    right: .5em;
}

ul {
    li {
        input {
            &.submit {
                font-size: 87%;
                padding: 2px;
            }
        }
    }

    &.budget_hierarchy {
        margin-left: 0;
        padding-left: 0;

        li {
            display: inline;

            &::after {
                content: " -> ";
            }

            &:first-child {
                &::after {
                    content: "";
                }
            }

            &:last-child {
                &::after {
                    content: "";
                }
            }
        }
    }

    // For Font Awesome icon bullets
    &.fa-ul {
        li {
            list-style-type: none;
        }
    }
}

ol {
    &.bibliodetails {
        float: left;
        margin: 0 0 1em 1em;
    }
}

.cart-controls {
    border-top: 1px solid #E8E8E8;
    padding: 7px 0;
}

#editions {
    table,
    td {
        border: 0;
    }
}

.overdue,
.debit {
    color: $warning-text-color;
    font-weight: bold;
}

.strong {
    font-weight: bold;
}

.problem {
    color: #990000;
    font-weight: bold;
}

fieldset {
    + fieldset {
        &.action {
            margin-top: -1em;
        }
    }

    &.lastchecked {
        margin-bottom: 0;
        margin-right: 0;
    }

    &.standard {
        background-color: #F4F8F9 !important;
    }

    &.contrast {
        background-color: #F3F3F3 !important;
    }

    &.action {
        background-color: transparent;
        border: 0;
        box-shadow: none;
        clear: both;
        float: none;
        padding: 1rem 1rem 1rem 0;
        width: auto;

        a {
            &.cancel {
                padding-left: 1em;
            }
        }
    }

    &.barcode_input {
        label {
            &.hint {
                display: block;
                margin-bottom: .5em;
            }
        }

        select {
            font-size: 120%;
            max-width: 50%;
            padding: .5em 0;
        }
    }

    &.brief {
        div {
            &.hint {
                margin-bottom: .4em;
            }
        }

        label,
        span.label {
            display: block;
            font-weight: bold;
            text-align: left;

            &.inline {
                display: inline;
                float: none;
                margin-left: 1em;
                width: auto;
            }

            input,
            select,
            .select2-container {
                display: block;
                margin-top: .5em;
            }
        }

        li {
            margin-top: .5em;

            &:first-child {
                margin-top: 0;
            }

            &[aria-disabled="true"] {
                color: #999;
            }

            &.inline {
                display: inline;
                float: none;
                margin-left: 1em;
                width: auto;
            }

            &.radio,
            &.checkbox {
                label {
                    display: inline;
                }
            }
        }

        ol,
        li {
            list-style-type: none;
            padding-left: 0;
        }

        .action {
            margin: 0;
            padding: 1em 0 0 0;
        }
    }

    ol {
        li {
            list-style-type: none;
            padding: .3em 0;
        }
    }

    div {
        &.help-block {
            color: #737373;
            display: block;
            margin-bottom: 10px;
            margin-top: 5px;

            li {
                list-style-position: inside;
                list-style-type: unset;
            }
        }
    }
}

legend {
    &.collapsed,
    &.expanded {
        border: 1px solid #FFF;
        margin-left: -.7em;
        margin-top: -.7em;
        padding: .7em;

        &:hover {
            border: 1px solid #6FAF44;
            cursor: pointer;
        }

        i {
            color: #4C7AA8;
            font-size: 80%;
            padding-right: .2rem;
        }
    }

    &.collapsed {
        margin-bottom: -.5em;

        i.fa.fa-caret-down::before {
            content: "\f0da";
        }
    }
}

details {
    > summary {
        cursor: pointer;

        &.checkouts-by-itemtype {
            li {
                display: inline-block;
            }
        }
    }
}

#floating-save {
    background-color: rgba( 185, 216, 217, .6 );
    bottom: 3%;
    position: fixed;
    right: 1%;
    width: 150px;
}

#sales {
    display: none;
}

.single-line {
    white-space: nowrap;
}

.ex {
    font-family: $font-monospace;
    font-weight: bold;
}

dt {
    font-weight: bold;
}

dd {
    font-size: 90%;
    font-weight: normal;
    padding: .2em .2em .2em 2.5em;
}

#disabled {
    a {
        color: #999;

        &:hover {
            color: #999;
        }
    }
}

#disabled2 {
    a {
        color: #999;
    }
}

.patroninfo {
    background-color: #E6E6E6;
    color: #000;
    left: -10px;
    margin-right: .5rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
    width: 100%;

    h5 {
        color: #000;
        font-weight: bold;
        margin-bottom: 0;
        padding: .5em .9em;
        text-align: left;

        &:empty {
            border-right: 0;
        }

        li {
            &.patrondateofbirth {
                font-size: 75%;
                font-weight: normal;
                list-style-type: none;
                text-align: center;
            }
        }
    }

    ul {
        border: 0;
        margin: 0;
        padding: 0;

        li {
            list-style-type: none;
            margin: 0;
        }
    }

    > div {
        width: 100%;
    }
}

.patroninfo-container {
    margin-left: 1rem;
}

.patroninfo-section {
    @include card;
}

.patroninfo-heading {
    clear: both;
    margin-bottom: .3em;
    padding: .5em;

    h3 {
        display: inline-block;
    }

    .btn {
        float: right;
    }
}

/* Patron image */

.patronimage-container {
    padding: .2em;
    position: relative;

    &:hover {
        .patronimage {
            opacity: .8;
        }

        .patronimage-controls {
            opacity: 1;
        }
    }
}

.patronimage {
    border: 1px solid #EEE;
    display: block;
    margin: auto;
    max-width: 160px;
    opacity: 1;
    transition: .2s ease;

    &.empty {
        background: transparent url( "../img/patron-blank.min.svg" ) center 5px no-repeat;
        height: 125px;
        padding: 0;
        min-width: 85px;
        width: 80%;
    }
}

.patronimage-controls {
    left: 50%;
    opacity: 0;
    position: absolute;
    text-align: center;
    top: 80%;
    transform: translate( -50%, -50% );
    transition: .5s ease;
}

.patronimage-control {
    padding: 1em 2em;
}

#patronImageEdit input[type="file"] {
    display: inline-block;
}

#addColumn,
#delColumn {
    background-color: transparent;
    border: none;
    box-shadow: none;
    color: $green-text-color;
    font-size: 100%;
    padding: .3em;

    &:hover {
        text-decoration: underline;
    }
}

.patronviews {
    border-right: 1px solid #000;
    border-top: 1px solid #000;
    margin-bottom: .5em;
    padding: .5em 0;
}

.column-tool {
    font-size: 80%;
}

.hint {
    color: #666;
    font-size: 95%;
}

.readonly,
input[type="text"]:read-only {
    background: #EEE url( "../img/locked.png" ) center left no-repeat;
    border-style: inset;
    border-width: 1px;
    cursor: default;
    padding-left: 15px;
}

.readonly:focus,
input[type="text"]:read-only:focus {
    border-color: unset;
    border-radius: unset;
}

.checkedout {
    color: #999999;
    font-style: italic;
}

.subfield_not_filled {
    background-color: #FFFF99;
}

.important_subfield_not_filled {
    background-color: #FFFFCC;
}

.content_hidden {
    display: none;
    visibility: hidden; // you propably don't need to change this one
}

// the property for the displayed tab
.content_visible {
    display: block;
    visibility: visible; // you propably don't need to change this one
}

#z3950searcht {
    table {
        border: 0;
        padding: 20px;
    }
}

#z3950_search_targets {
    height: 338px;
    overflow-y: auto;
}

#z3950_search_targets_acq {
    height: 308px;
    overflow-y: auto;
}

.z3950checks {
    padding-left: 1em;
}

.error {
    color: $warning-text-color;
}

// Font Awesome icons
i {
    &.error {
        color: $warning-text-color;
    }

    &.success {
        color: $green-text-color;
    }

    &.warn {
        color: #FFA500;
    }

    &.fa-main-heading-a {
        font-family: monospace;

        &::before {
            content: "$a";
        }
    }
}

/*rtl:raw:
    i.fa.fa-arrow-right {
        transform: scaleX(-1);
    }
*/

.item_status {
    padding: .2rem 0;

    &:first-child {
        padding-top: 0;
    }
}

.circ-setting {
    font-size: 95%;
    padding: .3em 0;

    input {
        vertical-align: middle;

        &.flatpickr-input {
            max-width: 11em;
        }
    }

    label {
        font-size: inherit;
        font-weight: normal;
    }
}

.circ-settings {
    border-radius: 0;
    border-top: 2px solid #EEE;
    display: none;
    margin-left: -1em;
    margin-right: -1em;
    margin-top: 1em;
    padding: 1em 1em 0;
}

#show-circ-settings {
    display: inline;
    opacity: .5;
    position: relative;
    right: 25px;

    &:hover {
        opacity: 1;
    }

    a {
        color: rgb( 105, 105, 105 );

        &:hover {
            text-decoration: none;
        }
    }
}

.checkin-active-setting {
    background-color: #FFC;
    border-radius: 3px;
    box-shadow: 1px 1px 2px 0 rgba( 102, 102, 102, .5 );
    margin: .5em;
    padding: .5em;
}

.form-control-group {
    margin-bottom: .5rem;
    white-space: nowrap;
}

.form-group {
    margin-bottom: 10px;

    label {
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
    }

    div {
        &.hint {
            margin: 5px 0;
        }
    }
}

.blocker,
.inaccurate-item-statuses {
    color: #990000;
}

.circmessage {
    li {
        list-style: $nav-menu-bullet;
        margin-bottom: .4em;
    }
}

#circmessages,
#patron_messages {
    @include card;
}

.alert {
    a {
        &.approve {
            display: inline-block;
        }
    }

    button,
    a.approve {
        background: #FFF none;
        border: 1px solid #555;
        margin: .4em;
        padding: .4em;
        white-space: pre-line;

        &:active {
            border: 1px inset #999999;
        }

        &:hover {
            background-color: #FFC;
        }
    }

    input {
        background-color: #FFFFFF;
        margin: .4em;
        padding: .4em;

        &:hover {
            background-color: #FFC;
        }

        &[type="submit"] {
            background: #FFF none;

            &.approve {
                background-color: #FEC32C;
                background-image: none;
                border: 0;
                color: #000;
                margin-top: 5px;

                &:hover,
                &:active,
                &:focus {
                    background-color: #FEC22C9F;
                }
            }

            &.deny {
                background-color: transparent;
                background-image: none;
                border: #696969 double 1px;
                border-radius: 4px;
                color: #696969;
                cursor: pointer;
                display: inline-block;
                font-size: 12px;
                font-weight: normal;
                line-height: 1.4286;
                margin-bottom: 0;
                margin-left: 5px;
                margin-top: 5px;
                padding: 6px 12px;
                text-align: center;
                touch-action: manipulation;
                user-select: none;
                vertical-align: middle;
                white-space: nowrap;

                &:hover {
                    background-color: #F1F1F1;
                    border: #696969 double 1px;
                    font-weight: bold;
                    text-decoration: none;
                }
            }
        }

        &.flatpickr-input {
            padding: 3px 3px 3px 20px;
        }
    }

    li {
        list-style-position: inside;
    }

    p {
        margin-top: 0;

        & + p {
            margin-top: 5px;
        }
    }

    table {
        margin: .5em auto;

        td {
            text-align: left;
        }

        th {
            text-align: right;
        }
    }

    &.message {
        ul,
        h5 {
            padding-left: 25%;
            text-align: left;
        }

        ul + h4 {
            margin-top: .7em;
        }
    }

    &.alert-warning {
        fieldset:not( .bg-danger ):not( .bg-warning ):not( .bg-info ):not( .bg-success ):not( .bg-primary ):not(.action) {
            background-color: rgba( 255, 255, 255, .5 );
            margin: 1rem;
        }

        strong {
            color: #900;
        }

        &.list {
            text-align: left;

            h2,
            h3,
            h4 {
                margin: 1em 0;
                text-align: left;
            }
        }
    }
}

.approve,
.success {
    background-color: #FEC32C;

    i {
        &.fa {
            color: $green-text-color;
        }
    }
}

.deny {
    i {
        &.fa {
            color: $warning-text-color;
        }
    }
}

.new {
    i {
        &.fa {
            color: #425FAF;
        }
    }
}

.warning {
    i {
        &.fa-exclamation-triangle {
            color: #FFD700;
            text-shadow: 0 -1px 0 rgba( 0, 0, 0, .3 );
        }
    }
}

.accesskey {
    text-decoration: underline;
}

.missing {
    background-color: #FFFFCC;
}

.term {
    background-color: #FFC;
    color: #990000;
}

// style for shelving location in catalogsearch
.shelvingloc {
    display: block;
}

// style for bundled detail in catalogsearch
.bundled {
    display: block;
    font-style: italic;
}

// style for return claim detail in catalogsearch
.claimed_returned {
    display: block;
    font-style: italic;
}

#closewindow {
    margin-top: 2em;
    text-align: center;

    a {
        font-weight: bold;
    }
}

.barcode {
    border-radius: 0;
    font-size: 100%;
    font-style: italic;
    height: 30px;
    padding-left: 5px;
    padding-right: 30px;
    vertical-align: middle;
    width: 250px;
}

li {
    &.email {
    }
}

.patronbriefinfo, .patroninfo-section {
    li {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.patronbriefinfo {
    li {
        padding: 0 10px 0 0;
        width: 90%;
    }
}

.empty {
    color: #666;
}

.address {
    font-size: 110%;

    li {
        list-style-type: none;
    }
}

.title {
    font-weight: bold;
}

.hold {
    float: right;
    font-size: 90%;
    margin: 0;
}

.thumbnail {
    display: block;
    margin: auto;
}

.thumbnails {
    li {
        display: inline-block;
        list-style-type: none;
        margin: 4px;
    }

    .remove {
        border-top: 1px solid #EEE;
        display: block;
        font-size: 90%;
        margin: 4px -4px 2px -4px;
        padding-top: .5em;
        text-align: center;
    }

    & + p {
        border-top: 1px solid #EEE;
        margin-top: 1em;
        padding-top: 1em;
    }
}

#catalogue_stats_wrapper,
#tbl_cash_register_stats_wrapper,
#resulttable_wrapper,
#numberpatternst_wrapper {
    background-color: #FFFFFF;
    box-shadow: 8px 8px 12px rgba( 170, 170, 170, .356 );
    margin-top: 20px;
    padding: 20px;
}

#memberresultst {
    border-collapse: unset;
    thead {
        position: sticky;
        top: 40px;
    }
}

#searchresults {
    background-color: #FFFFFF;
    margin-bottom: 1rem;
    margin-top: 20px;
    min-width: 100%;
    padding: 20px;
    width: fit-content;

    fieldset {
        box-shadow: none;
    }

    h3 {
        color: #696969;
        margin: 0;
        padding-bottom: .7em;
    }

    td {
        ul {
            li {
                clear: left;
                color: #000;
                font-size: 90%;
                list-style: url( "../img/item-bullet.svg" );
                padding: .2em 0;
                top: 100%;

                &.result_itype_image {
                    list-style: none;
                    list-style-type: none;
                }

                img {
                    float: left;
                    margin: 3px 5px 3px -5px;
                    max-width: 25px;
                }
            }
        }
    }

    span {
        &.status {
            clear: left;
            color: #900;
            display: block;
        }

        &.unavailable {
            clear: left;
            display: block;
        }
    }

    table {
        width: 100%;

        td {
            vertical-align: top;
        }
    }

    &.unavailability {
        strong {
            display: block;
        }
    }

    .all {
        display: block;
    }

    .branch_specific {
        display: none;
    }
}

#searchresults,
#table_borrowers {
    .address {
        ul {
            margin: 0;
            padding-left: 0;

            li {
                clear: none;
                float: left;
                list-style: none;
                margin-left: 1ch;
                padding: 0;
            }
        }
    }
}

.searchheader {
    position: sticky;
    top: -1px;
    z-index: 999;
    background-color: #F3F4F4;
    box-shadow: 0 0 2px 1px rgba( 0, 0, 0, .2 );
    color: #696969;
    display: block;
    font-size: 80%;
    margin-bottom: .5em;
    margin-top: .5em;
    padding: 5px;
    width: 100%;

    &.floating {
        border-radius: 0;
        box-shadow: 0 0 2px 1px rgba( 0, 0, 0, .4 );
        margin-bottom: 0;
        margin-top: 0;
        z-index: 100;
    }

    .btn-group {
        > .btn {
            &:first-child {
                margin-left: .7em;
            }
        }
    }

    form {
        float: right;
        padding: 5px 5px 3px 0;

        &.fz3950bigrpad {
            float: right;
            font-size: 125%;
            padding: 5px 25em 0 0;
        }
    }

    .dropdown-menu {
        max-height: 50vh;
        overflow-y: auto;
    }
}

#table_search_selections {
    background-color: lighten( $background-color-primary, 60 );
    border: 1px solid $background-color-primary;
    border-color: lighten( $background-color-primary, 30 ) lighten( $background-color-primary, 50 ) lighten( $background-color-primary, 50 ) lighten( $background-color-primary, 30 );
    border-radius: 4px;
    color: #333;
    display: inline-block;
    font-size: 11px;
    line-height: 1.5;
    margin-left: .7em;
    padding: 5px 10px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

#clear-row-selection {
    display: inline-block;
    margin-left: 1em;
}

.mini-inp {
    height: 12px;
    width: 30px;
}

#search-facets {
    background-color: #E6E6E6;

    h4 {
        background-color: $background-color-primary;
        border-radius: 0 4px 0 0;
        color: #FFFFFF;
        font-size: 100%;
        margin: 0;
        padding: .4em .2em;
        text-align: center;
    }

    ul {
        margin: 0;
        padding: 6px 12px;

        li {
            font-weight: bold;
            list-style-type: none;
        }
    }

    li {
        li {
            font-size: 85%;
            font-weight: normal;
            margin-bottom: 2px;
            padding: .1em .2em;
        }

        &.showmore {
            font-weight: bold;
            text-indent: 1em;
        }
    }
}

.facet-count {
    display: inline-block;
}

.bookcoverimg {
    text-align: center;
}

#biblio-cover-slider {
    border: 1px solid #BFD9B9;
    border-radius: 3px;
    margin: 0 5px;
    min-height: 175px;
    padding: 10px 5px 5px 5px;
}

.cover-slides {
    background: #FFF url( "../img/spinner-small.gif" ) center center no-repeat;

    .hint {
        font-size: 90%;
        padding: .5em 0;
    }

    a {
        &.nav-active {
            &:link,
            &:visited {
                color: #85CA11;
            }
        }
    }
}

td {
    &.actions {
        white-space: nowrap;

        a,
        button {
            display: inline-block;
            margin-left: .3rem;

            &:first-child {
                margin-left: 0;
            }
        }
    }

    &.bookcoverimg {
        background: #FFF url( "../img/spinner-small.gif" ) center center no-repeat;
        min-width: 120px;
        text-align: center;
    }

    .cover-slides {
        background: transparent none;
        border: 0;
        margin: 0;
        min-height: unset;
        padding: 0;
    }

    &.credit,
    &.debit,
    &.total {
        text-align: right;

        tfoot & {
            color: #000;
        }
    }
}

.highlight_toggle {
    background-color: transparent;
    border: 0;
    box-shadow: none;
    color: $green-text-color;
    font-size: 100%;
    padding: .3em;

    &:hover {
        text-decoration: underline;
    }
}

.cover-image {
    display: none;

    img {
        height: auto;
        max-width: 100%;
    }
}

.custom_cover_image {
    img {
        max-width: 140px;
    }
}

.cover-nav {
    display: inline-block;
    padding: 3px 4px;
}

.searchhighlightblob {
    font-size: 75%;
    font-style: italic;
}

#irregularity_summary {
    vertical-align: top;
}

#CheckAll,
#CheckNone,
#CheckPending {
    color: $green-text-color;
    font-weight: normal;
    margin: 0 .5em 0 0;
}

.lost,
.dmg,
.wdn,
.restricted,
.damaged,
.lost,
.withdrawn,
.notforloan {
    color: #990000;
    display: block;
}

td.bundle {
    background-color: #FFC !important;
}

.datedue {
    color: #999;
    display: block;
    font-style: italic;
}

.waitinghere,
.credit {
    color: #669900;
}

#holdings_table {
    .holding_status {
        display: block;
    }
}

#mainuserblock {
    border: 1px solid #E8E8E8;
    margin-top: .5em;
    padding: .5em;
}

.labeledmarc-table {
    border: 0;
}

.labeledmarc-label {
    border: 0;
    color: #000000;
    font-size: 11pt;
    font-style: italic;
    padding: 5;
}

.labeledmarc-value {
    border: 0;
    color: #000;
    font-size: 10pt;
    padding: 5;
}

#marcPreview {
    table {
        border: 0;
        font-family: $font-monospace;
        font-size: 95%;
        margin: .7em 0 0;
    }

    tbody {
        tr {
            &:nth-child( 2n+1 ) {
                td {
                    background-color: #FFFFFF;
                }
            }
        }
    }

    td {
        border: 0;
        padding: 2px;
        vertical-align: top;
    }

    th {
        background-color: #FFFFFF;
        border: 0;
        padding: 2px;
        text-align: left;
        vertical-align: top;
        white-space: nowrap;
    }

    &.modal-dialog {
        width: 80%;
    }
}

.modal-dialog {
    .dialog {
        border-radius: 0;
        border-width: 1px 0 0 0;
        clear: both;
        margin: 15px -15px -15px -15px;
        padding: 15px;
        text-align: left;
        width: unset;

        h3 {
            margin: unset;
            text-align: left;
        }

        &.alert {
            background: #FFFADE none;
            border-color: #E0C726;
        }

        &.message {
            background: #E8EDF6 none;
            border-color: #A4BEDD;
        }
    }

    &.modal-wide {
        width: 80%;
    }

}

.modal-full {
    top: -5px;

    .modal-dialog {
        max-width: unset;
        width: 95%;
    }
}

.modal-title {
    margin: 0;
}


.modal-header {
    border-bottom: 1px solid $background-color-secondary;

    h3 {
        color: #000;
    }
}

.modal-body {
    background-color: #FFF;
    overflow-y: auto;

    fieldset,
    ol {
        background-color: #FFF;
        border: 0;
        margin: 0;
        padding: 0;
    }
}

.modal-content {
    background-color: $background-color-modal;

    fieldset {
        box-shadow: none;
    }
}

.modal-footer {
    border-top: 1px solid $background-color-secondary;
}

.modal-textarea {
    width: 98%;
}

.basicModal {
    background: #FFF;
    left: 50%;
    margin-left: -300px;
    max-height: 100%;
    max-width: 600px;
    min-height: 350px;
    min-width: 575px;
    opacity: 0;
    padding: 1em;
    pointer-events: none;
    position: fixed;
    top: 25%;
    transition: all .1s ease-out;
    z-index: 1100;
}

.basicModal.show {
    box-shadow: 0 5px 15px rgba( 0, 0, 0, .5 );
    opacity: 1;
    pointer-events: auto;
}

.patron_search_modal {
    .modal-body {
        display: flex;
        column-gap: 2em;
    }

    .search_results_block {
        flex-grow: 1;
    }
}

#cartDetails {
    background-color: #352C2E;
    box-shadow: 1px 1px 3px 0 #666;
    color: #FFFFFF;
    display: none;
    margin: 0;
    padding: 10px;
    text-align: center;
    width: 180px;
    z-index: 50;
}

#cartmenulink {
    left: 0;
    position: relative;
    text-decoration: none;
    top: 0;
}

#basketcount {
    span {
        display: inline;
        font-size: 90%;
        font-weight: normal;
        padding: 0;
    }
}

#moremenu {
    display: none;
}

.results_summary {
    color: #202020;
    display: block;
    padding: 0 0 .5em;

    a {
        font-weight: normal;
    }

    .label {
        color: #707070;
    }
}

.child_fund_amount {
    font-style: italic;
}

.number_box {
    font-size: 105%;
    line-height: 200%;

    h3 & {
        font-size: 70%;
    }

    a,
    span {
        background-color: lighten( $background-color-secondary, 50 );
        border: 1px solid lighten( $background-color-secondary, 15 );
        border-radius: 4px;
        font-weight: bold;
        padding: .1em .4em;
        text-decoration: none;

        &:hover {
            background-color: lighten( $background-color-secondary, 40 );
        }
    }
}

.container {
    margin: 1em 0;
    padding: 1em;
}

.import_export {
    position: relative;

    .export_ok {
        background: #E3E3E3 none;
        border: 0;
        cursor: pointer;
        margin-left: 20px;
        padding: 10px;
    }

    .import_export_options {
        background: #FFFFFF;
        border: 1px solid #CDCDCD;
        left: 60px;
        padding: 10px;
        position: absolute;
        top: 0;
        width: 300px;
        z-index: 1;
    }
}

.import_export_options {
    background: #E3E3E3 none;
    border: 0;
    cursor: pointer;
    margin-left: 20px;
    padding: 10px;

    .importing {
        background: none;
        padding: inherit;
    }
}

.form_import {
    .input_import {
        border: 1px solid #BCBCBC;
    }
}

.importing {
    position: relative;

    .importing_msg {
        padding-bottom: 10px;
        padding-left: 10px;
    }
}

.field_hint {
    color: #808080;
    font-style: italic;
    padding-left: 1em;
}

.m880 {
    display: block;
    float: right;
    padding-left: 20px;
    text-align: right;
    width: 50%;
}

#advsearches {
    margin-bottom: 1em;

    .tab-pane {
        margin: 0 1em 1em 0;

        table {
            border-collapse: separate;
            border-spacing: 5px;
            border-width: 0;
        }

        td {
            border: 1px solid #EEE;
            padding: .3em .4em;
        }
    }
}

#circ_circulation_issue {
    position: relative;

    fieldset {
        label {
            display: block;
            font-size: 105%;
            font-weight: bold;
            margin-bottom: 1rem;
            max-width: 75%;
        }

        #onsite_checkout-select {
            label {
                display: inline;
                margin: 0;
            }
        }
    }
}

#renew_as_unseen_label {
    margin-left: 1em;
}

#renew_as_unseen_checkbox {
    margin-right: 1em;
}

#clearscreen {
    position: absolute;
    right: 0;
    top: 0;

    a {
        background-color: #EEE;
        border-radius: 0 0 0 5px;
        color: #CCC;
        display: block;
        font-size: 160%;
        font-weight: bold;
        padding: 0 .7em .2em;
        text-decoration: none;
        text-shadow: 0 -1px 0 #666;

        &:hover {
            color: $warning-text-color;
        }
    }
}

.printclearscreen {
    position: absolute;
    right: 43px;
    top: 0;

    a {
        background-color: #EEE;
        border-radius: 0 0 0 5px;
        color: #CCC;
        display: block;
        font-size: 160%;
        font-weight: bold;
        padding: 0 .7em .2em;
        text-decoration: none;
        text-shadow: 0 -1px 0 #666;

        &:hover {
            color: $warning-text-color;
        }
    }
}

.no-image {
    background-color: #FFFFFF;
    border: 1px solid #AAAAAA;
    border-radius: 3px;
    color: #979797;
    display: block;
    font-size: 86%;
    font-weight: bold;
    margin: 1em auto;
    padding: 1em;
    text-align: center;
    width: 75px;
}

#acqui_order_supplierlist {
    .supplier {
        & + .supplier {
            border-top: 1px solid #EEEEEE;
            margin-top: 1em;
        }
    }

    .suppliername {
        display: inline-block;
        margin: .5em 1em .5em 0;

        &.inactive {
            color: #888;

            a:link,
            a:visited {
                color: #888;
            }
        }
    }
}

#ADD-contact {
    margin: 0 0 8px 8px;
}

#contact-template,
#interface-template {
    display: none;
}

// Override core jQueryUI widgets
.ui-widget-content {
    background: #FFFFFF none;
    border: 1px solid $background-color-secondary;
    border-radius: 4px;
    color: #222222;
}

// Override jQuery Autocomplete
.ui-autocomplete {
    box-shadow: 0 6px 12px rgba( 0, 0, 0, .175 );
    cursor: default;
    position: absolute;
    z-index: 2000;

    &.ui-menu {
        padding: 0;

        a {
            color: #000;
        }

        li {
            list-style-type: none;

            &.ui-menu-item {
                padding: 5px 1em 5px .4em;

                &:hover {
                    background: #E3F1DF none;
                    color: #212121;
                    font-weight: normal;
                }

                .ui-state-active {
                    background: transparent none;
                    border: 0;
                }

                .ui-menu-item-wrapper {
                    padding: unset;
                }

                .ui-state-active,
                .ui-state-focus {
                    background: #E3F1DF none;
                    color: #212121;
                    font-weight: normal;
                    margin: 0;
                }
            }
        }
    }

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

.ui-autocomplete-loading {
    background: #FFF url( "../img/spinner-small.gif" ) right center no-repeat;
}

.toptabs {
    margin: 1rem 0;
}

fieldset > .toptabs {
    background-color: #F3F4F4;
    padding: 1em;
}

.authref {
    font-style: normal;
    text-indent: 4em;
}

.seefrom,
.seealso,
.equivalentheading {
    font-style: italic;
    text-indent: 2em;
}

#authfinderops {
    float: right;
}

.authorizedheading {
    font-weight: bold;
}

.authres_notes,
.authres_seealso,
.authres_otherscript {
    padding-top: 3px;
}

.authres_notes {
    font-style: italic;
}

.commentline {
    border-bottom: 1px solid #CCC;

    .btn-toolbar {
        margin-bottom: 0;
        margin-left: 0;
    }
}

.contents {
    width: 75%;

    .newline::after {
        content: "\A → ";
        white-space: pre;
    }

    .t {
        display: inline;
        font-weight: bold;
    }

    .r {
        display: inline;
    }
}

.contentblock {
    font-size: 95%;
    line-height: 135%;
    margin-left: 2em;
    position: relative;

    :first-child::before {
        content: "→ ";
    }
}

#hierarchies {
    margin-bottom: 1em;

    a {
        color: $green-text-color;
        font-weight: normal;
        text-decoration: underline;

        &.jstree-anchor {
            &.jstree-hovered {
                background: transparent none;
                box-shadow: none;
                color: darken( $green-text-color, 5 );
            }

            &.jstree-clicked {
                background: transparent none;
                border: 0;
                box-shadow: none;
            }
        }
    }
}

#didyoumeanopac,
#didyoumeanintranet {
    float: left;
    width: 260px;
}

.pluginlist {
    padding-bottom: 10px;
}

.plugin {
    margin: 0 1em 1em 0;
}

.pluginname {
    background-color: #E3F1DF;
    cursor: move;
    margin: .3em;
    padding-bottom: 4px;
    padding-left: .2em;

    .ui-icon {
        float: right;
    }
}

.plugindesc {
    padding: .4em;
}

.ui-sortable-placeholder {
    border: 1px dotted #000;
    height: 80px;
    visibility: visible;

    * {
        visibility: hidden;
    }
}

// jQuery UI Accordion
.ui-accordion-header,
.ui-widget-content .ui-accordion-header {
    font-size: 110%;
    font-weight: bold;
}

video {
    width: 480px;
}

// Bootstrap overrides

.dropdown-header {
    border-top: 1px solid #EEE;
    color: #000;
    font-weight: bold;
    margin-top: 5px;
    padding-left: 10px;

    &:first-child {
        border-top: 0;
    }
}

nav {
    border: 0;
    display: block;
}

#breadcrumbs {
    a {
        &[href="/cgi-bin/koha/mainpage.pl"] {
            color: $green-text-color;

            &::before {
                content: "\f015";
                font-family: "Font Awesome 6 Free";
                font-size: 12px;
                font-style: normal;
                padding-right: .3em;
            }

            &:hover {
                text-decoration: none;
            }
        }
    }

    .title {
        font-weight: normal;
    }
}

.breadcrumb-item {
    font-style: italic;

    & + .breadcrumb-item {
        &::before {
            background: transparent url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktY2hldnJvbi1yaWdodCI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNy4zNyAwbDUuMzUgNy4zYy4yLjIuMi41MSAwIC43bC01LjM4IDhoLTQuMmw1LjY0LTguMzVMMy4xMy4wMXoiLz48L3N2Zz4=") 50% 50% no-repeat;
            background-size: 8px;
            content: "";
            display: inline-block;
            float: none;
            height: .8em;
            margin-right: .3rem;
            width: .8em;
        }
    }

    &.active {
        a {
            pointer-events: none;
        }
    }
}

.navbar {
    &.navbar-dark {
        .nav-link {
            &:hover {
                text-decoration: underline 2px;
            }
        }
    }
}

.pagination {
    margin: .5em 0;
}

button,
.btn {
    @include default-button;

    &.btn-primary {
        &.dropdown-toggle {
            border-left: 1px solid darken( saturate( $btn-primary, 15 ), 15 );
        }
    }
}

.btn-xs,
.btn-group-xs > .btn {
    font-size: 10.5px;
    padding: 3px 5px;
}

/* Bootstrap Collapse */

.panel {
    background: #F7F9F6 none;
    box-shadow: none;

    &:hover {
        background: #E3F1DF none;
    }
}

.panel-collapse {
    background: #FFF none;
}

.panel-title {
    font-size: 1.25rem;

    a {
        border-radius: 3px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        display: block;
        padding: .2rem 1rem;

        &::before {
            content: "\f0d7";
            display: inline-block;
            font-family: "Font Awesome 6 Free";
            width: 1em;
        }

        &:hover {
            background: #E3F1DF none;
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
        }

        &.collapsed {
            &::before {
                content: "\f0da";
                display: inline-block;
                font-family: "Font Awesome 6 Free";
                width: 1em;
            }

            &:hover {
                background: #E3F1DF none;
                border-bottom-left-radius: 3px;
                border-bottom-right-radius: 3px;
            }
        }
    }
}

.panel-default {
    border: 1px solid #BFD9B9;

    > .panel-heading {
        background: transparent none;
        padding: 0;

        a {
            color: #000;
        }

        + .panel-collapse {
            &.collapse {
                border-top: 1px solid #DBE9D7
            }

            > .panel-body {
                border-top-color: #BFD9B9;
                padding: 1rem;
            }
        }
    }
}

.panel-group {
    .panel {
        + .panel {
            margin-top: 3px;
        }
    }
}

#changelanguage {
    border-top: 1px solid rgb(173, 173, 173);
    min-height: $language-footer-min-height;
    position: unset;
}

.navbar {
    &.fixed-bottom {
        .nav-item {
            border-right: 1px solid #CCC;

            &:last-child {
                border-right: 0;
            }
        }
    }
}

.tooltip {
    &.bottom {
        .tooltip-arrow {
            border-bottom-color: #EEE;
        }

        .tooltip-inner {
            background-color: #FFFFFF;
            border: 1px solid rgba( 0, 0, 0, .2 );
            box-shadow: 0 5px 10px rgba( 0, 0, 0, .2 );
            color: #000;
            font-size: 120%;
            padding: 1em;
        }
    }
}

.separator {
    color: #BFBFBF;
    padding: 0 .2em;
}

.close {
    filter: none;
    float: none;
    font-size: inherit;
    font-weight: normal;
    line-height: 1.5;
    opacity: inherit;
    position: inherit;
    right: auto;
    text-shadow: none;
    top: auto;

    &:hover {
        color: inherit;
        filter: inherit;
        font-size: inherit;
        opacity: inherit;
    }
}

label {
    .radio &,
    .checkbox & {
        margin-left: 20px;
        padding-left: 0;
    }

    &.disabled {
        color: #CCC;
        cursor: not-allowed;
    }
}

.radio {
    input {
        &[type="radio"] {
            margin-left: 0;
            position: relative;
        }
    }
}

.checkbox {
    input {
        &[type="checkbox"] {
            margin-left: 0;
            position: relative;
        }
    }
}

.btn-group {
    label,
    select {
        font-size: 13px;
    }

    > .btn:first-child:not( :last-child, .dropdown-toggle ) {
        border-right: 1px solid #CCC;

        &.btn-primary {
            border-right: 1px solid darken( saturate( $btn-primary, 15 ), 15 );
        }
    }
}

.tooltip-inner {
    white-space: pre-wrap;
}

.wrapfix {
    white-space: pre-wrap;
}

pre {
    background-color: transparent;
    border: 0;
    border-radius: 0;
    color: inherit;
    display: block;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
    word-break: break-all;
    word-wrap: break-word;
}

code {
    background-color: transparent;
    border-radius: 0;
    color: inherit;
    font-size: inherit;
    padding: 0;
}

.pagination > li > a,
.pagination > li > span {
    font-weight: bold;
}

.tab-content {
    background-color: #FFF;
    border: 0;
    border-radius: 0;
    padding: 1em;
}

.tab-pane {
    &.active {
        @include clearfix;

        &::before {
            content: " ";
            display: table;
        }
    }
}

.nav-tabs {
    padding: .2em 1.4em 0 0;

    .nav-link {
        background-color: $background-color-primary;
        border-radius: 5px;
        color: #FFF;
        font-weight: bold;
        margin: .2em .4em;
        transition: none;

        .badge {
            line-height: .6;
        }
    }
}

// End Bootstrap overrides

.waiting {
    cursor: wait;
}

#jobpanel,
#jobstatus,
#jobfailed {
    display: none;
}

#jobstatus {
    margin: .4em;
}

#jobprogress {
    background: url( "../img/progress.png" ) -300px 0 no-repeat;
    border: 1px solid #666;
    display: inline-block;
    height: 10px;
    width: 200px;
}

.progress_panel {
    border: 2px solid #EEE;
    border-radius: 5px;
    clear: both;
    font-size: 120%;
    margin: 1em 0;
    padding: 1em;
}

progress {
    width: 50%;
}

#selections {
    white-space: normal;
    width: 100%;

    input {
        margin: 0 2px;
        vertical-align: middle;
    }

    span {
        background-color: #ECFFEB;
        border-radius: 5px;
        display: inline-block;
        font-size: 75%;
        margin: 3px;
        padding: 3px;
        white-space: nowrap;

        &.selected {
            background-color: #D2FAD0;
        }
    }
}

#changepasswordf {
    input {
        &[type="text"],
        &[type="password"] {
            font-family: $font-monospace;
            font-size: 140%;
            padding: .3em;
        }
    }
}

.inline {
    display: inline;
}

.nowrap {
    white-space: nowrap;
}

.tag_editor {
    background: transparent url( "../img/edit-tag.png" ) top left no-repeat;
    display: block;
    height: 16px;
    margin: 4px;
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    width: 16px;

    &.upload {
        background: transparent none;
        font-size: 90%;
        height: unset;
        overflow: unset;
        text-indent: unset;
        width: unset;
    }
}

.browse-controls {
    margin-left: 1.1em;
    margin-right: .5em;
    padding-bottom: 1em;
    padding-top: 1em;
}

#browse-return-to-results {
    background-color: #E6E6E6;
    border: 1px solid lighten( $background-color-primary, 30% );
    border-bottom-width: 0;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    display: block;
    padding: .5em;
    text-align: center;
}

.browse-button {
    background-color: transparent;
    border: 1px solid lighten( $background-color-primary, 30% );
    display: block;
    overflow: hidden;
    padding: .4em .6em;
    text-align: center;
    white-space: nowrap;
    width: 100%;
}

a.browse-button {
    color: $green-text-color;

    &:hover {
        background: #FFF;
    }
}

span {
    &.browse-button {
        color: #999;
    }

    &.circ-hlt {
        color: $warning-text-color;
        font-weight: bold;
    }

    &.expired {
        color: #990000;
        font-style: italic;
    }

    &.name {
        font-style: italic;
        font-weight: bold;
    }

    &.required {
        color: $warning-text-color;
        font-style: italic;
        margin-left: .5em;
    }

    &.important {
        color: #EAC117;
        font-style: italic;
        margin-left: .5em;
    }

    &[class*=" label-"] {
        color: #FFF;
        display: inline;
        font-size: 75%;
        font-weight: normal;
        padding: .2em .6em .3em;
    }
}

.result-biblio-itemtype {
    float: right;
    font-size: 85%;
    margin: .5em;
    padding: .5em;
    text-align: center;

    img {
        display: block;
        margin: auto;
        margin-bottom: 2px;
    }
}

#browse-previous {
    border-bottom-width: 0;
}

#browse-next {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

#merge_invoices {
    display: none;
    margin: 1em auto;
}

#merge_table {
    tr {
        &.active {
            td {
                background-color: #FFFFCC;
            }
        }
    }
}

input.renew {
    margin-right: 1em;
}

.renewals-info {
    display: block;
    font-size: .8em;
    padding: .5em;
}

.date-select {
    label {
        width: 40%;
    }
}

#newonholdduedate {
    display: none;
}

#transport-types {
    padding-top: .5px;
}

#i18nMenu {
    .nav-link {
        &.currentlanguage {
            color: #000;
            font-weight: bold;
            pointer-events: none;
        }

        &.sublanguage-selected {
            color: #000;
            font-weight: bold;
        }
    }
}

.onsite_checkout {
    color: $warning-text-color;
}

.onsite-checkout-only {
    background-color: rgba( 255, 242, 206, .5 );
    border: 1px solid #FFF2CE;
    border-radius: 4px;
}

.branchgriditem {
    background-color: #FFFFFF;
    border: 1px solid #BFD9B9;
    border-radius: 3px;
    display: table-cell;
    float: left;
    margin: 3px;
    padding: .3em;
}

.branchgridrow {
    display: table-row;
}

.branchselector {
    display: table;
}

.hq-author {
    font-weight: bold;
}

#cn_browser_table_wrapper > #cn_browser_table {
    margin: auto;
    width: 90%;
}

#new_rule {
    background-color: #F4F8F9;
    border: 2px solid #BFD9B9;
    border-radius: 5px;
    display: none;
    margin: .3em;
    padding: .3em;
}

.blocks {
    margin-bottom: .3em;
}

.remove_rule {
    font-size: 80%;
    padding-left: .7em;
}

.underline {
    text-decoration: underline;
}

.overline {
    text-decoration: overline;
}

.order-control {
    padding-right: 5px;
}

#borrower_message {
    margin-top: 10px;
}

.form-message {
    background-color: #FFF;
    border: 1px solid #A4BEDD;
    border-radius: 5px;
    margin: 1em;
    padding: .5em;
}

#pat_member {
    #patron_list_dialog {
        display: none;
    }
}

#fixedlengthbuilderaction {
    border: 3px solid #E3F1DF;
    left: 80%;
    padding: 5px;
    position: relative;
    top: -80px;
    width: 12%;
}

#interlibraryloans {
    .ill-toolbar {
        display: flex;
    }

    #ill-batch {
        display: flex;
        flex-grow: 1;
        gap: 5px;
        justify-content: flex-end;
    }

    #ill-batch-requests {
        .action-buttons {
            display: flex;
            gap: 5px;
            justify-content: center;
        }
    }

    #ill-batch-modal {
        #create-progress {
            margin-top: 17px;
        }

        .fetch-failed {
            background-color: rgba( 255, 0, 0, .1 );

            & > * {
                background-color: inherit;
            }
        }

        .progress {
            margin-bottom: 0;
            margin-top: 17px;
        }

        #create-requests {
            display: flex;
            justify-content: flex-end;
        }

        .action-column {
            text-align: center;

            & > * {
                margin-left: 5px;
            }

            & > *:first-child {
                margin-left: 0;
            }
        }

        .metadata-row:not( :first-child ) {
            margin-top: .5em;
        }

        .metadata-label {
            font-weight: 600;
        }

        .more-less {
            margin: 2px 0;
            text-align: right;
        }
    }

    #batch-form {
        textarea {
            min-height: 100px;
            padding: 5px;
            resize: vertical;
            width: 100%;
        }

        li#process-button {
            display: flex;
            justify-content: flex-end;
        }

        #textarea-metadata {
            display: flex;
            justify-content: space-between;
            padding: 0 15px;
        }

        #textarea-errors {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 20px 15px 10px;
        }

        .batch-modal-actions {
            text-align: center;
        }
    }

    #dataPreviewLabel {
        margin: .3em 0;
    }

    .bg-info {
        overflow: auto;
        position: relative;
    }

    .format {
        h4 {
            margin-bottom: 20px;
        }

        h5 {
            margin-top: 20px;
        }

        input {
            margin: 10px 0;
        }

        li {
            list-style: none;
        }
    }

    #add-new-fields {
        margin: 1em;
    }

    #column-toggle,
    #reset-toggle {
        font-weight: 700;
        line-height: 1.5em;
        margin: 15px 0;
    }

    #freeform-fields {
        .custom-name {
            margin-right: 1em;
            text-align: right;
            width: 9em;
        }

        .delete-new-field {
            margin-left: 1em;
        }
    }

    #search-summary {
        position: absolute;
        top: 50%;
        transform: translateY( -50% );
    }

    #generic_confirm_search_count {
        margin: 1em 0 1em 10em;
    }

    #generic_confirm_search {
        display: block;
        margin: 1em 0 1em 10em;
        visibility: hidden;
    }

    #partnerSearch {
        .modal-dialog {
            width: 50vw;
        }

        .modal-body {
            max-height: 70vh;
        }
    }

    pre {
        font-family: inherit;
    }
}

.ill-view-panel {
    margin-top: 15px;

    .notesopac {
        display: inline-block;
    }
}

#illfilter_dateplaced_start,
#illfilter_datemodified_start,
#illfilter_dateplaced_end,
#illfilter_datemodified_end {
    width: 80%;
}

#requestattributes {
    font-family: monospace;
    line-height: 1.3em;
}

#ill-requests {
    width: 100% !important;
}

.ar-title,
.hq-title {
    .biblio-title {
        font-weight: bold;
    }
}

#ill-issue-title {
    margin: 20px 0 30px 0;
}

.ill_availability_sourcename {
    margin-top: 20px;
}

#stockrotation {
    h3 {
        margin: 30px 0 10px 0;
    }

    .dialog {
        h3 {
            margin: 10px 0;
        }

        margin-bottom: 20px;
    }

    .highlight_stage {
        font-weight: bold;
    }

    #rota_form {
        textarea {
            height: 100px;
            width: 300px;
        }

        #name {
            width: 300px;
        }

        fieldset {
            width: auto;
        }
    }

    #stage_form fieldset,
    #add_rota_item_form fieldset {
        width: auto;
    }

    .dialog.alert {
        ul {
            margin: 20px 0;
        }

        li {
            list-style-type: none;
        }
    }
}

#catalog_stockrotation {
    .highlight_stage {
        font-weight: bold;
    }

    .item_select_rota {
        vertical-align: middle;
    }

    h1 {
        margin-bottom: 20px;
    }
}

#stockrotation td.actions,
#catalog_stockrotation td.actions {
    vertical-align: middle;
}

#stockrotation .stage,
#catalog_stockrotation .stage {
    background-color: rgba( 0, 0, 0, .1 );
    border-radius: 5px;
    display: inline-block;
    margin: 3px 0 3px 0;
    padding: 5px 7px;
}

#restriction_form {
    .type_input {
        text-transform: uppercase;
    }
}

#stage_list_headings {
    font-weight: bold;

    span {
        padding: 3px;
    }
}

.drag_handle {
    cursor: move;
    margin-right: 6px;
}

.drag_placeholder {
    border: 1px dotted #AAA;
    height: 2em;
}

#manage_stages {
    ul {
        padding-left: 0;
    }

    li {
        list-style: none;
        margin-bottom: 5px;

        span {
            padding: 6px 3px;
        }
    }

    .stagename {
        display: inline-block;
        width: 15em;
    }

    .stageduration {
        display: inline-block;
        width: 10em;
    }

    .stageactions {
        display: inline-block;
    }

    li:nth-child( odd ) {
        background-color: #F3F3F3;
    }

    h3 {
        display: inline-block;
    }

    #ajax_status {
        background: #F3F3F3;
        border: 1px solid #BCBCBC;
        border-radius: 5px;
        display: inline-block;
        margin-left: 10px;
        padding: 5px;
    }

    #manage_stages_help {
        margin: 20px 0;
    }
}

#helper {
    span {
        display: none;
    }
}

#logged-in-info-full {
    display: none;
}

.loggedin-menu-label {
    color: #FFFFFF;
    font-size: 12px;
    line-height: 1.4286;
    padding: 4px 12px;
    white-space: nowrap;

    span {
        color: #FFFFFF;
        font-weight: bold;
        left: 15px;
        top: 0;
    }

    &.divider {
        padding: 0;
    }
}

/* ==== MODULE LINKS - Start ==== */
.buttons-list {
    /* List containing the module links */
    padding: 0;

    li {
        /* Standard attributes for the list elements */
        list-style-type: none;
        margin-bottom: 15px;

        a {
            background-color: #E0E0E0;
            border-radius: 6px;
            color: #101010;
            display: block;
            font-size: 110%;
            font-weight: bold;
            padding: 10px;

            &:hover {
                background-color: $background-color-primary;
                color: #FFF;
                text-decoration: none;
            }
        }
    }
}

.about {
    h2 {
        border-bottom: 1px solid #BFD9B9;
        margin: .5em 0;
        padding: .5em 0;

        & + p {
            margin-left: .5rem;
        }
    }
}

.columns-2 {
    column-gap: 2.5em;
    columns: 2 auto;
}

.columns-3 {
    column-gap: 2.5em;
    columns: 3 auto;
}

.columns-4 {
    column-gap: 2em;
    columns: 4 auto;
}

/* ==== MODULE LINKS - End ==== */

#tools_holidays {
    .radio,
    .checkbox {
        label {
            margin-left: 0;
        }
    }
}

#toggle-editor {
    display: flex;
    align-items: center;
    float: right;

    label {
        margin-left: 2px;
        margin-bottom: 0;
    }

    .switch {
        position: relative;
        display: inline-block;
        width: 60px;
        height: 24px;

        input {
            opacity: 0;
            width: 0;
            height: 0;

            &:checked {
                + .slider {
                    background-color: #408540;
                }
                + .slider:before {
                    -webkit-transform: translateX(26px);
                    -ms-transform: translateX(26px);
                    transform: translateX(26px);
                }
            }
        }

    }

    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #CCC;
        -webkit-transition: .4s;
        transition: .4s;
        border-radius: 34px;

        &::before {
            position: absolute;
            content: "";
            height: 16px;
            width: 25px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            -webkit-transition: .4s;
            transition: .4s;
            border-radius: 34px;
            text-align: center;
            font-weight: bold;
        }
    }
}

/* transport cost matrix */
#transport-cost-matrix {
    table {
        border-collapse: separate; /* Don't collapse */
        border-spacing: 0;

        tbody {
            #to_from {
                z-index: 999;
            }
            tr {
                th,
                td {
                    border: 1px solid #dddddd;
                    padding: 5px;
                }
                th {
                    position: sticky;
                    top: 0;
                    left: 0;
                }
            }
        }
    }
}

/* Permissions */

#permissionstree {
    display: inline-block;

    label {
        cursor: pointer;

        &:hover {
            color: $green-text-color;
        }
    }
}

.main_permission {
    font-size: 110%;
    font-weight: bold;
}

.permissioncode {
    color: #666;
    font-style: italic;
}

.permission-highlight {
    background-color: #FFC !important;
}

.togglechildren_on,
.togglechildren_off {
    float: right;
}

.togglechildren_off,
.children {
    display: none;
}

.open {
    .togglechildren_off {
        display: inline;
    }

    .togglechildren_on {
        display: none;
    }
}

.parent {
    border: 1px solid #DDD;
    border-bottom-width: 0;
    padding: 5px;

    &:last-child {
        border-bottom-width: 1px;
    }

    &:nth-child( odd ) {
        background-color: #F8F8F8;
    }
}

.superlibrarian-hint {
    color: #000;
    padding: .2em 0;
    text-indent: 2em;
}

.child-flags {
    background-color: #FFF;
    border: 1px solid #DDD;
    border-bottom-width: 0;
    margin: 0 5px 0 20px;
    padding: 5px;

    &:first-child {
        margin-top: 10px;
    }

    &:last-child {
        border-bottom-width: 1px;
    }

    &:nth-child( odd ) {
        background-color: #EEE;
    }
}

div#makechart ol li {
    list-style: none;
}

div .suggestion_note {
    background: transparent none;
    border-style: dotted;
    border-width: 1px 0 0 0;
    font-size: 90%;
    padding: 2px 0 0 0;

    i {
        color: #CCC;
    }
}

.ac-library {
    background-color: #EEE !important;
    font-weight: normal;
    color: #000;
}

.ac-currentlibrary {
    .ac-library {
        background-color: #E6FCB7 !important;
        font-weight: bold;
    }
}

.badge + .badge {
    margin-left: .3rem;
}

.currentlibrary {
    background-color: #E6FCB7 !important;
    display: inline-block;
    padding: 2px 4px;
}

.availability {
    .item_count {
        font-weight: bold;
        padding: 2px;

        &::after {
            content: ")";
        }

        &::before {
            content: "(";
        }
    }

    .item_counts {
        font-weight: bold;
        white-space: nowrap;
    }

    .results_available_count {
        font-weight: bold;
        margin-bottom: .5em;
    }

    .results_checkedout {
        color: #900;
        margin: .3em 0;
    }

    .results_unavailable {
        color: #555;
        font-style: italic;
        margin: .3em 0;
    }

    .result_item_details {
        display: inline-block;
        white-space: nowrap;

        &::before {
            content: "\2022";
        }
    }

    .item-date-due {
        display: block;
    }
}

#camera,
#output {
    border: 8px solid #EDF4F6;
    padding: 1em;
}

#photo {
    display: block;
    margin: auto;
}

#camera-error {
    display: none;
    flex-direction: row;
    flex-wrap: nowrap;

    div {
        padding: 0 .5em;
    }
}

#koha_version,
#koha_community {
    float: right;
    margin: .5em;
}

#cookieConsentedJSItems {
    #cookieConsentedJSWarning {
        font-size: 120%;
        font-weight: 800;
        margin: 20px 0;
        text-align: center;
    }

    .cookieConsentedJSItem {
        border: 1px solid #CCC;
        margin-bottom: 30px;
        padding: 10px;
    }

    .consentRow {
        display: flex;
        margin-bottom: 20px;

        .consentItem {
            margin-right: 40px;
        }

        .consentItem:last-child {
            margin-right: 0;
        }
    }

    .codeRow {
        display: block;
    }

    .consentDelete {
        display: block;
        text-align: right;
    }
}

/* Cookie consent bar */
#cookieConsentBar {
    align-items: center;
    background: rgba( 0, 0, 0, .7 );
    bottom: 0;
    color: rgba( 255, 255, 255, .9 );
    display: none;
    flex-wrap: wrap;
    left: 0;
    padding: 20px;
    position: fixed;
    right: 0;
    z-index: 1;

    a:link,
    a:visited {
        color: #D7EBFF;
    }

    button {
        margin-bottom: .5rem;
        margin-top: .5rem;

        &:not( :last-child ) {
            margin-right: 10px;
        }
    }
}

.consentButtons {
    flex-grow: 1;
    margin-top: 10px;
    text-align: left;
    white-space: normal;
}

/* Cookie consent modal */
#cookieConsentModal {
    .modal-dialog {
        width: 700px;
    }

    .consentModalItem {
        align-items: center;
        border: 1px solid #CCC;
        border-radius: 5px;
        display: flex;
        padding: 10px 20px;
    }

    .consentModalItem:not( :last-child ) {
        margin-bottom: 20px;
    }

    .consentItemCheckbox {
        padding-right: 20px;
    }

    .consentItemName {
        font-weight: bold;
    }

    #cookieConsentPopupText {
        margin: 20px 0;
    }
}

.chocolat-wrapper {
    z-index: 1050;

    --chocolat-icon-left: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 32 32'%3E%3Ccircle fill='%23408540' cx='16' cy='16' r='16' fill-opacity='.9'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.3' d='M15.3 20.7 10.7 16l4.6-4.7m7.4 4.7h-12'/%3E%3C/svg%3E" );
    --chocolat-icon-right: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle fill='%23408540' cx='16' cy='16' r='16' fill-opacity='.9'/%3E%3Cpath d='m16.7 11.3 4.6 4.7-4.6 4.7M9.3 16h12' fill='none' stroke='%23fff' stroke-width='1.3'/%3E%3C/svg%3E" );
    --chocolat-icon-loader: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38'%3E%3Cg transform='translate(1 1)' stroke-width='2' fill='none' fill-rule='evenodd'%3E%3Ccircle stroke='%23000' cx='18' cy='18' r='18'/%3E%3Cpath d='M36 18C36 8 28 0 18 0' stroke='%236faf44'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 18 18' to='360 18 18' dur='1s' repeatCount='indefinite'/%3E%3C/path%3E%3C/g%3E%3C/svg%3E" );
    --chocolat-icon-close: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' stroke-linecap='round'%3E%3Ccircle fill='%23408540' cx='16' cy='16' r='16' fill-opacity='.9'/%3E%3Cpath d='m12 12 8 8m0-8-8 8' fill='none' stroke='%23fff' stroke-width='1.3'/%3E%3C/svg%3E" );

    a:link,
    a:visited,
    a:hover,
    a:active {
        color: #FFF;
    }

    .chocolat-bottom {
        background: rgba( 0, 0, 0, .7 );
    }
}

#set_library_controls {
    align-items: center;
    display: flex;

    div:first-child {
        flex-grow: 1;
    }

    a.btn {
        border-radius: 0;
        font-size: 13px;
    }
}

#setlibrary_panel {
    .setlibrary_panel_open {
        border-bottom: 1px solid #CCC;
        border-top: 1px solid #CCC;
    }

    fieldset {
        background-color: #554B4D;
        margin: 0;

        &.rows {
            float: none;
            padding: 0;
            width: auto;
        }

        &.action {
            padding: .5em 0 1em 1em;
        }
    }

    legend {
        display: none;
    }

    label {
        color: #FFF;
        display: block;
        float: none;
        font-weight: normal;
        margin: 0;
        padding-bottom: .2em;
        text-align: left;
        width: unset;
    }

    select {
        width: 80%;
    }

    #cancel_set_library {
        color: #FFF;
        padding: 0.4em 20px;

        &:hover {
            background-color: $background-color-primary;
            text-decoration: none;
        }
    }
}

#circ_request {
    fieldset:has(fieldset.disabled) {
        cursor: pointer;
    }
    fieldset {
        position: relative;

        &.disabled {
            pointer-events: none;
        }

        &.rows:has(fieldset.enabled) {
            border: 1px solid #408540;

            &::before {
                font-family: 'Font Awesome 6 Free';
                content: "\f058";
                color: #408540;
                position: absolute;
                top: -14px;
                left: -18px;
                font-size: 22px;
            }
        }
    }
}

.dropdown-menu {
    box-shadow: 0 2px 6px rgba(0,0,0,0.175);
}

.navbar.fixed-bottom {
    background: #FFF none;
    border-radius: 0;
    border-top: 1px solid #ADADAD;
    box-shadow: none;

    fieldset {
        margin: 0;
        text-align: right;
    }

    .navbar-inner {
        min-height: 0;
        padding: .4em 0;
    }

    .nav > li {
        border-right: 1px solid #CCC;

        > a {
            font-weight: normal;
        }

        &:last-child {
            border-right: 0;
        }

        &.navbar-text {
            line-height: normal;
            padding: .4em .7em;
        }
    }
}

.badge {
    a {
        font-weight: bold;
    }
}

#plugin-search-form {
    .form-group {
        margin-bottom: 0px;
    }
}

@import "header";
@import "toolbar";
@import "forms";

@media only screen and ( min-width: 608px ) {
    .consentButtons {
        text-align: right;
        white-space: nowrap;
    }
}

@media only screen and ( min-width: 576px ) {
    body {
        padding-bottom: 4em;
    }

    #changelanguage {
        bottom: 0;
        display: block;
        left: 0;
        position: fixed;
        right: 0;
        z-index: 1030;
    }

    .buttons-list {
        max-width: 260px;
    }
}

@media ( min-width: 768px ) {
    .nav-tabs {
        .nav-link {
            border-radius: 0;
            margin: 0 .4em calc( -1 * var( --bs-nav-tabs-border-width ) ) 0;
        }
    }
}

@media ( max-width: 767px ) {
    #marcPreview {
        margin: 0;
        width: auto;
    }
}

@media only screen and ( min-width: 1000px ) {
    .patronimage {
        h5 {
            text-align: center;
        }
    }

    .patroninfo-container {
        flex-direction: column;
    }

    aside {
        fieldset {
            &.brief {
                & + .action {
                    display: flex;
                    gap: .5rem;

                    input,
                    button,
                    a {
                        display: block;
                        flex-grow: 1;

                        &.clear_search {
                            flex-grow: 0;
                            flex-shrink: 1;
                        }
                    }
                }
            }
        }
    }
}

@media only screen and ( max-width: 1000px ) {
    .browse-button {
        display: inline-block;
        width: 50%;
    }

    #browse-previous {
        border-bottom-left-radius: 5px;
        border-bottom-width: 1px;
        border-right-width: 0;
    }

    #browse-next {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 5px;
    }
}

@media ( min-width: 1050px ) {
    #helper {
        i {
            display: none;
        }

        span {
            display: inline;
        }
    }
}

@media only screen and ( min-width: 1200px ) {
    .browse-button {
        display: inline-block;
        width: 50%;
    }

    #browse-previous {
        border-bottom-left-radius: 5px;
        border-bottom-width: 1px;
        border-right-width: 0;
    }

    #browse-next {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 5px;
    }

    #logged-in-info-full {
        display: inline;
    }

    #logged-in-info-brief {
        display: none;
    }

    .loggedin-menu-label {
        display: none;
    }
}

#backtotop {
    font-size: 140%;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: $zindex-tooltip;
}

@media only screen and ( max-width: 1200px ) {
    .patron_search_modal {
        .modal-body {
            display: block;
        }
    }
}

[class*="filters-"] {
    [data-filtered] span:nth-child(2) {
        display: none;
    }

    a:not([data-filtered]) span:nth-child(1) {
        display: none;
    }

    a {
        cursor: pointer;
    }
}

/*rtl:raw:
.dropdown-menu-end[data-bs-popper] {
  left: auto;
  right: 0;
}
*/

/*rtl:raw:
.CodeMirror{
    text-align: left;
}
*/
