﻿/* MATERIAL DESIGN COMPONENTS
================================================== */

/* MD Buttons 
-------------------------------------------------- */

a.md-btn {
    text-decoration: none;
}

    a.md-btn:hover {
    }

.md-btn.md-btn-primary {
    background-color: rgb(var(--pure-material-primary-rgb, 21, 112, 143));
}

.md-btn.md-btn-secondary {
    background-color: rgb(var(--pure-material-secondary-rgb, 220, 220, 220));
}

.md-btn.md-btn-danger {
    background-color: rgb(var(--pure-material-danger-rgb, 220, 53, 69));
}

.md-btn.md-btn-opague {
    background-color: rgba(1, 1, 1, 0);
    transition-property: background-color;
    transition-duration: 0.1s;
    color: #666666;
}
    .md-btn.md-btn-opague:hover {
        background-color: rgba(1, 1, 1, 0.02);
    }
    .md-btn.md-btn-opague svg {
        fill: #666666;
    }

    .md-btn.md-btn-disabled {
        background-color: rgb(var(--pure-material-disabled-rgb, 220, 220, 220));
    }

.md-btn.md-btn-primary,
.md-btn.md-btn-primary:hover:not(:disabled) {
    color: rgb(var(--pure-material-onprimary-rgb, 255, 255, 255));
}

.md-btn.md-btn-secondary,
.md-btn.md-btn-secondary:hover {
    color: rgb(var(--pure-material-onsecondary-rgb, 33, 33, 33));
}

.md-btn.md-btn-danger,
.md-btn.md-btn-danger:hover {
    color: rgb(var(--pure-material-ondanger-rgb, 255, 255, 255));
}

.md-btn.md-btn-disabled,
.md-btn.md-btn-disabled:hover {
    color: rgb(var(--pure-material-disabled-rgb, 130, 130, 130));
}

.md-btn.md-btn-small {
    height: 30px;
    font-size: 12px;
    line-height: 30px;
    padding: 0 10px;
}

    .md-btn.md-btn-small::after {
        width: 26px; /* Safari */
        height: 26px; /* Safari */
    }

.md-btn.md-btn-minimum {
    height: 20px;
    font-size: 12px;
    line-height: 20px;
    padding: 0 4px;
    min-width: 12px;
}

    .md-btn.md-btn-minimum::after {
        width: 26px; /* Safari */
        height: 26px; /* Safari */
    }


.md-btn {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    border: none;
    border-radius: 0;
    padding: 0 16px;
    min-width: 64px;
    height: 45px;
    vertical-align: middle;
    text-align: center;
    text-overflow: ellipsis;
    /*text-transform: uppercase;*/
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
    font-family: neue-haas-grotesk-display, "Segoe UI", BlinkMacSystemFont, system-ui, -apple-system, "Roboto",sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 20px;
    letter-spacing: 0.1rem;
    line-height: 45px;
    overflow: hidden;
    outline: none;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.md-btn-round {
    min-width: 45px;
    border-radius: 22px;
}

.md-btn-round.md-btn-small {
    min-width: 30px;
    border-radius: 15px;
}

.md-btn-disabled {
    pointer-events: none;
}

.md-btn::-moz-focus-inner {
    border: none;
}

.md-btn.md-btn-primary::before,
.md-btn.md-btn-primary::after {
    background-color: rgb(var(--pure-material-onprimary-rgb, 255, 255, 255));
}

.md-btn.md-btn-secondary::before,
.md-btn.md-btn-secondary::after {
    background-color: rgb(var(--pure-material-onsecondary-rgb, 33, 33, 33));
}

.md-btn.md-btn-danger::before,
.md-btn.md-btn-danger::after {
    background-color: rgb(var(--pure-material-onprimary-rgb, 255, 255, 255));
}

/* Overlay */
.md-btn::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

/* Ripple */
.md-btn::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    padding: 50%;
    width: 32px; /* Safari */
    height: 32px; /* Safari */
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 1s, transform 0.5s;
}

/* Hover, Focus */
.md-btn:hover,
.md-btn:focus {
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
    outline: none;
}

    .md-btn:hover::before {
        opacity: 0.08;
    }

    .md-btn:focus::before {
        opacity: 0.24;
    }

    .md-btn:hover:focus::before {
        opacity: 0.3;
    }

/* Active */
.md-btn:active {
    box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
}

    .md-btn:active::after {
        opacity: 0.32;
        transform: translate(-50%, -50%) scale(0);
        transition: transform 0s;
    }

/* Disabled */
.md-btn:disabled {
    color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
    background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.12);
    box-shadow: none;
    cursor: initial;
}

    .md-btn:disabled::before {
        opacity: 0;
    }

    .md-btn:disabled::after {
        opacity: 0;
    }

/* MD Button Icons */

/*.md-btn svg {
    width: 16px;
    height: 16px;
    margin-bottom: 0.3rem;
}*/

.md-btn svg {
    width: 20px;
    height: 20px;
    margin-bottom: 0.3rem;
}

.md-btn-primary svg path,
.md-btn-primary svg line,
.md-btn-primary svg polyline,
.md-btn-primary svg text,
.md-btn-primary svg circle,
.md-btn-primary svg rect,
.md-btn-danger svg path,
.md-btn-danger svg line,
.md-btn-danger svg polyline,
.md-btn-danger svg text,
.md-btn-danger svg circle,
.md-btn-danger svg rect {
    fill: #ffffff;
    /*stroke: #ffffff;*/
}

.md-btn-disabled svg path,
.md-btn-disabled svg line,
.md-btn-disabled svg polyline,
.md-btn-disabled svg text,
.md-btn-disabled svg circle,
.md-btn-disabled svg rect {
    fill: #888888;
    /*stroke: #ffffff;*/
}

.md-btn-secondary svg path,
.md-btn-secondary svg line,
.md-btn-secondary svg polyline,
.md-btn-secondary svg text,
.md-btn-secondary svg circle,
.md-btn-secondary svg rect {
    fill: rgb(33, 33, 33);
    /*stroke: #ffffff;*/
}

.md-btn.md-btn-small svg {
    width: 16px;
    height: 16px;
}

.md-btn svg.icon-left {
    margin-right: 0.2rem;
    margin-left: -0.2rem;
}

.md-btn svg.icon-right {
    margin-left: 0.5rem;
    margin-right: -0.2rem;
}

/* MD TextArea */

.md-form-group.invalid textarea.md-textarea {
    background: rgba(200, 0, 0, 0.2);
}

textarea.md-textarea {
    width: 100%;
    height: 200px;
    border-left: 0;
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid #aaaaaa;
    border-radius: 5px 5px 3px 3px;
    background-color: rgba(0, 0, 0, 0.02);
    overflow: auto;
    outline: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    resize: none; /*remove the resize handle on the bottom right*/
    padding: 1rem;
    transition-duration: 0.1s;
    transition-property: all;
}

    textarea.md-textarea:focus {
        border-bottom: 2px solid rgb(33, 150, 243);
    }

    textarea.md-textarea:hover:not(:focus) {
        background-color: rgba(0, 0, 0, 0.04);
        border-color: #666666;
    }

    textarea.md-textarea.invalid {
        background: rgba(200, 0, 0, 0.2);
    }

/* MD Input - Text */

.md-form-group {
    padding-top: 10px;
}

    .md-form-group > label {
        position: relative;
        margin: auto;
        width: 100%;
        border-radius: 0;
        overflow: hidden;
    }

        .md-form-group > label .label {
            position: absolute;
            top: 20px;
            left: 12px;
            font-size: 16px;
            color: rgba(0, 0, 0, 0.5);
            font-weight: 500;
            -webkit-transform-origin: 0 0;
            transform-origin: 0 0;
            -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
            -webkit-transition: all 0.2s ease;
            transition: all 0.2s ease;
            pointer-events: none;
        }

        .md-form-group > label input {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            width: 100%;
            border: 0;
            font-family: inherit;
            padding: 10px 12px 0 12px;
            height: 50px;
            font-size: 16px;
            font-weight: 500;
            background: rgba(0, 0, 0, 0.02);
            box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.3);
            color: #000;
            -webkit-transition: all 0.15s ease;
            transition: all 0.15s ease;
        }

        .md-form-group > label .input-icon {
            position: absolute;
            width: 16px;
            height: 16px;
            display: block;
            top: 18px;
            right: 10px;
        }

    .md-form-group.invalid > label input {
        background: rgba(200, 0, 0, 0.2);
    }

    .md-form-group > label input:hover {
        background: rgba(0, 0, 0, 0.04);
        box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    }

    .md-form-group > label input:not(:placeholder-shown) + .label {
        color: rgba(0, 0, 0, 0.5);
        -webkit-transform: translate3d(0, -18px, 0) scale(0.75);
        transform: translate3d(0, -18px, 0) scale(0.75);
    }

    .md-form-group > label input:focus {
        background: rgba(0, 0, 0, 0.05);
        outline: none;
        box-shadow: inset 0 -2px 0 rgb(1, 1, 1);
    }

        .md-form-group > label input:focus + .label {
            color: rgb(1, 1, 1);
            -webkit-transform: translate3d(0, -18px, 0) scale(0.75);
            transform: translate3d(0, -18px, 0) scale(0.75);
        }

/* MD Input - Radio*/

.md-radio {
    display: inline-block;
    position: relative;
    margin: 5px 0 5px;
    font-size: 16px;
    line-height: 24px;
}

    .md-radio input {
        position: absolute;
        top: 4px;
        left: 0;
        width: 36px;
        height: 20px;
        opacity: 0;
        z-index: 0;
    }

    .md-radio label {
        display: block;
        padding: 0 0 0 24px;
        cursor: pointer;
    }

        .md-radio label:before {
            content: '';
            position: absolute;
            top: 4px;
            left: 0;
            width: 16px;
            height: 16px;
            background-color: transparent;
            border: 2px solid rgba(0, 0, 0, 0.54);
            border-radius: 14px;
            z-index: 1;
            transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .md-radio label:after {
            content: '';
            position: absolute;
            top: 8px;
            left: 4px;
            width: 8px;
            height: 8px;
            background-color: #3f51b5;
            border-radius: 50%;
            z-index: 2;
            transform: scale(0, 0);
            transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

    .md-radio input:checked + label:before {
        border-color: #3f51b5;
    }

    .md-radio input:checked + label:after {
        transform: scale(1, 1);
    }

/* MD Input - Checkbox */

.md-checkbox {
    z-index: 0;
    position: relative;
    display: inline-block;
    color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.87);
    font-family: var(--pure-material-font, "Roboto", "Segoe UI", BlinkMacSystemFont, system-ui, -apple-system);
    font-size: 16px;
    line-height: 1.5;
}

    /* Input */
    .md-checkbox > input {
        appearance: none;
        -moz-appearance: none;
        -webkit-appearance: none;
        z-index: -1;
        position: absolute;
        left: -10px;
        top: -8px;
        display: block;
        margin: 0;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
        box-shadow: none;
        outline: none;
        opacity: 0;
        transform: scale(1);
        pointer-events: none;
        transition: opacity 0.3s, transform 0.2s;
    }

    /* Span */
    .md-checkbox > span {
        display: inline-block;
        width: 100%;
        cursor: pointer;
    }

        /* Box */
        .md-checkbox > span::before {
            content: "";
            display: inline-block;
            box-sizing: border-box;
            margin: 3px 11px 3px 1px;
            border: solid 2px; /* Safari */
            border-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
            border-radius: 2px;
            width: 18px;
            height: 18px;
            vertical-align: top;
            transition: border-color 0.2s, background-color 0.2s;
        }

        /* Checkmark */
        .md-checkbox > span::after {
            content: "";
            display: block;
            position: absolute;
            top: 3px;
            left: 1px;
            width: 10px;
            height: 5px;
            border: solid 2px transparent;
            border-right: none;
            border-top: none;
            transform: translate(3px, 4px) rotate(-45deg);
        }

    /* Checked, Indeterminate */
    .md-checkbox > input:checked,
    .md-checkbox > input:indeterminate {
        background-color: rgb(var(--pure-material-primary-rgb, 1, 1, 1));
    }

        .md-checkbox > input:checked + span::before,
        .md-checkbox > input:indeterminate + span::before {
            border-color: rgb(var(--pure-material-primary-rgb, 1, 1, 1));
            background-color: rgb(var(--pure-material-primary-rgb, 1, 1, 1));
        }

        .md-checkbox > input:checked + span::after,
        .md-checkbox > input:indeterminate + span::after {
            border-color: rgb(var(--pure-material-onprimary-rgb, 255, 255, 255));
        }

        .md-checkbox > input:indeterminate + span::after {
            border-left: none;
            transform: translate(4px, 3px);
        }

    /* Hover, Focus */
    .md-checkbox:hover > input {
        opacity: 0.04;
    }

    .md-checkbox > input:focus {
        opacity: 0.12;
    }

    .md-checkbox:hover > input:focus {
        opacity: 0.16;
    }

    /* Active */
    .md-checkbox > input:active {
        opacity: 1;
        transform: scale(0);
        transition: transform 0s, opacity 0s;
    }

        .md-checkbox > input:active + span::before {
            border-color: rgb(var(--pure-material-primary-rgb, 1, 1, 1));
        }

    .md-checkbox > input:checked:active + span::before {
        border-color: transparent;
        background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
    }

    /* Disabled */
    .md-checkbox > input:disabled {
        opacity: 0;
    }

        .md-checkbox > input:disabled + span {
            color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
            cursor: initial;
        }

            .md-checkbox > input:disabled + span::before {
                border-color: currentColor;
            }

    .md-checkbox > input:checked:disabled + span::before,
    .md-checkbox > input:indeterminate:disabled + span::before {
        border-color: transparent;
        background-color: currentColor;
    }

/* MD Input - File */

input.md-file-input {
    display: block;
    position: absolute;
    left: -2000px;
}

button.md-file-input {
}


/* MD Select */

.md-select {
    font-family: 'Roboto','Helvetica','Arial',sans-serif;
    position: relative;
    width: 100%;
    margin-top: 10px;
    padding-top: 13px;
    background: rgba(0, 0, 0, 0.02);
    -webkit-transition: all 0.15s ease;
    transition: all 0.15s ease;
    border-radius: 0px;
}

    .md-select:hover {
        background: rgba(0, 0, 0, 0.04);
    }

table.table-grid .md-select {
    margin-top: 0;
}

.md-select-text {
    position: relative;
    font-family: inherit;
    background-color: transparent;
    width: 100%;
    padding: 5px 10px 5px 12px;
    font-size: 16px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(0,0,0, 0.22);
    -webkit-transition: all 0.15s ease;
    transition: all 0.15s ease;
}

table.table-grid .md-select {
    padding-top: 0;
}

table.table-grid .md-select-text {
    font-size: 16px;
    padding: 5px 10px 6px 10px;
}

.md-select.invalid {
    background: rgba(200, 0, 0, 0.2);
}

/* Remove focus */
.md-select-text:focus {
    outline: none;
    border-bottom: 1px solid rgba(0,0,0, 0);
}

/* Use custom arrow */
.md-select .md-select-text {
    appearance: none;
    -webkit-appearance: none
}

.md-select:after {
    position: absolute;
    top: 30px;
    right: 10px;
    /* Styling the down arrow */
    width: 0;
    height: 0;
    padding: 0;
    content: '';
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

table.table-grid .md-select:after {
    top: 20px;
}


/* LABEL ======================================= */
.md-select-label {
    color: rgba(0,0,0, 0.26);
    font-size: 18px;
    font-weight: normal;
    position: absolute;
    pointer-events: none;
    left: 12px;
    top: 17px;
    transition: 0.2s ease all;
}

/* active state */
.md-select-text:focus ~ .md-select-label, .md-select-text:valid ~ .md-select-label {
    color: rgba(0, 0, 0, 0.6);
    top: 1px;
    transition: 0.2s ease all;
    font-size: 14px;
}

/* BOTTOM BARS ================================= */
.md-select-bar {
    position: relative;
    display: block;
    width: 100%;
}

    .md-select-bar:before, .md-select-bar:after {
        content: '';
        height: 2px;
        width: 0;
        bottom: 1px;
        position: absolute;
        background: #2F80ED;
        transition: 0.2s ease all;
    }

    .md-select-bar:before {
        left: 50%;
    }

    .md-select-bar:after {
        right: 50%;
    }

/* active state */
.md-select-text:focus ~ .md-select-bar:before, .md-select-text:focus ~ .md-select-bar:after {
    width: 50%;
}

/* HIGHLIGHTER ================================== */
.md-select-highlight {
    position: absolute;
    height: 60%;
    width: 100px;
    top: 25%;
    left: 0;
    pointer-events: none;
    opacity: 0.5;
}


/* END OF MATERIAL DESIGN COMPONENTS */
