﻿/*
    This file is to show how CSS and other static resources (such as images) can be
    used from a library project/package.
*/

@import url('https://fonts.googleapis.com/css?family=Poppins|Roboto&display=swap');

h1, h2, h3, h4, h5, h6, label, optgroup {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

p, input, textarea, select, option, span, td {
    font-family: 'Roboto', sans-serif;
}

.hidden {
    display: none;
}

th h6 {
    margin-bottom: 0px;
}

option {
    font-size: 12pt;
    text-transform: none;
}

label {
    text-transform: uppercase;
}


.card-header h4 {
    margin-bottom: 0;
    text-transform: uppercase;
}

.card-body {
    padding-top: 5px;
}

optgroup {
    font-size: 10px;
    text-transform: uppercase;
}

.overview-row h6 {
    margin: 0;
    height: 25px;
    font-size: 12pt;
    padding-left: 1em;
    letter-spacing: 0.5px;
}

.overview-row p {
    margin: 0;
    font-size: 10pt;
    height: 25px;
    padding-left: 1em;
}
/*.overview-row::after {
    content: '';
    border-bottom: 1px solid rgba(0,0,0,0.2);
    position: absolute;
    left: -100%;
    bottom: 0;
    right: 0;
}*/
.main-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: row;
}

.side-bar {
    width: 50px;
    background-color: black;
    height: 100vh;
}

.main-page {
    width: calc(100% - 50px);
    height: 100vh;
}


* {
    box-sizing: border-box;
    font-family: sans-serif;
}


input, textarea, select {
    outline: none;
    background: none;
    border: none;
    resize: none;
}

    /*https://stackoverflow.com/questions/28686288/remove-default-text-placeholder-present-in-html5-input-element-of-type-date*/

    input[type=date]:required:invalid::-webkit-datetime-edit {
        color: transparent;
    }

    input[type=date]:focus::-webkit-datetime-edit {
        color: black !important;
    }

.bc-input {
    position: relative;
    height: 50px;
}


    .bc-input label {
        position: absolute;
        left: 5px;
        top: 20px;
        font-size: 12pt;
        transition: 0.3s;
        pointer-events: none;
    }

    .bc-input input {
        position: absolute;
        top: 20px;
        left: 0;
        height: 25px;
        font-size: 14pt;
        right: 0;
        width: 100%;
        height: 30px;
        padding-left: 5px;
        border-bottom: 1px solid lightgray;
    }

        .bc-input input:valid {
            border-bottom: 3px solid lightblue;
        }



            .bc-input input:focus + label,
            .bc-input input:valid + label {
                left: 5px;
                top: 5px;
                font-size: 10pt;
            }

    .bc-input::after {
        content: '';
        position: absolute;
        border-bottom: 3px solid lightblue;
        left: 0;
        bottom: 0;
        right: 100%;
        transition: 0.3s;
        z-index: 2;
    }

    .bc-input:focus-within::after {
        position: absolute;
        border-bottom: 3px solid lightblue;
        right: 0;
    }


.bc-textarea {
    position: relative;
    height: 100px;
}


    .bc-textarea label {
        position: absolute;
        left: 5px;
        top: 20px;
        font-size: 12pt;
        transition: 0.3s;
        pointer-events: none;
    }

    .bc-textarea textarea {
        position: absolute;
        top: 20px;
        left: 0;
        height: 25px;
        font-size: 14pt;
        right: 0;
        width: 100%;
        height: 80px;
        padding-left: 5px;
        border-bottom: 1px solid lightgray;
    }

        .bc-textarea textarea:valid {
            border-bottom: 3px solid lightblue;
        }

            .bc-textarea textarea:focus + label,
            .bc-textarea textarea:valid + label {
                left: 5px;
                top: 5px;
                font-size: 10pt;
            }

    .bc-textarea::after {
        content: '';
        position: absolute;
        border-bottom: 3px solid lightblue;
        left: 0;
        bottom: 0;
        right: 100%;
        transition: 0.3s;
        z-index: 2;
    }

    .bc-textarea:focus-within::after {
        position: absolute;
        border-bottom: 3px solid lightblue;
        right: 0;
    }


.bc-select {
    position: relative;
    height: 50px;
}


    .bc-select label {
        position: absolute;
        left: 5px;
        top: 20px;
        font-size: 12pt;
        transition: 0.3s;
        pointer-events: none;
    }

    .bc-select select {
        position: absolute;
        top: 20px;
        left: 0;
        height: 25px;
        font-size: 14pt;
        right: 0;
        width: 100%;
        height: 30px;
        border-bottom: 1px solid lightgray;
    }

        .bc-select select:valid {
            border-bottom: 3px solid lightblue;
        }

            .bc-select select:focus + label,
            .bc-select select:valid + label {
                left: 5px;
                top: 5px;
                font-size: 10pt;
            }

    .bc-select::after {
        content: '';
        position: absolute;
        border-bottom: 3px solid lightblue;
        left: 0;
        bottom: 0;
        right: 100%;
        transition: 0.3s;
        z-index: 2;
    }

    .bc-select:focus-within::after {
        position: absolute;
        border-bottom: 3px solid lightblue;
        right: 0;
    }


.bc-switch {
    height: 50px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

    .bc-switch .switch {
        position: relative;
        display: inline-block;
        width: 45px;
        height: 30px;
    }

        .bc-switch .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .bc-switch .switch span {
            cursor: pointer;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: lightgrey;
            -webkit-transition: .3s;
            transition: .3s;
            border-radius: 30px;
        }

            .bc-switch .switch span::before {
                position: absolute;
                content: "";
                height: 24px;
                width: 24px;
                left: 4px;
                bottom: 3px;
                border-radius: 50%;
                background-color: white;
                -webkit-transition: .3s;
                transition: .4s;
            }

        .bc-switch .switch input:checked + span {
            background-color: #2196F3;
        }

            .bc-switch .switch input:checked + span::before {
                -webkit-transform: translateX(13px);
                -ms-transform: translateX(13px);
                transform: translateX(13px);
            }

    .bc-switch .label {
        display: flex;
        width: calc(100% - 50px);
        flex-direction: column;
        justify-content: center;
        padding-left: 5px;
        font-size: 12pt;
    }



.search-box {
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 5;
    background-color: white;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.search-box-item {
    cursor: pointer;
    padding: 1em 0.5em;
}

    .search-box-item:hover {
        background-color: lightgray;
    }

    .search-box-item p {
        margin-bottom: 0;
    }


.range-selector {
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 5;
    background-color: white;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.button {
    overflow: hidden;
    position: relative;
    height: 50px;
    width: 100px;
    backface-visibility: hidden;
    height: 50px;
}

    .button:hover .ripples {
        background-color: rgba(0,0,0, 0.1);
    }

    .button:focus .ripples {
        background-color: rgba(0,0,0, 0.3);
    }



    .button label {
        pointer-events: all;
        text-transform: uppercase;
        padding: 0.5em;
        cursor: pointer;
        width: 100px;
        display: flex;
        text-align: center;
        flex-direction: column;
        height: 50px;
        position: absolute;
        top: 0;
        left: 0;
    }

    .button .border {
        border: 1px solid black;
    }

        .button label p, i {
            margin: auto;
        }


.button-sm {
    width: 50px;
}

    .button-sm label {
        width: 50px;
    }


.ripples {
    pointer-events: none;
    position: absolute;
    clip: rect(0,100px,50px,0);
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.button-sm .ripples {
    clip: rect(0,50px,50px,0);
}

.ripple {
    position: fixed;
    background-color: black;
    border-radius: 50%;
    transition: 0.3s;
    width: 200px;
    height: 200px;
    opacity: 0;
    animation-name: ripple-fx;
    animation-duration: 0.3s;
    pointer-events: none;
    cursor: pointer;
}

@keyframes ripple-fx {
    from {
        transform: scale(0);
        opacity: 0.3;
    }

    to {
        transform: scale(1);
        opacity: 0;
    }
}


.t-h th {
    min-width: 50px;
}
