@font-face {
    font-family: "Replica";
    src: url("/font/ReplicaLLWeb-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Replica";
    src: url("/font/ReplicaLLWeb-Bold.woff") format("woff");
    font-weight: 600;
    font-style: normal;
}
/* Base */
:root {
    --bs-btn-active-bg: #FFDD35 !important;
}

body,
html {
    font-family: Replica, sans-serif;
    font-weight: 300;
    font-style: normal;
    height: 100%;
    color: #000;
}

.tooltip {
    font-family: usual, sans-serif;
}

.bg-light {
    background-color: #f1f1f1 !important;
}

.bg-primary {
    background-color: #FFDD35 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
a.link,
.dropdown a.active-link,
.active-link,
strong {
    font-weight: 600;
}

.btn {
    font-weight: 600;
}

.height-100 {
    height: 100%;
}

.dropdown-menu,
.card {
    border-radius: 0;
    border: none;
}

.boxview {
    max-width: 1000px;
}

.dropdown-menu {
    max-height: 700px;
    overflow: auto;
}

.height-fit-content {
    height: fit-content;
    height: -moz-fit-content;
}
/*Buttons*/
.btn {
    border-radius: 100px;
    padding: 0.6rem 1.2rem;
    border: none;
    color: #000;
}

    .btn.rounded-circle {
        padding: 0.375rem 0.75rem;
    }

    .btn-check:focus + .btn-primary,
    .btn-primary:focus,
    .btn:focus {
        box-shadow: none;
    }

    .btn.btn-primary {
        background-color: #f4e38e;
    }

    .btn-primary:hover,
    .btn.btn-default:hover {
        background-color: #ffdd35 !important;
        color: #000 !important;
    }

.btn-sm {
    font-size: inherit;
}

.btn-sm {
    padding: 0.4rem 1rem;
}

.btn.btn-default {
    background-color: #fff;
    color: #000;
}

.btn.btn-danger {
    background-color: #f1f1f1;
    color: #c45353;
}

    .btn.btn-danger:hover {
        background-color: #ffd3d3;
    }

.btn-check:focus + .btn-primary,
.btn-primary:focus {
    color: #000;
}

.btn.badge {
    padding: 0.35em 0.65em;
}

a.link,
.link,
.btn-link {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
.btn-new-f, 
.btn-new-t, 
.btn-c-i, 
.btn-excel {
    background-color: #fce996;
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    font-size: clamp(0.8rem, 2.5vw, 1rem); 
    font-weight: bold;
    color: #000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap; 
    max-width: 100%; 
    }
.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Du kan lägga till margin-right om du vill skapa utrymme mellan knapparna och innehållet */
}
.filter-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Du kan lägga till margin-right om du vill skapa utrymme mellan knapparna och innehållet */
}
/*BUTTON END*/
    a.link:hover,
    .link:hover {
        color: #ffdd35 !important;
    }

.form-control:focus,
.form-check-input:focus {
    box-shadow: none;
    border: 1px solid dimgray;
}


.status-circle {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

.status-open {
    background-color: red;
}

.status-closed {
    background-color: green;
}


.form-control {
    border-radius: 0;
    border: 1px solid dimgray;
}

.form-check-input {
    border: 1px solid dimgray;
}

    .form-check-input:checked {
        border: 1px solid #000;
        background-color: #ffdd35;
    }

.bg-light .form-control {
    border: none;
}

.btn-secondary {
    background-color: #ffffff;
}

.btn-outline-secondary {
    border: solid 2px #000000;
    background-color: transparent;
}

.modal-content {
    background-color: #F1F1F1;
    border-radius: 0;
}

.modal-footer {
    border-top: none;
}

    .modal-footer .btn + .btn {
        margin-left: 30px;
    }

.modal-header {
    border-bottom: 0;
}
/* end base */

/* menu */
nav {
    min-height: 75px;
}

    nav img {
        max-height: 30px;
    }

.dropdown img {
    height: 15px;
}

.dropdown .btn-link {
    text-decoration: none;
}

.dropdown + .dropdown:not(.filter-card .dropdown) {
    margin-left: 12px;
}

.navbar .dropdown:not(.language) li {
    border-top: 1px solid #f4e38e;
    padding: 0.6rem 0;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #eee;
}

.navbar .dropdown li:first-of-type {
    border-top: none;
}

@media screen and (max-width: 991px) {
    .navbar-brand {
        top: 20px !important;
    }

    .navbar .dropdown {
        margin-top: 20px;
        display: inline-block;
    }

    .navbar-nav {
        flex-flow: row wrap;
    }

        .navbar-nav .dropdown-menu {
            position: absolute;
        }

    .sticky-top {
        position: unset !important;
    }
}

@media screen and (max-width: 500px) {
    .navbar-brand {
        right: 0;
    }

    nav img {
        height: 25px;
    }
}
/* end menu */

/* login */
.login-bg {
    background-image: url(/img/background_login.jpg);
    background-size: cover;
    height: calc(100% - 75px);
    width: 100%;
}

/* end login */

/* content-table */
.table {
    color: #000 !important;
}

.table-sort th {
    position: relative;
}

.table-sort .position-icon {
    position: absolute;
    margin-left: 5px;
}

.text-dark {
    color: #000 !important;
}

.table td {
    word-wrap: break-word;
    white-space: normal;
    max-width: 300px;
}
.table-condensed-custom td,
.table-condensed-custom th {
    padding: 0.25rem 0.4rem !important; /* override Bootstrap */
    vertical-align: middle;
    white-space: normal;
    word-wrap: break-word;
    font-size: 0.875rem;
    max-width: 200px;
}
.bg-light-inverted {
    background-color: #fff;
    color: #f4e38e;
}

a.badge {
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .btn.badge:hover,
    a.badge:hover {
        color: #000;
        background-color: #ffdd35 !important;
    }

/* end content table */

/* manage companies and users */
table .btn-link {
    color: #000;
}

.table-fixed {
    table-layout: fixed;
}

.small-th {
    width: 40px;
}

.small-medium-th {
    width: 65px;
}

.medium-th {
    width: 130px;
}

.medium-large-th {
    width: 250px;
}

.large-th {
    width: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

table .btn-link.btn.rounded-circle {
    color: #000;
}

table p {
    margin-bottom: 0;
}

.margin-top-large {
    margin-top: 150px;
}
/* had to do custom style since the og border isnt showing */
.table-border td {
    border-bottom-width: 1px;
}

@media screen and (max-width: 600px) {
    table p {
        display: inline-block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 255px;
    }

    .g-5,
    .gx-5 {
        --bs-gutter-x: 0rem;
    }
}

@media screen and (max-width: 995px) {
    .margin-top-large {
        margin-top: 20px;
    }
}

.form-check-input:checked[type="radio"] {
    background-image: none;
}

.valid.modified:not([type="checkbox"]) {
    outline: none;
}

.invalid {
    outline: none;
    box-shadow: 0 0 1pt 1pt red;
}
/* end manage companies and users */

.custom-pagination {
    --bs-pagination-active-bg: #f4e38e;
    --bs-pagination-active-border-color: #f4e38e;
    --bs-pagination-active-color: #fff;
    --bs-pagination-hover-bg: #ffdd35;
    --bs-pagination-hover-color: #000;
    --bs-pagination-color: #000;
    --bs-pagination-border-radius: 1rem;
}
/*Screens*/
@media (max-width: 1722px) {
    .button-wrapper {
        flex-direction: column !important;
        align-items: flex-start;
    }
}