﻿body .overlay {
    border-radius: 0.25rem;
    -ms-flex-align: center;
    align-items: center;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 5000;
    height: 100%;
    width: 100%;
    left: 0;
    position: absolute;
    top: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.brand-image {
    margin-left: .8rem !important;
    display: none;
}

body.sidebar-collapse .brand-image {
    display: block;
}
.main-sidebar:hover .brand-image {
    display: none;
}

input.modified, textarea.modified, select.modified {
    color: blue;
    transition: background-color 0.3s ease-in-out;
}

.filter-modified {
    border-color: #007bff !important; 
    background-color: #e7f1ff !important; 
}

.form-group {
    margin-bottom: 0.2rem;
}

.criterion-values-body {
    border-radius: 3px;
    overflow-y: auto;
    min-height: 150px;
    max-height: 450px;
    border: 1px solid rgba(0,0,0,.1);
    padding: 10px;
}

/*Make the small Up/Down Arrows in number inputs always visible (not only on focus)*/
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    opacity: 1 !important;
    display: inline-block !important;
}

div.dataTables_wrapper div.dataTables_processing {
    height: fit-content;
    background-color: #fff;
    z-index: 1;
    top: 155px;
    padding: 0.5em 0;
}
    div .dataTables_wrapper div.dataTables_processing::after {
        content: '';
        display: block;
        padding-bottom: 3px;
        margin-left: 1px;
        margin-right: 1px;
        background: linear-gradient(currentColor 0 0) 0 100%/0% 3px no-repeat;
        animation: l2 2s linear infinite;
        position: relative;
        top: 10px;
    }

@keyframes l2 {
    to {
        background-size: 100% 3px
    }
}

.sticky-thead {
    position: sticky;
    top: 55px;
    background-color: white;
    z-index: 550;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gap-3 {
    gap: 1rem !important;
}

.align-items-center {
    align-items: center;
}

.nav-link.active {
    font-weight: bold;
}

input~.copy-clipboard {
    position: absolute;
    right: 18px;
    top: 42px;
}

.copy-clipboard {
    margin-left: 5px;
}

.copy-clipboard-copied {
    color: #28a745 !important;
}

.disabled-link {
    pointer-events: none; 
    color: gray !important;
    text-decoration: none;
    cursor: default;
}

.td-package-title {
    font-style: italic;
}
.td-package-item {
    padding-left: 25px !important;
}

.dt-max-600 {
    max-width: 600px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: normal;
}

    .dt-max-600::-webkit-scrollbar {
        height: 6px;
    }

    .dt-max-600::-webkit-scrollbar-track {
        background: transparent;
    }

    .dt-max-600::-webkit-scrollbar-thumb {
        background-color: #888;
        border-radius: 3px;
    }

    .dt-max-600::-webkit-scrollbar-thumb:hover {
        background-color: #555;
        cursor: pointer;
    }

.dt-copyable {
}

.dt-align-right {
    text-align: right;
    position: relative;
}

.copy-clipboard {
    color: black; 
    transition: color 0.2s;
}

.copy-clipboard.copied {
    color: green; 
}

.history-changed {
    background-color: #ffddcc;
    position: relative;
}

    .history-changed::after {
        content: '\f0d8';
        font-family: "Font Awesome 6 Free";
        position: absolute;
        left: 40%;
        top: -10px;
        color: #449944;
        font-weight: bold;
    }

select.form-control.is-invalid {
    background-image: none !important;
    border-color: #dc3545 !important; 
}

.btn.disabled,
.btn:disabled {
    pointer-events: none;
    opacity: 0.2; 
    filter: grayscale(100%) brightness(80%);
    transform: scale(0.98); 
    transition: all 0.2s ease-in-out;
}

.btn.hidden {
    visibility: hidden !important;
}

.bg-gray-light {
    background-color: #C2DDFF !important;
}

.dataTables_filter {
    margin-top: 0.7rem;
    margin-right: 0.4rem;
}

.expandable-body {
    background-color: #f5f5f5;
}

.cursor-pointer {
    cursor: pointer;
}

.input-number-no-arrows::-webkit-outer-spin-button,
.input-number-no-arrows::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-number-no-arrows[type=number] {
    -moz-appearance: textfield; /* Firefox */
}

a.active {
    font-weight: bold;
}

.fa-ban-red {
    color: #ff4444 !important;
}

.fa-check-green {
    color: #218838 !important;
}