.bg-gradient-primary{
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(50%, #0095CD), to(#006D9A));
    background-image: linear-gradient(180deg, #0095CD 50%, #006D9A 100%);
    background-size: cover;
    border: 1px;
}

.bg-login-image {
    background: url("../img/laurametaal-logo.svg");
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.sidebar-brand-icon {
    filter: brightness(0) invert(1);
}

.btn-primary {
    color: #fff;
    background-color: #0095CD;
    border-color: #0095CD;
}

.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
    color: #fff;
    background-color: #0095CD;
    border-color: #0095CD;
}

.dropdown-item:active {
    background-color: #0095CD!important;
}

.sidebar-dark .sidebar-heading {
    color: #ffffff!important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open>.dropdown-toggle.btn-primary{
    color: #fff;
    background-color: #006894!important;
    border-color: #006894!important;
}

.form-text-area {
    height: 15rem;
}

label.required:after {
    content: "* ";
    color: red;
    position: relative;
    right: -4px;
}

.dropdown-header{
    background-color: #233160!important;
    border: 1px solid #233160!important;
}

.bg-primary{
    background-color: #1C3995!important;
}

.sticky-footer {
    bottom: 0;
}

.col-form-label {
    font-weight: bold;
}

.col-form-text {
    padding-top: calc(0.375rem + 1px);
    padding-bottom: calc(0.375rem + 1px);
    margin-bottom: 0;
    font-size: inherit;
    line-height: 1.5;
}

.no-margin {
    margin: 0!important;
}
.form-no-input {
    padding-top: calc(.375rem + 1px);
    padding-bottom: calc(.375rem + 1px);
    margin-top: 0;
    margin-bottom: 0;
    font-size: inherit;
    line-height: 1.5;
}

.table{
    max-width: 100% !important
}

.page-item.active .page-link {
    color: #fff;
    background-color: #0095CD;
    border-color: #0095CD;
}

.btn-link {
    color: #0095CD;
}

.btn-link:hover {
    color: #006894;
    text-decoration: underline;
}

.badge {
    font-size: 80%;
    padding: 8px;
}

.select2-selection__rendered {
    line-height: 2.3rem !important;
}

.select2-container .select2-selection--single {
    height: 2.4rem !important;
}
.select2-selection__arrow {
    height: 2.4rem !important;
}

.image-button:hover {
    cursor: pointer;
}

/* Image upload and preview styling */
.temp-image-container {
    margin-top: 20px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevent overflow */
}

.image-wrapper img {
    max-width: 90%; /* Slightly smaller than container to account for rotation */
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    transform-origin: center;
    transition: transform 0.2s ease-in-out;
}

/* When rotated, ensure image fits within container */
.image-wrapper img[data-rotation="90"],
.image-wrapper img[data-rotation="-270"],
.image-wrapper img[data-rotation="270"],
.image-wrapper img[data-rotation="-90"] {
    max-width: 60%; /* More restrictive when rotated */
    max-height: 90%;
}

@media print {
    body {
        color: #000;
    }

    .form-control {
        color: #000;
    }

    .required::after {
        display: none;
    }

    .navbar-nav {
        display: none;
    }

    .sticky-footer {
        display: none;
    }

    #wrapper #content-wrapper {
        background-color: #fff;
    }

    .select2-selection__rendered {
        color:#000!important;
    }

    .custom-file {
        display: none!important;
    }

    .btn {
        display: none;
    }

    .scroll-to-top {
        display: none!important;
    }
}