﻿
/* TOOLTIPS */

.tsmi-tooltip {
    position: relative;
}

    .tsmi-tooltip:not(a),
    .tsmi-tooltip--clear-cursor {
        cursor: help;
    }


.tsmi-tooltip--icon::before {
    font-family: 'Font Awesome 5 Free';
    display: inline-block;
    line-height: 1;
    content: '';
}

.tsmi-tooltip--question-circle::before {
    font-weight: 900;
    content: '\f059';
}


.tsmi-tooltip__content {
    box-sizing: border-box;
    opacity: 0;
    display: none;
    position: absolute;
    bottom: calc( 100% + 10px);
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    left: 50%;
    font-size: 14px;
    font-weight: normal;
    text-emphasis: none;
    width: 250px;
    padding: 0.5em;
    text-align: center;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    z-index: 999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    white-space: normal;
}

.tsmi-tooltip__content hr {
    border-top: 1px solid #CCC;
    margin-top: .4rem;
    margin-bottom: .4rem;
}

.tsmi-tooltip__content--fade {
    -webkit-animation: tsmi-fade .5s;
    -moz-animation: tsmi-fade .5s;
    -o-animation: tsmi-fade .5s;
    animation: tsmi-fade .5s;
}

.tsmi-tooltip--fixed .tsmi-tooltip__content {
    position: fixed;
}


    .tsmi-tooltip__content--small {
        width: auto;
        white-space: nowrap;
    }

.tsmi-tooltip__content:after {
    box-sizing: border-box;
    display: none;
    content: '';
    position: absolute;
    height: 10px;
    width: 10px;
    bottom: -10px;
    border-top: 5px solid rgba(0,0,0, 0.85);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    left: 50%;
}

.tsmi-tooltip__content--right {
    min-width: 100px;
    max-width: 300px;
    left: calc(100% + 10px);
    bottom: auto;
    top: 50%;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

    .tsmi-tooltip__content--right::after {
        bottom: auto;
        left: -10px;
        top: 50%;
        border-right: 5px solid rgba(0,0,0, 0.85);
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        border-left: none;
        -webkit-transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -o-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
    }

.tsmi-tooltip__content--bottom,
.tsmi-tooltip__content--down {
    bottom: auto;
    top: calc( 100% + 10px);
}

    .tsmi-tooltip__content--bottom::after,
    .tsmi-tooltip__content--down::after {
        top: -10px;
        border-top: none;
        border-bottom: 5px solid rgba(0,0,0, 0.85);
    }

.tsmi-tooltip__content--left {
    min-width: 100px;
    max-width: 300px;
    right: calc(100% + 10px);
    left: auto;
    bottom: auto;
    top: 50%;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.tsmi-tooltip__content--left::after {
    bottom: auto;
    right: -10px;
    left: auto;
    top: 50%;
    border-left: 5px solid rgba(0,0,0, 0.85);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: none;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.tsmi-tooltip:hover > .tsmi-tooltip__content,
.tsmi-tooltip:hover > .tsmi-tooltip__content:after {
    opacity: 1;
    display: block;
}

@-webkit-keyframes tsmi-fade {
    0% {
        opacity: 0;
        display: none;
    }

    1% {
        opacity: 0;
        display: block;
    }

    100% {
        opacity: 1;
        display: block;
    }
}

@-moz-keyframes tsmi-fade {
    0% {
        opacity: 0;
        display: none;
    }

    1% {
        opacity: 0;
        display: block;
    }

    100% {
        opacity: 1;
        display: block;
    }
}

@-o-keyframes tsmi-fade {
    0% {
        opacity: 0;
        display: none;
    }

    1% {
        opacity: 0;
        display: block;
    }

    100% {
        opacity: 1;
        display: block;
    }
}

@keyframes tsmi-fade {
    0% {
        opacity:0;
        display: none;
    }

    1% {
        opacity: 0;
        display: block;
    }

    100% {
        opacity: 1;
        display: block;
    }
}

/* POPUP */

.tsmi-popup {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .7);
}


.tsmi-popup__content {
    position:absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.tsmi-popup.show {
    display: block;
}

.tsmi--txt-light,
.tsmi--txt-gray,
.tsmi--txt-grey {
    color: gray;
}

.tsmi--txt-blue {
    color: rgb(66, 145, 191)
}

.tsmi--txt-red,
.tsmi-text--red,
.tsmi-txt--red {
    color: #b42f2f;
}

.tsmi--txt-green {
    color: green;
}

.tsmi--txt-bold {
    font-weight: bold;
}

.tsmi--txt-right {
    text-align: right;
}

.tsmi--txt-center {
    text-align: center;
}

.tsmi-text--small,
.tsmi-txt--small,
.tsmi--txt-small {
    font-size: small;
}

.tsmi--width-100 {
    width: 100%;
}

.tsmi--hidden {
    display: none;
}

    .tsmi--hidden.show {
        display: block;
    }

    .tsmi--hidden.show-inline {
        display: inline-block;
    }

.tsmi-button {
    box-sizing: border-box;
    display: block;
    padding: .33em .5em;
    font-size: large;
    border: 1px solid #6c757d;
    color: #333;
    background-color: #f9f9f9;
    border-radius: 3px;
    width: 100%;
    margin: 4px 0;
    user-select: none;
    cursor: pointer;
}

a.tsmi-button:hover {
    text-decoration: none;
    color: #333;
}

    .tsmi-button.tsmi-button--inline {
        display: inline-block;
        width: auto;
    }

    .tsmi-button.tsmi-button--small {
        font-size: small;
    }

    .tsmi-button.tsmi-button--xsmall {
        font-size: x-small;
        border-radius: 2px;
    }

    .tsmi-button:disabled {
        background-color: #eee;
        color: #777;
    }

.tsmi-button:hover:not(:disabled) {
    background-color: #f0ffec;
}

.tsmi-button--blue {
    background-color: #2196f3;
    color: white;
}

.tsmi-button.tsmi-button--blue:hover {
    background-color: #64b5f7;
}

.tsmi-button--green {
    background-color: #66bb6a;
}

.tsmi-button.tsmi-button--green:hover {
    background-color: #8bcb8e;
}

.tsmi-snackbar {
    display: block;
    position: fixed;
    bottom: 0;
    box-sizing: border-box;
    max-width: 100%;
    border-radius: 3px;
    color: #eee;
    right: 20px;
    margin: 20px;
    font-size: 16px;
    padding: 12px 20px;
    background-color: #263238;
    transition: all ease .5s;
    transform: translateY(150%);
    opacity: 0;
    box-shadow: 0 0 5px 0 black;
    z-index: 1000;
}

.tsmi-snackbar--show {
    transform: translateY(0);
    opacity: 1;
}

.tsmi-snackbar__close,
.tsmi-snackbar__status,
.tsmi-snackbar__message {
    position: relative;
}



.tsmi-snackbar__status {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 3px 0 0 3px;
    background-color: transparent;
    padding: 15px  5px;
}

.tsmi-snackbar--success .tsmi-snackbar__status {
    background-color: #009688;
}

.tsmi-snackbar--warning .tsmi-snackbar__status {
    background-color: #ff9800;
}

.tsmi-snackbar--danger .tsmi-snackbar__status {
    background-color: #e91e63;
}

.tsmi-snackbar--info .tsmi-snackbar__status {
    background-color: #2196f3;
}

.tsmi-snackbar__close {
    display: none;
    margin-left: 10px;
}

.tsmi-snackbar--dismissable .tsmi-snackbar__close {
    display: inline-block;
    cursor: pointer;
}

.tsmi--cell-fit {
    width: 1%;
    white-space: nowrap;
}

.tsmi-switch--asp {
    position: relative;
    cursor: pointer;
}

.tsmi-switch--asp input[type=checkbox],
.tsmi-switch {
    display: none;
}

.tsmi-switch + label {
    position: relative;
    cursor: pointer;
}

    .tsmi-switch--asp input[type=checkbox] + label::before,
    .tsmi-switch + label::before {
        position: relative;
        height: 20px;
        width: 33px;
        vertical-align: text-bottom;
        content: '';
        content: '';
        display: inline-block;
        cursor: pointer;
        background-color: #ccc;
        -webkit-transition: .4s;
        transition: .4s;
        margin-right: 5px;
    }

.tsmi-switch--asp input[type=checkbox]:checked + label::before,
.tsmi-switch:checked + label::before {
    background-color: #28a745;
}

    .tsmi-switch--asp input[type=checkbox] + label::after,
    .tsmi-switch + label::after {
        content: '';
        display: block;
        position: absolute;
        left: 2px;
        top: 2px;
        height: 16px;
        width: 16px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

    .tsmi-switch--asp input[type=checkbox]:checked + label::after,
    .tsmi-switch:checked + label::after {
        -webkit-transform: translateX(13px);
        -ms-transform: translateX(13px);
        transform: translateX(13px);
    }

