@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    /*font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
    /* overflow: hidden;*/
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

@font-face {
    font-family: 'Inter Medium';
    /*src: url('../webfonts/inter-v7-latin-regular.woff');*/
   /* src: url('../webfonts/Inter-Medium.otf');*/
    src: url('../webfonts/Inter-Medium.ttf');
}

@font-face {
    font-family: 'Inter Regular';
    /*src: url('../webfonts/inter-v7-latin-regular.woff');*/
    /* src: url('../webfonts/Inter-Medium.otf');*/
    src: url('../webfonts/Inter-Regular.ttf');
}

@font-face {
    font-family: 'Inter Bold';
    /*src: url('../webfonts/inter-v7-latin-regular.woff');*/
    /* src: url('../webfonts/Inter-Medium.otf');*/
    src: url('../webfonts/Inter-Bold.ttf');
}

* {
    box-sizing: border-box;
}
/*
tr:nth-of-type(even) {
    background-color: #FFFFFF;
}

table {
    border-spacing: 1px;
    background-color: #ccc;
    color: #0f0f0f;
}
*/
/*
.pagination-wrapper div {
    align-items: center;
    display: flex;
}

.pagination {
    margin-left: auto;
    margin-right: 0;
}

CENTRA .main-container, .page-container {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
*/


.divfilter {
    display: flex;
    font-family: 'Inter Regular';
    font-weight: 400;
    line-height: 14px;
    font-size: 10.75px;
    float: left;
    border-bottom: 1px solid #e6e6e6;
    width: 100%;
}

.radiofilter {
    display: none;
}

.spanfilter {
    background-color: #ededed;
    background-color: var(--neutral-93);
    font-size: 9px;
    font-size: var(--font-size-xxs);
    margin-left: 8px;
    transition: color .3s cubic-bezier(.38,.01,.09,.98),background-color .3s cubic-bezier(.38,.01,.09,.98);
    border-radius: 4px;
    color: #0f0f0f;
    color: var(--neutral-6);
    font-weight: 500;
    line-height: 12px;
    padding: 1px 4px;
}

.divfilter input:checked ~ .buttonfilter .spanfilter {
    background-color: #003dff;
    /* background-color: var(--accent-60); */
    color: #fff;
    /* color: var(--color-white); */
}

.buttonfilter {
    all: unset;
    align-content: center;
    background-color: transparent;
    border: none;
    border-radius: 4px 4px 0 0;
    color: #0f0f0f;
    color: var(--neutral-6);
    cursor: pointer;
    display: flex;
    font-size: 11.25px;
    font-size: var(--font-size-s);
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    line-height: 14px;
    padding: 8px 8px 9px;
    transition: color .3s,background-color .3s cubic-bezier(.38,.01,.09,.98);
    white-space: nowrap;
}

.fit-row {
    white-space: nowrap;
    width: 1%;
}

.labelfilter {
    margin-bottom: 0px;
}

.divfilter input:checked ~ .buttonfilter {
    color: #003dff;
    /* color: var(--accent-60); */
    position: relative;
}

.divfilter input:checked ~ .buttonfilter::after {
    background-color: #003dff;
    /* background-color: var(--accent-60); */
    border-radius: 2px 2px 0 0;
    bottom: 0;
    content: "";
    height: 2px;
    left: 0;
    opacity: 1;
    position: absolute;
    transition: left .3s cubic-bezier(.38,.01,.09,.98);
    width: 100%;
    z-index: 10;
}

.pagination {
    color: #636363;
    font-size: 11.25px;
    line-height: 14px;
    font-family: 'Inter Medium';
}

.pagination input {
    font-size: 11.25px;
    margin-left: 0px;
    margin-right: 4px;
    text-align: center;
    width: 36px;
    height: 18px;
    padding: 4px 7px;
}

.pagination button {
    margin: 2px;
    font-family: 'Inter Medium';
}

.gc_button {
    margin: 2px;
    color: #636363;
    font-size: 11.25px;
    line-height: 14px;
    font-family: 'Inter Medium';
    font-weight: 500;
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
    border-radius: .25rem;
    padding: 0 8px;
    height: 24px;
    align-items: center;
}

.pagination select {
    display: block;
    margin-top: 0px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #c5c5c5;
    color: #000000; /*#636363;*/
    line-height: 14px;
    /*padding: 8px 7px;*/
    padding: 1px 7px;
    -moz-appearance: none;
    appearance: none;
    background-image: url("../img/combodown.png");
    background-position-x: calc(100% - 3px);
    background-position-y: center;
    background-repeat: no-repeat;
    overflow: auto;
    padding-right: 20px;
    position: relative;
    cursor: pointer;
    background-color: white;
    margin: 2px;
    font-family: 'Inter Regular';
}

.gc_sticky_table {
    text-align: left;
    position: relative; /*tog bort denna pga bild*/
}

.gc_sticky_table th {
    background: rgb(245,245,245);
    background-color: rgb(237,237,237);
    position: sticky;
    top: 0;
    z-index: 10;
}

.gc_details-content {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}
/* funkade före aktiv-filter
.gc_table-scroll-wrapper {
    height: calc(-180px + 100vh);
    overflow: auto;
}
*/
.gc_table-scroll-wrapper {
    height: calc(-210px + 100vh);
    overflow: auto;
}

.gc_table-scroll-wrapper2 {
    height: calc(-290px + 100vh);
    overflow: auto;
}

/*@media screen and (max-width: 992px) {
    .gc_table-scroll-wrapper {
        height: calc(-180px + 100vh);
        overflow: auto;
    }
}
*/
@media screen and (max-width: 770px) {
    .gc_table-scroll-wrapper {
        height: calc(-230px + 100vh);
        overflow: auto;
    }
}
/*
@media screen and (max-width: 600px) {
    .gc_table-scroll-wrapper {
        height: calc(-205px + 100vh);
        overflow: auto;
    }
}
*/

h4, h5 {
    font-weight: 600;
}

h4 {
    font-size: 12.5px;
    font-size: var(--font-size-m);
    line-height: 16px;
    padding: 4px 8px;
}

h1, h2, h3, h4, h5 {
    color: #0f0f0f;
    color: var(--neutral-6);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gardeco-version {
    background-color: #f5f5f5;
    background-color: var(--neutral-95);
    bottom: 0;
    color: #636363;
    color: var(--neutral-40);
    font-size: 10.75px;
    font-size: var(--font-size-xs);
    line-height: 14px;
    margin-top: auto;
    padding: 5px 12px;
    position: fixed;
    width: 100%;
    z-index: 200;
}

.gc_button_close {
    line-height: 11px;
    padding-bottom: 4px;
    position: absolute;
    top: 0px;
    left: calc(100% - 22px);
}

.gc_button_expand {
    margin-left: 0px;
    margin-bottom: 7px;
    font-size: 18px;
    padding: 0px 2px 2px 2px;
    line-height: 20px;
    color: #fff;
    background-color: #1b6ec2;
    transition: none;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid #1861ac;
    /*border-color: #1861ac;*/
    border-radius: .25rem;
    cursor: pointer;
}

#gcdiv {
    position: absolute;
    z-index: 59;
    /*background-color: #f1f1f1;
    border: 1px solid #d3d3d3;
    text-align: center;*/

    background-color: #ffffff;
    box-shadow: 2px 3px 5px #999;
}

#gcdivheader {
    padding: 10px;
    cursor: move;
    z-index: 60;
    background-color: #1b6ec2;/*#2196F3;*/
    color: #fff;
}

.popup-overlay {
    background-color: hsla(0,0%,9%,.4);
    height: 100vh;
    position: absolute;
    width: 100vw;
    z-index: 25;
}

.gc_left-part {
    /*background-color: #f5f5f5;
    background-color: var(--neutral-95);
    flex-direction: column;
    flex-grow: 1;
    margin-right: 1px;
       min-width: 100px;
    outline: 1px solid #ededed;
    outline: 1px solid var(--neutral-93);
    padding: 0 16px;
    position: relative;*/
}

/*.gc_sticky_table thead {
    z-index: 10;
}

.gc_sticky_table tbody {
    z-index: 15;
}
*/
.gc_table-header-shadow {
    /*  box-shadow: 0 2px 4px hsla(0,0%,6%,.075);
    pointer-events: none;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    visibility: hidden;*/

    position: sticky; 
    top: 0; 
    height: 26px; 
    width: 100%; 
    margin-top: -26px; 
    background-color: rgb(237,237,237); 
    z-index: 3;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/*.pagination input[type="number"] {
    -moz-appearance: textfield;
}
*/
h3 {
    font-size: 21px;
    font-family: 'Inter Medium';
    line-height: 32px;
    font-weight: 700;
}

.table {
    border-spacing: 1px;
    background-color: rgb(245,245,245); /*#d7d7d7;*/
    color: #0f0f0f;
}

.gc_table {
    width: unset;
}

.table tr:nth-of-type(odd):not(.row-selected) {
    background-color: #ffffff; /*ededed;*/
}

.table-striped tbody tr:nth-of-type(odd):not(.row-selected) {
    background-color: #ffffff;
}

    .table thead th {
        font-family: 'Inter Medium';
        font-weight: 500;
        line-height: 14px;
        font-size: 10.75px;
        text-align: left;
        white-space: nowrap;
        padding: 6px 7px;
        height: 26px;
        border: 1px solid rgb(215,215,215);
        /*box-shadow: 0 0 0 1px red;*/
    }

.gc_td_edit {
    font-family: 'Inter Regular';
    font-weight: 400;
    line-height: 14px;
    font-size: 10.75px;
    border: 1px solid rgb(215,215,215); /*rgb(237,237,237);*/
    height: 26px;
    padding: 0px;
    /*box-shadow: 0 0 0 1px red; */
}

.table td[class="gc_td_edit"] input {
    display: block;
    margin-top: 0px;
    margin-bottom: 0px;
    border-radius: 4px;
    border: 1px solid #c5c5c5;
    color: #000000; /*#636363;*/
    line-height: 14px;
    padding: 4px 7px;
    font-family: 'Inter Regular';
    font-size: 11.25px;
    /*font-weight: 500;*/
}


    .table td {
        font-family: 'Inter Regular';
        font-weight: 400;
        line-height: 14px;
        font-size: 10.75px;
        border: 1px solid rgb(215,215,215); /*rgb(237,237,237);*/
        height: 26px;
        padding: 6px 7px;
        /*box-shadow: 0 0 0 1px red; */
    }

        .table td[class="gc_td_edit"] {
            font-family: 'Inter Regular';
            font-weight: 400;
            line-height: 14px;
            font-size: 10.75px;
            border: 1px solid rgb(215,215,215); /*rgb(237,237,237);*/
            height: 1px;
            padding: 0px;
            /*box-shadow: 0 0 0 1px red; */
        }


input[type="checkbox"] {
    background: #fff;
    border: 1px solid #c5c5c5;
    border-radius: 4px;
    display: inline-block;
    flex-shrink: 0;
    height: 14px;
    position: relative;
    vertical-align: middle;
    width: 14px;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn-right {
    float: right;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
    height: 100%;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-selected {
    background-color: #EBFFDD;
}

section a {
    font-family: 'Inter Medium';
    font-size: 10.75px;
}

section input {
    display: block;
    margin-top: 0px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #c5c5c5;
    color: #000000; /*#636363;*/
    line-height: 14px;
    padding: 4px 3px;
    /*padding: 4px 7px;
*/
    font-family: 'Inter Regular';
    font-size: 11.25px;
    /*font-weight: 500;*/
}

section input:disabled, textarea:disabled {
    background: white;
    color: black;
    border: 1px solid #ffffff;
}
/*
section select:disabled {
    appearance: none;
    background: white;
    color: black;
    border: 1px solid #ffffff;
}
*/
section select:disabled {
    background-color: transparent;
    background-image: none;
    opacity: 1;
    text-overflow: ellipsis;
    border-color: transparent;
    cursor: text;
    user-select: text;
}

section select:disabled > option {
    color: black;
}

select[disabled] > option {
    color: black;
}

section textarea {
    border-radius: 4px;
    border: 1px solid #c5c5c5;
    color: #000000; /*#636363;*/
    line-height: 14px;
    padding: 4px 7px;
}

section select {
    display: block;
    margin-top: 0px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #c5c5c5;
    color: #000000; 
    line-height: 14px;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 7px;
    padding-right: 20px;
    -moz-appearance: none;
    appearance: none;
    background-image: url("../img/combodown.png");
    background-position-x: calc(100% - 3px);
    background-position-y: center;
    background-repeat: no-repeat;
    overflow: auto;
    position: relative;
    cursor: pointer;
    background-color: white;
}

section select, textarea {
    line-height: 14px;
    font-family: 'Inter Regular';
    font-size: 11.25px;
}
/*    
    section button, input, optgroup, select, textarea {

.gds_collapsible.expanded::before {
    content: url("../img/downarrow.png");
}
*/

gc_linkbutton {
    background: none !important;
    border: none;
    padding: 0 !important;
    /*optional*/
    font-family: 'Inter Medium';
    /*input has OS specific font-family*/
    /*color: #069;*/
    text-decoration: underline;
    cursor: pointer;
    font-size: 10.75px;
    color: #0366d6;
}

section label {
    display: block;
    margin-bottom: 0px;
    color: #333333; /*#636363;*/
    font-size: 10.75px;
    font-weight: 500;
    padding-left: 4px;
    font-family: 'Inter Medium';
    /*/*height: 20px;
    line-height: 14px;*/
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
    margin-left: 1px;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }
/*
    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
*/
    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

/*.gds_collapsible {
    background-color: #777;
    color: white;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
}*/

.gds_content {
    display: block;
    overflow: hidden;
}

.gds_collapsible.expanded::before {
    content: url("../img/uparrow_c.png");
    padding-top: 5px;
    padding-right: 4px;
}

.gds_collapsible::before {
    content: url("../img/downarrow_c.png");
    padding-top: 5px;
    padding-right: 4px;
}

.gds_collapsible, .gds_collapsible:focus {
    background-color: transparent;
    border: none;
    outline: none;
    font-family: 'Inter Medium';
    font-weight: 600;
    font-size: 14px;
    line-height: 16px;
}

/*
 style="background-color: transparent; border:none; outline:none; font-family: 'Inter Medium'; font-weight: 600; font-size: 14px; line-height: 16px;" 

.gds_divouter {
    position: relative;
    background: #f90;
    width: 200px;
    height: 120px;
    margin: 0 auto;
}

.gds_divoverlap {
    position: relative;
    z-index: 1;
}


.gds_divouter:hover .gds_buttonoverlap {
    display: block;
}
*/
.gds_buttonoverlap_list {
    position: absolute;
    z-index: 2;
    display: none;
    padding: 2px;
    right: 0px;
}

.gds_buttonoverlap_edit {
    position: absolute;
    z-index: 2;
    display: none;
    padding: 2px;
    right: 25px;
}

.gds_inputhover {
    position:relative;
}

/*
.gds_buttonoverlap {
    display: none;
    content: url("../img/downarrow.png");
}
*/
.gds_inputhover:hover .gds_buttonoverlap_list {
    display: block;
    background: url("../img/listarrow.png") no-repeat;
    width: 23px;
    height: 20px;
}

.gds_inputhover:hover .gds_buttonoverlap_edit {
    display: block;
    background: url("../img/editpen.png") no-repeat;
    width: 23px;
    height: 20px;
}

.gds_imagehover {
    position: relative;
}

.gds_image {
    position: absolute;
    z-index: 2000;
    display: none;
    /*top: 0px;
    left: 0px;*/
}

.gc_table_prodinfo {
    background-color: white;/*rgb(245,245,245);*/
    min-width: 370px;
}

.gc_table_prodinfo td {
    background-color: white;/*rgb(245,245,245);*/
    white-space: nowrap;
 /*   width: 1%;*/
}

.gc_label_prodinfo {
    float: left;
    clear: left;
    width: 80px; /*tune this, you may other div for input too*/
    padding: 2px;
    margin-left: 5px;
    font-weight: bold;
}

.gc_value_prodinfo {
    float: left;
    margin-left: 20px;
    padding: 2px;
    max-width: 395px;
    inline-size: 395px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
}


/*
.gc_table_prodinfo tbody tr {
    background-color: rgb(245,245,245);
}

.gc_table_prodinfo tbody tr:nth-of-type(odd):not(.row-selected) {
    background-color: rgb(245,245,245);
}

.gc_table_prodinfo tbody tr:nth-of-type(even):not(.row-selected) {
    background-color: rgb(245,245,245);
}
*/
.gc_table-scroll-wrapper td .divspan {
    display: none;
}

.gc_table-scroll-wrapper td:hover .divspan {
    display: inline;
    position: absolute;
    background: #e5e5e5;
    z-index: 9999;

    top: 50%; 
	left: 50%; 
	transform: translate(-50%, -50%);
}

.gds_imagehover:hover .gds_image {
    display: block;
}

.modal {
    display: block; /* Hidden by default */
    position: absolute; /* Stay in place */
    z-index: 1; /* Sit on top */
    /*padding-top: 100px;*/ /* Location of the box */
    /*left: 0;
    top: 0;
    width: 100%;*/ /* Full width */
    /*height: 100%;*/ /* Full height */
    /*overflow: auto;*/ /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    /*margin: auto;
    padding: 20px;*/
    border: 1px solid #888;
    /*width: 80%;*/
}

/* The Close Button */
.modal-close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.modal-close:hover,
.modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* orig
.toast {
    display: none;
    padding: 1.5rem;
    color: #fff;
    z-index: 1;
    position: absolute;
    width: 25rem;
    top: 2rem;
    border-radius: 1rem;
    left: 50%;
}
*/

.toast2 {
    padding: 1.5rem;
    z-index: 101;
    position: absolute;
    width: 25rem;
    top: 30%;
    border-radius: 1rem;
    left: 40%;
}

.toast-black {
    color: #000;
}

.toast-white {
    color: #fff;
}

.toast-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 1rem;
    font-size: 2.5rem;
}

.toast-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-left: 1rem;
}

.toast-body p {
    margin-bottom: 0;
}

/* orig
.toast-visible {
    display: flex;
    flex-direction: row;
    animation: fadein 1.5s;
}
*/

.toast-visible2 {
    display: flex;
    flex-direction: row;
}

.toast-hide {
    display: none;
}

.gc_confirm_center {
    position: absolute;
    left: 50vh;
    top: 50vh;
    transform: translate(-80%, -80%);
    z-index: 999;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}