@font-face {
    font-family: "BookmanOldStyleW01-Bold_691970";
    src: url("/fonts/0a9b9cc6-55eb-4369-97ed-87b3eefd433a.woff2") format("woff2"),url("/fonts/146d15a1-1699-4897-8930-434534db4a21.woff") format("woff");
}
html {
    font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn{
    border-radius: 0;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #1F4684;
}

h1, h2, h3, h4 {
    color: #114587;
    font-family: 'BookmanOldStyleW01-Bold_691970';
}

h1 {
    font-size: 40px;
}
h2 {
    font-size: 36px;
}
h3 {
    font-size: 28px;
}

.small-xtra {
    font-size: .675em;
}

.top-blue {
    background-color: #E8F8FD;
    min-height: 120px;
}

    .top-blue a{
        color: #114587;
        text-decoration: none;
    }

/*    .btn {
        padding: 5px 10px !important;
    }*/

/*.nav-item a {
    font-weight: 600;
}*/

.nav-link.active {
    text-decoration: underline;
    text-underline-offset: 5px; /* Justerar avståndet mellan text och understrykning */
}

.navbar-nav{
    margin-top: 12px;
}

.dropdown-item.active {
    text-decoration: underline;
    text-underline-offset: 5px;
    color: #000;
    background-color: #fff;
}

.btn-primary {
    color: #fff;
    background-color: #7AAE43;
    border-color: #7AAE43;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #4a6828;
}

.btn-primary:hover {
    color: #fff;
    background-color: #4a6828;
    border-color: #4a6828;
}

.btn-secondary {
    color: #fff;
    background-color: #1F4684;
    border-color: #1F4684;
}

.btn-kp-add{
    color: #fff;
    background-color: #7AAE43;
    border-color: #7AAE43;
}
.btn-kp-add:hover {
    color: #fff;
}

.btn-kp {
    color: #fff;
    background-color: #7AAE43;
    border-color: #7AAE43;
}

    .btn-kp:hover {
        color: #fff;
    }

.btn-kp-blue {
    color: #fff;
    background-color: #1F4684;
    border-color: #1F4684;
}

    .btn-kp-blue:hover {
        color: #fff;
    }



.icon-kp-green {
    color: #7AAE42;
    padding-right: 6px;
}


    .table-hover tbody tr:hover {
        background-color: #E8F8FD !important;
    }


    /* table */

.dt-column-title {
    color: #114587;
    font-family: 'BookmanOldStyleW01-Bold_691970';
    font-weight: normal;
    font-size: 20px;
}

.table > thead > tr > th {
    color: #114587;
    font-family: 'BookmanOldStyleW01-Bold_691970', sans-serif;
    font-weight: normal;
    font-size: 20px;
}

/*table.table-kp-invoice > tbody > tr > td {
    font-weight: 600;
}*/

table.table.dataTable.table-hover > tbody > tr:hover > * {
    box-shadow: unset !important;
}

table.table.dataTable > tbody > tr {
    border-bottom: 1px solid #114587;
}

.invoice-item {
    border-top: 1px solid #114587 !important;
    cursor: pointer;
}

.project-item {
    border-bottom: solid 1px #114587 !important;
    cursor: pointer;
}

.rental-item {
    border-top: solid 1px #114587 !important;
    cursor: pointer;
}



.table-kp-invoice > tbody > tr {
    border-style: none;
    border: #ffffff;
}

.invoice-details{
    border-bottom:solid 1px #114587;
}

.rental-details {
    border-bottom: solid 1px #114587;
}

    .rental-details:last-of-type {
        border-bottom: solid 1px #114587!important;
    }




.table-kp-invoice,
.table-kp-invoice tbody,
.table-kp-invoice td,
.table-kp-invoice tfoot,
.table-kp-invoice th,
.table-kp-invoice thead,
.table-kp-invoice tr,
.table-kp-ongoingrent,
.table-kp-ongoingrent tbody,
.table-kp-ongoingrent td,
.table-kp-ongoingrent tfoot,
.table-kp-ongoingrent th,
.table-kp-ongoingrent thead,
.table-kp-ongoingrent tr,
.dataTable,
.dataTable tbody,
.dataTable td,
.dataTable tfoot,
.dataTable th,
.dataTable thead,
.dataTable tr {
    border-color: unset;
    border-style: unset;
    border-width: unset;
}

td {
    color: #114587;
    vertical-align:middle;
    /*font-weight: 600;*/
}

/*Nollställ bootstrap default*/

.table-hover > tbody > tr:hover {
    --bs-table-accent-bg: unset;
    color: unset;
}

/* table end*/
.form-control {
    border: 0;
    border-bottom: 1px solid #5874a3;
    border-radius: 0;
}

    .form-control:focus, .form-check-input:focus {
        box-shadow: unset;
    }

.form-select {
    border: none;
    border-bottom: 1px solid #5874a3;
    border-radius: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2rem;
}

    .form-select:focus {
        outline: none;
        box-shadow: 0 1px 0 0 #5874a3;
    }
    .form-select:focus {
        border-color: unset;
        outline: 0;
        box-shadow: unset;
    }


    /*************************** LOGIN FORM ****************************/

/* Container för centrering */
.kp-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-image: url('/img/minasidor-cover-v3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
}

/* Inloggningsruta */
.kp-login-box {
    /*background-color: #1a3c7d;*/
    background-color: #1a3c7dd4;
    border-radius: 8px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Huvudtitel */
.kp-login-title {
    font-size: 28px;
    margin-bottom: 10px;
    color: #ffffff;
}

/* Beskrivningstext */
.kp-login-description {
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* Undertitel för inloggning */
.kp-login-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: normal;
    font-family:unset;
    color:#fff;
}

/* Formulärstyling */
.kp-login-form .form-floating {
    margin-bottom: 20px;
}

.kp-input-group {
    position: relative;
}

    .kp-input-group label{
        color: #000;
    }

/*    .kp-input-group .form-floating > .form-control:focus, .kp-input-group .form-floating > .form-control:not(:placeholder-shown) {
        padding-top: 1.625rem;
        padding-bottom: .625rem;
    }*/

    .kp-input-icon {
        position: absolute;
        top: 30%;
        left: 15px;
        /*transform: translateY(-50%);*/
        color: #8cc14f;
        z-index: 10;
    }

.kp-form-control {
    padding-left: 40px;
    border: none;
    border-radius: 4px;
    height: 50px;
}

    .kp-form-control:focus {
        box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
    }

/* Inloggningsknapp */
.kp-login-button {
    background-color: #8cc14f;
    border: none;
    padding: 12px;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
    border-radius: 8px
}

    .kp-login-button:hover {
        background-color: #7ab33d;
    }

/* Länk för glömt lösenord */
.kp-forgot-password {
    color: #ffffff;
    text-decoration: underline;
    font-size: 14px;
}

    .kp-forgot-password:hover {
        text-decoration: underline;
        color: #ffffff;
    }

/* Sektion för att skapa konto */
.kp-create-account {
    display: flex;
    align-items: flex-start;
    margin-top: 30px;
    border-radius: 4px;
}

.kp-create-account-icon {
    background-color: #8cc14f;
    color: white;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.kp-create-account h3 {
    font-size: 15px;
    margin-bottom: 5px;
    margin-top: -3px;
    margin-left: -5px;
    color: #fff;
}

.kp-create-account p {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.4;
    margin-left: -25px;
}

.kp-register-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    /*margin-left: -25px;*/
    text-decoration: underline;
}

    .kp-register-link:hover {
        text-decoration: underline;
        color: #ffffff;
    }


.kp-home-link {
    color: #114587 !important;
    font-family: 'BookmanOldStyleW01-Bold_691970';
    margin-top: -14px;
}


    /*Inloggad startsida*/




.page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* min-height: 80vh; */
    /* padding-top: 50px; */
    box-sizing: border-box;
}

.menu-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    max-width: 1200px; /* Begränsa maxbredden för större skärmar */
    width: 100%;
    padding-bottom:150px;
}

.menu-item {
    width: 250px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: white;
    border-radius: 10px;
    transition: transform 0.3s ease;
    padding: 20px;
    text-align: center;
}

    .menu-item:hover {
        transform: scale(1.05);
        color: white;
    }

    .menu-item i {
        font-size: 48px;
        margin-bottom: 15px;
    }

    .menu-item span {
        word-wrap: break-word;
        max-width: 100%;
    }

.admin-item {
    background-color: #114587;
}

/* Ny stil för AppUser-boxar */
.user-item-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
    width: 100%;
}

.user-item {
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative; /* Lägg till denna */
}

    .user-item:hover {
        transform: scale(1.05);
        color: white;
    }

.user-item-image {
    position: absolute; /* Ändra till absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Ändra till 100% */
    background-size: cover;
    background-position: center;
}

.user-item-text {
    position: absolute; /* Ändra till absolute */
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    /* background-color: rgba(17, 69, 135);  */
    background: linear-gradient(to right, #86AC52, #78B3E4);
    text-align: center;
    z-index: 1; /* Säkerställ att texten ligger ovanpå bilden */
}

/*    .user-item-text span {
        font-weight: bold;
    }
*/


    /*Inloggad starsida slut*/

/* Felmeddelanden */
.text-danger {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
}

/* Responsiv design för mindre skärmar */
@media (max-width: 480px) {
    .kp-login-box {
        padding: 30px;
    }

    .kp-login-title {
        font-size: 24px;
    }

    .kp-login-subtitle {
        font-size: 16px;
    }
}

.nav-link {
    color: #1f4684;
}


/*************************************  Nav pils *************************************/
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1F4684;
    text-decoration: none;
}

/*************************************  Formfix *************************************/
.validation-summary-errors ul {
    list-style-type: none;
    padding-left: 0;
}

/********************************* Datatables special ****************************/

.bootstrap-duallistbox-container label {
    font-weight: bold;
}

.custom-search-container {
    position: relative;
}

.custom-search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-search-icon {
    position: absolute;
    left: 10px;
    color: #004587;
    z-index: 2;
}

.custom-search-input {
    padding-left: 35px; /* Ge plats för ikonen */
    border: 1px solid #004587;
    border-radius: 20px;
    color: #004587;
    width: 300px;
}

    .custom-search-input:focus {
        box-shadow: 0 0 0 0.2rem rgba(0, 69, 135, 0.25);
        border-color: #004587;
    }

    .custom-search-input::placeholder {
        color: #004587;
        opacity: 0.7;
    }


.status-indicator {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
}

    .status-indicator .bi-circle-fill {
        font-size: 0.5em;
        margin-right: 0.5em;
        margin-top: 2px;
    }

.status-red .bi-circle-fill {
    color: #dc3545;
}

.status-green .bi-circle-fill {
    color: #7AAE43;
}

.status-yellow .bi-circle-fill {
    color: #ffc107;
}

.status-blue .bi-circle-fill {
    color: #0d6efd;
}

main {
    padding-bottom: 80px;
    min-height: 550px;
}

/********************************* Footer ****************************/

.footer {
    background-color: #1f4684;
    color: white;
    line-height: 60px;
    position: unset;
    white-space: nowrap;
}

.footer a {
    color: white;
}