﻿
    


/* ----- GLOBAL ----- */
body {

    color: #3C3C3C;
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    font-size: 14px;
    letter-spacing: normal;
    line-height: 20px
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    color: #3C3C3C;
    background-color: #ffffff;
    font-size: 14px;
}



a, a:active, a:visited, a:link {
    color: #016BA0;
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
    }


.bg-gradient-light {
    background: linear-gradient(to top, #F4F4F4, #FDFDFD);
    
}

/* -- box-head redigera -- */
/* Container */
.box {
    border: 1px solid #D2D2D2;
    border-radius: 4px;
    overflow: hidden; /* håller hörn snygga */
}

/* Header */
.boxheader {
    background: linear-gradient(to top, #F4F4F4, #FDFDFD);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #D2D2D2;
}

    .boxheader:hover {
        background: linear-gradient(to top, #EDEDED, #FAFAFA);
    }

.boxheader-icon {
    font-size: 16px;
    color: var(--color-text-secondary);
}

.boxheader-divider {
    width: 1px;
    align-self: stretch;
    background: #C9C9C9;
    flex-shrink: 0;
}

.boxheader-title {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.boxheader-toggle {
    transition: transform 0.2s ease;
}

    .boxheader-toggle.open {
        transform: rotate(180deg);
    }

/* Content */
.boxcontent {
    padding: 15px;
    background: #FFFFFF;
}

/* (valfri) Collapse-funktion */
.boxcontent {
    display: none;
}

.box.open .boxcontent {
    display: block;
}



.app-layout {
    display: flex;
    height: 100vh;
    
}

/* -- Ta bort hover effekt på btn */
.btn-no-hover:hover {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* -- Validation Error --*/
.validation-message,
.text-danger {
    font-size: 0.80rem;
}
/* ---- RUBRIKER ---*/
h1, h2, h3, h4, h5, h6 {

    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    margin: 0px;
    color: #12714A;
}


h1 {

    font-size: 26px;
    font-weight: 700;
    line-height: 26px;
    padding-bottom: 8px;
}

h2 {
    
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 5px;
    line-height: 24px
}

h3 {
    
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 4px;
    line-height: 28px;
    
}

h4 {
    
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
}

h5 {

    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
}

h6 {

    font-size: 12px;
    font-weight: 500;
    line-height: 12px;
    text-transform: none;
}

/* Rubriken Form-Controls */
.label-small {
    font-size: 0.83rem;
    font-weight: 500;
    padding-bottom: 3px;
}

/* -- Shadow --*/
.shadow-xs {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

/*--- Tooltips ---*/
.bs-tooltip-auto[x-placement^=top] .arrow::before, .bs-tooltip-top .arrow::before {
    border-top-color: red;
}



/* ------- SIDEBAR ---------- */
.sidebar {
    width: 200px;
    background-color: #ffffff;
    border-right: 1px solid #D2D2D2;
    display: flex;
    flex-direction: column;
    padding: 15px;
    font-family: Arial, Helvetica, sans-serif;
}


.sidebar-title {
    font-weight: 600;
    font-size: 16px; /* behåll större text */
    color: #1f1f1f; /* mörkgrå nästan svart */
    text-align: center; /* centrerad */
    margin-bottom: 20px;
    
}

/* Menu links */
.menu-link {
    display: block;
    padding: 8px 8px;
    margin-bottom: 4px;
    border-radius: 2px;
    text-decoration: none;
    color: #1f1f1f !important;
    font-size: 0.90rem;
    background-color: #ffffff;
    font-family: Poppins, Arial;
}

    .menu-link:hover {
        background-color: #F9F9F9;
        color: #09573F !important;
    }

    .menu-link.active {
        background-color: #F9F9F9;
        
        color: #09573F !important;
    }

/* ------- /SIDEBAR ---------- */

/* MAIN */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.page-content {
    padding: 20px;
   /* max-width:1200px;*/
}

.spinner {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    color:white;
}




/* Dropdown tweaks */
.dropdown-menu {
    min-width: 150px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}







/*-- White Button*/

.btn-lightgrey {
    box-shadow: inset 0px 1px 0px 0px #ffffff;
    background: linear-gradient(to bottom, #fdfdfd 5%, #e6e6e6 100%);
    background-color: #fdfdfd;
    border-radius: 5px;
    border: 1px solid #cccccc;
    display: inline-block;
    cursor: pointer;
    color: #3C3C3C;
    font-family: arial;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 24px 5px 24px;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    line-height: 19px;
}




button.btn-lightgrey:hover,
button.btn-lightgrey:focus,
button.btn-lightgrey:active,
.btn.btn-lightgrey:hover,
.btn.btn-lightgrey:focus,
.btn.btn-lightgrey:active {
    outline: none !important;
    box-shadow: none !important;
    border-color: #d3d3d3 !important;
}


.btn-lightgrey-sm {
    box-shadow: inset 0px 1px 0px 0px #ffffff;
    background: linear-gradient(to bottom, #fdfdfd 5%, #e6e6e6 100%);
    background-color: #fdfdfd;
    border-radius: 5px;
    border: 1px solid #cccccc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #3C3C3C;
    font-family: Arial;
    font-size: 12px;
    font-weight: bold;
    padding: 7px 16px;
    text-decoration: none;
    text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.7);
    line-height: 1;
    box-sizing: border-box;
}    


    /* Lås alla states så inget “hoppar” */
    .btn-lightgrey-sm:hover,
    .btn-lightgrey-sm:focus,
    .btn-lightgrey-sm:active {
        border: 1px solid #cccccc;
        background: linear-gradient(to bottom, #fdfdfd 5%, #e6e6e6 100%);
        background-color: #fdfdfd;
        outline: none;
        box-shadow: inset 0px 1px 0px 0px #ffffff;
        position: relative;
        top: 0; 
    }


    /*-- /White Button ---*/




/* ---- Button Green ----- */
.btn-green {
    box-shadow: inset 0px 1px 0px 0px #2fa37f;
    background: linear-gradient(to bottom, #14916b 5%, #0f7a5a 100%);
    background-color: #0f7a5a;
    border-radius: 5px;
    border: 1px solid #0c654a;
    display: inline-block;
    cursor: pointer;
    color: #ffffff;
    font-family: arial;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 24px;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}



/* --- End Button Green ---*/

/* --- Button Red --*/
.btn-red {
     
    box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 0.15);
    background: linear-gradient(to bottom, #c84a4a 0%, #8f1b1b 100%);
    background-color: #c84a4a;
    border-radius: 5px;  
    border: 1px solid #741616;
    display: inline-block;
    cursor: pointer;
    color: #ffffff;
    font-family: arial;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 24px;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}



/* --- Special för inputs -----*/
input:disabled,
select:disabled,
textarea:disabled,
button:disabled,
.form-control:disabled,
.form-select:disabled {
    background-color: #FFFFF5 !important;
    border: 1px solid #DEE2E6 !important;
    color: #495057; /* valfritt: normal textfärg */
    opacity: 1 !important; /* återställ Bootstrap 0.65-opacity */
}


.form-control:focus,
.btn:focus {
    /*border-color: #0F7A5A;*/ /* Grön kant */
    box-shadow: none; /* Ingen glow runt */
    background-color: #F5F8EE; /* Ljusgrön bakgrund */
    outline: none; /* Ta bort blå standardfokus */
}

select:focus {
    border-color: #0F7A5A !important;
    background-color: white !important;
    outline: none !important;
    box-shadow: none !important;
}

input.form-control,
textarea.form-control,
select.form-select {
    border-color: #DDDDDD !important; 
    border-width: 1px;
    border-style: solid;
    padding: 8px;
    /*font-size: 0.90rem;*/
}


.btn:hover,
.btn:focus,
.btn:active,
button.btn:hover,
button.btn:focus,
button.btn:active,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="button"]:focus,
input[type="submit"]:focus {
    background-color: inherit !important;
    border-color: inherit !important;
    box-shadow: none !important;
    outline: none !important;
}

.accordion-button {
    font-size: 0.90rem;
    padding: 8px 12px;
}
    .accordion-button:focus {
        box-shadow: none;
        border-color: #DDDDDD;
        outline: none;
    }

    .accordion-button:not(.collapsed) {
        background-color: #f8f9fa;
        color: inherit;
        box-shadow: none;
        border-bottom: 1px solid #DDE2E7;
    }
.accordion-item:focus-within {
    border-color: #DDDDDD !important;
    box-shadow: none !important;
}

.accordion-body {
    padding: 12px;
    font-size: 0.90rem;
}

.accordion-button:not(.collapsed) {
    font-weight: bold;
    color: #000000;
    
}

.accordion-flush .accordion-item:first-child {
    border-top: 1px solid #DDDDDD;
}

.accordion-flush .accordion-item:last-child {
    border-bottom: 1px solid #DDDDDD;
}

.accordion-item {
    border-color: #DDDDDD;
    border-left: 1px solid #DDDDDD !important;
    border-right: 1px solid #DDDDDD !important;
}

/* ===== GRID WRAPPER ===== */
.grid-wrapper {
    overflow-x: auto;
    border-radius: 4px;
    /*box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);*/
}

/* ===== TABLE ===== */
.grid-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

    .grid-table thead th {
        padding: 7px 14px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border: 1px solid #D0D0D0;
        cursor: pointer;
        user-select: none;
        white-space: nowrap;
    }

        .grid-table thead th:hover {
            background: #FFFFE0;
        }

    .grid-table tbody td {
        padding: 9px 14px;
        border: 1px solid #D0D0D0;
        color: #333;
    }

/* ===== ROWS ===== */
.grid-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

    .grid-row:hover {
        background-color: #FFFFE0;
    }

/* ===== TRUNCATED CELL (används vid långa texter t.ex. anteckningar) ===== */
.grid-cell-truncate {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* -- Infobox --*/
.infobox {
    width: 100%;
    border-collapse: collapse;
    /*border-top: 1px solid #dddddd !important;*/
}
.infobox-row {
    border-bottom: 1px solid white;
}
.infobox-label {
    background: #f5f5f5;
    padding: 10px 14px;
    border-right: 1px solid #DDDDDD;
    width: 165px;
}

.infobox-value {
    padding: 10px 14px;
}


.anteckning-box {
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 12px;
    min-height: 120px;
    font-family: inherit;
    white-space: normal;
    line-height: 1.5;
}



