html {
    font-size: 14px;
}

.square {
    aspect-ratio: 1 / 1;
}

.dragNDropText {
    color: darkblue;
    font-size: 15px;
    font-weight: bold;
}

.table.sticky-header thead th {
    position: sticky;
    top: -1px;
    background-color: white;
    /* When you scroll down on a sticky table, the header border disappears.
    Adding a box shadow here so there is still a line between the header and the body */
    box-shadow:
        inset 0 1px 0 var(--light),
        inset 0 -1px 0 var(--light);
}

table.no-stripes td {
    /* Remove inherited stripes for a nested table */
    background-color: white;
    border-top: 0px;
}

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

/* Highlighting used in search */
.highlight {
    background: #fdf50094;
    color: #3e3e3e;
}

.mw-25 {
    max-width: 25% !important;
}

.mh-25 {
    max-height: 25% !important;
    overflow-y: auto;
}

.primary-checkbox {
    accent-color: var(--primary);
    cursor: pointer;
    width: 1rem;
    height: 1rem;
}

/****************************************************************/
/*                          Toasts                              */
/****************************************************************/

.centered-toasts-container {
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    z-index: 1030;
    /* Set height to 0 to prevent div from covering links/buttons behind it */
    max-height: 0;
}

/****************************************************************/
/*                    Sidebar styling                           */
/****************************************************************/

.sidebar {
    --handle-size: 28px;
    --fade-transition: all 0.2s cubic-bezier(0.47, 0, 0.745, 0.715);
    position: relative;
    min-width: 250px;
    min-height: 100vh;
    color: white;
    background: var(--primary);
    box-shadow: 1px 0px 3px var(--dark);
    transition: var(--fade-transition);
}

.sidebar.closed {
    position: absolute;
    transform: translateX(-250px);
}

.sidebar.closed .sidebar-header,
.sidebar.closed .sidebar-section {
    overflow: hidden;
}

.sidebar .sidebar-header {
    height: 68px;
    padding: 4px 12px;
    background: white;
    display: flex;
    margin-bottom: 2rem;
}

.sidebar .sidebar-title {
    font-size: 28px;
    font-weight: 500;
    text-align: center;
    padding: 4px;
}

.sidebar .sidebar-sub-title {
    text-align: center;
    color: var(--muted);
}

.sidebar .sidebar-section {
    margin-bottom: 2rem;
}

.sidebar .sidebar-section>.sidebar-section-title {
    font-size: 22px;
    padding-left: 4px;
    margin-bottom: 4px;
    margin-left: 3px;
}

.sidebar .sidebar-section>.sidebar-section-body {}

.sidebar .sidebar-section>.sidebar-section-body>.sidebar-section-item {
    font-size: 16px;
    /* border-radius: 0 15px 15px 0; */
    /* margin-right: 15px; */
    transition: var(--fade-transition);
}

.sidebar a,
.sidebar a:hover,
.sidebar a:active,
.sidebar a:visited {
    display: block;
    padding: 8px 0 8px 40px;
    color: inherit;
    text-decoration: none;
}

.sidebar .sidebar-section>.sidebar-section-body>.sidebar-section-item.active {
    font-size: 16px;
    background: var(--secondary);
    font-weight: 500;
}

.sidebar .sidebar-section>.sidebar-section-body>.sidebar-section-item:hover {
    background: var(--dark);
}

.sidebar .sidebar-handle {
    opacity: 0;
    position: absolute;
    width: var(--handle-size);
    height: var(--handle-size);
    border: 2px solid var(--primary);
    color: var(--primary);
    background: white;
    padding: 2px;
    text-align: center;
    border-radius: 50%;
    right: calc(-1 * var(--handle-size) / 2);
    top: calc(var(--handle-size) * 2);
    transition: var(--fade-transition);
    z-index: 9999;
}

.sidebar .sidebar-handle:hover {
    background: var(--primary);
    color: white;
}

.sidebar:hover {
    transition: var(--fade-transition);
    box-shadow:
        2px 0px 4px var(--dark),
        2px 0px 4px var(--light);
}

.sidebar:hover .sidebar-handle {
    opacity: 1;
    cursor: pointer;
    transition: var(--fade-transition);
    box-shadow:
        2px 0px 4px var(--dark),
        2px 0px 4px var(--light);
}

.sidebar.closed .sidebar-handle {
    /* right: calc(-1 * var(--handle-size) / 2 + 2); */
    opacity: 1;
}

.sidebar.closed:hover .sidebar-handle {
    cursor: pointer;
    transition: var(--fade-transition);
    box-shadow:
        2px 0px 4px var(--dark),
        2px 0px 4px var(--light);
    transform: translateX(calc(var(--handle-size) / 2));
}

.app-menu-apps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background-color: white;
    padding: 4rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px var(--light);
}

.home-title {
    text-align: center;
    color: #400099;
    margin: 4rem;
}

.logo {
    float: left;
}

.logo-home-title {
    color: #400099;
    margin: 0 1rem;
}

.user-form-checkbox {
    margin: -0.75rem 0rem 0rem 0.25rem;
}

.user-permission-row {
    margin: -0.75rem 0rem 0rem 0.25rem;
}

/****************************************************************/
/*                    Dual Badge                                */
/****************************************************************/

.dual-badge {
    display: inline-flex;
}

.badge-primary-field {
    color: var(--white);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.badge-secondary-field {
    filter: brightness(150%);
    color: var(--white);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/****************************************************************/
/*                    Jumping Loader                            */
/****************************************************************/

#jumpingLoaderDiv {
    display: none;
    position: fixed;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgb(233, 233, 233);
    border-radius: 5px;
    width: 400px;
    padding: 10px;
    margin-top: 100px;
    margin-left: calc(50vw - 200px);
    color: blue;
    z-index: 100000;
}

#jumpingLoaderDiv h4 {
    margin-top: 10px;
}

.jumpingGIF {
    width: 100px;
    animation-name: rotate;
    animation-duration: 3.5s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.underline {
    text-decoration: underline;
}

/****************************************************************/
/*                         Dark Mode                            */
/****************************************************************/

html.dark-mode {
    /*
        This styling should only be used on the root html element. If used anywhere else (e.g. body) it
        breaks `position: fixed` styling on child elements.
        See https://stackoverflow.com/q/52937708/11278892
    */
    filter: invert(0.9) hue-rotate(180deg);
}

.hover-shadow {
    transition: 0.2s;
}

.hover-shadow:hover {
    cursor: pointer;
    box-shadow: 0 1px 9px #22222222;
    transition: 0.2s;
}

.blurred-wrapper .blurred-text {
    filter: blur(5px);
}

.blurred-wrapper:hover .blurred-text {
    filter: none;
}

.faa-ring {
    color: red;
}

/* Bell ringing animation */
@-webkit-keyframes ring {
    0% {
        -webkit-transform: rotate(-15deg);
        transform: rotate(-15deg);
    }

    2% {
        -webkit-transform: rotate(15deg);
        transform: rotate(15deg);
    }

    4% {
        -webkit-transform: rotate(-18deg);
        transform: rotate(-18deg);
    }

    6% {
        -webkit-transform: rotate(18deg);
        transform: rotate(18deg);
    }

    8% {
        -webkit-transform: rotate(-22deg);
        transform: rotate(-22deg);
    }

    10% {
        -webkit-transform: rotate(22deg);
        transform: rotate(22deg);
    }

    12% {
        -webkit-transform: rotate(-18deg);
        transform: rotate(-18deg);
    }

    14% {
        -webkit-transform: rotate(18deg);
        transform: rotate(18deg);
    }

    16% {
        -webkit-transform: rotate(-12deg);
        transform: rotate(-12deg);
    }

    18% {
        -webkit-transform: rotate(12deg);
        transform: rotate(12deg);
    }

    20% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}

@keyframes ring {
    0% {
        -webkit-transform: rotate(-15deg);
        -ms-transform: rotate(-15deg);
        transform: rotate(-15deg);
    }

    2% {
        -webkit-transform: rotate(15deg);
        -ms-transform: rotate(15deg);
        transform: rotate(15deg);
    }

    4% {
        -webkit-transform: rotate(-18deg);
        -ms-transform: rotate(-18deg);
        transform: rotate(-18deg);
    }

    6% {
        -webkit-transform: rotate(18deg);
        -ms-transform: rotate(18deg);
        transform: rotate(18deg);
    }

    8% {
        -webkit-transform: rotate(-22deg);
        -ms-transform: rotate(-22deg);
        transform: rotate(-22deg);
    }

    10% {
        -webkit-transform: rotate(22deg);
        -ms-transform: rotate(22deg);
        transform: rotate(22deg);
    }

    12% {
        -webkit-transform: rotate(-18deg);
        -ms-transform: rotate(-18deg);
        transform: rotate(-18deg);
    }

    14% {
        -webkit-transform: rotate(18deg);
        -ms-transform: rotate(18deg);
        transform: rotate(18deg);
    }

    16% {
        -webkit-transform: rotate(-12deg);
        -ms-transform: rotate(-12deg);
        transform: rotate(-12deg);
    }

    18% {
        -webkit-transform: rotate(12deg);
        -ms-transform: rotate(12deg);
        transform: rotate(12deg);
    }

    20% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}

.faa-ring.animated,
.faa-ring.animated-hover:hover,
.faa-parent.animated-hover:hover>.faa-ring {
    -webkit-animation: ring 2s ease infinite;
    animation: ring 2s ease infinite;
    transform-origin-x: 50%;
    transform-origin-y: 0px;
    transform-origin-z: initial;
}

.modal {
    overflow-y: auto;
    cursor: initial;
}

.cursor-pointer {
    cursor: pointer;
}

/* Hide arrow buttons on number input fields */
.no-spin-input::-webkit-outer-spin-button,
.no-spin-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.no-spin-input {
    -moz-appearance: textfield;
    /* Firefox */
}

.fa-angle-down {
    transform: rotate(0deg);
    transition: transform 0.2s linear;
}

.fa-angle-down.open {
    transform: rotate(180deg);
    transition: transform 0.2s linear;
}

kbd {
    background-color: #eee;
    border-radius: 3px;
    border: 1px solid #b4b4b4;
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.2),
        0 2px 0 0 rgba(255, 255, 255, 0.7) inset;
    color: #333;
    display: inline-block;
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1;
    padding: 2px 4px;
    white-space: nowrap;
}

.fa-wrapper {
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

.fa-wrapper i {
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    transform: scale(1);
    transition: all 0.3s;

    .fa-wrapper:hover & {
        transform: scale(1.05);
        filter: drop-shadow(2px 2px 2px gray);
    }
}

.fa-counter {
    background-color: #fa3e3e;
    border-radius: 1em;
    color: white;

    padding: 0.05em 0.4em;
    font-size: 0.4em;
    font-weight: bold;

    position: absolute;
    top: -0.5em;
    right: -0.5em;
}

/* counter size utility classes that match fontawesome sizes */
.fa-counter.fa-counter-xs {
    font-size: 0.24em;
}

.fa-counter.fa-counter-sm {
    font-size: 0.28em;
}

.fa-counter.fa-counter-lg {
    font-size: 0.426em;
}

.fa-counter.fa-counter-2x {
    font-size: 0.64em;
}

.fa-counter.fa-counter-3x {
    font-size: 0.96em;
}

.fa-counter.fa-counter-5x {
    font-size: 1.6em;
}

.fa-counter.fa-counter-7x {
    font-size: 2.24em;
}

.fa-counter.fa-counter-10x {
    font-size: 3.2em;
}

.pointer-events-none {
    pointer-events: none;
}

/****************************************************************/
/*                    AdmColorStatus                            */
/****************************************************************/

.highlighter-blue {
    color: #00ffff;
}

.highlighter-yellow {
    color: #fdff00;
}

.highlighter-green {
    color: #00ff04;
}

.highlighter-red {
    color: #ee5858;
}

.bg-highlighter-blue {
    background-color: #00ffff !important;
}

.bg-highlighter-yellow {
    background-color: #fdff00 !important;
}

.bg-highlighter-green {
    background-color: #00ff04 !important;
}

.bg-highlighter-red {
    background-color: #ee5858 !important;
}

.bg-highlighter-brown {
    background-color: #8b4513 !important;
}

.bg-highlighter-dark_grey {
    background-color: #939393 !important;
}

.bg-highlighter-purple {
    background-color: #b300ff !important;
}

.bootstrap-select .dropdown-item.active {
    background-color: white !important;
    color: black;
}

.bootstrap-select .dropdown-item.active:hover {
    background-color: #e9ecef !important;
}

/* Alpine.js styles */
[x-cloak] {
    display: none !important;
}

.text-decoration-line-through {
    text-decoration: line-through;
}

#toggle-active .custom-control-input:checked~.custom-control-label:before {
    background-color: var(--success) !important;
    border-color: var(--success) !important;
}

#toggle-active .custom-control-label:before {
    background-color: var(--danger) !important;
    border-color: var(--danger) !important;
}

.fade-out {
    background-color: rgba(255, 0, 0, 0.3) !important;
    opacity: 0;
    transition: opacity 1s;
}

.badge-muted {
    background-color: #6c757d !important;
    color: white;
}

.card-slim .card-header,
.card-slim .card-footer,
.card-slim .card-body,
.card-body.card-slim {
    padding: 0.6rem 1rem;
}

.overflow-y {
    overflow-y: auto !important;
}

/*
    Reserve Space utils

These util classes are "magic" numbers to reserve space of elements that dynamically pop in. This is to reduce content layout shifts CLS.
*/
.rs-90 {
    width: 90px;
}

.rs-min-150 {
    min-width: 150px;
}

.rs-full-100 {
    width: 100vw;
    height: 100vh;
}

.hover-enhance {
    z-index: 100;
    display: inline-block;
    position: relative;
    line-height: normal;
    transition: transform 0.1s ease-out;
    margin-left: 0.05rem;
    margin-right: 0.05rem;
}

.hover-enhance:hover {
    transform: scale(1.2);
}

.badge {
    min-width: 0.85rem;
}
.clickable-card {
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid transparent !important;

}
.clickable-card:hover {
    text-decoration: none;
    transform: scale(1.1);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    border-color: #9c7aca !important; /* Bootstrap primary color */
}

.clickable:hover{
     text-decoration: none;
    transform: scale(1.2);
    cursor: pointer;
}
.clickable{
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

@keyframes slideIn {
    from {
    transform: translateY(-100%);
    opacity: 0;
    }
    to {
    transform: translateY(0);
    opacity: 1;
    }
}

.message-block .toast {
    animation-name: slideIn;
    animation-duration: 0.2s;
    animation-timing-function: ease-out;
}
