/* 
    Created on : Mar 29, 2023, 3:01:24 PM
    Author     : ligsciss
*/
body{
    font-family: monospace, monospace,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
}
.lds-roller {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.lds-roller div {
    animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 40px 40px;
}
.lds-roller div:after {
    content: " ";
    display: block;
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: black;
    margin: -4px 0 0 -4px;
}
.lds-roller div:nth-child(1) {
    animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after {
    top: 63px;
    left: 63px;
}
.lds-roller div:nth-child(2) {
    animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after {
    top: 68px;
    left: 56px;
}
.lds-roller div:nth-child(3) {
    animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
    top: 71px;
    left: 48px;
}
.lds-roller div:nth-child(4) {
    animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after {
    top: 72px;
    left: 40px;
}
.lds-roller div:nth-child(5) {
    animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after {
    top: 71px;
    left: 32px;
}
.lds-roller div:nth-child(6) {
    animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
    top: 68px;
    left: 24px;
}
.lds-roller div:nth-child(7) {
    animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after {
    top: 63px;
    left: 17px;
}
.lds-roller div:nth-child(8) {
    animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after {
    top: 56px;
    left: 12px;
}
@keyframes lds-roller {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/** modal **/
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1031; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(var(--black)); /* Fallback color */
    background-color: rgba(var(--black),0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: rgb(var(--white));
    margin: 2% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 60%; /* Could be more or less, depending on screen size */
}
.w-80{
    width: 80%;
}
/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.previous-value {
    color: #ff5e5e;
}
.new-value {
    color: rgb(0, 0, 0);
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.display-block{
    display: block;
}
.display-none{
    display: none;
}
.btn-transparent{
    color: black;
    background-color: transparent;
    border-color: none;
}
.large-input{
    padding: 30px;
}
.expandable-list {
    max-height: 0;
    transition: max-height 0.15s ease-out;
    overflow: hidden;
}

.expandable-list.expanded {
    max-height: 100%;
    transition: max-height 0.25s ease-in;
}
.clickable{
    cursor: pointer;
}
.list-group-item{
    padding: 20px;
    /*TODO miten näyttäisi napilta?  
    background-color: rgba(var(--black),0.1);*/

}
.p-bottom{
    position: absolute;
    bottom: 0;
    width: 100%;
}
.bg-disabled{
    background: lightgray;
}

#typeSelector {
    font-size: medium;
}

.fullLength {
    width: 100%;
}

.prettyInputBox {
    border-radius: 4px;
    font-family: -apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen,ubuntu,cantarell,"Open Sans","Helvetica Neue",sans-serif;
    border: 1px solid #ddd;
    outline: none;
}

.active {
    background-color: var(--primary);
    padding: inherit;
}
.box{
    border: 1px solid rgba(0,0,0,.125);
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table td, .custom-table th {
    border: 1px solid #dddddd;
    padding: 8px;
    text-align: left;
}
/** tire **/
.condition-bad{
    color: red;
}
.condition-average{
    color: #ffa700;
}
.condition-good{
    color: green;
}
.yellow{
    color: #ffa700;
}
.blue{
    color: blue;
}

.radio {
    display: block;
    cursor: pointer;
    user-select: none;
    text-align: left;
}

.radio + .radio {
    margin-top: 12px;
}

.radio input {
    display: none;
}

.radio input + span {
    display: inline-block;
    position: relative;
    padding-left: 30px;
}

.radio input + span:before {
    content: '';
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    border-radius: 50%;
    margin-right: 5px;
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    background: #fff;
}

.radio input:checked + span:after {
    opacity: 1;
    transform: scale(1, 1);
}

.radio input + span:after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background: #222;
    position: absolute;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    opacity: 0;
    transform: scale(0, 0);
    transition: all .2s cubic-bezier(0.64, 0.57, 0.67, 1.53);
}

.autocomplete {
    position: relative;
}

.autocomplete-results {
    padding: 0;
    margin: 0;
    border: 1px solid #eeeeee;
    height: 120px;
    overflow: auto;
}

.autocomplete-result {
    list-style: none;
    text-align: left;
    padding: 4px 2px;
    cursor: pointer;
}

.autocomplete-result.is-active,
.autocomplete-result:hover {
    background-color: #4AAE9B;
    color: white;
}

.searchbar{
    margin-bottom: auto;
    margin-top: auto;
    height: 60px;
    background-color: black;
    border-radius: 30px;
    padding: 10px;
}

.search_input{
    color: white;
    border: 0;
    outline: 0;
    background: none;
    width: 0;
    caret-color:transparent;
    line-height: 40px;
    transition: width 0.4s linear;
}

.searchbar > .search_input{
    padding: 0 10px;
    width: 450px;
    caret-color:red;
    transition: width 0.4s linear;
}

.searchbar:hover > .search_icon{
    background: white;
    color: #e74c3c;
}

.search_icon{
    height: 40px;
    width: 40px;
    float: right;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color:white;
    text-decoration:none;
}

/** TABLE **/ 
.storage-header{
    
}

.table-mouse-scroll-container{
    overflow-x: scroll;
}
/*.table-mouse-scroll-container{
    overflow-y: scroll;
    transform: rotate(-90deg);
}
.table-mouse-scroll-container .table-mouse-scroll{
    transform: rotate(90deg);
}*/

a.disabled, button.disabled{ pointer-events: none }

:root {
    --primary: #31231E !important;
    --secondary: #84714F !important;
    --third: #E3D888 !important;
    --font: #ffffff !important;
    --success: #109123 !important;
    --danger: #e74a3b !important;
    --warning: #ffb500 !important;
    --winter: #00d9ff !important;
    --summer: #ddff00 !important;
}

body {
    background-color: #f4f4f4 !important;
}

.navbar-nav .nav-item .nav-link {
    color: var(--font) !important;
}

#accordionSidebar {
    background-color: #343a40 !important;
}

.bg-gradient-primary {
    background-color: #31231E;
    background-image: linear-gradient(180deg, var(--primary) 10%, var(--secondary) 100%);
    background-size: cover;
}

.btn-success {
    background-color: var(--success);
    border: 1px solid var(--success);

}

.btn-danger {
    background-color: var(--danger);
    border: 1px solid var(--danger);

}

.btn-warning {
    background-color: var(--warning);
    border: 1px solid var(--warning);
}

.btn-winter {
    background-color: var(--winter);
    border: 1px solid var(--winter);
}

.btn-summer {
    background-color: var(--summer);
    border: 1px solid var(--summer);
}

.btn-primary {
    background-color: var(--primary);
    border: 1px solid var(--primary);
    color: var(--font) !important;
}


.btn {
   --b: 3px;   /* border thickness */
   --s: .45em; /* size of the corner */
   --color: var(--primary);

   padding: calc(.5em + var(--s)) calc(.9em + var(--s));
   color: var(--color);
   --_p: var(--s);
   transition: .3s linear, color 0s, background-color 0s;
   outline: var(--b) solid #0000;
   outline-offset: .6em;
   font-size: 16px;
   border: 0;
   user-select: none;
   -webkit-user-select: none;
   touch-action: manipulation;
}

.btn:hover, .btn:focus-visible{
    --_p: 0px;
    outline-color: var(--color);
    outline-offset: .05em;
}

.btn:active {
    background: var(--color);
    color: #fff;
}